@soybeanjs/headless 0.3.0 → 0.3.2
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 +3 -3
- package/dist/components/accordion/accordion-trigger.vue.d.ts +2 -2
- package/dist/components/accordion/context.d.ts +2 -2
- package/dist/components/accordion/context.js +1 -1
- package/dist/components/alert/alert-close.js +1 -1
- 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/context.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 -2
- 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/avatar/context.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/badge/context.d.ts +2 -2
- package/dist/components/breadcrumb/breadcrumb-ellipsis.js +1 -1
- 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 +2 -2
- 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/breadcrumb/context.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/card/context.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 +3 -3
- 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/checkbox/context.d.ts +2 -2
- package/dist/components/collapsible/collapsible-content.js +1 -1
- 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.vue.d.ts +4 -4
- package/dist/components/collapsible/context.d.ts +2 -2
- package/dist/components/collapsible/context.js +1 -1
- package/dist/components/config-provider/config-provider.vue.d.ts +3 -3
- package/dist/components/context-menu/context-menu-content.vue.d.ts +8 -8
- package/dist/components/context-menu/context-menu-root.js +1 -1
- package/dist/components/context-menu/context-menu-root.vue.d.ts +4 -4
- package/dist/components/context-menu/context-menu-trigger.js +1 -1
- package/dist/components/context-menu/context-menu-trigger.vue.d.ts +4 -4
- package/dist/components/dialog/context.d.ts +2 -2
- package/dist/components/dialog/context.js +1 -1
- package/dist/components/dialog/dialog-close.vue.d.ts +2 -2
- package/dist/components/dialog/dialog-content.vue.d.ts +6 -6
- 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 +5 -5
- 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/dropdown-menu/context.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-content.vue.d.ts +8 -8
- package/dist/components/dropdown-menu/dropdown-menu-root.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-root.vue.d.ts +6 -6
- package/dist/components/dropdown-menu/dropdown-menu-trigger.vue.d.ts +4 -4
- package/dist/components/form/context.d.ts +2 -2
- 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.vue.d.ts +2 -2
- package/dist/components/form/form-label.vue.d.ts +2 -2
- package/dist/components/input/context.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/layout/context.d.ts +2 -2
- package/dist/components/layout/index.d.ts +12 -11
- package/dist/components/layout/index.js +1 -1
- package/dist/components/layout/layout-content.js +1 -0
- package/dist/components/layout/layout-content.vue.d.ts +18 -0
- 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 +2 -2
- package/dist/components/layout/layout-rail.js +1 -1
- 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 +2 -2
- 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/layout/types.d.ts +5 -4
- package/dist/components/link/link.vue.d.ts +4 -4
- package/dist/components/list/context.d.ts +2 -2
- 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/context.d.ts +2 -2
- package/dist/components/listbox/listbox-content.js +1 -1
- package/dist/components/listbox/listbox-content.vue.d.ts +2 -2
- package/dist/components/listbox/listbox-filter.js +1 -1
- package/dist/components/listbox/listbox-filter.vue.d.ts +4 -4
- 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.js +1 -1
- package/dist/components/listbox/listbox-root.vue.d.ts +5 -5
- package/dist/components/listbox/listbox-virtualizer.vue.d.ts +2 -2
- package/dist/components/menu/context.d.ts +2 -2
- package/dist/components/menu/context.js +1 -1
- package/dist/components/menu/menu-checkbox-group.vue.d.ts +3 -3
- package/dist/components/menu/menu-checkbox-item.vue.d.ts +4 -4
- package/dist/components/menu/menu-content-impl.js +1 -1
- package/dist/components/menu/menu-content.vue.d.ts +8 -8
- 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 +4 -4
- package/dist/components/menu/menu-radio-group.vue.d.ts +3 -3
- package/dist/components/menu/menu-radio-item.vue.d.ts +4 -4
- 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 +8 -8
- package/dist/components/menu/menu-sub-trigger.vue.d.ts +2 -2
- package/dist/components/menu/menu-sub.vue.d.ts +4 -4
- package/dist/components/navigation-menu/context.d.ts +2 -2
- package/dist/components/navigation-menu/navigation-menu-content.vue.d.ts +4 -4
- package/dist/components/navigation-menu/navigation-menu-indicator.vue.d.ts +2 -2
- package/dist/components/navigation-menu/navigation-menu-item.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-item.vue.d.ts +2 -2
- package/dist/components/navigation-menu/navigation-menu-link.vue.d.ts +4 -4
- package/dist/components/navigation-menu/navigation-menu-list.vue.d.ts +2 -2
- package/dist/components/navigation-menu/navigation-menu-root.vue.d.ts +5 -5
- package/dist/components/navigation-menu/navigation-menu-sub-list.vue.d.ts +2 -2
- 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/number-input/context.d.ts +2 -2
- package/dist/components/number-input/number-input-control.js +1 -1
- package/dist/components/number-input/number-input-control.vue.d.ts +2 -2
- package/dist/components/number-input/number-input-decrement.js +1 -1
- package/dist/components/number-input/number-input-decrement.vue.d.ts +4 -4
- package/dist/components/number-input/number-input-increment.js +1 -1
- 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/context.d.ts +2 -2
- package/dist/components/pagination/pagination-ellipsis.js +1 -1
- package/dist/components/pagination/pagination-ellipsis.vue.d.ts +2 -2
- package/dist/components/pagination/pagination-first.js +1 -1
- package/dist/components/pagination/pagination-first.vue.d.ts +2 -2
- package/dist/components/pagination/pagination-last.js +1 -1
- 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.js +1 -1
- package/dist/components/pagination/pagination-next.vue.d.ts +2 -2
- package/dist/components/pagination/pagination-prev.js +1 -1
- package/dist/components/pagination/pagination-prev.vue.d.ts +2 -2
- package/dist/components/pagination/pagination-root.vue.d.ts +5 -5
- package/dist/components/popover/context.js +1 -1
- package/dist/components/popover/popover-anchor.vue.d.ts +2 -2
- package/dist/components/popover/popover-close.js +1 -1
- package/dist/components/popover/popover-close.vue.d.ts +4 -4
- package/dist/components/popover/popover-popup.vue.d.ts +2 -2
- package/dist/components/popover/popover-positioner.vue.d.ts +6 -6
- package/dist/components/popover/popover-root.vue.d.ts +5 -5
- package/dist/components/popover/popover-trigger.vue.d.ts +4 -4
- package/dist/components/popper/context.d.ts +2 -2
- package/dist/components/popper/popper-anchor.vue.d.ts +2 -2
- package/dist/components/popper/popper-arrow.vue.d.ts +2 -2
- package/dist/components/popper/popper-popup.vue.d.ts +2 -2
- package/dist/components/popper/popper-positioner.vue.d.ts +17 -17
- package/dist/components/popper/popper-root.vue.d.ts +2 -2
- package/dist/components/portal/portal.vue.d.ts +3 -3
- package/dist/components/radio-group/context.d.ts +2 -2
- package/dist/components/radio-group/radio-group-control.js +1 -1
- 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 +3 -3
- package/dist/components/roving-focus/roving-focus-group.vue.d.ts +6 -6
- package/dist/components/roving-focus/roving-focus-item.vue.d.ts +3 -3
- package/dist/components/select/context.d.ts +2 -2
- package/dist/components/select/context.js +1 -1
- package/dist/components/select/select-arrow.vue.d.ts +2 -2
- package/dist/components/select/select-content-impl.js +1 -1
- package/dist/components/select/select-content.vue.d.ts +6 -6
- 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-indicator.vue.d.ts +4 -4
- package/dist/components/select/select-item-text.vue.d.ts +2 -2
- package/dist/components/select/select-item.js +1 -1
- package/dist/components/select/select-item.vue.d.ts +4 -4
- package/dist/components/select/select-root.vue.d.ts +5 -5
- package/dist/components/select/select-scroll-down-button.vue.d.ts +2 -2
- package/dist/components/select/select-scroll-up-button.vue.d.ts +2 -2
- package/dist/components/select/select-separator.vue.d.ts +2 -2
- 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.vue.d.ts +2 -2
- package/dist/components/separator/context.d.ts +2 -2
- 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/switch/context.d.ts +2 -2
- package/dist/components/switch/switch-control.js +1 -1
- package/dist/components/switch/switch-control.vue.d.ts +2 -2
- package/dist/components/switch/switch-root.vue.d.ts +3 -3
- package/dist/components/switch/switch-thumb.vue.d.ts +4 -4
- package/dist/components/tabs/context.d.ts +2 -2
- 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 +4 -4
- 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/context.d.ts +2 -2
- 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 +8 -8
- package/dist/components/toast/toast-title.vue.d.ts +2 -2
- package/dist/components/toast/toast-viewport.js +1 -1
- package/dist/components/toast/toast-viewport.vue.d.ts +4 -4
- package/dist/components/tooltip/context.js +1 -1
- package/dist/components/tooltip/tooltip-popup.vue.d.ts +2 -2
- package/dist/components/tooltip/tooltip-positioner.vue.d.ts +4 -4
- package/dist/components/tooltip/tooltip-root.vue.d.ts +4 -4
- package/dist/components/tooltip/tooltip-trigger.vue.d.ts +4 -4
- package/dist/components/tree/tree-item.js +1 -1
- package/dist/components/tree/tree-item.vue.d.ts +5 -5
- package/dist/components/tree/tree-root.vue.d.ts +3 -3
- package/dist/components/tree/tree-virtualizer-item.vue.d.ts +4 -4
- package/dist/components/tree/tree-virtualizer-root.vue.d.ts +3 -3
- package/dist/components/tree-menu/context.d.ts +2 -2
- package/dist/components/tree-menu/tree-menu-button.vue.d.ts +4 -4
- package/dist/components/tree-menu/tree-menu-collapsible.vue.d.ts +2 -2
- package/dist/components/tree-menu/tree-menu-group-label.vue.d.ts +2 -2
- package/dist/components/tree-menu/tree-menu-group-root.vue.d.ts +2 -2
- package/dist/components/tree-menu/tree-menu-group.vue.d.ts +4 -4
- package/dist/components/tree-menu/tree-menu-item.vue.d.ts +4 -4
- package/dist/components/tree-menu/tree-menu-root.vue.d.ts +4 -4
- package/dist/components/tree-menu/tree-menu-sub.vue.d.ts +4 -4
- 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/use-collection.d.ts +6 -6
- package/dist/composables/use-collection.js +1 -1
- package/dist/composables/use-dismissable-layer.d.ts +2 -2
- package/dist/composables/use-exposed-element.d.ts +2 -2
- package/dist/composables/use-forward-element.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-image-loading-status.js +1 -1
- package/dist/composables/use-is-using-keyboard.d.ts +2 -2
- package/dist/composables/use-is-using-keyboard.js +1 -1
- package/dist/composables/use-kbd.d.ts +2 -2
- 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/index.d.ts +121 -120
- package/dist/index.js +1 -1
- package/dist/namespaced/index.d.ts +14 -14
- package/dist/namespaced/index.js +1 -1
- package/dist/shared/focus.js +1 -1
- package/package.json +26 -26
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { MenuGroupLabelProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue1606 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/menu/menu-group-label.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: vue1606.DefineComponent<MenuGroupLabelProps, {}, {}, {}, {}, vue1606.ComponentOptionsMixin, vue1606.ComponentOptionsMixin, {}, string, vue1606.PublicProps, Readonly<MenuGroupLabelProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1606.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 { MenuGroupProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue1601 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/menu/menu-group.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: vue1601.DefineComponent<MenuGroupProps, {}, {}, {}, {}, vue1601.ComponentOptionsMixin, vue1601.ComponentOptionsMixin, {}, string, vue1601.PublicProps, Readonly<MenuGroupProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1601.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,16 +1,16 @@
|
|
|
1
1
|
import { AsTag } from "../primitive/types.js";
|
|
2
2
|
import "../primitive/index.js";
|
|
3
3
|
import { MenuItemIndicatorProps } from "./types.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as vue1621 from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/components/menu/menu-item-indicator.vue.d.ts
|
|
7
7
|
declare var __VLS_8: {};
|
|
8
8
|
type __VLS_Slots = {} & {
|
|
9
9
|
default?: (props: typeof __VLS_8) => any;
|
|
10
10
|
};
|
|
11
|
-
declare const __VLS_base:
|
|
12
|
-
as: AsTag |
|
|
13
|
-
}, {}, {}, {}, string,
|
|
11
|
+
declare const __VLS_base: vue1621.DefineComponent<MenuItemIndicatorProps, {}, {}, {}, {}, vue1621.ComponentOptionsMixin, vue1621.ComponentOptionsMixin, {}, string, vue1621.PublicProps, Readonly<MenuItemIndicatorProps> & Readonly<{}>, {
|
|
12
|
+
as: AsTag | vue1621.Component;
|
|
13
|
+
}, {}, {}, {}, string, vue1621.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 { MenuItemProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue1586 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/menu/menu-item.vue.d.ts
|
|
5
5
|
declare var __VLS_13: {};
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
7
|
default?: (props: typeof __VLS_13) => any;
|
|
8
8
|
};
|
|
9
|
-
declare const __VLS_base:
|
|
9
|
+
declare const __VLS_base: vue1586.DefineComponent<MenuItemProps, {}, {}, {}, {}, vue1586.ComponentOptionsMixin, vue1586.ComponentOptionsMixin, {
|
|
10
10
|
select: (event: Event) => any;
|
|
11
|
-
}, string,
|
|
11
|
+
}, string, vue1586.PublicProps, Readonly<MenuItemProps> & Readonly<{
|
|
12
12
|
onSelect?: ((event: Event) => any) | undefined;
|
|
13
|
-
}>, {}, {}, {}, {}, string,
|
|
13
|
+
}>, {}, {}, {}, {}, string, vue1586.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,11 +1,11 @@
|
|
|
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 vue1646 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:
|
|
8
|
+
props: vue1646.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;
|
|
@@ -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
|
+
}>) => vue1646.VNode & {
|
|
22
22
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
23
23
|
};
|
|
24
24
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MenuRadioItemProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue1627 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/menu/menu-radio-item.vue.d.ts
|
|
5
5
|
declare var __VLS_10: {
|
|
@@ -8,11 +8,11 @@ declare var __VLS_10: {
|
|
|
8
8
|
type __VLS_Slots = {} & {
|
|
9
9
|
default?: (props: typeof __VLS_10) => any;
|
|
10
10
|
};
|
|
11
|
-
declare const __VLS_base:
|
|
11
|
+
declare const __VLS_base: vue1627.DefineComponent<MenuRadioItemProps, {}, {}, {}, {}, vue1627.ComponentOptionsMixin, vue1627.ComponentOptionsMixin, {
|
|
12
12
|
select: (event: Event) => any;
|
|
13
|
-
}, string,
|
|
13
|
+
}, string, vue1627.PublicProps, Readonly<MenuRadioItemProps> & Readonly<{
|
|
14
14
|
onSelect?: ((event: Event) => any) | undefined;
|
|
15
|
-
}>, {}, {}, {}, {}, string,
|
|
15
|
+
}>, {}, {}, {}, {}, string, vue1627.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,5 +1,5 @@
|
|
|
1
1
|
import { MenuRootProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue1591 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: vue1591.DefineComponent<MenuRootProps, {}, {}, {}, {}, vue1591.ComponentOptionsMixin, vue1591.ComponentOptionsMixin, {
|
|
12
12
|
"update:open": (value: boolean) => any;
|
|
13
|
-
}, string,
|
|
13
|
+
}, string, vue1591.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, vue1591.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{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]
|
|
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]||(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 vue1648 from "vue";
|
|
6
6
|
|
|
7
7
|
//#region src/components/menu/menu-sub-content.vue.d.ts
|
|
8
8
|
declare var __VLS_14: {};
|
|
9
9
|
type __VLS_Slots = {} & {
|
|
10
10
|
default?: (props: typeof __VLS_14) => any;
|
|
11
11
|
};
|
|
12
|
-
declare const __VLS_base:
|
|
12
|
+
declare const __VLS_base: vue1648.DefineComponent<MenuSubContentProps, {}, {}, {}, {}, vue1648.ComponentOptionsMixin, vue1648.ComponentOptionsMixin, {
|
|
13
13
|
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
14
|
+
entryFocus: (event: Event) => any;
|
|
14
15
|
pointerDownOutside: (event: PointerDownOutsideEvent) => any;
|
|
15
16
|
focusOutside: (event: FocusOutsideEvent) => any;
|
|
16
17
|
interactOutside: (event: PointerDownOutsideEvent | FocusOutsideEvent) => any;
|
|
17
|
-
openAutoFocus: (event: Event) => any;
|
|
18
18
|
closeAutoFocus: (event: Event) => any;
|
|
19
|
-
|
|
20
|
-
}, string,
|
|
19
|
+
openAutoFocus: (event: Event) => any;
|
|
20
|
+
}, string, vue1648.PublicProps, Readonly<MenuSubContentProps> & Readonly<{
|
|
21
21
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
22
|
+
onEntryFocus?: ((event: Event) => any) | undefined;
|
|
22
23
|
onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
23
24
|
onFocusOutside?: ((event: FocusOutsideEvent) => any) | undefined;
|
|
24
25
|
onInteractOutside?: ((event: PointerDownOutsideEvent | FocusOutsideEvent) => any) | undefined;
|
|
25
|
-
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
26
26
|
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
27
|
-
|
|
27
|
+
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
28
28
|
}>, {
|
|
29
29
|
prioritizePosition: boolean;
|
|
30
|
-
}, {}, {}, {}, string,
|
|
30
|
+
}, {}, {}, {}, string, vue1648.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,12 +1,12 @@
|
|
|
1
1
|
import { MenuSubTriggerProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue1611 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/menu/menu-sub-trigger.vue.d.ts
|
|
5
5
|
declare var __VLS_19: {};
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
7
|
default?: (props: typeof __VLS_19) => any;
|
|
8
8
|
};
|
|
9
|
-
declare const __VLS_base:
|
|
9
|
+
declare const __VLS_base: vue1611.DefineComponent<MenuSubTriggerProps, {}, {}, {}, {}, vue1611.ComponentOptionsMixin, vue1611.ComponentOptionsMixin, {}, string, vue1611.PublicProps, Readonly<MenuSubTriggerProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1611.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,18 +1,18 @@
|
|
|
1
1
|
import { MenuSubProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue1632 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: vue1632.DefineComponent<MenuSubProps, {}, {}, {}, {}, vue1632.ComponentOptionsMixin, vue1632.ComponentOptionsMixin, {
|
|
10
10
|
"update:open": (value: boolean) => any;
|
|
11
|
-
}, string,
|
|
11
|
+
}, string, vue1632.PublicProps, Readonly<MenuSubProps> & Readonly<{
|
|
12
12
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
13
13
|
}>, {
|
|
14
14
|
open: boolean;
|
|
15
|
-
}, {}, {}, {}, string,
|
|
15
|
+
}, {}, {}, {}, string, vue1632.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 & {
|
|
@@ -2,10 +2,10 @@ import { ClassValue, UiClass } from "../../types/common.js";
|
|
|
2
2
|
import "../../composables/index.js";
|
|
3
3
|
import { NavigationMenuUiSlot } from "./types.js";
|
|
4
4
|
import "../../index.js";
|
|
5
|
-
import * as
|
|
5
|
+
import * as vue543 from "vue";
|
|
6
6
|
|
|
7
7
|
//#region src/components/navigation-menu/context.d.ts
|
|
8
8
|
|
|
9
|
-
declare const provideNavigationMenuUi: (ui:
|
|
9
|
+
declare const provideNavigationMenuUi: (ui: vue543.ComputedRef<Partial<UiClass<NavigationMenuUiSlot>>>) => vue543.ComputedRef<Partial<UiClass<NavigationMenuUiSlot>>>, useNavigationMenuUi: <S extends NavigationMenuUiSlot | undefined = undefined>(slot?: S | undefined) => S extends NavigationMenuUiSlot ? vue543.ComputedRef<ClassValue> : vue543.ComputedRef<Partial<UiClass<NavigationMenuUiSlot>>>;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { provideNavigationMenuUi };
|
|
@@ -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 vue512 from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/components/navigation-menu/navigation-menu-content.vue.d.ts
|
|
7
7
|
declare var __VLS_17: {};
|
|
8
8
|
type __VLS_Slots = {} & {
|
|
9
9
|
default?: (props: typeof __VLS_17) => any;
|
|
10
10
|
};
|
|
11
|
-
declare const __VLS_base:
|
|
11
|
+
declare const __VLS_base: vue512.DefineComponent<NavigationMenuContentProps, {}, {}, {}, {}, vue512.ComponentOptionsMixin, vue512.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, vue512.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, vue512.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,12 +1,12 @@
|
|
|
1
1
|
import { NavigationMenuIndicatorProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue517 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: vue517.DefineComponent<NavigationMenuIndicatorProps, {}, {}, {}, {}, vue517.ComponentOptionsMixin, vue517.ComponentOptionsMixin, {}, string, vue517.PublicProps, Readonly<NavigationMenuIndicatorProps> & Readonly<{}>, {}, {}, {}, {}, string, vue517.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{useArrowNavigation as e}from"../../composables/use-arrow-navigation.js";import{getActiveElement as t}from"../../shared/dom.js";import{getTabbableCandidates as n,removeFromTabOrder as r,tryFocusFirst as i}from"../../shared/focus.js";import{provideNavigationMenuItemContext as a,useCollectionContext as o,useNavigationMenuRootContext as s,useNavigationMenuUi as c}from"./context.js";import{createContentId as l,createTriggerId as u}from"./shared.js";import{computed as d,createElementBlock as f,defineComponent as p,normalizeClass as m,onBeforeUnmount as h,openBlock as g,renderSlot as _,useId as v,withKeys as y}from"vue";var b=p({name:`NavigationMenuItem`,__name:`navigation-menu-item`,props:{value:{}},setup(p){let b=p,{isRoot:x,baseId:S,modelValue:C,onItemDismiss:w,addValue:T,removeValue:E}=s(`NavigationMenuItem`),{getOrderedElements:D}=o(`NavigationMenuItem`),O=c(),k=d(()=>x?O.value?.item:O.value?.subItem),A=b.value??v(),j=l(S,A),M=u(S,A),N=()=>({}),P=async(e=`start`)=>{let t=document.getElementById(j);if(!t)return;N();let r=n(t);r.length&&i(e===`start`?r:r.reverse())},F=()=>{let e=document.getElementById(j);if(!e)return;let t=n(e);t.length&&(N=r(t))},{triggerElement:I}=a({value:A,modelValue:C,contentId:j,triggerId:M,onEntryKeyDown:P,onFocusProxyEnter:P,onContentFocusOutside:F,onRootContentClose:F}),L=()=>{w(),I.value?.focus()},R=n=>{let r=t();if(!r)return;if(n.key===`Enter`||n.key===` `){if(C.value===A){L(),n.preventDefault();return}n.target.click(),n.preventDefault();return}let i=D().filter(e=>e.parentElement?.hasAttribute(`data-menu-item`));i.includes(r)&&(e(n,r,void 0,{itemsArray:i,loop:!1})?.focus?.(),n.preventDefault(),n.stopPropagation())};return T(A),h(()=>{E(A)}),(e,t)=>(g(),f(`li`,{class:m(k.value),"data-menu-item":``,onKeydown:y(R,[`up`,`down`,`left`,`right`,`home`,`end`,`space`])},[_(e.$slots,`default`)],34))}});export{b as default};
|
|
1
|
+
import{useArrowNavigation as e}from"../../composables/use-arrow-navigation.js";import{getActiveElement as t}from"../../shared/dom.js";import{getTabbableCandidates as n,removeFromTabOrder as r,tryFocusFirst as i}from"../../shared/focus.js";import{provideNavigationMenuItemContext as a,useCollectionContext as o,useNavigationMenuRootContext as s,useNavigationMenuUi as c}from"./context.js";import{createContentId as l,createTriggerId as u}from"./shared.js";import{computed as d,createElementBlock as f,defineComponent as p,normalizeClass as m,onBeforeUnmount as h,openBlock as g,renderSlot as _,useId as v,withKeys as y}from"vue";var b=p({name:`NavigationMenuItem`,__name:`navigation-menu-item`,props:{value:{}},setup(p){let b=p,{isRoot:x,baseId:S,modelValue:C,onItemDismiss:w,addValue:T,removeValue:E}=s(`NavigationMenuItem`),{getOrderedElements:D}=o(`NavigationMenuItem`),O=c(),k=d(()=>x?O.value?.item:O.value?.subItem),A=b.value??v(),j=l(S,A),M=u(S,A),N=()=>({}),P=async(e=`start`)=>{let t=document.getElementById(j);if(!t)return;N();let r=n(t);r.length&&i(e===`start`?r:r.slice().reverse())},F=()=>{let e=document.getElementById(j);if(!e)return;let t=n(e);t.length&&(N=r(t))},{triggerElement:I}=a({value:A,modelValue:C,contentId:j,triggerId:M,onEntryKeyDown:P,onFocusProxyEnter:P,onContentFocusOutside:F,onRootContentClose:F}),L=()=>{w(),I.value?.focus()},R=n=>{let r=t();if(!r)return;if(n.key===`Enter`||n.key===` `){if(C.value===A){L(),n.preventDefault();return}n.target.click(),n.preventDefault();return}let i=D().filter(e=>e.parentElement?.hasAttribute(`data-menu-item`));i.includes(r)&&(e(n,r,void 0,{itemsArray:i,loop:!1})?.focus?.(),n.preventDefault(),n.stopPropagation())};return T(A),h(()=>{E(A)}),(e,t)=>(g(),f(`li`,{class:m(k.value),"data-menu-item":``,onKeydown:y(R,[`up`,`down`,`left`,`right`,`home`,`end`,`space`])},[_(e.$slots,`default`)],34))}});export{b as default};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { NavigationMenuItemProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue502 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: vue502.DefineComponent<NavigationMenuItemProps, {}, {}, {}, {}, vue502.ComponentOptionsMixin, vue502.ComponentOptionsMixin, {}, string, vue502.PublicProps, Readonly<NavigationMenuItemProps> & Readonly<{}>, {}, {}, {}, {}, string, vue502.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,5 +1,5 @@
|
|
|
1
1
|
import { NavigationMenuLinkProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue522 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/navigation-menu/navigation-menu-link.vue.d.ts
|
|
5
5
|
declare var __VLS_10: {
|
|
@@ -10,15 +10,15 @@ declare var __VLS_10: {
|
|
|
10
10
|
type __VLS_Slots = {} & {
|
|
11
11
|
default?: (props: typeof __VLS_10) => any;
|
|
12
12
|
};
|
|
13
|
-
declare const __VLS_base:
|
|
13
|
+
declare const __VLS_base: vue522.DefineComponent<NavigationMenuLinkProps, {}, {}, {}, {}, vue522.ComponentOptionsMixin, vue522.ComponentOptionsMixin, {
|
|
14
14
|
select: (payload: CustomEvent<{
|
|
15
15
|
originalEvent: Event;
|
|
16
16
|
}>) => any;
|
|
17
|
-
}, string,
|
|
17
|
+
}, string, vue522.PublicProps, Readonly<NavigationMenuLinkProps> & Readonly<{
|
|
18
18
|
onSelect?: ((payload: CustomEvent<{
|
|
19
19
|
originalEvent: Event;
|
|
20
20
|
}>) => any) | undefined;
|
|
21
|
-
}>, {}, {}, {}, {}, string,
|
|
21
|
+
}>, {}, {}, {}, {}, string, vue522.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,12 +1,12 @@
|
|
|
1
1
|
import { NavigationMenuListProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue497 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: vue497.DefineComponent<NavigationMenuListProps, {}, {}, {}, {}, vue497.ComponentOptionsMixin, vue497.ComponentOptionsMixin, {}, string, vue497.PublicProps, Readonly<NavigationMenuListProps> & Readonly<{}>, {}, {}, {}, {}, string, vue497.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,7 +1,7 @@
|
|
|
1
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 vue492 from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/components/navigation-menu/navigation-menu-root.vue.d.ts
|
|
7
7
|
declare var __VLS_1: {
|
|
@@ -10,17 +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: vue492.DefineComponent<NavigationMenuRootProps, {}, {}, {}, {}, vue492.ComponentOptionsMixin, vue492.ComponentOptionsMixin, {
|
|
14
14
|
"update:modelValue": (value: string) => any;
|
|
15
|
-
}, string,
|
|
15
|
+
}, string, vue492.PublicProps, Readonly<NavigationMenuRootProps> & Readonly<{
|
|
16
16
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
17
17
|
}>, {
|
|
18
18
|
dir: Direction;
|
|
19
19
|
orientation: DataOrientation;
|
|
20
|
-
unmountOnHide: boolean;
|
|
21
20
|
delayDuration: number;
|
|
22
21
|
skipDelayDuration: number;
|
|
23
|
-
|
|
22
|
+
unmountOnHide: boolean;
|
|
23
|
+
}, {}, {}, {}, string, vue492.ComponentProvideOptions, false, {}, any>;
|
|
24
24
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
25
25
|
declare const _default: typeof __VLS_export;
|
|
26
26
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { NavigationMenuSubListProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue527 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: vue527.DefineComponent<NavigationMenuSubListProps, {}, {}, {}, {}, vue527.ComponentOptionsMixin, vue527.ComponentOptionsMixin, {}, string, vue527.PublicProps, Readonly<NavigationMenuSubListProps> & Readonly<{}>, {}, {}, {}, {}, string, vue527.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,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 vue486 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: vue486.DefineComponent<NavigationMenuTriggerProps, {}, {}, {}, {}, vue486.ComponentOptionsMixin, vue486.ComponentOptionsMixin, {}, string, vue486.PublicProps, Readonly<NavigationMenuTriggerProps> & Readonly<{}>, {
|
|
12
|
+
as: AsTag | vue486.Component;
|
|
13
|
+
}, {}, {}, {}, string, vue486.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 vue507 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: vue507.DefineComponent<NavigationMenuViewportProps, {}, {}, {}, {}, vue507.ComponentOptionsMixin, vue507.ComponentOptionsMixin, {}, string, vue507.PublicProps, Readonly<NavigationMenuViewportProps> & Readonly<{}>, {
|
|
12
12
|
align: Align;
|
|
13
|
-
}, {}, {}, {}, string,
|
|
13
|
+
}, {}, {}, {}, string, vue507.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,10 +1,10 @@
|
|
|
1
1
|
import { ClassValue, UiClass } from "../../types/common.js";
|
|
2
2
|
import { NumberInputUiSlot } from "./types.js";
|
|
3
3
|
import "../../index.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as vue161 from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/components/number-input/context.d.ts
|
|
7
7
|
|
|
8
|
-
declare const provideNumberInputUi: (ui:
|
|
8
|
+
declare const provideNumberInputUi: (ui: vue161.ComputedRef<Partial<UiClass<NumberInputUiSlot>>>) => vue161.ComputedRef<Partial<UiClass<NumberInputUiSlot>>>, useNumberInputUi: <S extends NumberInputUiSlot | undefined = undefined>(slot?: S | undefined) => S extends NumberInputUiSlot ? vue161.ComputedRef<ClassValue> : vue161.ComputedRef<Partial<UiClass<NumberInputUiSlot>>>;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { provideNumberInputUi };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{getActiveElement as e}from"../../shared/dom.js";import{useNumberInputRootContext as t,useNumberInputUi as n}from"./context.js";import{createElementBlock as r,defineComponent as i,normalizeClass as a,openBlock as o,shallowRef as s,unref as c,watch as l,withKeys as u,withModifiers as d}from"vue";const f=[`id`,`aria-valuemin`,`aria-valuemax`,`aria-valuenow`,`autofocus`,`data-disabled`,`data-readonly`,`disabled`,`inputmode`,`maxlength`,`minlength`,`pattern`,`placeholder`,`value`,`readonly`];var p=i({name:`NumberInputControl`,__name:`number-input-control`,setup(i){let p=n(`control`),{id:m,autofocus:h,maxlength:g,minlength:_,pattern:v,placeholder:y,setInputElement:b,modelValue:x,disabled:S,readonly:C,textValue:w,inputMode:T,min:E,max:D,disableWheelChange:O,invertWheelChange:k,onDecrease:A,onIncrease:j,validate:M,onMinMaxValue:N,applyInputValue:P}=t(`NumberInputControl`),F=s(w.value),I=t=>{if(!O.value&&t.target===e()&&!(Math.abs(t.deltaY)<=Math.abs(t.deltaX))){if(t.preventDefault(),t.deltaY>0){k.value?A():j();return}t.deltaY<0&&(k.value?j():A())}},L=e=>{let t=e.target;M(t.value.slice(0,t.selectionStart??void 0)+(e.data??``)+t.value.slice(t.selectionEnd??void 0))||e.preventDefault()},R=e=>{F.value=e.target.value},z=()=>{requestAnimationFrame(()=>{F.value=w.value})},B=e=>{let t=e.target;P(t.value)},V=e=>{B(e)},H=e=>{B(e)};return l(()=>w.value,()=>{F.value=w.value},{immediate:!0,deep:!0}),(e,t)=>(o(),r(`input`,{id:c(m),ref:c(b),class:a(c(p)),"aria-roledescription":`Number Input`,"aria-valuemin":c(E),"aria-valuemax":c(D),"aria-valuenow":c(x)??void 0,autocomplete:`off`,autocorrect:`off`,autofocus:c(h),"data-disabled":c(S)?``:void 0,"data-readonly":c(C)?``:void 0,disabled:c(S),inputmode:c(T),maxlength:c(g),minlength:c(_),pattern:c(v),placeholder:c(y),value:F.value,readonly:c(C),role:`spinbutton`,spellcheck:`false`,tabindex:`0`,type:`text`,onBeforeinput:L,onBlur:H,onChange:z,onInput:R,onKeydown:[t[0]
|
|
1
|
+
import{getActiveElement as e}from"../../shared/dom.js";import{useNumberInputRootContext as t,useNumberInputUi as n}from"./context.js";import{createElementBlock as r,defineComponent as i,normalizeClass as a,openBlock as o,shallowRef as s,unref as c,watch as l,withKeys as u,withModifiers as d}from"vue";const f=[`id`,`aria-valuemin`,`aria-valuemax`,`aria-valuenow`,`autofocus`,`data-disabled`,`data-readonly`,`disabled`,`inputmode`,`maxlength`,`minlength`,`pattern`,`placeholder`,`value`,`readonly`];var p=i({name:`NumberInputControl`,__name:`number-input-control`,setup(i){let p=n(`control`),{id:m,autofocus:h,maxlength:g,minlength:_,pattern:v,placeholder:y,setInputElement:b,modelValue:x,disabled:S,readonly:C,textValue:w,inputMode:T,min:E,max:D,disableWheelChange:O,invertWheelChange:k,onDecrease:A,onIncrease:j,validate:M,onMinMaxValue:N,applyInputValue:P}=t(`NumberInputControl`),F=s(w.value),I=t=>{if(!O.value&&t.target===e()&&!(Math.abs(t.deltaY)<=Math.abs(t.deltaX))){if(t.preventDefault(),t.deltaY>0){k.value?A():j();return}t.deltaY<0&&(k.value?j():A())}},L=e=>{let t=e.target;M(t.value.slice(0,t.selectionStart??void 0)+(e.data??``)+t.value.slice(t.selectionEnd??void 0))||e.preventDefault()},R=e=>{F.value=e.target.value},z=()=>{requestAnimationFrame(()=>{F.value=w.value})},B=e=>{let t=e.target;P(t.value)},V=e=>{B(e)},H=e=>{B(e)};return l(()=>w.value,()=>{F.value=w.value},{immediate:!0,deep:!0}),(e,t)=>(o(),r(`input`,{id:c(m),ref:c(b),class:a(c(p)),"aria-roledescription":`Number Input`,"aria-valuemin":c(E),"aria-valuemax":c(D),"aria-valuenow":c(x)??void 0,autocomplete:`off`,autocorrect:`off`,autofocus:c(h),"data-disabled":c(S)?``:void 0,"data-readonly":c(C)?``:void 0,disabled:c(S),inputmode:c(T),maxlength:c(g),minlength:c(_),pattern:c(v),placeholder:c(y),value:F.value,readonly:c(C),role:`spinbutton`,spellcheck:`false`,tabindex:`0`,type:`text`,onBeforeinput:L,onBlur:H,onChange:z,onInput:R,onKeydown:[t[0]||(t[0]=u(d((...e)=>c(A)&&c(A)(...e),[`prevent`]),[`down`])),t[1]||(t[1]=u(d(e=>c(N)(`max`),[`prevent`]),[`end`])),t[2]||(t[2]=u(d(e=>c(N)(`min`),[`prevent`]),[`home`])),t[3]||(t[3]=u(d(e=>c(j)(10),[`prevent`]),[`page-up`])),t[4]||(t[4]=u(d(e=>c(A)(10),[`prevent`]),[`page-down`])),t[5]||(t[5]=u(d((...e)=>c(j)&&c(j)(...e),[`prevent`]),[`up`])),u(V,[`enter`])],onWheel:I},null,42,f))}});export{p as default};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { NumberInputControlProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue253 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: vue253.DefineComponent<NumberInputControlProps, {}, {}, {}, {}, vue253.ComponentOptionsMixin, vue253.ComponentOptionsMixin, {}, string, vue253.PublicProps, Readonly<NumberInputControlProps> & Readonly<{}>, {}, {}, {}, {}, string, vue253.ComponentProvideOptions, false, {}, any>;
|
|
6
6
|
declare const _default: typeof __VLS_export;
|
|
7
7
|
//#endregion
|
|
8
8
|
export { _default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useForwardElement as e}from"../../composables/use-forward-element.js";import{Primitive as t}from"../primitive/primitive.js";import{usePressedHold as n}from"./shared.js";import{useNumberInputRootContext as r,useNumberInputUi as i}from"./context.js";import{computed as a,createBlock as o,defineComponent as s,normalizeClass as c,normalizeStyle as l,openBlock as u,renderSlot as d,unref as f,withCtx as p,withModifiers as m}from"vue";var h=s({name:`NumberInputDecrement`,__name:`number-input-decrement`,props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{default:`button`}},setup(s){let h=s,{disabled:g,readonly:_,isIncreaseDisabled:v,onDecrease:y}=r(`NumberInputDecrement`),b=i(`decrement`),[x,S]=e(),C=a(()=>g.value||_.value||h.disabled||v.value),{isPressed:w,onTrigger:T}=n({target:x,disabled:C}),E=a(()=>h.as===`button`?`button`:void 0),D=a(()=>w.value?`user-select:none;`:void 0);return T(()=>{y()}),(e,n)=>(u(),o(f(t),{ref:f(S),as:s.as,"as-child":s.asChild,class:c(f(b)),type:E.value,tabindex:`-1`,"aria-label":`Decrease`,disabled:C.value?``:void 0,"data-disabled":C.value?``:void 0,"data-pressed":f(w)?`true`:void 0,style:l(D.value),onContextmenu:n[0]
|
|
1
|
+
import{useForwardElement as e}from"../../composables/use-forward-element.js";import{Primitive as t}from"../primitive/primitive.js";import{usePressedHold as n}from"./shared.js";import{useNumberInputRootContext as r,useNumberInputUi as i}from"./context.js";import{computed as a,createBlock as o,defineComponent as s,normalizeClass as c,normalizeStyle as l,openBlock as u,renderSlot as d,unref as f,withCtx as p,withModifiers as m}from"vue";var h=s({name:`NumberInputDecrement`,__name:`number-input-decrement`,props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{default:`button`}},setup(s){let h=s,{disabled:g,readonly:_,isIncreaseDisabled:v,onDecrease:y}=r(`NumberInputDecrement`),b=i(`decrement`),[x,S]=e(),C=a(()=>g.value||_.value||h.disabled||v.value),{isPressed:w,onTrigger:T}=n({target:x,disabled:C}),E=a(()=>h.as===`button`?`button`:void 0),D=a(()=>w.value?`user-select:none;`:void 0);return T(()=>{y()}),(e,n)=>(u(),o(f(t),{ref:f(S),as:s.as,"as-child":s.asChild,class:c(f(b)),type:E.value,tabindex:`-1`,"aria-label":`Decrease`,disabled:C.value?``:void 0,"data-disabled":C.value?``:void 0,"data-pressed":f(w)?`true`:void 0,style:l(D.value),onContextmenu:n[0]||(n[0]=m(()=>{},[`prevent`]))},{default:p(()=>[d(e.$slots,`default`)]),_:3},8,[`as`,`as-child`,`class`,`type`,`disabled`,`data-disabled`,`data-pressed`,`style`]))}});export{h as default};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { AsTag } from "../primitive/types.js";
|
|
2
2
|
import "../primitive/index.js";
|
|
3
3
|
import { NumberInputDecrementProps } from "./types.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as vue155 from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/components/number-input/number-input-decrement.vue.d.ts
|
|
7
7
|
declare var __VLS_10: {};
|
|
8
8
|
type __VLS_Slots = {} & {
|
|
9
9
|
default?: (props: typeof __VLS_10) => any;
|
|
10
10
|
};
|
|
11
|
-
declare const __VLS_base:
|
|
12
|
-
as: AsTag |
|
|
13
|
-
}, {}, {}, {}, string,
|
|
11
|
+
declare const __VLS_base: vue155.DefineComponent<NumberInputDecrementProps, {}, {}, {}, {}, vue155.ComponentOptionsMixin, vue155.ComponentOptionsMixin, {}, string, vue155.PublicProps, Readonly<NumberInputDecrementProps> & Readonly<{}>, {
|
|
12
|
+
as: AsTag | vue155.Component;
|
|
13
|
+
}, {}, {}, {}, string, vue155.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 +1 @@
|
|
|
1
|
-
import{useForwardElement as e}from"../../composables/use-forward-element.js";import{Primitive as t}from"../primitive/primitive.js";import{usePressedHold as n}from"./shared.js";import{useNumberInputRootContext as r,useNumberInputUi as i}from"./context.js";import{computed as a,createBlock as o,defineComponent as s,normalizeClass as c,normalizeStyle as l,openBlock as u,renderSlot as d,unref as f,withCtx as p,withModifiers as m}from"vue";var h=s({name:`NumberInputIncrement`,__name:`number-input-increment`,props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{default:`button`}},setup(s){let h=s,{disabled:g,readonly:_,isIncreaseDisabled:v,onIncrease:y}=r(`NumberInputIncrement`),b=i(`increment`),[x,S]=e(),C=a(()=>g.value||_.value||h.disabled||v.value),{isPressed:w,onTrigger:T}=n({target:x,disabled:C}),E=a(()=>h.as===`button`?`button`:void 0),D=a(()=>w.value?`user-select:none;`:void 0);return T(()=>{y()}),(e,n)=>(u(),o(f(t),{ref:f(S),as:s.as,"as-child":s.asChild,class:c(f(b)),type:E.value,tabindex:`-1`,"aria-label":`Increase`,disabled:C.value?``:void 0,"data-disabled":C.value?``:void 0,"data-pressed":f(w)?`true`:void 0,style:l(D.value),onContextmenu:n[0]
|
|
1
|
+
import{useForwardElement as e}from"../../composables/use-forward-element.js";import{Primitive as t}from"../primitive/primitive.js";import{usePressedHold as n}from"./shared.js";import{useNumberInputRootContext as r,useNumberInputUi as i}from"./context.js";import{computed as a,createBlock as o,defineComponent as s,normalizeClass as c,normalizeStyle as l,openBlock as u,renderSlot as d,unref as f,withCtx as p,withModifiers as m}from"vue";var h=s({name:`NumberInputIncrement`,__name:`number-input-increment`,props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{default:`button`}},setup(s){let h=s,{disabled:g,readonly:_,isIncreaseDisabled:v,onIncrease:y}=r(`NumberInputIncrement`),b=i(`increment`),[x,S]=e(),C=a(()=>g.value||_.value||h.disabled||v.value),{isPressed:w,onTrigger:T}=n({target:x,disabled:C}),E=a(()=>h.as===`button`?`button`:void 0),D=a(()=>w.value?`user-select:none;`:void 0);return T(()=>{y()}),(e,n)=>(u(),o(f(t),{ref:f(S),as:s.as,"as-child":s.asChild,class:c(f(b)),type:E.value,tabindex:`-1`,"aria-label":`Increase`,disabled:C.value?``:void 0,"data-disabled":C.value?``:void 0,"data-pressed":f(w)?`true`:void 0,style:l(D.value),onContextmenu:n[0]||(n[0]=m(()=>{},[`prevent`]))},{default:p(()=>[d(e.$slots,`default`)]),_:3},8,[`as`,`as-child`,`class`,`type`,`disabled`,`data-disabled`,`data-pressed`,`style`]))}});export{h as default};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { AsTag } from "../primitive/types.js";
|
|
2
2
|
import "../primitive/index.js";
|
|
3
3
|
import { NumberInputIncrementProps } from "./types.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as vue149 from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/components/number-input/number-input-increment.vue.d.ts
|
|
7
7
|
declare var __VLS_10: {};
|
|
8
8
|
type __VLS_Slots = {} & {
|
|
9
9
|
default?: (props: typeof __VLS_10) => any;
|
|
10
10
|
};
|
|
11
|
-
declare const __VLS_base:
|
|
12
|
-
as: AsTag |
|
|
13
|
-
}, {}, {}, {}, string,
|
|
11
|
+
declare const __VLS_base: vue149.DefineComponent<NumberInputIncrementProps, {}, {}, {}, {}, vue149.ComponentOptionsMixin, vue149.ComponentOptionsMixin, {}, string, vue149.PublicProps, Readonly<NumberInputIncrementProps> & Readonly<{}>, {
|
|
12
|
+
as: AsTag | vue149.Component;
|
|
13
|
+
}, {}, {}, {}, string, vue149.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,5 +1,5 @@
|
|
|
1
1
|
import { NumberInputRootProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue144 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/number-input/number-input-root.vue.d.ts
|
|
5
5
|
declare var __VLS_1: {
|
|
@@ -9,15 +9,15 @@ declare var __VLS_1: {
|
|
|
9
9
|
type __VLS_Slots = {} & {
|
|
10
10
|
default?: (props: typeof __VLS_1) => any;
|
|
11
11
|
};
|
|
12
|
-
declare const __VLS_base:
|
|
12
|
+
declare const __VLS_base: vue144.DefineComponent<NumberInputRootProps, {}, {}, {}, {}, vue144.ComponentOptionsMixin, vue144.ComponentOptionsMixin, {
|
|
13
13
|
"update:modelValue": (val: number) => any;
|
|
14
|
-
}, string,
|
|
14
|
+
}, string, vue144.PublicProps, Readonly<NumberInputRootProps> & Readonly<{
|
|
15
15
|
"onUpdate:modelValue"?: ((val: number) => any) | undefined;
|
|
16
16
|
}>, {
|
|
17
17
|
modelValue: number | null;
|
|
18
18
|
step: number;
|
|
19
19
|
stepSnapping: boolean;
|
|
20
|
-
}, {}, {}, {}, string,
|
|
20
|
+
}, {}, {}, {}, string, vue144.ComponentProvideOptions, false, {}, any>;
|
|
21
21
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
22
22
|
declare const _default: typeof __VLS_export;
|
|
23
23
|
type __VLS_WithSlots<T, S> = T & {
|