@ghostvue/vue 0.0.0-stage → 0.1.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 +40 -2
- package/dist/.registries/component-names.generated.d.ts +3 -0
- package/dist/GhostAccordion.vue.d.ts +38 -0
- package/dist/GhostAccordionContent.vue.d.ts +26 -0
- package/dist/GhostAccordionItem.vue.d.ts +20 -0
- package/dist/GhostAccordionTrigger.vue.d.ts +23 -0
- package/dist/GhostAvatar.vue.d.ts +27 -0
- package/dist/GhostBadge.vue.d.ts +16 -0
- package/dist/GhostBreadcrumb.vue.d.ts +28 -0
- package/dist/GhostBreadcrumbEllipsis.vue.d.ts +20 -0
- package/dist/GhostBreadcrumbItem.vue.d.ts +25 -0
- package/dist/GhostBreadcrumbLink.vue.d.ts +25 -0
- package/dist/GhostBreadcrumbList.vue.d.ts +25 -0
- package/dist/GhostBreadcrumbPage.vue.d.ts +25 -0
- package/dist/GhostBreadcrumbSeparator.vue.d.ts +25 -0
- package/dist/GhostButton.vue.d.ts +25 -0
- package/dist/GhostCalendar.vue.d.ts +57 -0
- package/dist/GhostCalendarCell.vue.d.ts +35 -0
- package/dist/GhostCalendarGrid.vue.d.ts +19 -0
- package/dist/GhostCalendarHeader.vue.d.ts +24 -0
- package/dist/GhostCalendarHeading.vue.d.ts +22 -0
- package/dist/GhostCalendarNextButton.vue.d.ts +24 -0
- package/dist/GhostCalendarPrevButton.vue.d.ts +24 -0
- package/dist/GhostCard.vue.d.ts +18 -0
- package/dist/GhostCheckbox.vue.d.ts +48 -0
- package/dist/GhostCollapsible.vue.d.ts +31 -0
- package/dist/GhostCollapsibleContent.vue.d.ts +30 -0
- package/dist/GhostCollapsibleTrigger.vue.d.ts +28 -0
- package/dist/GhostCombobox.vue.d.ts +69 -0
- package/dist/GhostComboboxContent.vue.d.ts +41 -0
- package/dist/GhostComboboxEmpty.vue.d.ts +21 -0
- package/dist/GhostComboboxGroup.vue.d.ts +21 -0
- package/dist/GhostComboboxInput.vue.d.ts +11 -0
- package/dist/GhostComboboxLabel.vue.d.ts +21 -0
- package/dist/GhostComboboxOption.vue.d.ts +29 -0
- package/dist/GhostComboboxTrigger.vue.d.ts +26 -0
- package/dist/GhostCommandPalette.vue.d.ts +57 -0
- package/dist/GhostCommandPaletteContent.vue.d.ts +47 -0
- package/dist/GhostCommandPaletteEmpty.vue.d.ts +25 -0
- package/dist/GhostCommandPaletteGroup.vue.d.ts +25 -0
- package/dist/GhostCommandPaletteInput.vue.d.ts +13 -0
- package/dist/GhostCommandPaletteItem.vue.d.ts +33 -0
- package/dist/GhostCommandPaletteLabel.vue.d.ts +25 -0
- package/dist/GhostCommandPaletteList.vue.d.ts +25 -0
- package/dist/GhostCommandPaletteOverlay.vue.d.ts +32 -0
- package/dist/GhostCommandPaletteSeparator.vue.d.ts +10 -0
- package/dist/GhostCommandPaletteTitle.vue.d.ts +25 -0
- package/dist/GhostCommandPaletteTrigger.vue.d.ts +28 -0
- package/dist/GhostContextMenu.vue.d.ts +26 -0
- package/dist/GhostContextMenuCheckboxItem.vue.d.ts +63 -0
- package/dist/GhostContextMenuContent.vue.d.ts +39 -0
- package/dist/GhostContextMenuGroup.vue.d.ts +21 -0
- package/dist/GhostContextMenuItem.vue.d.ts +30 -0
- package/dist/GhostContextMenuLabel.vue.d.ts +21 -0
- package/dist/GhostContextMenuRadioGroup.vue.d.ts +31 -0
- package/dist/GhostContextMenuRadioItem.vue.d.ts +31 -0
- package/dist/GhostContextMenuSeparator.vue.d.ts +11 -0
- package/dist/GhostContextMenuTrigger.vue.d.ts +28 -0
- package/dist/GhostDataTable.vue.d.ts +29 -0
- package/dist/GhostDataTablePreset.vue.d.ts +21 -0
- package/dist/GhostDataTableTable.vue.d.ts +20 -0
- package/dist/GhostDatePicker.vue.d.ts +106 -0
- package/dist/GhostDatePickerCalendar.vue.d.ts +16 -0
- package/dist/GhostDatePickerContent.vue.d.ts +46 -0
- package/dist/GhostDatePickerInput.vue.d.ts +19 -0
- package/dist/GhostDatePickerTrigger.vue.d.ts +14 -0
- package/dist/GhostDialog.vue.d.ts +31 -0
- package/dist/GhostDialogClose.vue.d.ts +28 -0
- package/dist/GhostDialogContent.vue.d.ts +50 -0
- package/dist/GhostDialogDescription.vue.d.ts +25 -0
- package/dist/GhostDialogOverlay.vue.d.ts +32 -0
- package/dist/GhostDialogTitle.vue.d.ts +25 -0
- package/dist/GhostDialogTrigger.vue.d.ts +28 -0
- package/dist/GhostDrawer.vue.d.ts +39 -0
- package/dist/GhostDrawerClose.vue.d.ts +28 -0
- package/dist/GhostDrawerContent.vue.d.ts +47 -0
- package/dist/GhostDrawerDescription.vue.d.ts +25 -0
- package/dist/GhostDrawerOverlay.vue.d.ts +32 -0
- package/dist/GhostDrawerTitle.vue.d.ts +25 -0
- package/dist/GhostDrawerTrigger.vue.d.ts +28 -0
- package/dist/GhostDropdownMenu.vue.d.ts +26 -0
- package/dist/GhostDropdownMenuCheckboxItem.vue.d.ts +63 -0
- package/dist/GhostDropdownMenuContent.vue.d.ts +39 -0
- package/dist/GhostDropdownMenuGroup.vue.d.ts +21 -0
- package/dist/GhostDropdownMenuItem.vue.d.ts +30 -0
- package/dist/GhostDropdownMenuLabel.vue.d.ts +21 -0
- package/dist/GhostDropdownMenuRadioGroup.vue.d.ts +31 -0
- package/dist/GhostDropdownMenuRadioItem.vue.d.ts +31 -0
- package/dist/GhostDropdownMenuSeparator.vue.d.ts +11 -0
- package/dist/GhostDropdownMenuTrigger.vue.d.ts +26 -0
- package/dist/GhostEmptyState.vue.d.ts +19 -0
- package/dist/GhostField.vue.d.ts +28 -0
- package/dist/GhostFieldControl.vue.d.ts +13 -0
- package/dist/GhostFieldDescription.vue.d.ts +21 -0
- package/dist/GhostFieldError.vue.d.ts +21 -0
- package/dist/GhostFieldLabel.vue.d.ts +30 -0
- package/dist/GhostFileUpload.vue.d.ts +64 -0
- package/dist/GhostFileUploadDropzone.vue.d.ts +13 -0
- package/dist/GhostFileUploadItem.vue.d.ts +17 -0
- package/dist/GhostFileUploadItemRemove.vue.d.ts +13 -0
- package/dist/GhostFileUploadList.vue.d.ts +13 -0
- package/dist/GhostFileUploadTrigger.vue.d.ts +19 -0
- package/dist/GhostHoverCard.vue.d.ts +37 -0
- package/dist/GhostHoverCardContent.vue.d.ts +47 -0
- package/dist/GhostHoverCardTrigger.vue.d.ts +28 -0
- package/dist/GhostInlineAlert.vue.d.ts +19 -0
- package/dist/GhostInput.vue.d.ts +26 -0
- package/dist/GhostInteractiveSurface.vue.d.ts +25 -0
- package/dist/GhostKbd.vue.d.ts +25 -0
- package/dist/GhostLink.vue.d.ts +25 -0
- package/dist/GhostMenubar.vue.d.ts +27 -0
- package/dist/GhostMenubarCheckboxItem.vue.d.ts +63 -0
- package/dist/GhostMenubarContent.vue.d.ts +39 -0
- package/dist/GhostMenubarGroup.vue.d.ts +21 -0
- package/dist/GhostMenubarItem.vue.d.ts +30 -0
- package/dist/GhostMenubarLabel.vue.d.ts +21 -0
- package/dist/GhostMenubarMenu.vue.d.ts +26 -0
- package/dist/GhostMenubarRadioGroup.vue.d.ts +31 -0
- package/dist/GhostMenubarRadioItem.vue.d.ts +31 -0
- package/dist/GhostMenubarSeparator.vue.d.ts +11 -0
- package/dist/GhostMenubarTrigger.vue.d.ts +26 -0
- package/dist/GhostNumberInput.vue.d.ts +37 -0
- package/dist/GhostPagination.vue.d.ts +53 -0
- package/dist/GhostPopover.vue.d.ts +28 -0
- package/dist/GhostPopoverClose.vue.d.ts +28 -0
- package/dist/GhostPopoverContent.vue.d.ts +47 -0
- package/dist/GhostPopoverTrigger.vue.d.ts +28 -0
- package/dist/GhostPortal.vue.d.ts +28 -0
- package/dist/GhostProgress.vue.d.ts +14 -0
- package/dist/GhostRadioGroup.vue.d.ts +36 -0
- package/dist/GhostRadioGroupItem.vue.d.ts +10 -0
- package/dist/GhostScrollArea.vue.d.ts +17 -0
- package/dist/GhostScrollSpy.vue.d.ts +57 -0
- package/dist/GhostScrollSpyItem.vue.d.ts +26 -0
- package/dist/GhostScrollSpyLink.vue.d.ts +27 -0
- package/dist/GhostScrollSpyList.vue.d.ts +24 -0
- package/dist/GhostSegmentedControl.vue.d.ts +44 -0
- package/dist/GhostSegmentedControlIndicator.vue.d.ts +3 -0
- package/dist/GhostSegmentedControlItem.vue.d.ts +30 -0
- package/dist/GhostSelect.vue.d.ts +51 -0
- package/dist/GhostSelectContent.vue.d.ts +41 -0
- package/dist/GhostSelectGroup.vue.d.ts +21 -0
- package/dist/GhostSelectLabel.vue.d.ts +21 -0
- package/dist/GhostSelectOption.vue.d.ts +29 -0
- package/dist/GhostSelectTrigger.vue.d.ts +26 -0
- package/dist/GhostSelectValue.vue.d.ts +17 -0
- package/dist/GhostSeparator.vue.d.ts +7 -0
- package/dist/GhostSkeleton.vue.d.ts +18 -0
- package/dist/GhostSlider.vue.d.ts +141 -0
- package/dist/GhostSpinner.vue.d.ts +8 -0
- package/dist/GhostSwitch.vue.d.ts +37 -0
- package/dist/GhostTable.vue.d.ts +15 -0
- package/dist/GhostTableBody.vue.d.ts +13 -0
- package/dist/GhostTableCaption.vue.d.ts +13 -0
- package/dist/GhostTableCell.vue.d.ts +13 -0
- package/dist/GhostTableFoot.vue.d.ts +13 -0
- package/dist/GhostTableHead.vue.d.ts +13 -0
- package/dist/GhostTableHeaderCell.vue.d.ts +13 -0
- package/dist/GhostTableRow.vue.d.ts +13 -0
- package/dist/GhostTabs.vue.d.ts +37 -0
- package/dist/GhostTabsContent.vue.d.ts +27 -0
- package/dist/GhostTabsList.vue.d.ts +25 -0
- package/dist/GhostTabsTrigger.vue.d.ts +30 -0
- package/dist/GhostTextarea.vue.d.ts +29 -0
- package/dist/GhostToast.vue.d.ts +17 -0
- package/dist/GhostToastAction.vue.d.ts +17 -0
- package/dist/GhostToastClose.vue.d.ts +16 -0
- package/dist/GhostToastDescription.vue.d.ts +12 -0
- package/dist/GhostToastProvider.vue.d.ts +24 -0
- package/dist/GhostToastTitle.vue.d.ts +12 -0
- package/dist/GhostToastViewport.vue.d.ts +25 -0
- package/dist/GhostToggleGroup.vue.d.ts +41 -0
- package/dist/GhostToggleGroupItem.vue.d.ts +30 -0
- package/dist/GhostToolbar.vue.d.ts +29 -0
- package/dist/GhostTooltip.vue.d.ts +36 -0
- package/dist/GhostTooltipContent.vue.d.ts +47 -0
- package/dist/GhostTooltipProvider.vue.d.ts +16 -0
- package/dist/GhostTooltipTrigger.vue.d.ts +28 -0
- package/dist/GhostTree.vue.d.ts +59 -0
- package/dist/GhostTreeGroup.vue.d.ts +22 -0
- package/dist/GhostTreeItem.vue.d.ts +27 -0
- package/dist/GhostTreeTrigger.vue.d.ts +25 -0
- package/dist/GhostVisuallyHidden.vue.d.ts +19 -0
- package/dist/accordion-header-keyboard.d.ts +11 -0
- package/dist/calendar-date-math.d.ts +16 -0
- package/dist/calendar-intl.d.ts +7 -0
- package/dist/calendar-public-date.d.ts +1 -0
- package/dist/command-palette-context.d.ts +6 -0
- package/dist/data-table-interaction.d.ts +57 -0
- package/dist/data-table-processing.d.ts +32 -0
- package/dist/data-table-render.d.ts +40 -0
- package/dist/data-table-slot-bindings.d.ts +21 -0
- package/dist/date-picker-calendar-bridge.d.ts +25 -0
- package/dist/date-picker-value.d.ts +33 -0
- package/dist/define-data-table-columns.d.ts +89 -0
- package/dist/dev-codes.d.ts +143 -0
- package/dist/dialog-shared.d.ts +169 -0
- package/dist/dismissable-layer-stack.d.ts +27 -0
- package/dist/form-reset.d.ts +21 -0
- package/dist/get-pagination-range.d.ts +24 -0
- package/dist/get-tabbable-elements.d.ts +22 -0
- package/dist/ghost-accordion.d.ts +120 -0
- package/dist/ghost-avatar.d.ts +41 -0
- package/dist/ghost-badge.d.ts +11 -0
- package/dist/ghost-breadcrumb.d.ts +114 -0
- package/dist/ghost-button.d.ts +39 -0
- package/dist/ghost-calendar.d.ts +148 -0
- package/dist/ghost-card.d.ts +29 -0
- package/dist/ghost-checkbox.d.ts +51 -0
- package/dist/ghost-collapsible.d.ts +104 -0
- package/dist/ghost-combobox.d.ts +217 -0
- package/dist/ghost-command-palette.d.ts +377 -0
- package/dist/ghost-context-menu.d.ts +226 -0
- package/dist/ghost-data-table-preset.d.ts +107 -0
- package/dist/ghost-data-table-table.d.ts +76 -0
- package/dist/ghost-data-table.d.ts +508 -0
- package/dist/ghost-date-picker.d.ts +301 -0
- package/dist/ghost-dialog.d.ts +254 -0
- package/dist/ghost-drawer.d.ts +268 -0
- package/dist/ghost-dropdown-menu.d.ts +226 -0
- package/dist/ghost-empty-state.d.ts +26 -0
- package/dist/ghost-field.d.ts +151 -0
- package/dist/ghost-file-upload-accept.d.ts +32 -0
- package/dist/ghost-file-upload-messages.d.ts +14 -0
- package/dist/ghost-file-upload.d.ts +325 -0
- package/dist/ghost-hover-card.d.ts +192 -0
- package/dist/ghost-inline-alert.d.ts +34 -0
- package/dist/ghost-input.d.ts +71 -0
- package/dist/ghost-interactive-surface.d.ts +41 -0
- package/dist/ghost-kbd.d.ts +39 -0
- package/dist/ghost-link.d.ts +58 -0
- package/dist/ghost-menubar.d.ts +260 -0
- package/dist/ghost-number-input.d.ts +88 -0
- package/dist/ghost-pagination.d.ts +92 -0
- package/dist/ghost-popover.d.ts +188 -0
- package/dist/ghost-portal.d.ts +21 -0
- package/dist/ghost-progress.d.ts +40 -0
- package/dist/ghost-radio-group.d.ts +100 -0
- package/dist/ghost-scroll-area.d.ts +46 -0
- package/dist/ghost-scroll-spy.d.ts +150 -0
- package/dist/ghost-segmented-control.d.ts +124 -0
- package/dist/ghost-select.d.ts +131 -0
- package/dist/ghost-separator.d.ts +33 -0
- package/dist/ghost-skeleton.d.ts +14 -0
- package/dist/ghost-slider.d.ts +99 -0
- package/dist/ghost-spinner.d.ts +22 -0
- package/dist/ghost-switch.d.ts +77 -0
- package/dist/ghost-table.d.ts +62 -0
- package/dist/ghost-tabs.d.ts +154 -0
- package/dist/ghost-textarea.d.ts +78 -0
- package/dist/ghost-toast.d.ts +219 -0
- package/dist/ghost-toggle-group.d.ts +123 -0
- package/dist/ghost-toolbar.d.ts +23 -0
- package/dist/ghost-tooltip-provider.d.ts +37 -0
- package/dist/ghost-tooltip.d.ts +190 -0
- package/dist/ghost-tree.d.ts +355 -0
- package/dist/ghost-visually-hidden.d.ts +27 -0
- package/dist/ghostvue.js +17534 -0
- package/dist/has-tabbable-descendants.d.ts +2 -0
- package/dist/index.d.ts +307 -0
- package/dist/invoke-attr-handler.d.ts +15 -0
- package/dist/is-ime-composing.d.ts +28 -0
- package/dist/manifest.json +17098 -0
- package/dist/measure-scroll-overflow.d.ts +6 -0
- package/dist/menu-item-activation.d.ts +39 -0
- package/dist/resolver.d.ts +49 -0
- package/dist/resolver.js +14 -0
- package/dist/scroll-spy-motion.d.ts +26 -0
- package/dist/sort-by-document-order.d.ts +23 -0
- package/dist/sync-calendar-focus-tab-stops.d.ts +2 -0
- package/dist/sync-segmented-control-item-order.d.ts +5 -0
- package/dist/sync-tabs-selection-tab-stops.d.ts +7 -0
- package/dist/sync-toggle-group-selection-tab-stops.d.ts +14 -0
- package/dist/typeahead-match.d.ts +15 -0
- package/dist/use-collapsible-content-hidden.d.ts +28 -0
- package/dist/use-controllable-state.d.ts +20 -0
- package/dist/use-dismissable-layer.d.ts +40 -0
- package/dist/use-floating.d.ts +38 -0
- package/dist/use-focus-scope.d.ts +34 -0
- package/dist/use-ghost-accordion.d.ts +5 -0
- package/dist/use-ghost-avatar.d.ts +28 -0
- package/dist/use-ghost-badge.d.ts +13 -0
- package/dist/use-ghost-breadcrumb.d.ts +19 -0
- package/dist/use-ghost-button.d.ts +18 -0
- package/dist/use-ghost-calendar.d.ts +3 -0
- package/dist/use-ghost-card.d.ts +15 -0
- package/dist/use-ghost-checkbox.d.ts +24 -0
- package/dist/use-ghost-collapsible.d.ts +8 -0
- package/dist/use-ghost-combobox.d.ts +65 -0
- package/dist/use-ghost-command-palette.d.ts +24 -0
- package/dist/use-ghost-context-menu.d.ts +14 -0
- package/dist/use-ghost-data-table.d.ts +55 -0
- package/dist/use-ghost-date-picker.d.ts +11 -0
- package/dist/use-ghost-dialog.d.ts +10 -0
- package/dist/use-ghost-drawer.d.ts +11 -0
- package/dist/use-ghost-dropdown-menu.d.ts +5 -0
- package/dist/use-ghost-empty-state.d.ts +18 -0
- package/dist/use-ghost-field-part-content.d.ts +15 -0
- package/dist/use-ghost-field.d.ts +10 -0
- package/dist/use-ghost-file-upload.d.ts +16 -0
- package/dist/use-ghost-hover-card.d.ts +8 -0
- package/dist/use-ghost-id.d.ts +6 -0
- package/dist/use-ghost-inline-alert.d.ts +20 -0
- package/dist/use-ghost-input.d.ts +29 -0
- package/dist/use-ghost-interactive-surface.d.ts +21 -0
- package/dist/use-ghost-kbd.d.ts +35 -0
- package/dist/use-ghost-link.d.ts +20 -0
- package/dist/use-ghost-menu-collection.d.ts +19 -0
- package/dist/use-ghost-menubar-menu.d.ts +3 -0
- package/dist/use-ghost-menubar.d.ts +10 -0
- package/dist/use-ghost-number-input.d.ts +63 -0
- package/dist/use-ghost-pagination.d.ts +22 -0
- package/dist/use-ghost-popover.d.ts +8 -0
- package/dist/use-ghost-progress.d.ts +33 -0
- package/dist/use-ghost-radio-group.d.ts +5 -0
- package/dist/use-ghost-scroll-area.d.ts +23 -0
- package/dist/use-ghost-scroll-spy.d.ts +25 -0
- package/dist/use-ghost-segmented-control.d.ts +6 -0
- package/dist/use-ghost-select.d.ts +52 -0
- package/dist/use-ghost-separator.d.ts +19 -0
- package/dist/use-ghost-skeleton.d.ts +19 -0
- package/dist/use-ghost-slider.d.ts +65 -0
- package/dist/use-ghost-spinner.d.ts +18 -0
- package/dist/use-ghost-switch.d.ts +39 -0
- package/dist/use-ghost-table.d.ts +70 -0
- package/dist/use-ghost-tabs.d.ts +5 -0
- package/dist/use-ghost-textarea.d.ts +44 -0
- package/dist/use-ghost-toast.d.ts +56 -0
- package/dist/use-ghost-toggle-group.d.ts +6 -0
- package/dist/use-ghost-toolbar.d.ts +23 -0
- package/dist/use-ghost-tooltip.d.ts +8 -0
- package/dist/use-ghost-tree.d.ts +14 -0
- package/dist/use-ghost-visually-hidden.d.ts +35 -0
- package/dist/use-inert-others.d.ts +20 -0
- package/dist/use-roving-focus.d.ts +20 -0
- package/dist/use-scroll-lock.d.ts +13 -0
- package/package.json +59 -4
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { type GhostToggleGroupItemElement, type GhostToggleGroupItemExposed } from './ghost-toggle-group.js';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
/** Tag name or component for the toggle control. */
|
|
4
|
+
as?: GhostToggleGroupItemElement;
|
|
5
|
+
/** Stable value for this item in the group model. */
|
|
6
|
+
value: string;
|
|
7
|
+
/** Disables toggling and roving focus for this item. */
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_template: () => {
|
|
11
|
+
__VLS_Slots: {
|
|
12
|
+
default?: (props: {}) => any;
|
|
13
|
+
};
|
|
14
|
+
__VLS_TemplateRefs: {
|
|
15
|
+
host: {} | null;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
19
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, GhostToggleGroupItemExposed, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
20
|
+
disabled: boolean;
|
|
21
|
+
as: GhostToggleGroupItemElement;
|
|
22
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
24
|
+
declare const _default: typeof __VLS_export;
|
|
25
|
+
export default _default;
|
|
26
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
27
|
+
new (): {
|
|
28
|
+
$slots: S;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { GhostToolbarDirection, GhostToolbarElement, GhostToolbarExposed, GhostToolbarOrientation } from './ghost-toolbar.js';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
orientation?: GhostToolbarOrientation;
|
|
4
|
+
loop?: boolean;
|
|
5
|
+
dir?: GhostToolbarDirection | undefined;
|
|
6
|
+
label?: string | undefined;
|
|
7
|
+
as?: GhostToolbarElement;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_template: () => {
|
|
10
|
+
__VLS_Slots: {
|
|
11
|
+
default?: (props: {}) => any;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
15
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, GhostToolbarExposed, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
16
|
+
label: string | undefined;
|
|
17
|
+
dir: GhostToolbarDirection | undefined;
|
|
18
|
+
as: GhostToolbarElement;
|
|
19
|
+
orientation: GhostToolbarOrientation;
|
|
20
|
+
loop: boolean;
|
|
21
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
23
|
+
declare const _default: typeof __VLS_export;
|
|
24
|
+
export default _default;
|
|
25
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
26
|
+
new (): {
|
|
27
|
+
$slots: S;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** Controlled open state. Omit for uncontrolled mode. */
|
|
3
|
+
open?: boolean | undefined;
|
|
4
|
+
/** Initial open state when `open` is omitted. */
|
|
5
|
+
defaultOpen?: boolean;
|
|
6
|
+
/** Milliseconds before showing after hover or focus begins. */
|
|
7
|
+
delayDuration?: number | undefined;
|
|
8
|
+
/** Milliseconds before hiding after hover/focus leaves the trigger and content. */
|
|
9
|
+
closeDelay?: number;
|
|
10
|
+
/** When `true`, hides immediately on pointer/focus leave and disables content hover. */
|
|
11
|
+
disableHoverableContent?: boolean;
|
|
12
|
+
};
|
|
13
|
+
type __VLS_Slots = {
|
|
14
|
+
default(props: {
|
|
15
|
+
open: boolean;
|
|
16
|
+
}): unknown;
|
|
17
|
+
};
|
|
18
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
19
|
+
"update:open": (open: boolean) => any;
|
|
20
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
21
|
+
"onUpdate:open"?: (open: boolean) => any;
|
|
22
|
+
}>, {
|
|
23
|
+
open: boolean | undefined;
|
|
24
|
+
defaultOpen: boolean;
|
|
25
|
+
closeDelay: number;
|
|
26
|
+
delayDuration: number | undefined;
|
|
27
|
+
disableHoverableContent: boolean;
|
|
28
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
29
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
30
|
+
declare const _default: typeof __VLS_export;
|
|
31
|
+
export default _default;
|
|
32
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
33
|
+
new (): {
|
|
34
|
+
$slots: S;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { GhostPortalTarget } from './ghost-portal.js';
|
|
2
|
+
import { type GhostTooltipContentElement, type GhostTooltipContentExposed, type GhostTooltipFlipOptions, type GhostTooltipOffsetOptions, type GhostTooltipPlacement, type GhostTooltipShiftOptions, type GhostTooltipStrategy } from './ghost-tooltip.js';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
/** Tag name or component rendered for the tooltip surface. */
|
|
5
|
+
as?: GhostTooltipContentElement;
|
|
6
|
+
/** Preferred placement relative to the trigger. */
|
|
7
|
+
placement?: GhostTooltipPlacement;
|
|
8
|
+
/** Distance or axis offsets passed to `useFloating`. */
|
|
9
|
+
offset?: GhostTooltipOffsetOptions | boolean | undefined;
|
|
10
|
+
/** Flip to an opposite side when overflowing the viewport or boundary. */
|
|
11
|
+
flip?: boolean | GhostTooltipFlipOptions;
|
|
12
|
+
/** Shift along the cross axis to keep the tooltip in view. */
|
|
13
|
+
shift?: boolean | GhostTooltipShiftOptions;
|
|
14
|
+
/** CSS positioning strategy passed to `useFloating`. */
|
|
15
|
+
strategy?: GhostTooltipStrategy;
|
|
16
|
+
/** Teleport content through `GhostPortal` when `true`, or render inline when `false`. */
|
|
17
|
+
portal?: boolean;
|
|
18
|
+
/** Teleport target passed to `GhostPortal` when `portal` is `true`. */
|
|
19
|
+
portalTo?: GhostPortalTarget;
|
|
20
|
+
};
|
|
21
|
+
declare const __VLS_template: () => {
|
|
22
|
+
__VLS_Slots: {
|
|
23
|
+
default?: (props: {}) => any;
|
|
24
|
+
};
|
|
25
|
+
__VLS_TemplateRefs: {
|
|
26
|
+
host: {} | null;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
30
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, GhostTooltipContentExposed, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
31
|
+
shift: boolean | GhostTooltipShiftOptions;
|
|
32
|
+
placement: import("@floating-ui/dom").Placement;
|
|
33
|
+
as: GhostTooltipContentElement;
|
|
34
|
+
strategy: import("@floating-ui/dom").Strategy;
|
|
35
|
+
offset: boolean | GhostTooltipOffsetOptions | undefined;
|
|
36
|
+
flip: boolean | GhostTooltipFlipOptions;
|
|
37
|
+
portal: boolean;
|
|
38
|
+
portalTo: GhostPortalTarget;
|
|
39
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
40
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
41
|
+
declare const _default: typeof __VLS_export;
|
|
42
|
+
export default _default;
|
|
43
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
44
|
+
new (): {
|
|
45
|
+
$slots: S;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type GhostTooltipProviderProps } from './ghost-tooltip-provider.js';
|
|
2
|
+
type __VLS_Slots = {
|
|
3
|
+
default(): unknown;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_base: import("vue").DefineComponent<GhostTooltipProviderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<GhostTooltipProviderProps> & Readonly<{}>, {
|
|
6
|
+
delayDuration: number;
|
|
7
|
+
skipDelayDuration: number;
|
|
8
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
11
|
+
export default _default;
|
|
12
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
13
|
+
new (): {
|
|
14
|
+
$slots: S;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { type GhostTooltipTriggerElement, type GhostTooltipTriggerExposed } from './ghost-tooltip.js';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
/** Tag name or component rendered for the trigger control. */
|
|
4
|
+
as?: GhostTooltipTriggerElement;
|
|
5
|
+
/** Prevents scheduling show on hover or focus when `true`. */
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_template: () => {
|
|
9
|
+
__VLS_Slots: {
|
|
10
|
+
default?: (props: {}) => any;
|
|
11
|
+
};
|
|
12
|
+
__VLS_TemplateRefs: {
|
|
13
|
+
host: {} | null;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
17
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, GhostTooltipTriggerExposed, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
18
|
+
disabled: boolean;
|
|
19
|
+
as: GhostTooltipTriggerElement;
|
|
20
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
22
|
+
declare const _default: typeof __VLS_export;
|
|
23
|
+
export default _default;
|
|
24
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
25
|
+
new (): {
|
|
26
|
+
$slots: S;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { type GhostTreeDirection, type GhostTreeElement, type GhostTreeExposed, type GhostTreeSelectionMode, type GhostTreeSelectPayload, type GhostTreeSlotProps, type GhostTreeTogglePayload, type GhostTreeValue } from './ghost-tree.js';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
/** Tag name or component rendered for the `role="tree"` container. */
|
|
4
|
+
as?: GhostTreeElement;
|
|
5
|
+
/** Single (`string | undefined`) or multiple (`string[]`) selection. */
|
|
6
|
+
selectionMode?: GhostTreeSelectionMode;
|
|
7
|
+
/** Controlled selection (`v-model`). Omit for uncontrolled mode. */
|
|
8
|
+
modelValue?: GhostTreeValue;
|
|
9
|
+
/** Initial uncontrolled selection. */
|
|
10
|
+
defaultValue?: GhostTreeValue;
|
|
11
|
+
/** Controlled expanded branch values (`v-model:expanded`). */
|
|
12
|
+
expanded?: string[] | undefined;
|
|
13
|
+
/** Initial expanded branch values when `expanded` is omitted. */
|
|
14
|
+
defaultExpanded?: string[];
|
|
15
|
+
/** In single mode, re-activating the selected node clears the selection. */
|
|
16
|
+
allowDeselect?: boolean;
|
|
17
|
+
/** Pointer clicks on a branch row also toggle expansion. */
|
|
18
|
+
expandOnClick?: boolean;
|
|
19
|
+
/** `ArrowDown` / `ArrowUp` wrap at the ends of the visible node list. */
|
|
20
|
+
loop?: boolean;
|
|
21
|
+
/** Explicit writing direction; otherwise inherited from `[dir]`. */
|
|
22
|
+
dir?: GhostTreeDirection | undefined;
|
|
23
|
+
/** Disables every interaction in the tree. */
|
|
24
|
+
disabled?: boolean;
|
|
25
|
+
};
|
|
26
|
+
type __VLS_Slots = {
|
|
27
|
+
default(props: GhostTreeSlotProps): unknown;
|
|
28
|
+
};
|
|
29
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, GhostTreeExposed, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
30
|
+
select: (payload: GhostTreeSelectPayload) => any;
|
|
31
|
+
toggle: (payload: GhostTreeTogglePayload) => any;
|
|
32
|
+
"update:modelValue": (value: GhostTreeValue) => any;
|
|
33
|
+
"update:expanded": (expanded: string[]) => any;
|
|
34
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
35
|
+
onSelect?: (payload: GhostTreeSelectPayload) => any;
|
|
36
|
+
onToggle?: (payload: GhostTreeTogglePayload) => any;
|
|
37
|
+
"onUpdate:modelValue"?: (value: GhostTreeValue) => any;
|
|
38
|
+
"onUpdate:expanded"?: (expanded: string[]) => any;
|
|
39
|
+
}>, {
|
|
40
|
+
dir: GhostTreeDirection | undefined;
|
|
41
|
+
disabled: boolean;
|
|
42
|
+
as: GhostTreeElement;
|
|
43
|
+
modelValue: GhostTreeValue;
|
|
44
|
+
defaultValue: GhostTreeValue;
|
|
45
|
+
expanded: string[] | undefined;
|
|
46
|
+
loop: boolean;
|
|
47
|
+
allowDeselect: boolean;
|
|
48
|
+
selectionMode: GhostTreeSelectionMode;
|
|
49
|
+
defaultExpanded: string[];
|
|
50
|
+
expandOnClick: boolean;
|
|
51
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
52
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
53
|
+
declare const _default: typeof __VLS_export;
|
|
54
|
+
export default _default;
|
|
55
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
56
|
+
new (): {
|
|
57
|
+
$slots: S;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type GhostTreeGroupElement, type GhostTreeGroupExposed } from './ghost-tree.js';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
/** Tag name or component rendered for the `role="group"` child container. */
|
|
4
|
+
as?: GhostTreeGroupElement;
|
|
5
|
+
/** Skips themed height transitions (`data-animation="off"`). */
|
|
6
|
+
disableAnimation?: boolean;
|
|
7
|
+
};
|
|
8
|
+
type __VLS_Slots = {
|
|
9
|
+
default(): unknown;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, GhostTreeGroupExposed, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
12
|
+
as: GhostTreeGroupElement;
|
|
13
|
+
disableAnimation: boolean;
|
|
14
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
16
|
+
declare const _default: typeof __VLS_export;
|
|
17
|
+
export default _default;
|
|
18
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
19
|
+
new (): {
|
|
20
|
+
$slots: S;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type GhostTreeItemElement, type GhostTreeItemExposed, type GhostTreeItemSlotProps } from './ghost-tree.js';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
/** Tag name or component rendered for the `role="treeitem"` node. */
|
|
4
|
+
as?: GhostTreeItemElement;
|
|
5
|
+
/** Unique, stable key used in `modelValue`, `expanded`, and focus tracking. */
|
|
6
|
+
value: string;
|
|
7
|
+
/** Disables selection, expansion, and roving focus for this node only. */
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
/** Explicit typeahead label; defaults to the trigger or own text. */
|
|
10
|
+
textValue?: string | undefined;
|
|
11
|
+
};
|
|
12
|
+
type __VLS_Slots = {
|
|
13
|
+
default(props: GhostTreeItemSlotProps): unknown;
|
|
14
|
+
};
|
|
15
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, GhostTreeItemExposed, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
16
|
+
disabled: boolean;
|
|
17
|
+
as: GhostTreeItemElement;
|
|
18
|
+
textValue: string | undefined;
|
|
19
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
20
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
21
|
+
declare const _default: typeof __VLS_export;
|
|
22
|
+
export default _default;
|
|
23
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
24
|
+
new (): {
|
|
25
|
+
$slots: S;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type GhostTreeTriggerAction, type GhostTreeTriggerElement, type GhostTreeTriggerExposed, type GhostTreeTriggerSlotProps } from './ghost-tree.js';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
/** Tag name or component for the non-focusable row or disclosure target. */
|
|
4
|
+
as?: GhostTreeTriggerElement;
|
|
5
|
+
/** Pointer click behavior: select and toggle, toggle only, or select only. */
|
|
6
|
+
action?: GhostTreeTriggerAction;
|
|
7
|
+
/** Local disable flag, combined with the item and root `disabled`. */
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_Slots = {
|
|
11
|
+
default(props: GhostTreeTriggerSlotProps): unknown;
|
|
12
|
+
};
|
|
13
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, GhostTreeTriggerExposed, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
14
|
+
disabled: boolean;
|
|
15
|
+
as: GhostTreeTriggerElement;
|
|
16
|
+
action: GhostTreeTriggerAction;
|
|
17
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
19
|
+
declare const _default: typeof __VLS_export;
|
|
20
|
+
export default _default;
|
|
21
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
22
|
+
new (): {
|
|
23
|
+
$slots: S;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { GhostVisuallyHiddenProps } from './ghost-visually-hidden.js';
|
|
2
|
+
declare const __VLS_template: () => {
|
|
3
|
+
__VLS_Slots: {
|
|
4
|
+
default?: (props: {}) => any;
|
|
5
|
+
};
|
|
6
|
+
};
|
|
7
|
+
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
8
|
+
declare const __VLS_base: import("vue").DefineComponent<GhostVisuallyHiddenProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<GhostVisuallyHiddenProps> & Readonly<{}>, {
|
|
9
|
+
as: import("./ghost-visually-hidden.js").GhostVisuallyHiddenElement;
|
|
10
|
+
focusable: boolean;
|
|
11
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
14
|
+
export default _default;
|
|
15
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
16
|
+
new (): {
|
|
17
|
+
$slots: S;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** Direct-child accordion headers only; excludes triggers inside nested accordions. */
|
|
2
|
+
export declare const DIRECT_ACCORDION_TRIGGER_SELECTOR = ":scope > [data-part=\"item\"] > [data-part=\"header\"] > [data-part=\"trigger\"]";
|
|
3
|
+
export declare function getDirectAccordionTriggers(root: HTMLElement): HTMLElement[];
|
|
4
|
+
export declare function isDirectAccordionTrigger(root: HTMLElement, target: EventTarget | null): target is HTMLElement;
|
|
5
|
+
/** Headers that participate in accordion arrow-key navigation (native disabled only). */
|
|
6
|
+
export declare function isAccordionHeaderNavigable(trigger: HTMLElement): boolean;
|
|
7
|
+
export declare function focusFirstEnabledAccordionTrigger(root: HTMLElement, options?: FocusOptions): boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Optional APG header keys among direct triggers only; does not mutate tabindex.
|
|
10
|
+
*/
|
|
11
|
+
export declare function handleAccordionHeaderKeydown(event: KeyboardEvent, root: HTMLElement): void;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type CalendarDate, type DateDuration, type DateValue } from '@internationalized/date';
|
|
2
|
+
declare const WEEK_START_NAMES: readonly ["sun", "mon", "tue", "wed", "thu", "fri", "sat"];
|
|
3
|
+
export type CalendarWeekStartName = (typeof WEEK_START_NAMES)[number];
|
|
4
|
+
/** Map 0–6 (Sunday-based) to `@internationalized/date` week-start ids. */
|
|
5
|
+
export declare function resolveWeekStartName(weekStartsOn: number | undefined): CalendarWeekStartName | undefined;
|
|
6
|
+
/** Inclusive grid span for a month (typically 42 cells). */
|
|
7
|
+
export declare function getMonthGridDates(visibleMonth: CalendarDate, locale: string, weekStartsOn: number | undefined): CalendarDate[];
|
|
8
|
+
export declare function chunkWeekRows(dates: CalendarDate[]): CalendarDate[][];
|
|
9
|
+
export declare function addCalendarDuration(date: CalendarDate, duration: DateDuration): CalendarDate;
|
|
10
|
+
/** Normalize library date values to concrete `CalendarDate` instances. */
|
|
11
|
+
export declare function toCalendarDate(date: DateValue): CalendarDate;
|
|
12
|
+
export declare function compareCalendarDate(left: CalendarDate, right: CalendarDate): number;
|
|
13
|
+
export declare function isCalendarSameDay(left: CalendarDate | undefined, right: CalendarDate | undefined): boolean;
|
|
14
|
+
export declare function isCalendarSameMonth(date: CalendarDate, month: CalendarDate): boolean;
|
|
15
|
+
export declare function normalizeVisibleMonth(date: CalendarDate): CalendarDate;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { CalendarDate } from '@internationalized/date';
|
|
2
|
+
/** ECMA `weekInfo.firstDay` (1=Mon … 7=Sun) to Sunday-based 0–6. */
|
|
3
|
+
export declare function resolveLocaleWeekStart(locale: string): number;
|
|
4
|
+
/** Weekday labels for the column header row (short, locale-aware). */
|
|
5
|
+
export declare function formatWeekdayLabels(locale: string, weekStartsOn: number | undefined): string[];
|
|
6
|
+
export declare function formatMonthYearLabel(month: CalendarDate, locale: string): string;
|
|
7
|
+
export declare function formatCalendarDateLabel(date: CalendarDate, locale: string): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CalendarDate, parseDate } from '@internationalized/date';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type GhostCommandPaletteContext } from './ghost-command-palette.js';
|
|
2
|
+
/**
|
|
3
|
+
* Injects the palette context or throws a consumer-facing error naming the
|
|
4
|
+
* part. Every `GhostCommandPalette*` part requires the root.
|
|
5
|
+
*/
|
|
6
|
+
export declare function injectCommandPaletteContext(partName: string): GhostCommandPaletteContext;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import type { DataTableControlLabelOptions, DataTableExpandButtonOptions, DataTableExpandButtonProps, DataTableHeaderCellProps, DataTableInteractionState, DataTableRowId, DataTableSelectionCheckboxProps, DataTableSortButtonProps, UseGhostDataTableReturn } from './ghost-data-table.js';
|
|
2
|
+
/**
|
|
3
|
+
* Attributes for a column header cell (`<th>`): `scope="col"`, plus
|
|
4
|
+
* `aria-sort` and the `data-sort` styling hook on the sorted column only.
|
|
5
|
+
* Phase one sorts one column at a time, so every other header omits
|
|
6
|
+
* `aria-sort` rather than announcing `none`.
|
|
7
|
+
*/
|
|
8
|
+
export declare function getDataTableHeaderCellProps(table: DataTableInteractionState, columnId: string): DataTableHeaderCellProps;
|
|
9
|
+
/**
|
|
10
|
+
* Attributes for the sort `<button>` inside a header cell. `aria-label`
|
|
11
|
+
* (from `options.label`) names the button; omit it when the button's visible
|
|
12
|
+
* text is the name. The button never carries `aria-sort`: the sort state
|
|
13
|
+
* belongs to its `<th>` ({@link getDataTableHeaderCellProps}). Disabled while
|
|
14
|
+
* the table is disabled or the column cannot sort.
|
|
15
|
+
*/
|
|
16
|
+
export declare function getDataTableSortButtonProps(table: DataTableInteractionState, columnId: string, options?: DataTableControlLabelOptions): DataTableSortButtonProps;
|
|
17
|
+
/**
|
|
18
|
+
* Props for a row `GhostCheckbox`. `GhostCheckbox` forwards `aria-label` to
|
|
19
|
+
* its native `<input type="checkbox">`, the focusable control. A selection
|
|
20
|
+
* cell has no visible text, so pass `options.label` (for example
|
|
21
|
+
* `Select invoice inv-2`). Bind `:model-value` and `@update:model-value`
|
|
22
|
+
* from the row model yourself.
|
|
23
|
+
*/
|
|
24
|
+
export declare function getDataTableRowSelectionCheckboxProps(table: DataTableInteractionState, _rowId: DataTableRowId, options?: DataTableControlLabelOptions): DataTableSelectionCheckboxProps;
|
|
25
|
+
/**
|
|
26
|
+
* Props for the header select-all `GhostCheckbox`. Pair it with
|
|
27
|
+
* `headerSelectionState` for `model-value` and `indeterminate`. The checkbox
|
|
28
|
+
* label does not name its column: give the `<th>` its own name too
|
|
29
|
+
* (`aria-label` or visible text) so the header cell is never empty.
|
|
30
|
+
*/
|
|
31
|
+
export declare function getDataTableHeaderSelectionCheckboxProps(table: DataTableInteractionState, options?: DataTableControlLabelOptions): DataTableSelectionCheckboxProps;
|
|
32
|
+
/**
|
|
33
|
+
* Attributes for a row expand `<button>`: `type="button"`, `aria-expanded`,
|
|
34
|
+
* and `aria-controls` pointing at `options.detailRowId` while expanded (the
|
|
35
|
+
* detail row is unmounted while collapsed, so the reference never dangles).
|
|
36
|
+
* Native buttons activate on `Enter` and `Space`. `options.id` is the focus
|
|
37
|
+
* target the root uses when the detail row collapses.
|
|
38
|
+
*/
|
|
39
|
+
export declare function getDataTableRowExpandButtonProps(table: DataTableInteractionState, rowId: DataTableRowId, options?: DataTableExpandButtonOptions): DataTableExpandButtonProps;
|
|
40
|
+
export interface DataTableDetailRowFocusOptions {
|
|
41
|
+
detailRowId: (rowId: DataTableRowId) => string;
|
|
42
|
+
expandButtonId: (rowId: DataTableRowId) => string;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Focus on collapse (spec "Accessibility contract"): when a rendered detail
|
|
46
|
+
* row goes away while focus is inside it (its own toggle, a programmatic
|
|
47
|
+
* collapse, or `allowMultipleExpanded: false` closing it), move focus to that
|
|
48
|
+
* row's expand button instead of letting the browser drop it on `<body>`.
|
|
49
|
+
*
|
|
50
|
+
* The watcher is `flush: 'pre'`, so it runs before the root re-renders and
|
|
51
|
+
* the old detail row is still in the DOM to test `contains(activeElement)`.
|
|
52
|
+
* Focus moves after the flush, once the row is gone. When the data row left
|
|
53
|
+
* the view too (a filter or page change), its button no longer exists and
|
|
54
|
+
* focus is left alone: there is no control to return to. Runs only in the
|
|
55
|
+
* browser; the watcher never fires during SSR.
|
|
56
|
+
*/
|
|
57
|
+
export declare function useDataTableDetailRowFocus<TData>(table: UseGhostDataTableReturn<TData>, ids: DataTableDetailRowFocusOptions): void;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { DataTableColumnDef, DataTableColumnFilter, DataTableColumnSort, DataTableRow } from './ghost-data-table.js';
|
|
2
|
+
export declare function hasAccessor<TData>(column: DataTableColumnDef<TData>): boolean;
|
|
3
|
+
export declare function getCellValue<TData>(column: DataTableColumnDef<TData>, row: TData, rowIndex: number): unknown;
|
|
4
|
+
/** Sorting needs a value source: an accessor or a column `sortFn`. */
|
|
5
|
+
export declare function isColumnSortable<TData>(column: DataTableColumnDef<TData>): boolean;
|
|
6
|
+
/**
|
|
7
|
+
* Global-filter participation (default filtering contract): the column has an
|
|
8
|
+
* accessor and `enableColumnFilter !== false`. The global filter never calls
|
|
9
|
+
* `filterFn`; that predicate only serves the column's own filter entry.
|
|
10
|
+
*/
|
|
11
|
+
export declare function participatesInGlobalFilter<TData>(column: DataTableColumnDef<TData>): boolean;
|
|
12
|
+
/** `undefined`, `null`, and `''` clear a global or column filter. */
|
|
13
|
+
export declare function isActiveFilterValue(value: unknown): boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Default comparator for present (non-null) values: numeric subtract,
|
|
16
|
+
* `Date#getTime`, locale-aware strings; mixed types compare as strings.
|
|
17
|
+
*/
|
|
18
|
+
export declare function compareValues(a: unknown, b: unknown): number;
|
|
19
|
+
/**
|
|
20
|
+
* Stable single-column sort. Returns `rows` itself when there is nothing to
|
|
21
|
+
* sort so downstream computeds keep their reference. `null` and `undefined`
|
|
22
|
+
* are both treated as missing for `sortUndefined` (the filtering contract
|
|
23
|
+
* treats them alike too). `'first'` / `'last'` are absolute positions that do
|
|
24
|
+
* not flip with `desc`; `false` compares missing values as the smallest value.
|
|
25
|
+
*/
|
|
26
|
+
export declare function sortRows<TData>(rows: readonly DataTableRow<TData>[], sort: DataTableColumnSort | undefined, column: DataTableColumnDef<TData> | undefined): readonly DataTableRow<TData>[];
|
|
27
|
+
/**
|
|
28
|
+
* Default filtering contract (approved, DataTable spec): global filter first
|
|
29
|
+
* (OR across participating columns), then active column filters (AND).
|
|
30
|
+
* Returns `rows` itself when no filter is active.
|
|
31
|
+
*/
|
|
32
|
+
export declare function filterRows<TData>(rows: readonly DataTableRow<TData>[], columns: readonly DataTableColumnDef<TData>[], columnsById: ReadonlyMap<string, DataTableColumnDef<TData>>, globalFilter: unknown, columnFilters: readonly DataTableColumnFilter[]): readonly DataTableRow<TData>[];
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { type FunctionalComponent, type VNodeChild } from 'vue';
|
|
2
|
+
import type { DataTableHeaderCellProps, DataTableRowId, DataTableRowProps, DataTableSlotRow, DataTableSortButtonProps, DataTableTableRootProps, GhostDataTableSlotProps } from './ghost-data-table.js';
|
|
3
|
+
export interface DataTableRenderedHeader {
|
|
4
|
+
id: string;
|
|
5
|
+
/** Never empty: falls back to the column id, so no `<th>` is blank. */
|
|
6
|
+
label: string;
|
|
7
|
+
canSort: boolean;
|
|
8
|
+
headerCellProps: DataTableHeaderCellProps;
|
|
9
|
+
sortButtonProps: DataTableSortButtonProps;
|
|
10
|
+
toggleSort: () => void;
|
|
11
|
+
}
|
|
12
|
+
export interface DataTableRenderedCell {
|
|
13
|
+
columnId: string;
|
|
14
|
+
/** Built on demand, so `value` is read only when a slot renders it. */
|
|
15
|
+
slotProps: () => Record<string, unknown>;
|
|
16
|
+
/** Column `cell` hook output, or the display string of the value. */
|
|
17
|
+
render: () => VNodeChild;
|
|
18
|
+
}
|
|
19
|
+
export type DataTableRenderedRow<TRowExtra> = TRowExtra & {
|
|
20
|
+
rowId: DataTableRowId;
|
|
21
|
+
rowProps: DataTableRowProps;
|
|
22
|
+
cells: DataTableRenderedCell[];
|
|
23
|
+
};
|
|
24
|
+
export interface DataTableRenderedTable<TRowExtra> {
|
|
25
|
+
tableRootProps: DataTableTableRootProps;
|
|
26
|
+
headers: DataTableRenderedHeader[];
|
|
27
|
+
rows: DataTableRenderedRow<TRowExtra>[];
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Maps root bindings onto rendered headers and rows. `ids` picks and orders
|
|
31
|
+
* columns (every root column when omitted). `extendRow` adds renderer-specific
|
|
32
|
+
* fields to each body row while the row's typed bindings are still in scope.
|
|
33
|
+
*/
|
|
34
|
+
export declare function renderDataTable<TData, TRowExtra>(bindings: GhostDataTableSlotProps<TData>, ids: readonly string[] | undefined, extendRow: (row: DataTableSlotRow<TData>) => TRowExtra): DataTableRenderedTable<TRowExtra>;
|
|
35
|
+
type DataTableRuntimeSlots = Readonly<Record<string, ((props: Record<string, unknown>) => VNodeChild) | undefined>>;
|
|
36
|
+
export declare function renderDataTableCell(slots: DataTableRuntimeSlots, cell: DataTableRenderedCell): VNodeChild;
|
|
37
|
+
export declare const DataTableCellContent: FunctionalComponent<{
|
|
38
|
+
render: () => VNodeChild;
|
|
39
|
+
}>;
|
|
40
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type ComputedRef, type MaybeRefOrGetter } from 'vue';
|
|
2
|
+
import type { DataTableColumnDef, GhostDataTableSlotProps, UseGhostDataTableReturn } from './ghost-data-table.js';
|
|
3
|
+
export interface DataTableSlotBindingOptions<TData> {
|
|
4
|
+
columns: MaybeRefOrGetter<readonly DataTableColumnDef<TData>[]>;
|
|
5
|
+
/** SSR-stable prefix for detail row ids (`useId`-based). */
|
|
6
|
+
baseId: MaybeRefOrGetter<string>;
|
|
7
|
+
ariaLabel?: MaybeRefOrGetter<string | undefined>;
|
|
8
|
+
ariaLabelledby?: MaybeRefOrGetter<string | undefined>;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Builds the GhostDataTable default-slot bindings on top of a
|
|
12
|
+
* {@link useGhostDataTable} instance. Internal to the root component; the
|
|
13
|
+
* control prop getters delegate to the public interaction helpers in
|
|
14
|
+
* `data-table-interaction.ts` and add the root's generated ids, and this is
|
|
15
|
+
* where focus-on-collapse is installed for the expand buttons.
|
|
16
|
+
*
|
|
17
|
+
* Header models depend only on columns and sorting, so the head stays mounted
|
|
18
|
+
* when the body is empty. Cell contexts are cached per row model, so toggling
|
|
19
|
+
* selection or expansion never re-runs sort, filter, or accessor callbacks.
|
|
20
|
+
*/
|
|
21
|
+
export declare function useDataTableSlotBindings<TData>(table: UseGhostDataTableReturn<TData>, options: DataTableSlotBindingOptions<TData>): ComputedRef<GhostDataTableSlotProps<TData>>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { CalendarDate } from '@internationalized/date';
|
|
2
|
+
import { type PropType } from 'vue';
|
|
3
|
+
/**
|
|
4
|
+
* Internal renderless child of `GhostCalendar` inside
|
|
5
|
+
* `GhostDatePickerCalendar`. Calendar context is only visible to Calendar
|
|
6
|
+
* descendants, so this bridge seeds the initial roving focus date and hands
|
|
7
|
+
* the Calendar's internal focus-target accessor to the picker, which uses it
|
|
8
|
+
* as the dialog's initial focus target (no timers or DOM nesting queries).
|
|
9
|
+
*
|
|
10
|
+
* The pure annotation lets bundlers drop this module-level `defineComponent`
|
|
11
|
+
* call from imports that never render a DatePicker.
|
|
12
|
+
*/
|
|
13
|
+
export declare const DatePickerCalendarBridge: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
14
|
+
focusDate: {
|
|
15
|
+
type: PropType<CalendarDate | undefined>;
|
|
16
|
+
default: undefined;
|
|
17
|
+
};
|
|
18
|
+
}>, () => null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
19
|
+
focusDate: {
|
|
20
|
+
type: PropType<CalendarDate | undefined>;
|
|
21
|
+
default: undefined;
|
|
22
|
+
};
|
|
23
|
+
}>> & Readonly<{}>, {
|
|
24
|
+
focusDate: CalendarDate | undefined;
|
|
25
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Internal date-only value helpers for GhostDatePicker: strict ISO text,
|
|
3
|
+
* runtime shape checks, and value identity. Not exported from the barrel.
|
|
4
|
+
*/
|
|
5
|
+
import { CalendarDate } from '@internationalized/date';
|
|
6
|
+
import type { GhostDatePickerRange, GhostDatePickerSelectionMode } from './ghost-date-picker.js';
|
|
7
|
+
/**
|
|
8
|
+
* Public values are Gregorian date-only `CalendarDate`s in years 0001–9999.
|
|
9
|
+
* `instanceof` rejects `CalendarDateTime` / `ZonedDateTime` (separate classes),
|
|
10
|
+
* JavaScript `Date`, and strings that reach the picker from untyped callers.
|
|
11
|
+
*/
|
|
12
|
+
export declare function isPickerDate(value: unknown): value is CalendarDate;
|
|
13
|
+
export declare function isPickerRange(value: unknown): value is GhostDatePickerRange;
|
|
14
|
+
/**
|
|
15
|
+
* Whether `value` has the shape `mode` requires. The mode is never inferred
|
|
16
|
+
* from the value; a mismatch is a `configuration` error.
|
|
17
|
+
*/
|
|
18
|
+
export declare function hasValidShape(value: unknown, mode: GhostDatePickerSelectionMode): boolean;
|
|
19
|
+
/** ISO `YYYY-MM-DD`, zero-padded to four year digits. */
|
|
20
|
+
export declare function toIsoDate(date: CalendarDate): string;
|
|
21
|
+
/**
|
|
22
|
+
* Strict ISO parser: exactly `YYYY-MM-DD`, no whitespace, zero-padded, year
|
|
23
|
+
* 0001–9999, and a real calendar day. `CalendarDate` silently constrains
|
|
24
|
+
* impossible days (Feb 30 becomes Feb 29/28), so the day is range-checked
|
|
25
|
+
* against the month before constructing the value.
|
|
26
|
+
*/
|
|
27
|
+
export declare function parseIsoDate(text: string): CalendarDate | null;
|
|
28
|
+
/**
|
|
29
|
+
* Stable identity key used to suppress duplicate `update:modelValue` events
|
|
30
|
+
* and to detect material external changes. Wrong-shaped values get a key that
|
|
31
|
+
* never equals a valid one.
|
|
32
|
+
*/
|
|
33
|
+
export declare function valueKey(value: unknown): string;
|