@soybeanjs/headless 0.0.2-beta.9 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -138
- 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/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.js +1 -1
- 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 +4 -4
- package/dist/components/aspect-ratio/aspect-ratio.vue.d.ts +3 -3
- package/dist/components/avatar/avatar-fallback.vue.d.ts +2 -2
- package/dist/components/avatar/avatar-image.vue.d.ts +4 -4
- package/dist/components/avatar/avatar-root.vue.d.ts +2 -2
- package/dist/components/badge/badge-content.vue.d.ts +2 -2
- package/dist/components/badge/badge-root.vue.d.ts +4 -4
- package/dist/components/breadcrumb/breadcrumb-ellipsis.vue.d.ts +2 -2
- package/dist/components/breadcrumb/breadcrumb-item.vue.d.ts +2 -2
- package/dist/components/breadcrumb/breadcrumb-link.vue.d.ts +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/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 +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/collapsible/collapsible-content.vue.d.ts +2 -2
- package/dist/components/collapsible/collapsible-root.vue.d.ts +6 -6
- package/dist/components/collapsible/collapsible-trigger.vue.d.ts +4 -4
- package/dist/components/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 +4 -4
- package/dist/components/context-menu/context-menu-trigger.vue.d.ts +4 -4
- package/dist/components/dialog/dialog-close.js +1 -1
- 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/dialog/types.d.ts +8 -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 +6 -6
- package/dist/components/dropdown-menu/dropdown-menu-trigger.vue.d.ts +4 -4
- package/dist/components/form/form-description.vue.d.ts +2 -2
- package/dist/components/form/form-error.vue.d.ts +2 -2
- package/dist/components/form/form-field-array.vue.d.ts +2 -2
- package/dist/components/form/form-field.vue.d.ts +2 -2
- package/dist/components/form/form-label.vue.d.ts +2 -2
- package/dist/components/input/input-control.vue.d.ts +2 -2
- package/dist/components/input/input-root.vue.d.ts +4 -4
- package/dist/components/kbd/kbd.vue.d.ts +2 -2
- package/dist/components/label/label.vue.d.ts +2 -2
- package/dist/components/layout/layout-footer.vue.d.ts +2 -2
- package/dist/components/layout/layout-header.vue.d.ts +2 -2
- package/dist/components/layout/layout-main.vue.d.ts +2 -2
- package/dist/components/layout/layout-mobile.vue.d.ts +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.js +1 -1
- package/dist/components/link/link.vue.d.ts +4 -5
- 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 +4 -4
- package/dist/components/listbox/listbox-item.vue.d.ts +5 -5
- package/dist/components/listbox/listbox-root.vue.d.ts +7 -7
- package/dist/components/listbox/listbox-virtualizer.vue.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 +4 -4
- 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 +4 -4
- 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/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.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-trigger.vue.d.ts +4 -4
- package/dist/components/navigation-menu/navigation-menu-viewport.vue.d.ts +3 -3
- package/dist/components/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 +2 -2
- 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 +4 -4
- 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 +2 -2
- package/dist/components/popper/popper-arrow.vue.d.ts +2 -2
- package/dist/components/popper/popper-content.vue.d.ts +26 -26
- package/dist/components/popper/popper-root.vue.d.ts +2 -2
- package/dist/components/portal/portal.vue.d.ts +3 -3
- package/dist/components/primitive/primitive.d.ts +2 -2
- package/dist/components/radio-group/radio-group-control.vue.d.ts +2 -2
- package/dist/components/radio-group/radio-group-indicator.vue.d.ts +4 -4
- package/dist/components/radio-group/radio-group-item.vue.d.ts +4 -4
- package/dist/components/radio-group/radio-group-label.vue.d.ts +2 -2
- package/dist/components/radio-group/radio-group-root.vue.d.ts +3 -3
- package/dist/components/roving-focus/roving-focus-group.vue.d.ts +5 -5
- package/dist/components/roving-focus/roving-focus-item.vue.d.ts +3 -3
- package/dist/components/select/select-arrow.vue.d.ts +2 -2
- package/dist/components/select/select-content.vue.d.ts +4 -4
- 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/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 +3 -3
- package/dist/components/switch/switch-thumb.vue.d.ts +4 -4
- package/dist/components/tabs/tabs-content.vue.d.ts +2 -2
- package/dist/components/tabs/tabs-indicator.vue.d.ts +2 -2
- package/dist/components/tabs/tabs-list.vue.d.ts +2 -2
- package/dist/components/tabs/tabs-root.vue.d.ts +5 -5
- package/dist/components/tabs/tabs-trigger.vue.d.ts +4 -4
- package/dist/components/tag/tag.vue.d.ts +4 -4
- package/dist/components/textarea/textarea-control.vue.d.ts +2 -2
- package/dist/components/textarea/textarea-counter.vue.d.ts +2 -2
- package/dist/components/textarea/textarea-root.vue.d.ts +4 -4
- package/dist/components/toast/context.d.ts +13 -0
- package/dist/components/toast/context.js +1 -0
- package/dist/components/toast/index.d.ts +12 -0
- package/dist/components/toast/index.js +1 -0
- package/dist/components/toast/shared.js +1 -0
- package/dist/components/toast/toast-action.js +1 -0
- package/dist/components/toast/toast-action.vue.d.ts +22 -0
- package/dist/components/toast/toast-announce.js +1 -0
- package/dist/components/toast/toast-close.js +1 -0
- package/dist/components/toast/toast-close.vue.d.ts +22 -0
- package/dist/components/toast/toast-description.js +1 -0
- package/dist/components/toast/toast-description.vue.d.ts +18 -0
- package/dist/components/toast/toast-focus-proxy.js +1 -0
- package/dist/components/toast/toast-provider.js +1 -0
- package/dist/components/toast/toast-provider.vue.d.ts +25 -0
- package/dist/components/toast/toast-root.js +1 -0
- package/dist/components/toast/toast-root.vue.d.ts +48 -0
- package/dist/components/toast/toast-title.js +1 -0
- package/dist/components/toast/toast-title.vue.d.ts +18 -0
- package/dist/components/toast/toast-viewport.js +1 -0
- package/dist/components/toast/toast-viewport.vue.d.ts +24 -0
- package/dist/components/toast/types.d.ts +107 -0
- package/dist/components/tooltip/tooltip-content.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/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-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-locale.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/dist/constants/components.d.ts +1 -0
- package/dist/constants/components.js +1 -1
- package/dist/index.d.ts +24 -14
- package/dist/index.js +1 -1
- package/dist/nuxt/index.js +1 -1
- package/dist/resolver/index.d.ts +2 -2
- package/dist/resolver/index.js +1 -1
- package/dist/shared/dom.d.ts +2 -1
- package/dist/shared/dom.js +1 -1
- package/dist/shared/geometry.d.ts +3 -2
- package/dist/shared/geometry.js +1 -1
- package/dist/shared/index.d.ts +3 -3
- package/dist/shared/index.js +1 -1
- package/dist/types/common.d.ts +2 -1
- package/dist/types/event.d.ts +10 -1
- package/dist/types/index.d.ts +2 -2
- package/package.json +24 -48
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { ClassValue, SwipeDirection } from "../../types/common.js";
|
|
2
|
+
import { SwipeEvent } from "../../types/event.js";
|
|
3
|
+
import { ForceMountProps } from "../../types/component.js";
|
|
4
|
+
import "../../types/index.js";
|
|
5
|
+
import { PrimitiveProps } from "../primitive/types.js";
|
|
6
|
+
import { ComputedRef, HTMLAttributes } from "vue";
|
|
7
|
+
|
|
8
|
+
//#region src/components/toast/types.d.ts
|
|
9
|
+
interface ToastProviderProps {
|
|
10
|
+
/**
|
|
11
|
+
* An author-localized label for each toast. Used to help screen reader users associate the interruption with a toast.
|
|
12
|
+
*
|
|
13
|
+
* @defaultValue 'Notification'
|
|
14
|
+
*/
|
|
15
|
+
label?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Time in milliseconds that each toast should remain visible for.
|
|
18
|
+
*
|
|
19
|
+
* @defaultValue 5000
|
|
20
|
+
*/
|
|
21
|
+
duration?: number;
|
|
22
|
+
/**
|
|
23
|
+
* Direction of pointer swipe that should close the toast.
|
|
24
|
+
*
|
|
25
|
+
* @defaultValue 'right'
|
|
26
|
+
*/
|
|
27
|
+
swipeDirection?: SwipeDirection;
|
|
28
|
+
/**
|
|
29
|
+
* Distance in pixels that the swipe must pass before a close is triggered.
|
|
30
|
+
*
|
|
31
|
+
* @defaultValue 50
|
|
32
|
+
*/
|
|
33
|
+
swipeThreshold?: number;
|
|
34
|
+
}
|
|
35
|
+
type ToastLiveType = 'foreground' | 'background';
|
|
36
|
+
interface ToastRootProps extends ForceMountProps, PrimitiveProps, /** @vue-ignore */Omit<HTMLAttributes, 'onPause'> {
|
|
37
|
+
/**
|
|
38
|
+
* Control the sensitivity of the toast for accessibility purposes.
|
|
39
|
+
*
|
|
40
|
+
* For toasts that are the result of a user action, choose `foreground`. Toasts generated from background tasks should
|
|
41
|
+
* use `background`.
|
|
42
|
+
*/
|
|
43
|
+
liveType?: ToastLiveType;
|
|
44
|
+
/** The controlled open state of the dialog. Can be bind as `v-model:open`. */
|
|
45
|
+
open?: boolean;
|
|
46
|
+
/** The open state of the dialog when it is initially rendered. Use when you do not need to control its open state. */
|
|
47
|
+
defaultOpen?: boolean;
|
|
48
|
+
/** Time in milliseconds that toast should remain visible for. Overrides value given to `ToastProvider`. */
|
|
49
|
+
duration?: number;
|
|
50
|
+
}
|
|
51
|
+
type ToastRootEmits = {
|
|
52
|
+
/** Event handler called when the escape key is down. It can be prevented by calling `event.preventDefault`. */
|
|
53
|
+
escapeKeyDown: [event: KeyboardEvent];
|
|
54
|
+
/**
|
|
55
|
+
* Event handler called when the dismiss timer is paused. This occurs when the pointer is moved over the viewport, the
|
|
56
|
+
* viewport is focused or when the window is blurred.
|
|
57
|
+
*/
|
|
58
|
+
pause: [];
|
|
59
|
+
/**
|
|
60
|
+
* Event handler called when the dismiss timer is resumed. This occurs when the pointer is moved away from the
|
|
61
|
+
* viewport, the viewport is blurred or when the window is focused.
|
|
62
|
+
*/
|
|
63
|
+
resume: [];
|
|
64
|
+
/** Event handler called when starting a swipe interaction. It can be prevented by calling `event.preventDefault`. */
|
|
65
|
+
swipeStart: [event: SwipeEvent];
|
|
66
|
+
/** Event handler called during a swipe interaction. It can be prevented by calling `event.preventDefault`. */
|
|
67
|
+
swipeMove: [event: SwipeEvent];
|
|
68
|
+
/** Event handler called when swipe interaction is cancelled. It can be prevented by calling `event.preventDefault`. */
|
|
69
|
+
swipeCancel: [event: SwipeEvent];
|
|
70
|
+
/** Event handler called at the end of a swipe interaction. It can be prevented by calling `event.preventDefault`. */
|
|
71
|
+
swipeEnd: [event: SwipeEvent];
|
|
72
|
+
/** Event handler called when the open state of the toast changes. */
|
|
73
|
+
'update:open': [value: boolean];
|
|
74
|
+
};
|
|
75
|
+
interface ToastViewportProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {
|
|
76
|
+
/**
|
|
77
|
+
* The keys to use as the keyboard shortcut that will move focus to the toast viewport.
|
|
78
|
+
*
|
|
79
|
+
* @defaultValue ['F8']
|
|
80
|
+
*/
|
|
81
|
+
hotkey?: string[];
|
|
82
|
+
/**
|
|
83
|
+
* An author-localized label for the toast viewport to provide context for screen reader users when navigating page
|
|
84
|
+
* landmarks. The available `{hotkey}` placeholder will be replaced for you. Alternatively, you can pass in a custom
|
|
85
|
+
* function to generate the label.
|
|
86
|
+
*
|
|
87
|
+
* @defaultValue 'Notifications ({hotkey})'
|
|
88
|
+
*/
|
|
89
|
+
label?: string | ((hotkey: string) => string);
|
|
90
|
+
}
|
|
91
|
+
interface ToastCloseProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {}
|
|
92
|
+
interface ToastActionProps extends ToastCloseProps {
|
|
93
|
+
/**
|
|
94
|
+
* A short description for an alternate way to carry out the action. For screen reader users who will not be able to
|
|
95
|
+
* navigate to the button easily/quickly.
|
|
96
|
+
*/
|
|
97
|
+
altText: string;
|
|
98
|
+
}
|
|
99
|
+
interface ToastTitleProps extends /** @vue-ignore */HTMLAttributes {}
|
|
100
|
+
interface ToastDescriptionProps extends /** @vue-ignore */HTMLAttributes {}
|
|
101
|
+
type ToastThemeSlot = 'root' | 'title' | 'description' | 'action' | 'close';
|
|
102
|
+
type ToastUi = Record<ToastThemeSlot, ClassValue>;
|
|
103
|
+
interface ToastThemeContextParams {
|
|
104
|
+
ui: ComputedRef<ToastUi>;
|
|
105
|
+
}
|
|
106
|
+
//#endregion
|
|
107
|
+
export { ToastActionProps, ToastCloseProps, ToastDescriptionProps, ToastLiveType, ToastProviderProps, ToastRootEmits, ToastRootProps, ToastThemeContextParams, ToastThemeSlot, ToastTitleProps, ToastUi, ToastViewportProps };
|
|
@@ -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 vue1050 from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/components/tooltip/tooltip-content.vue.d.ts
|
|
7
7
|
declare var __VLS_6: {};
|
|
8
8
|
type __VLS_Slots = {} & {
|
|
9
9
|
default?: (props: typeof __VLS_6) => any;
|
|
10
10
|
};
|
|
11
|
-
declare const __VLS_base:
|
|
11
|
+
declare const __VLS_base: vue1050.DefineComponent<TooltipContentProps, {}, {}, {}, {}, vue1050.ComponentOptionsMixin, vue1050.ComponentOptionsMixin, {
|
|
12
12
|
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
13
13
|
pointerDownOutside: (event: PointerDownOutsideEvent) => any;
|
|
14
|
-
}, string,
|
|
14
|
+
}, string, vue1050.PublicProps, Readonly<TooltipContentProps> & Readonly<{
|
|
15
15
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
16
16
|
onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
17
|
-
}>, {}, {}, {}, {}, string,
|
|
17
|
+
}>, {}, {}, {}, {}, string, vue1050.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,5 +1,5 @@
|
|
|
1
1
|
import { TooltipRootProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue1045 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/tooltip/tooltip-root.vue.d.ts
|
|
5
5
|
declare var __VLS_7: {
|
|
@@ -8,14 +8,14 @@ declare var __VLS_7: {
|
|
|
8
8
|
type __VLS_Slots = {} & {
|
|
9
9
|
default?: (props: typeof __VLS_7) => any;
|
|
10
10
|
};
|
|
11
|
-
declare const __VLS_base:
|
|
11
|
+
declare const __VLS_base: vue1045.DefineComponent<TooltipRootProps, {}, {}, {}, {}, vue1045.ComponentOptionsMixin, vue1045.ComponentOptionsMixin, {
|
|
12
12
|
"update:open": (value: boolean) => any;
|
|
13
|
-
}, string,
|
|
13
|
+
}, string, vue1045.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, vue1045.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 vue1039 from "vue";
|
|
6
6
|
|
|
7
7
|
//#region src/components/tooltip/tooltip-trigger.vue.d.ts
|
|
8
8
|
declare var __VLS_7: {};
|
|
9
9
|
type __VLS_Slots = {} & {
|
|
10
10
|
default?: (props: typeof __VLS_7) => any;
|
|
11
11
|
};
|
|
12
|
-
declare const __VLS_base:
|
|
13
|
-
as: AsTag |
|
|
14
|
-
}, {}, {}, {}, string,
|
|
12
|
+
declare const __VLS_base: vue1039.DefineComponent<PopperAnchorProps, {}, {}, {}, {}, vue1039.ComponentOptionsMixin, vue1039.ComponentOptionsMixin, {}, string, vue1039.PublicProps, Readonly<PopperAnchorProps> & Readonly<{}>, {
|
|
13
|
+
as: AsTag | vue1039.Component;
|
|
14
|
+
}, {}, {}, {}, string, vue1039.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 & {
|
|
@@ -3,7 +3,7 @@ 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 vue746 from "vue";
|
|
7
7
|
|
|
8
8
|
//#region src/components/tree/tree-item.vue.d.ts
|
|
9
9
|
declare var __VLS_17: {
|
|
@@ -14,15 +14,15 @@ declare var __VLS_17: {
|
|
|
14
14
|
type __VLS_Slots = {} & {
|
|
15
15
|
default?: (props: typeof __VLS_17) => any;
|
|
16
16
|
};
|
|
17
|
-
declare const __VLS_base:
|
|
17
|
+
declare const __VLS_base: vue746.DefineComponent<TreeItemProps, {}, {}, {}, {}, vue746.ComponentOptionsMixin, vue746.ComponentOptionsMixin, {
|
|
18
18
|
select: (event: TreeSelectEvent<string>) => any;
|
|
19
19
|
toggle: (event: TreeToggleEvent<string>) => any;
|
|
20
|
-
}, string,
|
|
20
|
+
}, string, vue746.PublicProps, Readonly<TreeItemProps> & Readonly<{
|
|
21
21
|
onSelect?: ((event: TreeSelectEvent<string>) => any) | undefined;
|
|
22
22
|
onToggle?: ((event: TreeToggleEvent<string>) => any) | undefined;
|
|
23
23
|
}>, {
|
|
24
|
-
as: AsTag |
|
|
25
|
-
}, {}, {}, {}, string,
|
|
24
|
+
as: AsTag | vue746.Component;
|
|
25
|
+
}, {}, {}, {}, string, vue746.ComponentProvideOptions, false, {}, any>;
|
|
26
26
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
27
27
|
declare const _default: typeof __VLS_export;
|
|
28
28
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,14 +1,14 @@
|
|
|
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 vue752 from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/components/tree/tree-root.vue.d.ts
|
|
7
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_expose?: 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
|
+
}> & vue752.PublicProps;
|
|
12
12
|
expose: (exposed: {}) => void;
|
|
13
13
|
attrs: any;
|
|
14
14
|
slots: {
|
|
@@ -21,7 +21,7 @@ declare const __VLS_export: <T extends TreeItemData, U extends MaybeArray<string
|
|
|
21
21
|
}) => any;
|
|
22
22
|
};
|
|
23
23
|
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
|
-
}>) =>
|
|
24
|
+
}>) => vue752.VNode & {
|
|
25
25
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
26
26
|
};
|
|
27
27
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,7 +1,7 @@
|
|
|
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 vue756 from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/components/tree/tree-virtualizer-item.vue.d.ts
|
|
7
7
|
declare var __VLS_10: {
|
|
@@ -12,13 +12,13 @@ declare var __VLS_10: {
|
|
|
12
12
|
type __VLS_Slots = {} & {
|
|
13
13
|
default?: (props: typeof __VLS_10) => any;
|
|
14
14
|
};
|
|
15
|
-
declare const __VLS_base:
|
|
15
|
+
declare const __VLS_base: vue756.DefineComponent<TreeVirtualizerItemProps, {}, {}, {}, {}, vue756.ComponentOptionsMixin, vue756.ComponentOptionsMixin, {
|
|
16
16
|
select: (event: TreeSelectEvent<string>) => any;
|
|
17
17
|
toggle: (event: TreeToggleEvent<string>) => any;
|
|
18
|
-
}, string,
|
|
18
|
+
}, string, vue756.PublicProps, Readonly<TreeVirtualizerItemProps> & Readonly<{
|
|
19
19
|
onSelect?: ((event: TreeSelectEvent<string>) => any) | undefined;
|
|
20
20
|
onToggle?: ((event: TreeToggleEvent<string>) => any) | undefined;
|
|
21
|
-
}>, {}, {}, {}, {}, string,
|
|
21
|
+
}>, {}, {}, {}, {}, string, vue756.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,7 +1,7 @@
|
|
|
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 vue754 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
|
|
@@ -9,7 +9,7 @@ declare const __VLS_export: <T extends TreeItemData, U extends MaybeArray<string
|
|
|
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
|
+
}> & vue754.PublicProps;
|
|
13
13
|
expose: (exposed: {}) => void;
|
|
14
14
|
attrs: any;
|
|
15
15
|
slots: {
|
|
@@ -21,7 +21,7 @@ declare const __VLS_export: <T extends TreeItemData, U extends MaybeArray<string
|
|
|
21
21
|
}) => any;
|
|
22
22
|
};
|
|
23
23
|
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
|
-
}>) =>
|
|
24
|
+
}>) => vue754.VNode & {
|
|
25
25
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
26
26
|
};
|
|
27
27
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VirtualizerContentProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue723 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/virtualizer/virtualizer-content.vue.d.ts
|
|
5
5
|
declare var __VLS_1: {}, __VLS_3: {};
|
|
@@ -8,7 +8,7 @@ type __VLS_Slots = {} & {
|
|
|
8
8
|
} & {
|
|
9
9
|
default?: (props: typeof __VLS_3) => any;
|
|
10
10
|
};
|
|
11
|
-
declare const __VLS_base:
|
|
11
|
+
declare const __VLS_base: vue723.DefineComponent<VirtualizerContentProps, {}, {}, {}, {}, vue723.ComponentOptionsMixin, vue723.ComponentOptionsMixin, {}, string, vue723.PublicProps, Readonly<VirtualizerContentProps> & Readonly<{}>, {}, {}, {}, {}, string, vue723.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 { VirtualizerItemProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue618 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/virtualizer/virtualizer-item.vue.d.ts
|
|
5
5
|
declare var __VLS_7: {};
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
7
|
default?: (props: typeof __VLS_7) => any;
|
|
8
8
|
};
|
|
9
|
-
declare const __VLS_base:
|
|
9
|
+
declare const __VLS_base: vue618.DefineComponent<VirtualizerItemProps, {}, {}, {}, {}, vue618.ComponentOptionsMixin, vue618.ComponentOptionsMixin, {}, string, vue618.PublicProps, Readonly<VirtualizerItemProps> & Readonly<{}>, {}, {}, {}, {}, string, vue618.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,10 +1,10 @@
|
|
|
1
1
|
import { VirtualizerRootProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue733 from "vue";
|
|
3
3
|
import * as _tanstack_vue_virtual0 from "@tanstack/vue-virtual";
|
|
4
4
|
|
|
5
5
|
//#region src/components/virtualizer/virtualizer-root.vue.d.ts
|
|
6
6
|
declare const __VLS_export: <T extends Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
7
|
-
props: __VLS_PrettifyLocal<VirtualizerRootProps<T>> &
|
|
7
|
+
props: __VLS_PrettifyLocal<VirtualizerRootProps<T>> & vue733.PublicProps;
|
|
8
8
|
expose: (exposed: {}) => void;
|
|
9
9
|
attrs: any;
|
|
10
10
|
slots: {
|
|
@@ -14,7 +14,7 @@ declare const __VLS_export: <T extends Record<string, any>>(__VLS_props: NonNull
|
|
|
14
14
|
}) => any;
|
|
15
15
|
};
|
|
16
16
|
emit: {};
|
|
17
|
-
}>) =>
|
|
17
|
+
}>) => vue733.VNode & {
|
|
18
18
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
19
19
|
};
|
|
20
20
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { VisuallyHiddenInputProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue74 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/visually-hidden/visually-hidden-input.vue.d.ts
|
|
5
5
|
declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
6
|
-
props: __VLS_PrettifyLocal<VisuallyHiddenInputProps<T>> &
|
|
6
|
+
props: __VLS_PrettifyLocal<VisuallyHiddenInputProps<T>> & vue74.PublicProps;
|
|
7
7
|
expose: (exposed: {}) => void;
|
|
8
8
|
attrs: any;
|
|
9
9
|
slots: {};
|
|
10
10
|
emit: {};
|
|
11
|
-
}>) =>
|
|
11
|
+
}>) => vue74.VNode & {
|
|
12
12
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
13
13
|
};
|
|
14
14
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { AsTag } from "../primitive/types.js";
|
|
2
2
|
import "../primitive/index.js";
|
|
3
3
|
import { VisuallyHiddenFeature, VisuallyHiddenProps } from "./types.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as vue68 from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/components/visually-hidden/visually-hidden.vue.d.ts
|
|
7
7
|
declare var __VLS_7: {};
|
|
8
8
|
type __VLS_Slots = {} & {
|
|
9
9
|
default?: (props: typeof __VLS_7) => any;
|
|
10
10
|
};
|
|
11
|
-
declare const __VLS_base:
|
|
12
|
-
as: AsTag |
|
|
11
|
+
declare const __VLS_base: vue68.DefineComponent<VisuallyHiddenProps, {}, {}, {}, {}, vue68.ComponentOptionsMixin, vue68.ComponentOptionsMixin, {}, string, vue68.PublicProps, Readonly<VisuallyHiddenProps> & Readonly<{}>, {
|
|
12
|
+
as: AsTag | vue68.Component;
|
|
13
13
|
feature: VisuallyHiddenFeature;
|
|
14
|
-
}, {}, {}, {}, string,
|
|
14
|
+
}, {}, {}, {}, string, vue68.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,6 +1,6 @@
|
|
|
1
1
|
import { VNodeRef } from "../types/vue.js";
|
|
2
2
|
import "../types/index.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue1 from "vue";
|
|
4
4
|
import { MaybeRefOrGetter, Ref } from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/composables/use-collection.d.ts
|
|
@@ -16,33 +16,33 @@ interface CollectionItemData<ItemData = Record<string, any>> {
|
|
|
16
16
|
*/
|
|
17
17
|
declare function useCollection<ItemData = Record<string, any>>(collectionName: string): {
|
|
18
18
|
provideCollectionContext: () => {
|
|
19
|
-
containerElement:
|
|
19
|
+
containerElement: vue1.ShallowRef<HTMLElement | undefined, HTMLElement | undefined>;
|
|
20
20
|
onContainerElementChange: (element: HTMLElement) => void;
|
|
21
21
|
itemRegistry: Ref<Map<HTMLElement, CollectionItemData<ItemData>>, Map<HTMLElement, CollectionItemData<ItemData>>>;
|
|
22
22
|
getOrderedItems: (excludeDisabled?: boolean) => CollectionItemData<ItemData>[];
|
|
23
23
|
getOrderedElements: (excludeDisabled?: boolean) => HTMLElement[];
|
|
24
24
|
};
|
|
25
25
|
useCollectionContext: <N extends string | null | undefined = undefined>(consumerName?: N | undefined, defaultValue?: {
|
|
26
|
-
containerElement:
|
|
26
|
+
containerElement: vue1.ShallowRef<HTMLElement | undefined, HTMLElement | undefined>;
|
|
27
27
|
onContainerElementChange: (element: HTMLElement) => void;
|
|
28
28
|
itemRegistry: Ref<Map<HTMLElement, CollectionItemData<ItemData>>, Map<HTMLElement, CollectionItemData<ItemData>>>;
|
|
29
29
|
getOrderedItems: (excludeDisabled?: boolean) => CollectionItemData<ItemData>[];
|
|
30
30
|
getOrderedElements: (excludeDisabled?: boolean) => HTMLElement[];
|
|
31
31
|
} | undefined) => N extends null | undefined ? {
|
|
32
|
-
containerElement:
|
|
32
|
+
containerElement: vue1.ShallowRef<HTMLElement | undefined, HTMLElement | undefined>;
|
|
33
33
|
onContainerElementChange: (element: HTMLElement) => void;
|
|
34
34
|
itemRegistry: Ref<Map<HTMLElement, CollectionItemData<ItemData>>, Map<HTMLElement, CollectionItemData<ItemData>>>;
|
|
35
35
|
getOrderedItems: (excludeDisabled?: boolean) => CollectionItemData<ItemData>[];
|
|
36
36
|
getOrderedElements: (excludeDisabled?: boolean) => HTMLElement[];
|
|
37
37
|
} | null : {
|
|
38
|
-
containerElement:
|
|
38
|
+
containerElement: vue1.ShallowRef<HTMLElement | undefined, HTMLElement | undefined>;
|
|
39
39
|
onContainerElementChange: (element: HTMLElement) => void;
|
|
40
40
|
itemRegistry: Ref<Map<HTMLElement, CollectionItemData<ItemData>>, Map<HTMLElement, CollectionItemData<ItemData>>>;
|
|
41
41
|
getOrderedItems: (excludeDisabled?: boolean) => CollectionItemData<ItemData>[];
|
|
42
42
|
getOrderedElements: (excludeDisabled?: boolean) => HTMLElement[];
|
|
43
43
|
};
|
|
44
44
|
useCollectionItem: (itemData?: MaybeRefOrGetter<ItemData>) => {
|
|
45
|
-
itemElement:
|
|
45
|
+
itemElement: vue1.ShallowRef<HTMLElement | undefined, HTMLElement | undefined>;
|
|
46
46
|
onItemElementChange: (element: HTMLElement) => void;
|
|
47
47
|
setItemElement: (nodeRef: VNodeRef) => void;
|
|
48
48
|
itemProps: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Direction } from "../types/common.js";
|
|
2
2
|
import "../types/index.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue6 from "vue";
|
|
4
4
|
import { MaybeRefOrGetter } from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/composables/use-direction.d.ts
|
|
7
|
-
declare function useDirection(dir?: MaybeRefOrGetter<Direction | undefined>):
|
|
7
|
+
declare function useDirection(dir?: MaybeRefOrGetter<Direction | undefined>): vue6.ComputedRef<Direction>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { useDirection };
|
|
@@ -2,7 +2,7 @@ import { FocusOutsideEvent, PointerDownOutsideEvent } from "../types/event.js";
|
|
|
2
2
|
import { DismissableLayerEmits } from "../types/component.js";
|
|
3
3
|
import { EmitsToHookProps } from "../types/vue.js";
|
|
4
4
|
import "../types/index.js";
|
|
5
|
-
import * as
|
|
5
|
+
import * as vue7 from "vue";
|
|
6
6
|
import { CSSProperties, MaybeRefOrGetter, ShallowRef } from "vue";
|
|
7
7
|
|
|
8
8
|
//#region src/composables/use-dismissable-layer.d.ts
|
|
@@ -17,9 +17,9 @@ interface UseDismissableLayerOptions extends EmitsToHookProps<DismissableLayerEm
|
|
|
17
17
|
onDismiss?: () => void;
|
|
18
18
|
}
|
|
19
19
|
declare const layerContext: {
|
|
20
|
-
layers:
|
|
21
|
-
layersWithOutsidePointerEventsDisabled:
|
|
22
|
-
branches:
|
|
20
|
+
layers: vue7.ShallowReactive<Set<HTMLElement>>;
|
|
21
|
+
layersWithOutsidePointerEventsDisabled: vue7.ShallowReactive<Set<HTMLElement>>;
|
|
22
|
+
branches: vue7.ShallowReactive<Set<HTMLElement>>;
|
|
23
23
|
};
|
|
24
24
|
/**
|
|
25
25
|
* Composable for creating dismissable layers with outside interaction handling
|
|
@@ -29,8 +29,8 @@ declare const layerContext: {
|
|
|
29
29
|
* @returns Properties and handlers for the dismissable layer
|
|
30
30
|
*/
|
|
31
31
|
declare function useDismissableLayer(layerElementRef: ShallowRef<HTMLElement | undefined>, options?: UseDismissableLayerOptions): {
|
|
32
|
-
computedPointerEvents:
|
|
33
|
-
computedStyle:
|
|
32
|
+
computedPointerEvents: vue7.ComputedRef<"auto" | "none" | undefined>;
|
|
33
|
+
computedStyle: vue7.ComputedRef<CSSProperties>;
|
|
34
34
|
layerProps: {
|
|
35
35
|
"data-dismissable-layer": string;
|
|
36
36
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { VNodeRef } from "../types/vue.js";
|
|
2
2
|
import "../types/index.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue13 from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/composables/use-exposed-element.d.ts
|
|
6
6
|
/** Expose the element ref to the parent component. */
|
|
7
|
-
declare function useExposedElement(callback?: (el: HTMLElement) => void): readonly [
|
|
7
|
+
declare function useExposedElement(callback?: (el: HTMLElement) => void): readonly [vue13.ShallowRef<HTMLElement | undefined, HTMLElement | undefined>, (nodeRef: VNodeRef) => void];
|
|
8
8
|
//#endregion
|
|
9
9
|
export { useExposedElement };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VNodeRef } from "../types/vue.js";
|
|
2
2
|
import "../types/index.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue12 from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/composables/use-forward-element.d.ts
|
|
6
6
|
|
|
@@ -9,6 +9,6 @@ import * as vue11 from "vue";
|
|
|
9
9
|
*
|
|
10
10
|
* @returns An object containing the element reference and a function to set the element reference.
|
|
11
11
|
*/
|
|
12
|
-
declare function useForwardElement<T extends HTMLElement = HTMLElement>(callback?: (el: T) => void): readonly [
|
|
12
|
+
declare function useForwardElement<T extends HTMLElement = HTMLElement>(callback?: (el: T) => void): readonly [vue12.ShallowRef<T | undefined, T | undefined>, (nodeRef: VNodeRef) => void];
|
|
13
13
|
//#endregion
|
|
14
14
|
export { useForwardElement };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ImageLoadingStatus } from "../types/dom.js";
|
|
2
2
|
import "../types/index.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue14 from "vue";
|
|
4
4
|
import { ImgHTMLAttributes, MaybeRefOrGetter } from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/composables/use-image-loading-status.d.ts
|
|
@@ -15,6 +15,6 @@ interface ImageLoadingOptions {
|
|
|
15
15
|
* @param options - Additional image loading options
|
|
16
16
|
* @returns Reactive loading status
|
|
17
17
|
*/
|
|
18
|
-
declare function useImageLoadingStatus(options: ImageLoadingOptions):
|
|
18
|
+
declare function useImageLoadingStatus(options: ImageLoadingOptions): vue14.ShallowRef<ImageLoadingStatus, ImageLoadingStatus>;
|
|
19
19
|
//#endregion
|
|
20
20
|
export { useImageLoadingStatus };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as vue15 from "vue";
|
|
2
2
|
|
|
3
3
|
//#region src/composables/use-is-using-keyboard.d.ts
|
|
4
|
-
declare function useIsUsingKeyboard():
|
|
4
|
+
declare function useIsUsingKeyboard(): vue15.ComputedRef<boolean>;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { useIsUsingKeyboard };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { KbdKey } from "../types/common.js";
|
|
2
2
|
import "../types/index.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue17 from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/composables/use-kbd.d.ts
|
|
6
6
|
declare const kbdMap: Record<KbdKey, string>;
|
|
7
7
|
declare function useKbdKey(): {
|
|
8
|
-
macOS:
|
|
8
|
+
macOS: vue17.ComputedRef<"" | RegExpMatchArray | null>;
|
|
9
9
|
getKeyboardKey: (value?: KbdKey | (string & {})) => string | undefined;
|
|
10
10
|
};
|
|
11
11
|
declare const useKbd: typeof useKbdKey;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as vue16 from "vue";
|
|
2
2
|
import { MaybeRefOrGetter } from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/composables/use-locale.d.ts
|
|
5
|
-
declare function useLocale(locale?: MaybeRefOrGetter<string | undefined>):
|
|
5
|
+
declare function useLocale(locale?: MaybeRefOrGetter<string | undefined>): vue16.ComputedRef<string>;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { useLocale };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as vue18 from "vue";
|
|
2
2
|
import { MaybeRefOrGetter } from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/composables/use-nonce.d.ts
|
|
5
|
-
declare function useNonce(nonce?: MaybeRefOrGetter<string | undefined>):
|
|
5
|
+
declare function useNonce(nonce?: MaybeRefOrGetter<string | undefined>): vue18.ComputedRef<string | undefined>;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { useNonce };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as vue19 from "vue";
|
|
2
2
|
import { MaybeRefOrGetter, Ref } from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/composables/use-presence.d.ts
|
|
5
|
-
declare function usePresence(elRef: Ref<HTMLElement | null | undefined>, present: MaybeRefOrGetter<boolean | undefined>, onChange?: (value: boolean) => void):
|
|
5
|
+
declare function usePresence(elRef: Ref<HTMLElement | null | undefined>, present: MaybeRefOrGetter<boolean | undefined>, onChange?: (value: boolean) => void): vue19.ComputedRef<boolean>;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { usePresence };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as vue20 from "vue";
|
|
2
2
|
import { MaybeRefOrGetter } from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/composables/use-props.d.ts
|
|
5
|
-
declare function usePickProps<T extends object, K extends keyof T>(props: T, keys: K[], ...extraProps: MaybeRefOrGetter<object>[]):
|
|
6
|
-
declare function useOmitProps<T extends object, K extends keyof T>(props: T, keys: K[], ...extraProps: MaybeRefOrGetter<object>[]):
|
|
5
|
+
declare function usePickProps<T extends object, K extends keyof T>(props: T, keys: K[], ...extraProps: MaybeRefOrGetter<object>[]): vue20.ComputedRef<Pick<T, K>>;
|
|
6
|
+
declare function useOmitProps<T extends object, K extends keyof T>(props: T, keys: K[], ...extraProps: MaybeRefOrGetter<object>[]): vue20.ComputedRef<Omit<T, K>>;
|
|
7
7
|
//#endregion
|
|
8
8
|
export { useOmitProps, usePickProps };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { DefinedValue, SelectionProps } from "../types/common.js";
|
|
2
2
|
import "../types/index.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue22 from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/composables/use-selection.d.ts
|
|
6
6
|
declare function useSelection<M extends boolean = false, N extends DefinedValue = string>(props: SelectionProps<M, N>, onUpdateModelValue: (value: NonNullable<SelectionProps<M, N>['modelValue']>) => void): {
|
|
7
|
-
modelValue:
|
|
7
|
+
modelValue: vue22.ShallowRef<(M extends true ? N[] : N) | undefined>;
|
|
8
8
|
onModelValueChange: (value: N) => void;
|
|
9
|
-
isMultiple:
|
|
10
|
-
isEmptyModelValue:
|
|
9
|
+
isMultiple: vue22.ComputedRef<boolean>;
|
|
10
|
+
isEmptyModelValue: vue22.ComputedRef<boolean>;
|
|
11
11
|
};
|
|
12
12
|
//#endregion
|
|
13
13
|
export { useSelection };
|