@soybeanjs/headless 0.0.6-beta.1 → 0.0.6
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 +4 -4
- 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 +7 -5
- package/dist/components/accordion/accordion-trigger.vue.d.ts +2 -2
- package/dist/components/alert/alert-close.vue.d.ts +2 -2
- package/dist/components/alert/alert-content.vue.d.ts +2 -2
- package/dist/components/alert/alert-description.vue.d.ts +2 -2
- package/dist/components/alert/alert-root.vue.d.ts +4 -4
- package/dist/components/alert/alert-title.vue.d.ts +2 -2
- package/dist/components/alert-dialog/alert-dialog-close.vue.d.ts +4 -4
- package/dist/components/alert-dialog/alert-dialog-content.vue.d.ts +4 -4
- package/dist/components/alert-dialog/alert-dialog-root.vue.d.ts +6 -6
- package/dist/components/arrow/arrow.vue.d.ts +7 -7
- package/dist/components/aspect-ratio/aspect-ratio.vue.d.ts +5 -5
- package/dist/components/avatar/avatar-fallback.vue.d.ts +2 -2
- package/dist/components/avatar/avatar-image.vue.d.ts +4 -4
- package/dist/components/avatar/avatar-root.vue.d.ts +2 -2
- package/dist/components/badge/badge-content.vue.d.ts +2 -2
- package/dist/components/badge/badge-root.vue.d.ts +4 -4
- package/dist/components/breadcrumb/breadcrumb-ellipsis.vue.d.ts +2 -2
- package/dist/components/breadcrumb/breadcrumb-item.vue.d.ts +2 -2
- package/dist/components/breadcrumb/breadcrumb-link.vue.d.ts +4 -4
- package/dist/components/breadcrumb/breadcrumb-list.vue.d.ts +2 -2
- package/dist/components/breadcrumb/breadcrumb-page.vue.d.ts +2 -2
- package/dist/components/breadcrumb/breadcrumb-root.vue.d.ts +2 -2
- package/dist/components/breadcrumb/breadcrumb-separator.vue.d.ts +2 -2
- package/dist/components/button/button.vue.d.ts +5 -5
- package/dist/components/card/card-content.vue.d.ts +2 -2
- package/dist/components/card/card-description.vue.d.ts +2 -2
- package/dist/components/card/card-footer.vue.d.ts +2 -2
- package/dist/components/card/card-header.vue.d.ts +2 -2
- package/dist/components/card/card-root.vue.d.ts +2 -2
- package/dist/components/card/card-title-root.vue.d.ts +2 -2
- package/dist/components/card/card-title.vue.d.ts +2 -2
- package/dist/components/checkbox/checkbox-control.vue.d.ts +2 -2
- package/dist/components/checkbox/checkbox-group-root.vue.d.ts +7 -5
- package/dist/components/checkbox/checkbox-indicator.vue.d.ts +6 -6
- package/dist/components/checkbox/checkbox-label.vue.d.ts +4 -4
- package/dist/components/checkbox/checkbox-root.vue.d.ts +4 -4
- package/dist/components/collapsible/collapsible-content.vue.d.ts +4 -4
- package/dist/components/collapsible/collapsible-root.vue.d.ts +8 -8
- package/dist/components/collapsible/collapsible-trigger.vue.d.ts +4 -4
- package/dist/components/config-provider/config-provider.vue.d.ts +3 -3
- package/dist/components/context-menu/context-menu-content.vue.d.ts +4 -4
- package/dist/components/context-menu/context-menu-root.vue.d.ts +6 -6
- package/dist/components/context-menu/context-menu-trigger.vue.d.ts +6 -6
- 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 +4 -4
- package/dist/components/dropdown-menu/dropdown-menu-root.vue.d.ts +8 -8
- package/dist/components/dropdown-menu/dropdown-menu-trigger.vue.d.ts +6 -6
- package/dist/components/form/form-description.vue.d.ts +2 -2
- package/dist/components/form/form-error.vue.d.ts +2 -2
- package/dist/components/form/form-field-array.vue.d.ts +2 -2
- package/dist/components/form/form-field.vue.d.ts +2 -2
- package/dist/components/form/form-label.vue.d.ts +4 -4
- package/dist/components/input/input-control.vue.d.ts +2 -2
- package/dist/components/input/input-root.vue.d.ts +4 -4
- package/dist/components/kbd/kbd.vue.d.ts +2 -2
- package/dist/components/label/label.vue.d.ts +2 -2
- package/dist/components/layout/layout-footer.vue.d.ts +2 -2
- package/dist/components/layout/layout-header.vue.d.ts +2 -2
- package/dist/components/layout/layout-main.vue.d.ts +2 -2
- package/dist/components/layout/layout-mobile.vue.d.ts +4 -4
- package/dist/components/layout/layout-rail.vue.d.ts +2 -2
- package/dist/components/layout/layout-root.vue.d.ts +4 -4
- package/dist/components/layout/layout-sidebar.vue.d.ts +5 -5
- package/dist/components/layout/layout-tab.vue.d.ts +2 -2
- package/dist/components/layout/layout-trigger.vue.d.ts +2 -2
- package/dist/components/link/link.vue.d.ts +4 -4
- package/dist/components/list/list-content.vue.d.ts +2 -2
- package/dist/components/list/list-description.vue.d.ts +2 -2
- package/dist/components/list/list-item.vue.d.ts +2 -2
- package/dist/components/list/list-root.vue.d.ts +2 -2
- package/dist/components/list/list-title.vue.d.ts +2 -2
- package/dist/components/listbox/listbox-content.vue.d.ts +2 -2
- package/dist/components/listbox/listbox-filter.vue.d.ts +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 +6 -6
- package/dist/components/listbox/listbox-item.vue.d.ts +5 -5
- package/dist/components/listbox/listbox-root.vue.d.ts +11 -9
- package/dist/components/listbox/listbox-virtualizer.vue.d.ts +2 -2
- package/dist/components/menu/menu-checkbox-group.vue.d.ts +7 -5
- 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 +4 -4
- package/dist/components/menu/menu-group-label.vue.d.ts +2 -2
- package/dist/components/menu/menu-group.vue.d.ts +4 -4
- package/dist/components/menu/menu-item-indicator.vue.d.ts +6 -6
- package/dist/components/menu/menu-item.vue.d.ts +4 -4
- package/dist/components/menu/menu-radio-group.vue.d.ts +7 -5
- package/dist/components/menu/menu-radio-item.vue.d.ts +4 -4
- package/dist/components/menu/menu-root.vue.d.ts +6 -6
- package/dist/components/menu/menu-sub-content.vue.d.ts +4 -4
- package/dist/components/menu/menu-sub-trigger.vue.d.ts +4 -4
- package/dist/components/menu/menu-sub.vue.d.ts +6 -6
- package/dist/components/navigation-menu/navigation-menu-content.vue.d.ts +6 -6
- package/dist/components/navigation-menu/navigation-menu-indicator.vue.d.ts +4 -4
- 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 +4 -4
- 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/number-input-control.vue.d.ts +2 -2
- package/dist/components/number-input/number-input-decrement.vue.d.ts +4 -4
- package/dist/components/number-input/number-input-increment.vue.d.ts +4 -4
- package/dist/components/number-input/number-input-root.vue.d.ts +4 -4
- package/dist/components/pagination/pagination-ellipsis.vue.d.ts +2 -2
- package/dist/components/pagination/pagination-first.vue.d.ts +2 -2
- package/dist/components/pagination/pagination-last.vue.d.ts +2 -2
- package/dist/components/pagination/pagination-list-item.vue.d.ts +2 -2
- package/dist/components/pagination/pagination-list.vue.d.ts +2 -2
- package/dist/components/pagination/pagination-next.vue.d.ts +2 -2
- package/dist/components/pagination/pagination-prev.vue.d.ts +2 -2
- package/dist/components/pagination/pagination-root.vue.d.ts +5 -5
- package/dist/components/popover/popover-anchor.vue.d.ts +4 -4
- package/dist/components/popover/popover-close.vue.d.ts +4 -4
- package/dist/components/popover/popover-content.vue.d.ts +4 -4
- package/dist/components/popover/popover-root.vue.d.ts +6 -6
- package/dist/components/popover/popover-trigger.vue.d.ts +4 -4
- package/dist/components/popper/context.d.ts +5 -5
- package/dist/components/popper/popper-anchor.vue.d.ts +4 -4
- package/dist/components/popper/popper-arrow.vue.d.ts +4 -4
- package/dist/components/popper/popper-content.vue.d.ts +13 -9
- package/dist/components/popper/popper-root.vue.d.ts +2 -2
- package/dist/components/portal/portal.vue.d.ts +5 -5
- package/dist/components/radio-group/radio-group-control.vue.d.ts +4 -4
- package/dist/components/radio-group/radio-group-indicator.vue.d.ts +6 -6
- package/dist/components/radio-group/radio-group-item.vue.d.ts +4 -4
- package/dist/components/radio-group/radio-group-label.vue.d.ts +4 -4
- package/dist/components/radio-group/radio-group-root.vue.d.ts +7 -5
- package/dist/components/roving-focus/roving-focus-group.vue.d.ts +8 -8
- package/dist/components/roving-focus/roving-focus-item.vue.d.ts +5 -5
- package/dist/components/select/select-arrow.vue.d.ts +4 -4
- package/dist/components/select/select-content.vue.d.ts +7 -7
- 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 +6 -6
- 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 +7 -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 +6 -6
- 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/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/switch-control.vue.d.ts +2 -2
- package/dist/components/switch/switch-root.vue.d.ts +7 -5
- package/dist/components/switch/switch-thumb.vue.d.ts +6 -6
- package/dist/components/tabs/tabs-content.vue.d.ts +2 -2
- package/dist/components/tabs/tabs-indicator.vue.d.ts +4 -4
- package/dist/components/tabs/tabs-list.vue.d.ts +4 -4
- package/dist/components/tabs/tabs-root.vue.d.ts +5 -5
- package/dist/components/tabs/tabs-trigger.vue.d.ts +6 -6
- package/dist/components/tag/tag.vue.d.ts +4 -4
- package/dist/components/textarea/textarea-control.vue.d.ts +2 -2
- package/dist/components/textarea/textarea-counter.vue.d.ts +2 -2
- package/dist/components/textarea/textarea-root.vue.d.ts +4 -4
- package/dist/components/toast/toast-action.vue.d.ts +4 -4
- package/dist/components/toast/toast-close.vue.d.ts +4 -4
- package/dist/components/toast/toast-description.vue.d.ts +2 -2
- package/dist/components/toast/toast-provider.vue.d.ts +3 -3
- package/dist/components/toast/toast-root.vue.d.ts +7 -7
- package/dist/components/toast/toast-title.vue.d.ts +2 -2
- package/dist/components/toast/toast-viewport.vue.d.ts +6 -6
- package/dist/components/tooltip/tooltip-content.vue.d.ts +6 -6
- package/dist/components/tooltip/tooltip-root.vue.d.ts +6 -6
- package/dist/components/tooltip/tooltip-trigger.vue.d.ts +6 -6
- package/dist/components/tree/tree-item.js +1 -1
- package/dist/components/tree/tree-item.vue.d.ts +8 -7
- package/dist/components/tree/tree-root.vue.d.ts +7 -5
- package/dist/components/tree/tree-virtualizer-item.vue.d.ts +7 -6
- package/dist/components/tree/tree-virtualizer-root.vue.d.ts +7 -5
- package/dist/components/tree/types.d.ts +1 -1
- package/dist/components/virtualizer/virtualizer-content.vue.d.ts +2 -2
- package/dist/components/virtualizer/virtualizer-item.vue.d.ts +4 -4
- package/dist/components/virtualizer/virtualizer-root.vue.d.ts +7 -5
- package/dist/components/visually-hidden/visually-hidden-input.vue.d.ts +8 -6
- package/dist/components/visually-hidden/visually-hidden.vue.d.ts +6 -6
- package/dist/composables/use-direction.d.ts +2 -2
- package/dist/composables/use-dismissable-layer.d.ts +6 -6
- 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-nonce.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/package.json +9 -9
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TabsContentProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue172 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/tabs/tabs-content.vue.d.ts
|
|
5
5
|
declare var __VLS_1: {
|
|
@@ -8,7 +8,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: vue172.DefineComponent<TabsContentProps, {}, {}, {}, {}, vue172.ComponentOptionsMixin, vue172.ComponentOptionsMixin, {}, string, vue172.PublicProps, Readonly<TabsContentProps> & Readonly<{}>, {}, {}, {}, {}, string, vue172.ComponentProvideOptions, false, {}, any>;
|
|
12
12
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
13
13
|
declare const _default: typeof __VLS_export;
|
|
14
14
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { TabsIndicatorProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue177 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/tabs/tabs-indicator.vue.d.ts
|
|
5
|
-
declare var
|
|
5
|
+
declare var __VLS_8: {};
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
|
-
default?: (props: typeof
|
|
7
|
+
default?: (props: typeof __VLS_8) => any;
|
|
8
8
|
};
|
|
9
|
-
declare const __VLS_base:
|
|
9
|
+
declare const __VLS_base: vue177.DefineComponent<TabsIndicatorProps, {}, {}, {}, {}, vue177.ComponentOptionsMixin, vue177.ComponentOptionsMixin, {}, string, vue177.PublicProps, Readonly<TabsIndicatorProps> & Readonly<{}>, {}, {}, {}, {}, string, vue177.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 { TabsListProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue182 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/tabs/tabs-list.vue.d.ts
|
|
5
|
-
declare var
|
|
5
|
+
declare var __VLS_8: {};
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
|
-
default?: (props: typeof
|
|
7
|
+
default?: (props: typeof __VLS_8) => any;
|
|
8
8
|
};
|
|
9
|
-
declare const __VLS_base:
|
|
9
|
+
declare const __VLS_base: vue182.DefineComponent<TabsListProps, {}, {}, {}, {}, vue182.ComponentOptionsMixin, vue182.ComponentOptionsMixin, {}, string, vue182.PublicProps, Readonly<TabsListProps> & Readonly<{}>, {}, {}, {}, {}, string, vue182.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 { AcceptableValue, DataOrientation, DefinedValue } from "../../types/common.js";
|
|
2
2
|
import { TabsActivationMode, TabsRootProps } from "./types.js";
|
|
3
3
|
import "../../index.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as vue167 from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/components/tabs/tabs-root.vue.d.ts
|
|
7
7
|
type __VLS_Props = TabsRootProps;
|
|
@@ -11,17 +11,17 @@ declare var __VLS_1: {
|
|
|
11
11
|
type __VLS_Slots = {} & {
|
|
12
12
|
default?: (props: typeof __VLS_1) => any;
|
|
13
13
|
};
|
|
14
|
-
declare const __VLS_base:
|
|
14
|
+
declare const __VLS_base: vue167.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue167.ComponentOptionsMixin, vue167.ComponentOptionsMixin, {
|
|
15
15
|
"update:modelValue": (payload: NonNullable<AcceptableValue>) => any;
|
|
16
|
-
}, string,
|
|
16
|
+
}, string, vue167.PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
17
17
|
"onUpdate:modelValue"?: ((payload: NonNullable<AcceptableValue>) => any) | undefined;
|
|
18
18
|
}>, {
|
|
19
19
|
modelValue: DefinedValue | null;
|
|
20
20
|
orientation: DataOrientation;
|
|
21
|
-
unmountOnHide: boolean;
|
|
22
21
|
loop: boolean;
|
|
23
22
|
activationMode: TabsActivationMode;
|
|
24
|
-
|
|
23
|
+
unmountOnHide: boolean;
|
|
24
|
+
}, {}, {}, {}, string, vue167.ComponentProvideOptions, false, {}, any>;
|
|
25
25
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
26
26
|
declare const _default: typeof __VLS_export;
|
|
27
27
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { AsTag } from "../primitive/types.js";
|
|
2
2
|
import "../primitive/index.js";
|
|
3
3
|
import { TabsTriggerProps } from "./types.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as vue187 from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/components/tabs/tabs-trigger.vue.d.ts
|
|
7
|
-
declare var
|
|
7
|
+
declare var __VLS_18: {
|
|
8
8
|
active: boolean;
|
|
9
9
|
};
|
|
10
10
|
type __VLS_Slots = {} & {
|
|
11
|
-
default?: (props: typeof
|
|
11
|
+
default?: (props: typeof __VLS_18) => any;
|
|
12
12
|
};
|
|
13
|
-
declare const __VLS_base:
|
|
14
|
-
as: AsTag |
|
|
13
|
+
declare const __VLS_base: vue187.DefineComponent<TabsTriggerProps, {}, {}, {}, {}, vue187.ComponentOptionsMixin, vue187.ComponentOptionsMixin, {}, string, vue187.PublicProps, Readonly<TabsTriggerProps> & Readonly<{}>, {
|
|
14
|
+
as: AsTag | vue187.Component;
|
|
15
15
|
disabled: boolean;
|
|
16
|
-
}, {}, {}, {}, string,
|
|
16
|
+
}, {}, {}, {}, string, vue187.ComponentProvideOptions, false, {}, any>;
|
|
17
17
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
18
18
|
declare const _default: typeof __VLS_export;
|
|
19
19
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TagProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue294 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/tag/tag.vue.d.ts
|
|
5
5
|
declare var __VLS_1: {
|
|
@@ -9,13 +9,13 @@ 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: vue294.DefineComponent<TagProps, {}, {}, {}, {}, vue294.ComponentOptionsMixin, vue294.ComponentOptionsMixin, {
|
|
13
13
|
"update:open": (open: boolean) => any;
|
|
14
|
-
}, string,
|
|
14
|
+
}, string, vue294.PublicProps, Readonly<TagProps> & Readonly<{
|
|
15
15
|
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
16
16
|
}>, {
|
|
17
17
|
open: boolean;
|
|
18
|
-
}, {}, {}, {}, string,
|
|
18
|
+
}, {}, {}, {}, string, vue294.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,8 +1,8 @@
|
|
|
1
1
|
import { TextareaControlProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue314 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/textarea/textarea-control.vue.d.ts
|
|
5
|
-
declare const __VLS_export:
|
|
5
|
+
declare const __VLS_export: vue314.DefineComponent<TextareaControlProps, {}, {}, {}, {}, vue314.ComponentOptionsMixin, vue314.ComponentOptionsMixin, {}, string, vue314.PublicProps, Readonly<TextareaControlProps> & Readonly<{}>, {}, {}, {}, {}, string, vue314.ComponentProvideOptions, false, {}, any>;
|
|
6
6
|
declare const _default: typeof __VLS_export;
|
|
7
7
|
//#endregion
|
|
8
8
|
export { _default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TextareaCounterProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue319 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/textarea/textarea-counter.vue.d.ts
|
|
5
5
|
declare var __VLS_1: {
|
|
@@ -9,7 +9,7 @@ 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: vue319.DefineComponent<TextareaCounterProps, {}, {}, {}, {}, vue319.ComponentOptionsMixin, vue319.ComponentOptionsMixin, {}, string, vue319.PublicProps, Readonly<TextareaCounterProps> & Readonly<{}>, {}, {}, {}, {}, string, vue319.ComponentProvideOptions, false, {}, any>;
|
|
13
13
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
14
14
|
declare const _default: typeof __VLS_export;
|
|
15
15
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TextareaRootProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue309 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/textarea/textarea-root.vue.d.ts
|
|
5
5
|
declare var __VLS_1: {
|
|
@@ -9,13 +9,13 @@ 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: vue309.DefineComponent<TextareaRootProps, {}, {}, {}, {}, vue309.ComponentOptionsMixin, vue309.ComponentOptionsMixin, {
|
|
13
13
|
"update:modelValue": (value: string) => any;
|
|
14
|
-
}, string,
|
|
14
|
+
}, string, vue309.PublicProps, Readonly<TextareaRootProps> & Readonly<{
|
|
15
15
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
16
16
|
}>, {
|
|
17
17
|
modelValue: string;
|
|
18
|
-
}, {}, {}, {}, string,
|
|
18
|
+
}, {}, {}, {}, string, vue309.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,16 +1,16 @@
|
|
|
1
1
|
import { AsTag } from "../primitive/types.js";
|
|
2
2
|
import "../primitive/index.js";
|
|
3
3
|
import { ToastActionProps } from "./types.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as vue252 from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/components/toast/toast-action.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: vue252.DefineComponent<ToastActionProps, {}, {}, {}, {}, vue252.ComponentOptionsMixin, vue252.ComponentOptionsMixin, {}, string, vue252.PublicProps, Readonly<ToastActionProps> & Readonly<{}>, {
|
|
12
|
+
as: AsTag | vue252.Component;
|
|
13
|
+
}, {}, {}, {}, string, vue252.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 { ToastCloseProps } from "./types.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as vue246 from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/components/toast/toast-close.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: vue246.DefineComponent<ToastCloseProps, {}, {}, {}, {}, vue246.ComponentOptionsMixin, vue246.ComponentOptionsMixin, {}, string, vue246.PublicProps, Readonly<ToastCloseProps> & Readonly<{}>, {
|
|
12
|
+
as: AsTag | vue246.Component;
|
|
13
|
+
}, {}, {}, {}, string, vue246.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,12 +1,12 @@
|
|
|
1
1
|
import { ToastDescriptionProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue263 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/toast/toast-description.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: vue263.DefineComponent<ToastDescriptionProps, {}, {}, {}, {}, vue263.ComponentOptionsMixin, vue263.ComponentOptionsMixin, {}, string, vue263.PublicProps, Readonly<ToastDescriptionProps> & Readonly<{}>, {}, {}, {}, {}, string, vue263.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,19 +1,19 @@
|
|
|
1
1
|
import { SwipeDirection } from "../../types/common.js";
|
|
2
2
|
import "../../types/index.js";
|
|
3
3
|
import { ToastProviderProps } from "./types.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as vue229 from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/components/toast/toast-provider.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: vue229.DefineComponent<ToastProviderProps, {}, {}, {}, {}, vue229.ComponentOptionsMixin, vue229.ComponentOptionsMixin, {}, string, vue229.PublicProps, Readonly<ToastProviderProps> & Readonly<{}>, {
|
|
12
12
|
label: string;
|
|
13
13
|
duration: number;
|
|
14
14
|
swipeDirection: SwipeDirection;
|
|
15
15
|
swipeThreshold: number;
|
|
16
|
-
}, {}, {}, {}, string,
|
|
16
|
+
}, {}, {}, {}, string, vue229.ComponentProvideOptions, false, {}, any>;
|
|
17
17
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
18
18
|
declare const _default: typeof __VLS_export;
|
|
19
19
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -3,17 +3,17 @@ import "../../types/index.js";
|
|
|
3
3
|
import { AsTag } from "../primitive/types.js";
|
|
4
4
|
import "../primitive/index.js";
|
|
5
5
|
import { ToastLiveType, ToastRootProps } from "./types.js";
|
|
6
|
-
import * as
|
|
6
|
+
import * as vue234 from "vue";
|
|
7
7
|
|
|
8
8
|
//#region src/components/toast/toast-root.vue.d.ts
|
|
9
|
-
declare var
|
|
9
|
+
declare var __VLS_22: {
|
|
10
10
|
remaining: number;
|
|
11
11
|
duration: number;
|
|
12
12
|
};
|
|
13
13
|
type __VLS_Slots = {} & {
|
|
14
|
-
default?: (props: typeof
|
|
14
|
+
default?: (props: typeof __VLS_22) => any;
|
|
15
15
|
};
|
|
16
|
-
declare const __VLS_base:
|
|
16
|
+
declare const __VLS_base: vue234.DefineComponent<ToastRootProps, {}, {}, {}, {}, vue234.ComponentOptionsMixin, vue234.ComponentOptionsMixin, {
|
|
17
17
|
pause: () => any;
|
|
18
18
|
"update:open": (value: boolean) => any;
|
|
19
19
|
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
@@ -22,7 +22,7 @@ declare const __VLS_base: vue1335.DefineComponent<ToastRootProps, {}, {}, {}, {}
|
|
|
22
22
|
swipeMove: (event: SwipeEvent) => any;
|
|
23
23
|
swipeCancel: (event: SwipeEvent) => any;
|
|
24
24
|
swipeEnd: (event: SwipeEvent) => any;
|
|
25
|
-
}, string,
|
|
25
|
+
}, string, vue234.PublicProps, Readonly<ToastRootProps> & Readonly<{
|
|
26
26
|
onPause?: (() => any) | undefined;
|
|
27
27
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
28
28
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
@@ -33,10 +33,10 @@ declare const __VLS_base: vue1335.DefineComponent<ToastRootProps, {}, {}, {}, {}
|
|
|
33
33
|
onSwipeEnd?: ((event: SwipeEvent) => any) | undefined;
|
|
34
34
|
}>, {
|
|
35
35
|
open: boolean;
|
|
36
|
-
as: AsTag |
|
|
36
|
+
as: AsTag | vue234.Component;
|
|
37
37
|
defaultOpen: boolean;
|
|
38
38
|
liveType: ToastLiveType;
|
|
39
|
-
}, {}, {}, {}, string,
|
|
39
|
+
}, {}, {}, {}, string, vue234.ComponentProvideOptions, false, {}, any>;
|
|
40
40
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
41
41
|
declare const _default: typeof __VLS_export;
|
|
42
42
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ToastTitleProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue258 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/toast/toast-title.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: vue258.DefineComponent<ToastTitleProps, {}, {}, {}, {}, vue258.ComponentOptionsMixin, vue258.ComponentOptionsMixin, {}, string, vue258.PublicProps, Readonly<ToastTitleProps> & Readonly<{}>, {}, {}, {}, {}, string, vue258.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 { AsTag } from "../primitive/types.js";
|
|
2
2
|
import "../primitive/index.js";
|
|
3
3
|
import { ToastViewportProps } from "./types.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as vue240 from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/components/toast/toast-viewport.vue.d.ts
|
|
7
|
-
declare var
|
|
7
|
+
declare var __VLS_14: {};
|
|
8
8
|
type __VLS_Slots = {} & {
|
|
9
|
-
default?: (props: typeof
|
|
9
|
+
default?: (props: typeof __VLS_14) => any;
|
|
10
10
|
};
|
|
11
|
-
declare const __VLS_base:
|
|
11
|
+
declare const __VLS_base: vue240.DefineComponent<ToastViewportProps, {}, {}, {}, {}, vue240.ComponentOptionsMixin, vue240.ComponentOptionsMixin, {}, string, vue240.PublicProps, Readonly<ToastViewportProps> & Readonly<{}>, {
|
|
12
12
|
label: string | ((hotkey: string) => string);
|
|
13
|
-
as: AsTag |
|
|
13
|
+
as: AsTag | vue240.Component;
|
|
14
14
|
hotkey: string[];
|
|
15
|
-
}, {}, {}, {}, string,
|
|
15
|
+
}, {}, {}, {}, string, vue240.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,20 +1,20 @@
|
|
|
1
1
|
import { PointerDownOutsideEvent } from "../../types/event.js";
|
|
2
2
|
import { TooltipContentProps } from "./types.js";
|
|
3
3
|
import "../../index.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as vue643 from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/components/tooltip/tooltip-content.vue.d.ts
|
|
7
|
-
declare var
|
|
7
|
+
declare var __VLS_7: {};
|
|
8
8
|
type __VLS_Slots = {} & {
|
|
9
|
-
default?: (props: typeof
|
|
9
|
+
default?: (props: typeof __VLS_7) => any;
|
|
10
10
|
};
|
|
11
|
-
declare const __VLS_base:
|
|
11
|
+
declare const __VLS_base: vue643.DefineComponent<TooltipContentProps, {}, {}, {}, {}, vue643.ComponentOptionsMixin, vue643.ComponentOptionsMixin, {
|
|
12
12
|
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
13
13
|
pointerDownOutside: (event: PointerDownOutsideEvent) => any;
|
|
14
|
-
}, string,
|
|
14
|
+
}, string, vue643.PublicProps, Readonly<TooltipContentProps> & Readonly<{
|
|
15
15
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
16
16
|
onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
17
|
-
}>, {}, {}, {}, {}, string,
|
|
17
|
+
}>, {}, {}, {}, {}, string, vue643.ComponentProvideOptions, false, {}, any>;
|
|
18
18
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
19
19
|
declare const _default: typeof __VLS_export;
|
|
20
20
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { TooltipRootProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue632 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/tooltip/tooltip-root.vue.d.ts
|
|
5
|
-
declare var
|
|
5
|
+
declare var __VLS_8: {
|
|
6
6
|
open: boolean | undefined;
|
|
7
7
|
};
|
|
8
8
|
type __VLS_Slots = {} & {
|
|
9
|
-
default?: (props: typeof
|
|
9
|
+
default?: (props: typeof __VLS_8) => any;
|
|
10
10
|
};
|
|
11
|
-
declare const __VLS_base:
|
|
11
|
+
declare const __VLS_base: vue632.DefineComponent<TooltipRootProps, {}, {}, {}, {}, vue632.ComponentOptionsMixin, vue632.ComponentOptionsMixin, {
|
|
12
12
|
"update:open": (value: boolean) => any;
|
|
13
|
-
}, string,
|
|
13
|
+
}, string, vue632.PublicProps, Readonly<TooltipRootProps> & Readonly<{
|
|
14
14
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
15
15
|
}>, {
|
|
16
16
|
open: boolean;
|
|
17
17
|
defaultOpen: boolean;
|
|
18
|
-
}, {}, {}, {}, string,
|
|
18
|
+
}, {}, {}, {}, string, vue632.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 & {
|
|
@@ -2,16 +2,16 @@ import { AsTag } from "../primitive/types.js";
|
|
|
2
2
|
import "../primitive/index.js";
|
|
3
3
|
import { PopperAnchorProps } from "../popper/types.js";
|
|
4
4
|
import "./types.js";
|
|
5
|
-
import * as
|
|
5
|
+
import * as vue637 from "vue";
|
|
6
6
|
|
|
7
7
|
//#region src/components/tooltip/tooltip-trigger.vue.d.ts
|
|
8
|
-
declare var
|
|
8
|
+
declare var __VLS_8: {};
|
|
9
9
|
type __VLS_Slots = {} & {
|
|
10
|
-
default?: (props: typeof
|
|
10
|
+
default?: (props: typeof __VLS_8) => any;
|
|
11
11
|
};
|
|
12
|
-
declare const __VLS_base:
|
|
13
|
-
as: AsTag |
|
|
14
|
-
}, {}, {}, {}, string,
|
|
12
|
+
declare const __VLS_base: vue637.DefineComponent<PopperAnchorProps, {}, {}, {}, {}, vue637.ComponentOptionsMixin, vue637.ComponentOptionsMixin, {}, string, vue637.PublicProps, Readonly<PopperAnchorProps> & Readonly<{}>, {
|
|
13
|
+
as: AsTag | vue637.Component;
|
|
14
|
+
}, {}, {}, {}, string, vue637.ComponentProvideOptions, false, {}, any>;
|
|
15
15
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
16
16
|
declare const _default: typeof __VLS_export;
|
|
17
17
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{flattenChildren as e}from"../../shared/object.js";import{getActiveElement as t}from"../../shared/dom.js";import{handleAndDispatchCustomEvent as n}from"../../shared/event.js";import{Primitive as r}from"../primitive/primitive.js";import i from"../roving-focus/roving-focus-item.js";import{useTreeRootContext as a}from"./context.js";import{TREE_SELECT as o,TREE_TOGGLE as s,recurseCheckChildren as c}from"./shared.js";import{computed as l,createBlock as u,createVNode as d,defineComponent as f,openBlock as p,renderSlot as m,unref as h,withCtx as g,withKeys as _,withModifiers as v}from"vue";var y=f({name:`TreeItem`,__name:`tree-item`,props:{value:{},level:{},disabled:{type:Boolean},disabledSelect:{type:Boolean},disabledToggle:{type:Boolean},asChild:{type:Boolean},as:{default:`li`}},emits:[`select`,`toggle`],setup(f,{emit:y}){let b=f,x=y,{modelValue:S,disabled:C,dir:w,selectedKeys:T,expanded:E,expandedItems:D,propagateSelect:O,bubbleSelect:k,onSelect:A,onToggle:j,getItems:M}=a(`TreeItem`),N={value:b.value},P=l(()=>D.value.find(e=>e.value===b.value)),F=l(()=>C.value||b.disabled),I=l(()=>!!P.value?.hasChildren),L=l(()=>E.value?.includes(b.value)??!1),R=l(()=>T.value.includes(b.value)),z=l(()=>c(T.value,P.value?.data?.children)),B=l(()=>{if(!P.value||!I.value||!Array.isArray(S.value))return;let t=e(P.value.data.children);if(k.value)return t.some(e=>T.value.includes(e.value))&&!t.every(e=>T.value.includes(e.value));if(O.value&&R.value)return!t.every(e=>T.value.includes(e.value))}),V=e=>{F.value||!I.value||(L.value?W(`right`)?.focus?.():J(e))},H=e=>{F.value||(L.value?J(e):W(`left`)?.focus?.())},U=(e,t)=>{if(!F.value){if(t===`right`){w.value===`ltr`?V(e):H(e);return}w.value===`ltr`?H(e):V(e)}};function W(e){let n=M?.()?.map(e=>e.element)??[],r=t(),i=n.indexOf(r),a=[...n];a=e===`left`?a.slice(0,i).reverse():a.slice(i);let o=e===`left`?b.level-1:b.level+1;return a.find(e=>Number(e.getAttribute(`data-indent`))===o)}async function G(e){x(`select`,e),!e?.defaultPrevented&&A(b.value)}function K(e){x(`toggle`,e),!e?.defaultPrevented&&j(b.value)}async function q(e){b.disabledSelect||e&&n(o,G,{originalEvent:e,value:b.value,isExpanded:L.value,isSelected:R.value})}function J(e){b.disabledToggle||e&&n(s,K,{originalEvent:e,value:b.value,isExpanded:L.value,isSelected:R.value})}let Y=e=>{F.value||(q(e),J(e))};return(e,t)=>(p(),u(i,{"as-child":``,"item-data":N,"allow-shift-key":``},{default:g(()=>[d(h(r),{as:f.as,"as-child":f.asChild,"aria-disabled":F.value?!0:void 0,"aria-selected":R.value,"aria-expanded":I.value?L.value:void 0,"aria-level":f.level,"data-disabled":F.value?``:void 0,"data-indent":f.level,"data-selected":R.value?``:void 0,"data-expanded":L.value?``:void 0,"data-contains-selected":z.value?``:void 0,role:`treeitem`,onKeydown:[_(v(Y,[`self`,`prevent`]),[`enter`,`space`]),t[0]||=_(v(e=>U(e,`right`),[`prevent`]),[`right`]),t[1]||=_(v(e=>U(e,`left`),[`prevent`]),[`left`])],onClick:v(Y,[`stop`])},{default:g(()=>[m(e.$slots,`default`,{isExpanded:L.value,isSelected:R.value,isIndeterminate:B.value})]),_:3},8,[`as`,`as-child`,`aria-disabled`,`aria-selected`,`aria-expanded`,`aria-level`,`data-disabled`,`data-indent`,`data-selected`,`data-expanded`,`data-contains-selected`,`onKeydown`])]),_:3}))}});export{y as default};
|
|
1
|
+
import{flattenChildren as e}from"../../shared/object.js";import{getActiveElement as t}from"../../shared/dom.js";import{handleAndDispatchCustomEvent as n}from"../../shared/event.js";import{Primitive as r}from"../primitive/primitive.js";import i from"../roving-focus/roving-focus-item.js";import{useTreeRootContext as a}from"./context.js";import{TREE_SELECT as o,TREE_TOGGLE as s,recurseCheckChildren as c}from"./shared.js";import{computed as l,createBlock as u,createVNode as d,defineComponent as f,openBlock as p,renderSlot as m,unref as h,withCtx as g,withKeys as _,withModifiers as v}from"vue";var y=f({name:`TreeItem`,__name:`tree-item`,props:{value:{},level:{},disabled:{type:Boolean},disabledSelect:{type:Boolean},disabledToggle:{type:Boolean},asChild:{type:Boolean},as:{default:`li`}},emits:[`select`,`toggle`],setup(f,{emit:y}){let b=f,x=y,{modelValue:S,disabled:C,dir:w,selectedKeys:T,expanded:E,expandedItems:D,propagateSelect:O,bubbleSelect:k,onSelect:A,onToggle:j,getItems:M}=a(`TreeItem`),N={value:b.value},P=l(()=>D.value.find(e=>e.value===b.value)),F=l(()=>C.value||b.disabled),I=l(()=>!!P.value?.hasChildren),L=l(()=>E.value?.includes(b.value)??!1),R=l(()=>T.value.includes(b.value)),z=l(()=>c(T.value,P.value?.data?.children)),B=l(()=>{if(!P.value||!I.value||!Array.isArray(S.value))return;let t=e(P.value.data.children);if(k.value)return t.some(e=>T.value.includes(e.value))&&!t.every(e=>T.value.includes(e.value));if(O.value&&R.value)return!t.every(e=>T.value.includes(e.value))}),V=e=>{F.value||!I.value||(L.value?W(`right`)?.focus?.():J(e))},H=e=>{F.value||(L.value?J(e):W(`left`)?.focus?.())},U=(e,t)=>{if(!F.value){if(t===`right`){w.value===`ltr`?V(e):H(e);return}w.value===`ltr`?H(e):V(e)}};function W(e){let n=M?.()?.map(e=>e.element)??[],r=t(),i=n.indexOf(r),a=[...n];a=e===`left`?a.slice(0,i).reverse():a.slice(i);let o=e===`left`?b.level-1:b.level+1;return a.find(e=>Number(e.getAttribute(`data-indent`))===o)}async function G(e){x(`select`,e),!e?.defaultPrevented&&A(b.value)}function K(e){x(`toggle`,e),!e?.defaultPrevented&&j(b.value)}async function q(e){b.disabledSelect||e&&n(o,G,{originalEvent:e,value:b.value,isExpanded:L.value,isSelected:R.value})}function J(e){b.disabledToggle||e&&n(s,K,{originalEvent:e,value:b.value,isExpanded:L.value,isSelected:R.value})}let Y=e=>{F.value||(q(e),J(e))};return(e,t)=>(p(),u(i,{"as-child":``,"item-data":N,"allow-shift-key":``},{default:g(()=>[d(h(r),{as:f.as,"as-child":f.asChild,"aria-disabled":F.value?!0:void 0,"aria-selected":R.value,"aria-expanded":I.value?L.value:void 0,"aria-level":f.level,"data-disabled":F.value?``:void 0,"data-indent":f.level,"data-selected":R.value?``:void 0,"data-expanded":L.value?``:void 0,"data-contains-selected":z.value?``:void 0,role:`treeitem`,onKeydown:[_(v(Y,[`self`,`prevent`]),[`enter`,`space`]),t[0]||=_(v(e=>U(e,`right`),[`prevent`]),[`right`]),t[1]||=_(v(e=>U(e,`left`),[`prevent`]),[`left`])],onClick:v(Y,[`stop`])},{default:g(()=>[m(e.$slots,`default`,{isExpanded:L.value,isSelected:R.value,isIndeterminate:B.value,hasChildren:I.value})]),_:3},8,[`as`,`as-child`,`aria-disabled`,`aria-selected`,`aria-expanded`,`aria-level`,`data-disabled`,`data-indent`,`data-selected`,`data-expanded`,`data-contains-selected`,`onKeydown`])]),_:3}))}});export{y as default};
|
|
@@ -3,26 +3,27 @@ import "../../types/index.js";
|
|
|
3
3
|
import { AsTag } from "../primitive/types.js";
|
|
4
4
|
import "../primitive/index.js";
|
|
5
5
|
import { TreeItemProps } from "./types.js";
|
|
6
|
-
import * as
|
|
6
|
+
import * as vue148 from "vue";
|
|
7
7
|
|
|
8
8
|
//#region src/components/tree/tree-item.vue.d.ts
|
|
9
|
-
declare var
|
|
9
|
+
declare var __VLS_18: {
|
|
10
10
|
isExpanded: boolean;
|
|
11
11
|
isSelected: boolean;
|
|
12
12
|
isIndeterminate: boolean | undefined;
|
|
13
|
+
hasChildren: boolean;
|
|
13
14
|
};
|
|
14
15
|
type __VLS_Slots = {} & {
|
|
15
|
-
default?: (props: typeof
|
|
16
|
+
default?: (props: typeof __VLS_18) => any;
|
|
16
17
|
};
|
|
17
|
-
declare const __VLS_base:
|
|
18
|
+
declare const __VLS_base: vue148.DefineComponent<TreeItemProps, {}, {}, {}, {}, vue148.ComponentOptionsMixin, vue148.ComponentOptionsMixin, {
|
|
18
19
|
select: (event: TreeSelectEvent<string>) => any;
|
|
19
20
|
toggle: (event: TreeToggleEvent<string>) => any;
|
|
20
|
-
}, string,
|
|
21
|
+
}, string, vue148.PublicProps, Readonly<TreeItemProps> & Readonly<{
|
|
21
22
|
onSelect?: ((event: TreeSelectEvent<string>) => any) | undefined;
|
|
22
23
|
onToggle?: ((event: TreeToggleEvent<string>) => any) | undefined;
|
|
23
24
|
}>, {
|
|
24
|
-
as: AsTag |
|
|
25
|
-
}, {}, {}, {}, string,
|
|
25
|
+
as: AsTag | vue148.Component;
|
|
26
|
+
}, {}, {}, {}, string, vue148.ComponentProvideOptions, false, {}, any>;
|
|
26
27
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
27
28
|
declare const _default: typeof __VLS_export;
|
|
28
29
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import { MaybeArray } from "../../types/common.js";
|
|
2
2
|
import "../../types/index.js";
|
|
3
3
|
import { FlattenedItem, TreeItemData, TreeRootProps } from "./types.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as vue146 from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/components/tree/tree-root.vue.d.ts
|
|
7
|
-
declare const __VLS_export: <T extends TreeItemData, U extends MaybeArray<string> | undefined, M extends boolean>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>,
|
|
7
|
+
declare const __VLS_export: <T extends TreeItemData, U extends MaybeArray<string> | undefined, M extends boolean>(__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
8
|
props: __VLS_PrettifyLocal<TreeRootProps<T, U, M> & {
|
|
9
9
|
"onUpdate:modelValue"?: ((value: string | ((U extends string ? false : M extends true ? true : false) extends infer T_1 ? T_1 extends (U extends string ? false : M extends true ? true : false) ? T_1 extends true ? string[] : string : never : never)) => any) | undefined;
|
|
10
10
|
"onUpdate:expanded"?: ((value: string[]) => any) | undefined;
|
|
11
|
-
}> &
|
|
11
|
+
}> & vue146.PublicProps & (typeof globalThis extends {
|
|
12
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
13
|
+
} ? P : {});
|
|
12
14
|
expose: (exposed: {}) => void;
|
|
13
15
|
attrs: any;
|
|
14
16
|
slots: {
|
|
@@ -21,10 +23,10 @@ declare const __VLS_export: <T extends TreeItemData, U extends MaybeArray<string
|
|
|
21
23
|
}) => any;
|
|
22
24
|
};
|
|
23
25
|
emit: ((evt: "update:modelValue", value: string | ((U extends string ? false : M extends true ? true : false) extends infer T_1 ? T_1 extends (U extends string ? false : M extends true ? true : false) ? T_1 extends true ? string[] : string : never : never)) => void) & ((evt: "update:expanded", value: string[]) => void);
|
|
24
|
-
}>) =>
|
|
26
|
+
}>) => vue146.VNode & {
|
|
25
27
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
26
28
|
};
|
|
27
29
|
declare const _default: typeof __VLS_export;
|
|
28
|
-
type __VLS_PrettifyLocal<T> = { [K in keyof T as K]: T[K] } & {};
|
|
30
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {};
|
|
29
31
|
//#endregion
|
|
30
32
|
export { _default };
|
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
import { TreeSelectEvent, TreeToggleEvent } from "../../types/event.js";
|
|
2
2
|
import { TreeVirtualizerItemProps } from "./types.js";
|
|
3
3
|
import "../../index.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as vue156 from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/components/tree/tree-virtualizer-item.vue.d.ts
|
|
7
|
-
declare var
|
|
7
|
+
declare var __VLS_12: {
|
|
8
8
|
isExpanded: boolean;
|
|
9
9
|
isSelected: boolean;
|
|
10
10
|
isIndeterminate: boolean | undefined;
|
|
11
|
+
hasChildren: boolean;
|
|
11
12
|
};
|
|
12
13
|
type __VLS_Slots = {} & {
|
|
13
|
-
default?: (props: typeof
|
|
14
|
+
default?: (props: typeof __VLS_12) => any;
|
|
14
15
|
};
|
|
15
|
-
declare const __VLS_base:
|
|
16
|
+
declare const __VLS_base: vue156.DefineComponent<TreeVirtualizerItemProps, {}, {}, {}, {}, vue156.ComponentOptionsMixin, vue156.ComponentOptionsMixin, {
|
|
16
17
|
select: (event: TreeSelectEvent<string>) => any;
|
|
17
18
|
toggle: (event: TreeToggleEvent<string>) => any;
|
|
18
|
-
}, string,
|
|
19
|
+
}, string, vue156.PublicProps, Readonly<TreeVirtualizerItemProps> & Readonly<{
|
|
19
20
|
onSelect?: ((event: TreeSelectEvent<string>) => any) | undefined;
|
|
20
21
|
onToggle?: ((event: TreeToggleEvent<string>) => any) | undefined;
|
|
21
|
-
}>, {}, {}, {}, {}, string,
|
|
22
|
+
}>, {}, {}, {}, {}, string, vue156.ComponentProvideOptions, false, {}, any>;
|
|
22
23
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
23
24
|
declare const _default: typeof __VLS_export;
|
|
24
25
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import { MaybeArray } from "../../types/common.js";
|
|
2
2
|
import "../../types/index.js";
|
|
3
3
|
import { FlattenedItem, TreeItemData, TreeVirtualizerRootProps } from "./types.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as vue154 from "vue";
|
|
5
5
|
import * as _tanstack_vue_virtual0 from "@tanstack/vue-virtual";
|
|
6
6
|
|
|
7
7
|
//#region src/components/tree/tree-virtualizer-root.vue.d.ts
|
|
8
|
-
declare const __VLS_export: <T extends TreeItemData, U extends MaybeArray<string> | undefined, M extends boolean>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>,
|
|
8
|
+
declare const __VLS_export: <T extends TreeItemData, U extends MaybeArray<string> | undefined, M extends boolean>(__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<{
|
|
9
9
|
props: __VLS_PrettifyLocal<TreeVirtualizerRootProps<T, U, M> & {
|
|
10
10
|
"onUpdate:modelValue"?: ((value: string | ((U extends string ? false : M extends true ? true : false) extends infer T_1 ? T_1 extends (U extends string ? false : M extends true ? true : false) ? T_1 extends true ? string[] : string : never : never)) => any) | undefined;
|
|
11
11
|
"onUpdate:expanded"?: ((value: string[]) => any) | undefined;
|
|
12
|
-
}> &
|
|
12
|
+
}> & vue154.PublicProps & (typeof globalThis extends {
|
|
13
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
14
|
+
} ? P : {});
|
|
13
15
|
expose: (exposed: {}) => void;
|
|
14
16
|
attrs: any;
|
|
15
17
|
slots: {
|
|
@@ -21,10 +23,10 @@ declare const __VLS_export: <T extends TreeItemData, U extends MaybeArray<string
|
|
|
21
23
|
}) => any;
|
|
22
24
|
};
|
|
23
25
|
emit: ((evt: "update:modelValue", value: string | ((U extends string ? false : M extends true ? true : false) extends infer T_1 ? T_1 extends (U extends string ? false : M extends true ? true : false) ? T_1 extends true ? string[] : string : never : never)) => void) & ((evt: "update:expanded", value: string[]) => void);
|
|
24
|
-
}>) =>
|
|
26
|
+
}>) => vue154.VNode & {
|
|
25
27
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
26
28
|
};
|
|
27
29
|
declare const _default: typeof __VLS_export;
|
|
28
|
-
type __VLS_PrettifyLocal<T> = { [K in keyof T as K]: T[K] } & {};
|
|
30
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {};
|
|
29
31
|
//#endregion
|
|
30
32
|
export { _default };
|
|
@@ -21,7 +21,7 @@ type TreeItemData<T extends TreeItemBaseData = TreeItemBaseData> = T & {
|
|
|
21
21
|
type TreeSelectBehavior = 'toggle' | 'replace';
|
|
22
22
|
type TreeToggleBehavior = 'single' | 'multiple';
|
|
23
23
|
type IsMultiple<U extends MaybeArray<string> | undefined, M extends boolean> = U extends string ? false : M extends true ? true : false;
|
|
24
|
-
interface TreeRootProps<T extends TreeItemData = TreeItemData, U extends MaybeArray<string> | undefined = MaybeArray<string> | undefined, M extends boolean = boolean> extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {
|
|
24
|
+
interface TreeRootProps<T extends TreeItemData = TreeItemData, U extends MaybeArray<string> | undefined = MaybeArray<string> | undefined, M extends boolean = boolean> extends PrimitiveProps, /** @vue-ignore */Omit<HTMLAttributes, 'onSelect' | 'onToggle'> {
|
|
25
25
|
/** The controlled value of the tree. Can be bound-with with `v-model`. */
|
|
26
26
|
modelValue?: U;
|
|
27
27
|
/** The value of the tree when initially rendered. Use when you do not need to control the state of the tree */
|