@quirekit/ui 0.0.0-stage → 0.0.1-alpha.0
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.
- package/LICENSE.md +21 -0
- package/README.md +41 -2
- package/README.zh-CN.md +42 -0
- package/THIRD_PARTY_NOTICES.md +143 -0
- package/dist/catalog-AqWLE58Z.mjs +7114 -0
- package/dist/catalog-AqWLE58Z.mjs.map +1 -0
- package/dist/chat-BAee3Pg0.mjs +9092 -0
- package/dist/chat-BAee3Pg0.mjs.map +1 -0
- package/dist/chat.d.mts +3 -0
- package/dist/chat.mjs +2 -0
- package/dist/code-block-D1kd-gAB.mjs +731 -0
- package/dist/code-block-D1kd-gAB.mjs.map +1 -0
- package/dist/html-sandbox-BYIni0q6.mjs +531 -0
- package/dist/html-sandbox-BYIni0q6.mjs.map +1 -0
- package/dist/html-sandbox.d.mts +2 -0
- package/dist/html-sandbox.mjs +2 -0
- package/dist/index-DbtTJnJq.d.mts +51 -0
- package/dist/index-DbtTJnJq.d.mts.map +1 -0
- package/dist/index-OJPxl6Iz.d.mts +369 -0
- package/dist/index-OJPxl6Iz.d.mts.map +1 -0
- package/dist/index-Su5SBM61.d.mts +10070 -0
- package/dist/index-Su5SBM61.d.mts.map +1 -0
- package/dist/index.d.mts +2 -0
- package/dist/index.mjs +1053 -0
- package/dist/index.mjs.map +1 -0
- package/dist/model-CeJjdZm_.mjs +1604 -0
- package/dist/model-CeJjdZm_.mjs.map +1 -0
- package/dist/resolve-CGFbhFiM.mjs +1531 -0
- package/dist/resolve-CGFbhFiM.mjs.map +1 -0
- package/dist/style.css +24 -0
- package/dist/vue.d.mts +10667 -0
- package/dist/vue.d.mts.map +1 -0
- package/dist/vue.mjs +31552 -0
- package/dist/vue.mjs.map +1 -0
- package/package.json +72 -3
- package/src/color-palette/conversion.test.ts +23 -0
- package/src/color-palette/conversion.ts +115 -0
- package/src/color-palette/custom/elements.ts +96 -0
- package/src/color-palette/custom/index.ts +1 -0
- package/src/color-palette/custom/panel.test.ts +71 -0
- package/src/color-palette/custom/panel.ts +166 -0
- package/src/color-palette/custom/style.ts +142 -0
- package/src/color-palette/index.ts +22 -0
- package/src/color-palette/labels.ts +36 -0
- package/src/color-palette/palette.test.ts +100 -0
- package/src/color-palette/palette.ts +213 -0
- package/src/color-palette/presets.ts +10 -0
- package/src/color-palette/style.ts +133 -0
- package/src/color-palette/types.ts +115 -0
- package/src/components/accordion/index.ts +5 -0
- package/src/components/accordion/types.ts +19 -0
- package/src/components/action-menu/index.ts +2 -0
- package/src/components/action-menu/types.ts +98 -0
- package/src/components/action-sheet/groups.test.ts +26 -0
- package/src/components/action-sheet/groups.ts +20 -0
- package/src/components/action-sheet/index.ts +1 -0
- package/src/components/action-sheet/types.ts +31 -0
- package/src/components/alert/index.ts +1 -0
- package/src/components/alert/types.ts +8 -0
- package/src/components/attachment/index.ts +1 -0
- package/src/components/attachment/types.ts +60 -0
- package/src/components/avatar/index.ts +12 -0
- package/src/components/avatar/types.ts +63 -0
- package/src/components/badge/create.test.ts +21 -0
- package/src/components/badge/create.ts +34 -0
- package/src/components/badge/index.ts +3 -0
- package/src/components/badge/types.ts +43 -0
- package/src/components/badge/variables/declarations.ts +23 -0
- package/src/components/button/create.test.ts +145 -0
- package/src/components/button/create.ts +153 -0
- package/src/components/button/index.ts +8 -0
- package/src/components/button/types.ts +104 -0
- package/src/components/button/variables/declarations.ts +92 -0
- package/src/components/button/variables/index.ts +6 -0
- package/src/components/button/variables/names.ts +83 -0
- package/src/components/button/variables/references.ts +54 -0
- package/src/components/candidate-list/index.ts +1 -0
- package/src/components/candidate-list/types.ts +23 -0
- package/src/components/chat/composer/types.ts +82 -0
- package/src/components/chat/composer-input/types.ts +33 -0
- package/src/components/chat/composer-submit/types.ts +17 -0
- package/src/components/chat/confirmation/types.ts +35 -0
- package/src/components/chat/index.ts +16 -0
- package/src/components/chat/message/types.ts +72 -0
- package/src/components/chat/message-action/types.ts +9 -0
- package/src/components/chat/message-actions/types.ts +19 -0
- package/src/components/chat/message-branch/types.ts +11 -0
- package/src/components/chat/message-list/types.ts +67 -0
- package/src/components/chat/message-part/types.ts +216 -0
- package/src/components/chat/process/types.ts +27 -0
- package/src/components/chat/question/types.ts +98 -0
- package/src/components/chat/reasoning/types.ts +7 -0
- package/src/components/chat/rich-input/types.ts +99 -0
- package/src/components/chat/shared/types.ts +34 -0
- package/src/components/chat/tool/types.ts +7 -0
- package/src/components/checkbox/index.ts +1 -0
- package/src/components/checkbox/types.ts +7 -0
- package/src/components/checkbox-group/create.ts +10 -0
- package/src/components/checkbox-group/index.ts +3 -0
- package/src/components/checkbox-group/types.ts +63 -0
- package/src/components/checkbox-group/variables/declarations.ts +9 -0
- package/src/components/choice-picker/index.ts +1 -0
- package/src/components/choice-picker/types.ts +104 -0
- package/src/components/clipboard/index.ts +2 -0
- package/src/components/clipboard/types.ts +38 -0
- package/src/components/collapsible/index.ts +1 -0
- package/src/components/collapsible/types.ts +8 -0
- package/src/components/color-picker/color.test.ts +19 -0
- package/src/components/color-picker/color.ts +35 -0
- package/src/components/color-picker/index.ts +13 -0
- package/src/components/color-picker/types.ts +82 -0
- package/src/components/combobox/index.ts +12 -0
- package/src/components/combobox/types.ts +125 -0
- package/src/components/comment-rail/index.ts +2 -0
- package/src/components/comment-rail/layout.test.ts +76 -0
- package/src/components/comment-rail/layout.ts +37 -0
- package/src/components/comment-rail/types.ts +27 -0
- package/src/components/control/index.ts +3 -0
- package/src/components/control/modality.test.ts +30 -0
- package/src/components/control/modality.ts +33 -0
- package/src/components/control/sizes.ts +10 -0
- package/src/components/control/types.ts +5 -0
- package/src/components/dialog/index.ts +1 -0
- package/src/components/dialog/types.ts +5 -0
- package/src/components/diff-viewer/index.ts +1 -0
- package/src/components/diff-viewer/types.ts +20 -0
- package/src/components/drawer/index.ts +1 -0
- package/src/components/drawer/types.ts +67 -0
- package/src/components/editable/index.ts +1 -0
- package/src/components/editable/types.ts +31 -0
- package/src/components/emoji-picker/catalog.ts +61 -0
- package/src/components/emoji-picker/index.ts +3 -0
- package/src/components/emoji-picker/search.test.ts +43 -0
- package/src/components/emoji-picker/search.ts +20 -0
- package/src/components/emoji-picker/sections.test.ts +30 -0
- package/src/components/emoji-picker/sections.ts +40 -0
- package/src/components/emoji-picker/types.ts +34 -0
- package/src/components/empty-state/index.ts +6 -0
- package/src/components/empty-state/types.ts +16 -0
- package/src/components/field/index.ts +5 -0
- package/src/components/field/types.ts +41 -0
- package/src/components/fieldset/index.ts +1 -0
- package/src/components/fieldset/types.ts +15 -0
- package/src/components/file-icon/index.ts +2 -0
- package/src/components/file-icon/resolve.test.ts +17 -0
- package/src/components/file-icon/resolve.ts +42 -0
- package/src/components/file-icon/types.ts +24 -0
- package/src/components/file-upload/index.ts +2 -0
- package/src/components/file-upload/messages.ts +11 -0
- package/src/components/file-upload/types.ts +96 -0
- package/src/components/icon/catalog.test.ts +195 -0
- package/src/components/icon/catalog.ts +80 -0
- package/src/components/icon/custom/formatting.ts +24 -0
- package/src/components/icon/custom/indicators.ts +5 -0
- package/src/components/icon/custom/insert.ts +20 -0
- package/src/components/icon/custom/table.ts +29 -0
- package/src/components/icon/custom.ts +12 -0
- package/src/components/icon/define.test.ts +80 -0
- package/src/components/icon/define.ts +113 -0
- package/src/components/icon/index.ts +25 -0
- package/src/components/icon/labels.test.ts +44 -0
- package/src/components/icon/labels.ts +62 -0
- package/src/components/icon/lucide.ts +359 -0
- package/src/components/icon/metadata.ts +1784 -0
- package/src/components/icon/registry.test.ts +36 -0
- package/src/components/icon/registry.ts +64 -0
- package/src/components/icon/review.ts +19 -0
- package/src/components/icon/types.ts +138 -0
- package/src/components/index.ts +80 -0
- package/src/components/input/index.ts +1 -0
- package/src/components/input/types.ts +58 -0
- package/src/components/input-number/index.ts +8 -0
- package/src/components/input-number/types.ts +98 -0
- package/src/components/input-number-unit/index.ts +1 -0
- package/src/components/input-number-unit/types.ts +34 -0
- package/src/components/inspector/index.ts +1 -0
- package/src/components/inspector/types.ts +14 -0
- package/src/components/json-viewer/index.ts +1 -0
- package/src/components/json-viewer/types.ts +24 -0
- package/src/components/kbd/create.test.ts +16 -0
- package/src/components/kbd/create.ts +37 -0
- package/src/components/kbd/index.ts +3 -0
- package/src/components/kbd/types.ts +35 -0
- package/src/components/kbd/variables/declarations.ts +20 -0
- package/src/components/listbox/index.ts +9 -0
- package/src/components/listbox/types.ts +57 -0
- package/src/components/media-player/index.ts +1 -0
- package/src/components/media-player/types.ts +40 -0
- package/src/components/menu/context/index.ts +5 -0
- package/src/components/menu/context/types.ts +48 -0
- package/src/components/menu/create.test.ts +52 -0
- package/src/components/menu/create.ts +60 -0
- package/src/components/menu/index.ts +19 -0
- package/src/components/menu/types.ts +152 -0
- package/src/components/menu/variables/declarations.ts +48 -0
- package/src/components/menu/variables/index.ts +6 -0
- package/src/components/menu/variables/names.ts +59 -0
- package/src/components/menu/variables/references.ts +42 -0
- package/src/components/pagination/index.ts +1 -0
- package/src/components/pagination/types.ts +42 -0
- package/src/components/popover/create.test.ts +60 -0
- package/src/components/popover/create.ts +45 -0
- package/src/components/popover/index.ts +9 -0
- package/src/components/popover/types.ts +87 -0
- package/src/components/popover/variables/declarations.ts +45 -0
- package/src/components/popover/variables/index.ts +6 -0
- package/src/components/popover/variables/names.ts +42 -0
- package/src/components/popover/variables/references.ts +55 -0
- package/src/components/preset-gallery/geometry.test.ts +19 -0
- package/src/components/preset-gallery/geometry.ts +27 -0
- package/src/components/preset-gallery/index.ts +1 -0
- package/src/components/preset-gallery/types.ts +25 -0
- package/src/components/preset-picker/index.ts +1 -0
- package/src/components/preset-picker/types.ts +52 -0
- package/src/components/progress/index.ts +1 -0
- package/src/components/progress/normalize.ts +25 -0
- package/src/components/progress/types.ts +26 -0
- package/src/components/radio-group/index.ts +5 -0
- package/src/components/radio-group/types.ts +19 -0
- package/src/components/scroll-area/index.ts +7 -0
- package/src/components/scroll-area/types.ts +19 -0
- package/src/components/segmented/create.test.ts +71 -0
- package/src/components/segmented/create.ts +99 -0
- package/src/components/segmented/index.ts +14 -0
- package/src/components/segmented/types.ts +74 -0
- package/src/components/segmented/variables/declarations.ts +64 -0
- package/src/components/segmented/variables/index.ts +6 -0
- package/src/components/segmented/variables/names.ts +54 -0
- package/src/components/segmented/variables/references.ts +52 -0
- package/src/components/select/index.ts +7 -0
- package/src/components/select/types.ts +26 -0
- package/src/components/selection-gesture/index.ts +5 -0
- package/src/components/selection-gesture/mount.ts +128 -0
- package/src/components/selection-gesture/session/controller.test.ts +77 -0
- package/src/components/selection-gesture/session/controller.ts +105 -0
- package/src/components/selection-gesture/session/types.ts +30 -0
- package/src/components/selection-gesture/types.ts +65 -0
- package/src/components/selection-handles/dom/handles.test.ts +53 -0
- package/src/components/selection-handles/dom/handles.ts +73 -0
- package/src/components/selection-handles/dom/types.ts +23 -0
- package/src/components/selection-handles/drag/controller.test.ts +180 -0
- package/src/components/selection-handles/drag/controller.ts +84 -0
- package/src/components/selection-handles/drag/hold.ts +55 -0
- package/src/components/selection-handles/drag/types.ts +64 -0
- package/src/components/selection-handles/index.ts +7 -0
- package/src/components/selection-handles/mount.test.ts +105 -0
- package/src/components/selection-handles/mount.ts +183 -0
- package/src/components/selection-handles/types.ts +120 -0
- package/src/components/sheet/index.ts +1 -0
- package/src/components/sheet/types.ts +5 -0
- package/src/components/shimmer/index.ts +1 -0
- package/src/components/shimmer/types.ts +9 -0
- package/src/components/skeleton/create.test.ts +13 -0
- package/src/components/skeleton/create.ts +10 -0
- package/src/components/skeleton/index.ts +3 -0
- package/src/components/skeleton/types.ts +17 -0
- package/src/components/skeleton/variables/declarations.ts +9 -0
- package/src/components/slider/index.ts +1 -0
- package/src/components/slider/types.ts +5 -0
- package/src/components/sources/index.ts +1 -0
- package/src/components/sources/types.ts +45 -0
- package/src/components/splitter/index.ts +12 -0
- package/src/components/splitter/types.ts +90 -0
- package/src/components/switch/index.ts +1 -0
- package/src/components/switch/types.ts +2 -0
- package/src/components/table/create.test.ts +14 -0
- package/src/components/table/create.ts +21 -0
- package/src/components/table/index.ts +3 -0
- package/src/components/table/types.ts +128 -0
- package/src/components/table/variables/declarations.ts +20 -0
- package/src/components/table-size-picker/index.ts +2 -0
- package/src/components/table-size-picker/model.ts +112 -0
- package/src/components/table-size-picker/types.ts +39 -0
- package/src/components/tabs/index.ts +1 -0
- package/src/components/tabs/types.ts +23 -0
- package/src/components/tag/create.test.ts +22 -0
- package/src/components/tag/create.ts +29 -0
- package/src/components/tag/index.ts +3 -0
- package/src/components/tag/types.ts +35 -0
- package/src/components/tag/variables/declarations.ts +19 -0
- package/src/components/tags-input/index.ts +1 -0
- package/src/components/tags-input/types.ts +42 -0
- package/src/components/task/index.ts +1 -0
- package/src/components/task/types.ts +47 -0
- package/src/components/task-panel/index.ts +1 -0
- package/src/components/task-panel/types.ts +21 -0
- package/src/components/terminal-output/index.ts +1 -0
- package/src/components/terminal-output/types.ts +30 -0
- package/src/components/textarea/index.ts +1 -0
- package/src/components/textarea/types.ts +17 -0
- package/src/components/toast/index.ts +6 -0
- package/src/components/toast/types.ts +22 -0
- package/src/components/toggle-group/create.ts +10 -0
- package/src/components/toggle-group/index.ts +3 -0
- package/src/components/toggle-group/types.ts +54 -0
- package/src/components/toggle-group/variables/declarations.ts +9 -0
- package/src/components/toolbar/collapse.test.ts +17 -0
- package/src/components/toolbar/collapse.ts +31 -0
- package/src/components/toolbar/create.test.ts +95 -0
- package/src/components/toolbar/create.ts +45 -0
- package/src/components/toolbar/index.ts +39 -0
- package/src/components/toolbar/navigation.ts +78 -0
- package/src/components/toolbar/span.test.ts +26 -0
- package/src/components/toolbar/span.ts +41 -0
- package/src/components/toolbar/types.ts +292 -0
- package/src/components/toolbar/variables/declarations.ts +41 -0
- package/src/components/toolbar/variables/index.ts +6 -0
- package/src/components/toolbar/variables/names.ts +44 -0
- package/src/components/toolbar/variables/references.ts +36 -0
- package/src/components/tooltip/create.test.ts +111 -0
- package/src/components/tooltip/create.ts +76 -0
- package/src/components/tooltip/index.ts +13 -0
- package/src/components/tooltip/types.ts +74 -0
- package/src/components/tooltip/variables/declarations.ts +38 -0
- package/src/components/tooltip/variables/index.ts +6 -0
- package/src/components/tooltip/variables/names.ts +33 -0
- package/src/components/tooltip/variables/references.ts +46 -0
- package/src/components/tree-view/index.ts +10 -0
- package/src/components/tree-view/types.ts +73 -0
- package/src/components/typography/index.ts +1 -0
- package/src/components/typography/types.ts +23 -0
- package/src/index.ts +29 -0
- package/src/locale/components/action-menu.ts +33 -0
- package/src/locale/components/action-sheet.ts +15 -0
- package/src/locale/components/alert.ts +11 -0
- package/src/locale/components/anchor.ts +11 -0
- package/src/locale/components/attachment.ts +45 -0
- package/src/locale/components/avatar.ts +39 -0
- package/src/locale/components/badge.ts +11 -0
- package/src/locale/components/breadcrumb.ts +15 -0
- package/src/locale/components/calendar.ts +47 -0
- package/src/locale/components/carousel.ts +35 -0
- package/src/locale/components/cascader.ts +11 -0
- package/src/locale/components/chat.ts +241 -0
- package/src/locale/components/choice-picker.ts +45 -0
- package/src/locale/components/clipboard.ts +40 -0
- package/src/locale/components/code-block.ts +17 -0
- package/src/locale/components/color-picker.ts +87 -0
- package/src/locale/components/combobox.ts +27 -0
- package/src/locale/components/command-palette.ts +29 -0
- package/src/locale/components/comment.ts +115 -0
- package/src/locale/components/date-input.ts +11 -0
- package/src/locale/components/date-picker.ts +11 -0
- package/src/locale/components/date-range-picker.ts +35 -0
- package/src/locale/components/date-time-picker.ts +43 -0
- package/src/locale/components/date-time-range-picker.ts +47 -0
- package/src/locale/components/dialog.ts +11 -0
- package/src/locale/components/diff-viewer.ts +68 -0
- package/src/locale/components/drawer.ts +11 -0
- package/src/locale/components/editable.ts +31 -0
- package/src/locale/components/emoji-picker.ts +124 -0
- package/src/locale/components/field.ts +23 -0
- package/src/locale/components/fieldset.ts +15 -0
- package/src/locale/components/file-upload.ts +64 -0
- package/src/locale/components/form-field.ts +19 -0
- package/src/locale/components/form.ts +15 -0
- package/src/locale/components/hierarchy-picker.ts +33 -0
- package/src/locale/components/html-sandbox.ts +57 -0
- package/src/locale/components/icon-catalog/en.ts +457 -0
- package/src/locale/components/icon-catalog/zh-hans.ts +457 -0
- package/src/locale/components/icon-catalog.ts +19 -0
- package/src/locale/components/image-cropper.ts +51 -0
- package/src/locale/components/image-preview.ts +83 -0
- package/src/locale/components/image.ts +31 -0
- package/src/locale/components/input-number.ts +27 -0
- package/src/locale/components/input.ts +33 -0
- package/src/locale/components/inspector.ts +19 -0
- package/src/locale/components/json-viewer.ts +62 -0
- package/src/locale/components/listbox.ts +11 -0
- package/src/locale/components/media-player.ts +30 -0
- package/src/locale/components/navigation-menu.ts +11 -0
- package/src/locale/components/pagination.ts +47 -0
- package/src/locale/components/picker.ts +95 -0
- package/src/locale/components/pin-input.ts +19 -0
- package/src/locale/components/popconfirm.ts +15 -0
- package/src/locale/components/popover.ts +11 -0
- package/src/locale/components/preset-gallery.ts +11 -0
- package/src/locale/components/preset-picker.ts +37 -0
- package/src/locale/components/progress.ts +11 -0
- package/src/locale/components/prose.ts +29 -0
- package/src/locale/components/qr-code.ts +27 -0
- package/src/locale/components/rating.ts +28 -0
- package/src/locale/components/select.ts +11 -0
- package/src/locale/components/selection-handles.ts +15 -0
- package/src/locale/components/sources.ts +35 -0
- package/src/locale/components/splitter.ts +11 -0
- package/src/locale/components/statistic.ts +13 -0
- package/src/locale/components/steps.ts +15 -0
- package/src/locale/components/table.ts +27 -0
- package/src/locale/components/tag.ts +11 -0
- package/src/locale/components/tags-input.ts +76 -0
- package/src/locale/components/terminal-output.ts +45 -0
- package/src/locale/components/time-input.ts +11 -0
- package/src/locale/components/time-picker.ts +23 -0
- package/src/locale/components/time-range-picker.ts +47 -0
- package/src/locale/components/timeline.ts +32 -0
- package/src/locale/components/toast.ts +11 -0
- package/src/locale/components/toolbar.ts +15 -0
- package/src/locale/components/transfer.ts +44 -0
- package/src/locale/components/tree-select.ts +11 -0
- package/src/locale/index.ts +4 -0
- package/src/locale/packs/en.ts +160 -0
- package/src/locale/packs/zh-cn.ts +160 -0
- package/src/locale/resolve.test.ts +28 -0
- package/src/locale/resolve.ts +52 -0
- package/src/locale/types.ts +253 -0
- package/src/selection-geometry/bands.test.ts +40 -0
- package/src/selection-geometry/bands.ts +43 -0
- package/src/selection-geometry/index.ts +2 -0
- package/src/selection-geometry/types.ts +35 -0
- package/src/styles/index.ts +1 -0
- package/src/styles/theme.test.ts +58 -0
- package/src/styles/theme.ts +48 -0
- package/src/theme/create.ts +218 -0
- package/src/theme/defaults.ts +7 -0
- package/src/theme/feedback.test.ts +79 -0
- package/src/theme/feedback.ts +90 -0
- package/src/theme/index.ts +9 -0
- package/src/theme/palette.test.ts +183 -0
- package/src/theme/text/create.test.ts +80 -0
- package/src/theme/text/create.ts +26 -0
- package/src/theme/text/index.ts +1 -0
- package/src/theme/theme.test.ts +343 -0
- package/src/theme/types.ts +330 -0
- package/src/theme/typography.test.ts +14 -0
- package/src/theme/variables/declarations.ts +71 -0
- package/src/theme/variables/index.ts +7 -0
- package/src/theme/variables/names.ts +192 -0
- package/src/theme/variables/references.ts +163 -0
- package/src/tokens/color/alpha.ts +79 -0
- package/src/tokens/color/conversion/channels.ts +35 -0
- package/src/tokens/color/conversion/contrast.ts +27 -0
- package/src/tokens/color/conversion/hex.ts +77 -0
- package/src/tokens/color/conversion/index.ts +5 -0
- package/src/tokens/color/conversion/oklch.ts +107 -0
- package/src/tokens/color/conversion/types.ts +19 -0
- package/src/tokens/color/generate.ts +202 -0
- package/src/tokens/color/index.ts +22 -0
- package/src/tokens/color/neutral-palettes.ts +25 -0
- package/src/tokens/defaults.ts +125 -0
- package/src/tokens/index.ts +3 -0
- package/src/tokens/types.ts +292 -0
- package/src/vue/accordion/accordion.vue +153 -0
- package/src/vue/accordion/index.ts +1 -0
- package/src/vue/action-menu/anchor.ts +28 -0
- package/src/vue/action-menu/bottom.test.ts +112 -0
- package/src/vue/action-menu/bottom.vue +126 -0
- package/src/vue/action-menu/desktop.vue +61 -0
- package/src/vue/action-menu/directory.test.ts +34 -0
- package/src/vue/action-menu/directory.vue +45 -0
- package/src/vue/action-menu/focus.ts +37 -0
- package/src/vue/action-menu/index.ts +2 -0
- package/src/vue/action-menu/keyboard.ts +59 -0
- package/src/vue/action-menu/path.test.ts +35 -0
- package/src/vue/action-menu/path.ts +56 -0
- package/src/vue/action-menu/root.test.ts +200 -0
- package/src/vue/action-menu/root.vue +62 -0
- package/src/vue/action-menu/rows.vue +57 -0
- package/src/vue/action-menu/search.test.ts +21 -0
- package/src/vue/action-menu/search.ts +7 -0
- package/src/vue/action-menu/types.ts +62 -0
- package/src/vue/action-menu/use-action-menu.ts +163 -0
- package/src/vue/action-sheet/action-sheet.vue +141 -0
- package/src/vue/action-sheet/index.ts +1 -0
- package/src/vue/action-sheet/locale.test.ts +33 -0
- package/src/vue/alert/alert.test.ts +74 -0
- package/src/vue/alert/alert.vue +85 -0
- package/src/vue/alert/index.ts +1 -0
- package/src/vue/alert/locale.test.ts +33 -0
- package/src/vue/anchor/anchor.test.ts +18 -0
- package/src/vue/anchor/anchor.vue +26 -0
- package/src/vue/anchor/dom.ts +47 -0
- package/src/vue/anchor/index.ts +2 -0
- package/src/vue/anchor/lifecycle.test.ts +75 -0
- package/src/vue/anchor/list.vue +24 -0
- package/src/vue/anchor/locale.test.ts +31 -0
- package/src/vue/anchor/position.test.ts +30 -0
- package/src/vue/anchor/position.ts +28 -0
- package/src/vue/anchor/types.ts +49 -0
- package/src/vue/anchor/use-anchor.ts +125 -0
- package/src/vue/attachment/actions.vue +27 -0
- package/src/vue/attachment/attachment.test.ts +113 -0
- package/src/vue/attachment/attachment.vue +53 -0
- package/src/vue/attachment/attachments.vue +72 -0
- package/src/vue/attachment/index.ts +3 -0
- package/src/vue/attachment/model.test.ts +24 -0
- package/src/vue/attachment/model.ts +30 -0
- package/src/vue/avatar/avatar-group.vue +62 -0
- package/src/vue/avatar/avatar.test.ts +46 -0
- package/src/vue/avatar/avatar.vue +115 -0
- package/src/vue/avatar/index.ts +2 -0
- package/src/vue/badge/badge.vue +42 -0
- package/src/vue/badge/count.test.ts +10 -0
- package/src/vue/badge/count.ts +11 -0
- package/src/vue/badge/index.ts +1 -0
- package/src/vue/badge/locale.test.ts +31 -0
- package/src/vue/breadcrumb/breadcrumb.vue +76 -0
- package/src/vue/breadcrumb/crumb.vue +29 -0
- package/src/vue/breadcrumb/index.ts +2 -0
- package/src/vue/breadcrumb/locale.test.ts +31 -0
- package/src/vue/breadcrumb/projection.test.ts +17 -0
- package/src/vue/breadcrumb/projection.ts +15 -0
- package/src/vue/breadcrumb/types.ts +40 -0
- package/src/vue/button/button.vue +100 -0
- package/src/vue/button/icon-button.vue +82 -0
- package/src/vue/button/index.ts +2 -0
- package/src/vue/calendar/announcements.ts +13 -0
- package/src/vue/calendar/calendar.vue +88 -0
- package/src/vue/calendar/day-view.vue +33 -0
- package/src/vue/calendar/index.ts +2 -0
- package/src/vue/calendar/navigation.vue +14 -0
- package/src/vue/calendar/period-view.vue +25 -0
- package/src/vue/calendar/types.ts +53 -0
- package/src/vue/calendar/value.test.ts +16 -0
- package/src/vue/calendar/value.ts +44 -0
- package/src/vue/candidate-list/candidate-list.vue +29 -0
- package/src/vue/candidate-list/index.ts +2 -0
- package/src/vue/card/card.vue +39 -0
- package/src/vue/card/index.ts +2 -0
- package/src/vue/card/types.ts +21 -0
- package/src/vue/carousel/card-stage.test.ts +60 -0
- package/src/vue/carousel/card-stage.vue +138 -0
- package/src/vue/carousel/carousel.test.ts +95 -0
- package/src/vue/carousel/carousel.vue +142 -0
- package/src/vue/carousel/index.ts +2 -0
- package/src/vue/carousel/item.vue +34 -0
- package/src/vue/carousel/types.ts +81 -0
- package/src/vue/cascader/cascader.vue +42 -0
- package/src/vue/cascader/flyout.vue +21 -0
- package/src/vue/cascader/index.ts +2 -0
- package/src/vue/cascader/level.vue +62 -0
- package/src/vue/cascader/locale.test.ts +38 -0
- package/src/vue/cascader/panels.vue +102 -0
- package/src/vue/cascader/types.ts +11 -0
- package/src/vue/cascader/use-flyout.ts +40 -0
- package/src/vue/chat/composer/composer.test.ts +164 -0
- package/src/vue/chat/composer/composer.vue +160 -0
- package/src/vue/chat/composer-input/composer-input.test.ts +24 -0
- package/src/vue/chat/composer-input/composer-input.vue +48 -0
- package/src/vue/chat/composer-submit/composer-submit.test.ts +30 -0
- package/src/vue/chat/composer-submit/composer-submit.vue +35 -0
- package/src/vue/chat/confirmation/confirmation.test.ts +45 -0
- package/src/vue/chat/confirmation/confirmation.vue +36 -0
- package/src/vue/chat/index.ts +16 -0
- package/src/vue/chat/locale.test.ts +80 -0
- package/src/vue/chat/message/message.test.ts +83 -0
- package/src/vue/chat/message/message.vue +98 -0
- package/src/vue/chat/message-action/message-action.vue +32 -0
- package/src/vue/chat/message-actions/message-actions.test.ts +56 -0
- package/src/vue/chat/message-actions/message-actions.vue +68 -0
- package/src/vue/chat/message-branch/message-branch.vue +46 -0
- package/src/vue/chat/message-list/anchors.test.ts +25 -0
- package/src/vue/chat/message-list/anchors.ts +36 -0
- package/src/vue/chat/message-list/message-list.test.ts +111 -0
- package/src/vue/chat/message-list/message-list.vue +117 -0
- package/src/vue/chat/message-list/types.ts +34 -0
- package/src/vue/chat/message-list/use-scroll.test.ts +96 -0
- package/src/vue/chat/message-list/use-scroll.ts +102 -0
- package/src/vue/chat/message-part/message-part.test.ts +134 -0
- package/src/vue/chat/message-part/message-part.vue +83 -0
- package/src/vue/chat/process/process.test.ts +30 -0
- package/src/vue/chat/process/process.vue +16 -0
- package/src/vue/chat/question/question.test.ts +211 -0
- package/src/vue/chat/question/question.vue +182 -0
- package/src/vue/chat/reasoning/reasoning.vue +25 -0
- package/src/vue/chat/rich-input/history.ts +33 -0
- package/src/vue/chat/rich-input/model.test.ts +23 -0
- package/src/vue/chat/rich-input/model.ts +80 -0
- package/src/vue/chat/rich-input/rich-input.test.ts +140 -0
- package/src/vue/chat/rich-input/rich-input.vue +273 -0
- package/src/vue/chat/rich-input/use-candidate-position.ts +36 -0
- package/src/vue/chat/rich-input/use-candidates.ts +78 -0
- package/src/vue/chat/shared/disclosure.vue +53 -0
- package/src/vue/chat/shared/focus-recovery.ts +24 -0
- package/src/vue/chat/shared/locale-direction.vue +7 -0
- package/src/vue/chat/shared/locale-scope.vue +17 -0
- package/src/vue/chat/shared/part-actions.ts +23 -0
- package/src/vue/chat/shared/state-icon.ts +11 -0
- package/src/vue/chat/shared/types.ts +9 -0
- package/src/vue/chat/ssr.test.ts +28 -0
- package/src/vue/chat/tool/tool.vue +35 -0
- package/src/vue/checkbox/checkbox.vue +119 -0
- package/src/vue/checkbox/index.ts +1 -0
- package/src/vue/checkbox/readonly.test.ts +62 -0
- package/src/vue/checkbox-group/checkbox-group.vue +64 -0
- package/src/vue/checkbox-group/contract.test.ts +75 -0
- package/src/vue/checkbox-group/form.test.ts +24 -0
- package/src/vue/checkbox-group/index.ts +1 -0
- package/src/vue/checkbox-group/model.test.ts +12 -0
- package/src/vue/checkbox-group/model.ts +23 -0
- package/src/vue/choice-picker/content.vue +121 -0
- package/src/vue/choice-picker/index.ts +1 -0
- package/src/vue/choice-picker/locale.test.ts +38 -0
- package/src/vue/choice-picker/public-props.test.ts +30 -0
- package/src/vue/choice-picker/root.test.ts +219 -0
- package/src/vue/choice-picker/root.vue +89 -0
- package/src/vue/choice-picker/ssr.test.ts +29 -0
- package/src/vue/choice-picker/types.ts +27 -0
- package/src/vue/choice-picker/use-choice-picker.ts +12 -0
- package/src/vue/clipboard/clipboard.test.ts +126 -0
- package/src/vue/clipboard/clipboard.vue +110 -0
- package/src/vue/clipboard/control.test.ts +25 -0
- package/src/vue/clipboard/index.ts +1 -0
- package/src/vue/clipboard/locale.test.ts +36 -0
- package/src/vue/clipboard/use-copy-feedback.ts +69 -0
- package/src/vue/code-block/appearance.ts +16 -0
- package/src/vue/code-block/code-block-header.vue +29 -0
- package/src/vue/code-block/code-block.test.ts +178 -0
- package/src/vue/code-block/code-block.vue +123 -0
- package/src/vue/code-block/code-lines.vue +29 -0
- package/src/vue/code-block/fixtures/scoped-theme.vue +16 -0
- package/src/vue/code-block/index.ts +10 -0
- package/src/vue/code-block/theme-surface.vue +56 -0
- package/src/vue/code-block/theme.test.ts +170 -0
- package/src/vue/code-block/types.ts +79 -0
- package/src/vue/collapsible/collapsible.test.ts +23 -0
- package/src/vue/collapsible/collapsible.vue +107 -0
- package/src/vue/collapsible/index.ts +1 -0
- package/src/vue/color-picker/color-channel-inputs.vue +136 -0
- package/src/vue/color-picker/color-editor.vue +176 -0
- package/src/vue/color-picker/color-palette.vue +198 -0
- package/src/vue/color-picker/color-picker-root.vue +172 -0
- package/src/vue/color-picker/color-picker.test.ts +253 -0
- package/src/vue/color-picker/color-picker.vue +238 -0
- package/src/vue/color-picker/index.ts +4 -0
- package/src/vue/color-picker/use-reset-state.ts +23 -0
- package/src/vue/combobox/collection.test.ts +19 -0
- package/src/vue/combobox/collection.ts +22 -0
- package/src/vue/combobox/combobox.vue +187 -0
- package/src/vue/combobox/form.test.ts +108 -0
- package/src/vue/combobox/form.ts +69 -0
- package/src/vue/combobox/index.ts +1 -0
- package/src/vue/combobox/lazy-mount.test.ts +88 -0
- package/src/vue/combobox/locale.test.ts +41 -0
- package/src/vue/combobox/model.test.ts +105 -0
- package/src/vue/combobox/types.ts +57 -0
- package/src/vue/combobox/use-combobox-model.ts +167 -0
- package/src/vue/command-list/command-list.vue +165 -0
- package/src/vue/command-list/focus.test.ts +62 -0
- package/src/vue/command-list/focus.ts +22 -0
- package/src/vue/command-list/index.ts +2 -0
- package/src/vue/command-list/navigation.test.ts +22 -0
- package/src/vue/command-list/navigation.ts +29 -0
- package/src/vue/command-list/types.ts +60 -0
- package/src/vue/command-palette/command-palette-dialog.vue +41 -0
- package/src/vue/command-palette/command-palette.vue +104 -0
- package/src/vue/command-palette/index.ts +3 -0
- package/src/vue/command-palette/locale.test.ts +36 -0
- package/src/vue/command-palette/projection.test.ts +14 -0
- package/src/vue/command-palette/projection.ts +16 -0
- package/src/vue/command-palette/types.ts +88 -0
- package/src/vue/comment/comment.test.ts +113 -0
- package/src/vue/comment/draft.vue +60 -0
- package/src/vue/comment/field.vue +97 -0
- package/src/vue/comment/index.ts +7 -0
- package/src/vue/comment/mentions.ts +31 -0
- package/src/vue/comment/message.vue +89 -0
- package/src/vue/comment/presentation.ts +17 -0
- package/src/vue/comment/rail.vue +39 -0
- package/src/vue/comment/thread.vue +146 -0
- package/src/vue/comment/types.ts +123 -0
- package/src/vue/control-group/control-group.vue +21 -0
- package/src/vue/control-group/index.ts +2 -0
- package/src/vue/control-group/types.ts +10 -0
- package/src/vue/date-input/date-input.vue +107 -0
- package/src/vue/date-input/formatter.test.ts +15 -0
- package/src/vue/date-input/formatter.ts +23 -0
- package/src/vue/date-input/index.ts +2 -0
- package/src/vue/date-input/types.ts +46 -0
- package/src/vue/date-input/value.test.ts +9 -0
- package/src/vue/date-input/value.ts +15 -0
- package/src/vue/date-picker/date-picker.vue +45 -0
- package/src/vue/date-picker/family.test.ts +27 -0
- package/src/vue/date-picker/index.ts +2 -0
- package/src/vue/date-picker/single.vue +114 -0
- package/src/vue/date-picker/types.ts +50 -0
- package/src/vue/date-range-picker/date-range-picker.vue +119 -0
- package/src/vue/date-range-picker/endpoint.vue +32 -0
- package/src/vue/date-range-picker/index.ts +2 -0
- package/src/vue/date-range-picker/types.ts +43 -0
- package/src/vue/date-range-picker/value.test.ts +25 -0
- package/src/vue/date-range-picker/value.ts +41 -0
- package/src/vue/date-time-picker/date-time-picker.vue +63 -0
- package/src/vue/date-time-picker/draft.ts +21 -0
- package/src/vue/date-time-picker/editor.vue +60 -0
- package/src/vue/date-time-picker/formatter.ts +19 -0
- package/src/vue/date-time-picker/index.ts +2 -0
- package/src/vue/date-time-picker/input.vue +108 -0
- package/src/vue/date-time-picker/panel.vue +48 -0
- package/src/vue/date-time-picker/rules.ts +56 -0
- package/src/vue/date-time-picker/types.ts +51 -0
- package/src/vue/date-time-picker/value.test.ts +54 -0
- package/src/vue/date-time-picker/value.ts +34 -0
- package/src/vue/date-time-range-picker/date-time-range-picker.vue +85 -0
- package/src/vue/date-time-range-picker/draft.test.ts +30 -0
- package/src/vue/date-time-range-picker/draft.ts +18 -0
- package/src/vue/date-time-range-picker/endpoint.vue +34 -0
- package/src/vue/date-time-range-picker/index.ts +2 -0
- package/src/vue/date-time-range-picker/panel.vue +87 -0
- package/src/vue/date-time-range-picker/types.ts +57 -0
- package/src/vue/date-time-range-picker/value.test.ts +64 -0
- package/src/vue/date-time-range-picker/value.ts +50 -0
- package/src/vue/descriptions/descriptions.test.ts +36 -0
- package/src/vue/descriptions/descriptions.vue +36 -0
- package/src/vue/descriptions/index.ts +2 -0
- package/src/vue/descriptions/types.ts +36 -0
- package/src/vue/dialog/close-trigger.vue +30 -0
- package/src/vue/dialog/content.vue +99 -0
- package/src/vue/dialog/index.ts +4 -0
- package/src/vue/dialog/locale.test.ts +35 -0
- package/src/vue/dialog/presence.test.ts +31 -0
- package/src/vue/dialog/root.vue +116 -0
- package/src/vue/dialog/theme.test.ts +170 -0
- package/src/vue/dialog/trigger.vue +31 -0
- package/src/vue/diff-viewer/diff-hunk.vue +73 -0
- package/src/vue/diff-viewer/diff-viewer.test.ts +97 -0
- package/src/vue/diff-viewer/diff-viewer.vue +67 -0
- package/src/vue/diff-viewer/index.ts +1 -0
- package/src/vue/diff-viewer/parse.ts +81 -0
- package/src/vue/diff-viewer/types.ts +35 -0
- package/src/vue/drawer/close-boundary.test.ts +47 -0
- package/src/vue/drawer/close-boundary.ts +38 -0
- package/src/vue/drawer/close-trigger.vue +33 -0
- package/src/vue/drawer/content-frame.test.ts +82 -0
- package/src/vue/drawer/content-frame.vue +78 -0
- package/src/vue/drawer/content.vue +36 -0
- package/src/vue/drawer/context.ts +9 -0
- package/src/vue/drawer/index.ts +4 -0
- package/src/vue/drawer/locale.test.ts +32 -0
- package/src/vue/drawer/root.vue +75 -0
- package/src/vue/drawer/runtime-identity.test.ts +78 -0
- package/src/vue/drawer/theme.test.ts +105 -0
- package/src/vue/drawer/trigger.vue +31 -0
- package/src/vue/drawer/types.ts +91 -0
- package/src/vue/drawer/use-runtime.test.ts +116 -0
- package/src/vue/drawer/use-runtime.ts +116 -0
- package/src/vue/editable/editable.test.ts +22 -0
- package/src/vue/editable/editable.vue +124 -0
- package/src/vue/editable/index.ts +1 -0
- package/src/vue/editable/locale.test.ts +39 -0
- package/src/vue/emoji-picker/emoji-picker.test.ts +60 -0
- package/src/vue/emoji-picker/emoji-picker.vue +89 -0
- package/src/vue/emoji-picker/index.ts +1 -0
- package/src/vue/emoji-picker/navigation.test.ts +14 -0
- package/src/vue/emoji-picker/navigation.ts +74 -0
- package/src/vue/emoji-picker/types.ts +11 -0
- package/src/vue/empty-state/empty-state.test.ts +37 -0
- package/src/vue/empty-state/empty-state.vue +90 -0
- package/src/vue/empty-state/illustration.vue +73 -0
- package/src/vue/empty-state/index.ts +1 -0
- package/src/vue/field/context.ts +16 -0
- package/src/vue/field/field.test.ts +84 -0
- package/src/vue/field/field.vue +152 -0
- package/src/vue/field/index.ts +1 -0
- package/src/vue/field/locale.test.ts +45 -0
- package/src/vue/field/placeholder.test.ts +54 -0
- package/src/vue/fieldset/fieldset.test.ts +67 -0
- package/src/vue/fieldset/fieldset.vue +128 -0
- package/src/vue/fieldset/index.ts +1 -0
- package/src/vue/file-icon/file-icon.test.ts +12 -0
- package/src/vue/file-icon/file-icon.vue +18 -0
- package/src/vue/file-icon/index.ts +1 -0
- package/src/vue/file-upload/file-list.vue +79 -0
- package/src/vue/file-upload/file-upload.test.ts +209 -0
- package/src/vue/file-upload/file-upload.vue +167 -0
- package/src/vue/file-upload/hidden-input.vue +23 -0
- package/src/vue/file-upload/index.ts +2 -0
- package/src/vue/file-upload/types.ts +68 -0
- package/src/vue/floating-panel/geometry.test.ts +26 -0
- package/src/vue/floating-panel/geometry.ts +22 -0
- package/src/vue/floating-panel/index.ts +2 -0
- package/src/vue/floating-panel/panel.vue +90 -0
- package/src/vue/floating-panel/types.ts +36 -0
- package/src/vue/form/context.ts +15 -0
- package/src/vue/form/contract.test.ts +46 -0
- package/src/vue/form/fixtures/template.vue +40 -0
- package/src/vue/form/focus.ts +20 -0
- package/src/vue/form/form.test.ts +90 -0
- package/src/vue/form/form.vue +39 -0
- package/src/vue/form/index.ts +3 -0
- package/src/vue/form/lifecycle.ts +38 -0
- package/src/vue/form/locale.test.ts +40 -0
- package/src/vue/form/ssr.test.ts +48 -0
- package/src/vue/form/template.test.ts +50 -0
- package/src/vue/form/testing.ts +33 -0
- package/src/vue/form/types.ts +95 -0
- package/src/vue/form/use-controller.ts +116 -0
- package/src/vue/form-field/form-field.vue +64 -0
- package/src/vue/form-field/index.ts +2 -0
- package/src/vue/form-field/path.ts +23 -0
- package/src/vue/form-field/types.ts +74 -0
- package/src/vue/form-field/use-binding.ts +112 -0
- package/src/vue/form-field/validation.test.ts +94 -0
- package/src/vue/hierarchy-picker/data.test.ts +19 -0
- package/src/vue/hierarchy-picker/data.ts +54 -0
- package/src/vue/hierarchy-picker/field.vue +79 -0
- package/src/vue/hierarchy-picker/state.test.ts +43 -0
- package/src/vue/hierarchy-picker/types.ts +65 -0
- package/src/vue/hierarchy-picker/use-form.ts +29 -0
- package/src/vue/hierarchy-picker/use-picker.ts +39 -0
- package/src/vue/hover-card/content.vue +39 -0
- package/src/vue/hover-card/hover-card.test.ts +36 -0
- package/src/vue/hover-card/index.ts +4 -0
- package/src/vue/hover-card/root.vue +39 -0
- package/src/vue/hover-card/trigger.vue +20 -0
- package/src/vue/hover-card/types.ts +19 -0
- package/src/vue/html-sandbox/html-sandbox.vue +68 -0
- package/src/vue/html-sandbox/index.ts +2 -0
- package/src/vue/html-sandbox/lifecycle.test.ts +28 -0
- package/src/vue/html-sandbox/ssr.test.ts +10 -0
- package/src/vue/html-sandbox/types.ts +25 -0
- package/src/vue/html-sandbox/use-runtime.ts +104 -0
- package/src/vue/icon/catalog.test.ts +39 -0
- package/src/vue/icon/catalog.ts +17 -0
- package/src/vue/icon/context.ts +7 -0
- package/src/vue/icon/icon-provider.vue +19 -0
- package/src/vue/icon/icon.vue +65 -0
- package/src/vue/icon/index.ts +4 -0
- package/src/vue/icon/types.ts +10 -0
- package/src/vue/image/image.test.ts +100 -0
- package/src/vue/image/image.vue +73 -0
- package/src/vue/image/index.ts +2 -0
- package/src/vue/image/media.test.ts +35 -0
- package/src/vue/image/media.vue +38 -0
- package/src/vue/image/types.ts +26 -0
- package/src/vue/image-cropper/export.ts +31 -0
- package/src/vue/image-cropper/geometry.test.ts +25 -0
- package/src/vue/image-cropper/geometry.ts +43 -0
- package/src/vue/image-cropper/image-cropper.test.ts +24 -0
- package/src/vue/image-cropper/image-cropper.vue +176 -0
- package/src/vue/image-cropper/index.ts +2 -0
- package/src/vue/image-cropper/session-types.ts +9 -0
- package/src/vue/image-cropper/session.vue +84 -0
- package/src/vue/image-cropper/types.ts +47 -0
- package/src/vue/image-cropper/use-source.ts +41 -0
- package/src/vue/image-preview/appearance.ts +10 -0
- package/src/vue/image-preview/geometry.test.ts +46 -0
- package/src/vue/image-preview/geometry.ts +21 -0
- package/src/vue/image-preview/group/context.ts +5 -0
- package/src/vue/image-preview/group/types.ts +40 -0
- package/src/vue/image-preview/group/use.test.ts +73 -0
- package/src/vue/image-preview/group/use.ts +63 -0
- package/src/vue/image-preview/image-preview.vue +75 -0
- package/src/vue/image-preview/index.ts +3 -0
- package/src/vue/image-preview/lifecycle.test.ts +74 -0
- package/src/vue/image-preview/mask-dismiss.ts +26 -0
- package/src/vue/image-preview/stage.vue +41 -0
- package/src/vue/image-preview/surface.vue +116 -0
- package/src/vue/image-preview/theme-surface.vue +27 -0
- package/src/vue/image-preview/theme.test.ts +145 -0
- package/src/vue/image-preview/toolbar/index.ts +2 -0
- package/src/vue/image-preview/toolbar/layout.test.ts +14 -0
- package/src/vue/image-preview/toolbar/layout.ts +28 -0
- package/src/vue/image-preview/toolbar/toolbar.test.ts +28 -0
- package/src/vue/image-preview/toolbar/toolbar.vue +47 -0
- package/src/vue/image-preview/toolbar/types.ts +17 -0
- package/src/vue/image-preview/types.ts +65 -0
- package/src/vue/image-preview/use-gestures.ts +81 -0
- package/src/vue/image-preview/use-transform.ts +48 -0
- package/src/vue/index.ts +134 -0
- package/src/vue/input/index.ts +1 -0
- package/src/vue/input/input.vue +161 -0
- package/src/vue/input/password-field.vue +64 -0
- package/src/vue/input/ssr.test.ts +123 -0
- package/src/vue/input-number/index.ts +1 -0
- package/src/vue/input-number/input-number.vue +180 -0
- package/src/vue/input-number/locale.test.ts +50 -0
- package/src/vue/input-number-unit/index.ts +1 -0
- package/src/vue/input-number-unit/input-number-unit.test.ts +42 -0
- package/src/vue/input-number-unit/input-number-unit.vue +47 -0
- package/src/vue/inspector/index.ts +2 -0
- package/src/vue/inspector/index.vue +146 -0
- package/src/vue/inspector/inspector.test.ts +61 -0
- package/src/vue/inspector/section.vue +44 -0
- package/src/vue/json-viewer/index.ts +1 -0
- package/src/vue/json-viewer/json-node.vue +75 -0
- package/src/vue/json-viewer/json-viewer.test.ts +89 -0
- package/src/vue/json-viewer/json-viewer.vue +61 -0
- package/src/vue/json-viewer/parse.ts +19 -0
- package/src/vue/kbd/index.ts +1 -0
- package/src/vue/kbd/kbd.vue +19 -0
- package/src/vue/kbd/labels.test.ts +8 -0
- package/src/vue/kbd/labels.ts +9 -0
- package/src/vue/listbox/collection.test.ts +87 -0
- package/src/vue/listbox/collection.ts +95 -0
- package/src/vue/listbox/index.ts +1 -0
- package/src/vue/listbox/item.vue +75 -0
- package/src/vue/listbox/keyboard.test.ts +78 -0
- package/src/vue/listbox/keyboard.ts +29 -0
- package/src/vue/listbox/listbox.vue +210 -0
- package/src/vue/listbox/locale.test.ts +28 -0
- package/src/vue/listbox/pointer.test.ts +73 -0
- package/src/vue/locale-provider/context.ts +27 -0
- package/src/vue/locale-provider/index.ts +3 -0
- package/src/vue/locale-provider/locale-provider.vue +13 -0
- package/src/vue/locale-provider/types.ts +9 -0
- package/src/vue/media-player/action.vue +20 -0
- package/src/vue/media-player/fullscreen.ts +27 -0
- package/src/vue/media-player/index.ts +1 -0
- package/src/vue/media-player/media-player.vue +48 -0
- package/src/vue/media-player/options.vue +33 -0
- package/src/vue/media-player/playback.test.ts +58 -0
- package/src/vue/media-player/playback.ts +96 -0
- package/src/vue/media-player/seek.vue +28 -0
- package/src/vue/media-player/time.ts +6 -0
- package/src/vue/menu/content-size.test.ts +43 -0
- package/src/vue/menu/content-size.ts +78 -0
- package/src/vue/menu/context/anchor.test.ts +66 -0
- package/src/vue/menu/context/anchor.ts +53 -0
- package/src/vue/menu/context/context-menu.vue +119 -0
- package/src/vue/menu/context/focus.test.ts +87 -0
- package/src/vue/menu/context/focus.ts +25 -0
- package/src/vue/menu/context/keyboard.test.ts +29 -0
- package/src/vue/menu/context/keyboard.ts +23 -0
- package/src/vue/menu/context/trigger.vue +184 -0
- package/src/vue/menu/default-state.test.ts +136 -0
- package/src/vue/menu/index.ts +10 -0
- package/src/vue/menu/initial-focus.test.ts +42 -0
- package/src/vue/menu/initial-focus.ts +22 -0
- package/src/vue/menu/items/items.test.ts +109 -0
- package/src/vue/menu/items/items.vue +64 -0
- package/src/vue/menu/menu-checkbox-item.vue +77 -0
- package/src/vue/menu/menu-group.vue +34 -0
- package/src/vue/menu/menu-item.vue +81 -0
- package/src/vue/menu/menu-radio-group.vue +37 -0
- package/src/vue/menu/menu-radio-item.vue +70 -0
- package/src/vue/menu/menu-separator.vue +7 -0
- package/src/vue/menu/menu-submenu.vue +193 -0
- package/src/vue/menu/menu.vue +208 -0
- package/src/vue/menu/submenu.test.ts +137 -0
- package/src/vue/menu/surface/anchor.ts +11 -0
- package/src/vue/menu/surface/portal.test.ts +18 -0
- package/src/vue/menu/surface/portal.ts +14 -0
- package/src/vue/menu/surface/scroll.test.ts +38 -0
- package/src/vue/menu/surface/scroll.ts +35 -0
- package/src/vue/menu/surface/siblings.ts +29 -0
- package/src/vue/menu/surface/trigger.vue +25 -0
- package/src/vue/menu/surface/use-layer.ts +23 -0
- package/src/vue/navigation-menu/collapsed.vue +60 -0
- package/src/vue/navigation-menu/entry-content.vue +10 -0
- package/src/vue/navigation-menu/index.ts +2 -0
- package/src/vue/navigation-menu/interaction.ts +21 -0
- package/src/vue/navigation-menu/link.vue +27 -0
- package/src/vue/navigation-menu/locale.test.ts +33 -0
- package/src/vue/navigation-menu/navigation-menu.vue +89 -0
- package/src/vue/navigation-menu/panel-tree.vue +24 -0
- package/src/vue/navigation-menu/positioned-content.vue +46 -0
- package/src/vue/navigation-menu/projection.test.ts +23 -0
- package/src/vue/navigation-menu/projection.ts +42 -0
- package/src/vue/navigation-menu/types.ts +75 -0
- package/src/vue/navigation-menu/vertical-tree.vue +37 -0
- package/src/vue/overlay-provider/context.test.ts +29 -0
- package/src/vue/overlay-provider/context.ts +19 -0
- package/src/vue/overlay-provider/index.ts +3 -0
- package/src/vue/overlay-provider/provider.vue +9 -0
- package/src/vue/overlay-provider/types.ts +7 -0
- package/src/vue/pagination/index.ts +1 -0
- package/src/vue/pagination/options.vue +79 -0
- package/src/vue/pagination/pagination.test.ts +50 -0
- package/src/vue/pagination/pagination.vue +184 -0
- package/src/vue/pin-input/form.ts +24 -0
- package/src/vue/pin-input/index.ts +2 -0
- package/src/vue/pin-input/locale.test.ts +36 -0
- package/src/vue/pin-input/pin-input.test.ts +95 -0
- package/src/vue/pin-input/pin-input.vue +148 -0
- package/src/vue/pin-input/types.ts +50 -0
- package/src/vue/popconfirm/index.ts +2 -0
- package/src/vue/popconfirm/locale.test.ts +35 -0
- package/src/vue/popconfirm/popconfirm.test.ts +85 -0
- package/src/vue/popconfirm/popconfirm.vue +58 -0
- package/src/vue/popconfirm/types.ts +45 -0
- package/src/vue/popconfirm/use-popconfirm.ts +63 -0
- package/src/vue/popover/anchor.vue +28 -0
- package/src/vue/popover/close-trigger.vue +48 -0
- package/src/vue/popover/content.vue +107 -0
- package/src/vue/popover/description.vue +21 -0
- package/src/vue/popover/index.ts +7 -0
- package/src/vue/popover/locale.test.ts +35 -0
- package/src/vue/popover/modal-layer.test.ts +112 -0
- package/src/vue/popover/modal-owner.test.ts +60 -0
- package/src/vue/popover/root.vue +53 -0
- package/src/vue/popover/title.vue +21 -0
- package/src/vue/popover/trigger.vue +32 -0
- package/src/vue/popover/types.ts +64 -0
- package/src/vue/popover/use-runtime.test.ts +99 -0
- package/src/vue/popover/use-runtime.ts +56 -0
- package/src/vue/preset-gallery/actions.test.ts +35 -0
- package/src/vue/preset-gallery/actions.vue +62 -0
- package/src/vue/preset-gallery/index.ts +1 -0
- package/src/vue/preset-gallery/locale.test.ts +31 -0
- package/src/vue/preset-gallery/preset-gallery.test.ts +37 -0
- package/src/vue/preset-gallery/preset-gallery.vue +136 -0
- package/src/vue/preset-gallery/selection.test.ts +91 -0
- package/src/vue/preset-gallery/types.ts +19 -0
- package/src/vue/preset-gallery/use-gallery-columns.ts +35 -0
- package/src/vue/preset-picker/content.vue +104 -0
- package/src/vue/preset-picker/index.ts +1 -0
- package/src/vue/preset-picker/locale.test.ts +35 -0
- package/src/vue/preset-picker/root.test.ts +261 -0
- package/src/vue/preset-picker/root.vue +69 -0
- package/src/vue/preset-picker/types.ts +18 -0
- package/src/vue/preset-picker/use-preset-picker.ts +55 -0
- package/src/vue/progress/index.ts +2 -0
- package/src/vue/progress/progress-enhancements.test.ts +267 -0
- package/src/vue/progress/progress.test.ts +59 -0
- package/src/vue/progress/progress.vue +129 -0
- package/src/vue/progress/types.ts +45 -0
- package/src/vue/prose/blocks/blockquote.vue +7 -0
- package/src/vue/prose/blocks/hr.vue +3 -0
- package/src/vue/prose/blocks/index.ts +4 -0
- package/src/vue/prose/blocks/p.vue +7 -0
- package/src/vue/prose/blocks/pre.vue +11 -0
- package/src/vue/prose/container/container.test.ts +13 -0
- package/src/vue/prose/container/container.vue +25 -0
- package/src/vue/prose/container/index.ts +2 -0
- package/src/vue/prose/container/types.ts +9 -0
- package/src/vue/prose/elements.test.ts +81 -0
- package/src/vue/prose/files/files.test.ts +33 -0
- package/src/vue/prose/files/files.vue +21 -0
- package/src/vue/prose/files/index.ts +2 -0
- package/src/vue/prose/files/types.ts +13 -0
- package/src/vue/prose/headings/h1.vue +8 -0
- package/src/vue/prose/headings/h2.vue +8 -0
- package/src/vue/prose/headings/h3.vue +8 -0
- package/src/vue/prose/headings/h4.vue +8 -0
- package/src/vue/prose/headings/h5.vue +8 -0
- package/src/vue/prose/headings/h6.vue +8 -0
- package/src/vue/prose/headings/index.ts +6 -0
- package/src/vue/prose/image/image.test.ts +58 -0
- package/src/vue/prose/image/image.vue +60 -0
- package/src/vue/prose/image/index.ts +2 -0
- package/src/vue/prose/image/types.ts +25 -0
- package/src/vue/prose/index.ts +14 -0
- package/src/vue/prose/inline/annotations/abbr.vue +10 -0
- package/src/vue/prose/inline/annotations/del.vue +7 -0
- package/src/vue/prose/inline/annotations/index.ts +9 -0
- package/src/vue/prose/inline/annotations/ins.vue +7 -0
- package/src/vue/prose/inline/annotations/mark.vue +7 -0
- package/src/vue/prose/inline/annotations/s.vue +7 -0
- package/src/vue/prose/inline/annotations/small.vue +7 -0
- package/src/vue/prose/inline/annotations/sub.vue +7 -0
- package/src/vue/prose/inline/annotations/sup.vue +7 -0
- package/src/vue/prose/inline/annotations/u.vue +7 -0
- package/src/vue/prose/inline/code/code.vue +7 -0
- package/src/vue/prose/inline/code/index.ts +3 -0
- package/src/vue/prose/inline/code/kbd.vue +7 -0
- package/src/vue/prose/inline/code/samp.vue +7 -0
- package/src/vue/prose/inline/emphasis/b.vue +7 -0
- package/src/vue/prose/inline/emphasis/cite.vue +7 -0
- package/src/vue/prose/inline/emphasis/dfn.vue +7 -0
- package/src/vue/prose/inline/emphasis/em.vue +7 -0
- package/src/vue/prose/inline/emphasis/i.vue +7 -0
- package/src/vue/prose/inline/emphasis/index.ts +7 -0
- package/src/vue/prose/inline/emphasis/strong.vue +7 -0
- package/src/vue/prose/inline/emphasis/var.vue +7 -0
- package/src/vue/prose/inline/index.ts +4 -0
- package/src/vue/prose/inline/links/a.vue +8 -0
- package/src/vue/prose/inline/links/br.vue +3 -0
- package/src/vue/prose/inline/links/index.ts +2 -0
- package/src/vue/prose/lists/dd.vue +7 -0
- package/src/vue/prose/lists/dl.vue +7 -0
- package/src/vue/prose/lists/dt.vue +7 -0
- package/src/vue/prose/lists/index.ts +6 -0
- package/src/vue/prose/lists/li.vue +7 -0
- package/src/vue/prose/lists/ol.vue +7 -0
- package/src/vue/prose/lists/ul.vue +7 -0
- package/src/vue/prose/locale.test.ts +36 -0
- package/src/vue/prose/mapping/index.ts +2 -0
- package/src/vue/prose/mapping/native.ts +59 -0
- package/src/vue/prose/mapping/rich.ts +6 -0
- package/src/vue/prose/media/figcaption.vue +7 -0
- package/src/vue/prose/media/figure.vue +7 -0
- package/src/vue/prose/media/img.vue +7 -0
- package/src/vue/prose/media/index.ts +3 -0
- package/src/vue/prose/preview/index.ts +2 -0
- package/src/vue/prose/preview/preview.test.ts +25 -0
- package/src/vue/prose/preview/preview.vue +31 -0
- package/src/vue/prose/preview/types.ts +20 -0
- package/src/vue/prose/prose.test.ts +35 -0
- package/src/vue/prose/prose.vue +25 -0
- package/src/vue/prose/shared/image-group.ts +5 -0
- package/src/vue/prose/shared/props.ts +10 -0
- package/src/vue/prose/shared/types.ts +6 -0
- package/src/vue/prose/source/index.ts +2 -0
- package/src/vue/prose/source/source.test.ts +40 -0
- package/src/vue/prose/source/source.vue +50 -0
- package/src/vue/prose/source/types.ts +52 -0
- package/src/vue/prose/table/caption.vue +7 -0
- package/src/vue/prose/table/index.ts +8 -0
- package/src/vue/prose/table/table.vue +9 -0
- package/src/vue/prose/table/tbody.vue +7 -0
- package/src/vue/prose/table/td.vue +7 -0
- package/src/vue/prose/table/tfoot.vue +7 -0
- package/src/vue/prose/table/th.vue +7 -0
- package/src/vue/prose/table/thead.vue +7 -0
- package/src/vue/prose/table/tr.vue +7 -0
- package/src/vue/prose/types.ts +120 -0
- package/src/vue/qr-code/index.ts +2 -0
- package/src/vue/qr-code/qr-code.test.ts +96 -0
- package/src/vue/qr-code/qr-code.vue +80 -0
- package/src/vue/qr-code/types.ts +54 -0
- package/src/vue/radio-group/index.ts +1 -0
- package/src/vue/radio-group/keyboard.ts +13 -0
- package/src/vue/radio-group/radio-group.vue +154 -0
- package/src/vue/radio-group/readonly.test.ts +70 -0
- package/src/vue/rating/index.ts +2 -0
- package/src/vue/rating/locale.test.ts +38 -0
- package/src/vue/rating/rating.test.ts +141 -0
- package/src/vue/rating/rating.vue +138 -0
- package/src/vue/rating/types.ts +50 -0
- package/src/vue/rating/value.ts +18 -0
- package/src/vue/result/illustration.vue +71 -0
- package/src/vue/result/index.ts +2 -0
- package/src/vue/result/result.test.ts +83 -0
- package/src/vue/result/result.vue +56 -0
- package/src/vue/result/types.ts +49 -0
- package/src/vue/schema-form/controls/boolean.vue +51 -0
- package/src/vue/schema-form/controls/registry.ts +23 -0
- package/src/vue/schema-form/index.ts +2 -0
- package/src/vue/schema-form/render-control.ts +29 -0
- package/src/vue/schema-form/schema-form.test.ts +140 -0
- package/src/vue/schema-form/schema-form.vue +41 -0
- package/src/vue/schema-form/tree.ts +67 -0
- package/src/vue/schema-form/types.ts +96 -0
- package/src/vue/schema-form/validate-tree.test.ts +17 -0
- package/src/vue/schema-form/validate-tree.ts +27 -0
- package/src/vue/scroll-area/index.ts +1 -0
- package/src/vue/scroll-area/scroll-area.test.ts +53 -0
- package/src/vue/scroll-area/scroll-area.vue +191 -0
- package/src/vue/scroll-area/use-scroll-sync.ts +203 -0
- package/src/vue/segmented/index.ts +1 -0
- package/src/vue/segmented/segmented.vue +116 -0
- package/src/vue/select/index.ts +1 -0
- package/src/vue/select/lazy-mount.test.ts +71 -0
- package/src/vue/select/locale.test.ts +31 -0
- package/src/vue/select/select.test.ts +78 -0
- package/src/vue/select/select.vue +224 -0
- package/src/vue/select/theme.test.ts +137 -0
- package/src/vue/selection-gesture/index.ts +2 -0
- package/src/vue/selection-gesture/selection-gesture.vue +42 -0
- package/src/vue/selection-handles/index.ts +2 -0
- package/src/vue/selection-handles/locale.test.ts +20 -0
- package/src/vue/selection-handles/selection-handles.vue +47 -0
- package/src/vue/separator/index.ts +2 -0
- package/src/vue/separator/separator.vue +26 -0
- package/src/vue/separator/types.ts +21 -0
- package/src/vue/shared/choice-state/field-item.vue +14 -0
- package/src/vue/shared/choice-state/model.test.ts +52 -0
- package/src/vue/shared/choice-state/model.ts +62 -0
- package/src/vue/shared/choice-state/types.ts +13 -0
- package/src/vue/shared/horizontal-scroll/geometry.ts +33 -0
- package/src/vue/shared/horizontal-scroll/icons.ts +7 -0
- package/src/vue/shared/horizontal-scroll/strip.vue +38 -0
- package/src/vue/shared/horizontal-scroll/types.ts +39 -0
- package/src/vue/shared/horizontal-scroll/use-scroll.ts +129 -0
- package/src/vue/shared/motion/content.ts +26 -0
- package/src/vue/shared/picker/anchor.vue +11 -0
- package/src/vue/shared/picker/content.vue +33 -0
- package/src/vue/shared/picker/context.ts +7 -0
- package/src/vue/shared/picker/control-anchor.vue +13 -0
- package/src/vue/shared/picker/index.ts +4 -0
- package/src/vue/shared/picker/locale.test.ts +109 -0
- package/src/vue/shared/picker/positioning.ts +29 -0
- package/src/vue/shared/picker/root.vue +56 -0
- package/src/vue/shared/picker/trigger.vue +7 -0
- package/src/vue/shared/picker/types.ts +21 -0
- package/src/vue/shared/segmented-input/label.ts +13 -0
- package/src/vue/shared/segmented-input/root.vue +48 -0
- package/src/vue/shared/segmented-input/types.ts +29 -0
- package/src/vue/shared/surface/geometry.ts +4 -0
- package/src/vue/shared/surface/modal-portal.test.ts +146 -0
- package/src/vue/shared/surface/open-default.test.ts +135 -0
- package/src/vue/shared/surface/use-modal-owner.test.ts +24 -0
- package/src/vue/shared/surface/use-modal-owner.ts +35 -0
- package/src/vue/shared/surface/use-modal-portal.ts +17 -0
- package/src/vue/shared/task/presentation/media.ts +61 -0
- package/src/vue/shared/task/presentation/types.ts +66 -0
- package/src/vue/shared/task/presentation/use-adaptive-presentation.ssr.test.ts +21 -0
- package/src/vue/shared/task/presentation/use-adaptive-presentation.test.ts +247 -0
- package/src/vue/shared/task/presentation/use-adaptive-presentation.ts +134 -0
- package/src/vue/shared/task/selection/controller.test.ts +135 -0
- package/src/vue/shared/task/selection/controller.ts +89 -0
- package/src/vue/shared/task/selection/desktop-frame.vue +35 -0
- package/src/vue/shared/task/selection/query.test.ts +33 -0
- package/src/vue/shared/task/selection/query.ts +51 -0
- package/src/vue/shared/task/selection/types.ts +104 -0
- package/src/vue/shared/task/selection/use-picker.ts +98 -0
- package/src/vue/shared/task/selection/value.ts +20 -0
- package/src/vue/shared/task/session/lifecycle.test.ts +99 -0
- package/src/vue/shared/task/session/lifecycle.ts +126 -0
- package/src/vue/shared/task/session/request-types.ts +52 -0
- package/src/vue/shared/task/session/requests.test.ts +175 -0
- package/src/vue/shared/task/session/requests.ts +118 -0
- package/src/vue/shared/task/session/types.ts +67 -0
- package/src/vue/shared/task/trigger.test.ts +296 -0
- package/src/vue/shared/task/trigger.vue +118 -0
- package/src/vue/sheet/index.ts +8 -0
- package/src/vue/shimmer/index.ts +1 -0
- package/src/vue/shimmer/shimmer.test.ts +39 -0
- package/src/vue/shimmer/shimmer.vue +14 -0
- package/src/vue/skeleton/index.ts +1 -0
- package/src/vue/skeleton/skeleton.vue +24 -0
- package/src/vue/slider/index.ts +1 -0
- package/src/vue/slider/slider.test.ts +52 -0
- package/src/vue/slider/slider.vue +116 -0
- package/src/vue/sources/index.ts +3 -0
- package/src/vue/sources/inline-citation.test.ts +45 -0
- package/src/vue/sources/inline-citation.vue +50 -0
- package/src/vue/sources/sources.test.ts +86 -0
- package/src/vue/sources/sources.vue +54 -0
- package/src/vue/space/index.ts +2 -0
- package/src/vue/space/space.vue +26 -0
- package/src/vue/space/spacing.ts +19 -0
- package/src/vue/space/types.ts +29 -0
- package/src/vue/splitter/index.ts +1 -0
- package/src/vue/splitter/locale.test.ts +29 -0
- package/src/vue/splitter/splitter.test.ts +67 -0
- package/src/vue/splitter/splitter.vue +255 -0
- package/src/vue/statistic/index.ts +2 -0
- package/src/vue/statistic/statistic.test.ts +116 -0
- package/src/vue/statistic/statistic.vue +42 -0
- package/src/vue/statistic/types.ts +46 -0
- package/src/vue/steps/index.ts +2 -0
- package/src/vue/steps/locale.test.ts +33 -0
- package/src/vue/steps/position.test.ts +12 -0
- package/src/vue/steps/position.ts +9 -0
- package/src/vue/steps/steps.vue +87 -0
- package/src/vue/steps/types.ts +81 -0
- package/src/vue/switch/default-state.test.ts +97 -0
- package/src/vue/switch/index.ts +1 -0
- package/src/vue/switch/switch.vue +109 -0
- package/src/vue/table/index.ts +2 -0
- package/src/vue/table/model.test.ts +29 -0
- package/src/vue/table/model.ts +40 -0
- package/src/vue/table/selection.test.ts +15 -0
- package/src/vue/table/selection.ts +29 -0
- package/src/vue/table/sorting.test.ts +28 -0
- package/src/vue/table/sorting.ts +65 -0
- package/src/vue/table/ssr.test.ts +83 -0
- package/src/vue/table/table.vue +98 -0
- package/src/vue/table/types.ts +6 -0
- package/src/vue/table/use-table-interaction.test.ts +39 -0
- package/src/vue/table/use-table-interaction.ts +63 -0
- package/src/vue/table-size-picker/index.ts +2 -0
- package/src/vue/table-size-picker/table-size-picker.vue +92 -0
- package/src/vue/tabs/index.ts +1 -0
- package/src/vue/tabs/tabs.test.ts +51 -0
- package/src/vue/tabs/tabs.vue +138 -0
- package/src/vue/tag/index.ts +1 -0
- package/src/vue/tag/locale.test.ts +29 -0
- package/src/vue/tag/tag.vue +77 -0
- package/src/vue/tags-input/index.ts +1 -0
- package/src/vue/tags-input/paste.test.ts +79 -0
- package/src/vue/tags-input/paste.ts +32 -0
- package/src/vue/tags-input/tags-input.test.ts +40 -0
- package/src/vue/tags-input/tags-input.vue +276 -0
- package/src/vue/tags-input/types.ts +23 -0
- package/src/vue/task-panel/index.ts +1 -0
- package/src/vue/task-panel/root.test.ts +38 -0
- package/src/vue/task-panel/root.vue +73 -0
- package/src/vue/task-panel/runtime.ts +69 -0
- package/src/vue/task-panel/types.ts +6 -0
- package/src/vue/task-panel/viewport.test.ts +22 -0
- package/src/vue/task-panel/viewport.ts +24 -0
- package/src/vue/terminal-output/index.ts +2 -0
- package/src/vue/terminal-output/parse.ts +131 -0
- package/src/vue/terminal-output/terminal-output.test.ts +78 -0
- package/src/vue/terminal-output/terminal-output.vue +72 -0
- package/src/vue/textarea/auto-resize.ts +101 -0
- package/src/vue/textarea/index.ts +1 -0
- package/src/vue/textarea/textarea.vue +194 -0
- package/src/vue/textarea/types.ts +9 -0
- package/src/vue/theme-provider/context.ts +33 -0
- package/src/vue/theme-provider/index.ts +3 -0
- package/src/vue/theme-provider/portal.vue +36 -0
- package/src/vue/theme-provider/styles.ts +34 -0
- package/src/vue/theme-provider/surface.vue +36 -0
- package/src/vue/theme-provider/theme-provider.test.ts +129 -0
- package/src/vue/theme-provider/theme-provider.vue +25 -0
- package/src/vue/theme-provider/types.ts +9 -0
- package/src/vue/time-input/formatter.ts +13 -0
- package/src/vue/time-input/index.ts +2 -0
- package/src/vue/time-input/time-input.vue +112 -0
- package/src/vue/time-input/types.ts +48 -0
- package/src/vue/time-input/value.test.ts +8 -0
- package/src/vue/time-input/value.ts +25 -0
- package/src/vue/time-picker/columns.vue +49 -0
- package/src/vue/time-picker/index.ts +2 -0
- package/src/vue/time-picker/options.test.ts +22 -0
- package/src/vue/time-picker/options.ts +53 -0
- package/src/vue/time-picker/panel.vue +43 -0
- package/src/vue/time-picker/single.vue +67 -0
- package/src/vue/time-picker/time-picker.vue +30 -0
- package/src/vue/time-picker/types.ts +60 -0
- package/src/vue/time-picker/value.test.ts +20 -0
- package/src/vue/time-picker/value.ts +61 -0
- package/src/vue/time-range-picker/endpoint.vue +34 -0
- package/src/vue/time-range-picker/index.ts +2 -0
- package/src/vue/time-range-picker/panel.vue +66 -0
- package/src/vue/time-range-picker/time-range-picker.vue +84 -0
- package/src/vue/time-range-picker/types.ts +55 -0
- package/src/vue/time-range-picker/value.test.ts +45 -0
- package/src/vue/time-range-picker/value.ts +56 -0
- package/src/vue/timeline/index.ts +2 -0
- package/src/vue/timeline/locale.test.ts +32 -0
- package/src/vue/timeline/timeline.test.ts +53 -0
- package/src/vue/timeline/timeline.vue +68 -0
- package/src/vue/timeline/types.ts +62 -0
- package/src/vue/toast/create-toaster.ts +30 -0
- package/src/vue/toast/index.ts +9 -0
- package/src/vue/toast/locale.test.ts +33 -0
- package/src/vue/toast/toaster.vue +116 -0
- package/src/vue/toggle-group/index.ts +1 -0
- package/src/vue/toggle-group/toggle-group.vue +43 -0
- package/src/vue/toolbar/activation.test.ts +53 -0
- package/src/vue/toolbar/collapse/layout.test.ts +47 -0
- package/src/vue/toolbar/collapse/more.vue +117 -0
- package/src/vue/toolbar/collapse/separators.test.ts +36 -0
- package/src/vue/toolbar/collapse/separators.ts +52 -0
- package/src/vue/toolbar/collapse/types.ts +42 -0
- package/src/vue/toolbar/collapse/units.test.ts +26 -0
- package/src/vue/toolbar/collapse/units.ts +61 -0
- package/src/vue/toolbar/collapse/use-collapse.ts +124 -0
- package/src/vue/toolbar/context.ts +51 -0
- package/src/vue/toolbar/index.ts +13 -0
- package/src/vue/toolbar/items/body.vue +66 -0
- package/src/vue/toolbar/items/configuration.test.ts +134 -0
- package/src/vue/toolbar/items/control.vue +126 -0
- package/src/vue/toolbar/items/items.test.ts +40 -0
- package/src/vue/toolbar/items/items.vue +67 -0
- package/src/vue/toolbar/items/popup-body.vue +26 -0
- package/src/vue/toolbar/items/rows.test.ts +105 -0
- package/src/vue/toolbar/items/types.ts +35 -0
- package/src/vue/toolbar/items/use-entry.ts +57 -0
- package/src/vue/toolbar/presentation/field.vue +34 -0
- package/src/vue/toolbar/presentation/mobile.test.ts +81 -0
- package/src/vue/toolbar/presentation/mode.test.ts +27 -0
- package/src/vue/toolbar/presentation/mode.ts +27 -0
- package/src/vue/toolbar/presentation/presentation.test.ts +184 -0
- package/src/vue/toolbar/presentation/tooltip.vue +41 -0
- package/src/vue/toolbar/scrolling/icons.ts +1 -0
- package/src/vue/toolbar/scrolling/scrolling.test.ts +232 -0
- package/src/vue/toolbar/scrolling/types.ts +17 -0
- package/src/vue/toolbar/scrolling/use-scroll.ts +12 -0
- package/src/vue/toolbar/toolbar-action.vue +86 -0
- package/src/vue/toolbar/toolbar-color-picker-disclosure.test.ts +94 -0
- package/src/vue/toolbar/toolbar-color-picker-disclosure.vue +89 -0
- package/src/vue/toolbar/toolbar-disclosure.vue +134 -0
- package/src/vue/toolbar/toolbar-group.vue +36 -0
- package/src/vue/toolbar/toolbar-selector.vue +127 -0
- package/src/vue/toolbar/toolbar-separator.vue +20 -0
- package/src/vue/toolbar/toolbar-split-button.test.ts +54 -0
- package/src/vue/toolbar/toolbar-split-button.vue +223 -0
- package/src/vue/toolbar/toolbar-toggle.vue +89 -0
- package/src/vue/toolbar/toolbar.vue +155 -0
- package/src/vue/toolbar/types.ts +55 -0
- package/src/vue/toolbar/use-toolbar-item.ts +48 -0
- package/src/vue/toolbar/use-toolbar-root.ts +161 -0
- package/src/vue/tooltip/content.vue +98 -0
- package/src/vue/tooltip/focus-reveal.test.ts +211 -0
- package/src/vue/tooltip/focus-reveal.ts +120 -0
- package/src/vue/tooltip/hydration.test.ts +73 -0
- package/src/vue/tooltip/index.ts +3 -0
- package/src/vue/tooltip/root.vue +135 -0
- package/src/vue/tooltip/trigger.vue +63 -0
- package/src/vue/tooltip/types.ts +9 -0
- package/src/vue/transfer/index.ts +2 -0
- package/src/vue/transfer/model.test.ts +35 -0
- package/src/vue/transfer/model.ts +54 -0
- package/src/vue/transfer/panel.vue +84 -0
- package/src/vue/transfer/transfer.test.ts +113 -0
- package/src/vue/transfer/transfer.vue +123 -0
- package/src/vue/transfer/types.ts +75 -0
- package/src/vue/tree-select/index.ts +2 -0
- package/src/vue/tree-select/locale.test.ts +39 -0
- package/src/vue/tree-select/tree-select.vue +60 -0
- package/src/vue/tree-select/types.ts +13 -0
- package/src/vue/tree-view/index.ts +1 -0
- package/src/vue/tree-view/tree-checkbox.vue +29 -0
- package/src/vue/tree-view/tree-node.vue +114 -0
- package/src/vue/tree-view/tree-view.test.ts +60 -0
- package/src/vue/tree-view/tree-view.vue +224 -0
- package/src/vue/tree-view/use-collection.ts +63 -0
- package/src/vue/typography/abbreviation.test.ts +38 -0
- package/src/vue/typography/abbreviation.vue +23 -0
- package/src/vue/typography/index.ts +2 -0
- package/src/vue/typography/typography.test.ts +75 -0
- package/src/vue/typography/typography.vue +18 -0
package/dist/vue.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vue.mjs","names":["$slots","$slots","$slots","$slots","$slots","$slots","cancelled","$slots","$slots","$slots","Input","Textarea","InputNumber","Select","BooleanControl","Fieldset","FormField","$attrs","$slots","$slots","$slots","$slots","$attrs","$attrs","$slots","$attrs","$slots","$attrs","$slots","$attrs","$slots","$attrs","$slots","$slots","$slots","$slots","$slots","$attrs","$slots","$slots","$slots","$attrs","$attrs","$slots","createListCollection","$slots","$slots","$slots","$slots","$slots","$slots","$slots","$slots","$slots","$slots","$slots","$slots","$slots","$slots","$slots","$slots","$slots","$slots","$slots","$slots","$slots","$slots","$slots","$slots","$slots","$slots","$slots","$slots","$slots","$slots","$slots","$slots","$slots","$attrs","$slots","$slots","$slots","$slots","$slots","$slots","$slots","$slots","$slots","$slots","$attrs","$slots","$slots","$slots","$slots","$attrs","$attrs","QuireProseH1","QuireProseH2","QuireProseH3","QuireProseH4","QuireProseH5","QuireProseH6","QuireProseA","QuireProseStrong","QuireProseEm","QuireProseB","QuireProseI","QuireProseCite","QuireProseDfn","QuireProseVar","QuireProseSamp","QuireProseSmall","QuireProseMark","QuireProseDel","QuireProseS","QuireProseIns","QuireProseU","QuireProseSub","QuireProseSup","QuireProseAbbr","QuireProseKbd","QuireProseCode","QuireProseBr","QuireProseP","QuireProseBlockquote","QuireProsePre","QuireProseHr","QuireProseUl","QuireProseOl","QuireProseLi","QuireProseDl","QuireProseDt","QuireProseDd","QuireProseTable","QuireProseThead","QuireProseTbody","QuireProseTfoot","QuireProseTr","QuireProseTh","QuireProseTd","QuireProseCaption","QuireProseImg","QuireProseFigure","QuireProseFigcaption","$attrs","$slots","$attrs","$slots","QuireProseImage","QuireProseSource","$slots","$attrs","$slots","$slots","$slots","$slots","$slots","$attrs","$slots","$slots","$slots","$attrs"],"sources":["../src/vue/accordion/accordion.vue","../src/vue/dialog/close-trigger.vue","../src/vue/overlay-provider/provider.vue","../src/vue/dialog/content.vue","../src/vue/dialog/trigger.vue","../src/vue/avatar/avatar.vue","../src/vue/avatar/avatar-group.vue","../src/vue/combobox/form.ts","../src/vue/combobox/collection.ts","../src/vue/combobox/use-combobox-model.ts","../src/vue/combobox/combobox.vue","../src/vue/drawer/context.ts","../src/vue/drawer/close-trigger.vue","../src/vue/drawer/content-frame.vue","../src/vue/drawer/content.vue","../src/vue/drawer/close-boundary.ts","../src/vue/drawer/use-runtime.ts","../src/vue/drawer/root.vue","../src/vue/drawer/trigger.vue","../src/vue/input-number/input-number.vue","../src/vue/color-picker/color-channel-inputs.vue","../src/vue/select/select.vue","../src/vue/color-picker/color-editor.vue","../src/vue/color-picker/color-palette.vue","../src/vue/color-picker/color-picker-root.vue","../src/vue/color-picker/use-reset-state.ts","../src/vue/color-picker/color-picker.vue","../src/vue/field/field.vue","../src/vue/form/context.ts","../src/vue/form/focus.ts","../src/vue/form-field/path.ts","../src/vue/form/lifecycle.ts","../src/vue/form/use-controller.ts","../src/vue/form/form.vue","../src/vue/form-field/use-binding.ts","../src/vue/form-field/form-field.vue","../src/vue/space/spacing.ts","../src/vue/fieldset/fieldset.vue","../src/vue/input/password-field.vue","../src/vue/input/input.vue","../src/vue/schema-form/controls/boolean.vue","../src/vue/schema-form/controls/registry.ts","../src/vue/schema-form/render-control.ts","../src/vue/schema-form/validate-tree.ts","../src/vue/schema-form/tree.ts","../src/vue/schema-form/schema-form.vue","../src/vue/file-upload/hidden-input.vue","../src/vue/file-upload/file-list.vue","../src/vue/file-upload/file-upload.vue","../src/vue/icon/icon-provider.vue","../src/vue/icon/catalog.ts","../src/vue/theme-provider/theme-provider.vue","../src/vue/locale-provider/locale-provider.vue","../src/vue/space/space.vue","../src/vue/input-number-unit/input-number-unit.vue","../src/vue/inspector/index.vue","../src/vue/inspector/section.vue","../src/vue/menu/context/keyboard.ts","../src/vue/menu/context/anchor.ts","../src/vue/menu/context/focus.ts","../src/vue/menu/context/trigger.vue","../src/vue/menu/context/context-menu.vue","../src/vue/pagination/options.vue","../src/vue/pagination/pagination.vue","../src/vue/popover/anchor.vue","../src/vue/popover/close-trigger.vue","../src/vue/popover/content.vue","../src/vue/popover/description.vue","../src/vue/popover/use-runtime.ts","../src/vue/popover/root.vue","../src/vue/popover/title.vue","../src/vue/popover/trigger.vue","../src/vue/splitter/splitter.vue","../src/vue/segmented/segmented.vue","../src/vue/slider/slider.vue","../src/vue/switch/switch.vue","../src/vue/tags-input/paste.ts","../src/vue/tags-input/tags-input.vue","../src/vue/toolbar/context.ts","../src/vue/toolbar/toolbar-group.vue","../src/vue/toolbar/toolbar-separator.vue","../src/vue/toolbar/presentation/tooltip.vue","../src/vue/toolbar/use-toolbar-item.ts","../src/vue/toolbar/toolbar-action.vue","../src/vue/toolbar/toolbar-toggle.vue","../src/vue/toolbar/toolbar-selector.vue","../src/vue/toolbar/toolbar-disclosure.vue","../src/vue/toolbar/toolbar-split-button.vue","../src/vue/toolbar/items/popup-body.vue","../src/vue/toolbar/items/use-entry.ts","../src/vue/toolbar/items/control.vue","../src/vue/toolbar/items/items.vue","../src/vue/toolbar/collapse/units.ts","../src/vue/toolbar/items/body.vue","../src/vue/toolbar/use-toolbar-root.ts","../src/vue/shared/task/presentation/media.ts","../src/vue/toolbar/presentation/mode.ts","../src/vue/toolbar/scrolling/use-scroll.ts","../src/vue/toolbar/collapse/use-collapse.ts","../src/vue/shared/task/trigger.vue","../src/vue/shared/task/presentation/use-adaptive-presentation.ts","../src/vue/shared/task/session/requests.ts","../src/vue/shared/task/session/lifecycle.ts","../src/vue/task-panel/viewport.ts","../src/vue/task-panel/runtime.ts","../src/vue/task-panel/root.vue","../src/vue/toolbar/collapse/separators.ts","../src/vue/toolbar/collapse/more.vue","../src/vue/toolbar/toolbar.vue","../src/vue/toolbar/presentation/field.vue","../src/vue/toolbar/toolbar-color-picker-disclosure.vue","../src/vue/tree-view/tree-checkbox.vue","../src/vue/tree-view/tree-node.vue","../src/vue/tree-view/use-collection.ts","../src/vue/tree-view/tree-view.vue","../src/vue/toast/toaster.vue","../src/vue/toast/create-toaster.ts","../src/vue/editable/editable.vue","../src/vue/listbox/collection.ts","../src/vue/listbox/keyboard.ts","../src/vue/listbox/item.vue","../src/vue/listbox/listbox.vue","../src/components/preset-gallery/geometry.ts","../src/vue/preset-gallery/use-gallery-columns.ts","../src/vue/preset-gallery/actions.vue","../src/vue/preset-gallery/preset-gallery.vue","../src/components/action-sheet/groups.ts","../src/vue/action-sheet/action-sheet.vue","../src/vue/action-menu/path.ts","../src/vue/action-menu/rows.vue","../src/vue/action-menu/desktop.vue","../src/vue/action-menu/search.ts","../src/vue/action-menu/directory.vue","../src/vue/action-menu/bottom.vue","../src/vue/action-menu/anchor.ts","../src/vue/action-menu/focus.ts","../src/vue/action-menu/keyboard.ts","../src/vue/action-menu/use-action-menu.ts","../src/vue/action-menu/root.vue","../src/vue/shared/task/selection/desktop-frame.vue","../src/vue/choice-picker/content.vue","../src/vue/shared/task/selection/value.ts","../src/vue/shared/task/selection/query.ts","../src/vue/shared/task/selection/controller.ts","../src/vue/shared/task/selection/use-picker.ts","../src/vue/choice-picker/use-choice-picker.ts","../src/vue/choice-picker/root.vue","../src/vue/preset-picker/content.vue","../src/vue/preset-picker/use-preset-picker.ts","../src/vue/preset-picker/root.vue","../src/vue/command-list/focus.ts","../src/vue/command-list/navigation.ts","../src/vue/command-list/command-list.vue","../src/vue/table/model.ts","../src/vue/table/selection.ts","../src/vue/table/sorting.ts","../src/vue/table/use-table-interaction.ts","../src/vue/table/table.vue","../src/vue/badge/count.ts","../src/vue/badge/badge.vue","../src/vue/tag/tag.vue","../src/vue/skeleton/skeleton.vue","../src/vue/toggle-group/toggle-group.vue","../src/vue/shared/picker/context.ts","../src/vue/shared/picker/control-anchor.vue","../src/vue/shared/segmented-input/root.vue","../src/vue/date-input/formatter.ts","../src/vue/date-input/value.ts","../src/vue/shared/segmented-input/label.ts","../src/vue/date-input/date-input.vue","../src/vue/time-input/formatter.ts","../src/vue/time-input/value.ts","../src/vue/time-input/time-input.vue","../src/vue/calendar/value.ts","../src/vue/calendar/announcements.ts","../src/vue/shared/motion/content.ts","../src/vue/calendar/navigation.vue","../src/vue/calendar/day-view.vue","../src/vue/calendar/period-view.vue","../src/vue/calendar/calendar.vue","../src/vue/shared/picker/positioning.ts","../src/vue/shared/picker/root.vue","../src/vue/shared/picker/anchor.vue","../src/vue/shared/picker/trigger.vue","../src/vue/shared/picker/content.vue","../src/vue/date-picker/single.vue","../src/vue/date-range-picker/value.ts","../src/vue/date-range-picker/endpoint.vue","../src/vue/date-range-picker/date-range-picker.vue","../src/vue/time-picker/value.ts","../src/vue/date-time-picker/value.ts","../src/vue/date-time-picker/rules.ts","../src/vue/date-time-picker/formatter.ts","../src/vue/date-time-picker/input.vue","../src/vue/date-time-picker/draft.ts","../src/vue/time-picker/options.ts","../src/vue/time-picker/columns.vue","../src/vue/date-time-picker/editor.vue","../src/vue/date-time-picker/panel.vue","../src/vue/date-time-picker/date-time-picker.vue","../src/vue/date-time-range-picker/value.ts","../src/vue/date-time-range-picker/endpoint.vue","../src/vue/date-time-range-picker/draft.ts","../src/vue/date-time-range-picker/panel.vue","../src/vue/date-time-range-picker/date-time-range-picker.vue","../src/vue/date-picker/date-picker.vue","../src/vue/time-picker/panel.vue","../src/vue/time-picker/single.vue","../src/vue/time-range-picker/value.ts","../src/vue/time-range-picker/endpoint.vue","../src/vue/time-range-picker/panel.vue","../src/vue/time-range-picker/time-range-picker.vue","../src/vue/time-picker/time-picker.vue","../src/vue/card/card.vue","../src/vue/floating-panel/geometry.ts","../src/vue/floating-panel/panel.vue","../src/vue/comment/mentions.ts","../src/vue/comment/field.vue","../src/vue/comment/presentation.ts","../src/vue/comment/message.vue","../src/vue/comment/thread.vue","../src/vue/comment/draft.vue","../src/vue/comment/rail.vue","../src/vue/separator/separator.vue","../src/vue/breadcrumb/crumb.vue","../src/vue/breadcrumb/projection.ts","../src/vue/breadcrumb/breadcrumb.vue","../src/vue/navigation-menu/entry-content.vue","../src/vue/navigation-menu/link.vue","../src/vue/navigation-menu/panel-tree.vue","../src/vue/navigation-menu/projection.ts","../src/vue/navigation-menu/vertical-tree.vue","../src/vue/navigation-menu/interaction.ts","../src/vue/navigation-menu/positioned-content.vue","../src/vue/navigation-menu/collapsed.vue","../src/vue/navigation-menu/navigation-menu.vue","../src/vue/command-palette/projection.ts","../src/vue/command-palette/command-palette.vue","../src/vue/command-palette/command-palette-dialog.vue","../src/vue/steps/position.ts","../src/vue/steps/steps.vue","../src/vue/anchor/list.vue","../src/vue/anchor/position.ts","../src/vue/anchor/dom.ts","../src/vue/anchor/use-anchor.ts","../src/vue/anchor/anchor.vue","../src/vue/prose/shared/image-group.ts","../src/vue/prose/prose.vue","../src/vue/prose/headings/h1.vue","../src/vue/prose/headings/h2.vue","../src/vue/prose/headings/h3.vue","../src/vue/prose/headings/h4.vue","../src/vue/prose/headings/h5.vue","../src/vue/prose/headings/h6.vue","../src/vue/prose/inline/emphasis/strong.vue","../src/vue/prose/inline/emphasis/em.vue","../src/vue/prose/inline/emphasis/b.vue","../src/vue/prose/inline/emphasis/i.vue","../src/vue/prose/inline/emphasis/cite.vue","../src/vue/prose/inline/emphasis/dfn.vue","../src/vue/prose/inline/emphasis/var.vue","../src/vue/prose/inline/annotations/small.vue","../src/vue/prose/inline/annotations/mark.vue","../src/vue/prose/inline/annotations/del.vue","../src/vue/prose/inline/annotations/s.vue","../src/vue/prose/inline/annotations/ins.vue","../src/vue/prose/inline/annotations/u.vue","../src/vue/prose/inline/annotations/sub.vue","../src/vue/prose/inline/annotations/sup.vue","../src/vue/prose/inline/annotations/abbr.vue","../src/vue/prose/inline/code/code.vue","../src/vue/prose/inline/code/kbd.vue","../src/vue/prose/inline/code/samp.vue","../src/vue/prose/inline/links/a.vue","../src/vue/prose/inline/links/br.vue","../src/vue/prose/blocks/p.vue","../src/vue/prose/blocks/blockquote.vue","../src/vue/prose/blocks/pre.vue","../src/vue/prose/blocks/hr.vue","../src/vue/prose/lists/ul.vue","../src/vue/prose/lists/ol.vue","../src/vue/prose/lists/li.vue","../src/vue/prose/lists/dl.vue","../src/vue/prose/lists/dt.vue","../src/vue/prose/lists/dd.vue","../src/vue/prose/table/table.vue","../src/vue/prose/table/thead.vue","../src/vue/prose/table/tbody.vue","../src/vue/prose/table/tfoot.vue","../src/vue/prose/table/tr.vue","../src/vue/prose/table/th.vue","../src/vue/prose/table/td.vue","../src/vue/prose/table/caption.vue","../src/vue/prose/media/img.vue","../src/vue/prose/media/figure.vue","../src/vue/prose/media/figcaption.vue","../src/vue/prose/mapping/native.ts","../src/vue/prose/shared/props.ts","../src/vue/prose/image/image.vue","../src/vue/prose/source/source.vue","../src/vue/prose/mapping/rich.ts","../src/vue/prose/files/files.vue","../src/vue/prose/container/container.vue","../src/vue/descriptions/descriptions.vue","../src/vue/hierarchy-picker/data.ts","../src/vue/hierarchy-picker/use-picker.ts","../src/vue/hierarchy-picker/use-form.ts","../src/vue/hierarchy-picker/field.vue","../src/vue/tree-select/tree-select.vue","../src/vue/cascader/level.vue","../src/vue/cascader/use-flyout.ts","../src/vue/cascader/flyout.vue","../src/vue/cascader/panels.vue","../src/vue/cascader/cascader.vue","../src/vue/hover-card/root.vue","../src/vue/hover-card/trigger.vue","../src/vue/hover-card/content.vue","../src/vue/popconfirm/use-popconfirm.ts","../src/vue/popconfirm/popconfirm.vue","../src/vue/timeline/timeline.vue","../src/vue/result/illustration.vue","../src/vue/result/result.vue","../src/vue/control-group/control-group.vue","../src/vue/pin-input/form.ts","../src/vue/pin-input/pin-input.vue","../src/vue/rating/value.ts","../src/vue/rating/rating.vue","../src/vue/statistic/statistic.vue","../src/vue/qr-code/qr-code.vue","../src/vue/carousel/item.vue","../src/vue/carousel/card-stage.vue","../src/vue/carousel/carousel.vue","../src/vue/transfer/model.ts","../src/vue/transfer/panel.vue","../src/vue/transfer/transfer.vue","../src/vue/image-cropper/geometry.ts","../src/vue/image-cropper/export.ts","../src/vue/image-cropper/session.vue","../src/vue/image-cropper/use-source.ts","../src/vue/image-cropper/image-cropper.vue","../src/vue/sources/inline-citation.vue","../src/vue/json-viewer/json-node.vue","../src/vue/json-viewer/parse.ts","../src/vue/json-viewer/json-viewer.vue","../src/vue/diff-viewer/diff-hunk.vue","../src/vue/diff-viewer/parse.ts","../src/vue/diff-viewer/diff-viewer.vue","../src/vue/terminal-output/parse.ts","../src/vue/terminal-output/terminal-output.vue","../src/components/emoji-picker/sections.ts","../src/vue/emoji-picker/navigation.ts","../src/vue/emoji-picker/emoji-picker.vue","../src/vue/selection-handles/selection-handles.vue","../src/vue/selection-gesture/selection-gesture.vue","../src/vue/table-size-picker/table-size-picker.vue","../src/vue/media-player/playback.ts","../src/vue/media-player/fullscreen.ts","../src/vue/media-player/action.vue","../src/vue/media-player/time.ts","../src/vue/media-player/seek.vue","../src/vue/media-player/options.vue","../src/vue/media-player/media-player.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { Accordion } from \"@ark-ui/vue/accordion\";\nimport { computed } from \"vue\";\nimport type {\n QuireKitAccordionItem,\n QuireKitAccordionOrientation,\n QuireKitAccordionSize\n} from \"../../components/accordion\";\nimport QuireIcon from \"../icon/icon.vue\";\n\n/** Vue Accordion 的公开属性。 */\ninterface Props {\n /** Accordion 根区域的可访问名称。 */\n readonly label: string;\n /** 按 DOM 顺序渲染的稳定条目。 */\n readonly items: readonly QuireKitAccordionItem[];\n /** 未受控使用时初始展开的条目值。 */\n readonly defaultValue?: string[];\n /** 是否允许同时展开多个条目。 */\n readonly multiple?: boolean;\n /** 是否允许关闭最后一个已展开条目。 */\n readonly collapsible?: boolean;\n /** 条目布局与方向键导航方向。 */\n readonly orientation?: QuireKitAccordionOrientation;\n /** 触发器高度与排版尺寸。 */\n readonly size?: QuireKitAccordionSize;\n /** 是否禁止整个 Accordion 的交互。 */\n readonly disabled?: boolean;\n /** 是否延迟挂载尚未展开过的内容。 */\n readonly lazyMount?: boolean;\n /** 条目收起后是否卸载其内容。 */\n readonly unmountOnExit?: boolean;\n}\n\n/** Accordion 插槽接收的稳定条目上下文。 */\ninterface ItemSlotProps {\n /** 当前条目合同。 */\n readonly item: QuireKitAccordionItem;\n /** 当前条目是否已经展开。 */\n readonly expanded: boolean;\n}\n\n/** Accordion 的可替换内容位置。 */\ninterface Slots {\n /** 替换每个触发器的可见内容。 */\n readonly trigger?: (props: ItemSlotProps) => unknown;\n /** 替换每个条目的状态指示图形。 */\n readonly indicator?: (props: ItemSlotProps) => unknown;\n /** 替换每个条目的展开内容。 */\n readonly content?: (props: ItemSlotProps) => unknown;\n}\n\n/** Accordion 发出的公开语义事件。 */\ninterface Emits {\n /** 用户交互产生新的展开值集合后触发。 */\n valueChange: [value: string[]];\n}\n\nconst props = withDefaults(defineProps<Props>(), {\n defaultValue: () => [],\n multiple: false,\n collapsible: false,\n orientation: \"vertical\",\n size: \"sm\",\n disabled: false,\n lazyMount: false,\n unmountOnExit: false\n});\nconst expandedValues = defineModel<string[] | undefined>(\"value\");\nconst emit = defineEmits<Emits>();\ndefineSlots<Slots>();\n\nconst currentValues = computed(() => expandedValues.value ?? props.defaultValue);\nconst optionalRootProps = computed(() => ({\n ...(expandedValues.value === undefined\n ? { defaultValue: props.defaultValue }\n : { modelValue: expandedValues.value })\n}));\n\n/**\n * 把 Ark machine 的下一值同步给可选的 v-model 与语义事件。\n *\n * @param value - 用户交互后处于展开状态的条目值。\n */\nfunction updateValue(value: string[]): void {\n expandedValues.value = value;\n emit(\"valueChange\", value);\n}\n</script>\n\n<template>\n <Accordion.Root\n v-bind=\"optionalRootProps\"\n :aria-label=\"label\"\n :multiple=\"multiple\"\n :collapsible=\"collapsible\"\n :orientation=\"orientation\"\n :disabled=\"disabled\"\n :lazy-mount=\"lazyMount\"\n :unmount-on-exit=\"unmountOnExit\"\n :class=\"['qk-accordion', `qk-accordion--${orientation}`]\"\n @update:model-value=\"updateValue\"\n >\n <Accordion.Item\n v-for=\"item in items\"\n :key=\"item.value\"\n :value=\"item.value\"\n :disabled=\"item.disabled\"\n class=\"qk-accordion__item\"\n >\n <Accordion.ItemTrigger\n :class=\"['qk-accordion__trigger', `qk-accordion__trigger--${size}`]\"\n >\n <span class=\"qk-accordion__heading\">\n <slot\n name=\"trigger\"\n :item=\"item\"\n :expanded=\"currentValues.includes(item.value)\"\n >\n <span class=\"qk-accordion__title\">{{ item.title }}</span>\n <span\n v-if=\"item.description !== undefined\"\n class=\"qk-accordion__description\"\n >\n {{ item.description }}\n </span>\n </slot>\n </span>\n <Accordion.ItemIndicator class=\"qk-accordion__indicator\">\n <slot\n name=\"indicator\"\n :item=\"item\"\n :expanded=\"currentValues.includes(item.value)\"\n >\n <QuireIcon name=\"chevronRight\" :size=\"16\" />\n </slot>\n </Accordion.ItemIndicator>\n </Accordion.ItemTrigger>\n\n <Accordion.ItemContent class=\"qk-accordion__content\">\n <div class=\"qk-accordion__content-inner\">\n <slot\n name=\"content\"\n :item=\"item\"\n :expanded=\"currentValues.includes(item.value)\"\n >\n {{ item.content }}\n </slot>\n </div>\n </Accordion.ItemContent>\n </Accordion.Item>\n </Accordion.Root>\n</template>\n","<script setup lang=\"ts\">\nimport { Dialog } from \"@ark-ui/vue/dialog\";\n\n/** Dialog CloseTrigger 的公开属性。 */\ninterface Props {\n /** 是否把关闭行为合并到唯一子元素。 */\n readonly asChild?: boolean;\n /** 是否禁止当前关闭动作。 */\n readonly disabled?: boolean;\n}\n\n/** Dialog CloseTrigger 的组合内容。 */\ninterface Slots {\n /** 关闭按钮内容。 */\n readonly default: () => unknown;\n}\n\nwithDefaults(defineProps<Props>(), { asChild: false, disabled: false });\ndefineSlots<Slots>();\n</script>\n\n<template>\n <Dialog.CloseTrigger\n :as-child=\"asChild\"\n :disabled=\"disabled\"\n :class=\"!asChild && 'qk-dialog__action-trigger'\"\n >\n <slot />\n </Dialog.CloseTrigger>\n</template>\n","<script setup lang=\"ts\">\nimport { provideQuireOverlayHost } from \"./context\";\nconst props = defineProps<{\n /** Product-owned portal destination. */ target?: HTMLElement | undefined;\n /** Floating positioning contract. */ strategy?: \"absolute\" | \"fixed\" | undefined;\n}>();\nprovideQuireOverlayHost({ target: () => props.target, get strategy() { return props.strategy; } });\n</script>\n<template><slot /></template>\n","<script setup lang=\"ts\">\nimport QuireThemePortal from \"../theme-provider/portal.vue\";\nimport { useAttrs, type StyleValue } from \"vue\";\nimport { Dialog, useDialogContext } from \"@ark-ui/vue/dialog\";\nimport type { QuireKitDialogSize } from \"../../components/dialog/types\";\nimport QuireIcon from \"../icon/icon.vue\";\nimport { useQuireKitMessages } from \"../locale-provider/context\";\n\n/** Dialog 固定结构和任务规模的公开属性。 */\ninterface Props {\n /** Native content container; form preserves Enter submission and footer submit buttons. */\n readonly as?: \"div\" | \"form\";\n /** 可访问且始终可见的任务标题。 */\n readonly title: string;\n /** 标题下的必要任务说明。 */\n readonly description?: string;\n /** small、medium、large 三档任务规模。 */\n readonly size?: QuireKitDialogSize;\n /** Portal 目标元素或选择器。 */\n readonly portalTarget?: string | HTMLElement;\n /** 是否把模态层传送到 Portal 目标。 */\n readonly portalled?: boolean;\n /** 是否显示覆盖页面的背景遮罩。 */\n readonly showBackdrop?: boolean;\n /** 是否显示标题区关闭按钮。 */\n readonly showClose?: boolean;\n /** 是否正在处理任务;输入与按钮的可用状态需单独设置。 */\n readonly busy?: boolean;\n /** footer 上方的任务级错误。 */\n readonly errorText?: string;\n}\n\n/** Dialog Content 的固定内容区域。 */\ninterface Slots {\n /** 独立滚动的任务正文。 */\n readonly default: () => unknown;\n /** 标题区右侧的附加动作。 */\n readonly headerActions?: () => unknown;\n /** 任务状态或恢复反馈;错误内容须同时设置 errorText。 */\n readonly status?: () => unknown;\n /** 固定在正文下方的任务操作。 */\n readonly footer?: () => unknown;\n}\n\nwithDefaults(defineProps<Props>(), {\n as: \"div\",\n size: \"medium\",\n portalTarget: \"body\",\n portalled: true,\n showBackdrop: true,\n showClose: true,\n busy: false\n});\ndefineSlots<Slots>();\ndefineOptions({ inheritAttrs: false });\nconst attrs = useAttrs();\nconst text = useQuireKitMessages(\"dialog\");\n// Presence may retain exit frames; only the open layer may consume interaction.\nconst dialog = useDialogContext();\n</script>\n\n<template>\n <Teleport :to=\"portalTarget\" :disabled=\"!portalled\">\n <QuireThemePortal>\n <Dialog.Backdrop :style=\"attrs.style as StyleValue\" v-if=\"showBackdrop\" :inert=\"!dialog.open || undefined\" class=\"qk-dialog__backdrop\" />\n <Dialog.Positioner :style=\"attrs.style as StyleValue\" :inert=\"!dialog.open || undefined\" class=\"qk-dialog__positioner\">\n <Dialog.Content as-child\n v-bind=\"attrs\"\n :class=\"['qk-dialog__content', `qk-dialog__content--${size}`, busy && 'qk-dialog__content--busy']\"\n :aria-busy=\"busy || undefined\"\n >\n <component :is=\"as\">\n <header class=\"qk-dialog__header\">\n <span class=\"qk-dialog__heading\">\n <Dialog.Title class=\"qk-dialog__title\">{{ title }}</Dialog.Title>\n <Dialog.Description v-if=\"description\" class=\"qk-dialog__description\">\n {{ description }}\n </Dialog.Description>\n </span>\n <span v-if=\"$slots.headerActions || showClose\" class=\"qk-dialog__header-actions\">\n <slot name=\"headerActions\" />\n <Dialog.CloseTrigger v-if=\"showClose\" :aria-label=\"text.close\" class=\"qk-dialog__close-trigger\">\n <QuireIcon name=\"close\" :size=\"16\" />\n </Dialog.CloseTrigger>\n </span>\n </header>\n\n <div class=\"qk-dialog__body\"><slot /></div>\n\n <div v-if=\"errorText || $slots.status\" class=\"qk-dialog__status\" :role=\"errorText ? 'alert' : 'status'\">\n <slot name=\"status\">{{ errorText }}</slot>\n </div>\n <footer v-if=\"$slots.footer\" class=\"qk-dialog__footer\"><slot name=\"footer\" /></footer>\n </component>\n </Dialog.Content>\n </Dialog.Positioner>\n </QuireThemePortal>\n </Teleport>\n</template>\n","<script setup lang=\"ts\">\nimport { Dialog } from \"@ark-ui/vue/dialog\";\nimport { computed } from \"vue\";\n\n/** Dialog Trigger 的公开属性。 */\ninterface Props {\n /** 是否将打开行为合并到唯一子元素。 */\n readonly asChild?: boolean;\n /** 多 trigger 场景的稳定值。 */\n readonly value?: string;\n}\n\n/** Dialog Trigger 的组合内容。 */\ninterface Slots {\n /** 接收 trigger 行为的唯一内容。 */\n readonly default: () => unknown;\n}\n\nconst props = withDefaults(defineProps<Props>(), { asChild: false });\ndefineSlots<Slots>();\n\nconst optionalBindings = computed(() => (\n props.value === undefined ? {} : { value: props.value }\n));\n</script>\n\n<template>\n <Dialog.Trigger v-bind=\"optionalBindings\" :as-child=\"asChild\" class=\"qk-dialog__trigger\">\n <slot />\n </Dialog.Trigger>\n</template>\n","<script setup lang=\"ts\">\nimport { Avatar } from \"@ark-ui/vue/avatar\";\nimport { computed } from \"vue\";\nimport type {\n QuireKitAvatarFallbackSlotProps,\n QuireKitAvatarShape,\n QuireKitAvatarSize,\n QuireKitAvatarStatus,\n QuireKitAvatarStatusChangeDetails,\n QuireKitAvatarStatusSlotProps\n} from \"../../components/avatar\";\nimport { useQuireKitMessages } from \"../locale-provider/context\";\n\n/** Vue Avatar 适配器的公开属性。 */\ninterface Props {\n /** Avatar 对应的人员或对象名称。 */\n readonly name: string;\n /** 图片地址;缺失或加载失败时显示 fallback。 */\n readonly src?: string | undefined;\n /** 自定义回退短文本;默认从 name 计算。 */\n readonly fallback?: string | undefined;\n /** 控件视觉尺寸。 */\n readonly size?: QuireKitAvatarSize | undefined;\n /** 圆形或圆角方形轮廓。 */\n readonly shape?: QuireKitAvatarShape | undefined;\n /** 可选的人员状态标识。 */\n readonly status?: QuireKitAvatarStatus | undefined;\n /** 浏览器图片加载策略。 */\n readonly loading?: \"eager\" | \"lazy\" | undefined;\n}\n\n/** Avatar 的可替换内容位置。 */\ninterface Slots {\n /** 替换图片加载前或失败后的回退内容。 */\n readonly fallback?: (props: QuireKitAvatarFallbackSlotProps) => unknown;\n /** 替换状态标识。 */\n readonly status?: (props: QuireKitAvatarStatusSlotProps) => unknown;\n}\n\n/** Avatar 发出的公开语义事件。 */\ninterface Emits {\n /** 图片完成加载或加载失败时触发。 */\n statusChange: [details: QuireKitAvatarStatusChangeDetails];\n}\n\nconst props = withDefaults(defineProps<Props>(), {\n size: \"md\",\n shape: \"circle\",\n status: \"none\",\n loading: \"lazy\"\n});\nconst emit = defineEmits<Emits>();\ndefineSlots<Slots>();\n\nconst text = useQuireKitMessages(\"avatar\");\n\n/**\n * 从中英文名称中提取最多两个可识别字符。\n *\n * @param name - 完整名称。\n * @returns 适合 Avatar fallback 的短文本。\n */\nfunction getFallback(name: string): string {\n const trimmed = name.trim();\n if (trimmed.length === 0) return \"?\";\n const words = trimmed.split(/\\s+/u);\n if (words.length > 1) {\n return words.slice(0, 2).map((word) => Array.from(word)[0]).join(\"\").toUpperCase();\n }\n const characters = Array.from(trimmed);\n return characters.slice(Math.max(0, characters.length - 2)).join(\"\").toUpperCase();\n}\n\nconst fallbackText = computed(() => props.fallback ?? getFallback(props.name));\nconst fallbackGlyphs = computed(() => Array.from(fallbackText.value).length);\nconst visibleStatus = computed(() => props.status === \"none\" ? undefined : props.status);\nconst accessibleName = computed(() => visibleStatus.value === undefined\n ? props.name\n : text.value.withStatus(props.name, text.value[visibleStatus.value]));\n\n/**\n * 向宿主公开 Ark 图片加载状态。\n *\n * @param details - 图片加载结果。\n */\nfunction handleStatusChange(details: QuireKitAvatarStatusChangeDetails): void {\n emit(\"statusChange\", details);\n}\n</script>\n\n<template>\n <span\n :class=\"['qk-avatar', `qk-avatar--${size}`, `qk-avatar--${shape}`]\"\n role=\"img\"\n :aria-label=\"accessibleName\"\n >\n <Avatar.Root class=\"qk-avatar__surface\" @status-change=\"handleStatusChange\">\n <Avatar.Fallback\n class=\"qk-avatar__fallback\"\n aria-hidden=\"true\"\n :data-single-glyph=\"fallbackGlyphs === 1 ? '' : undefined\"\n >\n <slot name=\"fallback\" v-bind=\"{ name, fallback: fallbackText }\">\n {{ fallbackText }}\n </slot>\n </Avatar.Fallback>\n <!-- Keep a layout box for native lazy loading; the recipe hides pending pixels\n using Ark's data-state while the fallback remains visible. -->\n <Avatar.Image v-if=\"src\" class=\"qk-avatar__image\" :hidden=\"false\" aria-hidden=\"true\" :src=\"src\" alt=\"\" :loading=\"loading\" />\n </Avatar.Root>\n <slot v-if=\"visibleStatus\" name=\"status\" :status=\"visibleStatus\" :label=\"text[visibleStatus]\">\n <span :class=\"['qk-avatar__status', `qk-avatar__status--${visibleStatus}`]\" aria-hidden=\"true\" />\n </slot>\n </span>\n</template>\n","<script setup lang=\"ts\">\nimport { computed } from \"vue\";\nimport type {\n QuireKitAvatarGroupItem,\n QuireKitAvatarGroupItemSlotProps,\n QuireKitAvatarGroupOverflowSlotProps,\n QuireKitAvatarSize\n} from \"../../components/avatar\";\nimport QuireAvatar from \"./avatar.vue\";\nimport { useQuireKitMessages } from \"../locale-provider/context\";\n\n/** Vue Avatar Group 的公开属性。 */\ninterface Props {\n /** Group 中的全部成员。 */\n readonly items: readonly QuireKitAvatarGroupItem[];\n /** Avatar Group 的可访问名称,说明这组成员是谁;缺省取语言包。 */\n readonly label?: string;\n /** 直接显示的最大成员数。 */\n readonly max?: number;\n /** Group 内 Avatar 的统一尺寸。 */\n readonly size?: QuireKitAvatarSize;\n}\n\n/** Avatar Group 的可替换内容位置。 */\ninterface Slots {\n /** 替换每一个可见成员。 */\n readonly item?: (props: QuireKitAvatarGroupItemSlotProps) => unknown;\n /** 替换超出 max 后的计数标识。 */\n readonly overflow?: (props: QuireKitAvatarGroupOverflowSlotProps) => unknown;\n}\n\nconst props = withDefaults(defineProps<Props>(), {\n max: 4,\n size: \"md\"\n});\ndefineSlots<Slots>();\nconst text = useQuireKitMessages(\"avatar\");\n\nconst visibleItems = computed(() => props.items.slice(0, Math.max(0, props.max)));\nconst overflowCount = computed(() => Math.max(0, props.items.length - visibleItems.value.length));\n</script>\n\n<template>\n <div class=\"qk-avatar-group\" role=\"group\" :aria-label=\"label ?? text.group\">\n <template v-for=\"(item, index) in visibleItems\" :key=\"item.id\">\n <slot name=\"item\" :item=\"item\" :index=\"index\" :size=\"size\">\n <QuireAvatar\n :name=\"item.name\"\n :src=\"item.src\"\n :fallback=\"item.fallback\"\n :status=\"item.status\"\n :size=\"size\"\n />\n </slot>\n </template>\n <slot v-if=\"overflowCount > 0\" name=\"overflow\" :count=\"overflowCount\">\n <span :class=\"['qk-avatar-group__overflow', `qk-avatar--${size}`]\" :aria-label=\"text.overflow(overflowCount)\">\n +{{ overflowCount }}\n </span>\n </slot>\n </div>\n</template>\n","import { nextTick, watchEffect, watchPostEffect, type Ref } from \"vue\";\nimport { quireKitDefaultLocale } from \"../../locale/resolve\";\nimport type { ComboboxFormProps } from \"./types\";\n\n/**\n * Coordinates native submission/validation with the selected value and search draft.\n * Ark's Combobox supplies the editable input but has no separate semantic field or reset lifecycle.\n * @param props - Public form and interaction properties.\n * @param field - Hidden native field that owns semantic submission and form association.\n * @param selectedValue - Current committed scalar value.\n * @param inputValue - Current display text, including caller-controlled drafts.\n * @param resetModel - Restores only locally owned initial state.\n * @param requiredMessage - Native validation text for a missing required value, in the active language.\n */\nexport function useComboboxForm(\n props: Readonly<ComboboxFormProps>,\n field: Ref<HTMLInputElement | null>,\n selectedValue: () => string | undefined,\n inputValue: () => string,\n resetModel: () => void,\n requiredMessage: () => string = () => quireKitDefaultLocale.messages.combobox.required\n): void {\n /**\n * Resolves the focusable validation target within this compound control.\n * @returns The search input when the component is mounted.\n */\n function input(): HTMLInputElement | null {\n return field.value?.parentElement?.querySelector<HTMLInputElement>('input[role=\"combobox\"]') ?? null;\n }\n\n watchPostEffect(() => {\n const missing = props.required && !props.disabled && !props.readOnly && !selectedValue();\n // A nonempty search draft is not a submitted selection. Keep native validation\n // on the visible input so the browser can focus the correct control.\n input()?.setCustomValidity(missing ? requiredMessage() : \"\");\n });\n\n watchEffect(onCleanup => {\n const element = field.value;\n if (!element) return;\n const root = element.getRootNode();\n const events = root.nodeType === 11 && \"host\" in root ? root : element.ownerDocument;\n let active = true;\n /**\n * Applies an uncancelled reset after all host listeners have run.\n * @param event - Native reset that a Form owner may cancel.\n */\n function reset(event: Event): void {\n if (event.target !== field.value?.form) return;\n queueMicrotask(() => {\n if (!active || event.defaultPrevented || event.target !== field.value?.form) return;\n resetModel();\n void nextTick(() => {\n const control = input();\n // Native reset also changes an input's DOM value. Reconcile even when\n // controlled props did not change, without manufacturing an input event.\n if (active && control) control.value = inputValue();\n });\n });\n }\n // Resolve native form ownership at event time. A referenced form may be\n // mounted later or replaced with the same id without changing component props.\n events.addEventListener(\"reset\", reset, true);\n onCleanup(() => {\n active = false;\n events.removeEventListener(\"reset\", reset, true);\n });\n }, { flush: \"post\" });\n}\n","import type {\n QuireKitComboboxGroup,\n QuireKitComboboxItem\n} from \"../../components/combobox\";\n\n/**\n * Groups visible candidates by first group appearance without changing item order.\n *\n * @param items - Current filtered Combobox candidates.\n * @returns Visible groups whose flattened order matches keyboard navigation.\n */\nexport function groupComboboxItems(\n items: readonly QuireKitComboboxItem[]\n): QuireKitComboboxGroup[] {\n const groups = new Map<string | undefined, QuireKitComboboxItem[]>();\n for (const item of items) {\n const entries = groups.get(item.group) ?? [];\n entries.push(item);\n groups.set(item.group, entries);\n }\n return [...groups].map(([label, entries]) => ({ label, items: entries }));\n}\n","import { useQuireOverlayHost } from \"../overlay-provider\";\nimport { createListCollection } from \"@ark-ui/vue/combobox\";\nimport { computed, nextTick, ref, watch } from \"vue\";\nimport type { ComboboxEmit, ComboboxModelProps } from \"./types\";\nimport { groupComboboxItems } from \"./collection\";\n\n/**\n * Adapts Ark's array and input state to QuireKit's public single-value contract.\n *\n * @param props - Normalized Combobox component properties.\n * @param emit - Vue event boundary used to expose controlled updates.\n * @returns Reactive values and handlers consumed by the Combobox anatomy.\n */\nexport function useComboboxModel(\n props: Readonly<ComboboxModelProps>,\n emit: ComboboxEmit\n) {\n const initialValue = props.defaultValue;\n const initialInputValue = props.defaultInputValue;\n const internalValue = ref(props.modelValue === undefined ? initialValue : props.modelValue ?? undefined);\n const initialItem = props.items.find(item => item.value === internalValue.value);\n const internalInputValue = ref(\n props.inputValue ?? props.defaultInputValue ?? initialItem?.label ?? internalValue.value ?? \"\"\n );\n const internalOpen = ref(false);\n const open = computed(() => props.open ?? internalOpen.value);\n const selectedValue = computed(() => props.modelValue === undefined ? internalValue.value : props.modelValue);\n const inputValue = computed(() => props.inputValue ?? internalInputValue.value);\n const selectedValues = computed(() => (\n selectedValue.value == null ? [] : [selectedValue.value]\n ));\n const availableItems = computed(() => {\n const items = [...props.items];\n const value = selectedValue.value;\n if (props.allowCustomValue && value && !items.some(item => item.value === value)) items.push({ value, label: value });\n return items;\n });\n const selectedItem = computed(() => availableItems.value.find(item => item.value === selectedValue.value));\n const normalizedQuery = computed(() => {\n const query = inputValue.value.trim().toLocaleLowerCase();\n const selectedLabel = (selectedItem.value?.label ?? selectedValue.value)?.trim().toLocaleLowerCase();\n return query === selectedLabel ? \"\" : query;\n });\n const filteredItems = computed(() => {\n const query = normalizedQuery.value;\n const items = props.filter === \"none\" || query.length === 0 ? [...availableItems.value] : availableItems.value.filter((item) => {\n const searchableText = [item.label, ...(item.keywords ?? [])].join(\" \").toLocaleLowerCase();\n return props.filter === \"startsWith\" ? searchableText.startsWith(query) : searchableText.includes(query);\n });\n const customValue = inputValue.value.trim();\n // An actual collection item gives custom input the same keyboard/selection contract as presets.\n if (props.allowCustomValue && query && customValue && !availableItems.value.some(item => item.value === customValue || item.label === customValue)) {\n items.unshift({ value: customValue, label: customValue });\n }\n return items;\n });\n const groupedItems = computed(() => groupComboboxItems(filteredItems.value));\n const collection = computed(() => createListCollection({\n items: filteredItems.value,\n itemToString: item => item.label,\n itemToValue: item => item.value,\n isItemDisabled: item => item.disabled === true\n }));\n const optionalRootBindings = computed(() => ({\n ...(props.form === undefined ? {} : { form: props.form })\n }));\n const controlStyle = computed(() => ({ width: props.width }));\n const contentStyle = computed(() => ({ width: props.contentWidth ?? props.width }));\n const portal = useQuireOverlayHost();\n const positioning = computed(() => ({\n ...(portal.strategy.value ? { strategy: portal.strategy.value } : {}),\n placement: props.placement,\n gutter: 4,\n sameWidth: props.contentWidth === undefined\n }));\n\n watch(() => props.modelValue, (value) => {\n if (value === undefined) return;\n internalValue.value = value ?? undefined;\n if (props.inputValue === undefined) internalInputValue.value = props.items.find(item => item.value === value)?.label ?? value ?? \"\";\n }, { flush: \"sync\" });\n\n watch(() => props.inputValue, (value) => {\n if (value !== undefined) internalInputValue.value = value;\n });\n\n watch(() => props.items, (_items, previousItems) => {\n if (props.inputValue !== undefined) return;\n const item = props.items.find(candidate => candidate.value === selectedValue.value);\n const previousLabel = previousItems?.find(candidate => candidate.value === selectedValue.value)?.label;\n if (item !== undefined && (internalInputValue.value.length === 0 || internalInputValue.value === previousLabel)) {\n internalInputValue.value = item.label;\n }\n });\n\n /**\n * Restores Ark's single-element array to the public scalar contract.\n *\n * @param values - Selection array emitted by the Ark machine.\n */\n function updateValue(values: string[]): void {\n const value = values[0];\n internalValue.value = value;\n emit(\"update:modelValue\", value);\n emit(\"valueChange\", value);\n }\n\n /**\n * Synchronizes the visible input text and its controlled boundary.\n *\n * @param value - Text displayed by the input on the next frame.\n */\n function updateInputValue(value: string): void {\n internalInputValue.value = value;\n emit(\"update:inputValue\", value);\n emit(\"inputValueChange\", value);\n }\n\n /**\n * Synchronizes the popup state and notifies the caller.\n *\n * @param value - Whether the result popup is open.\n */\n function updateOpen(value: boolean): void {\n internalOpen.value = value;\n emit(\"update:open\", value);\n emit(\"openChange\", value);\n // Wait for the owner to accept/normalize the selection before restoring the collapsed label.\n if (!value && props.modelValue !== undefined && props.inputValue === undefined) {\n void nextTick(() => {\n const selected = props.modelValue;\n internalInputValue.value = props.items.find(item => item.value === selected)?.label ?? selected ?? \"\";\n });\n }\n }\n\n /** Restores only uncontrolled defaults; controlled values remain owned by the caller. */\n function reset(): void {\n if (props.modelValue === undefined) {\n internalValue.value = initialValue;\n emit(\"update:modelValue\", internalValue.value);\n }\n if (props.inputValue === undefined) {\n const value = selectedValue.value;\n internalInputValue.value = initialInputValue ?? props.items.find(item => item.value === value)?.label ?? value ?? \"\";\n emit(\"update:inputValue\", internalInputValue.value);\n }\n updateOpen(false);\n }\n\n return {\n collection,\n contentStyle,\n controlStyle,\n filteredItems,\n groupedItems,\n inputValue,\n open,\n optionalRootBindings,\n positioning,\n reset,\n selectedValues,\n updateInputValue,\n updateOpen,\n updateValue\n };\n}\n","<script setup lang=\"ts\">\nimport { useQuireOverlayHost } from \"../overlay-provider\";\nimport QuireThemePortal from \"../theme-provider/portal.vue\";\nimport { shallowRef, type StyleValue } from \"vue\";\nimport { Combobox } from \"@ark-ui/vue/combobox\";\nimport type {\n QuireKitComboboxProps,\n QuireKitComboboxSlots\n} from \"../../components/combobox/types\";\nimport QuireIcon from \"../icon/icon.vue\";\nimport { useModalPortal } from \"../shared/surface/use-modal-portal\";\nimport { useComboboxForm } from \"./form\";\nimport { useComboboxModel } from \"./use-combobox-model\";\nimport { useQuireKitMessages } from \"../locale-provider/context\";\n\n/** 可搜索单选表单控件的公开事件。 */\ninterface Emits {\n /** 同步受控的单个语义值。 */\n \"update:modelValue\": [value: string | undefined];\n /** 用户完成一次值选择或清除。 */\n valueChange: [value: string | undefined];\n /** 同步受控的可见输入文本。 */\n \"update:inputValue\": [value: string];\n /** 用户输入、选择或清除后可见文本发生变化。 */\n inputValueChange: [value: string];\n /** 浮层打开状态发生变化。 */\n openChange: [open: boolean];\n /** 同步受控浮层状态。 */\n \"update:open\": [open: boolean];\n}\n\nconst portal = useQuireOverlayHost();\nconst props = withDefaults(defineProps<QuireKitComboboxProps>(), {\n open: undefined,\n showSearchIcon: true,\n size: \"sm\",\n variant: \"outline\",\n width: \"200px\",\n border: \"none\",\n placement: \"bottom-start\",\n filter: \"contains\",\n loading: false,\n allowCustomValue: false,\n openOnClick: true,\n clearable: true,\n portalled: true,\n disabled: false,\n invalid: false,\n required: false,\n readOnly: false\n});\nconst emit = defineEmits<Emits>();\nconst text = useQuireKitMessages(\"combobox\");\ndefineSlots<QuireKitComboboxSlots>();\nconst {\n collection,\n contentStyle,\n controlStyle,\n groupedItems,\n inputValue: visibleInputValue,\n open: comboboxOpen,\n optionalRootBindings,\n positioning,\n reset,\n selectedValues,\n updateInputValue,\n updateOpen,\n updateValue\n} = useComboboxModel(props, emit);\nconst formField = shallowRef<HTMLInputElement | null>(null);\nuseComboboxForm(props, formField, () => selectedValues.value[0], () => visibleInputValue.value, reset, () => text.value.required);\nconst { hasModalOwner: ownedByModal, disabled: portalDisabled } = useModalPortal(() => props.portalled, () => comboboxOpen.value);\n</script>\n\n<template>\n <Combobox.Root\n v-bind=\"optionalRootBindings\"\n :collection=\"collection\"\n :model-value=\"selectedValues\"\n :input-value=\"visibleInputValue\"\n :open=\"comboboxOpen\"\n :placeholder=\"placeholder ?? text.placeholder\"\n :disabled=\"disabled\"\n :invalid=\"invalid\"\n :read-only=\"readOnly\"\n :allow-custom-value=\"allowCustomValue\"\n :open-on-click=\"openOnClick\"\n :open-on-change=\"true\"\n :close-on-select=\"true\"\n :selection-behavior=\"'replace'\"\n :input-behavior=\"'autohighlight'\"\n :loop-focus=\"true\"\n :lazy-mount=\"true\"\n :unmount-on-exit=\"true\"\n :positioning=\"positioning\"\n class=\"qk-combobox\"\n @update:model-value=\"updateValue\"\n @update:input-value=\"updateInputValue\"\n @update:open=\"updateOpen\"\n >\n <Combobox.Label class=\"qk-combobox__label\">{{ label }}</Combobox.Label>\n <Combobox.Control\n :style=\"controlStyle\"\n :class=\"['qk-combobox__control', `qk-combobox__control--${size}`]\"\n :data-variant=\"variant\"\n >\n <span v-if=\"showSearchIcon\" aria-hidden=\"true\" class=\"qk-combobox__search-icon\">\n <QuireIcon name=\"search\" :size=\"16\" />\n </span>\n <Combobox.Input :required=\"false\" :aria-required=\"required || undefined\" class=\"qk-combobox__input\" />\n <span v-if=\"clearable\" class=\"qk-combobox__clear-slot\">\n <Combobox.ClearTrigger\n v-if=\"visibleInputValue.length > 0 && !readOnly\"\n :aria-label=\"text.clear\"\n class=\"qk-combobox__clear-trigger\"\n >\n <QuireIcon name=\"close\" :size=\"16\" />\n </Combobox.ClearTrigger>\n </span>\n <Combobox.Trigger :aria-label=\"text.open\" class=\"qk-combobox__trigger\">\n <QuireIcon name=\"chevronDown\" :size=\"16\" />\n </Combobox.Trigger>\n </Combobox.Control>\n\n <Teleport :to=\"portal.target.value\" :disabled=\"portalDisabled\">\n <QuireThemePortal>\n <Combobox.Positioner :class=\"['qk-combobox__positioner', ownedByModal && 'qk-combobox__positioner--modal']\">\n <Combobox.Content\n v-bind=\"contentProps\"\n :style=\"[contentStyle, contentProps?.style as StyleValue]\"\n :class=\"[contentProps?.class, 'qk-combobox__content', `qk-combobox__content--${contentDensity ?? (size === 'xs' || size === 'sm' ? 'compact' : 'regular')}`, `qk-combobox__content--border-${border}`]\"\n >\n <div v-if=\"loading\" class=\"qk-combobox__status\" role=\"status\">\n <slot name=\"loading\">{{ text.loading }}</slot>\n </div>\n <Combobox.List v-else class=\"qk-combobox__list\">\n <Combobox.Empty class=\"qk-combobox__status\">\n <slot name=\"empty\">{{ text.empty }}</slot>\n </Combobox.Empty>\n <template v-for=\"group in groupedItems\" :key=\"group.label === undefined ? 'ungrouped' : `group:${group.label}`\">\n <Combobox.ItemGroup v-if=\"group.label !== undefined\" class=\"qk-combobox__group\">\n <Combobox.ItemGroupLabel class=\"qk-combobox__group-label\">\n <slot name=\"groupLabel\" v-bind=\"group\">{{ group.label }}</slot>\n </Combobox.ItemGroupLabel>\n <Combobox.Item\n v-for=\"item in group.items\"\n :key=\"item.value\"\n :item=\"item\"\n class=\"qk-combobox__item\"\n >\n <Combobox.ItemText class=\"qk-combobox__item-text\">\n <slot name=\"item\" :item=\"item\">\n <span class=\"qk-combobox__item-label\">{{ item.label }}</span>\n </slot>\n </Combobox.ItemText>\n <Combobox.ItemIndicator class=\"qk-combobox__item-indicator\">\n <QuireIcon name=\"check\" :size=\"16\" />\n </Combobox.ItemIndicator>\n </Combobox.Item>\n </Combobox.ItemGroup>\n <template v-else>\n <Combobox.Item\n v-for=\"item in group.items\"\n :key=\"item.value\"\n :item=\"item\"\n class=\"qk-combobox__item\"\n >\n <Combobox.ItemText class=\"qk-combobox__item-text\">\n <slot name=\"item\" :item=\"item\">\n <span class=\"qk-combobox__item-label\">{{ item.label }}</span>\n </slot>\n </Combobox.ItemText>\n <Combobox.ItemIndicator class=\"qk-combobox__item-indicator\">\n <QuireIcon name=\"check\" :size=\"16\" />\n </Combobox.ItemIndicator>\n </Combobox.Item>\n </template>\n </template>\n </Combobox.List>\n </Combobox.Content>\n </Combobox.Positioner>\n </QuireThemePortal>\n </Teleport>\n <!-- Ark's text input owns editing; this field submits the selected semantic value. -->\n <input ref=\"formField\" type=\"hidden\" :name=\"name\" :form=\"form\" :value=\"selectedValues[0] ?? ''\" :disabled=\"disabled\" />\n </Combobox.Root>\n</template>\n","import type { ComputedRef, InjectionKey } from \"vue\";\nimport type { QuireKitDrawerSide } from \"../../components/drawer\";\nimport type { DrawerInteractionContext } from \"./types\";\n\n/** Drawer 子组件读取逻辑边缘时使用的内部依赖注入键。 */\nexport const drawerSideKey: InjectionKey<ComputedRef<QuireKitDrawerSide>> = Symbol(\"quire-drawer-side\");\n\n/** Keeps closing and drag policies local to their owning Drawer. */\nexport const drawerInteractionKey: InjectionKey<DrawerInteractionContext> = Symbol(\"quire-drawer-interaction\");\n","<script setup lang=\"ts\">\nimport { Drawer } from \"@ark-ui/vue/drawer\";\nimport { inject } from \"vue\";\nimport { drawerSideKey } from \"./context\";\n\n/** Drawer CloseTrigger 的公开属性。 */\ninterface Props {\n /** 是否把关闭行为合并到唯一子元素。 */\n readonly asChild?: boolean;\n /** 是否禁止当前关闭动作。 */\n readonly disabled?: boolean;\n}\n\n/** Drawer CloseTrigger 的组合内容。 */\ninterface Slots {\n /** 关闭按钮内容。 */\n readonly default: () => unknown;\n}\n\nwithDefaults(defineProps<Props>(), { asChild: false, disabled: false });\ndefineSlots<Slots>();\nconst side = inject(drawerSideKey);\n</script>\n\n<template>\n <Drawer.CloseTrigger\n :as-child=\"asChild\"\n :disabled=\"disabled\"\n :class=\"!asChild && ['qk-drawer__close-trigger', side === 'bottom' && 'qk-drawer__close-trigger--touch']\"\n >\n <slot />\n </Drawer.CloseTrigger>\n</template>\n","<script setup lang=\"ts\">\nimport QuireThemePortal from \"../theme-provider/portal.vue\";\nimport { Drawer } from \"@ark-ui/vue/drawer\";\nimport { computed, inject } from \"vue\";\nimport type { DrawerContentFrameProps as Props } from \"./types\";\nimport QuireIcon from \"../icon/icon.vue\";\nimport { drawerInteractionKey, drawerSideKey } from \"./context\";\nimport { useQuireKitMessages } from \"../locale-provider/context\";\n\n/** Drawer Content 的固定内容区域。 */\ninterface Slots {\n /** Complete fixed header; internal task templates supply one header element. */\n readonly header?: () => unknown;\n /** 独立滚动的面板正文。 */\n readonly default: () => unknown;\n /** 标题区右侧的附加动作。 */\n readonly headerActions?: () => unknown;\n /** 固定在正文下方的操作区。 */\n readonly footer?: () => unknown;\n}\n\nconst props = withDefaults(defineProps<Props>(), {\n size: \"medium\",\n draggable: undefined,\n showGrabber: undefined,\n showBackdrop: true,\n portalTarget: \"body\",\n portalled: true,\n showClose: true\n});\ndefineSlots<Slots>();\nconst text = useQuireKitMessages(\"drawer\");\n\nconst side = inject(drawerSideKey);\nconst interaction = inject(drawerInteractionKey);\nif (side === undefined || interaction === undefined) {\n throw new Error(\"QuireDrawerContent must be used inside QuireDrawerRoot.\");\n}\nconst contentDraggable = computed(() => interaction.dragEnabled.value && (props.draggable ?? side.value !== \"bottom\"));\nconst grabberVisible = computed(() => interaction.dragEnabled.value && (props.showGrabber ?? side.value === \"bottom\"));\n</script>\n\n<template>\n <Teleport :to=\"portalTarget\" :disabled=\"!portalled\">\n <QuireThemePortal>\n <Drawer.Backdrop v-if=\"showBackdrop\" class=\"qk-drawer__backdrop\" />\n <Drawer.Positioner :class=\"['qk-drawer__positioner', `qk-drawer__positioner--${side}`]\">\n <Drawer.Content\n :inert=\"contentInert || undefined\"\n :aria-hidden=\"contentInert || undefined\"\n :draggable=\"contentDraggable\"\n :class=\"['qk-drawer__content', `qk-drawer__content--${side}`, `qk-drawer__content--${size}`, contentClass]\"\n :style=\"contentStyle\"\n >\n <slot name=\"header\">\n <header :class=\"['qk-drawer__header', side === 'bottom' && 'qk-drawer__header--bottom']\">\n <Drawer.Grabber v-if=\"grabberVisible\" aria-hidden=\"true\" class=\"qk-drawer__grabber\">\n <Drawer.GrabberIndicator class=\"qk-drawer__grabber-indicator\" />\n </Drawer.Grabber>\n <span class=\"qk-drawer__heading\">\n <Drawer.Title class=\"qk-drawer__title\">{{ title }}</Drawer.Title>\n <Drawer.Description v-if=\"description\" class=\"qk-drawer__description\">{{ description }}</Drawer.Description>\n </span>\n <span v-if=\"$slots.headerActions || showClose\" class=\"qk-drawer__header-actions\">\n <slot name=\"headerActions\" />\n <Drawer.CloseTrigger v-if=\"showClose\" :aria-label=\"text.close\" :class=\"['qk-drawer__close-trigger', side === 'bottom' && 'qk-drawer__close-trigger--touch']\">\n <QuireIcon name=\"close\" :size=\"16\" />\n </Drawer.CloseTrigger>\n </span>\n </header>\n </slot>\n <div :class=\"['qk-drawer__body', side === 'bottom' && 'qk-drawer__body--bottom']\" :style=\"bodyStyle\"><slot /></div>\n <footer v-if=\"$slots.footer\" :class=\"['qk-drawer__footer', side === 'bottom' && 'qk-drawer__footer--bottom']\"><slot name=\"footer\" /></footer>\n </Drawer.Content>\n </Drawer.Positioner>\n </QuireThemePortal>\n </Teleport>\n</template>\n","<script setup lang=\"ts\">\nimport DrawerContentFrame from \"./content-frame.vue\";\nimport type { DrawerContentProps as Props } from \"./types\";\n\n/** Drawer Content 的固定内容区域。 */\ninterface Slots {\n /** 独立滚动的面板正文。 */\n readonly default: () => unknown;\n /** 标题区右侧的附加动作。 */\n readonly headerActions?: () => unknown;\n /** 固定在正文下方的操作区。 */\n readonly footer?: () => unknown;\n}\n\nconst props = withDefaults(defineProps<Props>(), {\n size: \"medium\",\n draggable: undefined,\n showGrabber: undefined,\n showBackdrop: true,\n portalTarget: \"body\",\n portalled: true,\n showClose: true\n});\ndefineSlots<Slots>();\n\n// The public Teleport wrapper has no attribute target; keep private frame hooks private.\ndefineOptions({ inheritAttrs: false });\n</script>\n\n<template>\n <DrawerContentFrame v-bind=\"props\" :description=\"props.description ?? ''\">\n <slot />\n <template v-if=\"$slots.headerActions\" #headerActions><slot name=\"headerActions\" /></template>\n <template v-if=\"$slots.footer\" #footer><slot name=\"footer\" /></template>\n </DrawerContentFrame>\n</template>\n","import type { QuireKitDrawerCloseReason, QuireKitDrawerCloseRequest, QuireKitDrawerRootApi } from \"../../components/drawer\";\nimport type { DrawerCloseBoundaryOptions } from \"./types\";\n\n/**\n * Creates a synchronous close gate without owning a second open state machine.\n * @param options - Current model, request notification, and accepted transition.\n * @returns The common task and interaction close entry.\n */\nexport function createDrawerCloseBoundary(options: DrawerCloseBoundaryOptions): QuireKitDrawerRootApi {\n let requesting = false;\n\n /**\n * Keeps reentrant listeners from executing or closing a task twice.\n * @param reason - Entry requesting the transition.\n * @returns Whether the current request was accepted.\n */\n function requestClose(reason: QuireKitDrawerCloseReason = \"programmatic\"): boolean {\n if (requesting || !options.isOpen()) return false;\n requesting = true;\n let prevented = false;\n const request: QuireKitDrawerCloseRequest = {\n reason,\n get defaultPrevented() { return prevented; },\n /** Rejects this close intent before the model is updated. */\n preventDefault() { prevented = true; }\n };\n try {\n options.notify(request);\n if (prevented) return false;\n if (options.isOpen()) options.close();\n return true;\n } finally {\n requesting = false;\n }\n }\n\n return { requestClose };\n}\n","import { useDrawer, type UseDrawerProps } from \"@ark-ui/vue/drawer\";\nimport { computed, provide, ref } from \"vue\";\nimport { createDrawerCloseBoundary } from \"./close-boundary\";\nimport { drawerInteractionKey, drawerSideKey } from \"./context\";\nimport type { DrawerRuntime, DrawerRuntimeEvents, DrawerRuntimeIdentity, DrawerRuntimeProps } from \"./types\";\n\n/**\n * Connects one guarded public model to Ark's existing focus and gesture machine.\n * @param props - Current public root properties.\n * @param events - Public model and task notifications.\n * @param identity - Optional private anatomy identity for a persistent external trigger.\n * @returns The Ark provider value and common imperative close entry.\n */\nexport function useDrawerRuntime(props: DrawerRuntimeProps, events: DrawerRuntimeEvents, identity?: DrawerRuntimeIdentity): DrawerRuntime {\n const internalOpen = ref(props.defaultOpen ?? false);\n const open = computed(() => props.open ?? internalOpen.value);\n // Zag 1.43.3 has no public drag rollback after a controlled veto; guarded tasks never start a drag.\n const dragEnabled = computed(() => props.dragEnabled !== false && props.onCloseRequest === undefined);\n const side = computed(() => props.side ?? \"end\");\n\n /** Commits uncontrolled state or requests the controlled model's matching transition. */\n function commitClose(): void {\n if (props.open === undefined) internalOpen.value = false;\n events.updateOpen(false);\n events.openChange(false);\n }\n\n const { requestClose } = createDrawerCloseBoundary({\n isOpen: () => open.value,\n notify: events.closeRequest,\n close: commitClose\n });\n\n const bindings = computed<UseDrawerProps>(() => ({\n ...(identity === undefined ? {} : { id: identity.id, ids: identity.ids }),\n open: open.value,\n swipeDirection: side.value === \"bottom\" ? \"down\" : side.value,\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 snapPoints: props.snapPoints,\n snapToSequentialPoints: props.snapToSequentialPoints ?? false,\n preventDragOnScroll: props.preventDragOnScroll ?? true,\n ...(props.snapPoint === undefined ? {} : { snapPoint: props.snapPoint }),\n ...(props.defaultSnapPoint === undefined ? {} : { defaultSnapPoint: props.defaultSnapPoint }),\n ...(props.triggerValue === undefined ? {} : { triggerValue: props.triggerValue }),\n ...(props.defaultTriggerValue === undefined ? {} : { defaultTriggerValue: props.defaultTriggerValue }),\n ...(props.initialFocusEl === undefined ? {} : { initialFocusEl: props.initialFocusEl }),\n ...(props.finalFocusEl === undefined ? {} : { finalFocusEl: props.finalFocusEl }),\n /** @param event - Topmost-layer Escape request supplied by Zag. */\n onEscapeKeyDown(event) {\n if (!event.defaultPrevented && props.closeOnEscape !== false) requestClose(\"escape\");\n event.preventDefault();\n },\n /** @param event - Outside interaction already filtered through Zag's nested layer stack. */\n onInteractOutside(event) {\n if (!event.defaultPrevented && props.closeOnInteractOutside !== false) requestClose(\"outside\");\n event.preventDefault();\n },\n /** @param details - Gesture or opening transition from the original machine. */\n onOpenChange(details) {\n if (!details.open) {\n requestClose(drawer.value.dragging ? \"swipe\" : \"programmatic\");\n return;\n }\n if (props.open === undefined) internalOpen.value = true;\n events.updateOpen(true);\n events.openChange(true);\n },\n onSnapPointChange: events.snapPointChange,\n onTriggerValueChange: events.triggerValueChange\n }));\n const drawer = useDrawer(bindings);\n\n // Keep Ark anatomy and opening behavior while routing its public close entries through one task gate.\n const api = computed(() => ({\n ...drawer.value,\n /** @param next - Requested open state from a composed part. */\n setOpen(next: boolean) {\n if (next) drawer.value.setOpen(true);\n else requestClose(\"programmatic\");\n },\n /** @returns Ark close anatomy with the common cancelable close entry. */\n getCloseTriggerProps() {\n return {\n ...drawer.value.getCloseTriggerProps(),\n /** @param event - Native or keyboard-generated button activation. */\n onClick(event: PointerEvent) {\n if (!event.defaultPrevented) requestClose(\"close-trigger\");\n }\n };\n },\n /** @param options - Stable multi-trigger identity. @returns Ark trigger anatomy and opening behavior. */\n getTriggerProps(options?: Parameters<typeof drawer.value.getTriggerProps>[0]) {\n const trigger = drawer.value.getTriggerProps(options);\n return {\n ...trigger,\n /** @param event - Native or keyboard-generated trigger activation. */\n onClick(event: PointerEvent) {\n if (event.defaultPrevented) return;\n const switchesTrigger = options?.value !== undefined && options.value !== drawer.value.triggerValue;\n if (drawer.value.open && !switchesTrigger) requestClose(\"trigger\");\n else trigger.onClick?.(event);\n }\n };\n }\n }));\n\n provide(drawerSideKey, side);\n provide(drawerInteractionKey, { dragEnabled, requestClose });\n return { api, requestClose };\n}\n","<script setup lang=\"ts\">\nimport { Drawer } from \"@ark-ui/vue/drawer\";\nimport type { QuireKitDrawerRootProps } from \"../../components/drawer\";\nimport { useDrawerRuntime } from \"./use-runtime\";\n\n/** Drawer Root 的公开事件。 */\ninterface Emits {\n /** 同步受控打开状态。 */\n \"update:open\": [open: boolean];\n /** 通知一次语义打开状态变化。 */\n openChange: [open: boolean];\n /** 同步受控停靠位置。 */\n \"update:snapPoint\": [snapPoint: number | string | null];\n /** 通知一次停靠位置变化。 */\n snapPointChange: [snapPoint: number | string | null];\n /** 同步受控 Trigger 标识。 */\n \"update:triggerValue\": [triggerValue: string | null];\n /** 通知一次 Trigger 标识变化。 */\n triggerValueChange: [triggerValue: string | null];\n /** 通知退出动画已经完成。 */\n exitComplete: [];\n}\n\n/** Drawer Root 的组合内容。 */\ninterface Slots {\n /** Trigger 与 Content 的组合树。 */\n readonly default: () => unknown;\n}\n\nconst props = withDefaults(defineProps<QuireKitDrawerRootProps>(), {\n open: undefined,\n defaultOpen: false,\n side: \"end\",\n role: \"dialog\",\n modal: true,\n trapFocus: true,\n preventScroll: true,\n restoreFocus: true,\n closeOnEscape: true,\n closeOnInteractOutside: true,\n snapPoints: () => [1],\n snapToSequentialPoints: false,\n preventDragOnScroll: true,\n dragEnabled: true,\n lazyMount: true,\n unmountOnExit: true\n});\nconst emit = defineEmits<Emits>();\ndefineSlots<Slots>();\nconst { api, requestClose } = useDrawerRuntime(props, {\n updateOpen: open => emit(\"update:open\", open),\n openChange: open => emit(\"openChange\", open),\n closeRequest: request => props.onCloseRequest?.(request),\n snapPointChange: details => {\n emit(\"update:snapPoint\", details.snapPoint);\n emit(\"snapPointChange\", details.snapPoint);\n },\n triggerValueChange: details => {\n emit(\"update:triggerValue\", details.value);\n emit(\"triggerValueChange\", details.value);\n }\n});\ndefineExpose({ requestClose });\n</script>\n\n<template>\n <Drawer.RootProvider\n :value=\"api\"\n :lazy-mount=\"lazyMount\"\n :unmount-on-exit=\"unmountOnExit\"\n @exit-complete=\"emit('exitComplete')\"\n >\n <slot />\n </Drawer.RootProvider>\n</template>\n","<script setup lang=\"ts\">\nimport { Drawer } from \"@ark-ui/vue/drawer\";\nimport { computed } from \"vue\";\n\n/** Drawer Trigger 的公开属性。 */\ninterface Props {\n /** 是否将打开行为合并到唯一子元素。 */\n readonly asChild?: boolean;\n /** 多 trigger 场景的稳定值。 */\n readonly value?: string;\n}\n\n/** Drawer Trigger 的组合内容。 */\ninterface Slots {\n /** 接收 trigger 行为的唯一内容。 */\n readonly default: () => unknown;\n}\n\nconst props = withDefaults(defineProps<Props>(), { asChild: false });\ndefineSlots<Slots>();\n\nconst optionalBindings = computed(() => (\n props.value === undefined ? {} : { value: props.value }\n));\n</script>\n\n<template>\n <Drawer.Trigger v-bind=\"optionalBindings\" :as-child=\"asChild\" class=\"qk-drawer__trigger\">\n <slot />\n </Drawer.Trigger>\n</template>\n","<script setup lang=\"ts\">\nimport { NumberInput } from \"@ark-ui/vue/number-input\";\nimport type {\n NumberInputFocusChangeDetails,\n NumberInputValueChangeDetails,\n NumberInputValueInvalidDetails\n} from \"@ark-ui/vue/number-input\";\nimport { computed, ref, useAttrs, watch } from \"vue\";\nimport type {\n QuireKitNumberInputProps,\n QuireKitNumberInputFocusChange,\n QuireKitNumberInputValueChange,\n QuireKitNumberInputValueInvalid\n} from \"../../components/input-number\";\nimport QuireIcon from \"../icon/icon.vue\";\nimport { useQuireKitLocale, useQuireKitMessages } from \"../locale-provider/context\";\nimport { useFieldLabel } from \"../field/context\";\n\ndefineOptions({ inheritAttrs: false });\n\n/** InputNumber 的公开事件。 */\ninterface Emits {\n /** 同步受控的本地化数值字符串。 */\n \"update:modelValue\": [value: string];\n /** 数值变化及数值投影。 */\n valueChange: [details: QuireKitNumberInputValueChange];\n /** 焦点变化及当时数值。 */\n focusChange: [details: QuireKitNumberInputFocusChange];\n /** 数值违反范围约束。 */\n valueInvalid: [details: QuireKitNumberInputValueInvalid];\n}\n\nconst props = withDefaults(defineProps<QuireKitNumberInputProps>(), {\n defaultValue: \"\",\n size: \"sm\",\n width: \"160px\",\n allowMouseWheel: false,\n allowOverflow: true,\n clampValueOnBlur: true,\n focusInputOnChange: true,\n inputMode: \"decimal\",\n invalid: false,\n readOnly: false,\n required: false,\n spinOnPress: true,\n step: 1,\n disabled: false\n});\nconst emit = defineEmits<Emits>();\nconst attrs = useAttrs();\nconst text = useQuireKitMessages(\"inputNumber\");\nconst locale = useQuireKitLocale();\nconst rootAttrs = computed(() => Object.fromEntries(\n Object.entries(attrs).filter(([name]) => !name.startsWith(\"aria-\"))\n));\nconst inputAttrs = computed(() => Object.fromEntries(\n Object.entries(attrs).filter(([name]) => name.startsWith(\"aria-\"))\n));\nconst inputLabel = computed(() => typeof attrs[\"aria-label\"] === \"string\" ? attrs[\"aria-label\"] : props.label);\nconst fieldLabel = useFieldLabel();\nconst emptyHint = computed(() => {\n const label = inputLabel.value || fieldLabel.value;\n return props.placeholder ?? (label ? text.value.fieldPlaceholder(label) : text.value.placeholder);\n});\nconst internalValue = ref(props.modelValue ?? props.defaultValue);\nconst currentValue = computed(() => props.modelValue ?? internalValue.value);\nconst rootStyle = computed(() => ({ width: props.width }));\nconst optionalBindings = computed(() => ({\n ...(props.form === undefined ? {} : { form: props.form }),\n ...(props.formatOptions === undefined ? {} : { formatOptions: props.formatOptions }),\n ...(props.id === undefined ? {} : { id: props.id }),\n ...(props.ids === undefined ? {} : { ids: props.ids }),\n ...(props.largeStep === undefined ? {} : { largeStep: props.largeStep }),\n ...(props.max === undefined ? {} : { max: props.max }),\n ...(props.min === undefined ? {} : { min: props.min }),\n ...(props.name === undefined ? {} : { name: props.name }),\n ...(props.pattern === undefined ? {} : { pattern: props.pattern }),\n ...(props.smallStep === undefined ? {} : { smallStep: props.smallStep }),\n translations: {\n incrementLabel: text.value.increment(props.label),\n decrementLabel: text.value.decrement(props.label)\n }\n}));\n\nwatch(() => props.modelValue, (value) => {\n if (value !== undefined) internalValue.value = value;\n});\n\n/**\n * 同步 Ark 的字符串模型。\n *\n * @param value - Ark Number Input 返回的本地化字符串。\n */\nfunction updateValue(value: string): void {\n internalValue.value = value;\n emit(\"update:modelValue\", value);\n}\n\n/**\n * 投影稳定的值变化详情。\n *\n * @param details - Ark Number Input 值变化详情。\n */\nfunction emitValueChange(details: NumberInputValueChangeDetails): void {\n emit(\"valueChange\", { value: details.value, valueAsNumber: details.valueAsNumber });\n}\n\n/**\n * 投影稳定的焦点变化详情。\n *\n * @param details - Ark Number Input 焦点变化详情。\n */\nfunction emitFocusChange(details: NumberInputFocusChangeDetails): void {\n emit(\"focusChange\", {\n value: details.value,\n valueAsNumber: details.valueAsNumber,\n focused: details.focused\n });\n}\n\n/**\n * 投影稳定的越界详情。\n *\n * @param details - Ark Number Input 越界详情。\n */\nfunction emitValueInvalid(details: NumberInputValueInvalidDetails): void {\n emit(\"valueInvalid\", {\n value: details.value,\n valueAsNumber: details.valueAsNumber,\n reason: details.reason\n });\n}\n</script>\n\n<template>\n <NumberInput.Root\n v-bind=\"{ ...rootAttrs, ...optionalBindings }\"\n :model-value=\"currentValue\"\n :allow-mouse-wheel=\"allowMouseWheel\"\n :allow-overflow=\"allowOverflow\"\n :clamp-value-on-blur=\"clampValueOnBlur\"\n :focus-input-on-change=\"focusInputOnChange\"\n :input-mode=\"inputMode\"\n :invalid=\"invalid\"\n :locale=\"locale\"\n :read-only=\"readOnly\"\n :required=\"required\"\n :spin-on-press=\"spinOnPress\"\n :step=\"step\"\n :disabled=\"disabled\"\n :style=\"rootStyle\"\n :class=\"[\n 'qk-input-number',\n `qk-input-number--${size}`,\n invalid && 'qk-input-number--invalid'\n ]\"\n @update:model-value=\"updateValue\"\n @value-change=\"emitValueChange\"\n @focus-change=\"emitFocusChange\"\n @value-invalid=\"emitValueInvalid\"\n >\n <NumberInput.Control\n :class=\"[\n 'qk-input-number__control',\n 'group',\n invalid && 'qk-input-number__control--invalid'\n ]\"\n >\n <NumberInput.Input v-bind=\"inputAttrs\" :placeholder=\"emptyHint\" :aria-label=\"inputLabel\" class=\"qk-input-number__input\" />\n <span class=\"qk-input-number__stepper\">\n <NumberInput.IncrementTrigger class=\"qk-input-number__stepper-button\" tabindex=\"-1\">\n <QuireIcon name=\"triangleUp\" :size=\"12\" />\n </NumberInput.IncrementTrigger>\n <NumberInput.DecrementTrigger class=\"qk-input-number__stepper-button\" tabindex=\"-1\">\n <QuireIcon name=\"triangleDown\" :size=\"12\" />\n </NumberInput.DecrementTrigger>\n </span>\n </NumberInput.Control>\n </NumberInput.Root>\n</template>\n","<script setup lang=\"ts\">\nimport { ColorPicker, useColorPickerContext } from \"@ark-ui/vue/color-picker\";\nimport { computed } from \"vue\";\nimport type { QuireKitColorInputFormat } from \"../../components/color-picker\";\nimport QuireInputNumber from \"../input-number/input-number.vue\";\nimport { useQuireKitMessages } from \"../locale-provider/context\";\n\ntype NumericFormat = Exclude<QuireKitColorInputFormat, \"hex\">;\ntype NumericChannel = \"red\" | \"green\" | \"blue\" | \"hue\" | \"saturation\" | \"lightness\" | \"brightness\";\n\n/** 单个颜色通道输入的稳定定义。 */\ninterface ChannelDefinition {\n /** Ark 颜色对象中的通道名称。 */\n readonly channel: NumericChannel;\n /** 紧凑输入上方的可见缩写。 */\n readonly label: string;\n /** 允许输入的最小值。 */\n readonly min: number;\n /** 允许输入的最大值。 */\n readonly max: number;\n}\n\n/** 带当前投影值的颜色通道输入。 */\ninterface ProjectedChannel extends ChannelDefinition {\n /** 当前颜色在目标颜色空间中的通道值。 */\n readonly value: number;\n}\n\n/** 颜色格式通道输入的公开属性。 */\ninterface Props {\n /** 当前显示的颜色输入格式。 */\n readonly format: QuireKitColorInputFormat;\n}\n\nconst props = defineProps<Props>();\nconst text = useQuireKitMessages(\"colorPicker\");\nconst picker = useColorPickerContext();\nconst inputState = computed(() => picker.value.getChannelInputProps({ channel: \"hex\" }));\nconst channelDefinitions: Record<NumericFormat, readonly ChannelDefinition[]> = {\n rgb: [\n { channel: \"red\", label: \"R\", min: 0, max: 255 },\n { channel: \"green\", label: \"G\", min: 0, max: 255 },\n { channel: \"blue\", label: \"B\", min: 0, max: 255 }\n ],\n hsl: [\n { channel: \"hue\", label: \"H\", min: 0, max: 360 },\n { channel: \"saturation\", label: \"S\", min: 0, max: 100 },\n { channel: \"lightness\", label: \"L\", min: 0, max: 100 }\n ],\n hsb: [\n { channel: \"hue\", label: \"H\", min: 0, max: 360 },\n { channel: \"saturation\", label: \"S\", min: 0, max: 100 },\n { channel: \"brightness\", label: \"B\", min: 0, max: 100 }\n ]\n};\nconst machineFormats = { rgb: \"rgba\", hsl: \"hsla\", hsb: \"hsba\" } as const;\nconst projectedChannels = computed<readonly ProjectedChannel[]>(() => {\n if (props.format === \"hex\") return [];\n const color = picker.value.value.toFormat(machineFormats[props.format]);\n return channelDefinitions[props.format].map(definition => ({\n ...definition,\n value: Math.round(color.getChannelValue(definition.channel))\n }));\n});\n\n/**\n * Preserves a complete HEX draft even when closing a popup removes the focused\n * field without a blur event. Partial input still belongs to the native field;\n * Ark retains responsibility for Enter/blur normalization and final commits.\n * @param event - Native channel input, including composition ownership.\n */\nfunction previewHex(event: InputEvent): void {\n if (event.isComposing || inputState.value.disabled || inputState.value.readonly) return;\n const value = (event.target as HTMLInputElement).value.trim();\n if (!/^#?(?:[\\da-f]{6}|[\\da-f]{8})$/iu.test(value)) return;\n picker.value.setValue(value.startsWith(\"#\") ? value : `#${value}`);\n}\n\n/**\n * 把目标颜色空间的一个通道写回同一 Ark machine。\n *\n * @param channel - 要更新的目标颜色通道。\n * @param value - InputNumber 返回的本地化数值字符串。\n */\nfunction updateChannel(channel: NumericChannel, value: string): void {\n if (props.format === \"hex\" || inputState.value.disabled || inputState.value.readonly) return;\n const parsedValue = Number.parseFloat(value);\n if (!Number.isFinite(parsedValue)) return;\n\n const values = Object.fromEntries(projectedChannels.value.map(item => [item.channel, item.value]));\n const definition = channelDefinitions[props.format].find(item => item.channel === channel);\n if (definition === undefined) return;\n values[channel] = Math.min(definition.max, Math.max(definition.min, parsedValue));\n const alpha = picker.value.alpha;\n\n if (props.format === \"rgb\") {\n picker.value.setValue(`rgba(${values.red}, ${values.green}, ${values.blue}, ${alpha})`);\n } else if (props.format === \"hsl\") {\n picker.value.setValue(`hsla(${values.hue}, ${values.saturation}%, ${values.lightness}%, ${alpha})`);\n } else {\n picker.value.setValue(`hsba(${values.hue}, ${values.saturation}%, ${values.brightness}%, ${alpha})`);\n }\n}\n</script>\n\n<template>\n <ColorPicker.ChannelInput\n v-if=\"format === 'hex'\"\n channel=\"hex\"\n :aria-label=\"text.hexValue\"\n class=\"qk-color-picker__input\"\n @input=\"previewHex\"\n />\n <div v-else class=\"qk-color-picker__channel-inputs\">\n <label\n v-for=\"item in projectedChannels\"\n :key=\"item.channel\"\n class=\"qk-color-picker__input-group\"\n >\n <span>{{ item.label }}</span>\n <QuireInputNumber\n :model-value=\"String(item.value)\"\n :disabled=\"Boolean(inputState.disabled)\"\n :read-only=\"Boolean(inputState.readonly)\"\n :label=\"`${format.toUpperCase()} ${item.label}`\"\n :min=\"item.min\"\n :max=\"item.max\"\n :step=\"1\"\n size=\"md\"\n width=\"100%\"\n :data-channel=\"item.channel\"\n @update:model-value=\"updateChannel(item.channel, $event)\"\n />\n </label>\n </div>\n</template>\n","<script setup lang=\"ts\">\nimport { useQuireOverlayHost } from \"../overlay-provider\";\nimport QuireThemePortal from \"../theme-provider/portal.vue\";\nimport type { QuireKitListDensity } from \"../../components/control\";\n\nimport { Select, createListCollection } from \"@ark-ui/vue/select\";\nimport { computed, onMounted, ref, watch, type HTMLAttributes } from \"vue\";\nimport type {\n QuireKitSelectBorder,\n QuireKitSelectItem,\n QuireKitSelectLength,\n QuireKitSelectPlacement,\n QuireKitSelectSize\n} from \"../../components/select\";\nimport QuireIcon from \"../icon/icon.vue\";\nimport { useModalPortal } from \"../shared/surface/use-modal-portal\";\nimport { useQuireKitMessages } from \"../locale-provider/context\";\n\n/** 单选表单控件的公开属性。 */\ninterface Props {\n /** 受控的单个语义值。 */\n readonly modelValue?: string;\n /** 非受控模式的初始值。 */\n readonly defaultValue?: string;\n /** 按稳定顺序渲染的可用选项。 */\n readonly items: readonly QuireKitSelectItem[];\n /** 尚未选择时显示的提示;省略时取自语言包。 */\n readonly placeholder?: string | undefined;\n /** 触发器与列表的可访问名称。 */\n readonly label: string;\n /** 控件高度和排版尺寸。 */\n readonly size?: QuireKitSelectSize;\n /** Trigger appearance; text is a borderless action suitable for toolbars. Defaults to outline. */\n readonly variant?: \"outline\" | \"text\";\n /** Independent list density; defaults to compact for xs/sm triggers and regular otherwise. */\n readonly contentDensity?: QuireKitListDensity;\n /** 触发器的 CSS 宽度。 */\n readonly width?: QuireKitSelectLength;\n /** 浮层的独立 CSS 宽度;省略时跟随触发器。 */\n readonly contentWidth?: QuireKitSelectLength;\n /** 附加到浮层内容的主题、语言和归属属性。 */\n readonly contentProps?: HTMLAttributes;\n /** 浮层的可选边界强度;默认不显示边框。 */\n readonly border?: QuireKitSelectBorder;\n /** 浮层的首选方位。 */\n readonly placement?: QuireKitSelectPlacement;\n /** 是否把浮层传送到 body。 */\n readonly portalled?: boolean;\n /** 浮层相对自身普通或模态所属层的偏移;嵌套列表可使用 1。 */\n readonly layerOffset?: number;\n /** 是否禁用整个控件。 */\n readonly disabled?: boolean;\n /** 是否以错误状态呈现。 */\n readonly invalid?: boolean;\n /** 是否要求原生表单提交一个值。 */\n readonly required?: boolean;\n /** 是否允许聚焦但禁止修改值。 */\n readonly readOnly?: boolean;\n /** 原生隐藏 select 的字段名。 */\n readonly name?: string;\n /** 原生隐藏 select 关联的 form id。 */\n readonly form?: string;\n}\n\n/** 单选表单控件的公开事件。 */\ninterface Emits {\n /** 同步受控的单个语义值。 */\n \"update:modelValue\": [value: string | undefined];\n /** 用户完成一次值选择。 */\n valueChange: [value: string | undefined];\n}\n\n/** 自定义选项内容时获得的稳定上下文。 */\ninterface ItemSlotProps {\n /** 当前渲染的选项。 */\n readonly item: QuireKitSelectItem;\n}\n\n/** Select 的可替换内容位置。 */\ninterface Slots {\n /** 替换选项的可见内容,保留可访问名称。 */\n readonly item?: (props: ItemSlotProps) => unknown;\n}\n\nconst portal = useQuireOverlayHost();\nconst props = withDefaults(defineProps<Props>(), {\n size: \"sm\",\n variant: \"outline\",\n width: \"160px\",\n border: \"none\",\n placement: \"bottom-start\",\n portalled: true,\n layerOffset: 0,\n disabled: false,\n invalid: false,\n required: false,\n readOnly: false\n});\nconst text = useQuireKitMessages(\"select\");\nconst emit = defineEmits<Emits>();\ndefineSlots<Slots>();\n\nconst internalValue = ref(props.modelValue ?? props.defaultValue);\nconst open = defineModel<boolean | undefined>(\"open\", { default: undefined });\nconst internalOpen = ref(false);\nconst selectOpen = computed({\n get: () => open.value ?? internalOpen.value,\n set: (value: boolean) => {\n internalOpen.value = value;\n open.value = value;\n }\n});\nconst { hasModalOwner: ownedByModal, disabled: portalDisabled } = useModalPortal(() => props.portalled, () => selectOpen.value);\n// Async SSR boundaries must claim their own inline content before moving it to body.\n// Otherwise a faster sibling Select can consume this instance’s global portal anchor.\nconst mounted = ref(false);\nonMounted(() => { mounted.value = true; });\nconst collection = computed(() => createListCollection({\n items: [...props.items],\n itemToString: (item) => item.label,\n itemToValue: (item) => item.value,\n isItemDisabled: (item) => item.disabled === true\n}));\nconst selectedValues = computed(() => {\n const value = props.modelValue ?? internalValue.value;\n return value === undefined ? [] : [value];\n});\nconst optionalRootBindings = computed(() => ({\n ...(props.name === undefined ? {} : { name: props.name }),\n ...(props.form === undefined ? {} : { form: props.form })\n}));\nconst triggerStyle = computed(() => ({ width: props.width }));\nconst contentStyle = computed(() => ({ width: props.contentWidth ?? props.width }));\n// Portal DOM order can put the parent's layer after the child; preserve the modal owner's base.\nconst positionerStyle = computed(() => props.layerOffset === 0 ? undefined : ({\n \"--qk-select-layer\": `calc(var(${ownedByModal ? \"--qk-layer-modal\" : \"--qk-layer-overlay\"}) + ${props.layerOffset + (ownedByModal ? 1 : 0)})`\n}));\nconst positioning = computed(() => ({\n ...(portal.strategy.value ? { strategy: portal.strategy.value } : {}),\n placement: props.placement,\n gutter: 4,\n sameWidth: props.contentWidth === undefined\n}));\n\nwatch(() => props.modelValue, (value) => {\n if (value !== undefined) internalValue.value = value;\n});\n\n/**\n * 把 Ark 的单元素数组边界还原为公开的单值合同。\n *\n * @param values - Ark Select machine 返回的选择数组。\n */\nfunction updateValue(values: string[]): void {\n const value = values[0];\n selectOpen.value = false;\n internalValue.value = value;\n emit(\"update:modelValue\", value);\n emit(\"valueChange\", value);\n}\n</script>\n\n<template>\n <Select.Root :style=\"triggerStyle\"\n v-bind=\"optionalRootBindings\"\n :collection=\"collection\"\n :model-value=\"selectedValues\"\n :open=\"selectOpen\"\n :disabled=\"disabled\"\n :invalid=\"invalid\"\n :required=\"required\"\n :read-only=\"readOnly\"\n :close-on-select=\"true\"\n :lazy-mount=\"true\"\n :unmount-on-exit=\"true\"\n :positioning=\"positioning\"\n @update:model-value=\"updateValue\"\n @update:open=\"selectOpen = $event\"\n >\n <Select.Control class=\"qk-select__control\" style=\"width: 100%\">\n <Select.Trigger\n :aria-label=\"label\"\n :data-variant=\"variant\"\n style=\"width: 100%\"\n :class=\"['qk-select__trigger', `qk-select__trigger--${size}`]\"\n >\n <Select.ValueText :placeholder=\"placeholder ?? text.placeholder\" class=\"qk-select__value\" />\n <Select.Indicator class=\"qk-select__indicator\">\n <QuireIcon name=\"chevronDown\" :size=\"16\" />\n </Select.Indicator>\n </Select.Trigger>\n </Select.Control>\n\n <Teleport :to=\"portal.target.value\" :disabled=\"portalDisabled || !mounted\">\n <QuireThemePortal>\n <Select.Positioner :style=\"positionerStyle\" :class=\"['qk-select__positioner', ownedByModal && 'qk-select__positioner--modal']\">\n <Select.Content\n v-bind=\"contentProps\"\n :aria-label=\"label\"\n :style=\"[contentProps?.style, contentStyle]\"\n :class=\"['qk-select__content', `qk-select__content--${contentDensity ?? (size === 'xs' || size === 'sm' ? 'compact' : 'regular')}`, `qk-select__content--border-${border}`]\"\n >\n <Select.List class=\"qk-select__list\">\n <Select.Item\n v-for=\"item in items\"\n :key=\"item.value\"\n :item=\"item\"\n class=\"qk-select__item\"\n >\n <Select.ItemText class=\"qk-select__item-label\">\n <slot name=\"item\" :item=\"item\">{{ item.label }}</slot>\n </Select.ItemText>\n <Select.ItemIndicator class=\"qk-select__item-indicator\">\n <QuireIcon name=\"check\" :size=\"16\" />\n </Select.ItemIndicator>\n </Select.Item>\n </Select.List>\n </Select.Content>\n </Select.Positioner>\n </QuireThemePortal>\n </Teleport>\n <Select.HiddenSelect />\n </Select.Root>\n</template>\n","<script setup lang=\"ts\">\nimport { ColorPicker, useColorPickerContext } from \"@ark-ui/vue/color-picker\";\nimport { computed, onMounted, ref } from \"vue\";\nimport type { QuireKitColorInputFormat } from \"../../components/color-picker\";\nimport QuireColorChannelInputs from \"./color-channel-inputs.vue\";\nimport QuireIcon from \"../icon/icon.vue\";\nimport QuireInputNumber from \"../input-number/input-number.vue\";\nimport QuireSelect from \"../select/select.vue\";\nimport { useQuireKitMessages } from \"../locale-provider/context\";\n\n/** 精确颜色编辑器的公开属性。 */\ninterface Props {\n /** 编辑器区域的可访问名称,说明本实例编辑的是什么颜色;缺省取语言包。 */\n readonly label?: string | undefined;\n /** 是否显示透明度轨道与透明度输入。 */\n readonly showAlpha?: boolean;\n /** 是否显示浏览器原生屏幕取色动作。 */\n readonly showEyedropper?: boolean;\n /** 是否显示返回快捷色板的动作。 */\n readonly showBack?: boolean;\n /** 文本输入区开放的格式。 */\n readonly inputFormats?: readonly QuireKitColorInputFormat[];\n /** 文本输入区初始格式。 */\n readonly defaultInputFormat?: QuireKitColorInputFormat;\n}\n\n/** 精确颜色编辑器的公开事件。 */\ninterface Emits {\n /** 用户请求返回快捷色板。 */\n back: [];\n}\n\nconst props = withDefaults(defineProps<Props>(), {\n showAlpha: true,\n showEyedropper: true,\n showBack: false,\n inputFormats: () => [\"hex\", \"rgb\", \"hsl\", \"hsb\"],\n defaultInputFormat: \"hex\"\n});\nconst emit = defineEmits<Emits>();\nconst text = useQuireKitMessages(\"colorPicker\");\nconst picker = useColorPickerContext();\nconst inputState = computed(() => picker.value.getChannelInputProps({ channel: \"hex\" }));\nconst inputFormat = ref<QuireKitColorInputFormat>(props.defaultInputFormat);\nconst eyedropperSupported = ref(false);\nconst alphaValue = computed(() => picker.value.value.getChannelValue(\"alpha\"));\nconst inputFormatItems = computed(() => props.inputFormats.map((format) => ({\n value: format,\n label: format.toUpperCase()\n})));\n\nonMounted(() => {\n eyedropperSupported.value = \"EyeDropper\" in window;\n});\n\n/**\n * 切换文本输入格式,不改变 Ark machine 的当前颜色空间或实际颜色。\n *\n * @param value - Select 提交的输入格式。\n */\nfunction updateInputFormat(value: string | undefined): void {\n if (value !== undefined) inputFormat.value = value as QuireKitColorInputFormat;\n}\n\n/**\n * 把 InputNumber 的 0–1 数值写回 Ark alpha channel。\n *\n * @param value - InputNumber 返回的本地化数值字符串。\n */\nfunction updateAlpha(value: string): void {\n if (inputState.value.disabled || inputState.value.readonly) return;\n const alpha = Number.parseFloat(value);\n if (!Number.isFinite(alpha)) return;\n picker.value.setChannelValue(\"alpha\", Math.min(1, Math.max(0, alpha)));\n}\n</script>\n\n<template>\n <section class=\"qk-color-picker__editor\" :aria-label=\"label ?? text.editor\">\n <div v-if=\"showBack\" class=\"qk-color-picker__editor-header\">\n <button type=\"button\" class=\"qk-color-picker__back\" @click=\"emit('back')\">\n <span aria-hidden=\"true\">‹</span>\n <span>{{ text.back }}</span>\n </button>\n </div>\n\n <ColorPicker.Area\n x-channel=\"saturation\"\n y-channel=\"brightness\"\n class=\"qk-color-picker__area\"\n :aria-label=\"text.area\"\n >\n <ColorPicker.AreaBackground class=\"qk-color-picker__area-background\" />\n <ColorPicker.AreaThumb class=\"qk-color-picker__area-thumb\" />\n </ColorPicker.Area>\n\n <div class=\"qk-color-picker__slider-row\">\n <ColorPicker.EyeDropperTrigger\n v-if=\"showEyedropper\"\n type=\"button\"\n :disabled=\"!eyedropperSupported\"\n :aria-label=\"text.eyedropper\"\n :title=\"eyedropperSupported ? text.eyedropper : text.eyedropperUnsupported(text.eyedropper)\"\n class=\"qk-color-picker__eye-dropper\"\n >\n <QuireIcon name=\"pipette\" :size=\"20\" />\n </ColorPicker.EyeDropperTrigger>\n <div class=\"qk-color-picker__sliders\">\n <ColorPicker.ChannelSlider channel=\"hue\" class=\"qk-color-picker__slider\" :aria-label=\"text.hue\">\n <ColorPicker.ChannelSliderTrack class=\"qk-color-picker__slider-track\" />\n <ColorPicker.ChannelSliderThumb class=\"qk-color-picker__slider-thumb\" />\n </ColorPicker.ChannelSlider>\n <ColorPicker.ChannelSlider\n v-if=\"showAlpha\"\n channel=\"alpha\"\n class=\"qk-color-picker__slider\"\n :aria-label=\"text.alpha\"\n >\n <ColorPicker.TransparencyGrid\n class=\"qk-color-picker__transparency-grid\"\n :style=\"{ left: '-7px', width: 'calc(100% + 14px)' }\"\n />\n <ColorPicker.ChannelSliderTrack class=\"qk-color-picker__slider-track\" />\n <ColorPicker.ChannelSliderThumb class=\"qk-color-picker__slider-thumb\" />\n </ColorPicker.ChannelSlider>\n </div>\n </div>\n\n <div\n :class=\"[\n 'qk-color-picker__inputs',\n !showAlpha && 'qk-color-picker__inputs--without-alpha'\n ]\"\n >\n <label class=\"qk-color-picker__input-group\">\n <span>{{ text.format }}</span>\n <QuireSelect\n :model-value=\"inputFormat\"\n :items=\"inputFormatItems\"\n :label=\"text.formatLabel\"\n size=\"md\"\n width=\"64px\"\n content-width=\"88px\"\n @update:model-value=\"updateInputFormat\"\n />\n </label>\n\n <div class=\"qk-color-picker__input-group\">\n <span v-if=\"inputFormat === 'hex'\">{{ text.value }}</span>\n <QuireColorChannelInputs :format=\"inputFormat\" />\n </div>\n\n <label\n v-if=\"showAlpha\"\n class=\"qk-color-picker__input-group qk-color-picker__input-group--alpha\"\n >\n <span>Alpha</span>\n <QuireInputNumber\n :model-value=\"String(Math.round(alphaValue * 100) / 100)\"\n :disabled=\"Boolean(inputState.disabled)\"\n :read-only=\"Boolean(inputState.readonly)\"\n label=\"Alpha\"\n :min=\"0\"\n :max=\"1\"\n :step=\"0.01\"\n :small-step=\"0.01\"\n :large-step=\"0.1\"\n :format-options=\"{ maximumFractionDigits: 2 }\"\n size=\"md\"\n width=\"100%\"\n @update:model-value=\"updateAlpha\"\n />\n </label>\n </div>\n </section>\n</template>\n","<script setup lang=\"ts\">\nimport { ColorPicker, useColorPickerContext } from \"@ark-ui/vue/color-picker\";\nimport { computed } from \"vue\";\nimport { quireDocumentColorRows } from \"../../color-palette\";\nimport { useQuireKitMessages } from \"../locale-provider/context\";\nimport type { QuireKitColorRows } from \"../../components/color-picker\";\n\n/** 快捷色板的公开属性。 */\ninterface Props {\n /** 文档快捷颜色矩阵。 */\n readonly colors?: QuireKitColorRows;\n /** 由宿主受控的最近使用颜色。 */\n readonly recentColors?: readonly string[];\n /** 清除颜色动作名称,表达本实例的清除语义(如“自动”“无填充”);缺省取语言包。 */\n readonly resetLabel?: string | undefined;\n /** 是否显示清除颜色动作。 */\n readonly allowReset?: boolean;\n /** 是否显示进入精确编辑器的动作。 */\n readonly showMore?: boolean;\n /** 当前是否处于由宿主表达的无颜色状态。 */\n readonly resetActive?: boolean;\n /** 选择快捷色后是否关闭所属 Root。 */\n readonly closeOnCommit?: boolean;\n}\n\n/** 快捷色板公开事件。 */\ninterface Emits {\n /** 用户选中一个 CSS 颜色值。 */\n commit: [value: string];\n /** 用户请求清除文档颜色语义。 */\n reset: [];\n /** 用户请求进入精确颜色编辑。 */\n more: [];\n}\n\n/** 快捷色板可组合的动作入口。 */\ninterface Slots {\n /** 替换更多颜色触发器,以接入独立的二级浮层。 */\n readonly more?: (props: { readonly disabled: boolean }) => unknown;\n}\n\nconst props = withDefaults(defineProps<Props>(), {\n colors: () => quireDocumentColorRows.slice(0, 4),\n recentColors: () => [],\n allowReset: true,\n showMore: true,\n resetActive: false,\n closeOnCommit: true\n});\nconst emit = defineEmits<Emits>();\ndefineSlots<Slots>();\nconst text = useQuireKitMessages(\"colorPicker\");\nconst picker = useColorPickerContext();\nconst currentColor = computed(() => picker.value.value.toString(\"hex\"));\nconst unavailable = computed(() => Boolean(picker.value.getSwatchTriggerProps({ value: currentColor.value }).disabled));\n// Each preset row is one visual row; grids and panel width follow the widest row.\nconst paletteColumns = computed(() => Math.max(1, ...props.colors.map(row => row.length)));\nconst swatchStateBindings = computed(() => props.resetActive\n ? { \"data-state\": \"unchecked\" }\n : {});\n\n/**\n * 提交一个快捷颜色并按组合策略关闭浮层。\n *\n * @param value - 被选择的 CSS 颜色字符串。\n */\nfunction commitColor(value: string): void {\n if (unavailable.value) return;\n picker.value.setValue(value);\n emit(\"commit\", value.toUpperCase());\n if (props.closeOnCommit) picker.value.setOpen(false);\n}\n\n/** 清除颜色语义并关闭默认浮层。 */\nfunction resetColor(): void {\n if (unavailable.value) return;\n emit(\"reset\");\n if (props.closeOnCommit) picker.value.setOpen(false);\n}\n\n/**\n * 判断颜色是否需要白色色块的可见性描边。\n *\n * @param value - 待渲染的 CSS 颜色字符串。\n * @returns 颜色是否为不透明纯白色。\n */\nfunction isWhiteColor(value: string): boolean {\n const normalized = value.toLowerCase().replace(/\\s/g, \"\");\n return normalized === \"#fff\"\n || normalized === \"#ffffff\"\n || normalized === \"rgb(255,255,255)\"\n || normalized === \"rgba(255,255,255,1)\";\n}\n</script>\n\n<template>\n <section\n class=\"qk-color-picker__palette\"\n :aria-label=\"text.palette\"\n :style=\"{ '--qk-color-picker-columns': paletteColumns }\"\n :data-reset-active=\"resetActive ? 'true' : 'false'\"\n >\n <div class=\"qk-color-picker__current\" role=\"status\">\n <span v-if=\"resetActive\" class=\"qk-color-picker__none-swatch\" aria-hidden=\"true\" />\n <ColorPicker.ValueSwatch\n v-else\n respect-alpha\n :class=\"[\n 'qk-color-picker__current-swatch',\n isWhiteColor(currentColor) && 'qk-color-picker__swatch--white'\n ]\"\n />\n <span class=\"qk-color-picker__current-label\">{{ text.current }}</span>\n </div>\n\n <div v-if=\"recentColors.length > 0\" class=\"qk-color-picker__section\">\n <h3 class=\"qk-color-picker__section-title\">{{ text.recent }}</h3>\n <ColorPicker.SwatchGroup class=\"qk-color-picker__recent-grid\">\n <ColorPicker.SwatchTrigger\n v-for=\"color in recentColors\"\n :key=\"color\"\n :value=\"color\"\n :aria-label=\"color\"\n v-bind=\"swatchStateBindings\"\n class=\"qk-color-picker__swatch-trigger\"\n :style=\"{ color }\"\n @click=\"commitColor(color)\"\n >\n <ColorPicker.Swatch\n :value=\"color\"\n respect-alpha\n :class=\"[\n 'qk-color-picker__swatch',\n isWhiteColor(color) && 'qk-color-picker__swatch--white'\n ]\"\n >\n </ColorPicker.Swatch>\n </ColorPicker.SwatchTrigger>\n </ColorPicker.SwatchGroup>\n </div>\n\n <div class=\"qk-color-picker__section\">\n <h3 class=\"qk-color-picker__section-title\">{{ text.palette }}</h3>\n <ColorPicker.SwatchGroup class=\"qk-color-picker__palette-grid\">\n <template v-for=\"(row, rowIndex) in colors\" :key=\"rowIndex\">\n <ColorPicker.SwatchTrigger\n v-for=\"color in row\"\n :key=\"color\"\n :value=\"color\"\n :aria-label=\"color\"\n v-bind=\"swatchStateBindings\"\n class=\"qk-color-picker__swatch-trigger\"\n :style=\"{ color }\"\n @click=\"commitColor(color)\"\n >\n <ColorPicker.Swatch\n :value=\"color\"\n respect-alpha\n :class=\"[\n 'qk-color-picker__swatch',\n isWhiteColor(color) && 'qk-color-picker__swatch--white'\n ]\"\n >\n </ColorPicker.Swatch>\n </ColorPicker.SwatchTrigger>\n </template>\n </ColorPicker.SwatchGroup>\n </div>\n\n <div class=\"qk-color-picker__palette-actions\">\n <button\n v-if=\"allowReset\"\n type=\"button\"\n class=\"qk-color-picker__reset\"\n :disabled=\"unavailable\"\n :aria-pressed=\"resetActive\"\n :data-state=\"resetActive ? 'checked' : undefined\"\n @click=\"resetColor\"\n >\n <span class=\"qk-color-picker__none-swatch\" aria-hidden=\"true\" />\n <span>{{ resetLabel ?? text.reset }}</span>\n </button>\n <slot v-if=\"showMore\" name=\"more\" :disabled=\"unavailable\">\n <button\n type=\"button\"\n class=\"qk-color-picker__more\"\n :disabled=\"unavailable\"\n @click=\"!unavailable && emit('more')\"\n >\n <span>{{ text.more }}</span>\n <svg class=\"qk-color-picker__more-icon\" viewBox=\"0 0 16 16\" aria-hidden=\"true\">\n <path d=\"m6 3.5 4 4.5-4 4.5\" />\n </svg>\n </button>\n </slot>\n </div>\n </section>\n</template>\n","<script setup lang=\"ts\">\nimport { useQuireOverlayHost } from \"../overlay-provider\";\nimport { ColorPicker } from \"@ark-ui/vue/color-picker\";\nimport type {\n ColorPickerColorFormat,\n ColorPickerOpenChangeDetails,\n ColorPickerRootProps,\n ColorPickerValueChangeDetails\n} from \"@ark-ui/vue/color-picker\";\nimport { computed, ref, shallowRef, watch } from \"vue\";\nimport type { QuireKitColorPickerPlacement } from \"../../components/color-picker\";\nimport {\n parseQuireColor,\n serializeQuireColor\n} from \"../../components/color-picker\";\n\n/** Color Picker 的公开属性。 */\ninterface Props {\n /** 受控 CSS 颜色字符串。 */\n readonly modelValue?: string;\n /** 非受控模式的初始 CSS 颜色字符串。 */\n readonly defaultValue?: string;\n /** 受控浮层打开状态。 */\n readonly open?: boolean;\n /** 非受控模式的初始打开状态。 */\n readonly defaultOpen?: boolean;\n /** 用于颜色运算的颜色空间;输入显示格式由 Editor 配置。 */\n readonly format?: ColorPickerColorFormat;\n /** 初始颜色空间。 */\n readonly defaultFormat?: ColorPickerColorFormat;\n /** 选择快捷色后是否关闭浮层。 */\n readonly closeOnSelect?: boolean;\n /** 是否禁用所有颜色交互。 */\n readonly disabled?: boolean;\n /** 是否只读。 */\n readonly readOnly?: boolean;\n /** 是否使用行内模式呈现。 */\n readonly inline?: boolean;\n /** 浮层相对触发器的首选方位。 */\n readonly placement?: QuireKitColorPickerPlacement;\n /** 隐藏表单输入的字段名。 */\n readonly name?: string;\n}\n\n/** Color Picker machine 适配器的公开事件。 */\ninterface Emits {\n /** 同步受控 CSS 颜色字符串。 */\n \"update:modelValue\": [value: string];\n /** 同步受控浮层状态。 */\n \"update:open\": [open: boolean];\n /** 颜色拖动或输入期间的连续预览事件。 */\n valueChange: [value: string];\n /** 一次颜色交互结束后的稳定值事件。 */\n valueChangeEnd: [value: string];\n /** 浮层打开状态变化事件。 */\n openChange: [open: boolean];\n}\n\n/** Root 内部各可组合部件。 */\ninterface Slots {\n /** 颜色触发器、快捷色板、精确编辑器或自定义内容。 */\n readonly default: () => unknown;\n}\n\n// 显式保留 undefined,避免 Vue 把缺省 Boolean prop 强制转换为 false 并误入受控模式。\nconst portal = useQuireOverlayHost();\nconst props = withDefaults(defineProps<Props>(), {\n open: undefined as never,\n defaultValue: \"#1677FF\",\n defaultOpen: false,\n defaultFormat: \"hsba\",\n closeOnSelect: false,\n disabled: false,\n readOnly: false,\n inline: false,\n placement: \"bottom-start\"\n});\nconst emit = defineEmits<Emits>();\ndefineSlots<Slots>();\n\nconst internalOpen = ref(props.open ?? props.defaultOpen);\nconst controlledColor = shallowRef(parseQuireColor(props.modelValue ?? props.defaultValue));\n\nwatch(() => props.modelValue, (value) => {\n if (value === undefined) return;\n\n const nextColor = parseQuireColor(value);\n // 受控父组件通常会把刚发出的 HEX/HEXA 原样回写。无彩色 HEX 不携带 Hue,\n // 因此相同可见颜色必须继续使用 machine 中的 Color 对象,保留最后一个有效色相。\n if (serializeQuireColor(nextColor) === serializeQuireColor(controlledColor.value)) return;\n controlledColor.value = nextColor;\n}, { flush: \"sync\" });\n\nconst rootBindings = computed<ColorPickerRootProps>(() => ({\n defaultValue: parseQuireColor(props.defaultValue),\n defaultFormat: props.defaultFormat,\n closeOnSelect: props.closeOnSelect,\n disabled: props.disabled,\n readOnly: props.readOnly,\n inline: props.inline,\n positioning: {\n // Keep expanding floating content in viewport coordinates without growing page scroll bounds.\n strategy: portal.strategy.value ?? \"fixed\",\n placement: props.placement,\n gutter: 6,\n flip: true,\n slide: true,\n hideWhenDetached: true\n },\n ...(props.modelValue === undefined\n ? {}\n : { modelValue: controlledColor.value }),\n // The local fallback already consumes defaultOpen once; only effective open reaches Zag.\n open: props.open ?? internalOpen.value,\n ...(props.format === undefined ? {} : { format: props.format }),\n ...(props.name === undefined ? {} : { name: props.name })\n}));\n\n/**\n * 同步 Ark 的受控颜色对象到字符串公共合同。\n *\n * @param value - Ark machine 返回的颜色对象。\n */\nfunction handleModelValue(value: Parameters<typeof serializeQuireColor>[0]): void {\n if (props.modelValue !== undefined) controlledColor.value = value;\n emit(\"update:modelValue\", serializeQuireColor(value));\n}\n\n/**\n * 转发连续颜色预览。\n *\n * @param details - Ark machine 的颜色变化明细。\n */\nfunction handleValueChange(details: ColorPickerValueChangeDetails): void {\n emit(\"valueChange\", serializeQuireColor(details.value));\n}\n\n/**\n * 转发稳定颜色值。\n *\n * @param details - Ark machine 的交互结束明细。\n */\nfunction handleValueChangeEnd(details: ColorPickerValueChangeDetails): void {\n emit(\"valueChangeEnd\", serializeQuireColor(details.value));\n}\n\n/**\n * 同步 Ark 浮层生命周期。\n *\n * @param details - Ark machine 的打开状态明细。\n */\nfunction handleOpenChange(details: ColorPickerOpenChangeDetails): void {\n internalOpen.value = details.open;\n emit(\"update:open\", details.open);\n emit(\"openChange\", details.open);\n}\n</script>\n\n<template>\n <ColorPicker.Root\n v-bind=\"rootBindings\"\n data-qk-scope=\"color-picker\"\n lazy-mount\n unmount-on-exit\n @update:model-value=\"handleModelValue\"\n @value-change=\"handleValueChange\"\n @value-change-end=\"handleValueChangeEnd\"\n @open-change=\"handleOpenChange\"\n >\n <slot />\n </ColorPicker.Root>\n</template>\n","import { computed, nextTick, ref } from \"vue\";\n\n/**\n * Keeps the absence of a document color separate from the editable CSS color.\n * @param controlled - Explicit no-color state, or undefined for local state.\n * @param update - Reports changes requested by a color or reset action.\n * @returns Current no-color state and its update entry.\n */\nexport function useColorResetState(controlled: () => boolean | undefined, update: (value: boolean) => void) {\n const local = ref(false);\n let pending: boolean | undefined;\n const resetActive = computed(() => controlled() ?? local.value);\n /** @param value - Whether the current document color is absent. */\n function setResetActive(value: boolean): void {\n if ((pending ?? resetActive.value) === value) return;\n // Ark value updates and palette commit can describe one action before controlled props echo back.\n pending = value;\n local.value = value;\n update(value);\n void nextTick(() => { pending = undefined; });\n }\n return { resetActive, setResetActive };\n}\n","<script setup lang=\"ts\">\nimport { useQuireOverlayHost } from \"../overlay-provider\";\nimport QuireThemePortal from \"../theme-provider/portal.vue\";\nimport { ColorPicker } from \"@ark-ui/vue/color-picker\";\nimport { Popover } from \"@ark-ui/vue/popover\";\nimport { computed, onMounted, ref, watch } from \"vue\";\nimport type {\n QuireKitColorPickerProps\n} from \"../../components/color-picker\";\nimport QuireColorEditor from \"./color-editor.vue\";\nimport QuireColorPalette from \"./color-palette.vue\";\nimport QuireColorPickerRoot from \"./color-picker-root.vue\";\nimport { useColorResetState } from \"./use-reset-state\";\nimport { useModalPortal } from \"../shared/surface/use-modal-portal\";\nimport { useQuireKitMessages } from \"../locale-provider/context\";\n\n/** 开箱即用 Color Picker 的公开事件。 */\ninterface Emits {\n /** 同步受控 CSS 颜色字符串。 */\n \"update:modelValue\": [value: string];\n /** 同步当前是否为无颜色。 */\n \"update:resetActive\": [value: boolean];\n /** 同步受控浮层状态。 */\n \"update:open\": [open: boolean];\n /** 连续颜色预览。 */\n valueChange: [value: string];\n /** 一次颜色交互结束。 */\n valueChangeEnd: [value: string];\n /** 用户提交快捷或精确颜色。 */\n commit: [value: string];\n /** 用户请求清除颜色语义。 */\n reset: [];\n}\n\n/** 外层 Color Picker 的可替换触发器插槽。 */\ninterface Slots {\n /** 替换默认触发器;使用关联当前颜色面板的触发器组件。 */\n readonly trigger?: (props: { readonly reset: boolean; readonly value: string }) => unknown;\n}\n\n// 显式保留 undefined,避免 Vue 把缺省 Boolean prop 强制转换为 false 并误入受控模式。\nconst props = withDefaults(defineProps<QuireKitColorPickerProps>(), {\n open: undefined as never,\n resetActive: undefined,\n defaultValue: \"#1677FF\",\n defaultOpen: false,\n size: \"sm\",\n placement: \"bottom-start\",\n recentColors: () => [],\n allowReset: true,\n showMore: true,\n showAlpha: true,\n showEyedropper: true,\n inputFormats: () => [\"hex\", \"rgb\", \"hsl\", \"hsb\"],\n defaultInputFormat: \"hex\",\n portalled: true,\n disabled: false\n});\nconst portal = useQuireOverlayHost(() => props.portalTarget);\nconst emit = defineEmits<Emits>();\ndefineSlots<Slots>();\nconst text = useQuireKitMessages(\"colorPicker\");\nconst accessibleLabel = computed(() => props.label ?? text.value.label);\n\nconst editorOpen = ref(false);\nconst internalOpen = ref(props.defaultOpen);\nwatch(() => props.open ?? internalOpen.value, open => {\n if (!open) editorOpen.value = false;\n});\nconst { hasModalOwner, disabled: portalDisabled } = useModalPortal(() => props.portalled, () => props.open ?? internalOpen.value);\n// Hydrate beside the trigger before joining the shared target; sibling async\n// boundaries must not consume this color panel's server portal in another order.\nconst mounted = ref(false);\nonMounted(() => { mounted.value = true; });\nconst { resetActive, setResetActive } = useColorResetState(() => props.resetActive, value => emit(\"update:resetActive\", value));\nconst internalValue = ref(props.modelValue ?? props.defaultValue);\nconst optionalRootBindings = computed(() => ({\n ...(props.open === undefined ? {} : { open: props.open }),\n ...(props.name === undefined ? {} : { name: props.name })\n}));\nconst optionalPaletteBindings = computed(() => ({\n ...(props.colors === undefined ? {} : { colors: props.colors })\n}));\n\n// 面板宽度跟随最宽一行色板,固定小色板不留空白。\nconst contentStyle = computed(() => props.colors === undefined\n ? {}\n : { \"--qk-color-picker-columns\": Math.max(1, ...props.colors.map(row => row.length)) });\n\n/** @returns 当前受控或非受控 CSS 颜色值。 */\nfunction currentValue(): string {\n return props.modelValue ?? internalValue.value;\n}\n\n/**\n * 同步颜色值并维持非受控回退。\n *\n * @param value - Root 返回的稳定 CSS 颜色字符串。\n */\nfunction updateValue(value: string): void {\n setResetActive(false);\n internalValue.value = value;\n emit(\"update:modelValue\", value);\n}\n\nwatch(() => props.modelValue, (value, previousValue) => {\n if (value !== previousValue && props.resetActive === undefined) setResetActive(false);\n});\n\n/**\n * 关闭后把下一次打开恢复到快捷色板。\n *\n * @param open - Root machine 的最新打开状态。\n */\nfunction updateOpen(open: boolean): void {\n internalOpen.value = open;\n if (!open) editorOpen.value = false;\n emit(\"update:open\", open);\n}\n\n/** 从精确颜色编辑器返回快捷色板。 */\nfunction closeEditor(): void {\n editorOpen.value = false;\n}\n\n/** 表达无颜色语义并同步外层触发器的可见状态。 */\nfunction resetValue(): void {\n setResetActive(true);\n emit(\"reset\");\n}\n\n/** @param value - Selected quick color, including reselecting the previous editable color. */\nfunction commitPaletteColor(value: string): void {\n setResetActive(false);\n emit(\"commit\", value);\n}\n</script>\n\n<template>\n <QuireColorPickerRoot\n v-bind=\"optionalRootBindings\"\n :model-value=\"props.modelValue === undefined ? internalValue : props.modelValue\"\n :default-value=\"props.defaultValue\"\n :default-open=\"props.defaultOpen\"\n :placement=\"props.placement\"\n :disabled=\"props.disabled\"\n @update:model-value=\"updateValue\"\n @update:open=\"updateOpen\"\n @value-change=\"emit('valueChange', $event)\"\n @value-change-end=\"emit('valueChangeEnd', $event); emit('commit', $event)\"\n >\n <ColorPicker.Control>\n <slot\n v-if=\"$slots.trigger\"\n name=\"trigger\"\n :value=\"currentValue()\"\n :reset=\"resetActive\"\n />\n <ColorPicker.Trigger\n v-else\n :aria-label=\"accessibleLabel\"\n :class=\"['qk-color-picker__trigger', `qk-color-picker__trigger--${props.size}`]\"\n >\n <slot name=\"trigger\" :value=\"currentValue()\" :reset=\"resetActive\">\n <span v-if=\"resetActive\" class=\"qk-color-picker__trigger-none\" />\n <template v-else>\n <ColorPicker.TransparencyGrid class=\"qk-color-picker__trigger-grid\" />\n <ColorPicker.ValueSwatch respect-alpha class=\"qk-color-picker__trigger-swatch\" />\n </template>\n </slot>\n </ColorPicker.Trigger>\n <ColorPicker.HiddenInput />\n </ColorPicker.Control>\n\n <Teleport :to=\"portal.target.value\" :disabled=\"portalDisabled || !mounted\">\n <QuireThemePortal>\n <ColorPicker.Positioner :class=\"['qk-color-picker__positioner', hasModalOwner && 'qk-color-picker__positioner--modal']\">\n <ColorPicker.Content\n v-bind=\"props.contentAttributes\"\n :aria-label=\"accessibleLabel\"\n :class=\"[\n 'qk-color-picker__content',\n editorOpen && 'qk-color-picker__content--editor'\n ]\"\n :data-editor-open=\"editorOpen ? 'true' : 'false'\"\n :style=\"contentStyle\"\n >\n <!-- Keep the color machine's DOM descendants, but let the nested layer\n measure, flip and dismiss independently of the palette. When neither\n side fits, allow overlap so the editor stays inside the viewport. -->\n <Popover.Root\n v-model:open=\"editorOpen\"\n :portalled=\"false\"\n :positioning=\"{ strategy: portal.strategy.value ?? 'fixed', placement: 'right-start', gutter: 2, flip: ['left-start'], slide: true, overlap: true }\"\n lazy-mount\n unmount-on-exit\n >\n <Popover.Anchor as-child>\n <QuireColorPalette\n v-bind=\"optionalPaletteBindings\"\n :recent-colors=\"props.recentColors\"\n :reset-label=\"props.resetLabel\"\n :allow-reset=\"props.allowReset\"\n :show-more=\"props.showMore\"\n :reset-active=\"resetActive\"\n :close-on-commit=\"true\"\n @commit=\"commitPaletteColor\"\n @reset=\"resetValue\"\n >\n <template #more=\"{ disabled }\">\n <Popover.Trigger class=\"qk-color-picker__more\" :disabled=\"disabled\">\n <span>{{ text.more }}</span>\n <svg class=\"qk-color-picker__more-icon\" viewBox=\"0 0 16 16\" aria-hidden=\"true\">\n <path d=\"m6 3.5 4 4.5-4 4.5\" />\n </svg>\n </Popover.Trigger>\n </template>\n </QuireColorPalette>\n </Popover.Anchor>\n <Popover.Positioner class=\"qk-color-picker__editor-positioner\">\n <Popover.Content class=\"qk-color-picker__editor-panel\" :aria-label=\"text.more\">\n <QuireColorEditor\n :show-alpha=\"props.showAlpha\"\n :show-eyedropper=\"props.showEyedropper\"\n :input-formats=\"props.inputFormats\"\n :default-input-format=\"props.defaultInputFormat\"\n show-back\n @back=\"closeEditor\"\n />\n </Popover.Content>\n </Popover.Positioner>\n </Popover.Root>\n </ColorPicker.Content>\n </ColorPicker.Positioner>\n </QuireThemePortal>\n </Teleport>\n </QuireColorPickerRoot>\n</template>\n","<script setup lang=\"ts\">\nimport { Field } from \"@ark-ui/vue/field\";\nimport type { UseFieldContext } from \"@ark-ui/vue/field\";\nimport { computed } from \"vue\";\nimport type { UnwrapRef } from \"vue\";\nimport type {\n QuireKitFieldControlProps,\n QuireKitFieldSlotProps,\n QuireKitFieldStatus\n} from \"../../components/field/types\";\nimport { useQuireKitMessages } from \"../locale-provider/context\";\nimport { provideFieldLabel } from \"./context\";\n\n/** 标签、单个输入控件和单条反馈的组合属性。 */\ninterface Props {\n /** 始终可见的字段标签。 */\n readonly label: string;\n /** 控件与标签共享的稳定 id。 */\n readonly id?: string;\n /** Explicit native control identity for an existing form; takes precedence over id. */\n readonly controlId?: string;\n /** 默认状态下的必要说明。 */\n readonly description?: string;\n /** 校验失败时的恢复说明;省略时使用语言包的通用提示。 */\n readonly errorText?: string;\n /** 控件禁用时解释不可用原因。 */\n readonly disabledReason?: string;\n /** 多值不一致时的反馈文本;省略时使用语言包的通用提示。 */\n readonly mixedText?: string;\n /** 后台更新时的反馈文本;省略时使用语言包的通用提示。 */\n readonly busyText?: string;\n /** Field 接受的 CSS 宽度,默认占满父容器。 */\n readonly width?: string | number;\n /** 是否为必填项。 */\n readonly required?: boolean;\n /** 是否处于校验错误状态。 */\n readonly invalid?: boolean;\n /** 是否禁用输入。 */\n readonly disabled?: boolean;\n /** 是否只读。 */\n readonly readOnly?: boolean;\n /** 是否正在提交或同步;仅显示状态,限制修改需同时配置只读或禁用。 */\n readonly busy?: boolean;\n /** 是否表示多个不同值。 */\n readonly mixed?: boolean;\n}\n\n/** Field 的可替换内容位置。 */\ninterface Slots {\n /** 唯一输入控件;必须把 controlProps 绑定到控件。 */\n readonly default: (props: QuireKitFieldSlotProps) => unknown;\n /** 标签右侧的短元信息或局部动作。 */\n readonly meta?: () => unknown;\n /** 替换当前唯一反馈文本。 */\n readonly message?: (props: { readonly status: QuireKitFieldStatus }) => unknown;\n}\n\nconst props = withDefaults(defineProps<Props>(), {\n width: \"100%\",\n required: false,\n invalid: false,\n disabled: false,\n readOnly: false,\n busy: false,\n mixed: false\n});\ndefineSlots<Slots>();\nconst text = useQuireKitMessages(\"field\");\nprovideFieldLabel(() => props.label);\n\nconst rootStyle = computed(() => ({ width: props.width }));\nconst optionalRootBindings = computed(() => {\n // Ark uses id for the native input; ids.control identifies its enclosing root.\n // Keep one native identity so labels and custom consumer references agree.\n const id = props.controlId ?? props.id;\n return id === undefined ? {} : { id };\n});\nconst status = computed<QuireKitFieldStatus | undefined>(() => {\n if (props.invalid) return \"error\";\n if (props.busy) return \"busy\";\n if (props.disabled && props.disabledReason !== undefined) return \"disabled\";\n if (props.mixed) return \"mixed\";\n if (props.description !== undefined) return \"description\";\n return undefined;\n});\nconst message = computed(() => {\n switch (status.value) {\n case \"error\": return props.errorText ?? text.value.invalid;\n case \"busy\": return props.busyText ?? text.value.busy;\n case \"disabled\": return props.disabledReason;\n case \"mixed\": return props.mixedText ?? text.value.mixed;\n case \"description\": return props.description;\n default: return undefined;\n }\n});\n\n/**\n * 把 Ark Field 上下文投影为 QuireKit 输入组件可直接绑定的合同。\n *\n * @param field - 当前 Field Root 提供的 Ark 上下文。\n * @returns 包含 id、状态和反馈关联的输入属性。\n */\nfunction controlProps(field: UnwrapRef<UseFieldContext>): QuireKitFieldControlProps {\n return {\n ...field.getInputProps(),\n width: \"100%\",\n required: props.required,\n disabled: props.disabled,\n readOnly: props.readOnly,\n invalid: props.invalid\n };\n}\n</script>\n\n<template>\n <Field.Root\n v-bind=\"optionalRootBindings\"\n :required=\"required\"\n :invalid=\"invalid\"\n :disabled=\"disabled\"\n :read-only=\"readOnly\"\n :style=\"rootStyle\"\n :aria-busy=\"busy || undefined\"\n :class=\"[\n 'qk-field',\n invalid && 'qk-field--invalid',\n disabled && 'qk-field--disabled',\n mixed && 'qk-field--mixed',\n busy && 'qk-field--busy'\n ]\"\n >\n <span class=\"qk-field__header\">\n <Field.Label class=\"qk-field__label\">\n {{ label }}\n <Field.RequiredIndicator v-if=\"required\" class=\"qk-field__required\">*</Field.RequiredIndicator>\n </Field.Label>\n <span v-if=\"$slots.meta\" class=\"qk-field__meta\"><slot name=\"meta\" /></span>\n </span>\n\n <Field.Context v-slot=\"field\">\n <slot :control-props=\"controlProps(field)\" :status=\"status\" />\n </Field.Context>\n\n <Field.ErrorText v-if=\"status === 'error'\" class=\"qk-field__message qk-field__message--error\">\n <slot name=\"message\" status=\"error\">{{ message }}</slot>\n </Field.ErrorText>\n <Field.HelperText v-else-if=\"status\" :class=\"['qk-field__message', `qk-field__message--${status}`]\">\n <span v-if=\"status === 'busy'\" aria-hidden=\"true\" class=\"qk-field__busy-indicator\" />\n <slot name=\"message\" :status=\"status\">{{ message }}</slot>\n </Field.HelperText>\n </Field.Root>\n</template>\n","import { inject } from \"vue\";\nimport type { InjectionKey } from \"vue\";\nimport type { QuireKitFormContext } from \"./types\";\n\n/** One context per native QuireForm boundary. */\nexport const quireFormKey: InjectionKey<QuireKitFormContext> = Symbol(\"QuireForm\");\n\n/** Gets the enclosing form without creating a new VeeValidate authority.\n * @returns The existing form's public state and actions.\n */\nexport function useQuireForm(): QuireKitFormContext {\n const context = inject(quireFormKey);\n if (!context) throw new Error(\"useQuireForm requires a QuireForm ancestor.\");\n return context;\n}\n","/** Focuses the first operable invalid field in document order.\n * @param root - Native form that owns the field wrappers.\n * @param errors - Current path-to-error map.\n */\nexport function focusFormError(root: HTMLFormElement | undefined, errors: Record<string, string | undefined>): void {\n if (!root) return;\n for (const field of root.querySelectorAll<HTMLElement>(\"[data-form-field]\")) {\n const name = field.dataset.formField;\n if (!name || !errors[name]) continue;\n const controls = field.querySelectorAll<HTMLElement>('[data-form-control] input:not([type=\"hidden\"]),[data-form-control] textarea,[data-form-control] select,[data-form-control] button,[data-form-control] [tabindex]');\n for (const control of controls) {\n if (control.matches(':disabled,[aria-disabled=\"true\"],[readonly],[aria-readonly=\"true\"]')) continue;\n if (control.closest('[hidden],[inert],[aria-hidden=\"true\"]') || (control.hasAttribute(\"tabindex\") && control.tabIndex < 0)) continue;\n const style = control.ownerDocument.defaultView?.getComputedStyle(control);\n if (style?.display === \"none\" || style?.visibility === \"hidden\") continue;\n control.focus();\n if (control.ownerDocument.activeElement === control) return;\n }\n }\n}\n","/** Reads the documented nested/array/literal path subset without inherited lookup.\n * @param values - VeeValidate's current values.\n * @param path - Dot/array path, or bracket-wrapped literal key.\n * @returns The dependency value, or undefined if absent.\n */\nexport function readFormPath(values: Record<string, unknown>, path: string): unknown {\n const keys = /^\\[.+\\]$/.test(path) ? [path.slice(1, -1)] : path.replace(/\\[(\\d+)\\]/g, \".$1\").split(\".\");\n let value: unknown = values;\n for (const key of keys) {\n if (value === null || typeof value !== \"object\" || !Object.hasOwn(value, key)) return undefined;\n value = (value as Record<string, unknown>)[key];\n }\n return value;\n}\n\n/** Canonicalizes numeric dot segments to VeeValidate's array path identity.\n * @param path - Declared field path.\n * @returns Canonical identity while preserving bracket-wrapped literal names.\n */\nexport function normalizeFormFieldPath(path: string): string {\n if (/^\\[.+\\]$/.test(path)) return path;\n return path.split(\".\").map((part, index) => index === 0 ? part : /^\\d+$/.test(part) ? `[${part}]` : `.${part}`).join(\"\");\n}\n","import { inject, provide, ref } from \"vue\";\nimport type { InjectionKey } from \"vue\";\nimport type { QuireKitFormLifecycle } from \"./types\";\nimport { normalizeFormFieldPath } from \"../form-field/path\";\n\nconst lifecycleKey: InjectionKey<QuireKitFormLifecycle> = Symbol(\"QuireFormLifecycle\");\n\n/** Creates an instance-local lifecycle seam for reset and path ownership.\n * @returns Lifecycle controls used by the form controller.\n */\nexport function provideFormLifecycle(): QuireKitFormLifecycle {\n const paths = new Set<string>();\n const lifecycle: QuireKitFormLifecycle = {\n resetEpoch: ref(0),\n /** Claims a unique normalized VeeValidate path.\n * @param name - Declared field name.\n * @returns Function releasing only this registration.\n */\n register(name) {\n const path = normalizeFormFieldPath(name);\n if (!path) throw new Error(\"QuireFormField requires a nonempty name.\");\n if (paths.has(path)) throw new Error(`Duplicate QuireFormField name \"${name}\".`);\n paths.add(path);\n return () => { paths.delete(path); };\n }\n };\n provide(lifecycleKey, lifecycle);\n return lifecycle;\n}\n\n/** Obtains the parent lifecycle without exposing its mutable generation publicly.\n * @returns The enclosing form lifecycle.\n */\nexport function useFormLifecycle(): QuireKitFormLifecycle {\n const lifecycle = inject(lifecycleKey);\n if (!lifecycle) throw new Error(\"QuireFormField requires a QuireForm ancestor.\");\n return lifecycle;\n}\n","import { computed, nextTick, readonly, ref } from \"vue\";\nimport type { Ref } from \"vue\";\nimport { useForm } from \"vee-validate\";\nimport type { QuireKitFormContext, QuireKitFormProps, QuireKitFormValues } from \"./types\";\nimport { focusFormError } from \"./focus\";\nimport { provideFormLifecycle } from \"./lifecycle\";\nimport { useQuireKitMessages } from \"../locale-provider/context\";\n\n/** Creates the sole values authority and wraps its submission/reset lifecycle.\n * @param props - Reactive form options.\n * @param root - Owning native form element.\n * @param emit - Public lifecycle notification callback.\n * @returns Form context with guarded submission and reset operations.\n */\nexport function useFormController(\n props: QuireKitFormProps,\n root: Ref<HTMLFormElement | undefined>,\n emit: (event: \"error\" | \"success\" | \"invalidSubmit\" | \"reset\", payload?: unknown) => void\n): QuireKitFormContext {\n const lifecycle = provideFormLifecycle();\n const text = useQuireKitMessages(\"form\");\n // Pass a plain initial object, never a ref: VeeValidate captures its own deep baseline.\n const form = useForm<QuireKitFormValues>({\n initialValues: props.initialValues ?? {},\n keepValuesOnUnmount: true\n });\n const locked = ref(false);\n const submitError = ref<string>();\n\n /** Focuses after field feedback and busy restrictions have rendered.\n * @returns Completion of focus placement.\n */\n async function focusFirstError(): Promise<void> {\n await nextTick();\n focusFormError(root.value, form.errors.value);\n }\n\n /** Preserves the draft and publishes an unexpected failure.\n * @param error - Rejected save or validation operation.\n */\n function reportError(error: unknown): void {\n submitError.value = error instanceof Error ? error.message : typeof error === \"string\" ? error : text.value.submitFailed;\n emit(\"error\", error);\n }\n\n const runSubmit = form.handleSubmit(async values => {\n await props.onSubmit?.(values, context);\n if (!Object.keys(form.errors.value).length) emit(\"success\", values);\n }, result => { emit(\"invalidSubmit\", result.errors); });\n\n /** Locks before the first await, covering validation and application persistence.\n * @param event - Optional native submit event.\n * @returns Completion after feedback and focus are restored.\n */\n async function submit(event?: Event): Promise<void> {\n event?.preventDefault();\n event?.stopPropagation();\n if (locked.value || props.disabled) return;\n locked.value = true;\n submitError.value = undefined;\n try { await runSubmit(event); }\n catch (error) { reportError(error); }\n finally {\n locked.value = false;\n if (props.focusOnError !== false) await focusFirstError();\n }\n }\n\n const context: QuireKitFormContext = {\n values: form.values, errors: form.errors, meta: form.meta,\n isSubmitting: readonly(locked), isValidating: readonly(form.isValidating),\n submitCount: readonly(form.submitCount), submitError: readonly(submitError),\n disabled: computed(() => props.disabled ?? false), readOnly: computed(() => props.readOnly ?? false),\n validateOn: computed(() => props.validateOn ?? \"blur\"),\n /** Updates one path only outside a pending validation/save snapshot.\n * @param path - Nested path.\n * @param value - Next draft value.\n * @param shouldValidate - Whether to validate the updated field.\n * @returns Whether the write was accepted.\n */\n setFieldValue(path, value, shouldValidate) {\n if (locked.value) return false;\n form.setFieldValue(path, value, shouldValidate);\n return true;\n },\n /** Merges a values update outside a pending submit snapshot.\n * @param values - Draft values to merge.\n * @param shouldValidate - Whether to validate afterward.\n * @returns Whether the write was accepted.\n */\n setValues(values, shouldValidate) {\n if (locked.value) return false;\n form.setValues(values, shouldValidate);\n return true;\n },\n setErrors: form.setErrors, setFieldError: form.setFieldError,\n setFieldTouched: form.setFieldTouched,\n validate: form.validate,\n validateField: form.validateField,\n submit, focusFirstError, reportError,\n /** Restores the baseline only when no save can subsequently affect this draft.\n * @param state - Optional explicit new baseline and metadata.\n * @param options - VeeValidate reset merge/replace policy.\n * @returns Whether reset was accepted.\n */\n resetForm(state, options) {\n if (locked.value) return false;\n lifecycle.resetEpoch.value++;\n form.resetForm(state, options);\n submitError.value = undefined;\n emit(\"reset\");\n return true;\n }\n };\n return context;\n}\n","<script setup lang=\"ts\">\nimport { inject, provide, reactive, ref } from \"vue\";\nimport { quireFormKey } from \"./context\";\nimport { useFormController } from \"./use-controller\";\nimport type { QuireKitFormEmits, QuireKitFormProps, QuireKitFormSlotProps } from \"./types\";\n\nconst props = withDefaults(defineProps<QuireKitFormProps>(), { focusOnError: true });\nconst emit = defineEmits<QuireKitFormEmits>();\ndefineSlots<{\n /** Fields and custom content with unwrapped form state. */\n default?: (form: QuireKitFormSlotProps) => unknown;\n /** Optional save/reset actions sharing the same native form. */\n actions?: (form: QuireKitFormSlotProps) => unknown;\n /** Replaces the request failure text inside the alert. */\n error?: (form: QuireKitFormSlotProps) => unknown;\n}>();\nif (inject(quireFormKey, undefined)) throw new Error(\"QuireForm cannot be nested. Use QuireFieldset for groups.\");\nconst root = ref<HTMLFormElement>();\nconst form = useFormController(props, root, (event, payload) => {\n if (event === \"reset\") emit(\"reset\");\n else if (event === \"error\") emit(\"error\", payload);\n else if (event === \"success\") emit(\"success\", payload as QuireKitFormSlotProps[\"values\"]);\n else emit(\"invalidSubmit\", payload as Record<string, string | undefined>);\n});\nprovide(quireFormKey, form);\nconst state = reactive(form);\ndefineExpose(form);\n</script>\n\n<template>\n <form ref=\"root\" class=\"qk-form\" novalidate :aria-busy=\"state.isSubmitting || undefined\"\n @submit=\"form.submit\" @reset.prevent=\"form.resetForm()\">\n <slot v-bind=\"state\" />\n <div v-if=\"state.submitError\" class=\"qk-form__error\" role=\"alert\">\n <slot name=\"error\" v-bind=\"state\">{{ state.submitError }}</slot>\n </div>\n <div v-if=\"$slots.actions\" class=\"qk-form__actions\"><slot name=\"actions\" v-bind=\"state\" /></div>\n </form>\n</template>\n","import { computed, onBeforeUnmount, watch } from \"vue\";\nimport { useField } from \"vee-validate\";\nimport type { FieldContext } from \"vee-validate\";\nimport { useQuireForm } from \"../form/context\";\nimport { useFormLifecycle } from \"../form/lifecycle\";\nimport { useQuireKitMessages } from \"../locale-provider/context\";\nimport { readFormPath } from \"./path\";\nimport type { QuireKitFormRule } from \"../form/types\";\nimport type { QuireKitFormFieldProps } from \"./types\";\n\n/** Registers a single path and layers interaction policy over VeeValidate.\n * @param props - Reactive field configuration.\n * @returns Registered state and guarded control actions.\n */\nexport function useFormFieldBinding(props: QuireKitFormFieldProps) {\n const form = useQuireForm();\n const lifecycle = useFormLifecycle();\n const text = useQuireKitMessages(\"formField\");\n const disabled = computed(() => props.disabled || form.disabled.value);\n const readOnly = computed(() => props.readOnly || form.readOnly.value || form.isSubmitting.value);\n const timing = computed(() => props.validateOn ?? form.validateOn.value);\n let epoch = 0;\n let suppress = false;\n let release: (() => void) | undefined;\n let field!: FieldContext<unknown>;\n watch(() => props.name, name => {\n release?.();\n release = lifecycle.register(name);\n epoch++;\n }, { immediate: true, flush: \"sync\" });\n\n const validator = computed<QuireKitFormRule>(() => {\n const skip = disabled.value;\n const required = props.required;\n const requiredMessage = props.requiredMessage ?? text.value.required(props.label);\n const failure = text.value.validationFailed;\n const rules = props.rules ? (Array.isArray(props.rules) ? props.rules : [props.rules]) : [];\n return async (value, context) => {\n const generation = epoch;\n const cancelled = suppress;\n // Cancellation must settle a newer mutating VeeValidate run. Returning current\n // errors also keeps late silent runs from changing the new baseline's validity.\n if (cancelled) { await Promise.resolve(); return [...field.errors.value]; }\n if (skip) return true;\n if (required && (value == null || value === false || (typeof value === \"string\" && !value.trim()) || (Array.isArray(value) && !value.length))) return requiredMessage;\n for (const rule of rules) {\n try {\n const result = await rule(value, context);\n if (generation !== epoch) return [...field.errors.value];\n if (result !== true && !(Array.isArray(result) && result.length === 0)) return result;\n } catch (error) {\n if (generation !== epoch) return [...field.errors.value];\n form.reportError(error);\n return failure;\n }\n }\n return true;\n };\n });\n field = useField(() => props.name, validator, {\n label: () => props.label, validateOnValueUpdate: false,\n keepValueOnUnmount: () => props.keepValueOnUnmount ?? true\n });\n\n /** Supersedes VeeValidate's mutating queue without evaluating old draft rules. */\n function cancelPending(): void {\n epoch++;\n suppress = true;\n void field.validate();\n suppress = false;\n field.meta.pending = false;\n }\n\n // Silent and mutating VeeValidate queues have separate latest-result guards.\n // A new value must explicitly supersede a pending mutating run, even in blur mode.\n watch(field.value, () => {\n epoch++;\n if (field.meta.pending) void field.validate();\n }, { deep: true, flush: \"sync\" });\n watch(validator, () => {\n epoch++;\n if (disabled.value) {\n field.setErrors([]);\n cancelPending();\n } else if (field.meta.touched || field.meta.validated) void field.validate();\n }, { flush: \"sync\" });\n watch(lifecycle.resetEpoch, () => {\n cancelPending();\n field.meta.validated = false;\n }, { flush: \"sync\" });\n onBeforeUnmount(() => { epoch++; release?.(); });\n\n /** Applies control changes without bypassing the form's edit lock.\n * @param value - Next model value from a custom or built-in control.\n */\n function setValue(value: unknown): void {\n if (disabled.value || readOnly.value) return;\n field.setValue(value, timing.value === \"change\" || field.meta.pending || field.errors.value.length > 0);\n }\n /** Applies blur policy at the whole control boundary. */\n function handleBlur(): void {\n if (disabled.value || form.isSubmitting.value) return;\n field.handleBlur(undefined, timing.value === \"blur\" || field.errors.value.length > 0);\n }\n // Invalidate dependencies inside the setter, before a same-tick submit can\n // begin its locked validation. A queued watcher would cancel that newer run.\n watch(() => (props.dependsOn ?? []).map(path => readFormPath(form.values, path)), () => {\n epoch++;\n if (!disabled.value && !form.isSubmitting.value && (field.meta.touched || field.meta.validated || field.errors.value.length)) void field.validate();\n }, { deep: true, flush: \"sync\" });\n return { field, disabled, readOnly, setValue, handleBlur };\n}\n","<script setup lang=\"ts\">\nimport QuireField from \"../field/field.vue\";\nimport { computed } from \"vue\";\nimport { useFormFieldBinding } from \"./use-binding\";\nimport { normalizeFormFieldPath } from \"./path\";\nimport type { QuireKitFieldSlotProps } from \"../../components/field\";\nimport type { QuireKitFormFieldFeedbackSlotProps, QuireKitFormFieldProps, QuireKitFormFieldSlotProps } from \"./types\";\n\nconst props = withDefaults(defineProps<QuireKitFormFieldProps>(), { keepValueOnUnmount: true });\ndefineSlots<{\n /** Render one input, binding controlProps or using the custom model actions. */\n default: (field: QuireKitFormFieldSlotProps) => unknown;\n /** Short information or an action next to the label. */\n meta?: (field: QuireKitFormFieldFeedbackSlotProps) => unknown;\n /** Replaces the current feedback text without removing its semantic container. */\n message?: (field: QuireKitFormFieldFeedbackSlotProps) => unknown;\n}>();\nconst { field, disabled, readOnly, setValue, handleBlur } = useFormFieldBinding(props);\nconst { errorMessage, errors, meta } = field;\nconst feedback = computed(() => ({ value: field.value.value, meta, errorMessage: errorMessage.value }));\nconst visualProps = computed(() => ({\n ...(props.id === undefined ? {} : { id: props.id }),\n ...(props.description === undefined ? {} : { description: props.description }),\n ...(props.disabledReason === undefined ? {} : { disabledReason: props.disabledReason }),\n ...(errorMessage.value === undefined ? {} : { errorText: errorMessage.value })\n}));\n\n/** Combines Field's accessible attributes with the controlled model contract.\n * @param visual - QuireField's control association and feedback state.\n * @returns Custom control slot context.\n */\nfunction slotProps(visual: QuireKitFieldSlotProps): QuireKitFormFieldSlotProps {\n return {\n ...visual, value: field.value.value, setValue, handleBlur, validate: field.validate, meta,\n errorMessage: errorMessage.value,\n controlProps: {\n ...visual.controlProps,\n required: visual.controlProps.required ?? false,\n disabled: visual.controlProps.disabled ?? false,\n readOnly: visual.controlProps.readOnly ?? false,\n name: props.name, modelValue: field.value.value, \"onUpdate:modelValue\": setValue\n }\n };\n}\n\n/** Treats a compound control as one blur boundary.\n * @param event - Bubbling native focusout event.\n */\nfunction onFocusout(event: FocusEvent): void {\n if (event.relatedTarget instanceof Node && (event.currentTarget as HTMLElement).contains(event.relatedTarget)) return;\n handleBlur();\n}\n</script>\n\n<template>\n <QuireField v-bind=\"visualProps\" :label=\"label\"\n :width=\"width ?? '100%'\" :required=\"required\" :disabled=\"disabled\" :read-only=\"readOnly\"\n :invalid=\"errors.length > 0 && !disabled\" :busy=\"meta.pending\"\n :data-form-field=\"normalizeFormFieldPath(name)\" @focusout=\"onFocusout\">\n <template #default=\"visual\"><div data-form-control class=\"qk-form__control\"><slot v-bind=\"slotProps(visual)\" /></div></template>\n <template v-if=\"$slots.meta\" #meta><slot name=\"meta\" v-bind=\"feedback\" :status=\"undefined\" /></template>\n <template v-if=\"$slots.message\" #message=\"visual\"><slot name=\"message\" v-bind=\"feedback\" :status=\"visual.status\" /></template>\n </QuireField>\n</template>\n","import type { QuireKitSpaceGap } from './types';\n\nconst gapVariables: Record<Exclude<QuireKitSpaceGap, 0>, string> = {\n inlineTight: 'var(--qk-space-inline-tight)',\n inline: 'var(--qk-space-inline)',\n surfaceCompact: 'var(--qk-space-surface-compact)',\n surface: 'var(--qk-space-surface)',\n group: 'var(--qk-space-group)',\n section: 'var(--qk-space-section)'\n};\n\n/**\n * Resolves a composition gap against the currently inherited theme.\n * @param gap Semantic spacing role, or zero for intentionally adjacent elements.\n * @returns A CSS length expression without freezing theme values.\n */\nexport function resolveSpaceGap(gap: QuireKitSpaceGap): string {\n return gap === 0 ? '0px' : gapVariables[gap];\n}\n","<script setup lang=\"ts\">\nimport { Fieldset } from \"@ark-ui/vue/fieldset\";\nimport { computed } from \"vue\";\nimport type { QuireKitSpaceGap } from \"../space/types\";\nimport { resolveSpaceGap } from \"../space/spacing\";\nimport { useQuireKitMessages } from \"../locale-provider/context\";\nimport type {\n QuireKitFieldsetAppearance,\n QuireKitFieldsetOrientation,\n QuireKitFieldsetSlotProps\n} from \"../../components/fieldset\";\n\n/** Vue Fieldset 的公开属性。 */\ninterface Props {\n /** 分组的可见且可访问名称。 */\n readonly legend: string;\n /** 视觉隐藏标题但保留原生组名;隐藏时不渲染 legend/meta 自定义内容。 */\n readonly legendHidden?: boolean;\n /** 对整组字段的补充说明。 */\n readonly description?: string;\n /** 校验失败时显示的恢复说明;省略时使用语言包的通用提示。 */\n readonly errorText?: string;\n /** 稳定的原生 fieldset id。 */\n readonly id?: string;\n /** 内容的排列方向。 */\n readonly orientation?: QuireKitFieldsetOrientation;\n /** Semantic vertical distance between fields; defaults to compact surface spacing, matching Form. */\n readonly gap?: QuireKitSpaceGap;\n /** 分组的视觉外观。 */\n readonly appearance?: QuireKitFieldsetAppearance;\n /** Fieldset 接受的 CSS 宽度。 */\n readonly width?: string | number;\n /** 是否处于校验错误状态。 */\n readonly invalid?: boolean;\n /** 是否通过原生 fieldset 语义禁用组内表单控件。 */\n readonly disabled?: boolean;\n}\n\n/** Fieldset 的可替换内容位置。 */\ninterface Slots {\n /** 分组中的字段或任意自定义内容。 */\n readonly default: (props: QuireKitFieldsetSlotProps) => unknown;\n /** 替换 legend 文本但保留原生 legend 元素。 */\n readonly legend?: (props: QuireKitFieldsetSlotProps) => unknown;\n /** legend 右侧的计数、状态或局部操作。 */\n readonly meta?: (props: QuireKitFieldsetSlotProps) => unknown;\n /** 替换说明或错误文本。 */\n readonly message?: (props: QuireKitFieldsetSlotProps) => unknown;\n}\n\nconst props = withDefaults(defineProps<Props>(), {\n orientation: \"vertical\",\n gap: \"surfaceCompact\",\n appearance: \"plain\",\n legendHidden: false,\n width: \"100%\",\n invalid: false,\n disabled: false\n});\ndefineSlots<Slots>();\nconst text = useQuireKitMessages(\"fieldset\");\n\nconst rootStyle = computed(() => ({ width: props.width }));\nconst optionalRootBindings = computed(() => (\n props.id === undefined ? {} : { id: props.id }\n));\nconst slotProps = computed<QuireKitFieldsetSlotProps>(() => ({\n invalid: props.invalid,\n disabled: props.disabled,\n orientation: props.orientation\n}));\n</script>\n\n<template>\n <Fieldset.Root\n v-bind=\"optionalRootBindings\"\n :invalid=\"invalid\"\n :disabled=\"disabled\"\n :style=\"rootStyle\"\n :class=\"[\n 'qk-fieldset',\n `qk-fieldset--${appearance}`,\n invalid && 'qk-fieldset--invalid',\n disabled && 'qk-fieldset--disabled'\n ]\"\n >\n <Fieldset.Legend\n :class=\"[\n legendHidden ? 'qk-fieldset__legend--hidden' : 'qk-fieldset__legend'\n ]\"\n >\n <template v-if=\"legendHidden\">{{ legend }}</template>\n <span v-else class=\"qk-fieldset__legend-label\">\n <slot name=\"legend\" v-bind=\"slotProps\">{{ legend }}</slot>\n </span>\n <span v-if=\"!legendHidden && $slots.meta\" class=\"qk-fieldset__meta\">\n <slot name=\"meta\" v-bind=\"slotProps\" />\n </span>\n </Fieldset.Legend>\n\n <div\n class=\"qk-fieldset__body\"\n >\n <Fieldset.HelperText\n v-if=\"description && !invalid\"\n class=\"qk-fieldset__message\"\n >\n <slot name=\"message\" v-bind=\"slotProps\">{{ description }}</slot>\n </Fieldset.HelperText>\n <Fieldset.ErrorText\n v-if=\"invalid\"\n class=\"qk-fieldset__message qk-fieldset__message--error\"\n >\n <slot name=\"message\" v-bind=\"slotProps\">{{ errorText ?? text.invalid }}</slot>\n </Fieldset.ErrorText>\n\n <div\n :style=\"{ rowGap: resolveSpaceGap(gap), alignItems: 'start' }\"\n :class=\"[\n 'qk-fieldset__content',\n `qk-fieldset__content--${orientation}`\n ]\"\n >\n <slot v-bind=\"slotProps\" />\n </div>\n </div>\n </Fieldset.Root>\n</template>\n","<script setup lang=\"ts\">\nimport { usePasswordInput, type UsePasswordInputProps } from \"@ark-ui/vue/password-input\";\nimport { computed, useAttrs } from \"vue\";\nimport type { QuireKitInputProps } from \"../../components/input\";\nimport QuireIconButton from \"../button/icon-button.vue\";\nimport QuireIcon from \"../icon/icon.vue\";\nimport { useQuireKitMessages } from \"../locale-provider/context\";\n\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<Pick<QuireKitInputProps,\n \"visibilityToggle\" | \"visible\" | \"defaultVisible\" | \"disabled\" | \"readOnly\" | \"required\" | \"invalid\"\n>>(), {\n visible: undefined\n});\nconst text = useQuireKitMessages(\"input\");\nconst emit = defineEmits<{\n /** Requests the next visible state from the owning Input. */\n \"update:visible\": [visible: boolean];\n}>();\nconst attrs = useAttrs();\nconst password = usePasswordInput(computed<UsePasswordInputProps>(() => ({\n visible: props.visible,\n defaultVisible: props.defaultVisible,\n disabled: props.disabled,\n readOnly: props.readOnly,\n required: props.required,\n invalid: props.invalid,\n translations: { visibilityTrigger: (visible) => visible ? text.value.hidePassword : text.value.showPassword },\n ...(typeof attrs.id === \"string\" ? { ids: { input: attrs.id } } : {}),\n onVisibilityChange: ({ visible }) => emit(\"update:visible\", visible)\n})));\n// Forward Ark's native attributes and handlers through the styled button adapter.\nconst triggerProps = computed<Record<string, unknown>>(() => ({ ...password.value.getVisibilityTriggerProps() }));\nconst fieldProps = computed(() => ({\n ...password.value.getInputProps(),\n ...attrs,\n // The host retains native form attributes; Ark owns only the displayed type.\n type: password.value.visible ? \"text\" : \"password\"\n}));\n\n/**\n * Enables keyboard and assistive activation alongside Ark's pointer trigger.\n * @param event - Button click; pointer clicks already toggled on pointerdown.\n */\nfunction activateWithKeyboard(event: MouseEvent): void {\n if (event.detail === 0 && !props.disabled && !props.readOnly) password.value.toggleVisible();\n}\n</script>\n\n<template>\n <input v-bind=\"fieldProps\" />\n <QuireIconButton\n v-if=\"visibilityToggle\"\n v-bind=\"triggerProps\"\n :label=\"password.visible ? text.hidePassword : text.showPassword\"\n :disabled=\"disabled || readOnly\"\n :tabindex=\"0\"\n size=\"xs\"\n class=\"qk-input__action\"\n @click=\"activateWithKeyboard\"\n >\n <QuireIcon :name=\"password.visible ? 'eyeOff' : 'eye'\" />\n </QuireIconButton>\n</template>\n","<script setup lang=\"ts\">\nimport QuireButton from \"../button/button.vue\";\nimport QuireIcon from \"../icon/icon.vue\";\nimport { ark } from \"@ark-ui/vue/factory\";\nimport { computed, ref, useAttrs, watch } from \"vue\";\nimport type { QuireKitInputProps } from \"../../components/input\";\nimport { useQuireKitMessages } from \"../locale-provider/context\";\nimport PasswordField from \"./password-field.vue\";\nimport { useFieldLabel } from \"../field/context\";\n\ndefineOptions({ inheritAttrs: false });\n\nconst ArkInput = ark.input;\n\n/** 文本 Input 的公开事件。 */\ninterface Emits {\n /** 请求更新密码可见性,不改变输入值。 */\n \"update:visible\": [visible: boolean];\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\n/** Input 前后稳定内容位置。 */\ninterface Slots {\n /** 输入前的图标或短前缀。 */\n readonly leading?: () => unknown;\n /** 输入后的图标或短后缀。 */\n readonly trailing?: () => unknown;\n}\n\nconst props = withDefaults(defineProps<QuireKitInputProps>(), {\n clearable: false,\n defaultValue: \"\",\n type: \"text\",\n visibilityToggle: true,\n visible: undefined,\n defaultVisible: false,\n size: \"sm\",\n width: \"240px\",\n textAlign: \"start\",\n disabled: false,\n invalid: false,\n required: false,\n readOnly: false\n});\nconst emit = defineEmits<Emits>();\ndefineSlots<Slots>();\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[props.type]);\n});\nconst root = ref<HTMLElement>();\nconst internalValue = ref(props.modelValue ?? props.defaultValue);\nconst currentValue = computed(() => props.modelValue ?? internalValue.value);\nconst rootStyle = computed(() => [\n { width: props.width },\n attrs.style\n]);\nconst rootClass = computed(() => attrs.class);\nconst inputAttrs = computed(() => Object.fromEntries(\n Object.entries(attrs).filter(([name]) => name !== \"class\" && name !== \"style\")\n));\nconst passwordProps = computed(() => props.type === \"password\" ? {\n visibilityToggle: props.visibilityToggle,\n visible: props.visible,\n defaultVisible: props.defaultVisible,\n readOnly: props.readOnly,\n invalid: props.invalid\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 HTMLInputElement).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 HTMLInputElement).value);\n}\n/** Clears an editable value and returns focus to its native input. */\nfunction clearValue(): void {\n if (props.disabled || props.readOnly) return;\n internalValue.value = \"\";\n emit(\"update:modelValue\", \"\");\n emit(\"valueChange\", \"\");\n root.value?.querySelector(\"input\")?.focus();\n}\n</script>\n\n<template>\n <span ref=\"root\"\n :style=\"rootStyle\"\n :class=\"[\n 'qk-input',\n `qk-input--${size}`,\n invalid && 'qk-input--invalid',\n disabled && 'qk-input--disabled',\n rootClass\n ]\"\n >\n <span v-if=\"$slots.leading\" class=\"qk-input__adornment\" data-slot=\"leading\">\n <slot name=\"leading\" />\n </span>\n <component\n :is=\"type === 'password' ? PasswordField : ArkInput\"\n v-bind=\"{ ...inputAttrs, ...passwordProps }\"\n :value=\"currentValue\"\n :style=\"{ textAlign }\"\n :type=\"type\"\n :placeholder=\"emptyHint\"\n :name=\"name\"\n :form=\"form\"\n :autocomplete=\"autocomplete\"\n :disabled=\"disabled\"\n :aria-invalid=\"invalid || undefined\"\n :required=\"required\"\n :readonly=\"readOnly\"\n :minlength=\"minlength\"\n :maxlength=\"maxlength\"\n :pattern=\"pattern\"\n class=\"qk-input__field\"\n @input=\"updateValue\"\n @change=\"commitValue\"\n @focus=\"emit('focus', $event)\"\n @blur=\"emit('blur', $event)\"\n @update:visible=\"emit('update:visible', $event)\"\n />\n <QuireButton v-if=\"clearable && currentValue && !disabled && !readOnly\" variant=\"ghost\" size=\"xs\" :aria-label=\"text.clear\" @pointerdown.prevent @click=\"clearValue\">\n <QuireIcon name=\"close\" :size=\"12\" />\n </QuireButton>\n <span v-if=\"$slots.trailing\" class=\"qk-input__adornment\" data-slot=\"trailing\">\n <slot name=\"trailing\" />\n </span>\n </span>\n</template>\n","<script setup lang=\"ts\">\nimport { Checkbox } from \"@ark-ui/vue/checkbox\";\nimport { Switch } from \"@ark-ui/vue/switch\";\nimport { computed, useAttrs } from \"vue\";\nimport QuireIcon from \"../../icon/icon.vue\";\n\ndefineOptions({ inheritAttrs: false });\n/** Label-free boolean adapter: the enclosing QuireField owns the only label. */\ninterface Props {\n /** Boolean control family. */\n readonly kind?: \"checkbox\" | \"switch\";\n /** Controlled boolean value. */\n readonly modelValue?: boolean;\n /** Native field path. */\n readonly name?: string;\n /** Editing disablement. */\n readonly disabled?: boolean;\n /** Readable, focusable editing restriction. */\n readonly readOnly?: boolean;\n /** Required true value. */\n readonly required?: boolean;\n /** Field validation failure. */\n readonly invalid?: boolean;\n}\nconst props = withDefaults(defineProps<Props>(), { kind: \"checkbox\", modelValue: false });\nconst emit = defineEmits<{ \"update:modelValue\": [value: boolean] }>();\nconst attrs = useAttrs();\nconst inputAttrs = computed(() => Object.fromEntries(Object.entries(attrs).filter(([key]) => key === \"id\" || key.startsWith(\"aria-\"))));\nconst rootProps = computed(() => ({\n ...(props.name === undefined ? {} : { name: props.name }),\n checked: props.modelValue, disabled: props.disabled, readOnly: props.readOnly,\n required: props.required, invalid: props.invalid\n}));\n</script>\n\n<template>\n <Checkbox.Root v-if=\"kind === 'checkbox'\" v-bind=\"rootProps\"\n class=\"qk-checkbox qk-checkbox--sm\" @update:checked=\"emit('update:modelValue', $event === true)\">\n <Checkbox.HiddenInput v-bind=\"inputAttrs\" />\n <Checkbox.Control class=\"qk-checkbox__control qk-checkbox__control--sm\">\n <Checkbox.Indicator class=\"qk-checkbox__indicator\"><QuireIcon name=\"check\" :size=\"12\" /></Checkbox.Indicator>\n </Checkbox.Control>\n </Checkbox.Root>\n <Switch.Root v-else v-bind=\"rootProps\" class=\"qk-switch qk-switch--sm\"\n @update:checked=\"emit('update:modelValue', $event)\">\n <Switch.HiddenInput v-bind=\"inputAttrs\" role=\"switch\" />\n <Switch.Control class=\"qk-switch__control qk-switch__control--sm\">\n <Switch.Thumb class=\"qk-switch__thumb qk-switch__thumb--sm\" />\n </Switch.Control>\n </Switch.Root>\n</template>\n","import Input from \"../../input/input.vue\";\nimport Textarea from \"../../textarea/textarea.vue\";\nimport InputNumber from \"../../input-number/input-number.vue\";\nimport Select from \"../../select/select.vue\";\nimport BooleanControl from \"./boolean.vue\";\nimport type { QuireKitSchemaRegistry } from \"../types\";\n\n/** Normalizes empty scalar values for controlled text/number/select components.\n * @param value - Stored scalar draft.\n * @returns A controlled string, including the empty value after reset.\n */\nfunction textValue(value: unknown): string { return value == null ? \"\" : String(value); }\n\n/** Built-in controls reuse existing QuireKit recipes and headless adapters. */\nexport const schemaControls: QuireKitSchemaRegistry = Object.freeze({\n input: { component: Input, toControl: textValue },\n textarea: { component: Textarea, toControl: textValue },\n // NumberInput owns localized strings; numerical payload conversion belongs to the consumer.\n number: { component: InputNumber, toControl: textValue },\n select: { component: Select, toControl: textValue },\n checkbox: { component: BooleanControl, toControl: Boolean },\n switch: { component: BooleanControl, toControl: Boolean }\n});\n","import { h } from \"vue\";\nimport type { VNode } from \"vue\";\nimport type { QuireKitSchemaFieldSlotProps, QuireKitSchemaRegistry } from \"./types\";\nimport { schemaControls } from \"./controls/registry\";\n\n/** Projects the canonical field binding onto an explicit component adapter.\n * @param slot - Registered field context and its original definition.\n * @param registry - Consumer-local component allowlist.\n * @returns Bound input VNode.\n */\nexport function renderSchemaControl(slot: QuireKitSchemaFieldSlotProps, registry: QuireKitSchemaRegistry): VNode {\n const field = slot.field;\n const adapter = (Object.hasOwn(registry, field.control) ? registry[field.control] : undefined)\n ?? (Object.hasOwn(schemaControls, field.control) ? schemaControls[field.control] : undefined);\n if (!adapter) throw new Error(`Unknown QuireSchemaForm control \"${field.control}\" for \"${field.name}\". Register it or provide a field slot.`);\n const { modelValue, \"onUpdate:modelValue\": update, width, ...association } = slot.controlProps;\n const event = adapter.updateEvent ?? \"update:modelValue\";\n const model = adapter.modelProp ?? \"modelValue\";\n return h(adapter.component, {\n width: width ?? \"100%\", label: field.label,\n ...(field.control === \"switch\" ? { kind: \"switch\" } : {}),\n ...field.props, ...association,\n [model]: adapter.toControl ? adapter.toControl(modelValue) : modelValue,\n [`on${event[0]?.toUpperCase()}${event.slice(1)}`]: (value: unknown) => {\n try { update(adapter.fromControl ? adapter.fromControl(value) : value); }\n catch (error) { slot.form.reportError(error); }\n }\n });\n}\n","import { normalizeFormFieldPath } from \"../form-field/path\";\nimport type { QuireKitSchemaNode } from \"./types\";\n\n/** Rejects ambiguous ownership before any configured fields are registered.\n * @param nodes - Complete trusted tree, including currently hidden fields.\n */\nexport function validateSchemaTree(nodes: readonly QuireKitSchemaNode[]): void {\n const names = new Set<string>();\n /** Checks one sibling set and recurses into semantic groups.\n * @param siblings - Nodes that share a render-key namespace.\n */\n function visit(siblings: readonly QuireKitSchemaNode[]): void {\n const keys = new Set<string>();\n for (const node of siblings) {\n const key = \"children\" in node ? node.key : node.key ?? node.name;\n if (!key || keys.has(key)) throw new Error(`Duplicate or empty QuireSchemaForm sibling key \"${key}\".`);\n keys.add(key);\n if (\"children\" in node) visit(node.children);\n else {\n const name = normalizeFormFieldPath(node.name);\n if (!name || names.has(name)) throw new Error(`Duplicate or empty QuireSchemaForm field name \"${node.name}\".`);\n names.add(name);\n }\n }\n }\n visit(nodes);\n}\n","import { defineComponent, h } from \"vue\";\nimport type { PropType, Slots, VNode, VNodeChild } from \"vue\";\nimport Fieldset from \"../fieldset/fieldset.vue\";\nimport FormField from \"../form-field/form-field.vue\";\nimport { useQuireForm } from \"../form/context\";\nimport { renderSchemaControl } from \"./render-control\";\nimport { validateSchemaTree } from \"./validate-tree\";\nimport type { QuireKitFormFieldSlotProps } from \"../form-field/types\";\nimport type { QuireKitSchemaCondition, QuireKitSchemaNode, QuireKitSchemaRegistry } from \"./types\";\n\n/** Internal recursive renderer: identity, conditions and semantic grouping only. */\nexport default defineComponent({\n name: \"QuireSchemaFields\",\n props: {\n nodes: { type: Array as PropType<readonly QuireKitSchemaNode[]>, required: true },\n registry: { type: Object as PropType<QuireKitSchemaRegistry>, default: () => ({}) },\n fieldSlots: { type: Object as PropType<Slots>, required: true }\n },\n /** Binds every rendered field to the enclosing form authority.\n * @param props - Tree, registry and forwarded field slots.\n * @returns Reactive recursive render function.\n */\n setup(props) {\n const form = useQuireForm();\n /** Resolves a trusted boolean/function condition.\n * @param condition - Optional node condition.\n * @param fallback - Default when absent.\n * @returns Resolved condition.\n */\n function condition(condition: QuireKitSchemaCondition | undefined, fallback: boolean): boolean {\n return typeof condition === \"function\" ? condition(form.values) : condition ?? fallback;\n }\n /** Renders siblings with stable keys; hidden nodes unmount their registrations.\n * @param nodes - Current siblings.\n * @param inheritedDisabled - Disabled ancestor group.\n * @param inheritedReadOnly - Readonly ancestor group.\n * @returns Visible field/group nodes.\n */\n function renderNodes(nodes: readonly QuireKitSchemaNode[], inheritedDisabled = false, inheritedReadOnly = false): VNode[] {\n return nodes.flatMap(node => {\n if (!condition(node.visible, true)) return [];\n const disabled = inheritedDisabled || condition(node.disabled, false);\n const readOnly = inheritedReadOnly || condition(node.readOnly, false);\n if (\"children\" in node) {\n return [h(Fieldset, {\n key: node.key, legend: node.legend, disabled, width: \"100%\",\n ...(node.legendHidden === undefined ? {} : { legendHidden: node.legendHidden }),\n ...(node.description === undefined ? {} : { description: node.description }),\n ...(node.appearance === undefined ? {} : { appearance: node.appearance }),\n ...(node.orientation === undefined ? {} : { orientation: node.orientation })\n }, () => renderNodes(node.children, disabled, readOnly))];\n }\n const { control: _control, props: _props, visible: _visible, ...fieldProps } = node;\n return [h(FormField, { ...fieldProps, key: node.key ?? node.name, disabled, readOnly }, {\n default: (field: QuireKitFormFieldSlotProps): VNodeChild => {\n const slot = { ...field, field: node, form };\n return props.fieldSlots[`field:${node.name}`]?.(slot) ?? renderSchemaControl(slot, props.registry);\n }\n })];\n });\n }\n return () => {\n validateSchemaTree(props.nodes);\n return renderNodes(props.nodes);\n };\n }\n});\n","<script setup lang=\"ts\">\nimport { computed, ref } from \"vue\";\nimport QuireForm from \"../form/form.vue\";\nimport SchemaFields from \"./tree\";\nimport type { QuireKitFormContext, QuireKitFormSlotProps } from \"../form/types\";\nimport type { QuireKitSchemaFormProps, QuireKitSchemaFormSlots } from \"./types\";\n\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<QuireKitSchemaFormProps>(), { focusOnError: true });\ndefineSlots<QuireKitSchemaFormSlots>();\nconst form = ref<QuireKitFormSlotProps>();\nconst formProps = computed(() => {\n const { fields: _fields, registry: _registry, ...options } = props;\n return options;\n});\n/** Submits through the underlying native form's lock and validation lifecycle.\n * @param event - Optional native submission event.\n * @returns Completion after save and feedback.\n */\nasync function submit(event?: Event): Promise<void> { await form.value?.submit(event); }\n/** Resets the underlying form when its submission lock permits it.\n * @param state - Optional replacement baseline.\n * @param options - Reset merge/replace policy.\n * @returns Whether reset was accepted.\n */\nfunction resetForm(...[state, options]: Parameters<QuireKitFormContext[\"resetForm\"]>): boolean {\n return form.value?.resetForm(state, options) ?? false;\n}\ndefineExpose({ form, submit, resetForm });\n</script>\n\n<template>\n <QuireForm ref=\"form\" v-bind=\"{ ...$attrs, ...formProps }\">\n <template #default=\"state\">\n <SchemaFields :nodes=\"fields\" :registry=\"registry ?? {}\" :field-slots=\"$slots\" />\n <slot v-bind=\"state\" />\n </template>\n <template v-if=\"$slots.actions\" #actions=\"state\"><slot name=\"actions\" v-bind=\"state\" /></template>\n <template v-if=\"$slots.error\" #error=\"state\"><slot name=\"error\" v-bind=\"state\" /></template>\n </QuireForm>\n</template>\n","<script setup lang=\"ts\">\nimport { FileUpload, useFileUploadContext } from \"@ark-ui/vue/file-upload\";\nimport { onMounted, useTemplateRef } from \"vue\";\nimport type { ComponentPublicInstance } from \"vue\";\n\nconst fileUpload = useFileUploadContext();\nconst input = useTemplateRef<ComponentPublicInstance>(\"input\");\n\n/** Initializes native form state before later collection changes are synchronized by Ark. */\nfunction initializeFiles(): void {\n const element = input.value?.$el as HTMLInputElement | undefined;\n if (!element || fileUpload.value.acceptedFiles.length === 0) return;\n const transfer = new DataTransfer();\n fileUpload.value.acceptedFiles.forEach(file => transfer.items.add(file));\n element.files = transfer.files;\n}\n\nonMounted(initializeFiles);\n</script>\n\n<template>\n <FileUpload.HiddenInput ref=\"input\" />\n</template>\n","<script setup lang=\"ts\">\nimport { FileUpload, useFileUploadContext } from '@ark-ui/vue/file-upload';\nimport type { QuireKitFileUploadItemSlotProps, QuireKitFileUploadListProps, QuireKitFileUploadRejectionSlotProps } from '../../components/file-upload';\nimport QuireIcon from '../icon/icon.vue';\nimport QuireIconButton from '../button/icon-button.vue';\nimport QuireFileIcon from '../file-icon/file-icon.vue';\nimport HorizontalStrip from '../shared/horizontal-scroll/strip.vue';\nimport { getQuireKitFileUploadErrorMessage } from '../../components/file-upload';\nimport { useQuireKitMessages } from '../locale-provider/context';\n\nwithDefaults(defineProps<QuireKitFileUploadListProps>(), { layout: 'list', showRejections: true });\nconst emit = defineEmits<{ /** 文件移除意图,便于宿主恢复焦点;集合仍通过 FileUpload 同步。 */ remove: [file: File] }>();\ndefineSlots<{\n /** 替换单个已接受文件。 */ item?: (props: QuireKitFileUploadItemSlotProps) => unknown;\n /** 替换单个拒绝文件反馈。 */ rejection?: (props: QuireKitFileUploadRejectionSlotProps) => unknown;\n /** 没有已接受文件时的内容。 */ empty?: () => unknown;\n}>();\nconst fileUpload = useFileUploadContext();\nconst text = useQuireKitMessages('fileUpload');\n/** @param errors - Rejection codes. @returns Readable feedback in the resolved language. */\nconst getFileErrorMessage = (errors: readonly string[]): string => getQuireKitFileUploadErrorMessage(errors, text.value);\n\n/** Delete through the existing upload owner, never mutate a host's File array.\n * @param file - Accepted or rejected local file.\n * @param type - Owning collection.\n */\nfunction remove(file: File, type: 'accepted' | 'rejected'): void {\n if (fileUpload.value.disabled || fileUpload.value.readOnly) return;\n fileUpload.value.deleteFile(file, type);\n emit('remove', file);\n}\n</script>\n\n<template>\n <div class=\"qk-file-upload__collection\" :data-layout=\"layout\">\n <HorizontalStrip v-if=\"fileUpload.acceptedFiles.length\" :enabled=\"layout === 'strip'\">\n <FileUpload.ItemGroup class=\"qk-file-upload__list\" type=\"accepted\">\n <FileUpload.Item v-for=\"(file, index) in fileUpload.acceptedFiles\" :key=\"`${file.name}-${file.size}-${file.lastModified}`\"\n class=\"qk-file-upload__item\" :data-media=\"file.type.startsWith('image/') ? 'image' : 'file'\" :file=\"file\" type=\"accepted\">\n <slot name=\"item\" :file=\"file\" :index=\"index\" :size-text=\"fileUpload.getFileSize(file)\" :remove=\"() => remove(file, 'accepted')\">\n <div class=\"qk-file-upload__preview\" aria-hidden=\"true\">\n <QuireFileIcon :name=\"file.name\" :media-type=\"file.type\" :size=\"28\" />\n <FileUpload.ItemPreview class=\"qk-file-upload__preview-image-wrap\" type=\"image/*\">\n <FileUpload.ItemPreviewImage class=\"qk-file-upload__preview-image\" />\n </FileUpload.ItemPreview>\n </div>\n <div class=\"qk-file-upload__item-content\">\n <FileUpload.ItemName class=\"qk-file-upload__item-name\" :title=\"file.name\" />\n <FileUpload.ItemSizeText class=\"qk-file-upload__item-size\" />\n </div>\n <QuireIconButton class=\"qk-file-upload__delete\" :label=\"text.remove(file.name)\" size=\"xs\"\n :shape=\"layout === 'strip' && file.type.startsWith('image/') ? 'circle' : 'rounded'\"\n :variant=\"layout === 'strip' && file.type.startsWith('image/') ? 'solid' : 'ghost'\"\n :disabled=\"fileUpload.disabled || fileUpload.readOnly\" @click=\"remove(file, 'accepted')\">\n <QuireIcon name=\"close\" :size=\"16\" />\n </QuireIconButton>\n </slot>\n </FileUpload.Item>\n </FileUpload.ItemGroup>\n </HorizontalStrip>\n <slot v-else name=\"empty\" />\n <FileUpload.ItemGroup v-if=\"showRejections && fileUpload.rejectedFiles.length\" class=\"qk-file-upload__rejections\" type=\"rejected\">\n <FileUpload.Item v-for=\"(rejection, index) in fileUpload.rejectedFiles\" :key=\"`${rejection.file.name}-${rejection.file.size}-${index}`\"\n class=\"qk-file-upload__rejection\" :file=\"rejection.file\" type=\"rejected\">\n <slot name=\"rejection\" :rejection=\"rejection\" :index=\"index\" :message=\"getFileErrorMessage(rejection.errors)\" :remove=\"() => remove(rejection.file, 'rejected')\">\n <QuireIcon class=\"qk-file-upload__rejection-icon\" name=\"triangleAlert\" :size=\"20\" />\n <div class=\"qk-file-upload__item-content\">\n <FileUpload.ItemName class=\"qk-file-upload__item-name\" />\n <span class=\"qk-file-upload__rejection-message\">{{ getFileErrorMessage(rejection.errors) }}</span>\n </div>\n <QuireIconButton class=\"qk-file-upload__delete\" :label=\"text.remove(rejection.file.name)\" size=\"xs\"\n :disabled=\"fileUpload.disabled || fileUpload.readOnly\" @click=\"remove(rejection.file, 'rejected')\">\n <QuireIcon name=\"close\" :size=\"16\" />\n </QuireIconButton>\n </slot>\n </FileUpload.Item>\n </FileUpload.ItemGroup>\n </div>\n</template>\n","<script setup lang=\"ts\">\nimport { FileUpload } from \"@ark-ui/vue/file-upload\";\nimport type { FileUploadFileAcceptDetails, FileUploadFileChangeDetails, FileUploadFileRejectDetails } from \"@ark-ui/vue/file-upload\";\nimport { computed } from \"vue\";\nimport { useQuireKitLocale, useQuireKitMessages } from \"../locale-provider/context\";\nimport type { FileUploadProps as Props, FileUploadSlots as Slots, FileUploadEmits as Emits } from \"./types\";\nimport QuireIcon from \"../icon/icon.vue\";\nimport HiddenInput from \"./hidden-input.vue\";\nimport FileList from \"./file-list.vue\";\n\nconst props = withDefaults(defineProps<Props>(), {\n hint: undefined,\n accept: undefined,\n multiple: false,\n maxFiles: 5,\n maxFileSize: Number.POSITIVE_INFINITY,\n minFileSize: 0,\n defaultFiles: () => [],\n allowDrop: true,\n clearable: true,\n disabled: false,\n readOnly: false,\n invalid: false,\n required: false,\n name: undefined,\n validate: undefined\n});\nconst modelFiles = defineModel<File[] | undefined>();\nconst emit = defineEmits<Emits>();\ndefineSlots<Slots>();\nlet acceptedInCurrentBatch: File[] | undefined;\n\nconst effectiveMaxFiles = computed(() => props.multiple ? Math.max(1, props.maxFiles) : 1);\nconst optionalRootProps = computed(() => ({\n ...(modelFiles.value === undefined\n ? { defaultAcceptedFiles: props.defaultFiles }\n : { acceptedFiles: modelFiles.value }),\n ...(props.accept === undefined ? {} : { accept: props.accept }),\n ...(props.name === undefined ? {} : { name: props.name }),\n ...(props.validate === undefined ? {} : { validate: props.validate })\n}));\nconst text = useQuireKitMessages(\"fileUpload\");\nconst locale = useQuireKitLocale();\nconst description = computed(() => props.description ?? text.value.dropzone);\nconst generatedHint = computed(() => props.hint ?? text.value.hint({\n multiple: props.multiple, maxFiles: effectiveMaxFiles.value,\n ...(Number.isFinite(props.maxFileSize) ? { maxFileSize: formatBytes(props.maxFileSize) } : {})\n}));\n\n/**\n * 将字节数格式化为适合约束说明的短文本。\n *\n * @param bytes - 原始字节数。\n * @returns 带单位的文件大小。\n */\nfunction formatBytes(bytes: number): string {\n if (bytes < 1024) return `${bytes} B`;\n if (bytes < 1024 ** 2) return `${Math.round(bytes / 1024)} KB`;\n return `${Number((bytes / 1024 ** 2).toFixed(1))} MB`;\n}\n\n/**\n * 保留同轮接受结果,避免拒绝反馈清除时的旧受控值覆盖新文件。\n *\n * @param details - Ark 文件状态详情。\n */\nfunction handleFileChange(details: FileUploadFileChangeDetails): void {\n emit(\"fileChange\", acceptedInCurrentBatch === undefined\n ? details\n : { ...details, acceptedFiles: acceptedInCurrentBatch });\n}\n\n/**\n * 从接受集合的变化同步模型,并转发通过校验的文件集合。\n *\n * @param details - Ark 接受详情。\n */\nfunction handleFileAccept(details: FileUploadFileAcceptDetails): void {\n acceptedInCurrentBatch = details.files;\n modelFiles.value = details.files;\n // Rejection changes share this batch; later operations read the current host value.\n queueMicrotask(() => { acceptedInCurrentBatch = undefined; });\n emit(\"fileAccept\", details);\n}\n\n/**\n * 转发一次未通过校验的文件集合。\n *\n * @param details - Ark 拒绝详情。\n */\nfunction handleFileReject(details: FileUploadFileRejectDetails): void {\n emit(\"fileReject\", details);\n}\n</script>\n\n<template>\n <FileUpload.Root\n v-bind=\"optionalRootProps\"\n :class=\"['qk-file-upload', { 'qk-file-upload--invalid': invalid }]\"\n :max-files=\"effectiveMaxFiles\"\n :max-file-size=\"maxFileSize\"\n :min-file-size=\"minFileSize\"\n :allow-drop=\"allowDrop\"\n :disabled=\"disabled\"\n :read-only=\"readOnly\"\n :invalid=\"invalid\"\n :required=\"required\"\n :locale=\"locale\"\n :translations=\"{\n dropzone: description,\n itemPreview: (file: File) => text.preview(file.name),\n deleteFile: (file: File) => text.remove(file.name)\n }\"\n @file-change=\"handleFileChange\"\n @file-accept=\"handleFileAccept\"\n @file-reject=\"handleFileReject\"\n >\n <FileUpload.Context v-slot=\"fileUpload\">\n <FileUpload.Label :class=\"$slots.default ? 'sr-only' : 'qk-file-upload__label'\">\n {{ label }}<span v-if=\"required\" class=\"qk-file-upload__required\" aria-hidden=\"true\">*</span>\n </FileUpload.Label>\n\n <slot :accepted-files=\"fileUpload.acceptedFiles\" :rejected-files=\"fileUpload.rejectedFiles\"\n :disabled=\"fileUpload.disabled || fileUpload.readOnly\"\n :open-file-picker=\"() => { if (!fileUpload.disabled && !fileUpload.readOnly) fileUpload.openFilePicker(); }\"\n :add-transfer-files=\"(transfer: DataTransfer) => fileUpload.setClipboardFiles(transfer)\">\n <FileUpload.Dropzone class=\"qk-file-upload__dropzone\">\n <slot\n name=\"dropzone\"\n :dragging=\"fileUpload.dragging\"\n :max-files-reached=\"fileUpload.maxFilesReached\"\n :remaining-files=\"fileUpload.remainingFiles\"\n >\n <span class=\"qk-file-upload__dropzone-icon\" aria-hidden=\"true\">\n <QuireIcon name=\"upload\" :size=\"20\" />\n </span>\n <strong class=\"qk-file-upload__description\">{{ description }}</strong>\n <span class=\"qk-file-upload__hint\">{{ generatedHint }}</span>\n </slot>\n </FileUpload.Dropzone>\n\n <div class=\"qk-file-upload__actions\">\n <FileUpload.Trigger class=\"qk-file-upload__trigger\">\n <QuireIcon name=\"upload\" :size=\"16\" />\n {{ text.choose }}\n </FileUpload.Trigger>\n <FileUpload.ClearTrigger\n v-if=\"clearable && fileUpload.acceptedFiles.length > 0\"\n class=\"qk-file-upload__clear\"\n >\n {{ text.clearAll }}\n </FileUpload.ClearTrigger>\n <span class=\"qk-file-upload__count\" aria-live=\"polite\">\n {{ text.selected(fileUpload.acceptedFiles.length, effectiveMaxFiles) }}\n </span>\n </div>\n\n <FileList v-if=\"fileUpload.acceptedFiles.length || fileUpload.rejectedFiles.length || $slots.empty\">\n <template v-if=\"$slots.item\" #item=\"scope\"><slot name=\"item\" v-bind=\"scope\" /></template>\n <template v-if=\"$slots.rejection\" #rejection=\"scope\"><slot name=\"rejection\" v-bind=\"scope\" /></template>\n <template v-if=\"$slots.empty\" #empty><slot name=\"empty\" /></template>\n </FileList>\n </slot>\n </FileUpload.Context>\n <HiddenInput />\n </FileUpload.Root>\n</template>\n","<script setup lang=\"ts\">\nimport { computed, provide } from \"vue\";\nimport type { QuireKitIconRegistry } from \"../../components/icon\";\nimport { quireKitIconRegistryKey } from \"./context\";\n\n/** Public properties for one scoped icon registry provider. */\ninterface Props {\n /** Product-owned icon registry available to descendant QuireIcon instances. */\n readonly registry: QuireKitIconRegistry;\n}\n\nconst props = defineProps<Props>();\nconst registry = computed(() => props.registry);\nprovide(quireKitIconRegistryKey, registry);\n</script>\n\n<template>\n <slot />\n</template>\n","import { computed } from \"vue\";\nimport { getQuireKitEditorIconCatalog } from \"../../components/icon/catalog\";\nimport { getQuireKitEditorIconGroups } from \"../../components/icon/labels\";\nimport { useQuireKitMessages } from \"../locale-provider/context\";\nimport type { QuireKitEditorIconCatalogState } from \"./types\";\n\n/**\n * Reads the bundled icon catalog in the language of the nearest QuireLocaleProvider.\n * @returns Reactive groups and entries that update when the language changes.\n */\nexport function useQuireKitEditorIconCatalog(): QuireKitEditorIconCatalogState {\n const messages = useQuireKitMessages(\"iconCatalog\");\n return {\n groups: computed(() => getQuireKitEditorIconGroups(messages.value)),\n entries: computed(() => getQuireKitEditorIconCatalog(messages.value))\n };\n}\n","<script setup lang=\"ts\">\nimport { computed, provide, type PropType } from \"vue\";\nimport { quireKitThemeKey } from \"./context\";\nimport QuireThemeSurface from \"./surface.vue\";\nimport type { QuireKitTheme } from \"../../theme/types\";\n\ndefineOptions({ inheritAttrs: false });\n\nconst props = defineProps({\n theme: {\n type: Object as PropType<QuireKitTheme>,\n required: true\n },\n surface: {\n type: Boolean,\n default: true\n }\n});\nprovide(quireKitThemeKey, computed(() => props.theme));\n</script>\n\n<template>\n <QuireThemeSurface v-if=\"props.surface\"><slot /></QuireThemeSurface>\n <slot v-else />\n</template>\n","<script setup lang=\"ts\">\nimport { computed, provide } from \"vue\";\nimport { resolveQuireKitLocale } from \"../../locale/resolve\";\nimport type { QuireKitLocaleProviderProps } from \"./types\";\nimport { quireKitLocaleKey } from \"./context\";\n\nconst props = withDefaults(defineProps<QuireKitLocaleProviderProps>(), { locale: \"zh-CN\", packs: () => [] });\nprovide(quireKitLocaleKey, computed(() => resolveQuireKitLocale(props.locale, props.packs)));\n</script>\n\n<template>\n <slot />\n</template>\n","<script setup lang=\"ts\">\nimport { computed } from 'vue';\nimport type { CSSProperties } from 'vue';\nimport type { QuireKitSpaceProps } from './types';\nimport { resolveSpaceGap } from './spacing';\n\nconst props = withDefaults(defineProps<QuireKitSpaceProps>(), {\n as: 'div', orientation: 'horizontal', gap: 'inline', justify: 'start', wrap: true, block: false\n});\ndefineSlots<{\n /** Direct children retain their native structure, keys and keyboard behavior. */\n default?: () => unknown;\n}>();\nconst style = computed<CSSProperties>(() => ({\n rowGap: resolveSpaceGap(props.rowGap ?? props.gap),\n columnGap: resolveSpaceGap(props.columnGap ?? props.gap),\n alignItems: props.align ?? (props.orientation === 'horizontal' ? 'center' : 'stretch'),\n justifyContent: props.justify === 'between' ? 'space-between' : props.justify\n}));\n</script>\n<template>\n <component :is=\"as\" :class=\"['qk-space', `qk-space--${orientation}`, {\n 'qk-space--block': block,\n 'qk-space--wrap': wrap && orientation === 'horizontal'\n }]\" :style=\"style\" :data-orientation=\"orientation\"><slot /></component>\n</template>\n","<script setup lang=\"ts\">\nimport { Field } from \"@ark-ui/vue/field\";\nimport { computed, useAttrs } from \"vue\";\nimport type { QuireKitInputNumberUnitProps } from \"../../components/input-number-unit\";\nimport QuireInputNumber from \"../input-number/input-number.vue\";\nimport { useQuireKitLocale } from \"../locale-provider/context\";\nimport QuireSelect from \"../select/select.vue\";\nimport QuireSpace from \"../space/space.vue\";\n\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<QuireKitInputNumberUnitProps>(), {\n size: \"sm\", width: \"100%\", unitWidth: \"6em\",\n disabled: false, invalid: false, step: 1, precision: 2\n});\nconst emit = defineEmits<{\n /** Finite number, or null while the numeric input is empty/invalid. */\n \"update:modelValue\": [value: number | null];\n /** Unit selection only; never implicitly converts or overwrites the value. */\n \"update:unit\": [unit: string];\n}>();\nconst attrs = useAttrs();\nconst locale = useQuireKitLocale();\nconst bounds = computed(() => ({\n ...(props.min === undefined ? {} : { min: props.min }),\n ...(props.max === undefined ? {} : { max: props.max })\n}));\n/** @param value - Public Select value; only string unit identities are accepted. */\nfunction updateUnit(value: string | number | null | undefined): void {\n if (typeof value === \"string\") emit(\"update:unit\", value);\n}\n</script>\n<template>\n <QuireSpace class=\"qk-input-number-unit\" block :wrap=\"false\" gap=\"inlineTight\"\n role=\"group\" :aria-label=\"label\" :style=\"{ width }\">\n <QuireInputNumber v-bind=\"{ ...attrs, ...bounds }\" width=\"100%\" style=\"flex: 1 1 0; min-width: 0\"\n :label=\"label\" :model-value=\"modelValue !== null && Number.isFinite(modelValue) ? String(modelValue) : ''\"\n :size=\"size\" :disabled=\"disabled\" :invalid=\"invalid\" :step=\"step\"\n :format-options=\"{ maximumFractionDigits: precision }\"\n @value-change=\"emit('update:modelValue', Number.isFinite($event.valueAsNumber) ? $event.valueAsNumber : null)\" />\n <!-- A compound field needs a separate Ark field identity for its hidden select. -->\n <Field.Root as-child :disabled=\"disabled\">\n <QuireSelect :width=\"unitWidth\" style=\"flex: 0 0 auto\" :size=\"size\"\n :label=\"unitLabel\" :model-value=\"unit\" :items=\"units\" :disabled=\"disabled\"\n :content-props=\"{ lang: locale }\" @update:model-value=\"updateUnit\" />\n </Field.Root>\n </QuireSpace>\n</template>\n","<script setup lang=\"ts\">\nimport { computed, useId } from \"vue\";\nimport type {\n QuireKitInspectorSize,\n QuireKitInspectorSlotProps,\n QuireKitInspectorStatus,\n QuireKitInspectorVariant\n} from \"../../components/inspector\";\nimport { useQuireKitMessages } from \"../locale-provider/context\";\n\n/** 持续属性面板的公开属性。 */\ninterface Props {\n /** 默认可见标题与整个面板的可访问名称。 */\n readonly title: string;\n /** 标题下方的对象身份或上下文说明。 */\n readonly description?: string;\n /** 可选的稳定 region id。 */\n readonly id?: string;\n /** 面板与内部内容的密度。 */\n readonly size?: QuireKitInspectorSize;\n /** 外层边界和背景的归属;嵌入时由宿主提供。 */\n readonly variant?: QuireKitInspectorVariant;\n /** 面板的 CSS 宽度。 */\n readonly width?: string | number;\n /** 是否从布局与可访问树中移除面板。 */\n readonly hidden?: boolean;\n /** 是否正在同步属性。 */\n readonly busy?: boolean;\n /** 当前选择是否包含不同值。 */\n readonly mixed?: boolean;\n /** 当前属性集合是否不可编辑。 */\n readonly disabled?: boolean;\n /** 错误状态的恢复说明;存在时优先于其他状态。 */\n readonly errorText?: string;\n /** busy 状态的反馈文本;省略时使用语言包的通用提示。 */\n readonly busyText?: string;\n /** mixed 状态的反馈文本;省略时使用语言包的通用提示。 */\n readonly mixedText?: string;\n /** disabled 状态的原因说明。 */\n readonly disabledReason?: string;\n}\n\n/** Inspector 的固定内容位置。 */\ninterface Slots {\n /** 按 Section 分组的属性内容。 */\n readonly default: (props: QuireKitInspectorSlotProps) => unknown;\n /** Replaces the visible title, for example with Tabs; title still names the region. */\n readonly heading?: () => unknown;\n /** 标题右侧的操作。 */\n readonly actions?: () => unknown;\n /** 自定义顶部状态反馈;没有内置状态时也会显示。 */\n readonly status?: (props: QuireKitInspectorSlotProps) => unknown;\n /** 面板底部的持久操作。 */\n readonly footer?: () => unknown;\n}\n\nconst props = withDefaults(defineProps<Props>(), {\n size: \"md\",\n variant: \"standalone\",\n width: \"288px\",\n hidden: false,\n busy: false,\n mixed: false,\n disabled: false\n});\nconst slots = defineSlots<Slots>();\nconst text = useQuireKitMessages(\"inspector\");\n\nconst instanceId = useId();\nconst rootId = computed(() => props.id ?? instanceId);\nconst titleId = computed(() => `${rootId.value}-title`);\nconst descriptionId = computed(() => `${rootId.value}-description`);\nconst statusId = computed(() => `${rootId.value}-status`);\nconst rootStyle = computed(() => ({ width: typeof props.width === \"number\" ? `${props.width}px` : props.width }));\nconst status = computed<QuireKitInspectorStatus | undefined>(() => {\n if (props.errorText !== undefined) return \"error\";\n if (props.busy) return \"busy\";\n if (props.disabled && props.disabledReason !== undefined) return \"disabled\";\n if (props.mixed) return \"mixed\";\n return undefined;\n});\nconst statusText = computed(() => {\n switch (status.value) {\n case \"error\": return props.errorText;\n case \"busy\": return props.busyText ?? text.value.busy;\n case \"disabled\": return props.disabledReason;\n case \"mixed\": return props.mixedText ?? text.value.mixed;\n default: return undefined;\n }\n});\n/**\n * Resolves descriptions against this render's optional status slot.\n *\n * Slots are not reactive dependencies, so this must run on each render.\n *\n * @returns IDs of the description and mounted status channel, when present.\n */\nfunction getDescribedBy(): string | undefined {\n return [\n props.description ? descriptionId.value : undefined,\n status.value === undefined && !slots.status ? undefined : statusId.value\n ].filter(Boolean).join(\" \") || undefined;\n}\n</script>\n\n<template>\n <aside\n v-if=\"!props.hidden\"\n :id=\"rootId\"\n role=\"region\"\n :aria-labelledby=\"$slots.heading ? undefined : titleId\"\n :aria-label=\"$slots.heading ? title : undefined\"\n :aria-describedby=\"getDescribedBy()\"\n :aria-busy=\"props.busy || undefined\"\n :style=\"rootStyle\"\n :class=\"[\n 'qk-inspector',\n `qk-inspector--${props.size}`,\n props.variant === 'embedded' && 'qk-inspector--embedded',\n props.disabled && 'qk-inspector--disabled'\n ]\"\n >\n <header class=\"qk-inspector__header\">\n <div class=\"qk-inspector__heading\">\n <slot name=\"heading\"><h2 :id=\"titleId\" class=\"qk-inspector__title\">{{ title }}</h2></slot>\n <p v-if=\"props.description\" :id=\"descriptionId\" class=\"qk-inspector__description\">\n {{ props.description }}\n </p>\n </div>\n <span v-if=\"$slots.actions\" class=\"qk-inspector__actions\"><slot name=\"actions\" /></span>\n </header>\n\n <div\n v-if=\"status || $slots.status\"\n :id=\"statusId\"\n :class=\"['qk-inspector__status', status && `qk-inspector__status--${status}`]\"\n :role=\"status === 'error' ? 'alert' : 'status'\"\n >\n <span v-if=\"status === 'busy'\" aria-hidden=\"true\" class=\"qk-inspector__busy-indicator\" />\n <slot name=\"status\" :status=\"status\">{{ statusText }}</slot>\n </div>\n\n <div class=\"qk-inspector__body\"><slot :status=\"status\" /></div>\n <footer v-if=\"$slots.footer\" class=\"qk-inspector__footer\"><slot name=\"footer\" /></footer>\n </aside>\n</template>\n","<script setup lang=\"ts\">\nimport { computed, useId } from \"vue\";\n\n/** Inspector 内一个属性分区的公开属性。 */\ninterface Props {\n /** 分区的可见标题。 */\n readonly title: string;\n /** 标题下方的可选说明。 */\n readonly description?: string;\n /** 标题旁的简短状态文本。 */\n readonly statusText?: string;\n /** 可选的稳定 section id。 */\n readonly id?: string;\n}\n\n/** Inspector 分区的内容位置。 */\ninterface Slots {\n /** 分区拥有的字段或属性控件。 */\n readonly default: () => unknown;\n /** 分区标题右侧的局部动作。 */\n readonly actions?: () => unknown;\n}\n\nconst props = defineProps<Props>();\ndefineSlots<Slots>();\n\nconst instanceId = useId();\nconst rootId = computed(() => props.id ?? instanceId);\nconst titleId = computed(() => `${rootId.value}-title`);\n</script>\n\n<template>\n <section :id=\"rootId\" class=\"qk-inspector__section\" :aria-labelledby=\"titleId\">\n <header class=\"qk-inspector__section-header\">\n <span class=\"qk-inspector__section-heading\">\n <h3 :id=\"titleId\" class=\"qk-inspector__section-title\">{{ title }}</h3>\n <span v-if=\"statusText\" class=\"qk-inspector__section-status\">{{ statusText }}</span>\n </span>\n <span v-if=\"$slots.actions\" class=\"qk-inspector__section-actions\"><slot name=\"actions\" /></span>\n </header>\n <p v-if=\"description\" class=\"qk-inspector__section-description\">{{ description }}</p>\n <div class=\"qk-inspector__section-body\"><slot /></div>\n </section>\n</template>\n","/**\n * Recognizes local context-menu shortcuts without taking other key combinations.\n *\n * @param event - Keyboard state received by the owned context region.\n * @returns Whether this event should open the region's context menu.\n */\nexport function isContextMenuKey(event: Pick<KeyboardEvent,\n \"key\" | \"shiftKey\" | \"altKey\" | \"ctrlKey\" | \"metaKey\" | \"repeat\" | \"isComposing\" | \"defaultPrevented\"\n>): boolean {\n if (event.defaultPrevented || event.repeat || event.isComposing) return false;\n if (event.altKey || event.ctrlKey || event.metaKey) return false;\n return (event.key === \"F10\" && event.shiftKey) || (event.key === \"ContextMenu\" && !event.shiftKey);\n}\n\n/**\n * Uses the context region's lower leading edge for keyboard-originated menus.\n *\n * @param bounds - The region's viewport-space bounds.\n * @returns A viewport-space point consumed by Ark's existing context-menu event.\n */\nexport function contextMenuKeyboardPoint(bounds: Pick<DOMRect, \"left\" | \"bottom\">) {\n return { x: bounds.left, y: bounds.bottom };\n}\n","import { contextMenuKeyboardPoint } from \"./keyboard\";\n\n/**\n * Tracks a keyboard/programmatic region while Ark retains ownership of positioning.\n * @param target - The connected context region whose lower edge is the live anchor.\n * @param reposition - Requests Ark positioning with a fresh anchor-rectangle reader.\n * @returns Cleanup for the open menu's viewport listeners and pending frame.\n */\nexport function trackContextMenuRegion(\n target: HTMLElement,\n reposition: (getAnchorRect: () => { x: number; y: number; width: number; height: number }) => void\n): () => void {\n const document = target.ownerDocument;\n const window = document.defaultView;\n if (!window) return () => {};\n let frame: number | undefined;\n let disposed = false;\n\n /** @returns The current region edge in viewport coordinates, read at positioning time. */\n function getAnchorRect() {\n return { ...contextMenuKeyboardPoint(target.getBoundingClientRect()), width: 0, height: 0 };\n }\n\n /** Repositions only a still-owned region after the current viewport update. */\n function update(): void {\n frame = undefined;\n if (!disposed && target.isConnected) reposition(getAnchorRect);\n }\n\n /** Coalesces page, nested-scroll, and visual-viewport changes into one frame. */\n function schedule(): void {\n if (!disposed && frame === undefined) frame = window!.requestAnimationFrame(update);\n }\n\n // Ark context-point repositioning disables its own listeners, so the adapter tracks only region-origin openings.\n document.addEventListener(\"scroll\", schedule, true);\n window.addEventListener(\"resize\", schedule);\n window.visualViewport?.addEventListener(\"scroll\", schedule);\n window.visualViewport?.addEventListener(\"resize\", schedule);\n const observer = window.ResizeObserver ? new window.ResizeObserver(schedule) : undefined;\n observer?.observe(target);\n update();\n\n return () => {\n disposed = true;\n if (frame !== undefined) window.cancelAnimationFrame(frame);\n observer?.disconnect();\n document.removeEventListener(\"scroll\", schedule, true);\n window.removeEventListener(\"resize\", schedule);\n window.visualViewport?.removeEventListener(\"scroll\", schedule);\n window.visualViewport?.removeEventListener(\"resize\", schedule);\n };\n}\n","const contentSelector = '[data-scope=\"menu\"][data-part=\"content\"]';\n\n/**\n * Captures a menu's portalled descendants before closing removes their triggers.\n * @param root - The context menu surface whose focus ownership is ending.\n * @returns Surfaces belonging to this menu tree, excluding unrelated open menus.\n */\nexport function collectContextMenuSurfaces(root: HTMLElement | null | undefined): readonly HTMLElement[] {\n if (!root) return [];\n const surfaces = [root];\n for (const candidate of root.ownerDocument.querySelectorAll<HTMLElement>(contentSelector)) {\n if (candidate === root) continue;\n let current: HTMLElement | null | undefined = candidate;\n const visited = new Set<HTMLElement>();\n while (current && current !== root && !visited.has(current)) {\n visited.add(current);\n // Submenu labels point to their trigger row in the parent surface, even across Teleports.\n current = current.getAttribute(\"aria-labelledby\")?.split(/\\s+/u)\n .map(id => root.ownerDocument.getElementById(id)?.closest<HTMLElement>(contentSelector))\n .find(parent => parent !== undefined && parent !== null);\n }\n if (current === root) surfaces.push(candidate);\n }\n return surfaces;\n}\n","<script setup lang=\"ts\">\nimport { Menu, useMenuContext } from \"@ark-ui/vue/menu\";\nimport { nextTick, onBeforeUnmount, onMounted, ref, watch } from \"vue\";\nimport { trackContextMenuRegion } from \"./anchor\";\nimport { collectContextMenuSurfaces } from \"./focus\";\nimport { contextMenuKeyboardPoint, isContextMenuKey } from \"./keyboard\";\n\n/** Adapter-owned context region and focus-return options. */\ninterface Props {\n /** Accessible name for the focusable context region. */\n readonly label: string;\n /** Whether custom context activation is unavailable. */\n readonly disabled: boolean;\n /** Whether unclaimed focus returns after dismissal. */\n readonly restoreFocus: boolean;\n}\n\n/** Visual content retained inside the stable context region. */\ninterface Slots {\n /** Non-interactive visual content for the context target. */\n readonly default: () => unknown;\n}\n\ndefineOptions({ inheritAttrs: false });\nconst props = defineProps<Props>();\ndefineSlots<Slots>();\nconst menu = useMenuContext();\nconst element = ref<HTMLDivElement>();\nlet anchorOrigin: \"region\" | \"pointer\" | undefined;\nlet dispatchingRegion = false;\nlet stopRegionTracking: (() => void) | undefined;\nlet highlightOnOpen = false;\n\n/** Dispatches the same local Ark context event for keyboard or controlled opening. */\nfunction openAtRegion(): void {\n const target = element.value;\n const EventConstructor = target?.ownerDocument.defaultView?.MouseEvent;\n if (!target || !EventConstructor || props.disabled) return;\n const point = contextMenuKeyboardPoint(target.getBoundingClientRect());\n dispatchingRegion = true;\n try {\n target.dispatchEvent(new EventConstructor(\"contextmenu\", {\n bubbles: true, cancelable: true, button: 2, clientX: point.x, clientY: point.y\n }));\n } finally { dispatchingRegion = false; }\n}\n\n/**\n * Bridges keyboard activation to Ark while allowing host-cancelled events.\n * @param event - Keyboard event on the context region.\n */\nfunction handleKeydown(event: KeyboardEvent): void {\n if (props.disabled || !isContextMenuKey(event)) return;\n event.preventDefault();\n event.stopPropagation();\n highlightOnOpen = true;\n openAtRegion();\n if (menu.value.open) void positionOpenMenu();\n}\n\n/**\n * Guards the local context handler before Ark receives its event.\n * @param event - A pointer context-menu event on this region.\n */\nfunction prepareContext(event: MouseEvent): void {\n if (props.disabled) event.stopImmediatePropagation();\n else {\n anchorOrigin = dispatchingRegion ? \"region\" : \"pointer\";\n stopRegionTracking?.();\n if (menu.value.open && !dispatchingRegion) void positionOpenMenu();\n }\n}\n\n/**\n * Marks Ark's touch/pen long-press anchor without changing its timing behavior.\n * @param event - Pointer-down event captured by the region.\n */\nfunction preparePointer(event: PointerEvent): void {\n if (props.disabled) event.stopImmediatePropagation();\n else if (event.pointerType !== \"mouse\") {\n anchorOrigin = \"pointer\";\n stopRegionTracking?.();\n }\n}\n\n/**\n * Clears a cancelled long-press anchor without disturbing mouse context events.\n * @param event - Pointer completion from the context region.\n */\nfunction finishPointer(event: PointerEvent): void {\n if (event.pointerType !== \"mouse\" && !menu.value.open) anchorOrigin = undefined;\n}\n\n/**\n * Resolves controlled opening only after the context region and surface exist.\n * @returns A promise that settles after positioning has been requested.\n */\nasync function positionOpenMenu(): Promise<void> {\n await nextTick();\n if (!menu.value.open || props.disabled) return;\n if (!anchorOrigin) openAtRegion();\n stopRegionTracking?.();\n stopRegionTracking = anchorOrigin === \"region\" && element.value\n ? trackContextMenuRegion(element.value, (getAnchorRect) => menu.value.reposition({ getAnchorRect }))\n : undefined;\n if (anchorOrigin !== \"region\") menu.value.reposition();\n if (highlightOnOpen) {\n highlightOnOpen = false;\n const contentId = menu.value.getContentProps().id;\n const content = typeof contentId === \"string\" ? element.value?.ownerDocument.getElementById(contentId) : null;\n // The Menu API keeps virtual focus; inspect its rendered rows without focusing an item DOM node.\n const first = content?.querySelector<HTMLElement>('[role^=\"menuitem\"][data-value]:not([data-disabled])');\n const value = first?.dataset.value;\n if (value !== undefined) menu.value.setHighlightedValue(value);\n }\n}\n\n/**\n * Returns focus only while it still belongs to this dismissed menu or the page.\n * @returns A promise that settles after pending machine focus and the DOM update.\n */\nasync function restoreRegionFocus(): Promise<void> {\n const target = element.value;\n const document = target?.ownerDocument;\n const window = document?.defaultView;\n if (!window) return;\n const contentId = menu.value.getContentProps().id;\n const content = typeof contentId === \"string\" ? document?.getElementById(contentId) : null;\n const surfaces = collectContextMenuSurfaces(content);\n // A selection handler may have handed focus to another task before closing.\n const claimedFocus = document?.activeElement;\n const destination = claimedFocus && claimedFocus !== document?.body && !surfaces.some(surface => surface.contains(claimedFocus))\n ? claimedFocus as HTMLElement\n : target;\n await nextTick();\n // Ark queues focusMenu on pointer movement. Let that already-queued frame finish\n // before restoring focus, so it cannot refocus the exiting surface afterwards.\n await new Promise<void>(resolve => window.requestAnimationFrame(() => resolve()));\n if (!target?.isConnected || !document || props.disabled || !props.restoreFocus || menu.value.open) return;\n const active = document.activeElement;\n if ((!active || active === document.body || surfaces.some(surface => surface.contains(active))) && destination?.isConnected) {\n destination.focus({ preventScroll: true });\n }\n}\n\nwatch(() => menu.value.open, (open) => {\n if (open) void positionOpenMenu();\n else {\n anchorOrigin = undefined;\n stopRegionTracking?.();\n stopRegionTracking = undefined;\n highlightOnOpen = false;\n void restoreRegionFocus();\n }\n});\nonMounted(() => {\n if (menu.value.open) void positionOpenMenu();\n});\nonBeforeUnmount(() => stopRegionTracking?.());\n</script>\n\n<template>\n <Menu.ContextTrigger as-child>\n <div\n ref=\"element\"\n v-bind=\"$attrs\"\n class=\"qk-menu__context-trigger\"\n role=\"group\"\n :tabindex=\"disabled ? -1 : 0\"\n :aria-label=\"label\"\n aria-haspopup=\"menu\"\n :aria-expanded=\"menu.open\"\n :aria-controls=\"menu.getContentProps().id\"\n :aria-disabled=\"disabled || undefined\"\n :data-disabled=\"disabled || undefined\"\n @contextmenu.capture=\"prepareContext\"\n @contextmenu.stop\n @pointerdown.capture=\"preparePointer\"\n @pointerup.capture=\"finishPointer\"\n @pointercancel.capture=\"finishPointer\"\n @keydown=\"handleKeydown\"\n ><slot /></div>\n </Menu.ContextTrigger>\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 type { MenuHighlightChangeDetails, MenuSelectionDetails } from \"@ark-ui/vue/menu\";\nimport { computed, ref, useId, watch } from \"vue\";\nimport type { QuireKitContextMenuProps, QuireKitContextMenuSlotProps } from \"../../../components/menu\";\nimport { resolveViewportMenuContentStyle } from \"../content-size\";\nimport { useMenuLayerClass } from \"../surface/use-layer\";\nimport { provideSubmenuSiblings } from \"../surface/siblings\";\nimport QuireMenuItems from \"../items/items.vue\";\nimport ContextTrigger from \"./trigger.vue\";\n\n/** Selection and highlight events shared with ordinary Menu consumers. */\ninterface Emits {\n /** 已选择条目的 value。 */\n readonly select: [value: string];\n /** 当前高亮条目,与选中值独立。 */\n readonly highlightChange: [value: string | null];\n /** 打开状态变化时触发。 */\n readonly openChange: [open: boolean];\n}\n\n/** Context target and the existing Menu-family composition surface. */\ninterface Slots {\n /** 操作区域内的图文内容,不放置独立交互控件。 */\n readonly trigger: (props: QuireKitContextMenuSlotProps) => unknown;\n /** Menu items, groups, options, separators, and submenus. */\n readonly default?: () => unknown;\n}\n\ndefineOptions({ inheritAttrs: false });\nprovideSubmenuSiblings();\nconst overlayHost = useQuireOverlayHost();\nconst props = withDefaults(defineProps<QuireKitContextMenuProps>(), {\n defaultOpen: false,\n disabled: false,\n closeOnSelect: true,\n loopFocus: true,\n typeahead: true,\n placement: \"bottom-start\",\n portalled: true,\n restoreFocus: true\n});\nconst emit = defineEmits<Emits>();\nconst open = defineModel<boolean | undefined>(\"open\", { default: undefined });\nconst slots = defineSlots<Slots>();\nconst instanceId = useId();\nconst internalOpen = ref(props.disabled ? false : props.defaultOpen);\nconst visible = computed(() => !props.disabled && (open.value ?? internalOpen.value));\nconst { layerClass, layerStyle, portalDisabled } = useMenuLayerClass(() => props.portalled, () => visible.value);\nconst machineId = computed(() => props.id ?? instanceId);\nconst triggerId = computed(() => props.triggerId ?? `qk-context-${machineId.value}-trigger`);\nconst rootProps = computed(() => ({\n id: machineId.value,\n ids: { contextTrigger: triggerId.value },\n \"aria-label\": props.label,\n open: visible.value,\n closeOnSelect: props.closeOnSelect,\n loopFocus: props.loopFocus,\n typeahead: props.typeahead,\n positioning: {\n placement: props.placement, gutter: 2, flip: true, slide: true, overflowPadding: 8,\n strategy: overlayHost.strategy.value ?? \"fixed\" as const\n }\n}));\nconst contentStyle = computed(() => resolveViewportMenuContentStyle(props.width, props.minWidth, props.maxWidth));\n\n/**\n * Synchronizes controlled or local visibility without changing target content.\n * @param nextOpen - Opening state requested by Ark or trigger availability.\n */\nfunction updateOpen(nextOpen: boolean): void {\n const next = !props.disabled && nextOpen;\n internalOpen.value = next;\n open.value = next;\n emit(\"openChange\", next);\n}\n\n/**\n * Projects selection onto the same public event used by Menu.\n * @param details - Accepted Ark selection details.\n */\nfunction handleSelect(details: MenuSelectionDetails): void {\n if (!props.items || slots.default) emit(\"select\", details.value);\n}\n\n/**\n * Projects highlight without conflating it with an activated command.\n * @param details - Current Ark highlighted row.\n */\nfunction handleHighlight(details: MenuHighlightChangeDetails): void {\n emit(\"highlightChange\", details.highlightedValue);\n}\n\nwatch(() => props.disabled, (disabled) => {\n if (disabled) updateOpen(false);\n});\n</script>\n\n<template>\n <Menu.Root\n v-bind=\"rootProps\" lazy-mount unmount-on-exit\n @update:open=\"updateOpen\" @select=\"handleSelect\" @highlight-change=\"handleHighlight\"\n >\n <ContextTrigger v-bind=\"$attrs\" :id=\"triggerId\" :label=\"label\" :disabled=\"disabled\" :restore-focus=\"restoreFocus\">\n <slot name=\"trigger\" :open=\"visible\" :disabled=\"disabled\" />\n </ContextTrigger>\n <Teleport :to=\"overlayHost.target.value\" :disabled=\"portalDisabled\">\n <QuireThemePortal>\n <Menu.Positioner :class=\"['qk-menu__positioner', layerClass]\" :style=\"layerStyle\">\n <Menu.Content class=\"qk-menu qk-menu--context\" :style=\"contentStyle\" data-qk-menu-content data-qk-context-menu-content>\n <slot><QuireMenuItems v-if=\"items\" :items=\"items\" :close-on-select=\"closeOnSelect\" @select=\"emit('select', $event)\" /></slot>\n </Menu.Content>\n </Menu.Positioner>\n </QuireThemePortal>\n </Teleport>\n </Menu.Root>\n</template>\n","<script setup lang=\"ts\">\nimport { computed, ref, watch } from 'vue';\nimport type { QuireKitPaginationSize } from '../../components/pagination';\nimport QuireInput from '../input/input.vue';\nimport QuireSelect from '../select/select.vue';\nimport { useQuireKitMessages } from '../locale-provider/context';\n\n/** Optional data-navigation controls share the parent pagination state. */\ninterface Props {\n /** Committed current page. */\n page: number;\n /** Committed page size. */\n pageSize: number;\n /** Number of available pages. */\n totalPages: number;\n /** Context used in accessible field labels. */\n label: string;\n /** Visual control size. */\n size: QuireKitPaginationSize;\n /** Whether all actions are unavailable. */\n disabled: boolean;\n /** Which independently positioned control to render. */\n part: \"pageSize\" | \"jumper\";\n /** Permitted page-size candidates. */\n pageSizeOptions: readonly number[];\n}\n/** User-committed changes passed back to Ark Pagination. */\ninterface Emits {\n /** A complete valid page request. */\n pageChange: [page: number];\n /** A selected page size. */\n pageSizeChange: [pageSize: number];\n}\nconst props = defineProps<Props>();\nconst emit = defineEmits<Emits>();\nconst text = useQuireKitMessages('pagination');\nconst draft = ref(String(props.page));\n// 宽度由总页数决定,输入草稿和翻页时不跳动;保留控件 token 的最小宽度。\nconst jumpWidth = computed(() => `max(var(--qk-control-large), calc(${Math.max(2, String(props.totalPages).length)}ch + 2 * var(--qk-space-inline) + 2 * var(--qk-border-width-default)))`);\nconst items = computed(() => [...new Set([...props.pageSizeOptions, props.pageSize])]\n .filter(value => Number.isSafeInteger(value) && value > 0).sort((a, b) => a - b)\n .map(value => ({ value: String(value), label: text.value.perPage(value) })));\nwatch(() => [props.page, props.totalPages], () => { draft.value = String(props.page); });\n\n/** Commit complete integers only; typing never changes the result set. */\nfunction commit(): void {\n if (props.disabled) return;\n const value = Number(draft.value.trim());\n const target = draft.value.trim() && Number.isSafeInteger(value)\n ? Math.max(1, Math.min(value, Math.max(1, props.totalPages))) : props.page;\n draft.value = String(target);\n if (target !== props.page) emit('pageChange', target);\n}\n/**\n * Preserve composition, cancel drafts with Escape, and submit on Enter.\n * @param event - Native input keyboard event.\n */\nfunction keydown(event: KeyboardEvent): void {\n if (event.isComposing) return;\n if (event.key === 'Enter') { event.preventDefault(); commit(); }\n if (event.key === 'Escape') { event.preventDefault(); draft.value = String(props.page); }\n}\n/**\n * Submit only one of the validated selector options.\n * @param value - Selected string representation of the page size.\n */\nfunction resize(value: string | undefined): void {\n if (!props.disabled && value && items.value.some(item => item.value === value) && Number(value) !== props.pageSize) emit('pageSizeChange', Number(value));\n}\n</script>\n\n<template>\n <QuireSelect v-if=\"part === 'pageSize'\" :model-value=\"String(pageSize)\" :items=\"items\" :label=\"text.pageSize(label)\" :size=\"size\" width=\"max-content\" :disabled=\"disabled\" @update:model-value=\"resize\" />\n <div v-else class=\"qk-pagination__jumper\">\n <span v-if=\"text.jumpPrefix\">{{ text.jumpPrefix }}</span>\n <QuireInput v-model=\"draft\" :size=\"size\" :width=\"jumpWidth\" text-align=\"center\" :aria-label=\"text.jumpInput(label)\" inputmode=\"numeric\" autocomplete=\"off\" :disabled=\"disabled || totalPages <= 1\" @keydown=\"keydown\" @blur=\"commit\" />\n <span v-if=\"text.jumpSuffix\">{{ text.jumpSuffix }}</span>\n </div>\n</template>\n","<script setup lang=\"ts\">\nimport { Pagination } from \"@ark-ui/vue/pagination\";\nimport { computed } from \"vue\";\nimport type {\n QuireKitPaginationLayoutItem,\n QuireKitPaginationPageChangeDetails,\n QuireKitPaginationPageSizeChangeDetails,\n QuireKitPaginationPageSlotProps,\n QuireKitPaginationSize,\n QuireKitPaginationSummarySlotProps\n} from \"../../components/pagination\";\nimport PaginationOptions from \"./options.vue\";\nimport QuireIcon from \"../icon/icon.vue\";\nimport { useQuireKitMessages } from \"../locale-provider/context\";\n\n/** Vue Pagination 的公开属性。 */\ninterface Props {\n /** 数据总数。 */\n readonly count: number;\n /** Pagination 的可访问名称;省略时取自语言包。 */\n readonly label?: string;\n /** 未受控使用时的初始页码。 */\n readonly defaultPage?: number;\n /** 未受控使用时的初始每页数据量。 */\n readonly defaultPageSize?: number;\n /** 是否禁用所有分页操作。 */\n readonly disabled?: boolean;\n /** 可选择的每页条数;自动补充当前值。 */\n readonly pageSizeOptions?: readonly number[];\n /** 当前页两侧保留的相邻页数。 */\n readonly siblingCount?: number;\n /** 按数组顺序组合分页部件;空数组不显示部件。 */\n readonly layout?: readonly QuireKitPaginationLayoutItem[];\n /** 控件视觉尺寸。 */\n readonly size?: QuireKitPaginationSize;\n}\n\n/** Pagination 的可替换内容位置。 */\ninterface Slots {\n /** 替换每一个页码的可见内容。 */\n readonly page?: (props: QuireKitPaginationPageSlotProps) => unknown;\n /** 替换省略号。 */\n readonly ellipsis?: () => unknown;\n /** 替换上一页按钮内容。 */\n readonly previous?: () => unknown;\n /** 替换下一页按钮内容。 */\n readonly next?: () => unknown;\n /** 替换总条数摘要;上下文仍包含当前范围。 */\n readonly summary?: (props: QuireKitPaginationSummarySlotProps) => unknown;\n /** 替换独立的当前范围。 */\n readonly range?: (props: QuireKitPaginationSummarySlotProps) => unknown;\n}\n\n/** Pagination 发出的公开语义事件。 */\ninterface Emits {\n /** 当前页变化后触发。 */\n pageChange: [details: QuireKitPaginationPageChangeDetails];\n /** 每页数据量变化后触发。 */\n pageSizeChange: [details: QuireKitPaginationPageSizeChangeDetails];\n}\n\nconst props = withDefaults(defineProps<Props>(), {\n defaultPage: 1,\n defaultPageSize: 10,\n siblingCount: 1,\n disabled: false,\n pageSizeOptions: () => [10, 20, 50, 100],\n layout: () => [\"previous\", \"pages\", \"next\"],\n size: \"sm\"\n});\nconst layout = computed(() => [...new Set(props.layout)].filter(part =>\n [\"first\", \"previous\", \"pages\", \"compact\", \"next\", \"last\", \"summary\", \"range\", \"pageSize\", \"jumper\", \"spacer\"].includes(part)\n));\n// 连续翻页部件共享紧凑分组;辅助部件独立留白,保持调用方的视觉和键盘顺序。\nconst navigationParts = new Set([\"first\", \"previous\", \"pages\", \"compact\", \"next\", \"last\"]);\nconst layoutGroups = computed(() => {\n const groups: QuireKitPaginationLayoutItem[][] = [];\n for (const part of layout.value) {\n const previous = groups.at(-1);\n if (navigationParts.has(part) && previous && navigationParts.has(previous[0]!)) previous.push(part);\n else groups.push([part]);\n }\n return groups;\n});\nconst page = defineModel<number | undefined>(\"page\");\nconst pageSize = defineModel<number | undefined>(\"pageSize\");\nconst emit = defineEmits<Emits>();\ndefineSlots<Slots>();\n\nconst text = useQuireKitMessages(\"pagination\");\nconst label = computed(() => props.label ?? text.value.label);\nconst translations = computed(() => ({\n rootLabel: label.value,\n firstTriggerLabel: text.value.first,\n prevTriggerLabel: text.value.previous,\n nextTriggerLabel: text.value.next,\n lastTriggerLabel: text.value.last,\n itemLabel: ({ page: itemPage, totalPages }: { page: number; totalPages: number }) => text.value.page(itemPage, totalPages)\n}));\nconst optionalRootProps = computed(() => ({\n ...(page.value === undefined ? { defaultPage: props.defaultPage } : { page: page.value }),\n ...(pageSize.value === undefined\n ? { defaultPageSize: props.defaultPageSize }\n : { pageSize: pageSize.value })\n}));\n\n/**\n * 同步并公开当前页。\n *\n * @param details - Ark 报告的页码与 pageSize。\n */\nfunction handlePageChange(details: QuireKitPaginationPageChangeDetails): void {\n page.value = details.page;\n emit(\"pageChange\", details);\n}\n\n/**\n * 同步并公开每页数据量。\n *\n * @param details - Ark 报告的新 pageSize。\n */\nfunction handlePageSizeChange(details: QuireKitPaginationPageSizeChangeDetails): void {\n pageSize.value = details.pageSize;\n emit(\"pageSizeChange\", details);\n}\n</script>\n\n<template>\n <Pagination.Root\n v-bind=\"optionalRootProps\"\n :count=\"count\"\n :data-disabled=\"disabled ? '' : undefined\"\n :sibling-count=\"siblingCount\"\n :translations=\"translations\"\n :class=\"['qk-pagination', `qk-pagination--${size}`]\"\n @page-change=\"handlePageChange\"\n @page-size-change=\"handlePageSizeChange\"\n >\n <Pagination.Context v-slot=\"pagination\">\n <template v-for=\"group in layoutGroups\" :key=\"group.join('-')\">\n <span v-if=\"group[0] === 'spacer'\" class=\"qk-pagination__spacer\" aria-hidden=\"true\" />\n <div v-else class=\"qk-pagination__controls\">\n <template v-for=\"part in group\" :key=\"part\">\n <template v-if=\"part === 'summary' || part === 'range'\">\n <slot :name=\"part\" :page=\"pagination.page\" :total-pages=\"pagination.totalPages\"\n :start=\"pagination.count === 0 ? 0 : pagination.pageRange.start + 1\"\n :end=\"pagination.pageRange.end\" :count=\"pagination.count\">\n <span v-if=\"part === 'summary'\" class=\"qk-pagination__summary\">{{ text.summary(pagination.count) }}</span>\n <span v-else class=\"qk-pagination__summary\">{{ text.range(pagination.count === 0 ? 0 : pagination.pageRange.start + 1, pagination.pageRange.end) }}</span>\n </slot>\n </template>\n <Pagination.FirstTrigger v-else-if=\"part === 'first'\" class=\"qk-pagination__trigger qk-pagination__edge-trigger\" :disabled=\"disabled || pagination.page <= 1\">\n <QuireIcon name=\"chevronFirst\" :size=\"size === 'xl' ? 20 : 16\" />\n </Pagination.FirstTrigger>\n <Pagination.PrevTrigger v-else-if=\"part === 'previous'\" class=\"qk-pagination__trigger\" :disabled=\"disabled || pagination.page <= 1\">\n <slot name=\"previous\"><QuireIcon name=\"chevronLeft\" :size=\"size === 'xl' ? 20 : 16\" /></slot>\n </Pagination.PrevTrigger>\n <div v-else-if=\"part === 'pages'\" class=\"qk-pagination__controls\">\n <template v-for=\"(item, index) in pagination.pages\" :key=\"item.type === 'page' ? item.value : `ellipsis-${index}`\">\n <Pagination.Item v-if=\"item.type === 'page'\" :type=\"item.type\" :value=\"item.value\" class=\"qk-pagination__item\" :disabled=\"disabled\">\n <slot name=\"page\" :page=\"item.value\" :selected=\"item.value === pagination.page\">{{ item.value }}</slot>\n </Pagination.Item>\n <Pagination.Ellipsis v-else :index=\"index\" class=\"qk-pagination__ellipsis\">\n <slot name=\"ellipsis\">…</slot>\n </Pagination.Ellipsis>\n </template>\n </div>\n <span v-else-if=\"part === 'compact'\" class=\"qk-pagination__compact-label\">{{ pagination.page }} / {{ pagination.totalPages }}</span>\n <Pagination.NextTrigger v-else-if=\"part === 'next'\" class=\"qk-pagination__trigger\" :disabled=\"disabled || pagination.page >= pagination.totalPages\">\n <slot name=\"next\"><QuireIcon name=\"chevronRight\" :size=\"size === 'xl' ? 20 : 16\" /></slot>\n </Pagination.NextTrigger>\n <Pagination.LastTrigger v-else-if=\"part === 'last'\" class=\"qk-pagination__trigger qk-pagination__edge-trigger\" :disabled=\"disabled || pagination.page >= pagination.totalPages\">\n <QuireIcon name=\"chevronLast\" :size=\"size === 'xl' ? 20 : 16\" />\n </Pagination.LastTrigger>\n <PaginationOptions v-else-if=\"part === 'pageSize' || part === 'jumper'\" :part=\"part\"\n :page=\"pagination.page\" :page-size=\"pagination.pageSize\" :total-pages=\"pagination.totalPages\"\n :label=\"label\" :size=\"size\" :disabled=\"disabled\" :page-size-options=\"pageSizeOptions\"\n @page-change=\"pagination.setPage\" @page-size-change=\"pagination.setPage(1); pagination.setPageSize($event)\" />\n </template>\n </div>\n </template>\n </Pagination.Context>\n </Pagination.Root>\n</template>\n","<script setup lang=\"ts\">\nimport { Popover } from \"@ark-ui/vue/popover\";\n\n/** Popover Anchor 的公开属性。 */\ninterface Props {\n /** 是否把锚点属性合并到插槽提供的唯一子元素。 */\n readonly asChild?: boolean;\n}\n\n/** Popover Anchor 的组合插槽。 */\ninterface Slots {\n /** 提供独立定位锚点的唯一元素。 */\n readonly default: () => unknown;\n}\n\nconst { asChild = true } = defineProps<Props>();\ndefineSlots<Slots>();\n</script>\n\n<template>\n <Popover.Anchor\n :as-child=\"asChild\"\n data-scope=\"popover\"\n data-part=\"anchor\"\n >\n <slot />\n </Popover.Anchor>\n</template>\n","<script setup lang=\"ts\">\nimport { Popover } from \"@ark-ui/vue/popover\";\nimport { useQuireKitMessages } from \"../locale-provider/context\";\n\n/** Popover CloseTrigger 的公开属性。 */\ninterface Props {\n /** 关闭动作的具体可访问名称,例如“关闭层级列表”;省略时取自语言包。 */\n readonly label?: string;\n /** 是否把关闭行为合并到插槽提供的唯一子元素。 */\n readonly asChild?: boolean;\n}\n\n/** Popover CloseTrigger 的组合插槽。 */\ninterface Slots {\n /** 可选的自定义关闭按钮或图标。 */\n readonly default?: () => unknown;\n}\n\nconst {\n label,\n asChild = false\n} = defineProps<Props>();\ndefineSlots<Slots>();\nconst text = useQuireKitMessages(\"popover\");\n</script>\n\n<template>\n <Popover.CloseTrigger\n :as-child=\"asChild\"\n :aria-label=\"label ?? text.close\"\n data-scope=\"popover\"\n data-part=\"close-trigger\"\n :class=\"!asChild && 'qk-popover__close-trigger'\"\n >\n <slot>\n <svg\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"1.8\"\n stroke-linecap=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"m6 6 12 12M18 6 6 18\" />\n </svg>\n </slot>\n </Popover.CloseTrigger>\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 { Popover, usePopoverContext } from \"@ark-ui/vue/popover\";\nimport type { QuireKitPopoverBorder } from \"../../components/popover\";\nimport { useModalPortal } from \"../shared/surface/use-modal-portal\";\nimport { anchoredSurfaceStyle } from \"../shared/surface/geometry\";\n\n/** Popover Content 的公开属性。 */\ninterface Props {\n /** Content 与箭头的可选边界强度;默认不显示边框。 */\n readonly border?: QuireKitPopoverBorder;\n /** Portal 的目标元素或 CSS 选择器。 */\n readonly portalTarget?: string | HTMLElement;\n /** 是否渲染与当前 placement 同步的定位箭头。 */\n readonly showArrow?: boolean;\n /** CSS 宽度或像素数;anchor 跟随 Anchor(未指定时为 Trigger)宽度,并受视口约束。 */\n readonly width?: string | number;\n /** none 用于已有内间距的列表,避免叠加内容留白。 */\n readonly padding?: \"default\" | \"none\";\n}\n\n/** Popover Content 的组合插槽。 */\ninterface Slots {\n /** 标题、描述、交互内容与关闭动作。 */\n readonly default: () => unknown;\n}\n\nconst {\n border = \"none\",\n portalTarget,\n showArrow = true,\n width,\n padding = \"default\"\n} = defineProps<Props>();\ndefineSlots<Slots>();\ndefineOptions({ inheritAttrs: false });\n\nconst portal = useQuireOverlayHost(() => portalTarget);\nconst context = usePopoverContext();\nconst isPortalled = computed(resolvePortalled);\nconst { hasModalOwner, disabled: portalDisabled } = useModalPortal(() => isPortalled.value, () => context.value.open);\nconst attrs = useAttrs();\nconst contentStyle = computed(() => ({\n ...anchoredSurfaceStyle,\n ...(width === undefined ? {} : {\n width: width === 'anchor' ? 'min(var(--reference-width), calc(100vw - 16px))'\n : typeof width === 'number' ? `${width}px` : width\n }),\n ...(padding === 'none' ? { padding: '0', gap: '0' } : {})\n}));\n// Hydrate each popup beside its trigger before moving it to the shared body target.\n// Async demo/route boundaries can hydrate in a different order from server portals.\nconst mounted = ref(false);\nonMounted(() => { mounted.value = true; });\n\n/**\n * 从 Ark UI 上下文读取当前 machine 的 portal 决策。\n *\n * @returns 是否把 positioner 传送到 portal 目标。\n */\nfunction resolvePortalled(): boolean {\n return context.value.portalled;\n}\n</script>\n\n<template>\n <Teleport :to=\"portal.target.value\" :disabled=\"portalDisabled || !mounted\">\n <QuireThemePortal>\n <Popover.Positioner\n :class=\"['qk-popover__positioner', hasModalOwner && 'qk-popover__positioner--modal']\"\n data-scope=\"popover\"\n data-part=\"positioner\"\n >\n <Popover.Content\n v-bind=\"attrs\"\n :style=\"contentStyle\"\n :class=\"[\n 'qk-popover__content',\n `qk-popover__content--border-${border}`\n ]\"\n data-scope=\"popover\"\n data-part=\"content\"\n >\n <slot />\n </Popover.Content>\n <!-- Keep the positioning arrow outside the scrolling content so its tip is not clipped. -->\n <Popover.Arrow\n v-if=\"showArrow\"\n v-show=\"context.open\"\n aria-hidden=\"true\"\n class=\"qk-popover__arrow\"\n data-scope=\"popover\"\n data-part=\"arrow\"\n >\n <Popover.ArrowTip\n :class=\"[\n 'qk-popover__arrow-tip',\n `qk-popover__arrow-tip--border-${border}`\n ]\"\n />\n </Popover.Arrow>\n </Popover.Positioner>\n </QuireThemePortal>\n </Teleport>\n</template>\n","<script setup lang=\"ts\">\nimport { Popover } from \"@ark-ui/vue/popover\";\n\n/** Popover Description 的组合插槽。 */\ninterface Slots {\n /** 补充浮层用途或结果影响的说明文字。 */\n readonly default: () => unknown;\n}\n\ndefineSlots<Slots>();\n</script>\n\n<template>\n <Popover.Description\n class=\"qk-popover__description\"\n data-scope=\"popover\"\n data-part=\"description\"\n >\n <slot />\n </Popover.Description>\n</template>\n","import { useQuireOverlayHost } from \"../overlay-provider\";\nimport { usePopover, type PopoverOpenChangeDetails, type UsePopoverProps } from \"@ark-ui/vue/popover\";\nimport { computed, ref } from \"vue\";\nimport { useModalSurfaceOwner } from \"../shared/surface/use-modal-owner\";\nimport type { PopoverRuntime, PopoverRuntimeEvents, PopoverRuntimeIdentity, PopoverRuntimeInput } from \"./types\";\n\n/**\n * Projects the existing Popover contract onto one reusable public Ark machine.\n * @param props - Reactive public values, separate from the optional private identity.\n * @param events - Original model and dismissal notifications.\n * @param identity - Stable anatomy ids for a trigger outside the provider branch.\n * @returns Reactive provider API retaining the existing modal-owner behavior.\n */\nexport function usePopoverRuntime(props: PopoverRuntimeInput, events: PopoverRuntimeEvents, identity?: PopoverRuntimeIdentity): PopoverRuntime {\n const portal = useQuireOverlayHost();\n const owner = useModalSurfaceOwner();\n const internalOpen = ref(props.defaultOpen ?? false);\n const bindings = computed<UsePopoverProps>(() => ({\n ...(identity === undefined ? {} : { id: identity.id, ids: identity.ids }),\n // A hidden owner suspends effects without replacing the consumer's open request.\n // Owned machines receive only effective open; explicit false wins over a default.\n ...(owner.present ? { defaultOpen: false } : props.open === undefined ? { defaultOpen: props.defaultOpen ?? false } : {}),\n ...(owner.present\n ? { open: owner.ready.value && (props.open ?? internalOpen.value) }\n : props.open === undefined ? {} : { open: props.open }),\n portalled: props.portalled ?? true,\n modal: props.modal ?? false,\n autoFocus: props.autoFocus ?? true,\n restoreFocus: (props.restoreFocus ?? true) && owner.open.value,\n closeOnEscape: props.closeOnEscape ?? true,\n closeOnInteractOutside: props.closeOnInteractOutside ?? true,\n positioning: {\n ...(portal.strategy.value ? { strategy: portal.strategy.value } : {}),\n placement: props.placement ?? \"bottom-start\",\n flip: true,\n slide: true,\n hideWhenDetached: props.hideWhenDetached ?? true\n },\n ...(props.initialFocusEl === undefined ? {} : { initialFocusEl: props.initialFocusEl }),\n ...(props.finalFocusEl === undefined ? {} : { finalFocusEl: props.finalFocusEl }),\n onOpenChange: handleOpenChange,\n onEscapeKeyDown: events.escapeKeyDown,\n onInteractOutside: events.interactOutside\n }));\n\n /** @param details - The original Ark machine's update request. */\n function handleOpenChange(details: PopoverOpenChangeDetails): void {\n if (owner.present && !owner.ready.value) return;\n internalOpen.value = details.open;\n events.updateOpen(details.open);\n events.openChange(details.open);\n }\n\n // The props callbacks are the sole event path; an additional emit adapter would duplicate requests.\n return { api: usePopover(bindings) };\n}\n","<script setup lang=\"ts\">\nimport { Popover } from \"@ark-ui/vue/popover\";\nimport type { PopoverRuntimeProps as Props } from \"./types\";\nimport { usePopoverRuntime } from \"./use-runtime\";\n\n// Root owns behavior only; DOM attributes belong on Trigger or Content.\ndefineOptions({ inheritAttrs: false });\n\n/** Vue Popover 根组件发出的公开事件。 */\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\n/** Vue Popover 根组件的组合插槽。 */\ninterface Slots {\n /** Trigger、Anchor 与 Content 的组合内容。 */\n readonly default: () => unknown;\n}\n\nconst props = withDefaults(defineProps<Props>(), {\n open: undefined,\n defaultOpen: false,\n placement: \"bottom-start\",\n portalled: true,\n modal: false,\n autoFocus: true,\n restoreFocus: true,\n closeOnEscape: true,\n closeOnInteractOutside: true,\n hideWhenDetached: true\n});\nconst emit = defineEmits<Emits>();\ndefineSlots<Slots>();\nconst { api } = usePopoverRuntime(props, {\n updateOpen: open => emit(\"update:open\", open),\n openChange: open => emit(\"openChange\", open),\n escapeKeyDown: event => emit(\"escapeKeyDown\", event),\n interactOutside: event => emit(\"interactOutside\", event)\n});\n</script>\n\n<template>\n <Popover.RootProvider :value=\"api\">\n <slot />\n </Popover.RootProvider>\n</template>\n","<script setup lang=\"ts\">\nimport { Popover } from \"@ark-ui/vue/popover\";\n\n/** Popover Title 的组合插槽。 */\ninterface Slots {\n /** 可访问名称与可见标题。 */\n readonly default: () => unknown;\n}\n\ndefineSlots<Slots>();\n</script>\n\n<template>\n <Popover.Title\n class=\"qk-popover__title\"\n data-scope=\"popover\"\n data-part=\"title\"\n >\n <slot />\n </Popover.Title>\n</template>\n","<script setup lang=\"ts\">\nimport { Popover } from \"@ark-ui/vue/popover\";\n\n/** Popover Trigger 的公开属性。 */\ninterface Props {\n /** 是否将打开行为合并到插槽中的唯一子元素。 */\n readonly asChild?: boolean;\n /** 多 trigger 组合中用于标识当前 trigger 的稳定值。 */\n readonly value?: string;\n}\n\n/** Popover Trigger 的组合插槽。 */\ninterface Slots {\n /** 打开浮层的唯一触发元素。 */\n readonly default: () => unknown;\n}\n\nconst { asChild = false, value } = defineProps<Props>();\ndefineSlots<Slots>();\n</script>\n\n<template>\n <Popover.Trigger\n :as-child=\"asChild\"\n :value=\"value\"\n data-scope=\"popover\"\n data-part=\"trigger\"\n :class=\"!asChild && 'qk-popover__trigger'\"\n >\n <slot />\n </Popover.Trigger>\n</template>\n","<script setup lang=\"ts\">\nimport { Splitter, useSplitter } from \"@ark-ui/vue/splitter\";\nimport { computed } from \"vue\";\nimport { useQuireKitMessages } from \"../locale-provider/context\";\nimport type {\n QuireKitSplitterHandle,\n QuireKitSplitterHandleSlotProps,\n QuireKitSplitterHandleSize,\n QuireKitSplitterHandleVariant,\n QuireKitSplitterOrientation,\n QuireKitSplitterPanel,\n QuireKitSplitterPanelChangeDetails,\n QuireKitSplitterPanelSlotProps,\n QuireKitSplitterResizeDetails\n} from \"../../components/splitter\";\n\n/** Vue Splitter 适配器的公开属性。 */\ninterface Props {\n /** Splitter 根节点的稳定标识。 */\n readonly id?: string;\n /** 面板及其尺寸约束。 */\n readonly panels: readonly QuireKitSplitterPanel[];\n /** 未受控使用时的初始面板百分比尺寸。 */\n readonly defaultSize?: number[];\n /** 面板排列与调整方向。 */\n readonly orientation?: QuireKitSplitterOrientation;\n /** 键盘方向键每次调整的百分点;Shift 加方向键固定调整 10 个百分点。 */\n readonly keyboardResizeBy?: number;\n /** 调整柄的可见粗细;可拖动范围大于可见线条。 */\n readonly handleSize?: QuireKitSplitterHandleSize;\n /** 调整柄的内置视觉;custom 由 handle 插槽完整接管。 */\n readonly handleVariant?: QuireKitSplitterHandleVariant;\n /** 是否禁止全部调整柄交互。 */\n readonly disabled?: boolean;\n /** Splitter 的可访问名称。 */\n readonly label: string;\n}\n\n/** Splitter 的可替换内容位置。 */\ninterface Slots {\n /** 渲染每一个面板的业务内容。 */\n readonly panel?: (props: QuireKitSplitterPanelSlotProps) => unknown;\n /** 替换面板之间的调整柄指示器。 */\n readonly handle?: (props: QuireKitSplitterHandleSlotProps) => unknown;\n}\n\n/** Splitter 发出的公开语义事件。 */\ninterface Emits {\n /** 用户开始拖拽或键盘调整时触发。 */\n resizeStart: [];\n /** 调整期间持续报告最新尺寸。 */\n resize: [details: QuireKitSplitterResizeDetails];\n /** 一次调整结束后报告最终尺寸。 */\n resizeEnd: [details: QuireKitSplitterResizeDetails];\n /** 面板通过公开命令折叠后触发。 */\n collapse: [details: QuireKitSplitterPanelChangeDetails];\n /** 面板通过公开命令展开后触发。 */\n expand: [details: QuireKitSplitterPanelChangeDetails];\n}\n\nconst props = withDefaults(defineProps<Props>(), {\n defaultSize: () => [],\n orientation: \"horizontal\",\n keyboardResizeBy: 10,\n handleSize: \"sm\",\n handleVariant: \"line\",\n disabled: false\n});\nconst sizes = defineModel<number[] | undefined>(\"size\");\nconst emit = defineEmits<Emits>();\ndefineSlots<Slots>();\nconst text = useQuireKitMessages(\"splitter\");\nlet panelCommandEventHandled = false;\nconst splitterRegistry = Splitter.createRegistry({\n hitAreaMargins: {\n coarse: 15,\n fine: 5\n }\n});\n\nconst splitterProps = computed(() => ({\n ...(props.id === undefined ? {} : { id: props.id }),\n panels: props.panels.map(({ label: _label, ...panel }) => ({ ...panel })),\n orientation: props.orientation,\n keyboardResizeBy: props.keyboardResizeBy,\n registry: splitterRegistry,\n ...(sizes.value === undefined\n ? { defaultSize: props.defaultSize }\n : { size: sizes.value }),\n onResizeStart: handleResizeStart,\n onResize: handleResize,\n onResizeEnd: handleResizeEnd,\n onCollapse: handleCollapse,\n onExpand: handleExpand\n}));\nconst splitter = useSplitter(splitterProps);\n\n/** 报告一次调整开始。 */\nfunction handleResizeStart(): void {\n emit(\"resizeStart\");\n}\n\n/**\n * 同步调整期间的面板尺寸。\n *\n * @param details - Ark Splitter 报告的调整详情。\n */\nfunction handleResize(details: { size: number[]; resizeTriggerId: string | null }): void {\n sizes.value = details.size;\n emit(\"resize\", { sizes: details.size, resizeTriggerId: details.resizeTriggerId });\n}\n\n/**\n * 报告一次调整结束。\n *\n * @param details - Ark Splitter 报告的最终尺寸。\n */\nfunction handleResizeEnd(details: { size: number[]; resizeTriggerId: string | null }): void {\n emit(\"resizeEnd\", { sizes: details.size, resizeTriggerId: details.resizeTriggerId });\n}\n\n/**\n * 报告面板折叠。\n *\n * @param details - 状态发生变化的面板信息。\n */\nfunction handleCollapse(details: QuireKitSplitterPanelChangeDetails): void {\n panelCommandEventHandled = true;\n emit(\"collapse\", details);\n}\n\n/**\n * 报告面板展开。\n *\n * @param details - 状态发生变化的面板信息。\n */\nfunction handleExpand(details: QuireKitSplitterPanelChangeDetails): void {\n panelCommandEventHandled = true;\n emit(\"expand\", details);\n}\n\n/**\n * 生成相邻面板之间的 Ark 调整柄标识。\n *\n * @param index - 调整柄之前的面板索引。\n * @returns Ark Splitter 使用的稳定相邻面板标识。\n */\nfunction getResizeTriggerId(index: number): `${string}:${string}` {\n return `${props.panels[index]?.id ?? \"\"}:${props.panels[index + 1]?.id ?? \"\"}`;\n}\n\n/**\n * 返回当前全部面板尺寸。\n *\n * @returns 所有面板按 DOM 顺序排列的百分比尺寸。\n */\nfunction getSizes(): number[] {\n return splitter.value.getSizes();\n}\n\n/** @param nextSizes - 需要应用的全部面板尺寸。 */\nfunction setSizes(nextSizes: number[]): void {\n splitter.value.setSizes(nextSizes);\n}\n\n/** 恢复初始面板尺寸。 */\nfunction resetSizes(): void {\n splitter.value.resetSizes();\n}\n\n/** @param panelId - 需要折叠的面板标识。 */\nfunction collapsePanel(panelId: string): void {\n const wasCollapsed = splitter.value.isPanelCollapsed(panelId);\n panelCommandEventHandled = false;\n splitter.value.collapsePanel(panelId);\n if (!wasCollapsed && splitter.value.isPanelCollapsed(panelId) && !panelCommandEventHandled) {\n handleCollapse({ panelId, size: splitter.value.getPanelSize(panelId) });\n }\n}\n\n/**\n * @param panelId - 需要展开的面板标识。\n * @param minSize - 展开时允许覆盖的最小尺寸。\n */\nfunction expandPanel(panelId: string, minSize?: number): void {\n const wasExpanded = splitter.value.isPanelExpanded(panelId);\n panelCommandEventHandled = false;\n splitter.value.expandPanel(panelId, minSize);\n if (!wasExpanded && splitter.value.isPanelExpanded(panelId) && !panelCommandEventHandled) {\n handleExpand({ panelId, size: splitter.value.getPanelSize(panelId) });\n }\n}\n\n/**\n * @param panelId - 需要调整的面板标识。\n * @param size - 目标百分比尺寸。\n */\nfunction resizePanel(panelId: string, size: number): void {\n splitter.value.resizePanel(panelId, size);\n}\n\ndefineExpose<QuireKitSplitterHandle>({\n getSizes,\n setSizes,\n resetSizes,\n collapsePanel,\n expandPanel,\n resizePanel\n});\n</script>\n\n<template>\n <div class=\"qk-splitter-frame\">\n <Splitter.RootProvider\n :value=\"splitter\"\n :aria-label=\"label\"\n :class=\"['qk-splitter', `qk-splitter--${orientation}`]\"\n >\n <template v-for=\"(panel, index) in panels\" :key=\"panel.id\">\n <Splitter.Panel :id=\"panel.id\" class=\"qk-splitter__panel\">\n <slot name=\"panel\" :panel=\"panel\" :index=\"index\" :size=\"splitter.getPanelSize(panel.id)\">\n <span class=\"qk-splitter__panel-label\">{{ panel.label ?? panel.id }}</span>\n </slot>\n </Splitter.Panel>\n\n <Splitter.ResizeTrigger\n v-if=\"index < panels.length - 1\"\n :id=\"getResizeTriggerId(index)\"\n :disabled=\"disabled\"\n :tabindex=\"disabled ? -1 : 0\"\n :aria-disabled=\"disabled || undefined\"\n :aria-label=\"text.resize(panel.label ?? panel.id, panels[index + 1]?.label ?? panels[index + 1]?.id ?? '')\"\n :aria-orientation=\"orientation === 'horizontal' ? 'vertical' : 'horizontal'\"\n :class=\"[\n 'qk-splitter__handle',\n `qk-splitter__handle--${handleSize}`,\n `qk-splitter__handle--${handleVariant}`\n ]\"\n >\n <Splitter.ResizeTriggerIndicator class=\"qk-splitter__indicator\">\n <slot\n name=\"handle\"\n :before=\"panel\"\n :after=\"panels[index + 1]!\"\n :index=\"index\"\n :orientation=\"orientation\"\n >\n <span class=\"qk-splitter__indicator-mark\" />\n </slot>\n </Splitter.ResizeTriggerIndicator>\n </Splitter.ResizeTrigger>\n </template>\n </Splitter.RootProvider>\n </div>\n</template>\n","<script setup lang=\"ts\">\nimport { SegmentGroup } from \"@ark-ui/vue/segment-group\";\nimport { computed } from \"vue\";\nimport { guardRadioReadOnlyKey } from \"../radio-group/keyboard\";\nimport type {\n QuireKitSegmentedItem,\n QuireKitSegmentedOrientation,\n QuireKitSegmentedSize\n} from \"../../components/segmented\";\n\n/** Vue Segmented Control 的公开属性。 */\ninterface Props {\n /** 按 DOM 顺序渲染的稳定选项。 */\n readonly items: readonly QuireKitSegmentedItem[];\n /** radiogroup 的可访问名称。 */\n readonly label: string;\n /** 首次渲染时使用的非受控选中值。 */\n readonly defaultValue?: string;\n /** 原生 radio 输入共享的表单字段名。 */\n readonly name?: string;\n /** 原生 radio 输入关联的 form id。 */\n readonly form?: string;\n /** 同步约束高度、排版、间距和图标盒的公开尺寸。 */\n readonly size?: QuireKitSegmentedSize;\n /** 选项排列和可访问方向;方向键遵循原生 radio 行为。 */\n readonly orientation?: QuireKitSegmentedOrientation;\n /** 是否让每个选项占据相同比例的可用空间。 */\n readonly equal?: boolean;\n /** 是否禁止整组选择。 */\n readonly disabled?: boolean;\n /** 是否保留聚焦和表单提交,同时阻止修改当前值。 */\n readonly readOnly?: boolean;\n}\n\n/** 自定义一个选项可见内容时获得的稳定上下文。 */\ninterface ItemSlotProps {\n /** 当前渲染的选项合同。 */\n readonly item: QuireKitSegmentedItem;\n /** 当前选项是否已选中。 */\n readonly selected: boolean;\n}\n\n/** Vue Segmented Control 的内容插槽。 */\ninterface Slots {\n /** 替换选项的可见内容,保留标签关联。 */\n readonly item?: (props: ItemSlotProps) => unknown;\n}\n\nconst {\n items,\n label,\n defaultValue,\n name,\n form,\n size = \"sm\",\n orientation = \"horizontal\",\n equal = false,\n disabled = false,\n readOnly = false\n} = defineProps<Props>();\n\nconst selectedValue = defineModel<string | null>();\nconst optionalRootProps = computed(() => ({\n ...(selectedValue.value === undefined\n ? {}\n : { modelValue: selectedValue.value }),\n ...(defaultValue === undefined ? {} : { defaultValue }),\n ...(name === undefined ? {} : { name }),\n ...(form === undefined ? {} : { form })\n}));\ndefineSlots<Slots>();\n</script>\n\n<template>\n <SegmentGroup.Root\n v-bind=\"optionalRootProps\"\n :orientation=\"orientation\"\n :disabled=\"disabled\"\n :read-only=\"readOnly\"\n :aria-label=\"label\"\n data-qk-scope=\"segmented\"\n :class=\"[\n 'qk-segmented',\n `qk-segmented--${size}`,\n `qk-segmented--${orientation}`,\n equal && 'qk-segmented--equal'\n ]\"\n @update:model-value=\"selectedValue = $event\"\n @keydown.capture=\"guardRadioReadOnlyKey($event, readOnly)\"\n >\n <SegmentGroup.Indicator class=\"qk-segmented__indicator\" />\n <SegmentGroup.Item\n v-for=\"item in items\"\n :key=\"item.value\"\n :value=\"item.value\"\n :disabled=\"item.disabled\"\n :class=\"['qk-segmented__item', `qk-segmented__item--${size}`]\"\n >\n <SegmentGroup.ItemContext v-slot=\"itemState\">\n <SegmentGroup.ItemHiddenInput :disabled=\"itemState.disabled\" />\n </SegmentGroup.ItemContext>\n <SegmentGroup.ItemText class=\"qk-segmented__label\" :aria-label=\"item.label\">\n <slot\n name=\"item\"\n :item=\"item\"\n :selected=\"\n selectedValue === item.value ||\n (selectedValue === undefined && defaultValue === item.value)\n \"\n >\n {{ item.label }}\n </slot>\n </SegmentGroup.ItemText>\n </SegmentGroup.Item>\n </SegmentGroup.Root>\n</template>\n","<script setup lang=\"ts\">\nimport { Slider } from \"@ark-ui/vue/slider\";\nimport { computed } from \"vue\";\nimport type { QuireKitSliderOrientation, QuireKitSliderOrigin } from \"../../components/slider\";\n\n/** Vue Slider 的公开属性。 */\ninterface Props {\n /** 控件始终可见的标签。 */\n readonly label: string;\n /** 每个拇指的可访问名称;范围选择时应逐项提供。 */\n readonly thumbLabels?: readonly string[];\n /** 未受控使用时的初始数值数组。 */\n readonly defaultValue?: number[];\n /** 最小值。 */\n readonly min?: number;\n /** 最大值。 */\n readonly max?: number;\n /** 每次键盘或指针调整的步长。 */\n readonly step?: number;\n /** PageUp、PageDown 或 Shift 调整时的大步长。 */\n readonly largeStep?: number;\n /** 多拇指之间允许的最小步数。 */\n readonly minStepsBetweenThumbs?: number;\n /** 布局和方向键轴向。 */\n readonly orientation?: QuireKitSliderOrientation;\n /** 填充区间从起点或中心延伸。 */\n readonly origin?: QuireKitSliderOrigin;\n /** 是否显示当前值文字。 */\n readonly showValue?: boolean;\n /** 当前值之后显示的单位。 */\n readonly unit?: string;\n /** 原生表单字段名。 */\n readonly name?: string;\n /** 关联的 form id。 */\n readonly form?: string;\n /** 是否禁用所有交互。 */\n readonly disabled?: boolean;\n /** 是否允许聚焦与读取但禁止修改。 */\n readonly readOnly?: boolean;\n /** 是否处于校验错误状态。 */\n readonly invalid?: boolean;\n}\n\nconst props = withDefaults(defineProps<Props>(), {\n defaultValue: () => [0],\n min: 0,\n max: 100,\n step: 1,\n orientation: \"horizontal\",\n origin: \"start\",\n showValue: true,\n unit: \"\",\n disabled: false,\n readOnly: false,\n invalid: false\n});\nconst values = defineModel<number[] | undefined>({ default: undefined });\n\nconst currentValues = computed(() => values.value ?? props.defaultValue);\nconst accessibleThumbLabels = computed(() => currentValues.value.map((_, index) => (\n props.thumbLabels?.[index] ?? (currentValues.value.length === 1 ? props.label : `${props.label} ${index + 1}`)\n)));\nconst optionalRootProps = computed(() => ({\n ...(values.value === undefined ? {} : { modelValue: values.value }),\n ...(props.largeStep === undefined ? {} : { largeStep: props.largeStep }),\n ...(props.minStepsBetweenThumbs === undefined ? {} : { minStepsBetweenThumbs: props.minStepsBetweenThumbs }),\n ...(props.name === undefined ? {} : { name: props.name }),\n ...(props.form === undefined ? {} : { form: props.form })\n}));\n\n/** 把 Ark 的下一数值数组同步给可选的 v-model。 */\nfunction updateValues(nextValues: number[]): void {\n values.value = nextValues;\n}\n</script>\n\n<template>\n <Slider.Root\n v-bind=\"optionalRootProps\"\n :default-value=\"defaultValue\"\n :min=\"min\"\n :max=\"max\"\n :step=\"step\"\n :orientation=\"orientation\"\n :origin=\"origin\"\n :thumb-size=\"{ width: 16, height: 16 }\"\n :disabled=\"disabled\"\n :read-only=\"readOnly\"\n :invalid=\"invalid\"\n :class=\"['qk-slider', `qk-slider--${orientation}`]\"\n @update:model-value=\"updateValues\"\n >\n <div class=\"qk-slider__header\">\n <span class=\"qk-slider__label\">{{ label }}</span>\n <Slider.ValueText v-if=\"showValue\" class=\"qk-slider__value\">\n {{ currentValues.join(\" – \") }}{{ unit }}\n </Slider.ValueText>\n </div>\n <Slider.Control :data-readonly=\"readOnly ? '' : undefined\" class=\"qk-slider__control\">\n <Slider.Track class=\"qk-slider__track\">\n <Slider.Range class=\"qk-slider__range\" />\n </Slider.Track>\n <Slider.Thumb\n v-for=\"(_, index) in currentValues\"\n :key=\"index\"\n :index=\"index\"\n :aria-label=\"accessibleThumbLabels[index]\"\n :aria-readonly=\"readOnly || undefined\"\n :data-readonly=\"readOnly ? '' : undefined\"\n class=\"qk-slider__thumb\"\n >\n <Slider.HiddenInput :disabled=\"disabled\" />\n </Slider.Thumb>\n </Slider.Control>\n </Slider.Root>\n</template>\n","<script setup lang=\"ts\">\nimport { Switch } from \"@ark-ui/vue/switch\";\nimport { computed, useId } from \"vue\";\nimport type { QuireKitSwitchSize } from \"../../components/switch\";\n\n/** Vue Switch 的公开属性。 */\ninterface Props {\n /** 始终可见并参与点击目标的标签。 */\n readonly label: string;\n /** 未受控使用时的初始状态。 */\n readonly defaultChecked?: boolean;\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?: QuireKitSwitchSize;\n /** 是否禁用交互与原生提交。 */\n readonly disabled?: boolean;\n /** 是否允许聚焦与读取但禁止修改。 */\n readonly readOnly?: boolean;\n /** 是否为必填字段。 */\n readonly required?: boolean;\n /** 是否处于校验错误状态。 */\n readonly invalid?: boolean;\n}\n\n/** Switch 的可替换文字内容。 */\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<boolean | undefined>(\"checked\", { default: undefined });\ndefineSlots<Slots>();\n\nconst generatedId = useId();\nconst descriptionId = computed(() => `qk-switch-${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}));\n\n/**\n * 把 Ark 的下一状态同步给可选的 v-model。\n *\n * @param value - 用户交互后的布尔状态。\n */\nfunction updateChecked(value: boolean): void {\n checked.value = value;\n}\n</script>\n\n<template>\n <Switch.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-switch',\n `qk-switch--${size}`,\n invalid && 'qk-switch--invalid',\n disabled && 'qk-switch--disabled',\n (description !== undefined || $slots.description) && 'qk-switch--described'\n ]\"\n @update:checked=\"updateChecked\"\n >\n <Switch.HiddenInput\n role=\"switch\"\n :aria-describedby=\"description === undefined && !$slots.description ? undefined : descriptionId\"\n />\n <span class=\"qk-switch__content\">\n <Switch.Label class=\"qk-switch__label\">\n <slot>{{ label }}</slot>\n <span v-if=\"required\" aria-hidden=\"true\" class=\"qk-switch__required\">*</span>\n </Switch.Label>\n <span\n v-if=\"description !== undefined || $slots.description\"\n :id=\"descriptionId\"\n class=\"qk-switch__description\"\n >\n <slot name=\"description\">{{ description }}</slot>\n </span>\n </span>\n <Switch.Control :class=\"['qk-switch__control', `qk-switch__control--${size}`]\">\n <Switch.Thumb :class=\"['qk-switch__thumb', `qk-switch__thumb--${size}`]\" />\n </Switch.Control>\n </Switch.Root>\n</template>\n","import type { QuireKitTagsInputInvalidDetails } from \"../../components/tags-input\";\nimport type { TagsPasteContext, TagsPastePolicy } from \"./types\";\n\n/**\n * Rejects an overflowing batch before the input state commits or clears it.\n * Accepted batches continue through the regular validation and announcement path.\n * @param event - Native input event after clipboard insertion.\n * @param context - Current public tag state and draft operation.\n * @param policy - Current quantity and normalization rules.\n * @param onInvalid - Reports the rejected batch with visible recovery guidance.\n */\nexport function guardTagsPasteLimit(\n event: Event,\n context: TagsPasteContext,\n policy: TagsPastePolicy,\n onInvalid: (details: QuireKitTagsInputInvalidDetails) => void\n): void {\n if (!(event instanceof InputEvent) || event.inputType !== \"insertFromPaste\"\n || !policy.addOnPaste || policy.allowOverflow || !Number.isFinite(policy.max)) return;\n const input = event.target;\n if (!(input instanceof HTMLInputElement)) return;\n const normalize = policy.sanitizeValue ?? ((value: string) => value.trim());\n const candidates = normalize(input.value).split(policy.delimiter).map(normalize);\n const merged = context.value.concat(candidates);\n const count = policy.allowDuplicates ? merged.length : new Set(merged).size;\n if (count <= policy.max) return;\n\n // Keep the committed collection untouched and the full draft available to repair.\n event.stopImmediatePropagation();\n context.setInputValue(input.value);\n onInvalid({ reason: \"rangeOverflow\" });\n}\n","<script setup lang=\"ts\">\nimport { TagsInput } from \"@ark-ui/vue/tags-input\";\nimport type {\n TagsInputInputValueChangeDetails,\n TagsInputValidityChangeDetails,\n TagsInputValueChangeDetails\n} from \"@ark-ui/vue/tags-input\";\nimport { computed, ref, useId } from \"vue\";\nimport type {\n QuireKitTagsInputInvalidDetails,\n QuireKitTagsInputItemSlotProps,\n QuireKitTagsInputTextChangeDetails,\n QuireKitTagsInputValidateDetails,\n QuireKitTagsInputValueChangeDetails\n} from \"../../components/tags-input\";\nimport type { QuireKitControlSize } from \"../../components/control\";\nimport QuireIcon from \"../icon/icon.vue\";\nimport { useQuireKitMessages } from \"../locale-provider/context\";\nimport { guardTagsPasteLimit } from \"./paste\";\n\n/** Vue TagsInput 的公开属性。 */\ninterface Props {\n /** 输入行的共享控件尺寸;多行标签自然增高。 */\n readonly size?: QuireKitControlSize;\n /** 始终可见且可访问的字段名称。 */\n readonly label: string;\n /** 字段下方的补充说明。 */\n readonly description?: string;\n /** 外部 invalid 状态的恢复说明;省略时使用语言包的通用提示。 */\n readonly errorText?: string;\n /** 空集合时的输入提示;省略时使用语言包的通用提示。 */\n readonly placeholder?: string;\n /** 未受控模式的初始标签集合。 */\n readonly defaultValue?: string[];\n /** 标签数量上限;超量粘贴会保留待修改文本。 */\n readonly max?: number;\n /** 单个输入值的最大字符数。 */\n readonly maxLength?: number;\n /** 提交和粘贴拆分标签时使用的分隔符。 */\n readonly delimiter?: string | RegExp;\n /** 粘贴包含分隔符的文本时是否批量新增标签。 */\n readonly addOnPaste?: boolean;\n /** 是否允许重复标签。 */\n readonly allowDuplicates?: boolean;\n /** 达到 max 后是否仍允许新增并进入 invalid 状态。 */\n readonly allowOverflow?: boolean;\n /** 标签是否可通过 Enter 或双击就地编辑。 */\n readonly editable?: boolean;\n /** 输入失焦时清空还是提交尚未完成的文本。 */\n readonly blurBehavior?: \"clear\" | \"add\";\n /** 是否显示一键清空操作。 */\n readonly clearable?: boolean;\n /** 原生表单字段名。 */\n readonly name?: string;\n /** 关联的 form id。 */\n readonly form?: string;\n /** 控件接受的 CSS 宽度。 */\n readonly width?: string | number;\n /** 是否禁用输入、编辑和移除。 */\n readonly disabled?: boolean;\n /** 是否保留聚焦和读取但禁止修改。 */\n readonly readOnly?: boolean;\n /** 是否要求表单提交至少一个标签。 */\n readonly required?: boolean;\n /** 是否由宿主标记为校验错误。 */\n readonly invalid?: boolean;\n /** 新增前规范化标签文本。 */\n readonly sanitizeValue?: ((value: string) => string) | undefined;\n /** 宿主追加的标签校验。 */\n readonly validate?: ((details: QuireKitTagsInputValidateDetails) => boolean) | undefined;\n}\n\n/** TagsInput 的可替换内容位置。 */\ninterface Slots {\n /** 替换一个标签的预览内容。 */\n readonly item?: (props: QuireKitTagsInputItemSlotProps) => unknown;\n /** 标签右侧的数量或局部状态。 */\n readonly meta?: (props: { readonly count: number; readonly atMax: boolean }) => unknown;\n /** 替换当前说明或错误文本。 */\n readonly message?: (props: { readonly invalid: boolean }) => unknown;\n}\n\n/** TagsInput 发出的公开语义事件。 */\ninterface Emits {\n /** 标签集合发生变化。 */\n valueChange: [details: QuireKitTagsInputValueChangeDetails];\n /** 尚未提交的输入文本发生变化。 */\n inputValueChange: [details: QuireKitTagsInputTextChangeDetails];\n /** 达到数量上限或候选标签未通过校验。 */\n valueInvalid: [details: QuireKitTagsInputInvalidDetails];\n}\n\nconst props = withDefaults(defineProps<Props>(), {\n size: \"sm\",\n defaultValue: () => [],\n max: Number.POSITIVE_INFINITY,\n delimiter: \",\",\n addOnPaste: true,\n allowDuplicates: false,\n allowOverflow: false,\n editable: true,\n blurBehavior: \"clear\",\n clearable: true,\n width: \"100%\",\n disabled: false,\n readOnly: false,\n required: false,\n invalid: false,\n sanitizeValue: (value: string) => value.trim(),\n validate: undefined\n});\nconst modelValue = defineModel<string[] | undefined>();\nconst emit = defineEmits<Emits>();\ndefineSlots<Slots>();\n\nconst text = useQuireKitMessages(\"tagsInput\");\nconst generatedId = useId();\nconst messageId = computed(() => `qk-tags-input-${generatedId}-message`);\nconst rootStyle = computed(() => ({ width: props.width }));\nconst localError = ref<string>();\nconst effectiveInvalid = computed(() => props.invalid || localError.value !== undefined);\nconst visibleMessage = computed(() => {\n if (props.invalid) return props.errorText ?? text.value.invalid;\n return localError.value ?? props.description;\n});\nconst translations = computed(() => ({\n clearTriggerLabel: text.value.clearAll,\n deleteTagTriggerLabel: text.value.remove,\n tagSelected: text.value.selected,\n tagAdded: text.value.added,\n tagsPasted: (values: string[]) => text.value.pasted(values.length),\n tagEdited: text.value.editing,\n tagUpdated: text.value.updated,\n tagDeleted: text.value.removed,\n noTagsSelected: text.value.noneSelected,\n inputLabel: (count: number) => text.value.inputLabel(props.label, count)\n}));\nconst optionalRootProps = computed(() => ({\n ...(modelValue.value === undefined\n ? { defaultValue: props.defaultValue }\n : { modelValue: modelValue.value }),\n ...(props.maxLength === undefined ? {} : { maxLength: props.maxLength }),\n ...(props.name === undefined ? {} : { name: props.name }),\n ...(props.form === undefined ? {} : { form: props.form }),\n ...(props.validate === undefined ? {} : { validate: props.validate }),\n ...(props.sanitizeValue === undefined ? {} : { sanitizeValue: props.sanitizeValue })\n}));\n\n/**\n * 同步受控集合并转发完整标签变化详情。\n *\n * @param details - Ark 标签集合变化详情。\n */\nfunction handleValueChange(details: TagsInputValueChangeDetails): void {\n modelValue.value = details.value;\n localError.value = undefined;\n emit(\"valueChange\", details);\n}\n\n/**\n * 转发尚未提交的输入文本。\n *\n * @param details - Ark 输入文本变化详情。\n */\nfunction handleInputValueChange(details: TagsInputInputValueChangeDetails): void {\n if (details.inputValue.length > 0) localError.value = undefined;\n emit(\"inputValueChange\", details);\n}\n\n/**\n * 把 Ark 校验原因转为可见恢复说明并转发事件。\n *\n * @param details - Ark 候选值校验详情。\n */\nfunction handleValueInvalid(details: TagsInputValidityChangeDetails): void {\n localError.value = details.reason === \"rangeOverflow\"\n ? text.value.overflow(props.max)\n : text.value.rejected;\n emit(\"valueInvalid\", details);\n}\n</script>\n\n<template>\n <TagsInput.Root\n v-bind=\"optionalRootProps\"\n :max=\"max\"\n :delimiter=\"delimiter\"\n :add-on-paste=\"addOnPaste\"\n :allow-duplicates=\"allowDuplicates\"\n :allow-overflow=\"allowOverflow\"\n :editable=\"editable\"\n :blur-behavior=\"blurBehavior\"\n :disabled=\"disabled\"\n :read-only=\"readOnly\"\n :required=\"required\"\n :invalid=\"effectiveInvalid\"\n :style=\"rootStyle\"\n :class=\"[\n 'qk-tags-input',\n effectiveInvalid && 'qk-tags-input--invalid',\n disabled && 'qk-tags-input--disabled',\n readOnly && 'qk-tags-input--readonly'\n ]\"\n :translations=\"translations\"\n @update:model-value=\"modelValue = $event\"\n @value-change=\"handleValueChange\"\n @input-value-change=\"handleInputValueChange\"\n @value-invalid=\"handleValueInvalid\"\n >\n <TagsInput.Context v-slot=\"tagsInput\">\n <span class=\"qk-tags-input__header\">\n <TagsInput.Label class=\"qk-tags-input__label\">\n {{ label }}<span v-if=\"required\" class=\"qk-tags-input__required\" aria-hidden=\"true\">*</span>\n </TagsInput.Label>\n <span class=\"qk-tags-input__meta\">\n <slot name=\"meta\" :count=\"tagsInput.count\" :at-max=\"tagsInput.atMax\">\n {{ tagsInput.count }}<template v-if=\"Number.isFinite(max)\"> / {{ max }}</template>\n </slot>\n </span>\n </span>\n\n <TagsInput.Control :class=\"['qk-tags-input__control', `qk-tags-input__control--${size}`]\">\n <TagsInput.Item\n v-for=\"(value, index) in tagsInput.value\"\n :key=\"`${value}-${index}`\"\n :index=\"index\"\n :value=\"value\"\n class=\"qk-tags-input__item\"\n >\n <TagsInput.ItemContext v-slot=\"item\">\n <TagsInput.ItemPreview class=\"qk-tags-input__item-preview\">\n <slot\n name=\"item\"\n :value=\"value\"\n :index=\"index\"\n :editing=\"item.editing\"\n :highlighted=\"item.highlighted\"\n :remove=\"() => { if (!disabled && !readOnly) tagsInput.setValue(tagsInput.value.filter((_, itemIndex) => itemIndex !== index)); }\"\n >\n <TagsInput.ItemText class=\"qk-tags-input__item-text\">{{ value }}</TagsInput.ItemText>\n <TagsInput.ItemDeleteTrigger v-if=\"!readOnly\" class=\"qk-tags-input__delete\">\n <QuireIcon name=\"close\" :size=\"12\" />\n </TagsInput.ItemDeleteTrigger>\n </slot>\n </TagsInput.ItemPreview>\n <TagsInput.ItemInput class=\"qk-tags-input__item-input\" />\n </TagsInput.ItemContext>\n </TagsInput.Item>\n\n <TagsInput.Input\n class=\"qk-tags-input__input\"\n :placeholder=\"tagsInput.atMax ? text.atMax : placeholder ?? text.placeholder\"\n :aria-describedby=\"visibleMessage === undefined ? undefined : messageId\"\n @input.capture=\"guardTagsPasteLimit($event, tagsInput, props, handleValueInvalid)\"\n />\n\n <TagsInput.ClearTrigger\n v-if=\"clearable && tagsInput.count > 0 && !readOnly\"\n class=\"qk-tags-input__clear\"\n >\n <QuireIcon name=\"close\" :size=\"16\" />\n </TagsInput.ClearTrigger>\n </TagsInput.Control>\n <TagsInput.HiddenInput />\n\n <p\n v-if=\"visibleMessage !== undefined\"\n :id=\"messageId\"\n :class=\"['qk-tags-input__message', effectiveInvalid && 'qk-tags-input__message--error']\"\n :role=\"effectiveInvalid ? 'alert' : undefined\"\n >\n <slot name=\"message\" :invalid=\"effectiveInvalid\">{{ visibleMessage }}</slot>\n </p>\n </TagsInput.Context>\n </TagsInput.Root>\n</template>\n","import type { ComputedRef, InjectionKey, ShallowRef } from \"vue\";\nimport type { QuireKitToolbarOrientation } from \"../../components/toolbar/types\";\n\n/** One mounted toolbar control registered with its nearest root. */\nexport interface QuireKitToolbarItemRegistration {\n /** Stable control identity used by the roving-focus model. */\n readonly id: string;\n /** Mounted native button used for DOM order and imperative focus. */\n readonly element: Readonly<ShallowRef<HTMLButtonElement | null>>;\n /** Returns the current disabled state without duplicating child state. */\n readonly isDisabled: () => boolean;\n}\n\n/** Private coordination contract shared by one Toolbar root and its controls. */\nexport interface QuireKitToolbarContext {\n /** Current layout and keyboard-navigation direction. */\n readonly orientation: ComputedRef<QuireKitToolbarOrientation>;\n /** Registers one mounted control with this toolbar. */\n readonly registerItem: (item: QuireKitToolbarItemRegistration) => void;\n /** Removes one unmounted control from this toolbar. */\n readonly unregisterItem: (id: string) => void;\n /** Reconciles the current Tab stop after a disabled-state change. */\n readonly reconcileTabStop: () => void;\n /** Returns the native tabIndex owned by one control. */\n readonly tabIndexFor: (id: string) => 0 | -1;\n /** Makes one pointer- or keyboard-focused control the current Tab stop. */\n readonly setCurrentItem: (id: string) => void;\n /** Applies an owned navigation key and focuses the resolved control. */\n readonly moveFocus: (id: string, key: string) => boolean;\n}\n\n/** Typed Vue injection key for one Toolbar coordination scope. */\nexport const toolbarContextKey = Symbol(\n \"QuireKitToolbarContext\"\n) as InjectionKey<QuireKitToolbarContext>;\n\n/** Inherited availability for a Split Button's custom ColorPicker disclosure. */\nexport const toolbarSplitDisclosureDisabledKey = Symbol(\n \"QuireKitToolbarSplitDisclosureDisabled\"\n) as InjectionKey<ComputedRef<boolean>>;\n\n/** Width model chosen by the nearest Toolbar root. */\nexport const toolbarSizingKey = Symbol(\n \"QuireKitToolbarSizing\"\n) as InjectionKey<ComputedRef<\"natural\" | \"units\">>;\n\n/** Touch presentation inherited by every built-in control, including Tooltip and overflow. */\nexport const toolbarMobileKey = Symbol(\"ToolbarMobile\") as InjectionKey<ComputedRef<boolean>>;\n\n/** A mobile vertical command surface supplies visible names without changing entry identity. */\nexport const toolbarLabelsKey = Symbol(\"ToolbarLabels\") as InjectionKey<ComputedRef<boolean>>;\n","<script setup lang=\"ts\">\nimport { inject } from \"vue\";\nimport { toolbarContextKey } from \"./context\";\n\n/** Public properties for one semantic Toolbar group. */\ninterface Props {\n /** Accessible group name when several actions share one task. */\n readonly label?: string;\n}\n\n/** Public slots for one semantic Toolbar group. */\ninterface Slots {\n /** Related Toolbar actions rendered in DOM order. */\n readonly default: () => unknown;\n}\n\nconst { label } = defineProps<Props>();\ndefineSlots<Slots>();\nconst context = inject(toolbarContextKey);\nif (context === undefined) {\n throw new Error(\"Toolbar groups must be rendered inside QuireKit Toolbar\");\n}\n</script>\n\n<template>\n <div\n role=\"group\"\n :aria-label=\"label\"\n :class=\"[\n 'qk-toolbar__group',\n `qk-toolbar__group--${context.orientation.value}`\n ]\"\n >\n <slot />\n </div>\n</template>\n","<script setup lang=\"ts\">\nimport { computed, inject } from \"vue\";\nimport { toolbarContextKey } from \"./context\";\n\nconst context = inject(toolbarContextKey);\nif (context === undefined) {\n throw new Error(\"Toolbar separators must be rendered inside QuireKit Toolbar\");\n}\nconst orientation = computed(() => (\n context.orientation.value === \"horizontal\" ? \"vertical\" : \"horizontal\"\n));\n</script>\n\n<template>\n <span\n role=\"separator\"\n :aria-orientation=\"orientation\"\n :class=\"['qk-toolbar__separator', `qk-toolbar__separator--${orientation}`]\"\n />\n</template>\n","<script setup lang=\"ts\">\nimport { inject } from \"vue\";\nimport { toolbarMobileKey } from \"../context\";\nimport QuireTooltipRoot from \"../../tooltip/root.vue\";\nimport QuireTooltipTrigger from \"../../tooltip/trigger.vue\";\nimport QuireTooltipContent from \"../../tooltip/content.vue\";\n\n/** Shared presentation for every Toolbar target; the Tooltip machine owns its lifecycle. */\ninterface Props {\n /** Preserve the owning control’s DOM identity across asChild composition. */\n readonly triggerId?: string | undefined;\n /** Accessible target name, also the default explanation. */\n readonly label: string;\n /** Override the label, or disable a tooltip owned by an enclosing compound control. */\n readonly tooltip?: string | false | undefined;\n /** Explanation displayed while the command is unavailable. */\n readonly disabledReason?: string | undefined;\n /** Current command availability, independent of tooltip availability. */\n readonly subjectDisabled?: boolean;\n /** Suppress the explanation while the target's interactive popup is open. */\n readonly suppressed?: boolean;\n}\nwithDefaults(defineProps<Props>(), { tooltip: undefined });\nconst mobile = inject(toolbarMobileKey);\ndefineSlots<{\n /** Single native control; no extra layout wrapper or keyboard stop is created. */\n default: () => unknown;\n /** Optional full public TooltipContent for advanced compound consumers. */\n content?: () => unknown;\n}>();\n</script>\n\n<template>\n <QuireTooltipRoot :trigger-id=\"triggerId\" :disabled=\"mobile || suppressed || tooltip === false\" placement=\"bottom\">\n <QuireTooltipTrigger as-child><slot /></QuireTooltipTrigger>\n <slot name=\"content\">\n <QuireTooltipContent v-bind=\"{ ...(tooltip === false ? {} : { content: tooltip ?? label }),\n ...(disabledReason === undefined ? {} : { disabledReason }) }\" :subject-disabled=\"subjectDisabled ?? false\" />\n </slot>\n </QuireTooltipRoot>\n</template>\n","import {\n computed,\n inject,\n nextTick,\n onBeforeUnmount,\n onMounted,\n shallowRef,\n useId,\n watch\n} from \"vue\";\nimport type { QuireKitToolbarItemBindings } from \"./items/types\";\nimport { toolbarContextKey } from \"./context\";\n\n/**\n * Registers one toolbar control and exposes its roving-focus bindings.\n *\n * @param isDisabled - Returns the control's current disabled state.\n * @returns Stable bindings for the native button rendered by the caller.\n */\nexport function useToolbarItem(\n isDisabled: () => boolean\n): QuireKitToolbarItemBindings {\n const context = inject(toolbarContextKey);\n if (context === undefined) {\n throw new Error(\"Toolbar controls must be rendered inside QuireKit Toolbar\");\n }\n const resolvedContext = context;\n const id = useId();\n const element = shallowRef<HTMLButtonElement | null>(null);\n const tabIndex = computed(() => resolvedContext.tabIndexFor(id));\n\n /** Makes this control the current Tab stop after native focus. */\n function handleFocus(): void {\n resolvedContext.setCurrentItem(id);\n }\n\n onMounted(() => {\n resolvedContext.registerItem({ id, element, isDisabled });\n });\n onBeforeUnmount(() => {\n resolvedContext.unregisterItem(id);\n });\n watch(isDisabled, () => {\n void nextTick(resolvedContext.reconcileTabStop);\n });\n\n return Object.freeze({ id, element, tabIndex, handleFocus });\n}\n","<script setup lang=\"ts\">\nimport ToolbarTooltip from \"./presentation/tooltip.vue\";\nimport type { ButtonHTMLAttributes } from \"vue\";\nimport { useToolbarItem } from \"./use-toolbar-item\";\n\n/** Public properties for one instant Toolbar icon action. */\ninterface Props {\n /** Tooltip explanation; defaults to the accessible label. */\n readonly tooltip?: string | false;\n /** Reason displayed while this control is unavailable. */\n readonly disabledReason?: string;\n /** Optional visible text beside the icon. */\n readonly text?: string;\n /** 动作的可访问名称,图标不会替代此名称。 */\n readonly label: string;\n /** Native button submission behavior. */\n readonly type?: ButtonHTMLAttributes[\"type\"];\n /** Whether activation and keyboard focus are unavailable. */\n readonly disabled?: boolean;\n /** Optional description element for a disabled reason or tooltip detail. */\n readonly describedBy?: string;\n}\n\n/** Public events emitted by one instant Toolbar action. */\ninterface Emits {\n /** Emitted after an enabled pointer or keyboard activation. */\n readonly activate: [event: MouseEvent];\n}\n\n/** Public slots for one instant Toolbar action. */\ninterface Slots {\n /** 图标内容,通常使用 QuireIcon。 */\n readonly default?: () => unknown;\n}\n\nconst {\n label,\n text,\n type = \"button\",\n disabled = false,\n describedBy,\n tooltip = undefined,\n disabledReason\n} = defineProps<Props>();\nconst emit = defineEmits<Emits>();\ndefineSlots<Slots>();\ndefineOptions({ inheritAttrs: false });\nconst item = useToolbarItem(() => disabled);\n\n/**\n * Projects native activation through the public intent event.\n *\n * @param event - Native click event generated by pointer, Enter, or Space.\n */\nfunction activate(event: MouseEvent): void {\n if (disabled) {\n event.preventDefault();\n return;\n }\n emit(\"activate\", event);\n}\n</script>\n\n<template>\n <ToolbarTooltip :trigger-id=\"typeof $attrs.id === 'string' ? $attrs.id : item.id\" :label=\"label\" :tooltip=\"tooltip\" :disabled-reason=\"disabledReason\" :subject-disabled=\"disabled\" >\n <button\n :id=\"item.id\"\n v-bind=\"$attrs\"\n :title=\"undefined\"\n :ref=\"(element) => { item.element.value = element as HTMLButtonElement | null }\"\n :type=\"type\"\n :class=\"['qk-toolbar__item', text === undefined && 'qk-toolbar__icon-button']\"\n :aria-label=\"label\"\n :aria-describedby=\"describedBy\"\n :aria-disabled=\"disabled ? 'true' : undefined\"\n :tabindex=\"item.tabIndex.value\"\n :data-qk-toolbar-item=\"item.id\"\n data-kind=\"action\"\n @focus=\"item.handleFocus\"\n @click=\"activate\"\n >\n <span v-if=\"$slots.default\" class=\"qk-toolbar__icon\" aria-hidden=\"true\"><slot /></span>\n <span v-if=\"text !== undefined\" class=\"qk-toolbar__label\">{{ text }}</span>\n </button>\n </ToolbarTooltip>\n</template>\n","<script setup lang=\"ts\">\nimport ToolbarTooltip from \"./presentation/tooltip.vue\";\nimport type { ButtonHTMLAttributes } from \"vue\";\nimport type { QuireKitToolbarToggleState } from \"../../components/toolbar/types\";\nimport { useToolbarItem } from \"./use-toolbar-item\";\n\n/** Public properties for one Toolbar toggle action. */\ninterface Props {\n /** Tooltip explanation; defaults to the accessible label. */\n readonly tooltip?: string | false;\n /** Reason displayed while this control is unavailable. */\n readonly disabledReason?: string;\n /** Optional visible text beside the icon. */\n readonly text?: string;\n /** 开关的可访问名称,图标不会替代此名称。 */\n readonly label: string;\n /** Native button submission behavior. */\n readonly type?: ButtonHTMLAttributes[\"type\"];\n /** Whether activation and keyboard focus are unavailable. */\n readonly disabled?: boolean;\n /** Optional description element for a disabled reason or tooltip detail. */\n readonly describedBy?: string;\n}\n\n/** Public events emitted by one Toolbar toggle. */\ninterface Emits {\n /** Emitted with the next binary state after enabled activation. */\n readonly activate: [pressed: boolean, event: MouseEvent];\n}\n\n/** Public slots for one Toolbar toggle. */\ninterface Slots {\n /** 图标内容,通常使用 QuireIcon。 */\n readonly default?: () => unknown;\n}\n\nconst {\n label,\n text,\n type = \"button\",\n disabled = false,\n describedBy,\n tooltip = undefined,\n disabledReason\n} = defineProps<Props>();\nconst emit = defineEmits<Emits>();\ndefineSlots<Slots>();\ndefineOptions({ inheritAttrs: false });\nconst pressed = defineModel<QuireKitToolbarToggleState>({ default: false });\nconst item = useToolbarItem(() => disabled);\n\n/** @param event - Native activation that flips false or mixed to on, and on to off. */\nfunction activate(event: MouseEvent): void {\n if (disabled) {\n event.preventDefault();\n return;\n }\n const next = pressed.value !== true;\n pressed.value = next;\n emit(\"activate\", next, event);\n}\n</script>\n\n<template>\n <ToolbarTooltip :trigger-id=\"typeof $attrs.id === 'string' ? $attrs.id : item.id\" :label=\"label\" :tooltip=\"tooltip\" :disabled-reason=\"disabledReason\" :subject-disabled=\"disabled\" >\n <button\n :id=\"item.id\"\n v-bind=\"$attrs\"\n :title=\"undefined\"\n :ref=\"(element) => { item.element.value = element as HTMLButtonElement | null }\"\n :type=\"type\"\n :class=\"['qk-toolbar__item', text === undefined && 'qk-toolbar__icon-button']\"\n :aria-label=\"label\"\n :aria-describedby=\"describedBy\"\n :aria-pressed=\"pressed\"\n :aria-disabled=\"disabled ? 'true' : undefined\"\n :tabindex=\"item.tabIndex.value\"\n :data-qk-toolbar-item=\"item.id\"\n :data-state=\"pressed === false ? 'off' : 'on'\"\n :data-mixed=\"pressed === 'mixed' ? '' : undefined\"\n data-kind=\"toggle\"\n @focus=\"item.handleFocus\"\n @click=\"activate\"\n >\n <span v-if=\"$slots.default\" class=\"qk-toolbar__icon\" aria-hidden=\"true\"><slot /></span>\n <span v-if=\"text !== undefined\" class=\"qk-toolbar__label\">{{ text }}</span>\n </button>\n </ToolbarTooltip>\n</template>\n","<script setup lang=\"ts\">\nimport ToolbarTooltip from \"./presentation/tooltip.vue\";\nimport type { ButtonHTMLAttributes } from \"vue\";\nimport type { QuireKitToolbarPopup } from \"../../components/toolbar/types\";\nimport QuireIcon from \"../icon/icon.vue\";\nimport { quireKitEditorIconData } from \"../../components/icon/catalog\";\nimport { useToolbarItem } from \"./use-toolbar-item\";\n\n/** Public properties for one text-value Toolbar selector. */\ninterface Props {\n /** False delegates native click state to an enclosing Menu or Popover trigger. */\n readonly toggleOnClick?: boolean;\n /** Tooltip explanation; defaults to the accessible label. */\n readonly tooltip?: string | false;\n /** Reason displayed while this control is unavailable. */\n readonly disabledReason?: string;\n /** Accessible action name. */\n readonly label: string;\n /** Current visible value. */\n readonly text: string;\n /** 展开的浮层类型。 */\n readonly popup?: QuireKitToolbarPopup;\n /** DOM id of the controlled popup when available. */\n readonly controls?: string;\n /** Native button submission behavior. */\n readonly type?: ButtonHTMLAttributes[\"type\"];\n /** Whether activation and keyboard focus are unavailable. */\n readonly disabled?: boolean;\n /** Optional description element for a disabled reason or tooltip detail. */\n readonly describedBy?: string;\n}\n\n/** Public events emitted by one Toolbar selector. */\ninterface Emits {\n /** Emitted with the requested next open state after activation. */\n readonly activate: [expanded: boolean, event: MouseEvent | KeyboardEvent];\n}\n\n/** Public slots for one Toolbar selector. */\ninterface Slots {\n /** Optional leading icon component, normally QuireIcon. */\n readonly default?: () => unknown;\n /** 自定义展开图标。 */\n readonly indicator?: () => unknown;\n}\n\nconst {\n label,\n toggleOnClick = true,\n text,\n popup = \"menu\",\n controls,\n type = \"button\",\n disabled = false,\n describedBy,\n tooltip = undefined,\n disabledReason\n} = defineProps<Props>();\nconst emit = defineEmits<Emits>();\ndefineSlots<Slots>();\ndefineOptions({ inheritAttrs: false });\nconst expanded = defineModel<boolean>(\"expanded\", { default: false });\nconst item = useToolbarItem(() => disabled);\n\n/** @param event - Native activation requesting the opposite Menu-owned disclosure state. */\nfunction activate(event: MouseEvent): void {\n if (disabled) {\n event.preventDefault();\n return;\n }\n if (!toggleOnClick) return;\n const next = !expanded.value;\n expanded.value = next;\n emit(\"activate\", next, event);\n}\n/** @param event - A popup opening key; an enclosing Menu may already have handled it. */\nfunction handleKeydown(event: KeyboardEvent): void {\n if (event.defaultPrevented || event.key !== \"ArrowDown\" || disabled) return;\n event.preventDefault();\n if (expanded.value) return;\n expanded.value = true;\n emit(\"activate\", true, event);\n}\n/** @param event - Block unavailable commands before any enclosing machine sees their click. */\nfunction guardDisabledActivation(event: MouseEvent): void {\n if (!disabled) return;\n event.preventDefault();\n event.stopImmediatePropagation();\n}\n</script>\n\n<template>\n <ToolbarTooltip :trigger-id=\"typeof $attrs.id === 'string' ? $attrs.id : item.id\" :label=\"label\" :tooltip=\"tooltip\" :disabled-reason=\"disabledReason\" :subject-disabled=\"disabled\" :suppressed=\"expanded\">\n <button\n :id=\"item.id\"\n v-bind=\"$attrs\"\n :title=\"undefined\"\n :ref=\"(element) => { item.element.value = element as HTMLButtonElement | null }\"\n :type=\"type\"\n class=\"qk-toolbar__item qk-toolbar__disclosure min-w-0\"\n :aria-label=\"label\"\n :aria-describedby=\"describedBy\"\n :aria-controls=\"controls ?? (typeof $attrs['aria-controls'] === 'string' ? $attrs['aria-controls'] : undefined)\"\n :aria-expanded=\"expanded\"\n :aria-haspopup=\"popup\"\n :aria-disabled=\"disabled ? 'true' : undefined\"\n :tabindex=\"item.tabIndex.value\"\n :data-qk-toolbar-item=\"item.id\"\n :data-state=\"expanded ? 'open' : 'closed'\"\n data-kind=\"selector\"\n @focus=\"item.handleFocus\"\n @click.capture=\"guardDisabledActivation\"\n @click=\"activate\"\n @keydown=\"handleKeydown\"\n >\n <span v-if=\"$slots.default\" class=\"qk-toolbar__icon\" aria-hidden=\"true\">\n <slot />\n </span>\n <span class=\"qk-toolbar__label\">{{ text }}</span>\n <span class=\"qk-toolbar__indicator\" aria-hidden=\"true\">\n <slot name=\"indicator\">\n <QuireIcon :data=\"quireKitEditorIconData.chevronDown\" />\n </slot>\n </span>\n </button>\n </ToolbarTooltip>\n</template>\n","<script setup lang=\"ts\">\nimport ToolbarTooltip from \"./presentation/tooltip.vue\";\nimport QuireIcon from \"../icon/icon.vue\";\nimport { quireKitEditorIconData } from \"../../components/icon/catalog\";\nimport type { ButtonHTMLAttributes } from \"vue\";\nimport type { QuireKitToolbarPopup } from \"../../components/toolbar/types\";\nimport { useToolbarItem } from \"./use-toolbar-item\";\n\n/** Public properties for one Toolbar disclosure button. */\ninterface Props {\n /** False delegates native click state to an enclosing Menu or Popover trigger. */\n readonly toggleOnClick?: boolean;\n /** Tooltip explanation; defaults to the accessible label. */\n readonly tooltip?: string | false;\n /** Reason displayed while this control is unavailable. */\n readonly disabledReason?: string;\n /** Show a compact indicator beside the icon or visible label. */\n readonly indicator?: boolean;\n /** Accessible action name. */\n readonly label: string;\n /** Popup type; false keeps persistent-panel semantics and its Tooltip while expanded. */\n readonly popup?: QuireKitToolbarPopup | false;\n /** DOM id of the controlled popup when available. */\n readonly controls?: string;\n /** Optional visible action label rendered beside the icon. */\n readonly text?: string;\n /** Native button submission behavior. */\n readonly type?: ButtonHTMLAttributes[\"type\"];\n /** Whether activation and keyboard focus are unavailable. */\n readonly disabled?: boolean;\n /** Optional description element for a disabled reason or tooltip detail. */\n readonly describedBy?: string;\n}\n\n/** Public events emitted by one Toolbar disclosure. */\ninterface Emits {\n /** Emitted with the requested next open state after activation. */\n readonly activate: [expanded: boolean, event: MouseEvent | KeyboardEvent];\n}\n\n/** Public slots for one Toolbar disclosure. */\ninterface Slots {\n /** Leading icon component, normally QuireIcon. */\n readonly default: () => unknown;\n /** Disclosure indicator component, normally a directional QuireIcon. */\n readonly indicator?: () => unknown;\n}\n\nconst {\n label,\n toggleOnClick = true,\n popup = \"menu\",\n controls,\n text,\n type = \"button\",\n disabled = false,\n describedBy,\n tooltip = undefined,\n disabledReason,\n indicator = false\n} = defineProps<Props>();\nconst emit = defineEmits<Emits>();\ndefineSlots<Slots>();\ndefineOptions({ inheritAttrs: false });\nconst expanded = defineModel<boolean>(\"expanded\", { default: false });\nconst item = useToolbarItem(() => disabled);\n\n/** @param event - Native activation requesting the opposite disclosure state. */\nfunction activate(event: MouseEvent): void {\n if (disabled) {\n event.preventDefault();\n return;\n }\n if (!toggleOnClick) return;\n const next = !expanded.value;\n expanded.value = next;\n emit(\"activate\", next, event);\n}\n/** @param event - ArrowDown requests opening a popup; navigation remains with the popup owner. */\nfunction handleKeydown(event: KeyboardEvent): void {\n if (event.defaultPrevented || event.key !== \"ArrowDown\" || popup === false || disabled) return;\n event.preventDefault();\n if (expanded.value) return;\n expanded.value = true;\n emit(\"activate\", true, event);\n}\n/** @param event - Block unavailable commands before any enclosing machine sees their click. */\nfunction guardDisabledActivation(event: MouseEvent): void {\n if (!disabled) return;\n event.preventDefault();\n event.stopImmediatePropagation();\n}\n</script>\n\n<template>\n <ToolbarTooltip :trigger-id=\"typeof $attrs.id === 'string' ? $attrs.id : item.id\" :label=\"label\" :tooltip=\"tooltip\" :disabled-reason=\"disabledReason\" :subject-disabled=\"disabled\" :suppressed=\"expanded && popup !== false\">\n <button\n :id=\"item.id\"\n v-bind=\"$attrs\"\n :title=\"undefined\"\n :ref=\"(element) => { item.element.value = element as HTMLButtonElement | null }\"\n :type=\"type\"\n :class=\"[\n 'qk-toolbar__item',\n text === undefined && !indicator && !$slots.indicator && 'qk-toolbar__icon-button',\n text !== undefined && 'qk-toolbar__disclosure'\n ]\"\n :aria-label=\"label\"\n :aria-describedby=\"describedBy\"\n :aria-controls=\"controls ?? (typeof $attrs['aria-controls'] === 'string' ? $attrs['aria-controls'] : undefined)\"\n :aria-expanded=\"expanded\"\n :aria-haspopup=\"popup || undefined\"\n :aria-disabled=\"disabled ? 'true' : undefined\"\n :tabindex=\"item.tabIndex.value\"\n :data-qk-toolbar-item=\"item.id\"\n :data-state=\"expanded ? 'open' : 'closed'\"\n data-kind=\"disclosure\"\n @focus=\"item.handleFocus\"\n @click.capture=\"guardDisabledActivation\"\n @click=\"activate\"\n @keydown=\"handleKeydown\"\n >\n <span v-if=\"$slots.default\" class=\"qk-toolbar__icon\" aria-hidden=\"true\"><slot /></span>\n <span v-if=\"text !== undefined\" class=\"qk-toolbar__label\">{{ text }}</span>\n <span\n v-if=\"$slots.indicator || indicator\"\n class=\"qk-toolbar__indicator\"\n aria-hidden=\"true\"\n >\n <slot name=\"indicator\"><QuireIcon :data=\"quireKitEditorIconData.chevronDown\" /></slot>\n </span>\n </button>\n </ToolbarTooltip>\n</template>\n","<script setup lang=\"ts\">\nimport { computed, provide } from \"vue\";\nimport type { ButtonHTMLAttributes } from \"vue\";\nimport type {\n QuireKitToolbarPopup,\n QuireKitToolbarSplitOverlay,\n QuireKitToolbarToggleState\n} from \"../../components/toolbar/types\";\nimport QuireIcon from \"../icon/icon.vue\";\nimport { quireKitEditorIconData } from \"../../components/icon/catalog\";\nimport QuireMenu from \"../menu/menu.vue\";\nimport QuirePopoverRoot from \"../popover/root.vue\";\nimport QuirePopoverTrigger from \"../popover/trigger.vue\";\nimport QuireToolbarDisclosure from \"./toolbar-disclosure.vue\";\nimport { useToolbarItem } from \"./use-toolbar-item\";\nimport { toolbarSplitDisclosureDisabledKey } from \"./context\";\nimport ToolbarTooltip from \"./presentation/tooltip.vue\";\n\n/** Public properties for one two-target Toolbar Split Button. */\ninterface Props {\n /** Primary Tooltip explanation; defaults to actionLabel. */\n readonly actionTooltip?: string | false;\n /** Disclosure Tooltip explanation; defaults to disclosureLabel. */\n readonly disclosureTooltip?: string | false;\n /** Explanation shown while either target is unavailable. */\n readonly disabledReason?: string;\n /** Visible primary label beside the icon; omitted for an icon-only square target. */\n readonly text?: string;\n /** 整组按钮的可访问名称。 */\n readonly label: string;\n /** 主按钮的可访问名称。 */\n readonly actionLabel: string;\n /** Optional primary toggle state; omission preserves ordinary action semantics. */\n readonly pressed?: QuireKitToolbarToggleState;\n /** 展开按钮的可访问名称。 */\n readonly disclosureLabel: string;\n /** 右侧按钮展开的浮层类型。 */\n readonly popup?: QuireKitToolbarPopup;\n /** 右侧按钮组合的浮层类型。 */\n readonly overlay?: QuireKitToolbarSplitOverlay;\n /** DOM id of the controlled popup when available. */\n readonly controls?: string;\n /** 主按钮的原生表单提交类型。 */\n readonly type?: ButtonHTMLAttributes[\"type\"];\n /** 是否禁用两侧按钮。 */\n readonly disabled?: boolean;\n /** 是否只禁用主按钮。 */\n readonly actionDisabled?: boolean;\n /** 是否只禁用展开按钮。 */\n readonly disclosureDisabled?: boolean;\n /** 关联主按钮说明或禁用原因的元素 id。 */\n readonly actionDescribedBy?: string;\n /** 关联展开按钮说明或禁用原因的元素 id。 */\n readonly disclosureDescribedBy?: string;\n}\n\n/** Public Split Button activation events. */\ninterface Emits {\n /** 执行主按钮时触发。 */\n readonly action: [event: MouseEvent];\n /** 点击展开按钮时触发,参数为请求的打开状态。 */\n readonly disclosure: [expanded: boolean];\n}\n\n/** Public Split Button slots. */\ninterface Slots {\n /** 主按钮内容,通常为图标或带文字的图标。 */\n readonly default: () => unknown;\n /** Optional QuireTooltipContent for the primary target, including host portal/theme attributes. */\n readonly actionTooltip?: () => unknown;\n /**\n * 自定义展开按钮,例如用于组合颜色选择器的 QuireToolbarColorPickerDisclosure。\n */\n readonly disclosure?: () => unknown;\n /** 自定义展开图标。 */\n readonly indicator?: () => unknown;\n /** 菜单条目或完整的 QuirePopoverContent。 */\n readonly overlay?: () => unknown;\n}\n\nconst {\n label,\n actionLabel,\n pressed = undefined,\n disclosureLabel,\n popup = \"menu\",\n overlay = \"custom\",\n controls,\n type = \"button\",\n disabled = false,\n actionDisabled = false,\n disclosureDisabled = false,\n actionDescribedBy,\n disclosureDescribedBy,\n actionTooltip = undefined,\n disclosureTooltip = undefined,\n disabledReason,\n text\n} = defineProps<Props>();\nconst emit = defineEmits<Emits>();\ndefineSlots<Slots>();\nconst expanded = defineModel<boolean>(\"expanded\", { default: false });\nconst actionUnavailable = () => disabled || actionDisabled;\nconst disclosureUnavailable = () => disabled || disclosureDisabled;\nprovide(toolbarSplitDisclosureDisabledKey, computed(disclosureUnavailable));\nconst actionItem = useToolbarItem(actionUnavailable);\nconst optionalDisclosureBindings = computed(() => ({\n ...(disclosureTooltip === undefined ? {} : { tooltip: disclosureTooltip }),\n ...(disabledReason === undefined ? {} : { disabledReason }),\n ...(controls === undefined ? {} : { controls }),\n ...(disclosureDescribedBy === undefined\n ? {}\n : { describedBy: disclosureDescribedBy })\n}));\n\n/**\n * Routes native activation only to the immediate action owner.\n *\n * @param event - Pointer, Enter, or Space activation event.\n */\nfunction activateAction(event: MouseEvent): void {\n if (actionUnavailable()) {\n event.preventDefault();\n return;\n }\n emit(\"action\", event);\n}\n\n/**\n * Projects the disclosure target's requested state without owning overlay behavior.\n *\n * @param next - Next open state requested by the disclosure target.\n */\nfunction handleDisclosure(next: boolean): void {\n emit(\"disclosure\", next);\n}\n</script>\n\n<template>\n <div\n role=\"group\"\n :aria-label=\"label\"\n :data-state=\"expanded ? 'open' : 'closed'\"\n class=\"qk-toolbar__split\"\n data-kind=\"split-button\"\n >\n <ToolbarTooltip :trigger-id=\"actionItem.id\" :label=\"actionLabel\" :tooltip=\"actionTooltip\" :disabled-reason=\"disabledReason\"\n :subject-disabled=\"actionUnavailable()\" :suppressed=\"expanded\">\n <button\n :ref=\"(element) => { actionItem.element.value = element as HTMLButtonElement | null }\"\n :type=\"type\"\n :class=\"['qk-toolbar__item', 'qk-toolbar__split-target', text === undefined && 'qk-toolbar__split-target--icon']\"\n :aria-label=\"actionLabel\"\n :aria-pressed=\"pressed\"\n :data-state=\"pressed === true || pressed === 'mixed' ? 'on' : 'off'\"\n :data-mixed=\"pressed === 'mixed' ? '' : undefined\"\n :aria-describedby=\"actionDescribedBy\"\n :aria-disabled=\"actionUnavailable() ? 'true' : undefined\"\n :tabindex=\"actionItem.tabIndex.value\"\n :data-qk-toolbar-item=\"actionItem.id\"\n data-part=\"action\"\n @focus=\"actionItem.handleFocus\"\n @click=\"activateAction\"\n >\n <span v-if=\"$slots.default\" class=\"qk-toolbar__icon\"><slot /></span>\n <span v-if=\"text !== undefined\" class=\"qk-toolbar__label\">{{ text }}</span>\n </button>\n <template v-if=\"$slots.actionTooltip\" #content><slot name=\"actionTooltip\" /></template>\n </ToolbarTooltip>\n <slot v-if=\"$slots.disclosure\" name=\"disclosure\" />\n <QuireMenu\n v-else-if=\"overlay === 'menu'\"\n v-model:open=\"expanded\"\n :aria-label=\"disclosureLabel\"\n >\n <template #trigger>\n <QuireToolbarDisclosure :toggle-on-click=\"false\"\n v-model:expanded=\"expanded\"\n class=\"qk-toolbar__split-disclosure\"\n :label=\"disclosureLabel\"\n popup=\"menu\"\n v-bind=\"optionalDisclosureBindings\"\n :disabled=\"disclosureUnavailable()\"\n @activate=\"handleDisclosure\"\n >\n <slot name=\"indicator\"><QuireIcon :data=\"quireKitEditorIconData.chevronDown\" /></slot>\n </QuireToolbarDisclosure>\n </template>\n <slot name=\"overlay\" />\n </QuireMenu>\n <QuirePopoverRoot\n v-else-if=\"overlay === 'popover'\"\n v-model:open=\"expanded\"\n >\n <QuirePopoverTrigger as-child>\n <QuireToolbarDisclosure :toggle-on-click=\"false\"\n v-model:expanded=\"expanded\"\n class=\"qk-toolbar__split-disclosure\"\n :label=\"disclosureLabel\"\n popup=\"dialog\"\n v-bind=\"optionalDisclosureBindings\"\n :disabled=\"disclosureUnavailable()\"\n @activate=\"handleDisclosure\"\n >\n <slot name=\"indicator\"><QuireIcon :data=\"quireKitEditorIconData.chevronDown\" /></slot>\n </QuireToolbarDisclosure>\n </QuirePopoverTrigger>\n <slot name=\"overlay\" />\n </QuirePopoverRoot>\n <QuireToolbarDisclosure\n v-else\n v-model:expanded=\"expanded\"\n class=\"qk-toolbar__split-disclosure\"\n :label=\"disclosureLabel\"\n :popup=\"popup\"\n v-bind=\"optionalDisclosureBindings\"\n :disabled=\"disclosureUnavailable()\"\n @activate=\"handleDisclosure\"\n >\n <slot name=\"indicator\"><QuireIcon :data=\"quireKitEditorIconData.chevronDown\" /></slot>\n </QuireToolbarDisclosure>\n </div>\n</template>\n","<script setup lang=\"ts\">\nimport type { QuireKitToolbarRendererScope, QuireKitToolbarRenderers } from \"./types\";\nimport QuirePopoverContent from \"../../popover/content.vue\";\ndefineProps<{\n /** Live entry state and execution bridge. */\n scope: QuireKitToolbarRendererScope;\n /** Named application popup bodies. */\n renderers: QuireKitToolbarRenderers;\n}>();\ndefineSlots<{\n /** Application fallback when no registered body is provided. */\n content?: (scope: QuireKitToolbarRendererScope) => unknown;\n}>();\n</script>\n<template>\n <QuirePopoverContent v-bind=\"{ ...scope.item.overlayProps?.contentAttributes,\n ...(scope.item.overlayProps?.portalTarget === undefined ? {} : { portalTarget: scope.item.overlayProps.portalTarget }) }\"\n :aria-label=\"scope.item.label\" :show-arrow=\"false\"\n :style=\"scope.item.contentPadding === 'none' ? { '--qk-popover-padding': '0px' } : undefined\">\n <template v-if=\"scope.expanded\">\n <component v-if=\"scope.item.contentRenderer && renderers[scope.item.contentRenderer]\"\n :is=\"renderers[scope.item.contentRenderer]\" :scope=\"scope\" />\n <slot v-else name=\"content\" v-bind=\"scope\" />\n </template>\n </QuirePopoverContent>\n</template>\n","import { computed, nextTick, onBeforeUnmount, ref, watch } from \"vue\";\nimport type { QuireKitToolbarEntry, QuireKitToolbarExecuteEvent, QuireKitToolbarOpenChangeEvent } from \"../../../components/toolbar/types\";\nimport type { QuireKitToolbarRendererScope } from \"./types\";\n\n/**\n * Owns local popup state and validates intents against the current entry.\n * @param entry - Current immutable entry and ancestry supplied by the host renderer.\n * @param execute - Accepted command intent sink.\n * @param openChange - Popup transition sink.\n * @returns Live bindings for built-in controls and custom renderers.\n */\nexport function useToolbarEntry(\n entry: () => { item: QuireKitToolbarEntry; path: readonly string[]; disabled: boolean; context: unknown },\n execute: (event: QuireKitToolbarExecuteEvent) => void,\n openChange: (event: QuireKitToolbarOpenChangeEvent) => void\n) {\n const localOpen = ref(entry().item.expanded ?? false);\n let pendingOpen: boolean | undefined;\n let mounted = true;\n onBeforeUnmount(() => { mounted = false; });\n const unavailable = computed(() => entry().disabled || !!entry().item.disabled || !!entry().item.hidden);\n const expanded = computed(() => !unavailable.value && !entry().item.disclosureDisabled && (entry().item.expanded ?? localOpen.value));\n /** @param next - Requested popup state. */\n function setExpanded(next: boolean): void {\n if (!mounted || (next && (unavailable.value || entry().item.disclosureDisabled))) return;\n if (next === pendingOpen || next === (entry().item.expanded ?? localOpen.value)) return;\n // Trigger and overlay may report the same click; publish one host intent per transition.\n pendingOpen = next;\n void nextTick(() => { pendingOpen = undefined; });\n localOpen.value = next;\n openChange({ item: entry().item, path: entry().path, expanded: next });\n }\n watch(() => entry().item.expanded, value => { if (value !== undefined) localOpen.value = value; });\n watch(() => unavailable.value || !!entry().item.disclosureDisabled, blocked => {\n if (blocked && (localOpen.value || entry().item.expanded)) setExpanded(false);\n });\n /**\n * Rechecks availability when a delayed/custom callback submits a command.\n * @param source - Originating interaction.\n * @param payload - Submitted parameters, defaulting to entry parameters.\n * @param value - Menu leaf identity, otherwise entry identity.\n * @param pressed - Requested toggle state.\n * @param nativeEvent - Original native activation for host focus restoration.\n */\n function dispatch(source: QuireKitToolbarExecuteEvent[\"source\"], payload: unknown = entry().item.payload, value = entry().item.value, pressed?: boolean, nativeEvent?: Event): void {\n if (!mounted || unavailable.value || (source === \"action\" && entry().item.actionDisabled)\n || (source === \"popup\" && (!expanded.value || entry().item.disclosureDisabled))) return;\n const { item, path } = entry();\n execute({ item, value, path: source === \"menu\" ? [...path, value] : path, source, payload,\n ...(pressed === undefined ? {} : { pressed }), ...(nativeEvent === undefined ? {} : { nativeEvent }) });\n }\n const scope = computed<QuireKitToolbarRendererScope>(() => ({\n ...entry(), disabled: unavailable.value, expanded: expanded.value, setExpanded,\n execute: (payload, nativeEvent) => dispatch(entry().item.kind === \"custom\" ? \"custom\" : \"popup\", payload, entry().item.value, undefined, nativeEvent)\n }));\n return { unavailable, expanded, setExpanded, dispatch, scope };\n}\n","<script setup lang=\"ts\">\nimport { computed, inject } from \"vue\";\nimport { toolbarLabelsKey } from \"../context\";\nimport type { QuireKitToolbarEntry, QuireKitToolbarExecuteEvent, QuireKitToolbarOpenChangeEvent } from \"../../../components/toolbar/types\";\nimport type { QuireKitToolbarRendererScope, QuireKitToolbarRenderers } from \"./types\";\nimport QuireIcon from \"../../icon/icon.vue\";\nimport QuireMenu from \"../../menu/menu.vue\";\nimport QuirePopoverRoot from \"../../popover/root.vue\";\nimport QuirePopoverTrigger from \"../../popover/trigger.vue\";\nimport QuireToolbarAction from \"../toolbar-action.vue\";\nimport QuireToolbarToggle from \"../toolbar-toggle.vue\";\nimport QuireToolbarSelector from \"../toolbar-selector.vue\";\nimport QuireToolbarDisclosure from \"../toolbar-disclosure.vue\";\nimport QuireToolbarSplitButton from \"../toolbar-split-button.vue\";\nimport PopupBody from \"./popup-body.vue\";\nimport { useToolbarEntry } from \"./use-entry\";\nimport { quireKitEditorIconData } from \"../../../components/icon/catalog\";\nconst props = defineProps<{\n /** Current entry. */\n item: QuireKitToolbarEntry;\n /** Full identity path. */\n path: readonly string[];\n /** Enclosing group availability. */\n disabled: boolean;\n /** Host context delivered unchanged. */\n context: unknown;\n /** Named application renderers. */\n renderers: QuireKitToolbarRenderers;\n}>();\ndefineSlots<{\n /** Custom toolbar control fallback. */\n item?: (scope: QuireKitToolbarRendererScope) => unknown;\n /** Custom popup body fallback. */\n content?: (scope: QuireKitToolbarRendererScope) => unknown;\n}>();\nconst emit = defineEmits<{\n /** Accepted command request. */\n execute: [event: QuireKitToolbarExecuteEvent];\n /** Popup state request. */\n openChange: [event: QuireKitToolbarOpenChangeEvent];\n}>();\nconst { unavailable, expanded, setExpanded, dispatch, scope } = useToolbarEntry(\n () => props, event => emit(\"execute\", event), event => emit(\"openChange\", event)\n);\nconst hasIcon = computed(() => !!(props.item.icon || props.item.iconData));\nconst showLabels = inject(toolbarLabelsKey);\nconst common = computed(() => ({\n ...props.item.attributes, label: props.item.label, disabled: unavailable.value,\n ...(props.item.tooltip === undefined ? {} : { tooltip: props.item.tooltip }),\n ...(props.item.disabledReason === undefined ? {} : { disabledReason: props.item.disabledReason }),\n ...(props.item.describedBy === undefined ? {} : { describedBy: props.item.describedBy })\n}));\nconst text = computed(() => props.item.text !== undefined || !hasIcon.value || showLabels?.value ? { text: props.item.text ?? props.item.label } : {});\nconst menuProps = computed(() => {\n const { contentAttributes, ...surface } = props.item.overlayProps ?? {};\n return { ...surface, ...contentAttributes };\n});\n</script>\n<template>\n <template v-if=\"item.kind === 'custom'\">\n <component v-if=\"item.renderer && renderers[item.renderer]\" :is=\"renderers[item.renderer]\" :scope=\"scope\" />\n <slot v-else name=\"item\" v-bind=\"scope\" />\n </template>\n <QuireMenu v-else-if=\"item.kind === 'menu'\" v-bind=\"menuProps\" :open=\"expanded\" @update:open=\"setExpanded($event === true)\"\n :aria-label=\"item.label\" :items=\"item.items ?? []\" @select=\"dispatch('menu', item.payload, $event)\">\n <template #trigger>\n <QuireToolbarDisclosure :toggle-on-click=\"false\" v-if=\"item.trigger === 'disclosure'\" v-bind=\"{ ...common, ...text }\" :indicator=\"item.indicator ?? true\"\n :expanded=\"expanded\" @update:expanded=\"setExpanded\">\n <template v-if=\"hasIcon\" #default><QuireIcon :name=\"item.icon\" :data=\"item.iconData\" :accent-color=\"item.iconAccentColor\" :empty=\"item.iconEmpty\" /></template>\n </QuireToolbarDisclosure>\n <QuireToolbarSelector :toggle-on-click=\"false\" v-else v-bind=\"common\" :text=\"item.text ?? item.label\" :expanded=\"expanded\" @update:expanded=\"setExpanded\">\n <template v-if=\"hasIcon\" #default><QuireIcon :name=\"item.icon\" :data=\"item.iconData\" :accent-color=\"item.iconAccentColor\" :empty=\"item.iconEmpty\" /></template>\n </QuireToolbarSelector>\n </template>\n </QuireMenu>\n <QuireToolbarSplitButton v-else-if=\"item.kind === 'split'\" :label=\"item.label\"\n v-bind=\"{ ...item.attributes, ...text, ...(item.pressed === undefined ? {} : { pressed: item.pressed }),\n ...(item.actionTooltip === undefined && item.tooltip === undefined ? {} : { actionTooltip: item.actionTooltip ?? item.tooltip }),\n ...(item.disclosureTooltip === undefined && item.tooltip === undefined ? {} : { disclosureTooltip: item.disclosureTooltip ?? item.tooltip }),\n ...(item.disabledReason === undefined ? {} : { disabledReason: item.disabledReason }) }\"\n :action-label=\"item.actionLabel ?? item.label\" :disclosure-label=\"item.disclosureLabel ?? item.label\"\n :disabled=\"unavailable\" :action-disabled=\"item.actionDisabled ?? false\" :disclosure-disabled=\"item.disclosureDisabled ?? false\"\n overlay=\"popover\" popup=\"dialog\" :expanded=\"expanded\" @update:expanded=\"setExpanded\" @action=\"dispatch('action', item.payload, item.value, undefined, $event)\">\n <template v-if=\"hasIcon\" #default><QuireIcon :name=\"item.icon\" :data=\"item.iconData\" :accent-color=\"item.iconAccentColor\" :empty=\"item.iconEmpty\" /></template>\n <template v-if=\"item.items !== undefined\" #disclosure>\n <QuireMenu v-bind=\"menuProps\" :open=\"expanded\" :aria-label=\"item.disclosureLabel ?? item.label\"\n :items=\"item.items\" @update:open=\"setExpanded($event === true)\" @select=\"dispatch('menu', item.payload, $event)\">\n <template #trigger>\n <QuireToolbarDisclosure :toggle-on-click=\"false\" class=\"qk-toolbar__split-disclosure\"\n v-bind=\"{ ...common, label: item.disclosureLabel ?? item.label, tooltip: item.disclosureTooltip ?? item.tooltip ?? item.disclosureLabel ?? item.label }\"\n popup=\"menu\" :expanded=\"expanded\" :disabled=\"unavailable || !!item.disclosureDisabled\" @update:expanded=\"setExpanded\">\n <QuireIcon :data=\"quireKitEditorIconData.chevronDown\" />\n </QuireToolbarDisclosure>\n </template>\n </QuireMenu>\n </template>\n <template #overlay><PopupBody :scope=\"scope\" :renderers=\"renderers\"><template v-if=\"$slots.content\" #content=\"body\"><slot name=\"content\" v-bind=\"body\" /></template></PopupBody></template>\n </QuireToolbarSplitButton>\n <QuireToolbarDisclosure v-else-if=\"item.kind === 'disclosure' && !item.contentRenderer && !$slots.content\"\n v-bind=\"{ ...common, ...text }\" :indicator=\"item.indicator ?? false\" :popup=\"item.popup ?? 'dialog'\" :expanded=\"expanded\" @update:expanded=\"setExpanded\" @activate=\"(_open, event) => dispatch('action', item.payload, item.value, undefined, event)\">\n <template v-if=\"hasIcon\" #default><QuireIcon :name=\"item.icon\" :data=\"item.iconData\" :accent-color=\"item.iconAccentColor\" :empty=\"item.iconEmpty\" /></template>\n </QuireToolbarDisclosure>\n <QuirePopoverRoot v-else-if=\"item.kind === 'selector' || item.kind === 'disclosure'\" :open=\"expanded\"\n :restore-focus=\"item.overlayProps?.restoreFocus ?? true\" @update:open=\"setExpanded\">\n <QuirePopoverTrigger as-child>\n <QuireToolbarSelector :toggle-on-click=\"false\" v-if=\"item.kind === 'selector'\" v-bind=\"common\" :text=\"item.text ?? item.label\"\n popup=\"dialog\" :expanded=\"expanded\" @update:expanded=\"setExpanded\" :disabled=\"unavailable || !!item.disclosureDisabled\">\n <template v-if=\"hasIcon\" #default><QuireIcon :name=\"item.icon\" :data=\"item.iconData\" :accent-color=\"item.iconAccentColor\" :empty=\"item.iconEmpty\" /></template>\n </QuireToolbarSelector>\n <QuireToolbarDisclosure :toggle-on-click=\"false\" v-else v-bind=\"{ ...common, ...text }\" :indicator=\"item.indicator ?? false\" :popup=\"item.popup ?? 'dialog'\" :expanded=\"expanded\" @update:expanded=\"setExpanded\"\n :disabled=\"unavailable || !!item.disclosureDisabled\">\n <template v-if=\"hasIcon\" #default><QuireIcon :name=\"item.icon\" :data=\"item.iconData\" :accent-color=\"item.iconAccentColor\" :empty=\"item.iconEmpty\" /></template>\n </QuireToolbarDisclosure>\n </QuirePopoverTrigger>\n <PopupBody :scope=\"scope\" :renderers=\"renderers\"><template v-if=\"$slots.content\" #content=\"body\"><slot name=\"content\" v-bind=\"body\" /></template></PopupBody>\n </QuirePopoverRoot>\n <!-- A model listener keeps Vue controlled; activate carries the original event and emits the sole intent. -->\n <QuireToolbarToggle v-else-if=\"item.kind === 'toggle'\" v-bind=\"{ ...common, ...text }\"\n :model-value=\"item.pressed ?? false\" @update:model-value=\"() => {}\"\n @activate=\"(pressed, event) => dispatch('toggle', item.payload, item.value, pressed, event)\">\n <template v-if=\"hasIcon\" #default><QuireIcon :name=\"item.icon\" :data=\"item.iconData\" :accent-color=\"item.iconAccentColor\" :empty=\"item.iconEmpty\" /></template>\n </QuireToolbarToggle>\n <QuireToolbarAction v-else v-bind=\"{ ...common, ...text }\" @activate=\"dispatch('action', item.payload, item.value, undefined, $event)\">\n <template v-if=\"hasIcon\" #default><QuireIcon :name=\"item.icon\" :data=\"item.iconData\" :accent-color=\"item.iconAccentColor\" :empty=\"item.iconEmpty\" /></template>\n </QuireToolbarAction>\n</template>\n","<script setup lang=\"ts\">\nimport type { QuireKitToolbarEntry, QuireKitToolbarExecuteEvent, QuireKitToolbarOpenChangeEvent } from \"../../../components/toolbar/types\";\nimport type { QuireKitToolbarRendererScope, QuireKitToolbarRenderers } from \"./types\";\nimport QuireToolbarGroup from \"../toolbar-group.vue\";\nimport QuireToolbarSeparator from \"../toolbar-separator.vue\";\nimport ToolbarControl from \"./control.vue\";\nimport { computed, inject } from \"vue\";\nimport { resolveQuireKitToolbarEntrySpan } from \"../../../components/toolbar/span\";\nimport { toolbarMobileKey, toolbarSizingKey } from \"../context\";\ndefineOptions({ name: \"ToolbarItems\" });\nwithDefaults(defineProps<{\n /** Ordered entries with stable sibling identities. */\n items: readonly QuireKitToolbarEntry[];\n /** Parent group ancestry. */\n path?: readonly string[];\n /** Inherited group availability. */\n disabled?: boolean;\n /** Host state or services. */\n context?: unknown;\n /** Named Vue renderers. */\n renderers: QuireKitToolbarRenderers;\n}>(), { path: () => [], disabled: false });\ndefineSlots<{\n /** Custom entry fallback. */\n item?: (scope: QuireKitToolbarRendererScope) => unknown;\n /** Custom popup body fallback. */\n content?: (scope: QuireKitToolbarRendererScope) => unknown;\n}>();\nconst emit = defineEmits<{\n /** Accepted command request. */\n execute: [event: QuireKitToolbarExecuteEvent];\n /** Popup state request. */\n openChange: [event: QuireKitToolbarOpenChangeEvent];\n}>();\nconst sizing = inject(toolbarSizingKey, computed(() => \"natural\" as const));\nconst mobile = inject(toolbarMobileKey, computed(() => false));\n/** @param item - Control entry. @returns Unit span, or null when the control keeps its natural width. */\nfunction spanOf(item: QuireKitToolbarEntry): number | null {\n const span = sizing.value === \"units\" || item.span !== undefined ? resolveQuireKitToolbarEntrySpan(item) : null;\n // Each split target needs its own touch unit; desktop keeps the compact disclosure.\n return mobile.value && item.kind === \"split\" && span !== null ? Math.max(2, span) : span;\n}\n</script>\n<template>\n <template v-for=\"item in items.filter(entry => !entry.hidden)\" :key=\"item.value\">\n <QuireToolbarSeparator v-if=\"item.kind === 'separator'\" />\n <QuireToolbarGroup v-else-if=\"item.kind === 'group'\" :label=\"item.label\">\n <ToolbarItems :items=\"item.children ?? []\" :path=\"[...path, item.value]\" :disabled=\"disabled || !!item.disabled\"\n :context=\"context\" :renderers=\"renderers\" @execute=\"emit('execute', $event)\" @open-change=\"emit('openChange', $event)\">\n <template v-if=\"$slots.item\" #item=\"scope\"><slot name=\"item\" v-bind=\"scope\" /></template>\n <template v-if=\"$slots.content\" #content=\"scope\"><slot name=\"content\" v-bind=\"scope\" /></template>\n </ToolbarItems>\n </QuireToolbarGroup>\n <div v-else-if=\"spanOf(item) !== null\" class=\"qk-toolbar__slot\" :style=\"{ '--qk-toolbar-span': String(spanOf(item)) }\">\n <ToolbarControl :item=\"item\" :path=\"[...path, item.value]\" :disabled=\"disabled\" :context=\"context\" :renderers=\"renderers\"\n @execute=\"emit('execute', $event)\" @open-change=\"emit('openChange', $event)\">\n <template v-if=\"$slots.item\" #item=\"scope\"><slot name=\"item\" v-bind=\"scope\" /></template>\n <template v-if=\"$slots.content\" #content=\"scope\"><slot name=\"content\" v-bind=\"scope\" /></template>\n </ToolbarControl>\n </div>\n <ToolbarControl v-else :item=\"item\" :path=\"[...path, item.value]\" :disabled=\"disabled\" :context=\"context\" :renderers=\"renderers\"\n @execute=\"emit('execute', $event)\" @open-change=\"emit('openChange', $event)\">\n <template v-if=\"$slots.item\" #item=\"scope\"><slot name=\"item\" v-bind=\"scope\" /></template>\n <template v-if=\"$slots.content\" #content=\"scope\"><slot name=\"content\" v-bind=\"scope\" /></template>\n </ToolbarControl>\n </template>\n</template>\n","import type { QuireKitToolbarEntry } from \"../../../components/toolbar/types\";\nimport type { ToolbarCollapseSlot, ToolbarCollapseSplit } from \"./types\";\n\n/**\n * Lists collapsible controls in display order; groups contribute their visible children.\n * @param items - Configured top-level entries.\n * @returns Controls with stable measurement keys.\n */\nexport function listToolbarCollapseSlots(items: readonly QuireKitToolbarEntry[]): readonly ToolbarCollapseSlot[] {\n const slots: ToolbarCollapseSlot[] = [];\n for (const entry of items) {\n if (entry.hidden) continue;\n if (entry.kind !== \"group\") {\n slots.push({ key: entry.value, entry });\n continue;\n }\n for (const child of entry.children ?? []) {\n if (!child.hidden) slots.push({ key: toolbarCollapseKey(entry, child), entry: child, group: entry });\n }\n }\n return slots;\n}\n\n/**\n * @param group - Owning top-level group.\n * @param child - Grouped control.\n * @returns Measurement key shared by the template and the layout.\n */\nexport function toolbarCollapseKey(group: QuireKitToolbarEntry, child: QuireKitToolbarEntry): string {\n return `${group.value}/${child.value}`;\n}\n\n/**\n * Rebuilds row and panel entries from the first `count` controls.\n * @param slots - Controls in display order.\n * @param count - Number of leading controls kept in the row.\n * @returns Row entries and panel entries, each regrouped under their original groups.\n */\nexport function splitToolbarCollapseSlots(slots: readonly ToolbarCollapseSlot[], count: number): ToolbarCollapseSplit {\n const collapsed = regroup(slots.slice(count));\n while (collapsed[0]?.kind === \"separator\") collapsed.shift();\n return { visible: regroup(slots.slice(0, count)), collapsed };\n}\n\n/**\n * @param slots - Consecutive controls.\n * @returns Top-level entries with consecutive grouped controls folded back into their group.\n */\nfunction regroup(slots: readonly ToolbarCollapseSlot[]): QuireKitToolbarEntry[] {\n const entries: QuireKitToolbarEntry[] = [];\n for (const slot of slots) {\n const last = entries.at(-1);\n if (slot.group === undefined) entries.push(slot.entry);\n else if (last !== undefined && last.value === slot.group.value && last.kind === \"group\") {\n entries[entries.length - 1] = { ...last, children: [...(last.children ?? []), slot.entry] };\n } else {\n entries.push({ ...slot.group, children: [slot.entry] });\n }\n }\n return entries;\n}\n","<script setup lang=\"ts\">\nimport type { QuireKitToolbarEntry, QuireKitToolbarRow, QuireKitToolbarExecuteEvent, QuireKitToolbarOpenChangeEvent } from \"../../../components/toolbar/types\";\nimport type { QuireKitToolbarRendererScope, QuireKitToolbarRenderers } from \"./types\";\nimport ToolbarItems from \"./items.vue\";\nimport QuireToolbarGroup from \"../toolbar-group.vue\";\nimport { toolbarCollapseKey } from \"../collapse/units\";\n\ndefineProps<{\n /** Legacy single-row contributions. */\n items: readonly QuireKitToolbarEntry[] | undefined;\n /** Explicit rows; their groups inherit the existing root, never a nested Toolbar. */\n rows: readonly QuireKitToolbarRow[] | undefined;\n /** Opaque host state. */\n context?: unknown;\n /** Shared controls and popup renderers. */\n renderers: QuireKitToolbarRenderers;\n /** Wraps each top-level entry in a measurable unit for collapse layout. */\n units?: boolean;\n}>();\ndefineSlots<{\n /** Custom control fallback shared by every row. */\n item?: (scope: QuireKitToolbarRendererScope) => unknown;\n /** Custom popup fallback shared by every row. */\n content?: (scope: QuireKitToolbarRendererScope) => unknown;\n}>();\nconst emit = defineEmits<{\n /** One intent from the existing entry adapter. */\n execute: [event: QuireKitToolbarExecuteEvent];\n /** One popup transition from the existing entry adapter. */\n openChange: [event: QuireKitToolbarOpenChangeEvent];\n}>();\n</script>\n\n<template>\n <!-- One keyed anatomy retains open/focused controls across overflow modes.\n Only collapse wrappers create boxes; other single-row modes flatten them. -->\n <template v-if=\"rows === undefined\">\n <template v-for=\"item in (items ?? []).filter(entry => !entry.hidden)\" :key=\"item.value\">\n <QuireToolbarGroup v-if=\"item.kind === 'group'\" :label=\"item.label\">\n <div v-for=\"child in (item.children ?? []).filter(entry => !entry.hidden)\" :key=\"child.value\" :class=\"units ? 'qk-toolbar__unit' : undefined\" :style=\"units ? undefined : { display: 'contents' }\" :data-qk-toolbar-unit=\"units ? toolbarCollapseKey(item, child) : undefined\">\n <ToolbarItems :items=\"[child]\" :path=\"[item.value]\" :disabled=\"!!item.disabled\" :context=\"context\" :renderers=\"renderers\"\n @execute=\"emit('execute', $event)\" @open-change=\"emit('openChange', $event)\">\n <template v-if=\"$slots.item\" #item=\"scope\"><slot name=\"item\" v-bind=\"scope\" /></template>\n <template v-if=\"$slots.content\" #content=\"scope\"><slot name=\"content\" v-bind=\"scope\" /></template>\n </ToolbarItems>\n </div>\n </QuireToolbarGroup>\n <div v-else :class=\"units ? 'qk-toolbar__unit' : undefined\" :style=\"units ? undefined : { display: 'contents' }\" :data-qk-toolbar-unit=\"units ? item.value : undefined\">\n <ToolbarItems :items=\"[item]\" :context=\"context\" :renderers=\"renderers\"\n @execute=\"emit('execute', $event)\" @open-change=\"emit('openChange', $event)\">\n <template v-if=\"$slots.item\" #item=\"scope\"><slot name=\"item\" v-bind=\"scope\" /></template>\n <template v-if=\"$slots.content\" #content=\"scope\"><slot name=\"content\" v-bind=\"scope\" /></template>\n </ToolbarItems>\n </div>\n </template>\n </template>\n <template v-else v-for=\"row in rows\" :key=\"row.value\">\n <div v-if=\"!row.hidden && row.items.some(item => !item.hidden)\" role=\"group\" :aria-label=\"row.label\" :data-qk-toolbar-row=\"row.value\" class=\"qk-toolbar__row\">\n <ToolbarItems :items=\"row.items\" :path=\"[row.value]\" :disabled=\"row.disabled ?? false\" :context=\"context\" :renderers=\"renderers\"\n @execute=\"emit('execute', $event)\" @open-change=\"emit('openChange', $event)\">\n <template v-if=\"$slots.item\" #item=\"scope\"><slot name=\"item\" v-bind=\"scope\" /></template>\n <template v-if=\"$slots.content\" #content=\"scope\"><slot name=\"content\" v-bind=\"scope\" /></template>\n </ToolbarItems>\n </div>\n </template>\n</template>\n","import { computed, nextTick, provide, ref, shallowRef } from \"vue\";\nimport type { ComputedRef, ShallowRef } from \"vue\";\nimport {\n resolveToolbarNavigationTarget,\n resolveToolbarTabStop\n} from \"../../components/toolbar/navigation\";\nimport type {\n QuireKitToolbarDirection,\n QuireKitToolbarOrientation,\n QuireKitToolbarRovingItem\n} from \"../../components/toolbar/types\";\nimport {\n toolbarContextKey,\n type QuireKitToolbarContext,\n type QuireKitToolbarItemRegistration\n} from \"./context\";\n\n/** Reactive root options supplied by the Vue Toolbar adapter. */\nexport interface QuireKitToolbarRootOptions {\n /** Returns the current layout and keyboard-navigation direction. */\n readonly orientation: () => QuireKitToolbarOrientation;\n /** Returns an explicit text direction when supplied by the host. */\n readonly direction: () => QuireKitToolbarDirection | undefined;\n /** Returns whether movement beyond an edge wraps. */\n readonly loopFocus: () => boolean;\n}\n\n/** Bindings used by the Vue Toolbar root template. */\nexport interface QuireKitToolbarRootBindings {\n /** Native toolbar element used to resolve DOM order and inherited direction. */\n readonly element: ShallowRef<HTMLElement | null>;\n /** Delegated keyboard handler for registered toolbar controls. */\n readonly handleKeydown: (event: KeyboardEvent) => void;\n}\n\n/**\n * Creates the native roving-focus scope for one Vue Toolbar root.\n *\n * @param options - Reactive orientation, direction, and edge-loop settings.\n * @returns Native root bindings consumed by the Toolbar template.\n */\nexport function useToolbarRoot(\n options: QuireKitToolbarRootOptions\n): QuireKitToolbarRootBindings {\n const element = shallowRef<HTMLElement | null>(null);\n const currentItemId = ref<string>();\n const registrations = new Map<string, QuireKitToolbarItemRegistration>();\n const orientation: ComputedRef<QuireKitToolbarOrientation> = computed(\n options.orientation\n );\n\n /** @returns Mounted controls sorted by live DOM position. */\n function orderedRegistrations(): readonly QuireKitToolbarItemRegistration[] {\n return [...registrations.values()].sort((left, right) => {\n const leftElement = left.element.value;\n const rightElement = right.element.value;\n if (leftElement === null || rightElement === null || leftElement === rightElement) {\n return 0;\n }\n return leftElement.compareDocumentPosition(rightElement) & 4 ? -1 : 1;\n });\n }\n\n /** @returns DOM-ordered navigation items with live disabled state. */\n function navigationItems(): readonly QuireKitToolbarRovingItem[] {\n return orderedRegistrations().map((item) => ({\n id: item.id,\n disabled: item.isDisabled()\n }));\n }\n\n /** Keeps exactly one enabled control in the document Tab sequence. */\n function reconcileTabStop(): void {\n currentItemId.value = resolveToolbarTabStop(\n navigationItems(),\n currentItemId.value\n );\n }\n\n /** @param item - Mounted native control and its live disabled state. */\n function registerItem(item: QuireKitToolbarItemRegistration): void {\n registrations.set(item.id, item);\n reconcileTabStop();\n }\n\n /** @param itemId - Stable identity of the unmounted control. */\n function unregisterItem(itemId: string): void {\n registrations.delete(itemId);\n reconcileTabStop();\n }\n\n /**\n * @param itemId - Stable identity of the queried control.\n * @returns Zero for the current Tab stop, otherwise minus one.\n */\n function tabIndexFor(itemId: string): 0 | -1 {\n return currentItemId.value === itemId ? 0 : -1;\n }\n\n /** @param itemId - Stable identity of the focused control. */\n function setCurrentItem(itemId: string): void {\n const registration = registrations.get(itemId);\n if (registration !== undefined && !registration.isDisabled()) {\n currentItemId.value = itemId;\n }\n }\n\n /** @returns Explicit or inherited physical text direction. */\n function resolveDirection(): QuireKitToolbarDirection {\n const explicit = options.direction();\n if (explicit !== undefined) return explicit;\n return element.value !== null && getComputedStyle(element.value).direction === \"rtl\"\n ? \"rtl\"\n : \"ltr\";\n }\n\n /**\n * @param itemId - Stable identity of the event target.\n * @param key - Native KeyboardEvent key value.\n * @returns Whether this Toolbar owned and handled the key.\n */\n function moveFocus(itemId: string, key: string): boolean {\n const targetId = resolveToolbarNavigationTarget(\n navigationItems(),\n itemId,\n key,\n {\n orientation: options.orientation(),\n direction: resolveDirection(),\n loop: options.loopFocus()\n }\n );\n if (targetId === undefined) return false;\n currentItemId.value = targetId;\n void nextTick(() => registrations.get(targetId)?.element.value?.focus());\n return true;\n }\n\n /** @param event - Native key event bubbling from a toolbar control. */\n function handleKeydown(event: KeyboardEvent): void {\n if (event.defaultPrevented) return;\n const target = event.target;\n if (!(target instanceof Element)) return;\n const item = target.closest<HTMLElement>(\"[data-qk-toolbar-item]\");\n if (item === null || item.closest('[role=\"toolbar\"]') !== element.value) return;\n const itemId = item.dataset.qkToolbarItem;\n if (itemId !== undefined && moveFocus(itemId, event.key)) event.preventDefault();\n }\n\n const context: QuireKitToolbarContext = Object.freeze({\n orientation,\n registerItem,\n unregisterItem,\n reconcileTabStop,\n tabIndexFor,\n setCurrentItem,\n moveFocus\n });\n provide(toolbarContextKey, context);\n return Object.freeze({ element, handleKeydown });\n}\n","import { shallowRef } from \"vue\";\nimport type { QuireKitResolvedTaskPresentation } from \"../../../../components/task/types\";\nimport type { TaskPresentationMedia, TaskPresentationMediaEntry } from \"./types\";\n\nconst registry = new WeakMap<Document, TaskPresentationMediaEntry>();\nconst desktopQuery = \"(min-width: 768px)\";\n\n/**\n * Acquires layout media from the trigger's window, never the ambient global window.\n * @param owner - Document whose layout viewport chooses the next task shell.\n * @returns A shared subscription lease, or undefined without a browsing context.\n */\nexport function subscribeTaskPresentationMedia(owner: Document): TaskPresentationMedia | undefined {\n const view = owner.defaultView;\n if (!view?.matchMedia) return undefined;\n let entry = registry.get(owner);\n if (!entry) {\n const query = view.matchMedia(desktopQuery);\n const value = shallowRef<QuireKitResolvedTaskPresentation>(query.matches ? \"desktop\" : \"bottom\");\n /** Publishes the current layout viewport after a browser media change. */\n const onChange = () => { value.value = query.matches ? \"desktop\" : \"bottom\"; };\n entry = { query, value, onChange, consumers: 0 };\n registry.set(owner, entry);\n query.addEventListener(\"change\", onChange);\n }\n const shared = entry;\n shared.consumers += 1;\n let released = false;\n return {\n value: shared.value,\n /** @returns Current media result, including changes whose notification is still queued. */\n refresh() {\n if (!released) shared.onChange();\n return shared.value.value;\n },\n /** Removes the document listener only after its final live lease has ended. */\n release() {\n if (released) return;\n released = true;\n shared.consumers -= 1;\n if (shared.consumers !== 0) return;\n shared.query.removeEventListener(\"change\", shared.onChange);\n registry.delete(owner);\n }\n };\n}\n\n/**\n * Finds the original event's document without realm-specific instanceof checks.\n * @param event - Trigger event, possibly originating inside another document.\n * @returns Its browsing document when one is available.\n */\nexport function getTaskEventDocument(event: Event): Document | undefined {\n for (const target of [event.target, event.currentTarget]) {\n if (!target) continue;\n if (\"ownerDocument\" in target) return (target as Node).ownerDocument ?? undefined;\n if (\"nodeType\" in target && target.nodeType === 9) return target as Document;\n if (\"document\" in target) return (target as Window).document;\n }\n return \"view\" in event ? (event as UIEvent).view?.document : undefined;\n}\n","import { computed, onMounted, onScopeDispose, shallowRef, watch, type ComputedRef, type ShallowRef } from \"vue\";\nimport type { QuireKitToolbarMode } from \"../../../components/toolbar/types\";\nimport { subscribeTaskPresentationMedia } from \"../../shared/task/presentation/media\";\n\n/**\n * Shares one layout-media lease per document; explicit modes perform no browser subscription.\n * @param root - Stable Toolbar element owning the browsing realm.\n * @param requested - Explicit mode; auto resolves after hydration using the owner viewport.\n * @returns Current touch presentation, independent of command and editor state.\n */\nexport function useToolbarMobile(root: Readonly<ShallowRef<HTMLElement | null>>, requested: () => QuireKitToolbarMode): ComputedRef<boolean> {\n const mounted = shallowRef(false), media = shallowRef<ReturnType<typeof subscribeTaskPresentationMedia>>();\n let owner: Document | undefined;\n /** Releases the owner lease when the toolbar leaves auto mode or unmounts. */\n function release(): void { media.value?.release(); media.value = undefined; owner = undefined; }\n /** Acquires only the actual mounted owner's layout media. */\n function sync(): void {\n const next = root.value?.ownerDocument;\n if (!mounted.value || requested() !== \"auto\" || !next) { release(); return; }\n if (next === owner && media.value) return;\n release(); owner = next; media.value = subscribeTaskPresentationMedia(next);\n }\n onMounted(() => { mounted.value = true; sync(); });\n watch([requested, () => root.value?.ownerDocument], sync, { flush: \"sync\" });\n onScopeDispose(release);\n return computed(() => requested() === \"mobile\" || requested() === \"auto\" && media.value?.value.value === \"bottom\");\n}\n","import { useHorizontalScroll } from \"../../shared/horizontal-scroll/use-scroll\";\nimport type { ToolbarScrollOptions, ToolbarScrollBindings } from \"./types\";\n\n/** Keeps Toolbar's single keyboard scope while sharing native overflow geometry.\n * @param options - Existing Toolbar bindings.\n * @returns Scroll and focus bindings for its viewport.\n */\nexport function useToolbarScroll(options: ToolbarScrollOptions): ToolbarScrollBindings {\n return useHorizontalScroll({ root: options.root, direction: options.direction,\n enabled: () => options.orientation() === \"horizontal\" && options.overflow() === \"scroll\",\n ownsFocus: target => target.closest('[role=\"toolbar\"]') === options.root.value });\n}\n","import { computed, nextTick, onBeforeUnmount, onMounted, ref, watch } from \"vue\";\nimport { resolveQuireKitToolbarVisibleUnits } from \"../../../components/toolbar/collapse\";\nimport type { ToolbarCollapseBindings, ToolbarCollapseOptions } from \"./types\";\nimport { listToolbarCollapseSlots, splitToolbarCollapseSlots } from \"./units\";\n\n/**\n * Moves trailing controls into a \"more\" panel when the row does not fit.\n *\n * Phases: each rendered control's inline advance (its width plus the gap or group edge before it)\n * is cached by key, so a container resize only re-runs the pure fit. A control never measured\n * forces one full render, measured in the post-flush watcher before paint, so the row never\n * flashes its overflowing state.\n *\n * @param options - Root, enablement and entries.\n * @returns Visible and collapsed entries.\n */\nexport function useToolbarCollapse(options: ToolbarCollapseOptions): ToolbarCollapseBindings {\n const count = ref<number | null>(null);\n const advances = new Map<string, number>();\n let moreAdvance = 0;\n let frame: number | undefined;\n let invalidated = false;\n const observed = new Set<HTMLElement>();\n const slots = computed(() => options.enabled() ? listToolbarCollapseSlots(options.items()) : []);\n // Only fields affecting inline geometry invalidate the cache. Accepted state\n // such as pressed/disabled/payload still updates controls without DOM reads.\n const geometry = computed(() => JSON.stringify([options.enabled(), options.metrics?.(), slots.value.map(({ key, entry }) =>\n [key, entry.kind, entry.text, entry.text === undefined && !(entry.icon || entry.iconData) ? entry.label : undefined,\n !!(entry.icon || entry.iconData), entry.span, entry.renderer]) ]));\n const split = computed(() => count.value === null ? undefined : splitToolbarCollapseSlots(slots.value, count.value));\n const visible = computed(() => split.value?.visible ?? options.items());\n const collapsed = computed(() => split.value?.collapsed ?? []);\n\n /** Caches advances of the controls and the \"more\" control currently in the row. */\n function measure(root: HTMLElement): void {\n const rtl = getComputedStyle(root).direction === \"rtl\";\n const gap = parseFloat(getComputedStyle(root).columnGap) || 0;\n let previous: number | undefined;\n const units = [...root.querySelectorAll<HTMLElement>(\"[data-qk-toolbar-unit]\")].filter(element => element.closest('[role=\"toolbar\"]') === root);\n const current = new Set(units);\n for (const element of observed) if (!current.has(element)) { observer?.unobserve(element); observed.delete(element); }\n for (const element of units) {\n if (!observed.has(element)) { observer?.observe(element); observed.add(element); }\n const rect = element.getBoundingClientRect();\n const end = rtl ? -rect.left : rect.right;\n // The first control's advance excludes the alignment offset before the row starts.\n advances.set(element.dataset.qkToolbarUnit!, previous === undefined ? rect.width : end - previous);\n previous = end;\n }\n const more = root.querySelector<HTMLElement>(\"[data-qk-toolbar-more]\");\n if (more !== null) moreAdvance = more.getBoundingClientRect().width + gap;\n else if (moreAdvance === 0) {\n const first = root.querySelector<HTMLElement>(\"[data-qk-toolbar-unit]\");\n moreAdvance = (first?.getBoundingClientRect().height ?? 28) + gap;\n }\n }\n\n /** Re-fits the row against the root's current content box. */\n function layout(): void {\n frame = undefined;\n const root = options.root.value;\n if (options.paused?.()) return;\n if (!options.enabled() || root === null) {\n count.value = null;\n return;\n }\n if (invalidated) {\n invalidated = false; advances.clear(); moreAdvance = 0;\n if (count.value !== null) { count.value = null; return; }\n }\n measure(root);\n const list = slots.value;\n if (list.some(slot => !advances.has(slot.key))) {\n count.value = null;\n return;\n }\n const style = getComputedStyle(root);\n const available = root.clientWidth - parseFloat(style.paddingInlineStart) - parseFloat(style.paddingInlineEnd);\n const fitted = resolveQuireKitToolbarVisibleUnits(\n list.map(slot => ({ advance: advances.get(slot.key)!, separator: slot.entry.kind === \"separator\" })),\n available,\n moreAdvance\n );\n const next = fitted >= list.length ? null : fitted;\n if (next === count.value) return;\n preserveFocus(root, next);\n count.value = next;\n }\n\n /**\n * Moves focus to the \"more\" control when the focused control is about to collapse.\n * @param root - Toolbar root.\n * @param next - Upcoming visible count.\n */\n function preserveFocus(root: HTMLElement, next: number | null): void {\n if (next === null) return;\n const active = document.activeElement;\n const unit = active instanceof Element ? active.closest<HTMLElement>(\"[data-qk-toolbar-unit]\") : null;\n if (unit === null || !root.contains(unit)) return;\n if (slots.value.findIndex(slot => slot.key === unit.dataset.qkToolbarUnit) < next) return;\n void nextTick(() => root.querySelector<HTMLElement>(\"[data-qk-toolbar-more] button\")?.focus());\n }\n\n /** Coalesces resize bursts into one layout per frame. */\n function schedule(): void {\n if (frame === undefined) frame = requestAnimationFrame(layout);\n }\n\n let observer: ResizeObserver | undefined;\n onMounted(() => {\n observer = new ResizeObserver(schedule);\n if (options.root.value !== null) observer.observe(options.root.value);\n layout();\n });\n // Entry changes can add unmeasured controls or change widths; measure right after the DOM updates.\n watch(geometry, () => { invalidated = true; layout(); }, { flush: \"post\" });\n watch(count, layout, { flush: \"post\" });\n watch(() => options.paused?.() ?? false, paused => { if (!paused) layout(); }, { flush: \"post\" });\n onBeforeUnmount(() => {\n observer?.disconnect();\n if (frame !== undefined) cancelAnimationFrame(frame);\n });\n return { visible, collapsed };\n}\n","<script setup lang=\"ts\">\nimport { ark } from \"@ark-ui/vue/factory\";\nimport { cloneVNode, Comment, computed, defineComponent, Fragment, isVNode, mergeProps, onMounted, onUpdated, ref } from \"vue\";\nimport type { ComponentPublicInstance, VNode } from \"vue\";\n\n/** Stable physical button that delegates each original event to the active surface. */\ninterface Props {\n /** Shared public trigger identity supplied to both resident machines. */\n readonly id: string;\n /** Current effective availability. */\n readonly disabled?: boolean;\n /** Resolves fresh attributes and handlers from the selected machine. */\n readonly getBindings: () => object;\n /** Resolves the event's document and records its opener before machine dispatch. */\n readonly prepare: (event: Event) => boolean;\n}\n\n/** Native node identity consumed by presentation and final-focus ownership. */\ninterface Emits {\n /** Reports the mounted button without inserting another trigger. */\n element: [element: HTMLElement];\n}\n\n/** The task's single, persistent public trigger slot. */\ninterface Slots {\n /** A single real button; its component and DOM identity persist across presentation changes. */\n readonly default: () => VNode[];\n}\n\ndefineOptions({ inheritAttrs: false });\nconst props = defineProps<Props>();\nconst emit = defineEmits<Emits>();\nconst slots = defineSlots<Slots>();\nconst ArkButton = ark.button;\nconst button = ref<ComponentPublicInstance | HTMLElement>();\nlet emitted: HTMLElement | undefined;\n\n/** Reports an actual mounted element rather than an Ark component proxy. */\nfunction publishElement(): void {\n const value = button.value;\n const element = value && \"$el\" in value ? value.$el as HTMLElement : value;\n if (element?.nodeType === 1 && element !== emitted) {\n emitted = element;\n emit(\"element\", element);\n }\n}\n\n/**\n * Lets the active machine consume the unchanged native event exactly once.\n * @param name - Handler key from Ark's normalized Vue bindings.\n * @param event - Actual native event, never queued or replayed.\n */\nfunction dispatch(name: string, event: Event): void {\n if (event.defaultPrevented || props.disabled) return;\n const currentTarget = event.currentTarget;\n if (currentTarget && \"disabled\" in currentTarget && currentTarget.disabled) return;\n if (\"isComposing\" in event && (event.isComposing || (event as KeyboardEvent).keyCode === 229)) return;\n const prepares = event.type === \"click\" || event.type === \"pointerdown\"\n || (event.type === \"keydown\" && [\"Enter\", \" \", \"ArrowDown\", \"ArrowUp\"].includes((event as KeyboardEvent).key));\n if (prepares && !props.prepare(event)) return;\n const handler = (props.getBindings() as Record<string, unknown>)[name];\n if (typeof handler === \"function\") handler(event);\n}\n\nconst bindings = computed(() => {\n const current = props.getBindings();\n const result = Object.fromEntries(Object.entries(current).map(([key, value]) => [\n key, /^on[A-Z]/.test(key) && typeof value === \"function\"\n ? (event: Event) => dispatch(key, event)\n : value\n ]));\n // Drawer only supplies click. Keep the opening inputs resident so a same-frame\n // resize can select Menu's keyboard/pointer handlers before Vue renders again.\n for (const key of [\"onClick\", \"onPointerdown\", \"onKeydown\"]) result[key] = (event: Event) => dispatch(key, event);\n return result;\n});\n\n/**\n * Reaches the single button through Vue's slot-outlet fragments.\n * @param nodes - Current public slot output.\n * @returns The original button vnode, preserving its component and key.\n */\nfunction findButton(nodes: readonly VNode[]): VNode | undefined {\n for (const node of nodes) {\n if (node.type === Comment) continue;\n if (node.type !== Fragment) return node;\n if (Array.isArray(node.children)) {\n const child = findButton(node.children.filter(isVNode));\n if (child) return child;\n }\n }\n return undefined;\n}\n\n// As-child normally lets child attributes win. This component has no DOM of its\n// own; cloning keeps the original button while making task identity authoritative.\nconst SlotButton = defineComponent({\n name: \"TaskTriggerSlot\",\n inheritAttrs: false,\n setup(_props, { attrs }) {\n return () => {\n const child = findButton(slots.default());\n if (!child) return null;\n return cloneVNode(child, {\n ...attrs, id: props.id, type: \"button\", disabled: props.disabled || child.props?.disabled\n }, true);\n };\n }\n});\nonMounted(publishElement);\nonUpdated(publishElement);\n</script>\n\n<template>\n <component :is=\"ArkButton\" ref=\"button\" as-child v-bind=\"mergeProps($attrs, bindings)\">\n <SlotButton />\n </component>\n</template>\n","import { computed, onMounted, onScopeDispose, shallowRef, watch } from \"vue\";\nimport type { Ref } from \"vue\";\nimport type { QuireKitResolvedTaskPresentation, QuireKitTaskPresentation } from \"../../../../components/task/types\";\nimport { getTaskEventDocument, subscribeTaskPresentationMedia } from \"./media\";\nimport type { AdaptivePresentation, TaskPresentationMedia, TaskPresentationPhase } from \"./types\";\n\n/**\n * Resolves the next shell and retains the active one until its matching physical exit.\n * @param trigger - Stable trigger, which owns the layout viewport and event document.\n * @param requested - Host strategy; an omitted strategy uses layout media.\n * @returns Private presentation state without any task request or business lifecycle.\n */\nexport function useAdaptivePresentation(\n trigger: Ref<HTMLElement | undefined>,\n requested: () => QuireKitTaskPresentation | undefined\n): AdaptivePresentation {\n const strategy = computed(() => requested() ?? \"auto\");\n const mounted = shallowRef(false);\n const disposed = shallowRef(false);\n const media = shallowRef<TaskPresentationMedia>();\n const locked = shallowRef<QuireKitResolvedTaskPresentation>();\n const surfacePhase = shallowRef<TaskPresentationPhase>(\"closed\");\n const surfaceEpoch = shallowRef(0);\n let subscribedDocument: Document | undefined;\n\n const candidate = computed(() => {\n if (disposed.value) return undefined;\n if (strategy.value !== \"auto\") return strategy.value;\n return mounted.value ? media.value?.value.value : undefined;\n });\n const ready = computed(() => candidate.value !== undefined);\n const resolved = computed(() => locked.value ?? candidate.value);\n\n /** Releases the current document lease, including when the host forces a shell. */\n function releaseMedia() {\n media.value?.release();\n media.value = undefined;\n subscribedDocument = undefined;\n }\n\n /**\n * Follows the trigger's document after mounting or a document-changing interaction.\n * @param owner - Layout viewport owner, never inferred from a global document.\n */\n function syncMedia(owner: Document | undefined) {\n if (disposed.value) return;\n if (!mounted.value || strategy.value !== \"auto\" || !owner) {\n releaseMedia();\n return;\n }\n if (subscribedDocument === owner && media.value) return;\n // Replace valid document leases atomically: a temporary undefined snapshot\n // would tell a synchronous session watcher to end a still-available task.\n const next = subscribeTaskPresentationMedia(owner);\n media.value?.release();\n subscribedDocument = owner;\n media.value = next;\n }\n\n // SSR and the first hydration render share the unresolved auto state. Forced\n // shells are independent of mounting; auto first reads the actual trigger owner.\n onMounted(() => {\n mounted.value = true;\n syncMedia(trigger.value?.ownerDocument);\n });\n watch([() => trigger.value?.ownerDocument, strategy], ([owner]) => syncMedia(owner), { flush: \"sync\" });\n\n /**\n * Refreshes media in the original event's realm before a queued resize listener runs.\n * @param event - Original interaction being delegated by the stable trigger.\n * @returns Current locked shell, or the next candidate while closed.\n */\n function resolveForEvent(event: Event) {\n if (disposed.value) return undefined;\n syncMedia(getTaskEventDocument(event) ?? trigger.value?.ownerDocument);\n media.value?.refresh();\n return resolved.value;\n }\n\n /** @returns The accepted physical shell, or undefined until its environment is ready. */\n function open() {\n if (!ready.value) return undefined;\n if (surfacePhase.value === \"open\") return resolved.value;\n // A new session may reuse a still-exiting shell, but its old exit callback\n // cannot release the reopened surface. Candidate changes never replace it here.\n locked.value ??= candidate.value;\n surfaceEpoch.value += 1;\n surfacePhase.value = \"open\";\n return locked.value;\n }\n\n /** Retains the physical shell after its logical task session has ended. */\n function close() {\n if (surfacePhase.value === \"open\") surfacePhase.value = \"closing\";\n }\n\n /**\n * Releases only the current provider's completed exit, including reduced-motion exits.\n * @param presentation - Shell whose presence layer emitted completion.\n * @param epoch - Opening identity captured for that presence lifetime.\n * @returns Whether this completion released the active shell lock.\n */\n function completeExit(presentation: QuireKitResolvedTaskPresentation, epoch: number) {\n if (disposed.value || surfacePhase.value !== \"closing\"\n || locked.value !== presentation || surfaceEpoch.value !== epoch) return false;\n surfacePhase.value = \"closed\";\n locked.value = undefined;\n return true;\n }\n\n /** Invalidates pending exits and synchronously releases the document subscription. */\n function dispose() {\n if (disposed.value) return;\n disposed.value = true;\n surfaceEpoch.value += 1;\n surfacePhase.value = \"closed\";\n locked.value = undefined;\n releaseMedia();\n }\n onScopeDispose(dispose);\n\n return {\n ready,\n candidate,\n resolved,\n phase: computed(() => surfacePhase.value),\n epoch: computed(() => surfaceEpoch.value),\n resolveForEvent,\n open,\n close,\n completeExit,\n dispose\n };\n}\n","import { computed, shallowRef } from \"vue\";\nimport type { QuireKitTaskRequestContext } from \"../../../../components/task/types\";\nimport type { ActiveTaskRequest, TaskRequestChannel, TaskRequests, TaskRequestState } from \"./request-types\";\n\n/**\n * Owns request identity and cancellation without executing business work.\n * @param idPrefix - Stable unique identity of the consuming task instance.\n * @returns Independent submission/search channels and explicit session lifecycle.\n */\nexport function createTaskRequests(idPrefix: string): TaskRequests {\n const state = shallowRef<TaskRequestState>({ sessionId: null, submission: null, search: null });\n let sessionSequence = 0;\n let submissionSequence = 0;\n let searchSequence = 0;\n let searchRevision = 0;\n\n /** @param sessionId - New authoritative session. */\n function replaceSession(sessionId: string | null): void {\n const previous = state.value;\n searchRevision++;\n // Publish invalidation atomically before abort listeners can reenter either channel.\n state.value = { sessionId, submission: null, search: null };\n previous.submission?.controller.abort();\n previous.search?.controller.abort();\n }\n\n /** @returns A new session identity, without overwriting reentrant lifecycle decisions. */\n function begin(): string {\n const id = `${idPrefix}:${++sessionSequence}`;\n replaceSession(id);\n return id;\n }\n\n /** Ends the current session and aborts its captured requests. */\n function end(): void {\n replaceSession(null);\n }\n\n /**\n * Compares public identity fields so spreading a request preserves its authority.\n * @param context - Context returned to a consumer.\n * @param channel - Channel that issued it.\n * @returns Whether the live session still owns this un-aborted request.\n */\n function isCurrent(context: QuireKitTaskRequestContext, channel: TaskRequestChannel): boolean {\n const current = state.value[channel]?.context;\n return current !== undefined && state.value.sessionId === context.sessionId &&\n current.sessionId === context.sessionId && current.requestId === context.requestId &&\n current.signal === context.signal && !context.signal.aborted;\n }\n\n /**\n * Creates one immutable consumer context with private cancellation ownership.\n * @param sessionId - Active session captured before publication.\n * @param requestId - Independently increasing channel identity.\n * @returns A request whose signal is never proxied by Vue.\n */\n function createRequest(sessionId: string, requestId: number): ActiveTaskRequest {\n const controller = new AbortController();\n return { controller, context: Object.freeze({ sessionId, requestId, signal: controller.signal }) };\n }\n\n /** @returns A synchronously locked submission, or null when execution is unavailable. */\n function startSubmission(): QuireKitTaskRequestContext | null {\n const current = state.value;\n if (current.sessionId === null || current.submission !== null) return null;\n const request = createRequest(current.sessionId, ++submissionSequence);\n state.value = { ...current, submission: request };\n return isCurrent(request.context, \"submission\") ? request.context : null;\n }\n\n /** @returns The new search unless a cancellation callback superseded this intent. */\n function startSearch(): QuireKitTaskRequestContext | null {\n const sessionId = state.value.sessionId;\n const revision = ++searchRevision;\n if (sessionId === null) return null;\n const previous = state.value.search;\n if (previous !== null) {\n state.value = { ...state.value, search: null };\n previous.controller.abort();\n }\n // A listener may close, reopen, cancel, or begin a newer query; unrelated submission work is preserved.\n if (state.value.sessionId !== sessionId || searchRevision !== revision) return null;\n const request = createRequest(sessionId, ++searchSequence);\n state.value = { ...state.value, search: request };\n return isCurrent(request.context, \"search\") ? request.context : null;\n }\n\n /** @param context - Finished submission, possibly carrying additional business fields. */\n function finishSubmission(context: QuireKitTaskRequestContext): void {\n if (!isCurrent(context, \"submission\")) return;\n state.value = { ...state.value, submission: null };\n }\n\n /** Cancels submission without clearing a replacement created by an abort listener. */\n function cancelSubmission(): void {\n const previous = state.value.submission;\n if (previous === null) return;\n state.value = { ...state.value, submission: null };\n previous.controller.abort();\n }\n\n /** Cancels both current search ownership and any outer replacement waiting on its abort. */\n function cancelSearch(): void {\n searchRevision++;\n const previous = state.value.search;\n if (previous === null) return;\n state.value = { ...state.value, search: null };\n previous.controller.abort();\n }\n\n return {\n sessionId: computed(() => state.value.sessionId),\n submitting: computed(() => state.value.submission !== null),\n begin, end, startSubmission, startSearch, isCurrent,\n finishSubmission, cancelSubmission, cancelSearch\n };\n}\n","import { computed, nextTick, onScopeDispose, ref, watch } from \"vue\";\nimport type { QuireKitTaskCancelReason, QuireKitTaskCloseReason, QuireKitTaskCloseRequest } from \"../../../../components/task\";\nimport type { TaskLifecycle, TaskLifecycleOptions } from \"./types\";\n\n/**\n * Projects one consumer request into an owner-gated session and two mutually exclusive surfaces.\n * @param options - Reactive inputs, shared requests, presentation lock and single notification owner.\n * @returns Task entries used by triggers, close controls and surface adapters.\n */\nexport function useTaskLifecycle(options: TaskLifecycleOptions): TaskLifecycle {\n const { props, ownerReady, requests, presentation, events } = options;\n const localOpen = ref(props.defaultOpen ?? false);\n const requestedOpen = computed(() => props.open ?? localOpen.value);\n const open = computed(() => requestedOpen.value && !props.disabled && ownerReady.value && presentation.ready.value);\n let intent: { reason: QuireKitTaskCloseReason; sessionId: string } | undefined;\n let guarding = false;\n let disposed = false;\n let synchronizing = false;\n let resynchronize = false;\n\n /** Ends private state before notifying consumers, so abort callbacks cannot commit old work. */\n function endSession(): void {\n const sessionId = requests.sessionId.value;\n if (sessionId === null) return;\n const reason: QuireKitTaskCancelReason = !ownerReady.value ? \"owner-hidden\"\n : props.disabled ? \"disabled\"\n : intent?.sessionId === sessionId ? intent.reason : \"host-close\";\n intent = undefined;\n requests.end();\n presentation.close();\n events.end(sessionId);\n if (reason !== \"action\") events.cancel({ reason, sessionId });\n events.openChange(false);\n }\n\n /** Serializes synchronous owner or host changes triggered by lifecycle callbacks. */\n function synchronize(): void {\n if (disposed) return;\n if (synchronizing) { resynchronize = true; return; }\n synchronizing = true;\n try {\n do {\n resynchronize = false;\n if (open.value && requests.sessionId.value === null) {\n presentation.open();\n const sessionId = requests.begin();\n if (requests.sessionId.value === sessionId) {\n events.begin(sessionId);\n events.openChange(true);\n }\n } else if (!open.value) endSession();\n } while (resynchronize && !disposed);\n } finally { synchronizing = false; }\n }\n\n // Disabled local tasks stay closed on re-enable; controlled requests remain host-owned.\n watch(() => props.disabled, disabled => {\n if (disabled && props.open === undefined) localOpen.value = false;\n }, { immediate: true, flush: \"sync\" });\n watch(open, synchronize, { immediate: true, flush: \"sync\" });\n\n /**\n * Applies the shared task and consumer policies to an existing surface request.\n * @param request - Original close intent, including an existing prevented state.\n */\n function guardClose(request: QuireKitTaskCloseRequest): void {\n if (request.defaultPrevented) return;\n if (disposed || guarding || !open.value || requests.submitting.value) {\n request.preventDefault();\n return;\n }\n guarding = true;\n try { props.onCloseRequest?.(request); }\n finally { guarding = false; }\n }\n\n /**\n * Consumes an already-guarded intent without relaying the second Ark notification.\n * @param reason - Accepted interaction source.\n */\n function acceptClose(reason: QuireKitTaskCloseReason): void {\n const sessionId = requests.sessionId.value;\n if (disposed || !open.value || sessionId === null || intent?.sessionId === sessionId) return;\n const accepted = { reason, sessionId };\n intent = accepted;\n if (props.open === undefined) localOpen.value = false;\n events.updateOpen(false);\n // A vetoed controlled update cannot mislabel an unrelated future host close.\n void nextTick(() => { if (intent === accepted) intent = undefined; });\n }\n\n /**\n * Routes a visible or imperative close through one synchronous policy.\n * @param reason - User or programmatic close source.\n * @returns Whether the active task accepted the request before host acknowledgement.\n */\n function requestClose(reason: QuireKitTaskCloseReason = \"programmatic\"): boolean {\n let prevented = false;\n const request: QuireKitTaskCloseRequest = {\n reason,\n get defaultPrevented() { return prevented; },\n /** Refuses this synchronous close intent. */\n preventDefault() { prevented = true; }\n };\n guardClose(request);\n if (prevented) return false;\n acceptClose(reason);\n return true;\n }\n\n /** @returns Whether the current environment accepts an explicit opening request. */\n function requestOpen(): boolean {\n if (disposed || props.disabled || !ownerReady.value || !presentation.ready.value) return false;\n if (open.value) return true;\n if (props.open === undefined) localOpen.value = true;\n events.updateOpen(true);\n return true;\n }\n\n onScopeDispose(() => {\n disposed = true;\n intent = undefined;\n requests.end();\n });\n return { requestedOpen, open, requestOpen, requestClose, guardClose, acceptClose };\n}\n","import { shallowRef, watch, type Ref } from \"vue\";\n/** @param trigger - Explicit owner document. @param open - Bottom physical lifetime only. @param maxHeight - Optional caller height bound. @returns Keyboard- and zoom-aware bottom content bounds. */\nexport function useTaskPanelViewport(trigger: Ref<HTMLElement | undefined>, open: Ref<boolean>, maxHeight: Ref<string | undefined>) {\n const style = shallowRef<Record<string, string>>({});\n watch([trigger, open, maxHeight], ([element, visible, limit], _old, cleanup) => {\n const win = element?.ownerDocument.defaultView;\n if (!visible || !win) return;\n let frame = 0;\n /** Projects layout CSS coordinates into the currently visible viewport. */\n function measure(): void {\n frame = 0;\n const visual = win!.visualViewport, height = visual?.height ?? win!.innerHeight;\n const offset = Math.max(0, win!.innerHeight - ((visual?.offsetTop ?? 0) + height));\n const available = `calc(${height}px - var(--qk-space-group))`;\n style.value = { maxHeight: limit ? `min(${available}, ${limit})` : available, marginBottom: `${offset}px` };\n }\n /** Shares one measurement for a viewport event burst. */\n function schedule(): void { if (!frame) frame = win!.requestAnimationFrame(measure); }\n win.addEventListener(\"resize\", schedule); win.visualViewport?.addEventListener(\"resize\", schedule); win.visualViewport?.addEventListener(\"scroll\", schedule);\n measure();\n cleanup(() => { win.removeEventListener(\"resize\", schedule); win.visualViewport?.removeEventListener(\"resize\", schedule); win.visualViewport?.removeEventListener(\"scroll\", schedule); if (frame) win.cancelAnimationFrame(frame); });\n }, { flush: \"post\" });\n return style;\n}\n","import { computed, onMounted, shallowRef, useId, watch } from \"vue\";\nimport type { QuireKitTaskPanelProps } from \"../../components/task-panel\";\nimport type { QuireKitTaskCloseReason, QuireKitTaskCloseRequest } from \"../../components/task\";\nimport { useAdaptivePresentation } from \"../shared/task/presentation/use-adaptive-presentation\";\nimport { useModalSurfaceOwner } from \"../shared/surface/use-modal-owner\";\nimport { createTaskRequests } from \"../shared/task/session/requests\";\nimport { useTaskLifecycle } from \"../shared/task/session/lifecycle\";\nimport type { TaskLifecycleEvents } from \"../shared/task/session/types\";\nimport { usePopoverRuntime } from \"../popover/use-runtime\";\nimport { useDrawerRuntime } from \"../drawer/use-runtime\";\nimport { useTaskPanelViewport } from \"./viewport\";\nimport { trackContextMenuRegion } from \"../menu/context/anchor\";\n\n/** @param props - Reactive public shell settings. @param events - Sole session notifications. @returns Stable entry and mutually exclusive providers. */\nexport function useTaskPanel(props: QuireKitTaskPanelProps, events: TaskLifecycleEvents) {\n const id = `task-panel-${useId()}`, triggerId = `${id}-trigger`, contentId = `${id}-content`;\n const trigger = shallowRef<HTMLElement>();\n const owner = useModalSurfaceOwner();\n const presentation = useAdaptivePresentation(trigger, () => props.presentation);\n const requests = createTaskRequests(id);\n const lifecycle = useTaskLifecycle({ props, ownerReady: owner.ready, presentation, requests, events });\n const desktop = computed(() => lifecycle.open.value && presentation.resolved.value === \"desktop\");\n const bottom = computed(() => lifecycle.open.value && presentation.resolved.value === \"bottom\");\n const bottomStyle = useTaskPanelViewport(trigger, computed(() => presentation.resolved.value === \"bottom\" && presentation.phase.value !== \"closed\"), computed(() => props.maxHeight));\n /** @returns Original owner-local focus destination, never a global query. */\n function finalFocus(): HTMLElement | null { return owner.ready.value ? props.finalFocusEl?.() ?? trigger.value ?? null : null; }\n /** @returns Title-first focus avoids summoning the keyboard without a search intent. */\n function initialFocus(): HTMLElement | null { return trigger.value?.ownerDocument.getElementById(contentId) ?? null; }\n /** @param request - Existing synchronous surface intent. */\n function guard(request: QuireKitTaskCloseRequest): void {\n if (props.busy) request.preventDefault();\n lifecycle.guardClose(request);\n }\n let closeReason: QuireKitTaskCloseReason = \"programmatic\";\n /** @param request - One original Drawer close request; the prop also marks dragging as guarded. */\n function guardDrawer(request: QuireKitTaskCloseRequest): void { guard(request); if (!request.defaultPrevented) closeReason = request.reason; }\n const popover = usePopoverRuntime({\n get open() { return desktop.value; }, get placement() { return props.placement ?? \"bottom-start\"; },\n modal: true, get restoreFocus() { return props.restoreFocus !== false; }, initialFocusEl: initialFocus, finalFocusEl: finalFocus, hideWhenDetached: false,\n }, {\n updateOpen: value => { if (presentation.resolved.value === \"desktop\") value ? lifecycle.requestOpen() : !props.busy && lifecycle.requestClose(); },\n openChange: () => {},\n escapeKeyDown: event => { if (!event.defaultPrevented && !props.busy) lifecycle.requestClose(\"escape\"); event.preventDefault(); },\n interactOutside: event => { if (!event.defaultPrevented && !props.busy) lifecycle.requestClose(\"outside\"); event.preventDefault(); },\n }, { id: `${id}-popover`, ids: { trigger: triggerId, content: contentId } });\n const drawer = useDrawerRuntime({\n get open() { return bottom.value; }, side: \"bottom\", modal: true, trapFocus: true, preventScroll: true,\n get restoreFocus() { return props.restoreFocus !== false; }, initialFocusEl: initialFocus, finalFocusEl: finalFocus, closeOnEscape: true, closeOnInteractOutside: true,\n snapPoints: [1], dragEnabled: false,\n onCloseRequest: guardDrawer,\n }, {\n updateOpen: value => { if (presentation.resolved.value === \"bottom\") value ? lifecycle.requestOpen() : lifecycle.acceptClose(closeReason); },\n openChange: () => {}, closeRequest: guardDrawer, snapPointChange: () => {}, triggerValueChange: () => {},\n }, { id: `${id}-drawer`, ids: { trigger: triggerId, content: contentId } });\n onMounted(() => { trigger.value ??= props.anchorEl?.() ?? undefined; });\n watch(() => props.anchorEl?.(), element => { if (element) trigger.value = element; }, { flush: \"post\" });\n // Follow only an open desktop anchor; input and off-screen directories do no geometry work.\n watch([desktop, trigger], ([open, element], _old, cleanup) => {\n if (!open || !element) return;\n cleanup(trackContextMenuRegion(element, () => popover.api.value.reposition({ getAnchorRect: () => element.getBoundingClientRect() })));\n }, { flush: \"post\" });\n /** @param element - Stable actual opening button. */\n function setTrigger(element: HTMLElement): void { trigger.value = element; }\n /** @param event - Original event before widget delegation. @returns Whether opening can continue. */\n function prepare(event: Event): boolean { return !props.disabled && owner.ready.value && !!presentation.resolveForEvent(event); }\n /** @returns Bindings from the effective widget only. */\n function getBindings(): object { return presentation.resolved.value === \"bottom\" ? drawer.api.value.getTriggerProps() : popover.api.value.getTriggerProps(); }\n return { bottomStyle, triggerId, contentId, trigger, presentation, lifecycle, popover, drawer, setTrigger, prepare, getBindings };\n}\n","<script setup lang=\"ts\">\nimport { useQuireOverlayHost } from \"../overlay-provider\";\nimport { Drawer } from \"@ark-ui/vue/drawer\";\nimport { Popover } from \"@ark-ui/vue/popover\";\nimport { onBeforeUnmount, shallowRef, watch } from \"vue\";\nimport type { QuireKitTaskPanelProps as Props } from \"../../components/task-panel/types\";\nimport type { QuireKitTaskCancelReason, QuireKitTaskCloseReason } from \"../../components/task\";\nimport TaskTrigger from \"../shared/task/trigger.vue\";\nimport DrawerFrame from \"../drawer/content-frame.vue\";\nimport PopoverContent from \"../popover/content.vue\";\nimport QuireButton from \"../button/button.vue\";\nimport QuireIconButton from \"../button/icon-button.vue\";\nimport QuireIcon from \"../icon/icon.vue\";\nimport { useQuireKitMessages } from \"../locale-provider/context\";\nimport type { TaskPanelSlots } from \"./types\";\nimport { useTaskPanel } from \"./runtime\";\nconst props = withDefaults(defineProps<Props>(), { open: undefined, presentation: \"auto\", disabled: false, busy: false, restoreFocus: true });\nconst emit = defineEmits<{\n /** Controlled request. */ \"update:open\": [open: boolean];\n /** Accepted session transition. */ openChange: [open: boolean];\n /** Uncommitted session ended. */ cancel: [details: { reason: QuireKitTaskCancelReason; sessionId: string }];\n /** Navigate inside the same session. */ back: [];\n /** Physical content mount/release for owner-local interop; no editor or layout work. */ contentElementChange: [element: HTMLElement | null];\n}>();\ndefineSlots<TaskPanelSlots>();\nconst host = useQuireOverlayHost(() => props.portalTarget);\nconst text = useQuireKitMessages(\"actionMenu\");\nconst header = shallowRef<HTMLElement | null>(null);\nwatch(header, element => emit(\"contentElementChange\", element?.parentElement ?? null), { flush: \"post\" });\nonBeforeUnmount(() => { if (header.value) emit(\"contentElementChange\", null); });\nconst task = useTaskPanel(props, { updateOpen: value => emit(\"update:open\", value), openChange: value => emit(\"openChange\", value),\n begin: () => {}, end: () => {}, cancel: details => emit(\"cancel\", details) });\n/** @returns Whether the current shell accepted dismissal. */\nfunction close(): boolean { return requestClose(\"close-trigger\"); }\n/** @param reason - Current user or successful action close. @returns Whether the guarded request was accepted. */\nfunction requestClose(reason: QuireKitTaskCloseReason = \"programmatic\"): boolean { return !props.busy && task.lifecycle.requestClose(reason); }\ndefineExpose({ requestClose });\n</script>\n<template>\n <TaskTrigger v-if=\"$slots.trigger\" :id=\"task.triggerId\" :disabled=\"disabled\" :prepare=\"task.prepare\" :get-bindings=\"task.getBindings\" @element=\"task.setTrigger\">\n <slot name=\"trigger\" :open=\"task.lifecycle.open.value\" />\n </TaskTrigger>\n <Popover.RootProvider :value=\"task.popover.api.value\" lazy-mount unmount-on-exit @exit-complete=\"task.presentation.completeExit('desktop', task.presentation.epoch.value)\">\n <PopoverContent v-if=\"task.presentation.resolved.value === 'desktop' && task.presentation.phase.value !== 'closed'\" :inert=\"!task.lifecycle.open.value || undefined\" :aria-hidden=\"!task.lifecycle.open.value || undefined\" :aria-label=\"title\" :width=\"width ?? 352\" :portal-target=\"host.target.value\" padding=\"none\" :show-arrow=\"false\" class=\"qk-task-panel\" :aria-busy=\"busy || undefined\">\n <header ref=\"header\" class=\"qk-task-panel__header\">\n <QuireButton v-if=\"canGoBack\" variant=\"text\" :disabled=\"busy\" @click=\"emit('back')\">{{ text.back }}</QuireButton>\n <Popover.Title class=\"qk-drawer__title\">{{ title }}</Popover.Title>\n <QuireIconButton :label=\"text.close\" variant=\"text\" :disabled=\"busy\" @click=\"close\"><QuireIcon name=\"close\" :size=\"16\" /></QuireIconButton>\n </header>\n <div class=\"qk-task-panel__body\"><slot /></div>\n <footer v-if=\"$slots.footer\" class=\"qk-task-panel__footer\"><slot name=\"footer\" /></footer>\n </PopoverContent>\n </Popover.RootProvider>\n <Drawer.RootProvider :value=\"task.drawer.api.value\" lazy-mount unmount-on-exit @exit-complete=\"task.presentation.completeExit('bottom', task.presentation.epoch.value)\">\n <DrawerFrame v-if=\"task.presentation.resolved.value === 'bottom' && task.presentation.phase.value !== 'closed'\" :content-inert=\"!task.lifecycle.open.value\" :title=\"title\" :portal-target=\"portalTarget ?? task.trigger.value?.ownerDocument.body ?? 'body'\" :show-close=\"false\" :content-style=\"task.bottomStyle.value\" :body-style=\"{ padding: 'var(--qk-space-surface-compact)', paddingInlineStart: 'max(var(--qk-space-surface-compact), env(safe-area-inset-left))', paddingInlineEnd: 'max(var(--qk-space-surface-compact), env(safe-area-inset-right))', paddingBottom: 'max(var(--qk-space-surface-compact), env(safe-area-inset-bottom))', overscrollBehavior: 'contain' }\" content-class=\"qk-task-panel qk-task__surface\">\n <template #header><header ref=\"header\" class=\"qk-task-panel__header qk-task-panel__header--bottom\">\n <QuireButton v-if=\"canGoBack\" variant=\"text\" :disabled=\"busy\" class=\"qk-task__target\" @click=\"emit('back')\">{{ text.back }}</QuireButton>\n <Drawer.Title class=\"qk-drawer__title\">{{ title }}</Drawer.Title>\n <QuireIconButton :label=\"text.close\" variant=\"text\" :disabled=\"busy\" class=\"qk-task__target\" @click=\"close\"><QuireIcon name=\"close\" :size=\"16\" /></QuireIconButton>\n </header></template>\n <div :aria-busy=\"busy || undefined\"><slot /></div>\n <template v-if=\"$slots.footer\" #footer><slot name=\"footer\" /></template>\n </DrawerFrame>\n </Drawer.RootProvider>\n</template>\n<style scoped>\n.qk-task-panel__header { display: flex; align-items: center; gap: var(--qk-space-inline); padding: var(--qk-space-surface-compact); }\n.qk-task-panel__header > :nth-last-child(2) { flex: 1; min-width: 0; }\n.qk-task-panel__body { overflow: auto; min-height: 0; padding: var(--qk-space-surface-compact); }\n.qk-task-panel__footer { padding: var(--qk-space-surface-compact); }\n.qk-task-panel__header--bottom > button { min-width: 44px; min-height: 44px; }\n.qk-task-panel__header--bottom { padding-block: var(--qk-space-inline); }\n</style>\n","/** Upper bound on re-checks; hiding a 1px separator rarely changes wrapping, so this almost always settles in one. */\nconst maxPasses = 3;\n\n/** Vertical tolerance, in CSS pixels, for treating two controls as sitting on the same wrapped line. */\nconst lineTolerance = 4;\n\n/**\n * Hides separators that start or end a wrapped line in the \"more\" panel, where they would read as stray marks.\n * @param container - Element whose direct children are the panel's controls and separators.\n */\nexport function hideLineEdgeSeparators(container: HTMLElement): void {\n const separators = [...container.children].filter(\n (element): element is HTMLElement => element instanceof HTMLElement && element.classList.contains(\"qk-toolbar__separator\")\n );\n for (const separator of separators) separator.style.removeProperty(\"display\");\n for (let pass = 0; pass < maxPasses; pass += 1) {\n let changed = false;\n for (const separator of separators) {\n if (separator.style.display === \"none\") continue;\n const line = centerOf(separator);\n const previous = visibleSibling(separator, \"previousElementSibling\");\n const next = visibleSibling(separator, \"nextElementSibling\");\n const startsLine = previous === null || Math.abs(centerOf(previous) - line) > lineTolerance;\n const endsLine = next === null || Math.abs(centerOf(next) - line) > lineTolerance;\n if (startsLine || endsLine) {\n separator.style.display = \"none\";\n changed = true;\n }\n }\n if (!changed) return;\n }\n}\n\n/**\n * @param element - Panel child.\n * @returns Vertical center used to identify its wrapped line.\n */\nfunction centerOf(element: Element): number {\n const rect = element.getBoundingClientRect();\n return rect.top + rect.height / 2;\n}\n\n/**\n * @param element - Separator.\n * @param direction - Sibling direction.\n * @returns Nearest sibling that is still displayed, or null at the panel edge.\n */\nfunction visibleSibling(element: Element, direction: \"previousElementSibling\" | \"nextElementSibling\"): HTMLElement | null {\n let current = element[direction];\n while (current instanceof HTMLElement && current.style.display === \"none\") current = current[direction];\n return current instanceof HTMLElement ? current : null;\n}\n","<script setup lang=\"ts\">\nimport { useQuireOverlayHost } from \"../../overlay-provider\";\nimport { nextTick, onBeforeUnmount, ref, shallowRef, watch } from \"vue\";\nimport type { QuireKitToolbarEntry, QuireKitToolbarExecuteEvent, QuireKitToolbarOpenChangeEvent } from \"../../../components/toolbar/types\";\nimport { quireKitEditorIconData } from \"../../../components/icon/catalog\";\nimport type { QuireKitToolbarRendererScope, QuireKitToolbarRenderers } from \"../items/types\";\nimport QuireIcon from \"../../icon/icon.vue\";\nimport QuirePopoverRoot from \"../../popover/root.vue\";\nimport QuirePopoverTrigger from \"../../popover/trigger.vue\";\nimport QuirePopoverContent from \"../../popover/content.vue\";\nimport QuireToolbarDisclosure from \"../toolbar-disclosure.vue\";\nimport QuireToolbar from \"../toolbar.vue\";\nimport QuireTaskPanel from \"../../task-panel/root.vue\";\nimport QuireButton from \"../../button/button.vue\";\nimport { useQuireKitMessages } from \"../../locale-provider/context\";\nimport { hideLineEdgeSeparators } from \"./separators\";\n\n/** Trailing entries collapsed out of the row, rendered in a panel with the same controls. */\nconst host = useQuireOverlayHost(() => props.portalTarget);\nconst props = defineProps<{\n /** Accessible name of the \"more\" control and its panel. */\n label: string;\n /** Collapsed top-level entries. */\n items: readonly QuireKitToolbarEntry[];\n /** Host state forwarded to custom renderers. */\n context?: unknown;\n /** Named custom controls and popup bodies. */\n renderers: QuireKitToolbarRenderers;\n /** Touch operation surface; an active shell stays locked until physical exit. */\n mobile?: boolean;\n /** Owner-local portal for either operation surface. */\n portalTarget?: string | HTMLElement | undefined;\n /** Focus restoration policy when the host hands off to another task. */\n restoreFocus?: boolean;\n}>();\ndefineSlots<{\n /** Custom control fallback. */\n item?: (scope: QuireKitToolbarRendererScope) => unknown;\n /** Custom popup fallback. */\n content?: (scope: QuireKitToolbarRendererScope) => unknown;\n}>();\nconst emit = defineEmits<{\n /** Intent from a collapsed control, identical to the row's. */\n execute: [event: QuireKitToolbarExecuteEvent];\n /** Popup transition from a collapsed control. */\n openChange: [event: QuireKitToolbarOpenChangeEvent];\n /** Effective overflow state and the native entry, before modal focus changes. */\n panelOpenChange: [open: boolean, trigger: HTMLElement | null];\n /** Actual operation surface mount/release. */\n surfaceChange: [element: HTMLElement | null];\n}>();\nconst open = ref(false);\nconst panel = shallowRef<HTMLElement | null>(null);\nconst unit = shallowRef<HTMLElement | null>(null), mobile = ref(props.mobile ?? false);\nconst cancelText = useQuireKitMessages(\"actionSheet\");\nwatch([() => props.mobile, open, panel], () => { if (!open.value && panel.value === null) mobile.value = props.mobile ?? false; });\nwatch(panel, element => emit(\"surfaceChange\", element?.closest<HTMLElement>('[role=\"dialog\"]') ?? element), { flush: \"post\" });\nonBeforeUnmount(() => { if (panel.value) emit(\"surfaceChange\", null); if (open.value) emit(\"panelOpenChange\", false, null); });\n\n/** @param next - Accepted shell request; reopening an exiting shell retains its identity. */\nfunction changeOpen(next: boolean): void {\n if (open.value === next) return;\n if (next && panel.value === null) mobile.value = props.mobile ?? false;\n open.value = next; emit(\"panelOpenChange\", next, unit.value?.querySelector<HTMLButtonElement>('button') ?? null);\n}\n/** @returns Native operation entry, including controls composed through Tooltip fragments. */\nfunction overflowTrigger(): HTMLElement | null { return unit.value?.querySelector<HTMLButtonElement>('button') ?? null; }\n// Wrapping is only known after the panel lays out, so separators are checked once it has painted.\nwatch([open, () => props.items], async () => {\n if (!open.value || mobile.value) return;\n await nextTick();\n requestAnimationFrame(() => {\n const content = panel.value?.querySelector<HTMLElement>(\".qk-toolbar__content\");\n if (content) hideLineEdgeSeparators(content);\n });\n}, { flush: \"post\" });\n\n/** @param event - Intent from the panel; one-shot commands close it, toggles keep it open. */\nfunction execute(event: QuireKitToolbarExecuteEvent): void {\n emit(\"execute\", event);\n if (event.source !== \"toggle\") changeOpen(false);\n}\n</script>\n\n<template>\n <div ref=\"unit\" class=\"qk-toolbar__unit\" data-qk-toolbar-more>\n <QuireTaskPanel v-if=\"mobile\" :open=\"open\" :title=\"label\" presentation=\"bottom\" max-height=\"72dvh\" :anchor-el=\"overflowTrigger\" :portal-target=\"portalTarget ?? 'body'\" :restore-focus=\"restoreFocus ?? true\" @update:open=\"changeOpen\" @content-element-change=\"panel = $event\">\n <template #trigger=\"scope\">\n <QuireToolbarDisclosure :label=\"label\" :toggle-on-click=\"false\" popup=\"dialog\" :expanded=\"scope.open\">\n <QuireIcon :data=\"quireKitEditorIconData.moreHorizontal\" />\n </QuireToolbarDisclosure>\n </template>\n <QuireToolbar :label=\"label\" :items=\"items\" :context=\"context\" :renderers=\"renderers\" mode=\"mobile\" orientation=\"vertical\" overflow=\"visible\" align=\"start\" class=\"qk-toolbar--overflow-sheet\"\n @execute=\"execute\" @open-change=\"emit('openChange', $event)\">\n <template v-if=\"$slots.item\" #item=\"scope\"><slot name=\"item\" v-bind=\"scope\" /></template>\n <template v-if=\"$slots.content\" #content=\"scope\"><slot name=\"content\" v-bind=\"scope\" /></template>\n </QuireToolbar>\n <template #footer><QuireButton variant=\"text\" class=\"qk-task__target w-full\" @click=\"changeOpen(false)\">{{ cancelText.cancel }}</QuireButton></template>\n </QuireTaskPanel>\n <QuirePopoverRoot v-else :open=\"open\" placement=\"bottom-end\" :restore-focus=\"restoreFocus ?? true\" @update:open=\"changeOpen\">\n <QuirePopoverTrigger as-child>\n <QuireToolbarDisclosure :label=\"label\" :toggle-on-click=\"false\" popup=\"dialog\" :expanded=\"open\" @update:expanded=\"changeOpen\">\n <QuireIcon :data=\"quireKitEditorIconData.moreHorizontal\" />\n </QuireToolbarDisclosure>\n </QuirePopoverTrigger>\n <QuirePopoverContent v-if=\"open\" :aria-label=\"props.label\" :show-arrow=\"false\" :portal-target=\"host.target.value\" style=\"--qk-popover-padding: var(--qk-space-inline)\">\n <div ref=\"panel\">\n <QuireToolbar :label=\"props.label\" :items=\"items\" :context=\"context\" :renderers=\"renderers\" overflow=\"visible\" align=\"start\"\n class=\"qk-toolbar--overflow-panel\" @execute=\"execute\" @open-change=\"emit('openChange', $event)\">\n <template v-if=\"$slots.item\" #item=\"scope\"><slot name=\"item\" v-bind=\"scope\" /></template>\n <template v-if=\"$slots.content\" #content=\"scope\"><slot name=\"content\" v-bind=\"scope\" /></template>\n </QuireToolbar>\n </div>\n </QuirePopoverContent>\n </QuirePopoverRoot>\n </div>\n</template>\n","<script setup lang=\"ts\">\nimport { computed, provide, shallowRef } from \"vue\";\nimport type { QuireKitToolbarExecuteEvent, QuireKitToolbarOpenChangeEvent } from \"../../components/toolbar/types\";\nimport type { QuireKitToolbarProps as Props, QuireKitToolbarSlots as Slots } from \"./types\";\nimport ToolbarBody from \"./items/body.vue\";\nimport { useToolbarRoot } from \"./use-toolbar-root\";\nimport { toolbarLabelsKey, toolbarMobileKey, toolbarSizingKey } from \"./context\";\nimport { useToolbarMobile } from \"./presentation/mode\";\nimport { useToolbarScroll } from \"./scrolling/use-scroll\";\nimport { useToolbarCollapse } from \"./collapse/use-collapse\";\nimport ToolbarMore from \"./collapse/more.vue\";\nimport QuireIcon from \"../icon/icon.vue\";\nimport ToolbarTooltip from \"./presentation/tooltip.vue\";\nimport { toolbarScrollLeftIcon, toolbarScrollRightIcon } from \"./scrolling/icons\";\nimport { useQuireKitMessages } from \"../locale-provider/context\";\n\n// Public contracts live beside the root; this file owns only mounted behavior.\n\nconst {\n label,\n items,\n rows,\n renderers = {},\n context,\n preserveFocus = false,\n variant = \"plain\",\n mode = \"desktop\",\n overflowPortalTarget,\n overflowRestoreFocus = true,\n orientation = \"horizontal\",\n overflow,\n scrollbar = \"hidden\",\n align = \"center\",\n dir,\n loopFocus = true,\n id,\n sizing = \"natural\",\n unitsPerRow\n} = defineProps<Props>();\nconst text = useQuireKitMessages(\"toolbar\");\nprovide(toolbarSizingKey, computed(() => sizing));\nconst slots = defineSlots<Slots>();\nconst multirow = computed(() => !slots.default && rows !== undefined);\nconst resolvedOrientation = computed(() => multirow.value ? \"horizontal\" : orientation);\nconst emit = defineEmits<{\n /** Complete command intent for application or editor adapters. */\n execute: [event: QuireKitToolbarExecuteEvent];\n /** Popup transition; controlled entries write expanded back. */\n openChange: [event: QuireKitToolbarOpenChangeEvent];\n /** Overflow session and its original native trigger, before modal focus moves. */\n overflowOpenChange: [open: boolean, trigger: HTMLElement | null];\n /** Physical overflow mount/release for owner-local obstruction and focus interop. */\n overflowContentElementChange: [element: HTMLElement | null];\n /** Immediate action or nested menu command requested once. */\n select: [value: string];\n /** Host applies the requested toggle state to its data. */\n toggle: [value: string, pressed: boolean];\n}>();\nconst root = useToolbarRoot({\n orientation: () => resolvedOrientation.value,\n direction: () => dir,\n loopFocus: () => loopFocus\n});\nconst mobile = useToolbarMobile(root.element, () => mode);\nprovide(toolbarMobileKey, mobile);\nprovide(toolbarLabelsKey, computed(() => mobile.value && resolvedOrientation.value === \"vertical\"));\nconst effectiveOverflow = computed(() => overflow ?? (mobile.value && items !== undefined && !slots.default && rows === undefined ? \"collapse\" : \"scroll\"));\nconst overflowOpen = shallowRef(false), overflowSurface = shallowRef<HTMLElement | null>(null);\nconst scrolling = useToolbarScroll({\n root: root.element,\n orientation: () => resolvedOrientation.value,\n overflow: () => effectiveOverflow.value,\n direction: () => dir\n});\n\n// Collapse applies to configured single-row items; slots and explicit rows keep their own layout.\nconst collapsing = computed(() => (effectiveOverflow.value === \"collapse\" || overflowOpen.value || overflowSurface.value !== null) && resolvedOrientation.value === \"horizontal\" && !slots.default && rows === undefined && items !== undefined);\nconst collapse = useToolbarCollapse({ root: root.element, enabled: () => collapsing.value, items: () => items ?? [],\n paused: () => overflowOpen.value || overflowSurface.value !== null, metrics: () => mobile.value });\n\n/** @param open - Accepted overflow task state. @param trigger - Original operation entry. */\nfunction overflowChanged(open: boolean, trigger: HTMLElement | null): void { overflowOpen.value = open; emit(\"overflowOpenChange\", open, trigger); }\n/** @param element - Physical surface; retain collapse identity through its closing animation. */\nfunction overflowMounted(element: HTMLElement | null): void { overflowSurface.value = element; emit(\"overflowContentElementChange\", element); }\n\n/** @param event - Mouse press on a presentation-only scroll arrow. */\nfunction preserveScrollFocus(event: PointerEvent): void {\n if (event.pointerType === \"mouse\" && event.button === 0) event.preventDefault();\n}\n/** @param event - Accepted intent from one configured control. */\nfunction execute(event: QuireKitToolbarExecuteEvent): void {\n emit(\"execute\", event);\n if (event.source === \"toggle\") emit(\"toggle\", event.value, event.pressed === true);\n else emit(\"select\", event.value);\n}\n/** @param event - Pointer press; popup inputs and touch interaction retain native focus. */\nfunction preserveHostFocus(event: PointerEvent): void {\n if (!preserveFocus || event.pointerType !== \"mouse\" || event.button !== 0) return;\n const target = event.target;\n if (target instanceof Element && target.closest(\"[data-qk-toolbar-item]\")?.closest('[role=\"toolbar\"]') === event.currentTarget) event.preventDefault();\n}\n</script>\n\n<template>\n <div\n :id=\"id\"\n :ref=\"(element) => { root.element.value = element as HTMLElement | null }\"\n role=\"toolbar\"\n :aria-label=\"label\"\n :aria-orientation=\"resolvedOrientation\"\n :dir=\"dir\"\n :class=\"['qk-toolbar', `qk-toolbar--${resolvedOrientation}`, `qk-toolbar--${variant}`, mobile && 'qk-toolbar--mobile', resolvedOrientation === 'horizontal' && `qk-toolbar--align-${align}`, unitsPerRow !== undefined && 'qk-toolbar--wrap', collapsing && 'qk-toolbar--collapse']\"\n :style=\"unitsPerRow === undefined ? undefined : { '--qk-toolbar-units-per-row': String(unitsPerRow) }\"\n :data-overflowing=\"scrolling.overflowing.value\"\n @keydown=\"root.handleKeydown\"\n @pointerdown=\"preserveHostFocus\"\n @focusin=\"scrolling.revealFocused\"\n >\n <ToolbarTooltip v-if=\"scrolling.overflowing.value\" :label=\"text.scrollPrevious\">\n <button type=\"button\" tabindex=\"-1\"\n class=\"qk-toolbar__item qk-toolbar__scroll-button\" data-qk-toolbar-scroll=\"previous\"\n :aria-label=\"text.scrollPrevious\" :disabled=\"!scrolling.canPrevious.value\"\n @pointerdown=\"preserveScrollFocus\" @click=\"scrolling.scrollPage(-1)\">\n <QuireIcon :data=\"scrolling.rtl.value ? toolbarScrollRightIcon : toolbarScrollLeftIcon\" />\n </button>\n </ToolbarTooltip>\n <div :ref=\"element => { scrolling.viewport.value = element as HTMLElement | null }\"\n data-qk-toolbar-viewport :class=\"['qk-toolbar__viewport', scrolling.enabled.value ? `qk-toolbar__viewport--${scrollbar}` : 'qk-toolbar__viewport--visible']\"\n @scroll.passive=\"scrolling.updateEdges\" @wheel=\"scrolling.handleWheel\">\n <div :ref=\"element => { scrolling.content.value = element as HTMLElement | null }\"\n data-qk-toolbar-content :class=\"['qk-toolbar__content', multirow && 'qk-toolbar__content--rows', !scrolling.enabled.value && !multirow && 'qk-toolbar__content--visible']\">\n <slot>\n <ToolbarBody :items=\"collapsing ? collapse.visible.value : items\" :rows=\"rows\" :context=\"context\" :renderers=\"renderers\" :units=\"collapsing\"\n @execute=\"execute\" @open-change=\"emit('openChange', $event)\">\n <template v-if=\"$slots.item\" #item=\"scope\"><slot name=\"item\" v-bind=\"scope\" /></template>\n <template v-if=\"$slots.content\" #content=\"scope\"><slot name=\"content\" v-bind=\"scope\" /></template>\n </ToolbarBody>\n <ToolbarMore v-if=\"collapse.collapsed.value.length > 0\" :label=\"text.more\" :items=\"collapse.collapsed.value\" :context=\"context\" :renderers=\"renderers\" :mobile=\"mobile\" :portal-target=\"overflowPortalTarget\" :restore-focus=\"overflowRestoreFocus\"\n @execute=\"execute\" @open-change=\"emit('openChange', $event)\" @panel-open-change=\"overflowChanged\" @surface-change=\"overflowMounted\">\n <template v-if=\"$slots.item\" #item=\"scope\"><slot name=\"item\" v-bind=\"scope\" /></template>\n <template v-if=\"$slots.content\" #content=\"scope\"><slot name=\"content\" v-bind=\"scope\" /></template>\n </ToolbarMore>\n </slot>\n </div>\n </div>\n <ToolbarTooltip v-if=\"scrolling.overflowing.value\" :label=\"text.scrollNext\">\n <button type=\"button\" tabindex=\"-1\"\n class=\"qk-toolbar__item qk-toolbar__scroll-button\" data-qk-toolbar-scroll=\"next\"\n :aria-label=\"text.scrollNext\" :disabled=\"!scrolling.canNext.value\"\n @pointerdown=\"preserveScrollFocus\" @click=\"scrolling.scrollPage(1)\">\n <QuireIcon :data=\"scrolling.rtl.value ? toolbarScrollLeftIcon : toolbarScrollRightIcon\" />\n </button>\n </ToolbarTooltip>\n </div>\n</template>\n","<script setup lang=\"ts\">\nimport ToolbarTooltip from \"./tooltip.vue\";\n\n/** Composition shell for a single existing public form control in a Toolbar. */\ninterface Props {\n /** Accessible field name and default Tooltip explanation. */\n readonly label: string;\n /** Override the explanation; false delegates it to another compound owner. */\n readonly tooltip?: string | false | undefined;\n /** Explanation displayed while the field is unavailable. */\n readonly disabledReason?: string;\n /** Current field availability; also bind disabled to the slotted public field. */\n readonly disabled?: boolean;\n /** Optional intrinsic CSS width for the field, preserved during overflow. */\n readonly width?: string;\n /** Whether the field's interactive popup is open. */\n readonly expanded?: boolean;\n}\nwithDefaults(defineProps<Props>(), { tooltip: undefined });\ndefineOptions({ inheritAttrs: false });\ndefineSlots<{\n /** Existing Input, Select or Combobox; bind size to keep its public geometry aligned. */\n default: (scope: { readonly size: \"sm\" }) => unknown;\n}>();\n</script>\n\n<template>\n <ToolbarTooltip :label=\"label\" :tooltip=\"tooltip\" :disabled-reason=\"disabledReason\"\n :subject-disabled=\"disabled ?? false\" :suppressed=\"expanded ?? false\">\n <div v-bind=\"$attrs\" class=\"qk-toolbar__field\" :style=\"width === undefined ? undefined : { width }\">\n <slot size=\"sm\" />\n </div>\n </ToolbarTooltip>\n</template>\n","<script setup lang=\"ts\">\nimport ToolbarTooltip from \"./presentation/tooltip.vue\";\nimport { ColorPicker, useColorPickerContext } from \"@ark-ui/vue/color-picker\";\nimport { computed, inject } from \"vue\";\nimport { useToolbarItem } from \"./use-toolbar-item\";\nimport { toolbarSplitDisclosureDisabledKey } from \"./context\";\n\n/** Public properties for a Color Picker trigger in a Toolbar Split Button. */\ninterface Props {\n /** Tooltip explanation; defaults to the accessible label. */\n readonly tooltip?: string | false;\n /** Reason displayed while this control is unavailable. */\n readonly disabledReason?: string;\n /** Accessible action name for the color disclosure. */\n readonly label: string;\n /** 是否禁用执行与方向键聚焦;同时继承所在 Split Button 和 Color Picker 的禁用状态。 */\n readonly disabled?: boolean;\n /** Optional description element for a disabled reason. */\n readonly describedBy?: string;\n}\n\n/** Public slots for the Toolbar Color Picker disclosure. */\ninterface Slots {\n /** Disclosure artwork, normally a directional QuireIcon. */\n readonly default: () => unknown;\n}\n\nconst { label, disabled = false, describedBy, tooltip = undefined, disabledReason } = defineProps<Props>();\ndefineSlots<Slots>();\ndefineOptions({ inheritAttrs: false });\nconst picker = useColorPickerContext();\nconst splitDisabled = inject(toolbarSplitDisclosureDisabledKey, undefined);\nconst unavailable = computed(() => disabled || splitDisabled?.value === true\n || Boolean(picker.value.getSwatchTriggerProps({ value: picker.value.value }).disabled));\nconst item = useToolbarItem(() => unavailable.value);\n\n/**\n * Registers the native Ark trigger button instead of its Vue component proxy.\n *\n * @param element - Template ref value exposed by the Ark Trigger component.\n */\nfunction bindTriggerElement(element: unknown): void {\n if (element instanceof HTMLButtonElement) {\n item.element.value = element;\n return;\n }\n const componentRoot = typeof element === \"object\"\n && element !== null\n && \"$el\" in element\n ? element.$el\n : null;\n item.element.value = componentRoot instanceof HTMLButtonElement\n ? componentRoot\n : null;\n}\n\n/**\n * Prevents the Color Picker machine from opening through a disabled target.\n *\n * @param event - Native disclosure click captured before Ark handles it.\n */\nfunction guardDisabledActivation(event: MouseEvent): void {\n if (!unavailable.value) return;\n event.preventDefault();\n event.stopImmediatePropagation();\n}\n</script>\n\n<template>\n <ToolbarTooltip :trigger-id=\"picker.getTriggerProps().id\" :label=\"label\" :tooltip=\"tooltip\" :disabled-reason=\"disabledReason\" :subject-disabled=\"unavailable\" :suppressed=\"picker.open\">\n <ColorPicker.Trigger\n v-bind=\"$attrs\"\n :title=\"undefined\"\n :ref=\"bindTriggerElement\"\n type=\"button\"\n class=\"qk-toolbar__item qk-toolbar__icon-button\"\n :aria-label=\"label\"\n :aria-describedby=\"describedBy\"\n :aria-disabled=\"unavailable ? 'true' : undefined\"\n :tabindex=\"item.tabIndex.value\"\n :data-qk-toolbar-item=\"item.id\"\n data-kind=\"color-picker-disclosure\"\n @focus=\"item.handleFocus\"\n @click.capture=\"guardDisabledActivation\"\n >\n <span class=\"qk-toolbar__icon\" aria-hidden=\"true\"><slot /></span>\n </ColorPicker.Trigger>\n </ToolbarTooltip>\n</template>\n","<script setup lang=\"ts\">\nimport { computed } from 'vue';\nimport { TreeView, type TreeCollection } from '@ark-ui/vue/tree-view';\nimport type { QuireKitTreeNode } from '../../components/tree-view';\n\n/** Internal checkbox adaptation for upstream disabled-subtree semantics. */\ninterface Props {\n /** Current tree node. */\n readonly node: QuireKitTreeNode;\n /** Same collection used by the owning Ark tree. */\n readonly collection: TreeCollection<QuireKitTreeNode>;\n}\nconst props = defineProps<Props>();\nconst unavailable = computed(() => {\n const { node, collection } = props;\n if (node.disabled || collection.getParentNodes(node.id).some(parent => parent.disabled)) return true;\n return collection.isBranchNode(node) && !collection.getDescendantNodes(node.id).some(child =>\n !child.disabled && !collection.getParentNodes(child.id).some(parent => parent.disabled));\n});\n</script>\n\n<template>\n <TreeView.NodeCheckbox class=\"qk-tree-view__checkbox\" :aria-label=\"node.label\"\n :aria-disabled=\"unavailable || undefined\" :data-disabled=\"unavailable ? '' : undefined\"\n @click.capture=\"unavailable && $event.preventDefault()\">\n <span class=\"qk-tree-view__checkmark\" aria-hidden=\"true\" />\n <slot />\n </TreeView.NodeCheckbox>\n</template>\n","<script setup lang=\"ts\">\nimport { TreeView, type TreeCollection, type TreeViewNodeState } from \"@ark-ui/vue/tree-view\";\nimport TreeCheckbox from \"./tree-checkbox.vue\";\nimport type {\n QuireKitTreeNode,\n QuireKitTreeViewNodeSlotProps\n} from \"../../components/tree-view\";\n\n/** 递归 TreeView 节点的内部属性。 */\ninterface Props {\n /** 当前节点。 */\n readonly node: QuireKitTreeNode;\n /** Whether node text also toggles cascading checks. */\n readonly checkable?: boolean;\n /** 当前节点在 collection 中的索引路径。 */\n readonly indexPath: number[];\n /** Ark 当前拥有的树 collection。 */\n readonly collection: TreeCollection<QuireKitTreeNode>;\n}\n\n/** 递归节点向根适配器转发的插槽。 */\ninterface Slots {\n /** 渲染分支节点的内容。 */\n readonly branch?: (props: QuireKitTreeViewNodeSlotProps) => unknown;\n /** 渲染叶子节点的内容。 */\n readonly item?: (props: QuireKitTreeViewNodeSlotProps) => unknown;\n}\n\nconst props = defineProps<Props>();\ndefineSlots<Slots>();\n\n/**\n * 将 Ark 节点状态收窄为稳定的公开插槽合同。\n *\n * @param state - Ark/Zag 为当前节点计算的状态。\n * @returns 不暴露框架内部字段的插槽属性。\n */\nfunction getSlotProps(state: TreeViewNodeState): QuireKitTreeViewNodeSlotProps {\n return {\n node: props.node,\n indexPath: props.indexPath,\n depth: state.depth,\n isBranch: state.isBranch,\n expanded: state.expanded,\n selected: state.selected,\n focused: state.focused,\n disabled: state.disabled,\n loading: state.loading\n };\n}\n</script>\n\n<template>\n <TreeView.NodeProvider :node=\"node\" :index-path=\"indexPath\">\n <TreeView.NodeContext v-slot=\"state\">\n <TreeView.Branch v-if=\"state.isBranch\" class=\"qk-tree-view__branch\">\n <TreeView.BranchControl class=\"group qk-tree-view__branch-control\">\n <TreeView.BranchTrigger class=\"qk-tree-view__branch-trigger\">\n <TreeView.BranchIndicator class=\"qk-tree-view__branch-indicator\">\n <svg class=\"qk-tree-view__chevron\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"m9 6 6 6-6 6\" /></svg>\n </TreeView.BranchIndicator>\n </TreeView.BranchTrigger>\n <TreeView.BranchText class=\"qk-tree-view__node-text\">\n <TreeCheckbox v-if=\"checkable\" :node=\"node\" :collection=\"collection\">\n <slot name=\"branch\" v-bind=\"getSlotProps(state)\">\n <span class=\"qk-tree-view__label\">{{ node.label }}</span>\n </slot>\n </TreeCheckbox>\n <template v-else><slot name=\"branch\" v-bind=\"getSlotProps(state)\">\n <span class=\"qk-tree-view__label\">{{ node.label }}</span>\n </slot></template>\n </TreeView.BranchText>\n <span v-if=\"state.loading\" class=\"qk-tree-view__loading\" aria-hidden=\"true\" />\n </TreeView.BranchControl>\n <TreeView.BranchContent class=\"qk-tree-view__branch-content\">\n <TreeView.BranchIndentGuide class=\"qk-tree-view__indent-guide\" />\n <TreeNode\n v-for=\"(child, childIndex) in collection.getNodeChildren(node)\"\n :key=\"child.id\"\n :node=\"child\"\n :index-path=\"[...indexPath, childIndex]\"\n :collection=\"collection\"\n :checkable=\"checkable\"\n >\n <template #branch=\"slotProps\">\n <slot name=\"branch\" v-bind=\"slotProps\">\n <span class=\"qk-tree-view__label\">{{ slotProps.node.label }}</span>\n </slot>\n </template>\n <template #item=\"slotProps\">\n <slot name=\"item\" v-bind=\"slotProps\">\n <span class=\"qk-tree-view__label\">{{ slotProps.node.label }}</span>\n </slot>\n </template>\n </TreeNode>\n </TreeView.BranchContent>\n </TreeView.Branch>\n\n <TreeView.Item v-else class=\"group qk-tree-view__item\">\n <span class=\"qk-tree-view__item-spacer\" aria-hidden=\"true\" />\n <TreeView.ItemText class=\"qk-tree-view__node-text\">\n <TreeCheckbox v-if=\"checkable\" :node=\"node\" :collection=\"collection\">\n <slot name=\"item\" v-bind=\"getSlotProps(state)\">\n <span class=\"qk-tree-view__label\">{{ node.label }}</span>\n </slot>\n </TreeCheckbox>\n <template v-else><slot name=\"item\" v-bind=\"getSlotProps(state)\">\n <span class=\"qk-tree-view__label\">{{ node.label }}</span>\n </slot></template>\n </TreeView.ItemText>\n </TreeView.Item>\n </TreeView.NodeContext>\n </TreeView.NodeProvider>\n</template>\n","import { createTreeCollection, type TreeCollection } from \"@ark-ui/vue/tree-view\";\nimport { computed, shallowRef, watch } from \"vue\";\nimport type { QuireKitTreeNode } from \"../../components/tree-view\";\n\n/** Shared child list for leaves. */\nconst noChildren: readonly QuireKitTreeNode[] = Object.freeze([]);\n\n/**\n * Keeps supplied and asynchronously loaded nodes in the same tree collection.\n * @param nodes - Current root nodes supplied by the consumer.\n * @param label - Accessible name for the collection's synthetic root.\n * @param checkable - Restricts cascade descendants to enabled subtrees.\n * @returns The replaceable collection and its current root children.\n */\nexport function useTreeCollection(nodes: () => readonly QuireKitTreeNode[], label: () => string, checkable: () => boolean = () => false) {\n /** Retains cascade eligibility after Ark replaces a collection during async loading.\n * @param collection - Newly created or loaded tree collection.\n */\n function adaptChecks(collection: TreeCollection<QuireKitTreeNode>): void {\n // Ark owns cascade state, but its descendant lookup includes disabled leaves.\n // Prune disabled paths at this boundary so checking a parent cannot select them.\n if (checkable()) {\n const descendants = collection.getDescendantValues;\n collection.getDescendantValues = (value, options) => {\n const original = descendants(value, options);\n const enabled = original.filter(id => {\n const node = collection.findNode(id);\n return node !== undefined && !node.disabled && !collection.getParentNodes(id).some(parent => parent.disabled);\n });\n // An entirely disabled branch still needs its real descendants for state display.\n // The checkbox adapter prevents activation when this pool has no enabled leaves.\n return enabled.length ? enabled : original;\n };\n }\n }\n\n /** @returns A collection with stable values, readable labels and disabled state. */\n function createCollection() {\n const collection = createTreeCollection<QuireKitTreeNode>({\n rootNode: { id: \"__quirekit_tree_root__\", label: label(), children: [...nodes()] },\n nodeToValue: node => node.id,\n nodeToString: node => node.label,\n isNodeDisabled: node => node.disabled === true,\n // Ark reads children on every node-state query; consumer arrays are immutable\n // snapshots, so share them instead of copying per query.\n nodeToChildren: node => (node.children ?? noChildren) as QuireKitTreeNode[],\n nodeToChildrenCount: node => node.childrenCount\n ?? (node.children === undefined ? undefined : node.children.length)\n });\n adaptChecks(collection);\n return collection;\n }\n\n const collection = shallowRef(createCollection());\n const rootNodes = computed(() => collection.value.getNodeChildren(collection.value.rootNode));\n watch([nodes, checkable], () => { collection.value = createCollection(); });\n /** @param next - Ark's collection after a successful asynchronous child load. */\n function replaceCollection(next: TreeCollection<QuireKitTreeNode>): void {\n adaptChecks(next);\n collection.value = next;\n }\n return { collection, rootNodes, replaceCollection };\n}\n","<script setup lang=\"ts\">\nimport {\n TreeView,\n type TreeViewExpandedChangeDetails,\n type TreeViewLoadChildrenCompleteDetails,\n type TreeViewLoadChildrenDetails,\n type TreeViewLoadChildrenErrorDetails,\n type TreeViewSelectionChangeDetails\n} from \"@ark-ui/vue/tree-view\";\nimport { computed } from \"vue\";\nimport type {\n QuireKitTreeNode,\n QuireKitTreeViewExpandedChangeDetails as PublicExpandedChangeDetails,\n QuireKitTreeViewLoadChildren,\n QuireKitTreeViewLoadErrorDetails,\n QuireKitTreeViewNodeSlotProps,\n QuireKitTreeViewSelectionChangeDetails as PublicSelectionChangeDetails,\n QuireKitTreeViewSelectionAppearance,\n QuireKitTreeViewSelectionMode\n} from \"../../components/tree-view\";\nimport TreeNode from \"./tree-node.vue\";\nimport { useTreeCollection } from \"./use-collection\";\n\n/** Vue TreeView 的公开属性。 */\ninterface Props {\n /** TreeView 的可访问名称。 */\n readonly label: string;\n /** 显示级联复选框;Space 切换当前节点的勾选。 */\n readonly checkable?: boolean;\n /** 非受控的初始叶子勾选值。 */\n readonly defaultCheckedValue?: string[];\n /** 按 DOM 顺序组织的根节点。 */\n readonly nodes: readonly QuireKitTreeNode[];\n /** 未受控使用时初始展开的节点标识。 */\n readonly defaultExpandedValue?: string[];\n /** 未受控使用时初始选择的节点标识。 */\n readonly defaultSelectedValue?: string[];\n /** 单选或多选。 */\n readonly selectionMode?: QuireKitTreeViewSelectionMode;\n /** 选中节点使用背景或主题色文字反馈。 */\n readonly selectionAppearance?: QuireKitTreeViewSelectionAppearance;\n /** 是否显示层级引导线;默认显示,关闭时保留节点缩进。 */\n readonly showIndentGuides?: boolean;\n /** 点击分支正文时是否同时展开或收起。 */\n readonly expandOnClick?: boolean;\n /** 是否启用按可见文本首字符导航。 */\n readonly typeahead?: boolean;\n /** 按需加载尚不存在的直接子节点。 */\n readonly loadChildren?: QuireKitTreeViewLoadChildren;\n /** 是否延迟挂载从未展开过的分支内容。 */\n readonly lazyMount?: boolean;\n /** 分支收起后是否卸载其内容。 */\n readonly unmountOnExit?: boolean;\n}\n\n/** TreeView 的可替换内容位置。 */\ninterface Slots {\n /** 替换每个分支节点的可见内容。 */\n readonly branch?: (props: QuireKitTreeViewNodeSlotProps) => unknown;\n /** 替换每个叶子节点的可见内容。 */\n readonly item?: (props: QuireKitTreeViewNodeSlotProps) => unknown;\n}\n\n/** TreeView 发出的公开语义事件。 */\ninterface Emits {\n /** 展开集合变化后触发。 */\n expandedChange: [details: PublicExpandedChangeDetails];\n /** 选择集合变化后触发。 */\n selectionChange: [details: PublicSelectionChangeDetails];\n /** 异步子节点加载并写入 collection 后触发。 */\n loadChildrenComplete: [nodes: readonly QuireKitTreeNode[]];\n /** 一个或多个异步分支加载失败后触发。 */\n loadChildrenError: [details: readonly QuireKitTreeViewLoadErrorDetails[]];\n}\n\nconst props = withDefaults(defineProps<Props>(), {\n checkable: false,\n defaultCheckedValue: () => [],\n defaultExpandedValue: () => [],\n defaultSelectedValue: () => [],\n selectionMode: \"single\",\n selectionAppearance: \"background\",\n showIndentGuides: true,\n expandOnClick: true,\n typeahead: true,\n lazyMount: false,\n unmountOnExit: false\n});\nconst checkedValue = defineModel<string[] | undefined>(\"checkedValue\");\nconst expandedValue = defineModel<string[] | undefined>(\"expandedValue\");\nconst selectedValue = defineModel<string[] | undefined>(\"selectedValue\");\nconst emit = defineEmits<Emits>();\ndefineSlots<Slots>();\n\nconst { collection, rootNodes, replaceCollection } = useTreeCollection(() => props.nodes, () => props.label, () => props.checkable);\nconst optionalRootProps = computed(() => ({\n ...(checkedValue.value === undefined\n ? { defaultCheckedValue: props.defaultCheckedValue }\n : { checkedValue: checkedValue.value }),\n ...(expandedValue.value === undefined\n ? { defaultExpandedValue: props.defaultExpandedValue }\n : { expandedValue: expandedValue.value }),\n ...(selectedValue.value === undefined\n ? { defaultSelectedValue: props.defaultSelectedValue }\n : { selectedValue: selectedValue.value }),\n ...(props.loadChildren === undefined ? {} : { loadChildren: loadNodeChildren })\n}));\n\n/**\n * 将公开加载函数装配为 Ark 的可取消异步合同。\n *\n * @param details - 待加载节点与本次加载的取消信号。\n * @returns 新加载的直接子节点。\n */\nasync function loadNodeChildren(\n details: TreeViewLoadChildrenDetails<QuireKitTreeNode>\n): Promise<QuireKitTreeNode[]> {\n const children = await props.loadChildren!(details.node, details.signal);\n return [...children];\n}\n\n/**\n * 同步并公开展开状态。\n *\n * @param details - Ark 报告的展开状态详情。\n */\nfunction handleExpandedChange(details: TreeViewExpandedChangeDetails<QuireKitTreeNode>): void {\n expandedValue.value = details.expandedValue;\n emit(\"expandedChange\", {\n expandedValue: details.expandedValue,\n focusedValue: details.focusedValue\n });\n}\n\n/**\n * 同步并公开选择状态。\n *\n * @param details - Ark 报告的选择状态详情。\n */\nfunction handleSelectionChange(details: TreeViewSelectionChangeDetails<QuireKitTreeNode>): void {\n selectedValue.value = details.selectedValue;\n emit(\"selectionChange\", {\n selectedValue: details.selectedValue,\n focusedValue: details.focusedValue\n });\n}\n\n/**\n * 接管 Ark 返回的新 collection,使异步节点立即进入递归渲染。\n *\n * @param details - 包含已替换子节点的新 collection。\n */\nfunction handleLoadComplete(\n details: TreeViewLoadChildrenCompleteDetails<QuireKitTreeNode>\n): void {\n replaceCollection(details.collection);\n emit(\"loadChildrenComplete\", rootNodes.value);\n}\n\n/**\n * 将 Ark 的批量失败详情收窄为稳定公开合同。\n *\n * @param details - 一个或多个节点的加载失败详情。\n */\nfunction handleLoadError(details: TreeViewLoadChildrenErrorDetails<QuireKitTreeNode>): void {\n emit(\n \"loadChildrenError\",\n details.nodes.map(({ node, error }) => ({ node, error }))\n );\n}\n/** Delegates checkable Space activation to Ark's checkbox rather than row selection.\n * @param event - Keyboard event from the tree's current roving treeitem.\n */\nfunction checkWithKeyboard(event: KeyboardEvent): void {\n if (!props.checkable || event.key !== \" \" || event.altKey || event.ctrlKey || event.metaKey || event.isComposing) return;\n const item = event.target as HTMLElement;\n if (item.getAttribute(\"role\") !== \"treeitem\" || item.hasAttribute(\"data-disabled\")) return;\n event.preventDefault();\n event.stopPropagation();\n item.querySelector<HTMLElement>('[data-part=\"node-checkbox\"]')?.click();\n}\n</script>\n\n<template>\n <TreeView.Root\n v-bind=\"optionalRootProps\"\n :collection=\"collection\"\n :selection-mode=\"selectionMode\"\n :expand-on-click=\"expandOnClick\"\n :typeahead=\"typeahead\"\n :lazy-mount=\"lazyMount\"\n :unmount-on-exit=\"unmountOnExit\"\n :class=\"['qk-tree-view', `qk-tree-view--selection-${selectionAppearance}`, !showIndentGuides && 'qk-tree-view--hide-guides']\"\n @checked-change=\"checkedValue = $event.checkedValue\"\n @keydown.capture=\"checkWithKeyboard\"\n @expanded-change=\"handleExpandedChange\"\n @selection-change=\"handleSelectionChange\"\n @load-children-complete=\"handleLoadComplete\"\n @load-children-error=\"handleLoadError\"\n >\n <TreeView.Label class=\"qk-tree-view__root-label\">{{ label }}</TreeView.Label>\n <TreeView.Tree :aria-label=\"label\" class=\"qk-tree-view__tree\">\n <TreeNode\n v-for=\"(node, index) in rootNodes\"\n :key=\"node.id\"\n :node=\"node\"\n :index-path=\"[index]\"\n :collection=\"collection\"\n :checkable=\"checkable\"\n >\n <template #branch=\"slotProps\">\n <slot name=\"branch\" v-bind=\"slotProps\">\n <span class=\"qk-tree-view__label\">{{ slotProps.node.label }}</span>\n </slot>\n </template>\n <template #item=\"slotProps\">\n <slot name=\"item\" v-bind=\"slotProps\">\n <span class=\"qk-tree-view__label\">{{ slotProps.node.label }}</span>\n </slot>\n </template>\n </TreeNode>\n </TreeView.Tree>\n </TreeView.Root>\n</template>\n","<script setup lang=\"ts\">\nimport { Toast, Toaster, type ToastOptions } from \"@ark-ui/vue/toast\";\nimport type {\n QuireKitToastAppearance,\n QuireKitToastType\n} from \"../../components/toast\";\nimport QuireIcon from \"../icon/icon.vue\";\nimport type { QuireKitToaster } from \"./create-toaster\";\nimport { useQuireKitMessages } from \"../locale-provider/context\";\n\n/** Vue Toast 视口的公开属性。 */\ninterface Props {\n /** 由 createQuireKitToaster 创建的通知实例。 */\n readonly toaster: QuireKitToaster;\n /** 是否显示与状态匹配的默认图标。 */\n readonly showIcon?: boolean;\n /** Toast 的视觉外观;accent 增加轻底色图标容器与前导状态强调。 */\n readonly appearance?: QuireKitToastAppearance;\n}\n\n/** Toast 允许替换的局部内容。 */\ninterface Slots {\n /** 替换默认状态图标,同时保留其布局与语义位置。 */\n readonly icon?: (props: {\n /** 当前 Toast 的创建参数。 */\n readonly toast: ToastOptions;\n /** 当前状态对应的默认图标名。 */\n readonly iconName: ToastIconName;\n }) => unknown;\n}\n\n/** Toast 内建状态对应的已注册图标名。 */\ntype ToastIconName = \"circleInfo\" | \"circleCheck\" | \"triangleAlert\" | \"circleX\" | \"loaderCircle\";\n\nwithDefaults(defineProps<Props>(), {\n showIcon: true,\n appearance: \"outline\"\n});\ndefineSlots<Slots>();\nconst text = useQuireKitMessages(\"toast\");\n\n/**\n * 将 Ark Toast 状态映射到 QuireKit 已审核图标。\n *\n * @param type - Toast 当前状态类型。\n * @returns 对应的稳定图标注册名。\n */\nfunction getIconName(type: string | undefined): ToastIconName {\n if (type === \"success\") return \"circleCheck\";\n if (type === \"warning\") return \"triangleAlert\";\n if (type === \"error\") return \"circleX\";\n if (type === \"loading\") return \"loaderCircle\";\n return \"circleInfo\";\n}\n\n/**\n * 将开放字符串类型收窄到 QuireKit 的内建视觉状态。\n *\n * @param type - Ark 允许扩展的 Toast 类型。\n * @returns 可用于稳定 class 的内建状态。\n */\nfunction getVisualType(type: string | undefined): QuireKitToastType {\n if (type === \"success\" || type === \"warning\" || type === \"error\" || type === \"loading\") {\n return type;\n }\n return \"info\";\n}\n</script>\n\n<template>\n <Toaster :toaster=\"toaster\" class=\"qk-toast__group\">\n <template #default=\"toast\">\n <Toast.Root\n :class=\"[\n 'qk-toast',\n `qk-toast--${getVisualType(toast.type)}`,\n `qk-toast--appearance-${appearance}`\n ]\"\n >\n <span v-if=\"showIcon\" class=\"qk-toast__icon\" aria-hidden=\"true\">\n <slot name=\"icon\" :toast=\"toast\" :icon-name=\"getIconName(toast.type)\">\n <QuireIcon\n :name=\"getIconName(toast.type)\"\n :class=\"{ 'qk-toast__spinner': toast.type === 'loading' }\"\n :size=\"20\"\n />\n </slot>\n </span>\n\n <span class=\"qk-toast__body\">\n <Toast.Title v-if=\"toast.title\" class=\"qk-toast__title\">\n {{ toast.title }}\n </Toast.Title>\n <Toast.Description v-if=\"toast.description\" class=\"qk-toast__description\">\n {{ toast.description }}\n </Toast.Description>\n </span>\n\n <Toast.ActionTrigger\n v-if=\"toast.action\"\n class=\"qk-toast__action qk-button qk-button--neutral-ghost qk-button--sm\"\n >\n {{ toast.action.label }}\n </Toast.ActionTrigger>\n\n <Toast.CloseTrigger\n v-if=\"toast.closable\"\n :aria-label=\"text.close\"\n class=\"qk-toast__close-trigger\"\n >\n <QuireIcon name=\"close\" :size=\"16\" />\n </Toast.CloseTrigger>\n </Toast.Root>\n </template>\n </Toaster>\n</template>\n","import {\n createToaster,\n type CreateToasterProps,\n type CreateToasterReturn,\n type ToastPromiseOptions\n} from \"@ark-ui/vue/toast\";\n\n/** QuireKit Toast 接受的标题和说明内容。 */\nexport type QuireKitToastContent = string;\n\n/** 复用 Ark/Zag 队列和生命周期的 Toast store。 */\nexport type QuireKitToaster = CreateToasterReturn<QuireKitToastContent>;\n\n/** 单条 Toast 创建参数,由 Ark/Zag 的 store 合同推导。 */\nexport type QuireKitToastOptions = Parameters<QuireKitToaster[\"create\"]>[0];\n\n/** Promise Toast 的状态参数,由 Ark/Zag 的 store 合同推导。 */\nexport type QuireKitToastPromiseOptions<T> = ToastPromiseOptions<T, QuireKitToastContent>;\n\n/**\n * 创建一个由 Ark/Zag 唯一管理队列、计时器和 Promise 生命周期的 Toast store。\n *\n * @param props - 固定位置、数量、重叠、时长与安全区偏移。\n * @returns 可在业务逻辑与 QuireToaster 之间共享的 store。\n */\nexport function createQuireKitToaster(props: CreateToasterProps): QuireKitToaster {\n return createToaster<QuireKitToastContent>(props);\n}\n\nexport type { CreateToasterProps as QuireKitCreateToasterProps };\n","<script setup lang=\"ts\">\nimport { Editable } from \"@ark-ui/vue/editable\";\nimport { computed, useId } from \"vue\";\nimport type { QuireKitEditableActivationMode, QuireKitEditableSubmitMode, QuireKitEditableValueDetails, QuireKitEditableEditDetails, QuireKitEditableSlotProps } from \"../../components/editable\";\nimport QuireIcon from \"../icon/icon.vue\";\nimport { useQuireKitMessages } from \"../locale-provider/context\";\n\n/** 就地编辑的公开属性。 */\ninterface Props {\n /** 可见的字段名称。 */\n readonly label: string;\n /** 是否仅在视觉上隐藏字段名称,同时保留可访问名称。 */\n readonly hideLabel?: boolean;\n /** 未受控初始文本。 */\n readonly defaultValue?: string;\n /** 预览与输入的空值提示;省略时使用语言包的通用提示。 */\n readonly placeholder?: string;\n /** 操作说明。 */\n readonly description?: string;\n /** 宿主校验的恢复说明;省略时使用语言包的通用提示。 */\n readonly errorText?: string;\n /** 预览内容如何进入编辑模式。 */\n readonly activationMode?: QuireKitEditableActivationMode;\n /** Enter、失焦或仅按钮提交。 */\n readonly submitMode?: QuireKitEditableSubmitMode;\n /** 是否根据内容自动调整输入宽度。 */\n readonly autoResize?: boolean;\n /** 初始是否处于编辑模式。 */\n readonly defaultEdit?: boolean;\n /** 聚焦时是否选中全部文本。 */\n readonly selectOnFocus?: boolean;\n /** 是否显示默认编辑、提交和取消按钮。 */\n readonly controls?: boolean;\n /** 最多输入的字符数。 */\n readonly maxLength?: number;\n /** 原生表单字段名。 */\n readonly name?: string;\n /** 外部表单 id。 */\n readonly form?: string;\n /** 是否禁用交互。 */\n readonly disabled?: boolean;\n /** 是否只读。 */\n readonly readOnly?: boolean;\n /** 是否必填。 */\n readonly required?: boolean;\n /** 宿主校验状态;不自动拦截提交。 */\n readonly invalid?: boolean;\n}\n\n/** 就地编辑的内容位置。 */\ninterface Slots {\n /** 自定义预览内容,保留进入编辑和焦点操作。 */\n readonly preview?: (props: QuireKitEditableSlotProps) => unknown;\n /** 自定义编辑、提交和取消操作。 */\n readonly controls?: (props: QuireKitEditableSlotProps) => unknown;\n}\n\n/** 就地编辑的语义事件。 */\ninterface Emits {\n /** 每次输入变化。 */\n valueChange: [details: QuireKitEditableValueDetails];\n /** 用户提交文本;适合绑定持久化。 */\n valueCommit: [details: QuireKitEditableValueDetails];\n /** 用户取消并恢复进入编辑前的文本。 */\n valueRevert: [details: QuireKitEditableValueDetails];\n /** 编辑模式变化。 */\n editChange: [details: QuireKitEditableEditDetails];\n}\n\nconst props = withDefaults(defineProps<Props>(), {\n defaultValue: \"\", activationMode: \"click\", submitMode: \"both\",\n autoResize: false, defaultEdit: false, selectOnFocus: true, controls: true,\n disabled: false, readOnly: false, required: false, invalid: false, hideLabel: false\n});\nconst modelValue = defineModel<string | undefined>();\nconst edit = defineModel<boolean | undefined>(\"edit\", { default: undefined });\nconst emit = defineEmits<Emits>();\ndefineSlots<Slots>();\nconst text = useQuireKitMessages(\"editable\");\nconst messageId = `qk-editable-${useId()}-message`;\nconst message = computed(() => props.invalid ? props.errorText ?? text.value.invalid : props.description);\nconst bindings = computed(() => ({\n ...(modelValue.value === undefined ? { defaultValue: props.defaultValue } : { modelValue: modelValue.value }),\n ...(edit.value === undefined ? { defaultEdit: props.defaultEdit } : { edit: edit.value }),\n ...(props.maxLength === undefined ? {} : { maxLength: props.maxLength }),\n ...(props.name === undefined ? {} : { name: props.name }),\n ...(props.form === undefined ? {} : { form: props.form })\n}));\n</script>\n\n<template>\n <Editable.Root\n v-bind=\"bindings\" class=\"qk-editable\" :activation-mode=\"activationMode\" :submit-mode=\"submitMode\"\n :auto-resize=\"autoResize\" :select-on-focus=\"selectOnFocus\" :placeholder=\"placeholder ?? text.placeholder\"\n :disabled=\"disabled\" :read-only=\"readOnly\" :required=\"required\" :invalid=\"invalid\"\n :translations=\"{ edit: text.edit(label), submit: text.submit(label), cancel: text.cancel(label), input: label }\"\n @update:model-value=\"modelValue = $event\" @update:edit=\"edit = $event\"\n @value-change=\"emit('valueChange', $event)\" @value-commit=\"emit('valueCommit', $event)\"\n @value-revert=\"emit('valueRevert', $event)\" @edit-change=\"emit('editChange', $event)\"\n >\n <Editable.Label class=\"qk-editable__label\" :data-hidden=\"hideLabel ? '' : undefined\">{{ label }}</Editable.Label>\n <Editable.Context v-slot=\"editable\">\n <div class=\"qk-editable__row\">\n <Editable.Area class=\"qk-editable__area\" :data-autoresize=\"autoResize ? '' : undefined\">\n <!-- Vue owns slot children; override Zag's innerHTML projection to avoid replacing their DOM. -->\n <Editable.Preview class=\"qk-editable__preview\" v-bind=\"{ innerHTML: undefined }\" :aria-describedby=\"message ? messageId : undefined\">\n <slot name=\"preview\" v-bind=\"editable\">{{ editable.valueText }}</slot>\n </Editable.Preview>\n <Editable.Input class=\"qk-editable__input\" :aria-describedby=\"message ? messageId : undefined\" />\n </Editable.Area>\n <Editable.Control v-if=\"controls && !readOnly\" class=\"qk-editable__controls\" :data-default=\"$slots.controls ? undefined : ''\">\n <slot name=\"controls\" v-bind=\"editable\">\n <template v-if=\"editable.editing\">\n <Editable.SubmitTrigger class=\"qk-editable__action\"><QuireIcon name=\"check\" :size=\"16\" /></Editable.SubmitTrigger>\n <Editable.CancelTrigger class=\"qk-editable__action\"><QuireIcon name=\"close\" :size=\"16\" /></Editable.CancelTrigger>\n </template>\n <Editable.EditTrigger v-else class=\"qk-editable__action\"><QuireIcon name=\"edit\" :size=\"16\" /></Editable.EditTrigger>\n </slot>\n </Editable.Control>\n </div>\n </Editable.Context>\n <p v-if=\"message\" :id=\"messageId\" class=\"qk-editable__message\" :data-invalid=\"invalid ? '' : undefined\" :role=\"invalid ? 'alert' : undefined\">{{ message }}</p>\n </Editable.Root>\n</template>\n","import { createGridCollection, createListCollection } from \"@ark-ui/vue/collection\";\nimport type { GridCollection, ListCollection } from \"@ark-ui/vue/collection\";\nimport type {\n QuireKitListboxGroup,\n QuireKitListboxItem,\n QuireKitListboxLayout\n} from \"../../components/listbox\";\n\n/**\n * 按首次组名组织可见项,使 DOM 和 collection 消费完全相同的顺序。\n *\n * @param items - 宿主提供的当前可见候选。\n * @returns 按首次组名排序、组内稳定的候选分组。\n */\nexport function groupListboxItems(items: readonly QuireKitListboxItem[]): QuireKitListboxGroup[] {\n const groups = new Map<string | undefined, QuireKitListboxItem[]>();\n for (const item of items) {\n const group = groups.get(item.group) ?? [];\n group.push(item);\n groups.set(item.group, group);\n }\n return [...groups].map(([label, entries]) => ({ label, items: entries }));\n}\n\n/**\n * 校验稳定标识与布局约束,把导航权威委托给 Ark 的 collection。\n *\n * @param items - 已按实际 DOM 分组顺序排列的可见候选。\n * @param layout - 线性列表或二维网格。\n * @param columnCount - 网格视觉布局对应的正整数列数。\n * @param loopFocus - 是否使未显式提供 loop 的网格行导航沿当前列环回。\n * @returns 供同一个 Ark Listbox Root 使用的集合。\n */\nexport function createListboxCollection(\n items: readonly QuireKitListboxItem[],\n layout: QuireKitListboxLayout,\n columnCount: number,\n loopFocus = false\n): ListCollection<QuireKitListboxItem> | GridCollection<QuireKitListboxItem> {\n const values = new Set<string>();\n for (const item of items) {\n if (item.value.trim() === \"\" || values.has(item.value)) {\n throw new Error(\"QuireListbox items require non-empty, unique values.\");\n }\n if (layout === \"grid\" && item.group !== undefined) {\n throw new Error(\"QuireListbox grid layout does not support grouped items.\");\n }\n values.add(item.value);\n }\n const options = {\n items: [...items],\n itemToValue: (item: QuireKitListboxItem) => item.value,\n itemToString: (item: QuireKitListboxItem) => item.label,\n isItemDisabled: (item: QuireKitListboxItem) => item.disabled === true\n };\n if (layout === \"list\") return createListCollection(options);\n if (!Number.isInteger(columnCount) || columnCount < 1) {\n throw new Error(\"QuireListbox columnCount must be a positive integer.\");\n }\n const grid = createGridCollection({ ...options, columnCount });\n const nextRow = grid.getNextRowValue;\n const previousRow = grid.getPreviousRowValue;\n // Zag 1.43.3 omits loopFocus when calling these public methods; retain its selection machine.\n /**\n * @param value - 当前高亮值。\n * @param loop - 显式策略,省略时使用列表的 loopFocus。\n * @returns 由 GridCollection 计算的下一行可用值。\n */\n grid.getNextRowValue = (value, loop = loopFocus) => nextRow(value, loop);\n /**\n * @param value - 当前高亮值。\n * @param loop - 显式策略,省略时使用列表的 loopFocus。\n * @returns 由 GridCollection 计算的上一行可用值。\n */\n grid.getPreviousRowValue = (value, loop = loopFocus) => previousRow(value, loop);\n return grid;\n}\n\n/**\n * 阻止上游批量选择新增禁用项,同时保留已存在但暂时不可编辑的选择。\n *\n * @param proposed - Ark 本次提出的完整选择。\n * @param current - 宿主已经持有的选择。\n * @param items - 当前可见选项及其禁用状态。\n * @returns 去重且不包含新增禁用项的选择值。\n */\nexport function filterListboxSelection(\n proposed: readonly string[],\n current: readonly string[],\n items: readonly QuireKitListboxItem[]\n): string[] {\n const disabled = new Set(items.filter(item => item.disabled).map(item => item.value));\n const selected = new Set(current);\n return [...new Set(proposed)].filter(value => !disabled.has(value) || selected.has(value));\n}\n","/**\n * Guards activation before the locked Ark keyboard handler receives the event.\n *\n * @param event - Native key event captured by the single Listbox focus owner.\n * @param disabled - Whether the whole Listbox is unavailable.\n * @param highlightedDisabled - Whether the current visible candidate became disabled.\n */\nexport function guardListboxActivation(\n event: KeyboardEvent,\n disabled: boolean,\n highlightedDisabled: boolean\n): void {\n const space = event.key === \" \" || event.key === \"Spacebar\";\n if (disabled || (!space && event.key !== \"Enter\")) return;\n\n // Ark 5.39.1 does not check these cancellation boundaries in its activation branch.\n if (event.defaultPrevented || event.isComposing || event.keyCode === 229) {\n event.stopImmediatePropagation();\n return;\n }\n if (highlightedDisabled) {\n event.preventDefault();\n event.stopImmediatePropagation();\n return;\n }\n\n // Only cancel the browser's page-scroll default; Ark still owns the actual selection.\n if (space) event.preventDefault();\n}\n","<script setup lang=\"ts\">\nimport { Listbox, useListboxContext } from \"@ark-ui/vue/listbox\";\nimport { computed, useId } from \"vue\";\nimport type { QuireKitListboxItem, QuireKitListboxItemSlotProps } from \"../../components/listbox\";\nimport QuireIcon from \"../icon/icon.vue\";\n\n/** 保留上游 option identity 的私有呈现属性。 */\ninterface Props {\n /** 当前可见候选。 */\n readonly item: QuireKitListboxItem;\n /** 组合配方明确附加到 option 根节点的类。 */\n readonly itemClass?: string | undefined;\n}\n\n/** 同源公开 item 插槽的透传合同。 */\ninterface Slots {\n /** 替换全部非交互条目内容。 */\n readonly default?: (props: QuireKitListboxItemSlotProps) => unknown;\n}\n\nconst props = defineProps<Props>();\ndefineSlots<Slots>();\nconst emit = defineEmits<{\n /** Reports a valid native option click after the existing selection handler. */\n select: [value: string];\n}>();\nconst listbox = useListboxContext();\nconst state = computed(() => listbox.value.getItemState({ item: props.item }));\nconst descriptionId = useId();\n\n/**\n * Keeps the pressed option under the pointer while the machine takes focus.\n * @param event - Native option press before Ark's bubbling mousedown handler.\n */\nfunction focusWithoutScroll(event: MouseEvent): void {\n if (event.defaultPrevented || event.button !== 0 || state.value.disabled) return;\n const id = listbox.value.getContentProps().id;\n if (typeof id !== \"string\") return;\n const owner = (event.currentTarget as HTMLElement).ownerDocument;\n // Ark may focus again; the already focused element then preserves scroll and click targeting.\n owner.getElementById(id)?.focus({ preventScroll: true });\n}\n\n/**\n * Reports explicit pointer activation independently from a changed selection.\n * @param event - Native option click already offered to the headless item.\n */\nfunction select(event: MouseEvent): void {\n if (event.defaultPrevented || event.button !== 0 || state.value.disabled) return;\n emit(\"select\", props.item.value);\n}\n</script>\n\n<template>\n <Listbox.Item\n :item=\"item\"\n :class=\"['qk-listbox__item', itemClass]\"\n :aria-label=\"item.label\"\n :aria-describedby=\"item.description ? descriptionId : undefined\"\n :data-focus-visible=\"state.focusVisible ? '' : undefined\"\n @mousedown.capture=\"focusWithoutScroll\"\n @click=\"select\"\n >\n <slot :item=\"item\" :selected=\"state.selected\" :highlighted=\"listbox.highlightedValue === item.value\" :disabled=\"state.disabled\">\n <span class=\"qk-listbox__item-copy\">\n <Listbox.ItemText class=\"qk-listbox__item-label\">{{ item.label }}</Listbox.ItemText>\n <span v-if=\"item.description\" class=\"qk-listbox__item-description\" aria-hidden=\"true\">{{ item.description }}</span>\n </span>\n <span class=\"qk-listbox__indicator\" aria-hidden=\"true\">\n <QuireIcon v-if=\"state.selected\" name=\"check\" :size=\"16\" />\n </span>\n </slot>\n <span v-if=\"item.description\" :id=\"descriptionId\" class=\"qk-listbox__visually-hidden\">{{ item.description }}</span>\n </Listbox.Item>\n</template>\n","<script setup lang=\"ts\">\nimport type { QuireKitListDensity } from \"../../components/control\";\n\nimport { Listbox, useListbox } from \"@ark-ui/vue/listbox\";\nimport type { ListboxHighlightChangeDetails, ListboxValueChangeDetails } from \"@ark-ui/vue/listbox\";\nimport { computed, ref } from \"vue\";\nimport type {\n QuireKitListboxGroup,\n QuireKitListboxHighlightChangeDetails,\n QuireKitListboxItem,\n QuireKitListboxItemSlotProps,\n QuireKitListboxLayout,\n QuireKitListboxSelectionMode,\n QuireKitListboxValueChangeDetails\n} from \"../../components/listbox\";\nimport { createListboxCollection, filterListboxSelection, groupListboxItems } from \"./collection\";\nimport { guardListboxActivation } from \"./keyboard\";\nimport ListboxItem from \"./item.vue\";\nimport { useQuireKitMessages } from \"../locale-provider/context\";\n\n/** 常驻 Listbox 的公开属性。 */\ninterface Props {\n /** Option content density, independent of the containing layout. */\n readonly density?: QuireKitListDensity;\n /** 可见标签和列表的可访问名称。 */\n readonly label: string;\n /** 当前可见选项;过滤不会自动清空暂时不可见的选择。 */\n readonly items: readonly QuireKitListboxItem[];\n /** 非受控使用时的初始选择。 */\n readonly defaultValue?: string[];\n /** 非受控高亮的初始值。 */\n readonly defaultHighlightedValue?: string | null;\n /** 单选、无修饰键多选或使用修饰键的扩展多选。 */\n readonly selectionMode?: QuireKitListboxSelectionMode;\n /** 线性列表或支持二维导航的网格。 */\n readonly layout?: QuireKitListboxLayout;\n /** 网格布局和二维导航使用的正整数列数。 */\n readonly columnCount?: number;\n /** 是否禁止整个列表的选择和键盘导航。 */\n readonly disabled?: boolean;\n /** 方向键到达边界后是否循环;网格上下导航沿同列循环。 */\n readonly loopFocus?: boolean;\n /** 是否启用按标签前缀导航。 */\n readonly typeahead?: boolean;\n /** 键盘高亮变化时是否同时更新选择;默认不更新。 */\n readonly selectOnHighlight?: boolean;\n /** 是否允许重新选择或 Escape 清空选择。 */\n readonly deselectable?: boolean;\n /** 是否禁止 Ctrl / Command+A 全选。 */\n readonly disallowSelectAll?: boolean;\n /** 是否仅在视觉上隐藏标签。 */\n readonly hideLabel?: boolean;\n /** 附加到选项根节点的自定义类。 */\n readonly itemClass?: string;\n /** 附加到可滚动内容区的自定义类。 */\n readonly contentClass?: string;\n}\n\n/** 可替换的非交互内容。 */\ninterface Slots {\n /** 完整替换条目预览;不得内嵌交互控件。 */\n readonly item?: (props: QuireKitListboxItemSlotProps) => unknown;\n /** 替换组标题,不替换分组与选项语义。 */\n readonly groupLabel?: (props: QuireKitListboxGroup) => unknown;\n /** 没有可见候选时的恢复内容。 */\n readonly empty?: () => unknown;\n}\n\n/** 列表选择与候选导航各自的公开事件。 */\ninterface Emits {\n /** 单选模式中显式提交可用项,包含再次提交已选项;导航和程序更新不触发。 */\n select: [value: string];\n /** 一次完整的选择值更新。 */\n valueChange: [details: QuireKitListboxValueChangeDetails];\n /** 一次高亮候选变化,不隐式代表值选择。 */\n highlightChange: [details: QuireKitListboxHighlightChangeDetails];\n}\n\nconst props = withDefaults(defineProps<Props>(), {\n defaultValue: () => [],\n defaultHighlightedValue: null,\n selectionMode: \"single\",\n layout: \"list\",\n columnCount: 1,\n disabled: false,\n loopFocus: false,\n typeahead: true,\n selectOnHighlight: false,\n deselectable: false,\n disallowSelectAll: false,\n hideLabel: false\n});\nconst text = useQuireKitMessages(\"listbox\");\nconst value = defineModel<string[] | undefined>();\nconst highlightedValue = defineModel<string | null | undefined>(\"highlightedValue\");\nconst emit = defineEmits<Emits>();\ndefineSlots<Slots>();\nconst internalValue = ref([...props.defaultValue]);\nconst currentValue = computed(() => value.value ?? internalValue.value);\nconst groups = computed(() => groupListboxItems(props.items));\nconst orderedItems = computed(() => groups.value.flatMap(group => group.items));\nconst collection = computed(() => createListboxCollection(orderedItems.value, props.layout, props.columnCount, props.loopFocus));\nconst contentStyle = computed(() => ({ \"--qk-listbox-columns\": props.columnCount }));\nconst highlightProps = computed(() => {\n if (highlightedValue.value !== undefined) return { highlightedValue: highlightedValue.value };\n const initial = props.defaultHighlightedValue ?? currentValue.value.find(value => (\n collection.value.has(value) && !collection.value.getItemDisabled(collection.value.find(value))\n ));\n return initial === undefined ? {} : { defaultHighlightedValue: initial };\n});\n\n// 使用 Ark 的官方 composable 绕过生成 Root 类型丢失 null 的问题,状态机仍只有一份。\nconst listbox = useListbox(computed(() => ({\n ...highlightProps.value,\n collection: collection.value,\n modelValue: currentValue.value,\n selectionMode: props.selectionMode,\n disabled: props.disabled,\n loopFocus: props.loopFocus,\n typeahead: props.typeahead,\n selectOnHighlight: props.selectOnHighlight,\n deselectable: props.deselectable,\n disallowSelectAll: props.disallowSelectAll,\n onValueChange: changeValue,\n onHighlightChange: changeHighlight\n})));\n\n/**\n * 约束上游批量更新,再同步宿主的完整选择。\n *\n * @param details - Ark 返回的选择值和缓存候选。\n */\nfunction changeValue(details: ListboxValueChangeDetails<QuireKitListboxItem>): void {\n const next = filterListboxSelection(details.value, currentValue.value, props.items);\n internalValue.value = next;\n value.value = next;\n emit(\"valueChange\", { value: next, items: details.items.filter(item => next.includes(item.value)) });\n}\n\n/**\n * 透传候选导航,不把它转换成额外的选择更新。\n *\n * @param details - Ark 返回的高亮值、候选和可见索引。\n */\nfunction changeHighlight(details: ListboxHighlightChangeDetails<QuireKitListboxItem>): void {\n highlightedValue.value = details.highlightedValue;\n emit(\"highlightChange\", details);\n}\n\n/**\n * Checks the live candidate before Ark processes keyboard activation.\n *\n * @param event - Native key event on the Listbox content.\n */\nfunction guardActivation(event: KeyboardEvent): void {\n const item = collection.value.find(listbox.value.highlightedValue);\n const itemDisabled = item !== null && collection.value.getItemDisabled(item);\n const activationKey = event.key === \"Enter\" || event.key === \" \" || event.key === \"Spacebar\";\n const accepted = activationKey && !props.disabled && !itemDisabled && item !== null\n && !event.defaultPrevented && !event.isComposing && event.keyCode !== 229;\n guardListboxActivation(event, props.disabled, itemDisabled);\n if (!accepted || props.selectionMode !== \"single\") return;\n // Explicit single-value submission uses the machine's public selection command.\n // Owning this one keyboard dispatch lets repeated submissions stay observable,\n // while stopping the later key handler prevents a second selection operation.\n event.preventDefault();\n event.stopImmediatePropagation();\n listbox.value.selectValue(item.value);\n select(item.value);\n}\n\n/**\n * Reports a single-value submission while retaining the current collection gate.\n * @param value - Stable identity of the explicitly activated option.\n */\nfunction select(value: string): void {\n const item = collection.value.find(value);\n if (props.selectionMode !== \"single\" || props.disabled || item === null || collection.value.getItemDisabled(item)) return;\n emit(\"select\", value);\n}\n</script>\n\n<template>\n <Listbox.RootProvider :value=\"listbox\" class=\"qk-listbox\">\n <Listbox.Label :class=\"['qk-listbox__label', hideLabel && 'qk-listbox__visually-hidden']\">{{ label }}</Listbox.Label>\n <Listbox.Content\n :class=\"['qk-listbox__content', `qk-listbox__content--${layout}`, `qk-listbox__content--${density ?? 'regular'}`, contentClass]\"\n :style=\"contentStyle\" :tabindex=\"disabled ? -1 : 0\" :aria-disabled=\"disabled || undefined\"\n :data-highlight-empty=\"listbox.highlightedValue === null ? '' : undefined\"\n @keydown.capture=\"guardActivation\"\n >\n <template v-for=\"group in groups\" :key=\"group.label === undefined ? 'ungrouped' : `group:${group.label}`\">\n <Listbox.ItemGroup v-if=\"group.label !== undefined\" :id=\"`group:${encodeURIComponent(group.label)}`\" class=\"qk-listbox__group\">\n <Listbox.ItemGroupLabel class=\"qk-listbox__group-label\">\n <slot name=\"groupLabel\" v-bind=\"group\">{{ group.label }}</slot>\n </Listbox.ItemGroupLabel>\n <ListboxItem v-for=\"item in group.items\" :key=\"item.value\" :item=\"item\" :item-class=\"itemClass\" @select=\"select\">\n <template v-if=\"$slots.item\" #default=\"slotProps\"><slot name=\"item\" v-bind=\"slotProps\" /></template>\n </ListboxItem>\n </Listbox.ItemGroup>\n <template v-else>\n <ListboxItem v-for=\"item in group.items\" :key=\"item.value\" :item=\"item\" :item-class=\"itemClass\" @select=\"select\">\n <template v-if=\"$slots.item\" #default=\"slotProps\"><slot name=\"item\" v-bind=\"slotProps\" /></template>\n </ListboxItem>\n </template>\n </template>\n </Listbox.Content>\n <div v-if=\"items.length === 0\" class=\"qk-listbox__empty\"><slot name=\"empty\">{{ text.empty }}</slot></div>\n </Listbox.RootProvider>\n</template>\n","import { themeVariableReferences } from \"../../theme\";\n\n/** Theme-derived default preview width, shared by CSS and the Vue adapter. */\nexport const presetGalleryMinimumWidth = `calc(${themeVariableReferences.spacing.major} * 3)`;\n\n/**\n * Count actual visible CSS grid tracks, excluding collapsed auto-fit columns.\n *\n * @param template - Resolved grid-template-columns from the public gallery grid.\n * @returns At least one column for Ark's navigation model.\n */\nexport function countPresetGalleryColumns(template: string): number {\n return Math.max(1, template.trim().split(/\\s+/u).filter((track) => {\n const width = Number.parseFloat(track);\n return Number.isFinite(width) && width > 0;\n }).length);\n}\n\n/**\n * Keep a host's maximum column constraint finite and positive.\n *\n * @param value - Requested maximum column count.\n * @returns A whole positive column count, or the default four columns.\n */\nexport function normalizePresetGalleryColumns(value: number): number {\n return Number.isFinite(value) ? Math.max(1, Math.floor(value)) : 4;\n}\n","import { nextTick, onBeforeUnmount, onMounted, ref, watch } from \"vue\";\nimport type { Ref } from \"vue\";\nimport { countPresetGalleryColumns } from \"../../components/preset-gallery/geometry\";\n\n/**\n * Project public CSS grid geometry into the existing Ark selection machine.\n *\n * @param host - Stable native element containing the gallery.\n * @param layoutInputs - Reactive item count and host layout constraints.\n * @returns The current visual column count for GridCollection.\n */\nexport function useGalleryColumns(host: Ref<HTMLElement | undefined>, layoutInputs: () => unknown[]) {\n const columns = ref(1);\n let observer: ResizeObserver | undefined;\n\n /** Read the owned public anatomy after Vue has updated the items. */\n function measure(): void {\n const grid = host.value?.querySelector<HTMLElement>(\".qk-preset-gallery__grid\");\n if (grid) columns.value = countPresetGalleryColumns(getComputedStyle(grid).gridTemplateColumns);\n }\n\n // CSS lays out the first frame; measurement only updates keyboard topology.\n onMounted(() => {\n const grid = host.value?.querySelector<HTMLElement>(\".qk-preset-gallery__grid\");\n if (!grid) return;\n if (typeof ResizeObserver !== \"undefined\") {\n observer = new ResizeObserver(measure);\n observer.observe(grid);\n }\n measure();\n });\n watch(layoutInputs, () => { void nextTick().then(measure); }, { flush: \"post\" });\n onBeforeUnmount(() => observer?.disconnect());\n return columns;\n}\n","<script setup lang=\"ts\">\nimport { ref, useId } from 'vue';\nimport type { QuireKitPresetGalleryItem, QuireKitPresetGalleryItemSlotProps } from '../../components/preset-gallery';\nimport type { PresetActionCardsProps, PresetActionCardsSlots } from './types';\nimport QuireIcon from '../icon/icon.vue';\nimport QuireEmptyState from '../empty-state/empty-state.vue';\nimport { useQuireKitMessages } from '../locale-provider/context';\nconst props = defineProps<PresetActionCardsProps>();\nconst emit = defineEmits<{\n /** Submit a card without activating any of its actions. */ select: [value: string];\n /** Track the focused candidate without selecting it. */ highlight: [value: string];\n}>();\ndefineSlots<PresetActionCardsSlots>();\nconst text = useQuireKitMessages('presetGallery');\nconst root = ref<HTMLElement>(), id = `qk-preset-actions-${useId()}`;\n\n/** @param item - Visible choice. @returns Consistent state for preview and independent actions. */\nfunction context(item: QuireKitPresetGalleryItem): QuireKitPresetGalleryItemSlotProps {\n return { item, selected: props.value === item.value, highlighted: props.highlighted === item.value, disabled: props.disabled || item.disabled === true };\n}\n/** @param event - Native button activation. @param item - Requested selection. */\nfunction select(event: MouseEvent, item: QuireKitPresetGalleryItem): void {\n if (!event.defaultPrevented && event.button === 0 && !context(item).disabled) emit('select', item.value);\n}\n/** @param event - Key on the selection button, never on an action. @param index - Source card index. */\nfunction navigate(event: KeyboardEvent, index: number): void {\n if (event.defaultPrevented || event.isComposing || event.altKey || event.ctrlKey || event.metaKey || props.disabled) return;\n if (event.key === 'Enter' || event.key === ' ') { if (event.repeat) event.preventDefault(); return; }\n const buttons = [...(root.value?.querySelectorAll<HTMLButtonElement>('.qk-preset-gallery__select') ?? [])];\n const rtl = getComputedStyle(root.value!).direction === 'rtl';\n const step = event.key === 'ArrowRight' ? (rtl ? -1 : 1) : event.key === 'ArrowLeft' ? (rtl ? 1 : -1)\n : event.key === 'ArrowDown' ? props.columns : event.key === 'ArrowUp' ? -props.columns : 0;\n let next = event.key === 'Home' ? 0 : event.key === 'End' ? buttons.length - 1 : index + step;\n if (!step && event.key !== 'Home' && event.key !== 'End') return;\n event.preventDefault();\n // Native buttons own activation and Tab order; arrows only browse enabled cards.\n const stride = step || (event.key === 'Home' ? 1 : -1);\n while (next >= 0 && next < buttons.length && buttons[next]?.disabled) next += stride;\n buttons[next]?.focus();\n}\n</script>\n<template>\n <div ref=\"root\" role=\"group\" :aria-labelledby=\"`${id}-label`\" class=\"qk-preset-gallery__management\">\n <p :id=\"`${id}-label`\" :class=\"['qk-preset-gallery__heading', hideLabel && 'qk-listbox__visually-hidden']\">{{ label }}</p>\n <div class=\"qk-preset-gallery__grid qk-preset-gallery__grid--actions\">\n <div v-for=\"(item, index) in items\" :key=\"item.value\" class=\"qk-preset-gallery__card\">\n <button type=\"button\" class=\"qk-preset-gallery__select\" :aria-label=\"item.label\" :aria-pressed=\"value === item.value\"\n :aria-describedby=\"item.description ? `${id}-${index}-description` : undefined\" :disabled=\"context(item).disabled\"\n @click=\"select($event, item)\" @focus=\"emit('highlight', item.value)\" @keydown=\"navigate($event, index)\">\n <span class=\"qk-preset-gallery__card-heading\">\n <QuireIcon name=\"check\" class=\"qk-preset-gallery__check\" :data-selected=\"value === item.value ? '' : undefined\" />\n <span class=\"qk-preset-gallery__label\" :data-selected=\"value === item.value ? '' : undefined\">{{ item.label }}</span>\n </span>\n <span class=\"qk-preset-gallery__preview\" aria-hidden=\"true\"><slot name=\"preview\" v-bind=\"context(item)\"><span class=\"qk-preset-gallery__sample\">Aa</span></slot></span>\n <span v-if=\"item.description\" :id=\"`${id}-${index}-description`\" class=\"qk-preset-gallery__description\">{{ item.description }}</span>\n </button>\n <div class=\"qk-preset-gallery__actions\"><slot name=\"actions\" v-bind=\"context(item)\" /></div>\n </div>\n </div>\n <slot v-if=\"!items.length\" name=\"empty\"><QuireEmptyState :title=\"text.empty\" size=\"sm\" /></slot>\n </div>\n</template>\n","<script setup lang=\"ts\">\nimport { computed, ref } from \"vue\";\nimport type { QuireKitPresetGalleryItem, QuireKitPresetGalleryItemSlotProps } from \"../../components/preset-gallery\";\nimport { normalizePresetGalleryColumns, presetGalleryMinimumWidth } from \"../../components/preset-gallery/geometry\";\nimport QuireListbox from \"../listbox/listbox.vue\";\nimport QuireEmptyState from \"../empty-state/empty-state.vue\";\nimport { useGalleryColumns } from \"./use-gallery-columns\";\nimport QuireTooltipRoot from \"../tooltip/root.vue\";\nimport QuireTooltipTrigger from \"../tooltip/trigger.vue\";\nimport QuireTooltipContent from \"../tooltip/content.vue\";\nimport PresetActionCards from './actions.vue';\nimport { useQuireKitMessages } from \"../locale-provider/context\";\n\n/** 单选预设图库的属性。 */\ninterface Props {\n /** 图库的可见标题与可访问名称。 */\n readonly label: string;\n /** 是否仅在视觉上隐藏标题,保留列表的可访问名称。 */\n readonly hideLabel?: boolean;\n /** Cards with labels, or a dense icon grid whose names remain accessible. */\n readonly presentation?: \"cards\" | \"icons\";\n /** 预设列表,每项使用稳定的 value。 */\n readonly items: readonly QuireKitPresetGalleryItem[];\n /** 受控选中值;null 清除选择。 */\n readonly modelValue?: string | null;\n /** 非受控模式的初始选择。 */\n readonly defaultValue?: string | null;\n /** 是否禁止用户选择,同时保留可见内容。 */\n readonly disabled?: boolean;\n /** 最大列数。 */\n readonly maxColumns?: number;\n /** 理想最小项宽度,默认 spacing.major × 3(144px);窄容器中可继续收窄。 */\n readonly minItemWidth?: string;\n}\n\n/** 预设选择事件。 */\ninterface Emits {\n /** 用户显式提交可用预设时触发,包含再次选择当前预设;每次点击或 Enter / Space 各触发一次。 */\n select: [value: string];\n /** 同步选中的预设。 */\n \"update:modelValue\": [value: string | null];\n /** 当前预设值发生变化后触发;再次提交相同值不触发。 */\n valueChange: [value: string | null];\n}\n\n/** 图库的内容插槽。 */\ninterface Slots {\n /** 绘制预览内容;不放置按钮、链接或输入框。 */\n readonly preview?: (props: QuireKitPresetGalleryItemSlotProps) => unknown;\n /** Independent card actions. In cards mode this opts into native selection buttons with sibling controls. */\n readonly actions?: (props: QuireKitPresetGalleryItemSlotProps) => unknown;\n /** 自定义没有预设时的内容。 */\n readonly empty?: () => unknown;\n}\n\nconst props = withDefaults(defineProps<Props>(), {\n hideLabel: false,\n presentation: \"cards\",\n disabled: false,\n maxColumns: 4\n});\nconst emit = defineEmits<Emits>();\ndefineSlots<Slots>();\nconst text = useQuireKitMessages(\"presetGallery\");\n/** 当前键盘导航的预设,与选中值分别管理。 */\nconst highlightedValue = defineModel<string | null>(\"highlightedValue\");\nconst host = ref<HTMLElement>();\nconst localValue = ref(props.defaultValue ?? null);\nconst value = computed(() => props.modelValue === undefined ? localValue.value : props.modelValue);\nconst values = computed(() => value.value === null ? [] : [value.value]);\nconst minimumWidth = computed(() => props.minItemWidth ?? (props.presentation === \"icons\" ? \"28px\" : presetGalleryMinimumWidth));\nconst columns = useGalleryColumns(host, () => [props.items.length, props.maxColumns, minimumWidth.value]);\nconst style = computed(() => ({\n \"--qk-preset-gallery-min-width\": minimumWidth.value,\n \"--qk-preset-gallery-max-columns\": normalizePresetGalleryColumns(props.maxColumns)\n}));\n\n/**\n * Convert the shared collection's selection into the gallery's single value.\n *\n * @param selected - Values emitted by the Listbox's single-selection machine.\n */\nfunction updateValue(selected: readonly string[] | undefined): void {\n const next = selected?.[0] ?? null;\n localValue.value = next;\n emit(\"update:modelValue\", next);\n emit(\"valueChange\", next);\n}\n\n/** @param next - Explicitly activated management card; repeated activation still submits once. */\nfunction selectCard(next: string): void {\n if (value.value !== next) updateValue([next]);\n emit('select', next);\n}\n</script>\n\n<template>\n <div ref=\"host\" :class=\"['qk-preset-gallery', presentation === 'icons' && 'qk-preset-gallery--icons']\" :style=\"style\">\n <PresetActionCards v-if=\"$slots.actions && presentation === 'cards'\" :label=\"label\" :hide-label=\"hideLabel\" :items=\"items\" :value=\"value\"\n :highlighted=\"highlightedValue ?? null\" :disabled=\"disabled\" :columns=\"columns\" @select=\"selectCard\" @highlight=\"highlightedValue = $event\">\n <template v-if=\"$slots.preview\" #preview=\"context\"><slot name=\"preview\" v-bind=\"context\" /></template>\n <template #actions=\"context\"><slot name=\"actions\" v-bind=\"context\" /></template>\n <template v-if=\"$slots.empty\" #empty><slot name=\"empty\" /></template>\n </PresetActionCards>\n <QuireListbox\n v-else\n :label=\"label\" :hide-label=\"hideLabel\" :items=\"items\" :model-value=\"values\" :disabled=\"disabled\"\n v-model:highlighted-value=\"highlightedValue\" layout=\"grid\" :column-count=\"columns\"\n content-class=\"qk-preset-gallery__grid\"\n :item-class=\"presentation === 'icons' ? 'qk-preset-gallery__item qk-preset-gallery__item--icon' : 'qk-preset-gallery__item'\"\n @update:model-value=\"updateValue\"\n @select=\"emit('select', $event)\"\n >\n <template #item=\"{ item, selected, highlighted, disabled: itemDisabled }\">\n <QuireTooltipRoot v-if=\"presentation === 'icons'\" :disabled=\"itemDisabled\" placement=\"bottom\">\n <QuireTooltipTrigger as-child>\n <div class=\"qk-preset-gallery__preview qk-preset-gallery__preview--icon\" :data-selected=\"selected ? '' : undefined\" aria-hidden=\"true\">\n <slot name=\"preview\" :item=\"item as QuireKitPresetGalleryItem\" :selected=\"selected\" :highlighted=\"highlighted\" :disabled=\"itemDisabled\">\n <span class=\"qk-preset-gallery__sample\">Aa</span>\n </slot>\n </div>\n </QuireTooltipTrigger>\n <QuireTooltipContent :content=\"item.label\" />\n </QuireTooltipRoot>\n <div v-else class=\"qk-preset-gallery__preview\" :data-selected=\"selected ? '' : undefined\" aria-hidden=\"true\">\n <slot name=\"preview\" :item=\"item as QuireKitPresetGalleryItem\" :selected=\"selected\" :highlighted=\"highlighted\" :disabled=\"itemDisabled\">\n <span class=\"qk-preset-gallery__sample\">Aa</span>\n </slot>\n </div>\n <span :class=\"presentation === 'icons' ? 'qk-listbox__visually-hidden' : 'qk-preset-gallery__label'\" :data-selected=\"selected ? '' : undefined\">{{ item.label }}</span>\n <span v-if=\"item.description && presentation !== 'icons'\" class=\"qk-preset-gallery__description\">{{ item.description }}</span>\n </template>\n <template #empty><slot name=\"empty\"><QuireEmptyState :title=\"text.empty\" size=\"sm\" /></slot></template>\n </QuireListbox>\n </div>\n</template>\n","import type { QuireKitActionSheetAction, QuireKitActionSheetGroup } from \"./types\";\n\n/**\n * Groups adjacent actions without changing action order or silently dropping identity conflicts.\n * @param actions - Host-owned actions with unique values.\n * @returns Consecutive groups suitable for accessible heading sections.\n */\nexport function groupActionSheetActions(actions: readonly QuireKitActionSheetAction[]): readonly QuireKitActionSheetGroup[] {\n const groups: { label: string | undefined; actions: QuireKitActionSheetAction[] }[] = [];\n const values = new Set<string>();\n for (const action of actions) {\n if (values.has(action.value)) throw new Error(`QuireActionSheet requires unique action values: ${action.value}`);\n values.add(action.value);\n const label = action.group?.trim() || undefined;\n const previous = groups.at(-1);\n if (previous && previous.label === label) previous.actions.push(action);\n else groups.push({ label, actions: [action] });\n }\n return groups;\n}\n","<script setup lang=\"ts\">\nimport { computed, nextTick, ref, useId } from \"vue\";\nimport type { QuireKitActionSheetAction, QuireKitActionSheetIconSlotProps } from \"../../components/action-sheet\";\nimport type { QuireKitDrawerCloseRequest, QuireKitDrawerRootApi } from \"../../components/drawer\";\nimport { groupActionSheetActions } from \"../../components/action-sheet/groups\";\nimport QuireDrawerRoot from \"../drawer/root.vue\";\nimport QuireDrawerTrigger from \"../drawer/trigger.vue\";\nimport QuireDrawerContent from \"../drawer/content.vue\";\nimport QuireButton from \"../button/button.vue\";\nimport QuireIcon from \"../icon/icon.vue\";\nimport { useQuireKitMessages } from \"../locale-provider/context\";\n\n/** 底部操作面板的属性。 */\ninterface Props {\n /** 面板的可见标题与可访问名称。 */\n readonly title: string;\n /** 标题下方的补充说明。 */\n readonly description?: string;\n /** 按显示顺序排列的动作,每项 value 必须唯一。 */\n readonly actions: readonly QuireKitActionSheetAction[];\n /** 受控打开状态;省略时由组件管理。 */\n readonly open?: boolean | undefined;\n /** 非受控模式的初始打开状态。 */\n readonly defaultOpen?: boolean;\n /** 选择动作后是否关闭;异步任务设为 false。 */\n readonly closeOnSelect?: boolean;\n /** 是否正在处理;期间禁止重复执行与用户关闭。 */\n readonly busy?: boolean;\n /** 操作失败的提示,显示后可以继续重试。 */\n readonly error?: string;\n /** 关闭后接收焦点的元素。 */\n readonly finalFocusEl?: () => HTMLElement | null;\n /** 关闭请求回调;同步调用 preventDefault() 可拒绝关闭,提供此回调时禁用拖动关闭。 */\n readonly onCloseRequest?: (request: QuireKitDrawerCloseRequest) => void;\n}\n\n/** 操作选择与打开状态事件。 */\ninterface Emits {\n /** 同步受控打开状态。 */\n \"update:open\": [open: boolean];\n /** 打开状态变化时触发。 */\n openChange: [open: boolean];\n /** 执行可用动作时触发,参数为动作 value。 */\n select: [value: string];\n}\n\n/** 操作面板的内容插槽。 */\ninterface Slots {\n /** 打开面板的单个按钮;通过程序打开时可以省略。 */\n readonly trigger?: () => unknown;\n /** 动作的装饰图标,不放置独立交互控件。 */\n readonly icon?: (props: QuireKitActionSheetIconSlotProps) => unknown;\n}\n\nconst props = withDefaults(defineProps<Props>(), {\n open: undefined, defaultOpen: false, closeOnSelect: true, busy: false\n});\nconst emit = defineEmits<Emits>();\ndefineSlots<Slots>();\nconst text = useQuireKitMessages(\"actionSheet\");\nconst drawer = ref<QuireKitDrawerRootApi>();\nconst instanceId = useId();\nconst localOpen = ref(props.defaultOpen);\nconst activating = ref(false);\nconst open = computed(() => props.open === undefined ? localOpen.value : props.open);\nconst groups = computed(() => groupActionSheetActions(props.actions));\n// Only install a cancellable guard when needed, so ordinary sheets retain safe drag dismissal.\nconst guards = computed(() => props.busy || props.onCloseRequest ? { closeRequest: guardClose } : {});\n\n/**\n * Retains one source of open state and projects accepted Drawer changes.\n * @param next - Accepted open state.\n */\nfunction updateOpen(next: boolean): void {\n localOpen.value = next;\n emit(\"update:open\", next);\n emit(\"openChange\", next);\n}\n\n/**\n * Refuses dismissal during an in-flight host task, then lets the host apply its own policy.\n * @param request - Synchronous cancellable Drawer request.\n */\nfunction guardClose(request: QuireKitDrawerCloseRequest): void {\n if (props.busy) request.preventDefault();\n props.onCloseRequest?.(request);\n}\n\n/**\n * Rechecks current action availability before handing execution to the host.\n * @param value - Stable value of the clicked action.\n */\nasync function activate(value: string): Promise<void> {\n const action = props.actions.find((item) => item.value === value);\n if (!open.value || !action || action.disabled || props.busy || activating.value) return;\n activating.value = true;\n try {\n emit(\"select\", value);\n // Let synchronous host updates install busy/close guards before requesting dismissal.\n await nextTick();\n if (props.closeOnSelect) drawer.value?.requestClose(\"action\");\n } finally {\n activating.value = false;\n }\n}\n</script>\n\n<template>\n <QuireDrawerRoot ref=\"drawer\" :open=\"open\" side=\"bottom\" :drag-enabled=\"!busy\"\n v-bind=\"finalFocusEl ? { finalFocusEl } : {}\" @update:open=\"updateOpen\" v-on=\"guards\">\n <QuireDrawerTrigger v-if=\"$slots.trigger\" as-child><slot name=\"trigger\" /></QuireDrawerTrigger>\n <QuireDrawerContent :title=\"title\" :description=\"description ?? ''\" :show-close=\"false\" size=\"medium\">\n <div class=\"qk-action-sheet\" :aria-busy=\"busy || undefined\">\n <section v-for=\"(group, index) in groups\" :key=\"index\" class=\"qk-action-sheet__group\"\n :aria-labelledby=\"group.label ? `${instanceId}-group-${index}` : undefined\">\n <h3 v-if=\"group.label\" :id=\"`${instanceId}-group-${index}`\" class=\"qk-action-sheet__group-label\">{{ group.label }}</h3>\n <button v-for=\"action in group.actions\" :key=\"action.value\" type=\"button\" class=\"qk-action-sheet__action\"\n :data-danger=\"action.danger || undefined\" :disabled=\"action.disabled\"\n :aria-disabled=\"busy || undefined\" @click=\"activate(action.value)\">\n <span v-if=\"action.icon || $slots.icon\" class=\"qk-action-sheet__icon\" aria-hidden=\"true\">\n <slot name=\"icon\" :action=\"action\"><QuireIcon v-if=\"action.icon\" :name=\"action.icon\" :size=\"20\" /></slot>\n </span>\n <span class=\"qk-action-sheet__copy\">\n <span class=\"qk-action-sheet__label\">{{ action.label }}</span>\n <span v-if=\"action.description\" class=\"qk-action-sheet__description\">{{ action.description }}</span>\n </span>\n </button>\n </section>\n <p v-if=\"!actions.length\" class=\"qk-action-sheet__empty\">{{ text.empty }}</p>\n </div>\n <template #footer>\n <div class=\"qk-action-sheet__footer\">\n <p v-if=\"busy\" role=\"status\" class=\"qk-action-sheet__status\">{{ text.busy }}</p>\n <p v-else-if=\"error\" role=\"alert\" class=\"qk-action-sheet__error\">{{ error }}</p>\n <QuireButton variant=\"text\" class=\"qk-action-sheet__cancel\" :aria-disabled=\"busy || undefined\"\n @click=\"drawer?.requestClose('cancel')\">{{ text.cancel }}</QuireButton>\n </div>\n </template>\n </QuireDrawerContent>\n </QuireDrawerRoot>\n</template>\n","import type { QuireKitActionMenuEntry } from \"../../components/action-menu\";\nimport type { ActionMenuGroup, ActionMenuLevel, ActionMenuLocation } from \"./types\";\n\n/**\n * Validates and indexes live command ancestry without changing host order.\n * @param actions - Complete action directory.\n * @returns Locations keyed by globally unique action identity.\n */\nexport function indexActionMenu(actions: readonly QuireKitActionMenuEntry[]): ReadonlyMap<string, ActionMenuLocation> {\n const locations = new Map<string, ActionMenuLocation>();\n /** @param entries - Current ordered level. @param path - Ancestor identities. @param disabled - Inherited availability. */\n function visit(entries: readonly QuireKitActionMenuEntry[], path: readonly string[], disabled: boolean): void {\n for (const action of entries) {\n if (!action.value.trim()) throw new TypeError(\"ActionMenu values must be non-empty.\");\n if (locations.has(action.value)) throw new TypeError(\"ActionMenu values must be unique across the directory.\");\n const unavailable = disabled || action.disabled === true;\n locations.set(action.value, { action, path, disabled: unavailable });\n if (action.kind === \"branch\") visit(action.children, [...path, action.value], unavailable);\n }\n }\n visit(actions, [], false);\n return locations;\n}\n\n/**\n * Resolves the nearest available branch after host directory changes.\n * @param actions - Complete current directory.\n * @param requestedPath - Previously active branch identities.\n * @returns Current actions and the valid prefix, including empty branches.\n */\nexport function resolveActionMenuLevel(actions: readonly QuireKitActionMenuEntry[], requestedPath: readonly string[]): ActionMenuLevel {\n let entries = actions;\n let branch: QuireKitActionMenuEntry | undefined;\n const path: string[] = [];\n for (const value of requestedPath) {\n const item = entries.find(action => action.value === value);\n if (!item || item.kind !== \"branch\" || item.disabled) break;\n path.push(value); branch = item; entries = item.children;\n }\n return { path, branch, actions: entries };\n}\n\n/**\n * Groups only adjacent actions so named groups never reorder commands.\n * @param actions - Current ordered directory.\n * @returns Consecutive heading runs.\n */\nexport function groupActionMenu(actions: readonly QuireKitActionMenuEntry[]): readonly ActionMenuGroup[] {\n const groups: ActionMenuGroup[] = [];\n for (const action of actions) {\n const last = groups.at(-1);\n if (last && last.label === action.group) last.actions.push(action);\n else groups.push({ label: action.group, actions: [action] });\n }\n return groups;\n}\n","<script setup lang=\"ts\">\nimport { computed } from \"vue\";\nimport type { QuireKitActionMenuEntry, QuireKitActionMenuIconSlotProps } from \"../../components/action-menu\";\nimport QuireMenuItem from \"../menu/menu-item.vue\";\nimport QuireMenuSubmenu from \"../menu/menu-submenu.vue\";\nimport QuireMenuGroup from \"../menu/menu-group.vue\";\nimport QuireIcon from \"../icon/icon.vue\";\nimport { groupActionMenu } from \"./path\";\nimport { useQuireKitMessages } from \"../locale-provider/context\";\n\n/** Shared directory rows, keeping Ark as the sole menu navigation owner. */\ninterface Props {\n /** Current directory, including nested branches. */\n readonly actions: readonly QuireKitActionMenuEntry[];\n /** Whether execution is temporarily locked. */\n readonly busy: boolean;\n}\n/** Current executable command intent. */\ninterface Emits {\n /** Requests execution after Ark accepts an ordinary menu item. */\n activate: [value: string];\n}\n/** Decorative row content. */\ninterface Slots {\n /** Replaces the leading action icon. */\n readonly icon?: (props: QuireKitActionMenuIconSlotProps) => unknown;\n}\nconst props = defineProps<Props>();\nconst emit = defineEmits<Emits>();\ndefineSlots<Slots>();\nconst text = useQuireKitMessages(\"actionMenu\");\nconst groups = computed(() => groupActionMenu(props.actions));\n</script>\n\n<template>\n <template v-for=\"(group, index) in groups\" :key=\"index\">\n <QuireMenuGroup v-bind=\"group.label === undefined ? {} : { label: group.label }\">\n <template v-for=\"action in group.actions\" :key=\"action.value\">\n <QuireMenuSubmenu v-if=\"action.kind === 'branch' && !action.disabled\" :tone=\"action.danger ? 'danger' : 'neutral'\"\n trigger-class=\"qk-action-menu__item\" content-class=\"qk-action-menu__surface\">\n <template #trigger><span class=\"qk-action-menu__copy\"><span>{{ action.label }}</span><span v-if=\"action.description\" class=\"qk-action-menu__description\">{{ action.description }}</span></span></template>\n <template v-if=\"action.icon || $slots.icon\" #leading><slot name=\"icon\" :action=\"action\"><QuireIcon v-if=\"action.icon\" :name=\"action.icon\" :size=\"16\" /></slot></template>\n <Rows :actions=\"action.children\" :busy=\"busy\" @activate=\"emit('activate', $event)\">\n <template v-if=\"$slots.icon\" #icon=\"slotProps\"><slot name=\"icon\" v-bind=\"slotProps\" /></template>\n </Rows>\n <p v-if=\"action.children.length === 0\" class=\"qk-action-sheet__empty\">{{ text.empty }}</p>\n </QuireMenuSubmenu>\n <QuireMenuItem v-else :value=\"action.value\" :disabled=\"!!action.disabled\" :tone=\"action.danger ? 'danger' : 'neutral'\"\n :close-on-select=\"false\" :aria-disabled=\"busy || action.disabled || undefined\" class=\"qk-action-menu__item\" @select=\"!busy && emit('activate', action.value)\">\n <template v-if=\"action.icon || $slots.icon\" #leading><slot name=\"icon\" :action=\"action\"><QuireIcon v-if=\"action.icon\" :name=\"action.icon\" :size=\"16\" /></slot></template>\n <span class=\"qk-action-menu__copy\"><span>{{ action.label }}</span><span v-if=\"action.description\" class=\"qk-action-menu__description\">{{ action.description }}</span></span>\n <template v-if=\"action.kind === 'branch'\" #trailing><QuireIcon name=\"chevronRight\" :size=\"16\" /></template>\n </QuireMenuItem>\n </template>\n </QuireMenuGroup>\n </template>\n</template>\n","<script setup lang=\"ts\">\nimport { useQuireOverlayHost } from \"../overlay-provider\";\nimport QuireThemePortal from \"../theme-provider/portal.vue\";\nimport { Menu, useMenuContext } from \"@ark-ui/vue/menu\";\nimport { useId } from \"vue\";\nimport type { QuireKitActionMenuEntry, QuireKitActionMenuIconSlotProps } from \"../../components/action-menu\";\nimport { useMenuLayerClass } from \"../menu/surface/use-layer\";\nimport Rows from \"./rows.vue\";\nimport { useQuireKitMessages } from \"../locale-provider/context\";\n\n/** The single desktop Menu content, without another surface owner. */\ninterface Props {\n /** Task name. */\n readonly title: string;\n /** Optional task description. */\n readonly description?: string | undefined;\n /** Complete action tree. */\n readonly actions: readonly QuireKitActionMenuEntry[];\n /** Execution lock. */\n readonly busy: boolean;\n /** Current readable failure, absent before failure. */\n readonly errorText?: string | undefined;\n /** Informational update when the directory changes. */\n readonly statusText?: string | undefined;\n}\n/** Menu command intent. */\ninterface Emits {\n /** Executes one accepted leaf. */\n activate: [value: string];\n}\n/** Shared decoration slots. */\ninterface Slots {\n /** Decorative icon for a command or branch. */\n readonly icon?: (props: QuireKitActionMenuIconSlotProps) => unknown;\n}\ndefineProps<Props>();\nconst emit = defineEmits<Emits>();\ndefineSlots<Slots>();\nconst host = useQuireOverlayHost();\nconst text = useQuireKitMessages(\"actionMenu\");\nconst menu = useMenuContext();\nconst titleId = `${useId()}-action-menu-title`;\nconst { layerClass, layerStyle, portalDisabled } = useMenuLayerClass(() => true, () => menu.value.open);\n</script>\n\n<template>\n <Teleport :to=\"host.target.value\" :disabled=\"portalDisabled\">\n <QuireThemePortal>\n <Menu.Positioner :class=\"['qk-menu__positioner', layerClass]\" :style=\"layerStyle\">\n <Menu.Content class=\"qk-menu qk-menu--viewport qk-action-menu__surface\" :aria-labelledby=\"titleId\" :aria-busy=\"busy || undefined\">\n <header class=\"qk-action-menu__header\"><h2 :id=\"titleId\" class=\"qk-action-menu__title\">{{ title }}</h2><p v-if=\"description\" class=\"qk-action-menu__description\">{{ description }}</p></header>\n <Rows :actions=\"actions\" :busy=\"busy\" @activate=\"emit('activate', $event)\"><template v-if=\"$slots.icon\" #icon=\"slotProps\"><slot name=\"icon\" v-bind=\"slotProps\" /></template></Rows>\n <p v-if=\"!actions.length\" class=\"qk-action-sheet__empty\">{{ text.empty }}</p>\n <p v-if=\"busy\" role=\"status\" class=\"qk-action-menu__feedback\">{{ text.busy }}</p>\n <p v-else-if=\"errorText\" role=\"alert\" class=\"qk-action-menu__feedback\">{{ errorText }}</p>\n <p v-else-if=\"statusText\" role=\"status\" class=\"qk-action-menu__feedback\">{{ statusText }}</p>\n </Menu.Content>\n </Menu.Positioner>\n </QuireThemePortal>\n </Teleport>\n</template>\n","import type { QuireKitActionDirectoryProps, QuireKitActionMenuEntry } from \"../../components/action-menu\";\n/** @param actions - Current directory; branches retain their own navigation. @param query - Complete Unicode query. @param filter - Optional owner-neutral matching predicate. @returns Matching actions in original order, including disabled entries. */\nexport function filterActionDirectory(actions: readonly QuireKitActionMenuEntry[], query: string, filter?: QuireKitActionDirectoryProps[\"filter\"]): readonly QuireKitActionMenuEntry[] {\n const needle = query.trim().toLocaleLowerCase();\n if (!needle) return actions;\n return actions.filter(action => filter ? filter(action, query) : `${action.label} ${action.value} ${action.group ?? \"\"} ${action.description ?? \"\"}`.toLocaleLowerCase().includes(needle));\n}\n","<script setup lang=\"ts\">\nimport { computed, ref, useId } from \"vue\";\nimport type { QuireKitActionDirectoryProps as Props, QuireKitActionDirectorySlots } from \"../../components/action-menu/types\";\nimport QuireInput from \"../input/input.vue\";\nimport QuireIcon from \"../icon/icon.vue\";\nimport { useQuireKitMessages } from \"../locale-provider/context\";\nimport { groupActionMenu } from \"./path\";\nimport { filterActionDirectory } from \"./search\";\nconst props = withDefaults(defineProps<Props>(), { layout: \"list\", searchable: false, busy: false, query: undefined });\nconst emit = defineEmits<{ /** Executes no business work. */ activate: [value: string]; /** Complete query value, including IME input. */ \"update:query\": [query: string] }>();\ndefineSlots<QuireKitActionDirectorySlots>();\nconst text = useQuireKitMessages(\"actionMenu\"), id = useId(), localQuery = ref(\"\");\nconst query = computed(() => props.query ?? localQuery.value);\nconst groups = computed(() => groupActionMenu(filterActionDirectory(props.actions, query.value, props.filter)));\n/** @param value - Full input value; never a keypress fragment. */\nfunction input(value: string): void { localQuery.value = value; emit(\"update:query\", value); }\n/** @param value - Enabled action identity from the current live collection. */\nfunction activate(value: string): void { if (!props.busy && props.actions.some(action => action.value === value && !action.disabled)) emit(\"activate\", value); }\n</script>\n<template>\n <div class=\"qk-action-directory\" :aria-busy=\"busy || undefined\">\n <div v-if=\"searchable\" class=\"qk-action-directory__search\"><label class=\"qk-action-directory__search-label\" :for=\"`${id}-search`\">{{ text.search }}</label>\n <QuireInput :id=\"`${id}-search`\" type=\"search\" size=\"md\" width=\"100%\" autocomplete=\"off\" :placeholder=\"searchPlaceholder ?? text.searchPlaceholder\" :model-value=\"query\" :read-only=\"busy\" @update:model-value=\"input\"><template #leading><QuireIcon name=\"search\" :size=\"16\" /></template></QuireInput>\n </div>\n <section v-for=\"(group, index) in groups\" :key=\"index\" class=\"qk-action-sheet__group\" :aria-labelledby=\"group.label ? `${id}-group-${index}` : undefined\">\n <h3 v-if=\"group.label\" :id=\"`${id}-group-${index}`\" class=\"qk-action-sheet__group-label\">{{ group.label }}</h3>\n <div :class=\"['qk-action-directory__actions', layout === 'grid' && 'qk-action-directory__actions--grid']\">\n <button v-for=\"action in group.actions\" :key=\"action.value\" type=\"button\" class=\"qk-action-sheet__action\" :data-action-value=\"action.value\"\n :disabled=\"action.disabled\" :data-danger=\"action.danger || undefined\" :aria-disabled=\"busy || undefined\" @click=\"activate(action.value)\">\n <span v-if=\"action.icon || $slots.icon\" class=\"qk-action-sheet__icon\" aria-hidden=\"true\"><slot name=\"icon\" :action=\"action\"><QuireIcon v-if=\"action.icon\" :name=\"action.icon\" :size=\"20\" /></slot></span>\n <span class=\"qk-action-sheet__copy\"><span class=\"qk-action-sheet__label\">{{ action.label }}</span><span v-if=\"action.description\" class=\"qk-action-sheet__description\">{{ action.description }}</span></span>\n <svg v-if=\"action.kind === 'branch'\" class=\"qk-menu__disclosure\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" aria-hidden=\"true\"><path d=\"m9 6 6 6-6 6\" /></svg>\n </button>\n </div>\n </section>\n <p v-if=\"!groups.length\" class=\"qk-action-sheet__empty\" role=\"status\">{{ text.empty }}</p>\n </div>\n</template>\n<style scoped>\n.qk-action-directory { display: grid; gap: var(--qk-space-surface-compact); }\n.qk-action-directory__search { display: grid; }\n.qk-action-directory__search-label { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }\n.qk-action-directory__actions--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--qk-space-inline); }\n.qk-action-directory__actions--grid > button { min-width: 0; min-height: 48px; border-radius: var(--qk-radius-control); background: var(--qk-color-surface-subtle); }\n</style>\n","<script setup lang=\"ts\">\nimport { Drawer } from \"@ark-ui/vue/drawer\";\nimport { nextTick, ref } from \"vue\";\nimport type { QuireKitActionMenuEntry, QuireKitActionMenuIconSlotProps } from \"../../components/action-menu/types\";\nimport Directory from \"./directory.vue\";\nimport type { ActionMenuView } from \"./types\";\nimport QuireButton from \"../button/button.vue\";\nimport DrawerContentFrame from \"../drawer/content-frame.vue\";\nimport QuireIcon from \"../icon/icon.vue\";\nimport { useQuireKitMessages } from \"../locale-provider/context\";\n\n/** Current action directory rendered inside the task's existing Drawer provider. */\ninterface Props {\n /** Visible name of the current directory. */\n readonly title: string;\n /** Optional task or directory explanation. */\n readonly description?: string;\n /** Ordered actions in this directory only. */\n readonly actions: readonly QuireKitActionMenuEntry[];\n /** Bottom action tile strategy. */\n readonly layout?: \"list\" | \"grid\" | undefined;\n /** Show a full-query search field. */\n readonly searchable?: boolean | undefined;\n /** Whether the current directory has a parent. */\n readonly canGoBack?: boolean;\n /** Prevents activation while preserving focused controls. */\n readonly busy?: boolean;\n /** Current recoverable execution error. */\n readonly errorText?: string;\n /** Neutral directory feedback sharing the same live message lane. */\n readonly statusText?: string;\n}\n\n/** Task intents forwarded to the owning directory/session controller. */\ninterface Emits {\n /** Selects an enabled command or enters an enabled branch. */\n activate: [value: string];\n /** Returns to the current directory's parent. */\n back: [];\n /** Requests cancellation through the task controller. */\n cancel: [];\n}\n\n/** Decorative action slots shared with the desktop menu. */\ninterface Slots {\n /** Decorative icon; it must not add a separate interactive control. */\n readonly icon?: (props: QuireKitActionMenuIconSlotProps) => unknown;\n}\n\nconst props = withDefaults(defineProps<Props>(), {\n canGoBack: false, busy: false\n});\nconst emit = defineEmits<Emits>();\ndefineSlots<Slots>();\nconst text = useQuireKitMessages(\"actionMenu\");\nconst body = ref<HTMLElement>(), query = ref(\"\");\n\n\n/** @param value - Requested entry identity. */\nfunction activate(value: string): void {\n if (!props.busy && props.actions.some(action => action.value === value && !action.disabled)) emit(\"activate\", value);\n}\n\n/** Sends a parent navigation intent without ending the task. */\nfunction goBack(): void {\n if (!props.busy && props.canGoBack) emit(\"back\");\n}\n\n/** Sends one user cancellation intent when execution is not busy. */\nfunction cancel(): void {\n if (!props.busy) emit(\"cancel\");\n}\n\n/** @returns The current directory's scroll and focused-action snapshot. */\nfunction captureView(): ActionMenuView {\n const focused = body.value?.ownerDocument.activeElement;\n const action = focused && body.value?.contains(focused) ? focused.closest<HTMLElement>(\"[data-action-value]\") : null;\n return { ...(props.searchable ? { query: query.value } : {}), scrollTop: body.value?.parentElement?.scrollTop ?? 0, focusedValue: action?.dataset.actionValue ?? null };\n}\n\n/**\n * Restores a parent directory after its owner changes the current action collection.\n * @param snapshot - View state captured before entering the child directory.\n * @returns Completion after the current directory's DOM has rendered.\n */\nasync function restoreView(snapshot: ActionMenuView): Promise<void> {\n query.value = snapshot.query ?? \"\";\n await nextTick();\n const actions = body.value?.querySelectorAll<HTMLButtonElement>(\"[data-action-value]\");\n const available = Array.from(actions ?? []).filter(action => !action.disabled);\n const target = available.find(action => action.dataset.actionValue === snapshot.focusedValue)\n ?? available[0] ?? body.value?.closest<HTMLElement>('[role=\"dialog\"]');\n target?.focus({ preventScroll: true });\n if (body.value?.parentElement) body.value.parentElement.scrollTop = snapshot.scrollTop;\n}\n\ndefineExpose({ captureView, restoreView });\n</script>\n\n<template>\n <DrawerContentFrame :title=\"title\" :description=\"description ?? ''\" :show-close=\"false\" content-class=\"qk-task__surface qk-action-menu__bottom\">\n <template #header>\n <header class=\"qk-drawer__header qk-drawer__header--bottom qk-task__header\">\n <QuireButton variant=\"text\" v-if=\"canGoBack\" class=\"qk-task__target\" :aria-disabled=\"busy || undefined\" @click=\"goBack\">{{ text.back }}</QuireButton>\n <span class=\"qk-drawer__heading\">\n <Drawer.Title class=\"qk-drawer__title\">{{ title }}</Drawer.Title>\n <Drawer.Description v-if=\"description\" class=\"qk-drawer__description\">{{ description }}</Drawer.Description>\n </span>\n <Drawer.CloseTrigger as-child>\n <QuireButton variant=\"text\" class=\"qk-task__target\" :aria-label=\"text.close\" :aria-disabled=\"busy || undefined\">\n <QuireIcon name=\"close\" :size=\"16\" />\n </QuireButton>\n </Drawer.CloseTrigger>\n </header>\n </template>\n <div ref=\"body\" class=\"qk-action-sheet\" :aria-busy=\"busy || undefined\">\n <Directory v-model:query=\"query\" :actions=\"actions\" :layout=\"layout\" :searchable=\"searchable\" :busy=\"busy\" @activate=\"activate\"><template v-if=\"$slots.icon\" #icon=\"slotProps\"><slot name=\"icon\" v-bind=\"slotProps\" /></template></Directory>\n </div>\n <template #footer>\n <div class=\"qk-action-sheet__footer qk-task__footer\">\n <p class=\"qk-task__feedback\" :class=\"errorText && !busy ? 'qk-action-sheet__error' : 'qk-action-sheet__status'\" :role=\"busy ? 'status' : errorText ? 'alert' : statusText ? 'status' : undefined\">{{ busy ? text.busy : errorText || statusText }}</p>\n <QuireButton variant=\"text\" class=\"qk-action-sheet__cancel\" :aria-disabled=\"busy || undefined\" @click=\"cancel\">{{ text.cancel }}</QuireButton>\n </div>\n </template>\n </DrawerContentFrame>\n</template>\n","import { watch } from \"vue\";\nimport type { Ref } from \"vue\";\nimport type { UseMenuReturn } from \"@ark-ui/vue/menu\";\nimport { trackContextMenuRegion } from \"../menu/context/anchor\";\nimport { contextMenuKeyboardPoint } from \"../menu/context/keyboard\";\n\n/**\n * Reuses context-menu observation while keeping each opening source's correct rectangle.\n * @param menu - Desktop machine, owning collisions and placement.\n * @param open - Whether this desktop surface is effective.\n * @param opener - Actual button or context region for this session.\n * @param origin - Button box, keyboard region edge, or pointer point.\n * @param point - Pointer coordinates captured from the native context event.\n */\nexport function useActionMenuAnchor(menu: UseMenuReturn, open: Readonly<Ref<boolean>>, opener: Ref<HTMLElement | undefined>, origin: Ref<\"button\" | \"region\" | \"point\">, point: Ref<{ x: number; y: number } | undefined>): void {\n watch([open, opener, origin, point], ([visible, target], _previous, onCleanup) => {\n if (!visible || !target) return;\n const stop = trackContextMenuRegion(target, () => menu.api.value.reposition({\n /** @returns The original source's rectangle in viewport coordinates. */\n getAnchorRect() {\n if (origin.value === \"point\" && point.value) return { ...point.value, width: 0, height: 0 };\n const rect = target.getBoundingClientRect();\n return origin.value === \"region\" ? { ...contextMenuKeyboardPoint(rect), width: 0, height: 0 } : rect;\n }\n }));\n onCleanup(stop);\n }, { flush: \"post\", immediate: true });\n}\n","import { nextTick, onScopeDispose, watch } from \"vue\";\nimport type { Ref } from \"vue\";\nimport { collectContextMenuSurfaces } from \"../menu/context/focus\";\n\n/**\n * Restores a claimed opener after Menu's queued focus work without stealing another task's focus.\n * @param open - Effective desktop menu visibility.\n * @param ownerReady - Parent still allowed to receive focus.\n * @param opener - Actual stable entry used this session.\n * @param contentId - Current Menu Content id.\n * @param triggerId - More-button id shared with the Menu machine.\n * @param finalFocus - Optional explicit focus destination.\n */\nexport function useActionMenuFocus(open: Readonly<Ref<boolean>>, ownerReady: Readonly<Ref<boolean>>, opener: Ref<HTMLElement | undefined>, contentId: string, triggerId: string, finalFocus: () => HTMLElement | null | undefined): void {\n let revision = 0;\n let disposed = false;\n onScopeDispose(() => { disposed = true; revision += 1; });\n watch(open, (visible, previous) => {\n const currentRevision = ++revision;\n if (visible || !previous || !ownerReady.value) return;\n const target = opener.value;\n const document = target?.ownerDocument;\n const window = document?.defaultView;\n if (!document || !window) return;\n const owned = collectContextMenuSurfaces(document.getElementById(contentId));\n const active = document.activeElement;\n const claimed = active && active !== document.body && active.id !== triggerId && !owned.some(surface => surface.contains(active))\n ? active as HTMLElement : undefined;\n void nextTick(() => window.requestAnimationFrame(() => {\n if (disposed || currentRevision !== revision || open.value || !ownerReady.value) return;\n const current = document.activeElement;\n if (current && current !== document.body && current.id !== triggerId && !owned.some(surface => surface.contains(current))) return;\n const destination = claimed ?? finalFocus() ?? target;\n if (destination?.isConnected) destination.focus({ preventScroll: true });\n }));\n }, { flush: \"sync\" });\n}\n","import { nextTick, onScopeDispose, watch } from \"vue\";\nimport type { Ref } from \"vue\";\nimport type { UseMenuReturn } from \"@ark-ui/vue/menu\";\n\n/**\n * Opens a newly selected desktop Menu even when focus was acquired in bottom mode.\n * @param menu - Resident desktop Menu with its public state and highlighting APIs.\n * @param open - Effective desktop task visibility, including controlled acknowledgement.\n * @param trigger - Persistent button whose focus survives a presentation change.\n * @returns Current original-event keyboard binding for the stable task trigger.\n */\nexport function useActionMenuKeyboard(\n menu: UseMenuReturn,\n open: Readonly<Ref<boolean>>,\n trigger: Readonly<Ref<HTMLElement | undefined>>\n): (event: KeyboardEvent) => void {\n let edge: \"first\" | \"last\" | undefined;\n let revision = 0;\n let disposed = false;\n\n watch(open, visible => {\n const current = ++revision;\n const requestedEdge = edge;\n edge = undefined;\n if (!visible || !requestedEdge) return;\n // Menu's idle state never received focus while Drawer owned the trigger.\n // Accept opening through the public API, then resolve the committed Menu rows.\n void nextTick(() => {\n if (disposed || current !== revision || !open.value) return;\n const contentId = menu.api.value.getContentProps().id;\n const content = typeof contentId === \"string\" ? trigger.value?.ownerDocument.getElementById(contentId) : null;\n const rows = Array.from(content?.querySelectorAll<HTMLElement>('[role^=\"menuitem\"][data-value]') ?? [])\n .filter(row => !row.hasAttribute(\"data-disabled\") && row.getAttribute(\"aria-disabled\") !== \"true\"\n && row.closest('[data-scope=\"menu\"][data-part=\"content\"]') === content);\n const row = requestedEdge === \"last\" ? rows.at(-1) : rows[0];\n if (row?.dataset.value !== undefined) menu.api.value.setHighlightedValue(row.dataset.value);\n });\n }, { flush: \"sync\" });\n onScopeDispose(() => { disposed = true; revision += 1; edge = undefined; });\n\n /** @param event - Original native activation or ordinary navigation key. */\n return (event: KeyboardEvent): void => {\n if (disposed || event.defaultPrevented || event.isComposing || event.keyCode === 229) return;\n const element = trigger.value;\n if (element?.matches(':disabled, [aria-disabled=\"true\"]')) return;\n const openingKey = [\"Enter\", \" \", \"ArrowDown\", \"ArrowUp\"].includes(event.key);\n if (!open.value && openingKey && element && element.ownerDocument.activeElement === element) {\n event.preventDefault();\n edge = event.key === \"ArrowUp\" ? \"last\" : \"first\";\n const request = ++revision;\n menu.api.value.setOpen(true);\n // A refused controlled request must not assign its old keyboard intent to\n // a later, unrelated programmatic opening.\n void nextTick(() => { if (request === revision && !open.value) edge = undefined; });\n return;\n }\n menu.api.value.getTriggerProps().onKeydown?.(event);\n };\n}\n","import { useQuireOverlayHost } from \"../overlay-provider\";\nimport { useMenu, type UseMenuProps } from \"@ark-ui/vue/menu\";\nimport { computed, nextTick, ref, shallowRef, useId, watch } from \"vue\";\nimport type { QuireKitActionMenuProps, QuireKitActionMenuRequest } from \"../../components/action-menu\";\nimport type { QuireKitTaskCloseReason, QuireKitTaskCloseRequest } from \"../../components/task\";\nimport { useDrawerRuntime } from \"../drawer/use-runtime\";\nimport { useQuireKitMessages } from \"../locale-provider/context\";\nimport { useModalSurfaceOwner } from \"../shared/surface/use-modal-owner\";\nimport { useAdaptivePresentation } from \"../shared/task/presentation/use-adaptive-presentation\";\nimport { createTaskRequests } from \"../shared/task/session/requests\";\nimport { useTaskLifecycle } from \"../shared/task/session/lifecycle\";\nimport { isContextMenuKey } from \"../menu/context/keyboard\";\nimport { indexActionMenu, resolveActionMenuLevel } from \"./path\";\nimport { useActionMenuAnchor } from \"./anchor\";\nimport { useActionMenuFocus } from \"./focus\";\nimport { useActionMenuKeyboard } from \"./keyboard\";\nimport type { ActionMenuBottomApi, ActionMenuCallbacks, ActionMenuView } from \"./types\";\n\n/**\n * Owns one action session while Menu and Drawer retain their separate widget behavior.\n * @param props - Live public task inputs.\n * @param events - Sole public notification owner.\n * @returns Bindings for one stable trigger and mutually exclusive task content.\n */\nexport function useActionMenu(props: QuireKitActionMenuProps, events: ActionMenuCallbacks) {\n const id = `action-menu-${useId()}`;\n const triggerId = `${id}-trigger`;\n const contentId = `${id}-content`;\n const trigger = shallowRef<HTMLElement>();\n const opener = shallowRef<HTMLElement>();\n const origin = ref<\"button\" | \"region\" | \"point\">(\"button\");\n const point = shallowRef<{ x: number; y: number }>();\n const path = ref<readonly string[]>([]);\n const failed = ref(false);\n const pathChanged = ref(false);\n const text = useQuireKitMessages(\"actionMenu\");\n const bottom = ref<ActionMenuBottomApi>();\n const views = new Map<string, ActionMenuView>();\n const host = useQuireOverlayHost();\n const owner = useModalSurfaceOwner();\n const presentation = useAdaptivePresentation(trigger, () => props.presentation);\n const requests = createTaskRequests(id);\n const index = computed(() => indexActionMenu(props.actions));\n const level = computed(() => resolveActionMenuLevel(props.actions, path.value));\n\n /** Discards all private directory state at the session boundary. */\n function reset(): void { path.value = []; failed.value = false; pathChanged.value = false; views.clear(); }\n const lifecycle = useTaskLifecycle({ props, ownerReady: owner.ready, presentation, requests, events: { ...events, begin: reset, end: reset } });\n const desktopOpen = computed(() => lifecycle.open.value && presentation.resolved.value === \"desktop\");\n const bottomOpen = computed(() => lifecycle.open.value && presentation.resolved.value === \"bottom\");\n const menu = useMenu(computed<UseMenuProps>(() => ({\n id: `${id}-menu`, ids: { trigger: triggerId, content: contentId }, open: desktopOpen.value,\n closeOnSelect: false, loopFocus: true, typeahead: true, \"aria-label\": props.title,\n positioning: { placement: \"bottom-start\", strategy: host.strategy.value ?? \"fixed\", gutter: 4, flip: true, slide: true, overflowPadding: 8 },\n /** @param details - Native Menu open request. */\n onOpenChange(details) {\n if (presentation.resolved.value !== \"desktop\") return;\n if (details.open) lifecycle.requestOpen(); else lifecycle.requestClose(\"trigger\");\n },\n /** @param event - Topmost Menu Escape. */\n onEscapeKeyDown(event) { if (!event.defaultPrevented && desktopOpen.value) lifecycle.requestClose(\"escape\"); event.preventDefault(); },\n /** @param event - Outside intent already filtered through nested layers. */\n onInteractOutside(event) { if (!event.defaultPrevented && desktopOpen.value) lifecycle.requestClose(\"outside\"); event.preventDefault(); }\n })));\n let drawerCloseReason: QuireKitTaskCloseReason = \"programmatic\";\n /** @param request - Original guarded Drawer close intent. */\n function guardDrawer(request: QuireKitTaskCloseRequest): void {\n if (presentation.resolved.value !== \"bottom\") request.preventDefault();\n lifecycle.guardClose(request);\n if (!request.defaultPrevented) drawerCloseReason = request.reason;\n }\n const drawer = useDrawerRuntime({\n get open() { return bottomOpen.value; }, side: \"bottom\", modal: true, trapFocus: true, preventScroll: true,\n restoreFocus: true, closeOnEscape: true, closeOnInteractOutside: true, snapPoints: [1], dragEnabled: false,\n onCloseRequest: guardDrawer,\n /** @returns The actual task entry or explicit host destination. */\n finalFocusEl: () => owner.ready.value ? props.finalFocusEl?.() ?? opener.value ?? trigger.value ?? null : null,\n /** @returns The title-first touch destination, without forcing the soft keyboard. */\n initialFocusEl: () => trigger.value?.ownerDocument.getElementById(contentId) ?? null\n }, {\n updateOpen: open => {\n if (presentation.resolved.value !== \"bottom\") return;\n if (open) lifecycle.requestOpen(); else lifecycle.acceptClose(drawerCloseReason);\n },\n openChange: () => {}, closeRequest: guardDrawer, snapPointChange: () => {}, triggerValueChange: () => {}\n }, { id: `${id}-drawer`, ids: { trigger: triggerId, content: contentId } });\n useActionMenuAnchor(menu, desktopOpen, opener, origin, point);\n useActionMenuFocus(desktopOpen, owner.ready, opener, contentId, triggerId, () => props.finalFocusEl?.());\n const handleDesktopKeydown = useActionMenuKeyboard(menu, desktopOpen, trigger);\n\n /** @param element - Persistent real trigger emitted by the shared adapter. */\n function setTrigger(element: HTMLElement): void { trigger.value = element; opener.value ??= element; }\n /** @param event - Original opening input. @returns Whether delegation can continue. */\n function prepare(event: Event): boolean {\n if (props.disabled || !owner.ready.value || !presentation.resolveForEvent(event)) return false;\n opener.value = trigger.value; origin.value = \"button\"; point.value = undefined;\n return true;\n }\n /** @returns Current original-event bindings, with no duplicate click owner. */\n function getBindings(): object {\n return presentation.resolved.value === \"desktop\" ? { ...menu.api.value.getTriggerProps(), onKeydown: handleDesktopKeydown }\n : presentation.resolved.value === \"bottom\" ? drawer.api.value.getTriggerProps() : {};\n }\n /** @param event - Native pointer context menu or standard keyboard context entry. */\n function openContext(event: MouseEvent | KeyboardEvent): void {\n if (event.defaultPrevented || props.disabled || !owner.ready.value) return;\n if (event.type === \"keydown\" && ((event as KeyboardEvent).isComposing || (event as KeyboardEvent).keyCode === 229 || !isContextMenuKey(event as KeyboardEvent))) return;\n if (!presentation.resolveForEvent(event)) return;\n event.preventDefault(); event.stopPropagation();\n opener.value = event.currentTarget as HTMLElement;\n origin.value = event.type === \"keydown\" ? \"region\" : \"point\";\n point.value = event.type === \"keydown\" ? undefined : { x: (event as MouseEvent).clientX, y: (event as MouseEvent).clientY };\n lifecycle.requestOpen();\n }\n\n /** @param value - Current row's stable identity. @returns Completion of a branch transition or current command. */\n async function activate(value: string): Promise<void> {\n if (!lifecycle.open.value || requests.submitting.value) return;\n const location = index.value.get(value);\n if (!location || location.disabled) return;\n if (location.action.kind === \"branch\") {\n const view = bottom.value?.captureView();\n views.set(JSON.stringify(path.value), { ...view, scrollTop: view?.scrollTop ?? 0, focusedValue: value });\n path.value = [...location.path, value]; failed.value = false;\n await bottom.value?.restoreView({ scrollTop: 0, focusedValue: null });\n return;\n }\n const context = requests.startSubmission();\n if (!context) return;\n const request: QuireKitActionMenuRequest = Object.freeze({ ...context, value, path: Object.freeze([...location.path]) });\n failed.value = false;\n try {\n const result = props.execute?.(request);\n if (result) await result;\n if (!requests.isCurrent(request, \"submission\")) return;\n requests.finishSubmission(request);\n if (requests.sessionId.value !== request.sessionId) return;\n events.action({ value, path: request.path, sessionId: request.sessionId });\n if (requests.sessionId.value === request.sessionId) lifecycle.requestClose(\"action\");\n } catch (error) {\n if (!requests.isCurrent(request, \"submission\")) return;\n requests.finishSubmission(request);\n if (requests.sessionId.value !== request.sessionId) return;\n if (error instanceof Error && error.name === \"AbortError\") return;\n failed.value = true; events.error({ error, request });\n }\n }\n /** @returns Completion after the previous directory's focus and scroll have been restored. */\n async function back(): Promise<void> {\n if (requests.submitting.value || path.value.length === 0) return;\n path.value = path.value.slice(0, -1); failed.value = false;\n await bottom.value?.restoreView(views.get(JSON.stringify(path.value)) ?? { scrollTop: 0, focusedValue: null });\n }\n watch(level, current => {\n if (current.path.length === path.value.length) return;\n path.value = current.path; pathChanged.value = true;\n void nextTick(() => bottom.value?.restoreView({ scrollTop: 0, focusedValue: null }));\n });\n return { triggerId, contentId, trigger, bottom, path, level, lifecycle, requests, presentation, menu, drawer,\n desktopOpen, bottomOpen, prepare, getBindings, setTrigger, openContext, activate, back,\n errorText: computed(() => failed.value ? props.errorText ?? text.value.error : undefined),\n pathStatus: computed(() => pathChanged.value ? text.value.directoryUpdated : undefined) };\n}\n","<script setup lang=\"ts\">\nimport { Menu } from \"@ark-ui/vue/menu\";\nimport { Drawer } from \"@ark-ui/vue/drawer\";\nimport type { QuireKitActionMenuActionDetails, QuireKitActionMenuIconSlotProps, QuireKitActionMenuProps as Props, QuireKitActionMenuRequest } from \"../../components/action-menu\";\nimport type { QuireKitResolvedTaskPresentation, QuireKitTaskCancelReason } from \"../../components/task\";\nimport TaskTrigger from \"../shared/task/trigger.vue\";\nimport QuireButton from \"../button/button.vue\";\nimport Desktop from \"./desktop.vue\";\nimport Bottom from \"./bottom.vue\";\nimport { useActionMenu } from \"./use-action-menu\";\n\n/** Public task notifications; execute is the only business entry. */\ninterface Emits {\n /** Requests controlled open acknowledgement. */\n \"update:open\": [open: boolean];\n /** Reports one actual session transition. */\n openChange: [open: boolean];\n /** Reports discarded uncommitted task state. */\n cancel: [details: { readonly reason: QuireKitTaskCancelReason; readonly sessionId: string }];\n /** Reports successful execution. */\n action: [details: QuireKitActionMenuActionDetails];\n /** Reports failure of the current request. */\n error: [details: { readonly error: unknown; readonly request: QuireKitActionMenuRequest }];\n}\n/** Stable task entry and decorative content. */\ninterface Slots {\n /** One real button; the task merges behavior and ARIA. */\n readonly trigger?: (props: { open: boolean; disabled: boolean; summary: string; presentation: QuireKitResolvedTaskPresentation | undefined }) => unknown;\n /** Non-interactive content region supporting contextmenu and ContextMenu/Shift+F10. */\n readonly context?: () => unknown;\n /** Replaces only an action's decorative icon. */\n readonly icon?: (props: QuireKitActionMenuIconSlotProps) => unknown;\n}\nconst props = withDefaults(defineProps<Props>(), { open: undefined, defaultOpen: false, disabled: false, presentation: \"auto\" });\nconst emit = defineEmits<Emits>();\ndefineSlots<Slots>();\nconst task = useActionMenu(props, {\n updateOpen: value => emit(\"update:open\", value), openChange: value => emit(\"openChange\", value),\n cancel: details => emit(\"cancel\", details), action: details => emit(\"action\", details), error: details => emit(\"error\", details)\n});\nconst bottom = task.bottom;\ndefineExpose({ requestClose: task.lifecycle.requestClose });\n</script>\n\n<template>\n <TaskTrigger :id=\"task.triggerId\" :disabled=\"disabled\" :prepare=\"task.prepare\" :get-bindings=\"task.getBindings\" @element=\"task.setTrigger\">\n <slot name=\"trigger\" :open=\"task.lifecycle.open.value\" :disabled=\"disabled\" :summary=\"title\" :presentation=\"task.presentation.resolved.value\"><QuireButton>{{ title }}</QuireButton></slot>\n </TaskTrigger>\n <div v-if=\"$slots.context\" role=\"group\" :aria-label=\"contextLabel ?? title\" :tabindex=\"disabled ? -1 : 0\" class=\"qk-menu__context-trigger\"\n :aria-haspopup=\"task.presentation.resolved.value === 'desktop' ? 'menu' : task.presentation.resolved.value === 'bottom' ? 'dialog' : undefined\"\n :aria-expanded=\"task.lifecycle.open.value\" :aria-controls=\"task.lifecycle.open.value ? task.contentId : undefined\" @contextmenu=\"task.openContext\" @keydown=\"task.openContext\"><slot name=\"context\" /></div>\n <Menu.RootProvider :value=\"task.menu\" lazy-mount unmount-on-exit @exit-complete=\"task.presentation.completeExit('desktop', task.presentation.epoch.value)\">\n <Desktop v-if=\"task.presentation.resolved.value === 'desktop' && task.presentation.phase.value !== 'closed'\" :title=\"title\" :description=\"description\"\n :actions=\"actions\" :busy=\"task.requests.submitting.value\" :error-text=\"task.errorText.value\" :status-text=\"task.pathStatus.value\" @activate=\"task.activate\"><template v-if=\"$slots.icon\" #icon=\"slotProps\"><slot name=\"icon\" v-bind=\"slotProps\" /></template></Desktop>\n </Menu.RootProvider>\n <Drawer.RootProvider :value=\"task.drawer.api.value\" lazy-mount unmount-on-exit @exit-complete=\"task.presentation.completeExit('bottom', task.presentation.epoch.value)\">\n <Bottom v-if=\"task.presentation.resolved.value === 'bottom' && task.presentation.phase.value !== 'closed'\" ref=\"bottom\"\n :title=\"task.level.value.branch?.label ?? title\" v-bind=\"{ ...(description === undefined ? {} : { description }), ...(task.errorText.value === undefined ? {} : { errorText: task.errorText.value }), ...(task.pathStatus.value === undefined ? {} : { statusText: task.pathStatus.value }) }\" :actions=\"task.level.value.actions\" :can-go-back=\"task.path.value.length > 0\"\n :busy=\"task.requests.submitting.value\" :layout=\"layout\" :searchable=\"searchable\"\n @activate=\"task.activate\" @back=\"task.back\" @cancel=\"task.lifecycle.requestClose('cancel')\"><template v-if=\"$slots.icon\" #icon=\"slotProps\"><slot name=\"icon\" v-bind=\"slotProps\" /></template></Bottom>\n </Drawer.RootProvider>\n</template>\n","<script setup lang=\"ts\">\nimport PopoverContent from \"../../../popover/content.vue\";\nimport { usePopoverContext } from \"@ark-ui/vue/popover\";\n\n/** Private surface styling seam shared by choice and preview task templates. */\ninterface Props {\n /** Additional classes on the real Popover Content. */\n readonly contentClass?: string;\n /** Presence of the real Popover Description in the fixed header. */\n readonly description?: string;\n}\ndefineProps<Props>();\n\n/** Private fixed-header/body/footer frame for the anchored choice task. */\ninterface Slots {\n /** Full fixed title, search and dismiss region. */\n readonly header: () => unknown;\n /** Sole scrollable selection body. */\n readonly default: () => unknown;\n /** Fixed task feedback and confirmation actions. */\n readonly footer: () => unknown;\n}\ndefineOptions({ inheritAttrs: false });\ndefineSlots<Slots>();\nconst context = usePopoverContext();\n</script>\n\n<template>\n <PopoverContent :show-arrow=\"false\" :aria-labelledby=\"context.getTitleProps().id\" :aria-describedby=\"description ? context.getDescriptionProps().id : undefined\"\n :class=\"['qk-task__surface qk-choice-picker__surface qk-choice-picker__surface--desktop', contentClass]\">\n <slot name=\"header\" />\n <div class=\"qk-choice-picker__body\"><slot /></div>\n <footer class=\"qk-choice-picker__footer\"><slot name=\"footer\" /></footer>\n </PopoverContent>\n</template>\n","<script setup lang=\"ts\">\nimport { Drawer } from \"@ark-ui/vue/drawer\";\nimport { Popover } from \"@ark-ui/vue/popover\";\nimport { computed, useId } from \"vue\";\nimport type { QuireKitChoicePickerItem, QuireKitChoicePickerItemSlotProps } from \"../../components/choice-picker/types\";\nimport type { QuireKitResolvedTaskPresentation } from \"../../components/task/types\";\nimport type { useTaskSelection } from \"../shared/task/selection/controller\";\nimport DrawerFrame from \"../drawer/content-frame.vue\";\nimport QuireButton from \"../button/button.vue\";\nimport QuireIconButton from \"../button/icon-button.vue\";\nimport QuireIcon from \"../icon/icon.vue\";\nimport QuireInput from \"../input/input.vue\";\nimport QuireListbox from \"../listbox/listbox.vue\";\nimport DesktopFrame from \"../shared/task/selection/desktop-frame.vue\";\nimport { useQuireKitMessages } from \"../locale-provider/context\";\n\n/** Same search, option and confirmation content in either presentation. */\ninterface Props {\n /** Current concrete shell. */\n readonly presentation: QuireKitResolvedTaskPresentation;\n /** Task accessible title. */\n readonly title: string;\n /** Optional task description. */\n readonly description?: string | undefined;\n /** Shared selection controller. */\n readonly selection: ReturnType<typeof useTaskSelection<QuireKitChoicePickerItem>>;\n /** Current sole business submission. */\n readonly busy: boolean;\n /** Allows multiple draft values. */\n readonly multiple: boolean;\n /** Shows the stable query field. */\n readonly searchable: boolean;\n /** Host-owned remote loading state. */\n readonly loading: boolean;\n /** Current remote query failure. */\n readonly searchError?: string | undefined;\n /** Host submission failure message; the language pack supplies the fallback. */\n readonly errorText?: string | undefined;\n /** Host confirmation action name; the language pack supplies the fallback. */\n readonly confirmLabel?: string | undefined;\n}\n/** Close intents retained by the outer lifecycle controller. */\ninterface Emits {\n /** Requests explicit task cancellation. */\n cancel: [];\n /** Requests header close through the shared policy. */\n close: [];\n}\n/** Content customization without replacing task semantics. */\ninterface Slots {\n /** Decorative non-interactive candidate content. */\n readonly item?: (props: QuireKitChoicePickerItemSlotProps) => unknown;\n /** Empty candidates, including host recovery actions. */\n readonly empty?: () => unknown;\n /** Host loading decoration; the stable list remains mounted. */\n readonly loading?: () => unknown;\n /** Replaces the one live feedback lane's readable message. */\n readonly status?: (props: { busy: boolean; error: string | undefined; selectedCount: number }) => unknown;\n}\nconst props = defineProps<Props>();\nconst emit = defineEmits<Emits>();\ndefineSlots<Slots>();\nconst text = useQuireKitMessages(\"choicePicker\");\nconst searchId = `choice-query-${useId()}`;\nconst frame = computed(() => props.presentation === \"bottom\" ? DrawerFrame : DesktopFrame);\nconst titlePart = computed(() => props.presentation === \"bottom\" ? Drawer.Title : Popover.Title);\nconst descriptionPart = computed(() => props.presentation === \"bottom\" ? Drawer.Description : Popover.Description);\nconst error = computed(() => props.selection.invalid.value ? text.value.invalid\n : props.selection.failed.value ? props.errorText ?? text.value.error : props.searchError);\nconst feedback = computed(() => props.busy ? text.value.submitting : error.value ?? (props.loading ? text.value.loading\n : props.selection.unknown.value.length ? text.value.unknown : text.value.selected(props.selection.draft.value.length)));\n\n/** @param event - Native key boundary; composition must never activate or dismiss a task. */\nfunction guardKey(event: KeyboardEvent): void {\n if ((event.isComposing || event.keyCode === 229 || props.selection.query.composing.value) && [\"Enter\", \"Escape\"].includes(event.key)) {\n event.preventDefault(); event.stopPropagation();\n }\n guardBusy(event);\n}\n/** @param event - Original busy option activation; navigation and focus remain available. */\nfunction guardBusy(event: Event): void {\n if (!props.busy) return;\n if (event.type === \"click\" || [\"Enter\", \" \"].includes((event as KeyboardEvent).key)) { event.preventDefault(); event.stopPropagation(); }\n}\n</script>\n\n<template>\n <component :is=\"frame\" :title=\"title\" :description=\"description ?? ''\" :show-close=\"false\" :content-class=\"presentation === 'bottom' ? 'qk-task__surface qk-choice-picker__surface qk-choice-picker__surface--bottom' : ''\">\n <template #header>\n <header class=\"qk-choice-picker__header\" @keydown.capture=\"guardKey\">\n <div class=\"qk-choice-picker__heading\">\n <span><component :is=\"titlePart\" class=\"qk-drawer__title\">{{ title }}</component><component :is=\"descriptionPart\" v-if=\"description\" class=\"qk-drawer__description\">{{ description }}</component></span>\n <QuireIconButton variant=\"text\" class=\"qk-task__target\" :aria-disabled=\"busy || undefined\" :label=\"text.close\" @click=\"emit('close')\"><QuireIcon name=\"close\" :size=\"16\" /></QuireIconButton>\n </div>\n <div v-if=\"searchable\" class=\"qk-choice-picker__search\">\n <label :for=\"searchId\">{{ text.search }}</label>\n <QuireInput :id=\"searchId\" type=\"search\" width=\"100%\" autocomplete=\"off\" :model-value=\"selection.query.query.value\" :read-only=\"busy\"\n @update:model-value=\"selection.query.input\" @compositionstart=\"selection.query.compositionStart\" @compositionend=\"selection.query.compositionEnd\" />\n </div>\n </header>\n </template>\n <div class=\"qk-choice-picker__options\" :aria-busy=\"busy || loading || undefined\" :aria-disabled=\"busy || undefined\" @keydown.capture=\"guardKey\" @click.capture=\"guardBusy\">\n <div v-if=\"loading && $slots.loading\" class=\"qk-choice-picker__loading\"><slot name=\"loading\" /></div>\n <QuireListbox :label=\"title\" hide-label :items=\"selection.query.visibleItems.value\" :model-value=\"selection.draft.value\" :highlighted-value=\"selection.highlighted.value\"\n :selection-mode=\"multiple ? 'multiple' : 'single'\" :select-on-highlight=\"false\" :deselectable=\"false\" content-class=\"qk-choice-picker__list\" item-class=\"qk-choice-picker__item\"\n @update:model-value=\"selection.select\" @update:highlighted-value=\"selection.highlighted.value = $event ?? null\">\n <template v-if=\"$slots.item\" #item=\"slotProps\"><slot name=\"item\" v-bind=\"slotProps\" /></template>\n <template #empty><slot name=\"empty\"><p>{{ loading ? text.loadingOptions : text.noMatches }}</p></slot></template>\n </QuireListbox>\n </div>\n <template #footer>\n <div class=\"qk-choice-picker__footer-content\" @keydown.capture=\"guardKey\">\n <p class=\"qk-choice-picker__status\" :role=\"!busy && error ? 'alert' : 'status'\" aria-atomic=\"true\"><slot name=\"status\" :busy=\"busy\" :error=\"error\" :selected-count=\"selection.draft.value.length\">{{ feedback }}</slot></p>\n <div class=\"qk-choice-picker__actions\">\n <QuireButton variant=\"text\" class=\"qk-task__target\" :aria-disabled=\"busy || undefined\" @click=\"emit('cancel')\">{{ text.cancel }}</QuireButton>\n <QuireButton v-if=\"selection.explicit.value || selection.failed.value\" class=\"qk-task__target\" color=\"primary\" variant=\"solid\" :aria-disabled=\"busy || undefined\" @click=\"selection.confirm\">{{ selection.failed.value ? text.retry : confirmLabel ?? text.confirm }}</QuireButton>\n </div>\n </div>\n </template>\n </component>\n</template>\n","import type { TaskSelectionItem } from \"./types\";\n\n/** @param values - Incoming model. @returns Independent ordered unique values. */\nexport function copySelection(values: readonly string[]): string[] { return [...new Set(values)]; }\n\n/** @param left - Current value. @param right - Candidate value. @returns Ordered semantic equality. */\nexport function equalSelection(left: readonly string[], right: readonly string[]): boolean {\n return left.length === right.length && left.every((value, index) => value === right[index]);\n}\n\n/**\n * Preserves baseline values while refusing newly added missing or disabled candidates.\n * @param value - Proposed complete selection.\n * @param baseline - Existing committed selection.\n * @param items - Current authoritative candidate collection.\n * @returns Whether the candidate is eligible for submission.\n */\nexport function isSelectionAvailable(value: readonly string[], baseline: readonly string[], items: readonly TaskSelectionItem[]): boolean {\n return value.every(entry => baseline.includes(entry) || items.some(item => item.value === entry && !item.disabled));\n}\n","import { computed, ref, watch } from \"vue\";\nimport type { TaskSelectionItem, TaskSelectionOptions } from \"./types\";\n\n/**\n * Keeps incomplete IME text local and emits only complete, independently cancelled queries.\n * @param options - Shared selection dependencies.\n * @returns Query projection and native input boundaries without a separate search machine.\n */\nexport function useSelectionQuery<T extends TaskSelectionItem>({ props, requests, events }: TaskSelectionOptions<T>) {\n const local = ref(props.defaultQuery ?? \"\");\n const composing = ref(false);\n const compositionText = ref(\"\");\n let lastInput: string | undefined;\n const query = computed(() => composing.value ? compositionText.value : props.query ?? local.value);\n const visibleItems = computed(() => {\n const text = (props.query ?? local.value).trim().toLocaleLowerCase();\n if (!text || props.filter === \"none\") return props.items;\n return props.items.filter(item => [item.label, ...(item.keywords ?? [])].some(term => {\n const candidate = term.toLocaleLowerCase();\n return props.filter === \"startsWith\" ? candidate.startsWith(text) : candidate.includes(text);\n }));\n });\n\n /** Resets private query state without replaying the host's search callback. */\n function reset(): void {\n composing.value = false; local.value = props.defaultQuery ?? \"\"; lastInput = undefined;\n }\n /** @param value - Native input value including intermediate composition text. */\n function input(value: string): void {\n if (props.disabled || requests.submitting.value || !requests.sessionId.value) return;\n if (composing.value) { compositionText.value = value; return; }\n if (lastInput === value) return;\n lastInput = value;\n if (props.query === undefined) local.value = value;\n events.updateQuery(value);\n const context = requests.startSearch();\n if (context) events.search(Object.freeze({ ...context, query: value }));\n }\n /** Starts native composition without publishing incomplete search intent. */\n function compositionStart(): void { compositionText.value = query.value; composing.value = true; }\n /** @param event - The original composition end carrying complete input text. */\n function compositionEnd(event: CompositionEvent): void {\n composing.value = false;\n input((event.target as HTMLInputElement).value);\n }\n watch(() => props.query, value => {\n if (value === lastInput) return;\n lastInput = undefined; requests.cancelSearch();\n }, { flush: \"sync\" });\n return { query, composing, visibleItems, reset, input, compositionStart, compositionEnd };\n}\n","import { computed, nextTick, ref, shallowRef, watch } from \"vue\";\nimport type { TaskSelectionItem, TaskSelectionOptions, TaskSelectionRequest } from \"./types\";\nimport { copySelection, equalSelection, isSelectionAvailable } from \"./value\";\nimport { useSelectionQuery } from \"./query\";\n\n/**\n * Owns committed/local value, a disposable draft, and one cancellable business submission.\n * @param options - Host projections and the existing task request owner.\n * @returns Widget-independent selection behavior shared by adaptive selection tasks.\n */\nexport function useTaskSelection<T extends TaskSelectionItem>(options: TaskSelectionOptions<T>) {\n const { props, requests, events } = options;\n const local = ref(copySelection(props.defaultValue ?? []));\n const committed = computed(() => copySelection(props.modelValue ?? local.value));\n const baseline = ref<string[]>([]);\n const draft = ref<string[]>([]);\n const highlighted = ref<string | null>(null);\n const failed = ref(false);\n const invalid = ref(false);\n const labels = shallowRef(new Map<string, string>());\n const query = useSelectionQuery(options);\n const explicit = computed(() => props.selectionMode === \"multiple\" || props.commitMode === \"explicit\");\n let publishing = false;\n\n /** Copies current authoritative values without replacing the surrounding input or widget. */\n function syncValue(): void { baseline.value = [...committed.value]; draft.value = [...committed.value]; failed.value = false; invalid.value = false; }\n /** Starts or discards one private draft without executing business or query callbacks. */\n function reset(): void { syncValue(); highlighted.value = null; query.reset(); }\n\n watch(() => [props.selectionMode, props.commitMode], () => {\n if (props.selectionMode === \"multiple\" && props.commitMode === \"immediate\") throw new TypeError(\"Multiple selection requires explicit confirmation.\");\n }, { immediate: true, flush: \"sync\" });\n watch(committed, (value, previous) => {\n if (equalSelection(value, previous) || publishing) return;\n requests.cancelSubmission(); syncValue();\n }, { flush: \"sync\" });\n // Keep only current candidates and selected labels: remote filtering can hide a\n // selection, but a long-running task must not accumulate every search result.\n watch([() => props.items, committed, draft], () => {\n const retained = new Set([...committed.value, ...draft.value]);\n const next = new Map([...labels.value].filter(([value]) => retained.has(value)));\n for (const item of props.items) next.set(item.value, item.label);\n labels.value = next;\n }, { immediate: true, deep: true });\n const summary = computed(() => committed.value.map(value => labels.value.get(value) ?? value).join(\"、\"));\n const unknown = computed(() => draft.value.filter(value => !labels.value.has(value)));\n\n /** @returns Completion of a current submission; stale results have no outward effect. */\n async function confirm(): Promise<void> {\n if (props.disabled || query.composing.value || !requests.sessionId.value || requests.submitting.value) return;\n if (!isSelectionAvailable(draft.value, baseline.value, props.items)) { invalid.value = true; return; }\n const context = requests.startSubmission();\n if (!context) return;\n const request: TaskSelectionRequest = Object.freeze({ ...context, value: Object.freeze([...draft.value]), previousValue: Object.freeze([...baseline.value]) });\n failed.value = false; invalid.value = false;\n try {\n const result = props.submit?.(request);\n if (result) await result;\n if (!requests.isCurrent(request, \"submission\")) return;\n // Keep the lock while notifying synchronous consumers. A model echo is not\n // an external replacement and must not abort the just-completed operation.\n publishing = true;\n try {\n if (props.modelValue === undefined) local.value = [...request.value];\n events.updateValue(request.value);\n events.commit(request);\n } finally { publishing = false; }\n requests.finishSubmission(request);\n await nextTick();\n if (requests.sessionId.value !== request.sessionId) return;\n syncValue();\n events.success();\n } catch (error) {\n if (!requests.isCurrent(request, \"submission\")) return;\n requests.finishSubmission(request);\n if (error instanceof Error && error.name === \"AbortError\") return;\n failed.value = true; events.error({ error, request });\n }\n }\n /** @param value - Complete selection emitted by the existing Listbox widget. */\n function select(value: readonly string[] | undefined): void {\n if (props.disabled || query.composing.value || requests.submitting.value || !requests.sessionId.value) return;\n const next = copySelection(value ?? []);\n if ((props.selectionMode !== \"multiple\" && next.length > 1) || !isSelectionAvailable(next, baseline.value, props.items)) return;\n draft.value = next; failed.value = false; invalid.value = false;\n if (!explicit.value) void confirm();\n }\n return { committed, baseline, draft, highlighted, failed, invalid, summary, unknown, explicit, query, reset, select, confirm };\n}\n","import { computed, shallowRef, useId } from \"vue\";\nimport type { QuireKitTaskCloseReason, QuireKitTaskCloseRequest } from \"../../../../components/task/types\";\nimport { useDrawerRuntime } from \"../../../drawer/use-runtime\";\nimport { usePopoverRuntime } from \"../../../popover/use-runtime\";\nimport { useModalSurfaceOwner } from \"../../surface/use-modal-owner\";\nimport { useAdaptivePresentation } from \"../presentation/use-adaptive-presentation\";\nimport { useTaskLifecycle } from \"../session/lifecycle\";\nimport { createTaskRequests } from \"../session/requests\";\nimport { useTaskSelection } from \"./controller\";\nimport type { TaskSelectionItem, TaskSelectionSurfaceEvents, TaskSelectionSurfaceProps } from \"./types\";\n\n/**\n * Binds one disposable selection session to two mutually exclusive public Ark providers.\n * @param props - Live public picker inputs.\n * @param events - Single model and notification boundary.\n * @returns Persistent entry, shared selection, and the active physical surface APIs.\n */\nexport function useSelectionTask<T extends TaskSelectionItem>(props: TaskSelectionSurfaceProps<T>, events: TaskSelectionSurfaceEvents) {\n const id = `selection-task-${useId()}`;\n const triggerId = `${id}-trigger`, contentId = `${id}-content`;\n const trigger = shallowRef<HTMLElement>();\n const inputOrigin = shallowRef<\"pointer\" | \"keyboard\">(\"pointer\");\n const owner = useModalSurfaceOwner();\n const presentation = useAdaptivePresentation(trigger, () => props.presentation);\n const requests = createTaskRequests(id);\n const selection = useTaskSelection({ props, requests, events: { ...events, success: () => lifecycle.requestClose(\"action\") } });\n const lifecycle = useTaskLifecycle({\n props: {\n get open() { return props.open; }, get defaultOpen() { return props.defaultOpen; }, get disabled() { return props.disabled; },\n /** @param request - Shared guarded intent including native IME protection. */\n onCloseRequest(request) {\n if (selection.query.composing.value) request.preventDefault();\n else props.onCloseRequest?.(request);\n }\n },\n ownerReady: owner.ready, presentation, requests,\n events: { ...events, begin: selection.reset, end: selection.reset }\n });\n const desktopOpen = computed(() => lifecycle.open.value && presentation.resolved.value === \"desktop\");\n const bottomOpen = computed(() => lifecycle.open.value && presentation.resolved.value === \"bottom\");\n\n /** @returns Title-first touch focus or the explicitly requested keyboard search entry. */\n function initialFocus(): HTMLElement | null {\n const content = trigger.value?.ownerDocument.getElementById(contentId);\n return inputOrigin.value === \"keyboard\" && props.searchable ? content?.querySelector<HTMLInputElement>('input[type=\"search\"]') ?? content ?? null : content ?? null;\n }\n /** @returns Existing outside focus, an explicit host target, or the persistent task entry. */\n function finalFocus(): HTMLElement | null {\n if (!owner.ready.value) return null;\n const document = trigger.value?.ownerDocument;\n const active = document?.activeElement;\n const content = document?.getElementById(contentId);\n if (active && active !== document?.body && active !== trigger.value && !content?.contains(active)) return active as HTMLElement;\n return props.finalFocusEl?.() ?? trigger.value ?? null;\n }\n const popover = usePopoverRuntime({\n get open() { return desktopOpen.value; }, modal: false, portalled: true, autoFocus: true,\n initialFocusEl: initialFocus, finalFocusEl: finalFocus,\n get restoreFocus() { return owner.ready.value; }\n }, {\n updateOpen: value => { if (value) lifecycle.requestOpen(); else lifecycle.requestClose(\"trigger\"); }, openChange: () => {},\n /** @param event - Original topmost Escape. */\n escapeKeyDown(event) { if (!event.defaultPrevented && !event.isComposing && event.keyCode !== 229) lifecycle.requestClose(\"escape\"); event.preventDefault(); },\n /** @param event - Original outside intent filtered by Ark's layer stack. */\n interactOutside(event) { if (!event.defaultPrevented) lifecycle.requestClose(\"outside\"); event.preventDefault(); }\n }, { id: `${id}-popover`, ids: { trigger: triggerId, content: contentId } });\n let closeReason: QuireKitTaskCloseReason = \"programmatic\";\n /** @param request - Original Drawer close intent. */\n function guardDrawer(request: QuireKitTaskCloseRequest): void {\n lifecycle.guardClose(request);\n if (!request.defaultPrevented) closeReason = request.reason;\n }\n const drawer = useDrawerRuntime({\n get open() { return bottomOpen.value; }, side: \"bottom\", modal: true, trapFocus: true, preventScroll: true,\n get restoreFocus() { return owner.ready.value; }, closeOnEscape: true, closeOnInteractOutside: true,\n snapPoints: [1], dragEnabled: false, initialFocusEl: initialFocus, finalFocusEl: finalFocus, onCloseRequest: guardDrawer\n }, {\n updateOpen: value => { if (value) lifecycle.requestOpen(); else lifecycle.acceptClose(closeReason); },\n openChange: () => {}, closeRequest: guardDrawer, snapPointChange: () => {}, triggerValueChange: () => {}\n }, { id: `${id}-drawer`, ids: { trigger: triggerId, content: contentId } });\n\n /** @param element - Persistent mounted task button. */\n function setTrigger(element: HTMLElement): void { trigger.value = element; }\n /** @param event - Original physical opening input. @returns Whether machine delegation is available. */\n function prepare(event: Event): boolean {\n if (props.disabled || !owner.ready.value || !presentation.resolveForEvent(event)) return false;\n if (event.type === \"keydown\") inputOrigin.value = \"keyboard\";\n else if (event.type === \"pointerdown\") inputOrigin.value = \"pointer\";\n else if (event.type === \"click\") inputOrigin.value = (event as MouseEvent).detail === 0 ? \"keyboard\" : \"pointer\";\n return true;\n }\n /** @returns Active machine's original trigger semantics without replacing the physical button. */\n function getBindings(): object {\n return presentation.resolved.value === \"desktop\" ? popover.api.value.getTriggerProps()\n : presentation.resolved.value === \"bottom\" ? drawer.api.value.getTriggerProps() : {};\n }\n return { triggerId, contentId, trigger, presentation, lifecycle, requests, selection, popover, drawer, setTrigger, prepare, getBindings };\n}\n","import { useSelectionTask } from \"../shared/task/selection/use-picker\";\nimport type { ChoicePickerEvents, ChoicePickerRuntimeProps } from \"./types\";\n\n/**\n * Projects public choice inputs onto the shared adaptive selection task.\n * @param props - Reactive public choice contract materialized by Vue.\n * @param events - Sole public notification owner.\n * @returns Shared selection and presentation bindings.\n */\nexport function useChoicePicker(props: ChoicePickerRuntimeProps, events: ChoicePickerEvents) {\n return useSelectionTask(props, events);\n}\n","<script setup lang=\"ts\">\nimport { Drawer } from \"@ark-ui/vue/drawer\";\nimport { Popover } from \"@ark-ui/vue/popover\";\nimport type { QuireKitChoicePickerProps as Props, QuireKitChoicePickerItemSlotProps, QuireKitChoiceSubmitRequest } from \"../../components/choice-picker/types\";\nimport type { QuireKitResolvedTaskPresentation, QuireKitTaskCancelReason, QuireKitTaskSearchRequest } from \"../../components/task/types\";\nimport TaskTrigger from \"../shared/task/trigger.vue\";\nimport QuireButton from \"../button/button.vue\";\nimport Content from \"./content.vue\";\nimport { useChoicePicker } from \"./use-choice-picker\";\n\n/** Model requests and notifications from the one selection session. */\ninterface Emits {\n /** Requests a controlled open acknowledgement. */\n \"update:open\": [value: boolean];\n /** Reports actual session visibility. */\n openChange: [value: boolean];\n /** Reports a discarded session. */\n cancel: [details: { readonly reason: QuireKitTaskCancelReason; readonly sessionId: string }];\n /** Requests a successfully submitted controlled value. */\n \"update:modelValue\": [value: readonly string[]];\n /** Reports a successful business submission without executing it again. */\n commit: [request: QuireKitChoiceSubmitRequest];\n /** Reports only the current submission's failure. */\n error: [details: { readonly error: unknown; readonly request: QuireKitChoiceSubmitRequest }];\n /** Requests a complete ordinary or IME query. */\n \"update:query\": [value: string];\n /** Reports the latest independently cancellable query. */\n searchRequest: [request: QuireKitTaskSearchRequest];\n}\n/** Stable entry and non-interactive option decoration. */\ninterface Slots {\n /** One real button, with task ARIA and native behavior merged in place. */\n readonly trigger?: (props: { open: boolean; disabled: boolean; summary: string; presentation: QuireKitResolvedTaskPresentation | undefined }) => unknown;\n /** Replaces candidate decoration while Listbox retains option semantics. */\n readonly item?: (props: QuireKitChoicePickerItemSlotProps) => unknown;\n /** Empty result content, optionally including a host recovery action. */\n readonly empty?: () => unknown;\n /** Loading decoration without replacing the list or query input. */\n readonly loading?: () => unknown;\n /** Replaces the readable message in the single live status lane. */\n readonly status?: (props: { busy: boolean; error: string | undefined; selectedCount: number }) => unknown;\n}\nconst {\n title, description, items, modelValue = undefined, defaultValue, selectionMode, commitMode,\n open = undefined, defaultOpen = false, disabled = false, presentation = \"auto\", searchable = false,\n query = undefined, defaultQuery, filter, loading = false, searchError, finalFocusEl, onCloseRequest, submit,\n confirmLabel, errorText\n} = defineProps<Props>();\nconst emit = defineEmits<Emits>();\ndefineSlots<Slots>();\nconst task = useChoicePicker({\n get title() { return title; }, get items() { return items; },\n get modelValue() { return modelValue; }, get defaultValue() { return defaultValue; },\n get selectionMode() { return selectionMode; }, get commitMode() { return commitMode; },\n get open() { return open; }, get defaultOpen() { return defaultOpen; }, get disabled() { return disabled; },\n get presentation() { return presentation; }, get searchable() { return searchable; },\n get query() { return query; }, get defaultQuery() { return defaultQuery; }, get filter() { return filter; },\n get finalFocusEl() { return finalFocusEl; }, get onCloseRequest() { return onCloseRequest; }, get submit() { return submit; }\n}, {\n updateOpen: value => emit(\"update:open\", value), openChange: value => emit(\"openChange\", value), cancel: details => emit(\"cancel\", details),\n updateValue: value => emit(\"update:modelValue\", value), commit: request => emit(\"commit\", request), error: details => emit(\"error\", details),\n updateQuery: value => emit(\"update:query\", value), search: request => emit(\"searchRequest\", request)\n});\ndefineExpose({ requestClose: task.lifecycle.requestClose });\n</script>\n\n<template>\n <TaskTrigger :id=\"task.triggerId\" :disabled=\"disabled\" :prepare=\"task.prepare\" :get-bindings=\"task.getBindings\" @element=\"task.setTrigger\">\n <slot name=\"trigger\" :open=\"task.lifecycle.open.value\" :disabled=\"disabled\" :summary=\"task.selection.summary.value\" :presentation=\"task.presentation.resolved.value\"><QuireButton>{{ task.selection.summary.value || title }}</QuireButton></slot>\n </TaskTrigger>\n <Popover.RootProvider :value=\"task.popover.api.value\" lazy-mount unmount-on-exit @exit-complete=\"task.presentation.completeExit('desktop', task.presentation.epoch.value)\">\n <Content v-if=\"task.presentation.resolved.value === 'desktop' && task.presentation.phase.value !== 'closed'\" presentation=\"desktop\"\n :title=\"title\" :description=\"description\" :selection=\"task.selection\" :busy=\"task.requests.submitting.value\" :multiple=\"selectionMode === 'multiple'\"\n :searchable=\"searchable\" :loading=\"loading\" :search-error=\"searchError\" :error-text=\"errorText\" :confirm-label=\"confirmLabel\"\n @close=\"task.lifecycle.requestClose('close-trigger')\" @cancel=\"task.lifecycle.requestClose('cancel')\">\n <template v-if=\"$slots.item\" #item=\"slotProps\"><slot name=\"item\" v-bind=\"slotProps\" /></template><template v-if=\"$slots.empty\" #empty><slot name=\"empty\" /></template>\n <template v-if=\"$slots.loading\" #loading><slot name=\"loading\" /></template><template v-if=\"$slots.status\" #status=\"slotProps\"><slot name=\"status\" v-bind=\"slotProps\" /></template>\n </Content>\n </Popover.RootProvider>\n <Drawer.RootProvider :value=\"task.drawer.api.value\" lazy-mount unmount-on-exit @exit-complete=\"task.presentation.completeExit('bottom', task.presentation.epoch.value)\">\n <Content v-if=\"task.presentation.resolved.value === 'bottom' && task.presentation.phase.value !== 'closed'\" presentation=\"bottom\"\n :title=\"title\" :description=\"description\" :selection=\"task.selection\" :busy=\"task.requests.submitting.value\" :multiple=\"selectionMode === 'multiple'\"\n :searchable=\"searchable\" :loading=\"loading\" :search-error=\"searchError\" :error-text=\"errorText\" :confirm-label=\"confirmLabel\"\n @close=\"task.lifecycle.requestClose('close-trigger')\" @cancel=\"task.lifecycle.requestClose('cancel')\">\n <template v-if=\"$slots.item\" #item=\"slotProps\"><slot name=\"item\" v-bind=\"slotProps\" /></template><template v-if=\"$slots.empty\" #empty><slot name=\"empty\" /></template>\n <template v-if=\"$slots.loading\" #loading><slot name=\"loading\" /></template><template v-if=\"$slots.status\" #status=\"slotProps\"><slot name=\"status\" v-bind=\"slotProps\" /></template>\n </Content>\n </Drawer.RootProvider>\n</template>\n","<script setup lang=\"ts\">\nimport { Drawer } from \"@ark-ui/vue/drawer\";\nimport { Popover } from \"@ark-ui/vue/popover\";\nimport { computed } from \"vue\";\nimport type { QuireKitPresetGalleryItem, QuireKitPresetGalleryItemSlotProps } from \"../../components/preset-gallery/types\";\nimport type { QuireKitResolvedTaskPresentation } from \"../../components/task/types\";\nimport type { useTaskSelection } from \"../shared/task/selection/controller\";\nimport DrawerFrame from \"../drawer/content-frame.vue\";\nimport DesktopFrame from \"../shared/task/selection/desktop-frame.vue\";\nimport QuireButton from \"../button/button.vue\";\nimport QuireIconButton from \"../button/icon-button.vue\";\nimport QuireIcon from \"../icon/icon.vue\";\nimport QuirePresetGallery from \"../preset-gallery/preset-gallery.vue\";\nimport { useQuireKitMessages } from \"../locale-provider/context\";\n\n/** One Gallery and confirmation boundary inside either shared physical frame. */\ninterface Props {\n /** Current concrete shell. */\n readonly presentation: QuireKitResolvedTaskPresentation;\n /** Accessible task title. */\n readonly title: string;\n /** Optional task explanation. */\n readonly description?: string | undefined;\n /** Shared array-based selection owner, projected to one Gallery value. */\n readonly selection: ReturnType<typeof useTaskSelection<QuireKitPresetGalleryItem>>;\n /** Whether the current submission is still pending. */\n readonly busy: boolean;\n /** Maximum Gallery column count. */\n readonly maxColumns: number;\n /** Optional Gallery minimum item width override. */\n readonly minItemWidth?: string | undefined;\n /** Host submission failure message; the language pack supplies the fallback. */\n readonly errorText?: string | undefined;\n /** Host confirmation action name; the language pack supplies the fallback. */\n readonly confirmLabel?: string | undefined;\n}\n/** Close requests remain owned by the shared task lifecycle. */\ninterface Emits {\n /** Requests cancellation through the task guard. */\n cancel: [];\n /** Requests header dismissal through the task guard. */\n close: [];\n}\n/** Gallery decoration retains the existing widget's semantics and geometry. */\ninterface Slots {\n /** Decorative preset preview without nested interactive controls. */\n readonly preview?: (props: QuireKitPresetGalleryItemSlotProps) => unknown;\n /** Replaces the Gallery's empty-state content. */\n readonly empty?: () => unknown;\n}\nconst props = defineProps<Props>();\nconst emit = defineEmits<Emits>();\ndefineSlots<Slots>();\nconst text = useQuireKitMessages(\"presetPicker\");\nconst frame = computed(() => props.presentation === \"bottom\" ? DrawerFrame : DesktopFrame);\nconst titlePart = computed(() => props.presentation === \"bottom\" ? Drawer.Title : Popover.Title);\nconst descriptionPart = computed(() => props.presentation === \"bottom\" ? Drawer.Description : Popover.Description);\nconst error = computed(() => props.selection.invalid.value ? text.value.invalid\n : props.selection.failed.value ? props.errorText ?? text.value.error : undefined);\nconst feedback = computed(() => props.busy ? text.value.submitting : error.value ?? (props.selection.unknown.value.length\n ? text.value.unknown : props.selection.draft.value.length ? text.value.selected : text.value.none));\n\n/** @param value - One Gallery draft selection, without committing its preview. */\nfunction select(value: string | null): void { props.selection.select(value === null ? [] : [value]); }\n/** @param event - Original activation while preserving navigation and the focused widget. */\nfunction guardActivation(event: Event): void {\n const keyboard = event as KeyboardEvent;\n const composing = event.type === \"keydown\" && (keyboard.isComposing || keyboard.keyCode === 229);\n if ((composing && [\"Enter\", \"Escape\"].includes(keyboard.key))\n || (props.busy && (event.type === \"click\" || [\"Enter\", \" \"].includes(keyboard.key)))) {\n event.preventDefault(); event.stopPropagation();\n }\n}\n</script>\n\n<template>\n <component :is=\"frame\" :title=\"title\" :description=\"description ?? ''\" :show-close=\"false\"\n :content-class=\"`qk-task__surface qk-preset-picker__surface qk-preset-picker__surface--${presentation}`\">\n <template #header>\n <header class=\"qk-preset-picker__header\" @keydown.capture=\"guardActivation\">\n <span><component :is=\"titlePart\" class=\"qk-drawer__title\">{{ title }}</component><component :is=\"descriptionPart\" v-if=\"description\" class=\"qk-drawer__description\">{{ description }}</component></span>\n <QuireIconButton variant=\"text\" class=\"qk-preset-picker__target\" :aria-disabled=\"busy || undefined\" :label=\"text.close\" @click=\"emit('close')\"><QuireIcon name=\"close\" :size=\"16\" /></QuireIconButton>\n </header>\n </template>\n <div class=\"qk-preset-picker__options\" :aria-busy=\"busy || undefined\" @keydown.capture=\"guardActivation\" @click.capture=\"guardActivation\">\n <QuirePresetGallery :label=\"title\" hide-label :items=\"selection.query.visibleItems.value\" :model-value=\"selection.draft.value[0] ?? null\"\n :highlighted-value=\"selection.highlighted.value\" :max-columns=\"maxColumns\"\n v-bind=\"minItemWidth === undefined ? {} : { minItemWidth }\"\n @update:model-value=\"select\" @update:highlighted-value=\"selection.highlighted.value = $event ?? null\">\n <template v-if=\"$slots.preview\" #preview=\"slotProps\"><slot name=\"preview\" v-bind=\"slotProps\" /></template>\n <template v-if=\"$slots.empty\" #empty><slot name=\"empty\" /></template>\n </QuirePresetGallery>\n </div>\n <template #footer>\n <div class=\"qk-preset-picker__footer-content\" @keydown.capture=\"guardActivation\">\n <p class=\"qk-preset-picker__status\" :role=\"!busy && error ? 'alert' : 'status'\" aria-atomic=\"true\">{{ feedback }}</p>\n <div class=\"qk-preset-picker__actions\">\n <QuireButton variant=\"text\" class=\"qk-preset-picker__target\" :aria-disabled=\"busy || undefined\" @click=\"emit('cancel')\">{{ text.cancel }}</QuireButton>\n <QuireButton v-if=\"selection.explicit.value || selection.failed.value\" class=\"qk-preset-picker__target\" color=\"primary\" variant=\"solid\" :aria-disabled=\"busy || undefined\" @click=\"selection.confirm\">{{ selection.failed.value ? text.retry : confirmLabel ?? text.confirm }}</QuireButton>\n </div>\n </div>\n </template>\n </component>\n</template>\n","import type { QuireKitPresetGalleryItem } from \"../../components/preset-gallery/types\";\nimport type { QuireKitPresetPickerProps, QuireKitPresetSubmitRequest } from \"../../components/preset-picker/types\";\nimport { useSelectionTask } from \"../shared/task/selection/use-picker\";\nimport type { TaskSelectionRequest, TaskSelectionSurfaceProps } from \"../shared/task/selection/types\";\nimport type { PresetPickerEvents } from \"./types\";\n\n/**\n * Projects one public preset into the shared array-based selection session.\n * @param props - Live single-value task inputs.\n * @param events - Public model and completion notifications.\n * @returns Shared picker surfaces, trigger, draft and request ownership.\n */\nexport function usePresetPicker(props: QuireKitPresetPickerProps, events: PresetPickerEvents) {\n const submissions = new WeakMap<TaskSelectionRequest, QuireKitPresetSubmitRequest>();\n /**\n * Preserves the same immutable single-value request through submit and notification.\n * @param request - Shared selection snapshot owned by the current task session.\n * @returns Corresponding single-value snapshot without exposing the array boundary.\n */\n function toPresetRequest(request: TaskSelectionRequest): QuireKitPresetSubmitRequest {\n let preset = submissions.get(request);\n if (!preset) {\n preset = Object.freeze({ sessionId: request.sessionId, requestId: request.requestId, signal: request.signal,\n value: request.value[0] ?? null, previousValue: request.previousValue[0] ?? null });\n submissions.set(request, preset);\n }\n return preset;\n }\n const projected: TaskSelectionSurfaceProps<QuireKitPresetGalleryItem> = {\n get title() { return props.title; },\n get items() { return props.items; },\n get modelValue() { return props.modelValue === undefined ? undefined : props.modelValue === null ? [] : [props.modelValue]; },\n get defaultValue() { return props.defaultValue == null ? [] : [props.defaultValue]; },\n selectionMode: \"single\",\n get commitMode() { return props.commitMode ?? \"explicit\"; },\n get presentation() { return props.presentation; },\n get open() { return props.open; },\n get defaultOpen() { return props.defaultOpen; },\n get disabled() { return props.disabled; },\n get finalFocusEl() { return props.finalFocusEl; },\n get onCloseRequest() { return props.onCloseRequest; },\n /** @param request - Shared proposal forwarded once to the optional public business callback. @returns Optional business completion. */\n submit(request) { return props.submit?.(toPresetRequest(request)); }\n };\n return useSelectionTask(projected, {\n ...events,\n updateValue: value => events.updateValue(value[0] ?? null),\n commit: request => events.commit(toPresetRequest(request)),\n error: details => events.error({ error: details.error, request: toPresetRequest(details.request) }),\n /** Preset tasks do not expose a query input. */\n updateQuery() {},\n /** Preset tasks do not initiate a search callback. */\n search() {}\n });\n}\n","<script setup lang=\"ts\">\nimport { Drawer } from \"@ark-ui/vue/drawer\";\nimport { Popover } from \"@ark-ui/vue/popover\";\nimport type { QuireKitPresetPickerProps as Props, QuireKitPresetSubmitRequest } from \"../../components/preset-picker/types\";\nimport type { QuireKitPresetGalleryItemSlotProps } from \"../../components/preset-gallery/types\";\nimport type { QuireKitResolvedTaskPresentation, QuireKitTaskCancelReason } from \"../../components/task/types\";\nimport TaskTrigger from \"../shared/task/trigger.vue\";\nimport QuireButton from \"../button/button.vue\";\nimport Content from \"./content.vue\";\nimport { usePresetPicker } from \"./use-preset-picker\";\n\n/** Single-value model requests and notifications from the active task. */\ninterface Emits {\n /** Requests controlled opening acknowledgement. */\n \"update:open\": [value: boolean];\n /** Reports effective session visibility. */\n openChange: [value: boolean];\n /** Reports a discarded uncommitted session. */\n cancel: [details: { readonly reason: QuireKitTaskCancelReason; readonly sessionId: string }];\n /** Requests a successfully submitted single-preset model update. */\n \"update:modelValue\": [value: string | null];\n /** Reports successful completion of the sole submit callback. */\n commit: [request: QuireKitPresetSubmitRequest];\n /** Reports the current submission failure and its snapshot. */\n error: [details: { readonly error: unknown; readonly request: QuireKitPresetSubmitRequest }];\n}\n/** Stable entry and existing Gallery decoration slots. */\ninterface Slots {\n /** One real button whose identity, ARIA and behavior are merged in place. */\n readonly trigger?: (props: { open: boolean; disabled: boolean; summary: string; presentation: QuireKitResolvedTaskPresentation | undefined }) => unknown;\n /** Decorative preview using the same item and state as PresetGallery. */\n readonly preview?: (props: QuireKitPresetGalleryItemSlotProps) => unknown;\n /** Custom content for an empty Gallery. */\n readonly empty?: () => unknown;\n}\nconst props = withDefaults(defineProps<Props>(), {\n open: undefined, modelValue: undefined, defaultOpen: false, disabled: false,\n presentation: \"auto\", commitMode: \"explicit\", maxColumns: 4\n});\nconst emit = defineEmits<Emits>();\ndefineSlots<Slots>();\nconst task = usePresetPicker(props, {\n updateOpen: value => emit(\"update:open\", value), openChange: value => emit(\"openChange\", value), cancel: details => emit(\"cancel\", details),\n updateValue: value => emit(\"update:modelValue\", value), commit: request => emit(\"commit\", request), error: details => emit(\"error\", details)\n});\ndefineExpose({ requestClose: task.lifecycle.requestClose });\n</script>\n\n<template>\n <TaskTrigger :id=\"task.triggerId\" :disabled=\"disabled\" :prepare=\"task.prepare\" :get-bindings=\"task.getBindings\" @element=\"task.setTrigger\">\n <slot name=\"trigger\" :open=\"task.lifecycle.open.value\" :disabled=\"disabled\" :summary=\"task.selection.summary.value\" :presentation=\"task.presentation.resolved.value\"><QuireButton>{{ task.selection.summary.value || title }}</QuireButton></slot>\n </TaskTrigger>\n <Popover.RootProvider :value=\"task.popover.api.value\" lazy-mount unmount-on-exit @exit-complete=\"task.presentation.completeExit('desktop', task.presentation.epoch.value)\">\n <Content v-if=\"task.presentation.resolved.value === 'desktop' && task.presentation.phase.value !== 'closed'\" presentation=\"desktop\"\n :title=\"title\" :description=\"description\" :selection=\"task.selection\" :busy=\"task.requests.submitting.value\"\n :max-columns=\"maxColumns\" :min-item-width=\"minItemWidth\" :error-text=\"errorText\" :confirm-label=\"confirmLabel\"\n @close=\"task.lifecycle.requestClose('close-trigger')\" @cancel=\"task.lifecycle.requestClose('cancel')\">\n <template v-if=\"$slots.preview\" #preview=\"slotProps\"><slot name=\"preview\" v-bind=\"slotProps\" /></template><template v-if=\"$slots.empty\" #empty><slot name=\"empty\" /></template>\n </Content>\n </Popover.RootProvider>\n <Drawer.RootProvider :value=\"task.drawer.api.value\" lazy-mount unmount-on-exit @exit-complete=\"task.presentation.completeExit('bottom', task.presentation.epoch.value)\">\n <Content v-if=\"task.presentation.resolved.value === 'bottom' && task.presentation.phase.value !== 'closed'\" presentation=\"bottom\"\n :title=\"title\" :description=\"description\" :selection=\"task.selection\" :busy=\"task.requests.submitting.value\"\n :max-columns=\"maxColumns\" :min-item-width=\"minItemWidth\" :error-text=\"errorText\" :confirm-label=\"confirmLabel\"\n @close=\"task.lifecycle.requestClose('close-trigger')\" @cancel=\"task.lifecycle.requestClose('cancel')\">\n <template v-if=\"$slots.preview\" #preview=\"slotProps\"><slot name=\"preview\" v-bind=\"slotProps\" /></template><template v-if=\"$slots.empty\" #empty><slot name=\"empty\" /></template>\n </Content>\n </Drawer.RootProvider>\n</template>\n","import { watchEffect } from \"vue\";\n\n/** @param owner - External native focus owner. @param menuId - Stable menu identity. @param activeId - Currently highlighted enabled row. */\nexport function useCommandListFocus(owner: () => HTMLElement | null | undefined, menuId: string, activeId: () => string | undefined): void {\n watchEffect(cleanup => {\n const input = owner();\n if (!input) return;\n const attributes = { \"aria-controls\": menuId, \"aria-activedescendant\": activeId(), \"aria-haspopup\": \"menu\", \"aria-expanded\": \"true\" };\n const previous = Object.keys(attributes).map(name => [name, input.getAttribute(name)] as const);\n for (const [name, value] of Object.entries(attributes)) {\n if (value === undefined) input.removeAttribute(name); else input.setAttribute(name, value);\n }\n // Only retire attributes still owned by this list, preserving another\n // controller's later ownership if it took over before this effect stopped.\n cleanup(() => {\n for (const [name, value] of previous) {\n if (input.getAttribute(name) !== (attributes[name as keyof typeof attributes] ?? null)) continue;\n if (value === null) input.removeAttribute(name); else input.setAttribute(name, value);\n }\n });\n });\n}\n","import type { QuireKitCommandListItem, QuireKitCommandListMovement } from \"./types\";\n\n/**\n * Resolves the next enabled command in one wrapping linear menu.\n *\n * @param items - Ordered menu command declarations.\n * @param currentIndex - Current zero-based roving-focus position.\n * @param movement - Requested directional or boundary movement.\n * @returns Next enabled item, or the current index when no item enables.\n */\nexport function resolveQuireKitCommandListFocus(\n items: readonly QuireKitCommandListItem[],\n currentIndex: number,\n movement: QuireKitCommandListMovement\n): number {\n const enabled = items\n .map((item, index) => item.disabled ? -1 : index)\n .filter((index) => index >= 0);\n if (enabled.length === 0) return currentIndex;\n if (movement === \"home\") return enabled[0]!;\n if (movement === \"end\") return enabled.at(-1)!;\n const direction = movement === \"previous\" ? -1 : 1;\n let candidate = currentIndex;\n for (let step = 0; step < items.length; step += 1) {\n candidate = (candidate + direction + items.length) % items.length;\n if (!items[candidate]?.disabled) return candidate;\n }\n return currentIndex;\n}\n","<script setup lang=\"ts\">\nimport { nextTick, ref, shallowRef, useId, watch } from \"vue\";\nimport { useCommandListFocus } from \"./focus\";\nimport {\n resolveQuireKitCommandListFocus\n} from \"./navigation\";\nimport type {\n QuireKitCommandListMovement,\n QuireKitCommandListHandle,\n QuireKitCommandListProps,\n QuireKitCommandListSlots\n} from \"./types\";\n\nconst props = withDefaults(defineProps<QuireKitCommandListProps>(), {\n surfaceClass: undefined\n});\ndefineSlots<QuireKitCommandListSlots>();\nconst emit = defineEmits<{\n /** Reports one enabled feature-owned command activation. */\n select: [key: string];\n}>();\nconst buttons = shallowRef<HTMLButtonElement[]>([]);\nconst activeIndex = ref(0);\nconst descriptionId = `qk-command-description-${useId()}`;\nconst menuId = `qk-command-list-${useId()}`;\nuseCommandListFocus(() => props.focusOwner, menuId, () => props.items[activeIndex.value] && !props.items[activeIndex.value]?.disabled ? `${menuId}-${activeIndex.value}` : undefined);\ndefineExpose<QuireKitCommandListHandle>({ handleKeydown });\n\n/**\n * Activates one enabled command through the feature-owned handler.\n *\n * @param index - Zero-based row position.\n */\nfunction activate(index: number): void {\n const item = props.items[index];\n if (item === undefined || item.disabled) return;\n activeIndex.value = index;\n emit(\"select\", item.key);\n}\n\n/**\n * Moves roving focus through enabled menu commands.\n *\n * @param event - Browser key event dispatched by one menu row.\n * @param index - Current zero-based row position.\n */\nfunction move(event: KeyboardEvent, index: number): void {\n if (event.isComposing || event.keyCode === 229 || event.ctrlKey || event.metaKey || event.altKey || event.shiftKey) return;\n const movement = resolveMovement(event.key);\n if (movement === undefined) return;\n event.preventDefault();\n const next = resolveQuireKitCommandListFocus(\n props.items,\n index,\n movement\n );\n activeIndex.value = next;\n void nextTick(() => {\n const button = buttons.value[next];\n if (props.focusOwner) button?.scrollIntoView({ block: \"nearest\", inline: \"nearest\" });\n else button?.focus();\n });\n}\n\n/** @param event - Keyboard event forwarded by the native input owner. @returns Whether this enabled list consumed navigation or Enter. */\nfunction handleKeydown(event: KeyboardEvent): boolean {\n if (event.defaultPrevented || event.isComposing || event.keyCode === 229 || event.ctrlKey || event.metaKey || event.altKey || event.shiftKey) return false;\n if (!props.items.some(item => !item.disabled)) return false;\n if (resolveMovement(event.key)) { move(event, activeIndex.value); return true; }\n if (event.key !== \"Enter\" || !props.items[activeIndex.value] || props.items[activeIndex.value]?.disabled) return false;\n event.preventDefault(); activate(activeIndex.value); return true;\n}\n\n/**\n * Maps supported browser keys to the linear menu contract.\n *\n * @param key - Browser keyboard key.\n * @returns Shared movement, when the menu owns this key.\n */\nfunction resolveMovement(\n key: string\n): QuireKitCommandListMovement | undefined {\n if (key === \"ArrowUp\") return \"previous\";\n if (key === \"ArrowDown\") return \"next\";\n if (key === \"Home\") return \"home\";\n if (key === \"End\") return \"end\";\n return undefined;\n}\n\n/** Synchronizes the one Tab stop with checked and enabled command state. */\nfunction synchronizeActiveIndex(): void {\n const checked = props.items.findIndex((item) => (\n item.checked === true && !item.disabled\n ));\n if (checked >= 0) {\n activeIndex.value = checked;\n return;\n }\n const current = props.items[activeIndex.value];\n if (current !== undefined && !current.disabled) return;\n activeIndex.value = props.items.findIndex((item) => !item.disabled);\n if (activeIndex.value < 0) activeIndex.value = 0;\n}\n\nwatch(() => props.items, (items, previous) => {\n const key = previous?.[activeIndex.value]?.key;\n const retained = items.findIndex(item => item.key === key && !item.disabled);\n activeIndex.value = retained >= 0 ? retained : 0;\n synchronizeActiveIndex();\n}, { immediate: true });\n</script>\n\n<template>\n <div\n class=\"qk-menu qk-command-list\"\n :class=\"surfaceClass\"\n :id=\"menuId\"\n role=\"menu\"\n :aria-label=\"label\"\n >\n <template v-for=\"(item, index) in items\" :key=\"item.key\">\n <div v-if=\"item.group && item.group !== items[index - 1]?.group\" class=\"qk-menu__group-label\" role=\"presentation\">{{ item.group }}</div>\n <button\n :ref=\"element => { buttons[index] = element as HTMLButtonElement; }\"\n type=\"button\"\n :id=\"`${menuId}-${index}`\"\n class=\"qk-menu__item qk-command-list__item\"\n :role=\"item.checked === undefined ? 'menuitem' : 'menuitemradio'\"\n :aria-checked=\"item.checked\"\n :data-state=\"item.checked ? 'checked' : undefined\"\n :data-disabled=\"item.disabled ? '' : undefined\"\n :data-highlighted=\"focusOwner && !item.disabled && index === activeIndex ? '' : undefined\"\n :data-virtual-focus=\"focusOwner ? '' : undefined\"\n :aria-label=\"item.label\"\n :aria-describedby=\"item.description ? `${descriptionId}-${index}` : undefined\"\n :disabled=\"item.disabled\"\n :tabindex=\"!focusOwner && index === activeIndex ? 0 : -1\"\n :data-command-key=\"item.key\"\n :data-separator-before=\"item.separatorBefore ? 'true' : undefined\"\n @focus=\"activeIndex = index\"\n @pointermove=\"focusOwner && !item.disabled && (activeIndex = index)\"\n @pointerdown.prevent\n @keydown=\"move($event, index)\"\n @click=\"activate(index)\"\n >\n <span class=\"qk-menu__indicator\" aria-hidden=\"true\">\n <slot name=\"leading\" :item=\"item\" :index=\"index\">\n {{ item.checked === true ? \"✓\" : \"\" }}\n </slot>\n </span>\n <span class=\"qk-menu__label\">\n {{ item.label }}\n </span>\n <span v-if=\"item.description\" :id=\"`${descriptionId}-${index}`\" :data-disabled=\"item.disabled || undefined\" class=\"qk-command-list__description\">{{ item.description }}</span>\n <span\n v-if=\"$slots.trailing\"\n class=\"qk-menu__trailing\"\n aria-hidden=\"true\"\n >\n <slot name=\"trailing\" :item=\"item\" :index=\"index\" />\n </span>\n </button>\n </template>\n </div>\n</template>\n","import type { ColumnDef } from \"@tanstack/vue-table\";\nimport type { QuireKitTableColumn, QuireKitTableRowKey } from \"../../components/table\";\n\n/**\n * Resolves stable row identities before the engine sees the current page.\n * @param rows - Host-owned displayed data.\n * @param rowKey - Business identity field or accessor.\n * @returns Validated identities in display order.\n */\nexport function tableRowIds<Row>(rows: readonly Row[], rowKey: QuireKitTableRowKey<Row>): string[] {\n const seen = new Set<string>();\n return rows.map(row => {\n const value = typeof rowKey === \"function\" ? rowKey(row) : row[rowKey];\n if ((typeof value !== \"string\" && typeof value !== \"number\") || value === \"\" || (typeof value === \"number\" && !Number.isFinite(value))) {\n throw new Error(\"QuireTable requires a non-empty string or finite numeric rowKey.\");\n }\n const id = String(value);\n if (seen.has(id)) throw new Error(`QuireTable received duplicate rowKey: ${id}`);\n seen.add(id);\n return id;\n });\n}\n\n/**\n * Adapts the small public column contract to the headless core model.\n * @param columns - Host-ordered column definitions.\n * @returns Engine-only column definitions, without implicit sort or page features.\n */\nexport function tableColumns<Row>(columns: readonly QuireKitTableColumn<Row>[]): ColumnDef<Row>[] {\n const ids = new Set<string>();\n return columns.map(column => {\n if (!column.id || ids.has(column.id)) throw new Error(`QuireTable requires unique non-empty column ids: ${column.id}`);\n ids.add(column.id);\n return {\n id: column.id,\n header: column.title,\n accessorFn: row => column.value ? column.value(row) : column.field === undefined ? undefined : row[column.field]\n };\n });\n}\n","import type { QuireKitCheckboxState } from \"../../components/checkbox\";\n\n/**\n * Derives the page checkbox without counting disabled or off-page rows.\n * @param enabledKeys - Keys that may be changed on the displayed page.\n * @param selectedKeys - Selection across all visited pages.\n * @returns Checked, unchecked or mixed page state.\n */\nexport function tablePageChecked(enabledKeys: readonly string[], selectedKeys: readonly string[]): QuireKitCheckboxState {\n const selected = new Set(selectedKeys);\n const count = enabledKeys.filter(key => selected.has(key)).length;\n return count === 0 ? false : count === enabledKeys.length ? true : \"indeterminate\";\n}\n\n/**\n * Updates only the explicitly targeted keys, preserving remote and disabled selections.\n * @param selectedKeys - Current host or uncontrolled selection.\n * @param targetKeys - Enabled keys affected by this interaction.\n * @param checked - Whether to add or remove them.\n * @returns Deduplicated selection with unaffected keys retained.\n */\nexport function changeTableSelection(selectedKeys: readonly string[], targetKeys: readonly string[], checked: boolean): string[] {\n const selected = new Set(selectedKeys);\n for (const key of targetKeys) {\n if (checked) selected.add(key);\n else selected.delete(key);\n }\n return [...selected];\n}\n","import { createTable, getCoreRowModel, getSortedRowModel } from \"@tanstack/vue-table\";\nimport type { QuireKitTableColumn, QuireKitTableSorting } from \"../../components/table\";\nimport { tableColumns } from \"./model\";\n\n/**\n * Resolves a column's explicit sorting capability.\n * @param column - Public column definition.\n * @returns Whether the header can request sorting.\n */\nexport function tableColumnSortable<Row>(column: QuireKitTableColumn<Row>): boolean {\n return column.sortable ?? Boolean(column.compare);\n}\n\n/**\n * Ignores stale sorting without erasing the host's controlled preference.\n * @param columns - Currently visible columns.\n * @param sorting - Requested ordering.\n * @returns Applicable ordering, or null.\n */\nexport function resolveTableSorting<Row>(columns: readonly QuireKitTableColumn<Row>[], sorting: QuireKitTableSorting | null | undefined): QuireKitTableSorting | null {\n return sorting && columns.some(column => column.id === sorting.columnId && tableColumnSortable(column)) ? sorting : null;\n}\n\n/**\n * Cycles one column through ascending, descending and the original order.\n * @param sorting - Effective current ordering.\n * @param columnId - Activated column.\n * @returns The next single-column state.\n */\nexport function nextTableSorting(sorting: QuireKitTableSorting | null, columnId: string): QuireKitTableSorting | null {\n if (sorting?.columnId !== columnId) return { columnId, direction: \"asc\" };\n return sorting.direction === \"asc\" ? { columnId, direction: \"desc\" } : null;\n}\n\n/**\n * Orders complete data before a host slices it into pages. Original objects are retained.\n * @param rows - Complete filtered data, never just a server page.\n * @param columns - Columns with explicit ascending row comparators.\n * @param sorting - Requested single-column ordering, or null for input order.\n * @returns A new array in stable sorted order.\n */\nexport function sortTableRows<Row>(rows: readonly Row[], columns: readonly QuireKitTableColumn<Row>[], sorting: QuireKitTableSorting | null): Row[] {\n const definitions = tableColumns(columns);\n const active = resolveTableSorting(columns, sorting);\n if (!active) return [...rows];\n const comparator = columns.find(column => column.id === active.columnId)!.compare;\n if (!comparator) throw new Error(`QuireTable local sorting requires compare for column: ${active.columnId}`);\n // The engine owns stable tie ordering. Display accessors must not override the\n // comparator's null/locale policy, including when a column has no display value.\n const engine = createTable<Row>({\n data: [...rows],\n columns: definitions.map(column => ({\n ...column, sortUndefined: false,\n sortingFn: (left, right) => {\n const result = comparator(left.original, right.original);\n if (!Number.isFinite(result)) throw new Error(\"QuireTable compare must return a finite number.\");\n return result;\n }\n })),\n state: { sorting: [{ id: active.columnId, desc: active.direction === \"desc\" }] },\n onStateChange() {}, renderFallbackValue: null,\n getCoreRowModel: getCoreRowModel(), getSortedRowModel: getSortedRowModel()\n });\n return engine.getRowModel().rows.map(row => row.original);\n}\n","import { computed, shallowRef } from \"vue\";\nimport type { QuireKitTableColumn, QuireKitTableHeaderContext, QuireKitTableSorting } from \"../../components/table\";\nimport type { TableInteractionProps } from \"./types\";\nimport { tableRowIds } from \"./model\";\nimport { changeTableSelection, tablePageChecked } from \"./selection\";\nimport { nextTableSorting, resolveTableSorting, sortTableRows, tableColumnSortable } from \"./sorting\";\n\n/**\n * Coordinates explicit sort ownership and page-scoped selection.\n * @param props - Reactive public table configuration.\n * @param onSorting - Emits a requested sort state without overriding controlled props.\n * @param onSelectedKeys - Emits selected business keys, including off-page keys.\n * @returns Display rows, accessible header contexts and selection actions.\n */\nexport function useTableInteraction<Row>(props: TableInteractionProps<Row>, onSorting: (value: QuireKitTableSorting | null) => void, onSelectedKeys: (value: string[]) => void) {\n const localSorting = shallowRef(props.defaultSorting ?? null);\n const localKeys = shallowRef<readonly string[]>([...props.defaultSelectedKeys ?? []]);\n const sorting = computed(() => resolveTableSorting(props.columns, props.sorting === undefined ? localSorting.value : props.sorting));\n const selectedKeys = computed(() => props.selectedKeys ?? localKeys.value);\n const selectedSet = computed(() => new Set(selectedKeys.value));\n const rows = computed(() => props.sortingMode === \"local\" ? sortTableRows(props.rows, props.columns, sorting.value) : props.rows);\n const ids = computed(() => tableRowIds(rows.value, props.rowKey));\n const enabledKeys = computed(() => ids.value.filter((_key, index) => props.rowSelectable?.(rows.value[index]!) !== false));\n const enabledSet = computed(() => new Set(enabledKeys.value));\n const pageChecked = computed(() => tablePageChecked(enabledKeys.value, selectedKeys.value));\n\n /**\n * Requests the next sorting state for one enabled header.\n * @param column - Activated public column.\n */\n function toggleSorting(column: QuireKitTableColumn<Row>): void {\n if (props.loading || !tableColumnSortable(column)) return;\n const next = nextTableSorting(sorting.value, column.id);\n if (props.sorting === undefined) localSorting.value = next;\n onSorting(next);\n }\n\n /**\n * Provides identical contracts to generic and named header slots.\n * @param column - Heading's column definition.\n * @returns Explicit control state and action.\n */\n function headerContext(column: QuireKitTableColumn<Row>): QuireKitTableHeaderContext<Row> {\n return {\n column, direction: sorting.value?.columnId === column.id ? sorting.value.direction : null,\n sortable: tableColumnSortable(column), disabled: Boolean(props.loading),\n toggleSorting: () => toggleSorting(column), size: props.size ?? \"sm\"\n };\n }\n\n /**\n * Changes only enabled targets on this page; controlled state waits for the host.\n * @param keys - Requested business keys.\n * @param checked - Add or remove selection.\n */\n function select(keys: readonly string[], checked: boolean): void {\n if (!props.selectable || props.loading) return;\n const next = changeTableSelection(selectedKeys.value, keys.filter(key => enabledSet.value.has(key)), checked);\n if (props.selectedKeys === undefined) localKeys.value = next;\n onSelectedKeys(next);\n }\n return { rows, ids, sorting, selectedKeys, selectedSet, enabledKeys, enabledSet, pageChecked, select, headerContext };\n}\n","<script setup lang=\"ts\" generic=\"Row\">\nimport { computed, useId } from \"vue\";\nimport { getCoreRowModel, useVueTable } from \"@tanstack/vue-table\";\nimport type { QuireKitTableCellContext, QuireKitTableHeaderContext, QuireKitTableProps, QuireKitTableSorting } from \"../../components/table\";\nimport { QuireScrollArea } from \"../scroll-area\";\nimport { QuireEmptyState } from \"../empty-state\";\nimport { tableColumns } from \"./model\";\nimport { useTableInteraction } from \"./use-table-interaction\";\nimport { QuireButton } from \"../button\";\nimport { QuireCheckbox } from \"../checkbox\";\nimport { QuireIcon } from \"../icon\";\nimport ChoiceFieldItem from \"../shared/choice-state/field-item.vue\";\nimport { useQuireKitMessages } from \"../locale-provider/context\";\n\nconst props = withDefaults(defineProps<QuireKitTableProps<Row>>(), {\n size: \"sm\", loading: false, stickyHeader: false, sortingMode: \"manual\", selectable: false,\n minWidth: \"100%\", maxHeight: \"none\"\n});\nconst emit = defineEmits<{\n /** Requested single-column ordering. */\n \"update:sorting\": [value: QuireKitTableSorting | null];\n /** Business keys retained across pages. */\n \"update:selectedKeys\": [value: string[]];\n}>();\nconst selectionId = useId();\nconst { rows, ids, selectedSet, enabledKeys, enabledSet, pageChecked, select, headerContext } = useTableInteraction(props, value => emit(\"update:sorting\", value), value => emit(\"update:selectedKeys\", value));\nconst text = useQuireKitMessages(\"table\");\n/**\n * @param row - Original host row.\n * @param key - Stable row identity fallback.\n * @returns Accessible name of the row's selection checkbox.\n */\nfunction rowSelectionLabel(row: Row, key: string): string {\n return text.value.selectRow(props.rowLabel?.(row) ?? key);\n}\ndefineSlots<{\n /** Generic fallback for every body cell. */\n cell?: (context: QuireKitTableCellContext<Row>) => unknown;\n /** Generic fallback for every header. */\n header?: (context: QuireKitTableHeaderContext<Row>) => unknown;\n /** First-load content, rendered without discarding existing rows. */\n loading?: () => unknown;\n /** Empty content after loading finishes. */\n empty?: () => unknown;\n /** External pagination or summary, outside the scrolling viewport. */\n footer?: () => unknown;\n /** Per-column body and header slots override their generic counterparts. */\n [name: `cell-${string}`]: ((context: QuireKitTableCellContext<Row>) => unknown) | undefined;\n /** Named column heading slots. */\n [name: `header-${string}`]: ((context: QuireKitTableHeaderContext<Row>) => unknown) | undefined;\n}>();\nconst columns = computed(() => tableColumns(props.columns));\n// Local sorting is explicit and precedes this display model; paging remains host-owned.\nconst table = useVueTable<Row>({\n get data() { return [...rows.value]; },\n get columns() { return columns.value; },\n getRowId: (_row, index) => ids.value[index]!,\n getCoreRowModel: getCoreRowModel()\n});\nconst displayed = computed(() => table.getRowModel().rows);\nconst viewportStyle = computed(() => ({ \"--qk-table-max-height\": props.maxHeight }));\n</script>\n\n<template>\n <div :class=\"['qk-table', `qk-table--${size}`]\" :style=\"viewportStyle\" :aria-busy=\"loading\">\n <div v-if=\"loading\" class=\"qk-table__status\" role=\"status\">{{ text.loading }}</div>\n <QuireScrollArea :axis=\"maxHeight === 'none' ? 'horizontal' : 'both'\" :label=\"text.scrollArea(label || caption || text.table)\" viewport-class=\"qk-table__viewport\">\n <table class=\"qk-table__table\" :style=\"{ minWidth }\" :aria-label=\"label\" :aria-labelledby=\"labelledby\" :aria-busy=\"loading\">\n <caption v-if=\"caption\" class=\"qk-table__caption\">{{ caption }}</caption>\n <colgroup><col v-if=\"selectable\" class=\"qk-table__selection-column\"><col v-for=\"column in props.columns\" :key=\"column.id\" :style=\"{ width: column.width }\"></colgroup>\n <thead><tr>\n <th v-if=\"selectable\" scope=\"col\" style=\"text-align: start\" :class=\"['qk-table__heading', { 'qk-table__heading--sticky': stickyHeader }]\">\n <ChoiceFieldItem :value=\"`${selectionId}-page`\"><QuireCheckbox :label=\"text.selectPage\" :size=\"size\" :checked=\"pageChecked\" :disabled=\"loading || !enabledKeys.length\" @update:checked=\"select(enabledKeys, $event === true)\"><span class=\"sr-only\">{{ text.selectPage }}</span></QuireCheckbox></ChoiceFieldItem>\n </th>\n <th v-for=\"column in props.columns\" :key=\"column.id\" scope=\"col\" :aria-sort=\"headerContext(column).direction === 'asc' ? 'ascending' : headerContext(column).direction === 'desc' ? 'descending' : undefined\" :class=\"['qk-table__heading', { 'qk-table__heading--sticky': stickyHeader }]\" :style=\"{ textAlign: column.align || 'start' }\">\n <slot :name=\"`header-${column.id}`\" v-bind=\"headerContext(column)\"><slot name=\"header\" v-bind=\"headerContext(column)\">\n <QuireButton v-if=\"headerContext(column).sortable\" class=\"qk-table__sort\" :size=\"size\" :disabled=\"loading\" @click=\"headerContext(column).toggleSorting()\">{{ column.title }}<template #trailing><QuireIcon :name=\"headerContext(column).direction === 'asc' ? 'arrowUp' : headerContext(column).direction === 'desc' ? 'arrowDown' : 'arrowUpDown'\" /></template></QuireButton>\n <template v-else>{{ column.title }}</template>\n </slot></slot>\n </th>\n </tr></thead>\n <tbody>\n <tr v-for=\"row in displayed\" :key=\"row.id\" :data-row-key=\"row.id\" :data-selected=\"selectable && selectedSet.has(row.id) ? '' : undefined\" :data-current=\"currentRowKey != null && String(currentRowKey) === row.id ? '' : undefined\" :class=\"['qk-table__row', { 'qk-table__row--selectable': selectable }]\">\n <td v-if=\"selectable\" class=\"qk-table__cell\"><ChoiceFieldItem :value=\"`${selectionId}-${row.id}`\"><QuireCheckbox :label=\"rowSelectionLabel(row.original, row.id)\" :size=\"size\" :checked=\"selectedSet.has(row.id)\" :disabled=\"loading || !enabledSet.has(row.id)\" @update:checked=\"select([row.id], $event === true)\"><span class=\"sr-only\">{{ rowSelectionLabel(row.original, row.id) }}</span></QuireCheckbox></ChoiceFieldItem></td>\n <component :is=\"column.rowHeader ? 'th' : 'td'\" v-for=\"column in props.columns\" :key=\"column.id\" :scope=\"column.rowHeader ? 'row' : undefined\" class=\"qk-table__cell\" :style=\"{ textAlign: column.align || 'start' }\">\n <slot :name=\"`cell-${column.id}`\" :row=\"row.original\" :column=\"column\" :value=\"row.getValue(column.id)\" :size=\"size\"><slot name=\"cell\" :row=\"row.original\" :column=\"column\" :value=\"row.getValue(column.id)\" :size=\"size\">{{ row.getValue(column.id) ?? '—' }}</slot></slot>\n </component>\n </tr>\n <tr v-if=\"!displayed.length\"><td :colspan=\"Math.max(1, props.columns.length + (selectable ? 1 : 0))\" class=\"qk-table__empty\">\n <slot v-if=\"loading\" name=\"loading\" />\n <slot v-else name=\"empty\"><QuireEmptyState :title=\"text.empty\" scene=\"table\" size=\"sm\" illustrated /></slot>\n </td></tr>\n </tbody>\n </table>\n </QuireScrollArea>\n <div v-if=\"$slots.footer\" class=\"qk-table__footer\"><slot name=\"footer\" /></div>\n </div>\n</template>\n","/**\n * Formats a nonnegative integer count while preserving its full readable value.\n * @param count - Host count, including zero.\n * @param max - Largest count displayed in full.\n * @returns Compact visual text and uncapped accessible text.\n */\nexport function badgeCount(count: number, max: number) {\n const value = Number.isFinite(count) ? Math.max(0, Math.floor(count)) : 0;\n const cap = Number.isFinite(max) ? Math.max(1, Math.floor(max)) : 99;\n return { visual: value > cap ? `${cap}+` : String(value), accessible: String(value) };\n}\n","<script setup lang=\"ts\">\nimport { computed, useId } from \"vue\";\nimport type { QuireKitBadgeColor, QuireKitBadgeSize, QuireKitBadgeVariant } from \"../../components/badge\";\nimport { badgeCount } from \"./count\";\nimport { useQuireKitMessages } from \"../locale-provider/context\";\n/** Noninteractive count or dot, optionally attached to a host element. */\ninterface Props {\n /** Existing semantic color family. */\n readonly color?: QuireKitBadgeColor;\n /** Marker appearance. */\n readonly variant?: QuireKitBadgeVariant;\n /** Marker density, independent of its host's control size. */\n readonly size?: QuireKitBadgeSize;\n /** Count to display; omitted counts produce no marker unless dot is true. */\n readonly count?: number;\n /** Largest visually untruncated count. */\n readonly max?: number;\n /** Render a dot instead of a number. */\n readonly dot?: boolean;\n /** Keep a normalized zero count visible. */\n readonly showZero?: boolean;\n /** Complete readable meaning, especially for dots and truncated counts. */\n readonly label?: string;\n}\nconst props = withDefaults(defineProps<Props>(), { color: \"danger\", variant: \"solid\", size: \"sm\", max: 99, dot: false, showZero: false });\ndefineSlots<{\n /** Host button, icon or avatar; bind descriptionId to its aria-describedby if interactive. */\n default?: (context: { descriptionId: string | undefined }) => unknown;\n}>();\nconst text = useQuireKitMessages(\"badge\");\nconst id = `qk-badge-${useId()}`;\nconst formatted = computed(() => badgeCount(props.count ?? 0, props.max));\nconst visible = computed(() => props.dot || (props.count !== undefined && (props.showZero || formatted.value.accessible !== \"0\")));\nconst description = computed(() => props.label || (props.dot ? text.value.dot : formatted.value.accessible));\n</script>\n<template>\n <span class=\"qk-badge\">\n <slot :description-id=\"visible ? id : undefined\" />\n <span v-if=\"visible\" aria-hidden=\"true\" :class=\"['qk-badge__indicator', `qk-badge--${color}`, `qk-badge--${variant}`, `qk-badge--${size}`, { 'qk-badge__indicator--attached': !!$slots.default, 'qk-badge__indicator--dot': dot }]\">{{ dot ? '' : formatted.visual }}</span>\n <span v-if=\"visible\" :id=\"id\" class=\"sr-only\">{{ description }}</span>\n </span>\n</template>\n","<script setup lang=\"ts\">\nimport { useId } from \"vue\";\nimport type { QuireKitTagColor, QuireKitTagSize, QuireKitTagVariant } from \"../../components/tag\";\nimport QuireIcon from \"../icon/icon.vue\";\nimport QuireIconButton from \"../button/icon-button.vue\";\nimport { useQuireKitMessages } from \"../locale-provider/context\";\n/** Category or status content with an optional, independently operable removal action. */\ninterface Props {\n /** Existing semantic color family. */\n readonly color?: QuireKitTagColor;\n /** Quiet fill, tinted outline, outline or strong fill. */\n readonly variant?: QuireKitTagVariant;\n /** Typography and padding density; removal retains the compact button target. */\n readonly size?: QuireKitTagSize;\n /** Accessible wording for abbreviated content. */\n readonly label?: string;\n /** Optional decorative leading icon from the active registry. */\n readonly icon?: string;\n /** Show a removal button; emitting close never removes this component itself. */\n readonly closable?: boolean;\n /** Disable only the removal action, without changing the meaning of the label. */\n readonly disabled?: boolean;\n /** Truncate text to one line while retaining its full accessible content. */\n readonly truncate?: boolean;\n /** Host layout constraint, expressed as a CSS width and capped by the container. */\n readonly maxWidth?: string;\n}\nconst props = withDefaults(defineProps<Props>(), {\n color: \"neutral\", variant: \"soft\", size: \"sm\", closable: false,\n disabled: false, truncate: false\n});\nconst emit = defineEmits<{\n /** Requests removal; the parent owns validation, list mutation and subsequent focus. */\n close: [event: MouseEvent];\n}>();\ndefineSlots<{\n /** Category or status text. */\n default?: () => unknown;\n /** Decorative leading content, replacing the icon prop when provided. */\n leading?: () => unknown;\n /** Decorative trailing content, before the dedicated removal action. */\n trailing?: () => unknown;\n}>();\nconst text = useQuireKitMessages(\"tag\");\nconst contentId = `qk-tag-${useId()}-content`;\n/**\n * Requests removal without toggling an enclosing clickable region or changing visibility.\n * @param event - Activation of the native button, including keyboard-generated clicks.\n */\nfunction requestClose(event: MouseEvent): void {\n if (!props.disabled) emit(\"close\", event);\n}\n</script>\n<template>\n <span\n :class=\"['qk-tag', `qk-tag--${color}`, `qk-tag--${variant}`, `qk-tag--${size}`, { 'qk-tag--closable': closable }]\"\n :style=\"maxWidth ? { maxWidth: `min(100%, ${maxWidth})` } : undefined\"\n >\n <span v-if=\"$slots.leading || icon\" class=\"qk-tag__decoration\" aria-hidden=\"true\">\n <slot name=\"leading\"><QuireIcon :name=\"icon\" :size=\"size === 'md' ? 16 : 12\" /></slot>\n </span>\n <span :id=\"label ? undefined : contentId\" :aria-hidden=\"label ? true : undefined\" :class=\"['qk-tag__content', { 'qk-tag__content--truncate': truncate }]\"><slot /></span>\n <span v-if=\"label\" :id=\"contentId\" class=\"sr-only\">{{ label }}</span>\n <span v-if=\"$slots.trailing\" class=\"qk-tag__decoration\" aria-hidden=\"true\"><slot name=\"trailing\" /></span>\n <QuireIconButton\n v-if=\"closable\"\n :class=\"['qk-tag__close', { 'qk-tag__close--solid': variant === 'solid' }]\"\n size=\"xs\"\n :color=\"color\"\n variant=\"text\"\n :label=\"text.remove\"\n :aria-describedby=\"contentId\"\n :disabled=\"disabled\"\n @click.stop=\"requestClose\"\n ><QuireIcon name=\"close\" :size=\"12\" /></QuireIconButton>\n </span>\n</template>\n","<script setup lang=\"ts\">\n/** Decorative geometry that can be replaced by loaded content. */\ninterface Props {\n /** Whether to display the placeholder instead of the slot. */\n readonly loading?: boolean;\n /** Expected content width; defaults to the available width. */\n readonly width?: string;\n /** Expected content height; defaults to one body line. */\n readonly height?: string;\n /** Circle for avatars, rectangle for text or content. */\n readonly shape?: \"rectangle\" | \"circle\";\n /** Optional gentle pulse, automatically disabled for reduced motion. */\n readonly animated?: boolean;\n}\nwithDefaults(defineProps<Props>(), { loading: true, width: \"100%\", height: \"var(--qk-skeleton-line-height)\", shape: \"rectangle\", animated: true });\ndefineSlots<{\n /** Real content, mounted after loading finishes. */\n default?: () => unknown;\n}>();\n</script>\n<template>\n <span v-if=\"loading\" aria-hidden=\"true\" :class=\"['qk-skeleton', `qk-skeleton--${shape}`, { 'qk-skeleton--animated': animated }]\" :style=\"{ width: shape === 'circle' ? height : width, height }\" />\n <slot v-else />\n</template>\n","<script setup lang=\"ts\">\nimport { computed, shallowRef, useAttrs } from \"vue\";\nimport { ToggleGroup } from \"@ark-ui/vue/toggle-group\";\nimport type { QuireKitToggleGroupItem, QuireKitToggleGroupProps } from \"../../components/toggle-group\";\nimport { QuireButton } from \"../button\";\nimport { assertChoiceValues, useChoiceState } from \"../shared/choice-state/model\";\ndefineOptions({ inheritAttrs: false });\nconst attrs = useAttrs();\nconst props = withDefaults(defineProps<QuireKitToggleGroupProps>(), { size: \"sm\", variant: \"ghost\", color: \"primary\", orientation: \"horizontal\", disabled: false, readOnly: false, invalid: false, multiple: false, deselectable: true, rovingFocus: true, loopFocus: true });\nconst emit = defineEmits<{\n /** Requested pressed values; single mode still uses a zero-or-one-item array. */\n \"update:modelValue\": [value: string[]];\n}>();\ndefineSlots<{\n /** Replace visible action content, retaining its accessible label and pressed behavior. */\n item?: (context: { item: QuireKitToggleGroupItem; pressed: boolean }) => unknown;\n}>();\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 pressed = computed(() => {\n const unique = [...new Set(values.value)];\n if (!props.multiple && unique.length > 1) throw new Error(\"QuireToggleGroup single mode accepts at most one value.\");\n return unique;\n});\nconst submitted = computed(() => choices.value.filter(item => !item.disabled && pressed.value.includes(item.value)));\n</script>\n<template>\n <div ref=\"root\" class=\"qk-toggle-group-field\">\n <ToggleGroup.Root v-bind=\"attrs\" :model-value=\"pressed\" :multiple=\"multiple\" :deselectable=\"deselectable\" :disabled=\"disabled\" :orientation=\"orientation\" :roving-focus=\"rovingFocus\" :loop-focus=\"loopFocus\" :aria-label=\"label\" :aria-invalid=\"invalid || undefined\" :data-readonly=\"readOnly ? '' : undefined\" :style=\"columns ? { display: 'grid', gridTemplateColumns: `repeat(${Math.max(1, Math.floor(columns))}, minmax(0, 1fr))` } : undefined\" :class=\"['qk-toggle-group', `qk-toggle-group--${orientation}`]\" @update:model-value=\"update\">\n <ToggleGroup.Item v-for=\"item in choices\" :key=\"item.value\" :value=\"item.value\" :disabled=\"item.disabled\" as-child>\n <QuireButton\n :size=\"size\"\n :color=\"variant === 'outline' && pressed.includes(item.value) ? color : 'neutral'\"\n :variant=\"variant === 'outline' ? 'outline' : pressed.includes(item.value) ? 'soft' : 'ghost'\"\n :class=\"variant === 'outline' && pressed.includes(item.value) ? `qk-toggle-group__item--selected-${color}` : undefined\"\n :disabled=\"disabled || item.disabled === true\" :aria-label=\"item.label\" :aria-disabled=\"readOnly || undefined\"\n ><span class=\"qk-toggle-group__content\"><slot name=\"item\" :item=\"item\" :pressed=\"pressed.includes(item.value)\">{{ item.label }}</slot></span></QuireButton>\n </ToggleGroup.Item>\n </ToggleGroup.Root>\n <template v-if=\"name\"><input v-for=\"item in submitted\" :key=\"item.value\" type=\"hidden\" :name=\"name\" :form=\"form\" :value=\"item.value\" :disabled=\"disabled\"></template>\n </div>\n</template>\n","import { computed, inject } from 'vue';\nimport type { InjectionKey } from 'vue';\nimport type { PickerSurfaceContext } from './types';\n/** Private owner shared by the field, physical shell and draft editors. */\nexport const pickerSurfaceKey: InjectionKey<PickerSurfaceContext> = Symbol('picker-surface');\n/** @returns The current physical presentation, or desktop for standalone editors. */\nexport function usePickerBottom() { return inject(pickerSurfaceKey)?.bottom ?? computed(() => false); }\n","<script setup lang=\"ts\">\nimport { Popover } from '@ark-ui/vue/popover';\nimport { inject } from 'vue';\nimport { pickerSurfaceKey } from './context';\n\nconst picker = inject(pickerSurfaceKey, undefined);\n</script>\n<template>\n <!-- Only the input surface determines placement. Keep Ark DateInput's own\n control attributes intact instead of merging two primitives with as-child. -->\n <Popover.Anchor v-if=\"picker && !picker.bottom.value\" class=\"qk-picker__control-anchor\"><slot /></Popover.Anchor>\n <slot v-else />\n</template>\n","<script setup lang=\"ts\">\nimport { DateInput, useDateInput, type DateInputDateValue, type UseDateInputProps } from '@ark-ui/vue/date-input';\nimport { computed, nextTick, watch } from 'vue';\nimport type { SegmentedInputRootProps } from './types';\nimport { useQuireKitLocale } from '../../locale-provider/context';\n// This internal contract exposes only the Ark fields used by date/time consumers.\nconst props = defineProps<SegmentedInputRootProps>();\nconst emit = defineEmits<{\n /** Complete value or an empty array, never a stale value behind missing segments. */\n 'update:modelValue': [value: DateInputDateValue[]];\n}>();\ndefineSlots<{ /** Ark anatomy supplied by the field. */ default: () => unknown }>();\nconst locale = useQuireKitLocale();\nconst initial = props.modelValue;\nlet published = key(initial);\nconst api = useDateInput(computed<UseDateInputProps>(() => ({\n ...Object.fromEntries(Object.entries(props).filter(([name, value]) => name !== 'modelValue' && value !== undefined)),\n // Segment order and Ark's own labels follow the active language.\n locale: locale.value,\n defaultValue: initial\n})));\n\n/** @param dates - Comparable complete dates. @returns Stable semantic identity across object copies. */\nfunction key(dates: readonly DateInputDateValue[]): string { return dates.map(date => date.toString()).join('/'); }\n/** @param dates - Parent-approved value, replacing the draft only on a genuine external edit. */\nfunction synchronize(dates: DateInputDateValue[]): void {\n published = key(dates);\n if (dates.length) api.value.setValue(dates);\n else api.value.clearValue();\n}\n// The public empty value must not echo into Ark while the user retains other segments.\nwatch(() => key(props.modelValue), next => { if (next !== published) synchronize(props.modelValue); });\nconst complete = computed(() => !api.value.getSegments().some(segment => segment.type !== 'literal' && segment.isPlaceholder));\nwatch(() => `${complete.value}:${key(api.value.value)}`, async () => {\n if (props.disabled || props.readOnly) return;\n const next = complete.value ? api.value.value : [];\n const nextKey = key(next);\n if (nextKey === published) return;\n published = nextKey;\n emit('update:modelValue', next);\n // A controlled host may reject an edit; reconcile after its synchronous update settles.\n await nextTick();\n if (published === nextKey && key(props.modelValue) !== nextKey) synchronize(props.modelValue);\n});\n</script>\n<template>\n <DateInput.RootProvider :value=\"api\"><slot /></DateInput.RootProvider>\n</template>\n","import { DateFormatter } from \"@internationalized/date\";\n\n/** Stable Gregorian date display for pickers, independent of locale punctuation. */\nexport class IsoDateFormatter extends DateFormatter {\n /** Creates the shared year-month-day format without a local time-zone conversion. */\n constructor() {\n super(\"en-CA\", { year: \"numeric\", month: \"2-digit\", day: \"2-digit\", calendar: \"gregory\", numberingSystem: \"latn\", timeZone: \"UTC\" });\n }\n /**\n * Keeps Ark segment ownership while fixing order, padding and separators.\n * @param date - Internal Gregorian date anchor.\n * @returns Editable year, month and day parts separated by hyphens.\n */\n override formatToParts(date: Date): Intl.DateTimeFormatPart[] {\n const parts = super.formatToParts(date);\n return ([\"year\", \"month\", \"day\"] as const).flatMap((type, index) => {\n const value = parts.find(part => part.type === type)!.value.padStart(type === \"year\" ? 4 : 2, \"0\");\n return [...(index ? [{ type: \"literal\" as const, value: \"-\" }] : []), { type, value }];\n });\n }\n /** @param date - Internal date anchor. @returns The same representation as the segmented display. */\n override format(date: Date): string { return this.formatToParts(date).map(part => part.value).join(\"\"); }\n}\n","import { parseDate } from \"@ark-ui/vue/date-picker\";\nimport type { DateInputDateValue } from \"@ark-ui/vue/date-input\";\n\n/**\n * Parses only calendar dates, preventing accidental time-zone or timestamp coercion.\n * @param value - A complete ISO calendar date, or an empty value.\n * @returns An Ark date value, with no attached time or time zone.\n */\nexport function parseCalendarDate(value: string | null | undefined): DateInputDateValue | undefined {\n if (value == null) return undefined;\n if (!/^\\d{4}-\\d{2}-\\d{2}$/.test(value)) throw new TypeError(\"DateInput expects YYYY-MM-DD or null.\");\n const date = parseDate(value);\n if (date.toString() !== value) throw new RangeError(\"DateInput expects a valid calendar date.\");\n return date;\n}\n","import type { Messages as PickerMessages } from \"../../../locale/components/picker\";\n\n/**\n * Names an editable segment in its field context; literal separators stay decorative.\n * @param field - Accessible name of the field or endpoint.\n * @param type - Ark segment type.\n * @param text - Picker messages of the active language.\n * @returns Field-plus-segment name, or undefined for literals.\n */\nexport function segmentLabel(field: string, type: string, text: PickerMessages): string | undefined {\n if (type === \"literal\") return undefined;\n return text.part(field, text.segments[type as keyof PickerMessages[\"segments\"]] ?? type);\n}\n","<script setup lang=\"ts\">\nimport PickerControlAnchor from \"../shared/picker/control-anchor.vue\";\nimport { DateInput } from \"@ark-ui/vue/date-input\";\nimport SegmentedInputRoot from \"../shared/segmented-input/root.vue\";\nimport type { DateInputDateValue } from \"@ark-ui/vue/date-input\";\nimport { computed, onMounted, onScopeDispose, ref, useId, watch } from \"vue\";\nimport type { QuireKitDateInputProps, QuireKitDateInputValue } from \"./types\";\nimport { IsoDateFormatter } from \"./formatter\";\nimport { parseCalendarDate } from \"./value\";\nimport QuireIconButton from \"../button/icon-button.vue\";\nimport QuireIcon from \"../icon/icon.vue\";\nimport { useQuireKitMessages } from \"../locale-provider/context\";\nimport { segmentLabel } from \"../shared/segmented-input/label\";\nconst props = withDefaults(defineProps<QuireKitDateInputProps>(), {\n defaultValue: null, size: \"sm\", width: \"200px\", dateFormat: \"iso\", hideLabel: false,\n disabled: false, readOnly: false, required: false, invalid: false, clearable: false\n});\nconst emit = defineEmits<{\n /** Complete ISO calendar date, or null when the date becomes incomplete or empty. */\n \"update:modelValue\": [value: QuireKitDateInputValue];\n}>();\ndefineSlots<{\n /** Optional decorative leading icon or short prefix. */\n leading?: () => unknown;\n /** Optional trailing content, such as a future calendar trigger. */\n trailing?: () => unknown;\n}>();\nconst id = useId();\nconst text = useQuireKitMessages(\"dateInput\");\nconst pickerText = useQuireKitMessages(\"picker\");\nconst root = ref<HTMLDivElement>();\nconst internalValue = ref(props.defaultValue);\nconst resetVersion = ref(0);\nconst value = computed(() => props.modelValue === undefined ? internalValue.value : props.modelValue);\nconst dates = computed(() => { const date = parseCalendarDate(value.value); return date ? [date] : []; });\nconst minDate = computed(() => parseCalendarDate(props.min));\nconst maxDate = computed(() => parseCalendarDate(props.max));\nconst placeholder = computed(() => parseCalendarDate(props.placeholderValue));\nconst optionalBindings = computed(() => ({\n ...(props.dateFormat === \"iso\" ? { formatter: new IsoDateFormatter() } : {}),\n ...(placeholder.value ? { placeholderValue: placeholder.value } : {}),\n ...(props.name === undefined ? {} : { name: props.name }),\n ...(props.form === undefined ? {} : { form: props.form })\n}));\nconst outsideBounds = computed(() => {\n const date = dates.value[0];\n return date !== undefined && ((minDate.value !== undefined && date.compare(minDate.value) < 0) || (maxDate.value !== undefined && date.compare(maxDate.value) > 0));\n});\nconst invalidState = computed(() => props.invalid || outsideBounds.value);\nconst message = computed(() => invalidState.value ? (props.errorText || (outsideBounds.value ? pickerText.value.dateBetween(props.min, props.max) : props.description)) : props.description);\nlet currentForm: HTMLFormElement | null = null;\n/**\n * Adapts Ark's complete-date array to the single-date public model.\n * @param next - Complete values emitted by the upstream date controller.\n */\nfunction update(next: DateInputDateValue[]): void {\n if (props.disabled || props.readOnly) return;\n const date = next[0]?.toString() ?? null;\n if (props.modelValue === undefined) internalValue.value = date;\n emit(\"update:modelValue\", date);\n}\n/**\n * Restores the explicit default after the browser accepts a form reset.\n * @param event - Cancellable reset event from the associated native form.\n */\nfunction reset(event: Event): void {\n queueMicrotask(() => {\n if (event.defaultPrevented) return;\n internalValue.value = props.defaultValue;\n emit(\"update:modelValue\", props.defaultValue);\n // Remount also clears incomplete drafts when the public value was already null.\n resetVersion.value += 1;\n });\n}\n/** Associates native reset with the same form as Ark's serialized hidden input. */\nfunction bindForm(): void {\n currentForm?.removeEventListener(\"reset\", reset);\n currentForm = root.value?.querySelector(\"input\")?.form ?? null;\n currentForm?.addEventListener(\"reset\", reset);\n}\nonMounted(bindForm);\nwatch(() => props.form, bindForm, { flush: \"post\" });\nonScopeDispose(() => currentForm?.removeEventListener(\"reset\", reset));\n</script>\n<template>\n <div ref=\"root\" class=\"qk-date-input\" :style=\"{ width }\">\n <SegmentedInputRoot :key=\"resetVersion\" :id=\"id\" :model-value=\"dates\" v-bind=\"optionalBindings\" :disabled=\"disabled\" :read-only=\"readOnly\" :required=\"required\" :invalid=\"invalidState\" granularity=\"day\" @update:model-value=\"update\">\n <DateInput.Label :class=\"hideLabel ? 'sr-only' : 'qk-date-input__label'\">{{ label }}<span v-if=\"required\" aria-hidden=\"true\"> *</span></DateInput.Label>\n <PickerControlAnchor>\n <DateInput.Control :class=\"['qk-date-input__control', `qk-date-input__control--${size}`]\">\n <span v-if=\"$slots.leading\" class=\"qk-date-input__adornment\" aria-hidden=\"true\"><slot name=\"leading\" /></span>\n <DateInput.Context v-slot=\"date\">\n <DateInput.SegmentGroup class=\"qk-date-input__segments\">\n <DateInput.Segment v-for=\"(segment, segmentIndex) in date.getSegments()\" :key=\"segmentIndex\" :segment=\"segment\" :class=\"['qk-date-input__segment', segment.type === 'literal' && 'qk-date-input__literal']\" :aria-label=\"segmentLabel(label, segment.type, pickerText)\" :aria-describedby=\"message ? `${id}-message` : undefined\" />\n </DateInput.SegmentGroup>\n <span v-if=\"(clearable && !disabled && !readOnly) || $slots.trailing\" class=\"qk-date-input__actions\">\n <QuireIconButton v-if=\"clearable && !disabled && !readOnly\" :label=\"text.clear\" size=\"xs\" variant=\"text\" @pointerdown.prevent @click=\"date.clearValue(); date.focus()\"><QuireIcon name=\"close\" :size=\"12\" /></QuireIconButton>\n <slot name=\"trailing\" />\n </span>\n </DateInput.Context>\n </DateInput.Control>\n </PickerControlAnchor>\n <DateInput.HiddenInput :value=\"value ?? ''\" />\n </SegmentedInputRoot>\n <p v-if=\"message\" :id=\"`${id}-message`\" :class=\"['qk-date-input__message', invalidState && 'qk-date-input__message--invalid']\">{{ message }}</p>\n </div>\n</template>\n","import { DateFormatter } from \"@internationalized/date\";\n\n/** Keeps locale separators stable between Node ICU and browser ICU during hydration. */\nexport class StableTimeFormatter extends DateFormatter {\n /**\n * Normalizes equivalent spaces without altering digits, order, or day-period words.\n * @param date - Internal date used solely to format its time segments.\n * @returns Locale parts with stable whitespace in literal separators.\n */\n override formatToParts(date: Date): Intl.DateTimeFormatPart[] {\n return super.formatToParts(date).map(part => part.type === \"literal\" ? { ...part, value: part.value.replace(/[\\u00a0\\u202f]/g, \" \") } : part);\n }\n}\n","import { CalendarDateTime } from \"@internationalized/date\";\nimport type { DateInputDateValue } from \"@ark-ui/vue/date-input\";\n/**\n * Supplies Ark's date controller a stable internal anchor for pure time segments.\n * @param value - ISO wall-clock value or an empty value.\n * @returns An internal calendar value; its anchor never leaves the adapter.\n */\nexport function parseClockTime(value: string | null | undefined): CalendarDateTime | undefined {\n if (value == null) return undefined;\n if (!/^(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d)?$/.test(value)) throw new TypeError(\"TimeInput expects HH:mm, HH:mm:ss, or null.\");\n const [hour, minute, second = 0] = value.split(\":\").map(Number);\n return new CalendarDateTime(2000, 1, 1, hour!, minute!, second);\n}\n/**\n * Serializes time only, without converting through the host time zone.\n * @param value - Internal complete time segments from Ark.\n * @param granularity - Smallest public precision.\n * @returns Canonical 24-hour time or null for an empty value.\n */\nexport function serializeClockTime(value: DateInputDateValue | undefined, granularity: \"minute\" | \"second\"): string | null {\n if (value === undefined) return null;\n if (!(\"hour\" in value)) throw new TypeError(\"TimeInput requires time segments.\");\n const fields = [value.hour, value.minute, ...(granularity === \"second\" ? [value.second] : [])];\n return fields.map(field => String(field).padStart(2, \"0\")).join(\":\");\n}\n","<script setup lang=\"ts\">\nimport PickerControlAnchor from \"../shared/picker/control-anchor.vue\";\nimport { StableTimeFormatter } from \"./formatter\";\nimport { DateInput } from \"@ark-ui/vue/date-input\";\nimport SegmentedInputRoot from \"../shared/segmented-input/root.vue\";\nimport type { DateInputDateValue } from \"@ark-ui/vue/date-input\";\nimport { computed, onMounted, onScopeDispose, ref, useId, watch } from \"vue\";\nimport type { QuireKitTimeInputProps, QuireKitTimeInputValue } from \"./types\";\nimport { parseClockTime, serializeClockTime } from \"./value\";\nimport QuireIconButton from \"../button/icon-button.vue\";\nimport QuireIcon from \"../icon/icon.vue\";\nimport { useQuireKitLocale, useQuireKitMessages } from \"../locale-provider/context\";\nimport { segmentLabel } from \"../shared/segmented-input/label\";\nconst props = withDefaults(defineProps<QuireKitTimeInputProps>(), {\n defaultValue: null, size: \"sm\", width: \"160px\", hideLabel: false,\n disabled: false, readOnly: false, required: false, invalid: false, clearable: false, granularity: \"minute\", hourCycle: 24\n});\nconst emit = defineEmits<{\n /** Complete wall-clock time, or null when the date becomes incomplete or empty. */\n \"update:modelValue\": [value: QuireKitTimeInputValue];\n}>();\ndefineSlots<{\n /** Optional decorative leading icon or short prefix. */\n leading?: () => unknown;\n /** Optional trailing content, such as a time-panel trigger. */\n trailing?: () => unknown;\n}>();\nconst id = useId();\nconst locale = useQuireKitLocale();\nconst text = useQuireKitMessages(\"timeInput\");\nconst pickerText = useQuireKitMessages(\"picker\");\nconst root = ref<HTMLDivElement>();\nconst internalValue = ref(props.defaultValue);\nconst resetVersion = ref(0);\nconst value = computed(() => props.modelValue === undefined ? internalValue.value : props.modelValue);\nconst formatter = computed(() => new StableTimeFormatter(locale.value, { hour: \"2-digit\", minute: \"2-digit\", ...(props.granularity === \"second\" ? { second: \"2-digit\" } : {}), hourCycle: props.hourCycle === 12 ? \"h12\" : \"h23\", timeZone: \"UTC\" }));\nconst dates = computed(() => {\n const date = parseClockTime(value.value);\n if (props.granularity === \"minute\" && date && date.second !== 0) throw new TypeError(\"Minute precision cannot hide non-zero seconds; use granularity=second.\");\n return date ? [date] : [];\n});\nconst minDate = computed(() => parseClockTime(props.min));\nconst maxDate = computed(() => parseClockTime(props.max));\nconst placeholder = computed(() => parseClockTime(props.placeholderValue ?? \"00:00\"));\nconst optionalBindings = computed(() => ({\n ...(placeholder.value ? { placeholderValue: placeholder.value } : {}),\n ...(props.name === undefined ? {} : { name: props.name }),\n ...(props.form === undefined ? {} : { form: props.form })\n}));\nconst outsideBounds = computed(() => {\n const date = dates.value[0];\n return date !== undefined && ((minDate.value !== undefined && date.compare(minDate.value) < 0) || (maxDate.value !== undefined && date.compare(maxDate.value) > 0));\n});\nconst invalidState = computed(() => props.invalid || outsideBounds.value);\nconst message = computed(() => invalidState.value ? (props.errorText || (outsideBounds.value ? pickerText.value.timeBetween(props.min ?? \"00:00\", props.max ?? \"23:59:59\") : props.description)) : props.description);\nlet currentForm: HTMLFormElement | null = null;\n/**\n * Adapts Ark's complete-date array to the single-time public model.\n * @param next - Complete values emitted by the upstream date controller.\n */\nfunction update(next: DateInputDateValue[]): void {\n if (props.disabled || props.readOnly) return;\n const date = serializeClockTime(next[0], props.granularity);\n if (props.modelValue === undefined) internalValue.value = date;\n emit(\"update:modelValue\", date);\n}\n/**\n * Restores the explicit default after the browser accepts a form reset.\n * @param event - Cancellable reset event from the associated native form.\n */\nfunction reset(event: Event): void {\n queueMicrotask(() => {\n if (event.defaultPrevented) return;\n internalValue.value = props.defaultValue;\n emit(\"update:modelValue\", props.defaultValue);\n // Remount also clears incomplete drafts when the public value was already null.\n resetVersion.value += 1;\n });\n}\n/** Associates native reset with the same form as Ark's serialized hidden input. */\nfunction bindForm(): void {\n currentForm?.removeEventListener(\"reset\", reset);\n currentForm = root.value?.querySelector(\"input\")?.form ?? null;\n currentForm?.addEventListener(\"reset\", reset);\n}\nonMounted(bindForm);\nwatch(() => props.form, bindForm, { flush: \"post\" });\nonScopeDispose(() => currentForm?.removeEventListener(\"reset\", reset));\n</script>\n<template>\n <div ref=\"root\" class=\"qk-time-input\" :style=\"{ width }\">\n <SegmentedInputRoot :key=\"resetVersion\" :id=\"id\" :model-value=\"dates\" v-bind=\"optionalBindings\" :disabled=\"disabled\" :read-only=\"readOnly\" :required=\"required\" :invalid=\"invalidState\" :granularity=\"granularity\" :formatter=\"formatter\" time-zone=\"UTC\" @update:model-value=\"update\">\n <DateInput.Label :class=\"hideLabel ? 'sr-only' : 'qk-time-input__label'\">{{ label }}<span v-if=\"required\" aria-hidden=\"true\"> *</span></DateInput.Label>\n <PickerControlAnchor>\n <DateInput.Control :class=\"['qk-time-input__control', `qk-time-input__control--${size}`]\">\n <span v-if=\"$slots.leading\" class=\"qk-time-input__adornment\" aria-hidden=\"true\"><slot name=\"leading\" /></span>\n <DateInput.Context v-slot=\"date\">\n <DateInput.SegmentGroup class=\"qk-time-input__segments\">\n <DateInput.Segment v-for=\"(segment, segmentIndex) in date.getSegments()\" :key=\"segmentIndex\" :segment=\"segment\" :class=\"['qk-time-input__segment', segment.type === 'literal' && 'qk-time-input__literal', segment.type === 'dayPeriod' && 'qk-time-input__period', /^[\\u2066-\\u2069]+$/.test(segment.text) && 'qk-time-input__direction-marker']\" :aria-label=\"segmentLabel(label, segment.type, pickerText)\" :aria-describedby=\"message ? `${id}-message` : undefined\" />\n </DateInput.SegmentGroup>\n <span v-if=\"(clearable && !disabled && !readOnly) || $slots.trailing\" class=\"qk-time-input__actions\">\n <QuireIconButton v-if=\"clearable && !disabled && !readOnly\" :label=\"text.clear\" size=\"xs\" variant=\"text\" @pointerdown.prevent @click=\"date.clearValue(); date.focus()\"><QuireIcon name=\"close\" :size=\"12\" /></QuireIconButton>\n <slot name=\"trailing\" />\n </span>\n </DateInput.Context>\n </DateInput.Control>\n </PickerControlAnchor>\n <DateInput.HiddenInput :value=\"serializeClockTime(dates[0], granularity) ?? ''\" />\n </SegmentedInputRoot>\n <p v-if=\"message\" :id=\"`${id}-message`\" :class=\"['qk-time-input__message', invalidState && 'qk-time-input__message--invalid']\">{{ message }}</p>\n </div>\n</template>\n","import type { DateValue } from \"@ark-ui/vue/date-picker\";\nimport { parseCalendarDate } from \"../date-input/value\";\nimport type { QuireKitCalendarSelectionMode, QuireKitCalendarValue } from \"./types\";\n/**\n * Validates and adapts the public selection to Ark's date array.\n * @param value - Plain calendar selection.\n * @param mode - Selection contract governing its shape.\n * @returns Complete calendar dates without time conversion.\n */\nexport function parseCalendarSelection(value: QuireKitCalendarValue | undefined, mode: QuireKitCalendarSelectionMode): DateValue[] {\n if (value == null) return [];\n if (mode === \"single\" && typeof value !== \"string\") throw new TypeError(\"Single calendar selection expects ISO date or null.\");\n if (mode !== \"single\" && typeof value === \"string\") throw new TypeError(\"Range and multiple calendars expect an ISO date array.\");\n const dates = (typeof value === \"string\" ? [value] : value).map(date => parseCalendarDate(date)!);\n if (mode === \"range\" && (dates.length > 2 || (dates.length === 2 && dates[0]!.compare(dates[1]!) > 0))) throw new RangeError(\"Calendar range expects an ordered start and end.\");\n return dates;\n}\n/**\n * Serializes selection according to the public selection mode.\n * @param dates - Ark's selected dates.\n * @param mode - Selection mode.\n * @returns A single ISO date/null or an ISO array.\n */\nexport function serializeCalendarSelection(dates: DateValue[], mode: QuireKitCalendarSelectionMode): QuireKitCalendarValue {\n const values = dates.map(date => date.toString());\n return mode === \"single\" ? values[0] ?? null : values;\n}\n\n/**\n * Checks a completed continuous range without converting it to timestamps.\n * @param dates - Ordered start and end selected by Ark.\n * @param unavailable - Host business rule for individual ISO dates.\n * @returns The first unavailable date, or undefined when the range is permitted.\n */\nexport function findUnavailableRangeDate(dates: DateValue[], unavailable: ((date: string) => boolean) | undefined): string | undefined {\n if (!unavailable || dates.length !== 2) return undefined;\n // Calendar-day arithmetic preserves leap days and does not depend on DST length.\n for (let date = dates[0]!; date.compare(dates[1]!) <= 0;) {\n if (unavailable(date.toString())) return date.toString();\n if (date.compare(dates[1]!) === 0) break;\n date = date.add({ days: 1 });\n }\n return undefined;\n}\n","import { quireKitDefaultLocale } from \"../../locale/resolve\";\nimport type { Messages as CalendarMessages } from \"../../locale/components/calendar\";\nimport type { CalendarDayAnnouncement } from \"./types\";\n/**\n * Names a date together with states that must not depend on color alone.\n * @param state - Ark's current date-cell state.\n * @param text - Calendar messages of the active language.\n * @returns A date announcement with selection and availability context.\n */\nexport function announceCalendarDay(state: CalendarDayAnnouncement, text: CalendarMessages = quireKitDefaultLocale.messages.calendar): string {\n const states = [state.today && text.today, !state.selectable && text.unavailable, state.firstInRange ? text.rangeStart : state.lastInRange ? text.rangeEnd : state.selected && text.selected];\n return [...states.filter(Boolean), state.valueText].join(text.separator);\n}\n","import type { ObjectDirective } from 'vue';\nconst animations = new WeakMap<HTMLElement, Animation>();\n\n/**\n * Fades replacement content without remounting focused controls or moving layout.\n * @param element - Stable content region, never the floating positioner.\n */\nfunction fadeContent(element: HTMLElement): void {\n animations.get(element)?.cancel();\n const view = element.ownerDocument.defaultView;\n if (!view || view.matchMedia('(prefers-reduced-motion: reduce)').matches) return;\n const style = view.getComputedStyle(element);\n const duration = Number.parseFloat(style.getPropertyValue('--qk-motion-control-duration'));\n if (!duration) return;\n animations.set(element, element.animate([{ opacity: 0.5 }, { opacity: 1 }], {\n duration, easing: style.getPropertyValue('--qk-motion-standard-easing').trim() || 'ease-out'\n }));\n}\n\n/** Content identity changes animate once; ordinary selection/focus updates do not restart it. */\nexport const vContentMotion: ObjectDirective<HTMLElement, string> = {\n /** @param element - Stable region. @param binding - Current and prior content identity. */\n updated(element, binding) { if (binding.value !== binding.oldValue) fadeContent(element); },\n /** @param element - Region leaving the document; release any remaining animation. */\n unmounted(element) { animations.get(element)?.cancel(); animations.delete(element); }\n};\n","<script setup lang=\"ts\">\nimport { DatePicker, useDatePickerContext } from '@ark-ui/vue/date-picker';\nimport QuireIcon from '../icon/icon.vue';\ndefineProps<{ /** Present the heading as text when it has no available action. */ staticHeading?: boolean }>();\nconst calendar = useDatePickerContext();\n</script>\n<template>\n <DatePicker.ViewControl class=\"qk-calendar__navigation\">\n <DatePicker.PrevTrigger class=\"qk-calendar__navigation-button qk-calendar__button\"><QuireIcon name=\"chevronLeft\" :size=\"16\" /></DatePicker.PrevTrigger>\n <span v-if=\"staticHeading || calendar.view === 'year'\" class=\"qk-calendar__title qk-calendar__button\"><DatePicker.RangeText /></span>\n <DatePicker.ViewTrigger v-else class=\"qk-calendar__heading qk-calendar__button\"><DatePicker.RangeText /></DatePicker.ViewTrigger>\n <DatePicker.NextTrigger class=\"qk-calendar__navigation-button qk-calendar__button\"><QuireIcon name=\"chevronRight\" :size=\"16\" /></DatePicker.NextTrigger>\n </DatePicker.ViewControl>\n</template>\n","<script setup lang=\"ts\">\nimport { DatePicker } from '@ark-ui/vue/date-picker';\nimport { vContentMotion } from '../shared/motion/content';\nimport CalendarNavigation from './navigation.vue';\ndefineProps<{\n /** Keep a noninteractive heading for readonly/disabled calendars. */ staticHeading?: boolean;\n /** Visible month count. */ numberOfMonths: number;\n}>();\n</script>\n<template>\n <DatePicker.View view=\"day\" class=\"qk-calendar__view\">\n <CalendarNavigation :static-heading=\"staticHeading ?? false\" />\n <DatePicker.Context v-slot=\"calendar\">\n <div v-content-motion=\"calendar.visibleRangeText.start\" class=\"qk-calendar__months\">\n <div v-for=\"index in numberOfMonths\" :key=\"index\" class=\"qk-calendar__month\">\n <p v-if=\"numberOfMonths > 1\" class=\"qk-calendar__month-label\">{{ calendar.getOffset({ months: index - 1 }).visibleRangeText.start }}</p>\n <DatePicker.Table :aria-label=\"calendar.getOffset({ months: index - 1 }).visibleRangeText.start\" class=\"qk-calendar__table\">\n <DatePicker.TableHead><DatePicker.TableRow>\n <DatePicker.TableHeader v-for=\"day in calendar.weekDays\" :key=\"day.long\" :abbr=\"day.long\" class=\"qk-calendar__weekday\">{{ day.narrow }}</DatePicker.TableHeader>\n </DatePicker.TableRow></DatePicker.TableHead>\n <DatePicker.TableBody>\n <DatePicker.TableRow v-for=\"(week, row) in calendar.getOffset({ months: index - 1 }).weeks\" :key=\"row\">\n <DatePicker.TableCell v-for=\"day in week\" :key=\"day.toString()\" :value=\"day\" :visible-range=\"calendar.getOffset({ months: index - 1 }).visibleRange\" class=\"qk-calendar__cell\">\n <DatePicker.TableCellTrigger v-if=\"numberOfMonths === 1 || day.month === calendar.getOffset({ months: index - 1 }).visibleRange.start.month\" class=\"qk-calendar__day qk-calendar__button\">{{ day.day }}</DatePicker.TableCellTrigger>\n </DatePicker.TableCell>\n </DatePicker.TableRow>\n </DatePicker.TableBody>\n </DatePicker.Table>\n </div>\n </div>\n </DatePicker.Context>\n </DatePicker.View>\n</template>\n","<script setup lang=\"ts\">\nimport { DatePicker } from '@ark-ui/vue/date-picker';\nimport { vContentMotion } from '../shared/motion/content';\nimport CalendarNavigation from './navigation.vue';\ndefineProps<{\n /** Month or year selection view. */ view: 'month' | 'year';\n /** Keep a noninteractive heading for readonly/disabled calendars. */ staticHeading?: boolean;\n}>();\n</script>\n<template>\n <DatePicker.View :view=\"view\" class=\"qk-calendar__view\">\n <CalendarNavigation :static-heading=\"staticHeading ?? false\" />\n <DatePicker.Context v-slot=\"calendar\">\n <DatePicker.Table v-content-motion=\"calendar.visibleRangeText.start\" :aria-label=\"calendar.visibleRangeText.start\" class=\"qk-calendar__table qk-calendar__periods\">\n <DatePicker.TableBody>\n <DatePicker.TableRow v-for=\"(row, index) in (view === 'month' ? calendar.getMonthsGrid({ columns: 3, format: 'short' }) : calendar.getYearsGrid({ columns: 3 }))\" :key=\"index\">\n <DatePicker.TableCell v-for=\"cell in row\" :key=\"cell.value\" :value=\"cell.value\" :columns=\"3\" class=\"qk-calendar__cell\">\n <DatePicker.TableCellTrigger class=\"qk-calendar__period qk-calendar__button\">{{ cell.label }}</DatePicker.TableCellTrigger>\n </DatePicker.TableCell>\n </DatePicker.TableRow>\n </DatePicker.TableBody>\n </DatePicker.Table>\n </DatePicker.Context>\n </DatePicker.View>\n</template>\n","<script setup lang=\"ts\">\nimport { DatePicker, type DateValue } from '@ark-ui/vue/date-picker';\nimport { useQuireKitLocale, useQuireKitMessages } from '../locale-provider/context';\nimport { computed, ref, watch } from 'vue';\nimport { parseCalendarDate } from '../date-input/value';\nimport { parseCalendarSelection, serializeCalendarSelection, findUnavailableRangeDate } from './value';\nimport type { CalendarDayAnnouncement, QuireKitCalendarProps, QuireKitCalendarValue } from './types';\nimport { announceCalendarDay } from './announcements';\nimport CalendarDayView from './day-view.vue';\nimport CalendarPeriodView from './period-view.vue';\nconst props = withDefaults(defineProps<QuireKitCalendarProps>(), { defaultValue: null, selectionMode: 'single', density: 'comfortable', disabled: false, readOnly: false, fixedWeeks: true, numberOfMonths: 1, allowNonContiguousRange: false });\nconst emit = defineEmits<{\n /** Current selection; range mode may contain only its start while choosing the end. */ 'update:modelValue': [value: QuireKitCalendarValue];\n}>();\ndefineSlots<{ /** Optional supporting text or host-owned actions below the calendar. */ footer?: () => unknown }>();\nconst locale = useQuireKitLocale();\nconst text = useQuireKitMessages('calendar');\nconst pickerText = useQuireKitMessages('picker');\nconst internal = ref<QuireKitCalendarValue>(props.defaultValue);\nconst value = computed(() => props.modelValue === undefined ? internal.value : props.modelValue);\nconst blockedDate = ref<string>();\nwatch([() => props.modelValue, () => props.isDateUnavailable, () => props.allowNonContiguousRange], () => { blockedDate.value = undefined; });\nconst dates = computed(() => parseCalendarSelection(value.value, props.selectionMode));\nconst invalidRangeDate = computed(() => props.selectionMode === 'range' && !props.allowNonContiguousRange ? findUnavailableRangeDate(dates.value, props.isDateUnavailable) : undefined);\nconst rangeError = computed(() => {\n const date = blockedDate.value ?? invalidRangeDate.value;\n return date ? pickerText.value.rangeIncludesUnavailable(date) : '';\n});\nconst optionalBindings = computed(() => ({\n ...(props.min ? { min: parseCalendarDate(props.min)! } : {}),\n ...(props.max ? { max: parseCalendarDate(props.max)! } : {}),\n ...(props.defaultFocusedValue ? { defaultFocusedValue: parseCalendarDate(props.defaultFocusedValue)! } : {}),\n ...(props.timeZone ? { timeZone: props.timeZone } : {}),\n ...(props.startOfWeek !== undefined ? { startOfWeek: props.startOfWeek } : {}),\n ...(props.maxSelectedDates !== undefined ? { maxSelectedDates: props.maxSelectedDates } : {})\n}));\nconst translations = computed(() => ({\n dayCell: (state: CalendarDayAnnouncement) => announceCalendarDay(state, text.value),\n prevTrigger: text.value.previous,\n nextTrigger: text.value.next,\n viewTrigger: text.value.switchView\n}));\n/**\n * Preserves Ark's selection behavior and adapts only the public value shape.\n * @param next - Selected calendar dates.\n */\nfunction update(next: DateValue[]): void {\n if (props.disabled || props.readOnly) return;\n blockedDate.value = props.selectionMode === 'range' && !props.allowNonContiguousRange ? findUnavailableRangeDate(next, props.isDateUnavailable) : undefined;\n if (blockedDate.value) return;\n const selection = serializeCalendarSelection(next, props.selectionMode);\n if (props.modelValue === undefined) internal.value = selection;\n emit('update:modelValue', selection);\n}\n/**\n * Rejects a blocked endpoint before Ark advances its range-selection phase.\n * Keeping the start phase intact lets the user immediately choose a valid end.\n * @param event - Date-cell pointer activation or keyboard confirmation.\n */\nfunction guardRangeChoice(event: MouseEvent | KeyboardEvent): void {\n if (props.selectionMode !== 'range' || props.allowNonContiguousRange || dates.value.length !== 1 || props.disabled || props.readOnly) return;\n if (event instanceof KeyboardEvent && event.key !== 'Enter' && event.key !== ' ') return;\n const cell = event.target instanceof Element ? event.target.closest('[data-part=\"table-cell-trigger\"][data-view=\"day\"]') : null;\n const iso = cell?.getAttribute('data-value');\n if (!iso || cell?.getAttribute('aria-disabled') === 'true') return;\n const candidate = parseCalendarDate(iso)!;\n const pair = [dates.value[0]!, candidate].sort((a, b) => a.compare(b));\n const blocked = findUnavailableRangeDate(pair, props.isDateUnavailable);\n if (!blocked) return;\n event.preventDefault(); event.stopPropagation(); blockedDate.value = blocked;\n}\n/**\n * Applies host availability rules to timezone-independent ISO dates.\n * @param date - Date under evaluation by Ark.\n * @returns Whether the host forbids choosing this date.\n */\nfunction unavailable(date: DateValue): boolean { return props.isDateUnavailable?.(date.toString()) ?? false; }\n</script>\n<template>\n <DatePicker.Root :class=\"['qk-calendar', `qk-calendar--${density}`]\" :style=\"{ '--qk-calendar-month-count': numberOfMonths }\" role=\"group\" inline :aria-label=\"label\" :model-value=\"dates\" :selection-mode=\"selectionMode\" :locale=\"locale\" :translations=\"translations\" :disabled=\"disabled\" :read-only=\"readOnly\" :invalid=\"Boolean(rangeError)\" :fixed-weeks=\"fixedWeeks\" :num-of-months=\"numberOfMonths\" :is-date-unavailable=\"unavailable\" v-bind=\"optionalBindings\" @update:model-value=\"update\" @click.capture=\"guardRangeChoice\" @keydown.capture=\"guardRangeChoice\">\n <DatePicker.Label class=\"sr-only\">{{ label }}</DatePicker.Label>\n <CalendarDayView :static-heading=\"readOnly || disabled\" :number-of-months=\"numberOfMonths\" />\n <CalendarPeriodView :static-heading=\"readOnly || disabled\" view=\"month\" />\n <CalendarPeriodView :static-heading=\"readOnly || disabled\" view=\"year\" />\n <p v-if=\"rangeError\" class=\"qk-calendar__error\" role=\"status\">{{ rangeError }}</p>\n <div v-if=\"$slots.footer\" class=\"qk-calendar__footer\"><slot name=\"footer\" /></div>\n </DatePicker.Root>\n</template>\n","import { useQuireOverlayHost } from \"../../overlay-provider\";\nimport type { PopoverRootProps } from '@ark-ui/vue/popover';\n\n/**\n * Keeps the sizing budget independent of the previously resolved popup side.\n * Ark owns the scroll/resize observers and their teardown; this hook only supplies\n * a viewport-space height before its collision pass, without animating coordinates.\n * @param field - Resident field containing the actual control anchor.\n * @returns Stable positioning options for the desktop shell.\n */\nexport function pickerPositioning(field: () => HTMLElement | undefined): NonNullable<PopoverRootProps['positioning']> {\n const host = useQuireOverlayHost();\n return {\n placement: 'bottom-start', strategy: host.strategy.value ?? 'fixed', gutter: 4, hideWhenDetached: true,\n /** @param context - Ark positioning pass and the currently mounted floating element. */\n async updatePosition(context) {\n const { updatePosition, floatingElement } = context;\n const anchor = field()?.querySelector<HTMLElement>('.qk-picker__control-anchor');\n if (!anchor || !floatingElement?.isConnected) return;\n const rect = anchor.getBoundingClientRect();\n const viewport = anchor.ownerDocument.documentElement.clientHeight;\n // Choose the larger side before measuring content. Feeding --available-height\n // back into its own measurement makes scroll resize the panel instead of flip.\n const height = Math.max(rect.top - 12, viewport - rect.bottom - 12, 0);\n floatingElement.style.setProperty('--qk-picker-available-height', `${Math.floor(height)}px`);\n await updatePosition();\n }\n };\n}\n","<script setup lang=\"ts\">\nimport { Popover } from '@ark-ui/vue/popover';\nimport { computed, provide, ref, watch } from 'vue';\nimport DrawerRoot from '../../drawer/root.vue';\nimport { useAdaptivePresentation } from '../task/presentation/use-adaptive-presentation';\nimport { pickerSurfaceKey } from './context';\nimport { pickerPositioning } from './positioning';\nimport type { PickerSurfaceProps } from './types';\nconst props = withDefaults(defineProps<PickerSurfaceProps>(), { presentation: 'auto', openOnFocus: true, disabled: false });\nconst emit = defineEmits<{ /** Requests the owning picker's visibility update. */ 'update:open': [open: boolean] }>();\nconst anchor = ref<HTMLElement>();\nconst positioning = pickerPositioning(() => anchor.value);\nconst presentation = useAdaptivePresentation(anchor, () => props.presentation);\nconst bottom = computed(() => presentation.resolved.value === 'bottom');\nlet ignoreFocusUntil = 0;\nconst fieldFocus = ref<HTMLElement>();\nwatch([() => props.open, presentation.ready], ([open], previous) => {\n if (open) presentation.open();\n else { presentation.close(); fieldFocus.value = undefined; if (previous?.[0]) ignoreFocusUntil = Date.now() + 200; }\n}, { immediate: true, flush: 'sync' });\n/** @param next - Visibility requested by one active physical shell. */\nfunction change(next: boolean): void { if (!next || !props.disabled) emit('update:open', next); }\n/** @param event - Real field activation; clear and trigger buttons keep their own behavior. */\nfunction openField(event: Event): void {\n const target = event.target as HTMLElement | null;\n if (target?.closest('button')) { ignoreFocusUntil = Date.now() + 200; return; }\n if (!props.openOnFocus || props.disabled || props.open || !target || (event.type === 'focusin' && Date.now() < ignoreFocusUntil)) return;\n if (!target.closest('[role=\"spinbutton\"], [data-part=\"control\"]')) return;\n presentation.resolveForEvent(event);\n if (bottom.value && event.type === 'pointerdown') event.preventDefault();\n fieldFocus.value = bottom.value ? undefined : target.closest<HTMLElement>('[role=\"spinbutton\"]') ?? undefined;\n change(true);\n}\n/** @param event - Dismissable-layer event; input segments are part of this picker. */\nfunction guardOutside(event: CustomEvent<{ originalEvent: Event }>): void {\n const target = event.detail.originalEvent.target as Node | null;\n if (target && anchor.value?.contains(target)) event.preventDefault();\n}\n/** @returns The field for editing, or the explicit opening target in the panel. */\nfunction initialFocus(): HTMLElement | null { return fieldFocus.value ?? props.initialFocusEl?.() ?? null; }\n/** @returns The resident action after either shell dismisses. */\nfunction finalFocus(): HTMLElement | null { return props.finalFocusEl?.() ?? null; }\nprovide(pickerSurfaceKey, { anchor, bottom, open: computed(() => props.open), openField });\n</script>\n<template>\n <!-- One presence provider owns the active shell; nesting the closed drawer would\n hide desktop Popover.Content through Ark's shared presence context. -->\n <DrawerRoot v-if=\"bottom\" :open=\"open\" side=\"bottom\" :drag-enabled=\"false\" :initial-focus-el=\"initialFocus\" :final-focus-el=\"finalFocus\"\n @update:open=\"change\" @exit-complete=\"presentation.completeExit('bottom', presentation.epoch.value)\">\n <slot />\n </DrawerRoot>\n <Popover.Root v-else portalled :open=\"open\" :auto-focus=\"true\" :initial-focus-el=\"initialFocus\" :final-focus-el=\"finalFocus\" :positioning=\"positioning\"\n @interact-outside=\"guardOutside\" @update:open=\"change\" @exit-complete=\"presentation.completeExit('desktop', presentation.epoch.value)\">\n <slot />\n </Popover.Root>\n</template>\n","<script setup lang=\"ts\">\nimport { inject, onMounted, ref, watch } from 'vue';\nimport { pickerSurfaceKey } from './context';\nconst context = inject(pickerSurfaceKey)!;\nconst element = ref<HTMLElement>();\nonMounted(() => { context.anchor.value = element.value; });\nwatch(element, value => { context.anchor.value = value; });\n</script>\n<template>\n <div ref=\"element\" class=\"qk-picker__anchor\" @focusin=\"context.openField\" @click=\"context.openField\" @pointerdown=\"context.bottom.value && context.openField($event)\"><slot /></div>\n</template>\n","<script setup lang=\"ts\">\nimport { Drawer } from '@ark-ui/vue/drawer';\nimport { Popover } from '@ark-ui/vue/popover';\nimport { usePickerBottom } from './context';\nconst bottom = usePickerBottom();\n</script>\n<template><component :is=\"bottom ? Drawer.Trigger : Popover.Trigger\" as-child><slot /></component></template>\n","<script setup lang=\"ts\">\nimport QuireThemePortal from \"../../theme-provider/portal.vue\";\nimport { computed, useAttrs } from 'vue';\nimport { Drawer } from '@ark-ui/vue/drawer';\nimport PopoverContent from '../../popover/content.vue';\nimport QuireIcon from '../../icon/icon.vue';\nimport { usePickerBottom } from './context';\nimport { useQuireKitMessages } from '../../locale-provider/context';\ndefineOptions({ inheritAttrs: false });\nconst attrs = useAttrs();\nconst bottom = usePickerBottom();\nconst text = useQuireKitMessages('picker');\n// Desktop panel classes own anchor-dependent width and height; they must never\n// constrain the full-width sheet, which has its own single content inset.\nconst sheetAttrs = computed(() => Object.fromEntries(Object.entries(attrs).filter(([key]) => !['class', 'show-arrow'].includes(key))));\n</script>\n<template>\n <Teleport v-if=\"bottom\" to=\"body\">\n <QuireThemePortal>\n <Drawer.Backdrop class=\"qk-drawer__backdrop\" />\n <Drawer.Positioner class=\"qk-drawer__positioner qk-drawer__positioner--bottom\">\n <Drawer.Content :draggable=\"false\" class=\"qk-drawer__content qk-drawer__content--bottom qk-picker__sheet\">\n <header class=\"qk-picker__sheet-header\">\n <Drawer.Title class=\"qk-drawer__title\">{{ attrs['aria-label'] }}</Drawer.Title>\n <Drawer.CloseTrigger class=\"qk-picker__close\" :aria-label=\"text.close\"><QuireIcon name=\"close\" :size=\"16\" /></Drawer.CloseTrigger>\n </header>\n <div v-bind=\"sheetAttrs\" class=\"qk-picker__sheet-body\"><slot :bottom=\"true\" /></div>\n </Drawer.Content>\n </Drawer.Positioner>\n </QuireThemePortal>\n </Teleport>\n <PopoverContent v-else v-bind=\"attrs\" :show-arrow=\"false\"><slot :bottom=\"false\" /></PopoverContent>\n</template>\n","<script setup lang=\"ts\">\nimport { computed, onMounted, onScopeDispose, ref, watch } from \"vue\";\nimport type { QuireKitDateInputProps } from \"../date-input/types\";\nimport type { QuireKitDateSinglePickerProps } from \"./types\";\nimport type { QuireKitCalendarValue } from \"../calendar/types\";\nimport QuireDateInput from \"../date-input/date-input.vue\";\nimport QuireCalendar from \"../calendar/calendar.vue\";\nimport QuireIconButton from \"../button/icon-button.vue\";\nimport QuireIcon from \"../icon/icon.vue\";\nimport { useQuireKitMessages } from \"../locale-provider/context\";\nimport { PickerRoot as QuirePopoverRoot, PickerAnchor as QuirePopoverAnchor, PickerTrigger as QuirePopoverTrigger, PickerContent as QuirePopoverContent } from \"../shared/picker\";\n\nconst props = withDefaults(defineProps<QuireKitDateSinglePickerProps>(), {\n dateFormat: \"iso\", defaultValue: null, size: \"sm\", width: \"240px\", open: undefined, defaultOpen: false, presentation: \"auto\", openOnFocus: true,\n disabled: false, readOnly: false, clearable: true, calendarDensity: \"comfortable\"\n});\nconst emit = defineEmits<{\n /** One shared ISO date or empty value, regardless of the editing surface. */\n \"update:modelValue\": [value: string | null];\n /** Requested popup visibility. */\n \"update:open\": [open: boolean];\n}>();\ndefineSlots<{\n /** Decorative prefix inside the field. */ leading?: () => unknown;\n /** Host actions or supporting text below the calendar. */ footer?: () => unknown;\n}>();\nconst text = useQuireKitMessages(\"datePicker\");\nconst pickerText = useQuireKitMessages(\"picker\");\nconst internal = ref(props.defaultValue);\nconst internalOpen = ref(props.defaultOpen);\nconst panel = ref<HTMLElement>();\nconst trigger = ref<HTMLElement>();\nconst value = computed(() => props.modelValue === undefined ? internal.value : props.modelValue);\nconst opened = computed(() => !props.disabled && !props.readOnly && (props.open ?? internalOpen.value));\nconst unavailable = computed(() => Boolean(value.value && props.isDateUnavailable?.(value.value)));\nconst triggerLabel = computed(() => text.value.openCalendar(props.label));\nconst inputProps = computed(() => {\n const { open, defaultOpen, calendarDensity, timeZone, startOfWeek, isDateUnavailable, presentation, openOnFocus, ...input } = props;\n return { ...Object.fromEntries(Object.entries(input).filter(([, value]) => value !== undefined)), label: input.label } as QuireKitDateInputProps;\n});\nconst calendarProps = computed(() => ({\n ...(props.min ? { min: props.min } : {}), ...(props.max ? { max: props.max } : {}),\n ...(props.timeZone ? { timeZone: props.timeZone } : {}),\n ...(props.startOfWeek !== undefined ? { startOfWeek: props.startOfWeek } : {}),\n ...(props.isDateUnavailable ? { isDateUnavailable: props.isDateUnavailable } : {}),\n ...(value.value || props.placeholderValue ? { defaultFocusedValue: value.value ?? props.placeholderValue! } : {})\n}));\n/**\n * Keeps field and calendar projections under a single committed value owner.\n * @param next - ISO date emitted by the field, including native reset.\n */\nfunction update(next: string | null): void {\n if (props.modelValue === undefined) internal.value = next;\n emit(\"update:modelValue\", next);\n}\n/**\n * Publishes popup requests without bypassing controlled visibility.\n * @param next - Requested visibility.\n */\nfunction setOpen(next: boolean): void {\n if (next && (props.disabled || props.readOnly)) return;\n internalOpen.value = next;\n emit(\"update:open\", next);\n}\n/**\n * Commits a calendar choice and closes only after a complete single date.\n * @param next - Shared calendar selection shape.\n */\nfunction choose(next: QuireKitCalendarValue): void {\n if (props.disabled || props.readOnly || typeof next !== \"string\") return;\n update(next);\n setOpen(false);\n}\n/** @returns The calendar's current roving date target after mounting the popup. */\nfunction initialFocus(): HTMLElement | null { return panel.value?.querySelector('[data-view=\"day\"][data-part=\"table-cell-trigger\"][tabindex=\"0\"]') ?? null; }\n/** @returns The resident opening button, including after choosing with a keyboard. */\nfunction finalFocus(): HTMLElement | null { return trigger.value?.querySelector(\"button\") ?? null; }\nwatch([() => props.disabled, () => props.readOnly], ([disabled, readOnly]) => { if (disabled || readOnly) setOpen(false); });\n\nlet associatedForm: HTMLFormElement | null = null;\n/** @param event - Native reset; discard the calendar only when reset is accepted. */\nfunction resetPanel(event: Event): void { queueMicrotask(() => { if (!event.defaultPrevented) setOpen(false); }); }\n/** Associates dismissal with the same native or externally linked form as the field. */\nfunction bindForm(): void {\n associatedForm?.removeEventListener('reset', resetPanel);\n const form = props.form ? trigger.value?.ownerDocument.getElementById(props.form) : trigger.value?.closest('form');\n associatedForm = form?.tagName === 'FORM' ? form as HTMLFormElement : null;\n associatedForm?.addEventListener('reset', resetPanel);\n}\nonMounted(bindForm);\nwatch(() => props.form, bindForm, { flush: 'post' });\nonScopeDispose(() => associatedForm?.removeEventListener('reset', resetPanel));\n</script>\n<template>\n <QuirePopoverRoot :label=\"label\" :disabled=\"disabled || readOnly\" :presentation=\"presentation\" :open-on-focus=\"openOnFocus\" :open=\"opened\" :initial-focus-el=\"initialFocus\" :final-focus-el=\"finalFocus\" @update:open=\"setOpen\">\n <QuirePopoverAnchor>\n <QuireDateInput v-bind=\"inputProps\" :model-value=\"value\" :invalid=\"invalid || unavailable\" :error-text=\"errorText || (unavailable ? pickerText.dateUnavailable : '')\" @update:model-value=\"update\" @keydown.alt.down.prevent=\"setOpen(true)\">\n <template v-if=\"$slots.leading\" #leading><slot name=\"leading\" /></template>\n <template #trailing>\n <span ref=\"trigger\" class=\"qk-date-picker__trigger\">\n <QuirePopoverTrigger as-child><QuireIconButton :label=\"triggerLabel\" size=\"xs\" variant=\"text\" :disabled=\"disabled || readOnly\"><QuireIcon name=\"calendar\" :size=\"16\" /></QuireIconButton></QuirePopoverTrigger>\n </span>\n </template>\n </QuireDateInput>\n </QuirePopoverAnchor>\n <QuirePopoverContent :show-arrow=\"false\" :aria-label=\"label\" :class=\"['qk-date-picker__panel', `qk-date-picker__panel--${calendarDensity}`]\">\n <div v-if=\"opened\" ref=\"panel\">\n <QuireCalendar :label=\"label\" :model-value=\"value\" :density=\"calendarDensity\" v-bind=\"calendarProps\" @update:model-value=\"choose\">\n <template v-if=\"$slots.footer\" #footer><slot name=\"footer\" /></template>\n </QuireCalendar>\n </div>\n </QuirePopoverContent>\n </QuirePopoverRoot>\n</template>\n","import { parseCalendarDate } from \"../date-input/value\";\nimport { findUnavailableRangeDate } from \"../calendar/value\";\nimport type { DateRangeRules, QuireKitDateRangeValue } from \"./types\";\nimport { quireKitDefaultLocale } from \"../../locale/resolve\";\nimport type { Messages as PickerMessages } from \"../../locale/components/picker\";\n\n/**\n * Validates endpoint syntax without discarding partial or reversed editing states.\n * @param value - Public pure-date endpoints.\n * @returns A fresh value object owned by the range field.\n */\nexport function copyDateRange(value: QuireKitDateRangeValue): QuireKitDateRangeValue {\n parseCalendarDate(value.start);\n parseCalendarDate(value.end);\n return { start: value.start, end: value.end };\n}\n/**\n * Projects only a representable ordered range into the calendar controller.\n * @param value - Field endpoints, including temporary invalid order.\n * @returns Ordered dates or a single start; an end-only field stays unselected.\n */\nexport function calendarRange(value: QuireKitDateRangeValue): string[] {\n if (!value.start) return [];\n if (value.end && value.start > value.end) return [];\n return value.end ? [value.start, value.end] : [value.start];\n}\n/**\n * Reports business constraints without rewriting user input or crossing time zones.\n * @param value - Pure-date endpoints to evaluate.\n * @param rules - Host constraints.\n * @param text - Picker messages of the active language.\n * @returns Recovery guidance, or an empty string when current complete dates are valid.\n */\nexport function dateRangeError(value: QuireKitDateRangeValue, rules: DateRangeRules, text: PickerMessages = quireKitDefaultLocale.messages.picker): string {\n copyDateRange(value);\n if (value.start && value.end && value.start > value.end) return text.dateRangeReversed;\n const endpoints = [value.start, value.end].filter((date): date is string => date !== null);\n if (endpoints.some(date => (rules.min && date < rules.min) || (rules.max && date > rules.max))) return text.dateBetween(rules.min, rules.max);\n const unavailable = endpoints.find(date => rules.isDateUnavailable?.(date)) ?? (!rules.allowNonContiguousRange && value.start && value.end ? findUnavailableRangeDate([parseCalendarDate(value.start)!, parseCalendarDate(value.end)!], rules.isDateUnavailable) : undefined);\n return unavailable ? text.rangeIncludesUnavailable(unavailable) : \"\";\n}\n","<script setup lang=\"ts\">\nimport { DateInput, type DateInputDateValue } from '@ark-ui/vue/date-input';\nimport SegmentedInputRoot from '../shared/segmented-input/root.vue';\nimport { computed } from 'vue';\nimport { IsoDateFormatter } from '../date-input/formatter';\nimport { parseCalendarDate } from '../date-input/value';\nimport type { DateRangeEndpointProps } from './types';\nimport { useQuireKitMessages } from '../locale-provider/context';\nimport { segmentLabel } from '../shared/segmented-input/label';\nconst props = defineProps<DateRangeEndpointProps>();\nconst emit = defineEmits<{ /** Complete endpoint, independently of the other date. */ 'update:modelValue': [value: string | null] }>();\nconst text = useQuireKitMessages('picker');\nconst dates = computed(() => { const date = parseCalendarDate(props.modelValue); return date ? [date] : []; });\nconst bindings = computed(() => ({\n ...(props.dateFormat === \"iso\" ? { formatter: new IsoDateFormatter() } : {}),\n ...(props.name ? { name: props.name } : {}), ...(props.form ? { form: props.form } : {}),\n ...(props.placeholderValue ? { placeholderValue: parseCalendarDate(props.placeholderValue)! } : {})\n}));\n/** @param next - Complete endpoint or an incomplete marker, independently of its sibling. */\nfunction update(next: DateInputDateValue[]): void { if (!props.disabled && !props.readOnly) emit('update:modelValue', next[0]?.toString() ?? null); }\n</script>\n<template>\n <SegmentedInputRoot class=\"qk-date-range-picker__endpoint\" :model-value=\"dates\" v-bind=\"bindings\" :disabled=\"disabled\" :read-only=\"readOnly\" :required=\"required\" :invalid=\"invalid\" granularity=\"day\" @update:model-value=\"update\">\n <DateInput.Label class=\"sr-only\">{{ label }}</DateInput.Label>\n <DateInput.Control class=\"qk-date-range-picker__endpoint-control\">\n <DateInput.Context v-slot=\"date\"><DateInput.SegmentGroup class=\"qk-date-input__segments\">\n <DateInput.Segment v-for=\"(segment, index) in date.getSegments()\" :key=\"index\" :segment=\"segment\" :class=\"['qk-date-input__segment', segment.type === 'literal' && 'qk-date-input__literal']\" :aria-label=\"segmentLabel(label, segment.type, text)\" :aria-describedby=\"describedBy\" />\n </DateInput.SegmentGroup></DateInput.Context>\n </DateInput.Control>\n <DateInput.HiddenInput :value=\"modelValue ?? ''\" />\n </SegmentedInputRoot>\n</template>\n","<script setup lang=\"ts\">\nimport PickerControlAnchor from \"../shared/picker/control-anchor.vue\";\nimport { computed, nextTick, onMounted, onScopeDispose, ref, useId, watch } from 'vue';\nimport type { QuireKitDateRangePickerProps, QuireKitDateRangeValue } from './types';\nimport type { QuireKitCalendarValue } from '../calendar/types';\nimport { calendarRange, copyDateRange, dateRangeError } from './value';\nimport DateRangeEndpoint from './endpoint.vue';\nimport QuireCalendar from '../calendar/calendar.vue';\nimport QuireIconButton from '../button/icon-button.vue';\nimport QuireIcon from '../icon/icon.vue';\nimport { useQuireKitMessages } from \"../locale-provider/context\";\nimport { PickerRoot as QuirePopoverRoot, PickerAnchor as QuirePopoverAnchor, PickerTrigger as QuirePopoverTrigger, PickerContent as QuirePopoverContent } from \"../shared/picker\";\nconst props = withDefaults(defineProps<QuireKitDateRangePickerProps>(), {\n dateFormat: \"iso\", defaultValue: () => ({ start: null, end: null }), size: 'sm', width: '360px',\n open: undefined, defaultOpen: false, presentation: \"auto\", openOnFocus: true, calendarDensity: 'comfortable', numberOfMonths: 2,\n disabled: false, readOnly: false, required: false, invalid: false, clearable: true, hideLabel: false, allowNonContiguousRange: false\n});\nconst emit = defineEmits<{\n /** Field edits and complete calendar selections share this value. */ 'update:modelValue': [value: QuireKitDateRangeValue];\n /** Requested popup visibility. */ 'update:open': [open: boolean];\n}>();\ndefineSlots<{\n /** Optional prefix inside the range field. */ leading?: () => unknown;\n /** Host shortcuts use the same range validation before committing. */ footer?: (props: { selectRange: (value: QuireKitDateRangeValue) => void }) => unknown;\n}>();\nconst id = useId();\nconst root = ref<HTMLElement>();\nconst trigger = ref<HTMLElement>();\nconst panel = ref<HTMLElement>();\nconst version = ref(0);\nconst internal = ref(copyDateRange(props.defaultValue));\nconst internalOpen = ref(props.defaultOpen);\nconst value = computed(() => copyDateRange(props.modelValue ?? internal.value));\nconst opened = computed(() => !props.disabled && !props.readOnly && (props.open ?? internalOpen.value));\nconst draft = ref<string[]>([]);\nconst shortcutError = ref('');\nconst text = useQuireKitMessages('dateRangePicker');\nconst pickerText = useQuireKitMessages('picker');\nconst calendarText = useQuireKitMessages('datePicker');\nconst triggerLabel = computed(() => calendarText.value.openCalendar(props.label));\nconst validation = computed(() => dateRangeError(value.value, props, pickerText.value));\nconst invalidState = computed(() => props.invalid || Boolean(validation.value));\nconst message = computed(() => invalidState.value ? props.errorText || validation.value || props.description : props.description);\nconst endpoints = computed(() => [\n { key: 'start' as const, label: props.startLabel ?? text.value.startField(props.label) },\n { key: 'end' as const, label: props.endLabel ?? text.value.endField(props.label) }\n]);\nconst endpointBindings = computed(() => ({ ...(props.form ? { form: props.form } : {}), ...(props.placeholderValue ? { placeholderValue: props.placeholderValue } : {}), ...(message.value ? { describedBy: `${id}-message` } : {}) }));\nconst calendarBindings = computed(() => ({\n ...(props.min ? { min: props.min } : {}), ...(props.max ? { max: props.max } : {}), ...(props.timeZone ? { timeZone: props.timeZone } : {}),\n ...(props.startOfWeek !== undefined ? { startOfWeek: props.startOfWeek } : {}), ...(props.isDateUnavailable ? { isDateUnavailable: props.isDateUnavailable } : {}),\n ...(value.value.start || value.value.end || props.placeholderValue ? { defaultFocusedValue: value.value.start ?? value.value.end ?? props.placeholderValue! } : {})\n}));\n/** @param next - Requested popup visibility; opening starts a cancellable draft. */\nfunction setOpen(next: boolean): void { if (next && (props.disabled || props.readOnly)) return; internalOpen.value = next; emit('update:open', next); }\nwatch(opened, () => { draft.value = calendarRange(value.value); shortcutError.value = ''; }, { immediate: true });\nwatch(() => props.modelValue, () => { draft.value = calendarRange(value.value); shortcutError.value = ''; });\nwatch([() => props.disabled, () => props.readOnly], ([disabled, readOnly]) => { if (disabled || readOnly) setOpen(false); });\n/** @param next - New shared range, preserving each endpoint's editing intent. */\nfunction update(next: QuireKitDateRangeValue): void { if (props.modelValue === undefined) internal.value = copyDateRange(next); emit('update:modelValue', copyDateRange(next)); }\n/** @param key - Edited endpoint. @param next - Complete date or incomplete marker from Ark. */\nfunction edit(key: 'start' | 'end', next: string | null): void { if (!props.disabled && !props.readOnly) update({ ...value.value, [key]: next }); }\n/** @param next - Complete range selected by a calendar or host shortcut. */\nfunction selectRange(next: QuireKitDateRangeValue): void {\n if (props.disabled || props.readOnly) return;\n shortcutError.value = dateRangeError(next, props, pickerText.value) || (!next.start || !next.end ? text.value.incomplete : '');\n if (shortcutError.value) return;\n update(next); version.value += 1; setOpen(false);\n}\n/** @param next - Ark range draft; only a complete pair commits to the field. */\nfunction choose(next: QuireKitCalendarValue): void { if (!Array.isArray(next)) return; draft.value = [...next]; shortcutError.value = ''; if (next.length === 2) selectRange({ start: next[0]!, end: next[1]! }); }\n/** Clears both committed dates and incomplete segment drafts without reducing the click target. */\nasync function clear(): Promise<void> { update({ start: null, end: null }); version.value += 1; setOpen(false); await nextTick(); root.value?.querySelector<HTMLElement>('[role=\"spinbutton\"]')?.focus(); }\n/** @returns Current date navigation target in the portalled panel. */\nfunction initialFocus(): HTMLElement | null { return panel.value?.querySelector('[data-view=\"day\"][data-part=\"table-cell-trigger\"][tabindex=\"0\"]') ?? null; }\n/** @returns The resident opening action after popup dismissal. */\nfunction finalFocus(): HTMLElement | null { return trigger.value?.querySelector('button') ?? null; }\nlet currentForm: HTMLFormElement | null = null;\n/** @param event - Cancellable native reset; handled once for both endpoints. */\nfunction reset(event: Event): void { queueMicrotask(() => { if (event.defaultPrevented) return; update(props.defaultValue); version.value += 1; setOpen(false); }); }\n/** Associates range reset with the same native form as both serialized endpoints. */\nfunction bindForm(): void { currentForm?.removeEventListener('reset', reset); currentForm = root.value?.querySelector('input')?.form ?? null; currentForm?.addEventListener('reset', reset); }\nonMounted(bindForm);\nwatch(() => props.form, bindForm, { flush: 'post' });\nonScopeDispose(() => currentForm?.removeEventListener('reset', reset));\n</script>\n<template>\n <div ref=\"root\" class=\"qk-date-input\" :style=\"{ width: '100%', maxWidth: width }\" role=\"group\" :aria-label=\"label\">\n <p :class=\"hideLabel ? 'sr-only' : 'qk-date-input__label qk-date-range-picker__label'\">{{ label }}<span v-if=\"required\" aria-hidden=\"true\"> *</span></p>\n <QuirePopoverRoot :label=\"label\" :disabled=\"disabled || readOnly\" :presentation=\"presentation\" :open-on-focus=\"openOnFocus\" :open=\"opened\" :initial-focus-el=\"initialFocus\" :final-focus-el=\"finalFocus\" @update:open=\"setOpen\">\n <QuirePopoverAnchor>\n <PickerControlAnchor>\n <div :class=\"['qk-date-input__control', 'qk-date-range-picker__control', `qk-date-range-picker__control--${size}`]\" :data-invalid=\"invalidState ? '' : undefined\" :data-disabled=\"disabled ? '' : undefined\" @keydown.alt.down.prevent=\"setOpen(true)\">\n <span v-if=\"$slots.leading\" class=\"qk-date-input__adornment\" aria-hidden=\"true\"><slot name=\"leading\" /></span>\n <template v-for=\"(endpoint, index) in endpoints\" :key=\"`${endpoint.key}-${version}`\">\n <span v-if=\"index\" class=\"qk-date-range-picker__separator\" aria-hidden=\"true\">→</span>\n <DateRangeEndpoint :model-value=\"value[endpoint.key]\" :label=\"endpoint.label\" :date-format=\"dateFormat\" :disabled=\"disabled\" :read-only=\"readOnly\" :required=\"required\" :invalid=\"invalidState\" v-bind=\"{ ...endpointBindings, ...(name ? { name: `${name}[${endpoint.key}]` } : {}) }\" @update:model-value=\"edit(endpoint.key, $event)\" />\n </template>\n <span class=\"qk-date-range-picker__actions\">\n <QuireIconButton v-if=\"clearable && !disabled && !readOnly\" :label=\"text.clear\" size=\"xs\" variant=\"text\" @pointerdown.prevent @click=\"clear\"><QuireIcon name=\"close\" :size=\"12\" /></QuireIconButton>\n <span ref=\"trigger\" class=\"qk-date-picker__trigger\"><QuirePopoverTrigger as-child><QuireIconButton :label=\"triggerLabel\" size=\"xs\" variant=\"text\" :disabled=\"disabled || readOnly\"><QuireIcon name=\"calendar\" :size=\"16\" /></QuireIconButton></QuirePopoverTrigger></span>\n </span>\n </div>\n </PickerControlAnchor>\n </QuirePopoverAnchor>\n <QuirePopoverContent v-slot=\"{ bottom }\" :show-arrow=\"false\" :aria-label=\"label\" :class=\"['qk-date-range-picker__panel', `qk-date-picker__panel--${calendarDensity}`]\" :style=\"{ '--qk-calendar-month-count': numberOfMonths }\">\n <div v-if=\"opened\" ref=\"panel\">\n <QuireCalendar :label=\"label\" selection-mode=\"range\" :model-value=\"draft\" :density=\"calendarDensity\" :number-of-months=\"bottom ? 1 : numberOfMonths\" :allow-non-contiguous-range=\"allowNonContiguousRange\" v-bind=\"calendarBindings\" @update:model-value=\"choose\">\n <template v-if=\"shortcutError || draft.length < 2 || $slots.footer\" #footer>\n <p v-if=\"shortcutError || draft.length < 2\" class=\"qk-date-range-picker__status\" role=\"status\">{{ shortcutError || (draft.length === 1 ? text.chooseEnd : text.chooseBoth) }}</p>\n <slot name=\"footer\" :select-range=\"selectRange\" />\n </template>\n </QuireCalendar>\n </div>\n </QuirePopoverContent>\n </QuirePopoverRoot>\n <p v-if=\"message\" :id=\"`${id}-message`\" :class=\"['qk-date-input__message', invalidState && 'qk-date-input__message--invalid']\">{{ message }}</p>\n </div>\n</template>\n","import { parseClockTime } from \"../time-input/value\";\nimport { quireKitDefaultLocale } from \"../../locale/resolve\";\nimport type { Messages as PickerMessages } from \"../../locale/components/picker\";\nimport type { TimeDraft, TimeRules } from \"./types\";\n\n/** @param value - Complete time. @returns Seconds since midnight, without a time-zone conversion. */\nexport function clockSeconds(value: string): number {\n const time = parseClockTime(value)!;\n return time.hour * 3600 + time.minute * 60 + time.second;\n}\n/** @param step - Requested step. @param limit - Exclusive unit period. @returns Checked positive integer step. */\nexport function timeStep(step: number | undefined, limit: number): number {\n const value = step ?? 1;\n if (!Number.isInteger(value) || value < 1 || value >= limit) throw new RangeError(`Time step must be an integer from 1 to ${limit - 1}.`);\n return value;\n}\n/**\n * Validates a complete time against bounds, steps and the host predicate.\n * @param value - Complete time or null.\n * @param rules - Shared time constraints.\n * @param text - Picker messages of the active language.\n * @returns Recovery guidance, or empty text for a valid/empty value.\n */\nexport function timeError(value: string | null, rules: TimeRules, text: PickerMessages = quireKitDefaultLocale.messages.picker): string {\n const steps = [timeStep(rules.hourStep, 24), timeStep(rules.minuteStep, 60), timeStep(rules.secondStep, 60)];\n if (value === null) return \"\";\n const seconds = clockSeconds(value);\n if ((rules.min && seconds < clockSeconds(rules.min)) || (rules.max && seconds > clockSeconds(rules.max))) return text.timeBetween(rules.min ?? \"00:00\", rules.max ?? \"23:59:59\");\n const units = [Math.floor(seconds / 3600), Math.floor(seconds / 60) % 60, seconds % 60];\n if (units.some((unit, index) => unit % steps[index]! !== 0)) return text.timeStep;\n if (rules.isTimeUnavailable?.(value)) return text.timeUnavailable;\n return \"\";\n}\n/**\n * Enumerates the finite wall-clock domain once per rule change, not per key press.\n * @param rules - Shared constraints for every editing surface.\n * @returns Valid seconds since midnight, in chronological order.\n */\nexport function availableTimes(rules: TimeRules): number[] {\n const hourStep = timeStep(rules.hourStep, 24), minuteStep = timeStep(rules.minuteStep, 60), secondStep = timeStep(rules.secondStep, 60);\n const min = rules.min ? clockSeconds(rules.min) : 0, max = rules.max ? clockSeconds(rules.max) : 86399;\n const result: number[] = [];\n for (let hour = 0; hour < 24; hour += hourStep) for (let minute = 0; minute < 60; minute += minuteStep) for (let second = 0; second < (rules.granularity === \"second\" ? 60 : 1); second += secondStep) {\n const seconds = hour * 3600 + minute * 60 + second;\n if (seconds < min || seconds > max) continue;\n const time = [hour, minute, ...(rules.granularity === \"second\" ? [second] : [])].map(unit => String(unit).padStart(2, \"0\")).join(\":\");\n if (!rules.isTimeUnavailable?.(time)) result.push(seconds);\n }\n return result;\n}\n/** @param value - Current complete time. @param cycle - Display cycle. @returns Independent panel columns without filling an empty value. */\nexport function timeDraft(value: string | null, cycle: 12 | 24): TimeDraft {\n const time = parseClockTime(value);\n return time ? { hour: cycle === 12 ? time.hour % 12 || 12 : time.hour, minute: time.minute, second: time.second, period: time.hour < 12 ? 0 : 12 } : { hour: null, minute: null, second: null, period: null };\n}\n/** @param draft - Current columns. @param cycle - Display cycle. @param precision - Visible precision. @returns Complete canonical time or null when any required column is missing. */\nexport function draftTime(draft: TimeDraft, cycle: 12 | 24, precision: \"minute\" | \"second\"): string | null {\n if (draft.hour === null || draft.minute === null || (precision === \"second\" && draft.second === null) || (cycle === 12 && draft.period === null)) return null;\n const hour = cycle === 12 ? draft.hour % 12 + draft.period! : draft.hour;\n return [hour, draft.minute, ...(precision === \"second\" ? [draft.second!] : [])].map(unit => String(unit).padStart(2, \"0\")).join(\":\");\n}\n","import { parseDateTime, type CalendarDateTime } from '@internationalized/date';\nimport type { DateInputDateValue } from '@ark-ui/vue/date-input';\n\n/**\n * Parses civil fields without native Date parsing or ambient-zone coercion.\n * @param value - Canonical space-separated civil date-time, or no value.\n * @returns The same date/time fields in Ark's calendar representation.\n */\nexport function parseCivilDateTime(value: string | null | undefined): CalendarDateTime | undefined {\n if (value == null) return undefined;\n if (!/^(?!0000)\\d{4}-\\d{2}-\\d{2} (?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d)?$/.test(value)) throw new TypeError('DateTimePicker expects YYYY-MM-DD HH:mm[:ss], without a time zone.');\n const parsed = parseDateTime(value.replace(' ', 'T'));\n const expected = value.length === 16 ? `${value}:00` : value;\n if (parsed.toString().replace('T', ' ') !== expected) throw new RangeError('DateTimePicker expects valid Gregorian date and time fields.');\n return parsed;\n}\n/**\n * Serializes complete fields while rejecting hidden precision and zoned values.\n * @param value - Ark's complete date-time value.\n * @param precision - Public/display precision.\n * @returns Space-separated wall-clock fields or null; never an instant.\n */\nexport function serializeCivilDateTime(value: DateInputDateValue | undefined, precision: 'minute' | 'second' = 'second'): string | null {\n if (!value) return null;\n if (!('hour' in value) || 'timeZone' in value || value.millisecond || value.year < 1 || value.year > 9999 || value.era !== 'AD' || value.calendar.identifier !== 'gregory') throw new TypeError('DateTimePicker requires an unzoned Gregorian date-time with whole seconds.');\n if (precision === 'minute' && value.second !== 0) throw new RangeError('Minute precision cannot hide non-zero seconds.');\n const date = [String(value.year).padStart(4, '0'), String(value.month).padStart(2, '0'), String(value.day).padStart(2, '0')].join('-');\n const time = [value.hour, value.minute, ...(precision === 'second' ? [value.second] : [])].map(unit => String(unit).padStart(2, '0')).join(':');\n return `${date} ${time}`;\n}\n/** @param value - External civil value. @param precision - Requested field precision. @returns A validated canonical value without changing its civil fields. */\nexport function normalizeCivilDateTime(value: string | null | undefined, precision: 'minute' | 'second' = 'second'): string | null {\n return serializeCivilDateTime(parseCivilDateTime(value), precision);\n}\n","import type { DateTimeRules } from './types';\nimport type { TimeRules } from '../time-picker/types';\nimport { parseCalendarDate } from '../date-input/value';\nimport { timeError } from '../time-picker/value';\nimport { normalizeCivilDateTime, parseCivilDateTime } from './value';\nimport { quireKitDefaultLocale } from '../../locale/resolve';\nimport type { Messages as PickerMessages } from '../../locale/components/picker';\n\n/** @param rules - Host date-time limits. @returns Parsed canonical boundaries, rejecting reversed configuration. */\nfunction boundaries(rules: DateTimeRules): { min: string | null; max: string | null } {\n const min = normalizeCivilDateTime(rules.min), max = normalizeCivilDateTime(rules.max);\n if (min && max && min > max) throw new RangeError('DateTimePicker min must not be later than max.');\n return { min, max };\n}\n/**\n * Projects the full interval onto one chosen day without restricting interior days.\n * @param date - Chosen calendar date; null permits time-first drafting without fabricating a date.\n * @param rules - Shared date-time constraints.\n * @returns TimePicker-compatible candidates for this date.\n */\nexport function dateTimeTimeRules(date: string | null, rules: DateTimeRules): TimeRules {\n if (date) parseCalendarDate(date);\n const { min, max } = boundaries(rules);\n const forbiddenDay = Boolean(date && ((min && date < min.slice(0, 10)) || (max && date > max.slice(0, 10)) || rules.isDateUnavailable?.(date)));\n return {\n granularity: rules.granularity ?? 'second',\n hourStep: rules.hourStep, minuteStep: rules.minuteStep, secondStep: rules.secondStep,\n ...(date && min?.startsWith(`${date} `) ? { min: min.slice(11) } : {}),\n ...(date && max?.startsWith(`${date} `) ? { max: max.slice(11) } : {}),\n isTimeUnavailable: time => forbiddenDay || Boolean(date && rules.isDateTimeUnavailable?.(`${date} ${time}`))\n };\n}\n/**\n * Validates a complete civil date-time against bounds, steps and host predicates.\n * @param value - Complete or empty civil date-time.\n * @param rules - Input/panel constraints.\n * @param text - Picker messages of the active language.\n * @returns Localized recovery guidance, preserving invalid user values.\n */\nexport function dateTimeError(value: string | null, rules: DateTimeRules, text: PickerMessages = quireKitDefaultLocale.messages.picker): string {\n const { min, max } = boundaries(rules);\n const precision = rules.granularity ?? 'second';\n timeError(null, rules);\n if (value === null) return '';\n const parsed = parseCivilDateTime(value)!;\n const canonical = normalizeCivilDateTime(value)!;\n // Display precision and interval boundaries are checked before business predicates.\n normalizeCivilDateTime(value, precision);\n if ((min && canonical < min) || (max && canonical > max)) return text.dateTimeBetween(min ?? undefined, max ?? undefined);\n const date = canonical.slice(0, 10);\n if (rules.isDateUnavailable?.(date)) return text.dateUnavailable;\n const stepError = timeError(`${String(parsed.hour).padStart(2, '0')}:${String(parsed.minute).padStart(2, '0')}:${String(parsed.second).padStart(2, '0')}`, { hourStep: rules.hourStep, minuteStep: rules.minuteStep, secondStep: rules.secondStep }, text);\n if (stepError) return stepError;\n if (rules.isDateTimeUnavailable?.(normalizeCivilDateTime(value, precision)!)) return text.dateTimeUnavailable;\n return '';\n}\n","import { DateFormatter } from '@internationalized/date';\n/** Stable Gregorian date/time display; locale affects period words, never civil-field order. */\nexport class CivilDateTimeFormatter extends DateFormatter {\n /** @param locale - Locale for period names. @param precision - Smallest visible time unit. @param cycle - Visible hour cycle. */\n constructor(locale: string, precision: 'minute' | 'second', cycle: 12 | 24) {\n super(locale, { year: 'numeric', month: '2-digit', day: '2-digit', hour: '2-digit', minute: '2-digit', ...(precision === 'second' ? { second: '2-digit' } : {}), calendar: 'gregory', numberingSystem: 'latn', hourCycle: cycle === 12 ? 'h12' : 'h23', timeZone: 'UTC' });\n }\n /** @param date - UTC formatting projection of civil fields. @returns Explicit date, time and period segments with compact literals. */\n override formatToParts(date: Date): Intl.DateTimeFormatPart[] {\n const parts = super.formatToParts(date);\n const keys = ['year', 'month', 'day', 'hour', 'minute', ...(parts.some(part => part.type === 'second') ? ['second'] : [])] as Intl.DateTimeFormatPartTypes[];\n const result: Intl.DateTimeFormatPart[] = keys.flatMap((type, index) => [...(index ? [{ type: 'literal' as const, value: index < 3 ? '-' : index === 3 ? ' ' : ':' }] : []), { type, value: parts.find(part => part.type === type)!.value.padStart(type === 'year' ? 4 : 2, '0') }]);\n const period = parts.find(part => part.type === 'dayPeriod');\n if (period) result.push({ type: 'literal', value: ' ' }, period);\n return result;\n }\n /** @param date - UTC formatting projection. @returns The same representation as the visible segments. */\n override format(date: Date): string { return this.formatToParts(date).map(part => part.value).join(''); }\n}\n","<script setup lang=\"ts\">\nimport PickerControlAnchor from \"../shared/picker/control-anchor.vue\";\nimport { CivilDateTimeFormatter } from \"./formatter\";\nimport { dateTimeError } from \"./rules\";\nimport { DateInput } from \"@ark-ui/vue/date-input\";\nimport SegmentedInputRoot from \"../shared/segmented-input/root.vue\";\nimport type { DateInputDateValue } from \"@ark-ui/vue/date-input\";\nimport { computed, onMounted, onScopeDispose, ref, useId, watch } from \"vue\";\nimport type { QuireKitDateTimePickerProps, QuireKitDateTimeValue } from \"./types\";\nimport { parseCivilDateTime, serializeCivilDateTime } from \"./value\";\nimport QuireIconButton from \"../button/icon-button.vue\";\nimport QuireIcon from \"../icon/icon.vue\";\nimport { useQuireKitLocale, useQuireKitMessages } from \"../locale-provider/context\";\nimport { segmentLabel } from \"../shared/segmented-input/label\";\nconst props = withDefaults(defineProps<QuireKitDateTimePickerProps>(), {\n defaultValue: null, size: \"sm\", width: \"360px\", hideLabel: false,\n disabled: false, readOnly: false, required: false, invalid: false, clearable: false, granularity: \"second\", hourCycle: 24\n});\nconst emit = defineEmits<{\n /** Complete civil date-time, or null while any required segment is empty. */\n \"update:modelValue\": [value: QuireKitDateTimeValue];\n}>();\ndefineSlots<{\n /** Optional decorative leading icon or short prefix. */\n leading?: () => unknown;\n /** Resident date/time panel trigger. */\n trailing?: () => unknown;\n}>();\nconst id = useId();\nconst locale = useQuireKitLocale();\nconst text = useQuireKitMessages(\"dateTimePicker\");\nconst pickerText = useQuireKitMessages(\"picker\");\nconst root = ref<HTMLDivElement>();\nconst internalValue = ref(props.defaultValue);\nconst resetVersion = ref(0);\nconst value = computed(() => props.modelValue === undefined ? internalValue.value : props.modelValue);\nconst formatter = computed(() => new CivilDateTimeFormatter(locale.value, props.granularity, props.hourCycle));\nconst dates = computed(() => {\n const date = parseCivilDateTime(value.value);\n if (props.granularity === \"minute\" && date && date.second !== 0) throw new TypeError(\"Minute precision cannot hide non-zero seconds; use granularity=second.\");\n return date ? [date] : [];\n});\nconst placeholder = computed(() => parseCivilDateTime(props.placeholderValue ?? \"2000-01-01 00:00:00\"));\nconst optionalBindings = computed(() => ({\n ...(placeholder.value ? { placeholderValue: placeholder.value } : {}),\n ...(props.name === undefined ? {} : { name: props.name }),\n ...(props.form === undefined ? {} : { form: props.form })\n}));\nconst error = computed(() => dateTimeError(value.value, props, pickerText.value));\nconst invalidState = computed(() => props.invalid || Boolean(error.value));\nconst message = computed(() => invalidState.value ? (props.errorText || error.value || props.description) : props.description);\nlet currentForm: HTMLFormElement | null = null;\n/**\n * Adapts Ark's complete-date array without converting civil fields into an instant.\n * @param next - Complete values emitted by the upstream date controller.\n */\nfunction update(next: DateInputDateValue[]): void {\n if (props.disabled || props.readOnly) return;\n const date = serializeCivilDateTime(next[0], props.granularity);\n if (props.modelValue === undefined) internalValue.value = date;\n emit(\"update:modelValue\", date);\n}\n/**\n * Restores the explicit default after the browser accepts a form reset.\n * @param event - Cancellable reset event from the associated native form.\n */\nfunction reset(event: Event): void {\n queueMicrotask(() => {\n if (event.defaultPrevented) return;\n internalValue.value = props.defaultValue;\n emit(\"update:modelValue\", props.defaultValue);\n // Remount also clears incomplete drafts when the public value was already null.\n resetVersion.value += 1;\n });\n}\n/** Associates native reset with the same form as Ark's serialized hidden input. */\nfunction bindForm(): void {\n currentForm?.removeEventListener(\"reset\", reset);\n currentForm = root.value?.querySelector(\"input\")?.form ?? null;\n currentForm?.addEventListener(\"reset\", reset);\n}\nonMounted(bindForm);\nwatch(() => props.form, bindForm, { flush: \"post\" });\nonScopeDispose(() => currentForm?.removeEventListener(\"reset\", reset));\n</script>\n<template>\n <div ref=\"root\" class=\"qk-date-input\" :style=\"{ width }\">\n <SegmentedInputRoot :key=\"resetVersion\" :id=\"id\" :model-value=\"dates\" v-bind=\"optionalBindings\" :disabled=\"disabled\" :read-only=\"readOnly\" :required=\"required\" :invalid=\"invalidState\" :granularity=\"granularity\" :formatter=\"formatter\" time-zone=\"UTC\" @update:model-value=\"update\">\n <DateInput.Label :class=\"hideLabel ? 'sr-only' : 'qk-date-input__label'\">{{ label }}<span v-if=\"required\" aria-hidden=\"true\"> *</span></DateInput.Label>\n <PickerControlAnchor>\n <DateInput.Control :class=\"['qk-date-input__control', `qk-date-input__control--${size}`]\">\n <span v-if=\"$slots.leading\" class=\"qk-date-input__adornment\" aria-hidden=\"true\"><slot name=\"leading\" /></span>\n <DateInput.Context v-slot=\"date\">\n <DateInput.SegmentGroup class=\"qk-date-input__segments\">\n <DateInput.Segment v-for=\"(segment, segmentIndex) in date.getSegments()\" :key=\"segmentIndex\" :segment=\"segment\" :class=\"['qk-date-input__segment', segment.type === 'literal' && 'qk-date-input__literal', segment.type === 'literal' && segment.text === ' ' && 'qk-date-time-picker__space', segment.type === 'year' && 'qk-date-time-picker__year', segment.type === 'dayPeriod' && 'qk-time-input__period', /^[\\u2066-\\u2069]+$/.test(segment.text) && 'qk-time-input__direction-marker']\" :aria-label=\"segmentLabel(label, segment.type, pickerText)\" :aria-describedby=\"message ? `${id}-message` : undefined\" />\n </DateInput.SegmentGroup>\n <span v-if=\"(clearable && !disabled && !readOnly) || $slots.trailing\" class=\"qk-date-input__actions\">\n <QuireIconButton v-if=\"clearable && !disabled && !readOnly\" :label=\"text.clear\" size=\"xs\" variant=\"text\" @pointerdown.prevent @click=\"date.clearValue(); date.focus()\"><QuireIcon name=\"close\" :size=\"12\" /></QuireIconButton>\n <slot name=\"trailing\" />\n </span>\n </DateInput.Context>\n </DateInput.Control>\n </PickerControlAnchor>\n <DateInput.HiddenInput :value=\"serializeCivilDateTime(dates[0], granularity) ?? ''\" />\n </SegmentedInputRoot>\n <p v-if=\"message\" :id=\"`${id}-message`\" :class=\"['qk-date-input__message', invalidState && 'qk-date-input__message--invalid']\">{{ message }}</p>\n </div>\n</template>\n","import { normalizeCivilDateTime } from './value';\nimport { draftTime, timeDraft } from '../time-picker/value';\nimport type { DateTimeDraft } from './types';\n\n/** @param value - Complete civil fields or empty value. @param cycle - Display cycle. @returns Independent date and time-unit draft. */\nexport function dateTimeDraft(value: string | null, cycle: 12 | 24): DateTimeDraft {\n normalizeCivilDateTime(value);\n return { date: value?.slice(0, 10) ?? null, time: timeDraft(value?.slice(11) ?? null, cycle) };\n}\n/** @param draft - Partial editing fields. @param cycle - Display cycle. @param precision - Requested complete precision. @returns Complete civil value only when every required part exists. */\nexport function draftDateTime(draft: DateTimeDraft, cycle: 12 | 24, precision: 'minute' | 'second'): string | null {\n const clock = draftTime(draft.time, cycle, precision);\n return draft.date && clock ? `${draft.date} ${clock}` : null;\n}\n/** @param precision - Explicit visible precision. @returns Device civil fields at the instant of an explicit user action; no inferred timezone conversion. */\nexport function currentCivilDateTime(precision: 'minute' | 'second'): string {\n const now = new Date();\n const date = [String(now.getFullYear()).padStart(4, '0'), String(now.getMonth() + 1).padStart(2, '0'), String(now.getDate()).padStart(2, '0')].join('-');\n const clock = [now.getHours(), now.getMinutes(), ...(precision === 'second' ? [now.getSeconds()] : [])].map(unit => String(unit).padStart(2, '0')).join(':');\n return `${date} ${clock}`;\n}\n","import type { QuireKitListboxItem } from \"../../components/listbox\";\nimport type { TimeColumn, TimeDraft, TimeRules } from \"./types\";\nimport { timeStep } from \"./value\";\n\n/**\n * Allows navigation when at least one valid completion remains under the earlier columns.\n * @param column - Column being chosen.\n * @param value - Candidate displayed unit.\n * @param draft - Other selected units, retained even when they need correction.\n * @param cycle - Display cycle.\n * @param allowed - Precomputed finite domain under all host rules.\n * @returns Whether the choice can lead to a valid complete time.\n */\nfunction canChoose(column: TimeColumn, value: number, draft: TimeDraft, cycle: 12 | 24, allowed: readonly number[]): boolean {\n return allowed.some(seconds => {\n const hour = Math.floor(seconds / 3600), minute = Math.floor(seconds / 60) % 60;\n const displayedHour = cycle === 12 ? hour % 12 || 12 : hour, period = hour < 12 ? 0 : 12;\n if (column === \"period\") return period === value;\n if (cycle === 12 && draft.period !== null && period !== draft.period) return false;\n if (column === \"hour\") return displayedHour === value;\n if (draft.hour !== null && displayedHour !== draft.hour) return false;\n if (column === \"minute\") return minute === value;\n if (draft.minute !== null && minute !== draft.minute) return false;\n return seconds % 60 === value;\n });\n}\n/**\n * Reads the language's own morning and afternoon names instead of a fixed table.\n * @param locale - BCP 47 tag of the active language.\n * @returns Labels for the AM and PM rows.\n */\nexport function dayPeriodLabels(locale: string): readonly [string, string] {\n const format = new Intl.DateTimeFormat(locale, { hour: \"numeric\", hourCycle: \"h12\", timeZone: \"UTC\" });\n /** @param hour - Representative hour of the period. @returns Its localized day-period name. */\n const period = (hour: number): string => format.formatToParts(Date.UTC(2000, 0, 1, hour)).find(part => part.type === \"dayPeriod\")?.value ?? (hour < 12 ? \"AM\" : \"PM\");\n return [period(1), period(13)];\n}\n/**\n * Builds one column's candidates.\n * @param column - Visible time unit.\n * @param draft - Current independent selections.\n * @param cycle - Display cycle.\n * @param allowed - Legal seconds.\n * @param periods - AM and PM labels of the active language.\n * @param rules - Step configuration.\n * @returns Stable candidates retaining disabled rows and their context.\n */\nexport function timeOptions(column: TimeColumn, draft: TimeDraft, cycle: 12 | 24, allowed: readonly number[], periods: readonly [string, string], rules: TimeRules): QuireKitListboxItem[] {\n const values = column === \"period\" ? [0, 12] : Array.from({ length: column === \"hour\" ? cycle : 60 }, (_, index) => column === \"hour\" && cycle === 12 ? index + 1 : index);\n const step = column === \"period\" ? 1 : timeStep(column === \"hour\" ? rules.hourStep : column === \"minute\" ? rules.minuteStep : rules.secondStep, column === \"hour\" ? 24 : 60);\n const stepped = values.filter(value => column === \"period\" || (column === \"hour\" && cycle === 12 ? value % 12 % step === 0 || (value % 12 + 12) % step === 0 : value % step === 0));\n return stepped.map(value => ({ value: String(value), label: column === \"period\" ? periods[value === 0 ? 0 : 1] : String(value).padStart(2, \"0\"), disabled: !canChoose(column, value, draft, cycle, allowed) }));\n}\n","<script setup lang=\"ts\">\nimport { computed, nextTick, onMounted, ref } from \"vue\";\nimport type { TimeColumn, TimeColumnsProps, TimeDraft } from \"./types\";\nimport { availableTimes } from \"./value\";\nimport { dayPeriodLabels, timeOptions } from \"./options\";\nimport { useQuireKitLocale, useQuireKitMessages } from \"../locale-provider/context\";\nimport QuireListbox from \"../listbox/listbox.vue\";\nconst props = defineProps<TimeColumnsProps>();\nconst emit = defineEmits<{ /** Updated unit selection, without confirming the owning time or range. */ \"update:modelValue\": [value: TimeDraft] }>();\nconst root = ref<HTMLElement>();\nconst precision = computed(() => props.rules.granularity ?? \"minute\");\nconst locale = useQuireKitLocale();\nconst text = useQuireKitMessages(\"picker\");\nconst periods = computed(() => dayPeriodLabels(locale.value));\nconst allowed = computed(() => availableTimes(props.rules));\nconst columns = computed(() => {\n const keys: TimeColumn[] = [...(props.hourCycle === 12 ? [\"period\" as const] : []), \"hour\", \"minute\", ...(precision.value === \"second\" ? [\"second\" as const] : [])];\n return keys.map(key => ({ key, label: text.value.columns[key], items: timeOptions(key, props.modelValue, props.hourCycle, allowed.value, periods.value, props.rules) }));\n});\n/** @param column - Edited unit. @param values - Ark single selection. */\nfunction choose(column: TimeColumn, values: string[] | undefined): void { if (values?.[0] !== undefined) emit(\"update:modelValue\", { ...props.modelValue, [column]: Number(values[0]) }); }\n/** Keeps selected rows visible by scrolling each list only; the page and popup anchor stay still. */\nasync function revealSelections(): Promise<void> {\n await nextTick();\n root.value?.querySelectorAll<HTMLElement>('[role=\"listbox\"]').forEach(list => {\n const selected = list.querySelector<HTMLElement>('[aria-selected=\"true\"]');\n if (selected) {\n // Whole-row positioning avoids cutting digits in half on the initial reveal.\n const rowHeight = selected.getBoundingClientRect().height;\n const precedingRows = Math.max(0, Math.floor((list.clientHeight / rowHeight - 1) / 2));\n list.scrollTop += selected.getBoundingClientRect().top - list.getBoundingClientRect().top - precedingRows * rowHeight;\n }\n });\n}\nonMounted(revealSelections);\n/** Moves keyboard editing into the first time column without scrolling ancestors. */\nfunction focusFirst(): void { root.value?.querySelector<HTMLElement>('[role=\"listbox\"]')?.focus({ preventScroll: true }); }\ndefineExpose({ revealSelections, focusFirst });\n</script>\n<template>\n <div ref=\"root\" class=\"qk-time-picker__columns\" :style=\"{ '--qk-time-picker-columns': columns.length }\">\n <div v-for=\"column in columns\" :key=\"column.key\" class=\"qk-time-picker__column\">\n <p class=\"qk-time-picker__heading\" aria-hidden=\"true\">{{ column.label }}</p>\n <QuireListbox hide-label :label=\"text.part(label, column.label)\" :items=\"column.items\" :model-value=\"modelValue[column.key] === null ? [] : [String(modelValue[column.key])]\" :typeahead=\"true\" :select-on-highlight=\"false\" item-class=\"qk-time-picker__option\" content-class=\"qk-time-picker__list\" @update:model-value=\"choose(column.key, $event)\">\n <template #item=\"{ item }\"><span class=\"qk-time-picker__unit\">{{ item.label }}</span></template>\n </QuireListbox>\n </div>\n </div>\n</template>\n","<script setup lang=\"ts\">\nimport { computed, nextTick, ref } from 'vue';\nimport type { DateTimeDraft, DateTimeEditorProps } from './types';\nimport type { QuireKitCalendarValue } from '../calendar/types';\nimport type { TimeDraft } from '../time-picker/types';\nimport { dateTimeTimeRules } from './rules';\nimport { draftTime } from '../time-picker/value';\nimport QuireCalendar from '../calendar/calendar.vue';\nimport QuireTabs from '../tabs/tabs.vue';\nimport TimeColumns from '../time-picker/columns.vue';\nimport { usePickerBottom } from '../shared/picker/context';\nimport { useQuireKitMessages } from '../locale-provider/context';\nconst bottom = usePickerBottom();\nconst props = defineProps<DateTimeEditorProps>();\nconst emit = defineEmits<{ /** Partial draft changes, never a committed value. */ 'update:modelValue': [value: DateTimeDraft]; /** Explicit date choice, distinct from time edits. */ selectDate: [value: DateTimeDraft] }>();\nconst active = ref('date'), columns = ref<InstanceType<typeof TimeColumns>>(), calendarRoot = ref<HTMLElement>();\nconst text = useQuireKitMessages('dateTimePicker');\nconst items = computed(() => [{ value: 'date', label: text.value.dateTab }, { value: 'time', label: text.value.timeTab }]);\nconst timeRules = computed(() => dateTimeTimeRules(props.modelValue.date, props.rules));\nconst calendarProps = computed(() => ({\n ...(props.rules.min ? { min: props.rules.min.slice(0, 10) } : {}),\n ...(props.rules.max ? { max: props.rules.max.slice(0, 10) } : {}),\n ...(props.rules.isDateUnavailable ? { isDateUnavailable: props.rules.isDateUnavailable } : {}),\n ...(props.startOfWeek === undefined ? {} : { startOfWeek: props.startOfWeek }),\n ...(props.modelValue.date || props.placeholderValue ? { defaultFocusedValue: props.modelValue.date ?? props.placeholderValue!.slice(0, 10) } : {})\n}));\n/** @param date - Explicit calendar selection; all current time units stay intact. */\nasync function setDate(date: QuireKitCalendarValue): Promise<void> {\n const keyboard = Boolean(calendarRoot.value?.querySelector(':focus-visible'));\n const next = { ...props.modelValue, date: typeof date === 'string' ? date : null };\n emit('update:modelValue', next);\n emit('selectDate', next);\n if (bottom.value && next.date && !draftTime(next.time, props.hourCycle, props.rules.granularity ?? 'second')) {\n active.value = 'time';\n await nextTick();\n if (keyboard) columns.value?.focusFirst();\n }\n}\n/** @param time - Explicit time-unit selection; the date stays intact. */\nfunction setTime(time: TimeDraft): void { emit('update:modelValue', { ...props.modelValue, time }); }\n/** Keeps current selections reachable after a shortcut without scrolling the page. */\nasync function revealSelections(): Promise<void> { await columns.value?.revealSelections(); }\n/** Restores keyboard navigation when sequential editing replaces the calendar. */\nfunction focusDate(): void { calendarRoot.value?.querySelector<HTMLElement>('[data-part=\"table-cell-trigger\"][tabindex=\"0\"]')?.focus({ preventScroll: true }); }\ndefineExpose({ revealSelections, focusDate });\n</script>\n<template>\n <QuireTabs v-if=\"bottom\" v-model=\"active\" class=\"qk-date-time-picker__tabs\" :label=\"text.editor(label)\" :items=\"items\" :lazy-mount=\"true\" :unmount-on-exit=\"true\">\n <template #content=\"{ item, selected }\">\n <div v-if=\"selected && item.value === 'date'\" ref=\"calendarRoot\" class=\"qk-date-time-picker__calendar\">\n <QuireCalendar :model-value=\"modelValue.date\" :label=\"text.calendar(label)\" :density=\"density\" v-bind=\"calendarProps\" @update:model-value=\"setDate\" />\n </div>\n <TimeColumns v-else-if=\"selected\" ref=\"columns\" class=\"min-h-0 mx-auto\" :model-value=\"modelValue.time\" :rules=\"timeRules\" :hour-cycle=\"hourCycle\" :label=\"label\" @update:model-value=\"setTime\" />\n </template>\n </QuireTabs>\n <div v-else class=\"qk-date-time-picker__desktop\">\n <div ref=\"calendarRoot\" class=\"qk-date-time-picker__calendar\"><QuireCalendar :model-value=\"modelValue.date\" :label=\"text.calendar(label)\" :density=\"density\" v-bind=\"calendarProps\" @update:model-value=\"setDate\" /></div>\n <TimeColumns ref=\"columns\" class=\"qk-time-picker__columns--calendar\" :model-value=\"modelValue.time\" :rules=\"timeRules\" :hour-cycle=\"hourCycle\" :label=\"label\" @update:model-value=\"setTime\" />\n </div>\n</template>\n","<script setup lang=\"ts\">\nimport { computed, nextTick, ref, watch } from 'vue';\nimport type { DateTimePanelProps } from './types';\nimport { normalizeCivilDateTime } from './value';\nimport { currentCivilDateTime, dateTimeDraft, draftDateTime } from './draft';\nimport { dateTimeError, dateTimeTimeRules } from './rules';\nimport { availableTimes, draftTime } from '../time-picker/value';\nimport DateTimeEditor from './editor.vue';\nimport QuireButton from '../button/button.vue';\nimport { useQuireKitMessages } from '../locale-provider/context';\nconst props = defineProps<DateTimePanelProps>();\nconst emit = defineEmits<{ /** Complete civil value, validated at confirmation. */ confirm: [value: string]; /** Discard date and time drafts together. */ cancel: [] }>();\ndefineSlots<{ /** Explicit host shortcuts modify the draft only. */ footer?: (props: { setDateTime: (value: string) => void }) => unknown }>();\nconst precision = computed(() => props.rules.granularity ?? 'second');\nconst text = useQuireKitMessages('dateTimePicker');\nconst pickerText = useQuireKitMessages('picker');\nconst draft = ref(dateTimeDraft(props.value, props.hourCycle));\nconst editor = ref<InstanceType<typeof DateTimeEditor>>();\nconst clock = computed(() => draftTime(draft.value.time, props.hourCycle, precision.value));\nconst complete = computed(() => draftDateTime(draft.value, props.hourCycle, precision.value));\nconst error = computed(() => dateTimeError(complete.value, props.rules, pickerText.value));\nconst hasCandidates = computed(() => availableTimes(dateTimeTimeRules(draft.value.date, props.rules)).length > 0);\nconst message = computed(() => error.value || (!hasCandidates.value ? text.value.noTimes : complete.value ?? text.value.draft(draft.value.date, clock.value)));\n// External values replace the whole draft; switching editing surfaces does not.\nwatch([() => props.value, () => props.hourCycle, precision], () => { draft.value = dateTimeDraft(props.value, props.hourCycle); });\n/** @param next - Explicit civil shortcut, preserving invalid candidates for visible feedback. */\nasync function setDateTime(next: string): Promise<void> {\n draft.value = dateTimeDraft(normalizeCivilDateTime(next, precision.value), props.hourCycle);\n await nextTick(); await editor.value?.revealSelections();\n}\n/** Copies current civil fields only after an explicit user action. */\nfunction now(): void { void setDateTime(currentCivilDateTime(precision.value)); }\n/** Revalidates the atomic date/time pair immediately before publishing. */\nfunction confirm(): void { if (complete.value && !dateTimeError(complete.value, props.rules, pickerText.value)) emit('confirm', complete.value); }\n</script>\n<template>\n <div class=\"qk-time-picker__body\">\n <DateTimeEditor ref=\"editor\" v-model=\"draft\" :rules=\"rules\" :label=\"label\" :hour-cycle=\"hourCycle\" :density=\"density\" v-bind=\"{ ...(placeholderValue ? { placeholderValue } : {}), ...(startOfWeek === undefined ? {} : { startOfWeek }) }\" />\n <p class=\"qk-time-picker__message\" :class=\"error && 'text-qk-danger-text'\" role=\"status\">{{ message }}</p>\n <div v-if=\"$slots.footer\" class=\"qk-time-picker__shortcuts\"><slot name=\"footer\" :set-date-time=\"setDateTime\" /></div>\n <div class=\"qk-time-picker__footer\">\n <QuireButton size=\"sm\" variant=\"text\" @click=\"now\">{{ pickerText.now }}</QuireButton>\n <span class=\"qk-time-picker__spacer\" />\n <QuireButton size=\"sm\" variant=\"text\" @click=\"emit('cancel')\">{{ pickerText.cancel }}</QuireButton>\n <QuireButton size=\"sm\" variant=\"solid\" color=\"primary\" :disabled=\"!complete || Boolean(error)\" @click=\"confirm\">{{ pickerText.confirm }}</QuireButton>\n </div>\n </div>\n</template>\n","<script setup lang=\"ts\">\nimport { computed, onMounted, onScopeDispose, ref, watch } from \"vue\";\nimport type { QuireKitDateTimePickerProps, DateTimeRules } from \"./types\";\nimport { dateTimeError } from \"./rules\";\nimport DateTimeInput from \"./input.vue\";\nimport DateTimePanel from \"./panel.vue\";\nimport QuireIconButton from \"../button/icon-button.vue\";\nimport QuireIcon from \"../icon/icon.vue\";\nimport { useQuireKitMessages } from \"../locale-provider/context\";\nimport { PickerRoot as QuirePopoverRoot, PickerAnchor as QuirePopoverAnchor, PickerTrigger as QuirePopoverTrigger, PickerContent as QuirePopoverContent } from \"../shared/picker\";\nconst props = withDefaults(defineProps<QuireKitDateTimePickerProps>(), { defaultValue: null, size: \"sm\", width: \"360px\", hourCycle: 24, granularity: \"second\", calendarDensity: \"comfortable\", clearable: true, disabled: false, readOnly: false, open: undefined, defaultOpen: false, presentation: \"auto\", openOnFocus: true, hourStep: 1, minuteStep: 1, secondStep: 1 });\nconst emit = defineEmits<{ /** Complete civil date-time or empty field. */ \"update:modelValue\": [value: string | null]; /** Requested panel visibility. */ \"update:open\": [value: boolean] }>();\ndefineSlots<{ /** Decorative prefix inside the shared date-time input. */ leading?: () => unknown; /** Host shortcuts change panel drafts using the same validation. */ footer?: (props: { setDateTime: (value: string) => void }) => unknown }>();\nconst text = useQuireKitMessages(\"dateTimePicker\");\nconst pickerText = useQuireKitMessages(\"picker\");\nconst internal = ref(props.defaultValue), internalOpen = ref(props.defaultOpen);\nconst panel = ref<HTMLElement>(), trigger = ref<HTMLElement>();\nconst value = computed(() => props.modelValue === undefined ? internal.value : props.modelValue);\nconst opened = computed(() => !props.disabled && !props.readOnly && (props.open ?? internalOpen.value));\nconst rules = computed<DateTimeRules>(() => ({ min: props.min, max: props.max, hourStep: props.hourStep, minuteStep: props.minuteStep, secondStep: props.secondStep, granularity: props.granularity, isDateUnavailable: props.isDateUnavailable, isDateTimeUnavailable: props.isDateTimeUnavailable }));\nconst error = computed(() => dateTimeError(value.value, rules.value, pickerText.value));\nconst inputProps = computed(() => Object.fromEntries(Object.entries(props).filter(([, value]) => value !== undefined)) as unknown as QuireKitDateTimePickerProps);\nconst triggerLabel = computed(() => text.value.openPanel(props.label));\n/** @param next - Requested visibility, subject to host control and editing permissions. */\nfunction setOpen(next: boolean): void { if (next && (props.disabled || props.readOnly)) return; internalOpen.value = next; emit(\"update:open\", next); }\n/** @param next - Direct field edit, clear, native reset, or confirmed panel date-time. */\nfunction update(next: string | null): void { if (props.modelValue === undefined) internal.value = next; emit(\"update:modelValue\", next); }\n/** @param next - Complete draft revalidated before committing. */\nfunction confirm(next: string): void { if (props.disabled || props.readOnly || dateTimeError(next, rules.value, pickerText.value)) return; update(next); setOpen(false); }\n/** @returns The active date/time tab, giving both editing surfaces a predictable entry. */\nfunction initialFocus(): HTMLElement | null { return panel.value?.querySelector('[data-view=\"day\"][data-part=\"table-cell-trigger\"][tabindex=\"0\"], [role=\"listbox\"], [role=\"tab\"][aria-selected=\"true\"]') ?? null; }\n/** @returns The resident panel trigger. */\nfunction finalFocus(): HTMLElement | null { return trigger.value?.querySelector(\"button\") ?? null; }\nwatch([() => props.disabled, () => props.readOnly], ([disabled, readOnly]) => { if (disabled || readOnly) setOpen(false); });\n\nlet associatedForm: HTMLFormElement | null = null;\n/** @param event - Native reset, reconciled only after cancellation has been decided. */\nfunction resetPanel(event: Event): void { queueMicrotask(() => { if (!event.defaultPrevented) setOpen(false); }); }\n/** Binds the same native form as the inner segmented input, including explicit external forms. */\nfunction bindForm(): void {\n associatedForm?.removeEventListener(\"reset\", resetPanel);\n const owner = trigger.value?.ownerDocument;\n const form = props.form ? owner?.getElementById(props.form) : trigger.value?.closest(\"form\");\n associatedForm = form?.tagName === \"FORM\" ? form as HTMLFormElement : null;\n associatedForm?.addEventListener(\"reset\", resetPanel);\n}\nonMounted(bindForm);\nwatch(() => props.form, bindForm, { flush: \"post\" });\nonScopeDispose(() => associatedForm?.removeEventListener(\"reset\", resetPanel));\n</script>\n<template>\n <QuirePopoverRoot :label=\"label\" :disabled=\"disabled || readOnly\" :presentation=\"presentation\" :open-on-focus=\"openOnFocus\" :open=\"opened\" :initial-focus-el=\"initialFocus\" :final-focus-el=\"finalFocus\" @update:open=\"setOpen\">\n <QuirePopoverAnchor>\n <DateTimeInput v-bind=\"inputProps\" :model-value=\"value\" :invalid=\"invalid || Boolean(error)\" :error-text=\"errorText || error\" @update:model-value=\"update\" @keydown.alt.down.prevent=\"setOpen(true)\">\n <template v-if=\"$slots.leading\" #leading><slot name=\"leading\" /></template>\n <template #trailing><span ref=\"trigger\" class=\"qk-time-picker__trigger\"><QuirePopoverTrigger as-child><QuireIconButton :label=\"triggerLabel\" size=\"xs\" variant=\"text\" :disabled=\"disabled || readOnly\"><QuireIcon name=\"calendar\" :size=\"16\" /></QuireIconButton></QuirePopoverTrigger></span></template>\n </DateTimeInput>\n </QuirePopoverAnchor>\n <QuirePopoverContent :show-arrow=\"false\" :aria-label=\"label\" class=\"qk-time-picker__panel qk-date-time-picker__panel\">\n <div v-if=\"opened\" ref=\"panel\"><DateTimePanel :value=\"value\" :rules=\"rules\" :density=\"calendarDensity\" v-bind=\"{ ...(placeholderValue ? { placeholderValue } : {}), ...(startOfWeek === undefined ? {} : { startOfWeek }) }\" :hour-cycle=\"hourCycle\" :label=\"label\" @confirm=\"confirm\" @cancel=\"setOpen(false)\"><template v-if=\"$slots.footer\" #footer=\"slotProps\"><slot name=\"footer\" v-bind=\"slotProps\" /></template></DateTimePanel></div>\n </QuirePopoverContent>\n </QuirePopoverRoot>\n</template>\n","import { normalizeCivilDateTime } from '../date-time-picker/value';\nimport { dateTimeError } from '../date-time-picker/rules';\nimport type { DateTimeRules } from '../date-time-picker/types';\nimport type { DateTimeRangeEndpoint, DateTimeRangeRules, QuireKitDateTimeRangeValue } from './types';\nimport { quireKitDefaultLocale } from '../../locale/resolve';\nimport type { Messages as PickerMessages } from '../../locale/components/picker';\n\n/**\n * Copies validated canonical fields without swapping endpoints or inventing missing data.\n * @param value - Public endpoints or a pending complete/partial range.\n * @param precision - Explicit display precision, rejecting hidden nonzero seconds.\n * @returns Independent canonical endpoints owned by the caller.\n */\nexport function copyDateTimeRange(value: QuireKitDateTimeRangeValue, precision: 'minute' | 'second' = 'second'): QuireKitDateTimeRangeValue {\n return { start: normalizeCivilDateTime(value.start, precision), end: normalizeCivilDateTime(value.end, precision) };\n}\n/**\n * Adapts endpoint predicates without coupling its limits to the other endpoint.\n * @param rules - Common and whole-range host rules.\n * @param endpoint - Stable identity for business restrictions and candidate generation.\n * @returns Single-date-time rules consumed by the accepted date/time engine.\n */\nexport function dateTimeRangeEndpointRules(rules: DateTimeRangeRules, endpoint: DateTimeRangeEndpoint): DateTimeRules {\n const { isDateUnavailable, isDateTimeUnavailable, isRangeUnavailable, ...common } = rules;\n return {\n ...common,\n ...(isDateUnavailable ? { isDateUnavailable: (date: string) => isDateUnavailable(date, endpoint) } : {}),\n ...(isDateTimeUnavailable ? { isDateTimeUnavailable: (value: string) => isDateTimeUnavailable(value, endpoint) } : {})\n };\n}\n/**\n * Validates each endpoint before evaluating full-range order and business acceptance.\n * @param value - Public input or popup draft, never changed by validation.\n * @param rules - Shared limits, precision, steps and pure business predicates.\n * @param text - Picker messages of the active language.\n * @returns Localized contextual recovery guidance, or empty text for valid current fields.\n */\nexport function dateTimeRangeError(value: QuireKitDateTimeRangeValue, rules: DateTimeRangeRules, text: PickerMessages = quireKitDefaultLocale.messages.picker): string {\n const normalized = copyDateTimeRange(value, rules.granularity ?? 'second');\n // Independent validation preserves recovery in either order, including an empty first endpoint.\n for (const endpoint of ['start', 'end'] as const) {\n const error = dateTimeError(normalized[endpoint], dateTimeRangeEndpointRules(rules, endpoint), text);\n if (error) return text.endpointError(endpoint, error);\n }\n if (normalized.start === null || normalized.end === null) return '';\n // Canonical civil fields have lexical calendar order; no Date/UTC conversion or span enumeration.\n if (normalized.end < normalized.start) return text.dateTimeRangeReversed;\n if (rules.isRangeUnavailable?.({ start: normalized.start, end: normalized.end })) return text.dateTimeRangeUnavailable;\n return '';\n}\n","<script setup lang=\"ts\">\nimport { computed } from \"vue\";\nimport { DateInput, type DateInputDateValue } from \"@ark-ui/vue/date-input\";\nimport SegmentedInputRoot from \"../shared/segmented-input/root.vue\";\nimport { CivilDateTimeFormatter } from \"../date-time-picker/formatter\";\nimport { parseCivilDateTime, serializeCivilDateTime } from \"../date-time-picker/value\";\nimport type { DateTimeRangeEndpointProps } from \"./types\";\nimport { useQuireKitLocale, useQuireKitMessages } from \"../locale-provider/context\";\nimport { segmentLabel } from \"../shared/segmented-input/label\";\nconst props = defineProps<DateTimeRangeEndpointProps>();\nconst emit = defineEmits<{ /** Complete or incomplete endpoint, without affecting its sibling. */ \"update:modelValue\": [value: string | null] }>();\nconst locale = useQuireKitLocale();\nconst text = useQuireKitMessages(\"picker\");\nconst formatter = computed(() => new CivilDateTimeFormatter(locale.value, props.granularity, props.hourCycle));\nconst dates = computed(() => {\n const date = parseCivilDateTime(props.modelValue);\n if (props.granularity === \"minute\" && date && date.second !== 0) throw new TypeError(\"Minute precision cannot hide non-zero seconds; use granularity=second.\");\n return date ? [date] : [];\n});\nconst bindings = computed(() => ({ ...(props.name ? { name: props.name } : {}), ...(props.form ? { form: props.form } : {}), placeholderValue: parseCivilDateTime(props.placeholderValue ?? \"2000-01-01 00:00:00\")! }));\n/** @param values - Complete Ark segments, or empty when this endpoint is incomplete. */\nfunction update(values: DateInputDateValue[]): void { if (!props.disabled && !props.readOnly) emit(\"update:modelValue\", serializeCivilDateTime(values[0], props.granularity)); }\n</script>\n<template>\n <SegmentedInputRoot class=\"qk-date-time-range-picker__endpoint qk-date-time-range-picker__active-endpoint\" :model-value=\"dates\" :formatter=\"formatter\" :granularity=\"granularity\" time-zone=\"UTC\" :disabled=\"disabled\" :read-only=\"readOnly\" :required=\"required\" :invalid=\"invalid\" v-bind=\"bindings\" @update:model-value=\"update\">\n <DateInput.Label class=\"sr-only\">{{ label }}</DateInput.Label>\n <DateInput.Control class=\"qk-date-time-range-picker__endpoint-control\">\n <DateInput.Context v-slot=\"date\"><DateInput.SegmentGroup class=\"qk-date-input__segments\">\n <DateInput.Segment v-for=\"(segment, index) in date.getSegments()\" :key=\"index\" :segment=\"segment\" :class=\"['qk-date-input__segment', segment.type === 'literal' && 'qk-date-input__literal', segment.type === 'year' && 'qk-date-time-picker__year', segment.type === 'literal' && segment.text === ' ' && 'qk-date-time-picker__space', segment.type === 'dayPeriod' && 'qk-time-input__period', /^[\\u2066-\\u2069]+$/.test(segment.text) && 'qk-time-input__direction-marker']\" :aria-label=\"segmentLabel(label, segment.type, text)\" :aria-describedby=\"describedBy\" />\n </DateInput.SegmentGroup></DateInput.Context>\n </DateInput.Control>\n <DateInput.HiddenInput :value=\"serializeCivilDateTime(dates[0], granularity) ?? ''\" />\n </SegmentedInputRoot>\n</template>\n","import type { DateTimeDraft, DateTimeRules } from '../date-time-picker/types';\nimport { draftDateTime } from '../date-time-picker/draft';\nimport { dateTimeError } from '../date-time-picker/rules';\n\n/**\n * Advances new range endpoints only after every required unit is explicitly chosen.\n * Editing a complete endpoint stays in place so subsequent units remain editable.\n * @param previous - Draft before this user action.\n * @param next - Draft after this user action; never mutated or filled implicitly.\n * @param rules - This endpoint's precision and availability constraints.\n * @param cycle - Displayed clock cycle, including an explicit period in 12-hour mode.\n * @returns Whether an incomplete endpoint has just become complete and valid.\n */\nexport function completesEndpoint(previous: DateTimeDraft, next: DateTimeDraft, rules: DateTimeRules, cycle: 12 | 24): boolean {\n const precision = rules.granularity ?? 'second';\n const value = draftDateTime(next, cycle, precision);\n return draftDateTime(previous, cycle, precision) === null && value !== null && !dateTimeError(value, rules);\n}\n","<script setup lang=\"ts\">\nimport { computed, nextTick, ref, watch } from 'vue';\nimport type { DateTimeRangeEndpoint, DateTimeRangePanelProps, QuireKitDateTimeRangeValue } from './types';\nimport { copyDateTimeRange, dateTimeRangeEndpointRules, dateTimeRangeError } from './value';\nimport { currentCivilDateTime, dateTimeDraft, draftDateTime } from '../date-time-picker/draft';\nimport { dateTimeTimeRules } from '../date-time-picker/rules';\nimport { availableTimes } from '../time-picker/value';\nimport { completesEndpoint } from './draft';\nimport type { DateTimeDraft } from '../date-time-picker/types';\nimport DateTimeEditor from '../date-time-picker/editor.vue';\nimport QuireSegmented from '../segmented/segmented.vue';\nimport { vContentMotion } from '../shared/motion/content';\nimport { usePickerBottom } from '../shared/picker/context';\nconst bottom = usePickerBottom();\nimport QuireButton from '../button/button.vue';\nimport { useQuireKitMessages } from '../locale-provider/context';\nconst props = defineProps<DateTimeRangePanelProps>();\nconst emit = defineEmits<{ /** Complete range committed once after validation. */ confirm: [value: QuireKitDateTimeRangeValue]; /** Discard both endpoint drafts. */ cancel: []; /** Active endpoint drives the input's location indicator. */ 'update:endpoint': [value: DateTimeRangeEndpoint] }>();\ndefineSlots<{ /** Explicit shortcuts edit the whole pending range. */ footer?: (props: { setRange: (value: QuireKitDateTimeRangeValue) => void }) => unknown }>();\nconst selected = ref<string | null>(props.initialEndpoint), editor = ref<InstanceType<typeof DateTimeEditor>>();\nconst desktopEditors = ref<InstanceType<typeof DateTimeEditor>[]>([]);\nconst single = computed(() => bottom.value || props.rangeLayout === 'single');\nconst active = computed<DateTimeRangeEndpoint>(() => selected.value === 'end' ? 'end' : 'start');\nconst precision = computed(() => props.rules.granularity ?? 'second');\nconst text = useQuireKitMessages('dateTimeRangePicker');\nconst pickerText = useQuireKitMessages('picker');\nconst drafts = ref({ start: dateTimeDraft(props.value.start, props.hourCycle), end: dateTimeDraft(props.value.end, props.hourCycle) });\nconst range = computed(() => ({ start: draftDateTime(drafts.value.start, props.hourCycle, precision.value), end: draftDateTime(drafts.value.end, props.hourCycle, precision.value) }));\nconst error = computed(() => dateTimeRangeError(range.value, props.rules, pickerText.value));\nconst complete = computed(() => range.value.start !== null && range.value.end !== null);\nconst rules = computed(() => dateTimeRangeEndpointRules(props.rules, active.value));\nconst hasCandidates = computed(() => availableTimes(dateTimeTimeRules(drafts.value[active.value].date, rules.value)).length > 0);\nconst items = computed(() => [{ value: 'start', label: text.value.start }, { value: 'end', label: text.value.end }]);\nconst message = computed(() => error.value || (!hasCandidates.value ? text.value.noTimes : !complete.value ? text.value.incomplete : `${range.value.start} → ${range.value.end}`));\nwatch(() => props.initialEndpoint, value => { selected.value = value; });\nwatch(active, value => emit('update:endpoint', value));\n// Only external values reset both endpoints; navigating the editor leaves partial units intact.\nwatch([() => props.value, () => props.hourCycle, precision], () => { drafts.value = { start: dateTimeDraft(props.value.start, props.hourCycle), end: dateTimeDraft(props.value.end, props.hourCycle) }; });\n/** @param value - Host shortcut, preserving independent endpoints and visible validation errors. */\nasync function setRange(value: QuireKitDateTimeRangeValue): Promise<void> {\n const normalized = copyDateTimeRange(value, precision.value);\n drafts.value = { start: dateTimeDraft(normalized.start, props.hourCycle), end: dateTimeDraft(normalized.end, props.hourCycle) };\n await nextTick(); await Promise.all([editor.value, ...desktopEditors.value].map(view => view?.revealSelections()));\n}\n/** Replaces only the active endpoint after the user explicitly requests current civil fields. */\nasync function now(): Promise<void> {\n drafts.value = { ...drafts.value, [active.value]: dateTimeDraft(currentCivilDateTime(precision.value), props.hourCycle) };\n await nextTick(); await Promise.all([editor.value, ...desktopEditors.value].map(view => view?.revealSelections()));\n}\n/**\n * Keeps missing units empty and advances only when a new endpoint becomes complete.\n * @param endpoint - Endpoint whose editor emitted the change.\n * @param draft - Explicit date or time selection, without inferred clock values.\n */\nasync function updateDraft(endpoint: DateTimeRangeEndpoint, draft: DateTimeDraft): Promise<void> {\n const advance = single.value && endpoint === 'start' && completesEndpoint(drafts.value.start, draft, dateTimeRangeEndpointRules(props.rules, endpoint), props.hourCycle);\n drafts.value = { ...drafts.value, [endpoint]: draft };\n if (advance) {\n selected.value = 'end';\n await nextTick();\n editor.value?.focusDate();\n }\n}\n/** Commits a complete valid pair without changing endpoint order. */\nfunction confirm(): void { if (complete.value && !dateTimeRangeError(range.value, props.rules, pickerText.value)) emit('confirm', copyDateTimeRange(range.value, precision.value)); }\n</script>\n<template>\n <div class=\"qk-time-picker__body\">\n <div v-if=\"single\" v-content-motion=\"active\" class=\"qk-date-time-range-picker__editor\">\n <QuireSegmented v-if=\"bottom\" v-model=\"selected\" :label=\"text.endpointSwitch(label)\" :items=\"items\" equal />\n <DateTimeEditor :key=\"active\" ref=\"editor\" :model-value=\"drafts[active]\" @update:model-value=\"updateDraft(active, $event)\" :rules=\"rules\" :hour-cycle=\"hourCycle\" :density=\"density\" :label=\"active === 'start' ? startLabel : endLabel\" v-bind=\"{ ...(placeholderValue ? { placeholderValue } : {}), ...(startOfWeek === undefined ? {} : { startOfWeek }) }\" />\n </div>\n <div v-else class=\"qk-picker__range-editors\">\n <section v-for=\"endpoint in (['start', 'end'] as const)\" :key=\"endpoint\" @focusin=\"selected = endpoint\" @pointerdown=\"selected = endpoint\">\n <DateTimeEditor ref=\"desktopEditors\" :model-value=\"drafts[endpoint]\" @update:model-value=\"updateDraft(endpoint, $event)\" :rules=\"dateTimeRangeEndpointRules(props.rules, endpoint)\" :label=\"endpoint === 'start' ? startLabel : endLabel\" :hour-cycle=\"hourCycle\" :density=\"density\" v-bind=\"{ ...(placeholderValue ? { placeholderValue } : {}), ...(startOfWeek === undefined ? {} : { startOfWeek }) }\" />\n </section>\n </div>\n <p class=\"qk-time-picker__message\" :class=\"error && 'text-qk-danger-text'\" role=\"status\">{{ message }}</p>\n <div v-if=\"$slots.footer\" class=\"qk-time-picker__shortcuts\"><slot name=\"footer\" :set-range=\"setRange\" /></div>\n <div class=\"qk-time-picker__footer\">\n <QuireButton size=\"sm\" variant=\"text\" @click=\"now\">{{ pickerText.now }}</QuireButton>\n <span class=\"qk-time-picker__spacer\" />\n <QuireButton size=\"sm\" variant=\"text\" @click=\"emit('cancel')\">{{ pickerText.cancel }}</QuireButton>\n <QuireButton size=\"sm\" variant=\"solid\" color=\"primary\" :disabled=\"!complete || Boolean(error)\" @click=\"confirm\">{{ pickerText.confirm }}</QuireButton>\n </div>\n </div>\n</template>\n","<script setup lang=\"ts\">\nimport PickerControlAnchor from \"../shared/picker/control-anchor.vue\";\nimport { computed, nextTick, onMounted, onScopeDispose, ref, useId, watch } from \"vue\";\nimport type { QuireKitDateTimeRangePickerProps, QuireKitDateTimeRangeValue, DateTimeRangeEndpoint, DateTimeRangeRules } from \"./types\";\nimport { copyDateTimeRange, dateTimeRangeError } from \"./value\";\nimport DateTimeEndpoint from \"./endpoint.vue\";\nimport RangePanel from \"./panel.vue\";\nimport QuireIconButton from \"../button/icon-button.vue\";\nimport QuireIcon from \"../icon/icon.vue\";\nimport { useQuireKitMessages } from \"../locale-provider/context\";\nimport { PickerRoot as QuirePopoverRoot, PickerAnchor as QuirePopoverAnchor, PickerTrigger as QuirePopoverTrigger, PickerContent as QuirePopoverContent } from \"../shared/picker\";\nconst props = withDefaults(defineProps<QuireKitDateTimeRangePickerProps>(), {\n defaultValue: () => ({ start: null, end: null }), size: \"sm\", width: \"640px\", hourCycle: 24, granularity: \"second\", calendarDensity: \"comfortable\",\n hideLabel: false, clearable: true, disabled: false, readOnly: false, required: false, invalid: false,\n rangeLayout: \"single\", open: undefined, defaultOpen: false, presentation: \"auto\", openOnFocus: true, hourStep: 1, minuteStep: 1, secondStep: 1\n});\nconst emit = defineEmits<{ /** Direct edits, reset or one confirmed complete range. */ \"update:modelValue\": [value: QuireKitDateTimeRangeValue]; /** Requested visibility under host control. */ \"update:open\": [value: boolean] }>();\ndefineSlots<{ /** Optional decorative prefix within the shared field. */ leading?: () => unknown; /** Host shortcuts modify the pending range only. */ footer?: (props: { setRange: (range: QuireKitDateTimeRangeValue) => void }) => unknown }>();\nconst id = useId(), root = ref<HTMLElement>(), trigger = ref<HTMLElement>(), panel = ref<HTMLElement>();\nconst internal = ref(copyDateTimeRange(props.defaultValue, props.granularity)), internalOpen = ref(props.defaultOpen), version = ref(0);\nconst focusedEndpoint = ref<DateTimeRangeEndpoint>();\nconst value = computed(() => copyDateTimeRange(props.modelValue ?? internal.value, props.granularity));\nconst opened = computed(() => !props.disabled && !props.readOnly && (props.open ?? internalOpen.value));\nconst text = useQuireKitMessages(\"dateTimeRangePicker\");\nconst pickerText = useQuireKitMessages(\"picker\");\nconst rules = computed<DateTimeRangeRules>(() => ({ min: props.min, max: props.max, granularity: props.granularity, hourStep: props.hourStep, minuteStep: props.minuteStep, secondStep: props.secondStep, isDateUnavailable: props.isDateUnavailable, isDateTimeUnavailable: props.isDateTimeUnavailable, isRangeUnavailable: props.isRangeUnavailable }));\nconst validation = computed(() => dateTimeRangeError(value.value, rules.value, pickerText.value));\nconst invalidState = computed(() => props.invalid || Boolean(validation.value));\nconst message = computed(() => invalidState.value ? props.errorText || validation.value || props.description : props.description);\nconst endpoints = computed(() => [{ key: \"start\" as const, label: props.startLabel ?? text.value.startField(props.label) }, { key: \"end\" as const, label: props.endLabel ?? text.value.endField(props.label) }]);\nconst initialEndpoint = computed<DateTimeRangeEndpoint>(() => focusedEndpoint.value ?? (value.value.start && !value.value.end ? \"end\" : \"start\"));\nconst triggerLabel = computed(() => text.value.openPanel(props.label));\nconst bindings = computed(() => ({ ...(props.form ? { form: props.form } : {}), ...(props.placeholderValue ? { placeholderValue: props.placeholderValue } : {}), ...(message.value ? { describedBy: `${id}-message` } : {}) }));\n/** @param next - Requested panel state, respecting editing permissions. */\nfunction setOpen(next: boolean): void { if (next && (props.disabled || props.readOnly)) return; internalOpen.value = next; emit(\"update:open\", next); }\n/** @param next - New range with independent endpoint identities. */\nfunction update(next: QuireKitDateTimeRangeValue): void { if (props.modelValue === undefined) internal.value = copyDateTimeRange(next, props.granularity); emit(\"update:modelValue\", copyDateTimeRange(next, props.granularity)); }\n/** @param endpoint - Edited side. @param next - Complete time or a partial-draft marker. */\nfunction edit(endpoint: DateTimeRangeEndpoint, next: string | null): void { if (!props.disabled && !props.readOnly) update({ ...value.value, [endpoint]: next }); }\n/** @param next - Complete panel range, checked again against the latest host rules. */\nfunction confirm(next: QuireKitDateTimeRangeValue): void { if (props.disabled || props.readOnly || !next.start || !next.end || dateTimeRangeError(next, rules.value, pickerText.value)) return; update(next); version.value += 1; setOpen(false); }\n/** Clears committed endpoints and any uncommitted segment text, then restores the input focus. */\nasync function clear(): Promise<void> { update({ start: null, end: null }); version.value += 1; setOpen(false); await nextTick(); root.value?.querySelector<HTMLElement>('[role=\"spinbutton\"]')?.focus(); }\n/** @param element - The single resident trigger inside the end-row loop. */\nfunction setTrigger(element: unknown): void { trigger.value = element instanceof HTMLElement ? element : undefined; }\n/** @returns Selected endpoint tab as the initial keyboard navigation target. */\nfunction initialFocus(): HTMLElement | null { return panel.value?.querySelector('[data-view=\"day\"][data-part=\"table-cell-trigger\"][tabindex=\"0\"], [role=\"listbox\"], [role=\"tab\"][aria-selected=\"true\"]') ?? null; }\n/** @returns Stable resident opening action after dismissal. */\nfunction finalFocus(): HTMLElement | null { return trigger.value?.querySelector(\"button\") ?? null; }\nwatch([() => props.disabled, () => props.readOnly], ([disabled, readOnly]) => { if (disabled || readOnly) setOpen(false); });\nlet currentForm: HTMLFormElement | null = null;\n/** @param event - Native reset observed only after cancellation is decided. */\nfunction reset(event: Event): void { queueMicrotask(() => { if (event.defaultPrevented) return; update(props.defaultValue); version.value += 1; setOpen(false); focusedEndpoint.value = undefined; }); }\n/** Binds one reset handler to the same form as both endpoint hidden inputs. */\nfunction bindForm(): void { currentForm?.removeEventListener(\"reset\", reset); currentForm = root.value?.querySelector(\"input\")?.form ?? null; currentForm?.addEventListener(\"reset\", reset); }\nonMounted(bindForm);\nwatch(() => props.form, bindForm, { flush: \"post\" });\nonScopeDispose(() => currentForm?.removeEventListener(\"reset\", reset));\n</script>\n<template>\n <div ref=\"root\" class=\"qk-date-input\" :style=\"{ width: '100%', maxWidth: width }\" role=\"group\" :aria-label=\"label\">\n <p :class=\"hideLabel ? 'sr-only' : 'qk-date-input__label qk-date-time-range-picker__label'\">{{ label }}<span v-if=\"required\" aria-hidden=\"true\"> *</span></p>\n <QuirePopoverRoot :label=\"label\" :disabled=\"disabled || readOnly\" :presentation=\"presentation\" :open-on-focus=\"openOnFocus\" :open=\"opened\" :initial-focus-el=\"initialFocus\" :final-focus-el=\"finalFocus\" @update:open=\"setOpen\">\n <QuirePopoverAnchor>\n <PickerControlAnchor>\n <div :class=\"['qk-date-input__control', 'qk-date-time-range-picker__control', `qk-date-time-range-picker__control--${size}`]\" :data-invalid=\"invalidState ? '' : undefined\" :data-disabled=\"disabled ? '' : undefined\" @keydown.alt.down.prevent=\"setOpen(true)\">\n <span v-if=\"$slots.leading\" class=\"qk-date-input__adornment\" aria-hidden=\"true\"><slot name=\"leading\" /></span>\n <span v-for=\"(endpoint, index) in endpoints\" :key=\"`${endpoint.key}-${version}`\" class=\"qk-date-time-range-picker__endpoint-row\">\n <span v-if=\"index\" class=\"qk-date-time-range-picker__separator\" aria-hidden=\"true\">→</span>\n <DateTimeEndpoint :model-value=\"value[endpoint.key]\" :label=\"endpoint.label\" :hour-cycle=\"hourCycle\" :granularity=\"granularity\" :disabled=\"disabled\" :read-only=\"readOnly\" :required=\"required\" :invalid=\"invalidState\" :data-active-endpoint=\"opened && initialEndpoint === endpoint.key ? '' : undefined\" @pointerdown=\"focusedEndpoint = endpoint.key\" v-bind=\"{ ...bindings, ...(name ? { name: `${name}[${endpoint.key}]` } : {}) }\" @focusin=\"focusedEndpoint = endpoint.key\" @update:model-value=\"edit(endpoint.key, $event)\" />\n <span v-if=\"index\" class=\"qk-date-time-range-picker__actions\">\n <QuireIconButton v-if=\"clearable && !disabled && !readOnly\" :label=\"text.clear\" size=\"xs\" variant=\"text\" @pointerdown.prevent @click=\"clear\"><QuireIcon name=\"close\" :size=\"12\" /></QuireIconButton>\n <span :ref=\"setTrigger\" class=\"qk-time-picker__trigger\"><QuirePopoverTrigger as-child><QuireIconButton :label=\"triggerLabel\" size=\"xs\" variant=\"text\" :disabled=\"disabled || readOnly\"><QuireIcon name=\"calendar\" :size=\"16\" /></QuireIconButton></QuirePopoverTrigger></span>\n </span>\n </span>\n </div>\n </PickerControlAnchor>\n </QuirePopoverAnchor>\n <QuirePopoverContent :show-arrow=\"false\" :aria-label=\"label\" class=\"qk-time-picker__panel qk-date-time-picker__panel\">\n <div v-if=\"opened\" ref=\"panel\"><RangePanel :range-layout=\"rangeLayout\" @update:endpoint=\"focusedEndpoint = $event\" :value=\"value\" :rules=\"rules\" :density=\"calendarDensity\" v-bind=\"{ ...(placeholderValue ? { placeholderValue } : {}), ...(startOfWeek === undefined ? {} : { startOfWeek }) }\" :hour-cycle=\"hourCycle\" :label=\"label\" :start-label=\"endpoints[0]!.label\" :end-label=\"endpoints[1]!.label\" :initial-endpoint=\"initialEndpoint\" @confirm=\"confirm\" @cancel=\"setOpen(false)\"><template v-if=\"$slots.footer\" #footer=\"slotProps\"><slot name=\"footer\" v-bind=\"slotProps\" /></template></RangePanel></div>\n </QuirePopoverContent>\n </QuirePopoverRoot>\n <p v-if=\"message\" :id=\"`${id}-message`\" :class=\"['qk-date-input__message', invalidState && 'qk-date-input__message--invalid']\">{{ message }}</p>\n </div>\n</template>\n","<script setup lang=\"ts\" generic=\"Range extends boolean = false\">\nimport { computed } from 'vue';\nimport type { QuireKitDatePickerProps, QuireKitDateSinglePickerProps, QuireKitPickerValue, QuireKitPickerRange } from './types';\nimport type { QuireKitDateRangePickerProps } from '../date-range-picker/types';\nimport type { QuireKitDateTimePickerProps } from '../date-time-picker/types';\nimport type { QuireKitDateTimeRangePickerProps } from '../date-time-range-picker/types';\nimport Single from './single.vue';\nimport DateRange from '../date-range-picker/date-range-picker.vue';\nimport DateTime from '../date-time-picker/date-time-picker.vue';\nimport DateTimeRange from '../date-time-range-picker/date-time-range-picker.vue';\nconst props = withDefaults(defineProps<QuireKitDatePickerProps<Range>>(), { open: undefined, openOnFocus: true, clearable: true });\nconst emit = defineEmits<{ /** One complete or partially empty public model. */ 'update:modelValue': [value: QuireKitPickerValue<Range>]; /** Requested visibility. */ 'update:open': [open: boolean] }>();\ndefineSlots<{\n /** Decorative prefix in the field. */ leading?: () => unknown;\n /** Optional shortcuts; use the setter matching range/showTime. */ footer?: (props: { setDateTime?: (value: string) => void; setRange?: (value: QuireKitPickerRange) => void; selectRange?: (value: QuireKitPickerRange) => void }) => unknown;\n}>();\n// Drop undefined values so the selected value owner applies its own field defaults.\nconst bindings = computed(() => {\n const { range, showTime, ...rest } = props;\n const excluded = showTime ? ['dateFormat', 'timeZone', 'numberOfMonths', 'allowNonContiguousRange'] : ['granularity', 'hourCycle', 'hourStep', 'minuteStep', 'secondStep', 'isDateTimeUnavailable', 'isRangeUnavailable'];\n if (!range || !showTime) excluded.push('rangeLayout');\n if (!range) excluded.push('startLabel', 'endLabel', 'numberOfMonths', 'allowNonContiguousRange');\n return Object.fromEntries(Object.entries(rest).filter(([key, value]) => value !== undefined && !excluded.includes(key)));\n});\nconst single = computed(() => bindings.value as unknown as QuireKitDateSinglePickerProps);\nconst dateRange = computed(() => bindings.value as unknown as QuireKitDateRangePickerProps);\nconst dateTime = computed(() => ({ ...bindings.value, granularity: props.granularity ?? 'minute', ...(props.isDateTimeUnavailable ? { isDateTimeUnavailable: (value: string) => props.isDateTimeUnavailable!(value, 'start') } : {}) }) as unknown as QuireKitDateTimePickerProps);\nconst dateTimeRange = computed(() => ({ ...bindings.value, granularity: props.granularity ?? 'minute' }) as unknown as QuireKitDateTimeRangePickerProps);\n/** @param value - Model from the explicit mode; never infer mode from value shape. */\nfunction update(value: string | null | QuireKitPickerRange): void { emit('update:modelValue', value as QuireKitPickerValue<Range>); }\n</script>\n<template>\n <DateTimeRange v-if=\"range && showTime\" v-bind=\"dateTimeRange\" @update:model-value=\"update\" @update:open=\"emit('update:open', $event)\">\n <template v-if=\"$slots.leading\" #leading><slot name=\"leading\" /></template><template v-if=\"$slots.footer\" #footer=\"scope\"><slot name=\"footer\" v-bind=\"scope\" /></template>\n </DateTimeRange>\n <DateTime v-else-if=\"showTime\" v-bind=\"dateTime\" @update:model-value=\"update\" @update:open=\"emit('update:open', $event)\">\n <template v-if=\"$slots.leading\" #leading><slot name=\"leading\" /></template><template v-if=\"$slots.footer\" #footer=\"scope\"><slot name=\"footer\" v-bind=\"scope\" /></template>\n </DateTime>\n <DateRange v-else-if=\"range\" v-bind=\"dateRange\" @update:model-value=\"update\" @update:open=\"emit('update:open', $event)\">\n <template v-if=\"$slots.leading\" #leading><slot name=\"leading\" /></template><template v-if=\"$slots.footer\" #footer=\"scope\"><slot name=\"footer\" v-bind=\"scope\" /></template>\n </DateRange>\n <Single v-else v-bind=\"single\" @update:model-value=\"update\" @update:open=\"emit('update:open', $event)\">\n <template v-if=\"$slots.leading\" #leading><slot name=\"leading\" /></template><template v-if=\"$slots.footer\" #footer><slot name=\"footer\" /></template>\n </Single>\n</template>\n","<script setup lang=\"ts\">\nimport { computed, nextTick, ref, watch } from \"vue\";\nimport type { TimePanelProps } from \"./types\";\nimport { availableTimes, draftTime, timeDraft, timeError } from \"./value\";\nimport TimeColumns from \"./columns.vue\";\nimport QuireButton from \"../button/button.vue\";\nimport { useQuireKitMessages } from \"../locale-provider/context\";\nconst props = defineProps<TimePanelProps>();\nconst emit = defineEmits<{ /** Complete validated time. */ confirm: [value: string]; /** Dismiss without publishing a draft. */ cancel: [] }>();\ndefineSlots<{ /** Extra host shortcuts modify the draft, never commit implicitly. */ footer?: (props: { setTime: (time: string) => void }) => unknown }>();\nconst columns = ref<InstanceType<typeof TimeColumns>>();\nconst draft = ref(timeDraft(props.value, props.hourCycle));\nconst precision = computed(() => props.rules.granularity ?? \"minute\");\nconst text = useQuireKitMessages(\"timePicker\");\nconst pickerText = useQuireKitMessages(\"picker\");\nconst allowed = computed(() => availableTimes(props.rules));\nconst complete = computed(() => draftTime(draft.value, props.hourCycle, precision.value));\nconst error = computed(() => timeError(complete.value, props.rules, pickerText.value));\nconst message = computed(() => allowed.value.length === 0 ? text.value.noTimes : error.value || (complete.value ?? text.value.incomplete));\nwatch([() => props.value, () => props.hourCycle], () => { draft.value = timeDraft(props.value, props.hourCycle); });\n/** @param time - Explicit host shortcut, checked by the same confirmation validation. */\nasync function setTime(time: string): Promise<void> { draft.value = timeDraft(time, props.hourCycle); await nextTick(); await columns.value?.revealSelections(); }\n/** Chooses the device's current wall-clock time as a draft, without silently rounding steps. */\nfunction now(): void {\n const date = new Date();\n void setTime([date.getHours(), date.getMinutes(), ...(precision.value === \"second\" ? [date.getSeconds()] : [])].map(value => String(value).padStart(2, \"0\")).join(\":\"));\n}\n/** Validates at activation time so a changed rule cannot publish a stale allowed value. */\nfunction confirm(): void { if (complete.value && !timeError(complete.value, props.rules)) emit(\"confirm\", complete.value); }\n</script>\n<template>\n <div class=\"qk-time-picker__body\">\n <TimeColumns ref=\"columns\" v-model=\"draft\" :rules=\"rules\" :hour-cycle=\"hourCycle\" :label=\"label\" />\n <p class=\"qk-time-picker__message\" :class=\"error && 'text-qk-danger-text'\" role=\"status\">{{ message }}</p>\n <div v-if=\"$slots.footer\" class=\"qk-time-picker__shortcuts\"><slot name=\"footer\" :set-time=\"setTime\" /></div>\n <div class=\"qk-time-picker__footer\">\n <QuireButton size=\"sm\" variant=\"text\" @click=\"now\">{{ pickerText.now }}</QuireButton>\n <span class=\"qk-time-picker__spacer\" />\n <QuireButton size=\"sm\" variant=\"text\" @click=\"emit('cancel')\">{{ pickerText.cancel }}</QuireButton>\n <QuireButton size=\"sm\" color=\"primary\" variant=\"solid\" :disabled=\"!complete || Boolean(error) || !allowed.length\" @click=\"confirm\">{{ pickerText.confirm }}</QuireButton>\n </div>\n </div>\n</template>\n","<script setup lang=\"ts\">\nimport { computed, onMounted, onScopeDispose, ref, watch } from \"vue\";\nimport type { QuireKitTimeSinglePickerProps, TimeRules } from \"./types\";\nimport type { QuireKitTimeInputProps } from \"../time-input/types\";\nimport { timeError } from \"./value\";\nimport QuireTimeInput from \"../time-input/time-input.vue\";\nimport TimePanel from \"./panel.vue\";\nimport QuireIconButton from \"../button/icon-button.vue\";\nimport QuireIcon from \"../icon/icon.vue\";\nimport { useQuireKitMessages } from \"../locale-provider/context\";\nimport { PickerRoot as QuirePopoverRoot, PickerAnchor as QuirePopoverAnchor, PickerTrigger as QuirePopoverTrigger, PickerContent as QuirePopoverContent } from \"../shared/picker\";\nconst props = withDefaults(defineProps<QuireKitTimeSinglePickerProps>(), { defaultValue: null, size: \"sm\", width: \"200px\", hourCycle: 24, granularity: \"minute\", clearable: true, disabled: false, readOnly: false, open: undefined, defaultOpen: false, presentation: \"auto\", openOnFocus: true, hourStep: 1, minuteStep: 1, secondStep: 1 });\nconst emit = defineEmits<{ /** Complete time or empty field. */ \"update:modelValue\": [value: string | null]; /** Requested panel visibility. */ \"update:open\": [value: boolean] }>();\ndefineSlots<{ /** Decorative prefix inside the shared input. */ leading?: () => unknown; /** Host shortcuts change panel drafts using the same validation. */ footer?: (props: { setTime: (value: string) => void }) => unknown }>();\nconst text = useQuireKitMessages(\"timePicker\");\nconst pickerText = useQuireKitMessages(\"picker\");\nconst internal = ref(props.defaultValue), internalOpen = ref(props.defaultOpen);\nconst panel = ref<HTMLElement>(), trigger = ref<HTMLElement>();\nconst value = computed(() => props.modelValue === undefined ? internal.value : props.modelValue);\nconst opened = computed(() => !props.disabled && !props.readOnly && (props.open ?? internalOpen.value));\nconst rules = computed<TimeRules>(() => ({ min: props.min, max: props.max, hourStep: props.hourStep, minuteStep: props.minuteStep, secondStep: props.secondStep, granularity: props.granularity, isTimeUnavailable: props.isTimeUnavailable }));\nconst error = computed(() => timeError(value.value, rules.value, pickerText.value));\nconst triggerLabel = computed(() => text.value.openPanel(props.label));\nconst inputProps = computed(() => {\n const { open, defaultOpen, hourStep, minuteStep, secondStep, isTimeUnavailable, presentation, openOnFocus, ...input } = props;\n return Object.fromEntries(Object.entries(input).filter(([, value]) => value !== undefined)) as unknown as QuireKitTimeInputProps;\n});\n/** @param next - Requested visibility, subject to host control and editing permissions. */\nfunction setOpen(next: boolean): void { if (next && (props.disabled || props.readOnly)) return; internalOpen.value = next; emit(\"update:open\", next); }\n/** @param next - Direct field edit, clear, native reset, or confirmed panel time. */\nfunction update(next: string | null): void { if (props.modelValue === undefined) internal.value = next; emit(\"update:modelValue\", next); }\n/** @param next - Complete draft revalidated before committing. */\nfunction confirm(next: string): void { if (props.disabled || props.readOnly || timeError(next, rules.value, pickerText.value)) return; update(next); setOpen(false); }\n/** @returns The first real Ark list navigation target. */\nfunction initialFocus(): HTMLElement | null { return panel.value?.querySelector('[role=\"listbox\"]') ?? null; }\n/** @returns The resident panel trigger. */\nfunction finalFocus(): HTMLElement | null { return trigger.value?.querySelector(\"button\") ?? null; }\nwatch([() => props.disabled, () => props.readOnly], ([disabled, readOnly]) => { if (disabled || readOnly) setOpen(false); });\n\nlet associatedForm: HTMLFormElement | null = null;\n/** @param event - Native reset, reconciled only after cancellation has been decided. */\nfunction resetPanel(event: Event): void { queueMicrotask(() => { if (!event.defaultPrevented) setOpen(false); }); }\n/** Binds the same native form as the inner TimeInput, including explicit external forms. */\nfunction bindForm(): void {\n associatedForm?.removeEventListener(\"reset\", resetPanel);\n const owner = trigger.value?.ownerDocument;\n const form = props.form ? owner?.getElementById(props.form) : trigger.value?.closest(\"form\");\n associatedForm = form?.tagName === \"FORM\" ? form as HTMLFormElement : null;\n associatedForm?.addEventListener(\"reset\", resetPanel);\n}\nonMounted(bindForm);\nwatch(() => props.form, bindForm, { flush: \"post\" });\nonScopeDispose(() => associatedForm?.removeEventListener(\"reset\", resetPanel));\n</script>\n<template>\n <QuirePopoverRoot :label=\"label\" :disabled=\"disabled || readOnly\" :presentation=\"presentation\" :open-on-focus=\"openOnFocus\" :open=\"opened\" :initial-focus-el=\"initialFocus\" :final-focus-el=\"finalFocus\" @update:open=\"setOpen\">\n <QuirePopoverAnchor>\n <QuireTimeInput v-bind=\"inputProps\" :model-value=\"value\" :invalid=\"invalid || Boolean(error)\" :error-text=\"errorText || error\" @update:model-value=\"update\" @keydown.alt.down.prevent=\"setOpen(true)\">\n <template v-if=\"$slots.leading\" #leading><slot name=\"leading\" /></template>\n <template #trailing><span ref=\"trigger\" class=\"qk-time-picker__trigger\"><QuirePopoverTrigger as-child><QuireIconButton :label=\"triggerLabel\" size=\"xs\" variant=\"text\" :disabled=\"disabled || readOnly\"><QuireIcon name=\"clock\" :size=\"16\" /></QuireIconButton></QuirePopoverTrigger></span></template>\n </QuireTimeInput>\n </QuirePopoverAnchor>\n <QuirePopoverContent :show-arrow=\"false\" :aria-label=\"label\" class=\"qk-time-picker__panel\">\n <div v-if=\"opened\" ref=\"panel\"><TimePanel :value=\"value\" :rules=\"rules\" :hour-cycle=\"hourCycle\" :label=\"label\" @confirm=\"confirm\" @cancel=\"setOpen(false)\"><template v-if=\"$slots.footer\" #footer=\"slotProps\"><slot name=\"footer\" v-bind=\"slotProps\" /></template></TimePanel></div>\n </QuirePopoverContent>\n </QuirePopoverRoot>\n</template>\n","import { parseClockTime } from \"../time-input/value\";\nimport { clockSeconds, timeError } from \"../time-picker/value\";\nimport type { TimeRules } from \"../time-picker/types\";\nimport type { QuireKitTimeRangeValue, TimeRangeEndpoint, TimeRangeRules } from \"./types\";\nimport { quireKitDefaultLocale } from \"../../locale/resolve\";\nimport type { Messages as PickerMessages } from \"../../locale/components/picker\";\n\n/**\n * Validates syntax while preserving endpoint identity and temporary editing states.\n * @param value - Current pure-time endpoints.\n * @returns A fresh range owned by the consumer.\n */\nexport function copyTimeRange(value: QuireKitTimeRangeValue): QuireKitTimeRangeValue {\n parseClockTime(value.start);\n parseClockTime(value.end);\n return { start: value.start, end: value.end };\n}\n/**\n * Adapts endpoint-specific rules to the already validated single-time engine.\n * @param rules - Whole-range rules and common time constraints.\n * @param endpoint - The endpoint whose candidates or direct input are being checked.\n * @returns Single-time rules without range-order coupling.\n */\nexport function timeRangeEndpointRules(rules: TimeRangeRules, endpoint: TimeRangeEndpoint): TimeRules {\n const { allowOvernight, isTimeUnavailable, isRangeUnavailable, ...time } = rules;\n return { ...time, ...(isTimeUnavailable ? { isTimeUnavailable: (value: string) => isTimeUnavailable(value, endpoint) } : {}) };\n}\n/**\n * Identifies an explicitly allowed next-day end without inventing a calendar date.\n * @param value - Complete or partial pure-time range.\n * @param allowOvernight - Whether the host opted into a next-day interpretation.\n * @returns True only for a complete range whose end is strictly earlier.\n */\nexport function rangeEndsNextDay(value: QuireKitTimeRangeValue, allowOvernight: boolean): boolean {\n return allowOvernight && value.start !== null && value.end !== null && clockSeconds(value.end) < clockSeconds(value.start);\n}\n/**\n * Checks endpoint validity before applying range order and business constraints.\n * @param value - Public input or a complete panel draft; never rewritten here.\n * @param rules - Shared constraints for every submission path.\n * @param text - Picker messages of the active language.\n * @returns Localized recovery guidance, or empty text when current endpoints are valid.\n */\nexport function timeRangeError(value: QuireKitTimeRangeValue, rules: TimeRangeRules, text: PickerMessages = quireKitDefaultLocale.messages.picker): string {\n copyTimeRange(value);\n // Endpoint validation remains independent so either side can recover first.\n for (const endpoint of [\"start\", \"end\"] as const) {\n const error = timeError(value[endpoint], timeRangeEndpointRules(rules, endpoint), text);\n if (error) return text.endpointError(endpoint, error);\n }\n if (value.start === null || value.end === null) return \"\";\n // Only complete valid endpoints enter order and whole-range business validation.\n if (!rules.allowOvernight && clockSeconds(value.end) < clockSeconds(value.start)) return text.timeRangeReversed;\n if (rules.isRangeUnavailable?.({ start: value.start, end: value.end })) return text.timeRangeUnavailable;\n return \"\";\n}\n","<script setup lang=\"ts\">\nimport { computed } from \"vue\";\nimport { DateInput, type DateInputDateValue } from \"@ark-ui/vue/date-input\";\nimport SegmentedInputRoot from \"../shared/segmented-input/root.vue\";\nimport { StableTimeFormatter } from \"../time-input/formatter\";\nimport { parseClockTime, serializeClockTime } from \"../time-input/value\";\nimport type { TimeRangeEndpointProps } from \"./types\";\nimport { useQuireKitLocale, useQuireKitMessages } from \"../locale-provider/context\";\nimport { segmentLabel } from \"../shared/segmented-input/label\";\nconst props = defineProps<TimeRangeEndpointProps>();\nconst emit = defineEmits<{ /** Complete or incomplete endpoint, without affecting its sibling. */ \"update:modelValue\": [value: string | null] }>();\nconst locale = useQuireKitLocale();\nconst text = useQuireKitMessages(\"picker\");\nconst formatter = computed(() => new StableTimeFormatter(locale.value, { hour: \"2-digit\", minute: \"2-digit\", ...(props.granularity === \"second\" ? { second: \"2-digit\" } : {}), hourCycle: props.hourCycle === 12 ? \"h12\" : \"h23\", timeZone: \"UTC\" }));\nconst dates = computed(() => {\n const date = parseClockTime(props.modelValue);\n if (props.granularity === \"minute\" && date && date.second !== 0) throw new TypeError(\"Minute precision cannot hide non-zero seconds; use granularity=second.\");\n return date ? [date] : [];\n});\nconst bindings = computed(() => ({ ...(props.name ? { name: props.name } : {}), ...(props.form ? { form: props.form } : {}), placeholderValue: parseClockTime(props.placeholderValue ?? \"00:00\")! }));\n/** @param values - Complete Ark segments, or empty when this endpoint is incomplete. */\nfunction update(values: DateInputDateValue[]): void { if (!props.disabled && !props.readOnly) emit(\"update:modelValue\", serializeClockTime(values[0], props.granularity)); }\n</script>\n<template>\n <SegmentedInputRoot class=\"qk-time-range-picker__endpoint\" :model-value=\"dates\" :formatter=\"formatter\" :granularity=\"granularity\" time-zone=\"UTC\" :disabled=\"disabled\" :read-only=\"readOnly\" :required=\"required\" :invalid=\"invalid\" v-bind=\"bindings\" @update:model-value=\"update\">\n <DateInput.Label class=\"sr-only\">{{ label }}</DateInput.Label>\n <DateInput.Control class=\"qk-time-range-picker__endpoint-control\">\n <DateInput.Context v-slot=\"date\"><DateInput.SegmentGroup class=\"qk-time-input__segments\">\n <DateInput.Segment v-for=\"(segment, index) in date.getSegments()\" :key=\"index\" :segment=\"segment\" :class=\"['qk-time-input__segment', segment.type === 'literal' && 'qk-time-input__literal', segment.type === 'dayPeriod' && 'qk-time-input__period', /^[\\u2066-\\u2069]+$/.test(segment.text) && 'qk-time-input__direction-marker']\" :aria-label=\"segmentLabel(label, segment.type, text)\" :aria-describedby=\"describedBy\" />\n </DateInput.SegmentGroup></DateInput.Context>\n </DateInput.Control>\n <DateInput.HiddenInput :value=\"serializeClockTime(dates[0], granularity) ?? ''\" />\n </SegmentedInputRoot>\n</template>\n","<script setup lang=\"ts\">\nimport { computed, nextTick, ref, watch } from \"vue\";\nimport type { QuireKitTimeRangeValue, TimeRangeEndpoint, TimeRangePanelProps } from \"./types\";\nimport { copyTimeRange, rangeEndsNextDay, timeRangeEndpointRules, timeRangeError } from \"./value\";\nimport { availableTimes, draftTime, timeDraft } from \"../time-picker/value\";\nimport TimeColumns from \"../time-picker/columns.vue\";\nimport QuireTabs from \"../tabs/tabs.vue\";\nimport { usePickerBottom } from '../shared/picker/context';\nconst bottom = usePickerBottom();\nimport QuireButton from \"../button/button.vue\";\nimport { useQuireKitMessages } from \"../locale-provider/context\";\nconst props = defineProps<TimeRangePanelProps>();\nconst emit = defineEmits<{ /** Atomic, complete validated range. */ confirm: [value: QuireKitTimeRangeValue]; /** Abandon both endpoint drafts. */ cancel: [] }>();\ndefineSlots<{ /** Host shortcuts change the whole draft without publishing it. */ footer?: (props: { setRange: (range: QuireKitTimeRangeValue) => void }) => unknown }>();\nconst selected = ref<string>(props.initialEndpoint);\nconst desktopEditors = ref<InstanceType<typeof TimeColumns>[]>([]);\nconst active = computed<TimeRangeEndpoint>(() => selected.value === \"end\" ? \"end\" : \"start\");\nconst columns = ref<InstanceType<typeof TimeColumns>>();\nconst drafts = ref({ start: timeDraft(props.value.start, props.hourCycle), end: timeDraft(props.value.end, props.hourCycle) });\nconst precision = computed(() => props.rules.granularity ?? \"minute\");\nconst text = useQuireKitMessages(\"timeRangePicker\");\nconst pickerText = useQuireKitMessages(\"picker\");\nconst rules = computed(() => ({ start: timeRangeEndpointRules(props.rules, \"start\"), end: timeRangeEndpointRules(props.rules, \"end\") }));\nconst hasCandidates = computed(() => ({ start: availableTimes(rules.value.start).length > 0, end: availableTimes(rules.value.end).length > 0 }));\nconst range = computed(() => ({ start: draftTime(drafts.value.start, props.hourCycle, precision.value), end: draftTime(drafts.value.end, props.hourCycle, precision.value) }));\nconst error = computed(() => timeRangeError(range.value, props.rules, pickerText.value));\nconst complete = computed(() => range.value.start !== null && range.value.end !== null);\nconst overnight = computed(() => rangeEndsNextDay(range.value, props.rules.allowOvernight ?? false));\nconst items = computed(() => [{ value: \"start\", label: text.value.start }, { value: \"end\", label: text.value.end }]);\nconst message = computed(() => error.value || (!hasCandidates.value[active.value] ? text.value.noTimes : !complete.value ? text.value.incomplete : overnight.value ? text.value.overnight : `${range.value.start} → ${range.value.end}`));\nwatch([() => props.value, () => props.hourCycle], () => { drafts.value = { start: timeDraft(props.value.start, props.hourCycle), end: timeDraft(props.value.end, props.hourCycle) }; });\n/** @param value - Host shortcut range; complete validation remains at confirmation. */\nasync function setRange(value: QuireKitTimeRangeValue): Promise<void> { copyTimeRange(value); drafts.value = { start: timeDraft(value.start, props.hourCycle), end: timeDraft(value.end, props.hourCycle) }; await nextTick(); await Promise.all([columns.value, ...desktopEditors.value].map(view => view?.revealSelections())); }\n/** Applies current wall-clock time to the active endpoint draft only, without rounding. */\nasync function now(): Promise<void> {\n const date = new Date();\n const time = [date.getHours(), date.getMinutes(), ...(precision.value === \"second\" ? [date.getSeconds()] : [])].map(unit => String(unit).padStart(2, \"0\")).join(\":\");\n drafts.value = { ...drafts.value, [active.value]: timeDraft(time, props.hourCycle) };\n await nextTick(); await Promise.all([columns.value, ...desktopEditors.value].map(view => view?.revealSelections()));\n}\n/** Revalidates both endpoints at the atomic confirmation boundary. */\nfunction confirm(): void { if (complete.value && !timeRangeError(range.value, props.rules, pickerText.value)) emit(\"confirm\", copyTimeRange(range.value)); }\n</script>\n<template>\n <div class=\"qk-time-picker__body\">\n <QuireTabs v-if=\"bottom\" v-model=\"selected\" class=\"qk-time-range-picker__tabs\" :label=\"label\" :items=\"items\" :lazy-mount=\"true\" :unmount-on-exit=\"true\">\n <template #content=\"{ selected: visible }\">\n <TimeColumns v-if=\"visible\" ref=\"columns\" v-model=\"drafts[active]\" :rules=\"rules[active]\" :hour-cycle=\"hourCycle\" :label=\"active === 'start' ? startLabel : endLabel\" />\n </template>\n </QuireTabs>\n <div v-else class=\"qk-picker__range-editors\">\n <section v-for=\"endpoint in (['start', 'end'] as const)\" :key=\"endpoint\" @focusin=\"selected = endpoint\" @pointerdown=\"selected = endpoint\">\n <h3 class=\"qk-picker__endpoint-title\">{{ endpoint === 'start' ? startLabel : endLabel }}</h3>\n <TimeColumns ref=\"desktopEditors\" v-model=\"drafts[endpoint]\" :rules=\"rules[endpoint]\" :hour-cycle=\"hourCycle\" :label=\"endpoint === 'start' ? startLabel : endLabel\" />\n </section>\n </div>\n <p class=\"qk-time-picker__message\" :class=\"error && 'text-qk-danger-text'\" role=\"status\">{{ message }}</p>\n <div v-if=\"$slots.footer\" class=\"qk-time-picker__shortcuts\"><slot name=\"footer\" :set-range=\"setRange\" /></div>\n <div class=\"qk-time-picker__footer\">\n <QuireButton size=\"sm\" variant=\"text\" @click=\"now\">{{ pickerText.now }}</QuireButton>\n <span class=\"qk-time-picker__spacer\" />\n <QuireButton size=\"sm\" variant=\"text\" @click=\"emit('cancel')\">{{ pickerText.cancel }}</QuireButton>\n <QuireButton size=\"sm\" variant=\"solid\" color=\"primary\" :disabled=\"!complete || Boolean(error)\" @click=\"confirm\">{{ pickerText.confirm }}</QuireButton>\n </div>\n </div>\n</template>\n","<script setup lang=\"ts\">\nimport PickerControlAnchor from \"../shared/picker/control-anchor.vue\";\nimport { computed, nextTick, onMounted, onScopeDispose, ref, useId, watch } from \"vue\";\nimport type { QuireKitTimeRangePickerProps, QuireKitTimeRangeValue, TimeRangeEndpoint, TimeRangeRules } from \"./types\";\nimport { copyTimeRange, rangeEndsNextDay, timeRangeError } from \"./value\";\nimport TimeEndpoint from \"./endpoint.vue\";\nimport RangePanel from \"./panel.vue\";\nimport QuireIconButton from \"../button/icon-button.vue\";\nimport QuireIcon from \"../icon/icon.vue\";\nimport { useQuireKitMessages } from \"../locale-provider/context\";\nimport { PickerRoot as QuirePopoverRoot, PickerAnchor as QuirePopoverAnchor, PickerTrigger as QuirePopoverTrigger, PickerContent as QuirePopoverContent } from \"../shared/picker\";\nconst props = withDefaults(defineProps<QuireKitTimeRangePickerProps>(), {\n defaultValue: () => ({ start: null, end: null }), size: \"sm\", width: \"360px\", hourCycle: 24, granularity: \"minute\",\n hideLabel: false, clearable: true, disabled: false, readOnly: false, required: false, invalid: false, allowOvernight: false,\n open: undefined, defaultOpen: false, presentation: \"auto\", openOnFocus: true, hourStep: 1, minuteStep: 1, secondStep: 1\n});\nconst emit = defineEmits<{ /** Direct edits, reset or one confirmed complete range. */ \"update:modelValue\": [value: QuireKitTimeRangeValue]; /** Requested visibility under host control. */ \"update:open\": [value: boolean] }>();\ndefineSlots<{ /** Optional decorative prefix within the shared field. */ leading?: () => unknown; /** Host shortcuts modify the pending range only. */ footer?: (props: { setRange: (range: QuireKitTimeRangeValue) => void }) => unknown }>();\nconst id = useId(), root = ref<HTMLElement>(), trigger = ref<HTMLElement>(), panel = ref<HTMLElement>();\nconst internal = ref(copyTimeRange(props.defaultValue)), internalOpen = ref(props.defaultOpen), version = ref(0);\nconst focusedEndpoint = ref<TimeRangeEndpoint>();\nconst value = computed(() => copyTimeRange(props.modelValue ?? internal.value));\nconst opened = computed(() => !props.disabled && !props.readOnly && (props.open ?? internalOpen.value));\nconst text = useQuireKitMessages(\"timeRangePicker\");\nconst pickerText = useQuireKitMessages(\"picker\");\nconst rules = computed<TimeRangeRules>(() => ({ min: props.min, max: props.max, granularity: props.granularity, hourStep: props.hourStep, minuteStep: props.minuteStep, secondStep: props.secondStep, allowOvernight: props.allowOvernight, isTimeUnavailable: props.isTimeUnavailable, isRangeUnavailable: props.isRangeUnavailable }));\nconst validation = computed(() => timeRangeError(value.value, rules.value, pickerText.value));\nconst invalidState = computed(() => props.invalid || Boolean(validation.value));\nconst overnight = computed(() => rangeEndsNextDay(value.value, props.allowOvernight));\nconst message = computed(() => invalidState.value ? props.errorText || validation.value || props.description : [props.description, overnight.value ? text.value.overnight : \"\"].filter(Boolean).join(\" \"));\nconst endpoints = computed(() => [{ key: \"start\" as const, label: props.startLabel ?? text.value.startField(props.label) }, { key: \"end\" as const, label: props.endLabel ?? text.value.endField(props.label) }]);\nconst initialEndpoint = computed<TimeRangeEndpoint>(() => focusedEndpoint.value ?? (value.value.start && !value.value.end ? \"end\" : \"start\"));\nconst triggerLabel = computed(() => text.value.openPanel(props.label));\nconst bindings = computed(() => ({ ...(props.form ? { form: props.form } : {}), ...(props.placeholderValue ? { placeholderValue: props.placeholderValue } : {}), ...(message.value ? { describedBy: `${id}-message` } : {}) }));\n/** @param next - Requested panel state, respecting editing permissions. */\nfunction setOpen(next: boolean): void { if (next && (props.disabled || props.readOnly)) return; internalOpen.value = next; emit(\"update:open\", next); }\n/** @param next - New range with independent endpoint identities. */\nfunction update(next: QuireKitTimeRangeValue): void { if (props.modelValue === undefined) internal.value = copyTimeRange(next); emit(\"update:modelValue\", copyTimeRange(next)); }\n/** @param endpoint - Edited side. @param next - Complete time or a partial-draft marker. */\nfunction edit(endpoint: TimeRangeEndpoint, next: string | null): void { if (!props.disabled && !props.readOnly) update({ ...value.value, [endpoint]: next }); }\n/** @param next - Complete panel range, checked again against the latest host rules. */\nfunction confirm(next: QuireKitTimeRangeValue): void { if (props.disabled || props.readOnly || !next.start || !next.end || timeRangeError(next, rules.value, pickerText.value)) return; update(next); version.value += 1; setOpen(false); }\n/** Clears committed endpoints and any uncommitted segment text, then restores the input focus. */\nasync function clear(): Promise<void> { update({ start: null, end: null }); version.value += 1; setOpen(false); await nextTick(); root.value?.querySelector<HTMLElement>('[role=\"spinbutton\"]')?.focus(); }\n/** @returns Selected endpoint tab as the initial keyboard navigation target. */\nfunction initialFocus(): HTMLElement | null { return panel.value?.querySelector('[data-view=\"day\"][data-part=\"table-cell-trigger\"][tabindex=\"0\"], [role=\"listbox\"], [role=\"tab\"][aria-selected=\"true\"]') ?? null; }\n/** @returns Stable resident opening action after dismissal. */\nfunction finalFocus(): HTMLElement | null { return trigger.value?.querySelector(\"button\") ?? null; }\nwatch([() => props.disabled, () => props.readOnly], ([disabled, readOnly]) => { if (disabled || readOnly) setOpen(false); });\nlet currentForm: HTMLFormElement | null = null;\n/** @param event - Native reset observed only after cancellation is decided. */\nfunction reset(event: Event): void { queueMicrotask(() => { if (event.defaultPrevented) return; update(props.defaultValue); version.value += 1; setOpen(false); focusedEndpoint.value = undefined; }); }\n/** Binds one reset handler to the same form as both endpoint hidden inputs. */\nfunction bindForm(): void { currentForm?.removeEventListener(\"reset\", reset); currentForm = root.value?.querySelector(\"input\")?.form ?? null; currentForm?.addEventListener(\"reset\", reset); }\nonMounted(bindForm);\nwatch(() => props.form, bindForm, { flush: \"post\" });\nonScopeDispose(() => currentForm?.removeEventListener(\"reset\", reset));\n</script>\n<template>\n <div ref=\"root\" class=\"qk-time-input\" :style=\"{ width: '100%', maxWidth: width }\" role=\"group\" :aria-label=\"label\">\n <p :class=\"hideLabel ? 'sr-only' : 'qk-time-input__label qk-time-range-picker__label'\">{{ label }}<span v-if=\"required\" aria-hidden=\"true\"> *</span></p>\n <QuirePopoverRoot :label=\"label\" :disabled=\"disabled || readOnly\" :presentation=\"presentation\" :open-on-focus=\"openOnFocus\" :open=\"opened\" :initial-focus-el=\"initialFocus\" :final-focus-el=\"finalFocus\" @update:open=\"setOpen\">\n <QuirePopoverAnchor>\n <PickerControlAnchor>\n <div :class=\"['qk-time-input__control', 'qk-time-range-picker__control', `qk-time-range-picker__control--${size}`]\" :data-invalid=\"invalidState ? '' : undefined\" :data-disabled=\"disabled ? '' : undefined\" @keydown.alt.down.prevent=\"setOpen(true)\">\n <span v-if=\"$slots.leading\" class=\"qk-time-input__adornment\" aria-hidden=\"true\"><slot name=\"leading\" /></span>\n <template v-for=\"(endpoint, index) in endpoints\" :key=\"`${endpoint.key}-${version}`\">\n <span v-if=\"index\" class=\"qk-time-range-picker__separator\" aria-hidden=\"true\">→</span>\n <TimeEndpoint :model-value=\"value[endpoint.key]\" :label=\"endpoint.label\" :hour-cycle=\"hourCycle\" :granularity=\"granularity\" :disabled=\"disabled\" :read-only=\"readOnly\" :required=\"required\" :invalid=\"invalidState\" v-bind=\"{ ...bindings, ...(name ? { name: `${name}[${endpoint.key}]` } : {}) }\" @focusin=\"focusedEndpoint = endpoint.key\" @update:model-value=\"edit(endpoint.key, $event)\" />\n </template>\n <span class=\"qk-time-range-picker__actions\">\n <QuireIconButton v-if=\"clearable && !disabled && !readOnly\" :label=\"text.clear\" size=\"xs\" variant=\"text\" @pointerdown.prevent @click=\"clear\"><QuireIcon name=\"close\" :size=\"12\" /></QuireIconButton>\n <span ref=\"trigger\" class=\"qk-time-picker__trigger\"><QuirePopoverTrigger as-child><QuireIconButton :label=\"triggerLabel\" size=\"xs\" variant=\"text\" :disabled=\"disabled || readOnly\"><QuireIcon name=\"clock\" :size=\"16\" /></QuireIconButton></QuirePopoverTrigger></span>\n </span>\n </div>\n </PickerControlAnchor>\n </QuirePopoverAnchor>\n <QuirePopoverContent :show-arrow=\"false\" :aria-label=\"label\" class=\"qk-time-picker__panel\">\n <div v-if=\"opened\" ref=\"panel\"><RangePanel :value=\"value\" :rules=\"rules\" :hour-cycle=\"hourCycle\" :label=\"label\" :start-label=\"endpoints[0]!.label\" :end-label=\"endpoints[1]!.label\" :initial-endpoint=\"initialEndpoint\" @confirm=\"confirm\" @cancel=\"setOpen(false)\"><template v-if=\"$slots.footer\" #footer=\"slotProps\"><slot name=\"footer\" v-bind=\"slotProps\" /></template></RangePanel></div>\n </QuirePopoverContent>\n </QuirePopoverRoot>\n <p v-if=\"message\" :id=\"`${id}-message`\" :class=\"['qk-time-input__message', invalidState && 'qk-time-input__message--invalid']\">{{ message }}</p>\n </div>\n</template>\n","<script setup lang=\"ts\" generic=\"Range extends boolean = false\">\nimport { computed } from 'vue';\nimport type { QuireKitTimePickerProps, QuireKitTimeSinglePickerProps, TimePickerFooterProps } from './types';\nimport type { QuireKitPickerValue, QuireKitPickerRange } from '../date-picker/types';\nimport type { QuireKitTimeRangePickerProps } from '../time-range-picker/types';\nimport Single from './single.vue';\nimport TimeRange from '../time-range-picker/time-range-picker.vue';\nconst props = withDefaults(defineProps<QuireKitTimePickerProps<Range>>(), { open: undefined, openOnFocus: true, clearable: true });\nconst emit = defineEmits<{ /** Public model inferred from range. */ 'update:modelValue': [value: QuireKitPickerValue<Range>]; /** Requested visibility. */ 'update:open': [open: boolean] }>();\ndefineSlots<{\n /** Decorative prefix in the field. */ leading?: () => unknown;\n /** Shortcuts update the current draft. */ footer?: (props: TimePickerFooterProps<Range>) => unknown;\n}>();\nconst bindings = computed(() => {\n const { range, ...rest } = props;\n return Object.fromEntries(Object.entries(rest).filter(([key, value]) => value !== undefined && (range || !['startLabel', 'endLabel', 'allowOvernight', 'isRangeUnavailable'].includes(key))));\n});\nconst single = computed(() => ({ ...bindings.value, ...(props.isTimeUnavailable ? { isTimeUnavailable: (value: string) => props.isTimeUnavailable!(value, 'start') } : {}) }) as unknown as QuireKitTimeSinglePickerProps);\nconst rangeProps = computed(() => bindings.value as unknown as QuireKitTimeRangePickerProps);\n/** @param value - Value from the explicitly chosen scalar/range owner. */\nfunction update(value: string | null | QuireKitPickerRange): void { emit('update:modelValue', value as QuireKitPickerValue<Range>); }\n</script>\n<template>\n <TimeRange v-if=\"range\" v-bind=\"rangeProps\" @update:model-value=\"update\" @update:open=\"emit('update:open', $event)\">\n <template v-if=\"$slots.leading\" #leading><slot name=\"leading\" /></template><template v-if=\"$slots.footer\" #footer=\"scope\"><slot name=\"footer\" v-bind=\"scope as TimePickerFooterProps<Range>\" /></template>\n </TimeRange>\n <Single v-else v-bind=\"single\" @update:model-value=\"update\" @update:open=\"emit('update:open', $event)\">\n <template v-if=\"$slots.leading\" #leading><slot name=\"leading\" /></template><template v-if=\"$slots.footer\" #footer=\"scope\"><slot name=\"footer\" v-bind=\"scope as TimePickerFooterProps<Range>\" /></template>\n </Single>\n</template>\n","<script setup lang=\"ts\">\nimport QuireTypography from \"../typography/typography.vue\";\nimport { useId } from 'vue';\nimport type { QuireKitCardProps } from './types';\nwithDefaults(defineProps<QuireKitCardProps>(), {\n as: 'div', titleAs: 'h3', variant: 'outline', density: 'comfortable', divided: false\n});\ndefineSlots<{\n /** Main content; omitted regions do not reserve padding. */\n default?: () => unknown;\n /** Replaces the complete automatic header, including its trailing area. */\n header?: () => unknown;\n /** Title content inside the selected heading element. */\n title?: () => unknown;\n /** Description content below the title. */\n description?: () => unknown;\n /** Independent header actions or status; may wrap after the title. */\n trailing?: () => unknown;\n /** Summary, metadata or independent actions following the body. */\n footer?: () => unknown;\n}>();\nconst titleId = `qk-card-${useId()}-title`;\n</script>\n<template>\n <component :is=\"as\" :class=\"['qk-card', `qk-card--${variant}`, `qk-card--${density}`]\"\n :aria-labelledby=\"as !== 'div' && !$slots.header && (title || $slots.title) ? titleId : undefined\">\n <div v-if=\"$slots.header || title || description || $slots.title || $slots.description || $slots.trailing\" class=\"qk-card__section qk-card__header\" data-part=\"header\">\n <slot name=\"header\">\n <div v-if=\"title || description || $slots.title || $slots.description\" class=\"qk-card__copy\">\n <QuireTypography :as=\"titleAs\" variant=\"heading\" v-if=\"title || $slots.title\" :id=\"titleId\" class=\"qk-card__title\"><slot name=\"title\">{{ title }}</slot></QuireTypography>\n <QuireTypography as=\"div\" variant=\"compact\" v-if=\"description || $slots.description\" class=\"qk-card__description\"><slot name=\"description\">{{ description }}</slot></QuireTypography>\n </div>\n <div v-if=\"$slots.trailing\" class=\"qk-card__trailing\"><slot name=\"trailing\" /></div>\n </slot>\n </div>\n <div v-if=\"$slots.default\" :class=\"['qk-card__section', 'qk-card__body', { 'qk-card__section--divided': divided && ($slots.header || title || description || $slots.title || $slots.description || $slots.trailing) }]\" data-part=\"body\"><slot /></div>\n <div v-if=\"$slots.footer\" :class=\"['qk-card__section', 'qk-card__footer', { 'qk-card__section--divided': divided && ($slots.default || $slots.header || title || description || $slots.title || $slots.description || $slots.trailing) }]\" data-part=\"footer\"><slot name=\"footer\" /></div>\n </component>\n</template>\n","import type { QuireKitFloatingPanelLayout, QuireKitFloatingPanelPosition, QuireKitFloatingPanelRect } from \"./types\";\n\n/**\n * Fits a utility card to its viewport, retaining a user placement when possible.\n * @param boundary - Viewport client area in product-root CSS coordinates.\n * @param height - Measured card height after content has mounted.\n * @param position - User placement, or null to anchor at the top-right corner.\n * @returns Card width, height limit and bounded root-local origin.\n */\nexport function resolveFloatingPanelLayout(\n boundary: QuireKitFloatingPanelRect, height: number, position: QuireKitFloatingPanelPosition | null\n): QuireKitFloatingPanelLayout {\n const inset = Math.min(12, boundary.width / 2, boundary.height / 2);\n const width = Math.max(0, Math.min(340, boundary.width - inset * 2));\n const maxHeight = Math.max(0, boundary.height - inset * 2);\n const left = boundary.x + inset, top = boundary.y + inset;\n const right = boundary.x + boundary.width - inset - width;\n const bottom = boundary.y + boundary.height - inset - Math.min(height, maxHeight);\n return { width, maxHeight,\n x: Math.min(Math.max(position?.x ?? right, left), right),\n y: Math.min(Math.max(position?.y ?? top, top), bottom) };\n}\n","<script setup lang=\"ts\">\nimport { computed, ref, shallowRef, watch } from \"vue\";\nimport QuireIcon from \"../icon/icon.vue\";\nimport QuireIconButton from \"../button/icon-button.vue\";\nimport { resolveFloatingPanelLayout } from \"./geometry\";\nimport type { QuireKitFloatingPanelPosition, QuireKitFloatingPanelProps, QuireKitFloatingPanelRect } from \"./types\";\n\ndefineOptions({ inheritAttrs: false });\nconst props = defineProps<QuireKitFloatingPanelProps>();\nconst emit = defineEmits<{ close: [] }>();\nconst card = ref<HTMLElement>();\nconst boundary = shallowRef<QuireKitFloatingPanelRect>({ x: 0, y: 0, width: 0, height: 0 });\nconst height = ref(0);\nconst position = shallowRef<QuireKitFloatingPanelPosition | null>(null);\nconst layout = computed(() => resolveFloatingPanelLayout(boundary.value, height.value, position.value));\nconst style = computed(() => ({ width: `${layout.value.width}px`, maxHeight: `${layout.value.maxHeight}px`,\n transform: `translate(${layout.value.x}px, ${layout.value.y}px)` }));\nlet drag: { id: number; header: HTMLElement; x: number; y: number; origin: QuireKitFloatingPanelPosition } | undefined;\n\n/** Measures only the product viewport and this card; document scrolling never invalidates this frame. */\nfunction measure(): void {\n const root = props.root, viewport = props.viewport ?? root;\n const parent = root.getBoundingClientRect(), rect = viewport.getBoundingClientRect();\n boundary.value = {\n x: rect.left + viewport.clientLeft - parent.left - root.clientLeft + root.scrollLeft,\n y: rect.top + viewport.clientTop - parent.top - root.clientTop + root.scrollTop,\n width: viewport.clientWidth, height: viewport.clientHeight\n };\n height.value = card.value?.offsetHeight ?? 0;\n}\n\n/** Releases pointer capture on completion, cancellation, close or unmount. */\nfunction endDrag(): void {\n const active = drag;\n drag = undefined;\n if (active?.header.hasPointerCapture(active.id)) active.header.releasePointerCapture(active.id);\n}\n\n/** @param event - Primary pointer press on the title, excluding the close button. */\nfunction startDrag(event: PointerEvent): void {\n if (event.button !== 0 || (event.target as HTMLElement).closest(\"button\")) return;\n event.preventDefault();\n const header = event.currentTarget as HTMLElement;\n endDrag();\n measure();\n drag = { id: event.pointerId, header, x: event.clientX, y: event.clientY, origin: layout.value };\n header.setPointerCapture(event.pointerId);\n}\n\n/** @param event - Captured title drag; only transient UI coordinates change. */\nfunction moveDrag(event: PointerEvent): void {\n if (!drag || event.pointerId !== drag.id) return;\n position.value = resolveFloatingPanelLayout(boundary.value, height.value, {\n x: drag.origin.x + event.clientX - drag.x, y: drag.origin.y + event.clientY - drag.y\n });\n}\n\n/** @param event - Panel-local keyboard event; embedded composition retains ownership. */\nfunction keydown(event: KeyboardEvent): void {\n if (event.key !== \"Escape\" || event.isComposing || event.defaultPrevented) return;\n event.preventDefault(); event.stopPropagation(); emit(\"close\");\n}\n\nwatch([() => props.open, () => props.root, () => props.viewport, card], (_value, _previous, cleanup) => {\n if (!props.open) return;\n measure();\n // Viewport resizing includes outline/ribbon changes. Content resizing clamps\n // the frame without subscribing to editor transactions or document scroll.\n const observer = new ResizeObserver(measure);\n for (const element of new Set([props.root, props.viewport, card.value])) if (element) observer.observe(element);\n cleanup(() => { observer.disconnect(); endDrag(); });\n}, { immediate: true, flush: \"post\" });\n</script>\n\n<template>\n <Teleport :to=\"root\">\n <section v-if=\"open\" ref=\"card\" v-bind=\"$attrs\" class=\"qk-floating-panel\" role=\"dialog\"\n aria-modal=\"false\" :aria-label=\"title\" :style=\"style\" @keydown=\"keydown\" @pointerdown.stop>\n <header class=\"qk-floating-panel__header\" @pointerdown=\"startDrag\" @pointermove=\"moveDrag\"\n @pointerup=\"endDrag\" @pointercancel=\"endDrag\" @lostpointercapture=\"endDrag\">\n <h2 class=\"qk-floating-panel__title\">{{ title }}</h2>\n <QuireIconButton size=\"sm\" :label=\"closeLabel\" :title=\"closeLabel\" @click=\"emit('close')\">\n <QuireIcon name=\"close\" :size=\"16\" />\n </QuireIconButton>\n </header>\n <slot />\n </section>\n </Teleport>\n</template>\n\n","import type { QuireKitCommentMention } from \"./types\";\n\n/**\n * Finds an @ query ending at the caret: an @ at the start or after whitespace, followed by a short run of name characters.\n * @param value - Field text.\n * @param caret - Caret offset.\n * @returns Query start (the @) and text, or null.\n */\nexport function mentionQuery(value: string, caret: number): { readonly start: number; readonly text: string } | null {\n const match = /(?:^|\\s)@([^\\s@[\\]()]{0,32})$/u.exec(value.slice(0, caret));\n return match ? { start: caret - match[1]!.length - 1, text: match[1]! } : null;\n}\n\n/** @param value - Raw text. @param delimiters - Characters that need a backslash. @returns Escaped Markdown text, with entity-safe ampersands. */\nfunction escape(value: string, delimiters: string): string {\n return [...value].map(character => character === \"&\" ? \"&\" : character === \"\\\\\" || delimiters.includes(character) ? `\\\\${character}` : character).join(\"\");\n}\n\n/** @param mention - Person. @returns Portable Markdown link, `[@name](<url>)`, the same form the MSFE editor writes for mentions. */\nexport function mentionLink(mention: QuireKitCommentMention): string {\n return `[@${escape(mention.label.replace(/^@/u, \"\"), \"[]*_`<>\")}](<${escape(mention.url, \"<>\")}>)`;\n}\n\n/**\n * @param value - Field text.\n * @param chosen - People inserted in this field, keyed by URL.\n * @returns Chosen people whose links are still present.\n */\nexport function mentionsIn(value: string, chosen: ReadonlyMap<string, QuireKitCommentMention>): QuireKitCommentMention[] {\n return [...chosen.values()].filter(mention => value.includes(mentionLink(mention)));\n}\n","<script setup lang=\"ts\">\nimport { computed, getCurrentInstance, shallowRef, useId } from \"vue\";\nimport QuireTextarea from \"../textarea/textarea.vue\";\nimport { useQuireKitMessages } from \"../locale-provider/context\";\nimport { mentionLink, mentionQuery, mentionsIn } from \"./mentions\";\nimport type { QuireKitCommentMention, QuireKitCommentMentionSource } from \"./types\";\n\nconst props = withDefaults(defineProps<{\n /** Field text. */ readonly modelValue: string;\n /** Empty hint. */ readonly placeholder?: string | undefined;\n /** Accessible name. */ readonly label: string;\n /** Minimum visible rows. */ readonly rows?: number;\n /** Rows before scrolling. */ readonly maxRows?: number;\n /** Disables input. */ readonly disabled?: boolean;\n /** People offered after typing @. */ readonly mentions?: QuireKitCommentMentionSource | undefined;\n /** Mentions already in the text, kept when it is edited. */ readonly initialMentions?: readonly QuireKitCommentMention[] | undefined;\n}>(), { rows: 1, maxRows: 4, disabled: false });\nconst emit = defineEmits<{\n /** Text changed. */ \"update:modelValue\": [value: string];\n /** Mod+Enter. */ submit: [];\n /** Escape outside the suggestion list. */ cancel: [];\n /** The field received focus. */ focus: [];\n}>();\nconst text = useQuireKitMessages(\"comment\"), listId = `qk-comment-mentions-${useId()}`, instance = getCurrentInstance();\nconst field = shallowRef<InstanceType<typeof QuireTextarea>>();\nconst query = shallowRef<{ readonly start: number; readonly text: string } | null>(null);\nconst candidates = shallowRef<readonly QuireKitCommentMention[]>([]), active = shallowRef(0), loading = shallowRef(false);\nconst chosen = new Map<string, QuireKitCommentMention>((props.initialMentions ?? []).map(item => [item.url, item]));\nconst open = computed(() => !!query.value && !!props.mentions);\nlet request = 0;\n\n/** @returns The native textarea inside the public field. */\nfunction textarea(): HTMLTextAreaElement | null { return (instance?.proxy?.$el as HTMLElement | undefined)?.querySelector(\"textarea\") ?? null; }\n\n/** Reads the @ query before the caret and loads matching people; stale results are dropped. */\nasync function refresh(): Promise<void> {\n const element = textarea(), source = props.mentions;\n const found = element && source ? mentionQuery(props.modelValue, element.selectionStart) : null;\n query.value = found;\n if (!found || !source) { candidates.value = []; return; }\n const token = ++request, needle = found.text.toLowerCase();\n loading.value = true;\n const result = typeof source === \"function\" ? await source(found.text)\n : source.filter(item => item.label.toLowerCase().includes(needle) || item.description?.toLowerCase().includes(needle));\n if (token !== request) return;\n loading.value = false; candidates.value = result.slice(0, 6); active.value = 0;\n}\n\n/** @param mention - Person to insert in place of the typed @ query. */\nfunction insert(mention: QuireKitCommentMention): void {\n const element = textarea(), found = query.value;\n if (!element || !found) return;\n const link = `${mentionLink(mention)} `, end = element.selectionStart;\n const next = props.modelValue.slice(0, found.start) + link + props.modelValue.slice(end);\n chosen.set(mention.url, mention); query.value = null; candidates.value = [];\n emit(\"update:modelValue\", next);\n requestAnimationFrame(() => { element.focus(); element.setSelectionRange(found.start + link.length, found.start + link.length); });\n}\n\n/** Navigates suggestions, then Mod+Enter submits and Escape cancels; IME confirmation is left alone. @param event - Key event. */\nfunction keydown(event: KeyboardEvent): void {\n if (props.disabled || event.isComposing) return;\n if (open.value && candidates.value.length) {\n if (event.key === \"ArrowDown\" || event.key === \"ArrowUp\") {\n event.preventDefault(); active.value = (active.value + (event.key === \"ArrowDown\" ? 1 : -1) + candidates.value.length) % candidates.value.length; return;\n }\n if (event.key === \"Enter\" && !event.metaKey && !event.ctrlKey || event.key === \"Tab\") { event.preventDefault(); insert(candidates.value[active.value]!); return; }\n }\n if (event.key === \"Escape\") { event.preventDefault(); if (open.value) query.value = null; else emit(\"cancel\"); }\n else if (event.key === \"Enter\" && (event.metaKey || event.ctrlKey)) { event.preventDefault(); emit(\"submit\"); }\n}\n\n/** @param value - New text from the field. */\nfunction update(value: string): void { emit(\"update:modelValue\", value); queueMicrotask(() => void refresh()); }\n\ndefineExpose({\n /** Focuses the field. */ focus: () => field.value?.focus(),\n /** @returns Mentions chosen in this field whose links are still in the text. */ mentions: (): QuireKitCommentMention[] => mentionsIn(props.modelValue, chosen),\n});\n</script>\n\n<template>\n <div class=\"qk-comment-field\">\n <QuireTextarea ref=\"field\" width=\"100%\" size=\"sm\" auto-resize :rows=\"rows\" :max-rows=\"maxRows\" :model-value=\"modelValue\" :placeholder=\"placeholder\"\n :aria-label=\"label\" :disabled=\"disabled\" :aria-autocomplete=\"mentions ? 'list' : undefined\" :aria-controls=\"open ? listId : undefined\"\n :aria-expanded=\"mentions ? open : undefined\" :aria-activedescendant=\"open && candidates.length ? `${listId}-${active}` : undefined\"\n @update:model-value=\"update\" @keydown=\"keydown\" @click=\"refresh\" @focus=\"emit('focus')\" @blur=\"query = null\" />\n <ul v-if=\"open\" :id=\"listId\" class=\"qk-comment-mentions\" role=\"listbox\" :aria-label=\"text.mentionList\">\n <li v-for=\"(item, index) in candidates\" :id=\"`${listId}-${index}`\" :key=\"item.id\" role=\"option\" class=\"qk-comment-mentions__item\"\n :aria-selected=\"index === active\" @mousedown.prevent=\"insert(item)\" @mouseenter=\"active = index\">\n <span class=\"qk-comment-mentions__label\">{{ item.label }}</span>\n <span v-if=\"item.description\" class=\"qk-comment-mentions__description\">{{ item.description }}</span>\n </li>\n <li v-if=\"!candidates.length\" class=\"qk-comment-mentions__empty\" role=\"presentation\">{{ loading ? text.mentionLoading : text.mentionEmpty }}</li>\n </ul>\n </div>\n</template>\n","/**\n * Formats a compact comment time: time only for today, date for this year, full date otherwise.\n * @param value - ISO 8601 time.\n * @param locale - Display locale.\n * @param now - Reference time.\n * @returns Compact text, or the original value when it is not a valid time.\n */\nexport function formatCommentTime(value: string, locale: string, now = new Date()): string {\n const date = new Date(value);\n if (Number.isNaN(date.valueOf())) return value;\n const sameDay = date.toDateString() === now.toDateString(), sameYear = date.getFullYear() === now.getFullYear();\n return new Intl.DateTimeFormat(locale, {\n ...(sameDay ? {} : { month: \"numeric\", day: \"numeric\" } as const),\n ...(sameYear ? {} : { year: \"numeric\" } as const),\n hour: \"2-digit\", minute: \"2-digit\", hour12: false,\n }).format(date);\n}\n","<script setup lang=\"ts\">\nimport { computed, shallowRef } from \"vue\";\nimport type { QuireKitMenuEntry } from \"../../components/menu\";\nimport QuireAvatar from \"../avatar/avatar.vue\";\nimport QuireTag from \"../tag/tag.vue\";\nimport QuireButton from \"../button/button.vue\";\nimport QuireIconButton from \"../button/icon-button.vue\";\nimport QuireIcon from \"../icon/icon.vue\";\nimport QuireMenu from \"../menu/menu.vue\";\nimport { useQuireKitLocale, useQuireKitMessages } from \"../locale-provider/context\";\nimport CommentField from \"./field.vue\";\nimport { formatCommentTime } from \"./presentation\";\nimport type { QuireKitCommentMention, QuireKitCommentMentionSource, QuireKitCommentMessage } from \"./types\";\n\nconst props = defineProps<{\n /** Message to show. */\n readonly message: QuireKitCommentMessage;\n /** Root messages show their author in the card header instead. */\n readonly root: boolean;\n /** Whether this message is being edited. */\n readonly editing: boolean;\n /** Current edit text. */\n readonly draft: string;\n /** Disables actions. */\n readonly busy: boolean;\n /** People offered after typing @. */\n readonly mentions?: QuireKitCommentMentionSource | undefined;\n}>();\nconst emit = defineEmits<{\n /** Starts editing this message. */ edit: [];\n /** Requests deletion. */ delete: [];\n /** Edit text changed. */ \"update:draft\": [value: string];\n /** Saves the edit with the people still mentioned. */ save: [mentions: readonly QuireKitCommentMention[]];\n /** Abandons the edit. */ cancel: [];\n}>();\ndefineSlots<{\n /** Formatted message content; defaults to plain text with preserved line breaks. */\n body?: (props: { readonly message: QuireKitCommentMessage }) => unknown;\n /** Host editor replacing the built-in plain-text field. */\n editor?: (props: { readonly message: QuireKitCommentMessage }) => unknown;\n}>();\nconst text = useQuireKitMessages(\"comment\"), locale = useQuireKitLocale();\nconst actions = computed<readonly QuireKitMenuEntry[]>(() => [\n ...(props.message.editable ? [{ value: \"edit\", label: text.value.edit, icon: \"edit\", disabled: props.busy }] : []),\n ...(props.message.deletable ? [{ value: \"delete\", label: text.value.delete, icon: \"trash\", tone: \"danger\" as const, disabled: props.busy }] : []),\n]);\n\n/** @param value - Chosen menu entry. */\nfunction select(value: string): void {\n if (value === \"edit\") emit(\"edit\");\n else if (value === \"delete\") emit(\"delete\");\n}\n\nconst field = shallowRef<InstanceType<typeof CommentField>>();\n\n/** Saves a nonblank edit. */\nfunction save(): void { if (!props.busy && props.draft.trim()) emit(\"save\", field.value?.mentions() ?? []); }\n</script>\n\n<template>\n <div class=\"qk-comment-message\" :data-reply=\"root ? undefined : ''\">\n <div v-if=\"!root\" class=\"qk-comment-message__header\">\n <QuireAvatar size=\"xs\" :name=\"message.author.name\" :src=\"message.author.avatar\" />\n <strong class=\"qk-comment-message__author\">{{ message.author.name }}</strong>\n <QuireTag v-if=\"message.author.badge\" size=\"xs\" color=\"primary\">{{ message.author.badge }}</QuireTag>\n <time class=\"qk-comment-thread__time\" :datetime=\"message.time\" :title=\"message.time\">{{ formatCommentTime(message.time, locale) }}</time>\n <QuireIconButton v-if=\"actions.length === 1 && !editing\" class=\"qk-comment-message__more\" size=\"xs\" :disabled=\"busy\" :label=\"actions[0]!.label\"\n :title=\"actions[0]!.label\" @click=\"select(actions[0]!.value)\"><QuireIcon :name=\"actions[0]!.icon!\" /></QuireIconButton>\n <QuireMenu v-else-if=\"actions.length && !editing\" :aria-label=\"text.moreActions\" :items=\"actions\" placement=\"bottom-end\" @select=\"select\">\n <template #trigger>\n <QuireIconButton class=\"qk-comment-message__more\" size=\"xs\" :label=\"text.moreActions\" :title=\"text.moreActions\"><QuireIcon name=\"moreHorizontal\" /></QuireIconButton>\n </template>\n </QuireMenu>\n </div>\n <div v-if=\"editing && $slots.editor\" class=\"qk-comment-message__editor\"><slot name=\"editor\" :message=\"message\" /></div>\n <div v-else-if=\"editing\" class=\"qk-comment-message__editor\">\n <CommentField ref=\"field\" :model-value=\"draft\" :rows=\"2\" :max-rows=\"6\" :label=\"text.edit\" :disabled=\"busy\" :mentions=\"mentions\"\n :initial-mentions=\"message.mentions\" @update:model-value=\"emit('update:draft', $event)\" @submit=\"save\" @cancel=\"emit('cancel')\" />\n <div class=\"qk-comment-thread__composer-actions\">\n <QuireButton variant=\"ghost\" size=\"xs\" :disabled=\"busy\" @click=\"emit('cancel')\">{{ text.cancel }}</QuireButton>\n <QuireButton color=\"primary\" variant=\"solid\" size=\"xs\" :busy=\"busy\" :disabled=\"!draft.trim()\" @click=\"save\">{{ text.save }}</QuireButton>\n </div>\n </div>\n <div v-else class=\"qk-comment-message__body\">\n <slot name=\"body\" :message=\"message\">{{ message.body }}</slot>\n <span v-if=\"message.edited\" class=\"qk-comment-message__edited\">{{ text.edited }}</span>\n </div>\n </div>\n</template>\n","<script setup lang=\"ts\">\nimport { computed, getCurrentInstance, shallowRef, watch } from \"vue\";\nimport type { QuireKitMenuEntry } from \"../../components/menu\";\nimport QuireAvatar from \"../avatar/avatar.vue\";\nimport QuireTag from \"../tag/tag.vue\";\nimport QuireButton from \"../button/button.vue\";\nimport QuireIconButton from \"../button/icon-button.vue\";\nimport QuireCard from \"../card/card.vue\";\nimport QuireIcon from \"../icon/icon.vue\";\nimport QuireMenu from \"../menu/menu.vue\";\nimport { useQuireKitLocale, useQuireKitMessages } from \"../locale-provider/context\";\nimport CommentField from \"./field.vue\";\nimport CommentMessage from \"./message.vue\";\nimport { formatCommentTime } from \"./presentation\";\nimport type { QuireKitCommentMention, QuireKitCommentMessage, QuireKitCommentThreadProps } from \"./types\";\n\nconst props = withDefaults(defineProps<QuireKitCommentThreadProps>(), {\n quoteState: \"text\", variant: \"card\", resolved: false, active: false, resolvable: false, replyable: false, busy: false,\n});\nconst emit = defineEmits<{\n /** The card or its quote was chosen; hosts focus the thread and reveal its text. */ activate: [];\n /** Resolve was requested. */ resolve: [];\n /** Reopen was requested. */ reopen: [];\n /** A reply was submitted, with the people mentioned in it. */ reply: [body: string, mentions: readonly QuireKitCommentMention[]];\n /** An edited message was saved, with the people still mentioned. */ edit: [messageId: string, body: string, mentions: readonly QuireKitCommentMention[]];\n /** Deleting a message was requested; the root id means the whole thread. */ delete: [messageId: string];\n /** The previous thread in `position` order was requested. */ previous: [];\n /** The next thread in `position` order was requested. */ next: [];\n}>();\ndefineSlots<{\n /** Formatted message content; defaults to plain text with preserved line breaks. */\n body?: (props: { readonly message: QuireKitCommentMessage }) => unknown;\n /** Replaces the built-in plain-text editor, e.g. with a rich editor; the host saves and cancels through `editingId`. */\n editor?: (props: { readonly message: QuireKitCommentMessage }) => unknown;\n}>();\n/** Message being edited; bind it to own editing, otherwise the card keeps it locally. */\nconst editing = defineModel<string | null>(\"editingId\", { default: null });\n/** Unsent reply; bind it to keep drafts outside the card. */\nconst reply = defineModel<string>(\"replyDraft\", { default: \"\" });\n/** Whether the reply field is open; bind it together with `replyDraft`. */\nconst replying = defineModel<boolean>(\"replyOpen\", { default: false });\nconst text = useQuireKitMessages(\"comment\"), locale = useQuireKitLocale(), instance = getCurrentInstance();\nconst replyField = shallowRef<InstanceType<typeof CommentField>>(), editDraft = shallowRef(\"\");\n/** @returns Whether the host binds the reply draft and therefore clears it itself after a send succeeds. */\nconst hostOwnsReply = (): boolean => { const bound = instance?.vnode.props ?? {}; return \"replyDraft\" in bound || \"reply-draft\" in bound; };\nconst root = computed(() => props.messages[0]);\nconst stepping = computed(() => props.active && !!props.position && props.position.total > 1);\nconst expanded = computed(() => props.active || replying.value || editing.value !== null);\nconst visible = computed(() => expanded.value ? props.messages : props.messages.slice(0, 1));\nconst quoteText = computed(() => props.quoteState === \"text\" ? props.quote ?? \"\" : props.quoteState === \"none\" ? \"\"\n : props.quoteLabel ?? { point: text.value.point, deleted: text.value.quoteDeleted, unavailable: text.value.quoteUnavailable }[props.quoteState]);\nconst rootActions = computed<readonly QuireKitMenuEntry[]>(() => [\n ...(root.value?.editable && editing.value !== root.value.id ? [{ value: \"edit\", label: text.value.edit, icon: \"edit\", disabled: props.busy }] : []),\n ...(root.value?.deletable ? [{ value: \"delete\", label: text.value.delete, icon: \"trash\", tone: \"danger\" as const, disabled: props.busy }] : []),\n]);\n// A thread that loses focus keeps its reply draft but closes the field when the draft is empty.\nwatch(() => props.active, active => { if (!active && !reply.value.trim()) replying.value = false; });\n\n/** Activates the card unless the click belongs to a field, link or nested control. @param event - Click inside the card. */\nfunction activateBody(event: MouseEvent): void {\n const target = event.target as HTMLElement;\n if (!props.active && !target.closest(\"button, a, input, textarea, [contenteditable], [role=menu]\")) emit(\"activate\");\n}\n\n/** @param message - Message to edit. */\nfunction startEdit(message: QuireKitCommentMessage): void { editing.value = message.id; editDraft.value = message.body; }\n\n/** @param mentions - People still mentioned. Emits the edited text and leaves edit mode. */\nfunction saveEdit(mentions: readonly QuireKitCommentMention[]): void {\n if (editing.value === null || !editDraft.value.trim()) return;\n emit(\"edit\", editing.value, editDraft.value, mentions); editing.value = null;\n}\n\n/** @param value - Root menu entry. */\nfunction selectRoot(value: string): void {\n if (!root.value || props.busy) return;\n if (value === \"edit\") startEdit(root.value);\n else if (value === \"delete\") emit(\"delete\", root.value.id);\n}\n\n/** Submits the reply and clears the field. */\nfunction sendReply(): void {\n if (props.busy || !reply.value.trim()) return;\n emit(\"reply\", reply.value, replyField.value?.mentions() ?? []);\n if (!hostOwnsReply()) { reply.value = \"\"; replying.value = false; }\n}\n\n/** Clears and closes the reply field. */\nfunction cancelReply(): void { reply.value = \"\"; replying.value = false; }\n</script>\n\n<template>\n <QuireCard as=\"article\" :variant=\"variant === 'plain' ? 'plain' : 'outline'\" density=\"compact\" :class=\"['qk-comment-thread', { 'qk-comment-thread--plain': variant === 'plain' }]\" :aria-label=\"root?.author.name\"\n :data-active=\"active || undefined\" :data-resolved=\"resolved || undefined\" @click=\"activateBody\">\n <template #header>\n <div class=\"qk-comment-thread__header\">\n <button type=\"button\" class=\"qk-comment-thread__target\" :aria-current=\"active ? 'true' : undefined\" @click=\"emit('activate')\">\n <QuireAvatar size=\"xs\" :name=\"root?.author.name ?? ''\" :src=\"root?.author.avatar\" />\n <strong class=\"qk-comment-thread__author\">{{ root?.author.name }}</strong>\n <QuireTag v-if=\"root?.author.badge\" size=\"xs\" color=\"primary\">{{ root.author.badge }}</QuireTag>\n <time v-if=\"root\" class=\"qk-comment-thread__time\" :datetime=\"root.time\" :title=\"root.time\">{{ formatCommentTime(root.time, locale) }}</time>\n </button>\n <div class=\"qk-comment-thread__actions\">\n <div v-if=\"stepping\" class=\"qk-comment-thread__stepper\">\n <QuireIconButton size=\"xs\" :label=\"text.previous\" :title=\"text.previous\" @click=\"emit('previous')\"><QuireIcon name=\"chevronUp\" /></QuireIconButton>\n <span class=\"qk-comment-thread__position\" :aria-label=\"text.position(position!.index, position!.total)\">{{ position!.index }} / {{ position!.total }}</span>\n <QuireIconButton size=\"xs\" :label=\"text.next\" :title=\"text.next\" @click=\"emit('next')\"><QuireIcon name=\"chevronDown\" /></QuireIconButton>\n </div>\n <QuireIconButton v-if=\"resolvable\" size=\"xs\" :color=\"resolved ? 'success' : 'neutral'\" :variant=\"resolved ? 'soft' : 'ghost'\"\n :disabled=\"busy\" :label=\"resolved ? text.reopen : text.resolve\" :title=\"resolved ? text.reopen : text.resolve\" :aria-pressed=\"resolved\"\n @click=\"resolved ? emit('reopen') : emit('resolve')\"><QuireIcon name=\"circleCheck\" /></QuireIconButton>\n <QuireMenu v-if=\"rootActions.length\" :aria-label=\"text.moreActions\" :items=\"rootActions\" placement=\"bottom-end\" @select=\"selectRoot\">\n <template #trigger>\n <QuireIconButton size=\"xs\" :label=\"text.moreActions\" :title=\"text.moreActions\"><QuireIcon name=\"moreHorizontal\" /></QuireIconButton>\n </template>\n </QuireMenu>\n </div>\n </div>\n </template>\n <button v-if=\"quoteState !== 'none'\" type=\"button\" class=\"qk-comment-thread__quote\" :data-state=\"quoteState\" :disabled=\"quoteState === 'unavailable'\"\n :title=\"quoteText\" :aria-label=\"text.goToQuote(quoteText)\" @click=\"emit('activate')\">{{ quoteText }}</button>\n <div class=\"qk-comment-thread__messages\">\n <CommentMessage v-for=\"(message, index) in visible\" :key=\"message.id\" :message=\"message\" :root=\"index === 0\" :busy=\"busy\"\n :editing=\"editing === message.id\" :draft=\"editDraft\" :mentions=\"mentions\" @edit=\"startEdit(message)\" @delete=\"emit('delete', message.id)\"\n @update:draft=\"editDraft = $event\" @save=\"saveEdit\" @cancel=\"editing = null\">\n <template v-if=\"$slots.body\" #body=\"slotProps\"><slot name=\"body\" v-bind=\"slotProps\" /></template>\n <template v-if=\"$slots.editor\" #editor=\"slotProps\"><slot name=\"editor\" v-bind=\"slotProps\" /></template>\n </CommentMessage>\n </div>\n <div v-if=\"!expanded && messages.length > 1\">\n <QuireButton variant=\"ghost\" size=\"xs\" @click=\"emit('activate')\">{{ text.replies(messages.length - 1) }}</QuireButton>\n </div>\n <span v-if=\"resolved\" class=\"qk-comment-thread__resolved\"><QuireIcon name=\"circleCheck\" :size=\"12\" />{{ text.resolved }}</span>\n <template v-if=\"replyable && !resolved && (active || replying)\" #footer>\n <div class=\"qk-comment-thread__composer\">\n <CommentField ref=\"replyField\" v-model=\"reply\" :placeholder=\"text.replyPlaceholder\" :label=\"text.reply\" :disabled=\"busy\" :mentions=\"mentions\"\n @focus=\"replying = true\" @submit=\"sendReply\" @cancel=\"cancelReply\" />\n <div v-if=\"replying\" class=\"qk-comment-thread__composer-actions\">\n <small>{{ text.submitHint }}</small>\n <QuireButton variant=\"ghost\" size=\"xs\" :disabled=\"busy\" @click=\"cancelReply\">{{ text.cancel }}</QuireButton>\n <QuireButton color=\"primary\" variant=\"solid\" size=\"xs\" :busy=\"busy\" :disabled=\"!reply.trim()\" @click=\"sendReply\">{{ text.send }}</QuireButton>\n </div>\n </div>\n </template>\n </QuireCard>\n</template>\n","<script setup lang=\"ts\">\nimport { onMounted, shallowRef } from \"vue\";\nimport QuireAvatar from \"../avatar/avatar.vue\";\nimport QuireButton from \"../button/button.vue\";\nimport QuireCard from \"../card/card.vue\";\nimport { useQuireKitMessages } from \"../locale-provider/context\";\nimport CommentField from \"./field.vue\";\nimport type { QuireKitCommentDraftProps, QuireKitCommentMention } from \"./types\";\n\nconst props = withDefaults(defineProps<QuireKitCommentDraftProps>(), { busy: false, variant: \"card\", autofocus: true });\nconst emit = defineEmits<{\n /** The new comment was submitted, with the people mentioned in it. */ submit: [body: string, mentions: readonly QuireKitCommentMention[]];\n /** The draft was abandoned. */ cancel: [];\n}>();\nconst text = useQuireKitMessages(\"comment\"), body = shallowRef(\"\"), field = shallowRef<InstanceType<typeof CommentField>>();\nonMounted(() => { if (props.autofocus) field.value?.focus(); });\n\n/** Submits a nonblank body; a plain draft stays in place and clears for the next comment. */\nfunction submit(): void {\n if (props.busy || !body.value.trim()) return;\n emit(\"submit\", body.value, field.value?.mentions() ?? []);\n if (props.variant === \"plain\") body.value = \"\";\n}\n/** Abandons the draft; a plain draft only clears its text. */\nfunction cancel(): void { if (props.variant === \"plain\") body.value = \"\"; emit(\"cancel\"); }\n</script>\n\n<template>\n <div v-if=\"variant === 'plain'\" class=\"qk-comment-draft--plain\" :aria-label=\"text.submit\">\n <CommentField ref=\"field\" v-model=\"body\" :rows=\"1\" :max-rows=\"6\" :placeholder=\"placeholder ?? text.draftPlaceholder\" :label=\"text.submit\" :disabled=\"busy\"\n :mentions=\"mentions\" @submit=\"submit\" @cancel=\"cancel\" />\n <div v-if=\"body.trim()\" class=\"qk-comment-thread__composer-actions\">\n <small>{{ text.submitHint }}</small>\n <QuireButton variant=\"ghost\" size=\"xs\" :disabled=\"busy\" @click=\"cancel\">{{ text.cancel }}</QuireButton>\n <QuireButton color=\"primary\" variant=\"solid\" size=\"xs\" :busy=\"busy\" @click=\"submit\">{{ text.submit }}</QuireButton>\n </div>\n </div>\n <QuireCard v-else as=\"section\" variant=\"outline\" density=\"compact\" class=\"qk-comment-thread qk-comment-draft\" data-active=\"\" :aria-label=\"text.submit\">\n <template v-if=\"author\" #header>\n <div class=\"qk-comment-thread__header\">\n <span class=\"qk-comment-thread__target\">\n <QuireAvatar size=\"xs\" :name=\"author.name\" :src=\"author.avatar\" />\n <strong class=\"qk-comment-thread__author\">{{ author.name }}</strong>\n </span>\n </div>\n </template>\n <span v-if=\"quote\" class=\"qk-comment-thread__quote\" data-state=\"text\" :title=\"quote\">{{ quote }}</span>\n <template #footer>\n <div class=\"qk-comment-thread__composer\">\n <CommentField ref=\"field\" v-model=\"body\" :rows=\"2\" :max-rows=\"6\" :placeholder=\"placeholder ?? text.draftPlaceholder\" :label=\"text.submit\" :disabled=\"busy\"\n :mentions=\"mentions\" @submit=\"submit\" @cancel=\"cancel\" />\n <div class=\"qk-comment-thread__composer-actions\">\n <small>{{ text.submitHint }}</small>\n <QuireButton variant=\"ghost\" size=\"xs\" :disabled=\"busy\" @click=\"cancel\">{{ text.cancel }}</QuireButton>\n <QuireButton color=\"primary\" variant=\"solid\" size=\"xs\" :busy=\"busy\" :disabled=\"!body.trim()\" @click=\"submit\">{{ text.submit }}</QuireButton>\n </div>\n </div>\n </template>\n </QuireCard>\n</template>\n","<script setup lang=\"ts\">\nimport { computed, onBeforeUnmount, shallowRef } from \"vue\";\nimport { layoutQuireCommentRail } from \"../../components/comment-rail\";\nimport type { QuireKitCommentRailItem, QuireKitCommentRailProps } from \"./types\";\n\nconst props = withDefaults(defineProps<QuireKitCommentRailProps>(), { height: 0, gap: 12 });\ndefineSlots<{\n /** One card; positioned by the rail at its anchor or just below the previous card. */\n item: (props: { readonly item: QuireKitCommentRailItem }) => unknown;\n}>();\nconst heights = shallowRef<ReadonlyMap<string, number>>(new Map());\nconst elements = new Map<Element, string>();\nconst observer = typeof ResizeObserver === \"undefined\" ? null : new ResizeObserver(entries => {\n // One batched update per observer callback; layout is a single pass over the items.\n const next = new Map(heights.value);\n for (const entry of entries) {\n const id = elements.get(entry.target);\n if (id !== undefined) next.set(id, entry.borderBoxSize?.[0]?.blockSize ?? entry.target.getBoundingClientRect().height);\n }\n heights.value = next;\n});\nconst layout = computed(() => layoutQuireCommentRail(props.items.map(item => ({ anchorTop: item.anchorTop, cardHeight: heights.value.get(item.id) ?? 0 })), props.height, props.gap));\nonBeforeUnmount(() => observer?.disconnect());\n\n/** Tracks one card wrapper for height changes. @param element - Mounted wrapper, or null on unmount. @param id - Item id. */\nfunction track(element: unknown, id: string): void {\n for (const [known, value] of elements) if (value === id && known !== element) { observer?.unobserve(known); elements.delete(known); }\n if (element instanceof Element && !elements.has(element)) { elements.set(element, id); observer?.observe(element); }\n}\n</script>\n\n<template>\n <div class=\"qk-comment-rail\" :style=\"{ minHeight: `${layout.railHeight}px` }\">\n <div v-for=\"(item, index) in items\" :key=\"item.id\" :ref=\"element => track(element, item.id)\" class=\"qk-comment-rail__item\"\n :data-measured=\"heights.has(item.id) || undefined\" :style=\"{ insetBlockStart: `${layout.cardTops[index]}px` }\">\n <slot name=\"item\" :item=\"item\" />\n </div>\n </div>\n</template>\n","<script setup lang=\"ts\">\nimport { useId } from 'vue';\nimport type { QuireKitSeparatorProps } from './types';\nwithDefaults(defineProps<QuireKitSeparatorProps>(), {\n orientation: 'horizontal', position: 'center', type: 'solid', decorative: false, stretch: false\n});\ndefineSlots<{\n /** Static label or graphic with text; actions must remain outside this slot. */\n default?: () => unknown;\n}>();\nconst labelId = `qk-separator-${useId()}-label`;\n</script>\n<template>\n <div :class=\"['qk-separator', `qk-separator--${orientation}`, `qk-separator--${type}`, {\n 'qk-separator--inline': orientation === 'vertical' && !stretch && !(label || $slots.default),\n 'qk-separator--stretch': orientation === 'vertical' && stretch\n }]\"\n :role=\"decorative ? 'presentation' : 'separator'\"\n :aria-orientation=\"decorative ? undefined : orientation\"\n :aria-labelledby=\"!decorative && (label || $slots.default) ? labelId : undefined\"\n :data-orientation=\"orientation\">\n <span v-if=\"!(label || $slots.default) || position !== 'start'\" class=\"qk-separator__line\" aria-hidden=\"true\" />\n <span v-if=\"label || $slots.default\" :id=\"labelId\" class=\"qk-separator__label\"><slot>{{ label }}</slot></span>\n <span v-if=\"(label || $slots.default) && position !== 'end'\" class=\"qk-separator__line\" aria-hidden=\"true\" />\n </div>\n</template>\n","<script setup lang=\"ts\">\nimport type { QuireKitBreadcrumbSlotProps, QuireKitBreadcrumbItem } from './types';\nconst props = defineProps<QuireKitBreadcrumbSlotProps>();\nconst emit = defineEmits<{ navigate: [item: QuireKitBreadcrumbItem, event: MouseEvent] }>();\ndefineSlots<{\n /** Static content inside the native link or text node. */\n default?: (props: QuireKitBreadcrumbSlotProps) => unknown;\n /** Static leading content. */\n leading?: (props: QuireKitBreadcrumbSlotProps) => unknown;\n /** Static trailing content. */\n trailing?: (props: QuireKitBreadcrumbSlotProps) => unknown;\n}>();\n/** @param event - Native click retained for host router interception. */\nfunction navigate(event: MouseEvent): void {\n if (props.item.href && !props.item.disabled) emit('navigate', props.item, event);\n}\n</script>\n<template>\n <component :is=\"item.href && !item.disabled ? 'a' : 'span'\" class=\"qk-breadcrumb__link\"\n :href=\"item.href && !item.disabled ? item.href : undefined\" :target=\"item.href && !item.disabled ? item.target : undefined\"\n :rel=\"item.href && !item.disabled ? item.rel ?? (item.target === '_blank' ? 'noopener noreferrer' : undefined) : undefined\"\n :aria-current=\"current ? 'page' : undefined\" :aria-disabled=\"item.disabled || undefined\" @click=\"navigate\">\n <slot v-bind=\"props\">\n <span v-if=\"$slots.leading\" class=\"qk-breadcrumb__adornment\"><slot name=\"leading\" v-bind=\"props\" /></span>\n <span class=\"qk-breadcrumb__label\">{{ item.label }}</span>\n <span v-if=\"$slots.trailing\" class=\"qk-breadcrumb__adornment\"><slot name=\"trailing\" v-bind=\"props\" /></span>\n </slot>\n </component>\n</template>\n","import type { BreadcrumbProjection } from './types';\n/**\n * Preserves the root and nearest ancestors without changing original item identities.\n * @param length - Number of supplied path entries.\n * @param maxItems - Explicit display budget, including the overflow entry.\n * @returns Visible indices and the original ordered middle indices.\n */\nexport function projectBreadcrumb(length: number, maxItems?: number): BreadcrumbProjection {\n const indices = Array.from({ length }, (_, index) => index);\n if (maxItems === undefined || !Number.isFinite(maxItems)) return { visible: indices, hidden: [] };\n const limit = Math.max(3, Math.floor(maxItems));\n if (length <= limit) return { visible: indices, hidden: [] };\n const tail = length - (limit - 2);\n return { visible: [0, null, ...indices.slice(tail)], hidden: indices.slice(1, tail) };\n}\n","<script setup lang=\"ts\">\nimport { computed, ref, watch, type ComponentPublicInstance } from 'vue';\nimport { QuireIconButton } from '../button';\nimport { QuirePopoverRoot, QuirePopoverTrigger, QuirePopoverContent, QuirePopoverTitle, QuirePopoverCloseTrigger } from '../popover';\nimport Crumb from './crumb.vue';\nimport { projectBreadcrumb } from './projection';\nimport { useQuireKitMessages } from '../locale-provider/context';\nimport type { QuireKitBreadcrumbProps, QuireKitBreadcrumbSlotProps, QuireKitBreadcrumbItem } from './types';\nconst props = defineProps<QuireKitBreadcrumbProps>();\nconst text = useQuireKitMessages('breadcrumb');\nconst emit = defineEmits<{ navigate: [item: QuireKitBreadcrumbItem, event: MouseEvent] }>();\ndefineSlots<{\n /** Static item content; does not replace native link semantics. */\n item?: (props: QuireKitBreadcrumbSlotProps) => unknown;\n /** Static icon or context preceding the label. */\n leading?: (props: QuireKitBreadcrumbSlotProps) => unknown;\n /** Static metadata following the label. */\n trailing?: (props: QuireKitBreadcrumbSlotProps) => unknown;\n /** Decorative separator; hidden from assistive technology. */\n separator?: () => unknown;\n}>();\nconst projection = computed(() => projectBreadcrumb(props.items.length, props.maxItems));\nconst open = ref(false);\nconst surface = ref<HTMLElement | null>(null);\nwatch(() => [props.items, props.maxItems], () => { open.value = false; }, { deep: true });\n/** @param element - The one overflow surface inside the projected item loop. */\nfunction setSurface(element: Element | ComponentPublicInstance | null): void {\n surface.value = element instanceof HTMLElement ? element : null;\n}\n/** @returns First available hidden ancestor, or the close button for a static-only path. */\nfunction initialFocus(): HTMLElement | null {\n return surface.value?.querySelector<HTMLElement>('a[href]') ?? surface.value?.querySelector<HTMLElement>('button') ?? null;\n}\n/**\n * Closes the old path surface while leaving browser navigation under host control.\n * @param item - Activated original location.\n * @param event - Native click, including modifier keys and default prevention.\n */\nfunction navigate(item: QuireKitBreadcrumbItem, event: MouseEvent): void {\n open.value = false;\n emit('navigate', item, event);\n}\n</script>\n<template>\n <nav v-if=\"items.length\" class=\"qk-breadcrumb\" :aria-label=\"ariaLabel ?? text.label\">\n <ol class=\"qk-breadcrumb__list\">\n <li v-for=\"(index, position) in projection.visible\" :key=\"index === null ? 'overflow' : `item:${items[index]!.key}`\" class=\"qk-breadcrumb__item\">\n <span v-if=\"position\" class=\"qk-breadcrumb__separator\" aria-hidden=\"true\">\n <slot name=\"separator\"><svg class=\"qk-breadcrumb__chevron\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"m9 6 6 6-6 6\" /></svg></slot>\n </span>\n <QuirePopoverRoot v-if=\"index === null\" v-model:open=\"open\" :initial-focus-el=\"initialFocus\">\n <QuirePopoverTrigger as-child><QuireIconButton :label=\"text.overflow\" size=\"xs\"><svg viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\"><circle cx=\"5\" cy=\"12\" r=\"1.5\" /><circle cx=\"12\" cy=\"12\" r=\"1.5\" /><circle cx=\"19\" cy=\"12\" r=\"1.5\" /></svg></QuireIconButton></QuirePopoverTrigger>\n <QuirePopoverContent :show-arrow=\"false\" class=\"qk-breadcrumb__popover\">\n <div :ref=\"setSurface\" class=\"qk-breadcrumb__surface\">\n <div class=\"qk-breadcrumb__header\"><QuirePopoverTitle>{{ text.overflow }}</QuirePopoverTitle><QuirePopoverCloseTrigger :label=\"text.closeOverflow\" /></div>\n <ol class=\"qk-breadcrumb__hidden-list\">\n <li v-for=\"hiddenIndex in projection.hidden\" :key=\"items[hiddenIndex]!.key\" class=\"qk-breadcrumb__hidden-item\">\n <Crumb :item=\"items[hiddenIndex]!\" :index=\"hiddenIndex\" :current=\"false\" @navigate=\"navigate\">\n <template v-if=\"$slots.item\" #default=\"context\"><slot name=\"item\" v-bind=\"context\" /></template>\n <template v-if=\"$slots.leading\" #leading=\"context\"><slot name=\"leading\" v-bind=\"context\" /></template>\n <template v-if=\"$slots.trailing\" #trailing=\"context\"><slot name=\"trailing\" v-bind=\"context\" /></template>\n </Crumb>\n </li>\n </ol>\n </div>\n </QuirePopoverContent>\n </QuirePopoverRoot>\n <Crumb v-else :item=\"items[index]!\" :index=\"index\" :current=\"index === items.length - 1\" @navigate=\"navigate\">\n <template v-if=\"$slots.item\" #default=\"context\"><slot name=\"item\" v-bind=\"context\" /></template>\n <template v-if=\"$slots.leading\" #leading=\"context\"><slot name=\"leading\" v-bind=\"context\" /></template>\n <template v-if=\"$slots.trailing\" #trailing=\"context\"><slot name=\"trailing\" v-bind=\"context\" /></template>\n </Crumb>\n </li>\n </ol>\n </nav>\n</template>\n","<script setup lang=\"ts\">\nimport type { NavigationMenuSlots, QuireKitNavigationMenuItem } from './types';\ndefineProps<{ item: QuireKitNavigationMenuItem; current?: boolean }>();\ndefineSlots<NavigationMenuSlots>();\n</script>\n<template>\n <span v-if=\"$slots.leading\" class=\"qk-navigation-menu__adornment\"><slot name=\"leading\" :item=\"item\" :current=\"!!current\" /></span>\n <span class=\"qk-navigation-menu__copy\"><span>{{ item.label }}</span><span v-if=\"item.description\" class=\"qk-navigation-menu__description\">{{ item.description }}</span></span>\n <span v-if=\"$slots.trailing\" class=\"qk-navigation-menu__adornment\"><slot name=\"trailing\" :item=\"item\" :current=\"!!current\" /></span>\n</template>\n","<script setup lang=\"ts\">\nimport { NavigationMenu } from '@ark-ui/vue/navigation-menu';\nimport { computed } from 'vue';\nimport EntryContent from './entry-content.vue';\nimport type { NavigationMenuSlots, QuireKitNavigationMenuLink } from './types';\nconst props = defineProps<{ item: QuireKitNavigationMenuLink; currentKey?: string | undefined; disabled?: boolean | undefined; horizontal?: boolean; owner?: string }>();\nconst emit = defineEmits<{ navigate: [item: QuireKitNavigationMenuLink, event: MouseEvent] }>();\ndefineSlots<NavigationMenuSlots>();\nconst available = computed(() => !!props.item.href && !props.disabled && !props.item.disabled);\n/** @param event - Original activation, preserved for browser and host routing. */\nfunction navigate(event: MouseEvent): void {\n if (available.value) emit('navigate', props.item, event);\n}\n</script>\n<template>\n <component :is=\"available ? (horizontal ? NavigationMenu.Link : 'a') : 'span'\"\n :href=\"available ? item.href : undefined\" :target=\"available ? item.target : undefined\"\n :rel=\"available ? (item.rel ?? (item.target === '_blank' ? 'noopener noreferrer' : undefined)) : undefined\"\n v-bind=\"horizontal && available ? { current: item.key === currentKey, value: owner ?? item.key } : {}\"\n :aria-current=\"item.key === currentKey ? 'page' : undefined\" :aria-disabled=\"disabled || item.disabled || undefined\"\n class=\"qk-navigation-menu__link\" @click=\"navigate\">\n <EntryContent :item=\"item\" :current=\"item.key === currentKey\">\n <template v-if=\"$slots.leading\" #leading=\"context\"><slot name=\"leading\" v-bind=\"context\" /></template>\n <template v-if=\"$slots.trailing\" #trailing=\"context\"><slot name=\"trailing\" v-bind=\"context\" /></template>\n </EntryContent>\n </component>\n</template>\n","<script setup lang=\"ts\">\nimport Link from './link.vue';\nimport type { NavigationMenuSlots, QuireKitNavigationMenuItem, QuireKitNavigationMenuLink } from './types';\ndefineProps<{ items: readonly QuireKitNavigationMenuItem[]; currentKey?: string | undefined; disabled?: boolean | undefined; owner: string }>();\nconst emit = defineEmits<{ navigate: [item: QuireKitNavigationMenuLink, event: MouseEvent] }>();\ndefineSlots<NavigationMenuSlots>();\n</script>\n<template>\n <ul class=\"qk-navigation-menu__children\">\n <li v-for=\"item in items\" :key=\"item.key\" class=\"qk-navigation-menu__child\">\n <template v-if=\"item.children\">\n <span class=\"qk-navigation-menu__group-label\" :aria-disabled=\"disabled || item.disabled || undefined\">{{ item.label }}</span>\n <PanelTree :items=\"item.children\" :owner=\"owner\" :current-key=\"currentKey\" :disabled=\"disabled || item.disabled\" @navigate=\"(entry, event) => emit('navigate', entry, event)\">\n <template v-if=\"$slots.leading\" #leading=\"context\"><slot name=\"leading\" v-bind=\"context\" /></template>\n <template v-if=\"$slots.trailing\" #trailing=\"context\"><slot name=\"trailing\" v-bind=\"context\" /></template>\n </PanelTree>\n </template>\n <Link v-else :item=\"item\" :owner=\"owner\" horizontal :current-key=\"currentKey\" :disabled=\"disabled\" @navigate=\"(entry, event) => emit('navigate', entry, event)\">\n <template v-if=\"$slots.leading\" #leading=\"context\"><slot name=\"leading\" v-bind=\"context\" /></template>\n <template v-if=\"$slots.trailing\" #trailing=\"context\"><slot name=\"trailing\" v-bind=\"context\" /></template>\n </Link>\n </li>\n </ul>\n</template>\n","import type { QuireKitNavigationMenuItem } from './types';\n/**\n * Resolves ancestry without treating an expanded group as the current page.\n * @param item - Original branch or leaf.\n * @param key - Host's current location.\n * @returns Whether this entry contains the current leaf.\n */\nexport function containsCurrent(item: QuireKitNavigationMenuItem, key?: string): boolean {\n return item.children ? item.children.some(child => containsCurrent(child, key)) : item.key === key;\n}\n/**\n * Removes stale/disabled expansion identities and enforces horizontal single-panel ownership.\n * @param items - Current source tree.\n * @param values - Requested expansion keys.\n * @param vertical - Whether nested disclosure groups are permitted.\n * @param disabled - Whether the whole navigation is unavailable.\n * @returns Stable, deduplicated valid expansion keys.\n */\nexport function normalizeExpansion(items: readonly QuireKitNavigationMenuItem[], values: readonly string[], vertical: boolean, disabled = false): string[] {\n if (disabled) return [];\n const available = new Set<string>();\n /** @param entries - Enabled branch descendants to inspect. */\n function visit(entries: readonly QuireKitNavigationMenuItem[]): void {\n for (const item of entries) {\n if (item.disabled || !item.children?.length) continue;\n available.add(item.key);\n if (vertical) visit(item.children);\n }\n }\n visit(items);\n const valid = [...new Set(values)].filter(key => available.has(key));\n return vertical ? valid : valid.slice(0, 1);\n}\n\n/**\n * Selects a wider reading surface only when supporting copy requires it.\n * @param items - Panel descendants.\n * @returns Whether the panel contains rich descriptions.\n */\nexport function hasDescription(items: readonly QuireKitNavigationMenuItem[]): boolean {\n return items.some(item => Boolean(item.description) || Boolean(item.children && hasDescription(item.children)));\n}\n","<script setup lang=\"ts\">\nimport { useLocaleContext, DEFAULT_LOCALE } from '@ark-ui/vue/locale';\nimport { Collapsible } from '@ark-ui/vue/collapsible';\nimport Link from './link.vue';\nimport EntryContent from './entry-content.vue';\nimport { containsCurrent } from './projection';\nimport type { NavigationMenuSlots, QuireKitNavigationMenuItem, QuireKitNavigationMenuLink } from './types';\ndefineProps<{ items: readonly QuireKitNavigationMenuItem[]; expanded: readonly string[]; currentKey?: string | undefined; disabled?: boolean }>();\nconst emit = defineEmits<{ toggle: [key: string, open: boolean]; navigate: [item: QuireKitNavigationMenuLink, event: MouseEvent] }>();\ndefineSlots<NavigationMenuSlots>();\nconst locale = useLocaleContext(DEFAULT_LOCALE);\n</script>\n<template>\n <ul class=\"qk-navigation-menu__vertical-list\" :dir=\"locale.dir\">\n <li v-for=\"item in items\" :key=\"item.key\" class=\"qk-navigation-menu__child\">\n <Collapsible.Root v-if=\"item.children\" :open=\"expanded.includes(item.key)\" :disabled=\"disabled || item.disabled || (item.children !== undefined && !item.children.length)\" @update:open=\"open => emit('toggle', item.key, open)\">\n <Collapsible.Trigger class=\"qk-navigation-menu__trigger\" :data-current-parent=\"!disabled && !item.disabled && containsCurrent(item, currentKey) || undefined\">\n <EntryContent :item=\"item\">\n <template v-if=\"$slots.leading\" #leading=\"context\"><slot name=\"leading\" v-bind=\"context\" /></template>\n <template v-if=\"$slots.trailing\" #trailing=\"context\"><slot name=\"trailing\" v-bind=\"context\" /></template>\n </EntryContent>\n <Collapsible.Indicator class=\"qk-navigation-menu__indicator\"><svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" aria-hidden=\"true\"><path d=\"m6 9 6 6 6-6\" /></svg></Collapsible.Indicator>\n </Collapsible.Trigger>\n <Collapsible.Content class=\"qk-navigation-menu__disclosure\">\n <VerticalTree :items=\"item.children\" :expanded=\"expanded\" :current-key=\"currentKey\" :disabled=\"disabled || item.disabled || (item.children !== undefined && !item.children.length)\" @toggle=\"(key, open) => emit('toggle', key, open)\" @navigate=\"(entry, event) => emit('navigate', entry, event)\">\n <template v-if=\"$slots.leading\" #leading=\"context\"><slot name=\"leading\" v-bind=\"context\" /></template>\n <template v-if=\"$slots.trailing\" #trailing=\"context\"><slot name=\"trailing\" v-bind=\"context\" /></template>\n </VerticalTree>\n </Collapsible.Content>\n </Collapsible.Root>\n <Link v-else :item=\"item\" :current-key=\"currentKey\" :disabled=\"disabled\" @navigate=\"(entry, event) => emit('navigate', entry, event)\">\n <template v-if=\"$slots.leading\" #leading=\"context\"><slot name=\"leading\" v-bind=\"context\" /></template>\n <template v-if=\"$slots.trailing\" #trailing=\"context\"><slot name=\"trailing\" v-bind=\"context\" /></template>\n </Link>\n </li>\n </ul>\n</template>\n","/**\n * Bridges Zag 1.43's inline Content gap: its pointerleave handler ignores the\n * root's disablePointerLeaveClose flag (the Viewport handler respects it).\n * @param event - Content-only pointer leave, before Ark's bubble listener.\n * @param trigger - Public paired interaction policy.\n */\nexport function containPointerLeave(event: PointerEvent, trigger: 'click' | 'hover'): void {\n if (trigger === 'click') event.stopImmediatePropagation();\n}\n\n/**\n * Keeps mouse hover activation from becoming an unrelated click toggle, while\n * preserving native keyboard clicks and touch/pen activation through Ark.\n * @param event - Original trigger activation.\n * @param trigger - Public paired interaction policy.\n */\nexport function guardHoverClick(event: MouseEvent, trigger: 'click' | 'hover'): void {\n if (trigger === 'hover' && event.detail > 0 && (!('pointerType' in event) || event.pointerType === 'mouse')) {\n event.stopImmediatePropagation();\n }\n}\n","<script setup lang=\"ts\">\nimport { NavigationMenu } from '@ark-ui/vue/navigation-menu';\nimport { autoUpdate, computePosition, flip, offset, shift, size } from '@floating-ui/dom';\nimport { useTemplateRef, watchEffect } from 'vue';\nimport { containPointerLeave } from './interaction';\n\nconst props = withDefaults(defineProps<{ open: boolean; trigger: 'click' | 'hover'; side?: boolean; grid?: boolean; rich?: boolean }>(), { side: false, grid: false, rich: false });\nconst panel = useTemplateRef<HTMLDivElement>('panel');\n\n// Ark owns navigation and dismissal. Floating UI only projects the existing\n// trigger/content pair into viewport coordinates, including RTL and edge flips; only grid panels align with the whole bar.\nwatchEffect(onCleanup => {\n const content = panel.value;\n if (!props.open || !content) return;\n const triggerElement = content.ownerDocument.getElementById(content.getAttribute('aria-labelledby') ?? '');\n if (!triggerElement) return;\n const root = triggerElement.closest<HTMLElement>('[data-scope=navigation-menu][data-part=root]');\n const bar = root?.querySelector<HTMLElement>(':scope > [data-part=list]');\n const anchor = props.grid && bar ? bar : triggerElement;\n let active = true;\n const stop = autoUpdate(anchor, content, () => {\n const availableWidth = content.ownerDocument.documentElement.clientWidth - 16;\n const desiredWidth = props.side ? 240 : props.grid ? Math.min(768, root?.clientWidth ?? 768) : props.rich ? 384 : 240;\n content.style.width = `${Math.max(0, Math.min(desiredWidth, availableWidth))}px`;\n void computePosition(anchor, content, {\n placement: props.side ? (getComputedStyle(anchor).direction === 'rtl' ? 'left-start' : 'right-start') : 'bottom-start',\n strategy: 'fixed',\n middleware: [offset(8), flip({ padding: 8 }), shift({ padding: 8 }), size({\n padding: 8,\n apply({ availableHeight, elements }) {\n elements.floating.style.maxHeight = `${Math.max(0, Math.min(availableHeight, content.ownerDocument.defaultView!.innerHeight * 0.7, 432))}px`;\n }\n })]\n }).then(({ x, y }) => {\n if (active) Object.assign(content.style, { left: `${x}px`, top: `${y}px`, visibility: 'visible' });\n });\n });\n onCleanup(() => { active = false; stop(); content.style.visibility = 'hidden'; });\n}, { flush: 'post' });\n</script>\n\n<template>\n <NavigationMenu.Content as-child @pointerleave.capture=\"containPointerLeave($event, trigger)\">\n <div ref=\"panel\" :class=\"['qk-navigation-menu__panel', 'qk-navigation-menu__positioned', side && 'qk-navigation-menu__flyout', grid ? 'qk-navigation-menu__panel--grid' : rich && 'qk-navigation-menu__panel--rich']\"><slot /></div>\n </NavigationMenu.Content>\n</template>\n","<script setup lang=\"ts\">\nimport { NavigationMenu } from '@ark-ui/vue/navigation-menu';\nimport { computed, ref, watch } from 'vue';\nimport { QuireTooltipRoot, QuireTooltipTrigger, QuireTooltipContent } from '../tooltip';\nimport Link from './link.vue';\nimport VerticalTree from './vertical-tree.vue';\nimport PositionedContent from './positioned-content.vue';\nimport { containsCurrent, normalizeExpansion } from './projection';\nimport { guardHoverClick } from './interaction';\nimport type { NavigationMenuSlots, QuireKitNavigationMenuItem, QuireKitNavigationMenuLink } from './types';\n\nconst props = defineProps<{ items: readonly QuireKitNavigationMenuItem[]; expanded: readonly string[]; currentKey?: string | undefined; disabled: boolean; trigger: 'click' | 'hover'; tooltip: boolean }>();\nconst emit = defineEmits<{ toggle: [key: string, open: boolean]; navigate: [item: QuireKitNavigationMenuLink, event: MouseEvent] }>();\ndefineSlots<NavigationMenuSlots>();\nconst opened = ref('');\nconst valid = computed(() => normalizeExpansion(props.items, [opened.value], false, props.disabled)[0] ?? '');\nwatch(valid, value => { opened.value = value; });\nwatch(() => props.trigger, () => { opened.value = ''; });\n/** @param item - Native destination. @param event - Original host-routing event. */\nfunction navigate(item: QuireKitNavigationMenuLink, event: MouseEvent): void {\n opened.value = '';\n emit('navigate', item, event);\n}\n</script>\n\n<template>\n <NavigationMenu.Root as-child :value=\"valid\" orientation=\"vertical\" :disable-hover-trigger=\"trigger === 'click'\" :disable-pointer-leave-close=\"trigger === 'click'\" @update:value=\"opened = $event\">\n <div>\n <NavigationMenu.List as-child>\n <ul class=\"qk-navigation-menu__vertical-list\">\n <NavigationMenu.Item v-for=\"item in items\" :key=\"item.key\" :value=\"item.key\" :disabled=\"disabled || item.disabled\" as-child>\n <li class=\"qk-navigation-menu__item\">\n <QuireTooltipRoot :disabled=\"!tooltip || valid === item.key\" placement=\"right\" :open-delay=\"300\">\n <QuireTooltipTrigger as-child>\n <span class=\"inline-flex\">\n <NavigationMenu.Trigger v-if=\"item.children\" :disabled=\"disabled || item.disabled || !item.children.length\" :aria-label=\"item.label\" class=\"qk-navigation-menu__trigger qk-navigation-menu__rail-button\" :data-current-parent=\"!disabled && !item.disabled && containsCurrent(item, currentKey) || undefined\" @click.capture=\"guardHoverClick($event, trigger)\">\n <span class=\"qk-navigation-menu__adornment\" aria-hidden=\"true\"><slot name=\"leading\" :item=\"item\" :current=\"false\">{{ item.label.slice(0, 1) }}</slot></span>\n <span class=\"sr-only\">{{ item.label }}</span>\n </NavigationMenu.Trigger>\n <Link v-else :item=\"item\" :current-key=\"currentKey\" :disabled=\"disabled\" horizontal class=\"qk-navigation-menu__rail-button\" @navigate=\"navigate\">\n <template #leading=\"context\"><span aria-hidden=\"true\"><slot name=\"leading\" v-bind=\"context\">{{ item.label.slice(0, 1) }}</slot></span></template>\n </Link>\n </span>\n </QuireTooltipTrigger>\n <QuireTooltipContent :content=\"item.label\" :show-arrow=\"false\" />\n </QuireTooltipRoot>\n <PositionedContent side v-if=\"item.children\" :open=\"valid === item.key\" :trigger=\"trigger\">\n <span class=\"qk-navigation-menu__group-label\">{{ item.label }}</span>\n <VerticalTree :items=\"item.children\" :expanded=\"expanded\" :current-key=\"currentKey\" :disabled=\"disabled || !!item.disabled\" @toggle=\"(key, open) => emit('toggle', key, open)\" @navigate=\"navigate\">\n <template v-if=\"$slots.leading\" #leading=\"context\"><slot name=\"leading\" v-bind=\"context\" /></template>\n <template v-if=\"$slots.trailing\" #trailing=\"context\"><slot name=\"trailing\" v-bind=\"context\" /></template>\n </VerticalTree>\n </PositionedContent>\n </li>\n </NavigationMenu.Item>\n </ul>\n </NavigationMenu.List>\n </div>\n </NavigationMenu.Root>\n</template>\n","<script setup lang=\"ts\">\nimport { LocaleProvider } from '@ark-ui/vue/locale';\nimport { NavigationMenu } from '@ark-ui/vue/navigation-menu';\nimport { computed, ref, watch } from 'vue';\nimport Link from './link.vue';\nimport EntryContent from './entry-content.vue';\nimport PanelTree from './panel-tree.vue';\nimport VerticalTree from './vertical-tree.vue';\nimport Collapsed from './collapsed.vue';\nimport PositionedContent from './positioned-content.vue';\nimport { guardHoverClick } from './interaction';\nimport { containsCurrent, normalizeExpansion, hasDescription } from './projection';\nimport { useQuireKitLocale, useQuireKitMessages } from '../locale-provider/context';\nimport type { NavigationMenuSlots, QuireKitNavigationMenuProps, QuireKitNavigationMenuLink } from './types';\nconst props = withDefaults(defineProps<QuireKitNavigationMenuProps>(), { orientation: 'horizontal', panelLayout: 'list', size: 'sm', density: 'regular', disabled: false, trigger: 'click', highlight: true, collapsed: false, tooltip: true, defaultValue: () => [] });\ndefineOptions({ inheritAttrs: false });\nconst locale = useQuireKitLocale();\nconst text = useQuireKitMessages('navigationMenu');\nconst label = computed(() => props.ariaLabel ?? text.value.label);\n/** 展开分组的 key 数组,与当前路由分开控制。 */\nconst value = defineModel<string[]>('value');\nconst local = ref([...props.defaultValue]);\nconst emit = defineEmits<{ navigate: [item: QuireKitNavigationMenuLink, event: MouseEvent] }>();\ndefineSlots<NavigationMenuSlots>();\nconst expanded = computed(() => normalizeExpansion(props.items, value.value ?? local.value, props.orientation === 'vertical', props.disabled));\n/** @param keys - Expansion identities produced by the owning Ark primitive. */\nfunction update(keys: string[]): void { local.value = keys; value.value = keys; }\nwatch(() => props.trigger, () => { if (props.orientation === 'horizontal') update([]); });\nwatch(expanded, keys => {\n if (JSON.stringify(keys) !== JSON.stringify(value.value ?? local.value)) update(keys);\n}, { immediate: true });\n/** @param key - Vertical group identity. @param open - Ark disclosure's next state. */\nfunction toggle(key: string, open: boolean): void {\n update(open ? [...expanded.value, key] : expanded.value.filter(value => value !== key));\n}\n/**\n * Completes an ordinary link activation even when the host handles routing.\n * @param item - Activated destination.\n * @param event - Original event retained for native or client-side routing.\n */\nfunction navigate(item: QuireKitNavigationMenuLink, event: MouseEvent): void {\n if (props.orientation === 'horizontal' && !event.metaKey && !event.ctrlKey && !event.shiftKey && !event.altKey) update([]);\n emit('navigate', item, event);\n}\n</script>\n<template>\n <LocaleProvider :locale=\"locale\">\n <component :is=\"orientation === 'horizontal' ? NavigationMenu.Root : 'nav'\" v-if=\"items.length\" :aria-label=\"label\"\n v-bind=\"{ ...$attrs, ...(orientation === 'horizontal' ? { value: expanded[0] ?? '', disableClickTrigger: false, disableHoverTrigger: trigger === 'click', disablePointerLeaveClose: trigger === 'click', translations: { rootLabel: label } } : {}) }\"\n :class=\"['qk-navigation-menu', orientation === 'horizontal' && `qk-navigation-menu--${size}`, `qk-navigation-menu--${orientation}`, `qk-navigation-menu--density-${density}`, orientation === 'vertical' && collapsed && 'qk-navigation-menu--collapsed', !highlight && 'qk-navigation-menu--plain']\"\n @update:value=\"(key: string) => update(key ? [key] : [])\">\n <NavigationMenu.List v-if=\"orientation === 'horizontal'\" as-child>\n <ul class=\"qk-navigation-menu__list\">\n <NavigationMenu.Item v-for=\"item in items\" :key=\"item.key\" :value=\"item.key\" :disabled=\"disabled || item.disabled || (item.children !== undefined && !item.children.length)\" as-child>\n <li class=\"qk-navigation-menu__item\">\n <template v-if=\"item.children\">\n <NavigationMenu.Trigger @click.capture=\"guardHoverClick($event, trigger)\" :disabled=\"disabled || item.disabled || !item.children.length\" class=\"qk-navigation-menu__trigger\" :data-current-parent=\"!disabled && !item.disabled && containsCurrent(item, currentKey) || undefined\">\n <EntryContent :item=\"item\">\n <template v-if=\"$slots.leading\" #leading=\"context\"><slot name=\"leading\" v-bind=\"context\" /></template>\n <template v-if=\"$slots.trailing\" #trailing=\"context\"><slot name=\"trailing\" v-bind=\"context\" /></template>\n </EntryContent>\n <span class=\"qk-navigation-menu__indicator\"><svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" aria-hidden=\"true\"><path d=\"m6 9 6 6 6-6\" /></svg></span>\n </NavigationMenu.Trigger>\n <PositionedContent :open=\"expanded[0] === item.key\" :trigger=\"trigger\" :grid=\"panelLayout === 'grid'\" :rich=\"hasDescription(item.children)\">\n <PanelTree :items=\"item.children\" :owner=\"item.key\" :current-key=\"currentKey\" :disabled=\"disabled || item.disabled || (item.children !== undefined && !item.children.length)\" @navigate=\"navigate\">\n <template v-if=\"$slots.leading\" #leading=\"context\"><slot name=\"leading\" v-bind=\"context\" /></template>\n <template v-if=\"$slots.trailing\" #trailing=\"context\"><slot name=\"trailing\" v-bind=\"context\" /></template>\n </PanelTree>\n </PositionedContent>\n </template>\n <Link v-else :item=\"item\" horizontal :current-key=\"currentKey\" :disabled=\"disabled\" @navigate=\"navigate\">\n <template v-if=\"$slots.leading\" #leading=\"context\"><slot name=\"leading\" v-bind=\"context\" /></template>\n <template v-if=\"$slots.trailing\" #trailing=\"context\"><slot name=\"trailing\" v-bind=\"context\" /></template>\n </Link>\n </li>\n </NavigationMenu.Item>\n </ul>\n </NavigationMenu.List>\n <Collapsed v-else-if=\"collapsed\" :items=\"items\" :expanded=\"expanded\" :current-key=\"currentKey\" :disabled=\"disabled\" :trigger=\"trigger\" :tooltip=\"tooltip\" :aria-label=\"label\" @toggle=\"toggle\" @navigate=\"(entry, event) => emit('navigate', entry, event)\">\n <template v-if=\"$slots.leading\" #leading=\"context\"><slot name=\"leading\" v-bind=\"context\" /></template>\n <template v-if=\"$slots.trailing\" #trailing=\"context\"><slot name=\"trailing\" v-bind=\"context\" /></template>\n </Collapsed>\n <VerticalTree v-else :items=\"items\" :expanded=\"expanded\" :current-key=\"currentKey\" :disabled=\"disabled\" @toggle=\"toggle\" @navigate=\"(entry, event) => emit('navigate', entry, event)\">\n <template v-if=\"$slots.leading\" #leading=\"context\"><slot name=\"leading\" v-bind=\"context\" /></template>\n <template v-if=\"$slots.trailing\" #trailing=\"context\"><slot name=\"trailing\" v-bind=\"context\" /></template>\n </VerticalTree>\n </component>\n </LocaleProvider>\n</template>\n","import type { QuireKitCommandPaletteGroup } from './types';\n/**\n * Keeps group and command order while matching every normalized query term.\n * @param groups - Original immutable commands.\n * @param search - User query, including composition drafts.\n * @param local - Whether the component owns filtering.\n * @returns Nonempty groups containing matching commands.\n */\nexport function filterCommandGroups(groups: readonly QuireKitCommandPaletteGroup[], search: string, local: boolean): QuireKitCommandPaletteGroup[] {\n const terms = search.trim().toLocaleLowerCase().split(/\\s+/u).filter(Boolean);\n return groups.map(group => ({ ...group, items: group.items.filter(item => {\n if (!local || !terms.length) return true;\n const haystack = [item.label, item.description ?? '', ...(item.keywords ?? [])].join(' ').toLocaleLowerCase();\n return terms.every(term => haystack.includes(term));\n }) })).filter(group => group.items.length > 0);\n}\n","<script setup lang=\"ts\">\nimport { Combobox, createListCollection, useCombobox, type UseComboboxProps } from '@ark-ui/vue/combobox';\nimport { computed, ref, watch } from 'vue';\nimport QuireIcon from '../icon/icon.vue';\nimport QuireIconButton from '../button/icon-button.vue';\nimport QuireButton from '../button/button.vue';\nimport QuireKbd from '../kbd/kbd.vue';\nimport QuireEmptyState from '../empty-state/empty-state.vue';\nimport { filterCommandGroups } from './projection';\nimport { useQuireKitMessages } from '../locale-provider/context';\nimport type { CommandPaletteSlots, QuireKitCommandPaletteProps, QuireKitCommandPaletteItem } from './types';\nconst props = withDefaults(defineProps<QuireKitCommandPaletteProps>(), {\n defaultSearch: '', size: 'sm', density: 'regular', filter: 'local', loading: false, busy: false, disabled: false,\n errorText: '', autoFocus: false\n});\nconst text = useQuireKitMessages('commandPalette');\nconst emit = defineEmits<{ 'update:search': [search: string]; select: [item: QuireKitCommandPaletteItem]; retry: []; escape: [event: KeyboardEvent] }>();\ndefineSlots<CommandPaletteSlots>();\nconst root = ref<HTMLElement>();\nconst local = ref(props.defaultSearch);\nconst composing = ref(false);\nconst query = computed(() => props.search ?? local.value);\nconst groups = computed(() => filterCommandGroups(props.groups, query.value, props.filter === 'local'));\nconst blocked = computed(() => props.disabled || props.loading || props.busy || !!props.errorText);\nconst collection = computed(() => createListCollection({\n items: groups.value.flatMap(group => group.items),\n itemToValue: item => item.key, itemToString: item => item.label,\n isItemDisabled: item => blocked.value || !!item.disabled\n}));\nconst highlighted = ref('');\n// Reconcile changed results without executing a command or replacing the input node.\nwatch(collection, next => {\n const item = next.find(highlighted.value);\n if (!item || next.getItemDisabled(item)) highlighted.value = '';\n});\n// Root 5.39.1 declares select but omits its callback bridge; the public hook preserves it.\nconst emptySelection: string[] = [];\nconst combobox = useCombobox(computed<UseComboboxProps<QuireKitCommandPaletteItem>>(() => ({\n collection: collection.value, modelValue: emptySelection, inputValue: query.value,\n highlightedValue: highlighted.value, open: true, disableLayer: true,\n disabled: props.disabled, autoFocus: props.autoFocus, closeOnSelect: false, loopFocus: true,\n selectionBehavior: 'preserve' as const, inputBehavior: 'autohighlight' as const,\n onInputValueChange: details => updateSearch(details.inputValue),\n onHighlightChange: details => { highlighted.value = details.highlightedValue ?? ''; },\n onSelect: select\n})));\n/** @returns The owned input, for Dialog initial focus. */\nfunction getInputElement(): HTMLInputElement | null { return root.value?.querySelector('input') ?? null; }\n/** Focuses the search field without changing its query. */\nfunction focus(): void { getInputElement()?.focus(); }\n/** @param search - Ark's latest visible input text. */\nfunction updateSearch(search: string): void { local.value = search; emit('update:search', search); }\n/** @param details - Each Ark activation, even when its value repeats. */\nfunction select(details: { itemValue: string }): void {\n const item = collection.value.find(details.itemValue);\n if (item && !blocked.value && !item.disabled && !composing.value) emit('select', item);\n}\n/** @param event - Escape belongs to the host task, not a second popup layer. */\nfunction escape(event: KeyboardEvent): void {\n if (event.key !== 'Escape' || event.isComposing || event.keyCode === 229 || composing.value) return;\n event.preventDefault(); event.stopPropagation(); emit('escape', event);\n}\n/** Clears text through the public model and preserves input focus. */\nfunction clear(): void { updateSearch(''); focus(); }\ndefineExpose({ focus, getInputElement });\n</script>\n<template>\n <section ref=\"root\" :class=\"['qk-command-palette', `qk-command-palette--density-${density}`]\" @keydown.capture=\"escape\">\n <Combobox.RootProvider :value=\"combobox\" class=\"qk-command-palette__root\">\n <Combobox.Label class=\"sr-only\">{{ label }}</Combobox.Label>\n <Combobox.Control :class=\"['qk-input', `qk-input--${size}`, disabled && 'qk-input--disabled', 'qk-command-palette__control']\">\n <span class=\"qk-input__adornment\" aria-hidden=\"true\"><QuireIcon name=\"search\" :size=\"16\" /></span>\n <Combobox.Input class=\"qk-input__field\" :placeholder=\"placeholder ?? text.placeholder\" @compositionstart=\"composing = true\" @compositionend=\"composing = false\" />\n <QuireIconButton v-if=\"query\" :label=\"text.clear\" size=\"xs\" :disabled=\"disabled\" @pointerdown.prevent @click=\"clear\"><QuireIcon name=\"close\" :size=\"16\" /></QuireIconButton>\n </Combobox.Control>\n <div class=\"qk-command-palette__viewport\" :aria-busy=\"loading || busy || undefined\">\n <div v-if=\"loading\" class=\"qk-command-palette__state\" role=\"status\">{{ text.loading }}</div>\n <div v-else-if=\"errorText\" class=\"qk-command-palette__state\">\n <p role=\"alert\" class=\"qk-command-palette__error\">{{ errorText }}</p>\n <QuireButton :size=\"size\" :disabled=\"disabled\" @click=\"emit('retry')\">{{ text.retry }}</QuireButton>\n </div>\n <Combobox.Content class=\"qk-command-palette__results\" v-show=\"!loading && !errorText && groups.length\">\n <Combobox.ItemGroup v-for=\"group in groups\" :key=\"group.key\" class=\"qk-command-palette__group\">\n <Combobox.ItemGroupLabel class=\"qk-command-palette__group-label\">{{ group.label }}</Combobox.ItemGroupLabel>\n <Combobox.Item v-for=\"item in group.items\" :key=\"item.key\" :item=\"item\" class=\"qk-command-palette__item\">\n <span v-if=\"$slots.leading\" class=\"qk-command-palette__adornment\" aria-hidden=\"true\"><slot name=\"leading\" :item=\"item\" /></span>\n <span class=\"qk-command-palette__copy\">\n <Combobox.ItemText>{{ item.label }}</Combobox.ItemText>\n <span v-if=\"item.description\" class=\"qk-command-palette__description\">{{ item.description }}</span>\n <span v-if=\"item.disabled && item.disabledReason\" class=\"qk-command-palette__description\">{{ item.disabledReason }}</span>\n </span>\n <span v-if=\"$slots.trailing || item.keys?.length\" class=\"qk-command-palette__trailing\">\n <slot name=\"trailing\" :item=\"item\"><QuireKbd v-if=\"item.keys?.length\" :keys=\"item.keys\" :size=\"density === 'compact' ? 'xs' : 'sm'\" /></slot>\n </span>\n </Combobox.Item>\n </Combobox.ItemGroup>\n </Combobox.Content>\n <div v-if=\"!loading && !errorText && !groups.length\" class=\"qk-command-palette__state\"><QuireEmptyState size=\"sm\" :title=\"text.empty\" :description=\"text.emptyHint\" /></div>\n </div>\n </Combobox.RootProvider>\n <p v-if=\"busy\" role=\"status\" class=\"qk-command-palette__status\">{{ text.busy }}</p>\n <footer v-if=\"$slots.footer\" class=\"qk-command-palette__footer\"><slot name=\"footer\" /></footer>\n </section>\n</template>\n","<script setup lang=\"ts\">\nimport { computed, ref } from 'vue';\nimport { QuireDialogRoot, QuireDialogContent, QuireDialogTrigger } from '../dialog';\nimport QuireCommandPalette from './command-palette.vue';\nimport type { CommandPaletteDialogSlots, QuireKitCommandPaletteDialogProps, QuireKitCommandPaletteItem } from './types';\nconst props = withDefaults(defineProps<QuireKitCommandPaletteDialogProps>(), { defaultOpen: false });\nconst emit = defineEmits<{ 'update:open': [open: boolean]; 'update:search': [search: string]; select: [item: QuireKitCommandPaletteItem]; retry: [] }>();\ndefineSlots<CommandPaletteDialogSlots>();\nconst localOpen = ref(props.defaultOpen);\nconst visible = computed(() => props.open ?? localOpen.value);\nconst palette = ref<InstanceType<typeof QuireCommandPalette>>();\nconst query = ref(props.defaultSearch ?? '');\nconst search = computed(() => props.search ?? query.value);\nconst paletteProps = computed(() => {\n const { title: _title, description: _description, open: _open, defaultOpen: _defaultOpen, finalFocusEl: _finalFocusEl, ...rest } = props;\n return rest;\n});\n/** @param open - Dialog's next visibility. */\nfunction updateOpen(open: boolean): void { localOpen.value = open; emit('update:open', open); }\n/** @param value - Query survives Dialog content unmounts. */\nfunction updateSearch(value: string): void { query.value = value; emit('update:search', value); }\n/** @returns Search input used by Ark's modal focus trap. */\nfunction initialFocusEl(): HTMLElement | null { return palette.value?.getInputElement() ?? null; }\n/** @param event - Dialog Escape; composition cancellation belongs to the IME. */\nfunction escape(event: KeyboardEvent): void {\n if (event.isComposing || event.keyCode === 229) { event.preventDefault(); return; }\n updateOpen(false);\n}\n</script>\n<template>\n <QuireDialogRoot :open=\"visible\" :initial-focus-el=\"initialFocusEl\" :close-on-escape=\"false\" v-bind=\"finalFocusEl ? { finalFocusEl } : {}\" @update:open=\"updateOpen\" @escape-key-down=\"escape\">\n <QuireDialogTrigger v-if=\"$slots.trigger\" as-child><slot name=\"trigger\" /></QuireDialogTrigger>\n <QuireDialogContent :title=\"title\" v-bind=\"description === undefined ? {} : { description }\" size=\"medium\">\n <QuireCommandPalette ref=\"palette\" v-bind=\"paletteProps\" :search=\"search\" @update:search=\"updateSearch\" @select=\"emit('select', $event)\" @retry=\"emit('retry')\">\n <template v-if=\"$slots.leading\" #leading=\"context\"><slot name=\"leading\" v-bind=\"context\" /></template>\n <template v-if=\"$slots.trailing\" #trailing=\"context\"><slot name=\"trailing\" v-bind=\"context\" /></template>\n <template v-if=\"$slots.footer\" #footer><slot name=\"footer\" /></template>\n </QuireCommandPalette>\n </QuireDialogContent>\n </QuireDialogRoot>\n</template>\n","/**\n * Constrains a host position after external changes without inventing extra steps.\n * @param value - Host or initial zero-based position.\n * @param count - Current number of real items.\n * @returns A finite integer from zero through the completion position.\n */\nexport function normalizeStep(value: number, count: number): number {\n return Math.min(Math.max(0, count), Math.max(0, Number.isFinite(value) ? Math.trunc(value) : 0));\n}\n","<script setup lang=\"ts\">\nimport { Steps, useSteps, type UseStepsProps } from '@ark-ui/vue/steps';\nimport { computed, ref, watch } from 'vue';\nimport QuireIcon from '../icon/icon.vue';\nimport QuireEmptyState from '../empty-state/empty-state.vue';\nimport { normalizeStep } from './position';\nimport { useQuireKitMessages } from '../locale-provider/context';\nimport type { QuireKitStepsProps, StepsSlots, StepsActions } from './types';\nconst props = withDefaults(defineProps<QuireKitStepsProps>(), {\n defaultValue: 0, linear: true, orientation: 'horizontal', density: 'comfortable', disabled: false, busy: false\n});\nconst text = useQuireKitMessages('steps');\nconst emit = defineEmits<{ 'update:modelValue': [index: number]; complete: []; invalid: [index: number] }>();\ndefineSlots<StepsSlots>();\nconst local = ref(props.defaultValue);\nconst position = computed(() => normalizeStep(props.modelValue ?? local.value, props.items.length));\nconst paused = computed(() => props.disabled || props.busy || !props.items.length);\nconst completed = computed(() => !!props.items.length && position.value === props.items.length);\n// Ark owns transitions and validation; the wrapper only projects unavailable targets.\nconst steps = useSteps(computed<UseStepsProps>(() => ({\n step: position.value, count: Math.max(1, props.items.length), linear: props.linear, orientation: props.orientation,\n ...(props.isStepValid ? { isStepValid: props.isStepValid } : {}),\n onStepChange: details => { local.value = details.step; emit('update:modelValue', details.step); },\n onStepInvalid: details => emit('invalid', details.step)\n})));\nwatch(completed, (value, previous) => { if (value && !previous) emit('complete'); });\n/** @param index - Candidate title or action target. @returns Whether that position is available. */\nfunction available(index: number): boolean {\n return !paused.value && index >= 0 && index <= props.items.length && !props.items[index]?.disabled;\n}\nconst canNext = computed(() => position.value < props.items.length && available(position.value + 1));\nconst canPrevious = computed(() => position.value > 0 && available(position.value - 1));\n/** Requests one forward transition; Ark applies the synchronous validity rule. */\nfunction next(): void { if (canNext.value) steps.value.goToNextStep(); }\n/** Returns one position without changing host drafts. */\nfunction previous(): void { if (canPrevious.value) steps.value.goToPrevStep(); }\n/** @param index - Title-navigation target; linear mode only allows returning. */\nfunction goTo(index: number): void {\n if (Number.isInteger(index) && available(index) && (!props.linear || index <= position.value)) steps.value.setStep(index);\n}\n/** Restarts navigation; resetting submitted data remains an explicit host action. */\nfunction reset(): void { if (available(0)) steps.value.resetStep(); }\n/** @param index - Linear title return, which Ark's default trigger deliberately ignores. */\nfunction returnTo(index: number): void { if (props.linear) goTo(index); }\nconst actions = computed<StepsActions>(() => ({ index: position.value, canNext: canNext.value, canPrevious: canPrevious.value, completed: completed.value, next, previous, goTo, reset }));\ndefineExpose({ next, previous, goTo, reset, canNext, canPrevious, completed });\n</script>\n<template>\n <Steps.RootProvider :value=\"steps\" :class=\"['qk-steps', `qk-steps--${density}`]\" :aria-busy=\"busy || undefined\">\n <QuireEmptyState v-if=\"!items.length\" size=\"sm\" :title=\"text.empty\" />\n <template v-else>\n <div class=\"qk-steps__viewport\">\n <Steps.List as-child role=\"list\" :aria-owns=\"undefined\" :aria-orientation=\"undefined\" :aria-label=\"label\" class=\"qk-steps__list\">\n <ol>\n <Steps.Item v-for=\"(item, index) in items\" :key=\"item.key\" :index=\"index\" as-child class=\"qk-steps__item\">\n <li>\n <Steps.Trigger role=\"button\" :aria-selected=\"undefined\" :aria-current=\"index === position ? 'step' : undefined\" :aria-controls=\"$slots.content ? steps.getItemState({index}).contentId : undefined\" :tabindex=\"0\" :disabled=\"!available(index) || (linear && index > position)\" :data-unavailable=\"disabled || item.disabled ? '' : undefined\" :class=\"['qk-steps__trigger', item.error && 'qk-steps__trigger--error']\" @click=\"returnTo(index)\">\n <Steps.Indicator class=\"qk-steps__indicator\" :data-error=\"item.error ? '' : undefined\">\n <slot name=\"indicator\" :item=\"item\" :index=\"index\" :current=\"index === position\" :completed=\"index < position\">\n <QuireIcon v-if=\"item.error\" name=\"close\" :size=\"16\" />\n <QuireIcon v-else-if=\"index < position\" name=\"check\" :size=\"16\" />\n <span v-else>{{ index + 1 }}</span>\n </slot>\n </Steps.Indicator>\n <span class=\"qk-steps__copy\">\n <span class=\"qk-steps__title\">{{ item.title }}<span v-if=\"index < position && !item.error\" class=\"sr-only\">{{ text.stepCompleted }}</span></span>\n <span v-if=\"item.description\" class=\"qk-steps__description\">{{ item.description }}</span>\n <span v-if=\"item.error\" class=\"qk-steps__error\">{{ item.error }}</span>\n <span v-if=\"item.disabled && item.disabledReason\" class=\"qk-steps__description\">{{ item.disabledReason }}</span>\n </span>\n </Steps.Trigger>\n <Steps.Separator v-if=\"index < items.length - 1\" :class=\"['qk-steps__separator', orientation === 'vertical' && 'qk-steps__separator--vertical']\" aria-hidden=\"true\" />\n </li>\n </Steps.Item>\n </ol>\n </Steps.List>\n </div>\n <template v-if=\"$slots.content\">\n <Steps.Content v-for=\"(item, index) in items\" :key=\"item.key\" :index=\"index\" role=\"region\" :tabindex=\"-1\" class=\"qk-steps__content\">\n <slot name=\"content\" :item=\"item\" :index=\"index\" :current=\"index === position\" :completed=\"index < position\" />\n </Steps.Content>\n </template>\n <Steps.CompletedContent class=\"qk-steps__content\"><slot name=\"completed\"><p class=\"m-0\">{{ text.completed }}</p></slot></Steps.CompletedContent>\n </template>\n <div v-if=\"$slots.actions\" class=\"qk-steps__actions\"><slot name=\"actions\" v-bind=\"actions\" /></div>\n </Steps.RootProvider>\n</template>\n","<script setup lang=\"ts\">\ndefineOptions({ name: 'AnchorList' });\nimport type { QuireKitAnchorItem } from './types';\ndefineProps<{\n /** Ordered descendants at this level. */\n items: readonly QuireKitAnchorItem[];\n /** Single geometry-derived current location. */\n activeId: string;\n}>();\nconst emit = defineEmits<{ navigate: [item: QuireKitAnchorItem, event: MouseEvent] }>();\n/** @param item - Activated location. @param event - Original native event passed through all levels. */\nfunction navigate(item: QuireKitAnchorItem, event: MouseEvent): void { emit('navigate', item, event); }\n</script>\n<template>\n <ol class=\"qk-anchor__list\">\n <li v-for=\"item in items\" :key=\"item.id\" class=\"qk-anchor__item\">\n <a :href=\"`#${encodeURIComponent(item.id)}`\" class=\"qk-anchor__link\" :class=\"{ 'qk-anchor__link--current': activeId === item.id }\"\n :aria-current=\"activeId === item.id ? 'location' : undefined\" @click=\"navigate(item, $event)\">{{ item.label }}</a>\n <div v-if=\"item.children?.length\" class=\"qk-anchor__children\">\n <list :items=\"item.children\" :active-id=\"activeId\" @navigate=\"navigate\" />\n </div>\n </li>\n </ol>\n</template>\n","import type { AnchorPosition } from './types';\n\n/** @param value - Requested physical offset. @returns A finite, nonnegative pixel distance. */\nexport function normalizeAnchorOffset(value: number): number {\n return Number.isFinite(value) ? Math.max(0, value) : 16;\n}\n/** @param hash - Location fragment. @returns The decoded element ID, tolerating raw percent characters. */\nexport function decodeAnchorHash(hash: string): string {\n const value = hash.startsWith('#') ? hash.slice(1) : hash;\n try { return decodeURIComponent(value); } catch { return value; }\n}\n/**\n * Resolves the heading whose content owns the current reading position.\n * @param targets - Visible headings in the scroll owner's coordinate system.\n * @param offset - Navigation and reading threshold.\n * @param atEnd - Whether a scrollable viewport has reached its bottom.\n * @returns The current heading ID, or an empty string when none are available.\n */\nexport function activeAnchor(targets: readonly AnchorPosition[], offset: number, atEnd: boolean): string {\n const ordered = [...targets].sort((a, b) => a.top - b.top);\n if (atEnd) return ordered.at(-1)?.id ?? '';\n let current = ordered[0]?.id ?? '';\n for (const target of ordered) {\n if (target.top > offset + 1) break;\n current = target.id;\n }\n return current;\n}\n","import type { QuireKitAnchorContainer, QuireKitAnchorItem } from './types';\n\n/** @param source - Optional owner descriptor. @returns The explicit element, document scroller, or null until mounted. */\nexport function resolveAnchorContainer(source: QuireKitAnchorContainer | undefined): HTMLElement | null {\n if (source === undefined) return document.scrollingElement as HTMLElement | null;\n if (typeof source === 'function') return source() ?? null;\n if (typeof source === 'string') return document.querySelector<HTMLElement>(source);\n return source;\n}\n/** @param items - Hierarchical locations. @returns Unique IDs in reading order. */\nexport function anchorIds(items: readonly QuireKitAnchorItem[]): string[] {\n return [...new Set(items.flatMap(item => [item.id, ...anchorIds(item.children ?? [])]))];\n}\n/**\n * Looks up IDs without treating heading text as a CSS selector.\n * @param ids - Flattened heading IDs.\n * @param owner - Actual scroll container.\n * @returns Visible targets belonging to this scroll owner.\n */\nexport function anchorTargets(ids: readonly string[], owner: HTMLElement): HTMLElement[] {\n return ids.flatMap(id => {\n const target = document.getElementById(id);\n return target && owner.contains(target) && target.getClientRects().length > 0\n && getComputedStyle(target).visibility !== 'hidden' ? [target] : [];\n });\n}\n/** @param owner - Actual scroller. @returns Its inner top edge in viewport coordinates. */\nexport function anchorViewportTop(owner: HTMLElement): number {\n return owner === document.scrollingElement ? 0 : owner.getBoundingClientRect().top + owner.clientTop;\n}\n/**\n * Adds only the temporary focusability needed by a heading.\n * @param target - Destination of an explicit navigation.\n * @returns Cleanup for a later navigation or component disposal.\n */\nexport function focusAnchor(target: HTMLElement): () => void {\n const temporary = !target.hasAttribute('tabindex') && target.tabIndex < 0;\n if (temporary) target.setAttribute('tabindex', '-1');\n /** Removes only the attribute installed by this navigation. */\n function cleanup(): void {\n if (temporary && target.getAttribute('tabindex') === '-1') target.removeAttribute('tabindex');\n target.removeEventListener('blur', cleanup);\n }\n target.addEventListener('blur', cleanup, { once: true });\n target.focus({ preventScroll: true });\n return cleanup;\n}\n","import { onBeforeUnmount, onMounted, ref, watch } from 'vue';\nimport type { QuireKitAnchorItem, AnchorOptions } from './types';\nimport { activeAnchor, decodeAnchorHash, normalizeAnchorOffset } from './position';\nimport { anchorIds, anchorTargets, anchorViewportTop, focusAnchor, resolveAnchorContainer } from './dom';\n\n/**\n * Owns scrolling and fragment navigation without coupling to a router or page layout.\n * @param props - Reactive public options.\n * @param change - Notification when geometry changes the current heading.\n * @returns Current ID and the ordinary-link navigation handler.\n */\nexport function useAnchor(props: AnchorOptions, change: (id: string) => void) {\n const activeId = ref('');\n let owner: HTMLElement | null = null;\n let targets: HTMLElement[] = [];\n let frame = 0;\n let resize: ResizeObserver | undefined;\n let observed = new Set<Element>();\n let releaseFocus: (() => void) | undefined;\n let dispose: (() => void) | undefined;\n let pendingHash = '';\n\n /** @param id - Geometry-derived current heading. */\n function setCurrent(id: string): void {\n if (activeId.value === id) return;\n activeId.value = id;\n change(id);\n }\n /** Measures all targets in one scroll coordinate system after layout has settled. */\n function measure(): void {\n frame = 0;\n if (!owner) { setCurrent(''); return; }\n targets = anchorTargets(anchorIds(props.items), owner);\n const top = anchorViewportTop(owner);\n const height = owner === document.scrollingElement ? window.innerHeight : owner.clientHeight;\n setCurrent(activeAnchor(targets.filter(target => target.getClientRects().length > 0)\n .map(target => ({ id: target.id, top: target.getBoundingClientRect().top - top })),\n normalizeAnchorOffset(props.offset ?? 16), owner.scrollHeight > height + 1 && owner.scrollTop + height >= owner.scrollHeight - 1));\n }\n /** Coalesces scroll, resize and content updates into one geometry read per frame. */\n function schedule(): void {\n if (!frame) frame = window.requestAnimationFrame(measure);\n }\n /** @param target - Existing heading. @param behavior - Motion respecting user preferences. */\n function scroll(target: HTMLElement, behavior: 'smooth' | 'instant'): void {\n if (!owner) return;\n owner.scrollTo({\n top: owner.scrollTop + target.getBoundingClientRect().top - anchorViewportTop(owner) - normalizeAnchorOffset(props.offset ?? 16),\n behavior: window.matchMedia('(prefers-reduced-motion: reduce)').matches ? 'instant' : behavior\n });\n schedule();\n }\n /** @param event - Browser history event; omitted during initial binding. */\n function restore(event?: Event): void {\n if (props.history === false) { pendingHash = ''; return; }\n pendingHash = decodeAnchorHash(window.location.hash);\n if (event && !pendingHash) owner?.scrollTo({ top: 0, behavior: 'instant' });\n const target = targets.find(target => target.id === pendingHash);\n if (target) { scroll(target, 'instant'); pendingHash = ''; }\n }\n /** Rebinds changed targets and containers without repeatedly reobserving stable elements. */\n function refresh(): void {\n const next = resolveAnchorContainer(props.scrollContainer);\n if (next !== owner) {\n owner?.removeEventListener('scroll', schedule);\n owner = next;\n owner?.addEventListener('scroll', schedule, { passive: true });\n }\n targets = owner ? anchorTargets(anchorIds(props.items), owner) : [];\n const nextObserved = new Set<Element>(owner ? [owner, ...owner.children, ...targets] : []);\n for (const element of observed) if (!nextObserved.has(element)) resize?.unobserve(element);\n for (const element of nextObserved) if (!observed.has(element)) resize?.observe(element);\n observed = nextObserved;\n if (pendingHash) {\n const target = targets.find(target => target.id === pendingHash);\n if (target) { scroll(target, 'instant'); pendingHash = ''; }\n }\n schedule();\n }\n /**\n * Leaves modified, cancelled and unresolved links to their native browser behavior.\n * @param item - Activated original item.\n * @param event - Native link event, already offered to the consumer.\n */\n function navigate(item: QuireKitAnchorItem, event: MouseEvent): void {\n if (event.defaultPrevented || event.button !== 0 || event.metaKey || event.ctrlKey || event.shiftKey || event.altKey) return;\n const target = targets.find(target => target.id === item.id);\n if (!target || !owner) return;\n event.preventDefault();\n pendingHash = '';\n const hash = `#${encodeURIComponent(item.id)}`;\n if (props.history !== false && decodeAnchorHash(window.location.hash) !== item.id) {\n const method = props.history === 'replace' ? 'replaceState' : 'pushState';\n window.history[method](window.history.state, '', hash);\n }\n releaseFocus?.();\n releaseFocus = focusAnchor(target);\n scroll(target, props.behavior ?? 'smooth');\n }\n\n onMounted(() => {\n // Resolve DOM only after hydration; late content and ref-backed owners remain reactive.\n resize = new ResizeObserver(schedule);\n const mutation = new MutationObserver(refresh);\n mutation.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['id', 'hidden', 'class', 'style'] });\n const stop = watch(() => [props.items, props.scrollContainer, resolveAnchorContainer(props.scrollContainer), props.offset, props.history],\n () => { refresh(); restore(); }, { immediate: true, deep: true, flush: 'post' });\n window.addEventListener('scroll', schedule, { passive: true });\n window.addEventListener('resize', schedule);\n window.addEventListener('hashchange', restore);\n window.addEventListener('popstate', restore);\n dispose = () => {\n stop(); mutation.disconnect(); resize?.disconnect();\n owner?.removeEventListener('scroll', schedule);\n window.removeEventListener('scroll', schedule);\n window.removeEventListener('resize', schedule);\n window.removeEventListener('hashchange', restore);\n window.removeEventListener('popstate', restore);\n if (frame) window.cancelAnimationFrame(frame);\n observed.clear(); releaseFocus?.();\n };\n });\n onBeforeUnmount(() => dispose?.());\n return { activeId, navigate };\n}\n","<script setup lang=\"ts\">\nimport AnchorList from './list.vue';\nimport { useAnchor } from './use-anchor';\nimport { useQuireKitMessages } from '../locale-provider/context';\nimport type { QuireKitAnchorItem, QuireKitAnchorProps } from './types';\nconst props = withDefaults(defineProps<QuireKitAnchorProps>(), { offset: 16, behavior: 'smooth', history: 'push' });\nconst emit = defineEmits<{\n /** Geometry-derived location changed; empty means no visible targets. */\n change: [id: string];\n /** Native link activation; preventDefault cancels component navigation. */\n navigate: [item: QuireKitAnchorItem, event: MouseEvent];\n}>();\nconst text = useQuireKitMessages('anchor');\nconst { activeId, navigate: activate } = useAnchor(props, id => emit('change', id));\n/** @param item - Activated location. @param event - Native click offered to the consumer first. */\nfunction navigate(item: QuireKitAnchorItem, event: MouseEvent): void {\n emit('navigate', item, event);\n activate(item, event);\n}\n</script>\n<template>\n <nav v-if=\"items.length\" class=\"qk-anchor\" :aria-label=\"ariaLabel ?? title ?? text.label\">\n <p v-if=\"title\" class=\"qk-anchor__title\">{{ title }}</p>\n <AnchorList :items=\"items\" :active-id=\"activeId\" @navigate=\"navigate\" />\n </nav>\n</template>\n","import type { InjectionKey } from \"vue\";\nimport type { ImagePreviewGroupContext } from \"../../image-preview/group/types\";\n\n/** Prose images opt in; ordinary interactive Image demos do not join the article. */\nexport const proseImageGroupKey: InjectionKey<ImagePreviewGroupContext> = Symbol(\"quirekit.prose-images\");\n","<script setup lang=\"ts\">\nimport { provide, shallowRef } from \"vue\";\nimport { QuireImagePreview } from \"../image-preview\";\nimport { useImagePreviewGroup } from \"../image-preview/group/use\";\nimport { proseImageGroupKey } from \"./shared/image-group\";\nimport type { QuireKitProseProps } from \"./types\";\nconst props = withDefaults(defineProps<QuireKitProseProps>(), { as: \"div\", density: \"comfortable\", tableWidth: \"fill\" });\ndefineOptions({ inheritAttrs: false });\nconst root = shallowRef<HTMLElement | null>(null);\nconst gallery = useImagePreviewGroup(ownsImage);\nprovide(proseImageGroupKey, gallery.context);\n/** @param element - Registered Image root. @returns Whether it belongs to this article outside embedded UI islands. */\nfunction ownsImage(element: HTMLElement): boolean {\n return element.parentElement?.closest('.qk-prose, [data-qk-not-prose]:not(.qk-prose-image), [data-qk-not-typography]:not(.qk-prose-image)') === root.value;\n}\ndefineSlots<{\n /** Native document content. Isolate interactive islands with data-qk-not-prose. */\n default?: () => unknown;\n}>();\n</script>\n<template>\n <component :is=\"as\" ref=\"root\" v-bind=\"$attrs\" class=\"qk-prose\" :class=\"{ 'qk-prose--compact': density === 'compact', 'qk-prose--table-content': tableWidth === 'content' }\"><slot /></component>\n <QuireImagePreview v-bind=\"{ ...props.imagePreviewOptions, ...gallery.options.value }\" :items=\"gallery.items.value\"\n v-model:open=\"gallery.opened.value\" v-model:index=\"gallery.index.value\" :final-focus-el=\"gallery.finalFocusEl\" />\n</template>\n","<script setup lang=\"ts\">\nimport type { QuireKitProseHeadingProps, QuireKitProseSlots } from \"../types\";\nwithDefaults(defineProps<QuireKitProseHeadingProps>(), { anchor: true });\ndefineSlots<QuireKitProseSlots>();\n</script>\n<template>\n <h1 :id=\"id\" class=\"qk-prose-node\"><a v-if=\"id && anchor\" :href=\"`#${encodeURIComponent(id)}`\"><slot /></a><slot v-else /></h1>\n</template>\n","<script setup lang=\"ts\">\nimport type { QuireKitProseHeadingProps, QuireKitProseSlots } from \"../types\";\nwithDefaults(defineProps<QuireKitProseHeadingProps>(), { anchor: true });\ndefineSlots<QuireKitProseSlots>();\n</script>\n<template>\n <h2 :id=\"id\" class=\"qk-prose-node\"><a v-if=\"id && anchor\" :href=\"`#${encodeURIComponent(id)}`\"><slot /></a><slot v-else /></h2>\n</template>\n","<script setup lang=\"ts\">\nimport type { QuireKitProseHeadingProps, QuireKitProseSlots } from \"../types\";\nwithDefaults(defineProps<QuireKitProseHeadingProps>(), { anchor: true });\ndefineSlots<QuireKitProseSlots>();\n</script>\n<template>\n <h3 :id=\"id\" class=\"qk-prose-node\"><a v-if=\"id && anchor\" :href=\"`#${encodeURIComponent(id)}`\"><slot /></a><slot v-else /></h3>\n</template>\n","<script setup lang=\"ts\">\nimport type { QuireKitProseHeadingProps, QuireKitProseSlots } from \"../types\";\nwithDefaults(defineProps<QuireKitProseHeadingProps>(), { anchor: true });\ndefineSlots<QuireKitProseSlots>();\n</script>\n<template>\n <h4 :id=\"id\" class=\"qk-prose-node\"><a v-if=\"id && anchor\" :href=\"`#${encodeURIComponent(id)}`\"><slot /></a><slot v-else /></h4>\n</template>\n","<script setup lang=\"ts\">\nimport type { QuireKitProseHeadingProps, QuireKitProseSlots } from \"../types\";\nwithDefaults(defineProps<QuireKitProseHeadingProps>(), { anchor: true });\ndefineSlots<QuireKitProseSlots>();\n</script>\n<template>\n <h5 :id=\"id\" class=\"qk-prose-node\"><a v-if=\"id && anchor\" :href=\"`#${encodeURIComponent(id)}`\"><slot /></a><slot v-else /></h5>\n</template>\n","<script setup lang=\"ts\">\nimport type { QuireKitProseHeadingProps, QuireKitProseSlots } from \"../types\";\nwithDefaults(defineProps<QuireKitProseHeadingProps>(), { anchor: true });\ndefineSlots<QuireKitProseSlots>();\n</script>\n<template>\n <h6 :id=\"id\" class=\"qk-prose-node\"><a v-if=\"id && anchor\" :href=\"`#${encodeURIComponent(id)}`\"><slot /></a><slot v-else /></h6>\n</template>\n","<script setup lang=\"ts\">\nimport type { QuireKitProseSlots } from \"../../types\";\ndefineSlots<QuireKitProseSlots>();\n</script>\n<template>\n <strong class=\"qk-prose-node\"><slot /></strong>\n</template>\n","<script setup lang=\"ts\">\nimport type { QuireKitProseSlots } from \"../../types\";\ndefineSlots<QuireKitProseSlots>();\n</script>\n<template>\n <em class=\"qk-prose-node\"><slot /></em>\n</template>\n","<script setup lang=\"ts\">\nimport type { QuireKitProseSlots } from \"../../types\";\ndefineSlots<QuireKitProseSlots>();\n</script>\n<template>\n <b class=\"qk-prose-node\"><slot /></b>\n</template>\n","<script setup lang=\"ts\">\nimport type { QuireKitProseSlots } from \"../../types\";\ndefineSlots<QuireKitProseSlots>();\n</script>\n<template>\n <i class=\"qk-prose-node\"><slot /></i>\n</template>\n","<script setup lang=\"ts\">\nimport type { QuireKitProseSlots } from \"../../types\";\ndefineSlots<QuireKitProseSlots>();\n</script>\n<template>\n <cite class=\"qk-prose-node\"><slot /></cite>\n</template>\n","<script setup lang=\"ts\">\nimport type { QuireKitProseSlots } from \"../../types\";\ndefineSlots<QuireKitProseSlots>();\n</script>\n<template>\n <dfn class=\"qk-prose-node\"><slot /></dfn>\n</template>\n","<script setup lang=\"ts\">\nimport type { QuireKitProseSlots } from \"../../types\";\ndefineSlots<QuireKitProseSlots>();\n</script>\n<template>\n <var class=\"qk-prose-node\"><slot /></var>\n</template>\n","<script setup lang=\"ts\">\nimport type { QuireKitProseSlots } from \"../../types\";\ndefineSlots<QuireKitProseSlots>();\n</script>\n<template>\n <small class=\"qk-prose-node\"><slot /></small>\n</template>\n","<script setup lang=\"ts\">\nimport type { QuireKitProseSlots } from \"../../types\";\ndefineSlots<QuireKitProseSlots>();\n</script>\n<template>\n <mark class=\"qk-prose-node\"><slot /></mark>\n</template>\n","<script setup lang=\"ts\">\nimport type { QuireKitProseSlots } from \"../../types\";\ndefineSlots<QuireKitProseSlots>();\n</script>\n<template>\n <del class=\"qk-prose-node\"><slot /></del>\n</template>\n","<script setup lang=\"ts\">\nimport type { QuireKitProseSlots } from \"../../types\";\ndefineSlots<QuireKitProseSlots>();\n</script>\n<template>\n <s class=\"qk-prose-node\"><slot /></s>\n</template>\n","<script setup lang=\"ts\">\nimport type { QuireKitProseSlots } from \"../../types\";\ndefineSlots<QuireKitProseSlots>();\n</script>\n<template>\n <ins class=\"qk-prose-node\"><slot /></ins>\n</template>\n","<script setup lang=\"ts\">\nimport type { QuireKitProseSlots } from \"../../types\";\ndefineSlots<QuireKitProseSlots>();\n</script>\n<template>\n <u class=\"qk-prose-node\"><slot /></u>\n</template>\n","<script setup lang=\"ts\">\nimport type { QuireKitProseSlots } from \"../../types\";\ndefineSlots<QuireKitProseSlots>();\n</script>\n<template>\n <sub class=\"qk-prose-node\"><slot /></sub>\n</template>\n","<script setup lang=\"ts\">\nimport type { QuireKitProseSlots } from \"../../types\";\ndefineSlots<QuireKitProseSlots>();\n</script>\n<template>\n <sup class=\"qk-prose-node\"><slot /></sup>\n</template>\n","<script setup lang=\"ts\">\nimport type { QuireKitProseSlots } from \"../../types\";\nimport type { QuireKitTypographyProps } from \"../../../../components/typography\";\nimport Abbreviation from \"../../../typography/abbreviation.vue\";\nconst props = defineProps<Pick<QuireKitTypographyProps, \"title\">>();\ndefineSlots<QuireKitProseSlots>();\n</script>\n<template>\n <Abbreviation v-bind=\"props\" class=\"qk-prose-node\"><slot /></Abbreviation>\n</template>\n","<script setup lang=\"ts\">\nimport type { QuireKitProseSlots } from \"../../types\";\ndefineSlots<QuireKitProseSlots>();\n</script>\n<template>\n <code class=\"qk-prose-node\"><slot /></code>\n</template>\n","<script setup lang=\"ts\">\nimport type { QuireKitProseSlots } from \"../../types\";\ndefineSlots<QuireKitProseSlots>();\n</script>\n<template>\n <kbd class=\"qk-prose-node\"><slot /></kbd>\n</template>\n","<script setup lang=\"ts\">\nimport type { QuireKitProseSlots } from \"../../types\";\ndefineSlots<QuireKitProseSlots>();\n</script>\n<template>\n <samp class=\"qk-prose-node\"><slot /></samp>\n</template>\n","<script setup lang=\"ts\">\nimport type { QuireKitProseAProps, QuireKitProseSlots } from \"../../types\";\ndefineProps<QuireKitProseAProps>();\ndefineSlots<QuireKitProseSlots>();\n</script>\n<template>\n <a :href=\"href\" :target=\"target\" :rel=\"rel\" class=\"qk-prose-node\"><slot /></a>\n</template>\n","<template>\n <br class=\"qk-prose-node\" />\n</template>\n","<script setup lang=\"ts\">\nimport type { QuireKitProseSlots } from \"../types\";\ndefineSlots<QuireKitProseSlots>();\n</script>\n<template>\n <p class=\"qk-prose-node\"><slot /></p>\n</template>\n","<script setup lang=\"ts\">\nimport type { QuireKitProseSlots } from \"../types\";\ndefineSlots<QuireKitProseSlots>();\n</script>\n<template>\n <blockquote class=\"qk-prose-node\"><slot /></blockquote>\n</template>\n","<script setup lang=\"ts\">\nimport type { QuireKitProsePreProps } from \"../types\";\nconst props = defineProps<QuireKitProsePreProps>();\ndefineSlots<{\n /** Renderer-produced code, including optional syntax tokens. Metadata is available to custom content. */\n default?: (props: QuireKitProsePreProps) => unknown;\n}>();\n</script>\n<template>\n <pre class=\"qk-prose-node\" tabindex=\"0\" :aria-label=\"filename || language || 'Code'\"><slot v-bind=\"props\"><code>{{ code ?? '' }}</code></slot></pre>\n</template>\n","<template>\n <hr class=\"qk-prose-node\" />\n</template>\n","<script setup lang=\"ts\">\nimport type { QuireKitProseSlots } from \"../types\";\ndefineSlots<QuireKitProseSlots>();\n</script>\n<template>\n <ul class=\"qk-prose-node\"><slot /></ul>\n</template>\n","<script setup lang=\"ts\">\nimport type { QuireKitProseSlots } from \"../types\";\ndefineSlots<QuireKitProseSlots>();\n</script>\n<template>\n <ol class=\"qk-prose-node\"><slot /></ol>\n</template>\n","<script setup lang=\"ts\">\nimport type { QuireKitProseSlots } from \"../types\";\ndefineSlots<QuireKitProseSlots>();\n</script>\n<template>\n <li class=\"qk-prose-node\"><slot /></li>\n</template>\n","<script setup lang=\"ts\">\nimport type { QuireKitProseSlots } from \"../types\";\ndefineSlots<QuireKitProseSlots>();\n</script>\n<template>\n <dl class=\"qk-prose-node\"><slot /></dl>\n</template>\n","<script setup lang=\"ts\">\nimport type { QuireKitProseSlots } from \"../types\";\ndefineSlots<QuireKitProseSlots>();\n</script>\n<template>\n <dt class=\"qk-prose-node\"><slot /></dt>\n</template>\n","<script setup lang=\"ts\">\nimport type { QuireKitProseSlots } from \"../types\";\ndefineSlots<QuireKitProseSlots>();\n</script>\n<template>\n <dd class=\"qk-prose-node\"><slot /></dd>\n</template>\n","<script setup lang=\"ts\">\nimport type { QuireKitProseSlots } from \"../types\";\n// The frame owns scrolling and keyboard focus; native attributes stay on the table.\ndefineOptions({ inheritAttrs: false });\ndefineSlots<QuireKitProseSlots>();\n</script>\n<template>\n <div class=\"qk-prose-table\" tabindex=\"0\"><table v-bind=\"$attrs\" class=\"qk-prose-node\"><slot /></table></div>\n</template>\n","<script setup lang=\"ts\">\nimport type { QuireKitProseSlots } from \"../types\";\ndefineSlots<QuireKitProseSlots>();\n</script>\n<template>\n <thead class=\"qk-prose-node\"><slot /></thead>\n</template>\n","<script setup lang=\"ts\">\nimport type { QuireKitProseSlots } from \"../types\";\ndefineSlots<QuireKitProseSlots>();\n</script>\n<template>\n <tbody class=\"qk-prose-node\"><slot /></tbody>\n</template>\n","<script setup lang=\"ts\">\nimport type { QuireKitProseSlots } from \"../types\";\ndefineSlots<QuireKitProseSlots>();\n</script>\n<template>\n <tfoot class=\"qk-prose-node\"><slot /></tfoot>\n</template>\n","<script setup lang=\"ts\">\nimport type { QuireKitProseSlots } from \"../types\";\ndefineSlots<QuireKitProseSlots>();\n</script>\n<template>\n <tr class=\"qk-prose-node\"><slot /></tr>\n</template>\n","<script setup lang=\"ts\">\nimport type { QuireKitProseSlots } from \"../types\";\ndefineSlots<QuireKitProseSlots>();\n</script>\n<template>\n <th class=\"qk-prose-node\"><slot /></th>\n</template>\n","<script setup lang=\"ts\">\nimport type { QuireKitProseSlots } from \"../types\";\ndefineSlots<QuireKitProseSlots>();\n</script>\n<template>\n <td class=\"qk-prose-node\"><slot /></td>\n</template>\n","<script setup lang=\"ts\">\nimport type { QuireKitProseSlots } from \"../types\";\ndefineSlots<QuireKitProseSlots>();\n</script>\n<template>\n <caption class=\"qk-prose-node\"><slot /></caption>\n</template>\n","<script setup lang=\"ts\">\nimport type { QuireKitProseImgProps } from \"../types\";\nwithDefaults(defineProps<QuireKitProseImgProps>(), { loading: \"lazy\", decoding: \"async\" });\n</script>\n<template>\n <img class=\"qk-prose-node\" :src=\"src\" :alt=\"alt\" :width=\"width\" :height=\"height\" :loading=\"loading\" :decoding=\"decoding\" />\n</template>\n","<script setup lang=\"ts\">\nimport type { QuireKitProseSlots } from \"../types\";\ndefineSlots<QuireKitProseSlots>();\n</script>\n<template>\n <figure class=\"qk-prose-node\"><slot /></figure>\n</template>\n","<script setup lang=\"ts\">\nimport type { QuireKitProseSlots } from \"../types\";\ndefineSlots<QuireKitProseSlots>();\n</script>\n<template>\n <figcaption class=\"qk-prose-node\"><slot /></figcaption>\n</template>\n","import { QuireProseH1, QuireProseH2, QuireProseH3, QuireProseH4, QuireProseH5, QuireProseH6 } from \"../headings\";\nimport { QuireProseA, QuireProseStrong, QuireProseEm, QuireProseB, QuireProseI, QuireProseCite, QuireProseDfn, QuireProseVar, QuireProseSamp, QuireProseSmall, QuireProseMark, QuireProseDel, QuireProseS, QuireProseIns, QuireProseU, QuireProseSub, QuireProseSup, QuireProseAbbr, QuireProseKbd, QuireProseCode, QuireProseBr } from \"../inline\";\nimport { QuireProseP, QuireProseBlockquote, QuireProsePre, QuireProseHr } from \"../blocks\";\nimport { QuireProseUl, QuireProseOl, QuireProseLi, QuireProseDl, QuireProseDt, QuireProseDd } from \"../lists\";\nimport { QuireProseTable, QuireProseThead, QuireProseTbody, QuireProseTfoot, QuireProseTr, QuireProseTh, QuireProseTd, QuireProseCaption } from \"../table\";\nimport { QuireProseImg, QuireProseFigure, QuireProseFigcaption } from \"../media\";\nimport type { QuireKitProseComponentMap } from \"../types\";\n\n/** Immutable native tag defaults. Spread into the host renderer map before applying local overrides. */\nexport const quireProseComponents = Object.freeze({\n h1: QuireProseH1,\n h2: QuireProseH2,\n h3: QuireProseH3,\n h4: QuireProseH4,\n h5: QuireProseH5,\n h6: QuireProseH6,\n a: QuireProseA,\n strong: QuireProseStrong,\n em: QuireProseEm,\n b: QuireProseB,\n i: QuireProseI,\n cite: QuireProseCite,\n dfn: QuireProseDfn,\n var: QuireProseVar,\n samp: QuireProseSamp,\n small: QuireProseSmall,\n mark: QuireProseMark,\n del: QuireProseDel,\n s: QuireProseS,\n ins: QuireProseIns,\n u: QuireProseU,\n sub: QuireProseSub,\n sup: QuireProseSup,\n abbr: QuireProseAbbr,\n kbd: QuireProseKbd,\n code: QuireProseCode,\n br: QuireProseBr,\n p: QuireProseP,\n blockquote: QuireProseBlockquote,\n pre: QuireProsePre,\n hr: QuireProseHr,\n ul: QuireProseUl,\n ol: QuireProseOl,\n li: QuireProseLi,\n dl: QuireProseDl,\n dt: QuireProseDt,\n dd: QuireProseDd,\n table: QuireProseTable,\n thead: QuireProseThead,\n tbody: QuireProseTbody,\n tfoot: QuireProseTfoot,\n tr: QuireProseTr,\n th: QuireProseTh,\n td: QuireProseTd,\n caption: QuireProseCaption,\n img: QuireProseImg,\n figure: QuireProseFigure,\n figcaption: QuireProseFigcaption,\n} satisfies Required<QuireKitProseComponentMap>);\n","import type { DefinedProseProps } from './types';\n\n/**\n * Omits absent optional values while retaining explicit false, empty strings and zero.\n * @param props - Resolved adapter input.\n * @returns Present props, preserving the child component's own default resolution.\n */\nexport function definedProseProps<T extends object>(props: T): DefinedProseProps<T> {\n return Object.fromEntries(Object.entries(props).filter(([, value]) => value !== undefined)) as DefinedProseProps<T>;\n}\n","<script setup lang=\"ts\">\nimport { computed, inject, onMounted, provide, ref, shallowRef } from \"vue\";\nimport { QuireImage } from \"../../image\";\nimport { imagePreviewGroupKey } from \"../../image-preview/group/context\";\nimport { proseImageGroupKey } from \"../shared/image-group\";\nimport { definedProseProps } from \"../shared/props\";\nimport { useQuireKitMessages } from \"../../locale-provider/context\";\nimport type { QuireKitProseImageProps, QuireKitProseImageState, QuireKitProseImageErrorState } from \"./types\";\nconst props = withDefaults(defineProps<QuireKitProseImageProps>(), { preview: true, fit: \"contain\" });\ndefineOptions({ inheritAttrs: false });\nconst text = useQuireKitMessages(\"prose\");\nconst emit = defineEmits<{\n /** 当前原图或备用图完成加载。 */\n load: [image: HTMLImageElement];\n /** 当前资源加载失败。 */\n error: [event: Event];\n /** Before preview; preventDefault delegates to a host-owned complete gallery. */\n preview: [event: MouseEvent];\n}>();\ndefineSlots<{\n /** 替换加载占位。 */\n placeholder?: (props: QuireKitProseImageState) => unknown;\n /** 替换失败反馈;外层为链接或按钮时只呈现静态反馈。 */\n error?: (props: QuireKitProseImageErrorState) => unknown;\n}>();\nconst root = shallowRef<HTMLElement | null>(null);\nprovide(imagePreviewGroupKey, inject(proseImageGroupKey, null));\nconst insideAction = ref(false);\n// Native image state starts at loading in SSR. Resolve the surrounding action\n// once at mount, before a cached image can expose preview or retry controls.\nonMounted(() => { insideAction.value = !!root.value?.closest(\"a,button,[role=link],[role=button]\"); });\n\n/** @param value - Native dimension or CSS length. @returns A finite positive intrinsic dimension, when supplied. */\nfunction intrinsic(value: string | number | undefined): number | undefined {\n if (typeof value === \"string\" && !/^\\d+(?:\\.\\d+)?$/.test(value)) return undefined;\n const number = Number(value);\n return Number.isFinite(number) && number > 0 ? number : undefined;\n}\nconst imageProps = computed(() => {\n const width = intrinsic(props.width);\n const height = intrinsic(props.height);\n return {\n ...definedProseProps(props),\n preview: props.preview && !insideAction.value,\n // Markdown dimensions describe an intrinsic ratio; the reading column may shrink.\n ...(width && height && props.aspectRatio === undefined ? { width, height: \"auto\", aspectRatio: `${width} / ${height}` } : {})\n };\n});\n</script>\n<template>\n <span ref=\"root\" v-bind=\"$attrs\" class=\"qk-prose-image\" data-qk-not-prose data-qk-not-typography>\n <QuireImage v-bind=\"imageProps\" @load=\"emit('load', $event)\" @error=\"emit('error', $event)\" @preview=\"emit('preview', $event)\">\n <template v-if=\"$slots.placeholder\" #placeholder=\"context\"><slot name=\"placeholder\" v-bind=\"context\" /></template>\n <template v-if=\"insideAction || $slots.error\" #error=\"context\">\n <span v-if=\"insideAction\">{{ text.imageFailed }}</span>\n <slot v-else name=\"error\" v-bind=\"context\" />\n </template>\n </QuireImage>\n </span>\n</template>\n","<script setup lang=\"ts\">\nimport { computed } from \"vue\";\nimport { QuireCodeBlock } from \"../../code-block\";\nimport { definedProseProps } from \"../shared/props\";\nimport type { QuireKitClipboardErrorDetails } from \"../../../components/clipboard\";\nimport type { QuireKitProseSourceProps, QuireKitProseSourceSlots } from \"./types\";\n// An omitted Vue Boolean otherwise becomes false and suppresses the child defaults.\nconst props = withDefaults(defineProps<QuireKitProseSourceProps>(), {\n presentation: \"document\",\n header: undefined, copy: undefined, lineNumbers: undefined, wrap: undefined,\n collapsible: undefined, collapsed: undefined, defaultCollapsed: undefined\n});\ndefineOptions({ inheritAttrs: false });\ndefineSlots<QuireKitProseSourceSlots>();\nconst emit = defineEmits<{\n /** 请求变更折叠状态。 */\n \"update:collapsed\": [value: boolean];\n /** 原文已复制到系统剪贴板。 */\n copy: [];\n /** 复制失败,保留 CodeBlock 的重试反馈。 */\n copyError: [details: QuireKitClipboardErrorDetails];\n}>();\nconst options = computed(() => {\n const { code, language, filename, highlights, meta: _meta, presentation, ...rest } = props;\n const embedded = presentation === \"embedded\";\n return {\n ...definedProseProps(rest),\n code: code ?? \"\",\n ...(language == null ? {} : { language }),\n ...(filename == null ? {} : { filename }),\n header: props.header ?? !embedded,\n collapsible: props.collapsible ?? true,\n defaultCollapsed: props.defaultCollapsed ?? true,\n variant: props.variant ?? (embedded ? \"plain\" : \"soft\"),\n density: props.density ?? (embedded ? \"compact\" : \"regular\"),\n highlightedLines: props.highlightedLines ?? highlights ?? []\n };\n});\nconst context = computed(() => ({ code: props.code ?? \"\", language: props.language ?? undefined, filename: props.filename ?? undefined, highlights: props.highlights, meta: props.meta ?? undefined }));\n</script>\n<template>\n <QuireCodeBlock v-bind=\"{ ...options, ...$attrs }\" class=\"qk-prose-source\" :class=\"{ 'qk-prose-source--embedded': presentation === 'embedded' }\"\n @update:collapsed=\"emit('update:collapsed', $event)\" @copy=\"emit('copy')\" @copy-error=\"emit('copyError', $event)\">\n <template v-if=\"$slots.code || $slots.default\" #code><slot name=\"code\" v-bind=\"context\"><slot v-bind=\"context\" /></slot></template>\n <template v-if=\"$slots.title\" #title><slot name=\"title\" /></template>\n <template v-if=\"$slots.actions\" #actions=\"actions\"><slot name=\"actions\" v-bind=\"actions\" /></template>\n <template v-if=\"$slots.navigation\" #navigation=\"navigation\"><slot name=\"navigation\" v-bind=\"navigation\" /></template>\n <template v-if=\"$slots.line\" #line=\"line\"><slot name=\"line\" v-bind=\"line\" /></template>\n </QuireCodeBlock>\n</template>\n","import { quireProseComponents } from \"./native\";\nimport { QuireProseImage } from \"../image\";\nimport { QuireProseSource } from \"../source\";\n\n/** QuireKit reading defaults: interactive images and full code display, with every other native element retained. */\nexport const quireRichProseComponents = Object.freeze({ ...quireProseComponents, img: QuireProseImage, pre: QuireProseSource });\n","<script setup lang=\"ts\">\nimport { computed } from \"vue\";\nimport QuireSelect from \"../../select/select.vue\";\nimport QuireSpace from \"../../space/space.vue\";\nimport { useQuireKitMessages } from \"../../locale-provider/context\";\nimport type { QuireKitProseFilesProps, QuireKitProseFilesSlots } from \"./types\";\n\nconst props = defineProps<QuireKitProseFilesProps>();\ndefineSlots<QuireKitProseFilesSlots>();\nconst value = defineModel<string>();\nconst text = useQuireKitMessages(\"prose\");\nconst current = computed(() => props.files.find(file => file === value.value) ?? props.files[0]);\nconst items = computed(() => props.files.map(file => ({ value: file, label: file })));\n</script>\n\n<template>\n <QuireSpace orientation=\"vertical\" gap=\"inline\" block data-qk-prose-files data-qk-not-prose data-qk-not-typography>\n <QuireSelect v-if=\"files.length > 1 && current\" :items=\"items\" :model-value=\"current\" :label=\"label ?? text.sourceFile\" width=\"100%\" @update:model-value=\"value = $event\" />\n <div v-if=\"current\" :key=\"current\" :data-source-file=\"current\"><slot :file=\"current\" /></div>\n </QuireSpace>\n</template>\n","<script setup lang=\"ts\">\nimport { useId } from \"vue\";\nimport { QuireIcon } from \"../../icon\";\nimport { QuireIconButton } from \"../../button\";\nimport { useQuireKitMessages } from \"../../locale-provider/context\";\nimport type { QuireKitProseContainerProps } from \"./types\";\nwithDefaults(defineProps<QuireKitProseContainerProps>(), {\n tone: \"neutral\", collapsible: false,\n});\nconst text = useQuireKitMessages(\"prose\");\nconst open = defineModel<boolean>(\"open\", { default: true });\nconst bodyId = useId();\n</script>\n<template>\n <section class=\"qk-prose-container\" :data-tone=\"tone\">\n <div class=\"qk-prose-container__header\">\n <QuireIconButton v-if=\"collapsible\" size=\"sm\" variant=\"ghost\" :label=\"open ? text.collapse(title) : text.expand(title)\"\n :aria-expanded=\"open\" :aria-controls=\"bodyId\" data-qk-not-prose @click=\"open = !open\">\n <QuireIcon :name=\"open ? 'chevronDown' : 'chevronRight'\" />\n </QuireIconButton>\n <span>{{ title }}</span>\n </div>\n <div :id=\"bodyId\" class=\"qk-prose-container__body\" :hidden=\"collapsible && !open\"><slot /></div>\n </section>\n</template>\n","<script setup lang=\"ts\">\nimport { useId } from 'vue';\nimport type { QuireKitDescriptionItem, QuireKitDescriptionsProps } from './types';\nwithDefaults(defineProps<QuireKitDescriptionsProps>(), {\n titleAs: 'h3', columns: 2, orientation: 'horizontal', variant: 'plain',\n density: 'regular', labelWidth: '8em', emptyValue: '—'\n});\ndefineSlots<{\n /** Replaces title text within the configured heading. */\n title?: () => unknown;\n /** Independent header actions; no wrapper is created when absent. */\n trailing?: () => unknown;\n /** Enriches each item's name without changing dt semantics. */\n label?: (props: { item: QuireKitDescriptionItem; index: number }) => unknown;\n /** Replaces each value with consumer-owned content or controls. */\n value?: (props: { item: QuireKitDescriptionItem; index: number }) => unknown;\n}>();\nconst titleId = `qk-descriptions-${useId()}-title`;\n</script>\n<template>\n <div class=\"qk-descriptions\" data-qk-not-prose>\n <div v-if=\"title || $slots.title || $slots.trailing\" class=\"qk-descriptions__header\">\n <component :is=\"titleAs\" v-if=\"title || $slots.title\" :id=\"titleId\" class=\"qk-descriptions__title\"><slot name=\"title\">{{ title }}</slot></component>\n <div v-if=\"$slots.trailing\" class=\"qk-descriptions__trailing\"><slot name=\"trailing\" /></div>\n </div>\n <dl class=\"qk-descriptions__list\" :data-columns=\"columns\" :data-orientation=\"orientation\"\n :data-variant=\"variant\" :data-density=\"density\" :style=\"{ '--qk-descriptions-label-width': labelWidth }\"\n :aria-labelledby=\"title || $slots.title ? titleId : undefined\" :aria-label=\"title || $slots.title ? undefined : label\">\n <div v-for=\"(item, index) in items\" :key=\"item.key\" class=\"qk-descriptions__item\" :data-key=\"item.key\"\n :style=\"{ gridColumn: item.span === 'full' ? '1 / -1' : `span var(--qk-descriptions-span-${item.span ?? 1})` }\">\n <dt class=\"qk-descriptions__label\"><slot name=\"label\" :item=\"item\" :index=\"index\">{{ item.label }}</slot></dt>\n <dd class=\"qk-descriptions__value\"><slot name=\"value\" :item=\"item\" :index=\"index\">{{ item.value === '' || item.value == null ? emptyValue : item.value }}</slot></dd>\n </div>\n </dl>\n </div>\n</template>\n","import type { QuireKitTreeNode } from '../../components/tree-view';\nimport type { HierarchyEntry } from './types';\n\n/** Projects inherited disabled state without mutating supplied nodes.\n * @param nodes - Siblings in source order.\n * @param disabled - Whether an ancestor is unavailable.\n * @returns A tree whose disabled branches cannot expose selectable descendants.\n */\nexport function prepareHierarchy(nodes: readonly QuireKitTreeNode[], disabled = false): QuireKitTreeNode[] {\n return nodes.map(node => ({ ...node, disabled: disabled || node.disabled === true,\n ...(node.children ? { children: prepareHierarchy(node.children, disabled || node.disabled === true) } : {}) }));\n}\n\n/** Indexes paths once, keeping search independent of the rendered tree.\n * @param nodes - Complete prepared hierarchy.\n * @param ancestors - Current ancestor chain.\n * @returns Depth-first entries for display, search and submission.\n */\nexport function hierarchyEntries(nodes: readonly QuireKitTreeNode[], ancestors: readonly QuireKitTreeNode[] = []): HierarchyEntry[] {\n const entries = nodes.flatMap(node => {\n const path = [...ancestors, node];\n return [{ node, path, leaf: !node.children?.length && !node.childrenCount, text: path.map(item => item.label).join(' / ') },\n ...hierarchyEntries(node.children ?? [], path)];\n });\n if (!ancestors.length) {\n const ids = new Set<string>();\n for (const { node } of entries) {\n if (!node.id || node.id === '__quirekit_tree_root__' || ids.has(node.id)) throw new Error(`Hierarchy ids must be nonempty and globally unique: ${node.id}`);\n ids.add(node.id);\n }\n }\n return entries;\n}\n\n/** Matches every query word anywhere in a full path.\n * @param entries - Eligible candidates.\n * @param query - User search string.\n * @returns Stable candidates with no change to selection or expansion.\n */\nexport function searchHierarchy(entries: readonly HierarchyEntry[], query: string): HierarchyEntry[] {\n const words = query.trim().toLocaleLowerCase().split(/\\s+/).filter(Boolean);\n return entries.filter(entry => words.every(word => entry.text.toLocaleLowerCase().includes(word)));\n}\n\n/** Prevents upstream bulk selection from adding disabled or unknown candidates.\n * @param next - Requested complete selection.\n * @param previous - Current selection, including unavailable values.\n * @param entries - Current eligible candidates.\n * @returns New enabled values plus preserved unavailable values.\n */\nexport function protectSelection(next: readonly string[], previous: readonly string[], entries: readonly HierarchyEntry[]): string[] {\n const enabled = new Set(entries.filter(entry => !entry.node.disabled).map(entry => entry.node.id));\n return [...new Set([...next.filter(id => enabled.has(id)), ...previous.filter(id => !enabled.has(id))])];\n}\n","import { computed, ref } from 'vue';\nimport { hierarchyEntries, prepareHierarchy } from './data';\nimport type { QuireKitHierarchyPickerProps } from './types';\n\n/** Shared field state; browsing and search never write the committed selection.\n * @param props - Reactive public field props.\n * @param onValue - Selection notification.\n * @param onOpen - Popup notification.\n * @returns Prepared data, independent popup/query state and explicit commit boundaries.\n */\nexport function useHierarchyPicker(props: QuireKitHierarchyPickerProps, onValue: (value: string[]) => void, onOpen: (open: boolean) => void) {\n const internal = ref([...(props.defaultValue ?? [])]);\n const localOpen = ref(props.defaultOpen ?? false);\n const query = ref('');\n const value = computed(() => props.modelValue ?? internal.value);\n const nodes = computed(() => prepareHierarchy(props.nodes));\n const entries = computed(() => hierarchyEntries(nodes.value));\n const open = computed(() => !props.disabled && !props.readOnly && (props.open ?? localOpen.value));\n /** @param next - Requested popup state. */\n function setOpen(next: boolean): void {\n if (next && (props.disabled || props.readOnly)) return;\n localOpen.value = next;\n if (!next) query.value = '';\n onOpen(next);\n }\n /** @param next - Explicit committed ids. */\n function commit(next: string[]): void {\n if (props.disabled || props.readOnly) return;\n internal.value = next;\n onValue(next);\n }\n /** Restores the native form's initial value even when the field is read-only. */\n function reset(): void {\n internal.value = [...(props.defaultValue ?? [])];\n onValue(internal.value);\n setOpen(false);\n }\n return { value, nodes, entries, open, query, setOpen, commit, reset };\n}\n","import { nextTick, watchEffect, type Ref } from 'vue';\n\n/** Reconciles native resets with a committed array model, including late external forms.\n * @param field - Native select that owns validation and form association.\n * @param value - Current committed ids.\n * @param onReset - Explicit model reset boundary.\n */\nexport function useHierarchyForm(field: Ref<HTMLSelectElement | undefined>, value: () => readonly string[], onReset: () => void): void {\n watchEffect(onCleanup => {\n const element = field.value;\n if (!element) return;\n const root = element.getRootNode();\n const events = root.nodeType === 11 && 'host' in root ? root : element.ownerDocument;\n let active = true;\n /** @param event - Cancelable native reset from the currently associated form. */\n function reset(event: Event): void {\n if (event.target !== field.value?.form) return;\n queueMicrotask(async () => {\n if (!active || event.target !== field.value?.form) return;\n if (!event.defaultPrevented) onReset();\n await nextTick();\n // Native reset changes selectedIndex even when both models are nonempty.\n if (active && field.value) field.value.value = value().length ? 'selected' : '';\n });\n }\n events.addEventListener('reset', reset, true);\n onCleanup(() => { active = false; events.removeEventListener('reset', reset, true); });\n }, { flush: 'post' });\n}\n","<script setup lang=\"ts\">\nimport { ref } from 'vue';\nimport { useHierarchyForm } from './use-form';\nimport { ark } from '@ark-ui/vue/factory';\nimport QuireIconButton from '../button/icon-button.vue';\nimport QuireIcon from '../icon/icon.vue';\nimport QuireInput from '../input/input.vue';\nimport { QuirePopoverRoot, QuirePopoverTrigger, QuirePopoverContent, QuirePopoverTitle } from '../popover';\nimport { useQuireKitMessages } from '../locale-provider/context';\nimport type { QuireKitHierarchyPickerProps } from './types';\n\nconst ArkButton = ark.button;\n\n/** Internal field shell, shared by both hierarchy selection views. */\ninterface Props extends QuireKitHierarchyPickerProps {\n /** Current display text. */\n readonly display: string;\n /** Effective committed ids. */\n readonly value: string[];\n /** Independent search query. */\n readonly query: string;\n /** Allows independently positioned descendant surfaces outside the root box. */\n readonly flyouts?: boolean;\n}\nconst props = defineProps<Props>();\nconst text = useQuireKitMessages('hierarchyPicker');\nconst emit = defineEmits<{\n /** Popup transition. */\n 'update:open': [open: boolean];\n /** Search changes without selecting. */\n 'update:query': [query: string];\n /** Explicit clear action. */\n clear: [];\n /** Native form reset. */\n reset: [];\n}>();\ndefineSlots<{ /** Selection view content. */ default(): unknown }>();\nconst root = ref<HTMLElement>();\nconst validation = ref<HTMLSelectElement>();\nuseHierarchyForm(validation, () => props.value, () => emit('reset'));\n/** Returns focus to the persistent field trigger. */\nfunction focusTrigger(): void { root.value?.querySelector<HTMLButtonElement>('[data-part=\"trigger\"]')?.focus(); }\n/** Clears the selection while keeping a predictable keyboard target. */\nfunction clear(): void { emit('clear'); focusTrigger(); }\n</script>\n\n<template>\n <div ref=\"root\" class=\"qk-hierarchy-picker\" :style=\"{ width: width ?? '280px' }\" :data-invalid=\"invalid || undefined\">\n <QuirePopoverRoot :open=\"open ?? false\" :portalled=\"portalled ?? true\" @update:open=\"emit('update:open', $event)\">\n <div class=\"qk-hierarchy-picker__control\">\n <QuirePopoverTrigger as-child>\n <component :is=\"ArkButton\" type=\"button\" class=\"qk-select__trigger qk-select__trigger--sm qk-hierarchy-picker__trigger\"\n :disabled=\"disabled\" :aria-disabled=\"readOnly || undefined\" :aria-invalid=\"invalid || undefined\"\n :aria-label=\"text.trigger(label, display || placeholder || text.placeholder)\" :title=\"display\"\n @click.capture=\"readOnly && $event.preventDefault()\">\n <span :class=\"['qk-hierarchy-picker__value', !display && 'text-qk-text-tertiary']\">{{ display || placeholder || text.placeholder }}</span>\n <QuireIcon name=\"chevronDown\" :size=\"16\" />\n </component>\n </QuirePopoverTrigger>\n <QuireIconButton v-if=\"clearable !== false && value.length && !disabled && !readOnly\" :label=\"text.clear(label)\"\n size=\"xs\" variant=\"text\" class=\"qk-hierarchy-picker__clear\" @click=\"clear\"><QuireIcon name=\"close\" :size=\"12\" /></QuireIconButton>\n </div>\n <QuirePopoverContent :show-arrow=\"false\" border=\"subtle\" :class=\"['qk-hierarchy-picker__popup', flyouts && 'qk-hierarchy-picker__popup--flyouts']\">\n <QuirePopoverTitle class=\"sr-only\">{{ label }}</QuirePopoverTitle>\n <div v-if=\"searchable !== false\" class=\"qk-hierarchy-picker__search\">\n <QuireInput :model-value=\"query\" :aria-label=\"text.search(label)\" :placeholder=\"searchPlaceholder ?? text.searchPlaceholder\"\n width=\"100%\" clearable @update:model-value=\"emit('update:query', $event)\" />\n </div>\n <slot />\n </QuirePopoverContent>\n </QuirePopoverRoot>\n <!-- Native validation owns required semantics; hidden successful controls preserve id order. -->\n <select ref=\"validation\" class=\"sr-only\" tabindex=\"-1\" aria-hidden=\"true\" :form=\"form\"\n :disabled=\"disabled\" :required=\"required && !readOnly\" :value=\"value.length ? 'selected' : ''\" @focus=\"focusTrigger\">\n <option value=\"\" /><option value=\"selected\">{{ display }}</option>\n </select>\n <input v-for=\"(id, index) in value\" :key=\"`${index}:${id}`\" type=\"hidden\" :name=\"name\" :form=\"form\" :value=\"id\" :disabled=\"disabled\" />\n </div>\n</template>\n","<script setup lang=\"ts\">\nimport { computed, ref } from 'vue';\nimport type { QuireKitTreeSelectProps } from './types';\nimport type { HierarchyPickerEmits } from '../hierarchy-picker/types';\nimport { protectSelection, searchHierarchy } from '../hierarchy-picker/data';\nimport { useHierarchyPicker } from '../hierarchy-picker/use-picker';\nimport PickerField from '../hierarchy-picker/field.vue';\nimport QuireTreeView from '../tree-view/tree-view.vue';\nimport QuireListbox from '../listbox/listbox.vue';\nimport { useQuireKitMessages } from '../locale-provider/context';\n\nconst pickerText = useQuireKitMessages('hierarchyPicker');\nconst text = useQuireKitMessages('treeSelect');\nconst props = withDefaults(defineProps<QuireKitTreeSelectProps>(), { selectionMode: 'single', leafOnly: false, open: undefined, searchable: true, clearable: true, portalled: true });\nconst emit = defineEmits<HierarchyPickerEmits & {\n /** Expansion changes independently from selected ids. */\n 'update:expandedValue': [value: string[]];\n}>();\nconst { value, nodes, entries, open, query, setOpen, commit, reset } = useHierarchyPicker(props,\n next => { emit('update:modelValue', next); emit('valueChange', next); },\n next => { emit('update:open', next); emit('openChange', next); });\nconst localExpanded = ref([...(props.defaultExpandedValue ?? [])]);\nconst expanded = computed(() => props.expandedValue ?? localExpanded.value);\nconst multiple = computed(() => props.selectionMode === 'multiple');\nconst candidates = computed(() => entries.value.filter(entry => !(props.leafOnly || multiple.value) || entry.leaf));\nconst results = computed(() => searchHierarchy(candidates.value, query.value).map(entry => ({ value: entry.node.id, label: entry.text, disabled: entry.node.disabled === true })));\nconst display = computed(() => value.value.map(id => entries.value.find(entry => entry.node.id === id)?.node.label ?? id).join(text.value.separator));\n/** @param next - Requested independent expansion model. */\nfunction expand(next: string[] | undefined): void {\n localExpanded.value = next ?? [];\n emit('update:expandedValue', localExpanded.value);\n}\n/** @param next - Selection from the unfiltered tree or path-search list. */\nfunction select(next: string[] | undefined): void {\n if (next === undefined) return;\n if (multiple.value) {\n commit(protectSelection(next, value.value, candidates.value));\n } else {\n const id = next[0];\n if (!id || !candidates.value.some(entry => entry.node.id === id && !entry.node.disabled)) return;\n commit([id]);\n setOpen(false);\n }\n}\n</script>\n\n<template>\n <PickerField v-bind=\"props\" :value=\"value\" :display=\"display\" :open=\"open\" :query=\"query\"\n @update:query=\"query = $event\" @update:open=\"setOpen\" @clear=\"commit([])\" @reset=\"reset\">\n <div class=\"qk-hierarchy-picker__viewport\">\n <QuireListbox v-if=\"query.trim()\" :label=\"pickerText.searchResults(label)\" hide-label :items=\"results\" :model-value=\"value\"\n :selection-mode=\"selectionMode\" @update:model-value=\"select\"><template #empty>{{ pickerText.noMatches }}</template></QuireListbox>\n <QuireTreeView v-else-if=\"nodes.length\" :label=\"label\" :nodes=\"nodes\" :checkable=\"multiple\"\n :checked-value=\"value\" :selected-value=\"multiple ? [] : value\" :expanded-value=\"expanded\"\n :expand-on-click=\"multiple || leafOnly\" :show-indent-guides=\"false\"\n @update:checked-value=\"select\" @update:selected-value=\"!multiple && select($event)\" @update:expanded-value=\"expand\" />\n <p v-else class=\"qk-hierarchy-picker__empty\">{{ pickerText.empty }}</p>\n </div>\n </PickerField>\n</template>\n","<script setup lang=\"ts\">\nimport { computed } from 'vue';\nimport type { QuireKitTreeNode } from '../../components/tree-view';\nimport QuireListbox from '../listbox/listbox.vue';\nimport QuireIcon from '../icon/icon.vue';\nimport { useQuireKitMessages } from '../locale-provider/context';\n\n/** One independently scrollable hierarchy level. */\ninterface Props {\n /** Field accessible name. */\n readonly label: string;\n /** Zero-based depth. */\n readonly level: number;\n /** Siblings displayed by this level. */\n readonly nodes: readonly QuireKitTreeNode[];\n /** Current branch being browsed. */\n readonly active?: string | undefined;\n /** Committed terminal id, independent of hover. */\n readonly selected?: string | undefined;\n}\nconst props = defineProps<Props>();\nconst text = useQuireKitMessages('cascader');\nconst emit = defineEmits<{\n /** A pointer is resting on an enabled option; never a commit. */\n hover: [id: string];\n /** Pointer enters this level, cancelling a pending sibling switch. */\n enter: [];\n /** Pointer leaves this level. */\n leave: [];\n /** Click or keyboard activation owned by Listbox. */\n select: [id: string];\n /** Cross-level keyboard navigation. */\n navigate: [event: KeyboardEvent];\n}>();\n// Only an expanded branch is provisionally selected in the navigation list.\n// A hovered leaf must remain activatable; the checkmark uses the committed id.\nconst activeBranch = computed(() => props.nodes.find(node => node.id === props.active && node.children?.length)?.id);\nconst items = computed(() => props.nodes.map(node => ({ value: node.id, label: node.label, disabled: node.disabled === true })));\n/** Delegates pointer intent without changing Listbox's active-descendant ownership.\n * @param event - Pointer movement inside this level's options.\n */\nfunction hover(event: PointerEvent): void {\n if (event.pointerType === 'touch') return;\n const option = (event.target as HTMLElement).closest<HTMLElement>('[role=\"option\"]');\n if (option?.dataset.value && option.getAttribute('aria-disabled') !== 'true') emit('hover', option.dataset.value);\n}\n</script>\n\n<template>\n <div class=\"qk-cascader__level\" :data-cascader-level=\"level\" @pointermove=\"hover\"\n @pointerenter=\"emit('enter')\" @pointerleave=\"emit('leave')\" @keydown.capture=\"emit('navigate', $event)\">\n <QuireListbox :label=\"text.level(label, level + 1)\" hide-label :items=\"items\" :model-value=\"activeBranch ? [activeBranch] : []\"\n @update:model-value=\"$event?.[0] && emit('select', $event[0])\">\n <template #item=\"{ item }\">\n <span class=\"qk-hierarchy-picker__option\">{{ item.label }}</span>\n <QuireIcon v-if=\"nodes.some(node => node.id === item.value && (node.children?.length || node.childrenCount))\"\n name=\"chevronRight\" :size=\"12\" class=\"qk-hierarchy-picker__next\" />\n <QuireIcon v-else-if=\"selected === item.value\" name=\"check\" :size=\"12\" />\n </template>\n </QuireListbox>\n </div>\n</template>\n","import { autoUpdate, computePosition, flip, hide, offset, shift, size } from '@floating-ui/dom';\nimport { ref, watchEffect, type Ref } from 'vue';\n\n/** Positions a child surface without contributing width to the root field popup.\n * @param anchor - Parent option in the preceding level.\n * @param floating - Independently painted child surface.\n * @returns Whether a current, visible anchor has been positioned.\n */\nexport function useCascaderFlyout(anchor: () => HTMLElement | undefined, floating: Ref<HTMLElement | undefined>) {\n const ready = ref(false);\n watchEffect(onCleanup => {\n const reference = anchor();\n const element = floating.value;\n ready.value = false;\n if (!reference || !element) return;\n let active = true;\n let revision = 0;\n /** Measures in the shared Popover's coordinate space and discards obsolete measurements. */\n async function update(): Promise<void> {\n const request = ++revision;\n const rtl = getComputedStyle(reference!).direction === 'rtl';\n const result = await computePosition(reference!, element!, {\n placement: rtl ? 'left-start' : 'right-start', strategy: 'absolute',\n middleware: [offset(6), flip({ padding: 8 }), shift({ padding: 8, crossAxis: true }),\n size({ padding: 8, apply({ availableHeight, elements }) {\n elements.floating.style.maxHeight = `${Math.max(0, availableHeight)}px`;\n } }), hide()]\n });\n if (!active || request !== revision) return;\n Object.assign(element!.style, { left: `${result.x}px`, top: `${result.y}px` });\n element!.dataset.placement = result.placement;\n ready.value = !result.middlewareData.hide?.referenceHidden && getComputedStyle(reference!).visibility !== 'hidden';\n }\n // A deeper anchor moves when its parent flyout flips. RAF tracks that transform\n // as well as ordinary resize and scroll, only while this child is mounted.\n const cleanup = autoUpdate(reference, element, () => { void update(); }, { animationFrame: true });\n onCleanup(() => { active = false; cleanup(); });\n }, { flush: 'post' });\n return ready;\n}\n","<script setup lang=\"ts\">\nimport { ref } from 'vue';\nimport { useCascaderFlyout } from './use-flyout';\n\n/** Geometric child surface; dismissal remains owned by the root Popover. */\ninterface Props {\n /** Parent option, resolved after its level mounts. */\n readonly anchor?: HTMLElement | undefined;\n /** Nesting order determines overlap on narrow viewports. */\n readonly level: number;\n}\nconst props = defineProps<Props>();\nconst element = ref<HTMLElement>();\nconst ready = useCascaderFlyout(() => props.anchor, element);\n</script>\n\n<template>\n <div ref=\"element\" class=\"qk-cascader__flyout\" data-cascader-flyout :style=\"{ visibility: ready ? 'visible' : 'hidden', zIndex: level }\">\n <slot />\n </div>\n</template>\n","<script setup lang=\"ts\">\nimport { computed, nextTick, onBeforeUnmount, ref, shallowRef, watch } from 'vue';\nimport type { QuireKitTreeNode } from '../../components/tree-view';\nimport CascaderLevel from './level.vue';\nimport CascaderFlyout from './flyout.vue';\n\n/** Hierarchy presentation: one root level and independently anchored descendants. */\ninterface Props {\n /** Field accessible name. */\n readonly label: string;\n /** Prepared hierarchy with disabled ancestry. */\n readonly nodes: readonly QuireKitTreeNode[];\n /** Last committed terminal id. */\n readonly selected?: string | undefined;\n /** Whether pointer hover previews branches. */\n readonly expandTrigger: 'hover' | 'click';\n}\nconst props = defineProps<Props>();\nconst browsing = defineModel<string[]>({ required: true });\nconst emit = defineEmits<{ /** Commits a terminal node only. */ choose: [id: string] }>();\nconst root = ref<HTMLElement>();\nconst anchors = shallowRef<Array<HTMLElement | undefined>>([]);\nlet pending: ReturnType<typeof setTimeout> | undefined;\nlet pendingKey = '';\nconst levels = computed(() => {\n const result = [props.nodes];\n let siblings = props.nodes;\n for (const id of browsing.value) {\n const children = siblings.find(node => node.id === id && !node.disabled)?.children;\n if (!children?.length) break;\n result.push(children); siblings = children;\n }\n return result;\n});\n/** Cancels a pending sibling preview without closing the current child. */\nfunction cancelHover(): void { clearTimeout(pending); pending = undefined; pendingKey = ''; }\nonBeforeUnmount(cancelHover);\n/** @param level - Parent level. @param id - Branch or leaf being previewed. */\nfunction preview(level: number, id: string): void {\n if (!levels.value[level]?.some(node => node.id === id && !node.disabled)) return;\n browsing.value = [...browsing.value.slice(0, level), id];\n}\n/** @param level - Parent level. @param id - Pointer candidate, distinct from selection. */\nfunction hover(level: number, id: string): void {\n if (props.expandTrigger !== 'hover') return;\n if (browsing.value[level] === id) { cancelHover(); return; }\n if (pendingKey === `${level}:${id}`) return;\n cancelHover(); pendingKey = `${level}:${id}`;\n pending = setTimeout(() => { preview(level, id); cancelHover(); }, 140);\n}\n/** @param level - Activated level. @param id - Click or keyboard candidate. */\nfunction select(level: number, id: string): void {\n cancelHover(); preview(level, id);\n const node = levels.value[level]?.find(node => node.id === id && !node.disabled);\n if (node && !node.children?.length && !node.childrenCount) emit('choose', id);\n}\n/** @param level - Mounted list depth. @returns Its Listbox focus owner. */\nfunction listAt(level: number): HTMLElement | undefined {\n return root.value?.querySelector<HTMLElement>(`[data-cascader-level=\"${level}\"] [role=\"listbox\"]`) ?? undefined;\n}\nwatch([levels, browsing], async () => {\n await nextTick();\n anchors.value = levels.value.map((_, level) => level === 0 ? undefined :\n Array.from(listAt(level - 1)?.querySelectorAll<HTMLElement>('[role=\"option\"]') ?? [])\n .find(option => option.dataset.value === browsing.value[level - 1]));\n}, { immediate: true, flush: 'post' });\n/** Moves focus across flyouts without turning branch exploration into selection.\n * @param event - Keyboard event from a level.\n * @param level - Current depth.\n */\nasync function navigate(event: KeyboardEvent, level: number): Promise<void> {\n const list = event.target as HTMLElement;\n if (list.getAttribute('role') !== 'listbox') return;\n const rtl = getComputedStyle(list).direction === 'rtl';\n const forward = event.key === (rtl ? 'ArrowLeft' : 'ArrowRight');\n const backward = event.key === (rtl ? 'ArrowRight' : 'ArrowLeft');\n if (!forward && !backward) return;\n event.preventDefault(); event.stopPropagation(); cancelHover();\n if (forward) {\n const candidate = list.ownerDocument.getElementById(list.getAttribute('aria-activedescendant') ?? '')?.dataset.value;\n const node = levels.value[level]?.find(node => node.id === candidate && !node.disabled);\n if (!node?.children?.length) return;\n preview(level, node.id);\n await nextTick(); await nextTick();\n listAt(level + 1)?.focus({ preventScroll: true });\n } else if (level > 0) {\n listAt(level - 1)?.focus({ preventScroll: true });\n browsing.value = browsing.value.slice(0, level - 1);\n }\n}\n</script>\n\n<template>\n <div ref=\"root\" class=\"qk-cascader__panels\">\n <CascaderLevel :nodes=\"nodes\" :level=\"0\" :label=\"label\" :active=\"browsing[0]\" :selected=\"selected\"\n @hover=\"hover(0, $event)\" @enter=\"cancelHover\" @leave=\"cancelHover\" @select=\"select(0, $event)\" @navigate=\"navigate($event, 0)\" />\n <CascaderFlyout v-for=\"(siblings, index) in levels.slice(1)\" :key=\"`${index}:${browsing[index]}`\" :level=\"index + 1\" :anchor=\"anchors[index + 1]\">\n <CascaderLevel :nodes=\"siblings\" :level=\"index + 1\" :label=\"label\" :active=\"browsing[index + 1]\" :selected=\"selected\"\n @hover=\"hover(index + 1, $event)\" @enter=\"cancelHover\" @leave=\"cancelHover\" @select=\"select(index + 1, $event)\" @navigate=\"navigate($event, index + 1)\" />\n </CascaderFlyout>\n </div>\n</template>\n","<script setup lang=\"ts\">\nimport { computed, ref, watch } from 'vue';\nimport type { QuireKitCascaderProps } from './types';\nimport type { HierarchyPickerEmits } from '../hierarchy-picker/types';\nimport { searchHierarchy } from '../hierarchy-picker/data';\nimport { useHierarchyPicker } from '../hierarchy-picker/use-picker';\nimport PickerField from '../hierarchy-picker/field.vue';\nimport QuireListbox from '../listbox/listbox.vue';\nimport CascaderPanels from './panels.vue';\nimport { useQuireKitMessages } from '../locale-provider/context';\n\nconst props = withDefaults(defineProps<QuireKitCascaderProps>(), { open: undefined, searchable: true, clearable: true, portalled: true, expandTrigger: 'hover' });\nconst emit = defineEmits<HierarchyPickerEmits>();\nconst text = useQuireKitMessages('hierarchyPicker');\nconst { value, nodes, entries, open, query, setOpen, commit, reset } = useHierarchyPicker(props,\n next => { emit('update:modelValue', next); emit('valueChange', next); },\n next => { emit('update:open', next); emit('openChange', next); });\nconst browsing = ref<string[]>([]);\nconst display = computed(() => value.value.map(id => entries.value.find(entry => entry.node.id === id)?.node.label ?? id).join(' / '));\nconst results = computed(() => searchHierarchy(entries.value.filter(entry => entry.leaf), query.value)\n .map(entry => ({ value: entry.node.id, label: entry.text, disabled: entry.node.disabled === true })));\nwatch([open, value], () => { if (open.value) browsing.value = [...value.value]; }, { immediate: true });\n/** @param id - Terminal candidate selected through browsing or path search. */\nfunction choose(id: string): void {\n const entry = entries.value.find(entry => entry.node.id === id);\n if (!entry?.leaf || entry.node.disabled) return;\n commit(entry.path.map(node => node.id));\n setOpen(false);\n}\n</script>\n\n<template>\n <PickerField v-bind=\"props\" :value=\"value\" :display=\"display\" :open=\"open\" :query=\"query\" flyouts\n @update:query=\"query = $event\" @update:open=\"setOpen\" @clear=\"commit([])\" @reset=\"reset\">\n <div v-if=\"query.trim()\" class=\"qk-hierarchy-picker__viewport\">\n <QuireListbox :label=\"text.searchResults(label)\" hide-label :items=\"results\" :model-value=\"value.slice(-1)\"\n @update:model-value=\"$event?.[0] && choose($event[0])\"><template #empty>{{ text.noMatches }}</template></QuireListbox>\n </div>\n <CascaderPanels v-else-if=\"open\" v-model=\"browsing\" :nodes=\"nodes\" :label=\"label\"\n :selected=\"value.at(-1)\" :expand-trigger=\"expandTrigger\" @choose=\"choose\" />\n </PickerField>\n</template>\n","<script setup lang=\"ts\">\nimport { computed, ref } from 'vue';\nimport { HoverCard, useHoverCard } from '@ark-ui/vue/hover-card';\nimport { useModalSurfaceOwner } from '../shared/surface/use-modal-owner';\nimport type { QuireKitHoverCardProps as Props } from './types';\n\nconst props = withDefaults(defineProps<Props>(), {\n open: undefined, defaultOpen: false, openDelay: 600, closeDelay: 300,\n disabled: false, placement: 'bottom-start', gutter: 8\n});\nconst emit = defineEmits<{\n /** 受控状态更新请求。 */\n 'update:open': [open: boolean];\n /** 打开或关闭请求。 */\n openChange: [open: boolean];\n}>();\ndefineSlots<{ /** Trigger 与 Content。 */ default(): unknown }>();\ndefineOptions({ inheritAttrs: false });\nconst owner = useModalSurfaceOwner();\nconst internalOpen = ref(props.defaultOpen);\n// A retained modal cannot leave a hidden child registered in the dismiss stack.\nconst api = useHoverCard(computed(() => ({\n open: !props.disabled && owner.ready.value && (props.open ?? internalOpen.value),\n disabled: props.disabled || !owner.ready.value,\n openDelay: props.openDelay,\n closeDelay: props.closeDelay,\n positioning: { placement: props.placement, gutter: props.gutter, flip: true, slide: true, hideWhenDetached: true },\n onOpenChange: ({ open }: { open: boolean }) => {\n if (!owner.ready.value || props.disabled) return;\n internalOpen.value = open;\n emit('update:open', open);\n emit('openChange', open);\n }\n})));\n</script>\n\n<template>\n <HoverCard.RootProvider :value=\"api\" lazy-mount unmount-on-exit><slot /></HoverCard.RootProvider>\n</template>\n","<script setup lang=\"ts\">\nimport { computed } from 'vue';\nimport { HoverCard, useHoverCardContext } from '@ark-ui/vue/hover-card';\n\n/** 预览触发元素。 */\ninterface Props {\n /** 将行为合并到唯一子元素,保留链接或按钮的语义。 */\n readonly asChild?: boolean;\n}\nconst { asChild = false } = defineProps<Props>();\ndefineSlots<{ /** 可聚焦的按钮或链接。 */ default(): unknown }>();\nconst api = useHoverCardContext();\nconst descriptionId = computed(() => api.value.open ? api.value.getContentProps().id : undefined);\n/** 点击补充触摸入口;不阻止原链接导航或按钮的默认行为。 */\nfunction reveal(): void { api.value.setOpen(true); }\n</script>\n\n<template>\n <HoverCard.Trigger :as-child=\"asChild\" :type=\"asChild ? undefined : 'button'\" :aria-describedby=\"descriptionId\" @click=\"reveal\"><slot /></HoverCard.Trigger>\n</template>\n","<script setup lang=\"ts\">\nimport QuireThemePortal from \"../theme-provider/portal.vue\";\nimport { onMounted, ref, useAttrs } from 'vue';\nimport { HoverCard, useHoverCardContext } from '@ark-ui/vue/hover-card';\nimport { useModalPortal } from '../shared/surface/use-modal-portal';\n\n/** 阅读卡片的容器选项。 */\ninterface Props {\n /** 首选宽度,仍受屏幕可用空间约束。 */\n readonly width?: string;\n /** 是否传送至 portal 目标。 */\n readonly portalled?: boolean;\n /** Portal 的目标元素或选择器。 */\n readonly portalTarget?: string | HTMLElement;\n /** 是否显示指向触发器的箭头。 */\n readonly showArrow?: boolean;\n}\nconst { width = '20rem', portalled = true, portalTarget = 'body', showArrow = false } = defineProps<Props>();\ndefineSlots<{ /** 摘要信息;需要操作的内容使用 Popover。 */ default(): unknown }>();\ndefineOptions({ inheritAttrs: false });\nconst attrs = useAttrs();\nconst api = useHoverCardContext();\nconst { hasModalOwner, disabled } = useModalPortal(() => portalled, () => api.value.open);\nconst mounted = ref(false);\nonMounted(() => { mounted.value = true; });\n</script>\n\n<template>\n <Teleport :to=\"portalTarget\" :disabled=\"disabled || !mounted\">\n <QuireThemePortal>\n <HoverCard.Positioner :class=\"['qk-hover-card__positioner', hasModalOwner && 'qk-hover-card__positioner--modal']\">\n <HoverCard.Content v-bind=\"attrs\" class=\"qk-hover-card__content\" :style=\"{ '--qk-hover-card-width': width }\"><slot /></HoverCard.Content>\n <HoverCard.Arrow v-if=\"showArrow\" class=\"qk-hover-card__arrow\" aria-hidden=\"true\">\n <HoverCard.ArrowTip class=\"qk-hover-card__arrow-tip\" />\n </HoverCard.Arrow>\n </HoverCard.Positioner>\n </QuireThemePortal>\n </Teleport>\n</template>\n","import { computed, onBeforeUnmount, ref, watch } from 'vue';\nimport { createTaskRequests } from '../shared/task/session/requests';\nimport { useModalSurfaceOwner } from '../shared/surface/use-modal-owner';\nimport type { PopconfirmEvents, PopconfirmInput } from './types';\n\n/**\n * Owns confirmation sessions; Popover remains responsible for all surface interactions.\n * @param props - Live component inputs.\n * @param events - Host notifications.\n * @param id - Stable instance identity.\n * @returns Effective open state and guarded confirmation actions.\n */\nexport function usePopconfirm(props: PopconfirmInput, events: PopconfirmEvents, id: string) {\n const owner = useModalSurfaceOwner();\n const internalOpen = ref(props.defaultOpen ?? false);\n const open = computed(() => !props.disabled && owner.ready.value && (props.open ?? internalOpen.value));\n const failed = ref(false);\n const requests = createTaskRequests(id);\n // Every visibility transition invalidates previous work before consumers can reopen the surface.\n watch(open, visible => {\n failed.value = false;\n if (visible) requests.begin();\n else requests.end();\n }, { immediate: true, flush: 'sync' });\n onBeforeUnmount(requests.end);\n\n /** @param value - Requested open state from the user or successful submission. */\n function updateOpen(value: boolean): void {\n internalOpen.value = value;\n events.updateOpen(value);\n }\n /** @param value - Ark interaction's requested state. */\n function interact(value: boolean): void {\n if (props.disabled || !owner.ready.value || requests.submitting.value || value === open.value) return;\n updateOpen(value);\n if (!value) events.cancel();\n }\n /** Executes once per live session, ignoring superseded results. */\n async function confirm(): Promise<void> {\n if (!open.value) return;\n const context = requests.startSubmission();\n if (!context) return;\n failed.value = false;\n let result: void | boolean;\n try {\n result = await props.confirmAction?.(context);\n } catch (error) {\n if (requests.isCurrent(context, 'submission')) {\n failed.value = true;\n requests.finishSubmission(context);\n events.confirmError(error);\n }\n return;\n }\n if (!requests.isCurrent(context, 'submission')) return;\n requests.finishSubmission(context);\n if (result === false) return;\n events.confirm();\n // Success listeners may replace the session (for example deleting a row and reopening another).\n if (requests.sessionId.value === context.sessionId) updateOpen(false);\n }\n return { open, failed, submitting: requests.submitting, interact, confirm };\n}\n","<script setup lang=\"ts\">\nimport { Popover } from '@ark-ui/vue/popover';\nimport { useId } from 'vue';\nimport { QuireButton } from '../button';\nimport { QuirePopoverContent, QuirePopoverDescription, QuirePopoverTitle, QuirePopoverTrigger } from '../popover';\nimport { usePopoverRuntime } from '../popover/use-runtime';\nimport { usePopconfirm } from './use-popconfirm';\nimport type { QuireKitPopconfirmProps } from './types';\nimport { useQuireKitMessages } from '../locale-provider/context';\n\ndefineOptions({ name: 'QuirePopconfirm', inheritAttrs: false });\nconst props = withDefaults(defineProps<QuireKitPopconfirmProps>(), {\n open: undefined, defaultOpen: false, disabled: false, danger: false, placement: 'bottom-start', showArrow: true\n});\nconst text = useQuireKitMessages('popconfirm');\nconst emit = defineEmits<{\n /** 请求更新打开状态。 */\n 'update:open': [open: boolean];\n /** 确认操作成功。 */\n confirm: [];\n /** 用户取消。 */\n cancel: [];\n /** 确认失败,面板保留以便重试。 */\n confirmError: [error: unknown];\n}>();\nconst id = `qk-popconfirm-${useId()}`;\nconst { open, failed, submitting, interact, confirm } = usePopconfirm(props, {\n updateOpen: value => emit('update:open', value), cancel: () => emit('cancel'),\n confirm: () => emit('confirm'), confirmError: error => emit('confirmError', error)\n}, id);\n/** @returns The safe initial action within the confirmation surface. */\nfunction initialFocusEl(): HTMLElement | null { return document.getElementById(`${id}-cancel`); }\nconst { api } = usePopoverRuntime({\n get open() { return open.value; },\n get placement() { return props.placement; },\n get closeOnEscape() { return !submitting.value; },\n get closeOnInteractOutside() { return !submitting.value; },\n get finalFocusEl() { return props.finalFocusEl; },\n initialFocusEl\n}, { updateOpen: interact, openChange: () => {}, escapeKeyDown: () => {}, interactOutside: () => {} }, {\n id, ids: { trigger: `${id}-trigger`, content: `${id}-content` }\n});\n</script>\n\n<template>\n <Popover.RootProvider :value=\"api\">\n <QuirePopoverTrigger as-child :disabled=\"disabled\" :aria-disabled=\"disabled || undefined\"><slot /></QuirePopoverTrigger>\n <QuirePopoverContent v-bind=\"$attrs\" class=\"qk-popconfirm\" border=\"subtle\" :show-arrow=\"showArrow\" :aria-busy=\"submitting || undefined\">\n <QuirePopoverTitle>{{ title }}</QuirePopoverTitle>\n <QuirePopoverDescription v-if=\"description || $slots.description\"><slot name=\"description\">{{ description }}</slot></QuirePopoverDescription>\n <p v-if=\"failed\" class=\"qk-popconfirm__error\" role=\"alert\">{{ errorText ?? text.error }}</p>\n <div class=\"qk-popconfirm__actions\">\n <QuireButton :id=\"`${id}-cancel`\" variant=\"text\" :disabled=\"submitting\" @click=\"interact(false)\">{{ text.cancel }}</QuireButton>\n <QuireButton variant=\"solid\" :color=\"danger ? 'danger' : 'primary'\" :busy=\"submitting\" @click=\"confirm\">{{ confirmLabel ?? text.confirm }}</QuireButton>\n </div>\n </QuirePopoverContent>\n </Popover.RootProvider>\n</template>\n","<script setup lang=\"ts\">\nimport { computed } from 'vue';\nimport QuireIcon from '../icon/icon.vue';\nimport { useQuireKitMessages } from '../locale-provider/context';\nimport type { QuireKitTimelineItem, QuireKitTimelineProps, QuireKitTimelineSlots } from './types';\n\nconst props = withDefaults(defineProps<QuireKitTimelineProps>(), {\n reverse: false, density: 'regular', timePosition: 'inline', timeWidth: '9em'\n});\nconst text = useQuireKitMessages('timeline');\ndefineSlots<QuireKitTimelineSlots>();\nconst records = computed(() => {\n const ordered = props.items.map((item, index) => ({ item, index }));\n return props.reverse ? ordered.reverse() : ordered;\n});\n\n/** Resolve decorative symbols without deriving a business workflow from record position.\n * @param item - Original event.\n * @returns Registered icon name, or undefined for an ordinary neutral ring.\n */\nfunction eventIcon(item: QuireKitTimelineItem): string | undefined {\n return item.icon ?? ({ neutral: undefined, info: 'circleInfo', success: 'check', warning: 'triangleAlert', danger: 'close' }[item.status ?? 'neutral']);\n}\n\n/** Give state a textual equivalent alongside the decorative indicator.\n * @param item - Original event.\n * @returns Localized host label or the status fallback.\n */\nfunction statusText(item: QuireKitTimelineItem): string | undefined {\n return item.statusLabel ?? (item.status ? text.value.status[item.status] : undefined);\n}\n</script>\n\n<template>\n <div class=\"qk-timeline\" :data-density=\"density\" :data-time-position=\"timePosition\"\n :style=\"{ '--qk-timeline-time-width': timeWidth }\">\n <ol v-if=\"records.length\" class=\"qk-timeline__list\" role=\"list\" :aria-label=\"label ?? text.label\">\n <li v-for=\"{ item, index } in records\" :key=\"item.key\" class=\"qk-timeline__item\" :data-key=\"item.key\"\n :data-indicator=\"$slots.indicator ? 'custom' : eventIcon(item) ? 'icon' : 'dot'\"\n :data-status=\"item.status ?? 'neutral'\" :data-has-time=\"Boolean(item.time || $slots.time) || undefined\">\n <div class=\"qk-timeline__rail\" aria-hidden=\"true\">\n <span class=\"qk-timeline__indicator\">\n <slot name=\"indicator\" :item=\"item\" :index=\"index\">\n <QuireIcon v-if=\"eventIcon(item)\" :name=\"eventIcon(item)\" :size=\"16\" />\n <svg v-else class=\"qk-timeline__dot\" viewBox=\"0 0 8 8\" fill=\"none\" focusable=\"false\">\n <circle cx=\"4\" cy=\"4\" r=\"3.25\" stroke=\"currentColor\" stroke-width=\"1.5\" />\n </svg>\n </slot>\n </span>\n <span class=\"qk-timeline__connector\" />\n </div>\n <component :is=\"item.dateTime ? 'time' : 'div'\" v-if=\"item.time || $slots.time\" class=\"qk-timeline__time\"\n :datetime=\"item.dateTime || undefined\"><slot name=\"time\" :item=\"item\" :index=\"index\">{{ item.time }}</slot></component>\n <div class=\"qk-timeline__body\">\n <div class=\"qk-timeline__heading\">\n <div class=\"qk-timeline__title\"><slot name=\"title\" :item=\"item\" :index=\"index\">{{ item.title }}</slot></div>\n <span v-if=\"statusText(item)\" class=\"qk-timeline__status\">{{ statusText(item) }}</span>\n </div>\n <div v-if=\"item.description || $slots.description\" class=\"qk-timeline__description\">\n <slot name=\"description\" :item=\"item\" :index=\"index\">{{ item.description }}</slot>\n </div>\n <div v-if=\"$slots.content\" class=\"qk-timeline__content\"><slot name=\"content\" :item=\"item\" :index=\"index\" /></div>\n </div>\n </li>\n </ol>\n <div v-else class=\"qk-timeline__empty\"><slot name=\"empty\">{{ text.empty }}</slot></div>\n </div>\n</template>\n","<script setup lang=\"ts\">\nimport type { QuireKitResultStatus } from './types';\n\ndefineProps<{ /** Result meaning, supplied by the host component. */ readonly status: QuireKitResultStatus }>();\n</script>\n\n<template>\n <svg class=\"qk-result__art\" :data-illustration=\"status\" 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 <!-- Opaque surfaces hide rear edges; only the final status mark carries the accent. -->\n <g v-if=\"status === 'success'\">\n <rect x=\"35\" y=\"20\" width=\"66\" height=\"68\" rx=\"6\" fill=\"var(--qk-color-surface-subtle)\" transform=\"rotate(-8 68 54)\" />\n <path d=\"M51 11H96L112 27V85Q112 89 108 89H55Q51 89 51 85Z\" fill=\"var(--qk-color-surface-page)\" />\n <path d=\"M96 11V27H112\" fill=\"var(--qk-color-surface-subtle)\" />\n <path d=\"M64 37H91M64 47H98M64 57H87M64 73H77\" />\n <circle cx=\"112\" cy=\"72\" r=\"19\" fill=\"var(--qk-color-surface-page)\" />\n <path d=\"m103 72 6 6 12-13\" stroke=\"var(--qk-result-accent)\" stroke-width=\"2\" />\n <path d=\"M25 35H31M28 32V38M126 23L131 18\" />\n </g>\n <g v-else-if=\"status === 'error'\">\n <path d=\"M38 14H84L99 29V47L88 43 77 53 66 46 55 54 38 48Z\" fill=\"var(--qk-color-surface-page)\" />\n <path d=\"M84 14V29H99M51 30H70M51 39H79\" />\n <path d=\"m36 58 17 6 11-8 11 7 11-10 11 4v29a5 5 0 0 1-5 5H41a5 5 0 0 1-5-5Z\" fill=\"var(--qk-color-surface-subtle)\" />\n <path d=\"M50 76H77M50 83H65\" />\n <circle cx=\"116\" cy=\"69\" r=\"20\" fill=\"var(--qk-color-surface-page)\" />\n <path d=\"m109 62 14 14m0-14-14 14\" stroke=\"var(--qk-result-accent)\" stroke-width=\"2\" />\n <path d=\"M113 32L117 27M123 40H130M20 70H26\" />\n </g>\n <g v-else-if=\"status === 'warning'\">\n <rect x=\"35\" y=\"19\" width=\"75\" height=\"70\" rx=\"6\" fill=\"var(--qk-color-surface-subtle)\" />\n <rect x=\"42\" y=\"23\" width=\"61\" height=\"60\" rx=\"3\" fill=\"var(--qk-color-surface-page)\" />\n <rect x=\"56\" y=\"13\" width=\"33\" height=\"13\" rx=\"4\" fill=\"var(--qk-color-surface-page)\" />\n <path d=\"M54 41H60M68 41H90M54 53H60M68 53H82M54 65H60M68 65H76\" />\n <path d=\"M110 51Q113 46 116 51L136 85Q139 90 133 90H93Q87 90 90 85Z\" fill=\"var(--qk-color-surface-page)\" />\n <path d=\"M113 62V74\" stroke=\"var(--qk-result-accent)\" stroke-width=\"2\" />\n <circle cx=\"113\" cy=\"81\" r=\"1.5\" fill=\"var(--qk-result-accent)\" stroke=\"none\" />\n <path d=\"M20 43H26M23 40V46M123 24H130\" />\n </g>\n <g v-else-if=\"status === 'forbidden'\">\n <path d=\"M44 90V17Q44 12 49 12H101Q106 12 106 17V90\" fill=\"var(--qk-color-surface-subtle)\" />\n <path d=\"M53 90V22H97V90Z\" fill=\"var(--qk-color-surface-page)\" />\n <rect x=\"62\" y=\"31\" width=\"26\" height=\"25\" rx=\"3\" fill=\"var(--qk-color-surface-subtle)\" />\n <path d=\"M85 64H89M35 90H116\" />\n <path d=\"M105 65V56a10 10 0 0 1 20 0v9\" stroke=\"var(--qk-color-icon-secondary)\" />\n <rect x=\"98\" y=\"64\" width=\"34\" height=\"27\" rx=\"5\" fill=\"var(--qk-color-surface-page)\" />\n <circle cx=\"115\" cy=\"75\" r=\"3\" stroke=\"var(--qk-result-accent)\" />\n <path d=\"M115 78V82\" stroke=\"var(--qk-result-accent)\" stroke-width=\"2\" />\n <path d=\"M25 32H31M126 29H132M129 26V32\" />\n </g>\n <g v-else-if=\"status === 'not-found'\">\n <path d=\"M39 24H78L92 38V89H39Z\" fill=\"var(--qk-color-surface-subtle)\" />\n <path d=\"M63 12H106L122 28V84H63Z\" fill=\"var(--qk-color-surface-page)\" stroke-dasharray=\"4 4\" />\n <path d=\"M106 12V28H122M77 40H106M77 49H96\" stroke-dasharray=\"3 4\" />\n <circle cx=\"101\" cy=\"68\" r=\"19\" fill=\"var(--qk-color-surface-page)\" />\n <path d=\"m115 82 12 12\" stroke=\"var(--qk-color-icon-secondary)\" stroke-width=\"3\" />\n <path d=\"M94 68H108\" stroke=\"var(--qk-result-accent)\" stroke-width=\"2\" />\n <path d=\"M25 50H31M28 47V53M45 11H51\" />\n </g>\n <g v-else>\n <rect x=\"33\" y=\"17\" width=\"94\" height=\"64\" rx=\"6\" fill=\"var(--qk-color-surface-subtle)\" />\n <path d=\"M29 29H122Q128 29 128 35V77Q128 83 122 83H65L52 93V83H29Q23 83 23 77V35Q23 29 29 29Z\" fill=\"var(--qk-color-surface-page)\" />\n <path d=\"M37 44H75M37 54H65M37 69H78\" />\n <circle cx=\"104\" cy=\"55\" r=\"16\" fill=\"var(--qk-color-surface-subtle)\" />\n <circle cx=\"104\" cy=\"47\" r=\"1.5\" fill=\"var(--qk-result-accent)\" stroke=\"none\" />\n <path d=\"M102 54H104V64M101 64H107\" stroke=\"var(--qk-result-accent)\" stroke-width=\"2\" />\n <path d=\"M137 38H143M140 35V41M17 17H23\" />\n </g>\n </g>\n </svg>\n</template>\n","<script setup lang=\"ts\">\nimport QuireTypography from \"../typography/typography.vue\";\nimport { computed, useId } from 'vue';\nimport { QuireIcon } from '../icon';\nimport ResultIllustration from './illustration.vue';\nimport type { QuireKitResultProps, QuireKitResultSlots } from './types';\n\nconst props = withDefaults(defineProps<QuireKitResultProps>(), {\n status: 'info', size: 'sm', titleAs: 'h3', icon: undefined, illustrated: false,\n});\ndefineSlots<QuireKitResultSlots>();\nconst id = `qk-result-${useId()}`;\nconst titleId = `${id}-title`;\nconst descriptionId = `${id}-description`;\nconst accessibleLabel = computed(() => props.label?.trim() || undefined);\nconst iconName = computed(() => props.icon === false ? undefined : props.icon ?? ({\n info: 'circleInfo', success: 'circleCheck', warning: 'triangleAlert',\n error: 'circleX', forbidden: 'lock', 'not-found': 'fileX',\n}[props.status]));\n</script>\n\n<template>\n <div\n role=\"group\"\n :aria-label=\"accessibleLabel\"\n :aria-labelledby=\"accessibleLabel ? undefined : titleId\"\n :aria-describedby=\"description || $slots.description ? descriptionId : undefined\"\n :data-status=\"status\"\n :class=\"['qk-result', `qk-result--${size}`, `qk-result--${status}`]\"\n >\n <div v-if=\"$slots.illustration || illustrated\" class=\"qk-result__visual\" aria-hidden=\"true\">\n <div :class=\"['qk-result__illustration', `qk-result__illustration--${size}`]\">\n <slot name=\"illustration\" :status=\"status\" :size=\"size\">\n <ResultIllustration :status=\"status\" />\n </slot>\n </div>\n </div>\n <div v-else-if=\"$slots.icon || iconName\" class=\"qk-result__visual\" aria-hidden=\"true\">\n <slot name=\"icon\" :status=\"status\" :size=\"size\">\n <span :class=\"['qk-result__icon', `qk-result__icon--${size}`]\">\n <QuireIcon :name=\"iconName\" :size=\"size === 'sm' ? 20 : 24\" />\n </span>\n </slot>\n </div>\n <div class=\"qk-result__copy\">\n <QuireTypography :as=\"titleAs\" :variant=\"size === 'sm' ? 'heading' : 'sectionTitle'\" :id=\"titleId\" :class=\"['qk-result__title', `qk-result__title--${size}`]\">\n <slot name=\"title\" :status=\"status\" :size=\"size\">{{ title }}</slot>\n </QuireTypography>\n <QuireTypography as=\"div\" variant=\"body\" v-if=\"description || $slots.description\" :id=\"descriptionId\" class=\"qk-result__description\">\n <slot name=\"description\" :status=\"status\" :size=\"size\">{{ description }}</slot>\n </QuireTypography>\n </div>\n <div v-if=\"$slots.default\" class=\"qk-result__content\"><slot :status=\"status\" :size=\"size\" /></div>\n <div v-if=\"$slots.actions\" class=\"qk-result__actions\"><slot name=\"actions\" :status=\"status\" :size=\"size\" /></div>\n </div>\n</template>\n","<script setup lang=\"ts\">\nimport type { QuireKitControlGroupProps } from './types';\n\nwithDefaults(defineProps<QuireKitControlGroupProps>(), {\n orientation: 'horizontal',\n block: false\n});\n\ndefineSlots<{\n /** Adjacent Input, Select and Button controls, using the same explicit child size. */\n default?: () => unknown;\n}>();\n</script>\n\n<template>\n <div\n role=\"group\"\n :class=\"['qk-control-group', `qk-control-group--${orientation}`, block && 'qk-control-group--block']\"\n :data-orientation=\"orientation\"\n ><slot /></div>\n</template>\n","import { onBeforeUnmount, watch } from 'vue';\nimport type { Ref } from 'vue';\n\n/** Connect native reset to the same controlled update path as typed input.\n * @param input - Ark's native serialization input, including explicit form ownership.\n * @param reset - Restores the consumer's declared default value.\n */\nexport function usePinInputFormReset(input: Ref<HTMLInputElement | undefined>, reset: () => void): void {\n let form: HTMLFormElement | null = null;\n\n /** Defer until native reset completes, respecting a prevented reset.\n * @param event - Native reset request.\n */\n function onReset(event: Event): void {\n queueMicrotask(() => { if (!event.defaultPrevented) reset(); });\n }\n\n watch(input, (element) => {\n form?.removeEventListener('reset', onReset);\n form = element?.form ?? null;\n form?.addEventListener('reset', onReset);\n }, { flush: 'post' });\n onBeforeUnmount(() => form?.removeEventListener('reset', onReset));\n}\n","<script setup lang=\"ts\">\nimport { PinInput } from '@ark-ui/vue/pin-input';\nimport { useFieldContext } from '@ark-ui/vue/field';\nimport type { PinInputValueChangeDetails } from '@ark-ui/vue/pin-input';\nimport { computed, ref, useAttrs, useId, watch } from 'vue';\nimport type { QuireKitPinInputProps, QuireKitPinInputValueInvalidDetails } from './types';\nimport { usePinInputFormReset } from './form';\nimport { useQuireKitMessages } from '../locale-provider/context';\n\ndefineOptions({ inheritAttrs: false });\n\n/** Public updates keep business submission separate from entering a complete code. */\ninterface Emits {\n /** Requests an update to the controlled string. */\n 'update:modelValue': [value: string];\n /** Reports the latest code after an accepted edit. */\n valueChange: [value: string];\n /** Reports the transition from incomplete to complete, without auto-submitting. */\n valueComplete: [value: string];\n /** Reports rejected characters, leaving the current code unchanged. */\n valueInvalid: [details: QuireKitPinInputValueInvalidDetails];\n /** Lets the consumer show feedback for an incomplete native form value. */\n invalid: [event: Event];\n}\n\nconst props = withDefaults(defineProps<QuireKitPinInputProps>(), {\n defaultValue: '', length: 4, type: 'numeric', size: 'sm',\n disabled: undefined, readOnly: undefined, required: undefined, invalid: undefined,\n otp: false, mask: false, placeholder: ''\n});\nconst emit = defineEmits<Emits>();\nconst attrs = useAttrs();\nconst text = useQuireKitMessages('pinInput');\nconst field = useFieldContext();\nconst machineId = `qk-pin-${useId()}`;\nconst hiddenInput = ref<HTMLInputElement>();\nconst internalCharacters = ref((props.modelValue ?? props.defaultValue).split(''));\nconst count = computed(() => Number.isInteger(props.length) && props.length > 0 ? props.length : 4);\n// Preserve the upstream array across its string-model echo; only a different external\n// string replaces its cell positions. A rejecting controlled owner keeps the prior value.\nconst characters = computed(() => (props.modelValue === undefined || props.modelValue === internalCharacters.value.join('')\n ? internalCharacters.value : props.modelValue.split('')).slice(0, count.value));\nconst fieldState = computed(() => ({\n disabled: props.disabled ?? field?.value.disabled ?? false,\n readOnly: props.readOnly ?? field?.value.readOnly ?? false,\n required: props.required ?? field?.value.required ?? false,\n invalid: props.invalid ?? field?.value.invalid ?? false\n}));\nconst accessibleLabel = computed(() => String(attrs['aria-label'] ?? props.label ?? text.value.label));\n// Rebuilt on language or label changes so Ark re-renders the positional cell names.\nconst translations = computed(() => {\n const { cell } = text.value;\n const label = accessibleLabel.value;\n return { inputLabel: (index: number, length: number) => cell(label, index, length) };\n});\nconst ids = computed(() => ({ root: `${machineId}-root`, hiddenInput: `${machineId}-value`, input: inputId }));\nconst rootAttrs = computed(() => Object.fromEntries(Object.entries(attrs)\n .filter(([key]) => !['aria-describedby', 'aria-errormessage', 'data-scope', 'data-part'].includes(key))));\nconst inputFeedback = computed(() => {\n const description = attrs['aria-describedby'];\n const error = attrs['aria-errormessage'];\n return {\n 'aria-describedby': typeof description === 'string' ? description : field?.value.ariaDescribedby,\n 'aria-errormessage': typeof error === 'string' ? error : field?.value.getInputProps()['aria-errormessage']\n };\n});\nconst nativePattern = computed(() => `${{ numeric: '[0-9]', alphabetic: '[a-zA-Z]', alphanumeric: '[a-zA-Z0-9]' }[props.type]}{${count.value}}`);\nconst optionalProps = computed(() => ({\n ...(props.name === undefined ? {} : { name: props.name }),\n ...(props.form === undefined ? {} : { form: props.form }),\n ...(props.sanitizeValue === undefined ? {} : { sanitizeValue: props.sanitizeValue })\n}));\n\nwatch(() => props.modelValue, (value) => {\n if (value !== undefined && value !== internalCharacters.value.join('')) internalCharacters.value = value.split('');\n});\nusePinInputFormReset(hiddenInput, () => updateValue(props.defaultValue.slice(0, count.value)));\n\n/** Keep Field's label associated with the first real input.\n * @param index - Ark's zero-based input index.\n * @returns A stable native input identity.\n */\nfunction inputId(index: string): string {\n return index === '0' ? (props.id ?? field?.value.ids.control ?? `${machineId}-0`) : `${machineId}-${index}`;\n}\n\n\n/** Publish an accepted edit or explicit native reset.\n * @param value - The complete current string, possibly incomplete.\n */\nfunction updateValue(value: string): void {\n internalCharacters.value = value.split('');\n emit('update:modelValue', value);\n emit('valueChange', value);\n}\n\n/** Project Ark's string value without owning its keyboard state.\n * @param details - Ark's accepted input change.\n */\nfunction onValueChange(details: PinInputValueChangeDetails): void {\n if (fieldState.value.disabled || fieldState.value.readOnly) return;\n internalCharacters.value = [...details.value];\n emit('update:modelValue', details.valueAsString);\n emit('valueChange', details.valueAsString);\n}\n\n/** Guard upstream mutation handlers while leaving navigation and copying available.\n * @param event - Captured keyboard, beforeinput or paste event.\n */\nfunction guardMutation(event: Event): void {\n if (!fieldState.value.disabled && !fieldState.value.readOnly) return;\n if (event instanceof KeyboardEvent && !['Backspace', 'Delete', 'Enter'].includes(event.key)) return;\n event.preventDefault();\n event.stopPropagation();\n}\n\n/** Move native validation feedback from the serialization input to a visible cell.\n * @param event - Native validation failure, forwarded for consumer feedback.\n */\nfunction onNativeInvalid(event: Event): void {\n event.preventDefault();\n emit('invalid', event);\n hiddenInput.value?.parentElement?.querySelector<HTMLInputElement>('[data-part=\"input\"]')?.focus();\n}\n</script>\n\n<template>\n <PinInput.Root :key=\"`${count}:${form ?? ''}`\" v-bind=\"{ ...rootAttrs, ...optionalProps }\"\n :id=\"machineId\" :ids=\"ids\" :count=\"count\" :model-value=\"characters\" :type=\"type\"\n :disabled=\"fieldState.disabled\" :read-only=\"fieldState.readOnly\" :required=\"fieldState.required\" :invalid=\"fieldState.invalid\"\n :otp=\"otp\" :mask=\"mask\" :placeholder=\"placeholder\" :select-on-focus=\"true\"\n :auto-submit=\"false\" :blur-on-complete=\"false\" :translations=\"translations\"\n role=\"group\" :aria-label=\"accessibleLabel\"\n :class=\"['qk-pin-input', `qk-pin-input--${size}`]\"\n @value-change=\"onValueChange\"\n @value-complete=\"emit('valueComplete', $event.valueAsString)\"\n @value-invalid=\"emit('valueInvalid', $event)\"\n @keydown.capture=\"guardMutation\" @beforeinput.capture=\"guardMutation\" @paste.capture=\"guardMutation\">\n <PinInput.Control class=\"qk-pin-input__control\">\n <PinInput.Input v-for=\"index in count\" :key=\"index\" :index=\"index - 1\" v-bind=\"inputFeedback\"\n :inputmode=\"type === 'numeric' ? 'numeric' : 'text'\"\n :aria-required=\"fieldState.required || undefined\" class=\"qk-pin-input__input\" />\n </PinInput.Control>\n <PinInput.Context v-slot=\"api\">\n <input ref=\"hiddenInput\" v-bind=\"api.getHiddenInputProps()\" :pattern=\"nativePattern\" @invalid=\"onNativeInvalid\">\n </PinInput.Context>\n </PinInput.Root>\n</template>\n","/** Normalizes the configured item count.\n * @param count - Consumer-provided maximum score.\n * @returns A finite positive integer.\n */\nexport function ratingCount(count: number): number {\n return Number.isFinite(count) ? Math.max(1, Math.floor(count)) : 5;\n}\n\n/** Projects external and Ark values into the public zero-based score contract.\n * @param value - Requested score, including Ark's negative empty sentinel.\n * @param count - Normalized maximum score.\n * @param allowHalf - Whether fractional steps are enabled.\n * @returns A bounded integer or half-integer score.\n */\nexport function ratingValue(value: number, count: number, allowHalf: boolean): number {\n const factor = allowHalf ? 2 : 1;\n return Number.isFinite(value) ? Math.max(0, Math.min(count, Math.round(value * factor) / factor)) : 0;\n}\n","<script setup lang=\"ts\">\nimport { RatingGroup, useRatingGroup } from '@ark-ui/vue/rating-group';\nimport { useFieldContext } from '@ark-ui/vue/field';\nimport { computed, nextTick, ref, useAttrs, useId } from 'vue';\nimport QuireButton from '../button/button.vue';\nimport QuireIcon from '../icon/icon.vue';\nimport { useQuireKitMessages } from '../locale-provider/context';\nimport { ratingCount, ratingValue } from './value';\nimport type { QuireKitRatingProps, QuireKitRatingSlots } from './types';\n\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<QuireKitRatingProps>(), {\n hideLabel: false, defaultValue: 0, count: 5, allowHalf: false, size: 'md',\n clearable: false, showValue: true,\n disabled: undefined, readOnly: undefined, required: undefined, invalid: undefined\n});\nconst model = defineModel<number>();\ndefineSlots<QuireKitRatingSlots>();\nconst attrs = useAttrs();\nconst text = useQuireKitMessages('rating');\nconst field = useFieldContext();\nconst root = ref<{ $el: HTMLElement }>();\nconst instanceId = `qk-rating-${useId()}`;\nconst count = computed(() => ratingCount(props.count));\nconst disabled = computed(() => props.disabled ?? field?.value.disabled ?? false);\nconst readOnly = computed(() => props.readOnly ?? field?.value.readOnly ?? false);\nconst required = computed(() => props.required ?? field?.value.required ?? false);\nconst invalid = computed(() => props.invalid ?? field?.value.invalid ?? false);\nconst labelId = computed(() => field?.value.ids.label ?? `${instanceId}-label`);\nconst accessibleLabelId = computed(() => typeof attrs['aria-labelledby'] === 'string' ? attrs['aria-labelledby'] : labelId.value);\nconst descriptionIds = computed(() => [...new Set(\n [attrs['aria-describedby'], field?.value.ariaDescribedby, `${instanceId}-value`]\n .filter((id): id is string => typeof id === 'string').flatMap(id => id.split(/\\s+/)).filter(Boolean)\n)].join(' '));\nconst rootAttrs = computed(() => Object.fromEntries(Object.entries(attrs).filter(([key]) => !['aria-describedby', 'aria-labelledby', 'aria-invalid', 'onFocus', 'onBlur'].includes(key))));\nconst api = useRatingGroup(computed(() => ({\n id: instanceId,\n ids: { label: labelId.value, hiddenInput: props.id ?? field?.value.ids.control ?? `${instanceId}-input` },\n defaultValue: ratingValue(props.defaultValue, count.value, props.allowHalf),\n ...(model.value === undefined ? {} : { modelValue: ratingValue(model.value, count.value, props.allowHalf) }),\n count: count.value, allowHalf: props.allowHalf, disabled: disabled.value, readOnly: readOnly.value,\n required: required.value, name: props.name ?? '', ...(props.form ? { form: props.form } : {}),\n onValueChange: updateValue\n})));\nconst value = computed(() => ratingValue(api.value.value, count.value, props.allowHalf));\nconst valueText = computed(() => text.value.value(value.value, count.value));\nconst iconSize = computed(() => ({ sm: 16, md: 20, lg: 24 } as const)[props.size]);\n\n/** Publishes Ark's changes using the public empty-score convention.\n * @param details - The score change produced by Ark.\n */\nfunction updateValue(details: { value: number }): void {\n model.value = ratingValue(details.value, count.value, props.allowHalf);\n}\n\n/** Moves native Field/validation focus into Ark's selected radio or first empty item. */\nfunction focus(): void {\n if (disabled.value) return;\n root.value?.$el.querySelector<HTMLElement>('[role=\"radio\"][aria-checked=\"true\"], [role=\"radio\"][tabindex=\"0\"]')?.focus();\n}\n\n/** Starts Ark's hover phase before the first item pointer move, preserving direct half clicks.\n * @param event - Native pointer entry into the group, including the pointer type.\n */\nfunction beginPointerPreview(event: PointerEvent): void {\n api.value.getControlProps().onPointermove?.(event);\n}\n\n/** Hands keyboard ownership back to Ark's focus state after a pointer preview.\n * @param event - Original keyboard event, left untouched for Ark's item handler.\n */\nfunction endPointerPreview(event: KeyboardEvent): void {\n // The public preview-exit handler only checks pointerType; keyboard events have none.\n api.value.getControlProps().onPointerleave?.(event as unknown as PointerEvent);\n}\n\n/** Clears through the upstream controller and restores a stable keyboard target.\n * @returns Completion after the empty state and focus target have updated.\n */\nasync function clear(): Promise<void> {\n if (disabled.value || readOnly.value) return;\n api.value.clearValue();\n await nextTick();\n focus();\n}\n\n/** Redirects native required validation to the visible rating interaction.\n * @param event - Invalid event emitted by the native submitted control.\n */\nfunction onInvalid(event: Event): void {\n event.preventDefault();\n focus();\n}\n\n/** Computes an accessible name from the committed score rather than the hover preview.\n * @param index - One-based rendered star index.\n * @returns A localized integer or committed half-score radio name.\n */\nfunction itemName(index: number): string {\n return text.value.item(Math.ceil(value.value) === index ? value.value : index, count.value);\n}\n\ndefineExpose({ focus });\n</script>\n\n<template>\n <RatingGroup.RootProvider ref=\"root\" v-bind=\"rootAttrs\" :value=\"api\"\n :data-invalid=\"invalid ? '' : undefined\"\n :data-size=\"size\" class=\"qk-rating\">\n <RatingGroup.Label v-if=\"!field\" :class=\"['qk-rating__label', hideLabel && 'sr-only']\">\n {{ label }}<span v-if=\"required\" aria-hidden=\"true\" class=\"qk-rating__required\">*</span>\n </RatingGroup.Label>\n <div class=\"qk-rating__row\">\n <RatingGroup.Control class=\"qk-rating__control\" @pointerenter=\"beginPointerPreview\" @keydown.capture=\"endPointerPreview\" :aria-labelledby=\"accessibleLabelId\"\n :aria-describedby=\"descriptionIds\" :aria-invalid=\"invalid || undefined\" :aria-required=\"required || undefined\">\n <RatingGroup.Item v-for=\"index in api.items\" :key=\"index\" :index=\"index\"\n v-bind=\"disabled ? { tabindex: -1 } : {}\"\n :aria-label=\"itemName(index)\" :aria-checked=\"value > 0 && Math.ceil(value) === index\"\n :class=\"['qk-rating__item', `qk-rating__item--${size}`]\">\n <span class=\"qk-rating__glyph\" aria-hidden=\"true\">\n <QuireIcon name=\"star\" :size=\"iconSize\" />\n <span class=\"qk-rating__fill\"><QuireIcon name=\"star\" :size=\"iconSize\" /></span>\n </span>\n </RatingGroup.Item>\n </RatingGroup.Control>\n <span :id=\"`${instanceId}-value`\" :class=\"['qk-rating__value', !showValue && 'sr-only']\">\n <slot name=\"value\" :value=\"value\" :count=\"count\">{{ valueText }}</slot>\n </span>\n <QuireButton v-if=\"clearable && !readOnly && !disabled\" size=\"xs\" variant=\"ghost\" :disabled=\"value === 0\" @click=\"clear\">\n {{ text.clear }}\n </QuireButton>\n </div>\n <!-- Retain Ark's form/reset owner, while making required validation focusable through the visible radios. -->\n <RatingGroup.HiddenInput :hidden=\"false\" tabindex=\"-1\" class=\"sr-only\" :aria-label=\"label\"\n :aria-invalid=\"invalid || undefined\" :pattern=\"required ? '(?:[1-9][0-9]*(?:[.]5)?|0[.]5)' : undefined\"\n @focus=\"focus\" @invalid=\"onInvalid\" />\n </RatingGroup.RootProvider>\n</template>\n","<script setup lang=\"ts\">\nimport { computed } from 'vue';\nimport { QuireSkeleton } from '../skeleton';\nimport { useQuireKitLocale, useQuireKitMessages } from '../locale-provider/context';\nimport type { QuireKitStatisticProps, QuireKitStatisticSlots } from './types';\n\nconst props = withDefaults(defineProps<QuireKitStatisticProps>(), {\n size: 'md', loading: false, emptyValue: '—',\n});\nconst text = useQuireKitMessages('statistic');\nconst locale = useQuireKitLocale();\ndefineSlots<QuireKitStatisticSlots>();\nconst availableValue = computed(() => typeof props.value === 'bigint'\n || (typeof props.value === 'number' && Number.isFinite(props.value)) ? props.value : undefined);\nconst formatter = computed(() => new Intl.NumberFormat(locale.value, props.formatOptions));\nconst formattedParts = computed(() => availableValue.value === undefined ? [] : formatter.value.formatToParts(availableValue.value));\nconst formattedValue = computed(() => formattedParts.value.map(part => part.value).join(''));\n</script>\n\n<template>\n <dl :class=\"['qk-statistic', `qk-statistic--${size}`]\" :aria-busy=\"loading || undefined\" data-qk-not-prose>\n <dt class=\"qk-statistic__title\"><slot name=\"title\">{{ title }}</slot></dt>\n <dd class=\"qk-statistic__body\">\n <div :class=\"['qk-statistic__content', `qk-statistic__content--${size}`]\">\n <template v-if=\"loading\">\n <QuireSkeleton width=\"5ch\" height=\"1em\" :animated=\"false\" />\n <span class=\"sr-only\">{{ text.loading }}</span>\n </template>\n <template v-else-if=\"availableValue === undefined\">\n <span class=\"qk-statistic__empty\" aria-hidden=\"true\">{{ emptyValue }}</span>\n <span class=\"sr-only\">{{ text.empty }}</span>\n </template>\n <template v-else>\n <span v-if=\"prefix || $slots.prefix\" class=\"qk-statistic__prefix\"><slot name=\"prefix\">{{ prefix }}</slot></span>\n <span class=\"qk-statistic__value\"><slot name=\"value\" :value=\"availableValue\" :formatted-value=\"formattedValue\"><template v-for=\"(part, index) in formattedParts\" :key=\"index\">{{ part.value }}<wbr v-if=\"part.type === 'group'\"></template></slot></span>\n <span v-if=\"suffix || $slots.suffix\" class=\"qk-statistic__suffix\"><slot name=\"suffix\">{{ suffix }}</slot></span>\n </template>\n </div>\n <div v-if=\"description || $slots.description\" class=\"qk-statistic__description\"><slot name=\"description\">{{ description }}</slot></div>\n </dd>\n </dl>\n</template>\n","<script setup lang=\"ts\">\nimport { QrCode, useQrCode } from '@ark-ui/vue/qr-code';\nimport { computed, nextTick, useTemplateRef } from 'vue';\nimport { useQuireKitMessages } from '../locale-provider/context';\nimport type { QuireKitQRCodeDownloadOptions, QuireKitQRCodeFormat, QuireKitQRCodeProps, QuireKitQRCodeSlots, QuireKitQRCodeStatus } from './types';\n\nconst props = withDefaults(defineProps<QuireKitQRCodeProps>(), {\n size: 160, errorCorrection: 'M',\n});\nconst text = useQuireKitMessages('qrCode');\ndefineSlots<QuireKitQRCodeSlots>();\nconst root = useTemplateRef<HTMLDivElement>('root');\nconst resolvedSize = computed(() => Number.isFinite(props.size) && props.size > 0 ? props.size : 160);\nconst qrCode = useQrCode(computed(() => ({\n modelValue: props.value,\n pixelSize: 1,\n encoding: { ecc: props.errorCorrection, border: 4, invert: false, boostEcc: false },\n})));\n\n// The upstream computed encoder throws on capacity overflow. Contain it before\n// mounting the provider, so invalid content never leaves a stale scannable image.\nconst available = computed(() => {\n if (props.value.length === 0) return { status: 'empty' as const, api: undefined };\n try {\n return { status: 'ready' as const, api: qrCode.value };\n } catch {\n return { status: 'error' as const, api: undefined };\n }\n});\nconst status = computed<QuireKitQRCodeStatus>(() => available.value.status);\n\n/**\n * Exports the current mounted symbol, including its explicit white quiet zone.\n * @param format - Lossless image format; defaults to png.\n * @returns Ark's image data URL, or a rejection when the symbol is unavailable.\n */\nasync function getDataUrl(format: QuireKitQRCodeFormat = 'png'): Promise<string> {\n await nextTick();\n if (!root.value?.isConnected || !available.value.api) throw new Error(text.value.unavailable);\n return available.value.api.getDataUrl(format === 'svg' ? 'image/svg+xml' : 'image/png');\n}\n\n/**\n * Requests a browser download while leaving feedback and retry behavior to the host.\n * @param options - Lossless format and optional complete filename.\n * @returns Completion of the download request.\n */\nasync function download(options: QuireKitQRCodeDownloadOptions = {}): Promise<void> {\n const format = options.format ?? 'png';\n const dataUrl = await getDataUrl(format);\n const doc = root.value?.ownerDocument;\n if (!doc) throw new Error(text.value.unmounted);\n const anchor = doc.createElement('a');\n anchor.href = dataUrl;\n anchor.download = options.fileName ?? `qr-code.${format}`;\n anchor.rel = 'noopener';\n doc.body.appendChild(anchor);\n anchor.click();\n anchor.remove();\n}\n\ndefineExpose({ status, getDataUrl, download });\n</script>\n\n<template>\n <div ref=\"root\" class=\"qk-qr-code\" :data-state=\"status\" :style=\"{ '--qk-qr-code-size': `${resolvedSize}px` }\" data-qk-not-prose>\n <QrCode.RootProvider v-if=\"available.api\" :value=\"available.api\" class=\"qk-qr-code__symbol\">\n <QrCode.Frame class=\"qk-qr-code__frame\" :width=\"resolvedSize\" :height=\"resolvedSize\" role=\"img\" :aria-label=\"label\" focusable=\"false\" shape-rendering=\"crispEdges\">\n <rect width=\"100%\" height=\"100%\" fill=\"#fff\" />\n <QrCode.Pattern fill=\"#000\" />\n </QrCode.Frame>\n </QrCode.RootProvider>\n <div v-else class=\"qk-qr-code__fallback\" role=\"group\" :aria-label=\"label\">\n {{ status === 'empty' ? text.empty : text.error }}\n </div>\n <div v-if=\"$slots.actions\" class=\"qk-qr-code__actions\">\n <slot name=\"actions\" :status=\"status\" :get-data-url=\"getDataUrl\" :download=\"download\" />\n </div>\n </div>\n</template>\n","<script setup lang=\"ts\">\nimport { useCarouselContext } from '@ark-ui/vue/carousel';\nimport { onBeforeUnmount, onMounted, ref } from 'vue';\nimport type { CarouselItemProps } from './types';\nconst props = defineProps<CarouselItemProps>();\nconst api = useCarouselContext();\nconst element = ref<HTMLElement>();\nconst inView = ref(props.initiallyVisible);\nlet observer: IntersectionObserver | undefined;\nonMounted(() => {\n const node = element.value;\n if (!node?.parentElement) return;\n // Observe each item's own lifetime: upstream's initial-only observer misses appended slides.\n observer = new IntersectionObserver(entries => {\n const entry = entries[0];\n if (!entry) return;\n const visible = entry.isIntersecting && entry.intersectionRatio >= 0.5;\n if (!visible && node.contains(document.activeElement)) {\n const root = node.closest('[data-scope=\"carousel\"][data-part=\"root\"]');\n root?.querySelector<HTMLElement>('[data-part=\"indicator\"][data-current], [data-part=\"next-trigger\"]:not(:disabled), [data-part=\"prev-trigger\"]:not(:disabled)')?.focus({ preventScroll: true });\n }\n inView.value = visible;\n }, { root: node.parentElement, threshold: [0, 0.5] });\n observer.observe(node);\n});\nonBeforeUnmount(() => observer?.disconnect());\n</script>\n<template>\n <div ref=\"element\" v-bind=\"api.getItemProps({ index })\" class=\"qk-carousel__item\"\n :aria-label=\"label\" :aria-hidden=\"!inView\" :inert=\"!inView\"\n :data-inview=\"inView ? '' : undefined\">\n <slot :in-view=\"inView\" />\n </div>\n</template>\n","<script lang=\"ts\">\nimport type { QuireKitCarouselItem } from './types';\n\n/** Private card stage props, resolved from the public carousel props. */\nexport interface CarouselCardStageProps {\n /** Content items. */\n readonly items: readonly QuireKitCarouselItem[];\n /** Accessible region name. */\n readonly label: string;\n /** Whether navigation wraps at the ends. */\n readonly loop: boolean;\n /** Resolved reading direction. */\n readonly dir: 'ltr' | 'rtl';\n /** Fixed stage height as a CSS length; omitted, the stage fits the tallest card. */\n readonly height?: string | undefined;\n /** Centered card width as a CSS length. */\n readonly cardWidth: string;\n /** Whether to show the side arrows. */\n readonly arrows: boolean;\n /** Whether to show the item indicators. */\n readonly dots: boolean;\n /** Pauses navigation and autoplay. */\n readonly disabled: boolean;\n /** Autoplay setting from the public props. */\n readonly autoplay: boolean | number;\n}\n</script>\n<script setup lang=\"ts\" generic=\"Item extends QuireKitCarouselItem\">\nimport { computed, onBeforeUnmount, onMounted, ref, watch } from 'vue';\nimport QuireIconButton from '../button/icon-button.vue';\nimport QuireIcon from '../icon/icon.vue';\nimport { useQuireKitMessages } from '../locale-provider/context';\nimport type { QuireKitCarouselSlots } from './types';\n\ndefineOptions({ inheritAttrs: false });\nconst props = defineProps<CarouselCardStageProps>();\n/** Items with the caller's own fields, as received by the public carousel. */\nconst items = computed(() => props.items as readonly Item[]);\ndefineSlots<QuireKitCarouselSlots<Item>>();\n/** Current zero-based item; the card effect moves one item per page. */\nconst page = defineModel<number>('page', { required: true });\nconst text = useQuireKitMessages('carousel');\nconst count = computed(() => items.value.length);\nconst reducedMotion = ref(false);\nconst paused = ref(false);\nconst rtl = computed(() => props.dir === 'rtl');\n\n/** @param index - Item position. @returns Signed distance to the current item, wrapped around the ring when looping. */\nfunction offset(index: number): number {\n let distance = index - page.value;\n if (props.loop && count.value > 2) {\n if (distance > count.value / 2) distance -= count.value;\n if (distance < -count.value / 2) distance += count.value;\n }\n return distance;\n}\n/** @param index - Item position. @returns Stage placement: centered current card, neighbors receding by depth. */\nfunction cardStyle(index: number): Record<string, string | number> {\n const distance = offset(index), depth = Math.abs(distance);\n const side = (rtl.value ? -1 : 1) * Math.sign(distance);\n const shift = depth === 0 ? 0 : 38 + (depth - 1) * 22;\n return {\n transform: `translateX(${side * shift}%) scale(${1 - Math.min(depth, 3) * 0.14})`,\n zIndex: 10 - Math.min(depth, 9),\n opacity: depth > 2 ? 0 : 1\n };\n}\nconst canPrevious = computed(() => !props.disabled && count.value > 1 && (props.loop || page.value > 0));\nconst canNext = computed(() => !props.disabled && count.value > 1 && (props.loop || page.value < count.value - 1));\n/** @param destination - Target item, or one step back or forward. */\nfunction navigate(destination: number | 'previous' | 'next'): void {\n if (props.disabled || !count.value) return;\n const step = destination === 'previous' ? -1 : destination === 'next' ? 1 : 0;\n const next = step === 0 ? (destination as number) : page.value + step;\n page.value = props.loop ? (next + count.value) % count.value : Math.min(count.value - 1, Math.max(0, next));\n restart();\n}\n/** @param event - Arrow, Home and End keys on the stage move between cards in reading direction. */\nfunction onKeydown(event: KeyboardEvent): void {\n const forward = rtl.value ? 'ArrowLeft' : 'ArrowRight', backward = rtl.value ? 'ArrowRight' : 'ArrowLeft';\n const action = event.key === forward ? 'next' : event.key === backward ? 'previous' : event.key === 'Home' ? 0 : event.key === 'End' ? count.value - 1 : null;\n if (action === null) return;\n event.preventDefault();\n navigate(action);\n}\n\n// Autoplay advances one card per interval; hover, focus, disabled and reduced motion stop it.\nlet timer: ReturnType<typeof setInterval> | undefined;\nconst delay = computed(() => props.autoplay === true ? 4000 : typeof props.autoplay === 'number' && props.autoplay > 0 ? props.autoplay : 0);\n/** Restarts the interval so a manual step receives a full dwell. */\nfunction restart(): void {\n if (timer) clearInterval(timer);\n timer = undefined;\n if (!delay.value || reducedMotion.value || props.disabled || count.value < 2) return;\n timer = setInterval(() => { if (!paused.value && (props.loop || page.value < count.value - 1)) navigate('next'); }, delay.value);\n}\nlet motionQuery: MediaQueryList | undefined;\n/** Applies the current OS motion preference. */\nfunction updateMotion(): void { reducedMotion.value = motionQuery?.matches ?? false; restart(); }\nonMounted(() => {\n motionQuery = window.matchMedia('(prefers-reduced-motion: reduce)');\n motionQuery.addEventListener('change', updateMotion);\n updateMotion();\n});\nonBeforeUnmount(() => { if (timer) clearInterval(timer); motionQuery?.removeEventListener('change', updateMotion); });\nwatch([delay, () => props.disabled, count], restart);\nwatch(count, value => { if (page.value > Math.max(0, value - 1)) page.value = Math.max(0, value - 1); });\n</script>\n<template>\n <section v-bind=\"$attrs\" class=\"qk-carousel qk-carousel--card\" role=\"region\" aria-roledescription=\"carousel\" :aria-label=\"label\"\n :data-disabled=\"disabled ? '' : undefined\" :data-reduced-motion=\"reducedMotion ? '' : undefined\" :dir=\"dir\"\n @pointerenter=\"paused = true\" @pointerleave=\"paused = false\" @focusin=\"paused = true\" @focusout=\"paused = false\">\n <div class=\"qk-carousel__stage\" :style=\"{ height, '--qk-carousel-card-width': cardWidth }\" :data-fixed=\"height ? '' : undefined\" tabindex=\"-1\" @keydown=\"onKeydown\">\n <div v-for=\"(item, index) in items\" :key=\"item.key\" class=\"qk-carousel__card\" role=\"group\" aria-roledescription=\"slide\"\n :aria-label=\"text.slide(item.label, index, count)\" :aria-hidden=\"index !== page\" :data-current=\"index === page ? '' : undefined\"\n :style=\"cardStyle(index)\" @click=\"index !== page && navigate(index)\">\n <div class=\"qk-carousel__card-body\" :inert=\"index !== page\"><slot :item=\"item\" :index=\"index\" :in-view=\"index === page\">{{ item.label }}</slot></div>\n </div>\n <div v-if=\"!items.length\" class=\"qk-carousel__empty\"><slot name=\"empty\">{{ text.empty }}</slot></div>\n <template v-if=\"arrows && items.length > 1\">\n <QuireIconButton class=\"qk-carousel__nav qk-carousel__nav--previous\" :label=\"text.previous\" :disabled=\"!canPrevious\" variant=\"outline\" size=\"lg\" shape=\"circle\" @click=\"navigate('previous')\">\n <QuireIcon :name=\"rtl ? 'chevronRight' : 'chevronLeft'\" :size=\"20\" />\n </QuireIconButton>\n <QuireIconButton class=\"qk-carousel__nav qk-carousel__nav--next\" :label=\"text.next\" :disabled=\"!canNext\" variant=\"outline\" size=\"lg\" shape=\"circle\" @click=\"navigate('next')\">\n <QuireIcon :name=\"rtl ? 'chevronLeft' : 'chevronRight'\" :size=\"20\" />\n </QuireIconButton>\n </template>\n </div>\n <div v-if=\"items.length\" class=\"qk-carousel__footer qk-carousel__footer--card\">\n <span class=\"qk-carousel__progress\"><slot name=\"page\" :page=\"page\" :page-count=\"count\">{{ page + 1 }} / {{ count }}</slot></span>\n <div v-if=\"dots && count > 1\" role=\"group\" :aria-label=\"text.pages\" class=\"qk-carousel__indicators\">\n <button v-for=\"(item, index) in items\" :key=\"item.key\" type=\"button\" class=\"qk-carousel__indicator\" :aria-label=\"text.page(index)\"\n :aria-current=\"index === page ? 'true' : undefined\" :data-current=\"index === page ? '' : undefined\" :disabled=\"disabled\"\n :tabindex=\"index === page && !disabled ? 0 : -1\" @click=\"navigate(index)\"><span aria-hidden=\"true\" /></button>\n </div>\n </div>\n </section>\n</template>\n","<script setup lang=\"ts\" generic=\"Item extends QuireKitCarouselItem\">\nimport { Carousel, useCarousel } from '@ark-ui/vue/carousel';\nimport { computed, nextTick, onBeforeUnmount, onMounted, ref, useAttrs, watch } from 'vue';\nimport QuireButton from '../button/button.vue';\nimport QuireIcon from '../icon/icon.vue';\nimport CarouselItem from './item.vue';\nimport CardStage from './card-stage.vue';\nimport { useQuireKitMessages } from '../locale-provider/context';\nimport type { QuireKitCarouselItem, QuireKitCarouselProps, QuireKitCarouselSlots } from './types';\n\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<QuireKitCarouselProps<Item>>(), {\n defaultPage: 0, loop: true, orientation: 'horizontal', slidesPerPage: 1, slidesPerMove: 1,\n arrows: true, dots: true, draggable: true, disabled: false,\n effect: 'slide', autoplay: false, cardWidth: '50%'\n});\nconst text = useQuireKitMessages('carousel');\n/** Current zero-based page, synchronized with Ark's measured snap points. */\nconst page = defineModel<number>('page');\ndefineSlots<QuireKitCarouselSlots<Item>>();\nconst attrs = useAttrs();\nconst viewport = ref<HTMLElement>();\nconst inheritedDirection = ref<'ltr' | 'rtl'>('ltr');\nconst reducedMotion = ref(false);\nconst perPage = computed(() => Math.min(Math.max(1, props.items.length), positiveInteger(props.slidesPerPage)));\nconst perMove = computed(() => positiveInteger(props.slidesPerMove));\nconst direction = computed(() => props.dir ?? inheritedDirection.value);\nconst api = useCarousel(computed(() => ({\n dir: direction.value,\n slideCount: props.items.length,\n // The card stage owns its page; Ark only drives the scrolling effect.\n page: props.effect === 'card' || page.value === undefined ? undefined : Math.max(0, Math.floor(page.value || 0)),\n defaultPage: Math.max(0, Math.floor(props.defaultPage || 0)),\n loop: props.loop && props.items.length > perPage.value,\n orientation: props.orientation,\n slidesPerPage: perPage.value,\n slidesPerMove: perMove.value,\n spacing: 'var(--qk-space-surface-compact)',\n allowMouseDrag: props.draggable && !props.disabled && !reducedMotion.value,\n autoplay: props.effect === 'slide' && !props.disabled && !reducedMotion.value && props.autoplay !== false && props.autoplay !== 0\n ? { delay: typeof props.autoplay === 'number' ? props.autoplay : 4000 } : false,\n translations: { prevTrigger: text.value.previous, nextTrigger: text.value.next, indicator: pageName },\n onPageChange: ({ page: value }) => { if (props.effect !== 'card') page.value = value; }\n})));\nconst viewportProps = computed(() => {\n const { onFocusin: _focus, onFocusout: _blur, ...rest } = api.value.getItemGroupProps();\n // Keyboard navigation belongs to indicators; slide editors keep their own arrow/Home/End keys.\n return { ...rest, style: [rest.style, { ...(api.value.isDragging ? { scrollSnapType: 'none' } : {}), ...(props.orientation === 'vertical' ? { height: props.height ?? '20rem' } : {}), ...(props.disabled ? { overflow: 'hidden' } : {}) }] };\n});\nconst indicatorGroupProps = computed(() => ({\n ...api.value.getIndicatorGroupProps(),\n ...(props.disabled ? { onKeydown: blockNavigation } : {})\n}));\nconst pageCount = computed(() => api.value.pageSnapPoints.length);\nconst previousIcon = computed(() => props.orientation === 'vertical' ? 'chevronUp' : direction.value === 'rtl' ? 'chevronRight' : 'chevronLeft');\nconst nextIcon = computed(() => props.orientation === 'vertical' ? 'chevronDown' : direction.value === 'rtl' ? 'chevronLeft' : 'chevronRight');\nlet motionQuery: MediaQueryList | undefined;\n// The card stage owns its own page; it reads and writes the same public model.\nconst localCardPage = ref(Math.max(0, Math.floor(props.defaultPage || 0)));\nconst cardPage = computed({\n get: () => Math.min(Math.max(0, page.value ?? localCardPage.value), Math.max(0, props.items.length - 1)),\n set: (value: number) => { localCardPage.value = value; page.value = value; }\n});\n\n/** Normalizes public slide counts without allowing invalid CSS grid dimensions.\n * @param value - Caller supplied count.\n * @returns A finite positive integer.\n */\nfunction positiveInteger(value: number): number { return Number.isFinite(value) ? Math.max(1, Math.floor(value)) : 1; }\n/** @param index - Zero-based destination page. @returns Localized indicator name. */\nfunction pageName(index: number): string { return text.value.page(index); }\n/** @param item - Original content item. @param index - Item position. @returns Localized slide name. */\nfunction slideName(item: Item, index: number): string { return text.value.slide(item.label, index, props.items.length); }\n/** @param event - Navigation event ignored while the carousel is disabled. */\nfunction blockNavigation(event: Event): void { event.preventDefault(); }\n/** @param destination - Destination page or the previous/next command. */\nfunction navigate(destination: number | 'previous' | 'next'): void {\n if (props.disabled) return;\n if (destination === 'previous') api.value.scrollPrev(reducedMotion.value);\n else if (destination === 'next') api.value.scrollNext(reducedMotion.value);\n else api.value.scrollTo(destination, reducedMotion.value);\n}\n/** @param destination - Logical direction. @returns Upstream button anatomy with one motion-aware action. */\nfunction triggerProps(destination: 'previous' | 'next') {\n const upstream = destination === 'previous' ? api.value.getPrevTriggerProps() : api.value.getNextTriggerProps();\n return { id: upstream.id, dir: upstream.dir, 'aria-label': upstream['aria-label'],\n 'aria-controls': upstream['aria-controls'], 'data-scope': 'carousel',\n 'data-part': destination === 'previous' ? 'prev-trigger' : 'next-trigger',\n onClick: () => navigate(destination) };\n}\n/** @param destination - Page represented by this indicator. @returns Upstream anatomy with the motion-aware click adapter. */\nfunction indicatorProps(destination: number) {\n return { ...api.value.getIndicatorProps({ index: destination }), onClick: () => navigate(destination), disabled: props.disabled,\n ...(destination === api.value.page ? { 'aria-current': 'true' as const } : {}),\n tabindex: destination === api.value.page && !props.disabled ? 0 : -1 };\n}\n/** Reads the current OS motion preference without adding another animation controller. */\nfunction updateMotion(): void { reducedMotion.value = motionQuery?.matches ?? false; }\nonMounted(() => {\n const parent = viewport.value?.parentElement?.parentElement;\n inheritedDirection.value = parent && getComputedStyle(parent).direction === 'rtl' ? 'rtl' : 'ltr';\n motionQuery = window.matchMedia('(prefers-reduced-motion: reduce)');\n updateMotion();\n motionQuery.addEventListener('change', updateMotion);\n});\nonBeforeUnmount(() => motionQuery?.removeEventListener('change', updateMotion));\nwatch([() => api.value.page, () => props.items.length], async () => {\n if (props.effect === 'card') return;\n await nextTick();\n // Ark's keyboard handler keeps its navigation semantics; refresh cancels smooth drift for reduced motion.\n if (reducedMotion.value) api.value.refresh();\n if (!props.items.length && page.value !== undefined) page.value = 0;\n}, { flush: 'post' });\n</script>\n<template>\n <CardStage v-if=\"effect === 'card'\" v-model:page=\"cardPage\" v-bind=\"attrs\" :items=\"items\" :label=\"label\" :loop=\"loop\" :dir=\"direction\"\n :height=\"height\" :card-width=\"cardWidth\" :arrows=\"arrows\" :dots=\"dots\" :disabled=\"disabled\" :autoplay=\"autoplay\">\n <template #default=\"{ item, index, inView }\"><slot :item=\"(item as Item)\" :index=\"index\" :in-view=\"inView\">{{ item.label }}</slot></template>\n <template v-if=\"$slots.empty\" #empty><slot name=\"empty\" /></template>\n <template v-if=\"$slots.page\" #page=\"slotProps\"><slot name=\"page\" v-bind=\"slotProps\" /></template>\n </CardStage>\n <Carousel.RootProvider v-else v-bind=\"attrs\" :value=\"api\" class=\"qk-carousel\" :aria-label=\"label\"\n :data-disabled=\"disabled ? '' : undefined\">\n <div ref=\"viewport\" v-bind=\"viewportProps\" class=\"qk-carousel__viewport\" tabindex=\"-1\">\n <CarouselItem v-for=\"(item, index) in items\" :key=\"item.key\" :index=\"index\" :label=\"slideName(item, index)\"\n :initially-visible=\"index >= api.page * perMove && index < api.page * perMove + perPage\">\n <template #default=\"{ inView }\"><slot :item=\"item\" :index=\"index\" :in-view=\"inView\">{{ item.label }}</slot></template>\n </CarouselItem>\n <div v-if=\"!items.length\" class=\"qk-carousel__empty\"><slot name=\"empty\">{{ text.empty }}</slot></div>\n </div>\n <div v-if=\"items.length\" class=\"qk-carousel__footer\">\n <span class=\"qk-carousel__progress\"><slot name=\"page\" :page=\"api.page\" :page-count=\"pageCount\">{{ api.page + 1 }} / {{ pageCount }}</slot></span>\n <div v-if=\"dots && pageCount > 1\" v-bind=\"indicatorGroupProps\" role=\"group\" :aria-label=\"text.pages\" class=\"qk-carousel__indicators\">\n <button v-for=\"(_, index) in api.pageSnapPoints\" :key=\"index\" v-bind=\"indicatorProps(index)\" class=\"qk-carousel__indicator\"><span aria-hidden=\"true\" /></button>\n </div>\n <div v-if=\"arrows || !dots\" v-bind=\"api.getControlProps()\" :class=\"['qk-carousel__controls', !arrows && 'qk-carousel__controls--keyboard']\">\n <QuireButton v-bind=\"triggerProps('previous')\" :disabled=\"disabled || !api.canScrollPrev || pageCount <= 1\" variant=\"outline\" size=\"sm\"><QuireIcon :name=\"previousIcon\" :size=\"16\" /></QuireButton>\n <QuireButton v-bind=\"triggerProps('next')\" :disabled=\"disabled || !api.canScrollNext || pageCount <= 1\" variant=\"outline\" size=\"sm\"><QuireIcon :name=\"nextIcon\" :size=\"16\" /></QuireButton>\n </div>\n </div>\n </Carousel.RootProvider>\n</template>\n","import type { QuireKitTransferItem, QuireKitTransferSide } from './types';\n\n/** Validate identities and project one side without dropping unknown target keys.\n * @param items - Complete known member data.\n * @param value - Target model, possibly containing unknown or repeated keys.\n * @param side - Side to project.\n * @returns Stable known items in source or target order.\n */\nexport function transferItems(items: readonly QuireKitTransferItem[], value: readonly string[], side: QuireKitTransferSide): QuireKitTransferItem[] {\n const byValue = new Map<string, QuireKitTransferItem>();\n for (const item of items) {\n if (typeof item.value !== 'string' || !item.value.trim() || byValue.has(item.value)) throw new Error('QuireTransfer items require non-empty, unique values.');\n byValue.set(item.value, item);\n }\n const target = new Set(value);\n return side === 'source' ? items.filter(item => !target.has(item.value))\n : [...target].flatMap(key => { const item = byValue.get(key); return item ? [item] : []; });\n}\n\n/** Apply an explicit move using live item locks and stable destination order.\n * @param items - Complete live candidates.\n * @param value - Current target model.\n * @param selected - Requested known keys to move.\n * @param direction - Destination side.\n * @returns Complete target value and the keys accepted by this action.\n */\nexport function transferMove(items: readonly QuireKitTransferItem[], value: readonly string[], selected: readonly string[], direction: QuireKitTransferSide): { value: string[]; keys: string[] } {\n const requested = new Set(selected);\n const origin = transferItems(items, value, direction === 'target' ? 'source' : 'target');\n const keys = origin.filter(item => !item.disabled && requested.has(item.value)).map(item => item.value);\n const moved = new Set(keys);\n return { value: direction === 'target' ? [...new Set([...value, ...keys])] : [...new Set(value)].filter(key => !moved.has(key)), keys };\n}\n\n/** Match local display text without changing the host-owned member data.\n * @param items - One side's complete members.\n * @param query - User's search text.\n * @returns Matching members in their existing order.\n */\nexport function transferFilter(items: readonly QuireKitTransferItem[], query: string): QuireKitTransferItem[] {\n const needle = query.trim().toLocaleLowerCase();\n return items.filter(item => `${item.label} ${item.description ?? ''}`.toLocaleLowerCase().includes(needle));\n}\n\n/** Toggle only enabled visible rows, retaining unrelated temporary selections.\n * @param items - Current filtered candidates.\n * @param selected - Temporary selected rows.\n * @returns The next temporary selection.\n */\nexport function transferToggleAll(items: readonly QuireKitTransferItem[], selected: readonly string[]): string[] {\n const enabled = items.filter(item => !item.disabled).map(item => item.value);\n const keys = new Set(enabled);\n return enabled.every(key => selected.includes(key)) ? selected.filter(key => !keys.has(key)) : [...new Set([...selected, ...enabled])];\n}\n","<script setup lang=\"ts\">\nimport { computed, ref, shallowRef, useId, watch } from 'vue';\nimport QuireCheckbox from '../checkbox/checkbox.vue';\nimport QuireInput from '../input/input.vue';\nimport QuireListbox from '../listbox/listbox.vue';\nimport ChoiceFieldItem from '../shared/choice-state/field-item.vue';\nimport { transferFilter, transferToggleAll } from './model';\nimport { useQuireKitMessages } from '../locale-provider/context';\nimport type { QuireKitTransferItem, QuireKitTransferSide, QuireKitTransferSlots } from './types';\nimport type { QuireKitListDensity } from '../../components/control';\n\n/** Internal composition of one independently searchable Listbox. */\ninterface Props {\n /** Side used by membership actions and public row slots. */\n readonly side: QuireKitTransferSide;\n /** Complete known members on this side. */\n readonly items: readonly QuireKitTransferItem[];\n /** Visible side name. */\n readonly label: string;\n /** Whether the search control is present. */\n readonly searchable: boolean;\n /** Current whole-control disabled state. */\n readonly disabled: boolean;\n /** List row density. */\n readonly density: QuireKitListDensity;\n /** Number of preserved target keys absent from known data. */\n readonly unavailable?: number;\n}\nconst props = defineProps<Props>();\nconst text = useQuireKitMessages('transfer');\nconst selected = defineModel<string[]>('selected', { required: true });\ndefineSlots<QuireKitTransferSlots>();\nconst root = shallowRef<HTMLElement>();\nconst id = `qk-transfer-panel-${useId()}`;\nconst query = ref('');\nconst visible = computed(() => transferFilter(props.items, props.searchable ? query.value : ''));\nconst enabled = computed(() => visible.value.filter(item => !item.disabled));\nconst checked = computed(() => enabled.value.length > 0 && enabled.value.every(item => selected.value.includes(item.value))\n ? true : selected.value.length > 0 ? 'indeterminate' as const : false);\n\nwatch(query, () => { selected.value = []; });\nwatch(() => props.items, items => {\n const available = new Set(items.filter(item => !item.disabled).map(item => item.value));\n const next = selected.value.filter(key => available.has(key));\n if (next.length !== selected.value.length) selected.value = next;\n});\n\n/** Toggle the current visible enabled range without touching target membership. */\nfunction toggleAll(): void {\n if (!props.disabled) selected.value = transferToggleAll(visible.value, selected.value);\n}\n\n/** Focus Ark's existing list navigation target without taking over its controller. */\nfunction focus(): void {\n root.value?.querySelector<HTMLElement>('[role=\"listbox\"]')?.focus({ preventScroll: true });\n}\ndefineExpose({ focus });\n</script>\n\n<template>\n <section ref=\"root\" :data-transfer-side=\"side\" :aria-label=\"label\" class=\"qk-transfer__panel\">\n <div class=\"qk-transfer__header\">\n <ChoiceFieldItem :value=\"`${id}-all`\">\n <QuireCheckbox :label=\"text.selectAllSide(label)\" :checked=\"checked\"\n :disabled=\"disabled || enabled.length === 0\" :required=\"false\" :read-only=\"false\"\n @update:checked=\"toggleAll\">\n <span class=\"sr-only\">{{ text.selectAll }}</span>{{ label }}\n </QuireCheckbox>\n </ChoiceFieldItem>\n <span class=\"qk-transfer__count\">{{ selected.length }} / {{ visible.length }}</span>\n </div>\n <div v-if=\"searchable\" class=\"qk-transfer__search\">\n <QuireInput :id=\"`${id}-search`\" v-model=\"query\" width=\"100%\" :disabled=\"disabled\"\n :required=\"false\" :read-only=\"false\" :invalid=\"false\"\n :aria-label=\"text.search(label)\" :placeholder=\"text.searchPlaceholder\" />\n </div>\n <QuireListbox v-model=\"selected\" :items=\"visible\" :label=\"label\" hide-label selection-mode=\"multiple\"\n :density=\"density\" :disabled=\"disabled\" class=\"qk-transfer__list\" content-class=\"qk-transfer__content\">\n <template v-if=\"$slots.item\" #item=\"state\"><slot name=\"item\" v-bind=\"state\" :side=\"side\" /></template>\n <template #empty>{{ query.trim() && searchable ? text.noResults : text.empty }}</template>\n </QuireListbox>\n <p v-if=\"unavailable\" class=\"qk-transfer__notice\">{{ text.unavailable(unavailable) }}</p>\n </section>\n</template>\n","<script setup lang=\"ts\">\nimport { useFieldContext } from '@ark-ui/vue/field';\nimport { computed, nextTick, reactive, ref, shallowRef, toRef, useAttrs, useId, watch } from 'vue';\nimport QuireButton from '../button/button.vue';\nimport QuireIcon from '../icon/icon.vue';\nimport { useChoiceState } from '../shared/choice-state/model';\nimport TransferPanel from './panel.vue';\nimport { transferItems, transferMove } from './model';\nimport { useQuireKitMessages } from '../locale-provider/context';\nimport type { QuireKitTransferChangeDetails, QuireKitTransferProps, QuireKitTransferSide, QuireKitTransferSlots } from './types';\n\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<QuireKitTransferProps>(), {\n hideLabel: false, searchable: false, density: 'regular',\n disabled: undefined, readOnly: undefined, required: undefined, invalid: undefined\n});\nconst emit = defineEmits<{\n /** Request the complete target membership after a move. */\n 'update:modelValue': [value: string[]];\n /** Report an explicit accepted move, separate from temporary row selection. */\n change: [details: QuireKitTransferChangeDetails];\n /** Expose native required validation for consumer feedback. */\n invalid: [event: Event];\n}>();\ndefineSlots<QuireKitTransferSlots>();\nconst root = shallowRef<HTMLElement | null>(null);\nconst source = ref<InstanceType<typeof TransferPanel>>();\nconst target = ref<InstanceType<typeof TransferPanel>>();\nconst selectedSource = ref<string[]>([]);\nconst selectedTarget = ref<string[]>([]);\nconst field = useFieldContext();\nconst attrs = useAttrs();\nconst id = `qk-transfer-${useId()}`;\nconst disabled = computed(() => props.disabled ?? field?.value.disabled ?? false);\nconst readOnly = computed(() => props.readOnly ?? field?.value.readOnly ?? false);\nconst required = computed(() => props.required ?? field?.value.required ?? false);\nconst invalid = computed(() => props.invalid ?? field?.value.invalid ?? false);\nconst controlId = computed(() => props.id ?? field?.value.ids.control ?? `${id}-input`);\nconst labelId = computed(() => field?.value.ids.label ?? `${id}-label`);\nconst accessibleLabelId = computed(() => typeof attrs['aria-labelledby'] === 'string' ? attrs['aria-labelledby'] : labelId.value);\nconst description = computed(() => [attrs['aria-describedby'], field?.value.ariaDescribedby,\n invalid.value ? field?.value.ids.errorText : undefined].filter(Boolean).join(' ') || undefined);\nconst rootAttrs = computed(() => Object.fromEntries(Object.entries(attrs).filter(([key]) => !['aria-describedby', 'aria-labelledby', 'data-scope', 'data-part'].includes(key))));\nconst choiceProps = reactive({ modelValue: toRef(props, 'modelValue'), defaultValue: toRef(props, 'defaultValue'), form: toRef(props, 'form'), disabled, readOnly });\nconst { values, update } = useChoiceState(choiceProps, value => emit('update:modelValue', value), root);\nconst value = computed(() => [...new Set(values.value)]);\nconst sourceItems = computed(() => transferItems(props.items, value.value, 'source'));\nconst targetItems = computed(() => transferItems(props.items, value.value, 'target'));\nconst text = useQuireKitMessages('transfer');\nconst label = computed(() => props.label ?? text.value.label);\nconst add = computed(() => transferMove(props.items, value.value, selectedSource.value, 'target'));\nconst remove = computed(() => transferMove(props.items, value.value, selectedTarget.value, 'source'));\nwatch(values, () => { selectedSource.value = []; selectedTarget.value = []; });\n\n/** Focus an existing visible Listbox, used by Field and form validation.\n * @param side - Requested list; defaults to source.\n */\nfunction focus(side: QuireKitTransferSide = 'source'): void {\n if (!disabled.value) (side === 'source' ? source.value : target.value)?.focus();\n}\n\n/** Redirect the native label's focus to the source Listbox. */\nfunction focusSource(): void { focus(); }\n\n/** Apply a membership action, then retain focus at the originating list.\n * @param direction - Destination receiving the requested members.\n * @returns Completion after Vue has applied the new member projection.\n */\nasync function move(direction: QuireKitTransferSide): Promise<void> {\n if (disabled.value || readOnly.value) return;\n const next = direction === 'target' ? add.value : remove.value;\n if (!next.keys.length) return;\n update(next.value);\n emit('change', { ...next, direction });\n selectedSource.value = []; selectedTarget.value = [];\n await nextTick();\n focus(direction === 'target' ? 'source' : 'target');\n}\n\n/** Keep the browser's required check while giving feedback a visible focus target.\n * @param event - Native invalid event on the unnamed validation input.\n */\nfunction onInvalid(event: Event): void {\n event.preventDefault(); emit('invalid', event); focus();\n}\ndefineExpose({ focus });\n</script>\n\n<template>\n <div ref=\"root\" v-bind=\"rootAttrs\" class=\"qk-transfer\" role=\"group\"\n :aria-labelledby=\"accessibleLabelId\" :aria-describedby=\"description\"\n :aria-disabled=\"disabled || undefined\" :aria-invalid=\"invalid || undefined\"\n :data-invalid=\"invalid ? '' : undefined\" :data-disabled=\"disabled ? '' : undefined\" :data-readonly=\"readOnly ? '' : undefined\">\n <label v-if=\"!field\" :id=\"labelId\" :for=\"controlId\" :class=\"['qk-transfer__label', hideLabel && 'sr-only']\">\n {{ label }}<span v-if=\"required\" class=\"qk-transfer__required\" aria-hidden=\"true\">*</span>\n </label>\n <div class=\"qk-transfer__layout\">\n <TransferPanel ref=\"source\" v-model:selected=\"selectedSource\" side=\"source\" :label=\"sourceLabel ?? text.source\" :items=\"sourceItems\"\n :searchable=\"searchable\" :disabled=\"disabled\" :density=\"density\">\n <template v-if=\"$slots.item\" #item=\"state\"><slot name=\"item\" v-bind=\"state\" /></template>\n </TransferPanel>\n <div class=\"qk-transfer__actions\">\n <QuireButton size=\"sm\" variant=\"outline\" :disabled=\"disabled || readOnly || !add.keys.length\" @click=\"move('target')\">\n {{ text.add }}\n <template #trailing><span class=\"qk-transfer__arrow\"><QuireIcon name=\"arrowRight\" :size=\"16\" /></span></template>\n </QuireButton>\n <QuireButton size=\"sm\" variant=\"outline\" :disabled=\"disabled || readOnly || !remove.keys.length\" @click=\"move('source')\">\n <template #leading><span class=\"qk-transfer__arrow\"><QuireIcon name=\"arrowLeft\" :size=\"16\" /></span></template>\n {{ text.remove }}\n </QuireButton>\n </div>\n <TransferPanel ref=\"target\" v-model:selected=\"selectedTarget\" side=\"target\" :label=\"targetLabel ?? text.target\" :items=\"targetItems\"\n :searchable=\"searchable\" :disabled=\"disabled\" :density=\"density\" :unavailable=\"value.length - targetItems.length\">\n <template v-if=\"$slots.item\" #item=\"state\"><slot name=\"item\" v-bind=\"state\" /></template>\n </TransferPanel>\n </div>\n <!-- Only target keys are successful controls; searches and temporary selections have no name. -->\n <input v-for=\"key in value\" :key=\"key\" type=\"hidden\" :name=\"name\" :value=\"key\" :form=\"form\" :disabled=\"disabled\">\n <input :id=\"controlId\" class=\"sr-only\" tabindex=\"-1\" :aria-label=\"label\" :aria-describedby=\"description\"\n :value=\"value.length ? 'selected' : ''\" :form=\"form\" :disabled=\"disabled\" :readonly=\"readOnly\" :required=\"required\"\n @focus=\"focusSource\" @invalid=\"onInvalid\">\n </div>\n</template>\n","import type { QuireKitImageCrop, QuireKitImageCropSize } from './types';\n\n/** Uncropped source geometry. */\nexport const fullImageCrop: QuireKitImageCrop = Object.freeze({ top: 0, right: 0, bottom: 0, left: 0 });\n/** @param crop - Untrusted public geometry. @returns Whether it describes a nonempty source rectangle. */\nexport function isImageCrop(crop: QuireKitImageCrop): boolean {\n return [crop.top, crop.right, crop.bottom, crop.left].every(value => Number.isFinite(value) && value >= 0)\n && crop.top + crop.bottom < 1 && crop.left + crop.right < 1;\n}\n/** @param a - First geometry. @param b - Second geometry. @returns Whether both represent the same source region. */\nexport function equalImageCrop(a: QuireKitImageCrop, b: QuireKitImageCrop): boolean {\n return (['top', 'right', 'bottom', 'left'] as const).every(edge => Math.abs(a[edge] - b[edge]) < 1e-8);\n}\n/** Projects source insets into a viewport, fitting a requested ratio inside that region.\n * @param crop - Valid normalized insets.\n * @param size - Viewport with the same aspect as the original image.\n * @param ratio - Optional positive output ratio.\n * @returns Viewport crop rectangle.\n */\nexport function projectImageCrop(crop: QuireKitImageCrop, size: QuireKitImageCropSize, ratio?: number) {\n let width = size.width * (1 - crop.left - crop.right);\n let height = size.height * (1 - crop.top - crop.bottom);\n const centerX = size.width * crop.left + width / 2;\n const centerY = size.height * crop.top + height / 2;\n if (ratio && Number.isFinite(ratio) && ratio > 0) {\n if (width / height > ratio) width = height * ratio;\n else height = width / ratio;\n }\n return { x: centerX - width / 2, y: centerY - height / 2, width, height };\n}\n/** Keeps floating-point edge noise out of persistent source geometry.\n * @param x - Natural source left.\n * @param y - Natural source top.\n * @param right - Natural source right.\n * @param bottom - Natural source bottom.\n * @param size - Natural source dimensions.\n * @returns Valid normalized insets, or null when no source pixels remain.\n */\nexport function sourceImageCrop(x: number, y: number, right: number, bottom: number, size: QuireKitImageCropSize): QuireKitImageCrop | null {\n const crop = { left: Math.max(0, x / size.width), top: Math.max(0, y / size.height),\n right: Math.max(0, 1 - right / size.width), bottom: Math.max(0, 1 - bottom / size.height) };\n return isImageCrop(crop) ? crop : null;\n}\n","import type { QuireKitImageCropExportOptions, QuireKitImageCropResult } from './types';\n\n/** Exports exact natural-source geometry without Ark's integer offsetWidth projection.\n * @param image - Current loaded image element.\n * @param result - Snapshot of normalized source geometry.\n * @param options - Explicit raster encoding and output bounds.\n * @returns Cropped Blob, rejecting canvas security or encoding failures.\n */\nexport async function exportImageCrop(image: HTMLImageElement, result: QuireKitImageCropResult,\n options: QuireKitImageCropExportOptions = {}): Promise<Blob> {\n const maxSize = options.maxSize ?? { width: 4096, height: 4096 };\n if (![maxSize.width, maxSize.height].every(value => Number.isFinite(value) && value >= 1 && value <= 16384)\n || (options.quality !== undefined && (!Number.isFinite(options.quality) || options.quality < 0 || options.quality > 1))) {\n throw new RangeError('Invalid image crop export size or quality.');\n }\n const { crop, naturalSize } = result;\n const width = naturalSize.width * (1 - crop.left - crop.right);\n const height = naturalSize.height * (1 - crop.top - crop.bottom);\n const scale = Math.min(1, maxSize.width / width, maxSize.height / height);\n const canvas = image.ownerDocument.createElement('canvas');\n canvas.width = Math.max(1, Math.round(width * scale));\n canvas.height = Math.max(1, Math.round(height * scale));\n const context = canvas.getContext('2d');\n if (!context) throw new Error('Canvas is unavailable.');\n context.drawImage(image, crop.left * naturalSize.width, crop.top * naturalSize.height,\n width, height, 0, 0, canvas.width, canvas.height);\n return new Promise((resolve, reject) => {\n canvas.toBlob(blob => blob ? resolve(blob) : reject(new Error('Image encoding failed.')),\n options.type ?? 'image/png', options.quality ?? .92);\n });\n}\n","<script setup lang=\"ts\">\nimport { ImageCropper, useImageCropper } from '@ark-ui/vue/image-cropper';\nimport { computed, onBeforeUnmount, shallowRef, watch } from 'vue';\nimport { exportImageCrop } from './export';\nimport { projectImageCrop, sourceImageCrop } from './geometry';\nimport type { CropperSessionProps } from './session-types';\nimport type { QuireKitImageCropExportOptions, QuireKitImageCropResult } from './types';\nconst props = defineProps<CropperSessionProps>();\nconst emit = defineEmits<{ change: [result: QuireKitImageCropResult]; zoom: [zoom: number]; error: [error: Error] }>();\nconst api = useImageCropper(computed(() => ({\n initialCrop: projectImageCrop(props.initial, props.size, props.ratio),\n aspectRatio: props.ratio, minWidth: 1, minHeight: 1, minZoom: 1, maxZoom: 5,\n fixedCropArea: props.fixedCropArea,\n translations: {\n rootLabel: props.copy.root(props.alt), rootRoleDescription: props.copy.label,\n previewLoading: props.copy.loading, previewDescription: () => props.alt,\n selectionLabel: () => props.copy.selection, selectionRoleDescription: props.copy.selection,\n selectionInstructions: props.fixedCropArea ? props.copy.panInstructions : props.copy.instructions,\n selectionValueText: ({ width, height }) => `${Math.round(width)} × ${Math.round(height)}`\n }\n})));\nconst root = shallowRef<HTMLElement | null>(null);\nlet active = true;\nonBeforeUnmount(() => { active = false; });\n/** @returns Exact source-space crop, independent of rounded upstream pixel bounds. */\nfunction getCrop(): QuireKitImageCropResult | null {\n const value = api.value;\n if (!active || !value.naturalSize.width || !value.viewportRect.width || !value.crop.width) return null;\n // Ark owns interaction; project its floating-point viewport state before any DOM integer rounding.\n const { size } = props;\n const x = ((value.crop.x - size.width / 2 - value.offset.x) / value.zoom + size.width / 2) / size.width;\n const y = ((value.crop.y - size.height / 2 - value.offset.y) / value.zoom + size.height / 2) / size.height;\n const right = x + value.crop.width / value.zoom / size.width;\n const bottom = y + value.crop.height / value.zoom / size.height;\n const crop = sourceImageCrop(x, y, right, bottom, { width: 1, height: 1 });\n if (!crop) return null;\n return { crop, naturalSize: { ...value.naturalSize }, outputSize: {\n width: Math.max(1, Math.round((1 - crop.left - crop.right) * value.naturalSize.width)),\n height: Math.max(1, Math.round((1 - crop.top - crop.bottom) * value.naturalSize.height))\n } };\n}\nwatch(() => [api.value.crop, api.value.offset, api.value.zoom, api.value.naturalSize, api.value.viewportRect], () => {\n const result = getCrop();\n if (result) emit('change', result);\n emit('zoom', api.value.zoom);\n}, { flush: 'post' });\n/** Uses Ark's ratio-aware resize path for its Alt-arrow shortcut gap.\n * @param event - Keyboard event from the crop selection.\n */\nfunction resizeWithKeyboard(event: KeyboardEvent): void {\n if (!props.ratio || !event.altKey || props.fixedCropArea || props.disabled) return;\n if (!['ArrowLeft', 'ArrowRight', 'ArrowUp', 'ArrowDown'].includes(event.key)) return;\n event.preventDefault();\n event.stopPropagation();\n const step = event.ctrlKey || event.metaKey ? 50 : event.shiftKey ? 10 : 1;\n api.value.resize(event.key === 'ArrowLeft' || event.key === 'ArrowRight' ? 'e' : 's',\n step * (event.key === 'ArrowLeft' || event.key === 'ArrowUp' ? -1 : 1));\n}\n/** @param zoom - Requested source magnification. */\nfunction setZoom(zoom: number): void { if (!props.disabled) api.value.setZoom(zoom); }\n/** @param options - Explicit export options. @returns A current-session Blob or rejects. */\nasync function getCroppedImage(options: QuireKitImageCropExportOptions = {}): Promise<Blob> {\n const result = getCrop();\n const image = props.sourceImage;\n if (!result || !image) throw new Error('Image cropper is not ready.');\n const blob = await exportImageCrop(image, result, options);\n if (!active) throw new Error('Image cropper source changed during export.');\n return blob;\n}\n/** Restores keyboard editing after a source-preserving session replacement. */\nfunction focusSelection(): void { if (!props.disabled) root.value?.querySelector<HTMLElement>('[data-part=\"selection\"]')?.focus(); }\ndefineExpose({ getCrop, setZoom, getCroppedImage, focusSelection });\n</script>\n<template>\n <ImageCropper.RootProvider :value=\"api\" class=\"qk-image-cropper__session\" :style=\"{ width: `${size.width}px`, height: `${size.height}px` }\">\n <div ref=\"root\" class=\"qk-image-cropper__viewport\"><ImageCropper.Viewport class=\"qk-image-cropper__viewport\">\n <ImageCropper.Image :src=\"src\" @error=\"emit('error', new Error('Image cropper source became unavailable.'))\" :crossorigin=\"crossorigin\" :referrerpolicy=\"referrerpolicy\" class=\"qk-image-cropper__image\" />\n <ImageCropper.Selection class=\"qk-image-cropper__selection\" @keydown.capture=\"resizeWithKeyboard\">\n <template v-if=\"grid\"><ImageCropper.Grid axis=\"horizontal\" class=\"qk-image-cropper__grid\" /><ImageCropper.Grid axis=\"vertical\" class=\"qk-image-cropper__grid\" /></template>\n <template v-if=\"!fixedCropArea\"><ImageCropper.Handle v-for=\"position in (['n','e','s','w','ne','se','sw','nw'] as const)\" :key=\"position\" :position=\"position\" class=\"qk-image-cropper__handle\"><span /></ImageCropper.Handle></template>\n </ImageCropper.Selection>\n </ImageCropper.Viewport></div>\n </ImageCropper.RootProvider>\n</template>\n","import { onMounted, ref, shallowRef, watch } from 'vue';\nimport type { QuireKitImageCropperProps, QuireKitImageCropSize } from './types';\n\n/** Loads one current source without allowing stale requests to replace its dimensions.\n * @param props - Current native image request inputs.\n * @param onError - Consumer failure notification.\n * @returns Reactive source state and retry action.\n */\nexport function useCropperSource(props: QuireKitImageCropperProps, onError: (error: Error) => void) {\n const mounted = ref(false);\n const attempt = ref(0);\n const loadedImage = shallowRef<HTMLImageElement | null>(null);\n const size = shallowRef<QuireKitImageCropSize | null>(null);\n const failed = ref(false);\n onMounted(() => { mounted.value = true; });\n watch([mounted, () => props.src, () => props.crossorigin, () => props.referrerpolicy, attempt], (_, __, cleanup) => {\n loadedImage.value = null;\n size.value = null;\n failed.value = false;\n if (!mounted.value) return;\n let active = true;\n const image = new Image();\n image.onload = () => {\n if (!active) return;\n if (!image.naturalWidth || !image.naturalHeight) { image.onerror?.(new Event('error')); return; }\n loadedImage.value = image;\n size.value = { width: image.naturalWidth, height: image.naturalHeight };\n };\n image.onerror = () => {\n if (!active) return;\n failed.value = true;\n onError(new Error('Image cropper source could not be loaded.'));\n };\n if (props.crossorigin !== undefined) image.crossOrigin = props.crossorigin ?? '';\n if (props.referrerpolicy !== undefined) image.referrerPolicy = props.referrerpolicy ?? '';\n if (props.src) image.src = props.src;\n else image.onerror(new Event('error'));\n cleanup(() => { active = false; image.onload = null; image.onerror = null; image.removeAttribute('src'); });\n }, { immediate: true, flush: 'sync' });\n return { size, loadedImage, failed, attempt, retry: () => { attempt.value++; } };\n}\n","<script setup lang=\"ts\">\nimport { computed, nextTick, onBeforeUnmount, onMounted, ref, shallowRef, watch } from 'vue';\nimport QuireButton from '../button/button.vue';\nimport QuireSegmented from '../segmented/segmented.vue';\nimport QuireSelect from '../select/select.vue';\nimport QuireSlider from '../slider/slider.vue';\nimport { equalImageCrop, fullImageCrop, isImageCrop } from './geometry';\nimport { useQuireKitMessages } from '../locale-provider/context';\nimport CropperSession from './session.vue';\nimport { useCropperSource } from './use-source';\nimport type { QuireKitImageCrop, QuireKitImageCropExportOptions, QuireKitImageCropperProps, QuireKitImageCropResult } from './types';\nconst props = withDefaults(defineProps<QuireKitImageCropperProps>(), {\n height: 360, toolbar: true, grid: true, fixedCropArea: false, disabled: false\n});\n/** Non-destructive source crop; source replacement uses the current model. */\nconst model = defineModel<QuireKitImageCrop>();\n/** Output width / height; undefined enables free resizing. */\nconst aspectRatio = defineModel<number>('aspectRatio');\nconst emit = defineEmits<{ change: [result: QuireKitImageCropResult]; error: [error: Error]; ready: [result: QuireKitImageCropResult] }>();\nconst copy = useQuireKitMessages('imageCropper');\nconst source = useCropperSource(props, error => emit('error', error));\nconst host = shallowRef<HTMLElement | null>(null);\nconst session = shallowRef<InstanceType<typeof CropperSession> | null>(null);\nconst width = ref(0);\nconst revision = ref(0);\nconst mode = ref('frame');\nconst zoom = ref(1);\nconst current = shallowRef<QuireKitImageCropResult | null>(null);\nconst initial = shallowRef<QuireKitImageCrop>(model.value && isImageCrop(model.value) ? { ...model.value } : fullImageCrop);\nconst ratio = computed(() => Number.isFinite(aspectRatio.value) && (aspectRatio.value ?? 0) > 0 ? aspectRatio.value : undefined);\nconst fixed = computed(() => props.fixedCropArea || mode.value === 'pan');\nconst size = computed(() => {\n const natural = source.size.value;\n if (!natural || width.value <= 0) return null;\n const maxHeight = Number.isFinite(props.height) ? Math.max(80, props.height) : 360;\n const scale = Math.min(width.value / natural.width, maxHeight / natural.height);\n return { width: natural.width * scale, height: natural.height * scale };\n});\nconst sessionKey = computed(() => `${revision.value}:${size.value?.width}:${size.value?.height}`);\nconst ratioItems = computed(() => [\n { value: 'free', label: copy.value.free }, { value: '1', label: '1:1' },\n { value: String(4 / 3), label: '4:3' }, { value: String(16 / 9), label: '16:9' },\n ...(ratio.value && ![1, 4 / 3, 16 / 9].includes(ratio.value) ? [{ value: String(ratio.value), label: copy.value.custom }] : [])\n]);\nlet observer: ResizeObserver | undefined;\nlet lastEmitted: QuireKitImageCrop | undefined;\nlet announced = false;\nlet restoreFocus = false;\n/** Starts a fresh Ark session using normalized source geometry.\n * @param crop - Source geometry to restore.\n */\nfunction restart(crop: QuireKitImageCrop): void {\n restoreFocus ||= !!host.value?.contains(host.value.ownerDocument.activeElement);\n initial.value = { ...crop };\n current.value = null;\n announced = false;\n zoom.value = 1;\n revision.value++;\n}\nwatch([() => props.src, () => props.crossorigin, () => props.referrerpolicy, source.attempt], () => {\n lastEmitted = undefined;\n restart(model.value && isImageCrop(model.value) ? model.value : fullImageCrop);\n}, { flush: 'sync' });\nwatch(model, value => {\n if (value && !isImageCrop(value)) { emit('error', new RangeError('Image crop must contain finite nonnegative insets with a nonempty visible area.')); return; }\n const next = value ?? fullImageCrop;\n if (lastEmitted && equalImageCrop(next, lastEmitted)) return;\n restart(next);\n}, { deep: true, flush: 'sync' });\nwatch(fixed, () => {\n // Pan mode only covers the frame. Rebase source geometry before editable handles can expose its margins.\n if (current.value) restart(current.value.crop);\n}, { flush: 'sync' });\nwatch(size, () => {\n restoreFocus ||= !!host.value?.contains(host.value.ownerDocument.activeElement);\n // A resized viewport restores source insets instead of reusing stale CSS pan offsets.\n if (current.value) initial.value = { ...current.value.crop };\n current.value = null;\n announced = false;\n}, { flush: 'sync' });\nonMounted(() => {\n if (model.value && !isImageCrop(model.value)) emit('error', new RangeError('Invalid initial image crop.'));\n if (!host.value) return;\n let settled = false;\n let measuring = false;\n let pendingWidth = 0;\n observer = new ResizeObserver(async entries => {\n pendingWidth = entries[0]?.contentRect.width ?? 0;\n if (settled) { width.value = pendingWidth; return; }\n if (measuring) return;\n measuring = true;\n // Wait for finite ancestor opening animations so Ark does not measure a scaled dialog.\n const animations: Animation[] = [];\n for (let element: HTMLElement | null = host.value; element; element = element.parentElement) {\n animations.push(...element.getAnimations().filter(animation =>\n animation.playState === 'running' && animation.effect?.getTiming().iterations !== Infinity));\n }\n await Promise.allSettled(animations.map(animation => animation.finished));\n settled = true;\n if (host.value) width.value = pendingWidth;\n });\n observer.observe(host.value);\n});\nonBeforeUnmount(() => observer?.disconnect());\n/** @param result - Geometry produced by the current Ark session. */\nfunction update(result: QuireKitImageCropResult): void {\n current.value = result;\n lastEmitted = result.crop;\n if (!model.value || !equalImageCrop(model.value, result.crop)) model.value = { ...result.crop };\n emit('change', result);\n if (!announced) {\n announced = true;\n emit('ready', result);\n if (restoreFocus) {\n restoreFocus = false;\n void nextTick(() => {\n // Do not steal focus if the consumer moved to another control while the image loaded.\n const doc = host.value?.ownerDocument;\n if (doc && doc.activeElement === doc.body) session.value?.focusSelection();\n });\n }\n }\n}\n/** @param error - Failure from the actual mounted image after its preload. */\nfunction failSession(error: Error): void {\n source.failed.value = true;\n current.value = null;\n emit('error', error);\n}\n/** @param value - Selected ratio token. */\nfunction selectRatio(value: string | undefined): void { aspectRatio.value = value === 'free' || !value ? undefined : Number(value); }\n/** @param values - Slider percent values. */\nfunction setZoom(values: number[] | undefined): void { session.value?.setZoom((values?.[0] ?? 100) / 100); }\n/** @param event - Interaction blocked before upstream listeners when disabled. */\nfunction blockDisabled(event: Event): void {\n if (!props.disabled) return;\n event.preventDefault();\n event.stopImmediatePropagation();\n}\n/** @returns Current valid source crop, or null during loading or replacement. */\nfunction getCrop(): QuireKitImageCropResult | null { return source.failed.value || !source.size.value ? null : session.value?.getCrop() ?? null; }\n/** Restores the largest centered region allowed by the selected aspect ratio. */\nfunction reset(): void { if (!props.disabled) restart(fullImageCrop); }\n/** @param options - Requested raster export. @returns Blob produced from the current source. */\nasync function getCroppedImage(options?: QuireKitImageCropExportOptions): Promise<Blob> {\n const active = session.value;\n if (!active || !getCrop()) throw new Error('Image cropper is not ready.');\n return active.getCroppedImage(options);\n}\ndefineExpose({ getCrop, reset, getCroppedImage });\n</script>\n<template>\n <section class=\"qk-image-cropper\" :aria-label=\"copy.label\" :data-disabled=\"disabled ? '' : undefined\">\n <div v-if=\"toolbar\" class=\"qk-image-cropper__toolbar\">\n <QuireSegmented v-if=\"!fixedCropArea\" v-model=\"mode\" :label=\"copy.label\" :items=\"[{ value: 'frame', label: copy.frame }, { value: 'pan', label: copy.pan }]\" :disabled=\"disabled || !current\" />\n <QuireSelect :model-value=\"ratio ? String(ratio) : 'free'\" :items=\"ratioItems\" :label=\"copy.aspectRatio\" :disabled=\"disabled || !current\" class=\"qk-image-cropper__ratio\" @update:model-value=\"selectRatio\" />\n <QuireButton variant=\"outline\" :disabled=\"disabled || !current\" class=\"qk-image-cropper__reset\" @click=\"reset\">{{ copy.reset }}</QuireButton>\n </div>\n <div ref=\"host\" class=\"qk-image-cropper__stage\" :style=\"{ minHeight: `${Math.min(160, height)}px` }\"\n @pointerdown.capture=\"blockDisabled\" @wheel.capture=\"blockDisabled\" @touchstart.capture=\"blockDisabled\" @touchmove.capture=\"blockDisabled\" @keydown.capture=\"blockDisabled\">\n <div v-if=\"source.failed.value\" class=\"qk-image-cropper__status\" role=\"alert\">\n <span>{{ copy.unavailable }}</span><QuireButton variant=\"outline\" :disabled=\"disabled\" @click=\"source.retry\">{{ copy.retry }}</QuireButton>\n </div>\n <CropperSession v-else-if=\"size\" :key=\"sessionKey\" ref=\"session\" :src=\"src\" :alt=\"alt\" :size=\"size\" :source-image=\"source.loadedImage.value\" :initial=\"initial\" :ratio=\"ratio\" :copy=\"copy\"\n :grid=\"grid\" :fixed-crop-area=\"fixed\" :disabled=\"disabled\" :crossorigin=\"crossorigin\" :referrerpolicy=\"referrerpolicy\"\n :inert=\"disabled || undefined\" @change=\"update\" @error=\"failSession\" @zoom=\"zoom = $event\" />\n <div v-else class=\"qk-image-cropper__status\" role=\"status\">{{ copy.loading }}</div>\n </div>\n <div v-if=\"toolbar\" class=\"qk-image-cropper__footer\">\n <QuireSlider :label=\"copy.zoom\" :model-value=\"[Math.round(zoom * 100)]\" :min=\"100\" :max=\"500\" :step=\"1\" unit=\"%\" :disabled=\"disabled || !current\" class=\"qk-image-cropper__zoom\" @update:model-value=\"setZoom\" />\n <span v-if=\"current\" class=\"qk-image-cropper__dimensions\">{{ current.outputSize.width }} × {{ current.outputSize.height }} px</span>\n </div>\n <p class=\"qk-image-cropper__help\">{{ fixed ? copy.panInstructions : copy.instructions }}</p>\n <slot :result=\"current\" :reset=\"reset\" />\n </section>\n</template>\n","<script setup lang=\"ts\">\nimport { computed, onMounted, ref } from 'vue';\nimport type { QuireKitInlineCitationProps, QuireKitSourceNavigateDetails } from '../../components/sources';\nimport QuirePopoverRoot from '../popover/root.vue';\nimport QuirePopoverTrigger from '../popover/trigger.vue';\nimport QuirePopoverContent from '../popover/content.vue';\nimport QuirePopoverTitle from '../popover/title.vue';\nimport QuirePopoverDescription from '../popover/description.vue';\nimport QuireButton from '../button/button.vue';\nimport { useQuireKitMessages } from '../locale-provider/context';\n\nconst props = defineProps<QuireKitInlineCitationProps>();\nconst text = useQuireKitMessages('sources');\nconst emit = defineEmits<{\n /** Request navigation; URL authorization and routing belong to the host. */\n navigate: [details: QuireKitSourceNavigateDetails];\n}>();\nconst open = ref(false);\n// The preview is portalled after hydration; an SSR block positioner inside prose is invalid HTML.\nconst mounted = ref(false);\nonMounted(() => { mounted.value = true; });\nconst available = computed(() => props.source !== undefined && !props.source.unavailable);\n\n/** Close the preview and hand its stable source identity to the host. */\nfunction navigate(): void {\n const source = props.source;\n if (!source || source.unavailable) return;\n open.value = false;\n emit('navigate', { sourceId: source.id, ...(source.href === undefined ? {} : { href: source.href }) });\n}\n</script>\n\n<template>\n <sup class=\"qk-inline-citation\">\n <QuirePopoverRoot v-model:open=\"open\" placement=\"top\" :auto-focus=\"false\">\n <QuirePopoverTrigger as-child>\n <button type=\"button\" class=\"qk-inline-citation__trigger\" :aria-label=\"text.citation(label, source?.title ?? text.unavailable)\">{{ label }}</button>\n </QuirePopoverTrigger>\n <QuirePopoverContent v-if=\"mounted\" class=\"qk-inline-citation__card\" border=\"subtle\" :show-arrow=\"false\" width=\"min(21rem, calc(100vw - 1rem))\">\n <div class=\"qk-inline-citation__content\">\n <span v-if=\"source?.label && available\" class=\"qk-inline-citation__origin\" dir=\"auto\">{{ source.label }}</span>\n <QuirePopoverTitle class=\"qk-inline-citation__title\" dir=\"auto\">{{ available ? source?.title : text.unavailable }}</QuirePopoverTitle>\n <QuirePopoverDescription v-if=\"available && source?.description\" class=\"qk-inline-citation__description\" dir=\"auto\">{{ source.description }}</QuirePopoverDescription>\n <blockquote v-if=\"available && source?.quote\" class=\"qk-inline-citation__quote\" dir=\"auto\">{{ source.quote }}</blockquote>\n <QuireButton v-if=\"available\" size=\"xs\" variant=\"text\" color=\"primary\" @click=\"navigate\">{{ text.navigate }}</QuireButton>\n </div>\n </QuirePopoverContent>\n </QuirePopoverRoot>\n </sup>\n</template>\n","<script setup lang=\"ts\">\nimport { computed, ref } from 'vue';\nimport type { Messages as QuireKitJsonViewerMessages } from '../../locale/components/json-viewer';\n\n/** Internal tree row, rendered only for branches that the reader opens. */\ninterface Props {\n /** Parsed JSON value at this path. */\n readonly value: unknown;\n /** Object key or array index; null identifies the root. */\n readonly name: string | null;\n /** Zero-based depth from the root. */\n readonly depth: number;\n /** Maximum depth rendered as interactive child nodes. */\n readonly maxDepth: number;\n /** Number of child entries revealed in one step. */\n readonly pageSize: number;\n /** Maximum initial scalar text length. */\n readonly maxValueLength: number;\n /** Resolved interface text from the owning viewer. */\n readonly text: QuireKitJsonViewerMessages;\n}\n\nconst props = defineProps<Props>();\nconst open = ref(props.depth === 0);\nconst visibleCount = ref(props.pageSize);\nconst scalarExpanded = ref(false);\nconst isBranch = computed(() => props.value !== null && typeof props.value === 'object');\nconst entries = computed(() => {\n if (!isBranch.value) return [];\n return Array.isArray(props.value)\n ? props.value.map((value: unknown, index: number) => [String(index), value] as const)\n : Object.entries(props.value as Record<string, unknown>);\n});\nconst visibleEntries = computed(() => entries.value.slice(0, visibleCount.value));\nconst isArray = computed(() => Array.isArray(props.value));\nconst scalar = computed(() => JSON.stringify(props.value) ?? 'null');\nconst scalarText = computed(() => scalarExpanded.value || scalar.value.length <= props.maxValueLength\n ? scalar.value : `${scalar.value.slice(0, props.maxValueLength)}…`);\n\n/** Reveal another bounded page without rebuilding unopened descendants. */\nfunction showMore(): void {\n visibleCount.value = Math.min(entries.value.length, visibleCount.value + props.pageSize);\n}\n\n/** Tracks native details disclosure so unopened descendants are not mounted. @param event - Native toggle event. */\nfunction onToggle(event: Event): void {\n open.value = (event.currentTarget as HTMLDetailsElement).open;\n}\n</script>\n\n<template>\n <div class=\"qk-json-viewer__node\" :style=\"{ '--qk-json-depth': depth }\">\n <details v-if=\"isBranch\" class=\"qk-json-viewer__branch\" :open=\"open\" @toggle=\"onToggle\">\n <summary class=\"qk-json-viewer__summary\">\n <span v-if=\"name !== null\" class=\"qk-json-viewer__key\">{{ name }}<span class=\"qk-json-viewer__punctuation\">: </span></span>\n <span class=\"qk-json-viewer__punctuation\">{{ isArray ? '[' : '{' }}</span>\n <span class=\"qk-json-viewer__count\">{{ text.entries(entries.length) }}</span>\n </summary>\n <template v-if=\"open && depth < maxDepth\">\n <JsonNode v-for=\"[key, child] in visibleEntries\" :key=\"key\" :name=\"key\" :value=\"child\" :depth=\"depth + 1\"\n :max-depth=\"maxDepth\" :page-size=\"pageSize\" :max-value-length=\"maxValueLength\" :text=\"text\" />\n <button v-if=\"visibleCount < entries.length\" type=\"button\" class=\"qk-json-viewer__more\"\n :style=\"{ '--qk-json-depth': depth + 1 }\" @click=\"showMore\">{{ text.showMore(Math.min(pageSize, entries.length - visibleCount)) }}</button>\n </template>\n <div v-else-if=\"open\" class=\"qk-json-viewer__limit\" :style=\"{ '--qk-json-depth': depth + 1 }\">{{ text.depthLimit }}</div>\n <div v-if=\"open\" class=\"qk-json-viewer__close\" :style=\"{ '--qk-json-depth': depth }\">{{ isArray ? ']' : '}' }}</div>\n </details>\n <div v-else class=\"qk-json-viewer__scalar\">\n <span v-if=\"name !== null\" class=\"qk-json-viewer__key\">{{ name }}<span class=\"qk-json-viewer__punctuation\">: </span></span>\n <span :data-kind=\"value === null ? 'null' : typeof value\" class=\"qk-json-viewer__value\">{{ scalarText }}</span>\n <button v-if=\"scalar.length > maxValueLength\" type=\"button\" class=\"qk-json-viewer__more\"\n @click=\"scalarExpanded = !scalarExpanded\">{{ scalarExpanded ? text.collapseValue : text.expandValue }}</button>\n </div>\n </div>\n</template>\n","/** A successful JSON parse or an explicit raw-source fallback reason. */\nexport type JsonParseResult =\n | { readonly kind: 'tree'; readonly value: unknown }\n | { readonly kind: 'invalid' | 'large' };\n\n/**\n * Parses only bounded source so the tree never performs unbounded synchronous work.\n * @param source - Original JSON text.\n * @param maxCharacters - Maximum input length admitted to tree inspection.\n * @returns Parsed value or a reason to keep the source view.\n */\nexport function parseJsonForViewer(source: string, maxCharacters: number): JsonParseResult {\n if (source.length > maxCharacters) return { kind: 'large' };\n try {\n return { kind: 'tree', value: JSON.parse(source) as unknown };\n } catch {\n return { kind: 'invalid' };\n }\n}\n","<script setup lang=\"ts\">\nimport { computed, ref, watch } from 'vue';\nimport type { QuireKitJsonViewerProps, QuireKitJsonViewerView } from '../../components/json-viewer';\nimport { useQuireKitMessages } from '../locale-provider/context';\nimport QuireClipboard from '../clipboard/clipboard.vue';\nimport QuireCodeBlock from '../code-block/code-block.vue';\nimport QuireSegmented from '../segmented/segmented.vue';\nimport JsonNode from './json-node.vue';\nimport { parseJsonForViewer } from './parse';\n\nconst props = withDefaults(defineProps<QuireKitJsonViewerProps>(), {\n defaultView: 'tree', maxTreeCharacters: 100_000,\n maxDepth: 12, pageSize: 80, maxValueLength: 180, maxHeight: 400\n});\nconst emit = defineEmits<{\n /** Requests a view change in controlled or uncontrolled usage. */\n 'update:view': [view: QuireKitJsonViewerView];\n}>();\nconst localView = ref<QuireKitJsonViewerView>(props.defaultView);\nconst treeLimit = computed(() => Math.max(1, Math.trunc(props.maxTreeCharacters)) || 100_000);\nconst parsed = computed(() => parseJsonForViewer(props.source, treeLimit.value));\nconst treeAvailable = computed(() => parsed.value.kind === 'tree');\nconst activeView = computed(() => treeAvailable.value ? props.view ?? localView.value : 'source');\nconst selection = computed({\n get: () => activeView.value,\n set: (value: string | null) => {\n if (value !== 'tree' && value !== 'source') return;\n localView.value = value;\n emit('update:view', value);\n }\n});\nconst sourceExpanded = ref(false);\nwatch(() => props.source, () => { sourceExpanded.value = false; });\nconst sourceLimit = computed(() => Math.max(1, treeLimit.value));\nconst clipped = computed(() => props.source.length > sourceLimit.value && !sourceExpanded.value);\nconst visibleSource = computed(() => clipped.value ? `${props.source.slice(0, sourceLimit.value)}\\n…` : props.source);\nconst height = computed(() => `${Number.isFinite(props.maxHeight) ? Math.max(80, props.maxHeight) : 400}px`);\nconst text = useQuireKitMessages('jsonViewer');\nconst label = computed(() => props.label ?? text.value.label);\nconst modeItems = computed(() => [{ value: 'tree', label: text.value.tree }, { value: 'source', label: text.value.source }]);\n</script>\n\n<template>\n <section class=\"qk-json-viewer\" data-qk-not-prose :aria-label=\"label\">\n <div class=\"qk-json-viewer__toolbar\">\n <QuireSegmented v-if=\"treeAvailable\" v-model=\"selection\" :items=\"modeItems\" :label=\"text.viewSwitch(label)\" size=\"xs\" />\n <span v-else class=\"qk-json-viewer__fallback\">{{ parsed.kind === 'large' ? text.tooLarge : text.invalid }}</span>\n <QuireClipboard class=\"qk-json-viewer__copy\" :value=\"source\" :target=\"text.copyTarget\" mode=\"icon\" size=\"xs\" variant=\"text\" />\n </div>\n <div v-if=\"activeView === 'tree' && parsed.kind === 'tree'\" class=\"qk-json-viewer__tree\" :style=\"{ maxHeight: height }\" tabindex=\"0\" :aria-label=\"text.treeContent(label)\">\n <JsonNode :key=\"source\" :value=\"parsed.value\" :name=\"null\" :depth=\"0\" :max-depth=\"Number.isFinite(maxDepth) ? Math.max(1, Math.trunc(maxDepth)) : 12\"\n :page-size=\"Number.isFinite(pageSize) ? Math.max(1, Math.trunc(pageSize)) : 80\" :text=\"text\" :max-value-length=\"Number.isFinite(maxValueLength) ? Math.max(16, Math.trunc(maxValueLength)) : 180\" />\n </div>\n <div v-else class=\"qk-json-viewer__source\">\n <QuireCodeBlock :code=\"visibleSource\" language=\"json\" :header=\"false\" :copy=\"false\" variant=\"plain\" density=\"compact\" :max-height=\"maxHeight\" :aria-label=\"text.sourceContent(label)\" />\n <button v-if=\"source.length > sourceLimit\" type=\"button\" class=\"qk-json-viewer__expand-source\" @click=\"sourceExpanded = !sourceExpanded\">\n {{ sourceExpanded ? text.collapseSource : text.showFullSource }}\n </button>\n </div>\n </section>\n</template>\n","<script setup lang=\"ts\">\nimport { computed, ref } from 'vue';\nimport { useQuireKitMessages } from '../locale-provider/context';\nimport type { DiffHunk, DiffRow } from './types';\n\n/** A single independently collapsible unified-diff hunk. */\ninterface Props {\n /** Verified hunk and its old/new line numbers. */\n readonly hunk: DiffHunk;\n /** Maximum initially visible row count. */\n readonly maxVisibleLines: number;\n}\n\nconst props = defineProps<Props>();\nconst text = useQuireKitMessages('diffViewer');\nconst open = ref(true);\nconst showAll = ref(false);\nconst windowStart = computed(() => {\n const rows = props.hunk.rows;\n if (showAll.value || rows.length <= props.maxVisibleLines) return 0;\n const firstChange = rows.findIndex(row => row.kind === 'added' || row.kind === 'removed');\n if (firstChange < 0) return 0;\n let lastChange = firstChange;\n for (let index = rows.length - 1; index > firstChange; index--) {\n if (rows[index]?.kind === 'added' || rows[index]?.kind === 'removed') {\n lastChange = index;\n break;\n }\n }\n const span = lastChange - firstChange + 1;\n // Keep the first change group in view. Context gets the remaining budget,\n // instead of letting a long preamble hide every meaningful changed line.\n return Math.min(rows.length - props.maxVisibleLines,\n Math.max(0, firstChange - Math.floor(Math.max(0, props.maxVisibleLines - span) / 2)));\n});\nconst windowEnd = computed(() => showAll.value ? props.hunk.rows.length\n : Math.min(props.hunk.rows.length, windowStart.value + props.maxVisibleLines));\nconst visibleRows = computed(() => props.hunk.rows.slice(windowStart.value, windowEnd.value));\nconst leadingHidden = computed(() => windowStart.value);\n/** Digits of the widest line number, so both gutters fit every row of the hunk. */\nconst numberDigits = computed(() => String(Math.max(1, ...props.hunk.rows.flatMap(row => [row.oldNumber ?? 0, row.newNumber ?? 0]))).length);\nconst trailingHidden = computed(() => props.hunk.rows.length - windowEnd.value);\n\n/** Presents a blank gutter for lines absent from one side of the patch. */\nfunction numberText(value: DiffRow['oldNumber']): string {\n return value === null ? '' : String(value);\n}\n</script>\n\n<template>\n <section class=\"qk-diff-viewer__hunk\" :aria-label=\"text.hunk(hunk.index + 1)\">\n <button type=\"button\" class=\"qk-diff-viewer__hunk-toggle\" :aria-expanded=\"open\" @click=\"open = !open\">\n <span class=\"qk-diff-viewer__chevron\" aria-hidden=\"true\">{{ open ? '⌄' : '›' }}</span>\n <span class=\"qk-diff-viewer__hunk-header\">{{ hunk.header }}</span>\n <span class=\"qk-diff-viewer__hunk-count\">+{{ hunk.additions }} −{{ hunk.removals }}</span>\n </button>\n <div v-if=\"open\" class=\"qk-diff-viewer__hunk-body\" :style=\"{ '--qk-diff-number-digits': numberDigits }\">\n <button v-if=\"leadingHidden\" type=\"button\" class=\"qk-diff-viewer__reveal\" @click=\"showAll = true\">\n {{ text.revealBefore(leadingHidden) }}\n </button>\n <div v-for=\"(row, index) in visibleRows\" :key=\"windowStart + index\" class=\"qk-diff-viewer__line\" :data-kind=\"row.kind\">\n <span class=\"qk-diff-viewer__number\" :aria-label=\"row.oldNumber === null ? undefined : text.oldLine(row.oldNumber)\">{{ numberText(row.oldNumber) }}</span>\n <span class=\"qk-diff-viewer__number\" :aria-label=\"row.newNumber === null ? undefined : text.newLine(row.newNumber)\">{{ numberText(row.newNumber) }}</span>\n <span class=\"qk-diff-viewer__marker\" :aria-label=\"row.kind === 'added' ? text.added : row.kind === 'removed' ? text.removed : undefined\"\n :aria-hidden=\"row.kind === 'context' || row.kind === 'note' ? true : undefined\">{{ row.kind === 'added' ? '+' : row.kind === 'removed' ? '−' : ' ' }}</span>\n <span class=\"qk-diff-viewer__text\">{{ row.text }}</span>\n </div>\n <button v-if=\"trailingHidden\" type=\"button\" class=\"qk-diff-viewer__reveal\" @click=\"showAll = true\">\n {{ text.revealAfter(trailingHidden) }}\n </button>\n </div>\n </section>\n</template>\n","import type { DiffHunk, DiffParseResult, DiffRow, DiffSegment } from './types';\n\nconst hunkHeader = /^@@ -(\\d+)(?:,(\\d+))? \\+(\\d+)(?:,(\\d+))? @@(?:.*)$/;\n\n/**\n * Parses bounded unified-diff text without applying the patch or inventing missing lines.\n * @param patch - Original patch text.\n * @param maxCharacters - Maximum source length admitted to structured reading.\n * @returns Verified segments or a reason to retain the raw source view.\n */\nexport function parseDiffForViewer(patch: string, maxCharacters: number): DiffParseResult {\n if (patch.length > maxCharacters) return { kind: 'large' };\n if (!patch) return { kind: 'invalid' };\n const lines = patch.replace(/\\r\\n?/g, '\\n').split('\\n');\n if (lines.at(-1) === '') lines.pop();\n const segments: DiffSegment[] = [];\n let metadata: string[] = [];\n let additions = 0;\n let removals = 0;\n let cursor = 0;\n\n // Metadata stays in source order. A hunk is emitted only after its declared\n // old/new line counts are satisfied, so displayed line numbers remain true.\n while (cursor < lines.length) {\n const header = lines[cursor]!;\n const match = hunkHeader.exec(header);\n if (!match) {\n if (/^@@/.test(header) || (/^[ +\\\\-]/.test(header) && !/^(--- |\\+\\+\\+ )/.test(header))) return { kind: 'invalid' };\n metadata.push(header);\n cursor++;\n continue;\n }\n if (metadata.length) {\n segments.push({ kind: 'metadata', lines: metadata });\n metadata = [];\n }\n const oldStart = Number(match[1]);\n const oldCount = match[2] === undefined ? 1 : Number(match[2]);\n const newStart = Number(match[3]);\n const newCount = match[4] === undefined ? 1 : Number(match[4]);\n if (![oldStart, oldCount, newStart, newCount].every(Number.isSafeInteger)) return { kind: 'invalid' };\n let oldNumber = oldStart;\n let newNumber = newStart;\n let hunkAdditions = 0;\n let hunkRemovals = 0;\n const rows: DiffRow[] = [];\n cursor++;\n while (cursor < lines.length && (oldNumber - oldStart < oldCount || newNumber - newStart < newCount)) {\n const line = lines[cursor]!;\n const prefix = line[0];\n if (prefix === ' ') {\n rows.push({ kind: 'context', oldNumber: oldNumber++, newNumber: newNumber++, text: line.slice(1) });\n } else if (prefix === '+') {\n rows.push({ kind: 'added', oldNumber: null, newNumber: newNumber++, text: line.slice(1) });\n hunkAdditions++;\n } else if (prefix === '-') {\n rows.push({ kind: 'removed', oldNumber: oldNumber++, newNumber: null, text: line.slice(1) });\n hunkRemovals++;\n } else if (line.startsWith('\\\')) {\n rows.push({ kind: 'note', oldNumber: null, newNumber: null, text: line });\n } else {\n return { kind: 'invalid' };\n }\n if (oldNumber - oldStart > oldCount || newNumber - newStart > newCount) return { kind: 'invalid' };\n cursor++;\n }\n if (oldNumber - oldStart !== oldCount || newNumber - newStart !== newCount) return { kind: 'invalid' };\n while (lines[cursor]?.startsWith('\\\')) {\n rows.push({ kind: 'note', oldNumber: null, newNumber: null, text: lines[cursor]! });\n cursor++;\n }\n const hunk: DiffHunk = { header, index: segments.length, rows, additions: hunkAdditions, removals: hunkRemovals };\n segments.push({ kind: 'hunk', hunk });\n additions += hunkAdditions;\n removals += hunkRemovals;\n }\n if (metadata.length) segments.push({ kind: 'metadata', lines: metadata });\n return segments.some(segment => segment.kind === 'hunk')\n ? { kind: 'diff', segments, additions, removals }\n : { kind: 'invalid' };\n}\n","<script setup lang=\"ts\">\nimport { computed, ref, watch } from 'vue';\nimport type { QuireKitDiffViewerProps, QuireKitDiffViewerView } from '../../components/diff-viewer';\nimport QuireClipboard from '../clipboard/clipboard.vue';\nimport QuireCodeBlock from '../code-block/code-block.vue';\nimport QuireSegmented from '../segmented/segmented.vue';\nimport DiffHunk from './diff-hunk.vue';\nimport { parseDiffForViewer } from './parse';\nimport { useQuireKitMessages } from '../locale-provider/context';\n\nconst props = withDefaults(defineProps<QuireKitDiffViewerProps>(), {\n defaultView: 'diff', maxStructuredCharacters: 150_000, maxVisibleLines: 120, maxHeight: 480\n});\nconst text = useQuireKitMessages('diffViewer');\nconst label = computed(() => props.label ?? text.value.label);\nconst emit = defineEmits<{\n /** Requests a view change in controlled or uncontrolled usage. */\n 'update:view': [view: QuireKitDiffViewerView];\n}>();\nconst localView = ref<QuireKitDiffViewerView>(props.defaultView);\nconst structuredLimit = computed(() => Number.isFinite(props.maxStructuredCharacters)\n ? Math.max(1, Math.trunc(props.maxStructuredCharacters)) : 150_000);\nconst parsed = computed(() => parseDiffForViewer(props.patch, structuredLimit.value));\nconst diffAvailable = computed(() => parsed.value.kind === 'diff');\nconst activeView = computed(() => diffAvailable.value ? props.view ?? localView.value : 'source');\nconst selection = computed({\n get: () => activeView.value,\n set: (value: string | null) => {\n if (value !== 'diff' && value !== 'source') return;\n localView.value = value;\n emit('update:view', value);\n }\n});\nconst sourceExpanded = ref(false);\nwatch(() => props.patch, () => { sourceExpanded.value = false; });\nconst clipped = computed(() => props.patch.length > structuredLimit.value && !sourceExpanded.value);\nconst visibleSource = computed(() => clipped.value ? `${props.patch.slice(0, structuredLimit.value)}\\n…` : props.patch);\nconst height = computed(() => `${Number.isFinite(props.maxHeight) ? Math.max(80, props.maxHeight) : 480}px`);\nconst visibleLineLimit = computed(() => Number.isFinite(props.maxVisibleLines)\n ? Math.max(2, Math.trunc(props.maxVisibleLines)) : 120);\nconst modeItems = computed(() => [{ value: 'diff', label: text.value.diff }, { value: 'source', label: text.value.source }]);\n</script>\n\n<template>\n <section class=\"qk-diff-viewer\" data-qk-not-prose :aria-label=\"label\">\n <div class=\"qk-diff-viewer__toolbar\">\n <QuireSegmented v-if=\"diffAvailable\" v-model=\"selection\" :items=\"modeItems\" :label=\"text.viewSwitch(label)\" size=\"xs\" />\n <span v-else class=\"qk-diff-viewer__fallback\">{{ parsed.kind === 'large' ? text.tooLarge : text.invalid }}</span>\n <span v-if=\"parsed.kind === 'diff'\" class=\"qk-diff-viewer__totals\">+{{ parsed.additions }} −{{ parsed.removals }}</span>\n <QuireClipboard class=\"qk-diff-viewer__copy\" :value=\"patch\" :target=\"text.copyTarget\" mode=\"icon\" size=\"xs\" variant=\"text\" />\n </div>\n <div v-if=\"activeView === 'diff' && parsed.kind === 'diff'\" :key=\"patch\" class=\"qk-diff-viewer__content\" :style=\"{ maxHeight: height }\" tabindex=\"0\" :aria-label=\"text.diffContent(label)\">\n <template v-for=\"(segment, index) in parsed.segments\" :key=\"index\">\n <div v-if=\"segment.kind === 'metadata'\" class=\"qk-diff-viewer__metadata\">\n <div v-for=\"(line, lineIndex) in segment.lines\" :key=\"lineIndex\">{{ line }}</div>\n </div>\n <DiffHunk v-else :hunk=\"segment.hunk\" :max-visible-lines=\"visibleLineLimit\" />\n </template>\n </div>\n <div v-else class=\"qk-diff-viewer__source\">\n <QuireCodeBlock :code=\"visibleSource\" language=\"diff\" :header=\"false\" :copy=\"false\" variant=\"plain\" density=\"compact\" :max-height=\"maxHeight\" :aria-label=\"text.sourceContent(label)\" />\n <button v-if=\"patch.length > structuredLimit\" type=\"button\" class=\"qk-diff-viewer__expand-source\" @click=\"sourceExpanded = !sourceExpanded\">\n {{ sourceExpanded ? text.collapseSource : text.showFullSource }}\n </button>\n </div>\n </section>\n</template>\n","import type { QuireKitTerminalOutputChunk } from '../../components/terminal-output';\n\n/** A safe text span, never interpreted as HTML or a terminal command. */\nexport interface TerminalSpan {\n /** Visible text. */\n readonly text: string;\n /** Originating process stream. */\n readonly stream: 'stdout' | 'stderr';\n /** Supported foreground palette key. */\n readonly color?: string;\n /** Bold SGR style. */\n readonly bold: boolean;\n /** Dim SGR style. */\n readonly dim: boolean;\n /** Underline SGR style. */\n readonly underline: boolean;\n}\n\n/** Bounded display projection; the caller retains the original chunks for copying. */\nexport interface TerminalProjection {\n /** Ordered safe spans. */\n readonly spans: readonly TerminalSpan[];\n /** Whether earlier source text was omitted from the rendered tail. */\n readonly clipped: boolean;\n}\n\nconst colorNames = ['black', 'red', 'green', 'yellow', 'blue', 'magenta', 'cyan', 'white'];\n\n/**\n * Render only a bounded tail and interpret a deliberately small ANSI SGR subset.\n * OSC, cursor commands and other controls never reach the DOM as executable markup.\n *\n * @param chunks - Host-owned chronological process output.\n * @param maximum - Maximum number of source code units scanned for this render.\n * @returns Safe text spans plus the display clipping indicator.\n */\nexport function parseTerminalOutput(chunks: readonly QuireKitTerminalOutputChunk[], maximum: number): TerminalProjection {\n const limit = Number.isFinite(maximum) ? Math.max(1024, Math.trunc(maximum)) : 80_000;\n const tail: QuireKitTerminalOutputChunk[] = [];\n let remaining = limit;\n let clipped = false;\n for (let index = chunks.length - 1; index >= 0; index--) {\n const chunk = chunks[index]!;\n if (remaining <= 0) { clipped = true; break; }\n const text = chunk.text.length > remaining ? chunk.text.slice(-remaining) : chunk.text;\n if (text.length < chunk.text.length) clipped = true;\n tail.push({ id: chunk.id, stream: chunk.stream, text });\n remaining -= text.length;\n }\n tail.reverse();\n\n const spans: TerminalSpan[] = [];\n let color: string | undefined;\n let bold = false;\n let dim = false;\n let underline = false;\n let mode: 'text' | 'escape' | 'csi' | 'osc' | 'osc-escape' = 'text';\n let sequence = '';\n let buffer = '';\n let bufferStream: 'stdout' | 'stderr' = 'stdout';\n\n /** Flushes the current run before a stream or style boundary. */\n function flush(): void {\n if (!buffer) return;\n spans.push({ text: buffer, stream: bufferStream, ...(color === undefined ? {} : { color }), bold, dim, underline });\n buffer = '';\n }\n\n /**\n * Applies only well-formed, supported SGR parameters.\n * @param value - Numeric parameter string without the CSI terminator.\n */\n function applySgr(value: string): void {\n if (!/^[\\d;]*$/.test(value)) return;\n const codes = value === '' ? [0] : value.split(';').map(Number);\n for (let index = 0; index < codes.length; index++) {\n const code = codes[index]!;\n if (code === 38 || code === 48) {\n // Extended foreground/background palettes are intentionally unsupported.\n const kind = codes[index + 1];\n index += kind === 5 ? 2 : kind === 2 ? 4 : 0;\n continue;\n }\n if (code === 0) { color = undefined; bold = false; dim = false; underline = false; }\n else if (code === 1) bold = true;\n else if (code === 2) dim = true;\n else if (code === 4) underline = true;\n else if (code === 22) { bold = false; dim = false; }\n else if (code === 24) underline = false;\n else if (code === 39) color = undefined;\n else if (code >= 30 && code <= 37) color = colorNames[code - 30];\n else if (code >= 90 && code <= 97) color = `bright-${colorNames[code - 90]}`;\n }\n }\n\n for (const chunk of tail) {\n for (const character of chunk.text) {\n if (mode === 'escape') {\n if (character === '[') { mode = 'csi'; sequence = ''; }\n else if (character === ']') mode = 'osc';\n else mode = 'text';\n continue;\n }\n if (mode === 'csi') {\n if (character >= '@' && character <= '~') {\n if (character === 'm') { flush(); applySgr(sequence); }\n mode = 'text';\n } else if (sequence.length < 32) sequence += character;\n else mode = 'text';\n continue;\n }\n if (mode === 'osc') {\n if (character === '\\u0007') mode = 'text';\n else if (character === '\\u001b') mode = 'osc-escape';\n continue;\n }\n if (mode === 'osc-escape') {\n mode = character === '\\\\' ? 'text' : 'osc';\n continue;\n }\n if (character === '\\u001b') { mode = 'escape'; continue; }\n if (character === '\\r') continue;\n if (character < ' ' && character !== '\\n' && character !== '\\t') continue;\n if (buffer && bufferStream !== chunk.stream) flush();\n bufferStream = chunk.stream;\n buffer += character;\n }\n }\n flush();\n return { spans, clipped };\n}\n","<script setup lang=\"ts\">\nimport { computed, nextTick, onMounted, ref, watch } from 'vue';\nimport type { QuireKitTerminalOutputProps } from '../../components/terminal-output';\nimport QuireButton from '../button/button.vue';\nimport QuireClipboard from '../clipboard/clipboard.vue';\nimport QuireCodeBlock from '../code-block/code-block.vue';\nimport { parseTerminalOutput } from './parse';\nimport { useQuireKitMessages } from '../locale-provider/context';\n\nconst props = withDefaults(defineProps<QuireKitTerminalOutputProps>(), {\n state: 'running', maxHeight: 360, maxVisibleCharacters: 80_000\n});\nconst viewport = ref<HTMLElement | null>(null);\nconst following = ref(true);\nconst sourceView = ref(false);\nconst raw = computed(() => props.chunks.map(chunk => chunk.text).join(''));\nconst projection = computed(() => parseTerminalOutput(props.chunks, props.maxVisibleCharacters));\nconst sourceText = computed(() => raw.value.replaceAll('\\u001b', '\\\\x1b').replaceAll('\\u0007', '\\\\x07'));\nconst safeHeight = computed(() => `${Number.isFinite(props.maxHeight) ? Math.max(80, props.maxHeight) : 360}px`);\nconst text = useQuireKitMessages('terminalOutput');\nconst label = computed(() => props.label ?? text.value.label);\nconst stateText = computed(() => text.value[props.state]);\n\n/** Keep following only while the reader is at the tail. */\nfunction observeScroll(): void {\n const element = viewport.value;\n if (!element) return;\n following.value = element.scrollHeight - element.scrollTop - element.clientHeight <= 32;\n}\n\n/** Return to the live tail without changing the output or process state. */\nfunction scrollToLatest(): void {\n const element = viewport.value;\n if (!element) return;\n element.scrollTop = element.scrollHeight;\n following.value = true;\n}\n\nwatch(projection, async () => {\n if (!following.value || sourceView.value) return;\n await nextTick();\n scrollToLatest();\n}, { flush: 'post' });\nwatch(sourceView, async value => {\n if (value || !following.value) return;\n await nextTick();\n scrollToLatest();\n});\nonMounted(scrollToLatest);\ndefineExpose({ scrollToLatest });\n</script>\n\n<template>\n <section class=\"qk-terminal-output\" data-qk-not-prose :aria-label=\"label\" :data-state=\"state\">\n <div class=\"qk-terminal-output__toolbar\">\n <span class=\"qk-terminal-output__status\" :data-state=\"state\" aria-live=\"polite\">{{ stateText }}<template v-if=\"exitCode !== undefined\"> · {{ text.exitCode(exitCode) }}</template></span>\n <span class=\"qk-terminal-output__tools\">\n <QuireButton size=\"xs\" variant=\"ghost\" @click=\"sourceView = !sourceView\">{{ sourceView ? text.rendered : text.source }}</QuireButton>\n <QuireClipboard v-if=\"!truncated && raw\" :value=\"raw\" :target=\"text.copyTarget\" mode=\"icon\" size=\"xs\" variant=\"text\" />\n </span>\n </div>\n <div v-if=\"!sourceView\" ref=\"viewport\" class=\"qk-terminal-output__viewport\" :style=\"{ maxHeight: safeHeight }\" tabindex=\"0\" :aria-label=\"text.content(label)\" @scroll.passive=\"observeScroll\">\n <pre class=\"qk-terminal-output__content\" dir=\"ltr\"><span v-if=\"projection.clipped\" class=\"qk-terminal-output__clipped\">… {{ text.clipped }}\n</span><span v-for=\"(span, index) in projection.spans\" :key=\"index\" :data-stream=\"span.stream\" :data-color=\"span.color\" :data-bold=\"span.bold || undefined\" :data-dim=\"span.dim || undefined\" :data-underline=\"span.underline || undefined\">{{ span.text }}</span><span v-if=\"!projection.spans.length\" class=\"qk-terminal-output__empty\">{{ text.empty }}</span></pre>\n </div>\n <QuireCodeBlock v-else :code=\"sourceText\" language=\"text\" :header=\"false\" :copy=\"false\" variant=\"plain\" density=\"compact\" :max-height=\"maxHeight\" :aria-label=\"text.sourceContent(label)\" />\n <div v-if=\"truncated || (!following && !sourceView)\" class=\"qk-terminal-output__foot\">\n <span v-if=\"truncated\" class=\"qk-terminal-output__truncated\">{{ truncated }}</span>\n <QuireButton v-if=\"!following && !sourceView\" size=\"xs\" variant=\"ghost\" class=\"qk-terminal-output__follow\" @click=\"scrollToLatest\">{{ text.follow }}</QuireButton>\n </div>\n </section>\n</template>\n","import { filterQuireEmojis, resolveQuireRecentEmojis } from \"./search\";\nimport type { Messages as QuireKitEmojiPickerMessages } from \"../../locale/components/emoji-picker\";\nimport { quireKitDefaultLocale } from \"../../locale/resolve\";\nimport type { QuireKitEmojiGroup, QuireKitEmojiItem, QuireKitEmojiSection } from \"./types\";\n\nconst commonValues = [\"💡\", \"⭐\", \"📌\", \"🚫\", \"✅\", \"❌\", \"❗\", \"📅\", \"🎉\", \"📣\"];\n\n/**\n * Builds stable continuous sections without confusing shortcuts with catalog ownership.\n * @param items - Host or default catalog.\n * @param groups - Preferred category order.\n * @param messages - EmojiPicker text of the active language for shortcut and fallback labels.\n * @param common - Optional common shortcuts; empty hides them.\n * @param recent - Host-owned recent values.\n * @returns Nonempty sections with each catalog item still available in its category.\n */\nexport function createEmojiSections(items: readonly QuireKitEmojiItem[], groups: readonly QuireKitEmojiGroup[],\n messages: QuireKitEmojiPickerMessages = quireKitDefaultLocale.messages.emojiPicker, common: readonly string[] = commonValues,\n recent: readonly string[] = []): readonly QuireKitEmojiSection[] {\n const catalog = filterQuireEmojis(items, \"\");\n const sections: QuireKitEmojiSection[] = [];\n const shortcuts = [\n { key: \"common\", label: messages.common, icon: \"star\", values: common },\n { key: \"recent\", label: messages.recent, icon: \"history\", values: recent },\n ];\n for (const shortcut of shortcuts) {\n const resolved = resolveQuireRecentEmojis(catalog, shortcut.values);\n if (resolved.length) sections.push({ key: shortcut.key, label: shortcut.label, icon: shortcut.icon, items: resolved });\n }\n const admitted = new Set<string>();\n for (const group of groups) {\n if (admitted.has(group.value)) continue;\n admitted.add(group.value);\n const members = catalog.filter(item => item.group === group.value);\n if (members.length) sections.push({ key: `category:${group.value}`, label: group.label, icon: group.icon, items: members });\n }\n const remaining = catalog.filter(item => !admitted.has(item.group));\n if (remaining.length) sections.push({ key: \"ungrouped\", label: messages.other, icon: \"ellipsis\", items: remaining });\n return sections;\n}\n","import { nextTick, onBeforeUnmount, onMounted, ref, watch, type Ref } from \"vue\";\nimport type { EmojiScrollHandle, EmojiSectionPosition } from \"./types\";\n\n/** @param positions - Measured section headings in order. @param y - Scroll position. @param limit - Maximum scroll. @returns Current visible section, including the final short section. */\nexport function currentEmojiSection(positions: readonly EmojiSectionPosition[], y: number, limit: number): string | undefined {\n if (limit <= 0) return positions[0]?.key;\n if (y >= limit - 1) return positions.at(-1)?.key;\n for (let index = positions.length - 1; index >= 0; index--) {\n if (positions[index]!.top <= y + 1) return positions[index]!.key;\n }\n return positions[0]?.key;\n}\n\n/**\n * Keeps category navigation and one native scrolling viewport in sync.\n * @param area - Public ScrollArea handle.\n * @param content - Owned content element, observed for layout changes.\n * @param keys - Current section identities, empty during search.\n * @returns Active category, section registration, scrolling and layout refresh.\n */\nexport function useEmojiNavigation(area: Ref<EmojiScrollHandle | undefined>, content: Ref<HTMLElement | undefined>, keys: () => readonly string[]) {\n const active = ref<string>();\n const elements = new Map<string, HTMLElement>();\n let positions: EmojiSectionPosition[] = [], limit = 0, frame: number | undefined;\n let observer: ResizeObserver | undefined;\n\n /** @param position - Native scroll coordinates; geometry is already cached. */\n function sync(position: { y: number }): void {\n if (keys().length) active.value = currentEmojiSection(positions, position.y, limit);\n }\n /** Measures only section headings on layout change, never each emoji on a wheel event. */\n function measure(): void {\n const viewport = area.value?.getViewportElement();\n if (!viewport) return;\n const origin = viewport.getBoundingClientRect().top - viewport.scrollTop;\n positions = keys().flatMap(key => {\n const element = elements.get(key);\n return element ? [{ key, top: element.getBoundingClientRect().top - origin }] : [];\n });\n limit = Math.max(0, viewport.scrollHeight - viewport.clientHeight);\n sync({ y: viewport.scrollTop });\n }\n /** Coalesces content and viewport resize notifications into one read phase. */\n function refresh(): void {\n if (frame !== undefined) return;\n frame = requestAnimationFrame(() => { frame = undefined; measure(); });\n }\n /** @param key - Stable section identity. @param element - Owned native section or its unmount null. */\n function register(key: string, element: unknown): void {\n if (element instanceof HTMLElement) elements.set(key, element);\n else elements.delete(key);\n }\n /** @param key - Category requested by the user; this does not select an emoji. */\n function jump(key: string): void {\n measure();\n const target = positions.find(section => section.key === key);\n if (!target) return;\n const top = Math.min(limit, Math.max(0, target.top));\n area.value?.scrollTo({ top, behavior: \"instant\" });\n sync({ y: top });\n }\n onMounted(() => {\n const viewport = area.value?.getViewportElement();\n if (typeof ResizeObserver !== \"undefined\") {\n observer = new ResizeObserver(refresh);\n if (viewport) observer.observe(viewport);\n if (content.value) observer.observe(content.value);\n }\n measure();\n });\n watch(keys, () => { void nextTick(refresh); }, { flush: \"post\" });\n onBeforeUnmount(() => { observer?.disconnect(); if (frame !== undefined) cancelAnimationFrame(frame); });\n return { active, register, sync, jump, refresh };\n}\n","<script setup lang=\"ts\">\nimport { computed, nextTick, ref, watch } from \"vue\";\nimport type { QuireKitEmojiPickerProps, QuireKitEmojiItem } from \"../../components/emoji-picker\";\nimport { createQuireEmojiCatalog, createQuireEmojiGroups, filterQuireEmojis } from \"../../components/emoji-picker\";\nimport { createEmojiSections } from \"../../components/emoji-picker/sections\";\nimport { useEmojiNavigation } from \"./navigation\";\nimport type { EmojiScrollHandle } from \"./types\";\nimport QuireInput from \"../input/input.vue\";\nimport QuireIcon from \"../icon/icon.vue\";\nimport QuireToolbar from \"../toolbar/toolbar.vue\";\nimport QuirePresetGallery from \"../preset-gallery/preset-gallery.vue\";\nimport QuireScrollArea from \"../scroll-area/scroll-area.vue\";\nimport QuireEmptyState from \"../empty-state/empty-state.vue\";\nimport { useQuireKitMessages } from \"../locale-provider/context\";\n\nconst props = withDefaults(defineProps<QuireKitEmojiPickerProps>(), { disabled: false, autofocus: false });\nconst emit = defineEmits<{\n /** User activation, including repeated choices; keyboard navigation does not select. */ select: [item: QuireKitEmojiItem];\n /** Exact Unicode model update. */ \"update:modelValue\": [value: string];\n}>();\nconst area = ref<EmojiScrollHandle>(), content = ref<HTMLElement>(), query = ref(\"\");\nconst text = useQuireKitMessages(\"emojiPicker\");\nconst items = computed(() => filterQuireEmojis(props.items ?? createQuireEmojiCatalog(text.value), \"\"));\nconst groups = computed(() => props.groups ?? createQuireEmojiGroups(text.value));\n// Each gallery owns one flat keyboard grid; category metadata belongs only to the enclosing section.\nconst sections = computed(() => createEmojiSections(items.value, groups.value, text.value, props.common, props.recent)\n .map(section => ({ ...section, items: section.items.map(({ value, label }) => ({ value, label })) })));\nconst searching = computed(() => Boolean(query.value.trim()));\nconst results = computed(() => filterQuireEmojis(items.value, query.value).map(({ value, label }) => ({ value, label })));\nconst title = computed(() => searching.value ? text.value.results : text.value.label);\nconst { active, register, sync, jump, refresh } = useEmojiNavigation(area, content,\n () => searching.value ? [] : sections.value.map(section => section.key));\nconst navigation = computed(() => sections.value.map(section => ({ value: section.key, label: section.label, icon: section.icon,\n kind: \"toggle\" as const, pressed: !searching.value && section.key === (active.value ?? sections.value[0]?.key),\n disabled: props.disabled, attributes: { \"data-emoji-category\": section.key } })));\n\n// Only an explicit search resets the viewport; category jumps run after this DOM update.\nwatch(query, () => { area.value?.scrollTo({ top: 0, behavior: \"instant\" }); refresh(); }, { flush: \"post\" });\n\n/** @param value - Explicit Unicode choice from the public gallery. */\nfunction select(value: string): void {\n const item = items.value.find(item => item.value === value);\n if (!item || props.disabled) return;\n emit(\"update:modelValue\", value); emit(\"select\", item);\n}\n/** @param value - Category identity. @returns Completion after search clears and the shared viewport moves. */\nasync function changeCategory(value: string): Promise<void> {\n if (props.disabled) return;\n query.value = \"\";\n await nextTick();\n jump(value);\n}\n</script>\n<template>\n <section class=\"qk-emoji-picker\" :aria-label=\"label ?? text.label\" @keydown.stop>\n <div class=\"qk-emoji-picker__search\">\n <QuireInput v-model=\"query\" width=\"100%\" :autofocus=\"autofocus\" :disabled=\"disabled\"\n :aria-label=\"text.search\" :placeholder=\"text.search\">\n <template #leading><QuireIcon name=\"search\" /></template>\n </QuireInput>\n </div>\n <QuireScrollArea ref=\"area\" class=\"qk-emoji-picker__results\" scrollbar-visibility=\"always\" @scroll=\"sync\">\n <div ref=\"content\" class=\"qk-emoji-picker__content\">\n <template v-if=\"searching || !sections.length\">\n <p class=\"qk-emoji-picker__heading\" aria-live=\"polite\">{{ title }}</p>\n <QuirePresetGallery :label=\"title\" hide-label presentation=\"icons\" :items=\"results\" :max-columns=\"10\" min-item-width=\"28px\"\n :model-value=\"modelValue ?? null\" :disabled=\"disabled\" @select=\"select\">\n <template #preview=\"{ item }\"><span class=\"qk-emoji-picker__glyph\">{{ item.value }}</span></template>\n <template #empty><QuireEmptyState :title=\"text.empty\" size=\"sm\" /></template>\n </QuirePresetGallery>\n </template>\n <template v-else>\n <section v-for=\"section in sections\" :key=\"section.key\" :ref=\"element => register(section.key, element)\"\n class=\"qk-emoji-picker__section\" :data-emoji-section=\"section.key\">\n <h3 class=\"qk-emoji-picker__heading\">{{ section.label }}</h3>\n <QuirePresetGallery :label=\"section.label\" hide-label presentation=\"icons\" :items=\"section.items\" :max-columns=\"10\" min-item-width=\"28px\"\n :model-value=\"modelValue ?? null\" :disabled=\"disabled\" @select=\"select\">\n <template #preview=\"{ item }\"><span class=\"qk-emoji-picker__glyph\">{{ item.value }}</span></template>\n </QuirePresetGallery>\n </section>\n </template>\n </div>\n </QuireScrollArea>\n <div class=\"qk-emoji-picker__categories\">\n <QuireToolbar class=\"w-full\" :label=\"text.categories\" variant=\"plain\" size=\"sm\" align=\"center\" overflow=\"scroll\" :items=\"navigation\"\n @execute=\"changeCategory($event.value)\" />\n </div>\n </section>\n</template>\n","<script setup lang=\"ts\">\nimport { onBeforeUnmount, onMounted, shallowRef, watch } from 'vue';\nimport { useQuireKitMessages } from '../locale-provider/context';\nimport { createQuireSelectionHandles } from '../../components/selection-handles';\nimport type { QuireKitSelectionHandlesProps, QuireKitSelectionHandleDrag, QuireKitSelectionHandleDragEnd, QuireKitSelectionHandleNudge, QuireSelectionHandlesController } from '../../components/selection-handles';\n\nconst props = withDefaults(defineProps<Omit<QuireKitSelectionHandlesProps, 'messages'>>(), { disabled: false, selecting: false });\nconst text = useQuireKitMessages('selectionHandles');\nconst emit = defineEmits<{\n /** Gesture acquired without moving editor focus. */\n dragStart: [detail: QuireKitSelectionHandleDrag];\n /** The caret has been held long enough to begin selecting from its current position. */\n longPressStart: [detail: QuireKitSelectionHandleDrag];\n /** A held caret was released without extending the selection. */\n longPress: [detail: QuireKitSelectionHandleDrag];\n /** Latest adjusted client point; the host updates selection and feeds geometry back. */\n drag: [detail: QuireKitSelectionHandleDrag];\n /** Completion or cancellation, without implicit host rollback. */\n dragEnd: [detail: QuireKitSelectionHandleDragEnd];\n /** Successful pointer release after the final selection sample. */\n selectionComplete: [detail: QuireKitSelectionHandleDrag];\n /** Physical arrow intent, resolved against the host's document model. */\n nudge: [detail: QuireKitSelectionHandleNudge];\n}>();\nconst host = shallowRef<HTMLElement | null>(null);\nlet controller: QuireSelectionHandlesController | undefined;\nonMounted(() => {\n if (!host.value) return;\n controller = createQuireSelectionHandles({\n ...props, messages: text.value, ownerDocument: host.value.ownerDocument,\n onDragStart: detail => emit('dragStart', detail), onDrag: detail => emit('drag', detail),\n onLongPressStart: detail => emit('longPressStart', detail), onLongPress: detail => emit('longPress', detail),\n onDragEnd: detail => emit('dragEnd', detail), onNudge: detail => emit('nudge', detail),\n onSelectionComplete: detail => emit('selectionComplete', detail)\n });\n host.value.append(controller.element);\n});\nwatch(() => [props.selection, props.disabled, props.selecting, text.value, props.longPressDelay, props.movementThreshold], () => controller?.update({ ...props, messages: text.value }), { deep: true, flush: 'sync' });\nonBeforeUnmount(() => { controller?.destroy(); controller = undefined; });\n/** Cancels the active drag when the host invalidates a document target. */\nfunction cancel(): void { controller?.cancel(); }\ndefineExpose({ cancel });\n</script>\n\n<template>\n <div ref=\"host\" class=\"qk-selection-handles__host\" />\n</template>\n","<script setup lang=\"ts\">\nimport { onBeforeUnmount, onMounted, shallowRef, watch } from 'vue';\nimport { createQuireSelectionGesture } from '../../components/selection-gesture';\nimport type { QuireKitSelectionGestureProps, QuireKitSelectionGestureDetail, QuireKitSelectionGestureCancel, QuireSelectionGestureController } from '../../components/selection-gesture';\n\nconst props = defineProps<QuireKitSelectionGestureProps>();\nconst emit = defineEmits<{\n /** Accepted hold, suitable for projecting the provisional caret. */\n longPressStart: [detail: QuireKitSelectionGestureDetail];\n /** Hold released without dragging; the host may show simple actions. */\n longPress: [detail: QuireKitSelectionGestureDetail];\n /** Drag selection begins from the original hold point. */\n selectionStart: [detail: QuireKitSelectionGestureDetail];\n /** Frame-coalesced client point to hit-test in the host. */\n selectionChange: [detail: QuireKitSelectionGestureDetail];\n /** Successful drag release; the host may show selection actions. */\n selectionComplete: [detail: QuireKitSelectionGestureDetail];\n /** Accepted interaction was cancelled. */\n cancel: [detail: QuireKitSelectionGestureCancel];\n}>();\ndefineSlots<{ default(): unknown }>();\nconst target = shallowRef<HTMLElement | null>(null);\nlet controller: QuireSelectionGestureController | undefined;\nonMounted(() => {\n if (!target.value) return;\n controller = createQuireSelectionGesture({\n ...props, target: target.value,\n onLongPressStart: detail => emit('longPressStart', detail), onLongPress: detail => emit('longPress', detail),\n onSelectionStart: detail => emit('selectionStart', detail), onSelectionChange: detail => emit('selectionChange', detail),\n onSelectionComplete: detail => emit('selectionComplete', detail), onCancel: detail => emit('cancel', detail)\n });\n});\nwatch(() => [props.disabled, props.longPressDelay, props.movementThreshold, props.pointerTypes], () => controller?.update(props), { flush: 'sync', deep: true });\nonBeforeUnmount(() => { controller?.destroy(); controller = undefined; });\n/** Cancels a gesture when the host invalidates document positions or changes input owner. */\nfunction cancel(): void { controller?.cancel(); }\ndefineExpose({ cancel });\n</script>\n\n<template>\n <div ref=\"target\" class=\"qk-selection-gesture\"><slot /></div>\n</template>\n","<script setup lang=\"ts\">\nimport { computed, nextTick, onMounted, ref } from \"vue\";\nimport QuireButton from \"../button/button.vue\";\nimport QuireField from \"../field/field.vue\";\nimport QuireInputNumber from \"../input-number/input-number.vue\";\nimport { tableQuickGridSize, isTableGridCellHighlighted, moveTableGridSelection, normalizeTableSize } from \"../../components/table-size-picker/model\";\nimport type { QuireTableSize, QuireTableSizePickerProps, TableGridKey } from \"../../components/table-size-picker/types\";\n\nconst props = withDefaults(defineProps<QuireTableSizePickerProps>(), { maxDimension: 63 });\nconst emit = defineEmits<{ select: [size: QuireTableSize]; cancel: [] }>();\nconst panel = ref<HTMLElement>();\nconst limit = computed(() => Number.isInteger(props.maxDimension) && props.maxDimension > 0 ? props.maxDimension : 63);\nconst gridRows = computed(() => Math.min(tableQuickGridSize.rowCount, limit.value));\nconst gridColumns = computed(() => Math.min(tableQuickGridSize.columnCount, limit.value));\nconst initial = normalizeTableSize(props.initialSize?.rowCount ?? null, props.initialSize?.columnCount ?? null, limit.value) ?? { rowCount: 2, columnCount: 2 };\nconst active = ref<QuireTableSize>({ rowCount: Math.min(gridRows.value, Math.max(1, initial.rowCount)), columnCount: Math.min(gridColumns.value, Math.max(1, initial.columnCount)) });\nconst custom = ref(false);\nconst keyboard = ref(false);\nconst rows = ref<number | null>(active.value.rowCount);\nconst columns = ref<number | null>(active.value.columnCount);\nconst size = computed(() => normalizeTableSize(rows.value, columns.value, limit.value));\n/** Focuses the one roving tab stop after the panel or mode becomes visible. */\nfunction focusCell(): void {\n panel.value?.querySelector<HTMLButtonElement>(`[data-table-row=\"${active.value.rowCount}\"][data-table-column=\"${active.value.columnCount}\"]`)?.focus({ preventScroll: true });\n}\n/** @param rowCount - One-based row. @param columnCount - One-based column. */\nfunction activate(rowCount: number, columnCount: number): void { active.value = { rowCount, columnCount }; }\n/** @param event - Focus arriving from a keyboard or a pointer-opened menu. @param row - One-based row. @param column - One-based column. */\nfunction focus(event: FocusEvent, row: number, column: number): void {\n activate(row, column);\n const target = event.target as HTMLElement;\n keyboard.value = target.ownerDocument.documentElement.dataset.qkModality !== \"pointer\" && target.matches(\":focus-visible\");\n}\n/** @param value - Complete tuple to emit after validating host bounds. */\nfunction commit(value: QuireTableSize): void {\n if (!props.disabled && normalizeTableSize(value.rowCount, value.columnCount, limit.value)) emit(\"select\", value);\n}\n/** @param event - Keyboard input owned by the roving grid. */\nfunction navigate(event: KeyboardEvent): void {\n keyboard.value = true;\n if ([\"ArrowDown\", \"ArrowLeft\", \"ArrowRight\", \"ArrowUp\", \"End\", \"Home\"].includes(event.key)) {\n event.preventDefault();\n active.value = moveTableGridSelection(active.value, event.key as TableGridKey, event.ctrlKey || event.metaKey);\n active.value = { rowCount: Math.min(gridRows.value, active.value.rowCount), columnCount: Math.min(gridColumns.value, active.value.columnCount) };\n void nextTick(focusCell);\n }\n}\n/** Switches to custom sizing while preserving the highlighted tuple. */\nfunction openCustom(): void {\n rows.value = active.value.rowCount; columns.value = active.value.columnCount; custom.value = true;\n void nextTick(() => panel.value?.querySelector<HTMLInputElement>(\"input\")?.focus());\n}\n/** Returns to the keyboard-addressable quick grid. */\nfunction back(): void { custom.value = false; void nextTick(focusCell); }\nonMounted(() => { void nextTick(focusCell); });\n</script>\n\n<template>\n <section ref=\"panel\" class=\"qk-table-size-picker\" :aria-label=\"labels.title\" @keydown.esc.stop.prevent=\"emit('cancel')\">\n <template v-if=\"!custom\">\n <p class=\"qk-table-size-picker__size\" aria-live=\"polite\">{{ labels.size(active) }}</p>\n <div class=\"qk-table-size-picker__grid\" role=\"grid\" :aria-label=\"labels.size(active)\" :aria-rowcount=\"gridRows\" :aria-colcount=\"gridColumns\" @pointermove=\"keyboard = false\">\n <div v-for=\"row in gridRows\" :key=\"row\" role=\"row\" class=\"qk-table-size-picker__row\" :style=\"{ gridTemplateColumns: `repeat(${gridColumns}, 20px)` }\">\n <button v-for=\"column in gridColumns\" :key=\"column\" type=\"button\" role=\"gridcell\" class=\"qk-table-size-picker__cell\"\n :data-table-row=\"row\" :data-table-column=\"column\" :data-active=\"row === active.rowCount && column === active.columnCount\"\n :data-highlighted=\"isTableGridCellHighlighted({ rowCount: row, columnCount: column }, active) || undefined\"\n :data-focus-visible=\"keyboard && row === active.rowCount && column === active.columnCount || undefined\"\n :aria-label=\"labels.size({ rowCount: row, columnCount: column })\" :aria-selected=\"row === active.rowCount && column === active.columnCount\"\n :tabindex=\"row === active.rowCount && column === active.columnCount ? 0 : -1\" :disabled=\"disabled || row > maxDimension || column > maxDimension\"\n @pointerdown.prevent @pointerenter=\"keyboard = false; activate(row, column)\" @focus=\"focus($event, row, column)\" @keydown=\"navigate\" @click=\"commit({ rowCount: row, columnCount: column })\" />\n </div>\n </div>\n <QuireButton block size=\"sm\" variant=\"ghost\" :disabled=\"disabled\" @click=\"openCustom\">{{ labels.custom }}</QuireButton>\n </template>\n <form v-else class=\"qk-table-size-picker__form\" @submit.prevent=\"size && commit(size)\">\n <p class=\"qk-table-size-picker__size\">{{ size ? labels.size(size) : labels.title }}</p>\n <QuireField v-slot=\"{ controlProps }\" :label=\"labels.rows\" :disabled=\"disabled\" width=\"100%\">\n <QuireInputNumber v-bind=\"controlProps\" :label=\"labels.rows\" :model-value=\"rows === null ? '' : String(rows)\" :min=\"1\" :max=\"limit\" width=\"100%\" size=\"sm\" data-table-custom-rows\n :format-options=\"{ maximumFractionDigits: 0, useGrouping: false }\" @value-change=\"rows = Number.isFinite($event.valueAsNumber) ? $event.valueAsNumber : null\" />\n </QuireField>\n <QuireField v-slot=\"{ controlProps }\" :label=\"labels.columns\" :disabled=\"disabled\" width=\"100%\">\n <QuireInputNumber v-bind=\"controlProps\" :label=\"labels.columns\" :model-value=\"columns === null ? '' : String(columns)\" :min=\"1\" :max=\"limit\" width=\"100%\" size=\"sm\" data-table-custom-columns\n :format-options=\"{ maximumFractionDigits: 0, useGrouping: false }\" @value-change=\"columns = Number.isFinite($event.valueAsNumber) ? $event.valueAsNumber : null\" />\n </QuireField>\n <div class=\"qk-table-size-picker__actions\">\n <QuireButton size=\"sm\" variant=\"ghost\" :disabled=\"disabled\" @click=\"back\">{{ labels.back }}</QuireButton>\n <QuireButton size=\"sm\" type=\"submit\" :disabled=\"disabled || !size\" data-table-custom-submit>{{ labels.submit }}</QuireButton>\n </div>\n </form>\n <p v-if=\"error\" role=\"alert\" class=\"qk-table-size-picker__error\">{{ error }}</p>\n </section>\n</template>\n","import { onBeforeUnmount, reactive, watch, type ShallowRef } from \"vue\";\nimport type { QuireKitMediaPlaybackState } from \"../../components/media-player\";\n\n/** @returns Initial observations before a resource has provided metadata. */\nfunction initial(): QuireKitMediaPlaybackState {\n return { playing: false, pending: false, waiting: false, ended: false, time: 0, duration: 0, volume: 1, muted: false, rate: 1, error: null };\n}\n\n/**\n * Owns exactly one native resource and releases old requests before accepting a replacement.\n * @param element - Currently mounted media element, keyed by source and kind.\n * @returns Native-backed state and explicit playback actions.\n */\nexport function useMediaPlayback(element: ShallowRef<HTMLMediaElement | null>) {\n const state = reactive(initial());\n let generation = 0;\n let release: (() => void) | undefined;\n\n /** Reads native values rather than projecting a successful command optimistically. */\n function sync(): void {\n const media = element.value;\n if (!media) return;\n state.playing = !media.paused && !media.ended;\n state.ended = media.ended;\n state.time = Number.isFinite(media.currentTime) ? media.currentTime : 0;\n state.duration = Number.isFinite(media.duration) ? Math.max(0, media.duration) : 0;\n state.volume = media.volume; state.muted = media.muted; state.rate = media.playbackRate;\n }\n\n watch(element, media => {\n generation++; release?.(); release = undefined; Object.assign(state, initial());\n if (!media) return;\n // Events and pending promises are scoped to this exact resource, never its successor.\n const events = [\"loadedmetadata\", \"durationchange\", \"timeupdate\", \"play\", \"playing\", \"pause\", \"ended\", \"waiting\", \"canplay\", \"volumechange\", \"ratechange\", \"error\"];\n /** @param event - Notification from the current native resource. */\n function observe(event: Event): void {\n if (element.value !== media) return;\n sync();\n if (event.type === \"waiting\") state.waiting = true;\n if ([\"playing\", \"canplay\", \"pause\", \"ended\", \"error\"].includes(event.type)) state.waiting = false;\n if ([\"playing\", \"pause\", \"ended\", \"error\"].includes(event.type)) state.pending = false;\n if (event.type === \"error\") { state.error = \"load\"; state.playing = false; }\n }\n events.forEach(name => media.addEventListener(name, observe));\n release = () => {\n events.forEach(name => media.removeEventListener(name, observe));\n media.pause(); media.removeAttribute(\"src\"); media.load();\n };\n sync();\n }, { immediate: true, flush: \"post\" });\n onBeforeUnmount(() => { generation++; release?.(); release = undefined; });\n\n /** Starts, pauses or cancels playback. @returns Completion of the guarded native request, including failure. */\n async function toggle(): Promise<void> {\n const media = element.value;\n if (!media) return;\n const request = ++generation;\n if (state.pending || !media.paused) { media.pause(); state.pending = false; state.waiting = false; sync(); return; }\n state.error = null; state.pending = true;\n if (media.ended) media.currentTime = 0;\n try { await media.play(); }\n catch (error) {\n if (request !== generation || element.value !== media) return;\n if (!(error instanceof Error) || error.name !== \"AbortError\") state.error = error instanceof Error && error.name === \"NotAllowedError\" ? \"blocked\" : \"load\";\n }\n if (request === generation && element.value === media) { state.pending = false; sync(); }\n }\n /** @param seconds - Requested position, clamped to finite media bounds. */\n function seek(seconds: number): void {\n if (!element.value || !state.duration || !Number.isFinite(seconds)) return;\n element.value.currentTime = Math.max(0, Math.min(state.duration, seconds)); sync();\n }\n /** @param volume - Requested level; adjusting it also restores audible playback. */\n function setVolume(volume: number): void {\n if (!element.value || !Number.isFinite(volume)) return;\n element.value.volume = Math.max(0, Math.min(1, volume)); element.value.muted = false; sync();\n }\n /** Preserves volume when muting; restores a usable volume after a zero-level mute. */\n function toggleMute(): void {\n const media = element.value; if (!media) return;\n if (media.muted || media.volume === 0) { media.muted = false; if (media.volume === 0) media.volume = 1; }\n else media.muted = true;\n sync();\n }\n /** @param rate - User-selected playback speed. */\n function setRate(rate: number): void {\n if (!element.value || !Number.isFinite(rate) || rate < 0.5 || rate > 2) return;\n element.value.playbackRate = rate; sync();\n }\n /** Reloads the current source without autoplay and invalidates its pending play request. */\n function retry(): void {\n generation++; state.error = null; state.pending = false; state.waiting = false;\n element.value?.pause(); element.value?.load(); sync();\n }\n return { state, toggle, seek, setVolume, toggleMute, setRate, retry };\n}\n","import { onBeforeUnmount, onMounted, ref, type ShallowRef } from \"vue\";\n\n/** @param root - Player container including custom controls. @returns Capability, state and explicit fullscreen action. */\nexport function useMediaFullscreen(root: ShallowRef<HTMLElement | undefined>) {\n const available = ref(false), active = ref(false), failed = ref(false);\n let owner: Document | undefined;\n /** Synchronizes native exits, including Escape, without installing global shortcuts. */\n function sync(): void { active.value = !!root.value && owner?.fullscreenElement === root.value; }\n onMounted(() => {\n owner = root.value?.ownerDocument;\n available.value = !!owner?.fullscreenEnabled && typeof root.value?.requestFullscreen === \"function\";\n owner?.addEventListener(\"fullscreenchange\", sync);\n });\n onBeforeUnmount(() => {\n owner?.removeEventListener(\"fullscreenchange\", sync);\n if (owner?.fullscreenElement === root.value) void owner?.exitFullscreen().catch(() => {});\n });\n /** Requests fullscreen on the complete player. @returns Completion with native failures reflected in state. */\n async function toggle(): Promise<void> {\n if (!available.value) return;\n failed.value = false;\n try { if (active.value) await owner?.exitFullscreen(); else await root.value?.requestFullscreen(); }\n catch { failed.value = true; }\n sync();\n }\n return { available, active, failed, toggle };\n}\n","<script setup lang=\"ts\">\nimport { QuireIconButton } from \"../button\";\nimport QuireIcon from \"../icon/icon.vue\";\nimport { QuireTooltipRoot, QuireTooltipTrigger, QuireTooltipContent } from \"../tooltip\";\ndefineOptions({ inheritAttrs: false });\ndefineProps<{\n /** Visible tooltip and accessible action. */ label: string;\n /** Registered media glyph. */ icon: string;\n /** Strong visual role of the primary play action. */ primary?: boolean;\n /** Current toggle state, when meaningful. */ pressed?: boolean;\n}>();\n</script>\n<template>\n <QuireTooltipRoot :trigger-id=\"($attrs.id as string|undefined)\">\n <QuireTooltipTrigger as-child>\n <QuireIconButton v-bind=\"$attrs\" :label=\"label\" :aria-pressed=\"pressed\" :color=\"primary?'primary':'neutral'\" :variant=\"primary?'solid':'ghost'\" size=\"sm\" :shape=\"primary?'circle':'rounded'\"><QuireIcon :name=\"icon\" /></QuireIconButton>\n </QuireTooltipTrigger>\n <QuireTooltipContent :content=\"label\" />\n </QuireTooltipRoot>\n</template>\n","/** @param seconds - Native or draft playback position. @returns Stable, readable time without non-finite values. */\nexport function mediaTime(seconds: number): string {\n const value = Math.floor(Math.max(0, Number.isFinite(seconds) ? seconds : 0));\n const hours = Math.floor(value / 3600), minutes = Math.floor(value / 60) % 60;\n return `${hours ? `${hours}:` : \"\"}${hours ? String(minutes).padStart(2, \"0\") : minutes}:${String(value % 60).padStart(2, \"0\")}`;\n}\n","<script setup lang=\"ts\">\nimport { Slider } from \"@ark-ui/vue/slider\";\nimport { computed, ref, watch } from \"vue\";\nimport { useQuireKitMessages } from \"../locale-provider/context\";\nimport { mediaTime } from \"./time\";\nconst props = defineProps<{\n /** Current native position. */ time: number;\n /** Finite duration, zero when unknown. */ duration: number;\n /** Resource cannot currently be sought. */ disabled?: boolean;\n}>();\nconst emit = defineEmits<{ /** User finished a pointer or keyboard adjustment. */ seek: [seconds: number] }>();\nconst text = useQuireKitMessages(\"mediaPlayer\"), draft = ref<number | null>(null);\nconst current = computed(() => draft.value ?? props.time);\nwatch(() => props.duration, () => { draft.value = null; });\n/** @param values - Ark's committed thumb values; media events cannot move an active draft. */\nfunction commit(values: number[]): void { emit(\"seek\", values[0] ?? 0); draft.value = null; }\n</script>\n<template>\n <div class=\"qk-media-player__timeline\">\n <Slider.Root class=\"qk-media-player__seek\" :model-value=\"[current]\" :min=\"0\" :max=\"duration||1\" :step=\"0.1\" :large-step=\"5\" :disabled=\"disabled||!duration\" :thumb-size=\"{width:8,height:8}\" @update:model-value=\"draft=$event[0]??0\" @value-change-end=\"commit($event.value)\">\n <Slider.Control class=\"qk-slider__control\">\n <Slider.Track class=\"qk-media-player__track\"><Slider.Range class=\"qk-slider__range\" /></Slider.Track>\n <Slider.Thumb :index=\"0\" class=\"qk-media-player__thumb\" :aria-label=\"text.seek\" :aria-valuetext=\"`${mediaTime(current)} / ${mediaTime(duration)}`\"><Slider.HiddenInput /></Slider.Thumb>\n </Slider.Control>\n </Slider.Root>\n <span class=\"qk-media-player__time\" aria-hidden=\"true\">{{mediaTime(current)}}<span> / {{duration?mediaTime(duration):'--:--'}}</span></span>\n </div>\n</template>\n","<script setup lang=\"ts\">\nimport { QuireSelect } from \"../select\";\nimport { QuireSlider } from \"../slider\";\nimport { QuirePopoverRoot, QuirePopoverTrigger, QuirePopoverContent } from \"../popover\";\nimport { QuireIconButton } from \"../button\";\nimport QuireIcon from \"../icon/icon.vue\";\nimport { useQuireKitMessages } from \"../locale-provider/context\";\nimport Action from \"./action.vue\";\nconst props = defineProps<{\n /** Native volume. */ volume: number;\n /** Native mute state. */ muted: boolean;\n /** Native playback speed. */ rate: number;\n}>();\nconst emit = defineEmits<{\n /** Change volume. */ volume: [value: number];\n /** Toggle mute. */ mute: [];\n /** Change speed. */ rate: [value: number];\n}>();\nconst text = useQuireKitMessages(\"mediaPlayer\");\nconst rates = [0.5,0.75,1,1.25,1.5,2].map(value=>({value:String(value),label:`${value}×`}));\n</script>\n<template>\n <div class=\"qk-media-player__options\">\n <QuirePopoverRoot placement=\"top\" :aria-label=\"text.volume\">\n <QuirePopoverTrigger as-child><Action :label=\"text.volume\" :icon=\"muted||!volume?'volumeX':'volume2'\" /></QuirePopoverTrigger>\n <QuirePopoverContent class=\"qk-media-player__volume\">\n <QuireSlider :label=\"text.volume\" :model-value=\"[muted?0:Math.round(volume*100)]\" unit=\"%\" @update:model-value=\"emit('volume',($event?.[0]??0)/100)\" />\n <QuireIconButton :label=\"muted||!volume?text.unmute:text.mute\" :aria-pressed=\"muted||!volume\" @click=\"emit('mute')\"><QuireIcon :name=\"muted||!volume?'volumeX':'volume2'\" /></QuireIconButton>\n </QuirePopoverContent>\n </QuirePopoverRoot>\n <QuireSelect :label=\"text.speed\" :model-value=\"String(props.rate)\" :items=\"rates\" variant=\"text\" width=\"68px\" content-width=\"96px\" placement=\"top-end\" @update:model-value=\"emit('rate',Number($event))\" />\n </div>\n</template>\n","<script setup lang=\"ts\">\nimport { computed, shallowRef, watch } from \"vue\";\nimport type { QuireKitMediaPlayerProps, QuireKitMediaPlaybackState } from \"../../components/media-player\";\nimport { QuireButton } from \"../button\";\nimport QuireIcon from \"../icon/icon.vue\";\nimport { QuireOverlayProvider } from \"../overlay-provider\";\nimport { useQuireKitMessages } from \"../locale-provider/context\";\nimport { useMediaPlayback } from \"./playback\";\nimport { useMediaFullscreen } from \"./fullscreen\";\nimport Action from \"./action.vue\";\nimport Seek from \"./seek.vue\";\nimport Options from \"./options.vue\";\nconst props = withDefaults(defineProps<QuireKitMediaPlayerProps>(), { kind: \"audio\", preload: \"metadata\" });\nconst emit = defineEmits<{\n /** Native state observations, never document edits. */ stateChange: [state: Readonly<QuireKitMediaPlaybackState>];\n}>();\nconst root = shallowRef<HTMLElement>(), media = shallowRef<HTMLMediaElement | null>(null);\nconst player = useMediaPlayback(media), fullscreen = useMediaFullscreen(root), text = useQuireKitMessages(\"mediaPlayer\");\nconst state = player.state;\nconst playLabel = computed(() => state.pending||state.playing?text.value.pause:state.ended?text.value.replay:text.value.play);\nconst playIcon = computed(() => state.pending||state.playing?\"pause\":state.ended?\"rotateCcw\":\"play\");\nwatch(() => ({...state}), value => emit(\"stateChange\",value));\n</script>\n<template>\n <div ref=\"root\" class=\"qk-media-player\" :data-kind=\"kind\" :data-playing=\"state.playing\" :data-error=\"state.error||undefined\" role=\"group\" :aria-label=\"title\" data-qk-not-prose contenteditable=\"false\" @keydown.stop>\n <QuireOverlayProvider :target=\"root\" strategy=\"fixed\">\n <div v-if=\"kind==='video'\" class=\"qk-media-player__header\"><QuireIcon name=\"video\" /><span class=\"qk-media-player__title\" :title=\"title\">{{title}}</span></div>\n <div :class=\"kind==='video'?'qk-media-player__stage':'qk-media-player__audio-source'\">\n <component :is=\"kind\" :key=\"`${kind}:${src}`\" ref=\"media\" :src=\"src\" :preload=\"preload\" :poster=\"kind==='video'?poster:undefined\" playsinline class=\"qk-media-player__media\" :aria-label=\"title\" />\n <button v-if=\"kind==='video'&&!state.error\" type=\"button\" class=\"qk-media-player__picture-action\" :aria-label=\"playLabel\" tabindex=\"-1\" @click=\"player.toggle\"><span v-if=\"!state.playing\" class=\"qk-media-player__picture-icon\"><QuireIcon :name=\"playIcon\" :size=\"24\" /></span></button>\n </div>\n <div class=\"qk-media-player__body\">\n <div v-if=\"kind==='audio'\" class=\"qk-media-player__audio-heading\"><span class=\"qk-media-player__title\" :title=\"title\">{{title}}</span></div>\n <div class=\"qk-media-player__controls\">\n <Action :label=\"playLabel\" :icon=\"playIcon\" :primary=\"kind==='audio'\" @click=\"player.toggle\" />\n <Seek :time=\"state.time\" :duration=\"state.duration\" :disabled=\"state.error==='load'\" @seek=\"player.seek\" />\n <Options :volume=\"state.volume\" :muted=\"state.muted\" :rate=\"state.rate\" @volume=\"player.setVolume\" @mute=\"player.toggleMute\" @rate=\"player.setRate\" />\n <Action v-if=\"kind==='video'&&fullscreen.available.value\" class=\"qk-media-player__fullscreen\" :label=\"fullscreen.active.value?text.exitFullscreen:text.fullscreen\" :icon=\"fullscreen.active.value?'minimize':'maximize'\" @click=\"fullscreen.toggle\" />\n </div>\n <div v-if=\"state.error||state.pending||state.waiting||fullscreen.failed.value\" class=\"qk-media-player__status\" role=\"status\">\n <template v-if=\"state.error\"><QuireIcon name=\"info\" /><span>{{state.error==='blocked'?text.blocked:text.failed}}</span><QuireButton variant=\"outline\" size=\"xs\" @click=\"player.retry\">{{text.retry}}</QuireButton></template>\n <template v-else-if=\"fullscreen.failed.value\">{{text.fullscreenFailed}}</template>\n <template v-else>{{text.loading}}</template>\n </div>\n </div>\n </QuireOverlayProvider>\n </div>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0DA,MAAM,QAAQ;EAUd,MAAM,iBAAiB,SAAiC,SAAC,OAAO;EAChE,MAAM,OAAO;EAGb,MAAM,gBAAgB,eAAe,eAAe,SAAS,MAAM,YAAY;EAC/E,MAAM,oBAAoB,gBAAgB,EACxC,GAAI,eAAe,UAAU,KAAA,IACzB,EAAE,cAAc,MAAM,aAAa,IACnC,EAAE,YAAY,eAAe,MAAM,EACzC,EAAE;;;;;;EAOF,SAAS,YAAY,OAAuB;GAC1C,eAAe,QAAQ;GACvB,KAAK,eAAe,KAAK;EAC3B;;GAIE,OAAA,UAAA,GAAA,YA4DiB,MAAA,SAAA,CAAA,CAAA,MA5DjB,WACU,kBA2DO,OA3DU;IACxB,cAAY,QAAA;IACZ,UAAU,QAAA;IACV,aAAa,QAAA;IACb,aAAa,QAAA;IACb,UAAU,QAAA;IACV,cAAY,QAAA;IACZ,mBAAiB,QAAA;IACjB,OAAK,CAAA,gBAAA,iBAAoC,QAAA,aAAW;IACpD,uBAAoB;;IAGnB,SAAA,cAAqB,EADvB,UAAA,IAAA,GAAA,mBA+CiB,UAAA,MAAA,WA9CA,QAAA,QAAR,SAAI;KADb,OAAA,UAAA,GAAA,YA+CiB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