@soybeanjs/headless 0.0.7 → 0.0.9
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/dist/components/accordion/accordion-content.vue.d.ts +2 -2
- package/dist/components/accordion/accordion-header.vue.d.ts +2 -2
- package/dist/components/accordion/accordion-item.vue.d.ts +5 -5
- package/dist/components/accordion/accordion-root.vue.d.ts +4 -4
- package/dist/components/accordion/accordion-trigger.js +1 -1
- package/dist/components/accordion/accordion-trigger.vue.d.ts +2 -2
- package/dist/components/alert/alert-close.vue.d.ts +2 -2
- package/dist/components/alert/alert-content.vue.d.ts +2 -2
- package/dist/components/alert/alert-description.vue.d.ts +2 -2
- package/dist/components/alert/alert-root.vue.d.ts +4 -4
- package/dist/components/alert/alert-title.vue.d.ts +2 -2
- package/dist/components/alert-dialog/alert-dialog-close.vue.d.ts +2 -2
- package/dist/components/alert-dialog/alert-dialog-content.js +1 -1
- package/dist/components/alert-dialog/alert-dialog-content.vue.d.ts +6 -6
- package/dist/components/alert-dialog/alert-dialog-root.vue.d.ts +4 -4
- package/dist/components/arrow/arrow.js +1 -1
- package/dist/components/arrow/arrow.vue.d.ts +2 -18
- package/dist/components/arrow/index.d.ts +1 -2
- package/dist/components/arrow/index.js +1 -1
- package/dist/components/arrow/types.d.ts +1 -15
- package/dist/components/aspect-ratio/aspect-ratio.vue.d.ts +3 -3
- package/dist/components/avatar/avatar-fallback.vue.d.ts +2 -2
- package/dist/components/avatar/avatar-image.vue.d.ts +4 -4
- package/dist/components/avatar/avatar-root.vue.d.ts +2 -2
- package/dist/components/badge/badge-content.vue.d.ts +2 -2
- package/dist/components/badge/badge-root.vue.d.ts +4 -4
- package/dist/components/breadcrumb/breadcrumb-ellipsis.vue.d.ts +2 -2
- package/dist/components/breadcrumb/breadcrumb-item.vue.d.ts +2 -2
- package/dist/components/breadcrumb/breadcrumb-link.vue.d.ts +4 -4
- package/dist/components/breadcrumb/breadcrumb-list.vue.d.ts +2 -2
- package/dist/components/breadcrumb/breadcrumb-page.vue.d.ts +2 -2
- package/dist/components/breadcrumb/breadcrumb-root.vue.d.ts +2 -2
- package/dist/components/breadcrumb/breadcrumb-separator.vue.d.ts +2 -2
- package/dist/components/button/button.vue.d.ts +5 -5
- package/dist/components/card/card-content.vue.d.ts +2 -2
- package/dist/components/card/card-description.vue.d.ts +2 -2
- package/dist/components/card/card-footer.vue.d.ts +2 -2
- package/dist/components/card/card-header.vue.d.ts +2 -2
- package/dist/components/card/card-root.vue.d.ts +2 -2
- package/dist/components/card/card-title-root.vue.d.ts +2 -2
- package/dist/components/card/card-title.vue.d.ts +2 -2
- package/dist/components/checkbox/checkbox-control.vue.d.ts +2 -2
- package/dist/components/checkbox/checkbox-group-root.vue.d.ts +4 -4
- package/dist/components/checkbox/checkbox-indicator.vue.d.ts +4 -4
- package/dist/components/checkbox/checkbox-label.vue.d.ts +2 -2
- package/dist/components/checkbox/checkbox-root.vue.d.ts +4 -4
- package/dist/components/collapsible/collapsible-content.vue.d.ts +2 -2
- package/dist/components/collapsible/collapsible-root.vue.d.ts +6 -6
- package/dist/components/collapsible/collapsible-trigger.js +1 -1
- package/dist/components/collapsible/collapsible-trigger.vue.d.ts +4 -4
- package/dist/components/collapsible/types.d.ts +4 -1
- package/dist/components/config-provider/config-provider.vue.d.ts +3 -3
- package/dist/components/context-menu/context-menu-content.js +1 -1
- package/dist/components/context-menu/context-menu-content.vue.d.ts +8 -8
- package/dist/components/context-menu/context-menu-root.vue.d.ts +4 -4
- package/dist/components/context-menu/context-menu-trigger.vue.d.ts +6 -6
- package/dist/components/context-menu/index.d.ts +3 -4
- package/dist/components/dialog/dialog-close.vue.d.ts +2 -2
- package/dist/components/dialog/dialog-content-impl.js +1 -1
- package/dist/components/dialog/dialog-content.js +1 -1
- package/dist/components/dialog/dialog-content.vue.d.ts +8 -8
- package/dist/components/dialog/dialog-description.vue.d.ts +2 -2
- package/dist/components/dialog/dialog-footer.vue.d.ts +2 -2
- package/dist/components/dialog/dialog-header.vue.d.ts +2 -2
- package/dist/components/dialog/dialog-overlay.vue.d.ts +2 -2
- package/dist/components/dialog/dialog-root.vue.d.ts +4 -4
- package/dist/components/dialog/dialog-title.vue.d.ts +2 -2
- package/dist/components/dialog/dialog-trigger.vue.d.ts +2 -2
- package/dist/components/dialog/types.d.ts +1 -1
- package/dist/components/dropdown-menu/context.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-content.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-content.vue.d.ts +8 -8
- package/dist/components/dropdown-menu/dropdown-menu-root.vue.d.ts +4 -4
- package/dist/components/dropdown-menu/dropdown-menu-trigger.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-trigger.vue.d.ts +4 -4
- package/dist/components/dropdown-menu/index.d.ts +3 -4
- package/dist/components/form/form-description.vue.d.ts +2 -2
- package/dist/components/form/form-error.vue.d.ts +2 -2
- package/dist/components/form/form-field-array.vue.d.ts +2 -2
- package/dist/components/form/form-field.vue.d.ts +2 -2
- package/dist/components/form/form-label.vue.d.ts +2 -2
- package/dist/components/input/input-control.vue.d.ts +2 -2
- package/dist/components/input/input-root.vue.d.ts +4 -4
- package/dist/components/kbd/kbd.vue.d.ts +2 -2
- package/dist/components/label/label.vue.d.ts +2 -2
- package/dist/components/layout/layout-footer.vue.d.ts +2 -2
- package/dist/components/layout/layout-header.vue.d.ts +2 -2
- package/dist/components/layout/layout-main.vue.d.ts +2 -2
- package/dist/components/layout/layout-mobile.vue.d.ts +4 -4
- package/dist/components/layout/layout-rail.vue.d.ts +2 -2
- package/dist/components/layout/layout-root.vue.d.ts +4 -4
- package/dist/components/layout/layout-sidebar.vue.d.ts +5 -5
- package/dist/components/layout/layout-tab.vue.d.ts +2 -2
- package/dist/components/layout/layout-trigger.vue.d.ts +2 -2
- package/dist/components/link/index.d.ts +2 -2
- package/dist/components/link/link.js +1 -1
- package/dist/components/link/link.vue.d.ts +6 -5
- package/dist/components/link/types.d.ts +6 -1
- package/dist/components/list/list-content.vue.d.ts +2 -2
- package/dist/components/list/list-description.vue.d.ts +2 -2
- package/dist/components/list/list-item.vue.d.ts +2 -2
- package/dist/components/list/list-root.vue.d.ts +2 -2
- package/dist/components/list/list-title.vue.d.ts +2 -2
- package/dist/components/listbox/listbox-content.vue.d.ts +2 -2
- package/dist/components/listbox/listbox-filter.vue.d.ts +6 -6
- package/dist/components/listbox/listbox-group-label.vue.d.ts +2 -2
- package/dist/components/listbox/listbox-group.vue.d.ts +2 -2
- package/dist/components/listbox/listbox-item-indicator.vue.d.ts +4 -4
- package/dist/components/listbox/listbox-item.vue.d.ts +5 -5
- package/dist/components/listbox/listbox-root.vue.d.ts +8 -8
- package/dist/components/listbox/listbox-virtualizer.vue.d.ts +2 -2
- package/dist/components/menu/context.js +1 -1
- package/dist/components/menu/index.d.ts +3 -4
- package/dist/components/menu/menu-checkbox-group.vue.d.ts +4 -4
- package/dist/components/menu/menu-checkbox-item.vue.d.ts +6 -6
- package/dist/components/menu/menu-content-impl.js +1 -1
- package/dist/components/menu/menu-content.js +1 -1
- package/dist/components/menu/menu-content.vue.d.ts +11 -11
- package/dist/components/menu/menu-group-label.vue.d.ts +2 -2
- package/dist/components/menu/menu-group.vue.d.ts +2 -2
- package/dist/components/menu/menu-item-indicator.vue.d.ts +4 -4
- package/dist/components/menu/menu-item.vue.d.ts +6 -6
- package/dist/components/menu/menu-radio-group.vue.d.ts +4 -4
- package/dist/components/menu/menu-radio-item.vue.d.ts +6 -6
- package/dist/components/menu/menu-root.js +1 -1
- package/dist/components/menu/menu-root.vue.d.ts +4 -4
- package/dist/components/menu/menu-sub-content.js +1 -1
- package/dist/components/menu/menu-sub-content.vue.d.ts +10 -10
- package/dist/components/menu/menu-sub-trigger.js +1 -1
- package/dist/components/menu/menu-sub-trigger.vue.d.ts +4 -4
- package/dist/components/menu/menu-sub.js +1 -1
- package/dist/components/menu/menu-sub.vue.d.ts +4 -4
- package/dist/components/menu/shared.js +1 -1
- package/dist/components/menu/types.d.ts +7 -12
- package/dist/components/navigation-menu/navigation-menu-content-impl.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-content.vue.d.ts +6 -6
- package/dist/components/navigation-menu/navigation-menu-indicator.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-indicator.vue.d.ts +2 -2
- package/dist/components/navigation-menu/navigation-menu-item.vue.d.ts +2 -2
- package/dist/components/navigation-menu/navigation-menu-link.vue.d.ts +6 -6
- package/dist/components/navigation-menu/navigation-menu-list.vue.d.ts +2 -2
- package/dist/components/navigation-menu/navigation-menu-root.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-root.vue.d.ts +7 -6
- package/dist/components/navigation-menu/navigation-menu-sub-list.vue.d.ts +2 -2
- package/dist/components/navigation-menu/navigation-menu-trigger.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-trigger.vue.d.ts +4 -4
- package/dist/components/navigation-menu/navigation-menu-viewport.vue.d.ts +3 -3
- package/dist/components/navigation-menu/types.d.ts +3 -1
- package/dist/components/number-input/number-input-control.vue.d.ts +2 -2
- package/dist/components/number-input/number-input-decrement.vue.d.ts +4 -4
- package/dist/components/number-input/number-input-increment.vue.d.ts +4 -4
- package/dist/components/number-input/number-input-root.vue.d.ts +4 -4
- package/dist/components/pagination/pagination-ellipsis.vue.d.ts +2 -2
- package/dist/components/pagination/pagination-first.vue.d.ts +2 -2
- package/dist/components/pagination/pagination-last.vue.d.ts +2 -2
- package/dist/components/pagination/pagination-list-item.vue.d.ts +2 -2
- package/dist/components/pagination/pagination-list.vue.d.ts +2 -2
- package/dist/components/pagination/pagination-next.vue.d.ts +2 -2
- package/dist/components/pagination/pagination-prev.vue.d.ts +2 -2
- package/dist/components/pagination/pagination-root.vue.d.ts +4 -4
- package/dist/components/popover/context.js +1 -1
- package/dist/components/popover/index.d.ts +7 -7
- package/dist/components/popover/index.js +1 -1
- package/dist/components/popover/popover-anchor.vue.d.ts +2 -2
- package/dist/components/popover/popover-close.vue.d.ts +4 -4
- package/dist/components/popover/popover-popup.js +1 -0
- package/dist/components/popover/popover-popup.vue.d.ts +18 -0
- package/dist/components/popover/popover-positioner-impl.js +1 -0
- package/dist/components/popover/popover-positioner.js +1 -0
- package/dist/components/popover/{popover-content.vue.d.ts → popover-positioner.vue.d.ts} +10 -10
- package/dist/components/popover/popover-root.js +1 -1
- package/dist/components/popover/popover-root.vue.d.ts +5 -4
- package/dist/components/popover/popover-trigger.js +1 -1
- package/dist/components/popover/popover-trigger.vue.d.ts +4 -4
- package/dist/components/popover/types.d.ts +8 -7
- package/dist/components/popper/context.d.ts +6 -16
- package/dist/components/popper/context.js +1 -1
- package/dist/components/popper/index.d.ts +6 -6
- package/dist/components/popper/index.js +1 -1
- package/dist/components/popper/popper-anchor.vue.d.ts +2 -2
- package/dist/components/popper/popper-arrow.js +1 -1
- package/dist/components/popper/popper-arrow.vue.d.ts +3 -14
- package/dist/components/popper/popper-popup.js +1 -0
- package/dist/components/popper/popper-popup.vue.d.ts +18 -0
- package/dist/components/popper/popper-positioner.js +1 -0
- package/dist/components/popper/{popper-content.vue.d.ts → popper-positioner.vue.d.ts} +24 -24
- package/dist/components/popper/popper-root.vue.d.ts +2 -2
- package/dist/components/popper/shared.js +1 -1
- package/dist/components/popper/types.d.ts +10 -15
- package/dist/components/portal/portal.vue.d.ts +3 -3
- package/dist/components/primitive/primitive.d.ts +2 -2
- package/dist/components/radio-group/radio-group-control.vue.d.ts +2 -2
- package/dist/components/radio-group/radio-group-indicator.vue.d.ts +4 -4
- package/dist/components/radio-group/radio-group-item.vue.d.ts +4 -4
- package/dist/components/radio-group/radio-group-label.vue.d.ts +2 -2
- package/dist/components/radio-group/radio-group-root.vue.d.ts +4 -4
- package/dist/components/roving-focus/roving-focus-group.vue.d.ts +5 -5
- package/dist/components/roving-focus/roving-focus-item.vue.d.ts +3 -3
- package/dist/components/select/context.js +1 -1
- package/dist/components/select/index.d.ts +3 -3
- package/dist/components/select/select-arrow.js +1 -1
- package/dist/components/select/select-arrow.vue.d.ts +3 -3
- package/dist/components/select/select-bubble-select.js +1 -0
- package/dist/components/select/select-content-impl.js +1 -1
- package/dist/components/select/select-content.js +1 -1
- package/dist/components/select/select-content.vue.d.ts +11 -11
- package/dist/components/select/select-group-label.vue.d.ts +2 -2
- package/dist/components/select/select-group.vue.d.ts +2 -2
- package/dist/components/select/select-item-aligned-popup.js +1 -0
- package/dist/components/select/select-item-aligned-positioner.js +1 -0
- package/dist/components/select/select-item-indicator.vue.d.ts +4 -4
- package/dist/components/select/select-item-text.vue.d.ts +2 -2
- package/dist/components/select/select-item.vue.d.ts +4 -4
- package/dist/components/select/select-popper-popup.js +1 -0
- package/dist/components/select/select-root.js +1 -1
- package/dist/components/select/select-root.vue.d.ts +7 -7
- package/dist/components/select/select-scroll-down-button.vue.d.ts +4 -4
- package/dist/components/select/select-scroll-up-button.vue.d.ts +4 -4
- package/dist/components/select/select-separator.vue.d.ts +2 -2
- package/dist/components/select/select-teleport-provider.js +1 -1
- package/dist/components/select/select-trigger-icon.vue.d.ts +2 -2
- package/dist/components/select/select-trigger.vue.d.ts +4 -4
- package/dist/components/select/select-value.vue.d.ts +3 -3
- package/dist/components/select/select-viewport.js +1 -1
- package/dist/components/select/select-viewport.vue.d.ts +2 -2
- package/dist/components/select/shared.js +1 -1
- package/dist/components/select/types.d.ts +6 -5
- package/dist/components/separator/separator-label.vue.d.ts +2 -2
- package/dist/components/separator/separator-root.vue.d.ts +3 -3
- package/dist/components/separator/types.d.ts +1 -1
- package/dist/components/slot/slot.d.ts +2 -2
- package/dist/components/switch/switch-control.vue.d.ts +2 -2
- package/dist/components/switch/switch-root.vue.d.ts +4 -4
- package/dist/components/switch/switch-thumb.vue.d.ts +4 -4
- package/dist/components/tabs/tabs-content.vue.d.ts +2 -2
- package/dist/components/tabs/tabs-indicator.vue.d.ts +2 -2
- package/dist/components/tabs/tabs-list.vue.d.ts +2 -2
- package/dist/components/tabs/tabs-root.vue.d.ts +5 -5
- package/dist/components/tabs/tabs-trigger.vue.d.ts +4 -4
- package/dist/components/tag/tag.vue.d.ts +4 -4
- package/dist/components/textarea/textarea-control.vue.d.ts +2 -2
- package/dist/components/textarea/textarea-counter.vue.d.ts +2 -2
- package/dist/components/textarea/textarea-root.vue.d.ts +4 -4
- package/dist/components/toast/toast-action.vue.d.ts +4 -4
- package/dist/components/toast/toast-close.vue.d.ts +4 -4
- package/dist/components/toast/toast-description.vue.d.ts +2 -2
- package/dist/components/toast/toast-provider.vue.d.ts +3 -3
- package/dist/components/toast/toast-root.vue.d.ts +7 -7
- package/dist/components/toast/toast-title.vue.d.ts +2 -2
- package/dist/components/toast/toast-viewport.vue.d.ts +4 -4
- package/dist/components/tooltip/context.js +1 -1
- package/dist/components/tooltip/index.d.ts +7 -7
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tooltip/tooltip-popup.js +1 -0
- package/dist/components/tooltip/tooltip-popup.vue.d.ts +18 -0
- package/dist/components/tooltip/tooltip-positioner-impl.js +1 -0
- package/dist/components/tooltip/tooltip-positioner.js +1 -0
- package/dist/components/tooltip/{tooltip-content.vue.d.ts → tooltip-positioner.vue.d.ts} +8 -8
- package/dist/components/tooltip/tooltip-root.vue.d.ts +4 -4
- package/dist/components/tooltip/tooltip-trigger.js +1 -1
- package/dist/components/tooltip/tooltip-trigger.vue.d.ts +4 -4
- package/dist/components/tooltip/types.d.ts +7 -6
- package/dist/components/tree/tree-item.vue.d.ts +7 -7
- package/dist/components/tree/tree-root.vue.d.ts +4 -4
- package/dist/components/tree/tree-virtualizer-item.vue.d.ts +6 -6
- package/dist/components/tree/tree-virtualizer-root.vue.d.ts +4 -4
- package/dist/components/tree-menu/context.d.ts +8 -0
- package/dist/components/tree-menu/context.js +1 -0
- package/dist/components/tree-menu/index.d.ts +11 -0
- package/dist/components/tree-menu/index.js +1 -0
- package/dist/components/tree-menu/tree-menu-button.js +1 -0
- package/dist/components/tree-menu/tree-menu-button.vue.d.ts +22 -0
- package/dist/components/tree-menu/tree-menu-collapsible.js +1 -0
- package/dist/components/tree-menu/tree-menu-collapsible.vue.d.ts +22 -0
- package/dist/components/tree-menu/tree-menu-group-label.js +1 -0
- package/dist/components/tree-menu/tree-menu-group-label.vue.d.ts +18 -0
- package/dist/components/tree-menu/tree-menu-group-root.js +1 -0
- package/dist/components/tree-menu/tree-menu-group-root.vue.d.ts +18 -0
- package/dist/components/tree-menu/tree-menu-group.js +1 -0
- package/dist/components/tree-menu/tree-menu-group.vue.d.ts +22 -0
- package/dist/components/tree-menu/tree-menu-item.js +1 -0
- package/dist/components/tree-menu/tree-menu-item.vue.d.ts +22 -0
- package/dist/components/tree-menu/tree-menu-root.js +1 -0
- package/dist/components/tree-menu/tree-menu-root.vue.d.ts +31 -0
- package/dist/components/tree-menu/tree-menu-sub.js +1 -0
- package/dist/components/tree-menu/tree-menu-sub.vue.d.ts +22 -0
- package/dist/components/tree-menu/types.d.ts +74 -0
- package/dist/components/virtualizer/virtualizer-content.vue.d.ts +2 -2
- package/dist/components/virtualizer/virtualizer-item.vue.d.ts +2 -2
- package/dist/components/virtualizer/virtualizer-root.vue.d.ts +3 -3
- package/dist/components/visually-hidden/visually-hidden-input.vue.d.ts +3 -3
- package/dist/components/visually-hidden/visually-hidden.vue.d.ts +4 -4
- package/dist/composables/index.d.ts +4 -2
- package/dist/composables/index.js +1 -1
- package/dist/composables/use-collection.d.ts +6 -6
- package/dist/composables/use-direction.d.ts +2 -2
- package/dist/composables/use-dismissable-layer.d.ts +6 -15
- package/dist/composables/use-dismissable-layer.js +1 -1
- package/dist/composables/use-exposed-element.d.ts +2 -2
- package/dist/composables/use-floating.d.ts +86 -0
- package/dist/composables/use-floating.js +1 -0
- package/dist/composables/use-focus-scope.d.ts +0 -3
- package/dist/composables/use-focus-scope.js +1 -1
- package/dist/composables/use-forward-element.d.ts +2 -2
- package/dist/composables/use-grace-area.d.ts +2 -2
- package/dist/composables/use-grace-area.js +1 -1
- package/dist/composables/use-image-loading-status.d.ts +2 -2
- package/dist/composables/use-is-using-keyboard.d.ts +2 -2
- package/dist/composables/use-kbd.d.ts +2 -2
- package/dist/composables/use-locale.d.ts +2 -2
- package/dist/composables/use-nonce.d.ts +2 -2
- package/dist/composables/use-popup-events.d.ts +23 -0
- package/dist/composables/use-popup-events.js +1 -0
- package/dist/composables/use-presence.d.ts +2 -2
- package/dist/composables/use-props.d.ts +3 -3
- package/dist/composables/use-selection.d.ts +4 -4
- package/dist/constants/components.js +1 -1
- package/dist/index.d.ts +83 -70
- package/dist/index.js +1 -1
- package/dist/namespaced/index.d.ts +395 -371
- package/dist/namespaced/index.js +1 -1
- package/dist/shared/event.js +1 -1
- package/package.json +12 -32
- package/dist/components/arrow/context.d.ts +0 -8
- package/dist/components/arrow/context.js +0 -1
- package/dist/components/dialog/shared.js +0 -1
- package/dist/components/popover/popover-content-impl.js +0 -1
- package/dist/components/popover/popover-content.js +0 -1
- package/dist/components/popper/popper-content.js +0 -1
- package/dist/components/select/bubble-select.js +0 -1
- package/dist/components/select/select-item-aligned-position.js +0 -1
- package/dist/components/select/select-popper-position.js +0 -1
- package/dist/components/tooltip/tooltip-content-impl.js +0 -1
- package/dist/components/tooltip/tooltip-content.js +0 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { MenuItemProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue1601 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/menu/menu-item.vue.d.ts
|
|
5
|
-
declare var
|
|
5
|
+
declare var __VLS_13: {};
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
|
-
default?: (props: typeof
|
|
7
|
+
default?: (props: typeof __VLS_13) => any;
|
|
8
8
|
};
|
|
9
|
-
declare const __VLS_base:
|
|
9
|
+
declare const __VLS_base: vue1601.DefineComponent<MenuItemProps, {}, {}, {}, {}, vue1601.ComponentOptionsMixin, vue1601.ComponentOptionsMixin, {
|
|
10
10
|
select: (event: Event) => any;
|
|
11
|
-
}, string,
|
|
11
|
+
}, string, vue1601.PublicProps, Readonly<MenuItemProps> & Readonly<{
|
|
12
12
|
onSelect?: ((event: Event) => any) | undefined;
|
|
13
|
-
}>, {}, {}, {}, {}, string,
|
|
13
|
+
}>, {}, {}, {}, {}, string, vue1601.ComponentProvideOptions, false, {}, any>;
|
|
14
14
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
15
15
|
declare const _default: typeof __VLS_export;
|
|
16
16
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { AcceptableBooleanValue } from "../../types/common.js";
|
|
2
2
|
import "../../types/index.js";
|
|
3
3
|
import { MenuRadioGroupProps } from "./types.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as vue1613 from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/components/menu/menu-radio-group.vue.d.ts
|
|
7
7
|
declare const __VLS_export: <T extends AcceptableBooleanValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
8
|
-
props: __VLS_PrettifyLocal<MenuRadioGroupProps<T> & {
|
|
8
|
+
props: vue1613.PublicProps & __VLS_PrettifyLocal<MenuRadioGroupProps<T> & {
|
|
9
9
|
"onUpdate:modelValue"?: ((payload: NonNullable<T>) => any) | undefined;
|
|
10
|
-
}> &
|
|
10
|
+
}> & (typeof globalThis extends {
|
|
11
11
|
__VLS_PROPS_FALLBACK: infer P;
|
|
12
12
|
} ? P : {});
|
|
13
13
|
expose: (exposed: {}) => void;
|
|
@@ -18,7 +18,7 @@ declare const __VLS_export: <T extends AcceptableBooleanValue>(__VLS_props: NonN
|
|
|
18
18
|
}) => any;
|
|
19
19
|
};
|
|
20
20
|
emit: (evt: "update:modelValue", payload: NonNullable<T>) => void;
|
|
21
|
-
}>) =>
|
|
21
|
+
}>) => vue1613.VNode & {
|
|
22
22
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
23
23
|
};
|
|
24
24
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { MenuRadioItemProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue1615 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/menu/menu-radio-item.vue.d.ts
|
|
5
|
-
declare var
|
|
5
|
+
declare var __VLS_10: {
|
|
6
6
|
modelValue: boolean;
|
|
7
7
|
};
|
|
8
8
|
type __VLS_Slots = {} & {
|
|
9
|
-
default?: (props: typeof
|
|
9
|
+
default?: (props: typeof __VLS_10) => any;
|
|
10
10
|
};
|
|
11
|
-
declare const __VLS_base:
|
|
11
|
+
declare const __VLS_base: vue1615.DefineComponent<MenuRadioItemProps, {}, {}, {}, {}, vue1615.ComponentOptionsMixin, vue1615.ComponentOptionsMixin, {
|
|
12
12
|
select: (event: Event) => any;
|
|
13
|
-
}, string,
|
|
13
|
+
}, string, vue1615.PublicProps, Readonly<MenuRadioItemProps> & Readonly<{
|
|
14
14
|
onSelect?: ((event: Event) => any) | undefined;
|
|
15
|
-
}>, {}, {}, {}, {}, string,
|
|
15
|
+
}>, {}, {}, {}, {}, string, vue1615.ComponentProvideOptions, false, {}, any>;
|
|
16
16
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
17
17
|
declare const _default: typeof __VLS_export;
|
|
18
18
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{transformPropsToContext as e}from"../../shared/vue.js";import{useControllableState as t}from"../../composables/use-controllable-state.js";import{useIsUsingKeyboard as n}from"../../composables/use-is-using-keyboard.js";import r from"../popper/popper-root.js";import{provideMenuContext as i,provideMenuRootContext as a}from"./context.js";import{createBlock as o,defineComponent as s,openBlock as c,renderSlot as l,unref as u,withCtx as d}from"vue";var f=s({name:`MenuRoot`,inheritAttrs:!1,__name:`menu-root`,props:{dir:{},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean},modal:{type:Boolean,default:!0}},emits:[`update:open`],setup(s,{emit:f}){let p=s,m=f,h=t(()=>p.open,e=>{m(`update:open`,e??!1)},p.defaultOpen),g=n(),_=()=>{h.value=!1};return i({open:h}),a({...e(p,[`modal`,`dir`]),onClose:_,isUsingKeyboard:g}),(e,t)=>(c(),o(u(r),null,{default:d(()=>[l(e.$slots,`default`,{open:u(h)})]),_:3}))}});export{f as default};
|
|
1
|
+
import{transformPropsToContext as e}from"../../shared/vue.js";import{useControllableState as t}from"../../composables/use-controllable-state.js";import{useIsUsingKeyboard as n}from"../../composables/use-is-using-keyboard.js";import r from"../popper/popper-root.js";import{provideMenuContext as i,provideMenuRootContext as a}from"./context.js";import{createBlock as o,defineComponent as s,openBlock as c,renderSlot as l,unref as u,withCtx as d}from"vue";var f=s({name:`MenuRoot`,inheritAttrs:!1,__name:`menu-root`,props:{dir:{},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean},modal:{type:Boolean,default:!0}},emits:[`update:open`],setup(s,{emit:f}){let p=s,m=f,h=t(()=>p.open,e=>{m(`update:open`,e??!1)},p.defaultOpen),g=n(),_=()=>{h.value=!1};return i({open:h,isRoot:!0}),a({...e(p,[`modal`,`dir`]),onClose:_,isUsingKeyboard:g}),(e,t)=>(c(),o(u(r),null,{default:d(()=>[l(e.$slots,`default`,{open:u(h)})]),_:3}))}});export{f as default};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MenuRootProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue1566 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/menu/menu-root.vue.d.ts
|
|
5
5
|
declare var __VLS_8: {
|
|
@@ -8,14 +8,14 @@ declare var __VLS_8: {
|
|
|
8
8
|
type __VLS_Slots = {} & {
|
|
9
9
|
default?: (props: typeof __VLS_8) => any;
|
|
10
10
|
};
|
|
11
|
-
declare const __VLS_base:
|
|
11
|
+
declare const __VLS_base: vue1566.DefineComponent<MenuRootProps, {}, {}, {}, {}, vue1566.ComponentOptionsMixin, vue1566.ComponentOptionsMixin, {
|
|
12
12
|
"update:open": (value: boolean) => any;
|
|
13
|
-
}, string,
|
|
13
|
+
}, string, vue1566.PublicProps, Readonly<MenuRootProps> & Readonly<{
|
|
14
14
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
15
15
|
}>, {
|
|
16
16
|
open: boolean;
|
|
17
17
|
modal: boolean;
|
|
18
|
-
}, {}, {}, {}, string,
|
|
18
|
+
}, {}, {}, {}, string, vue1566.ComponentProvideOptions, false, {}, any>;
|
|
19
19
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
20
20
|
declare const _default: typeof __VLS_export;
|
|
21
21
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{useForwardListeners as e}from"../../composables/use-forward-listeners.js";import{usePresence as t}from"../../composables/use-presence.js";import{useMenuContext as n,useMenuRootContext as r}from"./context.js";import{SUB_CLOSE_KEYS as i}from"./shared.js";import a from"./menu-content-impl.js";import{computed as o,createBlock as s,createCommentVNode as c,defineComponent as l,mergeProps as u,openBlock as d,renderSlot as f,shallowRef as p,toHandlers as m,unref as h,withCtx as g,withModifiers as _}from"vue";var v=l({name:`MenuSubContent`,__name:`menu-sub-content`,props:{popupProps:{},placement:{},sideOffset:{},sideFlip:{type:Boolean},alignOffset:{},alignFlip:{type:Boolean},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean,default:!0},reference:{},forceMount:{type:Boolean},loop:{type:Boolean}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`,`entryFocus`],setup(l,{emit:v}){let y=l,b=e(v),{open:x,popupElement:S,triggerId:C,triggerElement:w,onOpenChange:T}=n(`MenuSubContent`),{dir:E,isUsingKeyboard:D,onClose:O}=r(`MenuSubContent`),k=y.forceMount?p(!0):t(S,x),A=o(()=>E.value===`rtl`?`left`:`right`),j=()=>{D.value&&S.value?.focus()},M=e=>{e.defaultPrevented||e.target!==w.value&&T(!1)},N=e=>{O(),e.preventDefault()},P=e=>{let t=e.currentTarget?.contains(e.target),n=i[E.value].includes(e.key);t&&n&&(T(!1),w.value?.focus(),e.preventDefault())};return(e,t)=>h(k)?(d(),s(a,u({key:0},y,{"trap-focus":!1,"disable-outside-pointer-events":!1,"aria-labelledby":h(C),align:`start`,side:A.value},m(h(b)),{onOpenAutoFocus:_(j,[`prevent`]),onCloseAutoFocus:t[0]||=_(()=>{},[`prevent`]),onEscapeKeyDown:N,onFocusOutside:M,onKeydown:P}),{default:g(()=>[f(e.$slots,`default`)]),_:3},16,[`aria-labelledby`,`side`])):c(`v-if`,!0)}});export{v as default};
|
|
@@ -2,32 +2,32 @@ import { FocusOutsideEvent, PointerDownOutsideEvent } from "../../types/event.js
|
|
|
2
2
|
import "../../types/index.js";
|
|
3
3
|
import { MenuSubContentProps } from "./types.js";
|
|
4
4
|
import "../../index.js";
|
|
5
|
-
import * as
|
|
5
|
+
import * as vue1581 from "vue";
|
|
6
6
|
|
|
7
7
|
//#region src/components/menu/menu-sub-content.vue.d.ts
|
|
8
|
-
declare var
|
|
8
|
+
declare var __VLS_14: {};
|
|
9
9
|
type __VLS_Slots = {} & {
|
|
10
|
-
default?: (props: typeof
|
|
10
|
+
default?: (props: typeof __VLS_14) => any;
|
|
11
11
|
};
|
|
12
|
-
declare const __VLS_base:
|
|
13
|
-
closeAutoFocus: (event: Event) => any;
|
|
12
|
+
declare const __VLS_base: vue1581.DefineComponent<MenuSubContentProps, {}, {}, {}, {}, vue1581.ComponentOptionsMixin, vue1581.ComponentOptionsMixin, {
|
|
14
13
|
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
15
14
|
pointerDownOutside: (event: PointerDownOutsideEvent) => any;
|
|
16
|
-
entryFocus: (event: Event) => any;
|
|
17
15
|
focusOutside: (event: FocusOutsideEvent) => any;
|
|
18
16
|
interactOutside: (event: PointerDownOutsideEvent | FocusOutsideEvent) => any;
|
|
17
|
+
entryFocus: (event: Event) => any;
|
|
19
18
|
openAutoFocus: (event: Event) => any;
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
closeAutoFocus: (event: Event) => any;
|
|
20
|
+
}, string, vue1581.PublicProps, Readonly<MenuSubContentProps> & Readonly<{
|
|
22
21
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
23
22
|
onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
24
|
-
onEntryFocus?: ((event: Event) => any) | undefined;
|
|
25
23
|
onFocusOutside?: ((event: FocusOutsideEvent) => any) | undefined;
|
|
26
24
|
onInteractOutside?: ((event: PointerDownOutsideEvent | FocusOutsideEvent) => any) | undefined;
|
|
25
|
+
onEntryFocus?: ((event: Event) => any) | undefined;
|
|
27
26
|
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
27
|
+
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
28
28
|
}>, {
|
|
29
29
|
prioritizePosition: boolean;
|
|
30
|
-
}, {}, {}, {}, string,
|
|
30
|
+
}, {}, {}, {}, string, vue1581.ComponentProvideOptions, false, {}, any>;
|
|
31
31
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
32
32
|
declare const _default: typeof __VLS_export;
|
|
33
33
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{isMouseEvent as e}from"../../shared/event.js";import{useForwardElement as t}from"../../composables/use-forward-element.js";import n from"../popper/popper-anchor.js";import{useMenuContentContext as r,useMenuContext as i,useMenuRootContext as a,
|
|
1
|
+
import{isMouseEvent as e}from"../../shared/event.js";import{useForwardElement as t}from"../../composables/use-forward-element.js";import n from"../popper/popper-anchor.js";import{useMenuContentContext as r,useMenuContext as i,useMenuRootContext as a,useMenuThemeContext as o}from"./context.js";import{SUB_OPEN_KEYS as s}from"./shared.js";import c from"./menu-item-impl.js";import{computed as l,createBlock as u,createVNode as d,defineComponent as f,mergeProps as p,nextTick as m,openBlock as h,renderSlot as g,unref as _,withCtx as v}from"vue";var y=f({__name:`menu-sub-trigger`,props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},setup(f){let y=f,{open:b,dataState:x,popupElement:S,popupId:C,triggerId:w,onTriggerElementChange:T,initTriggerId:E,onOpenChange:D}=i(`MenuSubTrigger`),{dir:O}=a(`MenuSubTrigger`),{pointerGraceTimer:k,searchRef:A,onPointerGraceIntentChange:j,resetPointerGraceIntent:M,onItemEnter:N,onTriggerLeave:P}=r(`MenuSubTrigger`),[F,I]=t(T),L=o(),R=l(()=>L?.ui?.value?.subTrigger),z=null,B=()=>{z&&window.clearTimeout(z),z=null},V=e=>{y.disabled||e.defaultPrevented||(e.currentTarget.focus(),b.value||D(!0))},H=t=>{e(t)&&(N(t)||y.disabled||b.value||z||(M(),z=window.setTimeout(()=>{D(!0),B()},100)))},U=t=>{if(!e(t))return;B();let n=S.value?.getBoundingClientRect();if(n?.width){let e=S.value?.dataset.side,r=e===`right`,i=r?-5:5,a=n[r?`left`:`right`],o=n[r?`right`:`left`];j({area:[{x:t.clientX+i,y:t.clientY},{x:a,y:n.top},{x:o,y:n.top},{x:o,y:n.bottom},{x:a,y:n.bottom}],side:e}),window.clearTimeout(k.value),k.value=window.setTimeout(()=>j(null),300)}else{if(P(t))return;M()}},W=async e=>{y.disabled||A.value!==``&&e.key===` `||s[O.value].includes(e.key)&&(D(!0),await m(),S.value?.focus(),e.preventDefault())};return E(),(e,t)=>(h(),u(_(n),{"as-child":``},{default:v(()=>[d(c,p(y,{id:_(w),ref:_(I),class:R.value,"aria-haspopup":`menu`,"aria-expanded":_(b),"aria-controls":_(C),"data-state":_(x),onClick:V,onPointermove:H,onPointerleave:U,onKeydown:W}),{default:v(()=>[g(e.$slots,`default`)]),_:3},16,[`id`,`class`,`aria-expanded`,`aria-controls`,`data-state`])]),_:3}))}});export{y as default};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { MenuSubTriggerProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue1586 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/menu/menu-sub-trigger.vue.d.ts
|
|
5
|
-
declare var
|
|
5
|
+
declare var __VLS_19: {};
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
|
-
default?: (props: typeof
|
|
7
|
+
default?: (props: typeof __VLS_19) => any;
|
|
8
8
|
};
|
|
9
|
-
declare const __VLS_base:
|
|
9
|
+
declare const __VLS_base: vue1586.DefineComponent<MenuSubTriggerProps, {}, {}, {}, {}, vue1586.ComponentOptionsMixin, vue1586.ComponentOptionsMixin, {}, string, vue1586.PublicProps, Readonly<MenuSubTriggerProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1586.ComponentProvideOptions, false, {}, any>;
|
|
10
10
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
11
|
declare const _default: typeof __VLS_export;
|
|
12
12
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useControllableState as e}from"../../composables/use-controllable-state.js";import t from"../popper/popper-root.js";import{provideMenuContext as n,
|
|
1
|
+
import{useControllableState as e}from"../../composables/use-controllable-state.js";import t from"../popper/popper-root.js";import{provideMenuContext as n,useMenuContext as r}from"./context.js";import{createBlock as i,defineComponent as a,onWatcherCleanup as o,openBlock as s,renderSlot as c,unref as l,watchEffect as u,withCtx as d}from"vue";var f=a({name:`MenuSub`,inheritAttrs:!1,__name:`menu-sub`,props:{open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean}},emits:[`update:open`],setup(a,{emit:f}){let p=a,m=f,h=e(()=>p.open,e=>{m(`update:open`,e??!1)},p.defaultOpen),g=r(`MenuSub`);return u(()=>{g.open.value===!1&&(h.value=!1),o(()=>{h.value=!1})}),n({open:h}),(e,n)=>(s(),i(l(t),null,{default:d(()=>[c(e.$slots,`default`)]),_:3}))}});export{f as default};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { MenuSubProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue1576 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/menu/menu-sub.vue.d.ts
|
|
5
5
|
declare var __VLS_8: {};
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
7
|
default?: (props: typeof __VLS_8) => any;
|
|
8
8
|
};
|
|
9
|
-
declare const __VLS_base:
|
|
9
|
+
declare const __VLS_base: vue1576.DefineComponent<MenuSubProps, {}, {}, {}, {}, vue1576.ComponentOptionsMixin, vue1576.ComponentOptionsMixin, {
|
|
10
10
|
"update:open": (value: boolean) => any;
|
|
11
|
-
}, string,
|
|
11
|
+
}, string, vue1576.PublicProps, Readonly<MenuSubProps> & Readonly<{
|
|
12
12
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
13
13
|
}>, {
|
|
14
14
|
open: boolean;
|
|
15
|
-
}, {}, {}, {}, string,
|
|
15
|
+
}, {}, {}, {}, string, vue1576.ComponentProvideOptions, false, {}, any>;
|
|
16
16
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
17
17
|
declare const _default: typeof __VLS_export;
|
|
18
18
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{SELECTION_KEYS as e}from"../../constants/common.js";const t={
|
|
1
|
+
import{SELECTION_KEYS as e}from"../../constants/common.js";const t={popupTransformOrigin:`--soybean-menu-popup-transform-origin`,popupAvailableWidth:`--soybean-menu-popup-available-width`,popupAvailableHeight:`--soybean-menu-popup-available-height`,triggerWidth:`--soybean-menu-trigger-width`,triggerHeight:`--soybean-menu-trigger-height`},n={popupTransformOrigin:`--soybean-sub-menu-popup-transform-origin`,popupAvailableWidth:`--soybean-sub-menu-popup-available-width`,popupAvailableHeight:`--soybean-sub-menu-popup-available-height`,triggerWidth:`--soybean-sub-menu-trigger-width`,triggerHeight:`--soybean-sub-menu-trigger-height`},r=`data-soybean-menu-popup`,i=`menu.itemSelect`,a=[`ArrowDown`,`PageUp`,`Home`],o=[`ArrowUp`,`PageDown`,`End`],s=[...a,...o],c={ltr:[...e,`ArrowRight`],rtl:[...e,`ArrowLeft`]},l={ltr:[`ArrowLeft`],rtl:[`ArrowRight`]};export{s as FIRST_LAST_KEYS,i as ITEM_SELECT,o as LAST_KEYS,r as MENU_POPUP_DATA_ATTRIBUTE,l as SUB_CLOSE_KEYS,c as SUB_OPEN_KEYS,t as menuCssVars,n as subMenuCssVars};
|
|
@@ -3,8 +3,8 @@ import { DismissableLayerEmits, FocusScopeEmits, ForceMountProps } from "../../t
|
|
|
3
3
|
import "../../types/index.js";
|
|
4
4
|
import { PrimitiveProps } from "../primitive/types.js";
|
|
5
5
|
import { DialogRootEmits, DialogRootProps } from "../dialog/types.js";
|
|
6
|
-
import { RovingFocusGroupEmits } from "../roving-focus/types.js";
|
|
7
|
-
import {
|
|
6
|
+
import { RovingFocusGroupEmits, RovingFocusGroupProps } from "../roving-focus/types.js";
|
|
7
|
+
import { PopperPopupProps, PopperPositionerProps } from "../popper/types.js";
|
|
8
8
|
import { ButtonHTMLAttributes, ComputedRef, HTMLAttributes, ShallowRef } from "vue";
|
|
9
9
|
|
|
10
10
|
//#region src/components/menu/types.d.ts
|
|
@@ -17,15 +17,10 @@ interface MenuRootProps extends DialogRootProps {
|
|
|
17
17
|
dir?: Direction;
|
|
18
18
|
}
|
|
19
19
|
type MenuRootEmits = DialogRootEmits;
|
|
20
|
+
interface MenuPopupProps extends PopperPopupProps {}
|
|
20
21
|
type MenuContentImplEmits = DismissableLayerEmits & FocusScopeEmits & Pick<RovingFocusGroupEmits, 'entryFocus'>;
|
|
21
|
-
interface MenuContentProps extends
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* The function to set the menu content element.
|
|
25
|
-
*
|
|
26
|
-
* @param el - The menu content element.
|
|
27
|
-
*/
|
|
28
|
-
elRef?: (el: HTMLElement) => void;
|
|
22
|
+
interface MenuContentProps extends PopperPositionerProps, ForceMountProps, Pick<RovingFocusGroupProps, 'loop'> {
|
|
23
|
+
popupProps?: MenuPopupProps;
|
|
29
24
|
}
|
|
30
25
|
type MenuContentEmits = MenuContentImplEmits;
|
|
31
26
|
interface MenuTriggerProps extends PrimitiveProps, /** @vue-ignore */ButtonHTMLAttributes {
|
|
@@ -107,10 +102,10 @@ type MenuRadioGroupEmits<T = AcceptableBooleanValue> = {
|
|
|
107
102
|
};
|
|
108
103
|
interface MenuSubTriggerProps extends MenuItemImplProps {}
|
|
109
104
|
interface MenuItemIndicatorProps extends PrimitiveProps, ForceMountProps, /** @vue-ignore */HTMLAttributes {}
|
|
110
|
-
type MenuThemeSlot = '
|
|
105
|
+
type MenuThemeSlot = 'positioner' | 'popup' | 'subPositioner' | 'subPopup' | 'subTrigger' | 'arrow' | 'group' | 'groupLabel' | 'item' | 'checkboxGroup' | 'checkboxItem' | 'radioGroup' | 'radioItem' | 'itemIndicator' | 'separator';
|
|
111
106
|
type MenuUi = Record<MenuThemeSlot, ClassValue>;
|
|
112
107
|
interface MenuThemeContextParams {
|
|
113
108
|
ui: ComputedRef<MenuUi>;
|
|
114
109
|
}
|
|
115
110
|
//#endregion
|
|
116
|
-
export { MenuCheckboxGroupEmits, MenuCheckboxGroupProps, MenuCheckboxItemEmits, MenuCheckboxItemProps, MenuContentEmits,
|
|
111
|
+
export { MenuCheckboxGroupEmits, MenuCheckboxGroupProps, MenuCheckboxItemEmits, MenuCheckboxItemProps, MenuContentEmits, MenuContentProps, MenuGroupLabelProps, MenuGroupProps, MenuItemEmits, MenuItemIndicatorProps, MenuItemProps, MenuPopupProps, MenuRadioGroupEmits, MenuRadioGroupProps, MenuRadioItemEmits, MenuRadioItemProps, MenuRootEmits, MenuRootProps, MenuSubContentEmits, MenuSubContentProps, MenuSubEmits, MenuSubProps, MenuSubTriggerProps, MenuThemeContextParams, MenuThemeSlot, MenuTriggerProps, MenuUi };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useArrowNavigation as e}from"../../composables/use-arrow-navigation.js";import{getActiveElement as t}from"../../shared/dom.js";import{getTabbableCandidates as n,tryFocusFirst as r}from"../../shared/focus.js";import{useDismissableLayer as i}from"../../composables/use-dismissable-layer.js";import{useExposedElement as a}from"../../composables/use-exposed-element.js";import{useCollectionContext as o,useNavigationMenuItemContext as s,useNavigationMenuRootContext as c,useNavigationMenuThemeContext as l}from"./context.js";import{EVENT_ROOT_CONTENT_DISMISS as u}from"./shared.js";import{computed as d,createElementBlock as f,defineComponent as p,
|
|
1
|
+
import{useArrowNavigation as e}from"../../composables/use-arrow-navigation.js";import{getActiveElement as t}from"../../shared/dom.js";import{getTabbableCandidates as n,tryFocusFirst as r}from"../../shared/focus.js";import{useDismissableLayer as i}from"../../composables/use-dismissable-layer.js";import{useExposedElement as a}from"../../composables/use-exposed-element.js";import{useCollectionContext as o,useNavigationMenuItemContext as s,useNavigationMenuRootContext as c,useNavigationMenuThemeContext as l}from"./context.js";import{EVENT_ROOT_CONTENT_DISMISS as u}from"./shared.js";import{computed as d,createElementBlock as f,defineComponent as p,normalizeClass as m,normalizeStyle as h,openBlock as g,renderSlot as _,shallowRef as v,unref as y,watchEffect as b}from"vue";const x=[`id`,`aria-labelledby`,`data-orientation`,`data-motion`,`data-state`];var S=p({name:`NavigationMenuContentImpl`,__name:`navigation-menu-content-impl`,props:{disableOutsidePointerEvents:{type:Boolean}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`],setup(p,{emit:S}){let C=p,w=S,{dir:T,orientation:E,modelValue:D,previousValue:O,rootElement:k,viewportElement:A,isRoot:j,onItemDismiss:M}=c(`NavigationMenuContentImpl`),{value:N,triggerId:P,contentId:F,triggerElement:I,dataState:L,wasEscapeCloseRef:R,focusProxyElement:z,onContentFocusOutside:B,onRootContentClose:V}=s(`NavigationMenuContentImpl`),H=l(),U=d(()=>H?.ui?.value?.content),{getOrderedElements:W}=o(`NavigationMenuContentImpl`),[G,K]=a(),{pointerEvents:q}=i(G,{disableOutsidePointerEvents:()=>C.disableOutsidePointerEvents,onEscapeKeyDown:e=>{w(`escapeKeyDown`,e),!e.defaultPrevented&&(M(),I.value?.focus(),R.value=!0)},onPointerDownOutside:e=>{if(w(`pointerDownOutside`,e),e.defaultPrevented)return;let t=e.target,n=W().some(e=>e.contains(t)),r=j&&A.value?.contains(t);(n||r||!j)&&e.preventDefault()},onFocusOutside:e=>{w(`focusOutside`,e),w(`interactOutside`,e),e.detail.originalEvent.target.hasAttribute(`data-soybean-navigation-menu-trigger`)&&e.preventDefault(),!e.defaultPrevented&&(B(),k.value?.contains(e.target)&&e.preventDefault())},onDismiss:()=>{let e=new Event(u,{bubbles:!0,cancelable:!0});G.value?.dispatchEvent(e)}}),J=v(null),Y=d(()=>{let e=W().map(e=>e.id.split(`trigger-`)[1]);T.value===`rtl`&&e.reverse();let t=e.indexOf(O.value??``),n=N===D.value,r=t===e.indexOf(N);if(!n&&!r)return J.value;let i=e.indexOf(D.value);if(i!==t){if(n&&t!==-1)return i>t?`from-end`:`from-start`;if(r&&i!==-1)return i>t?`to-start`:`to-end`}return null}),X=d(()=>({pointerEvents:q.value})),Z=i=>{if(i.target.closest(`[data-soybean-navigation-menu]`)!==k.value)return;let a=i.altKey||i.ctrlKey||i.metaKey,o=i.key===`Tab`&&!a,s=n(i.currentTarget);if(o){let e=t(),n=s.findIndex(t=>t===e);if(r(i.shiftKey?s.slice(0,n).reverse():s.slice(n+1,s.length)))i.preventDefault();else{z.value?.focus();return}}e(i,t(),void 0,{itemsArray:s,loop:!1,enableIgnoredElement:!0})?.focus()};return b(()=>{J.value=Y.value}),b(e=>{let n=G.value;if(j&&n){let r=()=>{M(),V(),n.contains(t())&&I.value?.focus()};n.addEventListener(u,r),e(()=>n.removeEventListener(u,r))}}),(e,t)=>(g(),f(`div`,{id:y(F),ref:y(K),class:m(U.value),"aria-labelledby":y(P),"data-dismissable-layer":``,"data-orientation":y(E),"data-motion":Y.value,"data-state":y(L),style:h(X.value),onKeydown:Z},[_(e.$slots,`default`)],46,x))}});export{S as default};
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { FocusOutsideEvent, PointerDownOutsideEvent } from "../../types/event.js";
|
|
2
2
|
import { NavigationMenuContentProps } from "./types.js";
|
|
3
3
|
import "../../index.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as vue129 from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/components/navigation-menu/navigation-menu-content.vue.d.ts
|
|
7
|
-
declare var
|
|
7
|
+
declare var __VLS_17: {};
|
|
8
8
|
type __VLS_Slots = {} & {
|
|
9
|
-
default?: (props: typeof
|
|
9
|
+
default?: (props: typeof __VLS_17) => any;
|
|
10
10
|
};
|
|
11
|
-
declare const __VLS_base:
|
|
11
|
+
declare const __VLS_base: vue129.DefineComponent<NavigationMenuContentProps, {}, {}, {}, {}, vue129.ComponentOptionsMixin, vue129.ComponentOptionsMixin, {
|
|
12
12
|
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
13
13
|
pointerDownOutside: (event: PointerDownOutsideEvent) => any;
|
|
14
14
|
focusOutside: (event: FocusOutsideEvent) => any;
|
|
15
15
|
interactOutside: (event: PointerDownOutsideEvent | FocusOutsideEvent) => any;
|
|
16
|
-
}, string,
|
|
16
|
+
}, string, vue129.PublicProps, Readonly<NavigationMenuContentProps> & Readonly<{
|
|
17
17
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
18
18
|
onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
19
19
|
onFocusOutside?: ((event: FocusOutsideEvent) => any) | undefined;
|
|
20
20
|
onInteractOutside?: ((event: PointerDownOutsideEvent | FocusOutsideEvent) => any) | undefined;
|
|
21
|
-
}>, {}, {}, {}, {}, string,
|
|
21
|
+
}>, {}, {}, {}, {}, string, vue129.ComponentProvideOptions, false, {}, any>;
|
|
22
22
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
23
23
|
declare const _default: typeof __VLS_export;
|
|
24
24
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useForwardElement as e}from"../../composables/use-forward-element.js";import{usePresence as t}from"../../composables/use-presence.js";import{useNavigationMenuRootContext as n,useNavigationMenuThemeContext as r}from"./context.js";import{navigationMenuIndicatorCssVars as i}from"./shared.js";import{Teleport as a,computed as o,createBlock as s,createCommentVNode as c,createElementBlock as l,defineComponent as u,mergeProps as d,openBlock as f,renderSlot as p,shallowRef as m,unref as h,useAttrs as g,watchEffect as _}from"vue";import{useResizeObserver as v}from"@vueuse/core";const y=[`data-state`];var b=u({name:`NavigationMenuIndicator`,inheritAttrs:!1,__name:`navigation-menu-indicator`,props:{forceMount:{type:Boolean}},setup(u){let b=u,x=g(),{
|
|
1
|
+
import{useForwardElement as e}from"../../composables/use-forward-element.js";import{usePresence as t}from"../../composables/use-presence.js";import{useNavigationMenuRootContext as n,useNavigationMenuThemeContext as r}from"./context.js";import{navigationMenuIndicatorCssVars as i}from"./shared.js";import{Teleport as a,computed as o,createBlock as s,createCommentVNode as c,createElementBlock as l,defineComponent as u,mergeProps as d,openBlock as f,renderSlot as p,shallowRef as m,unref as h,useAttrs as g,watchEffect as _}from"vue";import{useResizeObserver as v}from"@vueuse/core";const y=[`data-state`];var b=u({name:`NavigationMenuIndicator`,inheritAttrs:!1,__name:`navigation-menu-indicator`,props:{forceMount:{type:Boolean}},setup(u){let b=u,x=g(),{orientation:S,activeTriggerElement:C,modelValue:w,indicatorTrackElement:T}=n(`NavigationMenuIndicator`),[E,D]=e(),O=r(),k=o(()=>O?.ui?.value?.indicator),A=o(()=>!!w.value),j=b.forceMount?m(!0):t(E,()=>A.value),M=m(),N=o(()=>{if(!M.value)return{};let{size:e,position:t}=M.value;return{[i.size]:`${e}px`,[i.position]:`${t}px`}}),P=()=>{if(!C.value)return;let{offsetWidth:e,offsetHeight:t,offsetLeft:n,offsetTop:r}=C.value,i=S.value===`horizontal`;M.value={size:i?e:t,position:i?n:r}};return _(()=>{if(!w.value){M.value=void 0;return}P()}),v(C,P),v(T,P),(e,t)=>h(T)?(f(),s(a,{key:0,to:h(T)},[h(j)?(f(),l(`div`,d({key:0},h(x),{ref:h(D),class:k.value,"aria-hidden":`true`,"data-state":A.value?`visible`:`hidden`,style:N.value}),[p(e.$slots,`default`)],16,y)):c(`v-if`,!0)],8,[`to`])):c(`v-if`,!0)}});export{b as default};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { NavigationMenuIndicatorProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue145 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/navigation-menu/navigation-menu-indicator.vue.d.ts
|
|
5
5
|
declare var __VLS_7: {};
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
7
|
default?: (props: typeof __VLS_7) => any;
|
|
8
8
|
};
|
|
9
|
-
declare const __VLS_base:
|
|
9
|
+
declare const __VLS_base: vue145.DefineComponent<NavigationMenuIndicatorProps, {}, {}, {}, {}, vue145.ComponentOptionsMixin, vue145.ComponentOptionsMixin, {}, string, vue145.PublicProps, Readonly<NavigationMenuIndicatorProps> & Readonly<{}>, {}, {}, {}, {}, string, vue145.ComponentProvideOptions, false, {}, any>;
|
|
10
10
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
11
|
declare const _default: typeof __VLS_export;
|
|
12
12
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { NavigationMenuItemProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue119 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/navigation-menu/navigation-menu-item.vue.d.ts
|
|
5
5
|
declare var __VLS_1: {};
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
7
|
default?: (props: typeof __VLS_1) => any;
|
|
8
8
|
};
|
|
9
|
-
declare const __VLS_base:
|
|
9
|
+
declare const __VLS_base: vue119.DefineComponent<NavigationMenuItemProps, {}, {}, {}, {}, vue119.ComponentOptionsMixin, vue119.ComponentOptionsMixin, {}, string, vue119.PublicProps, Readonly<NavigationMenuItemProps> & Readonly<{}>, {}, {}, {}, {}, string, vue119.ComponentProvideOptions, false, {}, any>;
|
|
10
10
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
11
|
declare const _default: typeof __VLS_export;
|
|
12
12
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { NavigationMenuLinkProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue124 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/navigation-menu/navigation-menu-link.vue.d.ts
|
|
5
|
-
declare var
|
|
5
|
+
declare var __VLS_10: {
|
|
6
6
|
isHref: boolean;
|
|
7
7
|
};
|
|
8
8
|
type __VLS_Slots = {} & {
|
|
9
|
-
default?: (props: typeof
|
|
9
|
+
default?: (props: typeof __VLS_10) => any;
|
|
10
10
|
};
|
|
11
|
-
declare const __VLS_base:
|
|
11
|
+
declare const __VLS_base: vue124.DefineComponent<NavigationMenuLinkProps, {}, {}, {}, {}, vue124.ComponentOptionsMixin, vue124.ComponentOptionsMixin, {
|
|
12
12
|
select: (payload: CustomEvent<{
|
|
13
13
|
originalEvent: Event;
|
|
14
14
|
}>) => any;
|
|
15
|
-
}, string,
|
|
15
|
+
}, string, vue124.PublicProps, Readonly<NavigationMenuLinkProps> & Readonly<{
|
|
16
16
|
onSelect?: ((payload: CustomEvent<{
|
|
17
17
|
originalEvent: Event;
|
|
18
18
|
}>) => any) | undefined;
|
|
19
|
-
}>, {}, {}, {}, {}, string,
|
|
19
|
+
}>, {}, {}, {}, {}, string, vue124.ComponentProvideOptions, false, {}, any>;
|
|
20
20
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
21
21
|
declare const _default: typeof __VLS_export;
|
|
22
22
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { NavigationMenuListProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue114 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/navigation-menu/navigation-menu-list.vue.d.ts
|
|
5
5
|
declare var __VLS_1: {};
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
7
|
default?: (props: typeof __VLS_1) => any;
|
|
8
8
|
};
|
|
9
|
-
declare const __VLS_base:
|
|
9
|
+
declare const __VLS_base: vue114.DefineComponent<NavigationMenuListProps, {}, {}, {}, {}, vue114.ComponentOptionsMixin, vue114.ComponentOptionsMixin, {}, string, vue114.PublicProps, Readonly<NavigationMenuListProps> & Readonly<{}>, {}, {}, {}, {}, string, vue114.ComponentProvideOptions, false, {}, any>;
|
|
10
10
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
11
|
declare const _default: typeof __VLS_export;
|
|
12
12
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{transformPropsToContext as e}from"../../shared/vue.js";import{useControllableState as t}from"../../composables/use-controllable-state.js";import{useForwardElement as n}from"../../composables/use-forward-element.js";import{provideCollectionContext as r,provideNavigationMenuRootContext as i,useNavigationMenuThemeContext as a}from"./context.js";import{computed as o,createElementBlock as s,defineComponent as c,normalizeClass as l,openBlock as u,renderSlot as d,unref as f,watchEffect as p}from"vue";const m=[`dir`];var h=c({name:`NavigationMenuRoot`,__name:`navigation-menu-root`,props:{modelValue:{},defaultValue:{},dir:{default:`ltr`},delayDuration:{default:200},skipDelayDuration:{default:300},disableClickTrigger:{type:Boolean},disableHoverTrigger:{type:Boolean},disablePointerLeaveClose:{type:Boolean},unmountOnHide:{type:Boolean,default:!0}},emits:[`update:modelValue`],setup(c,{emit:h}){let g=c,_=h,v=a(),y=o(()=>v?.ui?.value?.root),b=t(()=>g.modelValue,e=>{_(`update:modelValue`,e)},g.defaultValue),{onRootElementChange:x,onActiveTriggerElementChange:S}=i({isRoot:!0,modelValue:b,...e(g,[`dir`,`unmountOnHide`,`skipDelayDuration`,`delayDuration`,`disableClickTrigger`,`disableHoverTrigger`,`disablePointerLeaveClose`])}),{onContainerElementChange:C,getOrderedElements:w}=r(),[T,E]=n(e=>{x(e),C(e)});return p(()=>{if(!b.value)return;let e=w().find(e=>e.id.includes(b.value));e&&S(e)}),(e,t)=>(u(),s(`nav`,{ref:f(E),class:l(y.value),"aria-label":`Main`,"data-soybean-navigation-menu":``,dir:c.dir},[d(e.$slots,`default`,{modelValue:f(b)})],10,m))}});export{h as default};
|
|
1
|
+
import{transformPropsToContext as e}from"../../shared/vue.js";import{useControllableState as t}from"../../composables/use-controllable-state.js";import{useForwardElement as n}from"../../composables/use-forward-element.js";import{provideCollectionContext as r,provideNavigationMenuRootContext as i,useNavigationMenuThemeContext as a}from"./context.js";import{computed as o,createElementBlock as s,defineComponent as c,normalizeClass as l,openBlock as u,renderSlot as d,unref as f,watchEffect as p}from"vue";const m=[`data-orientation`,`dir`];var h=c({name:`NavigationMenuRoot`,__name:`navigation-menu-root`,props:{modelValue:{},defaultValue:{},dir:{default:`ltr`},orientation:{default:`horizontal`},delayDuration:{default:200},skipDelayDuration:{default:300},disableClickTrigger:{type:Boolean},disableHoverTrigger:{type:Boolean},disablePointerLeaveClose:{type:Boolean},unmountOnHide:{type:Boolean,default:!0}},emits:[`update:modelValue`],setup(c,{emit:h}){let g=c,_=h,v=a(),y=o(()=>v?.ui?.value?.root),b=t(()=>g.modelValue,e=>{_(`update:modelValue`,e)},g.defaultValue),{onRootElementChange:x,onActiveTriggerElementChange:S}=i({isRoot:!0,modelValue:b,...e(g,[`dir`,`orientation`,`unmountOnHide`,`skipDelayDuration`,`delayDuration`,`disableClickTrigger`,`disableHoverTrigger`,`disablePointerLeaveClose`])}),{onContainerElementChange:C,getOrderedElements:w}=r(),[T,E]=n(e=>{x(e),C(e)});return p(()=>{if(!b.value)return;let e=w().find(e=>e.id.includes(b.value));e&&S(e)}),(e,t)=>(u(),s(`nav`,{ref:f(E),class:l(y.value),"aria-label":`Main`,"data-orientation":c.orientation,"data-soybean-navigation-menu":``,dir:c.dir},[d(e.$slots,`default`,{modelValue:f(b)})],10,m))}});export{h as default};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Direction } from "../../types/common.js";
|
|
1
|
+
import { DataOrientation, Direction } from "../../types/common.js";
|
|
2
2
|
import { NavigationMenuRootProps } from "./types.js";
|
|
3
3
|
import "../../index.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as vue109 from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/components/navigation-menu/navigation-menu-root.vue.d.ts
|
|
7
7
|
declare var __VLS_1: {
|
|
@@ -10,16 +10,17 @@ declare var __VLS_1: {
|
|
|
10
10
|
type __VLS_Slots = {} & {
|
|
11
11
|
default?: (props: typeof __VLS_1) => any;
|
|
12
12
|
};
|
|
13
|
-
declare const __VLS_base:
|
|
13
|
+
declare const __VLS_base: vue109.DefineComponent<NavigationMenuRootProps, {}, {}, {}, {}, vue109.ComponentOptionsMixin, vue109.ComponentOptionsMixin, {
|
|
14
14
|
"update:modelValue": (value: string) => any;
|
|
15
|
-
}, string,
|
|
15
|
+
}, string, vue109.PublicProps, Readonly<NavigationMenuRootProps> & Readonly<{
|
|
16
16
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
17
17
|
}>, {
|
|
18
18
|
dir: Direction;
|
|
19
|
+
orientation: DataOrientation;
|
|
20
|
+
unmountOnHide: boolean;
|
|
19
21
|
delayDuration: number;
|
|
20
22
|
skipDelayDuration: number;
|
|
21
|
-
|
|
22
|
-
}, {}, {}, {}, string, vue1019.ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
}, {}, {}, {}, string, vue109.ComponentProvideOptions, false, {}, any>;
|
|
23
24
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
24
25
|
declare const _default: typeof __VLS_export;
|
|
25
26
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { NavigationMenuSubListProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue104 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/navigation-menu/navigation-menu-sub-list.vue.d.ts
|
|
5
5
|
declare var __VLS_1: {};
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
7
|
default?: (props: typeof __VLS_1) => any;
|
|
8
8
|
};
|
|
9
|
-
declare const __VLS_base:
|
|
9
|
+
declare const __VLS_base: vue104.DefineComponent<NavigationMenuSubListProps, {}, {}, {}, {}, vue104.ComponentOptionsMixin, vue104.ComponentOptionsMixin, {}, string, vue104.PublicProps, Readonly<NavigationMenuSubListProps> & Readonly<{}>, {}, {}, {}, {}, string, vue104.ComponentProvideOptions, false, {}, any>;
|
|
10
10
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
11
|
declare const _default: typeof __VLS_export;
|
|
12
12
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{isNullish as e}from"../../shared/guard.js";import{isMouseEvent as t}from"../../shared/event.js";import{useForwardElement as n}from"../../composables/use-forward-element.js";import{Primitive as r}from"../primitive/primitive.js";import i from"../visually-hidden/visually-hidden.js";import{useCollectionItem as a,useNavigationMenuItemContext as o,useNavigationMenuRootContext as s,useNavigationMenuThemeContext as c}from"./context.js";import{Fragment as l,computed as u,createCommentVNode as d,createElementBlock as f,createVNode as p,defineComponent as m,mergeProps as h,openBlock as g,renderSlot as _,unref as v,useAttrs as y,withCtx as b}from"vue";import{refAutoReset as
|
|
1
|
+
import{isNullish as e}from"../../shared/guard.js";import{isMouseEvent as t}from"../../shared/event.js";import{useForwardElement as n}from"../../composables/use-forward-element.js";import{Primitive as r}from"../primitive/primitive.js";import i from"../visually-hidden/visually-hidden.js";import{useCollectionItem as a,useNavigationMenuItemContext as o,useNavigationMenuRootContext as s,useNavigationMenuThemeContext as c}from"./context.js";import{Fragment as l,computed as u,createCommentVNode as d,createElementBlock as f,createVNode as p,defineComponent as m,mergeProps as h,openBlock as g,renderSlot as _,unref as v,useAttrs as y,withCtx as b}from"vue";import{refAutoReset as ee}from"@vueuse/core";const x=[`aria-owns`];var S=m({name:`NavigationMenuTrigger`,inheritAttrs:!1,__name:`navigation-menu-trigger`,props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{default:`button`}},setup(m){let S=m,C=y(),{dir:w,orientation:T,disableClickTrigger:E,disableHoverTrigger:D,viewportElement:O,onItemSelect:k,onTriggerEnter:A,onTriggerLeave:j}=s(`NavigationMenuTrigger`),{value:M,triggerId:N,contentId:P,open:F,dataState:I,wasEscapeCloseRef:L,onTriggerElementChange:R,setFocusProxyElement:z,onEntryKeyDown:B,onFocusProxyEnter:V}=o(`NavigationMenuTrigger`),H=c(),U=u(()=>H?.ui?.value?.trigger),{itemProps:W,onItemElementChange:G}=a(),[K,q]=n(e=>{R(e),G(e)}),J=ee(!1,300),Y=!1,X=()=>{D.value||(Y=!1,L.value=!1)},Z=e=>{D.value||t(e)&&(S.disabled||Y||L.value||J.value||(A(M),J.value=!0))},Q=e=>{D.value||t(e)&&(S.disabled||(j(),J.value=!1))},$=t=>{(e(t.pointerType)||t.pointerType===`mouse`)&&E.value||J.value||(F.value?k(``):k(M),Y=F.value)},te=e=>{let t={horizontal:`ArrowDown`,vertical:w.value===`rtl`?`ArrowLeft`:`ArrowRight`}[T.value];F.value&&e.key===t&&(B(),e.preventDefault(),e.stopPropagation())},ne=e=>{let t=document.getElementById(P),n=e.relatedTarget,r=n===K.value,i=t?.contains(n);(r||!i)&&V(r?`start`:`end`)};return(e,t)=>(g(),f(l,null,[p(v(r),h({...v(C),...v(W)},{id:v(N),ref:v(q),as:m.as,"as-child":m.asChild,class:U.value,disabled:m.disabled,"data-disabled":m.disabled?``:void 0,"data-state":v(I),"data-soybean-navigation-menu-trigger":``,"aria-expanded":v(F),"aria-controls":v(P),onPointerenter:X,onPointermove:Z,onPointerleave:Q,onClick:$,onKeydown:te}),{default:b(()=>[_(e.$slots,`default`)]),_:3},16,[`id`,`as`,`as-child`,`class`,`disabled`,`data-disabled`,`data-state`,`aria-expanded`,`aria-controls`]),v(F)?(g(),f(l,{key:0},[p(v(i),{ref:v(z),"aria-hidden":`true`,tabindex:0,onFocus:ne},null,512),v(O)?(g(),f(`span`,{key:0,"aria-owns":v(P)},null,8,x)):d(`v-if`,!0)],64)):d(`v-if`,!0)],64))}});export{S as default};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { AsTag } from "../primitive/types.js";
|
|
2
2
|
import "../primitive/index.js";
|
|
3
3
|
import { NavigationMenuTriggerProps } from "./types.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as vue134 from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/components/navigation-menu/navigation-menu-trigger.vue.d.ts
|
|
7
7
|
declare var __VLS_13: {};
|
|
8
8
|
type __VLS_Slots = {} & {
|
|
9
9
|
default?: (props: typeof __VLS_13) => any;
|
|
10
10
|
};
|
|
11
|
-
declare const __VLS_base:
|
|
12
|
-
as: AsTag |
|
|
13
|
-
}, {}, {}, {}, string,
|
|
11
|
+
declare const __VLS_base: vue134.DefineComponent<NavigationMenuTriggerProps, {}, {}, {}, {}, vue134.ComponentOptionsMixin, vue134.ComponentOptionsMixin, {}, string, vue134.PublicProps, Readonly<NavigationMenuTriggerProps> & Readonly<{}>, {
|
|
12
|
+
as: AsTag | vue134.Component;
|
|
13
|
+
}, {}, {}, {}, string, vue134.ComponentProvideOptions, false, {}, any>;
|
|
14
14
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
15
15
|
declare const _default: typeof __VLS_export;
|
|
16
16
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { Align } from "../../types/common.js";
|
|
2
2
|
import { NavigationMenuViewportProps } from "./types.js";
|
|
3
3
|
import "../../index.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as vue140 from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/components/navigation-menu/navigation-menu-viewport.vue.d.ts
|
|
7
7
|
declare var __VLS_1: {};
|
|
8
8
|
type __VLS_Slots = {} & {
|
|
9
9
|
default?: (props: typeof __VLS_1) => any;
|
|
10
10
|
};
|
|
11
|
-
declare const __VLS_base:
|
|
11
|
+
declare const __VLS_base: vue140.DefineComponent<NavigationMenuViewportProps, {}, {}, {}, {}, vue140.ComponentOptionsMixin, vue140.ComponentOptionsMixin, {}, string, vue140.PublicProps, Readonly<NavigationMenuViewportProps> & Readonly<{}>, {
|
|
12
12
|
align: Align;
|
|
13
|
-
}, {}, {}, {}, string,
|
|
13
|
+
}, {}, {}, {}, string, vue140.ComponentProvideOptions, false, {}, any>;
|
|
14
14
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
15
15
|
declare const _default: typeof __VLS_export;
|
|
16
16
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Align, ClassValue, Direction } from "../../types/common.js";
|
|
1
|
+
import { Align, ClassValue, DataOrientation, Direction } from "../../types/common.js";
|
|
2
2
|
import { DismissableLayerEmits, DismissableLayerProps, ForceMountProps } from "../../types/component.js";
|
|
3
3
|
import "../../types/index.js";
|
|
4
4
|
import { PrimitiveProps } from "../primitive/types.js";
|
|
@@ -21,6 +21,8 @@ interface NavigationMenuRootProps extends /** @vue-ignore */HTMLAttributes {
|
|
|
21
21
|
* If omitted, inherits globally from `ConfigProvider` or assumes LTR (left-to-right) reading mode.
|
|
22
22
|
*/
|
|
23
23
|
dir?: Direction;
|
|
24
|
+
/** The orientation of the menu. */
|
|
25
|
+
orientation?: DataOrientation;
|
|
24
26
|
/**
|
|
25
27
|
* The duration from when the pointer enters the trigger until the tooltip gets opened.
|
|
26
28
|
*
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { NumberInputControlProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue1335 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/number-input/number-input-control.vue.d.ts
|
|
5
|
-
declare const __VLS_export:
|
|
5
|
+
declare const __VLS_export: vue1335.DefineComponent<NumberInputControlProps, {}, {}, {}, {}, vue1335.ComponentOptionsMixin, vue1335.ComponentOptionsMixin, {}, string, vue1335.PublicProps, Readonly<NumberInputControlProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1335.ComponentProvideOptions, false, {}, any>;
|
|
6
6
|
declare const _default: typeof __VLS_export;
|
|
7
7
|
//#endregion
|
|
8
8
|
export { _default };
|