@soybeanjs/headless 0.13.8 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/accordion/accordion-content.vue.d.ts +2 -2
- package/dist/components/accordion/accordion-header.vue.d.ts +2 -2
- package/dist/components/accordion/accordion-item.vue.d.ts +6 -6
- package/dist/components/accordion/accordion-root.vue.d.ts +3 -3
- package/dist/components/accordion/accordion-trigger.vue.d.ts +2 -2
- package/dist/components/accordion/context.d.ts +2 -2
- package/dist/components/alert/alert-close.vue.d.ts +2 -2
- package/dist/components/alert/alert-content.vue.d.ts +2 -2
- package/dist/components/alert/alert-description.vue.d.ts +2 -2
- package/dist/components/alert/alert-root.vue.d.ts +4 -4
- package/dist/components/alert/alert-title.vue.d.ts +2 -2
- package/dist/components/alert/context.d.ts +2 -2
- package/dist/components/alert-dialog/alert-dialog-close.vue.d.ts +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 +4 -4
- package/dist/components/arrow/arrow.vue.d.ts +2 -2
- package/dist/components/aspect-ratio/aspect-ratio.vue.d.ts +3 -3
- package/dist/components/avatar/avatar-fallback.vue.d.ts +2 -2
- package/dist/components/avatar/avatar-image.vue.d.ts +4 -4
- package/dist/components/avatar/avatar-root.vue.d.ts +2 -2
- package/dist/components/avatar/context.d.ts +2 -2
- package/dist/components/badge/badge-content.vue.d.ts +2 -2
- package/dist/components/badge/badge-root.vue.d.ts +4 -4
- package/dist/components/badge/context.d.ts +2 -2
- package/dist/components/breadcrumb/breadcrumb-ellipsis.vue.d.ts +2 -2
- package/dist/components/breadcrumb/breadcrumb-item.vue.d.ts +2 -2
- package/dist/components/breadcrumb/breadcrumb-link.vue.d.ts +2 -2
- package/dist/components/breadcrumb/breadcrumb-list.vue.d.ts +2 -2
- package/dist/components/breadcrumb/breadcrumb-page.vue.d.ts +2 -2
- package/dist/components/breadcrumb/breadcrumb-root.vue.d.ts +2 -2
- package/dist/components/breadcrumb/breadcrumb-separator.vue.d.ts +2 -2
- package/dist/components/breadcrumb/context.d.ts +2 -2
- package/dist/components/button/button.vue.d.ts +5 -5
- package/dist/components/card/card-collapsible-trigger.vue.d.ts +2 -2
- 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 +4 -4
- package/dist/components/card/card-title-root.vue.d.ts +2 -2
- package/dist/components/card/card-title.vue.d.ts +2 -2
- package/dist/components/card/context.d.ts +2 -2
- package/dist/components/checkbox/checkbox-control.vue.d.ts +2 -2
- package/dist/components/checkbox/checkbox-group-root.js +1 -1
- package/dist/components/checkbox/checkbox-group-root.vue.d.ts +3 -3
- package/dist/components/checkbox/checkbox-indicator.vue.d.ts +4 -4
- package/dist/components/checkbox/checkbox-label.vue.d.ts +2 -2
- package/dist/components/checkbox/checkbox-root.vue.d.ts +4 -4
- package/dist/components/checkbox/context.d.ts +2 -2
- package/dist/components/collapsible/collapsible-content.vue.d.ts +2 -2
- package/dist/components/collapsible/collapsible-root.vue.d.ts +7 -7
- package/dist/components/collapsible/collapsible-trigger.vue.d.ts +4 -4
- package/dist/components/collapsible/context.d.ts +2 -2
- package/dist/components/config-provider/config-provider.vue.d.ts +3 -3
- package/dist/components/context-menu/context-menu-content.vue.d.ts +6 -6
- package/dist/components/context-menu/context-menu-root.vue.d.ts +4 -4
- package/dist/components/context-menu/context-menu-trigger.vue.d.ts +4 -4
- package/dist/components/dialog/context.d.ts +2 -2
- package/dist/components/dialog/dialog-close.vue.d.ts +4 -4
- package/dist/components/dialog/dialog-content.vue.d.ts +4 -4
- package/dist/components/dialog/dialog-description.vue.d.ts +2 -2
- package/dist/components/dialog/dialog-footer.vue.d.ts +2 -2
- package/dist/components/dialog/dialog-header.vue.d.ts +2 -2
- package/dist/components/dialog/dialog-overlay.vue.d.ts +2 -2
- package/dist/components/dialog/dialog-root.vue.d.ts +4 -4
- package/dist/components/dialog/dialog-title.vue.d.ts +2 -2
- package/dist/components/dialog/dialog-trigger.vue.d.ts +2 -2
- package/dist/components/dropdown-menu/dropdown-menu-content.vue.d.ts +6 -6
- package/dist/components/dropdown-menu/dropdown-menu-root.vue.d.ts +4 -4
- package/dist/components/dropdown-menu/dropdown-menu-trigger.vue.d.ts +4 -4
- package/dist/components/form/context.d.ts +2 -2
- package/dist/components/form/form-control.vue.d.ts +2 -2
- package/dist/components/form/form-description.vue.d.ts +2 -2
- package/dist/components/form/form-error.vue.d.ts +2 -2
- package/dist/components/form/form-field.vue.d.ts +2 -2
- package/dist/components/form/form-label.vue.d.ts +2 -2
- package/dist/components/input/context.d.ts +2 -2
- package/dist/components/input/input-control.vue.d.ts +2 -2
- package/dist/components/input/input-root.vue.d.ts +4 -4
- package/dist/components/input-number/context.d.ts +2 -2
- package/dist/components/input-number/input-number-control.vue.d.ts +2 -2
- package/dist/components/input-number/input-number-decrement.vue.d.ts +4 -4
- package/dist/components/input-number/input-number-increment.vue.d.ts +4 -4
- package/dist/components/input-number/input-number-root.vue.d.ts +6 -6
- package/dist/components/kbd/kbd.vue.d.ts +2 -2
- package/dist/components/label/label.vue.d.ts +2 -2
- package/dist/components/layout/context.d.ts +2 -2
- package/dist/components/layout/layout-content.vue.d.ts +2 -2
- package/dist/components/layout/layout-footer.vue.d.ts +2 -2
- package/dist/components/layout/layout-header.vue.d.ts +2 -2
- package/dist/components/layout/layout-main.vue.d.ts +2 -2
- package/dist/components/layout/layout-mobile.vue.d.ts +2 -2
- package/dist/components/layout/layout-rail.vue.d.ts +2 -2
- package/dist/components/layout/layout-root.vue.d.ts +4 -4
- package/dist/components/layout/layout-sidebar.vue.d.ts +2 -2
- package/dist/components/layout/layout-tab.vue.d.ts +2 -2
- package/dist/components/layout/layout-trigger.vue.d.ts +2 -2
- package/dist/components/link/link.vue.d.ts +4 -4
- package/dist/components/list/context.d.ts +2 -2
- package/dist/components/list/list-content.vue.d.ts +2 -2
- package/dist/components/list/list-description.vue.d.ts +2 -2
- package/dist/components/list/list-item.vue.d.ts +2 -2
- package/dist/components/list/list-root.vue.d.ts +2 -2
- package/dist/components/list/list-title.vue.d.ts +2 -2
- package/dist/components/listbox/context.d.ts +2 -2
- package/dist/components/listbox/listbox-content.vue.d.ts +2 -2
- package/dist/components/listbox/listbox-filter.vue.d.ts +4 -4
- package/dist/components/listbox/listbox-group-label.vue.d.ts +2 -2
- package/dist/components/listbox/listbox-group.vue.d.ts +2 -2
- package/dist/components/listbox/listbox-item-indicator.vue.d.ts +4 -4
- package/dist/components/listbox/listbox-item.vue.d.ts +5 -5
- package/dist/components/listbox/listbox-root.vue.d.ts +5 -5
- package/dist/components/listbox/listbox-virtualizer.vue.d.ts +2 -2
- package/dist/components/menu/context.d.ts +2 -2
- package/dist/components/menu/menu-checkbox-group.vue.d.ts +3 -3
- package/dist/components/menu/menu-checkbox-item.js +1 -1
- package/dist/components/menu/menu-checkbox-item.vue.d.ts +6 -6
- package/dist/components/menu/menu-content.vue.d.ts +6 -6
- package/dist/components/menu/menu-group-label.vue.d.ts +2 -2
- package/dist/components/menu/menu-group.vue.d.ts +2 -2
- package/dist/components/menu/menu-item-impl.js +1 -1
- 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.js +1 -1
- package/dist/components/menu/menu-radio-item.vue.d.ts +6 -6
- package/dist/components/menu/menu-root.vue.d.ts +4 -4
- package/dist/components/menu/menu-sub-content.vue.d.ts +6 -6
- package/dist/components/menu/menu-sub-trigger.vue.d.ts +2 -2
- package/dist/components/menu/menu-sub.vue.d.ts +4 -4
- package/dist/components/menu/types.d.ts +2 -2
- package/dist/components/navigation-menu/context.d.ts +2 -2
- package/dist/components/navigation-menu/navigation-menu-content.vue.d.ts +4 -4
- package/dist/components/navigation-menu/navigation-menu-indicator.vue.d.ts +2 -2
- package/dist/components/navigation-menu/navigation-menu-item.vue.d.ts +2 -2
- package/dist/components/navigation-menu/navigation-menu-link.vue.d.ts +4 -4
- package/dist/components/navigation-menu/navigation-menu-list.vue.d.ts +2 -2
- package/dist/components/navigation-menu/navigation-menu-root.vue.d.ts +5 -5
- package/dist/components/navigation-menu/navigation-menu-sub-list.vue.d.ts +2 -2
- package/dist/components/navigation-menu/navigation-menu-trigger.vue.d.ts +4 -4
- package/dist/components/navigation-menu/navigation-menu-viewport.vue.d.ts +3 -3
- package/dist/components/page-tabs/context.d.ts +2 -2
- package/dist/components/page-tabs/page-tabs-close.vue.d.ts +2 -2
- package/dist/components/page-tabs/page-tabs-item.vue.d.ts +6 -6
- package/dist/components/page-tabs/page-tabs-pin.vue.d.ts +2 -2
- package/dist/components/page-tabs/page-tabs-root.vue.d.ts +4 -4
- package/dist/components/pagination/context.d.ts +2 -2
- package/dist/components/pagination/pagination-ellipsis.vue.d.ts +2 -2
- package/dist/components/pagination/pagination-first.vue.d.ts +2 -2
- package/dist/components/pagination/pagination-last.vue.d.ts +2 -2
- package/dist/components/pagination/pagination-list-item.vue.d.ts +2 -2
- package/dist/components/pagination/pagination-list.vue.d.ts +2 -2
- package/dist/components/pagination/pagination-next.vue.d.ts +2 -2
- package/dist/components/pagination/pagination-prev.vue.d.ts +2 -2
- package/dist/components/pagination/pagination-root.vue.d.ts +4 -4
- package/dist/components/popover/popover-anchor.vue.d.ts +2 -2
- package/dist/components/popover/popover-close.vue.d.ts +5 -5
- package/dist/components/popover/popover-popup.vue.d.ts +2 -2
- package/dist/components/popover/popover-positioner.vue.d.ts +4 -4
- package/dist/components/popover/popover-root.vue.d.ts +4 -4
- package/dist/components/popover/popover-trigger.vue.d.ts +4 -4
- package/dist/components/popper/context.d.ts +2 -2
- package/dist/components/popper/popper-anchor.vue.d.ts +2 -2
- package/dist/components/popper/popper-arrow.vue.d.ts +2 -2
- package/dist/components/popper/popper-popup.vue.d.ts +2 -2
- package/dist/components/popper/popper-positioner.vue.d.ts +52 -52
- package/dist/components/popper/popper-root.vue.d.ts +2 -2
- package/dist/components/portal/portal.vue.d.ts +3 -3
- package/dist/components/primitive/primitive.d.ts +2 -2
- package/dist/components/radio-group/context.d.ts +2 -2
- package/dist/components/radio-group/radio-group-control.vue.d.ts +2 -2
- package/dist/components/radio-group/radio-group-indicator.vue.d.ts +4 -4
- package/dist/components/radio-group/radio-group-item.vue.d.ts +4 -4
- package/dist/components/radio-group/radio-group-label.vue.d.ts +2 -2
- package/dist/components/radio-group/radio-group-root.vue.d.ts +3 -3
- package/dist/components/roving-focus/roving-focus-group.vue.d.ts +5 -5
- package/dist/components/roving-focus/roving-focus-item.vue.d.ts +3 -3
- package/dist/components/select/context.d.ts +2 -2
- package/dist/components/select/select-arrow.vue.d.ts +2 -2
- package/dist/components/select/select-content.vue.d.ts +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/context.d.ts +2 -2
- package/dist/components/separator/separator-label.vue.d.ts +2 -2
- package/dist/components/separator/separator-root.vue.d.ts +3 -3
- package/dist/components/slot/slot.d.ts +2 -2
- package/dist/components/switch/context.d.ts +2 -2
- package/dist/components/switch/switch-control.vue.d.ts +2 -2
- package/dist/components/switch/switch-root.vue.d.ts +3 -3
- package/dist/components/switch/switch-thumb.vue.d.ts +4 -4
- package/dist/components/table/context.d.ts +2 -2
- package/dist/components/table/table-body.vue.d.ts +2 -2
- package/dist/components/table/table-cell.vue.d.ts +2 -2
- package/dist/components/table/table-content.vue.d.ts +2 -2
- package/dist/components/table/table-footer.vue.d.ts +2 -2
- package/dist/components/table/table-head.vue.d.ts +2 -2
- package/dist/components/table/table-header.vue.d.ts +2 -2
- package/dist/components/table/table-root.vue.d.ts +2 -2
- package/dist/components/table/table-row.vue.d.ts +2 -2
- package/dist/components/tabs/context.d.ts +2 -2
- package/dist/components/tabs/tabs-content.vue.d.ts +2 -2
- package/dist/components/tabs/tabs-indicator.vue.d.ts +2 -2
- package/dist/components/tabs/tabs-list.vue.d.ts +2 -2
- package/dist/components/tabs/tabs-root.vue.d.ts +5 -5
- package/dist/components/tabs/tabs-trigger.vue.d.ts +4 -4
- package/dist/components/tag/tag.vue.d.ts +4 -4
- package/dist/components/textarea/context.d.ts +2 -2
- package/dist/components/textarea/textarea-control.vue.d.ts +2 -2
- package/dist/components/textarea/textarea-counter.vue.d.ts +2 -2
- package/dist/components/textarea/textarea-root.vue.d.ts +4 -4
- package/dist/components/toast/toast-action.vue.d.ts +4 -4
- package/dist/components/toast/toast-announce.js +1 -1
- 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-focus-proxy.js +1 -1
- package/dist/components/toast/toast-provider.vue.d.ts +3 -3
- package/dist/components/toast/toast-root.js +1 -1
- package/dist/components/toast/toast-root.vue.d.ts +9 -9
- package/dist/components/toast/toast-title.vue.d.ts +2 -2
- package/dist/components/toast/toast-viewport.vue.d.ts +4 -4
- package/dist/components/tooltip/tooltip-popup.vue.d.ts +2 -2
- package/dist/components/tooltip/tooltip-positioner-impl.js +1 -1
- package/dist/components/tooltip/tooltip-positioner.vue.d.ts +4 -4
- package/dist/components/tooltip/tooltip-root.js +1 -1
- 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/tooltip/types.d.ts +4 -0
- 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 +5 -5
- package/dist/components/tree-menu/context.d.ts +14 -14
- package/dist/components/tree-menu/tree-menu-button.vue.d.ts +4 -4
- package/dist/components/tree-menu/tree-menu-collapsible.vue.d.ts +2 -2
- package/dist/components/tree-menu/tree-menu-group-label.vue.d.ts +2 -2
- package/dist/components/tree-menu/tree-menu-group-root.vue.d.ts +2 -2
- package/dist/components/tree-menu/tree-menu-group.vue.d.ts +4 -4
- package/dist/components/tree-menu/tree-menu-item.vue.d.ts +4 -4
- package/dist/components/tree-menu/tree-menu-root.vue.d.ts +4 -4
- package/dist/components/tree-menu/tree-menu-sub.vue.d.ts +4 -4
- package/dist/components/virtualizer/virtualizer-content.vue.d.ts +2 -2
- package/dist/components/virtualizer/virtualizer-item.vue.d.ts +2 -2
- package/dist/components/virtualizer/virtualizer-root.vue.d.ts +5 -5
- package/dist/components/visually-hidden/visually-hidden-input.vue.d.ts +3 -3
- package/dist/components/visually-hidden/visually-hidden.vue.d.ts +4 -4
- package/dist/composables/use-collection.d.ts +6 -6
- package/dist/composables/use-dismissable-layer.d.ts +2 -2
- package/dist/composables/use-exposed-element.d.ts +2 -2
- package/dist/composables/use-forward-element.d.ts +2 -2
- package/dist/composables/use-hide-others.js +1 -1
- package/dist/composables/use-image-loading-status.d.ts +2 -2
- package/dist/composables/use-is-using-keyboard.d.ts +2 -2
- package/dist/composables/use-kbd.d.ts +2 -2
- package/dist/composables/use-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/composables/use-typeahead.d.ts +2 -2
- package/dist/nuxt/index.d.ts +2 -2
- package/dist/resolver/index.d.ts +2 -2
- package/package.json +6 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TagProps } from "./types.js";
|
|
2
|
-
import * as vue from "vue";
|
|
2
|
+
import * as _$vue 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: vue.DefineComponent<TagProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
12
|
+
declare const __VLS_base: _$vue.DefineComponent<TagProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
13
13
|
"update:open": (open: boolean) => any;
|
|
14
|
-
}, string, vue.PublicProps, Readonly<TagProps> & Readonly<{
|
|
14
|
+
}, string, _$vue.PublicProps, Readonly<TagProps> & Readonly<{
|
|
15
15
|
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
16
16
|
}>, {
|
|
17
17
|
open: boolean;
|
|
18
|
-
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
}, {}, {}, {}, string, _$vue.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 { ClassValue, UiClass } from "../../types/common.js";
|
|
2
2
|
import { TextareaUiSlot } from "./types.js";
|
|
3
|
-
import * as vue from "vue";
|
|
3
|
+
import * as _$vue from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/components/textarea/context.d.ts
|
|
6
|
-
declare const provideTextareaUi: (ui: vue.ComputedRef<Partial<UiClass<TextareaUiSlot>>>) => vue.ComputedRef<Partial<UiClass<TextareaUiSlot>>>, useTextareaUi: <S extends TextareaUiSlot | undefined = undefined>(slot?: S | undefined) => S extends TextareaUiSlot ? vue.ComputedRef<ClassValue> : vue.ComputedRef<Partial<UiClass<TextareaUiSlot>>>;
|
|
6
|
+
declare const provideTextareaUi: (ui: _$vue.ComputedRef<Partial<UiClass<TextareaUiSlot>>>) => _$vue.ComputedRef<Partial<UiClass<TextareaUiSlot>>>, useTextareaUi: <S extends TextareaUiSlot | undefined = undefined>(slot?: S | undefined) => S extends TextareaUiSlot ? _$vue.ComputedRef<ClassValue> : _$vue.ComputedRef<Partial<UiClass<TextareaUiSlot>>>;
|
|
7
7
|
//#endregion
|
|
8
8
|
export { provideTextareaUi };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { TextareaControlProps } from "./types.js";
|
|
2
|
-
import * as vue from "vue";
|
|
2
|
+
import * as _$vue from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/textarea/textarea-control.vue.d.ts
|
|
5
|
-
declare const __VLS_export: vue.DefineComponent<TextareaControlProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<TextareaControlProps> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
5
|
+
declare const __VLS_export: _$vue.DefineComponent<TextareaControlProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<TextareaControlProps> & Readonly<{}>, {}, {}, {}, {}, string, _$vue.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 vue from "vue";
|
|
2
|
+
import * as _$vue 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: vue.DefineComponent<TextareaCounterProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<TextareaCounterProps> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const __VLS_base: _$vue.DefineComponent<TextareaCounterProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<TextareaCounterProps> & Readonly<{}>, {}, {}, {}, {}, string, _$vue.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 vue from "vue";
|
|
2
|
+
import * as _$vue 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: vue.DefineComponent<TextareaRootProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
12
|
+
declare const __VLS_base: _$vue.DefineComponent<TextareaRootProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
13
13
|
"update:modelValue": (value: string) => any;
|
|
14
|
-
}, string, vue.PublicProps, Readonly<TextareaRootProps> & Readonly<{
|
|
14
|
+
}, string, _$vue.PublicProps, Readonly<TextareaRootProps> & Readonly<{
|
|
15
15
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
16
16
|
}>, {
|
|
17
17
|
modelValue: string;
|
|
18
|
-
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
}, {}, {}, {}, string, _$vue.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,15 +1,15 @@
|
|
|
1
1
|
import { AsTag } from "../primitive/types.js";
|
|
2
2
|
import { ToastActionProps } from "./types.js";
|
|
3
|
-
import * as vue from "vue";
|
|
3
|
+
import * as _$vue from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/components/toast/toast-action.vue.d.ts
|
|
6
6
|
declare var __VLS_10: {};
|
|
7
7
|
type __VLS_Slots = {} & {
|
|
8
8
|
default?: (props: typeof __VLS_10) => any;
|
|
9
9
|
};
|
|
10
|
-
declare const __VLS_base: vue.DefineComponent<ToastActionProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<ToastActionProps> & Readonly<{}>, {
|
|
11
|
-
as: AsTag | vue.Component;
|
|
12
|
-
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const __VLS_base: _$vue.DefineComponent<ToastActionProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<ToastActionProps> & Readonly<{}>, {
|
|
11
|
+
as: AsTag | _$vue.Component;
|
|
12
|
+
}, {}, {}, {}, string, _$vue.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 +1 @@
|
|
|
1
|
-
import e from"../visually-hidden/visually-hidden.js";import"../visually-hidden/index.js";import{useToastProviderContext as t}from"./context.js";import{createBlock as n,createCommentVNode as r,createTextVNode as i,defineComponent as a,openBlock as o,renderSlot as s,shallowRef as c,toDisplayString as l,unref as u,withCtx as d}from"vue";import{useRafFn as f}from"@vueuse/core";import{useTimeout as p}from"@vueuse/shared";const m=a({name:`ToastAnnounce`,__name:`toast-announce`,setup(a){let{label:m}=t(`ToastAnnounce`),h=p(1e3),g=c(!1);return f(()=>{g.value=!0}),(t,a)=>u(h)||g.value?(o(),n(u(e),{key:0},{default:d(()=>[i(l(u(m))+` `,1),s(t.$slots,`default`)]),_:3})):r(`v-if`,!0)}});export{m as default};
|
|
1
|
+
import e from"../visually-hidden/visually-hidden.js";import"../visually-hidden/index.js";import{useToastProviderContext as t}from"./context.js";import{createBlock as n,createCommentVNode as r,createTextVNode as i,defineComponent as a,openBlock as o,renderSlot as s,shallowRef as c,toDisplayString as l,unref as u,withCtx as d}from"vue";import{useRafFn as f}from"@vueuse/core";import{useTimeout as p}from"@vueuse/shared";const m=a({name:`ToastAnnounce`,__name:`toast-announce`,setup(a){let{label:m}=t(`ToastAnnounce`),h=p(1e3),g=c(!1);return f(()=>{g.value=!0}),(t,a)=>u(h)||g.value?(o(),n(u(e),{key:0,feature:`fully-hidden`},{default:d(()=>[i(l(u(m))+` `,1),s(t.$slots,`default`)]),_:3})):r(`v-if`,!0)}});export{m as default};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { AsTag } from "../primitive/types.js";
|
|
2
2
|
import { ToastCloseProps } from "./types.js";
|
|
3
|
-
import * as vue from "vue";
|
|
3
|
+
import * as _$vue from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/components/toast/toast-close.vue.d.ts
|
|
6
6
|
declare var __VLS_10: {};
|
|
7
7
|
type __VLS_Slots = {} & {
|
|
8
8
|
default?: (props: typeof __VLS_10) => any;
|
|
9
9
|
};
|
|
10
|
-
declare const __VLS_base: vue.DefineComponent<ToastCloseProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<ToastCloseProps> & Readonly<{}>, {
|
|
11
|
-
as: AsTag | vue.Component;
|
|
12
|
-
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const __VLS_base: _$vue.DefineComponent<ToastCloseProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<ToastCloseProps> & Readonly<{}>, {
|
|
11
|
+
as: AsTag | _$vue.Component;
|
|
12
|
+
}, {}, {}, {}, string, _$vue.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,12 +1,12 @@
|
|
|
1
1
|
import { ToastDescriptionProps } from "./types.js";
|
|
2
|
-
import * as vue from "vue";
|
|
2
|
+
import * as _$vue 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: vue.DefineComponent<ToastDescriptionProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<ToastDescriptionProps> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const __VLS_base: _$vue.DefineComponent<ToastDescriptionProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<ToastDescriptionProps> & Readonly<{}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
10
10
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
11
|
declare const _default: typeof __VLS_export;
|
|
12
12
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"../visually-hidden/visually-hidden.js";import"../visually-hidden/index.js";import{useToastProviderContext as t}from"./context.js";import{createBlock as n,defineComponent as r,openBlock as i,renderSlot as a,unref as o,withCtx as s}from"vue";const c=r({name:`ToastFocusProxy`,__name:`toast-focus-proxy`,emits:[`focusFromOutsideViewport`],setup(r,{emit:c}){let l=c,{viewportElement:u}=t(`ToastFocusProxy`),d=e=>{let t=e.relatedTarget;u.value?.contains(t)||l(`focusFromOutsideViewport`)};return(t,r)=>(i(),n(o(e),{
|
|
1
|
+
import e from"../visually-hidden/visually-hidden.js";import"../visually-hidden/index.js";import{useToastProviderContext as t}from"./context.js";import{createBlock as n,defineComponent as r,openBlock as i,renderSlot as a,unref as o,withCtx as s}from"vue";const c=r({name:`ToastFocusProxy`,__name:`toast-focus-proxy`,emits:[`focusFromOutsideViewport`],setup(r,{emit:c}){let l=c,{viewportElement:u}=t(`ToastFocusProxy`),d=e=>{let t=e.relatedTarget;u.value?.contains(t)||l(`focusFromOutsideViewport`)};return(t,r)=>(i(),n(o(e),{tabindex:`0`,style:{position:`fixed`},onFocus:d},{default:s(()=>[a(t.$slots,`default`)]),_:3}))}});export{c as default};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { SwipeDirection } from "../../types/common.js";
|
|
2
2
|
import { ToastProviderProps } from "./types.js";
|
|
3
|
-
import * as vue from "vue";
|
|
3
|
+
import * as _$vue from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/components/toast/toast-provider.vue.d.ts
|
|
6
6
|
declare var __VLS_1: {};
|
|
7
7
|
type __VLS_Slots = {} & {
|
|
8
8
|
default?: (props: typeof __VLS_1) => any;
|
|
9
9
|
};
|
|
10
|
-
declare const __VLS_base: vue.DefineComponent<ToastProviderProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<ToastProviderProps> & Readonly<{}>, {
|
|
10
|
+
declare const __VLS_base: _$vue.DefineComponent<ToastProviderProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<ToastProviderProps> & Readonly<{}>, {
|
|
11
11
|
label: string;
|
|
12
12
|
duration: number;
|
|
13
13
|
swipeDirection: SwipeDirection;
|
|
14
14
|
swipeThreshold: number;
|
|
15
|
-
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
16
16
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
17
17
|
declare const _default: typeof __VLS_export;
|
|
18
18
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{getDisclosureState as e}from"../../shared/value.js";import{getActiveElement as t}from"../../shared/dom.js";import{isClient as n}from"../../shared/env.js";import{handleAndDispatchCustomEvent as r}from"../../shared/event.js";import{isDeltaInDirection as i}from"../../shared/geometry.js";import"../../shared/index.js";import{useControllableState as a}from"../../composables/use-controllable-state.js";import{usePresence as o}from"../../composables/use-presence.js";import"../../composables/index.js";import{Primitive as s}from"../primitive/primitive.js";import"../primitive/index.js";import{provideToastRootContext as c,useCollectionItem as l,useToastProviderContext as u,useToastUi as d}from"./context.js";import f from"./toast-announce.js";import{TOAST_DATA_SWIPE as p,TOAST_SWIPE_CANCEL as m,TOAST_SWIPE_END as h,TOAST_SWIPE_MOVE as g,TOAST_SWIPE_START as ee,VIEWPORT_PAUSE as _,VIEWPORT_RESUME as v,getAnnounceTextContent as te,toastCssVars as y,toastSwipe as b}from"./shared.js";import{Fragment as ne,Teleport as re,computed as x,createBlock as S,createCommentVNode as C,createElementBlock as ie,createTextVNode as ae,createVNode as w,defineComponent as T,mergeProps as oe,onMounted as se,onUnmounted as ce,onWatcherCleanup as le,openBlock as E,renderSlot as ue,shallowRef as D,toDisplayString as de,unref as O,useAttrs as fe,watch as pe,watchEffect as me,withCtx as k,withModifiers as he}from"vue";import{onKeyStroke as ge,useRafFn as _e}from"@vueuse/core";const A=T({name:`ToastRoot`,inheritAttrs:!1,__name:`toast-root`,props:{liveType:{default:`foreground`},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:!0},duration:{},forceMount:{type:Boolean},asChild:{type:Boolean},as:{default:`li`}},emits:[`escapeKeyDown`,`pause`,`resume`,`swipeStart`,`swipeMove`,`swipeCancel`,`swipeEnd`,`update:open`],setup(T,{emit:A}){let j=T,M=A,N=fe(),P=d(`root`),{swipeDirection:F,swipeThreshold:I,disableSwipe:L,viewportElement:R,isFocusedToastEscapeKeyDownRef:ve,isClosePausedRef:z,duration:ye,onToastAdd:B,onToastRemove:be}=u(`ToastRoot`),{itemElement:V,setItemElement:xe,itemProps:Se}=l(),H=a(()=>j.open,e=>{M(`update:open`,e??!1)},j.defaultOpen),Ce=j.forceMount?D(!0):o(V,H),we=x(()=>L.value?``:`user-select: none; touch-action: none`),U=x(()=>typeof j.duration==`number`?j.duration:ye.value||5e3),Te=x(()=>e(H.value)),W=D(null),G=D(null),K=D(0),q=D(U.value),J=D(0),Y=D(U.value),X=_e(()=>{let e=new Date().getTime()-K.value;Y.value=Math.max(q.value-e,0)},{fpsLimit:60}),Z=x(()=>V.value?te(V.value):null),Q=e=>{let n=e?.pointerType===``;V.value?.contains(t())&&n&&R.value?.focus(),n&&(z.value=!1),H.value=!1},$=e=>{!e||e===1/0||n&&(window.clearTimeout(J.value),K.value=new Date().getTime(),J.value=window.setTimeout(Q,e))},Ee=e=>{M(`swipeStart`,e),!e.defaultPrevented&&e.currentTarget.setAttribute(p,b.start)},De=e=>{if(M(`swipeMove`,e),e.defaultPrevented)return;let{x:t,y:n}=e.detail.delta,r=e.currentTarget;r.setAttribute(p,b.move),r.style.setProperty(y.swipeMoveX,`${t}px`),r.style.setProperty(y.swipeMoveY,`${n}px`)},Oe=e=>{if(M(`swipeCancel`,e),e.defaultPrevented)return;let t=e.currentTarget;t.setAttribute(p,b.cancel),Object.values(y).forEach(e=>{t.style.removeProperty(e)})},ke=e=>{if(M(`swipeEnd`,e),e.defaultPrevented)return;let{x:t,y:n}=e.detail.delta,r=e.currentTarget;r.setAttribute(p,b.end),r.style.removeProperty(y.swipeMoveX),r.style.removeProperty(y.swipeMoveY),r.style.setProperty(y.swipeEndX,`${t}px`),r.style.setProperty(y.swipeEndY,`${n}px`),H.value=!1},Ae=e=>{if(L.value)return;let{clientX:t,clientY:n}=e;W.value={x:t,y:n}},je=e=>{if(L.value||!W.value)return;let{clientX:t,clientY:n}=e,{x:a,y:o}=W.value,s=t-a,c=n-o,l=[`left`,`right`].includes(F.value),u=[`left`,`up`].includes(F.value)?Math.min:Math.max,d=l?u(0,s):0,f=l?0:u(0,c),p=e.pointerType===`touch`?10:2,m={x:d,y:f},h={originalEvent:e,delta:m};if(G.value){G.value=m,r(g,De,h);return}if(i(m,F.value,p)){G.value=m,r(ee,Ee,h),e.target.setPointerCapture(e.pointerId);return}(Math.abs(s)>p||Math.abs(c)>p)&&(W.value=null)},Me=e=>{if(L.value)return;let t=G.value,n=e.target;if(n.hasPointerCapture(e.pointerId)&&n.releasePointerCapture(e.pointerId),G.value=null,W.value=null,!t)return;let a=e.currentTarget,o={originalEvent:e,delta:t};i(t,F.value,I.value)?r(h,ke,o):r(m,Oe,o),a?.addEventListener(`click`,e=>e.preventDefault(),{once:!0})};return ge(`Escape`,e=>{M(`escapeKeyDown`,e),e.defaultPrevented||(ve.value=!0,Q())}),me(()=>{let e=R.value;if(!e)return;let t=()=>{$(q.value),X.resume(),M(`resume`)},n=()=>{let e=new Date().getTime()-K.value;q.value-=e,window.clearTimeout(J.value),X.pause(),M(`pause`)};e.addEventListener(_,n),e.addEventListener(v,t),le(()=>{e.removeEventListener(_,n),e.removeEventListener(v,t)})}),pe(()=>[j.open,U.value],()=>{q.value=U.value,j.open&&!z.value&&$(U.value)},{immediate:!0}),c({onClose:Q}),se(()=>{B()}),ce(()=>{be()}),(e,t)=>O(Ce)?(E(),ie(ne,{key:0},[Z.value?(E(),S(f,{key:0,role:`alert`,"aria-live":T.liveType===`foreground`?`assertive`:`polite
|
|
1
|
+
import{getDisclosureState as e}from"../../shared/value.js";import{getActiveElement as t}from"../../shared/dom.js";import{isClient as n}from"../../shared/env.js";import{handleAndDispatchCustomEvent as r}from"../../shared/event.js";import{isDeltaInDirection as i}from"../../shared/geometry.js";import"../../shared/index.js";import{useControllableState as a}from"../../composables/use-controllable-state.js";import{usePresence as o}from"../../composables/use-presence.js";import"../../composables/index.js";import{Primitive as s}from"../primitive/primitive.js";import"../primitive/index.js";import{provideToastRootContext as c,useCollectionItem as l,useToastProviderContext as u,useToastUi as d}from"./context.js";import f from"./toast-announce.js";import{TOAST_DATA_SWIPE as p,TOAST_SWIPE_CANCEL as m,TOAST_SWIPE_END as h,TOAST_SWIPE_MOVE as g,TOAST_SWIPE_START as ee,VIEWPORT_PAUSE as _,VIEWPORT_RESUME as v,getAnnounceTextContent as te,toastCssVars as y,toastSwipe as b}from"./shared.js";import{Fragment as ne,Teleport as re,computed as x,createBlock as S,createCommentVNode as C,createElementBlock as ie,createTextVNode as ae,createVNode as w,defineComponent as T,mergeProps as oe,onMounted as se,onUnmounted as ce,onWatcherCleanup as le,openBlock as E,renderSlot as ue,shallowRef as D,toDisplayString as de,unref as O,useAttrs as fe,watch as pe,watchEffect as me,withCtx as k,withModifiers as he}from"vue";import{onKeyStroke as ge,useRafFn as _e}from"@vueuse/core";const A=T({name:`ToastRoot`,inheritAttrs:!1,__name:`toast-root`,props:{liveType:{default:`foreground`},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:!0},duration:{},forceMount:{type:Boolean},asChild:{type:Boolean},as:{default:`li`}},emits:[`escapeKeyDown`,`pause`,`resume`,`swipeStart`,`swipeMove`,`swipeCancel`,`swipeEnd`,`update:open`],setup(T,{emit:A}){let j=T,M=A,N=fe(),P=d(`root`),{swipeDirection:F,swipeThreshold:I,disableSwipe:L,viewportElement:R,isFocusedToastEscapeKeyDownRef:ve,isClosePausedRef:z,duration:ye,onToastAdd:B,onToastRemove:be}=u(`ToastRoot`),{itemElement:V,setItemElement:xe,itemProps:Se}=l(),H=a(()=>j.open,e=>{M(`update:open`,e??!1)},j.defaultOpen),Ce=j.forceMount?D(!0):o(V,H),we=x(()=>L.value?``:`user-select: none; touch-action: none`),U=x(()=>typeof j.duration==`number`?j.duration:ye.value||5e3),Te=x(()=>e(H.value)),W=D(null),G=D(null),K=D(0),q=D(U.value),J=D(0),Y=D(U.value),X=_e(()=>{let e=new Date().getTime()-K.value;Y.value=Math.max(q.value-e,0)},{fpsLimit:60}),Z=x(()=>V.value?te(V.value):null),Q=e=>{let n=e?.pointerType===``;V.value?.contains(t())&&n&&R.value?.focus(),n&&(z.value=!1),H.value=!1},$=e=>{!e||e===1/0||n&&(window.clearTimeout(J.value),K.value=new Date().getTime(),J.value=window.setTimeout(Q,e))},Ee=e=>{M(`swipeStart`,e),!e.defaultPrevented&&e.currentTarget.setAttribute(p,b.start)},De=e=>{if(M(`swipeMove`,e),e.defaultPrevented)return;let{x:t,y:n}=e.detail.delta,r=e.currentTarget;r.setAttribute(p,b.move),r.style.setProperty(y.swipeMoveX,`${t}px`),r.style.setProperty(y.swipeMoveY,`${n}px`)},Oe=e=>{if(M(`swipeCancel`,e),e.defaultPrevented)return;let t=e.currentTarget;t.setAttribute(p,b.cancel),Object.values(y).forEach(e=>{t.style.removeProperty(e)})},ke=e=>{if(M(`swipeEnd`,e),e.defaultPrevented)return;let{x:t,y:n}=e.detail.delta,r=e.currentTarget;r.setAttribute(p,b.end),r.style.removeProperty(y.swipeMoveX),r.style.removeProperty(y.swipeMoveY),r.style.setProperty(y.swipeEndX,`${t}px`),r.style.setProperty(y.swipeEndY,`${n}px`),H.value=!1},Ae=e=>{if(L.value)return;let{clientX:t,clientY:n}=e;W.value={x:t,y:n}},je=e=>{if(L.value||!W.value)return;let{clientX:t,clientY:n}=e,{x:a,y:o}=W.value,s=t-a,c=n-o,l=[`left`,`right`].includes(F.value),u=[`left`,`up`].includes(F.value)?Math.min:Math.max,d=l?u(0,s):0,f=l?0:u(0,c),p=e.pointerType===`touch`?10:2,m={x:d,y:f},h={originalEvent:e,delta:m};if(G.value){G.value=m,r(g,De,h);return}if(i(m,F.value,p)){G.value=m,r(ee,Ee,h),e.target.setPointerCapture(e.pointerId);return}(Math.abs(s)>p||Math.abs(c)>p)&&(W.value=null)},Me=e=>{if(L.value)return;let t=G.value,n=e.target;if(n.hasPointerCapture(e.pointerId)&&n.releasePointerCapture(e.pointerId),G.value=null,W.value=null,!t)return;let a=e.currentTarget,o={originalEvent:e,delta:t};i(t,F.value,I.value)?r(h,ke,o):r(m,Oe,o),a?.addEventListener(`click`,e=>e.preventDefault(),{once:!0})};return ge(`Escape`,e=>{M(`escapeKeyDown`,e),e.defaultPrevented||(ve.value=!0,Q())}),me(()=>{let e=R.value;if(!e)return;let t=()=>{$(q.value),X.resume(),M(`resume`)},n=()=>{let e=new Date().getTime()-K.value;q.value-=e,window.clearTimeout(J.value),X.pause(),M(`pause`)};e.addEventListener(_,n),e.addEventListener(v,t),le(()=>{e.removeEventListener(_,n),e.removeEventListener(v,t)})}),pe(()=>[j.open,U.value],()=>{q.value=U.value,j.open&&!z.value&&$(U.value)},{immediate:!0}),c({onClose:Q}),se(()=>{B()}),ce(()=>{be()}),(e,t)=>O(Ce)?(E(),ie(ne,{key:0},[Z.value?(E(),S(f,{key:0,role:`alert`,"aria-live":T.liveType===`foreground`?`assertive`:`polite`},{default:k(()=>[ae(de(Z.value),1)]),_:1},8,[`aria-live`])):C(`v-if`,!0),O(R)?(E(),S(re,{key:1,to:O(R)},[w(O(s),oe({ref:O(xe)},{...O(N),...O(Se)},{as:T.as,"as-child":T.asChild,class:O(P),"data-swipe-direction":O(F),"data-state":Te.value,tabindex:`0`,style:we.value,onPointerdown:he(Ae,[`left`]),onPointermove:je,onPointerup:Me}),{default:k(()=>[ue(e.$slots,`default`,{remaining:Y.value,duration:U.value})]),_:3},16,[`as`,`as-child`,`class`,`data-swipe-direction`,`data-state`,`style`])],8,[`to`])):C(`v-if`,!0)],64)):C(`v-if`,!0)}});export{A as default};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SwipeEvent } from "../../types/event.js";
|
|
2
2
|
import { AsTag } from "../primitive/types.js";
|
|
3
3
|
import { ToastLiveType, ToastRootProps } from "./types.js";
|
|
4
|
-
import * as vue from "vue";
|
|
4
|
+
import * as _$vue from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/components/toast/toast-root.vue.d.ts
|
|
7
7
|
declare var __VLS_23: {
|
|
@@ -11,30 +11,30 @@ declare var __VLS_23: {
|
|
|
11
11
|
type __VLS_Slots = {} & {
|
|
12
12
|
default?: (props: typeof __VLS_23) => any;
|
|
13
13
|
};
|
|
14
|
-
declare const __VLS_base: vue.DefineComponent<ToastRootProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
15
|
-
pause: () => any;
|
|
16
|
-
"update:open": (value: boolean) => any;
|
|
14
|
+
declare const __VLS_base: _$vue.DefineComponent<ToastRootProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
17
15
|
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
16
|
+
pause: () => any;
|
|
18
17
|
resume: () => any;
|
|
19
18
|
swipeStart: (event: SwipeEvent) => any;
|
|
20
19
|
swipeMove: (event: SwipeEvent) => any;
|
|
21
20
|
swipeCancel: (event: SwipeEvent) => any;
|
|
22
21
|
swipeEnd: (event: SwipeEvent) => any;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
22
|
+
"update:open": (value: boolean) => any;
|
|
23
|
+
}, string, _$vue.PublicProps, Readonly<ToastRootProps> & Readonly<{
|
|
26
24
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
25
|
+
onPause?: (() => any) | undefined;
|
|
27
26
|
onResume?: (() => any) | undefined;
|
|
28
27
|
onSwipeStart?: ((event: SwipeEvent) => any) | undefined;
|
|
29
28
|
onSwipeMove?: ((event: SwipeEvent) => any) | undefined;
|
|
30
29
|
onSwipeCancel?: ((event: SwipeEvent) => any) | undefined;
|
|
31
30
|
onSwipeEnd?: ((event: SwipeEvent) => any) | undefined;
|
|
31
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
32
32
|
}>, {
|
|
33
33
|
open: boolean;
|
|
34
|
-
as: AsTag | vue.Component;
|
|
34
|
+
as: AsTag | _$vue.Component;
|
|
35
35
|
liveType: ToastLiveType;
|
|
36
36
|
defaultOpen: boolean;
|
|
37
|
-
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
37
|
+
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
38
38
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
39
39
|
declare const _default: typeof __VLS_export;
|
|
40
40
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ToastTitleProps } from "./types.js";
|
|
2
|
-
import * as vue from "vue";
|
|
2
|
+
import * as _$vue 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: vue.DefineComponent<ToastTitleProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<ToastTitleProps> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const __VLS_base: _$vue.DefineComponent<ToastTitleProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<ToastTitleProps> & Readonly<{}>, {}, {}, {}, {}, string, _$vue.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,17 +1,17 @@
|
|
|
1
1
|
import { AsTag } from "../primitive/types.js";
|
|
2
2
|
import { ToastViewportProps } from "./types.js";
|
|
3
|
-
import * as vue from "vue";
|
|
3
|
+
import * as _$vue from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/components/toast/toast-viewport.vue.d.ts
|
|
6
6
|
declare var __VLS_14: {};
|
|
7
7
|
type __VLS_Slots = {} & {
|
|
8
8
|
default?: (props: typeof __VLS_14) => any;
|
|
9
9
|
};
|
|
10
|
-
declare const __VLS_base: vue.DefineComponent<ToastViewportProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<ToastViewportProps> & Readonly<{}>, {
|
|
10
|
+
declare const __VLS_base: _$vue.DefineComponent<ToastViewportProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<ToastViewportProps> & Readonly<{}>, {
|
|
11
11
|
label: string | ((hotkey: string) => string);
|
|
12
|
-
as: AsTag | vue.Component;
|
|
13
12
|
hotkey: string[];
|
|
14
|
-
|
|
13
|
+
as: AsTag | _$vue.Component;
|
|
14
|
+
}, {}, {}, {}, string, _$vue.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,12 +1,12 @@
|
|
|
1
1
|
import { TooltipPopupProps } from "./types.js";
|
|
2
|
-
import * as vue from "vue";
|
|
2
|
+
import * as _$vue from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/tooltip/tooltip-popup.vue.d.ts
|
|
5
5
|
declare var __VLS_8: {};
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
7
|
default?: (props: typeof __VLS_8) => any;
|
|
8
8
|
};
|
|
9
|
-
declare const __VLS_base: vue.DefineComponent<TooltipPopupProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<TooltipPopupProps> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const __VLS_base: _$vue.DefineComponent<TooltipPopupProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<TooltipPopupProps> & Readonly<{}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
10
10
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
11
|
declare const _default: typeof __VLS_export;
|
|
12
12
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useDismissableLayer as e}from"../../composables/use-dismissable-layer.js";import{useForwardElement as t}from"../../composables/use-forward-element.js";import{useGraceArea as n}from"../../composables/use-grace-area.js";import"../../composables/index.js";import r from"../popper/popper-positioner.js";import"../popper/index.js";import{useTooltipOpenDelayedContext as i,useTooltipRootContext as a}from"./context.js";import{TOOLTIP_OPEN as o}from"./shared.js";import{
|
|
1
|
+
import{useDismissableLayer as e}from"../../composables/use-dismissable-layer.js";import{useForwardElement as t}from"../../composables/use-forward-element.js";import{useGraceArea as n}from"../../composables/use-grace-area.js";import"../../composables/index.js";import r from"../popper/popper-positioner.js";import"../popper/index.js";import{useTooltipOpenDelayedContext as i,useTooltipRootContext as a}from"./context.js";import{TOOLTIP_OPEN as o}from"./shared.js";import{computed as s,createBlock as c,defineComponent as l,mergeProps as u,onWatcherCleanup as d,openBlock as f,renderSlot as p,unref as m,watchPostEffect as h,withCtx as g}from"vue";import{defu as _}from"defu";const v=l({name:`TooltipPositionerImpl`,__name:`tooltip-positioner-impl`,props:{placement:{},side:{},sideOffset:{},sideFlip:{type:Boolean},align:{},alignOffset:{},alignFlip:{type:Boolean},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},hideShiftedArrow:{type:Boolean},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean},reference:{}},emits:[`escapeKeyDown`,`pointerDownOutside`],setup(l,{emit:v}){let y=l,b=v,{isPointerInTransitRef:x}=i(`TooltipPositionerImpl`),{positionerProps:S,triggerElement:C,popupElement:w,disableClosingTrigger:T,disableHoverableContent:E,onClose:D}=a(`TooltipPositionerImpl`),[O,k]=t();n({triggerElement:C,areaElement:O,onPointerInTransitChange:e=>{x.value=e},onPointerExit:()=>{D()},disabled:E});let{pointerEvents:A}=e(O,{disableOutsidePointerEvents:!1,onEscapeKeyDown:e=>{b(`escapeKeyDown`,e)},onPointerDownOutside:e=>{T.value&&C.value?.contains(e.target)&&e.preventDefault(),b(`pointerDownOutside`,e)},onFocusOutside:e=>{e.preventDefault()},onDismiss:()=>{D()}}),j=s(()=>_(y,S.value??{},{side:`top`,sideOffset:0,align:`center`,avoidCollisions:!0,collisionBoundary:[],collisionPadding:0,arrowPadding:0,sticky:`partial`,hideWhenDetached:!1}));return h(()=>{let e=e=>{e.target?.contains(C.value)&&D()};window.addEventListener(`scroll`,e),window.addEventListener(o,D),d(()=>{window.removeEventListener(`scroll`,e),window.removeEventListener(o,D)})}),h(()=>{w.value&&A.value&&(w.value.style.pointerEvents=A.value)}),(e,t)=>(f(),c(m(r),u(j.value,{ref:m(k)}),{default:g(()=>[p(e.$slots,`default`)]),_:3},16))}});export{v as default};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { PointerDownOutsideEvent } from "../../types/event.js";
|
|
2
2
|
import { TooltipPositionerProps } from "./types.js";
|
|
3
|
-
import * as vue from "vue";
|
|
3
|
+
import * as _$vue from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/components/tooltip/tooltip-positioner.vue.d.ts
|
|
6
6
|
declare var __VLS_8: {};
|
|
7
7
|
type __VLS_Slots = {} & {
|
|
8
8
|
default?: (props: typeof __VLS_8) => any;
|
|
9
9
|
};
|
|
10
|
-
declare const __VLS_base: vue.DefineComponent<TooltipPositionerProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
10
|
+
declare const __VLS_base: _$vue.DefineComponent<TooltipPositionerProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
11
11
|
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
12
12
|
pointerDownOutside: (event: PointerDownOutsideEvent) => any;
|
|
13
|
-
}, string, vue.PublicProps, Readonly<TooltipPositionerProps> & Readonly<{
|
|
13
|
+
}, string, _$vue.PublicProps, Readonly<TooltipPositionerProps> & Readonly<{
|
|
14
14
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
15
15
|
onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
16
16
|
}>, {
|
|
17
17
|
avoidCollisions: boolean;
|
|
18
|
-
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
19
19
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
20
20
|
declare const _default: typeof __VLS_export;
|
|
21
21
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useControllableState as e}from"../../composables/use-controllable-state.js";import"../../composables/index.js";import{useConfigProvider as t}from"../config-provider/context.js";import n from"../popper/popper-root.js";import"../popper/index.js";import{provideTooltipOpenDelayedContext as r,provideTooltipRootContext as i}from"./context.js";import{TOOLTIP_OPEN as a,createDefaultTooltipConfig as o}from"./shared.js";import{computed as s,createBlock as c,defineComponent as l,openBlock as u,renderSlot as d,unref as f,watch as p,withCtx as m}from"vue";const h=l({name:`TooltipRoot`,inheritAttrs:!1,__name:`tooltip-root`,props:{defaultOpen:{type:Boolean,default:!1},open:{type:Boolean,default:void 0},delayDuration:{},skipDelayDuration:{},disableHoverableContent:{type:Boolean},disableClosingTrigger:{type:Boolean},disabled:{type:Boolean},ignoreNonKeyboardFocus:{type:Boolean}},emits:[`update:open`],setup(l,{emit:h}){let g=l,_=h,v=e(()=>g.open,e=>{_(`update:open`,e??!1)},g.defaultOpen),y=t(),b=s(()=>o(y?.tooltip?.value)),x=r({skipDelayDuration:s(()=>b.value.skipDelayDuration)});return i({open:v,delayDuration:s(()=>g.delayDuration??b.value.delayDuration),disableHoverableContent:s(()=>g.disableHoverableContent??b.value.disableHoverableContent),disableClosingTrigger:s(()=>g.disableClosingTrigger??b.value.disableClosingTrigger),disabled:s(()=>g.disabled??b.value.disabled),ignoreNonKeyboardFocus:s(()=>g.ignoreNonKeyboardFocus??b.value.ignoreNonKeyboardFocus),isOpenDelayed:x.isOpenDelayed}),p(v,e=>{x.onClose&&(e?(x.onOpen(),document.dispatchEvent(new CustomEvent(a))):x.onClose())}),(e,t)=>(u(),c(f(n),null,{default:m(()=>[d(e.$slots,`default`,{open:f(v)})]),_:3}))}});export{h as default};
|
|
1
|
+
import{useControllableState as e}from"../../composables/use-controllable-state.js";import"../../composables/index.js";import{useConfigProvider as t}from"../config-provider/context.js";import n from"../popper/popper-root.js";import"../popper/index.js";import{provideTooltipOpenDelayedContext as r,provideTooltipRootContext as i}from"./context.js";import{TOOLTIP_OPEN as a,createDefaultTooltipConfig as o}from"./shared.js";import{computed as s,createBlock as c,defineComponent as l,openBlock as u,renderSlot as d,unref as f,watch as p,withCtx as m}from"vue";const h=l({name:`TooltipRoot`,inheritAttrs:!1,__name:`tooltip-root`,props:{defaultOpen:{type:Boolean,default:!1},open:{type:Boolean,default:void 0},delayDuration:{},skipDelayDuration:{},disableHoverableContent:{type:Boolean},disableClosingTrigger:{type:Boolean},disabled:{type:Boolean},ignoreNonKeyboardFocus:{type:Boolean},positionerProps:{}},emits:[`update:open`],setup(l,{emit:h}){let g=l,_=h,v=e(()=>g.open,e=>{_(`update:open`,e??!1)},g.defaultOpen),y=t(),b=s(()=>o(y?.tooltip?.value)),x=r({skipDelayDuration:s(()=>b.value.skipDelayDuration)});return i({open:v,delayDuration:s(()=>g.delayDuration??b.value.delayDuration),disableHoverableContent:s(()=>g.disableHoverableContent??b.value.disableHoverableContent),disableClosingTrigger:s(()=>g.disableClosingTrigger??b.value.disableClosingTrigger),disabled:s(()=>g.disabled??b.value.disabled),ignoreNonKeyboardFocus:s(()=>g.ignoreNonKeyboardFocus??b.value.ignoreNonKeyboardFocus),isOpenDelayed:x.isOpenDelayed,positionerProps:s(()=>b.value.positionerProps)}),p(v,e=>{x.onClose&&(e?(x.onOpen(),document.dispatchEvent(new CustomEvent(a))):x.onClose())}),(e,t)=>(u(),c(f(n),null,{default:m(()=>[d(e.$slots,`default`,{open:f(v)})]),_:3}))}});export{h as default};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TooltipRootProps } from "./types.js";
|
|
2
|
-
import * as vue from "vue";
|
|
2
|
+
import * as _$vue from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/tooltip/tooltip-root.vue.d.ts
|
|
5
5
|
declare var __VLS_8: {
|
|
@@ -8,14 +8,14 @@ declare var __VLS_8: {
|
|
|
8
8
|
type __VLS_Slots = {} & {
|
|
9
9
|
default?: (props: typeof __VLS_8) => any;
|
|
10
10
|
};
|
|
11
|
-
declare const __VLS_base: vue.DefineComponent<TooltipRootProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
11
|
+
declare const __VLS_base: _$vue.DefineComponent<TooltipRootProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
12
12
|
"update:open": (value: boolean) => any;
|
|
13
|
-
}, string, vue.PublicProps, Readonly<TooltipRootProps> & Readonly<{
|
|
13
|
+
}, string, _$vue.PublicProps, Readonly<TooltipRootProps> & Readonly<{
|
|
14
14
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
15
15
|
}>, {
|
|
16
16
|
open: boolean;
|
|
17
17
|
defaultOpen: boolean;
|
|
18
|
-
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
}, {}, {}, {}, string, _$vue.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,15 +1,15 @@
|
|
|
1
1
|
import { AsTag } from "../primitive/types.js";
|
|
2
2
|
import { PopperAnchorProps } from "../popper/types.js";
|
|
3
|
-
import * as vue from "vue";
|
|
3
|
+
import * as _$vue from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/components/tooltip/tooltip-trigger.vue.d.ts
|
|
6
6
|
declare var __VLS_8: {};
|
|
7
7
|
type __VLS_Slots = {} & {
|
|
8
8
|
default?: (props: typeof __VLS_8) => any;
|
|
9
9
|
};
|
|
10
|
-
declare const __VLS_base: vue.DefineComponent<PopperAnchorProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<PopperAnchorProps> & Readonly<{}>, {
|
|
11
|
-
as: AsTag | vue.Component;
|
|
12
|
-
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const __VLS_base: _$vue.DefineComponent<PopperAnchorProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<PopperAnchorProps> & Readonly<{}>, {
|
|
11
|
+
as: AsTag | _$vue.Component;
|
|
12
|
+
}, {}, {}, {}, string, _$vue.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 & {
|
|
@@ -42,6 +42,10 @@ interface TooltipProviderProps {
|
|
|
42
42
|
* @defaultValue false
|
|
43
43
|
*/
|
|
44
44
|
ignoreNonKeyboardFocus?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Props to be passed down to the positioner. Useful when you need to control the positioner, such as disabling it when the trigger is disabled.
|
|
47
|
+
*/
|
|
48
|
+
positionerProps?: TooltipPositionerProps;
|
|
45
49
|
}
|
|
46
50
|
interface TooltipRootProps extends TooltipProviderProps {
|
|
47
51
|
/** The open state of the tooltip when it is initially rendered. Use when you do not need to control its open state. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TreeSelectEvent, TreeToggleEvent } from "../../types/event.js";
|
|
2
2
|
import { AsTag } from "../primitive/types.js";
|
|
3
3
|
import { TreeItemProps } from "./types.js";
|
|
4
|
-
import * as vue from "vue";
|
|
4
|
+
import * as _$vue from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/components/tree/tree-item.vue.d.ts
|
|
7
7
|
declare var __VLS_19: {
|
|
@@ -13,15 +13,15 @@ declare var __VLS_19: {
|
|
|
13
13
|
type __VLS_Slots = {} & {
|
|
14
14
|
default?: (props: typeof __VLS_19) => any;
|
|
15
15
|
};
|
|
16
|
-
declare const __VLS_base: vue.DefineComponent<TreeItemProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
16
|
+
declare const __VLS_base: _$vue.DefineComponent<TreeItemProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
17
17
|
select: (event: TreeSelectEvent<string>) => any;
|
|
18
18
|
toggle: (event: TreeToggleEvent<string>) => any;
|
|
19
|
-
}, string, vue.PublicProps, Readonly<TreeItemProps> & Readonly<{
|
|
19
|
+
}, string, _$vue.PublicProps, Readonly<TreeItemProps> & Readonly<{
|
|
20
20
|
onSelect?: ((event: TreeSelectEvent<string>) => any) | undefined;
|
|
21
21
|
onToggle?: ((event: TreeToggleEvent<string>) => any) | undefined;
|
|
22
22
|
}>, {
|
|
23
|
-
as: AsTag | vue.Component;
|
|
24
|
-
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
as: AsTag | _$vue.Component;
|
|
24
|
+
}, {}, {}, {}, string, _$vue.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,10 +1,10 @@
|
|
|
1
1
|
import { MaybeArray } from "../../types/common.js";
|
|
2
2
|
import { FlattenedItem, TreeItemData, TreeRootProps } from "./types.js";
|
|
3
|
-
import * as vue from "vue";
|
|
3
|
+
import * as _$vue from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/components/tree/tree-root.vue.d.ts
|
|
6
6
|
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<{
|
|
7
|
-
props: vue.PublicProps & __VLS_PrettifyLocal<TreeRootProps<T, U, M> & {
|
|
7
|
+
props: _$vue.PublicProps & __VLS_PrettifyLocal<TreeRootProps<T, U, M> & {
|
|
8
8
|
"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;
|
|
9
9
|
"onUpdate:expanded"?: ((value: string[]) => any) | undefined;
|
|
10
10
|
}> & (typeof globalThis extends {
|
|
@@ -22,7 +22,7 @@ declare const __VLS_export: <T extends TreeItemData, U extends MaybeArray<string
|
|
|
22
22
|
}) => any;
|
|
23
23
|
};
|
|
24
24
|
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);
|
|
25
|
-
}>) => vue.VNode & {
|
|
25
|
+
}>) => _$vue.VNode & {
|
|
26
26
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
27
27
|
};
|
|
28
28
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TreeSelectEvent, TreeToggleEvent } from "../../types/event.js";
|
|
2
2
|
import { TreeVirtualizerItemProps } from "./types.js";
|
|
3
|
-
import * as vue from "vue";
|
|
3
|
+
import * as _$vue from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/components/tree/tree-virtualizer-item.vue.d.ts
|
|
6
6
|
declare var __VLS_14: {
|
|
@@ -12,13 +12,13 @@ declare var __VLS_14: {
|
|
|
12
12
|
type __VLS_Slots = {} & {
|
|
13
13
|
default?: (props: typeof __VLS_14) => any;
|
|
14
14
|
};
|
|
15
|
-
declare const __VLS_base: vue.DefineComponent<TreeVirtualizerItemProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
15
|
+
declare const __VLS_base: _$vue.DefineComponent<TreeVirtualizerItemProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
16
16
|
select: (event: TreeSelectEvent<string>) => any;
|
|
17
17
|
toggle: (event: TreeToggleEvent<string>) => any;
|
|
18
|
-
}, string, vue.PublicProps, Readonly<TreeVirtualizerItemProps> & Readonly<{
|
|
18
|
+
}, string, _$vue.PublicProps, Readonly<TreeVirtualizerItemProps> & Readonly<{
|
|
19
19
|
onSelect?: ((event: TreeSelectEvent<string>) => any) | undefined;
|
|
20
20
|
onToggle?: ((event: TreeToggleEvent<string>) => any) | undefined;
|
|
21
|
-
}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
21
|
+
}>, {}, {}, {}, {}, string, _$vue.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,11 +1,11 @@
|
|
|
1
1
|
import { MaybeArray } from "../../types/common.js";
|
|
2
2
|
import { FlattenedItem, TreeItemData, TreeVirtualizerRootProps } from "./types.js";
|
|
3
|
-
import * as vue from "vue";
|
|
4
|
-
import * as _tanstack_vue_virtual0 from "@tanstack/vue-virtual";
|
|
3
|
+
import * as _$vue from "vue";
|
|
4
|
+
import * as _$_tanstack_vue_virtual0 from "@tanstack/vue-virtual";
|
|
5
5
|
|
|
6
6
|
//#region src/components/tree/tree-virtualizer-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_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
8
|
-
props: vue.PublicProps & __VLS_PrettifyLocal<TreeVirtualizerRootProps<T, U, M> & {
|
|
8
|
+
props: _$vue.PublicProps & __VLS_PrettifyLocal<TreeVirtualizerRootProps<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
|
}> & (typeof globalThis extends {
|
|
@@ -15,14 +15,14 @@ declare const __VLS_export: <T extends TreeItemData, U extends MaybeArray<string
|
|
|
15
15
|
attrs: any;
|
|
16
16
|
slots: {
|
|
17
17
|
default?: (props: {
|
|
18
|
-
virtualItems: _tanstack_vue_virtual0.VirtualItem[];
|
|
18
|
+
virtualItems: _$_tanstack_vue_virtual0.VirtualItem[];
|
|
19
19
|
flattenItems: FlattenedItem<T>[];
|
|
20
20
|
modelValue: U;
|
|
21
21
|
expanded: string[];
|
|
22
22
|
}) => any;
|
|
23
23
|
};
|
|
24
24
|
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);
|
|
25
|
-
}>) => vue.VNode & {
|
|
25
|
+
}>) => _$vue.VNode & {
|
|
26
26
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
27
27
|
};
|
|
28
28
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ClassValue, UiClass } from "../../types/common.js";
|
|
2
2
|
import { TreeMenuRootContextParams, TreeMenuUiSlot } from "./types.js";
|
|
3
|
-
import * as vue from "vue";
|
|
3
|
+
import * as _$vue from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/components/tree-menu/context.d.ts
|
|
6
6
|
declare const provideTreeMenuRootContext: (params: TreeMenuRootContextParams) => {
|
|
@@ -8,34 +8,34 @@ declare const provideTreeMenuRootContext: (params: TreeMenuRootContextParams) =>
|
|
|
8
8
|
onExpandedChange: (value: string[]) => void;
|
|
9
9
|
onExpandedToggle: (value: string) => void;
|
|
10
10
|
onCollapsedChange: (value: boolean) => void;
|
|
11
|
-
modelValue: vue.ShallowRef<string>;
|
|
12
|
-
expanded: vue.ShallowRef<string[]>;
|
|
13
|
-
collapsed: vue.ShallowRef<boolean>;
|
|
11
|
+
modelValue: _$vue.ShallowRef<string>;
|
|
12
|
+
expanded: _$vue.ShallowRef<string[]>;
|
|
13
|
+
collapsed: _$vue.ShallowRef<boolean>;
|
|
14
14
|
}, useTreeMenuRootContext: <N extends string | null | undefined = undefined>(consumerName?: N | undefined, defaultValue?: {
|
|
15
15
|
onModelValueChange: (value: string) => void;
|
|
16
16
|
onExpandedChange: (value: string[]) => void;
|
|
17
17
|
onExpandedToggle: (value: string) => void;
|
|
18
18
|
onCollapsedChange: (value: boolean) => void;
|
|
19
|
-
modelValue: vue.ShallowRef<string>;
|
|
20
|
-
expanded: vue.ShallowRef<string[]>;
|
|
21
|
-
collapsed: vue.ShallowRef<boolean>;
|
|
19
|
+
modelValue: _$vue.ShallowRef<string>;
|
|
20
|
+
expanded: _$vue.ShallowRef<string[]>;
|
|
21
|
+
collapsed: _$vue.ShallowRef<boolean>;
|
|
22
22
|
} | undefined) => N extends null | undefined ? {
|
|
23
23
|
onModelValueChange: (value: string) => void;
|
|
24
24
|
onExpandedChange: (value: string[]) => void;
|
|
25
25
|
onExpandedToggle: (value: string) => void;
|
|
26
26
|
onCollapsedChange: (value: boolean) => void;
|
|
27
|
-
modelValue: vue.ShallowRef<string>;
|
|
28
|
-
expanded: vue.ShallowRef<string[]>;
|
|
29
|
-
collapsed: vue.ShallowRef<boolean>;
|
|
27
|
+
modelValue: _$vue.ShallowRef<string>;
|
|
28
|
+
expanded: _$vue.ShallowRef<string[]>;
|
|
29
|
+
collapsed: _$vue.ShallowRef<boolean>;
|
|
30
30
|
} | null : {
|
|
31
31
|
onModelValueChange: (value: string) => void;
|
|
32
32
|
onExpandedChange: (value: string[]) => void;
|
|
33
33
|
onExpandedToggle: (value: string) => void;
|
|
34
34
|
onCollapsedChange: (value: boolean) => void;
|
|
35
|
-
modelValue: vue.ShallowRef<string>;
|
|
36
|
-
expanded: vue.ShallowRef<string[]>;
|
|
37
|
-
collapsed: vue.ShallowRef<boolean>;
|
|
35
|
+
modelValue: _$vue.ShallowRef<string>;
|
|
36
|
+
expanded: _$vue.ShallowRef<string[]>;
|
|
37
|
+
collapsed: _$vue.ShallowRef<boolean>;
|
|
38
38
|
};
|
|
39
|
-
declare const provideTreeMenuUi: (ui: vue.ComputedRef<Partial<UiClass<TreeMenuUiSlot>>>) => vue.ComputedRef<Partial<UiClass<TreeMenuUiSlot>>>, useTreeMenuUi: <S extends TreeMenuUiSlot | undefined = undefined>(slot?: S | undefined) => S extends TreeMenuUiSlot ? vue.ComputedRef<ClassValue> : vue.ComputedRef<Partial<UiClass<TreeMenuUiSlot>>>;
|
|
39
|
+
declare const provideTreeMenuUi: (ui: _$vue.ComputedRef<Partial<UiClass<TreeMenuUiSlot>>>) => _$vue.ComputedRef<Partial<UiClass<TreeMenuUiSlot>>>, useTreeMenuUi: <S extends TreeMenuUiSlot | undefined = undefined>(slot?: S | undefined) => S extends TreeMenuUiSlot ? _$vue.ComputedRef<ClassValue> : _$vue.ComputedRef<Partial<UiClass<TreeMenuUiSlot>>>;
|
|
40
40
|
//#endregion
|
|
41
41
|
export { provideTreeMenuRootContext, provideTreeMenuUi, useTreeMenuRootContext };
|