@ghostvue/mcp 0.0.0-stage → 0.2.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 +22 -0
- package/README.md +97 -2
- package/dist/assets/bundle.json +6 -0
- package/dist/assets/component-exports.json +1 -0
- package/dist/assets/docs/pages.json +1 -0
- package/dist/assets/examples/catalog.json +1 -0
- package/dist/assets/examples/sources/accordion/basic.vue +42 -0
- package/dist/assets/examples/sources/accordion/billing-faq.vue +123 -0
- package/dist/assets/examples/sources/accordion/deployment-faq.vue +169 -0
- package/dist/assets/examples/sources/accordion/navigation.vue +55 -0
- package/dist/assets/examples/sources/accordion/themed.vue +47 -0
- package/dist/assets/examples/sources/avatar/basic.vue +7 -0
- package/dist/assets/examples/sources/avatar/composable.vue +11 -0
- package/dist/assets/examples/sources/avatar/fallback.vue +11 -0
- package/dist/assets/examples/sources/avatar/image.vue +13 -0
- package/dist/assets/examples/sources/avatar/team-roster.vue +190 -0
- package/dist/assets/examples/sources/avatar/themed.vue +20 -0
- package/dist/assets/examples/sources/badge/basic.vue +7 -0
- package/dist/assets/examples/sources/badge/composable.vue +9 -0
- package/dist/assets/examples/sources/badge/icon.vue +18 -0
- package/dist/assets/examples/sources/badge/release-channels.vue +120 -0
- package/dist/assets/examples/sources/badge/table.vue +36 -0
- package/dist/assets/examples/sources/badge/themed.vue +7 -0
- package/dist/assets/examples/sources/breadcrumb/basic.vue +73 -0
- package/dist/assets/examples/sources/breadcrumb/collapsed.vue +37 -0
- package/dist/assets/examples/sources/breadcrumb/workspace-trail.vue +90 -0
- package/dist/assets/examples/sources/button/action-bar.vue +124 -0
- package/dist/assets/examples/sources/button/basic.vue +15 -0
- package/dist/assets/examples/sources/button/composable.vue +24 -0
- package/dist/assets/examples/sources/button/configured.vue +36 -0
- package/dist/assets/examples/sources/button/icon-only.vue +22 -0
- package/dist/assets/examples/sources/button/loading.vue +26 -0
- package/dist/assets/examples/sources/button/marked-parts.vue +56 -0
- package/dist/assets/examples/sources/button/ref.vue +16 -0
- package/dist/assets/examples/sources/button/refresh-status.vue +95 -0
- package/dist/assets/examples/sources/button/themed.vue +30 -0
- package/dist/assets/examples/sources/calendar/availability.vue +235 -0
- package/dist/assets/examples/sources/calendar/basic.vue +238 -0
- package/dist/assets/examples/sources/calendar/controlled.vue +246 -0
- package/dist/assets/examples/sources/calendar/locale.vue +239 -0
- package/dist/assets/examples/sources/calendar/office-locale.vue +197 -0
- package/dist/assets/examples/sources/calendar/range.vue +241 -0
- package/dist/assets/examples/sources/calendar/themed.vue +88 -0
- package/dist/assets/examples/sources/calendar/unselected.vue +229 -0
- package/dist/assets/examples/sources/card/actions.vue +15 -0
- package/dist/assets/examples/sources/card/basic.vue +17 -0
- package/dist/assets/examples/sources/card/composable.vue +12 -0
- package/dist/assets/examples/sources/card/interactive.vue +23 -0
- package/dist/assets/examples/sources/card/link.vue +19 -0
- package/dist/assets/examples/sources/card/project-summary.vue +168 -0
- package/dist/assets/examples/sources/card/themed.vue +48 -0
- package/dist/assets/examples/sources/checkbox/basic.vue +22 -0
- package/dist/assets/examples/sources/checkbox/composable.vue +28 -0
- package/dist/assets/examples/sources/checkbox/indeterminate.vue +52 -0
- package/dist/assets/examples/sources/checkbox/notification-preferences.vue +360 -0
- package/dist/assets/examples/sources/checkbox/ref.vue +35 -0
- package/dist/assets/examples/sources/checkbox/themed.vue +111 -0
- package/dist/assets/examples/sources/checkbox-group/basic.vue +56 -0
- package/dist/assets/examples/sources/checkbox-group/field.vue +73 -0
- package/dist/assets/examples/sources/checkbox-group/form.vue +100 -0
- package/dist/assets/examples/sources/checkbox-group/headless.vue +68 -0
- package/dist/assets/examples/sources/checkbox-group/notification-preferences.vue +380 -0
- package/dist/assets/examples/sources/collapsible/basic.vue +18 -0
- package/dist/assets/examples/sources/collapsible/release-notes.vue +136 -0
- package/dist/assets/examples/sources/collapsible/shipment-history.vue +135 -0
- package/dist/assets/examples/sources/collapsible/themed.vue +34 -0
- package/dist/assets/examples/sources/combobox/assignee-search.vue +544 -0
- package/dist/assets/examples/sources/combobox/async.vue +161 -0
- package/dist/assets/examples/sources/combobox/basic.vue +130 -0
- package/dist/assets/examples/sources/combobox/field.vue +137 -0
- package/dist/assets/examples/sources/combobox/form.vue +127 -0
- package/dist/assets/examples/sources/combobox/multi.vue +130 -0
- package/dist/assets/examples/sources/combobox/review-request-form.vue +415 -0
- package/dist/assets/examples/sources/combobox/themed.vue +34 -0
- package/dist/assets/examples/sources/command-palette/async.vue +152 -0
- package/dist/assets/examples/sources/command-palette/basic.vue +229 -0
- package/dist/assets/examples/sources/command-palette/shortcut.vue +214 -0
- package/dist/assets/examples/sources/command-palette/themed.vue +192 -0
- package/dist/assets/examples/sources/command-palette/virtualized.vue +196 -0
- package/dist/assets/examples/sources/context-menu/basic.vue +231 -0
- package/dist/assets/examples/sources/context-menu/themed.vue +299 -0
- package/dist/assets/examples/sources/data-table/basic-invoices.vue +52 -0
- package/dist/assets/examples/sources/data-table/full-invoices.vue +178 -0
- package/dist/assets/examples/sources/data-table/paginated-invoices.vue +172 -0
- package/dist/assets/examples/sources/data-table/preset-invoices.vue +90 -0
- package/dist/assets/examples/sources/data-table/server-invoices-router.vue +504 -0
- package/dist/assets/examples/sources/data-table/themed-invoices.vue +298 -0
- package/dist/assets/examples/sources/date-picker/basic.vue +330 -0
- package/dist/assets/examples/sources/date-picker/controlled.vue +61 -0
- package/dist/assets/examples/sources/date-picker/custom-format.vue +78 -0
- package/dist/assets/examples/sources/date-picker/nested-dialog.vue +63 -0
- package/dist/assets/examples/sources/date-picker/range.vue +345 -0
- package/dist/assets/examples/sources/date-picker/rtl.vue +46 -0
- package/dist/assets/examples/sources/date-picker/themed.vue +70 -0
- package/dist/assets/examples/sources/date-picker/validation.vue +118 -0
- package/dist/assets/examples/sources/dialog/alert.vue +74 -0
- package/dist/assets/examples/sources/dialog/basic.vue +25 -0
- package/dist/assets/examples/sources/dialog/edit-profile.vue +347 -0
- package/dist/assets/examples/sources/dialog/nested.vue +98 -0
- package/dist/assets/examples/sources/dialog/themed.vue +98 -0
- package/dist/assets/examples/sources/drawer/basic.vue +25 -0
- package/dist/assets/examples/sources/drawer/nested.vue +71 -0
- package/dist/assets/examples/sources/drawer/non-modal.vue +44 -0
- package/dist/assets/examples/sources/drawer/sides.vue +61 -0
- package/dist/assets/examples/sources/drawer/themed.vue +162 -0
- package/dist/assets/examples/sources/dropdown-menu/basic.vue +205 -0
- package/dist/assets/examples/sources/dropdown-menu/nested-export.vue +56 -0
- package/dist/assets/examples/sources/dropdown-menu/record-actions.vue +506 -0
- package/dist/assets/examples/sources/dropdown-menu/themed.vue +161 -0
- package/dist/assets/examples/sources/empty-state/basic.vue +12 -0
- package/dist/assets/examples/sources/empty-state/composable.vue +18 -0
- package/dist/assets/examples/sources/empty-state/filtered.vue +16 -0
- package/dist/assets/examples/sources/empty-state/search-results.vue +149 -0
- package/dist/assets/examples/sources/empty-state/table-cell.vue +29 -0
- package/dist/assets/examples/sources/empty-state/themed.vue +33 -0
- package/dist/assets/examples/sources/field/basic.vue +25 -0
- package/dist/assets/examples/sources/field/billing-address-headless.vue +93 -0
- package/dist/assets/examples/sources/field/billing-address.vue +192 -0
- package/dist/assets/examples/sources/field/checkbox.vue +31 -0
- package/dist/assets/examples/sources/field/invalid.vue +27 -0
- package/dist/assets/examples/sources/field/profile-settings.vue +227 -0
- package/dist/assets/examples/sources/field/textarea.vue +25 -0
- package/dist/assets/examples/sources/field/themed.vue +28 -0
- package/dist/assets/examples/sources/file-upload/asset-submission.vue +261 -0
- package/dist/assets/examples/sources/file-upload/basic.vue +30 -0
- package/dist/assets/examples/sources/file-upload/button-only.vue +33 -0
- package/dist/assets/examples/sources/file-upload/controlled.vue +49 -0
- package/dist/assets/examples/sources/file-upload/duplicates.vue +46 -0
- package/dist/assets/examples/sources/file-upload/field.vue +67 -0
- package/dist/assets/examples/sources/file-upload/form.vue +60 -0
- package/dist/assets/examples/sources/file-upload/themed.vue +50 -0
- package/dist/assets/examples/sources/file-upload/validation.vue +47 -0
- package/dist/assets/examples/sources/form/async-validation.vue +180 -0
- package/dist/assets/examples/sources/form/composable.vue +146 -0
- package/dist/assets/examples/sources/form/nested-webhooks.vue +233 -0
- package/dist/assets/examples/sources/form/profile-schema.vue +376 -0
- package/dist/assets/examples/sources/hover-card/basic.vue +121 -0
- package/dist/assets/examples/sources/hover-card/themed.vue +152 -0
- package/dist/assets/examples/sources/inline-alert/basic.vue +10 -0
- package/dist/assets/examples/sources/inline-alert/billing-notices.vue +162 -0
- package/dist/assets/examples/sources/inline-alert/composable.vue +19 -0
- package/dist/assets/examples/sources/inline-alert/feed-status.vue +229 -0
- package/dist/assets/examples/sources/inline-alert/live.vue +25 -0
- package/dist/assets/examples/sources/inline-alert/table-error.vue +21 -0
- package/dist/assets/examples/sources/inline-alert/themed.vue +13 -0
- package/dist/assets/examples/sources/input/account-details.vue +229 -0
- package/dist/assets/examples/sources/input/basic.vue +10 -0
- package/dist/assets/examples/sources/input/clearable-search-headless.vue +162 -0
- package/dist/assets/examples/sources/input/clearable-search.vue +225 -0
- package/dist/assets/examples/sources/input/composable.vue +12 -0
- package/dist/assets/examples/sources/input/ref.vue +34 -0
- package/dist/assets/examples/sources/input/search.vue +101 -0
- package/dist/assets/examples/sources/input/states.vue +96 -0
- package/dist/assets/examples/sources/input/themed.vue +55 -0
- package/dist/assets/examples/sources/input/unit-suffix.vue +109 -0
- package/dist/assets/examples/sources/interactive-surface/basic.vue +52 -0
- package/dist/assets/examples/sources/interactive-surface/button.vue +7 -0
- package/dist/assets/examples/sources/interactive-surface/composable.vue +34 -0
- package/dist/assets/examples/sources/interactive-surface/feature-tiles.vue +111 -0
- package/dist/assets/examples/sources/kbd/basic.vue +5 -0
- package/dist/assets/examples/sources/kbd/combination.vue +8 -0
- package/dist/assets/examples/sources/kbd/command-shortcuts.vue +97 -0
- package/dist/assets/examples/sources/kbd/composable.vue +17 -0
- package/dist/assets/examples/sources/kbd/platform.vue +14 -0
- package/dist/assets/examples/sources/kbd/themed.vue +25 -0
- package/dist/assets/examples/sources/link/basic.vue +7 -0
- package/dist/assets/examples/sources/link/button.vue +62 -0
- package/dist/assets/examples/sources/link/composable.vue +15 -0
- package/dist/assets/examples/sources/link/disabled.vue +9 -0
- package/dist/assets/examples/sources/link/documentation-footer.vue +103 -0
- package/dist/assets/examples/sources/link/external.vue +12 -0
- package/dist/assets/examples/sources/link/router.vue +26 -0
- package/dist/assets/examples/sources/link/themed.vue +21 -0
- package/dist/assets/examples/sources/menubar/basic.vue +208 -0
- package/dist/assets/examples/sources/menubar/themed.vue +231 -0
- package/dist/assets/examples/sources/number-input/basic.vue +20 -0
- package/dist/assets/examples/sources/number-input/bounds.vue +18 -0
- package/dist/assets/examples/sources/number-input/field.vue +34 -0
- package/dist/assets/examples/sources/number-input/form-locale.vue +29 -0
- package/dist/assets/examples/sources/number-input/order-limits.vue +226 -0
- package/dist/assets/examples/sources/number-input/ref.vue +26 -0
- package/dist/assets/examples/sources/number-input/themed.vue +26 -0
- package/dist/assets/examples/sources/number-input/workshop-booking.vue +207 -0
- package/dist/assets/examples/sources/pagination/basic.vue +54 -0
- package/dist/assets/examples/sources/pagination/controlled.vue +96 -0
- package/dist/assets/examples/sources/pagination/ellipsis.vue +59 -0
- package/dist/assets/examples/sources/pagination/themed.vue +192 -0
- package/dist/assets/examples/sources/popover/basic.vue +54 -0
- package/dist/assets/examples/sources/popover/controlled.vue +79 -0
- package/dist/assets/examples/sources/popover/share-settings.vue +457 -0
- package/dist/assets/examples/sources/popover/themed.vue +50 -0
- package/dist/assets/examples/sources/presence/basic.vue +81 -0
- package/dist/assets/examples/sources/presence/portal.vue +92 -0
- package/dist/assets/examples/sources/progress/basic.vue +25 -0
- package/dist/assets/examples/sources/progress/composable.vue +30 -0
- package/dist/assets/examples/sources/progress/indeterminate.vue +26 -0
- package/dist/assets/examples/sources/progress/report-export.vue +160 -0
- package/dist/assets/examples/sources/progress/themed.vue +30 -0
- package/dist/assets/examples/sources/progress/upload-queue.vue +173 -0
- package/dist/assets/examples/sources/progress/value-text.vue +29 -0
- package/dist/assets/examples/sources/radio-group/basic.vue +33 -0
- package/dist/assets/examples/sources/radio-group/deployment-tier.vue +258 -0
- package/dist/assets/examples/sources/radio-group/field.vue +49 -0
- package/dist/assets/examples/sources/radio-group/form.vue +45 -0
- package/dist/assets/examples/sources/radio-group/themed.vue +35 -0
- package/dist/assets/examples/sources/scroll-area/activity-feed.vue +182 -0
- package/dist/assets/examples/sources/scroll-area/basic.vue +24 -0
- package/dist/assets/examples/sources/scroll-area/composable.vue +24 -0
- package/dist/assets/examples/sources/scroll-area/horizontal.vue +180 -0
- package/dist/assets/examples/sources/scroll-area/themed.vue +77 -0
- package/dist/assets/examples/sources/scroll-spy/basic.vue +101 -0
- package/dist/assets/examples/sources/scroll-spy/composable.vue +63 -0
- package/dist/assets/examples/sources/scroll-spy/themed.vue +208 -0
- package/dist/assets/examples/sources/segmented-control/analytics-period.vue +187 -0
- package/dist/assets/examples/sources/segmented-control/basic.vue +50 -0
- package/dist/assets/examples/sources/segmented-control/themed.vue +14 -0
- package/dist/assets/examples/sources/select/alert-routing-form.vue +356 -0
- package/dist/assets/examples/sources/select/basic.vue +173 -0
- package/dist/assets/examples/sources/select/billing-preferences.vue +386 -0
- package/dist/assets/examples/sources/select/field.vue +173 -0
- package/dist/assets/examples/sources/select/form.vue +166 -0
- package/dist/assets/examples/sources/select/multiple-form.vue +201 -0
- package/dist/assets/examples/sources/select/multiple-labels.vue +142 -0
- package/dist/assets/examples/sources/select/themed.vue +74 -0
- package/dist/assets/examples/sources/separator/basic.vue +11 -0
- package/dist/assets/examples/sources/separator/composable.vue +13 -0
- package/dist/assets/examples/sources/separator/decorative.vue +11 -0
- package/dist/assets/examples/sources/separator/list.vue +12 -0
- package/dist/assets/examples/sources/separator/release-header.vue +116 -0
- package/dist/assets/examples/sources/separator/themed.vue +21 -0
- package/dist/assets/examples/sources/separator/vertical.vue +25 -0
- package/dist/assets/examples/sources/skeleton/basic.vue +9 -0
- package/dist/assets/examples/sources/skeleton/composable.vue +12 -0
- package/dist/assets/examples/sources/skeleton/profile-loading.vue +185 -0
- package/dist/assets/examples/sources/skeleton/table.vue +27 -0
- package/dist/assets/examples/sources/skeleton/themed.vue +25 -0
- package/dist/assets/examples/sources/slider/audio-mixer.vue +199 -0
- package/dist/assets/examples/sources/slider/basic.vue +51 -0
- package/dist/assets/examples/sources/slider/price-filter.vue +162 -0
- package/dist/assets/examples/sources/slider/range.vue +52 -0
- package/dist/assets/examples/sources/slider/value-text.vue +50 -0
- package/dist/assets/examples/sources/slider/vertical.vue +22 -0
- package/dist/assets/examples/sources/spinner/basic.vue +37 -0
- package/dist/assets/examples/sources/spinner/composable.vue +41 -0
- package/dist/assets/examples/sources/spinner/sync-status.vue +108 -0
- package/dist/assets/examples/sources/spinner/table-refresh.vue +24 -0
- package/dist/assets/examples/sources/spinner/themed.vue +21 -0
- package/dist/assets/examples/sources/switch/basic.vue +55 -0
- package/dist/assets/examples/sources/switch/composable.vue +61 -0
- package/dist/assets/examples/sources/switch/form.vue +56 -0
- package/dist/assets/examples/sources/switch/ref.vue +64 -0
- package/dist/assets/examples/sources/switch/states.vue +23 -0
- package/dist/assets/examples/sources/switch/themed.vue +21 -0
- package/dist/assets/examples/sources/switch/workspace-security.vue +221 -0
- package/dist/assets/examples/sources/table/basic.vue +36 -0
- package/dist/assets/examples/sources/table/composable.vue +39 -0
- package/dist/assets/examples/sources/table/contain-horizontal.vue +85 -0
- package/dist/assets/examples/sources/table/row-headers.vue +130 -0
- package/dist/assets/examples/sources/table/team-directory.vue +445 -0
- package/dist/assets/examples/sources/table/themed.vue +70 -0
- package/dist/assets/examples/sources/tabs/basic.vue +41 -0
- package/dist/assets/examples/sources/tabs/manual.vue +37 -0
- package/dist/assets/examples/sources/tabs/review-sections.vue +43 -0
- package/dist/assets/examples/sources/tabs/themed.vue +45 -0
- package/dist/assets/examples/sources/tabs/vertical.vue +51 -0
- package/dist/assets/examples/sources/tabs/workspace.vue +517 -0
- package/dist/assets/examples/sources/tags-input/headless-field.vue +31 -0
- package/dist/assets/examples/sources/tags-input/project-labels.vue +64 -0
- package/dist/assets/examples/sources/tags-input/read-only.vue +12 -0
- package/dist/assets/examples/sources/textarea/auto-resize.vue +20 -0
- package/dist/assets/examples/sources/textarea/basic.vue +14 -0
- package/dist/assets/examples/sources/textarea/composable.vue +12 -0
- package/dist/assets/examples/sources/textarea/form.vue +23 -0
- package/dist/assets/examples/sources/textarea/ref.vue +25 -0
- package/dist/assets/examples/sources/textarea/release-notes.vue +191 -0
- package/dist/assets/examples/sources/textarea/states.vue +32 -0
- package/dist/assets/examples/sources/textarea/themed.vue +19 -0
- package/dist/assets/examples/sources/toast/basic.vue +54 -0
- package/dist/assets/examples/sources/toast/persist-error.vue +94 -0
- package/dist/assets/examples/sources/toast/queue-overflow.vue +90 -0
- package/dist/assets/examples/sources/toast/themed.vue +101 -0
- package/dist/assets/examples/sources/toggle-group/basic.vue +15 -0
- package/dist/assets/examples/sources/toggle-group/editor-toolbar.vue +126 -0
- package/dist/assets/examples/sources/toggle-group/multiple.vue +19 -0
- package/dist/assets/examples/sources/toggle-group/themed.vue +11 -0
- package/dist/assets/examples/sources/toolbar/basic.vue +11 -0
- package/dist/assets/examples/sources/toolbar/composable.vue +21 -0
- package/dist/assets/examples/sources/toolbar/editor-actions.vue +115 -0
- package/dist/assets/examples/sources/toolbar/separators.vue +32 -0
- package/dist/assets/examples/sources/toolbar/themed.vue +37 -0
- package/dist/assets/examples/sources/toolbar/vertical.vue +11 -0
- package/dist/assets/examples/sources/tooltip/basic.vue +47 -0
- package/dist/assets/examples/sources/tooltip/themed.vue +167 -0
- package/dist/assets/examples/sources/tooltip-provider/skip-delay.vue +69 -0
- package/dist/assets/examples/sources/tree/basic.vue +77 -0
- package/dist/assets/examples/sources/tree/multi-select.vue +88 -0
- package/dist/assets/examples/sources/tree/rtl.vue +34 -0
- package/dist/assets/examples/sources/tree/split-trigger.vue +47 -0
- package/dist/assets/examples/sources/tree/themed.vue +183 -0
- package/dist/assets/examples/sources/visually-hidden/action-bar.vue +100 -0
- package/dist/assets/examples/sources/visually-hidden/basic.vue +17 -0
- package/dist/assets/examples/sources/visually-hidden/composable.vue +19 -0
- package/dist/assets/examples/sources/visually-hidden/icon-name.vue +28 -0
- package/dist/assets/examples/sources/visually-hidden/live-region.vue +18 -0
- package/dist/assets/examples/sources/visually-hidden/skip-link.vue +12 -0
- package/dist/assets/examples/sources/visually-hidden/table-header.vue +27 -0
- package/dist/assets/manifest.schema.json +742 -0
- package/dist/assets/manifests/themes/ghost-accordion.manifest.json +53 -0
- package/dist/assets/manifests/themes/ghost-avatar.manifest.json +131 -0
- package/dist/assets/manifests/themes/ghost-badge.manifest.json +180 -0
- package/dist/assets/manifests/themes/ghost-breadcrumb.manifest.json +53 -0
- package/dist/assets/manifests/themes/ghost-button.manifest.json +397 -0
- package/dist/assets/manifests/themes/ghost-calendar.manifest.json +52 -0
- package/dist/assets/manifests/themes/ghost-card.manifest.json +104 -0
- package/dist/assets/manifests/themes/ghost-checkbox-group.manifest.json +90 -0
- package/dist/assets/manifests/themes/ghost-checkbox.manifest.json +241 -0
- package/dist/assets/manifests/themes/ghost-collapsible.manifest.json +114 -0
- package/dist/assets/manifests/themes/ghost-combobox.manifest.json +81 -0
- package/dist/assets/manifests/themes/ghost-command-palette.manifest.json +81 -0
- package/dist/assets/manifests/themes/ghost-context-menu.manifest.json +50 -0
- package/dist/assets/manifests/themes/ghost-data-table-preset.manifest.json +58 -0
- package/dist/assets/manifests/themes/ghost-data-table-table.manifest.json +30 -0
- package/dist/assets/manifests/themes/ghost-data-table.manifest.json +64 -0
- package/dist/assets/manifests/themes/ghost-date-picker.manifest.json +69 -0
- package/dist/assets/manifests/themes/ghost-dialog.manifest.json +184 -0
- package/dist/assets/manifests/themes/ghost-drawer.manifest.json +224 -0
- package/dist/assets/manifests/themes/ghost-dropdown-menu.manifest.json +140 -0
- package/dist/assets/manifests/themes/ghost-empty-state.manifest.json +96 -0
- package/dist/assets/manifests/themes/ghost-field.manifest.json +107 -0
- package/dist/assets/manifests/themes/ghost-file-upload.manifest.json +289 -0
- package/dist/assets/manifests/themes/ghost-hover-card.manifest.json +33 -0
- package/dist/assets/manifests/themes/ghost-inline-alert.manifest.json +71 -0
- package/dist/assets/manifests/themes/ghost-input.manifest.json +240 -0
- package/dist/assets/manifests/themes/ghost-interactive-surface.manifest.json +110 -0
- package/dist/assets/manifests/themes/ghost-kbd.manifest.json +148 -0
- package/dist/assets/manifests/themes/ghost-link.manifest.json +197 -0
- package/dist/assets/manifests/themes/ghost-menubar.manifest.json +51 -0
- package/dist/assets/manifests/themes/ghost-number-input.manifest.json +208 -0
- package/dist/assets/manifests/themes/ghost-pagination.manifest.json +80 -0
- package/dist/assets/manifests/themes/ghost-popover.manifest.json +147 -0
- package/dist/assets/manifests/themes/ghost-progress.manifest.json +141 -0
- package/dist/assets/manifests/themes/ghost-radio-group-item.manifest.json +63 -0
- package/dist/assets/manifests/themes/ghost-radio-group.manifest.json +60 -0
- package/dist/assets/manifests/themes/ghost-scroll-area.manifest.json +76 -0
- package/dist/assets/manifests/themes/ghost-scroll-spy.manifest.json +44 -0
- package/dist/assets/manifests/themes/ghost-segmented-control-item.manifest.json +64 -0
- package/dist/assets/manifests/themes/ghost-segmented-control.manifest.json +71 -0
- package/dist/assets/manifests/themes/ghost-select.manifest.json +69 -0
- package/dist/assets/manifests/themes/ghost-separator.manifest.json +66 -0
- package/dist/assets/manifests/themes/ghost-skeleton.manifest.json +98 -0
- package/dist/assets/manifests/themes/ghost-slider.manifest.json +120 -0
- package/dist/assets/manifests/themes/ghost-spinner.manifest.json +104 -0
- package/dist/assets/manifests/themes/ghost-switch.manifest.json +288 -0
- package/dist/assets/manifests/themes/ghost-table.manifest.json +61 -0
- package/dist/assets/manifests/themes/ghost-tabs.manifest.json +51 -0
- package/dist/assets/manifests/themes/ghost-tags-input.manifest.json +255 -0
- package/dist/assets/manifests/themes/ghost-textarea.manifest.json +238 -0
- package/dist/assets/manifests/themes/ghost-toast.manifest.json +121 -0
- package/dist/assets/manifests/themes/ghost-toggle-group-item.manifest.json +65 -0
- package/dist/assets/manifests/themes/ghost-toggle-group.manifest.json +67 -0
- package/dist/assets/manifests/themes/ghost-toolbar.manifest.json +111 -0
- package/dist/assets/manifests/themes/ghost-tooltip.manifest.json +113 -0
- package/dist/assets/manifests/themes/ghost-tree.manifest.json +295 -0
- package/dist/assets/manifests/vue/ghost-accordion-content.manifest.json +67 -0
- package/dist/assets/manifests/vue/ghost-accordion-item.manifest.json +47 -0
- package/dist/assets/manifests/vue/ghost-accordion-trigger.manifest.json +59 -0
- package/dist/assets/manifests/vue/ghost-accordion.manifest.json +171 -0
- package/dist/assets/manifests/vue/ghost-avatar.manifest.json +102 -0
- package/dist/assets/manifests/vue/ghost-badge.manifest.json +53 -0
- package/dist/assets/manifests/vue/ghost-breadcrumb-ellipsis.manifest.json +80 -0
- package/dist/assets/manifests/vue/ghost-breadcrumb-item.manifest.json +57 -0
- package/dist/assets/manifests/vue/ghost-breadcrumb-link.manifest.json +71 -0
- package/dist/assets/manifests/vue/ghost-breadcrumb-list.manifest.json +69 -0
- package/dist/assets/manifests/vue/ghost-breadcrumb-page.manifest.json +59 -0
- package/dist/assets/manifests/vue/ghost-breadcrumb-separator.manifest.json +59 -0
- package/dist/assets/manifests/vue/ghost-breadcrumb.manifest.json +82 -0
- package/dist/assets/manifests/vue/ghost-button.manifest.json +109 -0
- package/dist/assets/manifests/vue/ghost-calendar-cell.manifest.json +107 -0
- package/dist/assets/manifests/vue/ghost-calendar-grid.manifest.json +105 -0
- package/dist/assets/manifests/vue/ghost-calendar-header.manifest.json +59 -0
- package/dist/assets/manifests/vue/ghost-calendar-heading.manifest.json +70 -0
- package/dist/assets/manifests/vue/ghost-calendar-next-button.manifest.json +59 -0
- package/dist/assets/manifests/vue/ghost-calendar-prev-button.manifest.json +59 -0
- package/dist/assets/manifests/vue/ghost-calendar.manifest.json +173 -0
- package/dist/assets/manifests/vue/ghost-card.manifest.json +107 -0
- package/dist/assets/manifests/vue/ghost-checkbox-group.manifest.json +173 -0
- package/dist/assets/manifests/vue/ghost-checkbox.manifest.json +134 -0
- package/dist/assets/manifests/vue/ghost-collapsible-content.manifest.json +81 -0
- package/dist/assets/manifests/vue/ghost-collapsible-trigger.manifest.json +81 -0
- package/dist/assets/manifests/vue/ghost-collapsible.manifest.json +99 -0
- package/dist/assets/manifests/vue/ghost-combobox-content.manifest.json +114 -0
- package/dist/assets/manifests/vue/ghost-combobox-empty.manifest.json +40 -0
- package/dist/assets/manifests/vue/ghost-combobox-group.manifest.json +40 -0
- package/dist/assets/manifests/vue/ghost-combobox-input.manifest.json +61 -0
- package/dist/assets/manifests/vue/ghost-combobox-label.manifest.json +40 -0
- package/dist/assets/manifests/vue/ghost-combobox-option.manifest.json +80 -0
- package/dist/assets/manifests/vue/ghost-combobox-trigger.manifest.json +67 -0
- package/dist/assets/manifests/vue/ghost-combobox.manifest.json +323 -0
- package/dist/assets/manifests/vue/ghost-command-palette-content.manifest.json +142 -0
- package/dist/assets/manifests/vue/ghost-command-palette-empty.manifest.json +69 -0
- package/dist/assets/manifests/vue/ghost-command-palette-group.manifest.json +71 -0
- package/dist/assets/manifests/vue/ghost-command-palette-input.manifest.json +88 -0
- package/dist/assets/manifests/vue/ghost-command-palette-item.manifest.json +102 -0
- package/dist/assets/manifests/vue/ghost-command-palette-label.manifest.json +69 -0
- package/dist/assets/manifests/vue/ghost-command-palette-list.manifest.json +72 -0
- package/dist/assets/manifests/vue/ghost-command-palette-overlay.manifest.json +96 -0
- package/dist/assets/manifests/vue/ghost-command-palette-separator.manifest.json +63 -0
- package/dist/assets/manifests/vue/ghost-command-palette-title.manifest.json +69 -0
- package/dist/assets/manifests/vue/ghost-command-palette-trigger.manifest.json +89 -0
- package/dist/assets/manifests/vue/ghost-command-palette.manifest.json +358 -0
- package/dist/assets/manifests/vue/ghost-context-menu-checkbox-item.manifest.json +110 -0
- package/dist/assets/manifests/vue/ghost-context-menu-content.manifest.json +114 -0
- package/dist/assets/manifests/vue/ghost-context-menu-group.manifest.json +40 -0
- package/dist/assets/manifests/vue/ghost-context-menu-item.manifest.json +85 -0
- package/dist/assets/manifests/vue/ghost-context-menu-label.manifest.json +40 -0
- package/dist/assets/manifests/vue/ghost-context-menu-radio-group.manifest.json +69 -0
- package/dist/assets/manifests/vue/ghost-context-menu-radio-item.manifest.json +97 -0
- package/dist/assets/manifests/vue/ghost-context-menu-separator.manifest.json +42 -0
- package/dist/assets/manifests/vue/ghost-context-menu-trigger.manifest.json +75 -0
- package/dist/assets/manifests/vue/ghost-context-menu.manifest.json +73 -0
- package/dist/assets/manifests/vue/ghost-data-table-preset.manifest.json +171 -0
- package/dist/assets/manifests/vue/ghost-data-table-table.manifest.json +56 -0
- package/dist/assets/manifests/vue/ghost-data-table.manifest.json +384 -0
- package/dist/assets/manifests/vue/ghost-date-picker-calendar.manifest.json +38 -0
- package/dist/assets/manifests/vue/ghost-date-picker-content.manifest.json +140 -0
- package/dist/assets/manifests/vue/ghost-date-picker-input.manifest.json +85 -0
- package/dist/assets/manifests/vue/ghost-date-picker-trigger.manifest.json +59 -0
- package/dist/assets/manifests/vue/ghost-date-picker.manifest.json +347 -0
- package/dist/assets/manifests/vue/ghost-dialog-close.manifest.json +80 -0
- package/dist/assets/manifests/vue/ghost-dialog-content.manifest.json +145 -0
- package/dist/assets/manifests/vue/ghost-dialog-description.manifest.json +69 -0
- package/dist/assets/manifests/vue/ghost-dialog-overlay.manifest.json +94 -0
- package/dist/assets/manifests/vue/ghost-dialog-title.manifest.json +69 -0
- package/dist/assets/manifests/vue/ghost-dialog-trigger.manifest.json +93 -0
- package/dist/assets/manifests/vue/ghost-dialog.manifest.json +125 -0
- package/dist/assets/manifests/vue/ghost-drawer-close.manifest.json +80 -0
- package/dist/assets/manifests/vue/ghost-drawer-content.manifest.json +141 -0
- package/dist/assets/manifests/vue/ghost-drawer-description.manifest.json +69 -0
- package/dist/assets/manifests/vue/ghost-drawer-overlay.manifest.json +94 -0
- package/dist/assets/manifests/vue/ghost-drawer-title.manifest.json +69 -0
- package/dist/assets/manifests/vue/ghost-drawer-trigger.manifest.json +93 -0
- package/dist/assets/manifests/vue/ghost-drawer.manifest.json +149 -0
- package/dist/assets/manifests/vue/ghost-dropdown-menu-checkbox-item.manifest.json +110 -0
- package/dist/assets/manifests/vue/ghost-dropdown-menu-content.manifest.json +114 -0
- package/dist/assets/manifests/vue/ghost-dropdown-menu-group.manifest.json +40 -0
- package/dist/assets/manifests/vue/ghost-dropdown-menu-item.manifest.json +85 -0
- package/dist/assets/manifests/vue/ghost-dropdown-menu-label.manifest.json +40 -0
- package/dist/assets/manifests/vue/ghost-dropdown-menu-radio-group.manifest.json +69 -0
- package/dist/assets/manifests/vue/ghost-dropdown-menu-radio-item.manifest.json +97 -0
- package/dist/assets/manifests/vue/ghost-dropdown-menu-separator.manifest.json +42 -0
- package/dist/assets/manifests/vue/ghost-dropdown-menu-trigger.manifest.json +67 -0
- package/dist/assets/manifests/vue/ghost-dropdown-menu.manifest.json +67 -0
- package/dist/assets/manifests/vue/ghost-empty-state.manifest.json +98 -0
- package/dist/assets/manifests/vue/ghost-field-control.manifest.json +59 -0
- package/dist/assets/manifests/vue/ghost-field-description.manifest.json +59 -0
- package/dist/assets/manifests/vue/ghost-field-error.manifest.json +70 -0
- package/dist/assets/manifests/vue/ghost-field-label.manifest.json +83 -0
- package/dist/assets/manifests/vue/ghost-field.manifest.json +141 -0
- package/dist/assets/manifests/vue/ghost-file-upload-dropzone.manifest.json +67 -0
- package/dist/assets/manifests/vue/ghost-file-upload-item-remove.manifest.json +65 -0
- package/dist/assets/manifests/vue/ghost-file-upload-item.manifest.json +56 -0
- package/dist/assets/manifests/vue/ghost-file-upload-list.manifest.json +50 -0
- package/dist/assets/manifests/vue/ghost-file-upload-trigger.manifest.json +82 -0
- package/dist/assets/manifests/vue/ghost-file-upload.manifest.json +247 -0
- package/dist/assets/manifests/vue/ghost-form.manifest.json +221 -0
- package/dist/assets/manifests/vue/ghost-hover-card-content.manifest.json +130 -0
- package/dist/assets/manifests/vue/ghost-hover-card-trigger.manifest.json +76 -0
- package/dist/assets/manifests/vue/ghost-hover-card.manifest.json +99 -0
- package/dist/assets/manifests/vue/ghost-inline-alert.manifest.json +98 -0
- package/dist/assets/manifests/vue/ghost-input.manifest.json +133 -0
- package/dist/assets/manifests/vue/ghost-interactive-surface.manifest.json +101 -0
- package/dist/assets/manifests/vue/ghost-kbd.manifest.json +66 -0
- package/dist/assets/manifests/vue/ghost-link.manifest.json +111 -0
- package/dist/assets/manifests/vue/ghost-menubar-checkbox-item.manifest.json +110 -0
- package/dist/assets/manifests/vue/ghost-menubar-content.manifest.json +114 -0
- package/dist/assets/manifests/vue/ghost-menubar-group.manifest.json +40 -0
- package/dist/assets/manifests/vue/ghost-menubar-item.manifest.json +85 -0
- package/dist/assets/manifests/vue/ghost-menubar-label.manifest.json +40 -0
- package/dist/assets/manifests/vue/ghost-menubar-menu.manifest.json +65 -0
- package/dist/assets/manifests/vue/ghost-menubar-radio-group.manifest.json +69 -0
- package/dist/assets/manifests/vue/ghost-menubar-radio-item.manifest.json +97 -0
- package/dist/assets/manifests/vue/ghost-menubar-separator.manifest.json +42 -0
- package/dist/assets/manifests/vue/ghost-menubar-trigger.manifest.json +67 -0
- package/dist/assets/manifests/vue/ghost-menubar.manifest.json +62 -0
- package/dist/assets/manifests/vue/ghost-number-input.manifest.json +205 -0
- package/dist/assets/manifests/vue/ghost-pagination.manifest.json +247 -0
- package/dist/assets/manifests/vue/ghost-popover-close.manifest.json +80 -0
- package/dist/assets/manifests/vue/ghost-popover-content.manifest.json +138 -0
- package/dist/assets/manifests/vue/ghost-popover-trigger.manifest.json +93 -0
- package/dist/assets/manifests/vue/ghost-popover.manifest.json +103 -0
- package/dist/assets/manifests/vue/ghost-portal.manifest.json +56 -0
- package/dist/assets/manifests/vue/ghost-presence.manifest.json +96 -0
- package/dist/assets/manifests/vue/ghost-progress.manifest.json +77 -0
- package/dist/assets/manifests/vue/ghost-radio-group-item.manifest.json +73 -0
- package/dist/assets/manifests/vue/ghost-radio-group.manifest.json +148 -0
- package/dist/assets/manifests/vue/ghost-scroll-area.manifest.json +92 -0
- package/dist/assets/manifests/vue/ghost-scroll-spy-item.manifest.json +60 -0
- package/dist/assets/manifests/vue/ghost-scroll-spy-link.manifest.json +98 -0
- package/dist/assets/manifests/vue/ghost-scroll-spy-list.manifest.json +52 -0
- package/dist/assets/manifests/vue/ghost-scroll-spy.manifest.json +244 -0
- package/dist/assets/manifests/vue/ghost-segmented-control-indicator.manifest.json +25 -0
- package/dist/assets/manifests/vue/ghost-segmented-control-item.manifest.json +91 -0
- package/dist/assets/manifests/vue/ghost-segmented-control.manifest.json +147 -0
- package/dist/assets/manifests/vue/ghost-select-content.manifest.json +119 -0
- package/dist/assets/manifests/vue/ghost-select-group.manifest.json +45 -0
- package/dist/assets/manifests/vue/ghost-select-label.manifest.json +45 -0
- package/dist/assets/manifests/vue/ghost-select-option.manifest.json +85 -0
- package/dist/assets/manifests/vue/ghost-select-trigger.manifest.json +72 -0
- package/dist/assets/manifests/vue/ghost-select-value.manifest.json +52 -0
- package/dist/assets/manifests/vue/ghost-select.manifest.json +200 -0
- package/dist/assets/manifests/vue/ghost-separator.manifest.json +70 -0
- package/dist/assets/manifests/vue/ghost-skeleton.manifest.json +52 -0
- package/dist/assets/manifests/vue/ghost-slider.manifest.json +297 -0
- package/dist/assets/manifests/vue/ghost-spinner.manifest.json +42 -0
- package/dist/assets/manifests/vue/ghost-submenu-content.manifest.json +168 -0
- package/dist/assets/manifests/vue/ghost-submenu-trigger.manifest.json +102 -0
- package/dist/assets/manifests/vue/ghost-submenu.manifest.json +59 -0
- package/dist/assets/manifests/vue/ghost-switch.manifest.json +183 -0
- package/dist/assets/manifests/vue/ghost-table-body.manifest.json +38 -0
- package/dist/assets/manifests/vue/ghost-table-caption.manifest.json +38 -0
- package/dist/assets/manifests/vue/ghost-table-cell.manifest.json +38 -0
- package/dist/assets/manifests/vue/ghost-table-foot.manifest.json +38 -0
- package/dist/assets/manifests/vue/ghost-table-head.manifest.json +38 -0
- package/dist/assets/manifests/vue/ghost-table-header-cell.manifest.json +51 -0
- package/dist/assets/manifests/vue/ghost-table-row.manifest.json +38 -0
- package/dist/assets/manifests/vue/ghost-table.manifest.json +67 -0
- package/dist/assets/manifests/vue/ghost-tabs-content.manifest.json +66 -0
- package/dist/assets/manifests/vue/ghost-tabs-list.manifest.json +59 -0
- package/dist/assets/manifests/vue/ghost-tabs-trigger.manifest.json +74 -0
- package/dist/assets/manifests/vue/ghost-tabs.manifest.json +100 -0
- package/dist/assets/manifests/vue/ghost-tags-input.manifest.json +260 -0
- package/dist/assets/manifests/vue/ghost-textarea.manifest.json +147 -0
- package/dist/assets/manifests/vue/ghost-toast-action.manifest.json +69 -0
- package/dist/assets/manifests/vue/ghost-toast-close.manifest.json +69 -0
- package/dist/assets/manifests/vue/ghost-toast-description.manifest.json +48 -0
- package/dist/assets/manifests/vue/ghost-toast-provider.manifest.json +61 -0
- package/dist/assets/manifests/vue/ghost-toast-title.manifest.json +48 -0
- package/dist/assets/manifests/vue/ghost-toast-viewport.manifest.json +102 -0
- package/dist/assets/manifests/vue/ghost-toast.manifest.json +73 -0
- package/dist/assets/manifests/vue/ghost-toggle-group-item.manifest.json +93 -0
- package/dist/assets/manifests/vue/ghost-toggle-group.manifest.json +135 -0
- package/dist/assets/manifests/vue/ghost-toolbar.manifest.json +118 -0
- package/dist/assets/manifests/vue/ghost-tooltip-content.manifest.json +131 -0
- package/dist/assets/manifests/vue/ghost-tooltip-provider.manifest.json +55 -0
- package/dist/assets/manifests/vue/ghost-tooltip-trigger.manifest.json +90 -0
- package/dist/assets/manifests/vue/ghost-tooltip.manifest.json +93 -0
- package/dist/assets/manifests/vue/ghost-tree-group.manifest.json +119 -0
- package/dist/assets/manifests/vue/ghost-tree-item.manifest.json +286 -0
- package/dist/assets/manifests/vue/ghost-tree-trigger.manifest.json +148 -0
- package/dist/assets/manifests/vue/ghost-tree.manifest.json +341 -0
- package/dist/assets/manifests/vue/ghost-visually-hidden.manifest.json +73 -0
- package/dist/assets/tokens.json +6152 -0
- package/dist/bin.d.ts +2 -0
- package/dist/bin.js +11 -0
- package/dist/cli.d.ts +30 -0
- package/dist/cli.js +54 -0
- package/dist/components.d.ts +20 -0
- package/dist/components.js +471 -0
- package/dist/contract.d.ts +28 -0
- package/dist/contract.js +15 -0
- package/dist/docs-index.d.ts +84 -0
- package/dist/docs-index.js +230 -0
- package/dist/errors.d.ts +54 -0
- package/dist/errors.js +66 -0
- package/dist/get-examples.d.ts +30 -0
- package/dist/get-examples.js +269 -0
- package/dist/get-tokens.d.ts +27 -0
- package/dist/get-tokens.js +217 -0
- package/dist/identity.d.ts +42 -0
- package/dist/identity.js +99 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.js +16 -0
- package/dist/search-docs.d.ts +24 -0
- package/dist/search-docs.js +132 -0
- package/dist/server.d.ts +81 -0
- package/dist/server.js +75 -0
- package/dist/tool.d.ts +66 -0
- package/dist/tool.js +130 -0
- package/package.json +50 -4
|
@@ -0,0 +1,415 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { computed, nextTick, ref } from 'vue'
|
|
3
|
+
|
|
4
|
+
import {
|
|
5
|
+
GhostBadge,
|
|
6
|
+
GhostButton,
|
|
7
|
+
GhostCard,
|
|
8
|
+
GhostCombobox,
|
|
9
|
+
GhostComboboxContent,
|
|
10
|
+
GhostComboboxEmpty,
|
|
11
|
+
GhostComboboxInput,
|
|
12
|
+
GhostComboboxOption,
|
|
13
|
+
GhostField,
|
|
14
|
+
GhostFieldControl,
|
|
15
|
+
GhostFieldDescription,
|
|
16
|
+
GhostFieldError,
|
|
17
|
+
GhostFieldLabel,
|
|
18
|
+
} from '@ghostvue/themes'
|
|
19
|
+
|
|
20
|
+
interface Choice {
|
|
21
|
+
value: string
|
|
22
|
+
label: string
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// Deterministic local data: option values are what the form submits.
|
|
26
|
+
const reviewers: readonly Choice[] = [
|
|
27
|
+
{ value: 'maya-chen', label: 'Maya Chen' },
|
|
28
|
+
{ value: 'marcus-reed', label: 'Marcus Reed' },
|
|
29
|
+
{ value: 'priya-natarajan', label: 'Priya Natarajan' },
|
|
30
|
+
{ value: 'jonas-weber', label: 'Jonas Weber' },
|
|
31
|
+
{ value: 'amara-okafor', label: 'Amara Okafor' },
|
|
32
|
+
]
|
|
33
|
+
|
|
34
|
+
const labelChoices: readonly Choice[] = [
|
|
35
|
+
{ value: 'bug', label: 'Bug' },
|
|
36
|
+
{ value: 'docs', label: 'Documentation' },
|
|
37
|
+
{ value: 'performance', label: 'Performance' },
|
|
38
|
+
{ value: 'accessibility', label: 'Accessibility' },
|
|
39
|
+
{ value: 'security', label: 'Security' },
|
|
40
|
+
]
|
|
41
|
+
|
|
42
|
+
// Reset seed for the multi-value field; native reset restores it.
|
|
43
|
+
const defaultLabels: string[] = ['bug']
|
|
44
|
+
|
|
45
|
+
const reviewer = ref<string | undefined>(undefined)
|
|
46
|
+
const reviewerQuery = ref('')
|
|
47
|
+
const labels = ref<string[]>([...defaultLabels])
|
|
48
|
+
const labelQuery = ref('')
|
|
49
|
+
const reviewerMissing = ref(false)
|
|
50
|
+
|
|
51
|
+
function labelFor(choices: readonly Choice[], value: string): string {
|
|
52
|
+
return choices.find((choice) => choice.value === value)?.label ?? value
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/*
|
|
56
|
+
* Filtering is consumer-owned. In single mode the input shows the chosen
|
|
57
|
+
* label after a selection, so that text lists every reviewer again instead
|
|
58
|
+
* of filtering down to one.
|
|
59
|
+
*/
|
|
60
|
+
function matching(choices: readonly Choice[], query: string, shown = '') {
|
|
61
|
+
const needle = query.trim().toLowerCase()
|
|
62
|
+
if (needle === '' || query === shown) return choices
|
|
63
|
+
return choices.filter((choice) => choice.label.toLowerCase().includes(needle))
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
const reviewerOptions = computed(() =>
|
|
67
|
+
matching(
|
|
68
|
+
reviewers,
|
|
69
|
+
reviewerQuery.value,
|
|
70
|
+
reviewer.value ? labelFor(reviewers, reviewer.value) : '',
|
|
71
|
+
),
|
|
72
|
+
)
|
|
73
|
+
const labelOptions = computed(() => matching(labelChoices, labelQuery.value))
|
|
74
|
+
|
|
75
|
+
// The combobox root accepts string | string[] | undefined for both modes.
|
|
76
|
+
function onReviewer(value: string | string[] | undefined): void {
|
|
77
|
+
reviewer.value = typeof value === 'string' ? value : undefined
|
|
78
|
+
reviewerMissing.value = false
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
function onLabels(value: string | string[] | undefined): void {
|
|
82
|
+
labels.value = Array.isArray(value) ? value : []
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
interface SubmittedEntry {
|
|
86
|
+
name: string
|
|
87
|
+
values: string[]
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
const submitted = ref<SubmittedEntry[]>([])
|
|
91
|
+
const status = ref('')
|
|
92
|
+
|
|
93
|
+
/*
|
|
94
|
+
* `novalidate` turns off the browser's bubbles, but `checkValidity()` still
|
|
95
|
+
* runs native constraint validation: the required combobox's hidden input
|
|
96
|
+
* fails, fires `invalid`, and the input gets `aria-invalid` on its own.
|
|
97
|
+
*/
|
|
98
|
+
async function send(event: SubmitEvent): Promise<void> {
|
|
99
|
+
// Read before awaiting: currentTarget is cleared once dispatch ends.
|
|
100
|
+
const form = event.currentTarget
|
|
101
|
+
if (!(form instanceof HTMLFormElement)) return
|
|
102
|
+
if (!form.checkValidity()) {
|
|
103
|
+
reviewerMissing.value = true
|
|
104
|
+
submitted.value = []
|
|
105
|
+
status.value = ''
|
|
106
|
+
await nextTick()
|
|
107
|
+
form.querySelector<HTMLElement>('[aria-invalid="true"]')?.focus()
|
|
108
|
+
return
|
|
109
|
+
}
|
|
110
|
+
// A multiple combobox submits one entry per selected value.
|
|
111
|
+
const data = new FormData(form)
|
|
112
|
+
submitted.value = ['reviewer', 'labels'].map((name) => ({
|
|
113
|
+
name,
|
|
114
|
+
values: data
|
|
115
|
+
.getAll(name)
|
|
116
|
+
.map((value) => (typeof value === 'string' ? value : value.name)),
|
|
117
|
+
}))
|
|
118
|
+
const person = reviewer.value ? labelFor(reviewers, reviewer.value) : ''
|
|
119
|
+
status.value = `Review requested from ${person}.`
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
// Native reset restores each combobox's `default-value` and clears queries.
|
|
123
|
+
function onReset(): void {
|
|
124
|
+
reviewerMissing.value = false
|
|
125
|
+
submitted.value = []
|
|
126
|
+
status.value = 'Form reset.'
|
|
127
|
+
}
|
|
128
|
+
</script>
|
|
129
|
+
|
|
130
|
+
<template>
|
|
131
|
+
<form class="review" novalidate @submit.prevent="send" @reset="onReset">
|
|
132
|
+
<GhostCard as="section" aria-labelledby="review-title">
|
|
133
|
+
<template #header>
|
|
134
|
+
<div class="review__header">
|
|
135
|
+
<h2 id="review-title" class="review__title">Request a review</h2>
|
|
136
|
+
<p class="review__lead">
|
|
137
|
+
Pull request #1284 · Retry failed card payments
|
|
138
|
+
</p>
|
|
139
|
+
</div>
|
|
140
|
+
</template>
|
|
141
|
+
|
|
142
|
+
<div class="review__fields">
|
|
143
|
+
<GhostField required :invalid="reviewerMissing">
|
|
144
|
+
<GhostFieldLabel required>Reviewer</GhostFieldLabel>
|
|
145
|
+
<GhostFieldDescription
|
|
146
|
+
>One person approves the merge.</GhostFieldDescription
|
|
147
|
+
>
|
|
148
|
+
<GhostFieldControl v-slot="field">
|
|
149
|
+
<!-- `required` on the root enables native form validation. -->
|
|
150
|
+
<GhostCombobox
|
|
151
|
+
v-model:search="reviewerQuery"
|
|
152
|
+
:model-value="reviewer"
|
|
153
|
+
name="reviewer"
|
|
154
|
+
required
|
|
155
|
+
@update:model-value="onReviewer"
|
|
156
|
+
>
|
|
157
|
+
<GhostComboboxInput
|
|
158
|
+
v-bind="field"
|
|
159
|
+
placeholder="Search people"
|
|
160
|
+
spellcheck="false"
|
|
161
|
+
/>
|
|
162
|
+
<GhostComboboxContent class="review-list" :offset="6">
|
|
163
|
+
<GhostComboboxOption
|
|
164
|
+
v-for="choice in reviewerOptions"
|
|
165
|
+
:key="choice.value"
|
|
166
|
+
:value="choice.value"
|
|
167
|
+
:text-value="choice.label"
|
|
168
|
+
>
|
|
169
|
+
{{ choice.label }}
|
|
170
|
+
</GhostComboboxOption>
|
|
171
|
+
<GhostComboboxEmpty
|
|
172
|
+
>No one matches that name.</GhostComboboxEmpty
|
|
173
|
+
>
|
|
174
|
+
</GhostComboboxContent>
|
|
175
|
+
</GhostCombobox>
|
|
176
|
+
</GhostFieldControl>
|
|
177
|
+
<GhostFieldError v-if="reviewerMissing">
|
|
178
|
+
Choose a reviewer.
|
|
179
|
+
</GhostFieldError>
|
|
180
|
+
</GhostField>
|
|
181
|
+
|
|
182
|
+
<GhostField>
|
|
183
|
+
<GhostFieldLabel>Labels</GhostFieldLabel>
|
|
184
|
+
<GhostFieldDescription>
|
|
185
|
+
Pick any number. The list stays open while you toggle labels.
|
|
186
|
+
</GhostFieldDescription>
|
|
187
|
+
<GhostFieldControl v-slot="field">
|
|
188
|
+
<GhostCombobox
|
|
189
|
+
v-model:search="labelQuery"
|
|
190
|
+
:model-value="labels"
|
|
191
|
+
:default-value="defaultLabels"
|
|
192
|
+
name="labels"
|
|
193
|
+
multiple
|
|
194
|
+
@update:model-value="onLabels"
|
|
195
|
+
>
|
|
196
|
+
<GhostComboboxInput
|
|
197
|
+
v-bind="field"
|
|
198
|
+
placeholder="Filter labels"
|
|
199
|
+
spellcheck="false"
|
|
200
|
+
/>
|
|
201
|
+
<GhostComboboxContent class="review-list" :offset="6">
|
|
202
|
+
<GhostComboboxOption
|
|
203
|
+
v-for="choice in labelOptions"
|
|
204
|
+
:key="choice.value"
|
|
205
|
+
:value="choice.value"
|
|
206
|
+
:text-value="choice.label"
|
|
207
|
+
>
|
|
208
|
+
<span class="review-list__option">
|
|
209
|
+
{{ choice.label }}
|
|
210
|
+
<svg
|
|
211
|
+
v-if="labels.includes(choice.value)"
|
|
212
|
+
class="review-list__check"
|
|
213
|
+
aria-hidden="true"
|
|
214
|
+
viewBox="0 0 16 16"
|
|
215
|
+
>
|
|
216
|
+
<path d="M3.5 8.5l3 3 6-7" />
|
|
217
|
+
</svg>
|
|
218
|
+
</span>
|
|
219
|
+
</GhostComboboxOption>
|
|
220
|
+
<GhostComboboxEmpty>No labels match.</GhostComboboxEmpty>
|
|
221
|
+
</GhostComboboxContent>
|
|
222
|
+
</GhostCombobox>
|
|
223
|
+
</GhostFieldControl>
|
|
224
|
+
<ul
|
|
225
|
+
v-if="labels.length > 0"
|
|
226
|
+
class="review__chips"
|
|
227
|
+
aria-label="Selected labels"
|
|
228
|
+
>
|
|
229
|
+
<li v-for="value in labels" :key="value">
|
|
230
|
+
<GhostBadge>{{ labelFor(labelChoices, value) }}</GhostBadge>
|
|
231
|
+
</li>
|
|
232
|
+
</ul>
|
|
233
|
+
<span v-else class="review__none">No labels</span>
|
|
234
|
+
</GhostField>
|
|
235
|
+
</div>
|
|
236
|
+
|
|
237
|
+
<template #footer>
|
|
238
|
+
<div class="review__footer">
|
|
239
|
+
<p class="review__status" role="status">{{ status }}</p>
|
|
240
|
+
<div class="review__actions">
|
|
241
|
+
<GhostButton type="reset" variant="ghost" tone="neutral">
|
|
242
|
+
Reset
|
|
243
|
+
</GhostButton>
|
|
244
|
+
<GhostButton type="submit">Request review</GhostButton>
|
|
245
|
+
</div>
|
|
246
|
+
</div>
|
|
247
|
+
<section
|
|
248
|
+
v-if="submitted.length > 0"
|
|
249
|
+
class="review__submitted"
|
|
250
|
+
aria-labelledby="review-submitted-title"
|
|
251
|
+
>
|
|
252
|
+
<h3 id="review-submitted-title" class="review__submitted-title">
|
|
253
|
+
Submitted form data
|
|
254
|
+
</h3>
|
|
255
|
+
<dl class="review__entries">
|
|
256
|
+
<div
|
|
257
|
+
v-for="entry in submitted"
|
|
258
|
+
:key="entry.name"
|
|
259
|
+
class="review__entry"
|
|
260
|
+
>
|
|
261
|
+
<dt>{{ entry.name }}</dt>
|
|
262
|
+
<dd>
|
|
263
|
+
{{ entry.values.filter(Boolean).join(', ') || '(empty)' }}
|
|
264
|
+
</dd>
|
|
265
|
+
</div>
|
|
266
|
+
</dl>
|
|
267
|
+
</section>
|
|
268
|
+
</template>
|
|
269
|
+
</GhostCard>
|
|
270
|
+
</form>
|
|
271
|
+
</template>
|
|
272
|
+
|
|
273
|
+
<style scoped>
|
|
274
|
+
/* The form keeps a readable measure and shrinks with the preview on phones. */
|
|
275
|
+
.review {
|
|
276
|
+
max-inline-size: 32rem;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.review__header {
|
|
280
|
+
display: grid;
|
|
281
|
+
gap: var(--ghost-space-gap-xs);
|
|
282
|
+
padding-block-end: var(--ghost-space-stack-sm);
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
/* Native text picks up docs prose styles, so each element resets its own. */
|
|
286
|
+
.review__title,
|
|
287
|
+
.review__submitted-title {
|
|
288
|
+
border: 0;
|
|
289
|
+
color: var(--ghost-text-default);
|
|
290
|
+
font-size: var(--ghost-type-size-lg);
|
|
291
|
+
font-weight: var(--ghost-type-weight-semibold);
|
|
292
|
+
line-height: var(--ghost-type-line-tight);
|
|
293
|
+
margin: 0;
|
|
294
|
+
padding: 0;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
.review__submitted-title {
|
|
298
|
+
font-size: var(--ghost-type-size-sm);
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
.review__lead,
|
|
302
|
+
.review__status,
|
|
303
|
+
.review__none {
|
|
304
|
+
color: var(--ghost-text-muted);
|
|
305
|
+
font-size: var(--ghost-type-size-sm);
|
|
306
|
+
line-height: var(--ghost-type-line-snug);
|
|
307
|
+
margin: 0;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
.review__fields {
|
|
311
|
+
display: grid;
|
|
312
|
+
gap: var(--ghost-space-stack-lg);
|
|
313
|
+
grid-template-columns: minmax(0, 1fr);
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
/* Selected labels wrap under the input; reset the docs list styles. */
|
|
317
|
+
.review__chips {
|
|
318
|
+
display: flex;
|
|
319
|
+
flex-wrap: wrap;
|
|
320
|
+
gap: var(--ghost-space-gap-xs);
|
|
321
|
+
list-style: none;
|
|
322
|
+
margin: 0;
|
|
323
|
+
padding: 0;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
.review__chips li {
|
|
327
|
+
margin: 0;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
.review__footer {
|
|
331
|
+
align-items: center;
|
|
332
|
+
display: flex;
|
|
333
|
+
flex-wrap: wrap;
|
|
334
|
+
gap: var(--ghost-space-gap-sm) var(--ghost-space-gap-md);
|
|
335
|
+
justify-content: flex-end;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
.review__status {
|
|
339
|
+
flex: 1 1 10rem;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
.review__actions {
|
|
343
|
+
display: flex;
|
|
344
|
+
gap: var(--ghost-space-gap-sm);
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
.review__submitted {
|
|
348
|
+
border-block-start: var(--ghost-border-hairline-width) solid
|
|
349
|
+
var(--ghost-border-default);
|
|
350
|
+
display: grid;
|
|
351
|
+
gap: var(--ghost-space-gap-sm);
|
|
352
|
+
margin-block-start: var(--ghost-space-stack-md);
|
|
353
|
+
padding-block-start: var(--ghost-space-stack-md);
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
.review__entries {
|
|
357
|
+
display: grid;
|
|
358
|
+
gap: var(--ghost-space-gap-xs);
|
|
359
|
+
margin: 0;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
.review__entry {
|
|
363
|
+
column-gap: var(--ghost-space-gap-md);
|
|
364
|
+
display: grid;
|
|
365
|
+
font-size: var(--ghost-type-size-sm);
|
|
366
|
+
grid-template-columns: minmax(0, 6rem) minmax(0, 1fr);
|
|
367
|
+
line-height: var(--ghost-type-line-snug);
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
.review__entry dt,
|
|
371
|
+
.review__entry dd {
|
|
372
|
+
margin: 0;
|
|
373
|
+
min-inline-size: 0;
|
|
374
|
+
overflow-wrap: anywhere;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
.review__entry dt {
|
|
378
|
+
color: var(--ghost-text-muted);
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
.review__entry dd {
|
|
382
|
+
color: var(--ghost-text-default);
|
|
383
|
+
font-weight: var(--ghost-type-weight-medium);
|
|
384
|
+
}
|
|
385
|
+
</style>
|
|
386
|
+
|
|
387
|
+
<style>
|
|
388
|
+
/*
|
|
389
|
+
* Unscoped on purpose: these classes land on the listbox content and its
|
|
390
|
+
* options inside a body portal, where a scoped attribute is not guaranteed.
|
|
391
|
+
* The themed list paints the surface and the checked fill; the check mark
|
|
392
|
+
* only adds a second cue for multi-value rows and never shifts layout.
|
|
393
|
+
*/
|
|
394
|
+
.review-list {
|
|
395
|
+
min-inline-size: 14rem;
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
.review-list__option {
|
|
399
|
+
align-items: center;
|
|
400
|
+
display: flex;
|
|
401
|
+
gap: var(--ghost-space-gap-sm);
|
|
402
|
+
justify-content: space-between;
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
.review-list__check {
|
|
406
|
+
block-size: 1rem;
|
|
407
|
+
fill: none;
|
|
408
|
+
flex: none;
|
|
409
|
+
inline-size: 1rem;
|
|
410
|
+
stroke: currentColor;
|
|
411
|
+
stroke-linecap: round;
|
|
412
|
+
stroke-linejoin: round;
|
|
413
|
+
stroke-width: 1.75;
|
|
414
|
+
}
|
|
415
|
+
</style>
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { ref } from 'vue'
|
|
3
|
+
|
|
4
|
+
import {
|
|
5
|
+
GhostCombobox,
|
|
6
|
+
GhostComboboxContent,
|
|
7
|
+
GhostComboboxInput,
|
|
8
|
+
GhostComboboxOption,
|
|
9
|
+
} from '@ghostvue/themes'
|
|
10
|
+
|
|
11
|
+
const pageSize = ref('25')
|
|
12
|
+
</script>
|
|
13
|
+
|
|
14
|
+
<template>
|
|
15
|
+
<div class="ghost-themed-scope">
|
|
16
|
+
<GhostCombobox v-model="pageSize">
|
|
17
|
+
<GhostComboboxInput
|
|
18
|
+
aria-label="Rows per page"
|
|
19
|
+
placeholder="Rows per page"
|
|
20
|
+
/>
|
|
21
|
+
<GhostComboboxContent :offset="6">
|
|
22
|
+
<GhostComboboxOption value="10" text-value="10 rows">
|
|
23
|
+
10 rows
|
|
24
|
+
</GhostComboboxOption>
|
|
25
|
+
<GhostComboboxOption value="25" text-value="25 rows">
|
|
26
|
+
25 rows
|
|
27
|
+
</GhostComboboxOption>
|
|
28
|
+
<GhostComboboxOption value="50" text-value="50 rows">
|
|
29
|
+
50 rows
|
|
30
|
+
</GhostComboboxOption>
|
|
31
|
+
</GhostComboboxContent>
|
|
32
|
+
</GhostCombobox>
|
|
33
|
+
</div>
|
|
34
|
+
</template>
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { ref } from 'vue'
|
|
3
|
+
|
|
4
|
+
import {
|
|
5
|
+
GhostButton,
|
|
6
|
+
GhostCommandPalette,
|
|
7
|
+
GhostCommandPaletteContent,
|
|
8
|
+
GhostCommandPaletteEmpty,
|
|
9
|
+
GhostCommandPaletteInput,
|
|
10
|
+
GhostCommandPaletteItem,
|
|
11
|
+
GhostCommandPaletteList,
|
|
12
|
+
GhostCommandPaletteOverlay,
|
|
13
|
+
GhostCommandPaletteTitle,
|
|
14
|
+
GhostCommandPaletteTrigger,
|
|
15
|
+
useGhostCommandPaletteAsyncSearch,
|
|
16
|
+
type GhostCommandPaletteCommandPayload,
|
|
17
|
+
type GhostCommandPaletteSearchPayload,
|
|
18
|
+
} from '@ghostvue/themes'
|
|
19
|
+
|
|
20
|
+
interface Page {
|
|
21
|
+
id: string
|
|
22
|
+
title: string
|
|
23
|
+
space: string
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
const catalog: Page[] = [
|
|
27
|
+
{ id: 'page-roadmap', title: 'Roadmap', space: 'Product' },
|
|
28
|
+
{ id: 'page-release-notes', title: 'Release notes', space: 'Product' },
|
|
29
|
+
{ id: 'page-retro', title: 'Sprint retro', space: 'Engineering' },
|
|
30
|
+
{ id: 'page-onboarding', title: 'Onboarding checklist', space: 'People' },
|
|
31
|
+
{ id: 'page-oncall', title: 'On-call runbook', space: 'Engineering' },
|
|
32
|
+
{ id: 'page-pricing', title: 'Pricing experiments', space: 'Growth' },
|
|
33
|
+
]
|
|
34
|
+
|
|
35
|
+
const search = ref('')
|
|
36
|
+
const results = ref<Page[]>(catalog)
|
|
37
|
+
const loading = ref(false)
|
|
38
|
+
const opened = ref('Nothing yet')
|
|
39
|
+
|
|
40
|
+
const { begin, isLatest } = useGhostCommandPaletteAsyncSearch()
|
|
41
|
+
|
|
42
|
+
/*
|
|
43
|
+
* Deterministic fake server: shorter queries answer more slowly, so typing
|
|
44
|
+
* "r" then "re" quickly resolves out of order. `isLatest` drops the slow,
|
|
45
|
+
* stale "r" response so it never replaces the newer results or clears
|
|
46
|
+
* `loading` early.
|
|
47
|
+
*/
|
|
48
|
+
function fetchPages(query: string): Promise<Page[]> {
|
|
49
|
+
const delay = Math.max(80, 400 - query.length * 120)
|
|
50
|
+
const lowered = query.trim().toLowerCase()
|
|
51
|
+
return new Promise((resolve) => {
|
|
52
|
+
setTimeout(() => {
|
|
53
|
+
resolve(
|
|
54
|
+
catalog.filter((page) => page.title.toLowerCase().includes(lowered)),
|
|
55
|
+
)
|
|
56
|
+
}, delay)
|
|
57
|
+
})
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
async function onSearch({
|
|
61
|
+
query,
|
|
62
|
+
requestId,
|
|
63
|
+
}: GhostCommandPaletteSearchPayload): Promise<void> {
|
|
64
|
+
begin(requestId)
|
|
65
|
+
loading.value = true
|
|
66
|
+
const pages = await fetchPages(query)
|
|
67
|
+
if (!isLatest(requestId)) {
|
|
68
|
+
return
|
|
69
|
+
}
|
|
70
|
+
results.value = pages
|
|
71
|
+
loading.value = false
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
function onCommand({ id }: GhostCommandPaletteCommandPayload): void {
|
|
75
|
+
opened.value = catalog.find((page) => page.id === id)?.title ?? id
|
|
76
|
+
}
|
|
77
|
+
</script>
|
|
78
|
+
|
|
79
|
+
<template>
|
|
80
|
+
<div class="palette-async">
|
|
81
|
+
<GhostCommandPalette
|
|
82
|
+
v-model:search="search"
|
|
83
|
+
:loading="loading"
|
|
84
|
+
@search="onSearch"
|
|
85
|
+
@command="onCommand"
|
|
86
|
+
>
|
|
87
|
+
<GhostCommandPaletteTrigger :as="GhostButton" variant="outline">
|
|
88
|
+
Search pages
|
|
89
|
+
</GhostCommandPaletteTrigger>
|
|
90
|
+
<GhostCommandPaletteOverlay />
|
|
91
|
+
<GhostCommandPaletteContent>
|
|
92
|
+
<GhostCommandPaletteTitle>Search pages</GhostCommandPaletteTitle>
|
|
93
|
+
<GhostCommandPaletteInput placeholder="Page title" />
|
|
94
|
+
<!--
|
|
95
|
+
While loading, the list keeps the previous results and the palette
|
|
96
|
+
announces "Loading results" itself, so this visible line is hidden
|
|
97
|
+
from assistive technology to avoid a second announcement.
|
|
98
|
+
-->
|
|
99
|
+
<p class="palette-async__status" aria-hidden="true">
|
|
100
|
+
{{ loading ? 'Searching pages…' : 'Results update as you type' }}
|
|
101
|
+
</p>
|
|
102
|
+
<GhostCommandPaletteList>
|
|
103
|
+
<GhostCommandPaletteItem
|
|
104
|
+
v-for="page in results"
|
|
105
|
+
:id="page.id"
|
|
106
|
+
:key="page.id"
|
|
107
|
+
:text-value="page.title"
|
|
108
|
+
>
|
|
109
|
+
<span class="palette-async__title">{{ page.title }}</span>
|
|
110
|
+
<span class="palette-async__space">{{ page.space }}</span>
|
|
111
|
+
</GhostCommandPaletteItem>
|
|
112
|
+
<GhostCommandPaletteEmpty>
|
|
113
|
+
No pages match “{{ search.trim() }}”. Try a shorter title.
|
|
114
|
+
</GhostCommandPaletteEmpty>
|
|
115
|
+
</GhostCommandPaletteList>
|
|
116
|
+
</GhostCommandPaletteContent>
|
|
117
|
+
</GhostCommandPalette>
|
|
118
|
+
<p class="palette-async__result">
|
|
119
|
+
Opened: <output>{{ opened }}</output>
|
|
120
|
+
</p>
|
|
121
|
+
</div>
|
|
122
|
+
</template>
|
|
123
|
+
|
|
124
|
+
<style scoped>
|
|
125
|
+
.palette-async {
|
|
126
|
+
display: grid;
|
|
127
|
+
gap: var(--ghost-space-gap-sm);
|
|
128
|
+
justify-items: start;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.palette-async__result {
|
|
132
|
+
color: var(--ghost-text-muted);
|
|
133
|
+
font-size: var(--ghost-type-size-sm);
|
|
134
|
+
margin: 0;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.palette-async__status {
|
|
138
|
+
color: var(--ghost-text-muted);
|
|
139
|
+
font-size: var(--ghost-type-size-sm);
|
|
140
|
+
margin: 0;
|
|
141
|
+
padding-inline: var(--ghost-space-inset-sm);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.palette-async__title {
|
|
145
|
+
flex: 1;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.palette-async__space {
|
|
149
|
+
color: var(--ghost-text-muted);
|
|
150
|
+
font-size: var(--ghost-type-size-sm);
|
|
151
|
+
}
|
|
152
|
+
</style>
|