@soybeanjs/headless 0.4.0 → 0.4.1
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/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.vue.d.ts +4 -4
- package/dist/components/alert-dialog/alert-dialog-root.vue.d.ts +4 -4
- 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.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.vue.d.ts +2 -2
- package/dist/components/collapsible/collapsible-root.vue.d.ts +7 -7
- package/dist/components/collapsible/collapsible-trigger.vue.d.ts +4 -4
- package/dist/components/collapsible/context.d.ts +2 -2
- package/dist/components/config-provider/config-provider.vue.d.ts +3 -3
- package/dist/components/context-menu/context-menu-content.vue.d.ts +6 -6
- package/dist/components/context-menu/context-menu-root.vue.d.ts +4 -4
- 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/dialog-close.vue.d.ts +2 -2
- package/dist/components/dialog/dialog-content.vue.d.ts +4 -4
- 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/dropdown-menu/dropdown-menu-content.vue.d.ts +6 -6
- package/dist/components/dropdown-menu/dropdown-menu-root.vue.d.ts +5 -5
- 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/label/label.vue.d.ts +2 -2
- package/dist/components/layout/context.d.ts +2 -2
- package/dist/components/layout/layout-content.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 +2 -2
- 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/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.vue.d.ts +2 -2
- 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.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/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.vue.d.ts +6 -6
- 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.vue.d.ts +6 -6
- 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.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.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/page-tabs/context.d.ts +2 -2
- package/dist/components/page-tabs/context.js +1 -1
- package/dist/components/page-tabs/hooks.js +1 -0
- package/dist/components/page-tabs/index.d.ts +2 -2
- package/dist/components/page-tabs/page-tabs-close.js +1 -1
- package/dist/components/page-tabs/page-tabs-close.vue.d.ts +2 -2
- package/dist/components/page-tabs/page-tabs-item.js +1 -1
- package/dist/components/page-tabs/page-tabs-item.vue.d.ts +6 -6
- package/dist/components/page-tabs/page-tabs-pin.vue.d.ts +2 -2
- package/dist/components/page-tabs/page-tabs-root.js +2 -2
- package/dist/components/page-tabs/page-tabs-root.vue.d.ts +13 -8
- package/dist/components/page-tabs/types.d.ts +39 -14
- package/dist/components/pagination/context.d.ts +2 -2
- 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 +5 -5
- 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.vue.d.ts +2 -2
- package/dist/components/popover/popover-positioner.vue.d.ts +4 -4
- package/dist/components/popover/popover-root.vue.d.ts +4 -4
- 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 +52 -52
- package/dist/components/popper/popper-root.vue.d.ts +2 -2
- package/dist/components/primitive/primitive.d.ts +2 -2
- package/dist/components/radio-group/context.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 +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/select-arrow.vue.d.ts +2 -2
- 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.vue.d.ts +4 -4
- package/dist/components/select/select-root.vue.d.ts +3 -3
- 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/slot/slot.d.ts +2 -2
- package/dist/components/switch/context.d.ts +2 -2
- 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 +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/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 +5 -5
- 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/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.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-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-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-props.d.ts +3 -3
- package/dist/composables/use-selection.d.ts +4 -4
- package/dist/index.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { NavigationMenuItemProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue1382 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: vue1382.DefineComponent<NavigationMenuItemProps, {}, {}, {}, {}, vue1382.ComponentOptionsMixin, vue1382.ComponentOptionsMixin, {}, string, vue1382.PublicProps, Readonly<NavigationMenuItemProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1382.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 vue1392 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: vue1392.DefineComponent<NavigationMenuLinkProps, {}, {}, {}, {}, vue1392.ComponentOptionsMixin, vue1392.ComponentOptionsMixin, {
|
|
14
14
|
select: (payload: CustomEvent<{
|
|
15
15
|
originalEvent: Event;
|
|
16
16
|
}>) => any;
|
|
17
|
-
}, string,
|
|
17
|
+
}, string, vue1392.PublicProps, Readonly<NavigationMenuLinkProps> & Readonly<{
|
|
18
18
|
onSelect?: ((payload: CustomEvent<{
|
|
19
19
|
originalEvent: Event;
|
|
20
20
|
}>) => any) | undefined;
|
|
21
|
-
}>, {}, {}, {}, {}, string,
|
|
21
|
+
}>, {}, {}, {}, {}, string, vue1392.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 vue1366 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: vue1366.DefineComponent<NavigationMenuListProps, {}, {}, {}, {}, vue1366.ComponentOptionsMixin, vue1366.ComponentOptionsMixin, {}, string, vue1366.PublicProps, Readonly<NavigationMenuListProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1366.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 vue1371 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: vue1371.DefineComponent<NavigationMenuRootProps, {}, {}, {}, {}, vue1371.ComponentOptionsMixin, vue1371.ComponentOptionsMixin, {
|
|
14
14
|
"update:modelValue": (value: string) => any;
|
|
15
|
-
}, string,
|
|
15
|
+
}, string, vue1371.PublicProps, Readonly<NavigationMenuRootProps> & Readonly<{
|
|
16
16
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
17
17
|
}>, {
|
|
18
|
-
orientation: DataOrientation;
|
|
19
18
|
dir: Direction;
|
|
19
|
+
orientation: DataOrientation;
|
|
20
20
|
unmountOnHide: boolean;
|
|
21
21
|
delayDuration: number;
|
|
22
22
|
skipDelayDuration: number;
|
|
23
|
-
}, {}, {}, {}, string,
|
|
23
|
+
}, {}, {}, {}, string, vue1371.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 vue1402 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: vue1402.DefineComponent<NavigationMenuSubListProps, {}, {}, {}, {}, vue1402.ComponentOptionsMixin, vue1402.ComponentOptionsMixin, {}, string, vue1402.PublicProps, Readonly<NavigationMenuSubListProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1402.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 vue1376 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: vue1376.DefineComponent<NavigationMenuTriggerProps, {}, {}, {}, {}, vue1376.ComponentOptionsMixin, vue1376.ComponentOptionsMixin, {}, string, vue1376.PublicProps, Readonly<NavigationMenuTriggerProps> & Readonly<{}>, {
|
|
12
|
+
as: AsTag | vue1376.Component;
|
|
13
|
+
}, {}, {}, {}, string, vue1376.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 vue1407 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: vue1407.DefineComponent<NavigationMenuViewportProps, {}, {}, {}, {}, vue1407.ComponentOptionsMixin, vue1407.ComponentOptionsMixin, {}, string, vue1407.PublicProps, Readonly<NavigationMenuViewportProps> & Readonly<{}>, {
|
|
12
12
|
align: Align;
|
|
13
|
-
}, {}, {}, {}, string,
|
|
13
|
+
}, {}, {}, {}, string, vue1407.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 vue186 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: vue186.ComputedRef<Partial<UiClass<NumberInputUiSlot>>>) => vue186.ComputedRef<Partial<UiClass<NumberInputUiSlot>>>, useNumberInputUi: <S extends NumberInputUiSlot | undefined = undefined>(slot?: S | undefined) => S extends NumberInputUiSlot ? vue186.ComputedRef<ClassValue> : vue186.ComputedRef<Partial<UiClass<NumberInputUiSlot>>>;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { provideNumberInputUi };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { NumberInputControlProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue169 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: vue169.DefineComponent<NumberInputControlProps, {}, {}, {}, {}, vue169.ComponentOptionsMixin, vue169.ComponentOptionsMixin, {}, string, vue169.PublicProps, Readonly<NumberInputControlProps> & Readonly<{}>, {}, {}, {}, {}, string, vue169.ComponentProvideOptions, false, {}, any>;
|
|
6
6
|
declare const _default: typeof __VLS_export;
|
|
7
7
|
//#endregion
|
|
8
8
|
export { _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 vue180 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: vue180.DefineComponent<NumberInputDecrementProps, {}, {}, {}, {}, vue180.ComponentOptionsMixin, vue180.ComponentOptionsMixin, {}, string, vue180.PublicProps, Readonly<NumberInputDecrementProps> & Readonly<{}>, {
|
|
12
|
+
as: AsTag | vue180.Component;
|
|
13
|
+
}, {}, {}, {}, string, vue180.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 { AsTag } from "../primitive/types.js";
|
|
2
2
|
import "../primitive/index.js";
|
|
3
3
|
import { NumberInputIncrementProps } from "./types.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as vue174 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: vue174.DefineComponent<NumberInputIncrementProps, {}, {}, {}, {}, vue174.ComponentOptionsMixin, vue174.ComponentOptionsMixin, {}, string, vue174.PublicProps, Readonly<NumberInputIncrementProps> & Readonly<{}>, {
|
|
12
|
+
as: AsTag | vue174.Component;
|
|
13
|
+
}, {}, {}, {}, string, vue174.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 vue164 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: vue164.DefineComponent<NumberInputRootProps, {}, {}, {}, {}, vue164.ComponentOptionsMixin, vue164.ComponentOptionsMixin, {
|
|
13
13
|
"update:modelValue": (val: number) => any;
|
|
14
|
-
}, string,
|
|
14
|
+
}, string, vue164.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, vue164.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 & {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ClassValue, UiClass } from "../../types/common.js";
|
|
2
2
|
import { PageTabsUiSlot } from "./types.js";
|
|
3
3
|
import "../../index.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as vue1646 from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/components/page-tabs/context.d.ts
|
|
7
7
|
|
|
8
|
-
declare const providePageTabsUi: (ui:
|
|
8
|
+
declare const providePageTabsUi: (ui: vue1646.ComputedRef<Partial<UiClass<PageTabsUiSlot>>>) => vue1646.ComputedRef<Partial<UiClass<PageTabsUiSlot>>>, usePageTabsUi: <S extends PageTabsUiSlot | undefined = undefined>(slot?: S | undefined) => S extends PageTabsUiSlot ? vue1646.ComputedRef<ClassValue> : vue1646.ComputedRef<Partial<UiClass<PageTabsUiSlot>>>;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { providePageTabsUi };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useContext as e}from"../../composables/use-context.js";import{useUiContext as t}from"../../composables/use-ui-context.js";const[
|
|
1
|
+
import{useContext as e}from"../../composables/use-context.js";import{useUiContext as t}from"../../composables/use-ui-context.js";import{usePageTabsOperation as n}from"./hooks.js";const[r,i]=e(`PageTabsRoot`,e=>{let t=n(e);return{...e,operations:t}}),[a,o]=e(`PageTabsItem`,e=>e),[s,c]=t(`PageTabsUi`);export{a as providePageTabsItemContext,r as providePageTabsRootContext,s as providePageTabsUi,o as usePageTabsItemContext,i as usePageTabsRootContext,c as usePageTabsUi};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useForwardElement as e}from"../../composables/use-forward-element.js";import{computed as t,watchEffect as n}from"vue";function r(r){let[i,a]=e(),o=t(()=>(i.value?.offsetWidth??0)/2);return n(()=>{if(!i.value||!o.value||!r.value)return;let e=i.value.querySelector(`[data-value="${r.value}"]`);if(!e)return;let t=e.offsetLeft+e.offsetWidth/2-o.value;i.value.scrollTo({left:t,behavior:`smooth`})}),{setRootElement:a,onWheel:e=>{i.value&&(i.value.scrollLeft+=e.deltaY)}}}function i(e){let{modelValue:t,pins:n,values:r,residents:i,beforeClose:a}=e,o=e=>i.value.includes(e),s=e=>{t.value!==e&&(t.value=e)},c=e=>{r.value.includes(e)||(r.value=[...r.value,e])},l=e=>{r.value.indexOf(e)!==-1&&(r.value=r.value.filter(t=>t!==e))},u=e=>n.value.includes(e),d=e=>!o(e)&&!u(e),f=e=>{d(e)&&(n.value=[...n.value,e])},p=e=>!o(e)&&u(e),m=e=>{n.value.indexOf(e)!==-1&&(n.value=n.value.filter(t=>t!==e))},h=e=>{u(e)?m(e):f(e)},g=e=>!o(e)&&!u(e),_=async(e,n)=>{if(!g(e)||await a?.(e)===!1)return;let i=t.value===e,o;if(i){let t=r.value.indexOf(e);o=r.value[t+1]??r.value[t-1]??void 0}l(e),i&&(t.value=o??``),n?.()};return{setActiveTab:s,addTab:c,removeTab:l,isTabPinned:u,pinTab:f,unpinTab:m,togglePinTab:h,closeTab:_,closeLeftTabs:e=>{let t=r.value.indexOf(e);t<=0||r.value.slice(0,t).forEach(e=>{_(e)})},closeRightTabs:e=>{let t=r.value.indexOf(e);t===-1||t===r.value.length-1||r.value.slice(t+1).forEach(e=>{_(e)})},closeOtherTabs:e=>{r.value.forEach(t=>{t!==e&&_(t)})},closeAllTabs:()=>{r.value.forEach(e=>{_(e)})},canPinTab:d,canUnpinTab:p,canCloseTab:g,canCloseLeftTabs:e=>{let t=r.value.indexOf(e);return t<=0?!1:r.value.slice(0,t).some(e=>g(e))},canCloseRightTabs:e=>{let t=r.value.indexOf(e);return t===-1||t>=r.value.length-1?!1:r.value.slice(t+1).some(e=>g(e))},canCloseOtherTabs:e=>r.value.some(t=>t!==e&&g(t)),canCloseAllTabs:()=>r.value.some(e=>g(e))}}export{i as usePageTabsOperation,r as usePageTabsScroll};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { PageTabsCloseProps, PageTabsItemEmits, PageTabsItemProps, PageTabsPinProps, PageTabsRootEmits, PageTabsRootProps, PageTabsUi, PageTabsUiSlot } from "./types.js";
|
|
1
|
+
import { PageTabsCloseProps, PageTabsItemEmits, PageTabsItemProps, PageTabsOperations, PageTabsPinProps, PageTabsRootEmits, PageTabsRootProps, PageTabsUi, PageTabsUiSlot } from "./types.js";
|
|
2
2
|
import { _default as _default$3 } from "./page-tabs-root.vue.js";
|
|
3
3
|
import { _default as _default$1 } from "./page-tabs-item.vue.js";
|
|
4
4
|
import { _default } from "./page-tabs-close.vue.js";
|
|
5
5
|
import { _default as _default$2 } from "./page-tabs-pin.vue.js";
|
|
6
6
|
import { providePageTabsUi } from "./context.js";
|
|
7
|
-
export { _default as PageTabsClose, type PageTabsCloseProps, _default$1 as PageTabsItem, type PageTabsItemEmits, type PageTabsItemProps, _default$2 as PageTabsPin, type PageTabsPinProps, _default$3 as PageTabsRoot, type PageTabsRootEmits, type PageTabsRootProps, type PageTabsUi, type PageTabsUiSlot, providePageTabsUi };
|
|
7
|
+
export { _default as PageTabsClose, type PageTabsCloseProps, _default$1 as PageTabsItem, type PageTabsItemEmits, type PageTabsItemProps, type PageTabsOperations, _default$2 as PageTabsPin, type PageTabsPinProps, _default$3 as PageTabsRoot, type PageTabsRootEmits, type PageTabsRootProps, type PageTabsUi, type PageTabsUiSlot, providePageTabsUi };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Primitive as e}from"../primitive/primitive.js";import{usePageTabsItemContext as t,usePageTabsUi as n}from"./context.js";import{createBlock as r,createCommentVNode as i,defineComponent as a,normalizeClass as o,openBlock as s,renderSlot as c,unref as l,withCtx as u,withModifiers as d}from"vue";var f=a({name:`PageTabsClose`,__name:`page-tabs-close`,props:{asChild:{type:Boolean},as:{}},setup(a){let f=n(`close`),{closable:p,
|
|
1
|
+
import{Primitive as e}from"../primitive/primitive.js";import{usePageTabsItemContext as t,usePageTabsUi as n}from"./context.js";import{createBlock as r,createCommentVNode as i,defineComponent as a,normalizeClass as o,openBlock as s,renderSlot as c,unref as l,withCtx as u,withModifiers as d}from"vue";var f=a({name:`PageTabsClose`,__name:`page-tabs-close`,props:{asChild:{type:Boolean},as:{}},setup(a){let f=n(`close`),{closable:p,onClose:m}=t(`PageTabsClose`);return(t,n)=>l(p)?(s(),r(l(e),{key:0,as:a.as,"as-child":a.asChild,class:o(l(f)),onClick:d(l(m),[`stop`])},{default:u(()=>[c(t.$slots,`default`)]),_:3},8,[`as`,`as-child`,`class`,`onClick`])):i(`v-if`,!0)}});export{f as default};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { PageTabsCloseProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue1631 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/page-tabs/page-tabs-close.vue.d.ts
|
|
5
5
|
declare var __VLS_10: {};
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
7
|
default?: (props: typeof __VLS_10) => any;
|
|
8
8
|
};
|
|
9
|
-
declare const __VLS_base:
|
|
9
|
+
declare const __VLS_base: vue1631.DefineComponent<PageTabsCloseProps, {}, {}, {}, {}, vue1631.ComponentOptionsMixin, vue1631.ComponentOptionsMixin, {}, string, vue1631.PublicProps, Readonly<PageTabsCloseProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1631.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{
|
|
1
|
+
import{providePageTabsItemContext as e,usePageTabsRootContext as t,usePageTabsUi as n}from"./context.js";import{computed as r,createElementBlock as i,defineComponent as a,normalizeClass as o,openBlock as s,renderSlot as c,unref as l}from"vue";const u=[`data-value`,`data-active`,`data-pinned`];var d=a({name:`PageTabsItem`,__name:`page-tabs-item`,props:{value:{}},emits:[`close`,`pin`],setup(a,{emit:d}){let f=a,p=d,m=n(`item`),{modelValue:h,middleClickClose:g,operations:{setActiveTab:_,isTabPinned:v,closeTab:y,togglePinTab:b,canCloseTab:x}}=t(`PageTabsItem`),S=r(()=>h.value===f.value),C=r(()=>v(f.value)),w=r(()=>x(f.value)),T=()=>{_(f.value)},E=async()=>{y(f.value,()=>{p(`close`)})},D=e=>{e.button===1&&g.value&&(e.preventDefault(),E())};return e({closable:w,pinned:C,onClose:E,onPin:()=>{let e=C.value;b(f.value),p(`pin`,!e)}}),(e,t)=>(s(),i(`button`,{class:o(l(m)),"data-value":a.value,"data-active":S.value,"data-pinned":C.value,onClick:T,onMousedown:D},[c(e.$slots,`default`)],42,u))}});export{d as default};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { PageTabsItemProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue1626 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/page-tabs/page-tabs-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: vue1626.DefineComponent<PageTabsItemProps, {}, {}, {}, {}, vue1626.ComponentOptionsMixin, vue1626.ComponentOptionsMixin, {} & {
|
|
10
10
|
close: () => any;
|
|
11
|
-
|
|
11
|
+
pin: (pinned: boolean) => any;
|
|
12
|
+
}, string, vue1626.PublicProps, Readonly<PageTabsItemProps> & Readonly<{
|
|
12
13
|
onClose?: (() => any) | undefined;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}, {}, {}, {}, string, vue1035.ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
onPin?: ((pinned: boolean) => any) | undefined;
|
|
15
|
+
}>, {}, {}, {}, {}, string, vue1626.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,12 +1,12 @@
|
|
|
1
1
|
import { PageTabsPinProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue1636 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/page-tabs/page-tabs-pin.vue.d.ts
|
|
5
5
|
declare var __VLS_10: {};
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
7
|
default?: (props: typeof __VLS_10) => any;
|
|
8
8
|
};
|
|
9
|
-
declare const __VLS_base:
|
|
9
|
+
declare const __VLS_base: vue1636.DefineComponent<PageTabsPinProps, {}, {}, {}, {}, vue1636.ComponentOptionsMixin, vue1636.ComponentOptionsMixin, {}, string, vue1636.PublicProps, Readonly<PageTabsPinProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1636.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,4 +1,4 @@
|
|
|
1
|
-
import{transformPropsToContext as e}from"../../shared/vue.js";import{useControllableState as t}from"../../composables/use-controllable-state.js";import{Primitive as n}from"../primitive/primitive.js";import{providePageTabsRootContext as
|
|
1
|
+
import{transformPropsToContext as e}from"../../shared/vue.js";import{useControllableState as t}from"../../composables/use-controllable-state.js";import{Primitive as n}from"../primitive/primitive.js";import{usePageTabsScroll as r}from"./hooks.js";import{providePageTabsRootContext as i,usePageTabsUi as a}from"./context.js";import{createElementBlock as o,createTextVNode as s,createVNode as c,defineComponent as l,normalizeClass as u,openBlock as d,renderSlot as f,toDisplayString as p,unref as m,withCtx as h}from"vue";var g=l({name:`PageTabsRoot`,__name:`page-tabs-root`,props:{modelValue:{default:void 0},values:{default:void 0},pins:{default:void 0},residents:{default:()=>[]},beforeClose:{type:Function,default:()=>!0},middleClickClose:{type:Boolean}},emits:[`update:modelValue`,`update:values`,`update:pins`],setup(l,{expose:g,emit:_}){let v=l,y=_,b=a(`root`),x=t(()=>v.modelValue,e=>{y(`update:modelValue`,e??``)},``),S=t(()=>v.values,e=>{y(`update:values`,e??[])},[]),C=t(()=>v.pins,e=>{y(`update:pins`,e??[])},[]),{setRootElement:w,onWheel:T}=r(x),E=i({...e(v,[`residents`,`middleClickClose`]),modelValue:x,values:S,pins:C,beforeClose:v.beforeClose}).operations;return g({operations:E}),(e,t)=>(d(),o(`div`,{ref:m(w),class:u([m(b),`page-tabs-root`]),onWheel:t[0]||(t[0]=(...e)=>m(T)&&m(T)(...e))},[f(e.$slots,`default`),c(m(n),{as:`style`},{default:h(()=>[s(p(`
|
|
2
2
|
.page-tabs-root {
|
|
3
3
|
overflow-x: auto;
|
|
4
4
|
overflow-y: hidden;
|
|
@@ -9,4 +9,4 @@ import{transformPropsToContext as e}from"../../shared/vue.js";import{useControll
|
|
|
9
9
|
.page-tabs-root::-webkit-scrollbar {
|
|
10
10
|
display: none;
|
|
11
11
|
}
|
|
12
|
-
`))]),_:1})],34))}});export{
|
|
12
|
+
`))]),_:1})],34))}});export{g as default};
|
|
@@ -1,25 +1,30 @@
|
|
|
1
1
|
import { MaybePromise } from "../../types/common.js";
|
|
2
|
-
import { PageTabsRootProps } from "./types.js";
|
|
2
|
+
import { PageTabsOperations, PageTabsRootProps } from "./types.js";
|
|
3
3
|
import "../../index.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as vue1621 from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/components/page-tabs/page-tabs-root.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:
|
|
12
|
-
|
|
11
|
+
declare const __VLS_base: vue1621.DefineComponent<PageTabsRootProps, {
|
|
12
|
+
operations: PageTabsOperations;
|
|
13
|
+
}, {}, {}, {}, vue1621.ComponentOptionsMixin, vue1621.ComponentOptionsMixin, {} & {
|
|
14
|
+
"update:modelValue": (value: string) => any;
|
|
15
|
+
"update:values": (values: string[]) => any;
|
|
13
16
|
"update:pins": (value: string[]) => any;
|
|
14
|
-
}, string,
|
|
15
|
-
"onUpdate:modelValue"?: ((value: string
|
|
17
|
+
}, string, vue1621.PublicProps, Readonly<PageTabsRootProps> & Readonly<{
|
|
18
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
19
|
+
"onUpdate:values"?: ((values: string[]) => any) | undefined;
|
|
16
20
|
"onUpdate:pins"?: ((value: string[]) => any) | undefined;
|
|
17
21
|
}>, {
|
|
22
|
+
values: string[];
|
|
18
23
|
modelValue: string;
|
|
19
24
|
beforeClose: (value: string) => MaybePromise<boolean | void>;
|
|
20
25
|
pins: string[];
|
|
21
|
-
|
|
22
|
-
}, {}, {}, {}, string,
|
|
26
|
+
residents: string[];
|
|
27
|
+
}, {}, {}, {}, string, vue1621.ComponentProvideOptions, false, {}, any>;
|
|
23
28
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
24
29
|
declare const _default: typeof __VLS_export;
|
|
25
30
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { MaybePromise, UiClass } from "../../types/common.js";
|
|
2
2
|
import "../../types/index.js";
|
|
3
3
|
import { PrimitiveProps } from "../primitive/types.js";
|
|
4
|
-
import {
|
|
4
|
+
import { ComputedRef, HTMLAttributes, ShallowRef } from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/components/page-tabs/types.d.ts
|
|
7
7
|
interface PageTabsRootProps extends /** @vue-ignore */HTMLAttributes {
|
|
8
8
|
/**
|
|
9
|
-
* The
|
|
9
|
+
* The active tab value.
|
|
10
10
|
*/
|
|
11
11
|
modelValue?: string;
|
|
12
12
|
/**
|
|
13
|
-
* The
|
|
13
|
+
* The tab values.
|
|
14
14
|
*/
|
|
15
|
-
|
|
15
|
+
values?: string[];
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* The pinned tab values.
|
|
18
18
|
*/
|
|
19
19
|
pins?: string[];
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* The resident tab values. cannot be closed, pinned, or unpinned.
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
residents?: string[];
|
|
24
24
|
/**
|
|
25
25
|
* Callback invoked before closing the tab. Return `false` or a promise that resolves to `false` to prevent closing.
|
|
26
26
|
*/
|
|
@@ -32,9 +32,13 @@ interface PageTabsRootProps extends /** @vue-ignore */HTMLAttributes {
|
|
|
32
32
|
}
|
|
33
33
|
type PageTabsRootEmits = {
|
|
34
34
|
/**
|
|
35
|
-
* Emitted when the active tab
|
|
35
|
+
* Emitted when the active tab change.
|
|
36
36
|
*/
|
|
37
|
-
(e: 'update:modelValue', value: string
|
|
37
|
+
(e: 'update:modelValue', value: string): void;
|
|
38
|
+
/**
|
|
39
|
+
* Emitted when the tab values change.
|
|
40
|
+
*/
|
|
41
|
+
(e: 'update:values', values: string[]): void;
|
|
38
42
|
/**
|
|
39
43
|
* Emitted when the pinned tabs change.
|
|
40
44
|
*/
|
|
@@ -45,20 +49,41 @@ interface PageTabsItemProps extends /** @vue-ignore */HTMLAttributes {
|
|
|
45
49
|
* The unique value of the tab.
|
|
46
50
|
*/
|
|
47
51
|
value: string;
|
|
48
|
-
/**
|
|
49
|
-
* Whether the tab is closable.
|
|
50
|
-
*/
|
|
51
|
-
closable?: boolean;
|
|
52
52
|
}
|
|
53
53
|
type PageTabsItemEmits = {
|
|
54
54
|
/**
|
|
55
55
|
* Emitted when the tab is requested to be closed.
|
|
56
56
|
*/
|
|
57
57
|
(e: 'close'): void;
|
|
58
|
+
/**
|
|
59
|
+
* Emitted when the tab is requested to be pinned.
|
|
60
|
+
*/
|
|
61
|
+
(e: 'pin', pinned: boolean): void;
|
|
58
62
|
};
|
|
59
63
|
interface PageTabsCloseProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {}
|
|
60
64
|
interface PageTabsPinProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {}
|
|
61
65
|
type PageTabsUiSlot = 'root' | 'item' | 'close' | 'pin';
|
|
62
66
|
type PageTabsUi = UiClass<PageTabsUiSlot>;
|
|
67
|
+
interface PageTabsOperations {
|
|
68
|
+
setActiveTab: (value: string) => void;
|
|
69
|
+
addTab: (value: string) => void;
|
|
70
|
+
removeTab: (value: string) => void;
|
|
71
|
+
isTabPinned: (value: string) => boolean;
|
|
72
|
+
pinTab: (value: string) => void;
|
|
73
|
+
unpinTab: (value: string) => void;
|
|
74
|
+
togglePinTab: (value: string) => void;
|
|
75
|
+
closeTab: (value: string, onClose?: (() => void) | undefined) => Promise<void>;
|
|
76
|
+
closeLeftTabs: (value: string) => void;
|
|
77
|
+
closeRightTabs: (value: string) => void;
|
|
78
|
+
closeOtherTabs: (value: string) => void;
|
|
79
|
+
closeAllTabs: () => void;
|
|
80
|
+
canPinTab: (value: string) => boolean;
|
|
81
|
+
canUnpinTab: (value: string) => boolean;
|
|
82
|
+
canCloseTab: (value: string) => boolean;
|
|
83
|
+
canCloseLeftTabs: (value: string) => boolean;
|
|
84
|
+
canCloseRightTabs: (value: string) => boolean;
|
|
85
|
+
canCloseOtherTabs: (value: string) => boolean;
|
|
86
|
+
canCloseAllTabs: () => boolean;
|
|
87
|
+
}
|
|
63
88
|
//#endregion
|
|
64
|
-
export { PageTabsCloseProps, PageTabsItemEmits, PageTabsItemProps, PageTabsPinProps, PageTabsRootEmits, PageTabsRootProps, PageTabsUi, PageTabsUiSlot };
|
|
89
|
+
export { PageTabsCloseProps, PageTabsItemEmits, PageTabsItemProps, PageTabsOperations, PageTabsPinProps, PageTabsRootEmits, PageTabsRootProps, PageTabsUi, PageTabsUiSlot };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ClassValue, UiClass } from "../../types/common.js";
|
|
2
2
|
import { PaginationUiSlot } from "./types.js";
|
|
3
3
|
import "../../index.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as vue1334 from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/components/pagination/context.d.ts
|
|
7
7
|
|
|
8
|
-
declare const providePaginationUi: (ui:
|
|
8
|
+
declare const providePaginationUi: (ui: vue1334.ComputedRef<Partial<UiClass<PaginationUiSlot>>>) => vue1334.ComputedRef<Partial<UiClass<PaginationUiSlot>>>, usePaginationUi: <S extends PaginationUiSlot | undefined = undefined>(slot?: S | undefined) => S extends PaginationUiSlot ? vue1334.ComputedRef<ClassValue> : vue1334.ComputedRef<Partial<UiClass<PaginationUiSlot>>>;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { providePaginationUi };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { PaginationEllipsisProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue1319 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/pagination/pagination-ellipsis.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: vue1319.DefineComponent<PaginationEllipsisProps, {}, {}, {}, {}, vue1319.ComponentOptionsMixin, vue1319.ComponentOptionsMixin, {}, string, vue1319.PublicProps, Readonly<PaginationEllipsisProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1319.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 { PaginationButtonProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue1309 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/pagination/pagination-first.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: vue1309.DefineComponent<PaginationButtonProps, {}, {}, {}, {}, vue1309.ComponentOptionsMixin, vue1309.ComponentOptionsMixin, {}, string, vue1309.PublicProps, Readonly<PaginationButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1309.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 { PaginationButtonProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue1314 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/pagination/pagination-last.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: vue1314.DefineComponent<PaginationButtonProps, {}, {}, {}, {}, vue1314.ComponentOptionsMixin, vue1314.ComponentOptionsMixin, {}, string, vue1314.PublicProps, Readonly<PaginationButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1314.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 { PaginationListItemProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue1294 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/pagination/pagination-list-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: vue1294.DefineComponent<PaginationListItemProps, {}, {}, {}, {}, vue1294.ComponentOptionsMixin, vue1294.ComponentOptionsMixin, {}, string, vue1294.PublicProps, Readonly<PaginationListItemProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1294.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 & {
|