@quirekit/ui 0.0.1 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/README.md +1 -0
  2. package/README.zh-CN.md +1 -0
  3. package/dist/{chat-BAee3Pg0.mjs → chat-BSVF78Hu.mjs} +91 -76
  4. package/dist/chat-BSVF78Hu.mjs.map +1 -0
  5. package/dist/chat.d.mts +2 -2
  6. package/dist/chat.mjs +1 -1
  7. package/dist/{code-block-D1kd-gAB.mjs → code-block-pXaSN9eY.mjs} +2 -2
  8. package/dist/{code-block-D1kd-gAB.mjs.map → code-block-pXaSN9eY.mjs.map} +1 -1
  9. package/dist/{html-sandbox-BYIni0q6.mjs → html-sandbox-CMsenGYi.mjs} +2 -2
  10. package/dist/{html-sandbox-BYIni0q6.mjs.map → html-sandbox-CMsenGYi.mjs.map} +1 -1
  11. package/dist/html-sandbox.mjs +1 -1
  12. package/dist/{index-Su5SBM61.d.mts → index-Bf9CudSF.d.mts} +20 -3
  13. package/dist/index-Bf9CudSF.d.mts.map +1 -0
  14. package/dist/{index-OJPxl6Iz.d.mts → index-DZc5z5s2.d.mts} +2 -2
  15. package/dist/{index-OJPxl6Iz.d.mts.map → index-DZc5z5s2.d.mts.map} +1 -1
  16. package/dist/index.d.mts +2 -2
  17. package/dist/index.mjs +17 -3
  18. package/dist/index.mjs.map +1 -1
  19. package/dist/{model-CeJjdZm_.mjs → model-D4-FbKXY.mjs} +2 -2
  20. package/dist/{model-CeJjdZm_.mjs.map → model-D4-FbKXY.mjs.map} +1 -1
  21. package/dist/{resolve-CGFbhFiM.mjs → resolve-BwTfY4PS.mjs} +2 -2
  22. package/dist/{resolve-CGFbhFiM.mjs.map → resolve-BwTfY4PS.mjs.map} +1 -1
  23. package/dist/style.css +13 -0
  24. package/dist/vue.d.mts +643 -580
  25. package/dist/vue.d.mts.map +1 -1
  26. package/dist/vue.mjs +1164 -1026
  27. package/dist/vue.mjs.map +1 -1
  28. package/package.json +6 -3
  29. package/src/components/accordion/index.ts +2 -1
  30. package/src/components/accordion/types.ts +3 -0
  31. package/src/components/segmented/create.ts +1 -1
  32. package/src/components/segmented/index.ts +1 -0
  33. package/src/components/segmented/types.ts +4 -1
  34. package/src/components/select/types.ts +2 -0
  35. package/src/components/toolbar/types.ts +2 -0
  36. package/src/drag-cursor/hold.test.ts +13 -0
  37. package/src/drag-cursor/hold.ts +12 -0
  38. package/src/drag-cursor/index.ts +1 -0
  39. package/src/index.ts +1 -0
  40. package/src/vue/accordion/accordion.vue +7 -3
  41. package/src/vue/block-handle/block-handle.test.ts +30 -0
  42. package/src/vue/block-handle/block-handle.vue +27 -0
  43. package/src/vue/block-handle/index.ts +3 -0
  44. package/src/vue/block-handle/presentation.ts +23 -0
  45. package/src/vue/block-handle/types.ts +14 -0
  46. package/src/vue/code-block/theme-surface.vue +4 -1
  47. package/src/vue/comment/action.vue +33 -0
  48. package/src/vue/comment/comment.test.ts +5 -0
  49. package/src/vue/comment/index.ts +1 -0
  50. package/src/vue/comment/message.vue +18 -7
  51. package/src/vue/comment/thread.vue +24 -10
  52. package/src/vue/file-upload/file-upload.vue +1 -1
  53. package/src/vue/image-preview/theme-surface.vue +4 -1
  54. package/src/vue/index.ts +1 -0
  55. package/src/vue/kbd/labels.ts +9 -0
  56. package/src/vue/prose/mapping/native.ts +1 -1
  57. package/src/vue/prose/mapping/rich.ts +2 -1
  58. package/src/vue/schema-form/controls/registry.ts +1 -1
  59. package/src/vue/schema-form/tree.ts +1 -1
  60. package/src/vue/segmented/segmented.vue +5 -0
  61. package/src/vue/select/select.vue +2 -0
  62. package/src/vue/select/shortcut.test.ts +18 -0
  63. package/src/vue/shared/task/trigger.vue +1 -1
  64. package/src/vue/tags-input/tags-input.vue +1 -1
  65. package/src/vue/theme-provider/portal.vue +4 -1
  66. package/src/vue/theme-provider/surface.vue +4 -1
  67. package/src/vue/toolbar/items/control.vue +1 -0
  68. package/src/vue/toolbar/presentation/tooltip.vue +3 -1
  69. package/src/vue/toolbar/toolbar-action.vue +4 -1
  70. package/src/vue/toolbar/toolbar-disclosure.vue +4 -1
  71. package/src/vue/toolbar/toolbar-selector.vue +4 -1
  72. package/src/vue/toolbar/toolbar-toggle.vue +4 -1
  73. package/src/vue/tooltip/content.vue +6 -1
  74. package/src/vue/tooltip/shortcut.test.ts +27 -0
  75. package/dist/chat-BAee3Pg0.mjs.map +0 -1
  76. package/dist/index-Su5SBM61.d.mts.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chat-BSVF78Hu.mjs","names":["$attrs","$slots","$attrs","$slots","$attrs","$attrs","$slots","$slots","$slots","$slots","$slots","$slots","$slots","$slots","$attrs","$slots","$slots","$attrs","$slots","$attrs","$slots","$attrs","$attrs","$attrs","$slots","$attrs","$slots","$emit","$slots","$slots"],"sources":["../src/vue/button/icon-button.vue","../src/vue/file-icon/file-icon.vue","../src/vue/image/media.vue","../src/vue/overlay-provider/context.ts","../src/vue/theme-provider/context.ts","../src/vue/theme-provider/styles.ts","../src/vue/theme-provider/surface.vue","../src/vue/theme-provider/portal.vue","../src/vue/dialog/root.vue","../src/vue/shared/surface/use-modal-owner.ts","../src/vue/image-preview/geometry.ts","../src/vue/image-preview/use-transform.ts","../src/vue/image-preview/use-gestures.ts","../src/vue/image-preview/stage.vue","../src/vue/image-preview/toolbar/layout.ts","../src/vue/image-preview/toolbar/toolbar.vue","../src/vue/image-preview/appearance.ts","../src/vue/image-preview/theme-surface.vue","../src/vue/image-preview/mask-dismiss.ts","../src/vue/image-preview/surface.vue","../src/vue/image-preview/image-preview.vue","../src/vue/image-preview/group/context.ts","../src/vue/image/image.vue","../src/components/progress/normalize.ts","../src/vue/progress/progress.vue","../src/vue/shimmer/shimmer.vue","../src/vue/attachment/model.ts","../src/vue/attachment/actions.vue","../src/vue/attachment/attachment.vue","../src/vue/image-preview/group/use.ts","../src/vue/shared/horizontal-scroll/geometry.ts","../src/vue/shared/horizontal-scroll/use-scroll.ts","../src/vue/shared/horizontal-scroll/icons.ts","../src/vue/shared/horizontal-scroll/strip.vue","../src/vue/attachment/attachments.vue","../src/vue/checkbox/checkbox.vue","../src/vue/collapsible/collapsible.vue","../src/vue/shared/surface/use-modal-portal.ts","../src/vue/field/context.ts","../src/vue/kbd/labels.ts","../src/vue/textarea/auto-resize.ts","../src/vue/textarea/textarea.vue","../src/vue/kbd/kbd.vue","../src/vue/menu/menu-item.vue","../src/vue/menu/menu-group.vue","../src/vue/shared/surface/geometry.ts","../src/vue/menu/content-size.ts","../src/vue/menu/surface/use-layer.ts","../src/vue/menu/surface/siblings.ts","../src/vue/menu/surface/anchor.ts","../src/vue/menu/surface/portal.ts","../src/vue/menu/surface/scroll.ts","../src/vue/menu/menu-submenu.vue","../src/vue/menu/menu-separator.vue","../src/vue/menu/menu-radio-group.vue","../src/vue/menu/menu-radio-item.vue","../src/vue/menu/menu-checkbox-item.vue","../src/vue/menu/items/items.vue","../src/vue/menu/initial-focus.ts","../src/vue/menu/surface/trigger.vue","../src/vue/menu/menu.vue","../src/vue/radio-group/keyboard.ts","../src/vue/radio-group/radio-group.vue","../src/vue/scroll-area/use-scroll-sync.ts","../src/vue/scroll-area/scroll-area.vue","../src/vue/tooltip/content.vue","../src/vue/tooltip/focus-reveal.ts","../src/vue/tooltip/root.vue","../src/vue/tooltip/trigger.vue","../src/vue/typography/abbreviation.vue","../src/vue/typography/typography.vue","../src/vue/empty-state/illustration.vue","../src/vue/empty-state/empty-state.vue","../src/vue/alert/alert.vue","../src/vue/candidate-list/candidate-list.vue","../src/vue/shared/choice-state/field-item.vue","../src/vue/shared/choice-state/model.ts","../src/vue/checkbox-group/model.ts","../src/vue/checkbox-group/checkbox-group.vue","../src/vue/chat/composer-input/composer-input.vue","../src/vue/chat/composer-submit/composer-submit.vue","../src/vue/chat/shared/locale-direction.vue","../src/vue/chat/shared/locale-scope.vue","../src/vue/chat/composer/composer.vue","../src/vue/chat/rich-input/model.ts","../src/vue/chat/rich-input/use-candidates.ts","../src/vue/chat/rich-input/history.ts","../src/vue/chat/rich-input/use-candidate-position.ts","../src/vue/chat/rich-input/rich-input.vue","../src/vue/chat/shared/state-icon.ts","../src/vue/chat/shared/focus-recovery.ts","../src/vue/chat/shared/disclosure.vue","../src/vue/chat/message-action/message-action.vue","../src/vue/chat/message-actions/message-actions.vue","../src/vue/chat/shared/part-actions.ts","../src/vue/chat/reasoning/reasoning.vue","../src/vue/chat/tool/tool.vue","../src/vue/sources/sources.vue","../src/vue/chat/confirmation/confirmation.vue","../src/vue/chat/question/question.vue","../src/vue/chat/message-part/message-part.vue","../src/vue/chat/message-branch/message-branch.vue","../src/vue/chat/message/message.vue","../src/vue/chat/process/process.vue","../src/vue/chat/message-list/anchors.ts","../src/vue/chat/message-list/use-scroll.ts","../src/vue/chat/message-list/message-list.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { ark } from \"@ark-ui/vue/factory\";\nimport type { ButtonHTMLAttributes } from \"vue\";\nimport type {\n QuireKitButtonColor,\n QuireKitButtonSize,\n QuireKitButtonVariant,\n QuireKitIconButtonShape\n} from \"../../components/button\";\n\nconst ArkButton = ark.button;\n\n/** Public properties for the Vue IconButton adapter. */\ninterface Props {\n /** Accessible action name; icon-only buttons never infer this from artwork. */\n readonly label: string;\n /** Native button submission behavior. */\n readonly type?: ButtonHTMLAttributes[\"type\"];\n /** Public component size. */\n readonly size?: QuireKitButtonSize;\n /** Shape of the target; rounded preserves the size-specific control radius. */\n readonly shape?: QuireKitIconButtonShape;\n /** Semantic color family used to communicate the action role. */\n readonly color?: QuireKitButtonColor;\n /** Paint treatment applied to the semantic color. */\n readonly variant?: Exclude<QuireKitButtonVariant, \"link\">;\n /** Whether activation is unavailable. */\n readonly disabled?: boolean;\n /** Whether the action is currently processing. */\n readonly busy?: boolean;\n}\n\nconst {\n type = \"button\",\n size = \"sm\",\n shape = \"rounded\",\n color = \"neutral\",\n variant = \"ghost\",\n disabled = false,\n busy = false\n} = defineProps<Props>();\n</script>\n\n<template>\n <component\n :is=\"ArkButton\"\n :type=\"type\"\n data-scope=\"button\"\n data-part=\"root\"\n :aria-label=\"label\"\n :aria-busy=\"busy || undefined\"\n :disabled=\"disabled || busy\"\n :data-state=\"busy ? 'busy' : undefined\"\n :class=\"[\n 'qk-button',\n 'qk-icon-button',\n `qk-button--${color}-${variant}`,\n `qk-icon-button--${size}`,\n shape === 'circle' && 'qk-icon-button--circle'\n ]\"\n >\n <span\n :class=\"['qk-button__icon', `qk-button__icon--${size}`]\"\n aria-hidden=\"true\"\n data-slot=\"icon\"\n >\n <svg\n v-if=\"busy\"\n class=\"qk-button__spinner\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n >\n <path d=\"M20 12a8 8 0 0 1-8 8\" />\n <path d=\"M4 12a8 8 0 0 1 8-8\" opacity=\".35\" />\n </svg>\n <slot v-else />\n </span>\n </component>\n</template>\n","<script setup lang=\"ts\">\nimport { computed } from 'vue';\nimport { resolveQuireKitFileIdentity } from '../../components/file-icon';\nimport type { QuireKitFileIconProps } from '../../components/file-icon';\n\nconst props = withDefaults(defineProps<QuireKitFileIconProps>(), { size: 32 });\nconst identity = computed(() => resolveQuireKitFileIdentity(props));\nconst width = computed(() => Number.isFinite(props.size) && props.size > 0 ? props.size : 32);\n</script>\n\n<template>\n <svg class=\"qk-file-icon\" :data-kind=\"identity.kind\" viewBox=\"0 0 32 40\" :width=\"width\" :height=\"width * 1.25\"\n :role=\"label ? 'img' : undefined\" :aria-label=\"label\" :aria-hidden=\"label ? undefined : true\" focusable=\"false\">\n <path fill=\"currentColor\" d=\"M5 0h15l12 12v23a5 5 0 0 1-5 5H5a5 5 0 0 1-5-5V5a5 5 0 0 1 5-5Z\" />\n <path fill=\"white\" fill-opacity=\".32\" d=\"M20 0v8a4 4 0 0 0 4 4h8Z\" />\n <text class=\"qk-file-icon__badge\" x=\"16\" y=\"28\" text-anchor=\"middle\" :font-size=\"identity.badge.length === 1 ? 17 : 9\">{{ identity.badge }}</text>\n </svg>\n</template>\n","<script setup lang=\"ts\">\nimport { onMounted, ref, shallowRef, watch } from 'vue';\nimport type { ImageLoadState } from '../image-preview/types';\nconst props = defineProps<{\n /** Requested source; parent keys each request generation. */ src: string;\n /** Image alternative text. */ alt: string;\n}>();\nconst emit = defineEmits<{\n /** Loaded intrinsic dimensions. */ load: [image: HTMLImageElement];\n /** Native resource error. */ error: [event: Event];\n /** Current resource state. */ state: [state: ImageLoadState];\n}>();\nconst element = shallowRef<HTMLImageElement | null>(null);\nconst status = ref<ImageLoadState>('loading');\nlet loadedSource = '';\n/** @param image - Current native image, possibly already cached. */\nfunction complete(image: HTMLImageElement): void {\n if (image !== element.value || !image.naturalWidth) return;\n const source = image.currentSrc || image.src;\n if (status.value === 'loaded' && source === loadedSource) return;\n loadedSource = source;\n status.value = 'loaded'; emit('state', 'loaded'); emit('load', image);\n}\n/** @param event - Native load event. */\nfunction loaded(event: Event): void { complete(event.currentTarget as HTMLImageElement); }\n/** @param event - Native failure from the currently mounted resource. */\nfunction failed(event: Event): void {\n if (event.currentTarget !== element.value) return;\n status.value = 'error'; emit('state', 'error'); emit('error', event);\n}\nwatch(() => props.src, () => { loadedSource = ''; status.value = 'loading'; emit('state', 'loading'); });\nonMounted(() => {\n if (!element.value?.complete) return;\n if (element.value.naturalWidth) complete(element.value);\n else { status.value = 'error'; emit('state', 'error'); emit('error', new Event('error')); }\n});\n</script>\n<template><img ref=\"element\" :src=\"src\" :alt=\"alt\" decoding=\"async\" :data-load-state=\"status\" @load=\"loaded\" @error=\"failed\"></template>\n","import { computed, inject, provide, type InjectionKey } from \"vue\";\nimport { useDialogContext } from \"@ark-ui/vue/dialog\";\nimport { useDrawerContext } from \"@ark-ui/vue/drawer\";\nimport type { QuireOverlayHost } from \"./types\";\n\nconst overlayHostKey: InjectionKey<QuireOverlayHost> = Symbol(\"quire-overlay-host\");\n\n/** @param host - Physical owner for menus, pickers and tooltips in this Vue subtree. */\nexport function provideQuireOverlayHost(host: QuireOverlayHost): void { provide(overlayHostKey, host); }\n\n/** @param explicit - Optional per-surface override. @returns Inherited portal and placement strategy; modal children retain their modal ownership. */\nexport function useQuireOverlayHost(explicit: () => string | HTMLElement | undefined = () => undefined) {\n const host = inject(overlayHostKey, undefined);\n const modal = !!(useDialogContext() || useDrawerContext());\n return {\n target: computed(() => explicit() ?? (modal ? undefined : host?.target()) ?? \"body\"),\n strategy: computed(() => modal ? undefined : host?.strategy)\n };\n}\n","import { inject, provide, type ComputedRef, type InjectionKey } from \"vue\";\nimport type { QuireKitTheme } from \"../../theme/types\";\n\n/** Internal logical-tree authority, preserved when descendants teleport. */\nexport const quireKitThemeKey: InjectionKey<ComputedRef<QuireKitTheme>> = Symbol(\"quirekit-theme\");\n\nconst quireKitInheritedThemePortalsKey: InjectionKey<boolean> = Symbol(\n \"quirekit-inherited-theme-portals\"\n);\n\n/**\n * Declares that descendant portal targets remain inside the current physical theme scope.\n *\n * Descendant floating components then inherit variables from their target instead of\n * creating duplicate complete-variable bridges.\n */\nexport function provideQuireInheritedThemePortals(): void {\n provide(quireKitInheritedThemePortalsKey, true);\n}\n\n/** @returns Whether the current floating subtree inherits its physical target theme. */\nexport function useQuireInheritedThemePortals(): boolean {\n return inject(quireKitInheritedThemePortalsKey, false);\n}\n\n/**\n * Reads the theme of the nearest `QuireThemeProvider`, so surfaces mounted as a separate app\n * (such as editor dialogs) can follow the host theme instead of creating a default one.\n * @returns The provided theme, or undefined outside any provider.\n */\nexport function useQuireKitTheme(): ComputedRef<QuireKitTheme> | undefined {\n return inject(quireKitThemeKey, undefined);\n}\n","import type { CSSProperties } from \"vue\";\nimport { createUiThemeCssVariables } from \"../../styles/theme\";\nimport type { QuireKitTheme } from \"../../theme/types\";\n\nconst contentsStyles = new WeakMap<QuireKitTheme, Readonly<CSSProperties>>();\nconst bridgeStyles = new WeakMap<QuireKitTheme, Readonly<CSSProperties>>();\n\n/**\n * Retains the native scope's complete style independently of dynamic content attrs.\n * @param theme - Immutable semantic authority shared by ordinary and portal scopes.\n * @param layout - Whether this is a layout-neutral provider or a floating portal bridge.\n * @returns Stable styles that create inheritance with the requested box policy.\n */\nexport function resolveThemeSurfaceStyle(\n theme: QuireKitTheme,\n layout: \"contents\" | \"bridge\" = \"contents\"\n): Readonly<CSSProperties> {\n const cache = layout === \"contents\" ? contentsStyles : bridgeStyles;\n const retained = cache.get(theme);\n if (retained) return retained;\n\n // One immutable style identity is the invalidation boundary. Never merge\n // content attrs here: Vue/Ark normalization would turn every update into a\n // complete theme patch even when every variable still has the same value.\n const value = Object.freeze({\n ...createUiThemeCssVariables(theme),\n display: layout === \"contents\" ? \"contents\" : \"block\",\n // Floating scopes must never become flex/grid items while parked beside their trigger.\n ...(layout === \"bridge\" ? { position: \"absolute\" as const } : {}),\n colorScheme: theme.scheme,\n });\n cache.set(theme, value);\n return value;\n}\n","<script lang=\"ts\">\nimport { defineComponent, h, inject, onMounted } from \"vue\";\nimport { trackQuireKitInputModality } from \"../../components/control/modality\";\nimport { quireKitThemeKey } from \"./context\";\nimport { resolveThemeSurfaceStyle } from \"./styles\";\n\n// The SFC compiler drops an annotation on `export default`, so the pure call is on its own declaration.\nconst ThemeSurface = /* @__PURE__ */ defineComponent({\n name: \"QuireThemeSurface\",\n inheritAttrs: false,\n props: {\n /** Floating portals use a real box; ordinary provider scopes remain layout-neutral. */\n layout: {\n type: String as () => \"contents\" | \"bridge\",\n default: \"contents\"\n }\n },\n /**\n * Separates theme patching from descendant slot updates.\n * @param _props - This internal scope accepts no presentation props.\n * @param context - Slots whose updates must remain independent of the theme.\n * @returns Render function preserving native style identity across slot updates.\n */\n setup(props, context) {\n const theme = inject(quireKitThemeKey, undefined);\n onMounted(() => trackQuireKitInputModality(document));\n // A compiled :style binding carries Vue's STYLE patch flag and writes every\n // property whenever changing slots rerender this scope. A native h() vnode\n // uses ordinary prop identity checks, while still patching all slot children.\n return () => theme ? h(\"div\", {\n \"data-qk-theme-surface\": \"\",\n \"data-qk-scheme\": theme.value.scheme,\n style: resolveThemeSurfaceStyle(theme.value, props.layout),\n }, context.slots.default?.()) : context.slots.default?.();\n },\n});\n\nexport default ThemeSurface;\n</script>\n","<script lang=\"ts\">\nimport { useQuireOverlayHost } from \"../overlay-provider\";\nimport { usePresenceContext } from \"@ark-ui/vue/presence\";\nimport { defineComponent, h, inject, onMounted } from \"vue\";\nimport { trackQuireKitInputModality } from \"../../components/control/modality\";\nimport {\n quireKitThemeKey,\n useQuireInheritedThemePortals\n} from \"./context\";\nimport QuireThemeSurface from \"./surface.vue\";\n\n// The SFC compiler drops an annotation on `export default`, so the pure call is on its own declaration.\nconst ThemePortal = /* @__PURE__ */ defineComponent({\n name: \"QuireThemePortal\",\n inheritAttrs: false,\n /**\n * Restores DOM inheritance only while the owning floating surface is mounted.\n * @param _props - Portal targets and presentation belong to the owning component.\n * @param context - Original floating children, including backdrop and arrows.\n * @returns Render function following Ark's existing presence lifecycle.\n */\n setup(_props, context) {\n const host = useQuireOverlayHost();\n const theme = inject(quireKitThemeKey, undefined);\n const presence = usePresenceContext();\n const inherited = useQuireInheritedThemePortals();\n // Floating surfaces return focus to their trigger; modality keeps pointer-driven returns ring-free.\n onMounted(() => trackQuireKitInputModality(document));\n // An empty body sibling would be hidden by an already-open parent modal\n // before this child opens. Follow unmounted, not open/present: exit animation\n // and explicitly retained content must keep their original DOM lifetime.\n return () => !theme || inherited || host.target.value !== \"body\" || presence?.value.unmounted\n ? context.slots.default?.()\n : h(QuireThemeSurface, { layout: \"bridge\" }, context.slots);\n },\n});\n\nexport default ThemePortal;\n</script>\n","<script setup lang=\"ts\">\nimport { Dialog } from \"@ark-ui/vue/dialog\";\nimport type { DialogOpenChangeDetails, DialogRootProps } from \"@ark-ui/vue/dialog\";\nimport { computed } from \"vue\";\nimport type { QuireKitDialogRole } from \"../../components/dialog/types\";\n\n/** 模态对话框的属性。 */\ninterface Props {\n /** 内容元素的稳定 ID;同时供浮层定位、焦点和原生 DOM 查询使用。 */\n readonly contentId?: string;\n /** 受控打开状态;省略时由组件管理。 */\n readonly open?: boolean | undefined;\n /** 非受控模式的初始打开状态。 */\n readonly defaultOpen?: boolean;\n /** 没有可见标题时使用的可访问名称。 */\n readonly ariaLabel?: string;\n /** Dialog 或 AlertDialog 角色。 */\n readonly role?: QuireKitDialogRole;\n /** 是否启用模态隔离。 */\n readonly modal?: boolean;\n /** 是否约束键盘焦点。 */\n readonly trapFocus?: boolean;\n /** 是否锁定背景滚动。 */\n readonly preventScroll?: boolean;\n /** 是否在关闭后归还焦点。 */\n readonly restoreFocus?: boolean;\n /** 是否响应 Escape 关闭请求。 */\n readonly closeOnEscape?: boolean;\n /** 是否响应外部交互关闭请求。 */\n readonly closeOnInteractOutside?: boolean;\n /** 打开时首个接收焦点的元素解析器。 */\n readonly initialFocusEl?: () => HTMLElement | null;\n /** 关闭时显式接收焦点的元素解析器。 */\n readonly finalFocusEl?: () => HTMLElement | null;\n /** 是否延迟挂载内容。 */\n readonly lazyMount?: boolean;\n /** 退出完成后是否卸载内容。 */\n readonly unmountOnExit?: boolean;\n}\n\n/** Dialog Root 的公开事件。 */\ninterface Emits {\n /** 同步受控打开状态。 */\n \"update:open\": [open: boolean];\n /** 通知一次语义打开状态变化。 */\n openChange: [open: boolean];\n /** 按下 Escape 时触发。 */\n escapeKeyDown: [event: KeyboardEvent];\n /** 通知浮层外交互请求。 */\n interactOutside: [event: Event];\n /** 退出动画完成。 */\n exitComplete: [];\n}\n\n/** Dialog Root 的组合内容。 */\ninterface Slots {\n /** Trigger 与 Content 的组合树。 */\n readonly default: () => unknown;\n}\n\nconst props = withDefaults(defineProps<Props>(), {\n open: undefined,\n defaultOpen: false,\n role: \"dialog\",\n modal: true,\n trapFocus: true,\n preventScroll: true,\n restoreFocus: true,\n closeOnEscape: true,\n closeOnInteractOutside: true,\n lazyMount: true,\n unmountOnExit: true\n});\nconst emit = defineEmits<Emits>();\ndefineSlots<Slots>();\n\nconst rootBindings = computed<DialogRootProps>(() => ({\n ...(props.contentId === undefined ? {} : { ids: { content: props.contentId } }),\n ...(props.open === undefined ? { defaultOpen: props.defaultOpen } : { open: props.open }),\n role: props.role,\n modal: props.modal,\n trapFocus: props.trapFocus,\n preventScroll: props.preventScroll,\n restoreFocus: props.restoreFocus,\n closeOnEscape: props.closeOnEscape,\n closeOnInteractOutside: props.closeOnInteractOutside,\n lazyMount: props.lazyMount,\n unmountOnExit: props.unmountOnExit,\n ...(props.ariaLabel === undefined ? {} : { \"aria-label\": props.ariaLabel }),\n ...(props.initialFocusEl === undefined ? {} : { initialFocusEl: props.initialFocusEl }),\n ...(props.finalFocusEl === undefined ? {} : { finalFocusEl: props.finalFocusEl })\n}));\n\n/**\n * 把 Zag 的明细事件投影为公开布尔值合同。\n *\n * @param details - Ark Dialog 返回的打开状态明细。\n * @returns 无返回值。\n */\nfunction handleOpenChange(details: DialogOpenChangeDetails): void {\n emit(\"update:open\", details.open);\n emit(\"openChange\", details.open);\n}\n</script>\n\n<template>\n <Dialog.Root\n v-bind=\"rootBindings\"\n @open-change=\"handleOpenChange\"\n @escape-key-down=\"emit('escapeKeyDown', $event)\"\n @interact-outside=\"emit('interactOutside', $event)\"\n @exit-complete=\"emit('exitComplete')\"\n >\n <slot />\n </Dialog.Root>\n</template>\n","import { useDialogContext } from \"@ark-ui/vue/dialog\";\nimport { useDrawerContext } from \"@ark-ui/vue/drawer\";\nimport { computed, onMounted, ref, watch } from \"vue\";\n\n/**\n * Reads the optional Ark owner across Vue's tree, including body-portalled children.\n * @returns Owner presence, current open state and readiness after opening effects.\n */\nexport function useModalSurfaceOwner() {\n const dialog = useDialogContext();\n const drawer = useDrawerContext();\n const present = Boolean(dialog || drawer);\n const open = computed(() => (dialog?.value.open ?? true) && (drawer?.value.open ?? true));\n const settled = ref(!present);\n const mounted = ref(false);\n onMounted(() => { mounted.value = true; });\n watch(() => mounted.value && open.value, (ownerOpen, _previous, onCleanup) => {\n if (!present) return;\n settled.value = false;\n if (!ownerOpen) return;\n // Ark schedules hideContentBelow and initial focus through deferred RAFs.\n // The first frame lets the owner's isolation/focus effects run; the next\n // exposes children independently of parent/child component mount order.\n // Re-arm for retained owners too, including an initially closed parent.\n let frame = requestAnimationFrame(() => {\n frame = requestAnimationFrame(() => { settled.value = true; });\n });\n onCleanup(() => cancelAnimationFrame(frame));\n }, { flush: \"post\" });\n return {\n present,\n open,\n ready: computed(() => open.value && settled.value)\n };\n}\n","import type { PreviewPoint, PreviewSize } from './types';\n\n/** @param size - Natural dimensions. @param angle - Rotation in degrees. @returns Screen-aligned dimensions. */\nexport function rotatedSize(size: PreviewSize, angle: number): PreviewSize {\n return Math.abs(angle % 180) === 90 ? { width: size.height, height: size.width } : size;\n}\n/** @param image - Rotated natural dimensions. @param viewport - Stage dimensions. @returns Fit scale without enlarging small images. */\nexport function fitScale(image: PreviewSize, viewport: PreviewSize): number {\n if (image.width <= 0 || image.height <= 0 || viewport.width <= 0 || viewport.height <= 0) return 1;\n return Math.min(1, viewport.width / image.width, viewport.height / image.height);\n}\n/** @param point - Requested pan. @param image - Rotated natural dimensions. @param viewport - Stage dimensions. @param scale - Natural image scale. @returns Pan that never loses the image outside the viewport. */\nexport function clampPan(point: PreviewPoint, image: PreviewSize, viewport: PreviewSize, scale: number): PreviewPoint {\n const x = Math.max(0, (image.width * scale - viewport.width) / 2);\n const y = Math.max(0, (image.height * scale - viewport.height) / 2);\n return { x: x ? Math.max(-x, Math.min(x, point.x)) : 0, y: y ? Math.max(-y, Math.min(y, point.y)) : 0 };\n}\n/** @param offset - Existing image center. @param anchor - Fixed screen point. @param ratio - New scale divided by previous scale. @returns Center preserving the image point under the pointer. */\nexport function anchoredPan(offset: PreviewPoint, anchor: PreviewPoint, ratio: number): PreviewPoint {\n return { x: anchor.x - (anchor.x - offset.x) * ratio, y: anchor.y - (anchor.y - offset.y) * ratio };\n}\n","import { computed, ref, watch, type Ref } from 'vue';\nimport { anchoredPan, clampPan, fitScale, rotatedSize } from './geometry';\nimport type { PreviewPoint, PreviewSize } from './types';\n\n/** @param viewport - Live stage dimensions. @returns Read-only image transform controls. */\nexport function useImageTransform(viewport: Ref<PreviewSize>) {\n const natural = ref<PreviewSize>({ width: 0, height: 0 });\n const ready = ref(false);\n const angle = ref(0);\n const scale = ref(1);\n const offset = ref<PreviewPoint>({ x: 0, y: 0 });\n const bounds = computed(() => rotatedSize(natural.value, angle.value));\n const fitted = ref(true);\n const fitRatio = computed(() => fitScale(bounds.value, viewport.value));\n const minimum = computed(() => Math.min(.1, fitRatio.value / 4));\n /** Restores the complete rotated image inside the stage. */\n function fit(): void { fitted.value = true; scale.value = fitRatio.value; offset.value = { x: 0, y: 0 }; }\n /** @param size - Loaded natural dimensions. */\n function load(size: PreviewSize): void { natural.value = size; ready.value = true; angle.value = 0; fit(); }\n /** @param point - Requested screen-coordinate center. */\n function panTo(point: PreviewPoint): void { offset.value = clampPan(point, bounds.value, viewport.value, scale.value); }\n /** @param value - Requested scale. @param anchor - Stage-centered pointer location. */\n function zoomTo(value: number, anchor: PreviewPoint = { x: 0, y: 0 }): void {\n if (!ready.value) return;\n fitted.value = false;\n const next = Math.min(8, Math.max(minimum.value, value));\n const center = anchoredPan(offset.value, anchor, next / scale.value);\n scale.value = next; panTo(center);\n }\n /** @param multiplier - Relative zoom factor. */\n function zoomBy(multiplier: number): void { zoomTo(scale.value * multiplier); }\n /** Shows one natural image pixel per CSS pixel. */\n function actual(): void { zoomTo(1); }\n /** @param direction - Positive for clockwise, negative for counterclockwise. */\n function rotate(direction = 1): void { if (ready.value) { angle.value = (angle.value + (direction < 0 ? 270 : 90)) % 360; fit(); } }\n /** @param point - Point kept beneath the pointer when zooming in. */\n function toggle(point: PreviewPoint): void { if (Math.abs(scale.value - fitRatio.value) > 0.001) fit(); else zoomTo(Math.max(1, fitRatio.value * 2), point); }\n // Resize follows fit only until the user chooses a zoom level.\n watch(fitRatio, () => {\n if (fitted.value) fit();\n else { scale.value = Math.max(minimum.value, scale.value); panTo(offset.value); }\n }, { flush: 'sync' });\n const imageStyle = computed(() => ({\n width: `${natural.value.width * scale.value}px`, height: `${natural.value.height * scale.value}px`,\n transform: `translate(-50%, -50%) translate(${offset.value.x}px, ${offset.value.y}px) rotate(${angle.value}deg)`\n }));\n return { ready, scale, angle, offset, minimum, fitRatio, imageStyle, load, fit, panTo, zoomTo, zoomBy, actual, rotate, toggle };\n}\n","import { onBeforeUnmount, ref, type Ref } from 'vue';\nimport type { PreviewPoint, PreviewTransform } from './types';\n\n/** @param stage - Pointer capture owner. @param transform - Current image controls. @param navigate - Request adjacent image. @returns Stage event handlers with no document-level listeners. */\nexport function usePreviewGestures(stage: Ref<HTMLElement | null>, transform: PreviewTransform, navigate: (delta: number) => void) {\n const points = new Map<number, PreviewPoint>();\n const dragging = ref(false);\n let last: PreviewPoint = { x: 0, y: 0 };\n let start: PreviewPoint = { x: 0, y: 0 };\n let distance = 0;\n let swipe = false;\n let moved = false;\n let lastTap = 0;\n onBeforeUnmount(() => {\n const captured = [...points.keys()]; points.clear();\n for (const id of captured) if (stage.value?.hasPointerCapture(id)) stage.value.releasePointerCapture(id);\n });\n /** @param event - Pointer in viewport coordinates. @returns Stage-centered CSS point. */\n function point(event: { clientX: number; clientY: number }): PreviewPoint {\n const rect = stage.value!.getBoundingClientRect();\n return { x: event.clientX - rect.left - rect.width / 2, y: event.clientY - rect.top - rect.height / 2 };\n }\n /** @returns Active gesture centroid. */\n function center(): PreviewPoint {\n const values = [...points.values()];\n return values.reduce((sum, value) => ({ x: sum.x + value.x / values.length, y: sum.y + value.y / values.length }), { x: 0, y: 0 });\n }\n /** @returns First two fingers' distance. */\n function span(): number { const [a, b] = [...points.values()]; return a && b ? Math.hypot(a.x - b.x, a.y - b.y) : 0; }\n /** @param event - Pointer starting a stage gesture. */\n function down(event: PointerEvent): void {\n if (!transform.ready.value || event.button !== 0 || points.size >= 2) return;\n points.set(event.pointerId, point(event)); stage.value?.setPointerCapture(event.pointerId);\n last = center(); distance = span();\n if (points.size === 1) { start = last; moved = false; swipe = event.pointerType === 'touch' && transform.scale.value <= transform.fitRatio.value + 0.001; }\n else { swipe = false; moved = true; lastTap = 0; }\n dragging.value = true;\n }\n /** @param event - Captured pointer movement. */\n function move(event: PointerEvent): void {\n if (!points.has(event.pointerId)) return;\n points.set(event.pointerId, point(event)); const next = center();\n if (Math.hypot(next.x - start.x, next.y - start.y) > 5) moved = true;\n if (points.size > 1) {\n const current = span();\n if (distance > 0) transform.zoomTo(transform.scale.value * current / distance, last);\n transform.panTo({ x: transform.offset.value.x + next.x - last.x, y: transform.offset.value.y + next.y - last.y });\n distance = current;\n } else if (!swipe) transform.panTo({ x: transform.offset.value.x + next.x - last.x, y: transform.offset.value.y + next.y - last.y });\n last = next;\n }\n /** @param event - Pointer completion or cancellation. */\n function end(event: PointerEvent): void {\n if (!points.has(event.pointerId)) return;\n const cancelled = event.type !== 'pointerup';\n if (cancelled) lastTap = 0;\n const finish = point(event);\n const horizontal = finish.x - start.x;\n const vertical = finish.y - start.y;\n points.delete(event.pointerId);\n if (points.size === 0) {\n dragging.value = false;\n if (!cancelled && swipe && Math.abs(horizontal) > 60 && Math.abs(horizontal) > Math.abs(vertical) * 1.5) navigate(horizontal < 0 ? 1 : -1);\n else if (!cancelled && !moved && event.pointerType === 'touch') {\n const now = Date.now(); if (now - lastTap < 300) { transform.toggle(finish); lastTap = 0; } else lastTap = now;\n }\n } else { last = center(); distance = span(); swipe = false; moved = true; }\n // Release only after state publication: lostpointercapture may be delivered synchronously.\n if (stage.value?.hasPointerCapture(event.pointerId)) stage.value.releasePointerCapture(event.pointerId);\n }\n /** @param event - Wheel scroll within the image stage. */\n function wheel(event: WheelEvent): void {\n if (!transform.ready.value) return;\n event.preventDefault();\n const delta = event.deltaY * (event.deltaMode === 1 ? 16 : event.deltaMode === 2 ? 300 : 1);\n transform.zoomTo(transform.scale.value * Math.exp(-Math.max(-100, Math.min(100, delta)) * 0.004), point(event));\n }\n /** @param event - Mouse double-click, independent of touch tap recognition. */\n function doubleClick(event: MouseEvent): void { transform.toggle(point(event)); }\n return { dragging, down, move, end, wheel, doubleClick };\n}\n","<script setup lang=\"ts\">\nimport { onBeforeUnmount, onMounted, ref, shallowRef } from 'vue';\nimport Media from '../image/media.vue';\nimport { QuireButton } from '../button';\nimport { useImageTransform } from './use-transform';\nimport { usePreviewGestures } from './use-gestures';\nimport type { ImageLoadState, QuireKitImagePreviewItem, QuireKitImagePreviewLabels } from './types';\nconst props = defineProps<{\n /** Current keyed resource. */ item: QuireKitImagePreviewItem;\n /** Resolved loading, failure, and recovery copy. */ labels: QuireKitImagePreviewLabels;\n}>();\nconst emit = defineEmits<{ /** Adjacent image intent. */ navigate: [delta: number] }>();\nconst element = shallowRef<HTMLElement | null>(null);\nconst viewport = ref({ width: 0, height: 0 });\nconst status = ref<ImageLoadState>('loading');\nconst attempt = ref(0);\nconst transform = useImageTransform(viewport);\nconst { ready, scale, angle, fitRatio, offset, imageStyle } = transform;\nconst gestures = usePreviewGestures(element, transform, delta => emit('navigate', delta));\nlet observer: ResizeObserver | undefined;\nonMounted(() => {\n observer = new ResizeObserver(([entry]) => {\n if (entry) viewport.value = { width: Math.max(1, entry.contentRect.width - 32), height: Math.max(1, entry.contentRect.height - 48) };\n });\n if (element.value) observer.observe(element.value);\n});\nonBeforeUnmount(() => observer?.disconnect());\n/** @param image - Current loaded native resource. */\nfunction loaded(image: HTMLImageElement): void { transform.load({ width: image.naturalWidth, height: image.naturalHeight }); }\n/** Restarts the native image request without retaining the failed transform. */\nfunction retry(): void { ready.value = false; status.value = 'loading'; attempt.value++; }\ndefineExpose({ ...transform });\n</script>\n<template>\n <div ref=\"element\" class=\"qk-image-preview__stage\" :data-zoom=\"scale\" :data-angle=\"angle\" :data-x=\"offset.x\" :data-y=\"offset.y\" :data-ready=\"ready\" :data-zoomed=\"scale > fitRatio + .001\" :data-dragging=\"gestures.dragging.value\"\n @pointerdown=\"gestures.down\" @pointermove=\"gestures.move\" @pointerup=\"gestures.end\" @pointercancel=\"gestures.end\" @lostpointercapture=\"gestures.end\" @wheel=\"gestures.wheel\" @dblclick=\"gestures.doubleClick\">\n <Media :key=\"`${props.item.src}:${attempt}`\" :src=\"item.src\" :alt=\"item.alt\" class=\"qk-image-preview__image\" :style=\"[imageStyle, item.background ? { backgroundColor: item.background } : {}]\" draggable=\"false\" @dragstart.prevent @load=\"loaded\" @state=\"status = $event\" />\n <div v-if=\"status === 'loading'\" class=\"qk-image-preview__status\" role=\"status\"><span class=\"qk-image-preview__loading\" aria-hidden=\"true\" />{{ labels.loading }}</div>\n <div v-else-if=\"status === 'error'\" class=\"qk-image-preview__status\" role=\"alert\"><span>{{ labels.unavailable }}</span><QuireButton variant=\"outline\" @pointerdown.stop @dblclick.stop @click=\"retry\">{{ labels.retry }}</QuireButton></div>\n </div>\n</template>\n","import type { QuireKitImagePreviewToolbar, QuireKitImagePreviewToolbarLayoutItem, QuireKitImagePreviewToolbarPart, QuireKitImagePreviewToolbarPreset } from './types';\n\n/** 可复用和展开的只读工具栏预设。 */\nexport const quireImagePreviewToolbarPresets: Readonly<Record<QuireKitImagePreviewToolbarPreset, readonly QuireKitImagePreviewToolbarPart[]>> = Object.freeze({\n standard: Object.freeze(['counter', 'separator', 'zoomOut', 'scale', 'zoomIn', 'separator', 'fit', 'rotateRight', 'actions'] as const),\n compact: Object.freeze(['zoomOut', 'scale', 'zoomIn', 'actions'] as const),\n gallery: Object.freeze(['previous', 'counter', 'next', 'separator', 'zoomOut', 'scale', 'zoomIn', 'separator', 'fit', 'rotateLeft', 'rotateRight', 'actions'] as const)\n});\nconst parts = new Set<QuireKitImagePreviewToolbarPart>(['zoomOut', 'scale', 'zoomIn', 'fit', 'rotateLeft', 'rotateRight', 'previous', 'counter', 'next', 'separator', 'actions']);\n/** @param toolbar - Public toolbar configuration. @param hasActions - Whether the legacy actions slot exists. @param hasCustom - Whether custom positions can render. @returns Ordered, deduplicated layout with no empty edge dividers. */\nexport function resolveToolbarLayout(toolbar: QuireKitImagePreviewToolbar = true, hasActions = false, hasCustom = false): QuireKitImagePreviewToolbarLayoutItem[] {\n if (toolbar === false) return [];\n const layout = typeof toolbar === 'object' ? toolbar.layout ?? quireImagePreviewToolbarPresets[toolbar.preset ?? 'standard'] : quireImagePreviewToolbarPresets[typeof toolbar === 'string' ? toolbar : 'standard'];\n const result: QuireKitImagePreviewToolbarLayoutItem[] = [];\n const seen = new Set<string>();\n for (const part of layout ?? []) {\n if (typeof part === 'string' && (!parts.has(part) || (part === 'actions' && !hasActions))) continue;\n if (typeof part === 'object' && (!hasCustom || !part.slot?.trim())) continue;\n if (part === 'separator') {\n if (result.length && result.at(-1) !== 'separator') result.push(part);\n continue;\n }\n const key = typeof part === 'string' ? part : `slot:${part.slot}`;\n if (!seen.has(key)) { result.push(part); seen.add(key); }\n }\n if (result.at(-1) === 'separator') result.pop();\n return result;\n}\n","<script setup lang=\"ts\">\nimport { computed, useSlots } from 'vue';\nimport { QuireButton, QuireIconButton } from '../../button';\nimport QuireIcon from '../../icon/icon.vue';\nimport { resolveToolbarLayout } from './layout';\nimport type { QuireKitImagePreviewLabels } from '../types';\nimport type { QuireKitImagePreviewToolbar } from './types';\nconst props = defineProps<{\n /** Public toolbar configuration. */ configuration: QuireKitImagePreviewToolbar;\n /** Whether transform actions are available. */ ready: boolean;\n /** Natural image scale. */ scale: number;\n /** Smallest permitted scale, independent of fit. */ minimum: number;\n /** Current zero-based group position. */ index: number;\n /** Number of images. */ count: number;\n /** Whether navigation wraps at group boundaries. */ loop: boolean;\n /** Resolved control and position copy. */ labels: QuireKitImagePreviewLabels;\n}>();\nconst slots = useSlots();\nconst layout = computed(() => resolveToolbarLayout(props.configuration, !!slots.default, !!slots.item));\nconst emit = defineEmits<{\n /** Relative zoom intent. */ zoom: [factor: number];\n /** Fit entire image. */ fit: [];\n /** Rotation direction. */ rotate: [direction: number];\n /** Relative group navigation. */ navigate: [direction: number];\n}>();\nconst buttons = computed(() => ({\n zoomOut: { label: props.labels.zoomOut, title: `${props.labels.zoomOut} (-)`, icon: 'zoomOut', disabled: !props.ready || props.scale <= props.minimum + .001, run: () => emit('zoom', .8) },\n zoomIn: { label: props.labels.zoomIn, title: `${props.labels.zoomIn} (+)`, icon: 'zoomIn', disabled: !props.ready || props.scale >= 8, run: () => emit('zoom', 1.25) },\n fit: { label: props.labels.fit, title: `${props.labels.fit} (0)`, icon: 'scan', disabled: !props.ready, run: () => emit('fit') },\n rotateLeft: { label: props.labels.rotateLeft, title: props.labels.rotateLeft, icon: 'rotateCcw', disabled: !props.ready, run: () => emit('rotate', -1) },\n rotateRight: { label: props.labels.rotateRight, title: `${props.labels.rotateRight} (R)`, icon: 'rotateCw', disabled: !props.ready, run: () => emit('rotate', 1) },\n previous: { label: props.labels.previous, title: `${props.labels.previous} (←)`, icon: 'chevronLeft', disabled: props.count < 2 || (!props.loop && props.index <= 0), run: () => emit('navigate', -1) },\n next: { label: props.labels.next, title: `${props.labels.next} (→)`, icon: 'chevronRight', disabled: props.count < 2 || (!props.loop && props.index >= props.count - 1), run: () => emit('navigate', 1) }\n} as const));\n</script>\n<template>\n <div v-if=\"layout.length\" class=\"qk-image-preview__tools\" role=\"group\" :aria-label=\"labels.toolbar\">\n <template v-for=\"(part, position) in layout\" :key=\"typeof part === 'object' ? `slot:${part.slot}` : part === 'separator' ? `separator:${position}` : part\">\n <slot v-if=\"typeof part === 'object'\" name=\"item\" :slot=\"part.slot\" :scale=\"scale\" :ready=\"ready\" :count=\"count\" />\n <slot v-else-if=\"part === 'actions'\" />\n <span v-else-if=\"part === 'separator'\" class=\"qk-image-preview__divider\" aria-hidden=\"true\" />\n <span v-else-if=\"part === 'counter'\" class=\"qk-image-preview__count\" role=\"status\" aria-live=\"polite\" :aria-label=\"labels.current\">{{ labels.position(count ? index + 1 : 0, count) }}</span>\n <QuireButton v-else-if=\"part === 'scale'\" class=\"qk-image-preview__scale\" variant=\"text\" size=\"md\" :title=\"`${labels.fit} (0)`\" :style=\"{ textDecoration: 'none' }\" :disabled=\"!ready\" :aria-label=\"labels.fit\" @click=\"emit('fit')\">{{ ready ? `${Math.round(scale * 100)}%` : '—' }}</QuireButton>\n <QuireIconButton v-else :label=\"buttons[part].label\" :title=\"buttons[part].title\" variant=\"text\" size=\"md\" :disabled=\"buttons[part].disabled\" @click=\"buttons[part].run()\"><QuireIcon :name=\"buttons[part].icon\" :size=\"20\" /></QuireIconButton>\n </template>\n </div>\n</template>\n","import { createTheme } from '../../theme';\nimport { createUiThemeCssVariables } from '../../styles';\n\n/** @param scheme - Surface contrast appropriate for the chosen mask. @returns Semantic colors without replacing host geometry or typography. */\nfunction colors(scheme: 'light' | 'dark'): Readonly<Record<string, string>> {\n return Object.freeze(Object.fromEntries(Object.entries(createUiThemeCssVariables(createTheme({ scheme })))\n .filter(([name]) => name.startsWith('--qk-color-') || (name.startsWith('--qk-button-') && /foreground|background|border-color|focus-color/.test(name)))));\n}\n/** Reuses public theme colors for preview controls on dark or light masks. */\nexport const previewColors = { light: colors('light'), dark: colors('dark') };\n","<script lang=\"ts\">\nimport { defineComponent, h, type PropType } from \"vue\";\nimport { previewColors } from \"./appearance\";\n\nconst styles = Object.freeze({\n light: Object.freeze({ ...previewColors.light, display: \"contents\" }),\n dark: Object.freeze({ ...previewColors.dark, display: \"contents\" })\n});\n\n// The SFC compiler drops an annotation on `export default`, so the pure call is on its own declaration.\nconst ImagePreviewThemeSurface = /* @__PURE__ */ defineComponent({\n name: \"QuireImagePreviewThemeSurface\",\n inheritAttrs: false,\n props: {\n /** Preview-owned contrast palette; host geometry and typography still inherit. */\n scheme: { type: String as PropType<\"light\" | \"dark\">, required: true }\n },\n /**\n * Keeps the preview palette independent of Ark content attribute updates.\n * @param props - Explicit preview contrast scheme.\n * @param context - Original content without an additional layout box.\n * @returns Native renderer whose stable style identity avoids palette rewrites.\n */\n setup(props, context) {\n return () => h(\"div\", { style: styles[props.scheme] }, context.slots.default?.());\n }\n});\n\nexport default ImagePreviewThemeSurface;\n</script>\n","/** @param enabled - Live dismissal preference. @param close - Request closing the modal. @returns Pointer handlers distinguishing blank clicks from image gestures. */\nexport function createMaskDismiss(enabled: () => boolean, close: () => void) {\n let candidate: { id: number; x: number; y: number; target: Element } | undefined;\n const pointers = new Set<number>();\n /** @param event - Initial hit before the stage captures the pointer. */\n function down(event: PointerEvent): void {\n pointers.add(event.pointerId);\n const target = event.target;\n candidate = pointers.size === 1 && event.button === 0 && target instanceof Element && target.matches('.qk-image-preview__stage')\n ? { id: event.pointerId, x: event.clientX, y: event.clientY, target } : undefined;\n }\n /** @param event - Movement including drags that eventually return to their origin. */\n function move(event: PointerEvent): void {\n if (candidate && Math.hypot(event.clientX - candidate.x, event.clientY - candidate.y) > 5) candidate = undefined;\n }\n /** @param event - Completed pointer; hit-test again because pointer capture retargets events. */\n function up(event: PointerEvent): void {\n const hit = candidate;\n pointers.delete(event.pointerId); candidate = undefined;\n if (enabled() && hit?.id === event.pointerId && Math.hypot(event.clientX - hit.x, event.clientY - hit.y) <= 5\n && hit.target.ownerDocument.elementFromPoint(event.clientX, event.clientY) === hit.target) close();\n }\n /** @param event - Cancelled pointer must never dismiss. */\n function cancel(event: PointerEvent): void { pointers.delete(event.pointerId); candidate = undefined; }\n return { down, move, up, cancel };\n}\n","<script setup lang=\"ts\">\nimport QuireThemePortal from \"../theme-provider/portal.vue\";\nimport { Dialog } from '@ark-ui/vue/dialog';\nimport { computed, nextTick, onMounted, ref, shallowRef, useSlots, watch } from 'vue';\nimport { QuireIconButton } from '../button';\nimport QuireIcon from '../icon/icon.vue';\nimport Stage from './stage.vue';\nimport Toolbar from './toolbar/toolbar.vue';\nimport PreviewThemeSurface from './theme-surface.vue';\nimport { resolveToolbarLayout } from './toolbar/layout';\nimport { createMaskDismiss } from './mask-dismiss';\nimport type { QuireKitImagePreviewItem, QuireKitImagePreviewLabels, QuireKitImagePreviewOptions } from './types';\ndefineOptions({ inheritAttrs: false });\nconst props = defineProps<{\n /** Ordered current group. */ items: readonly QuireKitImagePreviewItem[];\n /** Normalized active index. */ index: number;\n /** Whether navigation wraps. */ loop: boolean;\n /** Whether thumbnails are visible. */ thumbnails: boolean;\n /** Shared appearance and visibility options. */ options: QuireKitImagePreviewOptions;\n /** Resolved interface and accessible copy. */ labels: QuireKitImagePreviewLabels;\n /** Unique surface identity. */ id: string;\n}>();\nconst emit = defineEmits<{ /** Index intent. */ select: [index: number]; /** Mask dismissal intent. */ close: [] }>();\nconst mask = createMaskDismiss(() => props.options.closeOnMaskClick !== false, () => emit('close'));\nconst appearance = computed(() => ({\n '--qk-preview-mask-color': props.options.maskColor ?? '#000',\n '--qk-preview-mask-opacity': Number.isFinite(props.options.maskOpacity) ? Math.max(0, Math.min(1, props.options.maskOpacity!)) : .8,\n '--qk-preview-mask-blur': `${Number.isFinite(props.options.maskBlur) ? Math.max(0, props.options.maskBlur!) : 0}px`\n}));\nconst current = computed(() => props.items[props.index]);\nconst title = computed(() => current.value?.title?.trim());\nconst slots = useSlots();\nconst toolbarHasCounter = computed(() => resolveToolbarLayout(props.options.toolbar, !!slots.actions, !!slots['toolbar-item']).includes('counter'));\nconst stage = shallowRef<InstanceType<typeof Stage> | null>(null);\nconst header = shallowRef<HTMLElement | null>(null);\nconst strip = shallowRef<HTMLElement | null>(null);\nconst mounted = ref(false);\nonMounted(() => { mounted.value = true; });\n/** @param delta - Requested direction. */\nfunction navigate(delta: number): void {\n const count = props.items.length; if (count < 2) return;\n const index = props.index + delta;\n emit('select', props.loop ? (index + count) % count : Math.max(0, Math.min(count - 1, index)));\n}\n/** @param event - Keyboard intent scoped to the open dialog. */\nfunction keydown(event: KeyboardEvent): void {\n if (event.altKey || event.ctrlKey || event.metaKey || (event.target as HTMLElement).closest('input,textarea,select,[contenteditable=true]')) return;\n if ((event.target as HTMLElement).closest('[data-preview-thumbnails]')) return;\n const actions: Record<string, () => void> = {\n ArrowLeft: () => navigate(-1), ArrowRight: () => navigate(1),\n '+': () => stage.value?.zoomBy(1.25), '=': () => stage.value?.zoomBy(1.25), '-': () => stage.value?.zoomBy(.8),\n '0': () => stage.value?.fit(), '1': () => stage.value?.actual(), r: () => stage.value?.rotate(), R: () => stage.value?.rotate()\n };\n if (actions[event.key]) { event.preventDefault(); event.stopPropagation(); actions[event.key]!(); }\n}\n/** @param event - Thumbnail navigation key. @param index - Focused thumbnail index. */\nfunction thumbnailKey(event: KeyboardEvent, index: number): void {\n let next = index;\n if (event.key === 'ArrowRight') next++;\n else if (event.key === 'ArrowLeft') next--;\n else if (event.key === 'Home') next = 0;\n else if (event.key === 'End') next = props.items.length - 1;\n else return;\n event.preventDefault(); emit('select', Math.max(0, Math.min(props.items.length - 1, next)));\n void nextTick(() => strip.value?.querySelector<HTMLButtonElement>(`[data-index=\"${Math.max(0, Math.min(props.items.length - 1, next))}\"]`)?.focus());\n}\n/** Keeps the active thumbnail visible and retains keyboard ownership after navigation. */\nfunction syncSelectedImage(): void {\n const document = header.value?.ownerDocument;\n const focused = document?.activeElement;\n const ownedFocus = focused && header.value?.parentElement?.contains(focused);\n void nextTick(() => {\n strip.value?.querySelector('[aria-current=true]')?.scrollIntoView({ block: 'nearest', inline: 'nearest' });\n // Reaching a boundary disables the clicked navigation button. Browsers then\n // focus body, outside the dialog's key handler; restore a stable local control.\n if (ownedFocus && focused.matches(':disabled') && document?.activeElement === document.body) {\n header.value?.querySelector<HTMLButtonElement>('button')?.focus({ preventScroll: true });\n }\n });\n}\nwatch(() => props.index, syncSelectedImage);\n</script>\n<template>\n <Teleport :to=\"options.portalTarget ?? 'body'\" :disabled=\"!mounted\">\n <QuireThemePortal>\n <PreviewThemeSurface :scheme=\"options.scheme ?? 'dark'\">\n <Dialog.Content v-bind=\"$attrs\" :id=\"id\" class=\"qk-image-preview\" :data-qk-scheme=\"options.scheme ?? 'dark'\" :style=\"appearance\" @keydown=\"keydown\" @pointerdown.capture=\"mask.down\" @pointermove.capture=\"mask.move\" @pointerup.capture=\"mask.up\" @pointercancel.capture=\"mask.cancel\">\n <div class=\"qk-image-preview__mask\" aria-hidden=\"true\" />\n <header ref=\"header\" class=\"qk-image-preview__header\">\n <div class=\"qk-image-preview__heading\"><Dialog.Title :class=\"title ? 'qk-image-preview__title' : 'sr-only'\">{{ title || labels.title }}</Dialog.Title><span v-if=\"items.length && !toolbarHasCounter\" class=\"qk-image-preview__count\" role=\"status\" aria-live=\"polite\" :aria-label=\"labels.current\">{{ labels.position(index + 1, items.length) }}</span></div>\n <Dialog.CloseTrigger as-child><QuireIconButton :id=\"`${id}-close`\" :label=\"labels.close\" :title=\"`${labels.close} (Esc)`\" variant=\"text\" size=\"md\" class=\"qk-image-preview__close\"><QuireIcon name=\"close\" :size=\"20\" /></QuireIconButton></Dialog.CloseTrigger>\n </header>\n <div class=\"qk-image-preview__body\" :data-navigation=\"options.navigation !== false && items.length > 1\">\n <Stage v-if=\"current\" :key=\"`${current.id}:${current.src}`\" ref=\"stage\" :item=\"current\" :labels=\"labels\" @navigate=\"navigate\" />\n <div v-else class=\"qk-image-preview__status\" role=\"status\">{{ labels.empty }}</div>\n <template v-if=\"options.navigation !== false && items.length > 1\">\n <QuireIconButton class=\"qk-image-preview__previous\" :label=\"labels.previous\" :title=\"`${labels.previous} (←)`\" variant=\"text\" size=\"md\" :disabled=\"!loop && index === 0\" @click=\"navigate(-1)\"><QuireIcon name=\"chevronLeft\" :size=\"20\" /></QuireIconButton>\n <QuireIconButton class=\"qk-image-preview__next\" :label=\"labels.next\" :title=\"`${labels.next} (→)`\" variant=\"text\" size=\"md\" :disabled=\"!loop && index === items.length - 1\" @click=\"navigate(1)\"><QuireIcon name=\"chevronRight\" :size=\"20\" /></QuireIconButton>\n </template>\n </div>\n <footer class=\"qk-image-preview__footer\">\n <Dialog.Description v-if=\"options.caption !== false && current?.description\" class=\"qk-image-preview__caption\">{{ current.description }}</Dialog.Description>\n <Toolbar v-if=\"options.toolbar !== false\" :configuration=\"options.toolbar ?? true\" :index=\"index\" :count=\"items.length\" :loop=\"loop\" :ready=\"stage?.ready ?? false\" :scale=\"stage?.scale ?? 1\" :minimum=\"stage?.minimum ?? 1\" :labels=\"labels\" @zoom=\"stage?.zoomBy($event)\" @fit=\"stage?.fit()\" @rotate=\"stage?.rotate($event)\" @navigate=\"navigate\">\n <template v-if=\"$slots.actions\" #default><slot name=\"actions\" :item=\"current\" :index=\"index\" /></template>\n <template v-if=\"$slots['toolbar-item']\" #item=\"context\"><slot name=\"toolbar-item\" v-bind=\"context\" :item=\"current\" :index=\"index\" /></template>\n </Toolbar>\n <div v-if=\"options.toolbar === false && $slots.actions\" class=\"qk-image-preview__tools\"><slot name=\"actions\" :item=\"current\" :index=\"index\" /></div>\n <nav v-if=\"thumbnails && items.length > 1\" ref=\"strip\" class=\"qk-image-preview__thumbnails\" :aria-label=\"labels.thumbnails\" data-preview-thumbnails>\n <button v-for=\"(item, position) in items\" :key=\"item.id\" type=\"button\" class=\"qk-image-preview__thumbnail\" :data-index=\"position\" :tabindex=\"position === index ? 0 : -1\" :aria-current=\"position === index || undefined\" :aria-label=\"labels.thumbnail(position + 1, item.title || item.alt)\" @click=\"emit('select', position)\" @keydown=\"thumbnailKey($event, position)\"><img :src=\"item.thumbnail || item.src\" alt=\"\" loading=\"lazy\" draggable=\"false\" :style=\"item.background ? { backgroundColor: item.background } : undefined\"></button>\n </nav>\n </footer>\n </Dialog.Content>\n </PreviewThemeSurface>\n </QuireThemePortal>\n </Teleport>\n</template>\n","<script setup lang=\"ts\">\nimport { computed, ref, shallowRef, useId } from 'vue';\nimport { EnvironmentProvider } from '@ark-ui/vue/environment';\nimport { QuireDialogRoot } from '../dialog';\nimport { useModalSurfaceOwner } from '../shared/surface/use-modal-owner';\nimport Surface from './surface.vue';\nimport { useQuireKitMessages } from '../locale-provider/context';\nimport type { QuireKitImagePreviewItem, QuireKitImagePreviewProps, QuireKitImagePreviewToolbarSlotProps } from './types';\nconst props = withDefaults(defineProps<QuireKitImagePreviewProps>(), { open: undefined, defaultOpen: false, index: undefined, defaultIndex: 0, loop: false, thumbnails: true, toolbar: true, caption: true, navigation: true, closeOnMaskClick: true, maskColor: '#000', maskOpacity: .8, maskBlur: 0, scheme: 'dark' });\nconst emit = defineEmits<{\n /** 请求打开或关闭。 */ 'update:open': [open: boolean];\n /** 请求切换当前图片。 */ 'update:index': [index: number];\n}>();\ndefineSlots<{\n /** 渲染 layout 中声明的自定义工具栏位置。 */ 'toolbar-item'?(props: QuireKitImagePreviewToolbarSlotProps): unknown;\n /** 触发入口;open 接受图片索引并记录恢复焦点的元素。 */ default?(props: { open: (index?: number) => void; index: number }): unknown;\n /** 宿主提供的下载等操作,放置紧凑按钮。 */ actions?(props: { item: QuireKitImagePreviewItem | undefined; index: number }): unknown;\n}>();\ndefineOptions({ inheritAttrs: false });\nconst id = `qk-image-preview-${useId()}`;\nconst owner = useModalSurfaceOwner();\nconst internalOpen = ref(props.defaultOpen);\nconst internalIndex = ref(props.defaultIndex);\nconst opener = shallowRef<HTMLElement | null>(null);\nconst opened = computed(() => owner.ready.value && (props.open ?? internalOpen.value));\nconst current = computed(() => Math.max(0, Math.min(props.items.length - 1, Math.trunc(props.index ?? internalIndex.value) || 0)));\nconst labels = useQuireKitMessages('imagePreview');\n/** @param index - Requested picture index. */\nfunction select(index: number): void { internalIndex.value = index; emit('update:index', index); }\n/** @param value - Dialog's close or open request. */\nfunction updateOpen(value: boolean): void { internalOpen.value = value; emit('update:open', value); }\n/** @param index - Picture to open, defaults to current selection. */\nfunction show(index = current.value): void {\n if (!owner.ready.value) return;\n const ownerDocument = resolvePreviewDocument();\n const activeElement = ownerDocument.activeElement;\n opener.value = isOwnedHtmlElement(activeElement, ownerDocument)\n ? activeElement\n : null;\n select(Math.max(0, Math.min(props.items.length - 1, index))); updateOpen(true);\n}\n/** @returns Safe initial focus target. */\nfunction initialFocusEl(): HTMLElement | null {\n return resolvePreviewDocument().getElementById(`${id}-close`);\n}\n/** @returns Host-chosen or still-connected opener. */\nfunction finalFocusEl(): HTMLElement | null { return props.finalFocusEl?.() ?? (opener.value?.isConnected ? opener.value : null); }\n/** @returns Document that owns the preview surface and its focus lifecycle. */\nfunction resolvePreviewDocument(): Document {\n return props.portalTarget?.ownerDocument ?? document;\n}\n/**\n * Checks one active element without relying on the global realm constructor.\n *\n * @param value - Candidate active element.\n * @param ownerDocument - Document that must own the candidate.\n * @returns Whether the candidate is a focusable HTML element in that document.\n */\nfunction isOwnedHtmlElement(\n value: Element | null,\n ownerDocument: Document\n): value is HTMLElement {\n return value !== null\n && value.ownerDocument === ownerDocument\n && typeof (value as HTMLElement).focus === 'function';\n}\n</script>\n<template>\n <EnvironmentProvider :value=\"resolvePreviewDocument\">\n <QuireDialogRoot :open=\"opened\" :content-id=\"id\" :initial-focus-el=\"initialFocusEl\" :final-focus-el=\"finalFocusEl\" :restore-focus=\"owner.open.value\" :close-on-interact-outside=\"false\" @update:open=\"updateOpen\">\n <slot :open=\"show\" :index=\"current\" />\n <Surface v-if=\"opened\" v-bind=\"$attrs\" :id=\"id\" :items=\"items\" :index=\"current\" :loop=\"loop\" :thumbnails=\"thumbnails\" :options=\"props\" :labels=\"labels\" @close=\"updateOpen(false)\" @select=\"select\"><template v-if=\"$slots.actions\" #actions=\"context\"><slot name=\"actions\" v-bind=\"context\" /></template><template v-if=\"$slots['toolbar-item']\" #toolbar-item=\"context\"><slot name=\"toolbar-item\" v-bind=\"context\" /></template></Surface>\n </QuireDialogRoot>\n </EnvironmentProvider>\n</template>\n","import type { InjectionKey } from \"vue\";\nimport type { ImagePreviewGroupContext } from \"./types\";\n\n/** Only explicit adapters opt an Image into a containing group. */\nexport const imagePreviewGroupKey: InjectionKey<ImagePreviewGroupContext | null> = Symbol(\"quirekit.image-preview-group\");\n","<script setup lang=\"ts\">\nimport { computed, inject, onBeforeUnmount, onMounted, ref, shallowRef, useId, watch } from 'vue';\nimport Media from './media.vue';\nimport { QuireImagePreview } from '../image-preview';\nimport QuireIcon from '../icon/icon.vue';\nimport { QuireButton } from '../button';\nimport { imagePreviewGroupKey } from '../image-preview/group/context';\nimport type { ImageLoadState } from '../image-preview/types';\nimport type { QuireKitImageProps } from './types';\nimport { useQuireKitMessages } from '../locale-provider/context';\nconst props = withDefaults(defineProps<QuireKitImageProps>(), { fit: 'cover', position: 'center', loading: 'lazy', decoding: 'async', fetchpriority: 'auto', preview: false, previewHint: true });\nconst emit = defineEmits<{\n /** 当前资源加载成功。 */ load: [image: HTMLImageElement];\n /** 当前资源加载失败。 */ error: [event: Event];\n /** Before opening preview; preventDefault lets a virtualized host supply its complete gallery. */ preview: [event: MouseEvent];\n}>();\ndefineSlots<{\n /** 自定义加载占位。 */ placeholder?(props: { src: string; fallback: boolean }): unknown;\n /** 自定义错误提示和重试入口。 */ error?(props: { retry: () => void; src: string; fallback: boolean }): unknown;\n}>();\ndefineOptions({ inheritAttrs: false });\nconst text = useQuireKitMessages('image');\nconst status = ref<ImageLoadState>('loading');\nconst attempt = ref(0);\nconst usingFallback = ref(false);\nconst selectedSource = ref('');\nconst root = shallowRef<HTMLElement | null>(null);\nconst group = inject(imagePreviewGroupKey, null);\nconst memberId = useId();\nconst source = computed(() => usingFallback.value ? props.fallback! : props.src);\nwatch(() => [props.src, props.srcset, props.sizes, props.fallback, props.crossorigin, props.referrerpolicy], retry);\n/** @param image - Loaded original or fallback resource. */\nfunction loaded(image: HTMLImageElement): void {\n if (!usingFallback.value) selectedSource.value = image.currentSrc || image.src;\n emit('load', image);\n}\n/** @param event - Failure of the current request generation. */\nfunction failed(event: Event): void {\n emit('error', event);\n if (!usingFallback.value && props.fallback && props.fallback !== props.src) {\n usingFallback.value = true; status.value = 'loading'; attempt.value++;\n }\n}\n/** @param value - CSS length or pixel dimension. @returns CSS length. */\nfunction length(value: number | string | undefined): string | undefined { return typeof value === 'number' ? `${value}px` : value; }\nconst style = computed(() => ({ width: length(props.width), height: length(props.height), aspectRatio: props.aspectRatio,\n minWidth: props.width !== undefined ? 0 : undefined, minHeight: props.height !== undefined ? 0 : undefined }));\nconst previewItem = computed(() => ({ id: props.src, src: props.previewSrc || selectedSource.value || props.src, alt: props.alt, ...(props.title ? { title: props.title } : {}) }));\nconst items = computed(() => [previewItem.value]);\nlet unregister: (() => void) | undefined;\nonMounted(() => { unregister = group?.register({ id: memberId, element: root, item: previewItem, enabled: computed(() => props.preview && !usingFallback.value && status.value !== 'error') }); });\nonBeforeUnmount(() => { unregister?.(); });\n/** @param open - Existing single-image preview action. @param event - Original pointer or keyboard click. */\nfunction openPreview(open: (index: number) => void, event: MouseEvent): void {\n emit('preview', event);\n if (event.defaultPrevented) return;\n if (!group?.open(memberId, event.currentTarget as HTMLElement, props.previewOptions)) open(0);\n}\n/** Reissues the failed resource request. */\nfunction retry(): void { usingFallback.value = false; selectedSource.value = ''; status.value = 'loading'; attempt.value++; }\n</script>\n<template>\n <QuireImagePreview v-bind=\"previewOptions\" :items=\"items\">\n <template #default=\"{ open }\">\n <span ref=\"root\" v-bind=\"$attrs\" class=\"qk-image\" :style=\"style\" :data-state=\"status\" :data-fallback=\"usingFallback || undefined\" :aria-busy=\"status === 'loading' || undefined\">\n <Media :key=\"`${source}:${attempt}`\" :src=\"source\" :alt=\"alt\" :srcset=\"usingFallback ? undefined : srcset\" :sizes=\"usingFallback ? undefined : sizes\" :loading=\"loading\" :decoding=\"decoding\" :fetchpriority=\"fetchpriority\" :crossorigin=\"crossorigin\" :referrerpolicy=\"referrerpolicy\" :width=\"typeof width === 'number' ? width : undefined\" :height=\"typeof height === 'number' ? height : undefined\" class=\"qk-image__media\" :style=\"{ objectFit: fit, objectPosition: position }\" @state=\"status = $event\" @load=\"loaded\" @error=\"failed\" />\n <span v-if=\"status === 'loading'\" class=\"qk-image__placeholder\" role=\"status\"><slot name=\"placeholder\" :src=\"source\" :fallback=\"usingFallback\"><QuireIcon name=\"image\" :size=\"24\" /><span class=\"sr-only\">{{ text.loading }}</span></slot></span>\n <span v-if=\"status === 'error'\" class=\"qk-image__error\" role=\"status\"><slot name=\"error\" :retry=\"retry\" :src=\"source\" :fallback=\"usingFallback\"><QuireIcon name=\"image\" :size=\"24\" /><span>{{ text.failed }}</span><QuireButton variant=\"outline\" @click=\"retry\">{{ text.retry }}</QuireButton></slot></span>\n <button v-if=\"preview && !usingFallback && status === 'loaded'\" type=\"button\" class=\"qk-image__trigger\" :aria-label=\"text.preview(title || alt || undefined)\" @click=\"openPreview(open, $event)\"><span v-if=\"previewHint\" class=\"qk-image__hint\"><QuireIcon name=\"zoomIn\" :size=\"16\" />{{ text.previewHint }}</span></button>\n </span>\n </template>\n </QuireImagePreview>\n</template>\n","/**\n * 投影有限、有正跨度的进度范围,避免无效几何传入状态机。\n *\n * @param min - 消费者提供的下界。\n * @param max - 消费者提供的上界。\n * @returns 有效范围;无效输入整体回退为 0..100。\n */\nexport function normalizeProgressRange(min: number, max: number): { min: number; max: number } {\n const span = max - min;\n return Number.isFinite(min) && Number.isFinite(max) && Number.isFinite(span) && span > 0\n ? { min, max }\n : { min: 0, max: 100 };\n}\n\n/**\n * 只规范展示数值,不把范围钳制写回任务状态。\n *\n * @param value - 原始任务数值。\n * @param min - 有效范围下界。\n * @param max - 有效范围上界。\n * @returns 范围内数值;null 或非有限数值表示未知进度。\n */\nexport function normalizeProgressValue(value: number | null, min: number, max: number): number | null {\n return value === null || !Number.isFinite(value) ? null : Math.min(max, Math.max(min, value));\n}\n","<script setup lang=\"ts\">\nimport { Progress } from \"@ark-ui/vue/progress\";\nimport type { UseProgressReturn } from \"@ark-ui/vue/progress\";\nimport { computed } from \"vue\";\nimport type { QuireKitProgressSlotProps, QuireKitProgressValueChangeDetails } from \"../../components/progress\";\nimport { normalizeProgressRange, normalizeProgressValue } from \"../../components/progress/normalize\";\nimport { useQuireKitLocale, useQuireKitMessages } from \"../locale-provider/context\";\nimport type { QuireProgressEmits, QuireProgressProps, QuireProgressSlots } from \"./types\";\n\nconst props = withDefaults(defineProps<QuireProgressProps>(), {\n min: 0,\n max: 100,\n formatOptions: () => ({ style: \"percent\" }),\n shape: \"linear\",\n size: \"md\",\n tone: \"primary\",\n showLabel: undefined,\n showValue: undefined\n});\nconst modelValue = defineModel<number | null | undefined>();\nconst emit = defineEmits<QuireProgressEmits>();\ndefineSlots<QuireProgressSlots>();\nconst text = useQuireKitMessages(\"progress\");\nconst locale = useQuireKitLocale();\n\n// Preserve the initial task value before projecting changing bounds into Ark.\n// Clipping a presentation must never replace the consumer's original progress.\nconst initialValue = props.defaultValue !== undefined ? props.defaultValue : props.shape === \"spinner\" ? null : 0;\nconst range = computed(() => normalizeProgressRange(props.min, props.max));\nconst value = computed(() => normalizeProgressValue(\n modelValue.value === undefined ? initialValue : modelValue.value,\n range.value.min,\n range.value.max\n));\nconst labelVisible = computed(() => props.showLabel ?? props.shape !== \"spinner\");\nconst valueVisible = computed(() => props.showValue ?? props.shape !== \"spinner\");\n\n/**\n * 为可见文本、插槽和辅助技术提供同一格式化结果。\n *\n * @param progress - Ark 提供的进度上下文。\n * @returns 不确定状态文案或 Intl 格式化数值。\n */\nfunction valueText(progress: UseProgressReturn[\"value\"]): string {\n return progress.indeterminate ? text.value.indeterminate : progress.valueAsString;\n}\n\n/**\n * 将 Ark 上下文投影为稳定的公共插槽数据。\n *\n * @param progress - Ark 提供的进度上下文。\n * @returns 有效数值、比例及统一文本。\n */\nfunction slotProps(progress: UseProgressReturn[\"value\"]): QuireKitProgressSlotProps {\n return {\n value: progress.value,\n percent: progress.indeterminate ? 0 : progress.percent,\n valueText: valueText(progress),\n indeterminate: progress.indeterminate\n };\n}\n\n/**\n * 同步状态机主动产生的变化;属性更新不会回写。\n *\n * @param details - Ark 报告的新数值。\n */\nfunction handleValueChange(details: QuireKitProgressValueChangeDetails): void {\n modelValue.value = details.value;\n emit(\"valueChange\", details);\n}\n</script>\n\n<template>\n <Progress.Root\n :model-value=\"value\"\n :min=\"range.min\"\n :max=\"range.max\"\n :locale=\"locale\"\n :format-options=\"formatOptions\"\n :class=\"['qk-progress', `qk-progress--${shape}`, `qk-progress--${size}`, `qk-progress--${tone}`]\"\n @value-change=\"handleValueChange\"\n >\n <Progress.Context v-slot=\"progress\">\n <template v-if=\"shape === 'linear'\">\n <div :class=\"['qk-progress__header', { 'qk-progress__label--hidden': !labelVisible && !valueVisible }]\">\n <Progress.Label :class=\"['qk-progress__label', { 'qk-progress__label--hidden': !labelVisible }]\">\n <slot name=\"label\" v-bind=\"slotProps(progress)\">{{ label }}</slot>\n </Progress.Label>\n <Progress.ValueText v-if=\"valueVisible\" class=\"qk-progress__value\">\n <slot name=\"value\" v-bind=\"slotProps(progress)\">{{ valueText(progress) }}</slot>\n </Progress.ValueText>\n </div>\n <Progress.Track\n :aria-labelledby=\"progress.getLabelProps().id\"\n :aria-valuetext=\"valueText(progress)\"\n class=\"qk-progress__track\"\n >\n <Progress.Range class=\"qk-progress__range\" />\n </Progress.Track>\n </template>\n\n <template v-else>\n <div class=\"qk-progress__circle-wrap\">\n <Progress.Circle\n :aria-labelledby=\"progress.getLabelProps().id\"\n :aria-valuetext=\"valueText(progress)\"\n class=\"qk-progress__circle\"\n >\n <Progress.CircleTrack class=\"qk-progress__circle-track\" />\n <Progress.CircleRange\n :opacity=\"!progress.indeterminate && progress.percent === 0 ? 0 : 1\"\n class=\"qk-progress__circle-range\"\n />\n </Progress.Circle>\n <Progress.ValueText v-if=\"valueVisible && shape === 'circle'\" class=\"qk-progress__circle-value\" :title=\"valueText(progress)\">\n <slot name=\"value\" v-bind=\"slotProps(progress)\">{{ valueText(progress) }}</slot>\n </Progress.ValueText>\n </div>\n <Progress.Label :class=\"[shape === 'circle' ? 'qk-progress__circle-label' : 'qk-progress__label', { 'qk-progress__label--hidden': !labelVisible }]\">\n <slot name=\"label\" v-bind=\"slotProps(progress)\">{{ label }}</slot>\n </Progress.Label>\n <Progress.ValueText v-if=\"valueVisible && shape === 'spinner'\" class=\"qk-progress__value\">\n <slot name=\"value\" v-bind=\"slotProps(progress)\">{{ valueText(progress) }}</slot>\n </Progress.ValueText>\n </template>\n </Progress.Context>\n </Progress.Root>\n</template>\n","<script setup lang=\"ts\">\nimport { computed } from 'vue';\nimport type { QuireKitShimmerProps } from '../../components/shimmer';\n\nconst props = withDefaults(defineProps<QuireKitShimmerProps>(), { active: true });\nconst style = computed(() => ({\n '--qk-shimmer-duration': props.duration !== undefined && Number.isFinite(props.duration) && props.duration > 0\n ? `${props.duration}ms` : undefined\n}));\n</script>\n\n<template>\n <span class=\"qk-shimmer\" :data-active=\"active\" :style=\"style\">{{ text }}</span>\n</template>\n","import type { QuireKitAttachmentAction, QuireKitAttachmentItem } from '../../components/attachment';\n\n/** 操作使用公共线性 Icon;资源身份由 FileIcon 单独表达。 */\nexport const attachmentActionIcons: Record<QuireKitAttachmentAction, string> = { open: 'externalLink', download: 'download', retry: 'refreshCw', remove: 'close' };\n\n/** @param item - Host-owned resource projection. @returns Only explicit, currently executable intents. */\nexport function attachmentActions(item: QuireKitAttachmentItem): QuireKitAttachmentAction[] {\n const state = item.state ?? 'ready';\n return [...new Set(item.actions ?? [])].filter(action => action === 'remove' || (action === 'retry'\n ? state === 'failed' || state === 'unavailable' : (action === 'open' || action === 'download') && state === 'ready'));\n}\n\n/** @param value - Optional upload percentage. @returns Safe visual percentage or unknown. */\nexport function attachmentProgress(value: number | undefined): number | null {\n return value !== undefined && Number.isFinite(value) ? Math.min(100, Math.max(0, value)) : null;\n}\n\n/** @param item - File metadata, never a native File controller. @returns Short type/size text without invented values. */\nexport function attachmentMeta(item: QuireKitAttachmentItem): string {\n const extension = item.name.includes('.') ? item.name.split('.').pop()! : '';\n const type = /^[a-z\\d+-]{1,10}$/i.test(extension) ? extension.toUpperCase() : '';\n if (item.size === undefined || !Number.isFinite(item.size) || item.size < 0) return type;\n const units = ['B', 'KB', 'MB', 'GB', 'TB'];\n const power = Math.min(4, Math.max(0, Math.floor(Math.log(item.size || 1) / Math.log(1024))));\n const size = `${Number((item.size / 1024 ** power).toFixed(power ? 1 : 0))} ${units[power]}`;\n return [type, size].filter(Boolean).join(' · ');\n}\n\n/** @param item - Host-provided MIME classification. @returns Whether an image resource can be displayed. */\nexport function attachmentIsImage(item: QuireKitAttachmentItem): boolean { return !!item.mediaType?.toLowerCase().startsWith('image/'); }\n","<script setup lang=\"ts\">\nimport { computed } from 'vue';\nimport type { QuireKitAttachmentAction, QuireKitAttachmentActionDetails, QuireKitAttachmentProps } from '../../components/attachment';\nimport QuireIconButton from '../button/icon-button.vue';\nimport QuireIcon from '../icon/icon.vue';\nimport { attachmentActions, attachmentActionIcons } from './model';\nimport { useQuireKitMessages } from '../locale-provider/context';\nconst props = defineProps<Pick<QuireKitAttachmentProps, 'item'> & { /** Place compact actions over media without a solid rectangular tray. */ overlay?: boolean }>();\nconst emit = defineEmits<{ /** 请求宿主执行当前允许的操作。 */ action: [details: QuireKitAttachmentActionDetails] }>();\nconst text = useQuireKitMessages('attachment');\nconst actions = computed(() => attachmentActions(props.item));\n/** Check current authority at activation, including a change between pointer down and click.\n * @param action - Requested host intent.\n */\nfunction request(action: QuireKitAttachmentAction): void {\n if (actions.value.includes(action)) emit('action', { attachmentId: props.item.id, action });\n}\n</script>\n<template>\n <div v-if=\"actions.length\" class=\"qk-attachment__actions\">\n <QuireIconButton v-for=\"action in actions\" :key=\"action\" class=\"qk-attachment__action\" size=\"xs\" :data-action=\"action\" :data-overlay=\"overlay || undefined\"\n :shape=\"overlay ? 'circle' : 'rounded'\" :variant=\"overlay ? 'solid' : 'ghost'\"\n :label=\"text.forFile(text[action], item.name)\" :title=\"text[action]\" @click=\"request(action)\">\n <QuireIcon class=\"qk-attachment__action-icon\" :name=\"attachmentActionIcons[action]\" :size=\"16\" />\n </QuireIconButton>\n </div>\n</template>\n","<script setup lang=\"ts\">\nimport { computed, ref, watch } from 'vue';\nimport type { QuireKitAttachmentActionDetails, QuireKitAttachmentProps } from '../../components/attachment';\nimport QuireIcon from '../icon/icon.vue';\nimport QuireFileIcon from '../file-icon/file-icon.vue';\nimport QuireIconButton from '../button/icon-button.vue';\nimport QuireImage from '../image/image.vue';\nimport QuireProgress from '../progress/progress.vue';\nimport QuireShimmer from '../shimmer/shimmer.vue';\nimport AttachmentActions from './actions.vue';\nimport { attachmentIsImage, attachmentMeta, attachmentProgress } from './model';\nimport { useQuireKitMessages } from '../locale-provider/context';\n\nconst props = withDefaults(defineProps<QuireKitAttachmentProps>(), { layout: 'list', preview: true });\nconst emit = defineEmits<{ /** 请求宿主执行操作,绝不直接修改集合或发起业务请求。 */ action: [details: QuireKitAttachmentActionDetails] }>();\nconst text = useQuireKitMessages('attachment');\nconst state = computed(() => props.item.state ?? 'ready');\nconst progress = computed(() => attachmentProgress(props.item.progress));\nconst isImage = computed(() => attachmentIsImage(props.item));\nconst imageSource = computed(() => isImage.value && state.value !== 'unavailable' ? props.item.thumbnailUrl || props.item.url : undefined);\nconst previewFailed = ref(false);\nwatch(imageSource, () => { previewFailed.value = false; });\nconst status = computed(() => props.item.statusText || (state.value !== 'ready' ? text.value[state.value] : previewFailed.value ? text.value.previewError : ''));\nconst thumbnailSize = computed(() => props.layout === 'grid' ? '100%' : 'var(--qk-attachment-preview-size)');\n\n</script>\n\n<template>\n <div class=\"qk-attachment\" :data-layout=\"layout\" :data-state=\"state\" :data-preview-failed=\"previewFailed\" :data-media=\"isImage ? 'image' : 'file'\" :data-attachment-id=\"item.id\" :data-source=\"item.source\">\n <div class=\"qk-attachment__preview\">\n <QuireImage v-if=\"imageSource\" :src=\"imageSource\" :alt=\"item.alt ?? item.name\" :title=\"item.name\"\n :width=\"thumbnailSize\" :height=\"layout === 'grid' ? 112 : thumbnailSize\" :preview=\"preview\" :preview-src=\"item.url || imageSource\"\n :preview-hint=\"false\" @error=\"previewFailed = true\" @load=\"previewFailed = false\">\n <template #placeholder><QuireIcon name=\"image\" :size=\"layout === 'inline' ? 16 : 20\" /></template>\n <template #error=\"{ retry }\">\n <QuireIconButton class=\"qk-attachment__action\" size=\"xs\" :label=\"text.forFile(text.previewRetry, item.name)\" :title=\"text.previewError\" @click=\"retry\"><QuireIcon class=\"qk-attachment__action-icon\" name=\"refreshCw\" :size=\"16\" /></QuireIconButton>\n </template>\n </QuireImage>\n <QuireFileIcon v-else :name=\"item.name\" :media-type=\"item.mediaType\" :size=\"layout === 'inline' ? 18 : 28\" />\n </div>\n <div class=\"qk-attachment__content\">\n <span class=\"qk-attachment__name\" :title=\"item.name\" dir=\"auto\">{{ item.name }}</span>\n <span v-if=\"layout !== 'inline' && !(layout === 'strip' && status) && attachmentMeta(item)\" class=\"qk-attachment__meta\">{{ attachmentMeta(item) }}</span>\n <span v-if=\"status\" class=\"qk-attachment__status\" :data-state=\"state\" :title=\"status\">\n <QuireShimmer v-if=\"state === 'uploading' && progress === null\" :text=\"status\" />\n <template v-else>{{ status }}<span v-if=\"state === 'uploading' && progress !== null\"> · {{ Math.round(progress) }}%</span></template>\n </span>\n </div>\n <AttachmentActions :item=\"item\" :overlay=\"layout === 'strip' && isImage\" @action=\"emit('action', $event)\" />\n <QuireProgress v-if=\"state === 'uploading' && progress !== null\" class=\"qk-attachment__progress\"\n :model-value=\"progress\" :label=\"text.forFile(text.uploading, item.name)\" size=\"sm\" :show-label=\"false\" :show-value=\"false\" />\n </div>\n</template>\n","import { computed, ref, shallowRef, watch } from \"vue\";\nimport type { QuireKitImagePreviewOptions } from \"../types\";\nimport type { ImagePreviewGroupMember, ImagePreviewGroupState } from \"./types\";\n\n/**\n * Collects explicitly registered images without observing or scanning the document.\n * @param accepts - Container boundary check, evaluated only when preparing an open group.\n * @returns State consumed by the existing ImagePreview component.\n */\nexport function useImagePreviewGroup(accepts: (element: HTMLElement) => boolean): ImagePreviewGroupState {\n const members = shallowRef<readonly ImagePreviewGroupMember[]>([]);\n const ordered = shallowRef<readonly ImagePreviewGroupMember[]>([]);\n const opened = ref(false);\n const activeId = ref(\"\");\n const opener = shallowRef<HTMLElement | null>(null);\n const options = shallowRef<QuireKitImagePreviewOptions>();\n const eligible = computed(() => members.value.filter(member => member.enabled.value));\n const items = computed(() => ordered.value.filter(member => member.enabled.value).map(member => ({ ...member.item.value, id: member.id })));\n const index = computed({\n get: () => Math.max(0, items.value.findIndex(item => item.id === activeId.value)),\n set: (value: number) => { const item = items.value[value]; if (item) activeId.value = item.id; }\n });\n\n /** Orders the current eligible members at open or membership-change boundaries. */\n function refresh(): void {\n ordered.value = eligible.value.filter(member => member.element.value && accepts(member.element.value)).sort((a, b) => {\n const relation = a.element.value!.compareDocumentPosition(b.element.value!);\n return relation & 4 ? -1 : relation & 2 ? 1 : 0;\n });\n }\n /** @param member - Mounted resource owner. @returns Unregister callback tied to its lifecycle. */\n function register(member: ImagePreviewGroupMember): () => void {\n members.value = [...members.value, member];\n return () => {\n ordered.value = ordered.value.filter(current => current !== member);\n members.value = members.value.filter(current => current !== member);\n };\n }\n /** @param id - Requested member. @param trigger - Original image button. @param overrides - Image-specific options. @returns Whether this container owns the requested image. */\n function open(id: string, trigger: HTMLElement, overrides?: QuireKitImagePreviewOptions): boolean {\n refresh();\n if (!items.value.some(item => item.id === id)) return false;\n activeId.value = id;\n opener.value = trigger;\n options.value = overrides;\n opened.value = true;\n return true;\n }\n // Resource metadata stays reactive without DOM reads. Only changes to membership\n // reorder an already-open group; navigation and transform gestures never do so.\n watch(eligible, () => { if (opened.value) refresh(); }, { flush: \"post\" });\n watch(items, (next, previous) => {\n if (!opened.value) return;\n if (!next.length) { opened.value = false; return; }\n if (!next.some(item => item.id === activeId.value)) {\n const previousIndex = Math.max(0, previous.findIndex(item => item.id === activeId.value));\n activeId.value = next[Math.min(previousIndex, next.length - 1)]!.id;\n }\n }, { flush: \"sync\" });\n /** @returns Original trigger when it remains connected to its document. */\n function finalFocusEl(): HTMLElement | null { return opener.value?.isConnected ? opener.value : null; }\n return { context: { register, open }, refresh, items, opened, index, options, finalFocusEl };\n}\n","/** @param viewport - Native scrolling row. @param rtl - Current physical direction. @returns Logical distance from the start, clamped against overscroll. */\nexport function readScrollOffset(viewport: HTMLElement, rtl: boolean): number {\n return Math.max(0, Math.min(viewport.scrollWidth - viewport.clientWidth, rtl ? -viewport.scrollLeft : viewport.scrollLeft));\n}\n\n/** @param viewport - Native scrolling row. @param value - Logical distance from the start. @param rtl - Current physical direction. @param behavior - Native scrolling behavior. */\nexport function writeScrollOffset(viewport: HTMLElement, value: number, rtl: boolean, behavior: ScrollBehavior): void {\n const offset = Math.max(0, Math.min(viewport.scrollWidth - viewport.clientWidth, value));\n viewport.scrollTo({ left: rtl ? -offset : offset, behavior });\n}\n\n/** @param target - Wheel target within the viewport. @param viewport - Owner's scroll boundary. @returns Whether a field or nested scroller owns the original wheel gesture. */\nexport function wheelBelongsToChild(target: Element, viewport: HTMLElement): boolean {\n const owner = target.closest('input, textarea, select, [contenteditable=\"true\"], [role=\"slider\"], [role=\"spinbutton\"], [role=\"combobox\"], [role=\"listbox\"], [role=\"menu\"], [role=\"dialog\"], [data-scope=\"popover\"][data-part=\"content\"]');\n if (owner && viewport.contains(owner)) return true;\n for (let current: Element | null = target; current && current !== viewport; current = current.parentElement) {\n const style = current.ownerDocument.defaultView?.getComputedStyle(current);\n if (!style) continue;\n if (/(auto|scroll)/u.test(style.overflowX) && current.scrollWidth > current.clientWidth) return true;\n if (/(auto|scroll)/u.test(style.overflowY) && current.scrollHeight > current.clientHeight) return true;\n }\n return false;\n}\n\n/** @param target - Real focused field or action. @param viewport - The sole scroll owner. @param rtl - Current physical direction. */\nexport function revealElement(target: HTMLElement, viewport: HTMLElement, rtl: boolean): void {\n const item = target.getBoundingClientRect();\n const bounds = viewport.getBoundingClientRect();\n const start = item.left - bounds.left;\n const end = item.right - bounds.right;\n const delta = item.width > bounds.width ? (rtl ? end : start) : start < 0 ? start : end > 0 ? end : 0;\n if (Math.abs(delta) > 0.5) viewport.scrollTo({ left: viewport.scrollLeft + delta, behavior: \"instant\" });\n}\n","import { computed, nextTick, onBeforeUnmount, shallowRef, watch } from \"vue\";\nimport { readScrollOffset, revealElement, wheelBelongsToChild, writeScrollOffset } from \"./geometry\";\nimport type { HorizontalScrollBindings, HorizontalScrollOptions } from \"./types\";\n\n/**\n * Owns horizontal overflow without adding a second horizontal strip or keyboard registry.\n * @param options - Reactive root and public horizontal-scrolling options.\n * @returns Viewport refs, arrow state and delegated native interaction handlers.\n */\nexport function useHorizontalScroll(options: HorizontalScrollOptions): HorizontalScrollBindings {\n const viewport = shallowRef<HTMLElement | null>(null);\n const content = shallowRef<HTMLElement | null>(null);\n const overflowing = shallowRef(false);\n const canPrevious = shallowRef(false);\n const canNext = shallowRef(false);\n const rtl = shallowRef(false);\n const enabled = computed(() => options.enabled());\n let frame: number | undefined;\n let ownerWindow: Window | undefined;\n let resizeObserver: ResizeObserver | undefined;\n let mutationObserver: MutationObserver | undefined;\n let disposed = false;\n let geometry = \"\";\n\n /** Reconciles logical edges without affecting the current scroll position. */\n function updateEdges(): void {\n const element = viewport.value;\n if (!element || !enabled.value || !overflowing.value) {\n canPrevious.value = canNext.value = false;\n return;\n }\n const offset = readScrollOffset(element, rtl.value);\n canPrevious.value = offset > 1;\n canNext.value = offset < element.scrollWidth - element.clientWidth - 1;\n }\n\n /** @param target - Focus target whose owning horizontal strip must match this root. */\n function reveal(target: EventTarget | null): void {\n const element = viewport.value;\n const constructor = element?.ownerDocument.defaultView?.HTMLElement;\n if (!element || !enabled.value || !constructor || !(target instanceof constructor)) return;\n if (!element.contains(target) || !options.ownsFocus(target)) return;\n const popup = target.closest('[data-scope=\"popover\"][data-part=\"content\"], [role=\"menu\"], [role=\"listbox\"]');\n if (popup && element.contains(popup)) return;\n revealElement(target, element, rtl.value);\n updateEdges();\n }\n\n /** Reads intrinsic content against the full root budget, independent of arrows. */\n function measure(): void {\n frame = undefined;\n const root = options.root.value;\n const row = content.value;\n const style = root && ownerWindow?.getComputedStyle(root);\n rtl.value = (options.direction() ?? style?.direction) === \"rtl\";\n const width = root && style ? root.clientWidth - (Number.parseFloat(style.paddingLeft) || 0) - (Number.parseFloat(style.paddingRight) || 0) : 0;\n overflowing.value = enabled.value && width > 0 && !!row && row.scrollWidth > width + 1;\n updateEdges();\n const nextGeometry = `${width}:${row?.scrollWidth}:${viewport.value?.clientWidth}`;\n if (nextGeometry !== geometry) {\n geometry = nextGeometry;\n reveal(root?.ownerDocument.activeElement ?? null);\n }\n }\n\n /** Coalesces resize and content changes to avoid reading during observer delivery. */\n function scheduleMeasure(): void {\n if (!disposed && frame === undefined) frame = ownerWindow?.requestAnimationFrame(measure);\n }\n\n /** Releases the exact observers and animation frame belonging to one mounted viewport. */\n function disconnect(): void {\n resizeObserver?.disconnect();\n mutationObserver?.disconnect();\n if (frame !== undefined) ownerWindow?.cancelAnimationFrame(frame);\n frame = undefined;\n }\n\n watch([options.root, viewport, content, enabled, options.direction], () => {\n disconnect();\n const root = options.root.value;\n const element = viewport.value;\n const row = content.value;\n ownerWindow = root?.ownerDocument.defaultView ?? undefined;\n if (!root || !element || !row || !ownerWindow || !enabled.value) { overflowing.value = false; return; }\n resizeObserver = new ResizeObserver(scheduleMeasure);\n for (const target of [root, element, row]) resizeObserver.observe(target);\n mutationObserver = new MutationObserver(scheduleMeasure);\n mutationObserver.observe(row, { subtree: true, childList: true, characterData: true, attributes: true, attributeFilter: [\"class\", \"style\", \"hidden\", \"dir\"] });\n mutationObserver.observe(root, { attributes: true, attributeFilter: [\"class\", \"style\", \"hidden\", \"dir\"] });\n // Inherited direction can change without resizing either the root or row.\n for (let ancestor = root.parentElement; ancestor; ancestor = ancestor.parentElement) {\n mutationObserver.observe(ancestor, { attributes: true, attributeFilter: [\"class\", \"style\", \"dir\"] });\n }\n scheduleMeasure();\n }, { flush: \"post\" });\n watch(overflowing, () => { void nextTick(scheduleMeasure); });\n onBeforeUnmount(() => { disposed = true; disconnect(); });\n\n /** @param step - Previous or next logical screen. */\n function scrollPage(step: -1 | 1): void {\n const element = viewport.value;\n if (!element || !enabled.value) return;\n const reduced = ownerWindow?.matchMedia(\"(prefers-reduced-motion: reduce)\").matches;\n const amount = Math.max(1, element.clientWidth * 0.8);\n writeScrollOffset(element, readScrollOffset(element, rtl.value) + step * amount, rtl.value, reduced ? \"instant\" : \"smooth\");\n updateEdges();\n }\n\n /** @param event - Native field or action focus entering the viewport. */\n function revealFocused(event: FocusEvent): void { reveal(event.target); }\n\n /** @param event - Vertical wheel input that no child control or native horizontal gesture owns. */\n function handleWheel(event: WheelEvent): void {\n const element = viewport.value;\n const constructor = element?.ownerDocument.defaultView?.Element;\n if (!element || !enabled.value || !overflowing.value || !event.cancelable || event.ctrlKey || event.metaKey || event.altKey || event.shiftKey || event.deltaX !== 0 || event.deltaY === 0) return;\n if (!constructor || !(event.target instanceof constructor) || wheelBelongsToChild(event.target, element)) return;\n const multiplier = event.deltaMode === 2 ? element.clientWidth : event.deltaMode === 1 ? Number.parseFloat(ownerWindow?.getComputedStyle(element).lineHeight ?? \"\") || 20 : 1;\n const offset = readScrollOffset(element, rtl.value);\n const next = Math.max(0, Math.min(element.scrollWidth - element.clientWidth, offset + event.deltaY * multiplier));\n if (Math.abs(next - offset) < 0.5) return;\n event.preventDefault();\n writeScrollOffset(element, next, rtl.value, \"instant\");\n updateEdges();\n }\n\n return { viewport, content, enabled, overflowing, canPrevious, canNext, rtl, scrollPage, revealFocused, handleWheel, updateEdges };\n}\n","import { quireKitEditorIconData } from \"../../../components/icon/catalog\";\n\n/** Physical left arrow; The owner itself resolves logical direction exactly once. */\nexport const scrollLeftIcon = Object.freeze({ ...quireKitEditorIconData.chevronLeft, mirrorInRtl: false });\n\n/** Physical right arrow; structural controls remain visible without an IconProvider. */\nexport const scrollRightIcon = Object.freeze({ ...quireKitEditorIconData.chevronRight, mirrorInRtl: false });\n","<script setup lang=\"ts\">\nimport { shallowRef } from 'vue';\nimport QuireIconButton from '../../button/icon-button.vue';\nimport QuireIcon from '../../icon/icon.vue';\nimport { useHorizontalScroll } from './use-scroll';\nimport { scrollLeftIcon, scrollRightIcon } from './icons';\nimport { useQuireKitMessages } from '../../locale-provider/context';\n\nconst props = withDefaults(defineProps<{ /** Enable one native scroll row without remounting its items. */ enabled?: boolean;\n /** Accessible previous-page label; defaults to the attachment wording. */ previousLabel?: string;\n /** Accessible next-page label; defaults to the attachment wording. */ nextLabel?: string }>(), { enabled: false });\n// Attachment and file lists are the strip's only owners, so their shared wording is the fallback.\nconst text = useQuireKitMessages('attachment');\nconst root = shallowRef<HTMLElement | null>(null);\nconst { viewport, content, overflowing, canPrevious, canNext, rtl, scrollPage, revealFocused, handleWheel, updateEdges } = useHorizontalScroll({\n root, enabled: () => props.enabled, direction: () => undefined,\n ownsFocus: target => target.closest('[data-qk-horizontal-strip]') === root.value\n});\n/** Keep the current editor focus during pointer scrolling; keyboard buttons stay focusable.\n * @param event - Pointer pressing a page control.\n */\nfunction preserveFocus(event: PointerEvent): void { if (event.pointerType === 'mouse' && event.button === 0) event.preventDefault(); }\n</script>\n<template>\n <div ref=\"root\" class=\"qk-horizontal-strip\" data-qk-horizontal-strip :data-enabled=\"enabled\" :data-overflow=\"overflowing\" @focusin=\"revealFocused\">\n <div ref=\"viewport\" class=\"qk-horizontal-strip__viewport\" @scroll.passive=\"updateEdges\" @wheel=\"handleWheel\">\n <div ref=\"content\" class=\"qk-horizontal-strip__content\"><slot /></div>\n </div>\n <QuireIconButton v-if=\"enabled && overflowing\" class=\"qk-horizontal-strip__previous\" shape=\"circle\" size=\"xs\" variant=\"outline\"\n :label=\"previousLabel ?? text.previous\" :disabled=\"!canPrevious\" @pointerdown=\"preserveFocus\" @click=\"scrollPage(-1)\">\n <QuireIcon :data=\"rtl ? scrollRightIcon : scrollLeftIcon\" :size=\"12\" />\n </QuireIconButton>\n <QuireIconButton v-if=\"enabled && overflowing\" class=\"qk-horizontal-strip__next\" shape=\"circle\" size=\"xs\" variant=\"outline\"\n :label=\"nextLabel ?? text.next\" :disabled=\"!canNext\" @pointerdown=\"preserveFocus\" @click=\"scrollPage(1)\">\n <QuireIcon :data=\"rtl ? scrollLeftIcon : scrollRightIcon\" :size=\"12\" />\n </QuireIconButton>\n </div>\n</template>\n","<script setup lang=\"ts\">\nimport { computed, nextTick, provide, shallowRef, watch } from 'vue';\nimport type { QuireKitAttachmentActionDetails, QuireKitAttachmentsProps } from '../../components/attachment';\nimport QuireAttachment from './attachment.vue';\nimport AttachmentActions from './actions.vue';\nimport QuireImagePreview from '../image-preview/image-preview.vue';\nimport { imagePreviewGroupKey } from '../image-preview/group/context';\nimport { useImagePreviewGroup } from '../image-preview/group/use';\nimport type { ImagePreviewGroupMember } from '../image-preview/group/types';\nimport { useQuireKitMessages } from '../locale-provider/context';\nimport HorizontalStrip from '../shared/horizontal-scroll/strip.vue';\n\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<QuireKitAttachmentsProps>(), { layout: 'list', preview: true });\nconst emit = defineEmits<{ /** 转发附件业务操作;集合变化必须由宿主提供。 */ action: [details: QuireKitAttachmentActionDetails] }>();\nconst root = shallowRef<HTMLElement | null>(null);\nconst gallery = useImagePreviewGroup(ownsImage);\nconst resources = new Map<string, string>();\nprovide(imagePreviewGroupKey, { ...gallery.context, register });\nconst text = useQuireKitMessages('attachment');\nconst label = computed(() => props.label ?? text.value.attachments);\n\n/** @param element - Explicitly registered Image root. @returns Whether this is its nearest attachment collection. */\nfunction ownsImage(element: HTMLElement): boolean { return element.closest('.qk-attachments') === root.value; }\n/** @returns A surviving opener or the stable collection after resource removal. */\nfunction finalFocusEl(): HTMLElement | null { return gallery.finalFocusEl() ?? root.value; }\n/** Register ownership once at mount; duplicate URLs must not conflate two files.\n * @param member - Existing Image's instance identity and resource refs.\n * @returns Matching unregistration and ownership cleanup.\n */\nfunction register(member: ImagePreviewGroupMember): () => void {\n const id = member.element.value?.closest<HTMLElement>('[data-attachment-id]')?.dataset.attachmentId;\n if (id !== undefined) resources.set(member.id, id);\n const unregister = gallery.context.register(member);\n return () => { unregister(); resources.delete(member.id); };\n}\nconst activeItem = computed(() => {\n const image = gallery.items.value[gallery.index.value];\n return image ? props.items.find(item => item.id === resources.get(image.id)) : undefined;\n});\n\n// Only membership changes inspect the focused item. Progress and streamed text\n// never scan the DOM; a remote removal must not steal unrelated keyboard focus.\nwatch(() => props.items.map(item => item.id), async (ids, previous) => {\n if (ids.length === previous.length && ids.every((id, index) => id === previous[index])) return;\n const active = root.value?.ownerDocument.activeElement as HTMLElement | null;\n const removed = active?.closest<HTMLElement>('[data-attachment-id]');\n const index = root.value?.contains(removed ?? null) && removed && !ids.includes(removed.dataset.attachmentId!) && !gallery.opened.value\n ? previous.indexOf(removed.dataset.attachmentId!) : -1;\n await nextTick();\n if (gallery.opened.value) gallery.refresh();\n if (index < 0) return;\n const current = root.value?.ownerDocument.activeElement;\n if (current && current !== root.value?.ownerDocument.body && current !== active) return;\n const remaining = root.value?.querySelectorAll<HTMLElement>('[data-attachment-id]');\n const target = remaining?.[Math.min(index, remaining.length - 1)];\n (target?.querySelector<HTMLElement>('button:not(:disabled)') ?? root.value)?.focus({ preventScroll: true });\n}, { flush: 'pre' });\n</script>\n\n<template>\n <div ref=\"root\" v-bind=\"$attrs\" class=\"qk-attachments\" :data-layout=\"layout\" role=\"group\" :aria-label=\"label\" tabindex=\"-1\">\n <HorizontalStrip :enabled=\"layout === 'strip'\" :previous-label=\"text.previous\" :next-label=\"text.next\">\n <div class=\"qk-attachments__items\">\n <QuireAttachment v-for=\"item in items\" :key=\"item.id\" :item=\"item\" :layout=\"layout\" :preview=\"preview\" @action=\"emit('action', $event)\" />\n </div>\n </HorizontalStrip>\n </div>\n <QuireImagePreview :items=\"gallery.items.value\" v-model:open=\"gallery.opened.value\" v-model:index=\"gallery.index.value\" :final-focus-el=\"finalFocusEl\">\n <template #actions><AttachmentActions v-if=\"activeItem\" :item=\"activeItem\" @action=\"emit('action', $event)\" /></template>\n </QuireImagePreview>\n</template>\n","<script setup lang=\"ts\">\nimport { Checkbox } from \"@ark-ui/vue/checkbox\";\nimport { computed, useId } from \"vue\";\nimport type {\n QuireKitCheckboxSize,\n QuireKitCheckboxState\n} from \"../../components/checkbox\";\nimport QuireIcon from \"../icon/icon.vue\";\n\n/** Vue Checkbox 的公开属性。 */\ninterface Props {\n /** 始终可见并参与点击目标的标签。 */\n readonly label: string;\n /** 未受控使用时的初始状态。 */\n readonly defaultChecked?: QuireKitCheckboxState;\n /** 原生表单字段名。 */\n readonly name?: string;\n /** 原生表单提交值。 */\n readonly value?: string;\n /** 关联的 form id。 */\n readonly form?: string;\n /** 标签下方的补充说明。 */\n readonly description?: string;\n /** 控件与文字的公开尺寸。 */\n readonly size?: QuireKitCheckboxSize;\n /** 是否禁用交互并退出原生表单提交。 */\n readonly disabled?: boolean;\n /** 是否允许聚焦与读取但禁止修改。 */\n readonly readOnly?: boolean;\n /** 是否为必填字段。 */\n readonly required?: boolean;\n /** 是否处于校验错误状态。 */\n readonly invalid?: boolean;\n}\n\n/** Checkbox 的可替换文字内容。 */\ninterface Slots {\n /** 替换可见标签,保留标签关联与点击行为。 */\n readonly default?: () => unknown;\n /** 替换补充说明。 */\n readonly description?: () => unknown;\n}\n\nconst props = withDefaults(defineProps<Props>(), {\n defaultChecked: false,\n size: \"sm\",\n disabled: false,\n readOnly: false,\n required: false,\n invalid: false\n});\n// Preserve absence so the uncontrolled default is not replaced by Boolean prop casting.\nconst checked = defineModel<QuireKitCheckboxState | undefined>(\"checked\", { default: undefined });\ndefineSlots<Slots>();\n\nconst generatedId = useId();\nconst descriptionId = computed(() => `qk-checkbox-${generatedId}-description`);\nconst optionalRootProps = computed(() => ({\n ...(checked.value === undefined ? {} : { checked: checked.value }),\n ...(props.name === undefined ? {} : { name: props.name }),\n ...(props.value === undefined ? {} : { value: props.value }),\n ...(props.form === undefined ? {} : { form: props.form })\n}));\nconst currentChecked = computed(() => checked.value ?? props.defaultChecked);\n\n/**\n * 把 Ark 的下一状态同步给可选的 v-model。\n *\n * @param value - 用户交互后产生的 checked 状态。\n */\nfunction updateChecked(value: QuireKitCheckboxState): void {\n checked.value = value;\n}\n</script>\n\n<template>\n <Checkbox.Root\n v-bind=\"optionalRootProps\"\n :default-checked=\"defaultChecked\"\n :disabled=\"disabled\"\n :read-only=\"readOnly\"\n :required=\"required\"\n :invalid=\"invalid\"\n :class=\"[\n 'qk-checkbox',\n `qk-checkbox--${size}`,\n invalid && 'qk-checkbox--invalid',\n disabled && 'qk-checkbox--disabled'\n ]\"\n @update:checked=\"updateChecked\"\n >\n <Checkbox.HiddenInput\n :aria-describedby=\"description === undefined && !$slots.description ? undefined : descriptionId\"\n :aria-checked=\"currentChecked === 'indeterminate' ? 'mixed' : undefined\"\n :indeterminate=\"currentChecked === 'indeterminate'\"\n />\n <Checkbox.Control :class=\"['qk-checkbox__control', `qk-checkbox__control--${size}`]\">\n <Checkbox.Indicator class=\"qk-checkbox__indicator\">\n <QuireIcon name=\"check\" :size=\"12\" />\n </Checkbox.Indicator>\n <Checkbox.Indicator indeterminate class=\"qk-checkbox__indicator\">\n <span aria-hidden=\"true\" class=\"qk-checkbox__mixed-mark\" />\n </Checkbox.Indicator>\n </Checkbox.Control>\n <span class=\"qk-checkbox__content\">\n <Checkbox.Label class=\"qk-checkbox__label\">\n <slot>{{ label }}</slot>\n <span v-if=\"required\" aria-hidden=\"true\" class=\"qk-checkbox__required\">*</span>\n </Checkbox.Label>\n <span\n v-if=\"description !== undefined || $slots.description\"\n :id=\"descriptionId\"\n class=\"qk-checkbox__description\"\n >\n <slot name=\"description\">{{ description }}</slot>\n </span>\n </span>\n </Checkbox.Root>\n</template>\n","<script setup lang=\"ts\">\nimport { Collapsible } from \"@ark-ui/vue/collapsible\";\nimport { computed, shallowRef, watch } from \"vue\";\nimport type { QuireKitCollapsibleSize, QuireKitCollapsibleVariant, QuireKitCollapsibleTriggerVariant } from \"../../components/collapsible\";\nimport QuireIcon from \"../icon/icon.vue\";\n\n/** Vue Collapsible 的公开属性。 */\ninterface Props {\n /** 展开触发器的主要文字。 */\n readonly title: string;\n /** 标题下方的可选说明。 */\n readonly description?: string;\n /** 未受控使用时的初始展开状态。 */\n readonly defaultOpen?: boolean;\n /** 触发器高度与排版尺寸。 */\n readonly size?: QuireKitCollapsibleSize;\n /** outline 保留独立表面;plain 适合内容中的紧凑展开行。 */\n readonly variant?: QuireKitCollapsibleVariant;\n /** ghost 保留背景反馈;text 保持透明,适合正文中的轻量展开入口。 */\n readonly triggerVariant?: QuireKitCollapsibleTriggerVariant;\n /** end 将箭头置于末端;inline 紧跟标题,适合内容摘要。 */\n readonly indicatorPlacement?: 'end' | 'inline';\n /** 是否禁止展开或收起。 */\n readonly disabled?: boolean;\n /** 是否延迟挂载首次未展开的内容。 */\n readonly lazyMount?: boolean;\n /** 收起后是否卸载内容。 */\n readonly unmountOnExit?: boolean;\n}\n\n/** Collapsible 的可替换内容位置。 */\ninterface Slots {\n /** 替换触发器文字,同时保留按钮与指示图标。 */\n readonly trigger?: () => unknown;\n /** 展开区域内容。 */\n readonly default?: () => unknown;\n}\n\nconst props = withDefaults(defineProps<Props>(), {\n defaultOpen: false,\n size: \"sm\",\n variant: \"outline\",\n triggerVariant: \"ghost\",\n indicatorPlacement: \"end\",\n disabled: false,\n lazyMount: false,\n unmountOnExit: false\n});\nconst open = defineModel<boolean | undefined>(\"open\", { default: undefined });\ndefineSlots<Slots>();\nconst content = shallowRef<HTMLElement | null>(null);\n\nconst optionalRootProps = computed(() => ({\n ...(open.value === undefined ? { defaultOpen: props.defaultOpen } : { open: open.value })\n}));\n\nwatch(open, value => {\n const element = content.value;\n if (value === false && element?.contains(element.ownerDocument.activeElement)) {\n element.closest('.qk-collapsible')?.querySelector<HTMLButtonElement>('[data-part=\"trigger\"]')?.focus({ preventScroll: true });\n }\n});\n\n/** 把 Ark 的下一展开状态同步给可选的 v-model。\n * @param value - Ark 请求的新状态。\n */\nfunction updateOpen(value: boolean): void {\n open.value = value;\n}\n\n/** Keeps pointer collapse focus on the still-visible controller, including Safari.\n * @param event - Trigger activation.\n */\nfunction focusTrigger(event: MouseEvent): void {\n (event.currentTarget as HTMLElement).focus({ preventScroll: true });\n}\n</script>\n\n<template>\n <Collapsible.Root\n v-bind=\"optionalRootProps\"\n :disabled=\"disabled\"\n :lazy-mount=\"lazyMount\"\n :unmount-on-exit=\"unmountOnExit\"\n :class=\"['qk-collapsible', variant === 'plain' && 'qk-collapsible--plain']\"\n @update:open=\"updateOpen\"\n >\n <Collapsible.Trigger\n :disabled=\"disabled\"\n :class=\"['qk-collapsible__trigger', `qk-collapsible__trigger--${size}`, `qk-collapsible__trigger--${triggerVariant}`, variant === 'plain' && 'qk-collapsible__trigger--plain', indicatorPlacement === 'inline' && 'qk-collapsible__trigger--inline']\"\n @click=\"focusTrigger\"\n >\n <span :class=\"['qk-collapsible__heading', indicatorPlacement === 'inline' && 'qk-collapsible__heading--inline']\">\n <slot name=\"trigger\">{{ title }}</slot>\n <span v-if=\"description !== undefined\" class=\"qk-collapsible__description\">{{ description }}</span>\n </span>\n <Collapsible.Indicator class=\"qk-collapsible__indicator\">\n <QuireIcon name=\"chevronRight\" :size=\"16\" />\n </Collapsible.Indicator>\n </Collapsible.Trigger>\n <Collapsible.Content :class=\"['qk-collapsible__content', variant === 'plain' && 'qk-collapsible__content--plain']\">\n <div ref=\"content\" :class=\"['qk-collapsible__content-inner', variant === 'plain' && 'qk-collapsible__content-inner--plain']\">\n <slot />\n </div>\n </Collapsible.Content>\n </Collapsible.Root>\n</template>\n","import { computed } from \"vue\";\nimport { useModalSurfaceOwner } from \"./use-modal-owner\";\n\n/**\n * Keeps closed popup DOM inside its modal owner until the popup is exposed.\n * This preserves DOM state while preventing the modal's outside-content isolation\n * from hiding a body portal before its controlling trigger is expanded.\n * @param portalled - Whether the consumer enables portal rendering.\n * @param open - The popup's current controlled or machine state.\n * @returns Modal ownership and the reactive Teleport disabled state.\n */\nexport function useModalPortal(portalled: () => boolean, open: () => boolean) {\n const owner = useModalSurfaceOwner();\n const hasModalOwner = owner.present;\n const disabled = computed(() => !portalled() || (hasModalOwner && (!open() || !owner.ready.value)));\n return { hasModalOwner, disabled };\n}\n","import { computed, inject, provide, type ComputedRef, type InjectionKey } from \"vue\";\n\nconst fieldLabelKey: InjectionKey<ComputedRef<string | undefined>> = Symbol(\"QuireFieldLabel\");\n\n/**\n * Supplies the nearest visible field label without coupling inputs to DOM structure.\n * @param label - Reactive label owned by this field.\n */\nexport function provideFieldLabel(label: () => string): void {\n provide(fieldLabelKey, computed(label));\n}\n\n/** @returns Nearest field label, including through a provider-preserving Teleport. */\nexport function useFieldLabel(): ComputedRef<string | undefined> {\n return inject(fieldLabelKey, computed(() => undefined));\n}\n","const keyNames: Readonly<Record<string, string>> = { \"⌘\": \"Command\", \"⌥\": \"Option\", \"⌃\": \"Control\", \"⇧\": \"Shift\", \"↵\": \"Enter\", \"↑\": \"Arrow up\", \"↓\": \"Arrow down\", \"←\": \"Arrow left\", \"→\": \"Arrow right\", \"Esc\": \"Escape\" };\n/**\n * Expands ambiguous key symbols without guessing the host platform.\n * @param keys - Explicit key sequence supplied by the host.\n * @returns A readable shortcut name, replaceable through the label prop.\n */\nexport function keyLabel(keys: readonly string[]): string {\n return keys.map(key => keyNames[key] ?? key).join(\" + \");\n}\n\n/**\n * Writes a shortcut as one inline chord for menus and tooltips.\n * @param keys - Explicit key sequence supplied by the host.\n * @returns Modifier symbols read as one chord (`⇧⌘S`); named keys keep separators (`Ctrl+Shift+S`).\n */\nexport function chordText(keys: readonly string[]): string {\n return keys.join(keys.slice(0, -1).every(key => /^[⌘⌥⌃⇧]$/u.test(key)) ? \"\" : \"+\");\n}\n","import { onBeforeUnmount, watch, type Ref } from \"vue\";\nimport type { TextareaAutoResizeOptions } from \"./types\";\n\nconst metricProperties = [\n \"width\", \"box-sizing\", \"font-family\", \"font-size\", \"font-weight\", \"font-style\",\n \"font-variant\", \"line-height\", \"letter-spacing\", \"word-spacing\", \"text-indent\",\n \"text-transform\", \"tab-size\", \"white-space\", \"overflow-wrap\", \"word-break\",\n \"padding-top\", \"padding-bottom\", \"padding-left\", \"padding-right\"\n] as const;\n\n/**\n * Sizes a native textarea without collapsing the focused element to measure it.\n * @param root - Component wrapper containing the native field.\n * @param value - Current displayed text.\n * @param options - Reactive minimum/maximum height policy.\n * @param appearance - Reactive density/count state that changes text metrics.\n */\nexport function useTextareaAutoResize(\n root: Ref<HTMLElement | undefined>,\n value: () => string,\n options: () => TextareaAutoResizeOptions,\n appearance: () => unknown\n): void {\n let observer: ResizeObserver | undefined;\n let mirror: HTMLTextAreaElement | undefined;\n let frame: number | undefined;\n let view: Window | null = null;\n let metrics = \"\";\n let releaseFonts: (() => void) | undefined;\n\n /** Releases nodes and callbacks belonging to the previous mounted field. */\n function release(): void {\n observer?.disconnect();\n observer = undefined;\n releaseFonts?.();\n releaseFonts = undefined;\n if (frame !== undefined) view?.cancelAnimationFrame(frame);\n frame = undefined;\n mirror?.remove();\n mirror = undefined;\n metrics = \"\";\n }\n\n /** Schedules one measurement after the native value and CSS have settled. */\n function schedule(): void {\n if (frame !== undefined || !view) return;\n frame = view.requestAnimationFrame(() => { frame = undefined; measure(); });\n }\n\n /** Measures an isolated copy, then updates only the visible field's height. */\n function measure(): void {\n const field = root.value?.querySelector(\"textarea\");\n if (!field || !view || !mirror) return;\n const policy = options();\n if (!policy.enabled) {\n field.style.removeProperty(\"height\");\n field.style.removeProperty(\"min-height\");\n return;\n }\n if (field.getBoundingClientRect().width === 0) return;\n const style = view.getComputedStyle(field);\n metrics = metricProperties.map(key => style.getPropertyValue(key)).join(\"|\");\n for (const key of metricProperties) mirror.style.setProperty(key, style.getPropertyValue(key));\n mirror.value = field.value;\n const lineHeight = Number.parseFloat(style.lineHeight);\n if (!Number.isFinite(lineHeight)) return;\n const padding = Number.parseFloat(style.paddingTop) + Number.parseFloat(style.paddingBottom);\n const minimum = Math.max(1, Math.floor(policy.rows)) * lineHeight;\n const maximum = policy.maxRows === undefined ? Infinity\n : Math.max(minimum, Math.max(1, Math.floor(policy.maxRows)) * lineHeight);\n // scrollHeight includes padding; convert once to the field's CSS box space.\n const contentHeight = Math.max(minimum, Math.min(maximum, mirror.scrollHeight - padding));\n const height = contentHeight + (style.boxSizing === \"border-box\" ? padding : 0);\n field.style.minHeight = \"0px\";\n field.style.height = `${Math.ceil(height)}px`;\n }\n\n watch(root, element => {\n release();\n view = element?.ownerDocument.defaultView ?? null;\n if (!element || !view) return;\n mirror = element.ownerDocument.createElement(\"textarea\");\n mirror.tabIndex = -1;\n mirror.setAttribute(\"aria-hidden\", \"true\");\n mirror.style.cssText = \"position:fixed;left:-10000px;top:0;height:0;min-height:0;max-height:none;border:0;visibility:hidden;pointer-events:none;overflow:hidden;resize:none;\";\n element.ownerDocument.body.append(mirror);\n observer = new ResizeObserver(() => {\n const field = element.querySelector(\"textarea\");\n if (!field || !view) return;\n const style = view.getComputedStyle(field);\n if (metricProperties.map(key => style.getPropertyValue(key)).join(\"|\") !== metrics) schedule();\n });\n observer.observe(element);\n const fonts = element.ownerDocument.fonts;\n fonts?.addEventListener(\"loadingdone\", schedule);\n releaseFonts = () => fonts?.removeEventListener(\"loadingdone\", schedule);\n schedule();\n }, { flush: \"post\" });\n watch([value, options, appearance], schedule, { flush: \"post\" });\n onBeforeUnmount(release);\n}\n","<script setup lang=\"ts\">\nimport { ark } from \"@ark-ui/vue/factory\";\nimport { computed, ref, useAttrs, watch } from \"vue\";\nimport { useTextareaAutoResize } from \"./auto-resize\";\nimport { useFieldLabel } from \"../field/context\";\nimport { useQuireKitMessages } from \"../locale-provider/context\";\nimport type {\n QuireKitTextareaResize,\n QuireKitTextareaSize,\n QuireKitTextareaVariant\n} from \"../../components/textarea\";\n\ndefineOptions({ inheritAttrs: false });\n\nconst ArkTextarea = ark.textarea;\n\n/** 多行 Textarea 的公开属性。 */\ninterface Props {\n /** 受控文本值。 */\n readonly modelValue?: string;\n /** 非受控模式的初始文本值。 */\n readonly defaultValue?: string;\n /** 控件的排版尺寸。 */\n readonly size?: QuireKitTextareaSize;\n /** embedded 用于已有输入表面的复合控件;宿主必须提供焦点、错误和禁用反馈。 */\n readonly variant?: QuireKitTextareaVariant;\n /** 控件的 CSS 宽度。 */\n readonly width?: string | number;\n /** 初始可见文本行数。 */\n readonly rows?: number;\n /** 是否随内容增高;启用时 rows 表达最小行数。 */\n readonly autoResize?: boolean;\n /** 自动增高的最大行数;超过后在输入框内滚动。 */\n readonly maxRows?: number;\n /** 用户可拖动改变尺寸的方向;none 隐藏右下角拖拽角标。 */\n readonly resize?: QuireKitTextareaResize;\n /** 空值提示;省略时按字段标签生成本地化提示,空字符串关闭提示。 */\n readonly placeholder?: string | undefined;\n /** 原生字段名。 */\n readonly name?: string;\n /** 关联的 form id。 */\n readonly form?: string;\n /** 浏览器自动完成提示。 */\n readonly autocomplete?: string;\n /** 文本换行提交策略。 */\n readonly wrap?: \"hard\" | \"soft\";\n /** 是否禁用输入。 */\n readonly disabled?: boolean;\n /** 是否显示错误状态。 */\n readonly invalid?: boolean;\n /** 是否要求表单提交一个值。 */\n readonly required?: boolean;\n /** 是否允许聚焦但禁止修改。 */\n readonly readOnly?: boolean;\n /** 最少允许的字符数。 */\n readonly minlength?: number;\n /** 最多允许的字符数。 */\n readonly maxlength?: number;\n /** 是否在右下角显示字符计数。 */\n readonly showCount?: boolean;\n}\n\n/** Textarea 的公开事件。 */\ninterface Emits {\n /** 同步受控文本值。 */\n \"update:modelValue\": [value: string];\n /** 输入过程中同步最新文本值。 */\n valueChange: [value: string];\n /** 原生 change 边界提交的文本值。 */\n change: [value: string];\n /** 输入获得焦点。 */\n focus: [event: FocusEvent];\n /** 输入失去焦点。 */\n blur: [event: FocusEvent];\n}\n\nconst props = withDefaults(defineProps<Props>(), {\n defaultValue: \"\",\n size: \"sm\",\n variant: \"outline\",\n width: \"320px\",\n rows: 4,\n autoResize: false,\n resize: \"none\",\n disabled: false,\n invalid: false,\n required: false,\n readOnly: false,\n showCount: false\n});\nconst emit = defineEmits<Emits>();\nconst attrs = useAttrs();\nconst text = useQuireKitMessages(\"input\");\nconst fieldLabel = useFieldLabel();\nconst emptyHint = computed(() => {\n const label = typeof attrs[\"aria-label\"] === \"string\" ? attrs[\"aria-label\"] : fieldLabel.value;\n return props.placeholder ?? (label ? text.value.fieldPlaceholder(label) : text.value.placeholder.text);\n});\nconst root = ref<HTMLElement>();\nconst internalValue = ref(props.modelValue ?? props.defaultValue);\nconst currentValue = computed(() => props.modelValue ?? internalValue.value);\nuseTextareaAutoResize(root, () => currentValue.value,\n () => ({ enabled: props.autoResize, rows: props.rows, maxRows: props.maxRows }),\n () => [props.size, props.showCount]);\nconst countLabel = computed(() => props.maxlength === undefined\n ? `${currentValue.value.length}`\n : `${currentValue.value.length}/${props.maxlength}`);\nconst rootStyle = computed(() => [\n { width: props.width },\n attrs.style\n]);\nconst rootClass = computed(() => attrs.class);\nconst textareaAttrs = computed(() => Object.fromEntries(\n Object.entries(attrs).filter(([name]) => name !== \"class\" && name !== \"style\")\n));\n\nwatch(() => props.modelValue, (value) => {\n if (value !== undefined) internalValue.value = value;\n});\n\n/**\n * 同步输入过程中的文本值。\n *\n * @param event - 原生 input 事件。\n */\nfunction updateValue(event: Event): void {\n const value = (event.currentTarget as HTMLTextAreaElement).value;\n internalValue.value = value;\n emit(\"update:modelValue\", value);\n emit(\"valueChange\", value);\n}\n\n/**\n * 转发原生 change 边界的稳定文本值。\n *\n * @param event - 原生 change 事件。\n */\nfunction commitValue(event: Event): void {\n emit(\"change\", (event.currentTarget as HTMLTextAreaElement).value);\n}\n\n/** Focus the field owned by this adapter without exposing its DOM anatomy.\n * @param options - Native focus scrolling options.\n */\nfunction focus(options?: FocusOptions): void {\n root.value?.querySelector('textarea')?.focus(options);\n}\ndefineExpose({ focus });\n</script>\n\n<template>\n <span\n ref=\"root\"\n :style=\"rootStyle\"\n :class=\"[\n 'qk-textarea',\n `qk-textarea--${size}`,\n variant === 'embedded' && 'qk-textarea--embedded',\n invalid && 'qk-textarea--invalid',\n disabled && 'qk-textarea--disabled',\n rootClass\n ]\"\n >\n <component\n :is=\"ArkTextarea\"\n v-bind=\"textareaAttrs\"\n :value=\"currentValue\"\n :rows=\"rows\"\n :placeholder=\"emptyHint\"\n :name=\"name\"\n :form=\"form\"\n :autocomplete=\"autocomplete\"\n :wrap=\"wrap\"\n :disabled=\"disabled\"\n :aria-invalid=\"invalid || undefined\"\n :required=\"required\"\n :readonly=\"readOnly\"\n :minlength=\"minlength\"\n :maxlength=\"maxlength\"\n :class=\"[\n 'qk-textarea__field',\n `qk-textarea__field--resize-${autoResize ? 'none' : resize}`,\n showCount && 'qk-textarea__field--counted'\n ]\"\n @input=\"updateValue\"\n @change=\"commitValue\"\n @focus=\"emit('focus', $event)\"\n @blur=\"emit('blur', $event)\"\n />\n <span v-if=\"showCount\" aria-hidden=\"true\" class=\"qk-textarea__count\">\n {{ countLabel }}\n </span>\n </span>\n</template>\n","<script setup lang=\"ts\">\nimport { computed } from \"vue\";\nimport type { QuireKitKbdSize } from \"../../components/kbd\";\nimport { keyLabel } from \"./labels\";\n/** Keyboard hints display a shortcut; they never register its action. */\ninterface Props {\n /** Explicit keys in reading order; the host chooses platform conventions. */\n readonly keys: readonly string[];\n /** Localized accessible shortcut description. */\n readonly label?: string;\n /** Independent xs/sm/md keycap size; does not inherit button size. */\n readonly size?: QuireKitKbdSize;\n}\nconst props = withDefaults(defineProps<Props>(), { size: \"sm\" });\nconst accessible = computed(() => props.label ?? keyLabel(props.keys));\n</script>\n<template>\n <kbd :class=\"['qk-kbd', `qk-kbd--${size}`]\"><span aria-hidden=\"true\">{{ keys.join(' + ') }}</span><span class=\"sr-only\">{{ accessible }}</span></kbd>\n</template>\n","<script setup lang=\"ts\">\nimport { Menu } from \"@ark-ui/vue/menu\";\nimport type { QuireKitMenuItemTone } from \"../../components/menu\";\nimport QuireKbd from \"../kbd/kbd.vue\";\n\n/** Public properties for an ordinary Menu item. */\ninterface Props {\n /** Stable value emitted when the item is activated. */\n readonly value: string;\n /** Visual role of the action without changing its interaction behavior. */\n readonly tone?: QuireKitMenuItemTone;\n /** Optional keyboard shortcut rendered in the trailing metadata column. */\n readonly shortcut?: string | readonly string[];\n /** Whether pointer and keyboard activation are unavailable. */\n readonly disabled?: boolean;\n /** Whether activating this row closes the owning menu. */\n readonly closeOnSelect?: boolean;\n /** Whether an icon-free row reserves the leading indicator column. */\n readonly inset?: boolean;\n /** Optional one-line explanation shown under the label; the row grows to fit it. */\n readonly description?: string;\n}\n\n/** Public events emitted by an ordinary Menu item. */\ninterface Emits {\n /** 用户执行当前可用条目时触发。 */\n readonly select: [];\n}\n\n/** Public slots exposed by an ordinary Menu item. */\ninterface Slots {\n /** Visible item label. */\n readonly default: () => unknown;\n /** Optional leading icon. */\n readonly leading?: () => unknown;\n /** Optional trailing content that replaces the shortcut prop. */\n readonly trailing?: () => unknown;\n}\n\nconst {\n value,\n tone = \"neutral\",\n shortcut,\n disabled = false,\n closeOnSelect = true,\n inset = false,\n description\n} = defineProps<Props>();\nconst emit = defineEmits<Emits>();\ndefineSlots<Slots>();\n\n/** Forwards accepted machine selection without depending on Ark's mount-time DOM lookup. */\nfunction handleSelection(): void {\n if (!disabled) emit(\"select\");\n}\n</script>\n\n<template>\n <Menu.Item\n :value=\"value\"\n :disabled=\"disabled\"\n :close-on-select=\"closeOnSelect\"\n :data-tone=\"tone\"\n class=\"qk-menu__item\"\n :data-described=\"description ? '' : undefined\"\n @menu:select=\"handleSelection\"\n >\n <span v-if=\"$slots.leading || inset\" class=\"qk-menu__indicator\" aria-hidden=\"true\">\n <slot name=\"leading\" />\n </span>\n <span v-if=\"description\" class=\"qk-menu__copy\">\n <Menu.ItemText class=\"qk-menu__label\"><slot /></Menu.ItemText>\n <span class=\"qk-menu__description\">{{ description }}</span>\n </span>\n <Menu.ItemText v-else class=\"qk-menu__label\"><slot /></Menu.ItemText>\n <span v-if=\"$slots.trailing\" class=\"qk-menu__trailing\" aria-hidden=\"true\">\n <slot name=\"trailing\" />\n </span>\n <span v-else-if=\"shortcut?.length\" class=\"qk-menu__shortcut\"><QuireKbd :keys=\"typeof shortcut === 'string' ? [shortcut] : shortcut\" size=\"xs\" /></span>\n </Menu.Item>\n</template>\n","<script setup lang=\"ts\">\nimport { Menu } from \"@ark-ui/vue/menu\";\n\n/** Public properties for a labeled Menu item group. */\ninterface Props {\n /** Stable group identity used by accessible relationships. */\n readonly id?: string;\n /** Optional visible label shown above the group rows. */\n readonly label?: string;\n /** Whether the label aligns with rows that reserve an indicator column. */\n readonly inset?: boolean;\n}\n\n/** Public slots exposed by a Menu item group. */\ninterface Slots {\n /** Rows contained by this visual and semantic group. */\n readonly default: () => unknown;\n}\n\nconst { id, label, inset = false } = defineProps<Props>();\ndefineSlots<Slots>();\n</script>\n\n<template>\n <Menu.ItemGroup v-bind=\"id === undefined ? {} : { id }\" class=\"qk-menu__group\">\n <Menu.ItemGroupLabel\n v-if=\"label\"\n :class=\"['qk-menu__group-label', { 'qk-menu__group-label--inset': inset }]\"\n >\n {{ label }}\n </Menu.ItemGroupLabel>\n <slot />\n </Menu.ItemGroup>\n</template>\n","/** Shared content-box budget for lightweight anchored surfaces; Ark owns available space. */\nexport const anchoredSurfaceStyle = Object.freeze({\n maxHeight: \"min(60dvh, var(--available-height, calc(100dvh - 16px)))\"\n});\n","import type { CSSProperties } from \"vue\";\nimport { menuVariableReferences } from \"../../components/menu\";\nimport type { QuireKitMenuLength } from \"../../components/menu\";\nimport { anchoredSurfaceStyle } from \"../shared/surface/geometry\";\n\n/**\n * Resolves one Menu surface's fixed or content-responsive inline constraints.\n *\n * @param width - Explicit fixed width or `auto`.\n * @param minWidth - Optional lower bound used by content-responsive menus.\n * @param maxWidth - Optional upper bound used by content-responsive menus.\n * @returns Vue style bindings for the Menu Content surface.\n */\nexport function resolveMenuContentStyle(\n width: QuireKitMenuLength | undefined,\n minWidth: QuireKitMenuLength | undefined,\n maxWidth: QuireKitMenuLength | undefined\n): Readonly<CSSProperties> {\n const hasResponsiveConstraint = minWidth !== undefined || maxWidth !== undefined;\n return Object.freeze({\n width: width ?? (\n hasResponsiveConstraint\n ? \"auto\"\n : menuVariableReferences.geometry.contentWidth\n ),\n ...(minWidth === undefined ? {} : { minWidth }),\n ...(maxWidth === undefined ? {} : { maxWidth })\n });\n}\n\n/**\n * Keeps constrained Menu-family surfaces inside the viewport even with an explicit minimum width.\n * @param width - Explicit fixed width or `auto`.\n * @param minWidth - Optional lower bound capped by the usable viewport width.\n * @param maxWidth - Optional upper bound capped by the usable viewport width.\n * @returns Menu-family content constraints with independent vertical scrolling.\n */\nexport function resolveViewportMenuContentStyle(\n width: QuireKitMenuLength | undefined,\n minWidth: QuireKitMenuLength | undefined,\n maxWidth: QuireKitMenuLength | undefined\n): Readonly<CSSProperties> {\n return Object.freeze({\n ...resolveMenuContentStyle(width, minWidth, maxWidth),\n ...(minWidth === undefined ? {} : { minWidth: viewportWidth(minWidth) }),\n maxWidth: viewportWidth(maxWidth ?? \"100vw\"),\n ...anchoredSurfaceStyle\n });\n}\n\n/**\n * Caps a CSS length while retaining the floating layer's 8 px edge allowance.\n * @param value - Numeric pixels or a CSS length expression.\n * @returns A CSS minimum expression in viewport coordinates.\n */\nfunction viewportWidth(value: QuireKitMenuLength): string {\n return `min(${typeof value === \"number\" ? `${value}px` : value}, calc(100vw - 16px))`;\n}\n\n/**\n * Caps a child to the free side of its parent instead of sliding over its rows.\n * @param width - Preferred child width.\n * @param minWidth - Requested lower bound, limited by the available side.\n * @param maxWidth - Requested upper bound, limited by the available side.\n * @returns Content constraints following the floating layer's final placement.\n */\nexport function resolveSubmenuContentStyle(\n width: QuireKitMenuLength | undefined,\n minWidth: QuireKitMenuLength | undefined,\n maxWidth: QuireKitMenuLength | undefined\n): Readonly<CSSProperties> {\n const available = \"var(--available-width, calc(100vw - 16px))\";\n return {\n ...resolveViewportMenuContentStyle(width, minWidth, maxWidth),\n ...(minWidth === undefined ? {} : { minWidth: `min(${viewportWidth(minWidth)}, ${available})` }),\n maxWidth: `min(${viewportWidth(maxWidth ?? \"100vw\")}, ${available})`\n };\n}\n","import { useModalPortal } from \"../../shared/surface/use-modal-portal\";\nimport { inject, provide, type InjectionKey } from \"vue\";\n\nconst menuDepth: InjectionKey<number> = Symbol(\"QuireMenuDepth\");\n\n/**\n * Keeps body-portalled menus above their owning modal surface while preserving page overlay layers.\n * @param portalled - Whether the menu uses a body portal.\n * @param open - The menu's current open state.\n * @param nested - Whether this surface is a child of the enclosing menu.\n * @returns The owning-surface layer modifier and its portal lifecycle.\n */\nexport function useMenuLayerClass(portalled: () => boolean, open: () => boolean, nested = false) {\n const { hasModalOwner, disabled } = useModalPortal(portalled, open);\n const depth = nested ? inject(menuDepth, 0) + 1 : 0;\n provide(menuDepth, depth);\n // Teleport mount order is not menu order. Each child owns a higher paint layer.\n return {\n layerClass: hasModalOwner ? \"qk-menu__positioner--modal\" : undefined,\n layerStyle: { \"--qk-menu-depth\": depth },\n portalDisabled: disabled\n };\n}\n","import { inject, onBeforeUnmount, provide, type InjectionKey } from \"vue\";\n\n/** Close callbacks of the submenus sharing one parent menu level. */\ntype SubmenuSiblings = Set<() => void>;\n\nconst siblingsKey: InjectionKey<SubmenuSiblings> = Symbol(\"QuireMenuSubmenuSiblings\");\n\n/** Starts a menu level whose direct submenus are mutually exclusive. */\nexport function provideSubmenuSiblings(): void {\n provide(siblingsKey, new Set());\n}\n\n/**\n * Joins the current menu level so opening this submenu closes its open siblings.\n *\n * The underlying machine only closes siblings on a pointer move over the next\n * trigger while the pointer modality is active, so fast or mixed keyboard and\n * pointer navigation could leave two sibling submenus open.\n *\n * @param close - Closes this submenu when a sibling opens.\n * @returns Callback to run whenever this submenu opens.\n */\nexport function useSubmenuSiblings(close: () => void): () => void {\n const siblings = inject(siblingsKey, null);\n siblings?.add(close);\n onBeforeUnmount(() => siblings?.delete(close));\n provideSubmenuSiblings();\n return () => siblings?.forEach(other => { if (other !== close) other(); });\n}\n","/**\n * Keeps a child beside the whole parent surface while aligning it with its row.\n * @param element - Trigger supplied by the floating-position lifecycle.\n * @returns A viewport anchor, or null while the trigger is not mounted.\n */\nexport function submenuAnchorRect(element: HTMLElement | null): DOMRect | null {\n if (!element) return null;\n const row = element.getBoundingClientRect();\n const parent = element.closest('[role=\"menu\"]')?.getBoundingClientRect();\n return new DOMRect(parent?.left ?? row.left, row.top, parent?.width ?? row.width, row.height);\n}\n","import { useQuireOverlayHost } from \"../../overlay-provider\";\nimport { computed, inject, provide, type InjectionKey, type ComputedRef } from \"vue\";\n\n/** A Menu tree shares one physical host, including declarative nested menus. */\nconst portalKey: InjectionKey<ComputedRef<string | HTMLElement>> = Symbol(\"quire-menu-portal\");\n\n/** @param target - Optional explicit host. @returns Reactive host inherited by all descendant submenus. */\nexport function provideMenuPortal(target: () => string | HTMLElement | undefined): ComputedRef<string | HTMLElement> {\n const host = useQuireOverlayHost();\n const inherited = inject(portalKey, undefined);\n const resolved = computed(() => target() ?? inherited?.value ?? host.target.value);\n provide(portalKey, resolved);\n return resolved;\n}\n","import { watch, type ComponentPublicInstance } from \"vue\";\n\n/** @param content - Mounted menu navigation surface. */\nexport function revealNestedMenuItem(content: HTMLElement): void {\n if (!content.isConnected) return;\n const id = content.getAttribute(\"aria-activedescendant\");\n const item = id && content.ownerDocument.getElementById(id);\n if (!item || !content.contains(item)) return;\n // Ark handles the menu surface itself. Only reveal inner scroll owners here;\n // scrolling the page would detach a fixed menu from its captured source block.\n for (let parent = item.parentElement; parent && parent !== content; parent = parent.parentElement) {\n if (parent.scrollHeight <= parent.clientHeight || !/(auto|scroll)/u.test(getComputedStyle(parent).overflowY)) continue;\n const bounds = parent.getBoundingClientRect(), row = item.getBoundingClientRect();\n const top = bounds.top + parent.clientTop, bottom = top + parent.clientHeight;\n const delta = row.top < top ? row.top - top : row.bottom > bottom ? row.bottom - bottom : 0;\n if (delta) parent.scrollTop += delta;\n }\n}\n\n/** @param content - Lazy menu surface, absent when dismissed. @param open - Accepted menu visibility. */\nexport function useNestedMenuScroll(content: () => ComponentPublicInstance | HTMLElement | undefined, open: () => boolean): void {\n watch([content, open], ([instance, visible], _previous, cleanup) => {\n if (!visible) return;\n const element = instance && (\"$el\" in instance ? instance.$el as HTMLElement : instance);\n if (!element || element.nodeType !== 1) return;\n // Observe one accepted ARIA value, never the menu subtree or document.\n // This also covers typeahead and avoids competing with Ark's key handling.\n const Observer = element.ownerDocument.defaultView?.MutationObserver;\n if (!Observer) return;\n const observer = new Observer(() => revealNestedMenuItem(element));\n observer.observe(element, { attributes: true, attributeFilter: [\"aria-activedescendant\"] });\n cleanup(() => observer.disconnect());\n revealNestedMenuItem(element);\n }, { flush: \"post\", immediate: true });\n}\n","<script setup lang=\"ts\">\nimport { useQuireOverlayHost } from \"../overlay-provider\";\nimport QuireThemePortal from \"../theme-provider/portal.vue\";\nimport { Menu, useMenu, type UseMenuProps } from \"@ark-ui/vue/menu\";\nimport { computed, nextTick, ref, watch } from \"vue\";\nimport type { HTMLAttributes, ComponentPublicInstance } from \"vue\";\nimport type {\n QuireKitMenuItemTone,\n QuireKitMenuLength\n} from \"../../components/menu\";\nimport { resolveSubmenuContentStyle } from \"./content-size\";\nimport { useMenuLayerClass } from \"./surface/use-layer\";\nimport { useSubmenuSiblings } from \"./surface/siblings\";\nimport { submenuAnchorRect } from \"./surface/anchor\";\nimport { provideMenuPortal } from \"./surface/portal\";\nimport { useNestedMenuScroll } from \"./surface/scroll\";\n\n/** Public properties for a nested Menu. */\ninterface Props {\n /** Theme, language and owner attributes for the teleported child content. */\n readonly contentProps?: HTMLAttributes;\n /** 子菜单的稳定标识。 */\n readonly id?: string;\n /** Visual role of the submenu trigger row. */\n readonly tone?: QuireKitMenuItemTone;\n /** Whether the child positioner teleports to the inherited menu portal. */\n readonly portalled?: boolean;\n /** Whether an icon-free trigger reserves the leading indicator column. */\n readonly inset?: boolean;\n /** Fixed child-menu width; use `auto` to size directly from content. */\n readonly width?: QuireKitMenuLength;\n /** Minimum child-menu width that may continue growing with its rows. */\n readonly minWidth?: QuireKitMenuLength;\n /** Maximum child-menu width after which labels truncate with an ellipsis. */\n readonly maxWidth?: QuireKitMenuLength;\n /** Additional class on the existing submenu trigger row. */\n readonly triggerClass?: string;\n /** Additional class on the existing child menu surface. */\n readonly contentClass?: string;\n}\n\n/** Public slots exposed by a nested Menu. */\ninterface Slots {\n /** Visible label of the parent-menu trigger row. */\n readonly trigger: () => unknown;\n /** Optional leading icon for the trigger row. */\n readonly leading?: () => unknown;\n /** Child menu rows. */\n readonly default: () => unknown;\n}\n\n/** Public events emitted by this submenu's own accepted selections. */\ninterface Emits {\n /** 用户执行当前子菜单中的可用条目时触发,包含再次选择当前单选项。 */\n readonly select: [value: string];\n}\n\nconst overlayHost = useQuireOverlayHost();\nconst {\n id,\n tone = \"neutral\",\n portalled = true,\n inset = false,\n width,\n minWidth,\n maxWidth,\n triggerClass,\n contentClass,\n contentProps\n} = defineProps<Props>();\nconst open = defineModel<boolean | undefined>(\"open\", { default: undefined });\nconst emit = defineEmits<Emits>();\nconst portal = provideMenuPortal(() => undefined);\ndefineSlots<Slots>();\nconst trigger = ref<ComponentPublicInstance | HTMLElement>();\nconst content = ref<ComponentPublicInstance | HTMLElement>();\n\n/** @returns Child Menu root properties with uncontrolled values omitted. */\nconst rootProps = computed<UseMenuProps>(() => ({\n ...(id === undefined ? {} : { id }),\n ...(open.value === undefined ? {} : { open: open.value }),\n positioning: {\n placement: \"right-start\" as const,\n // Zag resets nested gutter to zero. The explicit offset retains our surface gap.\n offset: { mainAxis: 6 },\n getAnchorRect: element => submenuAnchorRect(element instanceof HTMLElement ? element : null),\n // Portalled theme bridges have their own absolute box. Submenus share the\n // root Menu's viewport coordinates so focus cannot scroll the page to it.\n strategy: overlayHost.strategy.value ?? \"fixed\" as const, flip: true, slide: true, overlap: false, overflowPadding: 8\n },\n loopFocus: true,\n typeahead: true,\n onEscapeKeyDown: closeCurrentLevel,\n /** @param details - Accepted leaf activation, independent of a radio group's value change. */\n onSelect(details) { emit(\"select\", details.value); },\n /** @param details - Submenu request acknowledged by the public model. */\n onOpenChange(details) { open.value = details.open; }\n}));\nconst menu = useMenu(rootProps);\nuseNestedMenuScroll(() => content.value, () => menu.api.value.open);\nconst { layerClass, layerStyle, portalDisabled } = useMenuLayerClass(() => portalled, () => menu.api.value.open, true);\nconst closeSiblings = useSubmenuSiblings(() => {\n if (menu.api.value.open) menu.api.value.setOpen(false);\n});\nwatch(() => menu.api.value.open, visible => { if (visible) closeSiblings(); });\n\n/**\n * Gives Escape the same single-level close and parent focus path as ArrowLeft.\n * The versioned Zag patch honors cancellation before its default root-menu close.\n * @param event - The existing Ark dismissable layer's Escape notification.\n */\nfunction closeCurrentLevel(event: KeyboardEvent): void {\n event.preventDefault();\n menu.machine.send({ type: \"ARROW_LEFT\" });\n focusParentContent();\n}\n\n/** Returns to the parent menu's active descendant, even when it contains a toolbar or fields. */\nfunction focusParentContent(): void {\n const instance = trigger.value;\n const element = instance && \"$el\" in instance ? instance.$el as HTMLElement : instance;\n element?.closest<HTMLElement>('[role=\"menu\"]')?.focus({ preventScroll: true });\n}\n\n/** @param event - ArrowLeft from this menu's navigation surface, after Ark closes this level. */\nfunction returnFromChild(event: KeyboardEvent): void {\n if (event.key === \"ArrowLeft\" && event.target === event.currentTarget) focusParentContent();\n}\n\n// Resolve the initial active descendant after lazy content exists. Controlled\n// opens and rapid reopens must receive the same available first item as native\n// submenu opening, while preserving any highlight already chosen by Ark.\nwatch(() => menu.api.value.open, (visible, _previous, onCleanup) => {\n if (!visible) return;\n let current = true;\n onCleanup(() => { current = false; });\n void nextTick(() => {\n if (!current || !menu.api.value.open || menu.api.value.highlightedValue != null) return;\n const instance = content.value;\n const element = instance && \"$el\" in instance ? instance.$el as HTMLElement : instance;\n if (element?.nodeType !== 1) return;\n const first = Array.from(element.querySelectorAll<HTMLElement>('[role^=\"menuitem\"][data-value]'))\n .find(item => !item.hasAttribute(\"data-disabled\") && item.getAttribute(\"aria-disabled\") !== \"true\"\n && item.closest('[data-scope=\"menu\"][data-part=\"content\"]') === element);\n if (first?.dataset.value !== undefined) menu.api.value.setHighlightedValue(first.dataset.value);\n });\n}, { flush: \"post\", immediate: true });\nconst contentStyle = computed(() => resolveSubmenuContentStyle(\n width,\n minWidth,\n maxWidth\n));\n</script>\n\n<template>\n <Menu.RootProvider\n :value=\"menu\"\n lazy-mount\n unmount-on-exit\n >\n <Menu.TriggerItem\n ref=\"trigger\"\n :data-tone=\"tone\"\n :class=\"['qk-menu__item', 'qk-menu__submenu-trigger', triggerClass]\"\n >\n <span v-if=\"$slots.leading || inset\" class=\"qk-menu__indicator\" aria-hidden=\"true\">\n <slot name=\"leading\" />\n </span>\n <span class=\"qk-menu__label\"><slot name=\"trigger\" /></span>\n <span class=\"qk-menu__disclosure\" aria-hidden=\"true\">\n <svg viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <path d=\"m6 3.5 4.5 4.5L6 12.5\" />\n </svg>\n </span>\n </Menu.TriggerItem>\n <Teleport :to=\"portal\" :disabled=\"portalDisabled\">\n <QuireThemePortal>\n <Menu.Positioner :class=\"['qk-menu__positioner', layerClass]\" :style=\"layerStyle\">\n <Menu.Content\n v-bind=\"contentProps\"\n ref=\"content\"\n :class=\"['qk-menu', 'qk-menu--viewport', contentClass]\"\n :style=\"[contentProps?.style, contentStyle]\"\n data-qk-submenu-content\n @keydown=\"returnFromChild\"\n >\n <slot />\n </Menu.Content>\n </Menu.Positioner>\n </QuireThemePortal>\n </Teleport>\n </Menu.RootProvider>\n</template>\n","<script setup lang=\"ts\">\nimport { Menu } from \"@ark-ui/vue/menu\";\n</script>\n\n<template>\n <Menu.Separator class=\"qk-menu__separator\" />\n</template>\n","<script setup lang=\"ts\">\nimport { Menu } from \"@ark-ui/vue/menu\";\n\n/** Public properties for a radio-option group inside a Menu. */\ninterface Props {\n /** Stable group identity used by accessible relationships. */\n readonly id?: string;\n /** Optional visible label shown above the radio options. */\n readonly label?: string;\n}\n\n/** Public slots exposed by a Menu radio group. */\ninterface Slots {\n /** Radio items belonging to this mutually exclusive option set. */\n readonly default: () => unknown;\n}\n\nconst { id, label } = defineProps<Props>();\nconst value = defineModel<string>({ required: true });\ndefineSlots<Slots>();\n</script>\n\n<template>\n <Menu.RadioItemGroup\n v-model=\"value\"\n v-bind=\"id === undefined ? {} : { id }\"\n class=\"qk-menu__group\"\n >\n <Menu.ItemGroupLabel\n v-if=\"label\"\n class=\"qk-menu__group-label\"\n >\n {{ label }}\n </Menu.ItemGroupLabel>\n <slot />\n </Menu.RadioItemGroup>\n</template>\n","<script setup lang=\"ts\">\nimport { Menu } from \"@ark-ui/vue/menu\";\nimport QuireKbd from \"../kbd/kbd.vue\";\n\n/** Public properties for one radio option inside a Menu radio group. */\ninterface Props {\n /** Stable option value controlled by the owning radio group. */\n readonly value: string;\n /** Optional keyboard shortcut rendered in the trailing metadata column. */\n readonly shortcut?: string | readonly string[];\n /** Whether pointer and keyboard changes are unavailable. */\n readonly disabled?: boolean;\n /** Whether selecting this option closes the owning menu. */\n readonly closeOnSelect?: boolean;\n /** Whether an icon-free option reserves the independent leading icon column. */\n readonly inset?: boolean;\n /** Optional one-line explanation shown under the label; the row grows to fit it. */\n readonly description?: string;\n}\n\n/** Public slots exposed by one Menu radio option. */\ninterface Slots {\n /** Visible option label. */\n readonly default: () => unknown;\n /** Optional functional icon, separate from the trailing checked state. */\n readonly leading?: () => unknown;\n /** Optional trailing content that replaces the shortcut prop. */\n readonly trailing?: () => unknown;\n}\n\nconst {\n value,\n shortcut,\n disabled = false,\n closeOnSelect = false,\n inset = false,\n description\n} = defineProps<Props>();\ndefineSlots<Slots>();\n</script>\n\n<template>\n <Menu.RadioItem\n :value=\"value\"\n :disabled=\"disabled\"\n :close-on-select=\"closeOnSelect\"\n class=\"qk-menu__item\"\n :data-described=\"description ? '' : undefined\"\n >\n <span v-if=\"$slots.leading || inset\" class=\"qk-menu__leading qk-menu__indicator\" aria-hidden=\"true\">\n <slot name=\"leading\" />\n </span>\n <span v-if=\"description\" class=\"qk-menu__copy\">\n <Menu.ItemText class=\"qk-menu__label\"><slot /></Menu.ItemText>\n <span class=\"qk-menu__description\">{{ description }}</span>\n </span>\n <Menu.ItemText v-else class=\"qk-menu__label\"><slot /></Menu.ItemText>\n <span v-if=\"$slots.trailing\" class=\"qk-menu__trailing\" aria-hidden=\"true\">\n <slot name=\"trailing\" />\n </span>\n <span v-else-if=\"shortcut?.length\" class=\"qk-menu__shortcut\"><QuireKbd :keys=\"typeof shortcut === 'string' ? [shortcut] : shortcut\" size=\"xs\" /></span>\n <span class=\"qk-menu__selection-indicator qk-menu__indicator\" :data-disabled=\"disabled || undefined\" aria-hidden=\"true\">\n <Menu.ItemIndicator>\n <svg viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <path d=\"m3.5 8.2 2.7 2.7 6.3-6.2\" />\n </svg>\n </Menu.ItemIndicator>\n </span>\n </Menu.RadioItem>\n</template>\n","<script setup lang=\"ts\">\nimport { Menu } from \"@ark-ui/vue/menu\";\nimport type { QuireKitMenuItemTone } from \"../../components/menu\";\nimport QuireKbd from \"../kbd/kbd.vue\";\n\n/** Public properties for a checkable Menu item. */\ninterface Props {\n /** 选项的稳定唯一值。 */\n readonly value: string;\n /** Visual role of the option without changing its checked behavior. */\n readonly tone?: QuireKitMenuItemTone;\n /** Optional keyboard shortcut rendered in the trailing metadata column. */\n readonly shortcut?: string | readonly string[];\n /** Whether pointer and keyboard changes are unavailable. */\n readonly disabled?: boolean;\n /** Whether changing the option closes the owning menu. */\n readonly closeOnSelect?: boolean;\n /** Whether an icon-free option reserves the independent leading icon column. */\n readonly inset?: boolean;\n /** Optional one-line explanation shown under the label; the row grows to fit it. */\n readonly description?: string;\n}\n\n/** Public slots exposed by a checkable Menu item. */\ninterface Slots {\n /** Visible option label. */\n readonly default: () => unknown;\n /** Optional functional icon, separate from the trailing checked state. */\n readonly leading?: () => unknown;\n /** Optional trailing content that replaces the shortcut prop. */\n readonly trailing?: () => unknown;\n}\n\nconst {\n value,\n tone = \"neutral\",\n shortcut,\n disabled = false,\n closeOnSelect = false,\n inset = false,\n description\n} = defineProps<Props>();\nconst checked = defineModel<boolean>(\"checked\", { required: true });\ndefineSlots<Slots>();\n</script>\n\n<template>\n <Menu.CheckboxItem\n v-model:checked=\"checked\"\n :value=\"value\"\n :disabled=\"disabled\"\n :close-on-select=\"closeOnSelect\"\n :data-tone=\"tone\"\n class=\"qk-menu__item\"\n :data-described=\"description ? '' : undefined\"\n >\n <span v-if=\"$slots.leading || inset\" class=\"qk-menu__leading qk-menu__indicator\" aria-hidden=\"true\">\n <slot name=\"leading\" />\n </span>\n <span v-if=\"description\" class=\"qk-menu__copy\">\n <Menu.ItemText class=\"qk-menu__label\"><slot /></Menu.ItemText>\n <span class=\"qk-menu__description\">{{ description }}</span>\n </span>\n <Menu.ItemText v-else class=\"qk-menu__label\"><slot /></Menu.ItemText>\n <span v-if=\"$slots.trailing\" class=\"qk-menu__trailing\" aria-hidden=\"true\">\n <slot name=\"trailing\" />\n </span>\n <span v-else-if=\"shortcut?.length\" class=\"qk-menu__shortcut\"><QuireKbd :keys=\"typeof shortcut === 'string' ? [shortcut] : shortcut\" size=\"xs\" /></span>\n <span class=\"qk-menu__selection-indicator qk-menu__indicator\" :data-disabled=\"disabled || undefined\" aria-hidden=\"true\">\n <Menu.ItemIndicator>\n <svg viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <path d=\"m3.5 8.2 2.7 2.7 6.3-6.2\" />\n </svg>\n </Menu.ItemIndicator>\n </span>\n </Menu.CheckboxItem>\n</template>\n","<script setup lang=\"ts\">\nimport type { HTMLAttributes } from \"vue\";\nimport type { QuireKitMenuEntry } from \"../../../components/menu\";\nimport QuireMenuItem from \"../menu-item.vue\";\nimport QuireMenuGroup from \"../menu-group.vue\";\nimport QuireMenuSubmenu from \"../menu-submenu.vue\";\nimport QuireIcon from \"../../icon/icon.vue\";\nimport QuireMenuSeparator from \"../menu-separator.vue\";\nimport QuireMenuRadioGroup from \"../menu-radio-group.vue\";\nimport QuireMenuRadioItem from \"../menu-radio-item.vue\";\nimport QuireMenuCheckboxItem from \"../menu-checkbox-item.vue\";\n\n/** Framework-neutral declarations rendered inside a public Menu root. */\ninterface Props {\n /** Live localized item tree. */\n readonly items: readonly QuireKitMenuEntry[];\n /** Owner attributes projected to every teleported child menu. */\n readonly contentProps?: HTMLAttributes | undefined;\n /** Default close policy for ordinary commands. */\n readonly closeOnSelect?: boolean;\n}\ndefineOptions({ name: \"QuireMenuItems\" });\ndefineProps<Props>();\ndefineSlots<{\n /** Optional product-owned leading illustration, recursively forwarded to leaves. */\n leading?: (props: { item: QuireKitMenuEntry }) => unknown;\n}>();\nconst emit = defineEmits<{ /** Enabled leaf activation, once per request. */ select: [value: string] }>();\n</script>\n\n<template>\n <template v-for=\"item in items\" :key=\"item.value\">\n <QuireMenuSeparator v-if=\"item.kind === 'separator'\" />\n <QuireMenuGroup v-else-if=\"item.kind === 'group'\" :label=\"item.label\">\n <QuireMenuItems :items=\"item.children ?? []\" :content-props=\"contentProps ?? {}\" v-bind=\"closeOnSelect === undefined ? {} : { closeOnSelect }\" @select=\"emit('select', $event)\">\n <template v-if=\"$slots.leading\" #leading=\"scope\"><slot name=\"leading\" v-bind=\"scope\" /></template>\n </QuireMenuItems>\n </QuireMenuGroup>\n <QuireMenuSubmenu v-else-if=\"item.kind === 'submenu' && !item.disabled\" :content-props=\"contentProps ?? {}\" :inset=\"items.some(entry => !!entry.icon)\" :tone=\"item.tone ?? 'neutral'\">\n <template #trigger>{{ item.label }}</template>\n <template v-if=\"item.icon\" #leading><QuireIcon :name=\"item.icon\" /></template>\n <QuireMenuItems :items=\"item.children ?? []\" :content-props=\"contentProps ?? {}\" v-bind=\"closeOnSelect === undefined ? {} : { closeOnSelect }\" @select=\"emit('select', $event)\">\n <template v-if=\"$slots.leading\" #leading=\"scope\"><slot name=\"leading\" v-bind=\"scope\" /></template>\n </QuireMenuItems>\n </QuireMenuSubmenu>\n <QuireMenuRadioGroup v-else-if=\"item.kind === 'radio-group'\" :label=\"item.label\" :model-value=\"item.selectedValue ?? ''\" @update:model-value=\"emit('select', $event)\">\n <QuireMenuRadioItem v-for=\"option in item.children ?? []\" :key=\"option.value\" :value=\"option.value\" :disabled=\"item.disabled || option.disabled || false\" :shortcut=\"option.shortcut ?? ''\" :close-on-select=\"option.closeOnSelect ?? false\"\n :inset=\"(item.children ?? []).some(entry => !!entry.icon)\" :title=\"option.reason\">\n <template v-if=\"$slots.leading || option.icon\" #leading><slot name=\"leading\" :item=\"option\"><QuireIcon v-if=\"option.icon\" :name=\"option.icon\" /></slot></template>\n {{ option.label }}\n </QuireMenuRadioItem>\n </QuireMenuRadioGroup>\n <QuireMenuCheckboxItem v-else-if=\"item.checked !== undefined\" :value=\"item.value\" :checked=\"item.checked\"\n :disabled=\"item.disabled ?? false\" :shortcut=\"item.shortcut ?? ''\" :tone=\"item.tone ?? 'neutral'\" :close-on-select=\"item.closeOnSelect ?? false\" :title=\"item.reason\" :inset=\"items.some(entry => !!entry.icon)\" @update:checked=\"emit('select', item.value)\">\n <template v-if=\"$slots.leading || item.icon\" #leading><slot name=\"leading\" :item=\"item\"><QuireIcon v-if=\"item.icon\" :name=\"item.icon\" /></slot></template>\n {{ item.label }}\n </QuireMenuCheckboxItem>\n <QuireMenuItem v-else :inset=\"items.some(entry => !!entry.icon)\" :value=\"item.value\" :disabled=\"item.disabled ?? false\" :shortcut=\"item.shortcut ?? ''\" :tone=\"item.tone ?? 'neutral'\"\n :close-on-select=\"item.closeOnSelect ?? closeOnSelect ?? true\" :title=\"item.reason\" @select=\"emit('select', item.value)\">\n <template v-if=\"$slots.leading || item.icon\" #leading><slot name=\"leading\" :item=\"item\"><QuireIcon v-if=\"item.icon\" :name=\"item.icon\" /></slot></template>\n {{ item.label }}\n </QuireMenuItem>\n </template>\n</template>\n","import { watch, type ComponentPublicInstance } from \"vue\";\nimport type { QuireKitMenuInitialFocus } from \"../../components/menu\";\n\n/**\n * Applies an explicit menu-surface focus before the machine's default focus pass.\n * @param content - Current public Menu content instance, absent while unmounted.\n * @param open - Current effective visibility, including uncontrolled defaults.\n * @param policy - Opt-in initial focus; auto leaves the machine unchanged.\n */\nexport function useMenuInitialFocus(\n content: () => ComponentPublicInstance | HTMLElement | undefined,\n open: () => boolean,\n policy: () => QuireKitMenuInitialFocus\n): void {\n watch([content, open, policy], ([instance, visible, initialFocus]) => {\n if (!visible || initialFocus !== \"menu\" || !instance) return;\n const element = \"$el\" in instance ? instance.$el as HTMLElement : instance;\n // Focus inside the content makes Ark preserve that target. Only opening or\n // mounting runs this path, so later Tab/arrow navigation is never reclaimed.\n if (element?.nodeType === 1 && element.isConnected) element.focus({ preventScroll: true });\n }, { flush: \"post\", immediate: true });\n}\n","<script setup lang=\"ts\">\nimport { computed } from \"vue\";\nimport { ark } from \"@ark-ui/vue/factory\";\nimport { useMenuContext } from \"@ark-ui/vue/menu\";\n\nconst props = defineProps<{\n /** Merge the menu contract into the consumer's native control. */\n asChild?: boolean;\n}>();\nconst menu = useMenuContext();\nconst upstream = computed(() => menu.value.getTriggerProps());\nconst bindings = computed<Record<string, unknown>>(() => ({ ...upstream.value, onPointerdown: pointerDown }));\n\n/**\n * Preserves WebKit's native touch click while retaining the menu's mouse focus policy.\n * @param event - Original press; click and keyboard activation remain upstream-owned.\n */\nfunction pointerDown(event: PointerEvent): void {\n if (event.pointerType !== \"touch\") upstream.value.onPointerdown?.(event);\n}\n</script>\n\n<template>\n <ark.button v-bind=\"bindings\" :as-child=\"props.asChild\"><slot /></ark.button>\n</template>\n","<script setup lang=\"ts\">\nimport { useQuireOverlayHost } from \"../overlay-provider\";\nimport QuireThemePortal from \"../theme-provider/portal.vue\";\nimport { Menu } from \"@ark-ui/vue/menu\";\nimport { computed, onMounted, ref, useAttrs, type ComponentPublicInstance, type StyleValue } from \"vue\";\nimport type {\n MenuHighlightChangeDetails,\n MenuSelectionDetails\n} from \"@ark-ui/vue/menu\";\nimport type { QuireKitMenuLength, QuireKitMenuAnchorPoint, QuireKitMenuEntry, QuireKitMenuInitialFocus } from \"../../components/menu\";\nimport QuireMenuItems from \"./items/items.vue\";\nimport { resolveViewportMenuContentStyle } from \"./content-size\";\nimport { useMenuLayerClass } from \"./surface/use-layer\";\nimport { useMenuInitialFocus } from \"./initial-focus\";\nimport { provideSubmenuSiblings } from \"./surface/siblings\";\nimport { provideMenuPortal } from \"./surface/portal\";\nimport { useNestedMenuScroll } from \"./surface/scroll\";\nimport MenuTrigger from \"./surface/trigger.vue\";\n\n/** Placement values supported by the public Menu adapter. */\ntype MenuPlacement =\n | \"bottom-start\"\n | \"bottom-end\"\n | \"top-start\"\n | \"top-end\"\n | \"left-start\"\n | \"left-end\"\n | \"right-start\"\n | \"right-end\";\n\n/** Public properties for the Vue Menu root adapter. */\ninterface Props {\n /** Ordered declarative entries; the default slot takes precedence when supplied. */\n readonly items?: readonly QuireKitMenuEntry[];\n /** Screen point for controlled semantic menus without a DOM trigger. */\n readonly anchorPoint?: QuireKitMenuAnchorPoint;\n /** Owning document container for the floating surface. */\n readonly portalTarget?: string | HTMLElement;\n /** 菜单的稳定标识,用于关联入口与内容。 */\n readonly id?: string;\n /** Accessible name announced for the menu content. */\n readonly ariaLabel?: string;\n /** Initial open state when the controlled open value is omitted. */\n readonly defaultOpen?: boolean;\n /** Whether opening focuses an embedded control or the menu navigation surface. */\n readonly initialFocus?: QuireKitMenuInitialFocus;\n /** Whether selecting an ordinary item closes the menu. */\n readonly closeOnSelect?: boolean;\n /** Whether ArrowDown from the final row returns to the first available row. */\n readonly loopFocus?: boolean;\n /** Whether printable keys move highlight by label prefix. */\n readonly typeahead?: boolean;\n /** Preferred placement around the trigger. */\n readonly placement?: MenuPlacement;\n /** Whether the floating positioner teleports to the document body. */\n readonly portalled?: boolean;\n /** Whether Menu owns floating placement; false lets a host position the public surface. */\n readonly positioned?: boolean;\n /** Fixed content width; use `auto` to size directly from content. */\n readonly width?: QuireKitMenuLength;\n /** Minimum content width that may continue growing with its rows. */\n readonly minWidth?: QuireKitMenuLength;\n /** Maximum content width after which labels truncate with an ellipsis. */\n readonly maxWidth?: QuireKitMenuLength;\n}\n\n/** Public events emitted by the Vue Menu root adapter. */\ninterface Emits {\n /** 用户执行普通条目或更改勾选、单选项时触发。 */\n readonly select: [value: string];\n /** 当前高亮条目变化时触发。 */\n readonly highlightChange: [value: string | null];\n}\n\n/** Public slots exposed by the Vue Menu root adapter. */\ninterface Slots {\n /** Single interactive element that opens the menu. */\n readonly trigger?: () => unknown;\n /** Menu groups, rows, separators, and nested menus. */\n readonly default?: () => unknown;\n}\n\nprovideSubmenuSiblings();\nconst {\n id,\n items,\n anchorPoint,\n portalTarget,\n ariaLabel,\n defaultOpen = false,\n initialFocus = \"auto\",\n closeOnSelect = true,\n loopFocus = true,\n typeahead = true,\n placement = \"bottom-start\",\n portalled = true,\n positioned = true,\n width,\n minWidth,\n maxWidth\n} = defineProps<Props>();\nconst portal = provideMenuPortal(() => portalTarget);\nconst overlayHost = useQuireOverlayHost();\ndefineOptions({ inheritAttrs: false });\nconst contentAttrs = useAttrs();\nconst emit = defineEmits<Emits>();\nconst open = defineModel<boolean | undefined>(\"open\", { default: undefined });\nconst content = ref<ComponentPublicInstance | HTMLElement>();\nuseNestedMenuScroll(() => content.value, () => open.value ?? defaultOpen);\nuseMenuInitialFocus(() => content.value, () => open.value ?? defaultOpen, () => initialFocus);\nconst slots = defineSlots<Slots>();\nconst { layerClass, layerStyle, portalDisabled } = useMenuLayerClass(() => portalled, () => open.value ?? defaultOpen);\nconst surfaceKey = computed(() => anchorPoint === undefined\n ? \"trigger\"\n : `point:${anchorPoint.x}:${anchorPoint.y}`);\n// Let each async boundary hydrate its own menu before joining the shared target.\nconst mounted = ref(false);\nonMounted(() => { mounted.value = true; });\n\n/** @returns Ark UI root properties with uncontrolled values omitted. */\nconst rootProps = computed(() => ({\n ...(id === undefined ? {} : { id }),\n ...(ariaLabel === undefined ? {} : { \"aria-label\": ariaLabel }),\n // The initial default and the host-owned state are mutually exclusive inputs.\n ...(open.value === undefined ? { defaultOpen } : { open: open.value }),\n closeOnSelect,\n loopFocus,\n typeahead,\n ...(anchorPoint === undefined ? {} : { anchorPoint }),\n positioning: {\n placement,\n gutter: 6,\n flip: true,\n slide: true,\n overflowPadding: 8,\n strategy: overlayHost.strategy.value ?? \"fixed\" as const,\n ...(anchorPoint === undefined ? {} : {\n getAnchorRect: () => ({\n x: anchorPoint.x,\n y: anchorPoint.y,\n top: anchorPoint.y,\n right: anchorPoint.x,\n bottom: anchorPoint.y,\n left: anchorPoint.x,\n width: 0,\n height: 0\n })\n })\n }\n}));\nconst contentStyle = computed(() => resolveViewportMenuContentStyle(\n width,\n minWidth,\n maxWidth\n));\n\n/**\n * Projects Ark UI selection details to the stable public value contract.\n *\n * @param details - Selection details emitted by the Zag menu machine.\n */\nfunction handleSelect(details: MenuSelectionDetails): void {\n if (!items || slots.default) emit(\"select\", details.value);\n}\n\n/**\n * Projects Ark UI highlight details to the stable public value contract.\n *\n * @param details - Highlight details emitted by the Zag menu machine.\n */\nfunction handleHighlightChange(details: MenuHighlightChangeDetails): void {\n emit(\"highlightChange\", details.highlightedValue);\n}\n</script>\n\n<template>\n <Menu.Root\n :key=\"surfaceKey\"\n v-bind=\"rootProps\"\n lazy-mount\n unmount-on-exit\n @update:open=\"open = $event\"\n @select=\"handleSelect\"\n @highlight-change=\"handleHighlightChange\"\n >\n <MenuTrigger v-if=\"$slots.trigger\" as-child>\n <slot name=\"trigger\" />\n </MenuTrigger>\n <Teleport :to=\"portal\" :disabled=\"portalDisabled || !mounted\">\n <QuireThemePortal>\n <component :is=\"positioned ? Menu.Positioner : 'div'\" :class=\"positioned ? ['qk-menu__positioner', layerClass] : undefined\" :style=\"layerStyle\">\n <!-- Exit animation may retain the panel after close; it must no longer accept deferred focus. -->\n <Menu.Content\n ref=\"content\"\n v-bind=\"contentAttrs\"\n class=\"qk-menu qk-menu--viewport\"\n :aria-label=\"ariaLabel\"\n :inert=\"!(open ?? defaultOpen) || undefined\"\n :style=\"[contentStyle, contentAttrs.style as StyleValue, !positioned && { transitionProperty: 'opacity' }]\"\n data-qk-menu-content\n >\n <slot><QuireMenuItems v-if=\"items\" :items=\"items\" :close-on-select=\"closeOnSelect\" :content-props=\"contentAttrs\" @select=\"emit('select', $event)\" /></slot>\n </Menu.Content>\n </component>\n </QuireThemePortal>\n </Teleport>\n </Menu.Root>\n</template>\n","const selectionKeys = new Set([\" \", \"Spacebar\", \"ArrowLeft\", \"ArrowRight\", \"ArrowUp\", \"ArrowDown\"]);\n\n/**\n * Keeps a focusable readonly radio from invoking native keyboard selection.\n * @param event - Captured keyboard event inside the radio group.\n * @param readOnly - Whether selection is currently readonly.\n */\nexport function guardRadioReadOnlyKey(event: KeyboardEvent, readOnly: boolean): void {\n if (!readOnly || !selectionKeys.has(event.key)) return;\n const target = event.target;\n if (!(target instanceof Element) || target.tagName !== \"INPUT\" || target.getAttribute(\"type\") !== \"radio\") return;\n event.preventDefault();\n}\n","<script setup lang=\"ts\">\nimport { RadioGroup } from \"@ark-ui/vue/radio-group\";\nimport { computed, useId } from \"vue\";\nimport { guardRadioReadOnlyKey } from \"./keyboard\";\nimport type {\n QuireKitRadioGroupItem,\n QuireKitRadioGroupOrientation,\n QuireKitRadioGroupSize\n} from \"../../components/radio-group\";\n\n/** Vue RadioGroup 的公开属性。 */\ninterface Props {\n /** radiogroup 的可访问标签,默认可见。 */\n readonly label: string;\n /** 隐藏可见标题,仍保留读屏标签关联。 */\n readonly hideLabel?: boolean;\n /** 按 DOM 顺序渲染的稳定选项。 */\n readonly items: readonly QuireKitRadioGroupItem[];\n /** 未受控使用时的初始值。 */\n readonly defaultValue?: string | null;\n /** 原生 radio 共享的表单字段名。 */\n readonly name?: string;\n /** 关联的 form id。 */\n readonly form?: string;\n /** 选项排列和可访问方向;方向键遵循原生 radio 行为。 */\n readonly orientation?: QuireKitRadioGroupOrientation;\n /** 控件与文字的公开尺寸。 */\n readonly size?: QuireKitRadioGroupSize;\n /** 是否禁用整组。 */\n readonly disabled?: boolean;\n /** 是否允许聚焦与读取但禁止修改。 */\n readonly readOnly?: boolean;\n /** 是否要求选中一项。 */\n readonly required?: boolean;\n /** 是否处于校验错误状态。 */\n readonly invalid?: boolean;\n}\n\n/** 自定义 radio 内容时获得的稳定上下文。 */\ninterface ItemSlotProps {\n /** 当前渲染的选项。 */\n readonly item: QuireKitRadioGroupItem;\n /** 当前选项是否已选中。 */\n readonly selected: boolean;\n}\n\n/** RadioGroup 的可替换内容位置。 */\ninterface Slots {\n /** 替换一个选项的可见内容。 */\n readonly item?: (props: ItemSlotProps) => unknown;\n}\n\nconst props = withDefaults(defineProps<Props>(), {\n defaultValue: null,\n hideLabel: false,\n orientation: \"vertical\",\n size: \"sm\",\n disabled: false,\n readOnly: false,\n required: false,\n invalid: false\n});\nconst selectedValue = defineModel<string | null>();\ndefineSlots<Slots>();\n\nconst generatedId = useId();\nconst currentValue = computed(() => selectedValue.value ?? props.defaultValue);\nconst optionalRootProps = computed(() => ({\n ...(selectedValue.value === undefined ? {} : { modelValue: selectedValue.value }),\n ...(props.name === undefined ? {} : { name: props.name }),\n ...(props.form === undefined ? {} : { form: props.form })\n}));\n\n/**\n * 返回当前选项说明的稳定 DOM id。\n *\n * @param item - 当前 radio 选项。\n * @returns 可供原生 input 引用的说明 id。\n */\nfunction descriptionId(item: QuireKitRadioGroupItem): string {\n return `qk-radio-${generatedId}-${item.value}-description`;\n}\n\n/**\n * 把 Ark 的下一值同步给可选的 v-model。\n *\n * @param value - 用户交互后选中的值。\n */\nfunction updateValue(value: string | null): void {\n selectedValue.value = value;\n}\n</script>\n\n<template>\n <RadioGroup.Root\n v-bind=\"optionalRootProps\"\n :default-value=\"defaultValue\"\n :orientation=\"orientation\"\n :disabled=\"disabled\"\n :read-only=\"readOnly\"\n :required=\"required\"\n :invalid=\"invalid\"\n :class=\"[\n 'qk-radio-group',\n `qk-radio-group--${orientation}`,\n `qk-radio-group--${size}`,\n invalid && 'qk-radio-group--invalid',\n disabled && 'qk-radio-group--disabled'\n ]\"\n @update:model-value=\"updateValue\"\n @keydown.capture=\"guardRadioReadOnlyKey($event, readOnly)\"\n >\n <RadioGroup.Label :class=\"['qk-radio-group__label', hideLabel && 'sr-only']\">\n {{ label }}<span v-if=\"required\" aria-hidden=\"true\" class=\"qk-radio-group__required\">*</span>\n </RadioGroup.Label>\n <span :class=\"['qk-radio-group__items', `qk-radio-group__items--${orientation}`]\">\n <RadioGroup.Item\n v-for=\"item in items\"\n :key=\"item.value\"\n :value=\"item.value\"\n :disabled=\"item.disabled\"\n :class=\"['qk-radio-group__item', `qk-radio-group__item--${size}`]\"\n >\n <RadioGroup.ItemContext v-slot=\"itemState\">\n <RadioGroup.ItemHiddenInput\n :disabled=\"itemState.disabled\"\n :aria-describedby=\"item.description === undefined ? undefined : descriptionId(item)\"\n />\n </RadioGroup.ItemContext>\n <RadioGroup.ItemControl :class=\"['qk-radio-group__control', `qk-radio-group__control--${size}`]\">\n <span\n aria-hidden=\"true\"\n :class=\"[\n 'qk-radio-group__mark',\n currentValue === item.value && 'qk-radio-group__mark--selected'\n ]\"\n />\n </RadioGroup.ItemControl>\n <span class=\"qk-radio-group__content\">\n <RadioGroup.ItemText class=\"qk-radio-group__item-label\">\n <slot name=\"item\" :item=\"item\" :selected=\"currentValue === item.value\">\n {{ item.label }}\n </slot>\n </RadioGroup.ItemText>\n <span\n v-if=\"item.description !== undefined\"\n :id=\"descriptionId(item)\"\n class=\"qk-radio-group__description\"\n >{{ item.description }}</span>\n </span>\n </RadioGroup.Item>\n </span>\n </RadioGroup.Root>\n</template>\n","import { onBeforeUnmount, onMounted, type Ref } from \"vue\";\n\n/** 滚动轴。 */\ntype Axis = \"vertical\" | \"horizontal\";\n\n/** 滚动区域各部分的 DOM 引用。 */\nexport interface ScrollAreaElements {\n /** 根节点,悬停状态以它为准。 */\n readonly root: Ref<HTMLElement | null>;\n /** 原生滚动的 viewport。 */\n readonly viewport: Ref<HTMLElement | null>;\n /** viewport 内的内容容器,尺寸变化时重新计算滑块。 */\n readonly content: Ref<HTMLElement | null>;\n /** 各轴滚动条轨道;未启用的轴为 null。 */\n readonly bars: Readonly<Record<Axis, Ref<HTMLElement | null>>>;\n /** 各轴滑块。 */\n readonly thumbs: Readonly<Record<Axis, Ref<HTMLElement | null>>>;\n /** 两个轴都启用时的角落块。 */\n readonly corner: Ref<HTMLElement | null>;\n}\n\n/** 滚动停止后保留 `data-scrolling` 的时间。 */\nconst SCROLLING_TIMEOUT = 1000;\n/** 滑块最小长度,与样式中的最小尺寸一致。 */\nconst MIN_THUMB = 20;\n\n/** @param element 元素。 @param name 属性名。 @param on 是否设置。 写入前比较,避免无变化的属性写入触发样式失效。 */\nfunction flag(element: HTMLElement | null, name: string, on: boolean): void {\n if (!element || element.hasAttribute(name) === on) return;\n if (on) element.setAttribute(name, \"\");\n else element.removeAttribute(name);\n}\n\n/**\n * 自定义滚动条与原生滚动同步。滚动事件只登记脏帧并报告位置,读取滚动尺寸与写入滑块样式集中在\n * 同一动画帧内完成;轨道长度来自 ResizeObserver。整个过程不经过 Vue 响应式状态,也不在包住内容的\n * 祖先节点上写可继承的 CSS 变量,滚动时既不重渲染组件,也不让内容子树的样式失效。\n * @param elements 各部分的 DOM 引用。\n * @param onScroll 每个原生滚动事件后报告坐标。\n * @returns viewport 滚动事件处理函数。\n */\nexport function useScrollSync(elements: ScrollAreaElements, onScroll: (x: number, y: number) => void): (event: Event) => void {\n const track: Record<Axis, number> = { vertical: 0, horizontal: 0 };\n const thickness: Record<Axis, number> = { vertical: 0, horizontal: 0 };\n const timers: Record<Axis, ReturnType<typeof setTimeout> | undefined> = { vertical: undefined, horizontal: undefined };\n const last = { top: 0, left: 0 };\n let frame = 0, rtl = false, observer: ResizeObserver | null = null;\n let drag: { axis: Axis; pointer: number; scroll: number; ratio: number } | null = null;\n\n const schedule = () => { if (!frame) frame = requestAnimationFrame(sync); };\n const bar = (axis: Axis) => elements.bars[axis].value;\n const partsOf = (axis: Axis) => [bar(axis), elements.thumbs[axis].value];\n\n // 读取阶段只取滚动尺寸;写入阶段只改滑块与少数状态属性。\n function sync(): void {\n frame = 0;\n const viewport = elements.viewport.value;\n if (!viewport) return;\n const metrics = {\n vertical: { scroll: viewport.scrollHeight, client: viewport.clientHeight, position: viewport.scrollTop },\n horizontal: { scroll: viewport.scrollWidth, client: viewport.clientWidth, position: Math.abs(viewport.scrollLeft) },\n };\n const overflow = { vertical: metrics.vertical.scroll > metrics.vertical.client + 1, horizontal: metrics.horizontal.scroll > metrics.horizontal.client + 1 };\n for (const element of [elements.root.value, viewport, elements.content.value, bar(\"vertical\"), bar(\"horizontal\"), elements.corner.value]) {\n flag(element, \"data-overflow-y\", overflow.vertical);\n flag(element, \"data-overflow-x\", overflow.horizontal);\n }\n for (const axis of [\"vertical\", \"horizontal\"] as const) {\n const thumb = elements.thumbs[axis].value, { scroll, client, position } = metrics[axis];\n if (!thumb || !overflow[axis] || !track[axis]) continue;\n const size = Math.min(track[axis], Math.max(MIN_THUMB, track[axis] * client / scroll));\n const range = scroll - client, travel = track[axis] - size;\n let offset = range > 0 ? travel * Math.min(1, position / range) : 0;\n if (axis === \"horizontal\" && rtl) offset = travel - offset;\n if (drag?.axis === axis) drag.ratio = range / Math.max(1, travel);\n thumb.style[axis === \"vertical\" ? \"height\" : \"width\"] = `${size}px`;\n thumb.style.transform = axis === \"vertical\" ? `translate3d(0, ${offset}px, 0)` : `translate3d(${offset}px, 0, 0)`;\n }\n // 两个方向都可滚动时,轨道给角落块让出对方滚动条的厚度。\n const both = overflow.vertical && overflow.horizontal;\n const vertical = bar(\"vertical\"), horizontal = bar(\"horizontal\"), corner = elements.corner.value;\n if (vertical) vertical.style.bottom = both ? `${thickness.horizontal}px` : \"0px\";\n if (horizontal) horizontal.style.insetInlineEnd = both ? `${thickness.vertical}px` : \"0px\";\n if (corner) { corner.style.width = both ? `${thickness.vertical}px` : \"0px\"; corner.style.height = both ? `${thickness.horizontal}px` : \"0px\"; }\n }\n\n /** @param axis 轴。 标记正在滚动,停止一段时间后清除。 */\n function scrolling(axis: Axis): void {\n flag(bar(axis), \"data-scrolling\", true);\n clearTimeout(timers[axis]);\n timers[axis] = setTimeout(() => flag(bar(axis), \"data-scrolling\", false), SCROLLING_TIMEOUT);\n }\n\n /** @param event viewport 原生滚动事件。 */\n function handleScroll(event: Event): void {\n const viewport = event.currentTarget as HTMLElement;\n const top = viewport.scrollTop, left = viewport.scrollLeft;\n if (top !== last.top) scrolling(\"vertical\");\n if (left !== last.left) scrolling(\"horizontal\");\n last.top = top; last.left = left;\n schedule();\n onScroll(left, top);\n }\n\n /** @param on 指针是否在区域内。 */\n const hover = (on: boolean) => { for (const element of [bar(\"vertical\"), bar(\"horizontal\"), elements.corner.value]) flag(element, \"data-hover\", on); };\n const enter = () => hover(true);\n const leave = () => hover(false);\n\n /** @param axis 轴。 @param event 轨道上的按下:滚动到使滑块中心对准指针的位置。 */\n function trackDown(axis: Axis, event: PointerEvent): void {\n const viewport = elements.viewport.value, thumb = elements.thumbs[axis].value, element = bar(axis);\n if (event.button !== 0 || event.target !== element || !viewport || !thumb || !element) return;\n const rect = element.getBoundingClientRect();\n const size = axis === \"vertical\" ? thumb.offsetHeight : thumb.offsetWidth, travel = Math.max(1, track[axis] - size);\n const along = axis === \"vertical\" ? event.clientY - rect.top : rtl ? rect.right - event.clientX : event.clientX - rect.left;\n const ratio = Math.min(1, Math.max(0, (along - size / 2) / travel));\n if (axis === \"vertical\") viewport.scrollTop = ratio * (viewport.scrollHeight - viewport.clientHeight);\n else viewport.scrollLeft = (rtl ? -1 : 1) * ratio * (viewport.scrollWidth - viewport.clientWidth);\n event.preventDefault();\n }\n\n /** @param axis 轴。 @param event 滑块上的按下:开始拖动。 */\n function thumbDown(axis: Axis, event: PointerEvent): void {\n const viewport = elements.viewport.value, thumb = elements.thumbs[axis].value;\n if (event.button !== 0 || !viewport || !thumb) return;\n const size = axis === \"vertical\" ? thumb.offsetHeight : thumb.offsetWidth;\n const range = axis === \"vertical\" ? viewport.scrollHeight - viewport.clientHeight : viewport.scrollWidth - viewport.clientWidth;\n drag = { axis, pointer: axis === \"vertical\" ? event.clientY : event.clientX, scroll: axis === \"vertical\" ? viewport.scrollTop : viewport.scrollLeft,\n ratio: range / Math.max(1, track[axis] - size) };\n thumb.setPointerCapture(event.pointerId);\n for (const part of partsOf(axis)) flag(part, \"data-dragging\", true);\n event.preventDefault();\n event.stopPropagation();\n }\n\n /** @param event 拖动中的移动。 */\n function thumbMove(event: PointerEvent): void {\n const viewport = elements.viewport.value;\n if (!drag || !viewport) return;\n const delta = (drag.axis === \"vertical\" ? event.clientY : event.clientX) - drag.pointer;\n if (drag.axis === \"vertical\") viewport.scrollTop = drag.scroll + delta * drag.ratio;\n else viewport.scrollLeft = drag.scroll + (rtl ? -1 : 1) * delta * drag.ratio;\n }\n\n /** 结束拖动。 */\n function thumbUp(): void {\n if (!drag) return;\n for (const part of partsOf(drag.axis)) flag(part, \"data-dragging\", false);\n drag = null;\n }\n\n const listeners: [HTMLElement, string, EventListener][] = [];\n /** @param element 元素。 @param type 事件。 @param listener 处理函数。 */\n const listen = (element: HTMLElement | null, type: string, listener: (event: PointerEvent) => void) => {\n if (!element) return;\n element.addEventListener(type, listener as EventListener);\n listeners.push([element, type, listener as EventListener]);\n };\n\n onMounted(() => {\n const viewport = elements.viewport.value;\n if (!viewport) return;\n rtl = getComputedStyle(viewport).direction === \"rtl\";\n listen(elements.root.value, \"pointerenter\", enter);\n listen(elements.root.value, \"pointerleave\", leave);\n for (const axis of [\"vertical\", \"horizontal\"] as const) {\n const thumb = elements.thumbs[axis].value;\n listen(bar(axis), \"pointerdown\", event => trackDown(axis, event));\n listen(thumb, \"pointerdown\", event => thumbDown(axis, event));\n listen(thumb, \"pointermove\", thumbMove);\n listen(thumb, \"pointerup\", thumbUp);\n listen(thumb, \"pointercancel\", thumbUp);\n listen(thumb, \"lostpointercapture\", thumbUp);\n }\n // 轨道长度与厚度来自观察结果,同步时不再读取布局。\n observer = new ResizeObserver((entries) => {\n for (const entry of entries) {\n for (const axis of [\"vertical\", \"horizontal\"] as const) {\n if (entry.target !== bar(axis)) continue;\n track[axis] = axis === \"vertical\" ? entry.contentRect.height : entry.contentRect.width;\n const box = entry.borderBoxSize?.[0];\n thickness[axis] = box ? (axis === \"vertical\" ? box.inlineSize : box.blockSize) : 0;\n }\n }\n schedule();\n });\n for (const element of [viewport, elements.content.value, bar(\"vertical\"), bar(\"horizontal\")]) if (element) observer.observe(element);\n schedule();\n });\n\n onBeforeUnmount(() => {\n cancelAnimationFrame(frame);\n frame = 0;\n clearTimeout(timers.vertical);\n clearTimeout(timers.horizontal);\n observer?.disconnect();\n for (const [element, type, listener] of listeners) element.removeEventListener(type, listener);\n listeners.length = 0;\n });\n\n return handleScroll;\n}\n","<script setup lang=\"ts\">\nimport { computed, shallowRef } from \"vue\";\nimport type {\n QuireKitScrollAreaAxis,\n QuireKitScrollAreaEdge,\n QuireKitScrollAreaPosition,\n QuireKitScrollAreaSize,\n QuireKitScrollAreaVisibility\n} from \"../../components/scroll-area\";\nimport { useScrollSync } from \"./use-scroll-sync\";\n\n/** Vue ScrollArea 适配器的公开属性。 */\ninterface Props {\n /** ScrollArea 根节点的稳定标识。 */\n readonly id?: string;\n /** 需要呈现自定义滚动条的轴。 */\n readonly axis?: QuireKitScrollAreaAxis;\n /** 滚动条始终可见,或仅在悬停、滚动与拖拽期间显示。 */\n readonly scrollbarVisibility?: QuireKitScrollAreaVisibility;\n /** 滚动条轨道与滑块的粗细。 */\n readonly size?: QuireKitScrollAreaSize;\n /** 滚动区域的可访问名称;提供后可作为独立区域辨认。 */\n readonly label?: string;\n /** 附加到 viewport 的样式类。 */\n readonly viewportClass?: string;\n /** 附加到 content 的样式类。 */\n readonly contentClass?: string;\n}\n\n/** ScrollArea 的内容插槽。 */\ninterface Slots {\n /** 可滚动的内容。 */\n readonly default?: () => unknown;\n}\n\n/** ScrollArea 发出的公开语义事件。 */\ninterface Emits {\n /** viewport 原生滚动后报告最新坐标。 */\n scroll: [position: QuireKitScrollAreaPosition];\n}\n\n/** ScrollArea 公开给模板引用的命令。 */\ninterface Exposed {\n /** 挂载后取得真实滚动 viewport;卸载后为 null,用于测量与滚动互操作。 */\n readonly getViewportElement: () => HTMLElement | null;\n /** 滚动到指定坐标。 */\n readonly scrollTo: (details: ScrollToOptions) => void;\n /** 滚动到指定内容边缘。 */\n readonly scrollToEdge: (\n edge: QuireKitScrollAreaEdge,\n behavior?: ScrollBehavior\n ) => void;\n}\n\nconst props = withDefaults(defineProps<Props>(), {\n axis: \"vertical\",\n scrollbarVisibility: \"auto\",\n size: \"sm\"\n});\nconst emit = defineEmits<Emits>();\ndefineSlots<Slots>();\n\nconst root = shallowRef<HTMLElement | null>(null);\nconst viewport = shallowRef<HTMLElement | null>(null);\nconst content = shallowRef<HTMLElement | null>(null);\nconst verticalBar = shallowRef<HTMLElement | null>(null);\nconst horizontalBar = shallowRef<HTMLElement | null>(null);\nconst verticalThumb = shallowRef<HTMLElement | null>(null);\nconst horizontalThumb = shallowRef<HTMLElement | null>(null);\nconst corner = shallowRef<HTMLElement | null>(null);\nconst showVerticalScrollbar = computed(() => props.axis !== \"horizontal\");\nconst showHorizontalScrollbar = computed(() => props.axis !== \"vertical\");\n\n/**\n * Returns the native scrolling viewport.\n *\n * @returns The current scrollable element, or null before mount.\n */\nfunction getViewportElement(): HTMLElement | null {\n return viewport.value;\n}\n\nconst handleScroll = useScrollSync({\n root, viewport, content, corner,\n bars: { vertical: verticalBar, horizontal: horizontalBar },\n thumbs: { vertical: verticalThumb, horizontal: horizontalThumb }\n}, (x, y) => emit(\"scroll\", { x, y }));\n\n/**\n * Scrolls the viewport to an explicit coordinate.\n *\n * @param details - Native scrolling coordinates and behavior.\n */\nfunction scrollTo(details: ScrollToOptions): void {\n getViewportElement()?.scrollTo(details);\n}\n\n/**\n * Scrolls the viewport to one logical content edge.\n *\n * @param edge - Content edge that should become visible.\n * @param behavior - Native instant or smooth scrolling behavior.\n */\nfunction scrollToEdge(\n edge: QuireKitScrollAreaEdge,\n behavior: ScrollBehavior = \"smooth\"\n): void {\n const element = getViewportElement();\n if (element === null) return;\n\n const coordinates: ScrollToOptions = { behavior };\n if (edge === \"top\") coordinates.top = 0;\n if (edge === \"bottom\") coordinates.top = element.scrollHeight;\n if (edge === \"left\") coordinates.left = 0;\n if (edge === \"right\") coordinates.left = element.scrollWidth;\n element.scrollTo(coordinates);\n}\n\ndefineExpose<Exposed>({ scrollTo, scrollToEdge, getViewportElement });\n</script>\n\n<template>\n <div\n :id=\"id\"\n ref=\"root\"\n data-scope=\"scroll-area\"\n data-part=\"root\"\n :class=\"[\n 'qk-scroll-area',\n `qk-scroll-area--${axis}`,\n `qk-scroll-area--${scrollbarVisibility}`\n ]\"\n >\n <div\n ref=\"viewport\"\n data-scope=\"scroll-area\"\n data-part=\"viewport\"\n :role=\"label === undefined ? 'presentation' : 'region'\"\n :aria-label=\"label\"\n :tabindex=\"label === undefined ? undefined : 0\"\n :class=\"['qk-scroll-area__viewport', viewportClass]\"\n style=\"overflow: auto\"\n @scroll.passive=\"handleScroll\"\n >\n <div ref=\"content\" data-scope=\"scroll-area\" data-part=\"content\" role=\"presentation\" :class=\"['qk-scroll-area__content', contentClass]\" style=\"min-width: fit-content\">\n <slot />\n </div>\n </div>\n\n <div\n v-if=\"showVerticalScrollbar\"\n ref=\"verticalBar\"\n data-scope=\"scroll-area\"\n data-part=\"scrollbar\"\n data-orientation=\"vertical\"\n :class=\"[\n 'qk-scroll-area__scrollbar',\n 'qk-scroll-area__scrollbar--vertical',\n `qk-scroll-area__scrollbar--${size}`\n ]\"\n style=\"position: absolute; top: 0; bottom: 0; inset-inline-end: 0\"\n >\n <div ref=\"verticalThumb\" data-scope=\"scroll-area\" data-part=\"thumb\" data-orientation=\"vertical\" class=\"qk-scroll-area__thumb\" />\n </div>\n\n <div\n v-if=\"showHorizontalScrollbar\"\n ref=\"horizontalBar\"\n data-scope=\"scroll-area\"\n data-part=\"scrollbar\"\n data-orientation=\"horizontal\"\n :class=\"[\n 'qk-scroll-area__scrollbar',\n 'qk-scroll-area__scrollbar--horizontal',\n `qk-scroll-area__scrollbar--${size}`\n ]\"\n style=\"position: absolute; bottom: 0; inset-inline-start: 0; inset-inline-end: 0\"\n >\n <div ref=\"horizontalThumb\" data-scope=\"scroll-area\" data-part=\"thumb\" data-orientation=\"horizontal\" class=\"qk-scroll-area__thumb\" />\n </div>\n\n <div\n v-if=\"axis === 'both'\"\n ref=\"corner\"\n data-scope=\"scroll-area\"\n data-part=\"corner\"\n class=\"qk-scroll-area__corner\"\n style=\"position: absolute; bottom: 0; inset-inline-end: 0; width: 0; height: 0\"\n />\n </div>\n</template>\n","<script setup lang=\"ts\">\nimport { useQuireOverlayHost } from \"../overlay-provider\";\nimport QuireThemePortal from \"../theme-provider/portal.vue\";\nimport { computed, onMounted, ref, useAttrs } from \"vue\";\nimport { Tooltip, useTooltipContext } from \"@ark-ui/vue/tooltip\";\nimport { resolveTooltipContent } from \"../../components/tooltip\";\nimport { useModalPortal } from \"../shared/surface/use-modal-portal\";\nimport { chordText, keyLabel } from \"../kbd/labels\";\n\n/** Tooltip Content 的公开属性。 */\ninterface Props {\n /** 普通提示标签或快捷键说明。 */\n readonly content?: string;\n /** 显示在提示文字后的快捷键,按阅读顺序列出;仅展示,不注册按键。 */\n readonly shortcut?: readonly string[];\n /** 控件不可用时替换普通提示的原因说明。 */\n readonly disabledReason?: string;\n /** 被提示的控件是否不可用。 */\n readonly subjectDisabled?: boolean;\n /** 是否把浮层内容传送到 portal 目标。 */\n readonly portalled?: boolean;\n /** Portal 的目标元素或 CSS 选择器。 */\n readonly portalTarget?: string | HTMLElement;\n /** 是否渲染与当前 placement 同步的定位箭头;默认开启。 */\n readonly showArrow?: boolean;\n}\n\n/** Tooltip Content 的组合插槽。 */\ninterface Slots {\n /** 可覆盖纯文本提示;slot prop 始终返回已解析的当前文案。 */\n readonly default?: (props: {\n readonly content: string | undefined;\n }) => unknown;\n}\n\nconst props = withDefaults(defineProps<Props>(), {\n subjectDisabled: false,\n portalled: true,\n showArrow: true\n});\ndefineSlots<Slots>();\ndefineOptions({ inheritAttrs: false });\n\nconst portal = useQuireOverlayHost(() => props.portalTarget);\nconst attrs = useAttrs();\nconst context = useTooltipContext();\nconst { disabled: portalDisabled } = useModalPortal(() => props.portalled, () => context.value.open);\n// Independent async boundaries may hydrate in a different order from server portals.\n// Keep this content beside its trigger until its own boundary has been hydrated.\nconst mounted = ref(false);\nonMounted(() => { mounted.value = true; });\nconst resolvedContent = computed(() =>\n resolveTooltipContent({\n subjectDisabled: props.subjectDisabled,\n ...(props.content === undefined ? {} : { content: props.content }),\n ...(props.disabledReason === undefined\n ? {}\n : { disabledReason: props.disabledReason })\n })\n);\nconst shortcutText = computed(() =>\n props.shortcut?.length && !(props.subjectDisabled && props.disabledReason) ? chordText(props.shortcut) : \"\");\n</script>\n\n<template>\n <Teleport\n :to=\"portal.target.value\"\n :disabled=\"portalDisabled || !mounted\"\n >\n <QuireThemePortal>\n <Tooltip.Positioner\n v-if=\"$slots.default || resolvedContent\"\n class=\"qk-tooltip__positioner\"\n style=\"pointer-events: none\"\n data-scope=\"tooltip\"\n data-part=\"positioner\"\n >\n <Tooltip.Content\n v-bind=\"attrs\"\n class=\"qk-tooltip__content\"\n data-scope=\"tooltip\"\n data-part=\"content\"\n >\n <Tooltip.Arrow\n v-if=\"showArrow\"\n class=\"qk-tooltip__arrow\"\n data-scope=\"tooltip\"\n data-part=\"arrow\"\n >\n <Tooltip.ArrowTip\n class=\"qk-tooltip__arrow-tip\"\n data-scope=\"tooltip\"\n data-part=\"arrow-tip\"\n />\n </Tooltip.Arrow>\n <slot :content=\"resolvedContent\">\n {{ resolvedContent }}<kbd v-if=\"shortcutText\" class=\"qk-tooltip__shortcut\" :aria-label=\"keyLabel(shortcut!)\">{{ shortcutText }}</kbd>\n </slot>\n </Tooltip.Content>\n </Tooltip.Positioner>\n </QuireThemePortal>\n </Teleport>\n</template>\n","import type { InjectionKey } from \"vue\";\nimport type { TooltipFocusPolicy } from \"./types\";\n\n/** Shares reactive root settings without introducing another visibility state. */\nexport const tooltipFocusPolicyKey: InjectionKey<TooltipFocusPolicy> = Symbol(\"tooltip-focus-policy\");\n\n/**\n * Finds scrollports that can move or clip a trigger.\n * @param trigger - The actual button or as-child focus target.\n * @returns Clipping ancestors in nearest-first order.\n */\nfunction scrollports(trigger: HTMLElement): HTMLElement[] {\n const result: HTMLElement[] = [];\n const win = trigger.ownerDocument.defaultView!;\n let parent = trigger.parentElement;\n while (parent) {\n const style = win.getComputedStyle(parent);\n // Boxless toolbar wrappers cannot clip descendants even when they retain an\n // overflow declaration; only real scrollport boxes constrain visible focus.\n if (style.display !== \"contents\"\n && /(auto|scroll|overlay|hidden|clip)/u.test(`${style.overflowX} ${style.overflowY}`)) result.push(parent);\n parent = parent.parentElement;\n }\n return result;\n}\n\n/**\n * Allows a large trigger's visible portion to remain an accessible explanation target.\n * @param trigger - The focused target after scrolling settles.\n * @param parents - Scrollports whose visible rectangles constrain the target.\n * @returns Whether the target has a positive visible intersection with every scrollport.\n */\nfunction isPartlyVisible(trigger: HTMLElement, parents: readonly HTMLElement[]): boolean {\n const rect = trigger.getBoundingClientRect();\n const win = trigger.ownerDocument.defaultView!;\n let top = Math.max(0, rect.top);\n let left = Math.max(0, rect.left);\n let bottom = Math.min(win.innerHeight, rect.bottom);\n let right = Math.min(win.innerWidth, rect.right);\n for (const parent of parents) {\n const box = parent.getBoundingClientRect();\n top = Math.max(top, box.top + parent.clientTop);\n left = Math.max(left, box.left + parent.clientLeft);\n bottom = Math.min(bottom, box.top + parent.clientTop + parent.clientHeight);\n right = Math.min(right, box.left + parent.clientLeft + parent.clientWidth);\n }\n return bottom > top && right > left;\n}\n\n/**\n * Hands keyboard focus to Ark after native scrolling settles, keeping the original event.\n * Pointer opening, visibility, dismissal and positioning stay entirely in Ark.\n * @param event - The real FocusEvent received by the public trigger.\n * @param forward - The current Ark focus handler.\n * @returns Cancellation for blur, host changes or component unmount.\n */\nexport function forwardTooltipFocus(event: FocusEvent, forward: (event: FocusEvent) => void): () => void {\n const trigger = event.target as HTMLElement;\n const doc = trigger.ownerDocument;\n const win = doc.defaultView!;\n const parents = scrollports(trigger);\n if (event.defaultPrevented || !trigger.matches(\":focus-visible\")) {\n forward(event);\n return () => {};\n }\n\n // Native focus can reveal the target before focusin, then dispatch scroll later.\n // Every keyboard focus waits for the same stable window before Ark owns dismissal.\n let frame = 0;\n let stationary = 0;\n let positions = readPositions();\n\n /** @returns The current positions in all relevant scroll coordinate spaces. */\n function readPositions(): string {\n return [win.scrollX, win.scrollY, ...parents.flatMap(parent => [parent.scrollLeft, parent.scrollTop])].join(\",\");\n }\n\n /** Cancels delivery without changing the machine or moving focus. */\n function cancel(): void {\n win.cancelAnimationFrame(frame);\n trigger.removeEventListener(\"focusout\", cancel);\n doc.removeEventListener(\"wheel\", cancel, true);\n doc.removeEventListener(\"touchstart\", cancel, true);\n doc.removeEventListener(\"pointerdown\", cancel, true);\n doc.removeEventListener(\"keydown\", keydown);\n }\n\n /**\n * User scrolling, activation and Escape supersede a pending focus explanation.\n * @param input - User keyboard input following the focus event.\n */\n function keydown(input: KeyboardEvent): void {\n if (!input.isComposing && !input.defaultPrevented) cancel();\n }\n\n /** Waits for real geometry to settle instead of guessing a scrolling duration. */\n function settle(): void {\n if (doc.activeElement !== trigger || event.defaultPrevented) {\n cancel();\n return;\n }\n const next = readPositions();\n stationary = next === positions ? stationary + 1 : 0;\n positions = next;\n if (stationary < 3) {\n frame = win.requestAnimationFrame(settle);\n return;\n }\n cancel();\n if (isPartlyVisible(trigger, parents)) forward(event);\n }\n\n trigger.addEventListener(\"focusout\", cancel);\n doc.addEventListener(\"wheel\", cancel, { capture: true, passive: true });\n doc.addEventListener(\"touchstart\", cancel, { capture: true, passive: true });\n doc.addEventListener(\"pointerdown\", cancel, { capture: true, passive: true });\n doc.addEventListener(\"keydown\", keydown);\n frame = win.requestAnimationFrame(settle);\n return cancel;\n}\n","<script setup lang=\"ts\">\nimport { useQuireOverlayHost } from \"../overlay-provider\";\nimport { computed, provide } from \"vue\";\nimport { Tooltip } from \"@ark-ui/vue/tooltip\";\nimport type {\n TooltipOpenChangeDetails,\n TooltipRootProps\n} from \"@ark-ui/vue/tooltip\";\nimport {\n defaultTooltipCloseDelay,\n defaultTooltipOpenDelay,\n type QuireKitTooltipPlacement\n} from \"../../components/tooltip\";\nimport { tooltipFocusPolicyKey } from \"./focus-reveal\";\n\n/** Vue Tooltip 根组件的公开属性。 */\ninterface Props {\n /** Shared DOM identity when the target is also another public component’s trigger. */\n readonly triggerId?: string | undefined;\n /** 受控打开状态;省略时由组件管理。 */\n readonly open?: boolean | undefined;\n /** 非受控模式的初始打开状态。 */\n readonly defaultOpen?: boolean;\n /** 悬停或聚焦后的打开延迟,单位为毫秒。 */\n readonly openDelay?: number;\n /** 指针离开控件后的关闭延迟,单位为毫秒。 */\n readonly closeDelay?: number;\n /** 提示相对控件的首选方位。 */\n readonly placement?: QuireKitTooltipPlacement;\n /** 提示与控件的间距,单位为 CSS 像素。 */\n readonly gutter?: number;\n /** 是否停用提示;需要显示禁用原因时使用 subjectDisabled。 */\n readonly disabled?: boolean;\n /** 点击控件时是否关闭提示。 */\n readonly closeOnClick?: boolean;\n /** 在控件上按下指针时是否关闭提示。 */\n readonly closeOnPointerDown?: boolean;\n /** 页面滚动时是否关闭 Tooltip;保留 Tab 聚焦带来的本次自动滚动。 */\n readonly closeOnScroll?: boolean;\n /** Escape 是否关闭 Tooltip。 */\n readonly closeOnEscape?: boolean;\n /** Tooltip 内容的可访问标签。 */\n readonly ariaLabel?: string;\n}\n\n/** Vue Tooltip 根组件发出的公开事件。 */\ninterface Emits {\n /** 受控状态同步事件。 */\n \"update:open\": [open: boolean];\n /** 每次打开状态变化后的语义事件。 */\n openChange: [open: boolean];\n}\n\n/** Vue Tooltip 根组件的组合插槽。 */\ninterface Slots {\n /** Trigger 与 Content 的组合内容。 */\n readonly default: () => unknown;\n}\n\nconst portal = useQuireOverlayHost();\nconst props = withDefaults(defineProps<Props>(), {\n open: undefined,\n defaultOpen: false,\n openDelay: defaultTooltipOpenDelay,\n closeDelay: defaultTooltipCloseDelay,\n placement: \"top\",\n gutter: 6,\n disabled: false,\n closeOnClick: true,\n closeOnPointerDown: true,\n closeOnScroll: true,\n closeOnEscape: true\n});\nconst emit = defineEmits<Emits>();\ndefineSlots<Slots>();\nprovide(tooltipFocusPolicyKey, props);\n\nconst rootBindings = computed(resolveRootBindings);\n\n/**\n * 把公开属性投影到 Ark UI/Zag Tooltip 根组件。\n *\n * Tooltip 固定为非交互说明层,不进入 overlay focus stack;flip、slide 与\n * detached 隐藏由 Zag/Floating UI 统一负责。\n *\n * @returns Ark UI 根组件接收的完整绑定对象。\n */\nfunction resolveRootBindings(): TooltipRootProps {\n return {\n ...(props.open === undefined ? { defaultOpen: props.defaultOpen } : { open: props.open }),\n ...(props.triggerId === undefined ? {} : { ids: { trigger: props.triggerId } }),\n openDelay: props.openDelay,\n closeDelay: props.closeDelay,\n disabled: props.disabled,\n closeOnClick: props.closeOnClick,\n closeOnPointerDown: props.closeOnPointerDown,\n closeOnScroll: props.closeOnScroll,\n closeOnEscape: props.closeOnEscape,\n interactive: false,\n lazyMount: true,\n unmountOnExit: true,\n positioning: {\n ...(portal.strategy.value ? { strategy: portal.strategy.value } : {}),\n placement: props.placement,\n gutter: props.gutter,\n flip: true,\n slide: true,\n hideWhenDetached: true\n },\n ...(props.ariaLabel === undefined\n ? {}\n : { \"aria-label\": props.ariaLabel })\n };\n}\n\n/**\n * 转发 Zag machine 的状态变化,同时维持 Vue 受控合同。\n *\n * @param details - Zag machine 返回的打开状态明细。\n * @returns 无返回值。\n */\nfunction handleOpenChange(details: TooltipOpenChangeDetails): void {\n emit(\"update:open\", details.open);\n emit(\"openChange\", details.open);\n}\n</script>\n\n<template>\n <Tooltip.Root\n v-bind=\"rootBindings\"\n @open-change=\"handleOpenChange\"\n >\n <slot />\n </Tooltip.Root>\n</template>\n","<script setup lang=\"ts\">\nimport { computed, inject, onBeforeUnmount, watch } from \"vue\";\nimport { ark } from \"@ark-ui/vue/factory\";\nimport { useTooltipContext } from \"@ark-ui/vue/tooltip\";\nimport { forwardTooltipFocus, tooltipFocusPolicyKey } from \"./focus-reveal\";\n\n/** Tooltip Trigger 的公开属性。 */\ninterface Props {\n /** 是否将提示行为合并到插槽中的唯一子元素。 */\n readonly asChild?: boolean;\n /** 多 trigger 组合中标识当前 trigger 的稳定值。 */\n readonly value?: string;\n}\n\n/** Tooltip Trigger 的组合插槽。 */\ninterface Slots {\n /** 接收 pointer、focus 与 ARIA 行为的唯一触发元素。 */\n readonly default: () => unknown;\n}\n\nconst { asChild = false, value } = defineProps<Props>();\ndefineSlots<Slots>();\n\nconst context = useTooltipContext();\nconst policy = inject(tooltipFocusPolicyKey, { closeOnScroll: true, disabled: false, open: undefined });\nlet cancelFocus: (() => void) | undefined;\nconst upstreamBindings = computed(() => context.value.getTriggerProps(value === undefined ? {} : { value }));\nconst triggerBindings = computed<Record<string, unknown>>(() => ({ ...upstreamBindings.value, onFocusin: focus }));\n\nwatch(() => [policy.open, policy.disabled] as const, ([open, disabled], [previous]) => {\n if (disabled || (open === false && previous !== false)) cancelFocus?.();\n}, { flush: \"sync\" });\nonBeforeUnmount(() => cancelFocus?.());\n\n/**\n * Allows native keyboard-focus scrolling to finish before Ark installs scroll dismissal.\n * @param event - The original bubbling focus event; never replaced or redispatched.\n */\nfunction focus(event: FocusEvent): void {\n cancelFocus?.();\n if (policy.disabled || !policy.closeOnScroll) forwardFocus(event);\n else cancelFocus = forwardTooltipFocus(event, forwardFocus);\n}\n\n/**\n * Delegates focus to the current upstream API, including controlled and disabled checks.\n * @param event - The original focus event retained during native scrolling.\n */\nfunction forwardFocus(event: FocusEvent): void {\n (upstreamBindings.value.onFocusin as ((event: FocusEvent) => void) | undefined)?.(event);\n}\n</script>\n\n<template>\n <ark.button\n v-bind=\"triggerBindings\"\n :as-child=\"asChild\"\n data-scope=\"tooltip\"\n data-part=\"trigger\"\n >\n <slot />\n </ark.button>\n</template>\n","<script setup lang=\"ts\">\nimport { computed, type HTMLAttributes } from \"vue\";\nimport type { QuireKitTypographyProps } from \"../../components/typography\";\nimport { QuireTooltipContent, QuireTooltipRoot, QuireTooltipTrigger } from \"../tooltip\";\n\nconst props = defineProps<Pick<QuireKitTypographyProps, \"title\">>();\ndefineOptions({ inheritAttrs: false });\ndefineSlots<{\n /** Abbreviated text; the expansion belongs to the shared Tooltip. */\n default?: () => unknown;\n}>();\nconst expansion = computed(() => props.title?.trim());\n</script>\n\n<template>\n <QuireTooltipRoot v-if=\"expansion\" :trigger-id=\"$attrs.id as string | undefined\">\n <QuireTooltipTrigger as-child>\n <abbr v-bind=\"$attrs\" :tabindex=\"($attrs.tabindex as HTMLAttributes['tabindex']) ?? 0\" data-qk-abbr><slot /></abbr>\n </QuireTooltipTrigger>\n <QuireTooltipContent :content=\"expansion\" />\n </QuireTooltipRoot>\n <abbr v-else v-bind=\"$attrs\"><slot /></abbr>\n</template>\n","<script setup lang=\"ts\">\nimport { computed } from \"vue\";\nimport type { QuireKitTypographyProps } from \"../../components/typography\";\nimport Abbreviation from \"./abbreviation.vue\";\n\nconst props = withDefaults(defineProps<QuireKitTypographyProps>(), { as: \"p\" });\ndefineSlots<{\n /** Native text content; isolate embedded controls with data-qk-not-typography. */\n default?: () => unknown;\n}>();\nconst variantClass = computed(() => props.variant\n ? `qk-type-${props.variant.replace(/[A-Z]/gu, letter => `-${letter.toLowerCase()}`)}`\n : undefined);\n</script>\n\n<template>\n <component :is=\"as === 'abbr' ? Abbreviation : as\" :title=\"title\" :class=\"['qk-typography', variantClass, { 'qk-typography--inline-code': as === 'code' && codeStyle === 'inline' }]\"><slot /></component>\n</template>\n","<script setup lang=\"ts\">\nimport type { QuireKitEmptyStateScene } from \"../../components/empty-state\";\n\n/** Decorative artwork selected independently from host text and actions. */\ninterface Props {\n /** The reusable visual motif to render on the shared canvas. */\n readonly scene: QuireKitEmptyStateScene;\n}\n\ndefineProps<Props>();\n</script>\n\n<template>\n <svg class=\"qk-empty-state__art\" :data-illustration=\"scene\" viewBox=\"0 0 160 104\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" aria-hidden=\"true\" focusable=\"false\">\n <ellipse cx=\"80\" cy=\"93\" rx=\"55\" ry=\"5\" fill=\"var(--qk-color-surface-subtle)\" />\n <g stroke=\"var(--qk-color-border-default)\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <g v-if=\"scene === 'data'\">\n <rect x=\"28\" y=\"14\" width=\"99\" height=\"68\" rx=\"7\" fill=\"var(--qk-color-surface-subtle)\" />\n <rect x=\"20\" y=\"26\" width=\"118\" height=\"23\" rx=\"5\" fill=\"var(--qk-color-surface-page)\" />\n <rect x=\"26\" y=\"54\" width=\"108\" height=\"23\" rx=\"5\" fill=\"var(--qk-color-surface-page)\" />\n <circle cx=\"34\" cy=\"37.5\" r=\"3\" fill=\"var(--qk-color-border-default)\" stroke=\"none\" />\n <circle cx=\"40\" cy=\"65.5\" r=\"3\" fill=\"var(--qk-color-border-default)\" stroke=\"none\" />\n <path d=\"M47 35H94M47 41H76M53 63H111M53 69H83\" />\n <path d=\"M117 35H125M121 31V39\" stroke=\"var(--qk-color-icon-secondary)\" />\n <path d=\"M50 86H110\" stroke-dasharray=\"2 5\" />\n </g>\n <g v-else-if=\"scene === 'search'\">\n <rect x=\"25\" y=\"14\" width=\"82\" height=\"70\" rx=\"6\" fill=\"var(--qk-color-surface-subtle)\" />\n <path d=\"M39 30H77M39 40H91M39 50H61M39 69H53\" />\n <circle cx=\"98\" cy=\"56\" r=\"26\" fill=\"var(--qk-color-surface-page)\" />\n <circle cx=\"98\" cy=\"56\" r=\"19\" stroke-dasharray=\"3 5\" />\n <path d=\"m117 75 20 17\" stroke=\"var(--qk-color-icon-secondary)\" stroke-width=\"5\" />\n <path d=\"M91 56H105\" stroke=\"var(--qk-color-icon-secondary)\" />\n <path d=\"M121 19V27M117 23H125\" />\n </g>\n <g v-else-if=\"scene === 'create'\">\n <path d=\"M44 15H94L115 36V88H44Z\" fill=\"var(--qk-color-surface-page)\" />\n <path d=\"M94 15V36H115\" fill=\"var(--qk-color-surface-subtle)\" />\n <path d=\"M56 49H94M56 58H84M56 67H74\" />\n <rect x=\"101\" y=\"60\" width=\"34\" height=\"34\" rx=\"9\" fill=\"var(--qk-color-surface-subtle)\" />\n <path d=\"M118 69V85M110 77H126\" stroke=\"var(--qk-color-icon-secondary)\" stroke-width=\"2\" />\n <path d=\"M25 36V44M21 40H29M123 20V26M120 23H126\" />\n <path d=\"m31 75 3 3-3 3-3-3Z\" />\n </g>\n <g v-else-if=\"scene === 'documents'\">\n <path d=\"M32 25 79 17 92 83 45 91Z\" fill=\"var(--qk-color-surface-subtle)\" />\n <path d=\"m86 18 43 8-12 65-43-8Z\" fill=\"var(--qk-color-surface-subtle)\" />\n <path d=\"M51 10H94L111 27V89H51Z\" fill=\"var(--qk-color-surface-page)\" />\n <path d=\"M94 10V27H111\" fill=\"var(--qk-color-surface-subtle)\" />\n <rect x=\"64\" y=\"35\" width=\"21\" height=\"15\" rx=\"3\" fill=\"var(--qk-color-surface-subtle)\" />\n <path d=\"M64 61H98M64 69H98M64 77H83\" />\n <path d=\"M22 62H28M25 59V65M132 52H138\" />\n </g>\n <g v-else-if=\"scene === 'chart'\">\n <rect x=\"23\" y=\"16\" width=\"115\" height=\"71\" rx=\"6\" fill=\"var(--qk-color-surface-page)\" />\n <path d=\"M36 31H124M36 48H124M36 65H124\" stroke-dasharray=\"2 5\" />\n <path d=\"M38 75H124M38 28V75\" />\n <rect x=\"50\" y=\"56\" width=\"13\" height=\"19\" rx=\"2\" fill=\"var(--qk-color-surface-subtle)\" />\n <rect x=\"76\" y=\"42\" width=\"13\" height=\"33\" rx=\"2\" fill=\"var(--qk-color-surface-subtle)\" />\n <rect x=\"102\" y=\"30\" width=\"13\" height=\"45\" rx=\"2\" fill=\"var(--qk-color-surface-subtle)\" />\n <path d=\"m15 38 3 3-3 3-3-3ZM143 64H149M146 61V67\" />\n </g>\n <g v-else>\n <rect x=\"23\" y=\"18\" width=\"114\" height=\"69\" rx=\"6\" fill=\"var(--qk-color-surface-page)\" />\n <path d=\"M29 18H131Q137 18 137 24V37H23V24Q23 18 29 18Z\" fill=\"var(--qk-color-surface-subtle)\" />\n <path d=\"M23 37H137M23 54H137M23 71H137M64 37V87M105 37V87\" />\n <path d=\"M34 28H52M74 28H94M114 28H125\" stroke=\"var(--qk-color-icon-secondary)\" />\n <path d=\"M34 45H48M75 62H89M115 79H125\" />\n <path d=\"M12 58H18M15 55V61M143 36H149\" />\n </g>\n </g>\n </svg>\n</template>\n","<script setup lang=\"ts\">\nimport QuireTypography from \"../typography/typography.vue\";\nimport { ark } from \"@ark-ui/vue/factory\";\nimport { computed, useId } from \"vue\";\nimport EmptyStateIllustration from \"./illustration.vue\";\nimport type {\n QuireKitEmptyStateHeadingLevel,\n QuireKitEmptyStateScene,\n QuireKitEmptyStateSize,\n QuireKitEmptyStateSlotProps\n} from \"../../components/empty-state\";\n\nconst ArkGroup = ark.div;\n\n/** 已确认空结果的公开展示属性。 */\ninterface Props {\n /** 可选的空结果标题;简短空态可只传 description。 */\n readonly title?: string;\n /** 解释空结果原因或下一步的可选说明。 */\n readonly description?: string;\n /** 可选的稳定 group id。 */\n readonly id?: string;\n /** 整组的简短辅助名称;省略时由可见标题命名。 */\n readonly label?: string;\n /** 显式标题语义;省略时使用普通段落。 */\n readonly headingLevel?: QuireKitEmptyStateHeadingLevel;\n /** 内容区或紧凑面板的展示尺寸。 */\n readonly size?: QuireKitEmptyStateSize;\n /** 选择内置占位插图的图案。 */\n readonly scene?: QuireKitEmptyStateScene;\n /** 显示内置插图;提供 illustration 插槽时优先显示插槽内容。 */\n readonly illustrated?: boolean;\n}\n\n/** EmptyState 的可替换内容位置。 */\ninterface Slots {\n /** 自定义装饰插图;说明和操作分别使用对应插槽。 */\n readonly illustration?: (props: QuireKitEmptyStateSlotProps) => unknown;\n /** 替换可见标题,保留辅助关联与显式选择的标题语义。 */\n readonly title?: (props: QuireKitEmptyStateSlotProps) => unknown;\n /** 替换空结果说明,保留外层 description 关联。 */\n readonly description?: (props: QuireKitEmptyStateSlotProps) => unknown;\n /** 自定义下一步操作的按钮或链接。 */\n readonly actions?: (props: QuireKitEmptyStateSlotProps) => unknown;\n}\n\nconst props = withDefaults(defineProps<Props>(), {\n size: \"md\",\n scene: \"data\",\n illustrated: false\n});\ndefineSlots<Slots>();\n\nconst instanceId = useId();\nconst rootId = computed(() => props.id ?? `qk-empty-state-${instanceId}`);\nconst titleId = computed(() => `${rootId.value}-title`);\nconst descriptionId = computed(() => `${rootId.value}-description`);\nconst headingTag = computed(() => props.headingLevel ? `h${props.headingLevel}` as const : \"p\");\nconst accessibleLabel = computed(() => props.label?.trim() || undefined);\n</script>\n\n<template>\n <component\n :is=\"ArkGroup\"\n :id=\"rootId\"\n role=\"group\"\n :data-scene=\"scene\"\n :aria-label=\"accessibleLabel\"\n :aria-labelledby=\"accessibleLabel ? undefined : title || $slots.title ? titleId : description || $slots.description ? descriptionId : undefined\"\n :aria-describedby=\"(accessibleLabel || title || $slots.title) && (description || $slots.description) ? descriptionId : undefined\"\n :class=\"['qk-empty-state', `qk-empty-state--${size}`]\"\n >\n <div v-if=\"$slots.illustration || illustrated\" :class=\"['qk-empty-state__illustration', $slots.illustration ? `qk-empty-state__illustration--${size}` : `qk-empty-state__illustration--art-${size}`]\" aria-hidden=\"true\">\n <slot name=\"illustration\" :size=\"size\" :scene=\"scene\">\n <EmptyStateIllustration :scene=\"scene\" />\n </slot>\n </div>\n <div v-if=\"title || $slots.title || description || $slots.description\" class=\"qk-empty-state__copy\">\n <QuireTypography v-if=\"title || $slots.title\" :as=\"headingTag\" :id=\"titleId\" :class=\"['qk-empty-state__title', `qk-empty-state__title--${size}`]\">\n <slot name=\"title\" :size=\"size\" :scene=\"scene\">{{ title }}</slot>\n </QuireTypography>\n <QuireTypography v-if=\"description || $slots.description\" :id=\"descriptionId\" :class=\"['qk-empty-state__description', `qk-empty-state__description--${size}`]\">\n <slot name=\"description\" :size=\"size\" :scene=\"scene\">{{ description }}</slot>\n </QuireTypography>\n </div>\n <div v-if=\"$slots.actions\" class=\"qk-empty-state__actions\">\n <slot name=\"actions\" :size=\"size\" :scene=\"scene\" />\n </div>\n </component>\n</template>\n","<script setup lang=\"ts\">\nimport QuireTypography from \"../typography/typography.vue\";\nimport { computed, useId } from \"vue\";\nimport type { QuireKitAlertColor, QuireKitAlertRole, QuireKitAlertVariant } from \"../../components/alert\";\nimport QuireIcon from \"../icon/icon.vue\";\nimport QuireIconButton from \"../button/icon-button.vue\";\nimport { useQuireKitMessages } from \"../locale-provider/context\";\n\n/** 页面内提示的公开属性。 */\ninterface Props {\n /** 提示标题,也可通过 title 插槽提供。 */\n readonly title?: string;\n /** 标题下方的补充说明。 */\n readonly description?: string;\n /** 提示的语义色族。 */\n readonly color?: QuireKitAlertColor;\n /** 背景与边框外观。 */\n readonly variant?: QuireKitAlertVariant;\n /** 已注册的图标名;false 隐藏图标,省略时按色族选择。 */\n readonly icon?: string | false | undefined;\n /** 显示图标关闭按钮。 */\n readonly closable?: boolean;\n /** group 用于静态内容;status 温和播报更新,alert 播报紧急更新。 */\n readonly role?: QuireKitAlertRole;\n}\n\n/** Alert 的可组合内容。 */\ninterface Slots {\n /** 替换默认装饰图标。 */\n readonly icon?: () => unknown;\n /** 替换标题内容。 */\n readonly title?: () => unknown;\n /** 替换说明内容,可包含链接。 */\n readonly description?: () => unknown;\n /** 补充列表或其他正文内容。 */\n readonly default?: () => unknown;\n /** 操作按钮与链接区域。 */\n readonly actions?: () => unknown;\n}\n\nconst props = withDefaults(defineProps<Props>(), {\n icon: undefined, color: \"info\", variant: \"subtle\", closable: false, role: \"group\"\n});\n/** 控制提示是否显示,支持 v-model:open。 */\nconst open = defineModel<boolean>(\"open\", { default: true });\nconst emit = defineEmits<{\n /** 用户激活关闭按钮时触发。 */\n close: [];\n}>();\ndefineSlots<Slots>();\nconst text = useQuireKitMessages(\"alert\");\nconst titleId = `qk-alert-${useId()}-title`;\nconst iconName = computed(() => props.icon === false ? undefined : props.icon ?? ({\n neutral: \"circleInfo\", primary: \"circleInfo\", info: \"circleInfo\",\n success: \"circleCheck\", warning: \"triangleAlert\", danger: \"circleX\"\n}[props.color]));\n\n/** 关闭当前提示并通知调用方。 */\nfunction dismiss(): void {\n open.value = false;\n emit(\"close\");\n}\n</script>\n\n<template>\n <div\n v-if=\"open\"\n :role=\"role\"\n :aria-labelledby=\"title || $slots.title ? titleId : undefined\"\n :class=\"['qk-alert', `qk-alert--${color}`, `qk-alert--${variant}`]\"\n >\n <span v-if=\"$slots.icon || iconName\" class=\"qk-alert__icon\" aria-hidden=\"true\">\n <slot name=\"icon\"><QuireIcon :name=\"iconName\" :size=\"20\" /></slot>\n </span>\n <div class=\"qk-alert__body\">\n <QuireTypography as=\"div\" variant=\"control\" v-if=\"title || $slots.title\" :id=\"titleId\" class=\"qk-alert__title\"><slot name=\"title\">{{ title }}</slot></QuireTypography>\n <QuireTypography as=\"div\" variant=\"body\" v-if=\"description || $slots.description\" class=\"qk-alert__description\"><slot name=\"description\">{{ description }}</slot></QuireTypography>\n <div v-if=\"$slots.default\" class=\"qk-alert__content\"><slot /></div>\n <div v-if=\"$slots.actions\" class=\"qk-alert__actions\"><slot name=\"actions\" /></div>\n </div>\n <QuireIconButton v-if=\"closable\" :label=\"text.close\" class=\"qk-alert__close\" @click=\"dismiss\">\n <QuireIcon name=\"close\" :size=\"16\" />\n </QuireIconButton>\n </div>\n</template>\n","<script setup lang=\"ts\">\nimport type { QuireKitCandidateListProps } from '../../components/candidate-list';\n\nconst props = defineProps<QuireKitCandidateListProps>();\nconst emit = defineEmits<{\n /** Candidate activated while the owner keeps editor focus. */\n select: [key: string];\n}>();\n\n/** Activate one enabled candidate without changing the editor's selection.\n * @param key - Stable candidate identity.\n */\nfunction select(key: string): void {\n if (!props.items.find(item => item.key === key && !item.disabled)) return;\n emit('select', key);\n}\n</script>\n\n<template>\n <div :id=\"id\" class=\"qk-candidate-list\" role=\"listbox\" :aria-label=\"label\">\n <div v-for=\"(item, index) in items\" :id=\"`${id}-item-${index}`\" :key=\"item.key\"\n class=\"qk-candidate-list__item\" role=\"option\" :aria-selected=\"item.key === activeKey\"\n :aria-disabled=\"item.disabled || undefined\" :data-active=\"item.key === activeKey || undefined\"\n @pointerdown.prevent @click=\"select(item.key)\">\n <span class=\"qk-candidate-list__label\">{{ item.label }}</span>\n <span v-if=\"item.description\" class=\"qk-candidate-list__description\">{{ item.description }}</span>\n </div>\n </div>\n</template>\n","<script setup lang=\"ts\">\nimport { Field, useFieldContext } from '@ark-ui/vue/field';\n/** One optional field association inside a compound control. */\ninterface Props {\n /** Group-scoped identity, distinct from every sibling and composed action. */\n readonly value: string;\n}\ndefineProps<Props>();\nconst field = useFieldContext();\n</script>\n<template>\n <Field.Item v-if=\"field\" :value=\"value\"><slot /></Field.Item>\n <slot v-else />\n</template>\n","import { computed, ref, watchEffect } from \"vue\";\nimport type { Ref } from \"vue\";\nimport type { ChoiceStateProps } from \"./types\";\n\n/**\n * Keeps controlled values, local defaults and native reset under distinct owners.\n * @param props - Reactive public model and interaction flags.\n * @param emit - Host update notification.\n * @param root - Compound control root used to locate its native form.\n * @returns Current values and guarded interaction updates.\n */\nexport function useChoiceState(props: ChoiceStateProps, emit: (value: string[]) => void, root: Ref<HTMLElement | null>) {\n const initial = [...new Set(props.defaultValue ?? [])];\n const local = ref(initial);\n const values = computed<readonly string[]>(() => props.modelValue ?? local.value);\n\n /**\n * Applies a user interaction without mutating a controlled prop.\n * @param next - Requested next selection.\n */\n function update(next: readonly string[]): void {\n if (props.disabled || props.readOnly) return;\n const unique = [...new Set(next)];\n if (unique.length === values.value.length && unique.every((value, index) => values.value[index] === value)) return;\n if (props.modelValue === undefined) local.value = unique;\n emit(unique);\n }\n\n watchEffect(onCleanup => {\n const element = root.value;\n if (!element) return;\n const candidate = props.form ? element.ownerDocument.getElementById(props.form) : element.closest(\"form\");\n if (!(candidate instanceof HTMLFormElement)) return;\n /**\n * Waits for cancellation and lets controlled Form owners restore their own defaults.\n * @param event - Native reset, which may be prevented by QuireForm.\n */\n function reset(event: Event): void {\n queueMicrotask(() => {\n if (!event.defaultPrevented && props.modelValue === undefined) {\n local.value = [...initial];\n emit([...initial]);\n }\n });\n }\n candidate.addEventListener(\"reset\", reset);\n onCleanup(() => candidate.removeEventListener(\"reset\", reset));\n }, { flush: \"post\" });\n return { values, update };\n}\n\n/**\n * Rejects ambiguous option identities before rendering interactive controls.\n * @param items - Ordered options shared by the host and rendered controls.\n */\nexport function assertChoiceValues(items: readonly { readonly value: string }[]): void {\n const values = new Set<string>();\n for (const item of items) {\n if (typeof item.value !== \"string\" || !item.value || values.has(item.value)) throw new Error(`Choice values must be non-empty and unique: ${item.value}`);\n values.add(item.value);\n }\n}\n","import type { QuireKitCheckboxGroupItem } from \"../../components/checkbox-group\";\n/**\n * Computes the select-all state using only currently actionable options.\n * @param items - Current option list.\n * @param selected - Stored values, including disabled or temporarily hidden options.\n * @returns The select-all checkbox state.\n */\nexport function checkboxAllState(items: readonly QuireKitCheckboxGroupItem[], selected: readonly string[]): boolean | \"indeterminate\" {\n const enabled = items.filter(item => !item.disabled);\n const count = enabled.filter(item => selected.includes(item.value)).length;\n return count === 0 ? false : count === enabled.length ? true : \"indeterminate\";\n}\n/**\n * Changes only enabled options without destroying other stored choices.\n * @param items - Current option list.\n * @param selected - Host or local values.\n * @returns Next selection after a select-all interaction.\n */\nexport function checkboxToggleAll(items: readonly QuireKitCheckboxGroupItem[], selected: readonly string[]): string[] {\n const enabled = items.filter(item => !item.disabled).map(item => item.value);\n if (checkboxAllState(items, selected) === true) return selected.filter(value => !enabled.includes(value));\n return [...new Set([...selected, ...enabled])];\n}\n","<script setup lang=\"ts\">\nimport { computed, shallowRef, useId } from \"vue\";\nimport { Checkbox } from \"@ark-ui/vue/checkbox\";\nimport type { QuireKitCheckboxGroupContext, QuireKitCheckboxGroupItem, QuireKitCheckboxGroupProps } from \"../../components/checkbox-group\";\nimport { QuireCheckbox } from \"../checkbox\";\nimport { assertChoiceValues, useChoiceState } from \"../shared/choice-state/model\";\nimport ChoiceFieldItem from \"../shared/choice-state/field-item.vue\";\nimport { checkboxAllState, checkboxToggleAll } from \"./model\";\nconst props = withDefaults(defineProps<QuireKitCheckboxGroupProps>(), { size: \"sm\", orientation: \"vertical\", hideLabel: false, disabled: false, readOnly: false, invalid: false });\nconst emit = defineEmits<{\n /** Requested next array; controlled props remain owned by the host. */\n \"update:modelValue\": [value: string[]];\n}>();\ndefineSlots<{\n /** Compose a select-all checkbox or explanatory content before the options. */\n before?: (context: QuireKitCheckboxGroupContext) => unknown;\n /** Content after all options. */\n after?: (context: QuireKitCheckboxGroupContext) => unknown;\n /** Replace an item's label, retaining its native checkbox control. */\n item?: (context: { item: QuireKitCheckboxGroupItem; checked: boolean }) => unknown;\n}>();\nconst groupId = useId();\nconst root = shallowRef<HTMLElement | null>(null);\nconst { values, update } = useChoiceState(props, value => emit(\"update:modelValue\", value), root);\nconst choices = computed(() => { assertChoiceValues(props.items); return props.items; });\nconst context = computed<QuireKitCheckboxGroupContext>(() => ({\n value: values.value, allChecked: checkboxAllState(choices.value, values.value),\n allDisabled: props.disabled || choices.value.every(item => item.disabled), readOnly: props.readOnly,\n size: props.size, toggleAll\n}));\n/** Toggles only enabled options; the shared state controller guards readonly and disabled. */\nfunction toggleAll(): void { update(checkboxToggleAll(choices.value, values.value)); }\n/**\n * Omits absent native props instead of overriding child defaults with undefined.\n * @param item - Current option.\n * @returns Public QuireCheckbox bindings.\n */\nfunction itemBindings(item: QuireKitCheckboxGroupItem) {\n return {\n label: item.label, value: item.value, checked: values.value.includes(item.value),\n size: props.size, disabled: props.disabled || item.disabled === true, readOnly: props.readOnly, invalid: props.invalid,\n ...(item.description === undefined ? {} : { description: item.description }),\n ...(props.name === undefined ? {} : { name: props.name }),\n ...(props.form === undefined ? {} : { form: props.form })\n };\n}\n</script>\n<template>\n <fieldset ref=\"root\" :disabled=\"disabled\" :form=\"form\" :aria-invalid=\"invalid || undefined\" class=\"qk-checkbox-group\">\n <legend :id=\"`${groupId}-label`\" :class=\"hideLabel ? 'sr-only' : 'qk-checkbox-group__label'\">{{ label }}</legend>\n <div class=\"qk-checkbox-group__content\">\n <ChoiceFieldItem :value=\"`${groupId}:before`\"><slot name=\"before\" v-bind=\"context\" /></ChoiceFieldItem>\n <!-- Ark owns individual selection; bulk actions stay outside its item context. -->\n <Checkbox.Group :model-value=\"[...values]\" :disabled=\"disabled\" :read-only=\"readOnly\" :invalid=\"invalid\" :aria-labelledby=\"`${groupId}-label`\" :class=\"['qk-checkbox-group__items', `qk-checkbox-group__items--${orientation}`]\" @update:model-value=\"update\">\n <ChoiceFieldItem v-for=\"item in choices\" :key=\"item.value\" :value=\"`${groupId}:item:${item.value}`\">\n <QuireCheckbox v-bind=\"itemBindings(item)\">\n <template #default><slot name=\"item\" :item=\"item\" :checked=\"values.includes(item.value)\">{{ item.label }}</slot></template>\n </QuireCheckbox>\n </ChoiceFieldItem>\n </Checkbox.Group>\n <ChoiceFieldItem :value=\"`${groupId}:after`\"><slot name=\"after\" v-bind=\"context\" /></ChoiceFieldItem>\n </div>\n </fieldset>\n</template>\n","<script setup lang=\"ts\">\nimport { ref } from 'vue';\nimport { useQuireKitMessages } from '../../locale-provider/context';\nimport QuireTextarea from '../../textarea/textarea.vue';\nimport type { QuireKitTextareaInstance } from '../../../components/textarea';\nimport type { QuireKitChatComposerInputProps, QuireKitChatSubmitDetails } from '../../../components/chat';\n\nconst props = withDefaults(defineProps<QuireKitChatComposerInputProps>(), {\n size: 'md', variant: 'outline', submitMode: 'enter', rows: 1, maxRows: 8\n});\nconst emit = defineEmits<{\n /** 通知受控草稿 owner。 */\n 'update:modelValue': [value: string];\n /** 未经业务门禁的提交手势;父组件决定是否允许发送。 */\n submit: [details: QuireKitChatSubmitDetails];\n}>();\nconst input = ref<QuireKitTextareaInstance>();\nconst text = useQuireKitMessages('chat');\n\n/** Keep disabled / readonly inputs controlled even for synthetic input events.\n * @param value - Literal draft from Textarea.\n */\nfunction updateValue(value: string): void {\n if (!props.disabled && !props.readOnly) emit('update:modelValue', value);\n}\n\n/** Preserve IME confirmation and modified Enter; only an unmodified gesture requests submission.\n * @param event - Native field keyboard event.\n */\nfunction onKeydown(event: KeyboardEvent): void {\n if (event.defaultPrevented || event.key !== 'Enter' || props.submitMode !== 'enter'\n || event.isComposing || event.keyCode === 229 || event.shiftKey || event.altKey || event.ctrlKey || event.metaKey) return;\n event.preventDefault();\n if (!event.repeat && !props.disabled && !props.readOnly) emit('submit', { text: props.modelValue });\n}\n\n/** Forward focus through the public Textarea contract.\n * @param options - Native focus scrolling options.\n */\nfunction focus(options?: FocusOptions): void { input.value?.focus(options); }\ndefineExpose({ focus });\n</script>\n\n<template>\n <QuireTextarea ref=\"input\" :model-value=\"modelValue\" :aria-label=\"label ?? text.composer.label\" :placeholder=\"placeholder ?? text.composer.placeholder\" :size=\"size\" :variant=\"variant\"\n :disabled=\"disabled\" :read-only=\"readOnly\" :rows=\"rows\" :max-rows=\"maxRows\" auto-resize width=\"100%\"\n @update:model-value=\"updateValue\" @keydown=\"onKeydown\" />\n</template>\n","<script setup lang=\"ts\">\nimport { computed } from 'vue';\nimport QuireButton from '../../button/button.vue';\nimport QuireIconButton from '../../button/icon-button.vue';\nimport QuireIcon from '../../icon/icon.vue';\nimport type { QuireKitChatComposerSubmitProps } from '../../../components/chat';\nimport { useQuireKitMessages } from '../../locale-provider/context';\n\nconst props = withDefaults(defineProps<QuireKitChatComposerSubmitProps>(), {\n canSubmit: false, busy: false, disabled: false, appearance: 'icon', color: 'primary', size: 'md'\n});\nconst emit = defineEmits<{\n /** 请求发送;不持有任何业务状态。 */\n submit: [];\n /** 请求停止;实际取消由宿主执行。 */\n stop: [];\n}>();\nconst unavailable = computed(() => props.disabled || (!props.busy && !props.canSubmit));\nconst text = useQuireKitMessages('chat');\nconst label = computed(() => props.busy ? text.value.composer.stop : text.value.composer.submit);\n\n/** Keep the same button mounted while its available intent changes. */\nfunction activate(): void {\n if (!unavailable.value) props.busy ? emit('stop') : emit('submit');\n}\n</script>\n\n<template>\n <QuireIconButton v-if=\"appearance === 'icon'\" :label=\"label\" :title=\"label\" shape=\"circle\" variant=\"solid\"\n :color=\"color\" :size=\"size\" :disabled=\"unavailable\" :data-mode=\"busy ? 'stop' : 'submit'\" @click=\"activate\">\n <QuireIcon :name=\"busy ? 'square' : 'arrowUp'\" :size=\"16\" />\n </QuireIconButton>\n <QuireButton v-else variant=\"solid\" :color=\"color\" :size=\"size\" :disabled=\"unavailable\"\n :data-mode=\"busy ? 'stop' : 'submit'\" @click=\"activate\">{{ label }}</QuireButton>\n</template>\n","<script setup lang=\"ts\">\nimport { DEFAULT_LOCALE, useLocaleContext } from '@ark-ui/vue/locale';\nconst locale = useLocaleContext(DEFAULT_LOCALE);\ndefineSlots<{ /** Resolved from the nearest headless locale provider. */ default: (context: { dir: 'ltr' | 'rtl' }) => unknown }>();\n</script>\n\n<template><slot :dir=\"locale.dir\" /></template>\n","<script setup lang=\"ts\">\nimport { computed, inject } from 'vue';\nimport { DEFAULT_LOCALE, LocaleProvider, useLocaleContext } from '@ark-ui/vue/locale';\nimport LocaleDirection from './locale-direction.vue';\nimport { quireKitLocaleKey } from '../../locale-provider/context';\n// A QuireLocaleProvider decides language and direction; without one, an outer headless provider still applies.\nconst quireLocale = inject(quireKitLocaleKey, null);\nconst inherited = useLocaleContext(DEFAULT_LOCALE);\nconst locale = computed(() => quireLocale?.value.code ?? inherited.value.locale);\ndefineSlots<{ /** Provides the resolved direction without adding a DOM wrapper. */ default: (context: { dir: 'ltr' | 'rtl' }) => unknown }>();\n</script>\n\n<template>\n <LocaleProvider :locale=\"locale\">\n <LocaleDirection v-slot=\"context\"><slot v-bind=\"context\" /></LocaleDirection>\n </LocaleProvider>\n</template>\n","<script setup lang=\"ts\">\nimport { computed, ref, useId, watch } from 'vue';\nimport ComposerInput from '../composer-input/composer-input.vue';\nimport ComposerSubmit from '../composer-submit/composer-submit.vue';\nimport LocaleScope from '../shared/locale-scope.vue';\nimport { useQuireKitMessages } from '../../locale-provider/context';\nimport type { QuireKitChatComposerContext, QuireKitChatComposerInputInstance, QuireKitChatComposerProps, QuireKitChatComposerSlots, QuireKitChatSubmitDetails } from '../../../components/chat';\n\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<QuireKitChatComposerProps>(), {\n busy: false, disabled: false, readOnly: false,\n layout: 'panel', density: 'comfortable', variant: 'outline', size: 'md', submitMode: 'enter', maxRows: 8,\n hasContent: false, submitDisabled: false, submitAppearance: 'icon', submitColor: 'primary'\n});\nconst emit = defineEmits<{\n /** 草稿输入;宿主同步更新 modelValue。 */\n 'update:modelValue': [value: string];\n /** 发送原始草稿;组件不清空内容。 */\n submit: [details: QuireKitChatSubmitDetails];\n /** 停止当前处理;实际取消由宿主执行。 */\n stop: [];\n}>();\ndefineSlots<QuireKitChatComposerSlots>();\nconst text = useQuireKitMessages('chat');\nconst label = computed(() => props.label ?? text.value.composer.label);\nconst input = ref<QuireKitChatComposerInputInstance>();\nconst fileDragging = ref(false);\nconst footerId = `qk-composer-footer-${useId()}`;\nconst minRows = computed(() => props.rows ?? (props.layout === 'inline' ? 1 : 2));\nconst canSubmit = computed(() => !props.disabled && !props.readOnly && !props.busy && !props.submitDisabled\n && (props.modelValue.trim().length > 0 || props.hasContent));\nconst context = computed<QuireKitChatComposerContext>(() => ({\n value: props.modelValue, label: label.value, busy: props.busy, disabled: props.disabled,\n readOnly: props.readOnly, canSubmit: canSubmit.value, updateValue, submit, stop\n}));\n\n/** Notify the controlled draft owner.\n * @param value - Literal input text.\n */\nfunction updateValue(value: string): void {\n if (!props.disabled && !props.readOnly) emit('update:modelValue', value);\n}\n\n/** Emit an allowed submission without taking ownership of async work or draft clearing. */\nfunction submit(): void {\n if (canSubmit.value) emit('submit', { text: props.modelValue });\n}\n\n/** Request cancellation while preserving the editable draft. */\nfunction stop(): void {\n if (props.busy && !props.disabled) emit('stop');\n}\n\n/** Forward default-input focus without querying a child component's DOM.\n * @param options - Native focus scrolling options.\n */\nfunction focus(options?: FocusOptions): void { input.value?.focus(options); }\ndefineExpose({ focus });\n\n/** Parts of the surface that handle their own presses and keep focus where it is. */\nconst INTERACTIVE = 'button, a, input, textarea, select, label, [contenteditable], [role=\"button\"], [role=\"combobox\"], [role=\"menuitem\"], [tabindex]';\n\n/** A single-row input leaves most of the surface empty; pressing that area focuses the input instead of nothing.\n * @param event - Native pointer press inside the surface.\n */\nfunction onSurfacePointerDown(event: PointerEvent): void {\n if (event.button !== 0 || props.disabled || !(event.target instanceof Element) || event.target.closest(INTERACTIVE)) return;\n event.preventDefault();\n focus({ preventScroll: true });\n}\n\n/** Detect files without taking ownership of validation or reading their contents.\n * @param transfer - Clipboard or drag transfer.\n * @returns Whether the gesture contains or advertises files.\n */\nfunction hasTransferFiles(transfer: DataTransfer | null): boolean {\n return !!transfer && (transfer.files.length > 0 || Array.from(transfer.items).some(item => item.kind === 'file')\n || Array.from(transfer.types).includes('Files'));\n}\n\n/** Leave ordinary text paste native; delegate file paste to the configured owner.\n * @param event - Native paste event bubbling from the input.\n */\nfunction onPaste(event: ClipboardEvent): void {\n const transfer = event.clipboardData;\n if (event.defaultPrevented || props.disabled || props.readOnly || !props.addTransferFiles || !transfer || !hasTransferFiles(transfer)) return;\n if (props.addTransferFiles(transfer)) event.preventDefault();\n}\n\n/** Advertise a file drop only while the Composer can accept it.\n * @param event - Native drag-over event.\n */\nfunction onDragOver(event: DragEvent): void {\n if (event.defaultPrevented || props.disabled || props.readOnly || !props.addTransferFiles || !hasTransferFiles(event.dataTransfer)) return;\n event.preventDefault();\n event.stopPropagation();\n if (event.dataTransfer) event.dataTransfer.dropEffect = 'copy';\n fileDragging.value = true;\n}\n\n/** Ignore transitions between Composer descendants.\n * @param event - Native drag-leave event.\n */\nfunction onDragLeave(event: DragEvent): void {\n const root = event.currentTarget;\n if (root instanceof Node && event.relatedTarget instanceof Node && root.contains(event.relatedTarget)) return;\n fileDragging.value = false;\n}\n\n/** Forward dropped files to the same owner used by the native chooser.\n * @param event - Native drop event.\n */\nfunction onDrop(event: DragEvent): void {\n fileDragging.value = false;\n const transfer = event.dataTransfer;\n if (event.defaultPrevented || props.disabled || props.readOnly || !props.addTransferFiles || !transfer || !hasTransferFiles(transfer)) return;\n event.preventDefault();\n event.stopPropagation();\n props.addTransferFiles(transfer);\n}\n\nwatch([() => props.disabled, () => props.readOnly, () => props.addTransferFiles], () => {\n if (props.disabled || props.readOnly || !props.addTransferFiles) fileDragging.value = false;\n});\n</script>\n\n<template>\n <LocaleScope v-slot=\"{ dir }\">\n <div v-bind=\"$attrs\" class=\"qk-chat-composer\" role=\"group\" :aria-label=\"label\" :dir=\"dir\" :data-layout=\"layout\"\n :data-variant=\"variant\" :data-density=\"density\" :data-disabled=\"disabled || undefined\" :data-readonly=\"readOnly || undefined\"\n :data-file-dragging=\"fileDragging || undefined\" @paste=\"onPaste\" @dragover=\"onDragOver\" @dragleave=\"onDragLeave\" @drop=\"onDrop\">\n <div class=\"qk-chat-composer__surface\" @pointerdown=\"onSurfacePointerDown\">\n <div v-if=\"$slots.header\" class=\"qk-chat-composer__header\"><slot name=\"header\" v-bind=\"context\" /></div>\n <div class=\"qk-chat-composer__editor\">\n <div v-if=\"$slots.leading\" class=\"qk-chat-composer__leading\"><slot name=\"leading\" v-bind=\"context\" /></div>\n <div class=\"qk-chat-composer__input\">\n <slot name=\"input\" v-bind=\"context\">\n <ComposerInput ref=\"input\" :model-value=\"modelValue\" :label=\"label\" :placeholder=\"placeholder ?? text.composer.placeholder\" :size=\"size\" variant=\"embedded\"\n :aria-describedby=\"$slots.footer ? footerId : undefined\" :submit-mode=\"submitMode\" :disabled=\"disabled\" :read-only=\"readOnly\"\n :rows=\"minRows\" :max-rows=\"maxRows\" @update:model-value=\"updateValue\" @submit=\"submit\" />\n </slot>\n </div>\n </div>\n <div class=\"qk-chat-composer__bar\">\n <div v-if=\"$slots.tools\" class=\"qk-chat-composer__tools\"><slot name=\"tools\" v-bind=\"context\" /></div>\n <div class=\"qk-chat-composer__trailing\">\n <div v-if=\"$slots.actions\" class=\"qk-chat-composer__actions\"><slot name=\"actions\" v-bind=\"context\" /></div>\n <div class=\"qk-chat-composer__submit\">\n <slot name=\"submit\" v-bind=\"context\">\n <ComposerSubmit :busy=\"busy\" :disabled=\"disabled\" :can-submit=\"canSubmit\" :appearance=\"submitAppearance\"\n :color=\"submitColor\" :size=\"layout === 'inline' || density === 'compact' ? 'sm' : 'md'\" @submit=\"submit\" @stop=\"stop\" />\n </slot>\n </div>\n </div>\n </div>\n </div>\n <div v-if=\"$slots.footer\" :id=\"footerId\" class=\"qk-chat-composer__footer\"><slot name=\"footer\" v-bind=\"context\" /></div>\n </div>\n </LocaleScope>\n</template>\n","import type { QuireKitChatInputQuery, QuireKitChatInputToken } from '../../../components/chat/rich-input/types';\n\n/** Compare semantic identities and ranges without relying on array ownership.\n * @param left - First token set.\n * @param right - Second token set.\n * @returns Whether both sets represent the same references.\n */\nexport function equalChatInputTokens(left: readonly QuireKitChatInputToken[], right: readonly QuireKitChatInputToken[]): boolean {\n return left.length === right.length && left.every((token, index) => {\n const other = right[index];\n return other?.id === token.id && other.key === token.key && other.kind === token.kind\n && other.from === token.from && other.to === token.to && other.text === token.text;\n });\n}\n\n/** Locate a collapsed @ or / query immediately before the caret.\n * @param text - Literal draft.\n * @param caret - UTF-16 caret offset.\n * @param tokens - Resolved tokens whose content is no longer a candidate query.\n * @returns Active query, if any.\n */\nexport function findChatInputQuery(text: string, caret: number, tokens: readonly QuireKitChatInputToken[]): QuireKitChatInputQuery | null {\n if (caret < 1 || caret > text.length || tokens.some(token => token.from < caret && caret <= token.to)) return null;\n let from = caret - 1;\n while (from >= 0 && !/\\s/u.test(text[from]!)) from--;\n from++;\n const fragment = text.slice(from, caret);\n if (fragment.length > 65 || !/^[@/][^@/\\s]*$/u.test(fragment)) return null;\n return { kind: fragment[0] === '@' ? 'mention' : 'command', search: fragment.slice(1), from, to: caret };\n}\n\n/** Preserve tokens outside one contiguous edit and invalidate every touched token.\n * @param before - Previous text.\n * @param after - New text.\n * @param tokens - Previous valid tokens.\n * @param editedRange - Known pre-edit selection, used to disambiguate repeated text.\n * @returns Tokens rebased into the new text.\n */\nexport function rebaseChatInputTokens(before: string, after: string, tokens: readonly QuireKitChatInputToken[],\n editedRange?: { from: number; to: number }): QuireKitChatInputToken[] {\n let prefix = 0;\n while (prefix < before.length && prefix < after.length && before[prefix] === after[prefix]) prefix++;\n let suffix = 0;\n while (suffix < before.length - prefix && suffix < after.length - prefix\n && before[before.length - 1 - suffix] === after[after.length - 1 - suffix]) suffix++;\n let oldEnd = before.length - suffix;\n if (editedRange && editedRange.from >= 0 && editedRange.to >= editedRange.from && editedRange.to <= before.length\n && before.slice(0, editedRange.from) === after.slice(0, editedRange.from)\n && before.slice(editedRange.to) === after.slice(after.length - (before.length - editedRange.to))) {\n prefix = editedRange.from;\n oldEnd = editedRange.to;\n }\n const delta = after.length - before.length;\n return tokens.flatMap(token => {\n if (token.to <= prefix) return [token];\n if (token.from >= oldEnd) return [{ ...token, from: token.from + delta, to: token.to + delta }];\n return [];\n }).filter(token => after.slice(token.from, token.to) === token.text);\n}\n\n/** Insert one selected candidate and preserve unrelated tokens.\n * @param text - Current literal draft.\n * @param tokens - Current token list.\n * @param query - Query range to replace.\n * @param key - Candidate identity.\n * @param label - Text to insert after the trigger.\n * @param id - Stable identity for this occurrence.\n * @returns Next text, token list and caret.\n */\nexport function insertChatInputToken(text: string, tokens: readonly QuireKitChatInputToken[], query: QuireKitChatInputQuery,\n key: string, label: string, id: string): { text: string; tokens: QuireKitChatInputToken[]; caret: number } {\n const tokenText = `${query.kind === 'mention' ? '@' : '/'}${label}`;\n const after = text.slice(query.to);\n const spacer = after === '' || !/^\\s/u.test(after) ? ' ' : '';\n const nextText = `${text.slice(0, query.from)}${tokenText}${spacer}${after}`;\n const nextTokens = rebaseChatInputTokens(text, nextText, tokens, query).filter(token => token.to <= query.from || token.from >= query.to);\n nextTokens.push({ id, key, kind: query.kind, from: query.from, to: query.from + tokenText.length, text: tokenText });\n nextTokens.sort((a, b) => a.from - b.from);\n return { text: nextText, tokens: nextTokens, caret: query.from + tokenText.length + spacer.length };\n}\n","import { computed, onBeforeUnmount, ref } from 'vue';\nimport type { QuireKitChatInputCandidate, QuireKitChatInputQuery, QuireKitChatInputToken } from '../../../components/chat/rich-input/types';\nimport { findChatInputQuery } from './model';\n\n/** Coordinate asynchronous feature candidates without transferring text ownership. */\nexport function useChatInputCandidates(resolve: (query: QuireKitChatInputQuery, signal: AbortSignal) => readonly QuireKitChatInputCandidate[] | Promise<readonly QuireKitChatInputCandidate[]>,\n onError: (error: unknown) => void) {\n const query = ref<QuireKitChatInputQuery | null>(null);\n const items = ref<readonly QuireKitChatInputCandidate[]>([]);\n const activeIndex = ref(-1);\n const loading = ref(false);\n const dismissed = ref('');\n let controller: AbortController | null = null;\n let generation = 0;\n\n /** Stable signature for one visible query.\n * @param value - Query to identify.\n * @returns Signature including range and search text.\n */\n function signature(value: QuireKitChatInputQuery | null): string {\n return value ? `${value.kind}:${value.from}:${value.to}:${value.search}` : '';\n }\n\n /** Stop stale work and discard the previous visible query. */\n function clear(): void {\n controller?.abort(); controller = null; generation++;\n query.value = null; items.value = []; activeIndex.value = -1; loading.value = false;\n }\n\n /** Resolve candidates for the caret, aborting prior and rejecting late replies.\n * @param text - Current literal text.\n * @param caret - Collapsed selection position, or null for a range.\n * @param tokens - Resolved references.\n */\n function refresh(text: string, caret: number | null, tokens: readonly QuireKitChatInputToken[]): void {\n const next = caret === null ? null : findChatInputQuery(text, caret, tokens);\n if (signature(next) === signature(query.value)) return;\n if (signature(next) !== dismissed.value) dismissed.value = '';\n clear();\n if (!next || signature(next) === dismissed.value) return;\n query.value = next;\n controller = new AbortController();\n const activeController = controller;\n const request = ++generation;\n loading.value = true;\n Promise.resolve().then(() => activeController.signal.aborted ? [] : resolve(next, activeController.signal)).then(result => {\n if (request !== generation || controller?.signal.aborted) return;\n items.value = result;\n activeIndex.value = result.findIndex(item => !item.disabled);\n }).catch(error => {\n if (request === generation && !controller?.signal.aborted) {\n items.value = []; activeIndex.value = -1;\n onError(error);\n }\n }).finally(() => { if (request === generation) loading.value = false; });\n }\n\n /** Hide the current query until its text or caret changes. */\n function dismiss(): void {\n dismissed.value = signature(query.value);\n clear();\n }\n\n /** Move through enabled options while focus stays in the input.\n * @param direction - Relative movement.\n */\n function move(direction: -1 | 1): void {\n if (!items.value.some(item => !item.disabled)) return;\n let index = activeIndex.value;\n for (let attempts = 0; attempts < items.value.length; attempts++) {\n index = (index + direction + items.value.length) % items.value.length;\n if (!items.value[index]?.disabled) { activeIndex.value = index; return; }\n }\n }\n\n onBeforeUnmount(clear);\n return { query, items, activeIndex, loading, active: computed(() => items.value[activeIndex.value]), refresh, clear, dismiss, move };\n}\n","import type { QuireKitChatInputSnapshot } from '../../../components/chat/rich-input/types';\n\n/** Small bounded transaction history for text and semantic tokens together. */\nexport function createChatInputHistory() {\n const undoStack: QuireKitChatInputSnapshot[] = [];\n const redoStack: QuireKitChatInputSnapshot[] = [];\n\n /** Save a pre-edit state, invalidating redo.\n * @param snapshot - State before one input transaction.\n */\n function push(snapshot: QuireKitChatInputSnapshot): void {\n undoStack.push(snapshot);\n if (undoStack.length > 100) undoStack.shift();\n redoStack.length = 0;\n }\n\n /** Undo or redo an atomic text-plus-token transaction.\n * @param direction - Stack to consume.\n * @param current - State to place on the opposite stack.\n * @returns State to restore, when available.\n */\n function step(direction: 'undo' | 'redo', current: QuireKitChatInputSnapshot): QuireKitChatInputSnapshot | undefined {\n const source = direction === 'undo' ? undoStack : redoStack;\n const target = direction === 'undo' ? redoStack : undoStack;\n const previous = source.pop();\n if (previous) target.push(current);\n return previous;\n }\n\n /** External replacement starts a separate draft history. */\n function clear(): void { undoStack.length = 0; redoStack.length = 0; }\n return { push, step, clear };\n}\n","import { autoUpdate, computePosition, flip, offset, shift, size } from '@floating-ui/dom';\nimport { watchEffect, type Ref } from 'vue';\n\n/** Position an input-owned candidate surface without moving editor focus or theme scope.\n * @param anchor - Native multiline input.\n * @param popup - Candidate surface rendered alongside the input.\n * @param open - Whether candidates are visible.\n */\nexport function useChatCandidatePosition(anchor: Ref<HTMLTextAreaElement | null>, popup: Ref<HTMLElement | null>, open: Ref<boolean>): void {\n watchEffect(onCleanup => {\n const input = anchor.value;\n const element = popup.value;\n if (!open.value || !input || !element) return;\n // Anchor to Composer's full surface so a bottom-docked input opens over the conversation.\n const reference = input.closest<HTMLElement>('.qk-chat-composer__surface') ?? input;\n let active = true;\n const stop = autoUpdate(reference, element, () => {\n const viewport = reference.ownerDocument.documentElement.clientWidth;\n element.style.width = `${Math.max(0, Math.min(reference.getBoundingClientRect().width, viewport - 16))}px`;\n void computePosition(reference, element, {\n placement: 'top-start', strategy: 'fixed',\n middleware: [offset(6), flip({ fallbackPlacements: ['bottom-start'], padding: 8 }), shift({ padding: 8, crossAxis: true }), size({\n padding: 8,\n apply({ availableHeight, elements }) {\n elements.floating.style.maxHeight = `${Math.max(0, Math.min(availableHeight, 256))}px`;\n }\n })]\n }).then(({ x, y, placement }) => {\n if (!active) return;\n Object.assign(element.style, { left: `${x}px`, top: `${y}px`, visibility: 'visible' });\n element.dataset.placement = placement;\n });\n });\n onCleanup(() => { active = false; stop(); element.style.visibility = 'hidden'; });\n }, { flush: 'post' });\n}\n","<script setup lang=\"ts\">\nimport { computed, nextTick, onBeforeUnmount, ref, shallowRef, useId, watch } from 'vue';\nimport QuireTextarea from '../../textarea/textarea.vue';\nimport CandidateList from '../../candidate-list/candidate-list.vue';\nimport type { QuireKitTextareaInstance } from '../../../components/textarea';\nimport type { QuireKitChatInputSelection, QuireKitChatInputSnapshot, QuireKitChatInputToken, QuireKitChatRichInputProps } from '../../../components/chat/rich-input/types';\nimport { equalChatInputTokens, insertChatInputToken, rebaseChatInputTokens } from './model';\nimport { useChatInputCandidates } from './use-candidates';\nimport { createChatInputHistory } from './history';\nimport { useChatCandidatePosition } from './use-candidate-position';\nimport { useQuireKitMessages } from '../../locale-provider/context';\n\nconst props = withDefaults(defineProps<QuireKitChatRichInputProps>(), {\n submitMode: 'enter', rows: 2, maxRows: 8, disabled: false, readOnly: false\n});\nconst emit = defineEmits<{\n /** Literal controlled draft update. */\n 'update:modelValue': [value: string];\n /** Structured token update in the same edit as the literal draft. */\n 'update:tokens': [tokens: readonly QuireKitChatInputToken[]];\n /** Atomic edit payload for hosts that keep text and tokens in one state object. */\n change: [snapshot: QuireKitChatInputSnapshot];\n /** Current selection after pointer, keyboard or edit movement. */\n selectionChange: [selection: QuireKitChatInputSelection];\n /** Unmodified Enter outside an open candidate list. */\n submit: [snapshot: QuireKitChatInputSnapshot];\n /** Candidate resolver failed for the current query; the host owns feedback. */\n candidateError: [error: unknown];\n}>();\nconst text = useQuireKitMessages('chat');\nconst textarea = ref<QuireKitTextareaInstance>();\nconst field = shallowRef<HTMLTextAreaElement | null>(null);\nconst popup = shallowRef<HTMLElement | null>(null);\nconst draft = ref(props.modelValue);\nconst tokens = ref<readonly QuireKitChatInputToken[]>([...props.tokens]);\nconst selection = ref<QuireKitChatInputSelection>({ from: 0, to: 0 });\nconst focused = ref(false);\nconst composing = ref(false);\nconst candidates = useChatInputCandidates((query, signal) => props.resolveCandidates(query, signal), error => emit('candidateError', error));\nconst history = createChatInputHistory();\nconst listId = `qk-chat-candidates-${useId()}`;\nconst open = computed(() => focused.value && !props.disabled && !props.readOnly && !!candidates.query.value && candidates.items.value.length > 0);\nconst activeId = computed(() => open.value && candidates.activeIndex.value >= 0 ? `${listId}-item-${candidates.activeIndex.value}` : undefined);\nuseChatCandidatePosition(field, popup, open);\nlet pendingBefore: QuireKitChatInputSnapshot | null = null;\nlet compositionBefore: QuireKitChatInputSnapshot | null = null;\nlet occurrence = 0;\nlet disposed = false;\nonBeforeUnmount(() => { disposed = true; });\n\n/** Return a defensive atomic snapshot of text, references and selection.\n * @returns Current draft state.\n */\nfunction getSnapshot(): QuireKitChatInputSnapshot {\n return { text: draft.value, tokens: [...tokens.value], selection: { ...selection.value } };\n}\n\n/** Notify all controlled channels after one edit.\n * @param text - Next literal draft.\n * @param nextTokens - Next semantic references.\n */\nfunction commit(text: string, nextTokens: readonly QuireKitChatInputToken[]): void {\n draft.value = text; tokens.value = nextTokens;\n emit('update:modelValue', text);\n emit('update:tokens', nextTokens);\n emit('change', getSnapshot());\n}\n\n/** Read the native selection and refresh the candidate query. */\nfunction readSelection(): void {\n const input = field.value;\n if (!input) return;\n const next = { from: input.selectionStart, to: input.selectionEnd };\n if (selection.value.from !== next.from || selection.value.to !== next.to) {\n selection.value = next;\n emit('selectionChange', next);\n }\n if (!composing.value && focused.value && !props.disabled && !props.readOnly) {\n candidates.refresh(draft.value, next.from === next.to ? next.to : null, tokens.value);\n }\n}\n\n/** Restore a UTF-16 selection without remounting the native field.\n * @param next - Selection range to restore.\n */\nfunction setSelection(next: QuireKitChatInputSelection): void {\n selection.value = next;\n field.value?.setSelectionRange(next.from, next.to);\n emit('selectionChange', next);\n readSelection();\n}\n\n/** Focus through the Textarea public API.\n * @param options - Native focus options.\n */\nfunction focus(options?: FocusOptions): void { textarea.value?.focus(options); }\ndefineExpose({ focus, getSnapshot, setSelection });\n\n/** Capture the native field without querying another component's DOM.\n * @param event - Forwarded native focus event.\n */\nfunction onFocus(event: FocusEvent): void {\n field.value = event.target as HTMLTextAreaElement;\n focused.value = true;\n readSelection();\n}\n\n/** Close candidate UI when the editor loses focus. */\nfunction onBlur(): void { focused.value = false; candidates.clear(); }\n\n/** Preserve the pre-edit state and own browser undo for semantic tokens.\n * @param event - Native beforeinput event.\n */\nfunction onBeforeInput(event: InputEvent): void {\n if (props.disabled || props.readOnly) return;\n if (event.inputType === 'historyUndo' || event.inputType === 'historyRedo') {\n event.preventDefault(); restore(event.inputType === 'historyUndo' ? 'undo' : 'redo'); return;\n }\n readSelection();\n pendingBefore = getSnapshot();\n if (event.inputType === 'deleteContentBackward' || event.inputType === 'deleteContentForward') {\n if (removeToken(event.inputType === 'deleteContentBackward' ? 'backward' : 'forward')) event.preventDefault();\n }\n}\n\n/** Keep token ranges in sync with native typing, paste and input methods.\n * @param event - Native input event forwarded by Textarea.\n */\nfunction onInput(event: Event): void {\n const input = event.target as HTMLTextAreaElement;\n field.value = input;\n const next = input.value;\n if (next === draft.value) { pendingBefore = null; readSelection(); return; }\n const previous = pendingBefore ?? getSnapshot();\n pendingBefore = null;\n const rebased = rebaseChatInputTokens(draft.value, next, tokens.value, previous.selection);\n if (!composing.value && !compositionBefore) history.push(previous);\n selection.value = { from: input.selectionStart, to: input.selectionEnd };\n commit(next, rebased);\n if (!composing.value && !compositionBefore && focused.value) candidates.refresh(next, selection.value.from === selection.value.to ? selection.value.to : null, rebased);\n emit('selectionChange', selection.value);\n}\n\n/** Treat an entire IME composition as one undoable transaction. */\nfunction onCompositionStart(): void { compositionBefore = getSnapshot(); pendingBefore = null; composing.value = true; candidates.clear(); }\n\n/** Resume lookup only after the input method has committed its final text. */\nfunction onCompositionEnd(): void {\n composing.value = false;\n queueMicrotask(() => {\n if (disposed) return;\n if (compositionBefore && (compositionBefore.text !== draft.value || !equalChatInputTokens(compositionBefore.tokens, tokens.value))) {\n history.push(compositionBefore);\n }\n compositionBefore = null;\n readSelection();\n });\n}\n\n/** Apply a programmatic edit and restore its caret after Vue patches the field.\n * @param text - Next literal draft.\n * @param nextTokens - Next token set.\n * @param caret - Next caret position.\n */\nfunction replace(text: string, nextTokens: readonly QuireKitChatInputToken[], caret: number): void {\n history.push(getSnapshot());\n if (field.value) field.value.value = text;\n selection.value = { from: caret, to: caret };\n commit(text, nextTokens);\n candidates.clear();\n void nextTick(() => { focus(); setSelection({ from: caret, to: caret }); });\n}\n\n/** Remove a whole adjacent or intersecting token instead of leaving half a reference.\n * @param direction - Delete gesture direction.\n * @returns Whether a token was removed.\n */\nfunction removeToken(direction: 'backward' | 'forward'): boolean {\n const { from, to } = selection.value;\n const touched = tokens.value.filter(token => from === to\n ? direction === 'backward' ? token.from < from && from <= token.to : token.from <= from && from < token.to\n : token.from < to && token.to > from);\n if (!touched.length) return false;\n const start = Math.min(from, ...touched.map(token => token.from));\n const end = Math.max(to, ...touched.map(token => token.to));\n const text = draft.value.slice(0, start) + draft.value.slice(end);\n replace(text, rebaseChatInputTokens(draft.value, text, tokens.value), start);\n pendingBefore = null;\n return true;\n}\n\n/** Replace the active query with a feature-owned candidate.\n * @param key - Selected candidate identity.\n */\nfunction selectCandidate(key: string): void {\n const query = candidates.query.value;\n const candidate = candidates.items.value.find(item => item.key === key && !item.disabled);\n if (!query || !candidate || props.disabled || props.readOnly) return;\n const result = insertChatInputToken(draft.value, tokens.value, query, candidate.key,\n candidate.insertText ?? candidate.label, `${listId}-${++occurrence}`);\n replace(result.text, result.tokens, result.caret);\n}\n\n/** Keep navigation, submission and token deletion in the focused editor.\n * @param event - Native key event.\n */\nfunction onKeydown(event: KeyboardEvent): void {\n if (event.defaultPrevented || event.isComposing || event.keyCode === 229 || composing.value || props.disabled || props.readOnly) return;\n const shortcut = event.metaKey || event.ctrlKey;\n if (shortcut && !event.altKey && event.key.toLowerCase() === 'z') {\n event.preventDefault(); restore(event.shiftKey ? 'redo' : 'undo'); return;\n }\n if (shortcut && !event.altKey && event.key.toLowerCase() === 'y') {\n event.preventDefault(); restore('redo'); return;\n }\n if (open.value && !shortcut && !event.altKey && !event.shiftKey) {\n if (event.key === 'ArrowDown' || event.key === 'ArrowUp') {\n event.preventDefault(); candidates.move(event.key === 'ArrowDown' ? 1 : -1); return;\n }\n if (event.key === 'Escape') { event.preventDefault(); candidates.dismiss(); return; }\n if (event.key === 'Enter') {\n event.preventDefault(); if (!event.repeat) selectCandidate(candidates.active.value?.key ?? ''); return;\n }\n }\n if ((event.key === 'Backspace' || event.key === 'Delete') && !shortcut && !event.altKey) {\n readSelection();\n if (removeToken(event.key === 'Backspace' ? 'backward' : 'forward')) { event.preventDefault(); return; }\n }\n if (event.key === 'Enter' && props.submitMode === 'enter' && !event.shiftKey && !event.altKey && !shortcut) {\n event.preventDefault();\n if (!event.repeat && !candidates.loading.value) emit('submit', getSnapshot());\n }\n}\n\n/** Restore one atomic history state.\n * @param direction - Undo or redo.\n */\nfunction restore(direction: 'undo' | 'redo'): void {\n const previous = history.step(direction, getSnapshot());\n if (!previous) return;\n if (field.value) field.value.value = previous.text;\n selection.value = previous.selection;\n commit(previous.text, previous.tokens);\n candidates.clear();\n void nextTick(() => setSelection(previous.selection));\n}\n\nwatch([() => props.modelValue, () => props.tokens], ([text, externalTokens]) => {\n if (text === draft.value && equalChatInputTokens(externalTokens, tokens.value)) return;\n draft.value = text; tokens.value = [...externalTokens];\n selection.value = { from: Math.min(selection.value.from, text.length), to: Math.min(selection.value.to, text.length) };\n history.clear(); candidates.clear();\n});\nwatch([() => props.disabled, () => props.readOnly], () => {\n if (props.disabled || props.readOnly) candidates.clear();\n});\n</script>\n\n<template>\n <div class=\"qk-chat-rich-input\" role=\"combobox\" :aria-label=\"label\" :aria-expanded=\"open\"\n :aria-controls=\"open ? listId : undefined\" :data-candidates-open=\"open || undefined\">\n <QuireTextarea ref=\"textarea\" :model-value=\"draft\" :aria-label=\"label\" :placeholder=\"placeholder ?? text.composer.placeholder\" variant=\"embedded\"\n size=\"md\" width=\"100%\" :rows=\"rows\" :max-rows=\"maxRows\" auto-resize :disabled=\"disabled\" :read-only=\"readOnly\"\n aria-autocomplete=\"list\" :aria-controls=\"open ? listId : undefined\" :aria-activedescendant=\"activeId\"\n @focus=\"onFocus\" @blur=\"onBlur\" @beforeinput=\"onBeforeInput\" @input=\"onInput\" @keydown=\"onKeydown\"\n @keyup=\"readSelection\" @click=\"readSelection\" @select=\"readSelection\"\n @compositionstart=\"onCompositionStart\" @compositionend=\"onCompositionEnd\" />\n <div v-if=\"open\" ref=\"popup\" class=\"qk-chat-rich-input__candidates\" style=\"visibility: hidden\">\n <CandidateList :id=\"listId\" :label=\"text.composer.candidates\" :items=\"candidates.items.value\"\n :active-key=\"candidates.active.value?.key\" @select=\"selectCandidate\" />\n </div>\n </div>\n</template>\n","/** 为展示状态选择既有公共图标。\n * @param state - 中立展示状态。\n * @returns IconProvider 可解析的图标名。\n */\nexport function stateIcon(state: string): string {\n if (state === 'running' || state === 'streaming') return 'loaderCircle';\n if (state === 'error' || state === 'failed') return 'circleX';\n if (state === 'stopped' || state === 'cancelled') return 'square';\n if (state === 'complete' || state === 'succeeded') return 'check';\n return 'clock';\n}\n","import type { ObjectDirective } from 'vue';\n\nconst previousFocus = new WeakMap<HTMLElement, Element>();\n\n/** Capture at the actual DOM owner, including updates rendered through provider slots.\n * @param element - Programmatically focusable message/part root.\n */\nfunction capture(element: HTMLElement): void {\n const active = element.ownerDocument.activeElement;\n if (active && element.contains(active)) previousFocus.set(element, active);\n else previousFocus.delete(element);\n}\n\n/** Recover only removal-induced focus loss, never an intentional focus move.\n * @param element - Patched root whose previous descendant may have disappeared.\n */\nfunction recover(element: HTMLElement): void {\n const previous = previousFocus.get(element);\n if (previous && !previous.isConnected && element.ownerDocument.activeElement === element.ownerDocument.body) element.focus({ preventScroll: true });\n previousFocus.delete(element);\n}\n\n/** Patch-bound focus recovery has no global listener, observer or per-token subtree scan. */\nexport const vChatFocusRecovery: ObjectDirective<HTMLElement> = { beforeUpdate: capture, updated: recover };\n","<script setup lang=\"ts\">\nimport { computed, ref, shallowRef, watch } from 'vue';\nimport type { ChatDisclosureProps } from './types';\nimport QuireCollapsible from '../../collapsible/collapsible.vue';\nimport QuireIcon from '../../icon/icon.vue';\nimport QuireShimmer from '../../shimmer/shimmer.vue';\nimport LocaleScope from './locale-scope.vue';\nimport { stateIcon } from './state-icon';\nimport { useQuireKitMessages } from '../../locale-provider/context';\nimport { vChatFocusRecovery } from './focus-recovery';\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<ChatDisclosureProps>(), { open: undefined, defaultOpen: false, state: 'complete' });\nconst emit = defineEmits<{ /** Requests controlled disclosure acknowledgement. */ 'update:open': [value: boolean] }>();\ndefineSlots<{ /** Full detail content, kept mounted when closed. */ default?: () => unknown; /** Critical actions stay outside the closed detail region. */ actions?: () => unknown }>();\nconst root = shallowRef<HTMLElement | null>(null);\nconst localOpen = ref(props.defaultOpen);\nconst settled = computed(() => props.state === 'complete' || props.state === 'succeeded');\nconst active = computed(() => ['queued', 'running', 'streaming', 'pending'].includes(props.state));\nconst text = useQuireKitMessages('chat');\nconst status = computed(() => props.stateLabel ?? text.value.status[props.state]);\nwatch(() => props.processId, () => { localOpen.value = props.defaultOpen; });\n\n/** Records UI choice without changing execution state.\n * @param value - Requested disclosure state.\n */\nfunction updateOpen(value: boolean | undefined): void {\n if (value === undefined) return;\n localOpen.value = value;\n emit('update:open', value);\n}\n</script>\n\n<template>\n <LocaleScope v-slot=\"{ dir }\">\n <div ref=\"root\" v-chat-focus-recovery v-bind=\"$attrs\" class=\"qk-chat-process\" :dir=\"dir\" :data-process-id=\"processId\" :data-state=\"state\" tabindex=\"-1\">\n <QuireCollapsible :key=\"processId\" :title=\"title\" variant=\"plain\" trigger-variant=\"text\" indicator-placement=\"inline\" :open=\"open ?? localOpen\" @update:open=\"updateOpen\">\n <template #trigger>\n <span class=\"qk-chat-process__summary\" :data-state=\"state\">\n <QuireIcon v-if=\"(!settled && !active) || icon\" :name=\"!settled && !active ? stateIcon(state) : icon!\" :size=\"16\" />\n <span class=\"qk-chat-process__title\" :title=\"title\" dir=\"auto\">{{ title }}</span>\n <span v-if=\"summary\" class=\"qk-chat-process__preview\" :title=\"summary\" dir=\"auto\">{{ summary }}</span>\n <QuireShimmer v-if=\"active\" class=\"qk-chat-process__state\" :text=\"status\" :title=\"status\" dir=\"auto\" />\n <span v-else-if=\"!settled\" class=\"qk-chat-process__state\" :title=\"status\" dir=\"auto\">{{ status }}</span>\n <span v-else class=\"sr-only\">{{ status }}</span>\n <span v-if=\"meta\" class=\"qk-chat-process__meta\" :title=\"meta\" dir=\"auto\">{{ meta }}</span>\n </span>\n </template>\n <div :class=\"['qk-chat-process__details', contentLayout === 'steps' ? 'qk-chat-process__details--steps' : 'qk-chat-process__details--detail']\"><slot /></div>\n </QuireCollapsible>\n <div v-if=\"$slots.actions\" class=\"qk-chat-process__attention\"><slot name=\"actions\" /></div>\n </div>\n </LocaleScope>\n</template>\n","<script setup lang=\"ts\">\nimport { computed, mergeProps, useAttrs } from 'vue';\nimport type { QuireKitChatMessageActionProps } from '../../../components/chat';\nimport QuireButton from '../../button/button.vue';\nimport QuireIconButton from '../../button/icon-button.vue';\nimport QuireIcon from '../../icon/icon.vue';\nimport { QuireTooltipRoot, QuireTooltipTrigger, QuireTooltipContent } from '../../tooltip';\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<QuireKitChatMessageActionProps>(), { tooltip: true });\nconst emit = defineEmits<{ /** Requests execution of this available action. */ action: [id: string] }>();\nconst attrs = useAttrs();\nconst bindings = computed(() => ({ size: 'xs' as const, busy: props.action.busy ?? false, disabled: props.action.disabled ?? false,\n color: props.action.danger ? 'danger' as const : 'neutral' as const, variant: 'ghost' as const,\n 'aria-pressed': props.action.pressed, 'data-emphasis': props.action.danger ? 'danger' : 'muted',\n 'data-action-id': props.action.id, class: 'qk-chat-action' }));\n\n/** Prevents repeat activation while a command is unavailable. */\nfunction activate(): void {\n if (!props.action.busy && !props.action.disabled) emit('action', props.action.id);\n}\n</script>\n\n<template>\n <QuireTooltipRoot v-if=\"action.icon && tooltip\" :trigger-id=\"typeof attrs.id === 'string' ? attrs.id : undefined\">\n <QuireTooltipTrigger as-child>\n <QuireIconButton v-bind=\"mergeProps(bindings, $attrs)\" :label=\"action.label\" @click=\"activate\"><QuireIcon class=\"qk-chat-action__icon\" :name=\"action.icon\" /></QuireIconButton>\n </QuireTooltipTrigger>\n <QuireTooltipContent :content=\"action.label\" />\n </QuireTooltipRoot>\n <QuireIconButton v-else-if=\"action.icon\" v-bind=\"mergeProps(bindings, $attrs)\" :label=\"action.label\" @click=\"activate\"><QuireIcon class=\"qk-chat-action__icon\" :name=\"action.icon\" /></QuireIconButton>\n <QuireButton v-else v-bind=\"mergeProps(bindings, $attrs)\" @click=\"activate\">{{ action.label }}</QuireButton>\n</template>\n","<script setup lang=\"ts\">\nimport { computed, shallowRef } from 'vue';\nimport type { QuireKitChatAction, QuireKitChatActionDetails, QuireKitChatMessageActionsProps } from '../../../components/chat';\nimport type { QuireKitMenuEntry } from '../../../components/menu';\nimport type { QuireKitClipboardErrorDetails } from '../../../components/clipboard';\nimport QuireChatMessageAction from '../message-action/message-action.vue';\nimport QuireClipboard from '../../clipboard/clipboard.vue';\nimport QuireMenu from '../../menu/menu.vue';\nimport { useQuireKitMessages } from '../../locale-provider/context';\nimport { vChatFocusRecovery } from '../shared/focus-recovery';\nimport LocaleScope from '../shared/locale-scope.vue';\n\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<QuireKitChatMessageActionsProps>(), { state: 'complete', visibility: 'always', latest: true });\nconst emit = defineEmits<{\n /** 请求宿主执行命令。 */\n action: [details: QuireKitChatActionDetails];\n /** 完成系统剪贴板写入。 */\n copy: [];\n /** 复制写入失败。 */\n copyError: [details: QuireKitClipboardErrorDetails];\n}>();\nconst text = useQuireKitMessages('chat');\nconst labels = computed(() => text.value.message);\nconst root = shallowRef<HTMLElement | null>(null);\nconst active = computed(() => props.state === 'pending' || props.state === 'streaming');\nconst available = computed(() => props.actions?.filter(action => action.when === 'always' || (action.when === 'active' ? active.value : !active.value)) ?? []);\nconst inline = computed(() => available.value.filter(action => action.placement !== 'more' || action.pressed !== undefined));\nconst essential = computed(() => available.value.some(action => action.when === 'always' || action.when === 'active') || props.state === 'error');\nconst reveal = computed(() => !essential.value && (props.visibility === 'hover' || (props.visibility === 'auto' && !props.latest)));\nconst more = computed<QuireKitMenuEntry[]>(() => available.value.filter(action => action.placement === 'more' && action.pressed === undefined).map(action => ({\n value: action.id, label: action.label, disabled: !!(action.disabled || action.busy),\n ...(action.icon ? { icon: action.icon } : {}), ...(action.danger ? { tone: 'danger' as const } : {})\n})));\n\n/** Dispatches an available command without claiming business success.\n * @param action - Current action configuration, rechecked at activation time.\n */\nfunction dispatch(action: QuireKitChatAction): void {\n if (action.disabled || action.busy || !available.value.includes(action)) return;\n emit('action', { actionId: action.id, ...(props.messageId === undefined ? {} : { messageId: props.messageId }), ...(props.partId === undefined ? {} : { partId: props.partId }) });\n}\n\n/** Delivers the selected command intent without owning its execution.\n * @param value - Menu command identity.\n */\nfunction dispatchMore(value: string): void {\n const action = available.value.find(item => item.id === value && item.placement === 'more');\n if (action) dispatch(action);\n}\n</script>\n\n<template>\n <LocaleScope v-slot=\"{ dir }\">\n <div ref=\"root\" v-chat-focus-recovery v-bind=\"$attrs\" class=\"qk-chat-actions\" :dir=\"dir\" :data-reveal=\"reveal || undefined\" tabindex=\"-1\">\n <QuireClipboard v-if=\"copyText !== undefined && !active\" :value=\"copyText\" mode=\"icon\" variant=\"text\"\n @status-change=\"emit('copy')\" @copy-error=\"emit('copyError', $event)\">\n <template #control=\"control\"><QuireChatMessageAction\n :action=\"{ id: 'copy', label: control.error ? labels.copyError : control.copied ? labels.copied : labels.copy, icon: control.copied ? 'check' : 'copy', disabled: control.disabled }\"\n :aria-describedby=\"control.describedBy\" :aria-busy=\"control.copying || undefined\" :aria-disabled=\"control.copying || undefined\" @action=\"control.copy\" /></template>\n </QuireClipboard>\n <QuireChatMessageAction v-for=\"action in inline\" :key=\"action.id\" :action=\"action\" @action=\"dispatch(action)\" />\n <QuireMenu v-if=\"more.length\" :aria-label=\"labels.more\" :items=\"more\" width=\"auto\" max-width=\"16rem\" @select=\"dispatchMore\">\n <template #trigger><QuireChatMessageAction :action=\"{ id: 'more', label: labels.more, icon: 'moreHorizontal' }\" :tooltip=\"false\" /></template>\n </QuireMenu>\n </div>\n </LocaleScope>\n</template>\n","import type { QuireKitChatAction, QuireKitChatMessageState, QuireKitChatProcessState, QuireKitChatQuestionState, QuireKitChatConfirmationState } from '../../../components/chat';\n\n/** Local commands remain available by default; explicit timing still follows process state.\n * @param actions - Part-local action descriptions.\n * @returns Timing-normalized commands without mutating consumer data.\n */\nexport function localActions(actions: readonly QuireKitChatAction[] = []): readonly QuireKitChatAction[] {\n return actions.map(action => action.when ? action : { ...action, when: 'always' });\n}\n\n/** Map presentation states only for action timing, never infer execution success.\n * @param state - Host-supplied process state.\n * @returns Message-style timing state for the shared action composition.\n */\nexport function actionState(state: QuireKitChatProcessState | QuireKitChatQuestionState | QuireKitChatConfirmationState): QuireKitChatMessageState {\n if (state === 'queued' || state === 'waiting') return 'pending';\n if (state === 'submitting') return 'pending';\n if (state === 'running') return 'streaming';\n if (state === 'succeeded' || state === 'approved' || state === 'rejected' || state === 'answered' || state === 'expired') return 'complete';\n if (state === 'failed') return 'error';\n if (state === 'cancelled') return 'stopped';\n return state;\n}\n","<script setup lang=\"ts\">\nimport { computed } from 'vue';\nimport type { QuireKitChatActionDetails, QuireKitChatReasoningProps, QuireKitChatReasoningPart } from '../../../components/chat';\nimport Disclosure from '../shared/disclosure.vue';\nimport QuireChatMessageActions from '../message-actions/message-actions.vue';\nimport { useQuireKitMessages } from '../../locale-provider/context';\nimport { localActions } from '../shared/part-actions';\nconst props = withDefaults(defineProps<QuireKitChatReasoningProps>(), { open: undefined });\nconst emit = defineEmits<{ /** Controlled disclosure request. */ 'update:open': [value: boolean]; /** Part-local command request. */ action: [details: QuireKitChatActionDetails] }>();\ndefineSlots<{ /** Replace reasoning text while preserving its disclosure. */ default?: (context: { part: QuireKitChatReasoningPart }) => unknown }>();\nconst text = useQuireKitMessages('chat');\nconst identity = computed(() => JSON.stringify([props.messageId, props.part.id]));\n</script>\n\n<template>\n <Disclosure :process-id=\"identity\" :title=\"part.title ?? text.reasoning.title\" :state=\"part.state ?? 'complete'\"\n :state-label=\"text.status[part.state ?? 'complete']\" :open=\"open\" :default-open=\"defaultOpen ?? false\"\n v-bind=\"{ ...(part.summary === undefined ? {} : { summary: part.summary }), ...(part.meta === undefined ? {} : { meta: part.meta }) }\"\n @update:open=\"emit('update:open', $event)\">\n <slot :part=\"part\"><div class=\"qk-chat-part__text\" dir=\"auto\">{{ part.text }}</div></slot>\n <template v-if=\"part.actions?.length\" #actions>\n <QuireChatMessageActions :key=\"identity\" :actions=\"localActions(part.actions)\" :state=\"part.state ?? 'complete'\" :part-id=\"part.id\" :message-id=\"messageId\" @action=\"emit('action', $event)\" />\n </template>\n </Disclosure>\n</template>\n","<script setup lang=\"ts\">\nimport { computed } from 'vue';\nimport type { QuireKitChatActionDetails, QuireKitChatToolProps, QuireKitChatToolPart } from '../../../components/chat';\nimport Disclosure from '../shared/disclosure.vue';\nimport QuireCodeBlock from '../../code-block/code-block.vue';\nimport QuireIcon from '../../icon/icon.vue';\nimport QuireChatMessageActions from '../message-actions/message-actions.vue';\nimport { useQuireKitMessages } from '../../locale-provider/context';\nimport { actionState, localActions } from '../shared/part-actions';\nconst props = withDefaults(defineProps<QuireKitChatToolProps>(), { open: undefined });\nconst emit = defineEmits<{ /** Controlled disclosure request. */ 'update:open': [value: boolean]; /** Part-local command request. */ action: [details: QuireKitChatActionDetails] }>();\nconst slots = defineSlots<{ /** Parameter renderer. */ input?: (context: { part: QuireKitChatToolPart }) => unknown; /** Result renderer. */ output?: (context: { part: QuireKitChatToolPart }) => unknown }>();\nconst text = useQuireKitMessages('chat');\nconst identity = computed(() => JSON.stringify([props.messageId, props.part.id]));\n</script>\n\n<template>\n <Disclosure :process-id=\"identity\" :title=\"part.title\" :state=\"part.state\" :icon=\"part.icon ?? 'terminal'\"\n :state-label=\"part.stateLabel ?? text.status[part.state]\" :open=\"open\" :default-open=\"defaultOpen ?? false\"\n v-bind=\"{ ...(part.summary === undefined ? {} : { summary: part.summary }), ...(part.meta === undefined ? {} : { meta: part.meta }) }\"\n @update:open=\"emit('update:open', $event)\">\n <slot v-if=\"part.input !== undefined || slots.input\" name=\"input\" :part=\"part\">\n <QuireCodeBlock :code=\"part.input ?? ''\" :header=\"false\" :aria-label=\"text.tool.input\" :language=\"part.inputLanguage ?? 'text'\" density=\"compact\" dir=\"ltr\" />\n </slot>\n <slot v-if=\"part.output !== undefined || slots.output\" name=\"output\" :part=\"part\">\n <QuireCodeBlock :code=\"part.output ?? ''\" :header=\"false\" :aria-label=\"text.tool.output\" :language=\"part.outputLanguage ?? 'text'\" :copy=\"!part.outputTruncated\" density=\"compact\" dir=\"ltr\" />\n </slot>\n <p v-if=\"part.outputTruncated\" class=\"qk-chat-part__hint\">{{ part.outputTruncated }}</p>\n <p v-if=\"part.input === undefined && part.output === undefined && !part.error && !slots.input && !slots.output\" class=\"qk-chat-part__hint\">{{ text.tool.empty }}</p>\n <template v-if=\"part.error || part.actions?.length\" #actions>\n <div v-if=\"part.error\" class=\"qk-chat-part__error\"><QuireIcon name=\"circleX\" :size=\"16\" /><span dir=\"auto\">{{ part.error }}</span></div>\n <QuireChatMessageActions v-if=\"part.actions?.length\" :key=\"identity\" :actions=\"localActions(part.actions)\" :state=\"actionState(part.state)\" :part-id=\"part.id\" :message-id=\"messageId\" @action=\"emit('action', $event)\" />\n </template>\n </Disclosure>\n</template>\n","<script setup lang=\"ts\">\nimport { computed, ref } from 'vue';\nimport type { QuireKitSource, QuireKitSourceNavigateDetails, QuireKitSourcesProps } from '../../components/sources';\nimport QuireCollapsible from '../collapsible/collapsible.vue';\nimport QuireIcon from '../icon/icon.vue';\nimport { useQuireKitMessages } from '../locale-provider/context';\n\nconst props = withDefaults(defineProps<QuireKitSourcesProps>(), {\n defaultOpen: false, open: undefined\n});\nconst emit = defineEmits<{\n /** Request disclosure in controlled mode. */\n 'update:open': [value: boolean];\n /** Request host-owned routing, without opening an address directly. */\n navigate: [details: QuireKitSourceNavigateDetails];\n}>();\nconst text = useQuireKitMessages('sources');\nconst title = computed(() => props.title ?? text.value.title);\nconst internalOpen = ref(props.defaultOpen);\nconst expanded = computed({\n get: () => props.open ?? internalOpen.value,\n set: value => { internalOpen.value = value; emit('update:open', value); }\n});\n\n/** Emit a source identity only while the resource is available.\n * @param source - Host-projected source.\n */\nfunction navigate(source: QuireKitSource): void {\n if (source.unavailable) return;\n emit('navigate', { sourceId: source.id, ...(source.href === undefined ? {} : { href: source.href }) });\n}\n</script>\n\n<template>\n <section v-if=\"sources.length\" class=\"qk-sources\" :aria-label=\"title\">\n <QuireCollapsible v-model:open=\"expanded\" :title=\"title\" variant=\"plain\" trigger-variant=\"text\" indicator-placement=\"inline\" size=\"sm\">\n <template #trigger>\n <span class=\"qk-sources__trigger\"><QuireIcon name=\"bookOpen\" :size=\"12\" /><span>{{ title }}</span><span class=\"qk-sources__count\">{{ sources.length }}</span></span>\n </template>\n <div class=\"qk-sources__list\" role=\"list\">\n <div v-for=\"(source, index) in sources\" :key=\"source.id\" role=\"listitem\" class=\"qk-sources__item\">\n <button type=\"button\" class=\"qk-sources__link\" :disabled=\"source.unavailable\" :aria-label=\"source.unavailable ? text.unavailableSource(source.title) : text.navigateTo(source.title)\" @click=\"navigate(source)\">\n <span class=\"qk-sources__number\" aria-hidden=\"true\">{{ index + 1 }}</span>\n <span class=\"qk-sources__text\">\n <span class=\"qk-sources__title\" dir=\"auto\"><span class=\"qk-sources__title-text\">{{ source.title }}</span><QuireIcon v-if=\"!source.unavailable\" name=\"arrowUpRight\" :size=\"12\" /></span>\n <span v-if=\"source.label || source.unavailable\" class=\"qk-sources__origin\" dir=\"auto\">{{ source.unavailable ? text.unavailable : source.label }}</span>\n <span v-if=\"source.description\" class=\"qk-sources__description\" dir=\"auto\">{{ source.description }}</span>\n </span>\n </button>\n </div>\n </div>\n </QuireCollapsible>\n </section>\n</template>\n","<script setup lang=\"ts\">\nimport { computed } from 'vue';\nimport type { QuireKitChatConfirmationDecision, QuireKitChatConfirmationProps, QuireKitChatConfirmationSlots } from '../../../components/chat';\nimport QuireButton from '../../button/button.vue';\nimport { vChatFocusRecovery } from '../shared/focus-recovery';\nimport { useQuireKitMessages } from '../../locale-provider/context';\n\nconst props = defineProps<QuireKitChatConfirmationProps>();\ndefineSlots<QuireKitChatConfirmationSlots>();\nconst emit = defineEmits<{ /** Request a decision; the host owns authorization and state changes. */ decide: [details: QuireKitChatConfirmationDecision] }>();\nconst text = useQuireKitMessages('chat');\nconst labels = computed(() => text.value.confirmation[props.intent ?? 'permission']);\nconst actionable = computed(() => props.state === 'pending' || props.state === 'failed');\n\n/** @param decision - Explicit user choice, never a completed authorization. */\nfunction decide(decision: QuireKitChatConfirmationDecision['decision']): void {\n if (!actionable.value) return;\n emit('decide', { requestId: props.requestId, decision });\n}\n</script>\n\n<template>\n <section v-chat-focus-recovery class=\"qk-chat-decision qk-chat-confirmation\" :data-state=\"state\" :aria-label=\"title\" tabindex=\"-1\">\n <div class=\"qk-chat-decision__heading\">\n <strong class=\"qk-chat-decision__title\">{{ title }}</strong>\n <span class=\"qk-chat-decision__state\" :data-state=\"state\" role=\"status\">{{ labels[state] }}</span>\n </div>\n <p v-if=\"description\" class=\"qk-chat-decision__description\">{{ description }}</p>\n <slot />\n <p v-if=\"state === 'failed'\" class=\"qk-chat-decision__error\" role=\"alert\">{{ error || labels.failed }}</p>\n <div v-if=\"actionable || state === 'submitting'\" class=\"qk-chat-decision__actions\">\n <QuireButton size=\"sm\" color=\"primary\" variant=\"solid\" :busy=\"state === 'submitting'\" :disabled=\"!actionable\" @click=\"decide('approve')\">{{ labels.approve }}</QuireButton>\n <QuireButton size=\"sm\" variant=\"ghost\" :disabled=\"!actionable\" @click=\"decide('reject')\">{{ labels.reject }}</QuireButton>\n </div>\n </section>\n</template>\n","<script setup lang=\"ts\">\nimport { computed, nextTick, ref, watch } from 'vue';\nimport type { QuireKitChatQuestionAnswer, QuireKitChatQuestionItem, QuireKitChatQuestionOpenDetails, QuireKitChatQuestionOption, QuireKitChatQuestionProps, QuireKitChatQuestionSubmitDetails } from '../../../components/chat';\nimport QuireButton from '../../button/button.vue';\nimport QuireRadioGroup from '../../radio-group/radio-group.vue';\nimport QuireCheckboxGroup from '../../checkbox-group/checkbox-group.vue';\nimport QuireTextarea from '../../textarea/textarea.vue';\nimport { vChatFocusRecovery } from '../shared/focus-recovery';\nimport { useQuireKitMessages } from '../../locale-provider/context';\n\nconst props = defineProps<QuireKitChatQuestionProps>();\nconst emit = defineEmits<{\n /** Controlled answer draft update; the host can preserve it across remounts. */\n 'update:draft': [answers: readonly QuireKitChatQuestionAnswer[]];\n /** Request a host-owned answer surface without moving or hiding the Composer. */\n open: [details: QuireKitChatQuestionOpenDetails];\n /** Submit intent; the host validates and sends the response. */\n submit: [details: QuireKitChatQuestionSubmitDetails];\n}>();\nconst text = useQuireKitMessages('chat');\nconst labels = computed(() => text.value.question);\nconst localDraft = ref<readonly QuireKitChatQuestionAnswer[]>(props.defaultDraft ?? []);\nconst pendingDraft = ref<readonly QuireKitChatQuestionAnswer[] | undefined>();\nconst attempted = ref(false);\nconst summaryExpanded = ref(false);\nconst root = ref<HTMLElement | null>(null);\nconst draft = computed(() => props.draft ?? localDraft.value);\nconst currentAnswers = computed(() => props.state === 'answered' ? props.answers ?? draft.value : pendingDraft.value ?? draft.value);\nconst editable = computed(() => props.state === 'pending' || props.state === 'failed');\nconst prompt = computed(() => props.presentation === 'prompt');\n\nwatch(() => props.requestId, () => { localDraft.value = props.defaultDraft ?? []; pendingDraft.value = undefined; attempted.value = false; summaryExpanded.value = false; });\nwatch(() => props.draft, () => { pendingDraft.value = undefined; });\nwatch(() => props.state, (next, previous) => { if (next === 'answered' && previous !== 'answered') summaryExpanded.value = false; });\n\n/** @param question - Visible question. @returns Its current draft or confirmed answer. */\nfunction answerFor(question: QuireKitChatQuestionItem): QuireKitChatQuestionAnswer | undefined {\n return currentAnswers.value.find(answer => answer.questionId === question.id);\n}\n\n/** @param question - Selection question. @returns Predefined choices followed by its optional free-text choice. */\nfunction optionsFor(question: QuireKitChatQuestionItem): readonly QuireKitChatQuestionOption[] {\n return question.customOption === undefined ? question.options ?? [] : [...(question.options ?? []), question.customOption];\n}\n\n/** @param question - Visible question. @returns Its current scalar or multiple value. */\nfunction valueFor(question: QuireKitChatQuestionItem): string | readonly string[] {\n return answerFor(question)?.value ?? (question.kind === 'multiple' ? [] : '');\n}\n\n/** @param question - Visible question. @returns A scalar suitable for RadioGroup or Textarea. */\nfunction scalarFor(question: QuireKitChatQuestionItem): string {\n const value = valueFor(question);\n return typeof value === 'string' ? value : '';\n}\n\n/** @param question - Visible question. @returns Ordered selected values. */\nfunction multipleFor(question: QuireKitChatQuestionItem): readonly string[] {\n const value = valueFor(question);\n return Array.isArray(value) ? value : [];\n}\n\n/** @param question - Visible question. @returns The preserved free-text choice draft. */\nfunction customFor(question: QuireKitChatQuestionItem): string {\n return answerFor(question)?.custom ?? '';\n}\n\n/** @param question - Selection question. @param value - Selected option values. @returns Whether the free-text choice is selected. */\nfunction hasCustomChoice(question: QuireKitChatQuestionItem, value: string | readonly string[] = valueFor(question)): boolean {\n if (question.customOption === undefined || question.kind === 'text') return false;\n return typeof value === 'string' ? value === question.customOption.value : value.includes(question.customOption.value);\n}\n\n/** @param question - Visible question. @returns Whether a selected free-text choice still lacks text. */\nfunction customMissing(question: QuireKitChatQuestionItem): boolean {\n return hasCustomChoice(question) && !customFor(question).trim();\n}\n\n/** @param question - Visible question. @returns Whether a required response is missing. */\nfunction missing(question: QuireKitChatQuestionItem): boolean {\n if (customMissing(question)) return true;\n if (question.required === false) return false;\n const value = valueFor(question);\n return typeof value === 'string' ? !value.trim() : value.length === 0;\n}\n\n/** @param question - Answered prompt. @returns Human-readable option labels or free text for transcript history. */\nfunction answerSummary(question: QuireKitChatQuestionItem): string {\n const answer = (props.answers ?? draft.value).find(item => item.questionId === question.id);\n const value = answer?.value;\n const values = value === undefined ? [] : typeof value === 'string' ? [value] : value;\n const visible = values.filter(item => item.trim()).map(item =>\n question.kind === 'text' ? item : item === question.customOption?.value\n ? answer?.custom?.trim() || labels.value.unanswered\n : question.options?.find(option => option.value === item)?.label ?? item);\n return visible.length > 0 ? visible.join(' · ') : labels.value.unanswered;\n}\n\n/** @param questionId - Stable question ID. @param patch - Updated selection or custom text. */\nfunction update(questionId: string, patch: Partial<Pick<QuireKitChatQuestionAnswer, 'value' | 'custom'>>): void {\n if (!editable.value) return;\n const previous = (pendingDraft.value ?? draft.value).find(answer => answer.questionId === questionId);\n const custom = patch.custom ?? previous?.custom;\n const answer: QuireKitChatQuestionAnswer = {\n questionId, value: patch.value ?? previous?.value ?? '', ...(custom === undefined ? {} : { custom })\n };\n const next = [...(pendingDraft.value ?? draft.value).filter(item => item.questionId !== questionId), answer];\n pendingDraft.value = next;\n if (props.draft === undefined) localDraft.value = next;\n emit('update:draft', next);\n}\n\n/** @param question - Selection question. @param value - Newly selected options. */\nfunction updateChoice(question: QuireKitChatQuestionItem, value: string | readonly string[]): void {\n const selectingCustom = !hasCustomChoice(question) && hasCustomChoice(question, value);\n update(question.id, { value });\n if (!selectingCustom) return;\n void nextTick(() => {\n const item = [...(root.value?.querySelectorAll<HTMLElement>('[data-question-id]') ?? [])]\n .find(element => element.dataset.questionId === question.id);\n item?.querySelector<HTMLTextAreaElement>('.qk-chat-question__custom-field textarea')?.focus();\n });\n}\n\n/** Validate required answers before forwarding one host-owned submit intent. */\nfunction submit(): void {\n if (!editable.value) return;\n attempted.value = true;\n if (props.questions.some(missing)) return;\n emit('submit', {\n requestId: props.requestId,\n answers: props.questions.map(question => ({\n questionId: question.id, value: valueFor(question),\n ...(hasCustomChoice(question) ? { custom: customFor(question).trim() } : {})\n }))\n });\n}\n</script>\n\n<template>\n <section ref=\"root\" v-chat-focus-recovery :class=\"['qk-chat-question', prompt ? 'qk-chat-question--prompt' : 'qk-chat-decision']\" :data-state=\"state\" :data-presentation=\"presentation ?? 'form'\" :aria-label=\"title\" tabindex=\"-1\">\n <div class=\"qk-chat-decision__heading\">\n <strong class=\"qk-chat-decision__title\">{{ title }}</strong>\n <span v-if=\"state !== 'pending'\" class=\"qk-chat-decision__state\" :data-state=\"state\" role=\"status\">{{ state === 'failed' ? labels.failed : labels[state] }}</span>\n </div>\n <p v-if=\"description\" class=\"qk-chat-decision__description\">{{ description }}</p>\n <div v-if=\"prompt && editable\" class=\"qk-chat-question__prompt-actions\">\n <QuireButton size=\"sm\" variant=\"outline\" @click=\"emit('open', { requestId })\">{{ labels.open }}</QuireButton>\n </div>\n <div v-else-if=\"prompt && state === 'answered'\" class=\"qk-chat-question__prompt-actions\">\n <QuireButton size=\"sm\" variant=\"text\" :aria-expanded=\"summaryExpanded\" @click=\"summaryExpanded = !summaryExpanded\">{{ summaryExpanded ? labels.hideAnswers : labels.showAnswers }}</QuireButton>\n </div>\n <dl v-if=\"state === 'answered' && (!prompt || summaryExpanded)\" class=\"qk-chat-question__summary\">\n <div v-for=\"question in questions\" :key=\"question.id\" class=\"qk-chat-question__answer\">\n <dt class=\"qk-chat-question__answer-label\">{{ question.title }}</dt>\n <dd class=\"qk-chat-question__answer-value\">{{ answerSummary(question) }}</dd>\n </div>\n </dl>\n <div v-else-if=\"!prompt\" class=\"qk-chat-question__items\">\n <div v-for=\"(question, index) in questions\" :key=\"question.id\" class=\"qk-chat-question__item\" :data-question-id=\"question.id\">\n <p v-if=\"questions.length > 1\" class=\"qk-chat-question__number\">{{ labels.position(index + 1, questions.length) }}</p>\n <QuireRadioGroup v-if=\"question.kind === 'single'\" :model-value=\"scalarFor(question)\" :items=\"optionsFor(question)\" :label=\"question.title\" :read-only=\"!editable\" :disabled=\"state === 'expired'\" :invalid=\"attempted && missing(question)\" @update:model-value=\"updateChoice(question, $event ?? '')\" />\n <QuireCheckboxGroup v-else-if=\"question.kind === 'multiple'\" :model-value=\"multipleFor(question)\" :items=\"optionsFor(question)\" :label=\"question.title\" :read-only=\"!editable\" :disabled=\"state === 'expired'\" :invalid=\"attempted && missing(question)\" @update:model-value=\"updateChoice(question, $event)\" />\n <div v-else class=\"qk-chat-question__text-field\">\n <label class=\"qk-chat-question__label\" :for=\"`${requestId}-${question.id}`\">{{ question.title }}</label>\n <QuireTextarea :id=\"`${requestId}-${question.id}`\" :model-value=\"scalarFor(question)\" v-bind=\"question.placeholder === undefined ? {} : { placeholder: question.placeholder }\" :read-only=\"!editable\" :disabled=\"state === 'expired'\" :invalid=\"attempted && missing(question)\" :rows=\"2\" :auto-resize=\"true\" width=\"100%\" @update:model-value=\"update(question.id, { value: $event })\" />\n </div>\n <div v-if=\"question.customOption && hasCustomChoice(question)\" class=\"qk-chat-question__custom-field\">\n <label class=\"sr-only\" :for=\"`${requestId}-${question.id}-custom`\">{{ question.customOption.label }}</label>\n <QuireTextarea :id=\"`${requestId}-${question.id}-custom`\" :model-value=\"customFor(question)\" :placeholder=\"question.customOption.placeholder ?? labels.customPlaceholder\"\n :read-only=\"!editable\" :disabled=\"state === 'expired'\" :invalid=\"attempted && customMissing(question)\" :rows=\"1\" :max-rows=\"6\" :auto-resize=\"true\" width=\"100%\" @update:model-value=\"update(question.id, { custom: $event })\" />\n </div>\n <p v-if=\"question.description\" class=\"qk-chat-question__description\">{{ question.description }}</p>\n <p v-if=\"attempted && missing(question)\" class=\"qk-chat-question__required\" role=\"alert\">{{ customMissing(question) ? labels.customRequired : labels.required }}</p>\n </div>\n </div>\n <p v-if=\"state === 'failed'\" class=\"qk-chat-decision__error\" role=\"alert\">{{ error || labels.failed }}</p>\n <div v-if=\"!prompt && (editable || state === 'submitting')\" class=\"qk-chat-decision__actions\">\n <QuireButton size=\"sm\" color=\"primary\" variant=\"solid\" :busy=\"state === 'submitting'\" :disabled=\"!editable\" @click=\"submit\">{{ labels.submit }}</QuireButton>\n </div>\n </section>\n</template>\n","<script setup lang=\"ts\">\nimport { computed, shallowRef } from 'vue';\nimport type { QuireKitChatActionDetails, QuireKitChatAttachmentActionDetails, QuireKitChatConfirmationDecisionDetails, QuireKitChatMessagePartProps, QuireKitChatPartSlots, QuireKitChatQuestionDraftDetails, QuireKitChatQuestionOpenPartDetails, QuireKitChatQuestionSubmitPartDetails, QuireKitChatSourceNavigateDetails } from '../../../components/chat';\nimport QuireAlert from '../../alert/alert.vue';\nimport QuireAttachments from '../../attachment/attachments.vue';\nimport QuireChatReasoning from '../reasoning/reasoning.vue';\nimport QuireChatTool from '../tool/tool.vue';\nimport QuireSources from '../../sources/sources.vue';\nimport QuireChatConfirmation from '../confirmation/confirmation.vue';\nimport QuireChatQuestion from '../question/question.vue';\nimport ChatActions from '../message-actions/message-actions.vue';\nimport LocaleScope from '../shared/locale-scope.vue';\nimport { useQuireKitMessages } from '../../locale-provider/context';\nimport { localActions, actionState } from '../shared/part-actions';\nimport { vChatFocusRecovery } from '../shared/focus-recovery';\n\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<QuireKitChatMessagePartProps>(), { defaultOpen: false, open: undefined });\ndefineSlots<QuireKitChatPartSlots>();\nconst emit = defineEmits<{\n /** Requests an optional controlled disclosure change. */\n 'update:open': [value: boolean];\n /** Requests a part-local business command. */\n action: [details: QuireKitChatActionDetails];\n /** Requests an attachment intent with its stable message and part identity. */\n attachmentAction: [details: QuireKitChatAttachmentActionDetails];\n /** Requests host navigation to one source in this part. */\n sourceNavigate: [details: QuireKitChatSourceNavigateDetails];\n /** Host-owned approval request. */\n confirmationDecision: [details: QuireKitChatConfirmationDecisionDetails];\n /** Controlled question draft update. */\n questionDraftChange: [details: QuireKitChatQuestionDraftDetails];\n /** Open the host-owned answer surface. */\n questionOpen: [details: QuireKitChatQuestionOpenPartDetails];\n /** Host-owned question submit request. */\n questionSubmit: [details: QuireKitChatQuestionSubmitPartDetails];\n}>();\nconst root = shallowRef<HTMLElement | null>(null);\nconst identity = computed(() => JSON.stringify([props.messageId, props.part.id, props.part.kind]));\nconst text = useQuireKitMessages('chat');\nconst state = computed(() => 'state' in props.part ? props.part.state ?? 'complete' : 'complete');\n</script>\n\n<template>\n <LocaleScope v-slot=\"{ dir }\">\n <div ref=\"root\" v-chat-focus-recovery v-bind=\"$attrs\" class=\"qk-chat-part\" :dir=\"dir\" :data-part-id=\"part.id\" :data-kind=\"part.kind\" :data-state=\"state\" tabindex=\"-1\">\n <div :key=\"identity\" class=\"qk-chat-part__content\">\n <template v-if=\"part.kind === 'text'\">\n <slot name=\"text\" :part=\"part\">\n <p v-if=\"part.format === 'markdown'\" class=\"qk-chat-part__hint\">{{ text.part.markdownFallback }}</p>\n <div class=\"qk-chat-part__text\" dir=\"auto\">{{ part.text }}</div>\n </slot>\n <div v-if=\"state === 'stopped' || state === 'error'\" class=\"qk-chat-part__hint\">{{ text.status[state] }}</div>\n </template>\n <QuireChatReasoning v-else-if=\"part.kind === 'reasoning'\" :part=\"part\" :message-id=\"messageId\" :open=\"open\" :default-open=\"defaultOpen\"\n @update:open=\"emit('update:open', $event)\" @action=\"emit('action', $event)\">\n <template v-if=\"$slots.reasoning\" #default=\"context\"><slot name=\"reasoning\" v-bind=\"context\" /></template>\n </QuireChatReasoning>\n <QuireChatTool v-else-if=\"part.kind === 'tool'\" :part=\"part\" :message-id=\"messageId\" :open=\"open\" :default-open=\"defaultOpen\"\n @update:open=\"emit('update:open', $event)\" @action=\"emit('action', $event)\">\n <template v-if=\"$slots['tool-input']\" #input=\"context\"><slot name=\"tool-input\" v-bind=\"context\" /></template>\n <template v-if=\"$slots['tool-output']\" #output=\"context\"><slot name=\"tool-output\" v-bind=\"context\" /></template>\n </QuireChatTool>\n <QuireAttachments v-else-if=\"part.kind === 'attachment'\" :items=\"part.items\" :layout=\"part.layout\" :preview=\"part.preview\" :label=\"part.label\"\n @action=\"emit('attachmentAction', { ...$event, messageId, partId: part.id })\" />\n <QuireSources v-else-if=\"part.kind === 'sources'\" :sources=\"part.sources\" v-bind=\"{ ...(part.title === undefined ? {} : { title: part.title }), ...(open === undefined ? {} : { open }) }\" :default-open=\"defaultOpen\"\n @update:open=\"emit('update:open', $event)\" @navigate=\"emit('sourceNavigate', { ...$event, ...(messageId === undefined ? {} : { messageId }), partId: part.id })\" />\n <QuireChatConfirmation v-else-if=\"part.kind === 'confirmation'\" :request-id=\"part.requestId\" :title=\"part.title\" :state=\"part.state\" v-bind=\"{ ...(part.description === undefined ? {} : { description: part.description }), ...(part.error === undefined ? {} : { error: part.error }), ...(part.intent === undefined ? {} : { intent: part.intent }) }\"\n @decide=\"emit('confirmationDecision', { ...$event, ...(messageId === undefined ? {} : { messageId }), partId: part.id })\" />\n <QuireChatQuestion v-else-if=\"part.kind === 'question'\" :request-id=\"part.requestId\" :title=\"part.title\" :questions=\"part.questions\" :state=\"part.state\" v-bind=\"{ ...(part.presentation === undefined ? {} : { presentation: part.presentation }), ...(part.description === undefined ? {} : { description: part.description }), ...(part.error === undefined ? {} : { error: part.error }), ...(part.draft === undefined ? {} : { draft: part.draft }), ...(part.defaultDraft === undefined ? {} : { defaultDraft: part.defaultDraft }), ...(part.answers === undefined ? {} : { answers: part.answers }) }\"\n @update:draft=\"emit('questionDraftChange', { answers: $event, ...(messageId === undefined ? {} : { messageId }), partId: part.id })\"\n @open=\"emit('questionOpen', { ...$event, ...(messageId === undefined ? {} : { messageId }), partId: part.id })\"\n @submit=\"emit('questionSubmit', { ...$event, ...(messageId === undefined ? {} : { messageId }), partId: part.id })\" />\n <QuireAlert v-else-if=\"part.kind === 'notice'\" :title=\"part.title\" v-bind=\"part.description === undefined ? {} : { description: part.description }\" :color=\"part.color ?? 'neutral'\" variant=\"subtle\" />\n <slot v-else-if=\"part.kind === 'custom'\" name=\"custom\" :part=\"part\">\n <QuireAlert :title=\"part.name\" :description=\"part.fallback\" color=\"neutral\" variant=\"subtle\" />\n </slot>\n <QuireAlert v-else :title=\"text.part.unsupported\" color=\"neutral\" variant=\"subtle\" />\n <ChatActions v-if=\"part.kind !== 'reasoning' && part.kind !== 'tool' && part.actions?.length\" :actions=\"localActions(part.actions)\" :state=\"actionState(state)\" :part-id=\"part.id\" :message-id=\"messageId\" @action=\"emit('action', $event)\" />\n </div>\n </div>\n </LocaleScope>\n</template>\n","<script setup lang=\"ts\">\nimport { computed, onBeforeUpdate, onUpdated, shallowRef } from 'vue';\nimport type { QuireKitChatMessageBranchProps, QuireKitChatBranchChangeDetails } from '../../../components/chat';\nimport QuireChatMessageAction from '../message-action/message-action.vue';\nimport { useQuireKitMessages } from '../../locale-provider/context';\nconst props = defineProps<QuireKitChatMessageBranchProps>();\nconst text = useQuireKitMessages('chat');\nconst labels = computed(() => text.value.message);\nconst emit = defineEmits<{\n /** Request a selected identity, never mutate it locally. */\n change: [details: QuireKitChatBranchChangeDetails];\n}>();\nconst root = shallowRef<HTMLElement | null>(null);\nconst position = shallowRef<HTMLElement | null>(null);\nconst index = computed(() => props.branch.ids.indexOf(props.branch.selectedId));\nconst valid = computed(() => index.value >= 0 && new Set(props.branch.ids).size === props.branch.ids.length && props.branch.ids.every(id => id.length > 0));\nlet previousFocus: HTMLButtonElement | null = null;\n// Capture before native disabled blurs the endpoint button, then recover after DOM patching.\nonBeforeUpdate(() => {\n const active = root.value?.ownerDocument.activeElement;\n previousFocus = active instanceof HTMLButtonElement && root.value?.contains(active) ? active : null;\n});\nonUpdated(() => {\n const document = root.value?.ownerDocument;\n if (previousFocus?.disabled && document && (document.activeElement === document.body || document.activeElement === previousFocus)) {\n position.value?.focus({ preventScroll: true });\n }\n previousFocus = null;\n});\n\n/** Request one existing neighboring branch.\n * @param direction - Logical previous or next offset.\n */\nfunction move(direction: -1 | 1): void {\n const id = props.branch.ids[index.value + direction];\n if (!props.disabled && valid.value && id !== undefined) emit('change', { branchId: id, ...(props.messageId === undefined ? {} : { messageId: props.messageId }) });\n}\n</script>\n\n<template>\n <div v-if=\"branch.ids.length > 1\" ref=\"root\" class=\"qk-chat-branch\">\n <QuireChatMessageAction :action=\"{ id: 'previous', label: labels.previousBranch, icon: 'chevronLeft', disabled: disabled || !valid || index === 0 }\" :tooltip=\"false\" @action=\"move(-1)\" />\n <span ref=\"position\" class=\"qk-chat-branch__position\" tabindex=\"-1\" aria-live=\"polite\" :dir=\"valid ? 'ltr' : undefined\">{{ valid ? labels.branchPosition(index + 1, branch.ids.length) : labels.branchUnavailable }}</span>\n <QuireChatMessageAction :action=\"{ id: 'next', label: labels.nextBranch, icon: 'chevronRight', disabled: disabled || !valid || index === branch.ids.length - 1 }\" :tooltip=\"false\" @action=\"move(1)\" />\n </div>\n</template>\n","<script setup lang=\"ts\">\nimport { computed, ref, shallowRef, watch } from 'vue';\nimport type { QuireKitChatActionDetails, QuireKitChatAttachmentActionDetails, QuireKitChatBranchChangeDetails, QuireKitChatConfirmationDecisionDetails, QuireKitChatMessageProps, QuireKitChatMessageSlots, QuireKitChatQuestionDraftDetails, QuireKitChatQuestionOpenPartDetails, QuireKitChatQuestionSubmitPartDetails, QuireKitChatSourceNavigateDetails } from '../../../components/chat';\nimport type { QuireKitClipboardErrorDetails } from '../../../components/clipboard';\nimport QuireChatMessagePart from '../message-part/message-part.vue';\nimport ChatActions from '../message-actions/message-actions.vue';\nimport ChatBranch from '../message-branch/message-branch.vue';\nimport LocaleScope from '../shared/locale-scope.vue';\nimport QuireIcon from '../../icon/icon.vue';\nimport QuireShimmer from '../../shimmer/shimmer.vue';\nimport { stateIcon } from '../shared/state-icon';\nimport { useQuireKitMessages } from '../../locale-provider/context';\nimport { vChatFocusRecovery } from '../shared/focus-recovery';\n\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<QuireKitChatMessageProps>(), { align: 'start', variant: 'plain', showHeader: false, state: 'complete', actionsVisibility: 'auto', latest: true });\nconst slots = defineSlots<QuireKitChatMessageSlots>();\nconst emit = defineEmits<{\n /** Business action request; no business execution is performed. */\n action: [details: QuireKitChatActionDetails];\n /** Attachment business intent with message, part and resource identities. */\n attachmentAction: [details: QuireKitChatAttachmentActionDetails];\n /** Navigation request from a source part. */\n sourceNavigate: [details: QuireKitChatSourceNavigateDetails];\n /** Approval intent with stable Part ownership. */\n confirmationDecision: [details: QuireKitChatConfirmationDecisionDetails];\n /** Question draft update with stable Part ownership. */\n questionDraftChange: [details: QuireKitChatQuestionDraftDetails];\n /** Answer-surface open intent with stable Part ownership. */\n questionOpen: [details: QuireKitChatQuestionOpenPartDetails];\n /** Question submit intent with stable Part ownership. */\n questionSubmit: [details: QuireKitChatQuestionSubmitPartDetails];\n /** Requests a controlled branch change. */\n branchChange: [details: QuireKitChatBranchChangeDetails];\n /** Clipboard write completed. */\n copy: [];\n /** Clipboard write failed. */\n copyError: [details: QuireKitClipboardErrorDetails];\n}>();\nconst root = shallowRef<HTMLElement | null>(null);\nconst text = useQuireKitMessages('chat');\nconst identity = computed(() => JSON.stringify([props.messageId, props.branch?.selectedId]));\nconst status = computed(() => props.statusText ?? (props.state === 'complete' ? '' : text.value.status[props.state]));\nconst active = computed(() => props.state === 'pending' || props.state === 'streaming');\nconst hasActions = computed(() => !!slots.actions || (!active.value && props.copyText !== undefined) || props.actions?.some(action => action.when === 'always' || (action.when === 'active' ? active.value : !active.value)));\nconst hasFooter = computed(() => hasActions.value || props.meta || (props.branch?.ids.length ?? 0) > 1);\n/** Reveal the whole footer together, preserving emergency actions and its layout slot.\n * @returns Whether this message footer waits for pointer or keyboard focus.\n */\nconst footerReveal = computed(() => props.state !== 'error' && !props.actions?.some(action =>\n action.when === 'always' || (action.when === 'active' && active.value)) &&\n (props.actionsVisibility === 'hover' || (props.actionsVisibility === 'auto' && !props.latest)));\nconst announcement = ref('');\n// Historical initial content is not announced. Only an existing message's state transitions are.\nwatch(() => [props.state, props.statusText], () => { announcement.value = status.value; });\nwatch(identity, () => { announcement.value = ''; });\n\n</script>\n\n<template>\n <LocaleScope v-slot=\"{ dir }\">\n <article ref=\"root\" v-chat-focus-recovery v-bind=\"$attrs\" class=\"qk-chat-message\" :dir=\"dir\" :data-align=\"align\" :data-variant=\"variant\" :data-state=\"state\"\n :data-message-id=\"messageId\" :data-actions-visibility=\"actionsVisibility\" :aria-label=\"author\" tabindex=\"-1\">\n <div class=\"qk-chat-message__body\">\n <div v-if=\"showHeader\" class=\"qk-chat-message__header\">\n <span v-if=\"$slots.avatar\" class=\"qk-chat-message__avatar\"><slot name=\"avatar\" /></span>\n <slot name=\"header\"><span>{{ author }}</span></slot>\n </div>\n <div v-if=\"$slots.default || parts?.length\" :key=\"identity\" class=\"qk-chat-message__content\" :data-mode=\"$slots.default ? 'slot' : 'parts'\">\n <slot>\n <QuireChatMessagePart v-for=\"part in parts\" :key=\"part.id\" :part=\"part\" :message-id=\"messageId\" @action=\"emit('action', $event)\" @attachment-action=\"emit('attachmentAction', $event)\" @source-navigate=\"emit('sourceNavigate', $event)\" @confirmation-decision=\"emit('confirmationDecision', $event)\" @question-draft-change=\"emit('questionDraftChange', $event)\" @question-open=\"emit('questionOpen', $event)\" @question-submit=\"emit('questionSubmit', $event)\">\n <template v-if=\"$slots.text\" #text=\"context\"><slot name=\"text\" v-bind=\"context\" /></template>\n <template v-if=\"$slots.reasoning\" #reasoning=\"context\"><slot name=\"reasoning\" v-bind=\"context\" /></template>\n <template v-if=\"$slots['tool-input']\" #tool-input=\"context\"><slot name=\"tool-input\" v-bind=\"context\" /></template>\n <template v-if=\"$slots['tool-output']\" #tool-output=\"context\"><slot name=\"tool-output\" v-bind=\"context\" /></template>\n <template v-if=\"$slots.custom\" #custom=\"context\"><slot name=\"custom\" v-bind=\"context\" /></template>\n </QuireChatMessagePart>\n </slot>\n </div>\n <div v-if=\"$slots.status || status\" class=\"qk-chat-message__status\" :data-state=\"state\">\n <slot name=\"status\">\n <QuireShimmer v-if=\"active\" :text=\"status\" />\n <template v-else><QuireIcon :name=\"stateIcon(state)\" :size=\"16\" /><span>{{ status }}</span></template>\n </slot>\n </div>\n <div v-if=\"hasFooter\" class=\"qk-chat-message__footer\" :data-reveal=\"footerReveal || undefined\">\n <ChatBranch v-if=\"branch && branch.ids.length > 1\" :branch=\"branch\" :message-id=\"messageId\" :disabled=\"active\" @change=\"emit('branchChange', $event)\" />\n <div v-if=\"hasActions\" class=\"qk-chat-message__actions\">\n <slot name=\"actions\" :latest=\"latest\" :visibility=\"actionsVisibility\"><ChatActions :key=\"identity\" :message-id=\"messageId\" :actions=\"actions\" :copy-text=\"copyText\" :state=\"state\" :latest=\"latest\" :visibility=\"actionsVisibility\"\n @action=\"emit('action', $event)\" @copy=\"emit('copy')\" @copy-error=\"emit('copyError', $event)\" /></slot>\n </div>\n <span v-if=\"meta\" class=\"qk-chat-message__meta\" dir=\"auto\">{{ meta }}</span>\n </div>\n </div>\n <span class=\"sr-only\" role=\"status\" aria-live=\"polite\">{{ announcement }}</span>\n </article>\n </LocaleScope>\n</template>\n","<script setup lang=\"ts\">\nimport type { QuireKitChatProcessProps } from '../../../components/chat';\nimport Disclosure from '../shared/disclosure.vue';\nconst props = withDefaults(defineProps<QuireKitChatProcessProps>(), { open: undefined, defaultOpen: false, state: 'complete' });\ndefineEmits<{ /** Requests controlled expansion without mutating process data. */ 'update:open': [value: boolean] }>();\ndefineSlots<{ /** Stable ordered process children, supplied by the consumer. */ default?: () => unknown; /** Necessary recovery or confirmation actions, always outside the fold. */ actions?: () => unknown }>();\n</script>\n\n<template>\n <Disclosure content-layout=\"steps\" :process-id=\"processId\" :title=\"title\" :state=\"state\" :open=\"open\" :default-open=\"defaultOpen\"\n v-bind=\"{ ...(props.icon === undefined ? {} : { icon: props.icon }), ...(props.summary === undefined ? {} : { summary: props.summary }), ...(props.meta === undefined ? {} : { meta: props.meta }), ...(props.stateLabel === undefined ? {} : { stateLabel: props.stateLabel }) }\"\n @update:open=\"$emit('update:open', $event)\">\n <slot />\n <template v-if=\"$slots.actions\" #actions><slot name=\"actions\" /></template>\n </Disclosure>\n</template>\n","import type { ReadingAnchor } from './types';\n\n/** Capture the first visible item plus adjacent fallbacks with logarithmic DOM reads.\n * @param keys - Ordered stable identities.\n * @param nodes - Mounted item wrappers in the same order.\n * @param viewport - Native scroll viewport.\n * @returns Up to three key/offset anchors, preferred visible item first.\n */\nexport function captureAnchors(keys: readonly string[], nodes: ReadonlyMap<string, HTMLElement>, viewport: HTMLElement): ReadingAnchor[] {\n const top = viewport.getBoundingClientRect().top;\n let low = 0; let high = keys.length;\n // Item wrappers remain in DOM order; find the first bottom below viewport top.\n while (low < high) {\n const middle = (low + high) >>> 1;\n const node = nodes.get(keys[middle]!);\n if (node && node.getBoundingClientRect().bottom <= top) low = middle + 1;\n else high = middle;\n }\n return [low, low + 1, low - 1].flatMap(index => {\n const key = keys[index]; const node = key === undefined ? undefined : nodes.get(key);\n return key !== undefined && node ? [{ key, offset: node.getBoundingClientRect().top - top }] : [];\n });\n}\n\n/** Restore a surviving item, including when prepend or media changed earlier heights.\n * @param anchors - Previous visible item and neighboring fallbacks.\n * @param nodes - Current mounted wrappers.\n * @param viewport - Native scroll viewport; browser clamps writes to the available range.\n */\nexport function restoreAnchor(anchors: readonly ReadingAnchor[], nodes: ReadonlyMap<string, HTMLElement>, viewport: HTMLElement): void {\n const anchor = anchors.find(item => nodes.has(item.key));\n const node = anchor && nodes.get(anchor.key);\n if (!anchor || !node) return;\n const delta = node.getBoundingClientRect().top - viewport.getBoundingClientRect().top - anchor.offset;\n if (Math.abs(delta) > 0.5) viewport.scrollTop += delta;\n}\n","import { onBeforeUnmount, onMounted, ref, watch } from 'vue';\nimport { captureAnchors, restoreAnchor } from './anchors';\nimport type { MessageListScrollController, MessageListScrollOptions, ReadingAnchor } from './types';\n\n/** Own conversation follow/reading policy without replacing Ark's scroll interaction.\n * @param options - Viewport, content and host identity sources.\n * @returns Reactive following state, DOM registry and explicit positioning commands.\n */\nexport function useMessageListScroll(options: MessageListScrollOptions): MessageListScrollController {\n const following = ref(true);\n const nodes = new Map<string, HTMLElement>();\n let anchors: ReadingAnchor[] = [];\n let observer: ResizeObserver | undefined;\n let frame: number | undefined;\n let view: Window | null = null;\n let writtenTop: number | undefined;\n\n /** Report only policy transitions.\n * @param value - Next follow policy.\n */\n function setFollowing(value: boolean): void {\n if (following.value === value) return;\n following.value = value; options.onFollowingChange(value);\n }\n\n /** Preserve identity and offsets after a deliberate viewport movement. */\n function capture(): void {\n const viewport = options.viewport();\n if (viewport) anchors = captureAnchors(options.keys(), nodes, viewport);\n }\n\n /** Process real user/native scrolling without interpreting our own correction as intent. */\n function onScroll(): void {\n const viewport = options.viewport();\n if (!viewport) return;\n const corrected = writtenTop !== undefined && Math.abs(viewport.scrollTop - writtenTop) <= 1;\n writtenTop = undefined;\n // Reconcile already captured this correction. A delayed scroll event may arrive after\n // another image resize; recapturing here would accept its displacement as user intent.\n if (corrected) return;\n setFollowing(viewport.scrollHeight - viewport.clientHeight - viewport.scrollTop <= 24);\n capture();\n }\n\n /** Apply one geometry correction per frame, then refresh the surviving anchor. */\n function reconcile(): void {\n frame = undefined;\n const viewport = options.viewport();\n if (!viewport) return;\n const before = viewport.scrollTop;\n if (following.value) viewport.scrollTop = viewport.scrollHeight;\n else restoreAnchor(anchors, nodes, viewport);\n if (viewport.scrollTop !== before) writtenTop = viewport.scrollTop;\n capture();\n }\n\n /** Coalesce content, viewport and key updates into the same layout pass. */\n function schedule(): void {\n if (frame === undefined && view) frame = view.requestAnimationFrame(reconcile);\n }\n\n /** Jump explicitly, restoring follow without moving keyboard focus. */\n function scrollToLatest(): void {\n setFollowing(true); anchors = [];\n if (frame !== undefined) { view?.cancelAnimationFrame(frame); frame = undefined; }\n reconcile();\n }\n\n /** Locate a host-owned message and suspend automatic following.\n * @param itemKey - Stable identity in the current session.\n * @returns Whether that key is currently mounted.\n */\n function scrollToMessage(itemKey: string): boolean {\n const viewport = options.viewport(); const node = nodes.get(itemKey);\n if (!viewport || !node) return false;\n setFollowing(false);\n viewport.scrollTop += node.getBoundingClientRect().top - viewport.getBoundingClientRect().top;\n writtenTop = viewport.scrollTop;\n capture(); return true;\n }\n\n onMounted(() => {\n const viewport = options.viewport();\n view = viewport?.ownerDocument.defaultView ?? null;\n observer = new ResizeObserver(schedule);\n if (viewport) observer.observe(viewport);\n if (options.content.value) observer.observe(options.content.value);\n schedule();\n });\n watch(() => [...options.keys()], keys => {\n // Empty history has no reading position; the next first message should follow.\n if (keys.length === 0) { anchors = []; setFollowing(true); }\n schedule();\n }, { flush: 'post' });\n watch(options.session, () => { anchors = []; writtenTop = undefined; setFollowing(true); schedule(); }, { flush: 'post' });\n onBeforeUnmount(() => {\n observer?.disconnect();\n if (frame !== undefined) view?.cancelAnimationFrame(frame);\n nodes.clear();\n });\n return { following, nodes, onScroll, scrollToLatest, scrollToMessage };\n}\n","<script setup lang=\"ts\">\nimport { computed, ref, type ComponentPublicInstance } from 'vue';\nimport QuireScrollArea from '../../scroll-area/scroll-area.vue';\nimport QuireButton from '../../button/button.vue';\nimport QuireEmptyState from '../../empty-state/empty-state.vue';\nimport QuireChatMessage from '../message/message.vue';\nimport { useMessageListScroll } from './use-scroll';\nimport { useQuireKitMessages } from '../../locale-provider/context';\nimport type { QuireKitChatMessageListProps, QuireKitChatMessageListSlots, QuireKitChatMessageListHandle } from '../../../components/chat';\nimport type { QuireKitChatActionDetails, QuireKitChatAttachmentActionDetails, QuireKitChatBranchChangeDetails, QuireKitChatConfirmationDecisionDetails, QuireKitChatMessageListCopyDetails, QuireKitChatMessageListCopyErrorDetails, QuireKitChatQuestionDraftDetails, QuireKitChatQuestionOpenPartDetails, QuireKitChatQuestionSubmitPartDetails, QuireKitChatSourceNavigateDetails } from '../../../components/chat';\n\nconst props = withDefaults(defineProps<QuireKitChatMessageListProps>(), {\n conversationId: 'default', height: '24rem', hasOlder: false, loadingOlder: false, actionsVisibility: 'auto'\n});\nconst emit = defineEmits<{\n /** 显式请求更早消息;分页与失败恢复由宿主处理。 */\n loadOlder: [];\n /** 跟随最新或阅读历史的策略变化。 */\n followingChange: [following: boolean];\n /** 默认 Message 或 Part 的业务操作意图,包含 messageId。 */\n action: [details: QuireKitChatActionDetails];\n /** 附件意图携带消息、Part 和附件三层身份。 */\n attachmentAction: [details: QuireKitChatAttachmentActionDetails];\n /** Navigation request with message, part and source identities. */\n sourceNavigate: [details: QuireKitChatSourceNavigateDetails];\n /** Approval intent scoped to the default message renderer. */\n confirmationDecision: [details: QuireKitChatConfirmationDecisionDetails];\n /** Question draft update scoped to the default message renderer. */\n questionDraftChange: [details: QuireKitChatQuestionDraftDetails];\n /** Answer-surface open intent scoped to the default message renderer. */\n questionOpen: [details: QuireKitChatQuestionOpenPartDetails];\n /** Question submit intent scoped to the default message renderer. */\n questionSubmit: [details: QuireKitChatQuestionSubmitPartDetails];\n /** 默认 Message 的受控分支切换意图。 */\n branchChange: [details: QuireKitChatBranchChangeDetails];\n /** 默认 Message 已完成公共 Clipboard 写入。 */\n copy: [details: QuireKitChatMessageListCopyDetails];\n /** 默认 Message 的 Clipboard 写入失败。 */\n copyError: [details: QuireKitChatMessageListCopyErrorDetails];\n}>();\ndefineSlots<QuireKitChatMessageListSlots>();\nconst text = useQuireKitMessages('chat');\nconst area = ref<InstanceType<typeof QuireScrollArea>>();\nconst content = ref<HTMLElement>();\nconst keys = computed(() => props.messages.map(message => message.messageId));\nconst { following, nodes, onScroll, scrollToLatest, scrollToMessage } = useMessageListScroll({\n viewport: () => area.value?.getViewportElement() ?? null, content,\n keys: () => keys.value, session: () => props.conversationId,\n onFollowingChange: value => emit('followingChange', value)\n});\n\n/** Register real wrappers without inspecting private ScrollArea selectors.\n * @param key - Host identity.\n * @param element - Vue template-ref value.\n */\nfunction track(key: string, element: Element | ComponentPublicInstance | null): void {\n if (element instanceof HTMLElement) nodes.set(key, element);\n else nodes.delete(key);\n}\n\n/** Keep keyboard focus in the conversation after its jump button disappears. */\nfunction jumpToLatest(): void {\n scrollToLatest(); area.value?.getViewportElement()?.focus({ preventScroll: true });\n}\n\n/** Emit at most one request while the host marks the history action pending. */\nfunction loadOlder(): void {\n if (props.hasOlder && !props.loadingOlder) emit('loadOlder');\n}\n\ndefineExpose<QuireKitChatMessageListHandle>({ scrollToLatest, scrollToMessage });\n</script>\n\n<template>\n <div class=\"qk-chat-message-list\" :style=\"{ height }\" :data-following=\"following\">\n <QuireScrollArea ref=\"area\" class=\"qk-chat-message-list__area\" :label=\"label ?? text.list.label\"\n viewport-class=\"qk-chat-message-list__viewport\" @scroll=\"onScroll\">\n <div ref=\"content\" class=\"qk-chat-message-list__content\">\n <div v-if=\"hasOlder\" class=\"qk-chat-message-list__history\">\n <QuireButton :busy=\"loadingOlder\" @click=\"loadOlder\">{{ text.list.loadOlder }}</QuireButton>\n </div>\n <div v-if=\"messages.length\" :key=\"conversationId\" class=\"qk-chat-message-list__list\" role=\"list\">\n <div v-for=\"(message, index) in messages\" :key=\"message.messageId\" :ref=\"element => track(message.messageId, element)\"\n class=\"qk-chat-message-list__item\" role=\"listitem\" :data-message-key=\"message.messageId\">\n <slot name=\"message\" :message=\"message\" :index=\"index\" :latest=\"message.latest ?? index === messages.length - 1\"\n :actions-visibility=\"message.actionsVisibility ?? actionsVisibility\">\n <QuireChatMessage v-bind=\"message\" :latest=\"message.latest ?? index === messages.length - 1\"\n :actions-visibility=\"message.actionsVisibility ?? actionsVisibility\"\n @action=\"emit('action', { ...$event, messageId: message.messageId })\"\n @attachment-action=\"emit('attachmentAction', { ...$event, messageId: message.messageId })\"\n @source-navigate=\"emit('sourceNavigate', { ...$event, messageId: message.messageId })\"\n @confirmation-decision=\"emit('confirmationDecision', { ...$event, messageId: message.messageId })\"\n @question-draft-change=\"emit('questionDraftChange', { ...$event, messageId: message.messageId })\"\n @question-open=\"emit('questionOpen', { ...$event, messageId: message.messageId })\"\n @question-submit=\"emit('questionSubmit', { ...$event, messageId: message.messageId })\"\n @branch-change=\"emit('branchChange', { ...$event, messageId: message.messageId })\"\n @copy=\"emit('copy', { messageId: message.messageId })\"\n @copy-error=\"emit('copyError', { ...$event, messageId: message.messageId })\">\n <template v-if=\"$slots.text\" #text=\"context\"><slot name=\"text\" v-bind=\"context\" /></template>\n <template v-if=\"$slots.reasoning\" #reasoning=\"context\"><slot name=\"reasoning\" v-bind=\"context\" /></template>\n <template v-if=\"$slots['tool-input']\" #tool-input=\"context\"><slot name=\"tool-input\" v-bind=\"context\" /></template>\n <template v-if=\"$slots['tool-output']\" #tool-output=\"context\"><slot name=\"tool-output\" v-bind=\"context\" /></template>\n <template v-if=\"$slots.custom\" #custom=\"context\"><slot name=\"custom\" v-bind=\"context\" /></template>\n </QuireChatMessage>\n </slot>\n </div>\n </div>\n <div v-else class=\"qk-chat-message-list__empty\">\n <slot name=\"empty\"><QuireEmptyState :description=\"text.list.empty\" /></slot>\n </div>\n </div>\n </QuireScrollArea>\n <div v-if=\"!following\" class=\"qk-chat-message-list__latest\">\n <QuireButton variant=\"soft\" @click=\"jumpToLatest\">{{ text.list.latest }}</QuireButton>\n </div>\n </div>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUA,MAAM,YAAY,IAAI;;;GAkCpB,OAAA,UAAA,GAAA,YAoCY,wBAnCL,MAAA,SAAA,CAAS,GAAA;IACb,MAAM,QAAA;IACP,cAAW;IACX,aAAU;IACT,cAAY,QAAA;IACZ,aAAW,QAAA,QAAQ,KAAA;IACnB,UAAU,QAAA,YAAY,QAAA;IACtB,cAAY,QAAA,OAAI,SAAY,KAAA;IAC5B,OAAK,eAAA;;;KAAmE,cAAA,QAAA,MAAK,GAAI,QAAA;KAAoC,mBAAA,QAAA;KAAc,QAAA,UAAK,YAAA;;;IAQzI,SAAA,cAkBO,CAlBP,mBAkBO,QAAA;KAjBJ,OAAK,eAAA,CAAA,mBAAA,oBAA0C,QAAA,MAAI,CAAA;KACpD,eAAY;KACZ,aAAU;QAGF,QAAA,QADR,UAAA,GAAA,mBAWM,OAXN,eAWM,CAAA,GAAA,OAAA,OAAA,OAAA,KAAA,CAFJ,mBAAiC,QAAA,EAA3B,GAAE,uBAAsB,GAAA,MAAA,EAAA,GAC9B,mBAA8C,QAAA;KAAxC,GAAE;KAAsB,SAAQ;wBAExC,WAAe,KAAA,QAAA,WAAA,CAAA,GAAA,KAAA,GAAA,KAAA,GAAA,CAAA,CAAA,GAAA,CAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ECzErB,MAAM,QAAQ;EACd,MAAM,WAAW,eAAe,4BAA4B,KAAK,CAAC;EAClE,MAAM,QAAQ,eAAe,OAAO,SAAS,MAAM,IAAI,KAAK,MAAM,OAAO,IAAI,MAAM,OAAO,EAAE;;GAI1F,OAAA,UAAA,GAAA,mBAKM,OAAA;IALD,OAAM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