@soybeanjs/headless 0.3.0 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/accordion/accordion-content.vue.d.ts +2 -2
- package/dist/components/accordion/accordion-header.vue.d.ts +2 -2
- package/dist/components/accordion/accordion-item.vue.d.ts +5 -5
- package/dist/components/accordion/accordion-root.vue.d.ts +3 -3
- package/dist/components/accordion/accordion-trigger.vue.d.ts +2 -2
- package/dist/components/accordion/context.d.ts +2 -2
- package/dist/components/accordion/context.js +1 -1
- package/dist/components/alert/alert-close.js +1 -1
- package/dist/components/alert/alert-close.vue.d.ts +2 -2
- package/dist/components/alert/alert-content.vue.d.ts +2 -2
- package/dist/components/alert/alert-description.vue.d.ts +2 -2
- package/dist/components/alert/alert-root.vue.d.ts +4 -4
- package/dist/components/alert/alert-title.vue.d.ts +2 -2
- package/dist/components/alert/context.d.ts +2 -2
- package/dist/components/alert-dialog/alert-dialog-close.vue.d.ts +2 -2
- package/dist/components/alert-dialog/alert-dialog-content.js +1 -1
- package/dist/components/alert-dialog/alert-dialog-content.vue.d.ts +6 -6
- package/dist/components/alert-dialog/alert-dialog-root.vue.d.ts +4 -4
- package/dist/components/arrow/arrow.js +1 -1
- package/dist/components/arrow/arrow.vue.d.ts +2 -2
- package/dist/components/aspect-ratio/aspect-ratio.vue.d.ts +3 -3
- package/dist/components/avatar/avatar-fallback.vue.d.ts +2 -2
- package/dist/components/avatar/avatar-image.vue.d.ts +4 -4
- package/dist/components/avatar/avatar-root.vue.d.ts +2 -2
- package/dist/components/avatar/context.d.ts +2 -2
- package/dist/components/badge/badge-content.vue.d.ts +2 -2
- package/dist/components/badge/badge-root.vue.d.ts +4 -4
- package/dist/components/badge/context.d.ts +2 -2
- package/dist/components/breadcrumb/breadcrumb-ellipsis.js +1 -1
- package/dist/components/breadcrumb/breadcrumb-ellipsis.vue.d.ts +2 -2
- package/dist/components/breadcrumb/breadcrumb-item.vue.d.ts +2 -2
- package/dist/components/breadcrumb/breadcrumb-link.vue.d.ts +2 -2
- package/dist/components/breadcrumb/breadcrumb-list.vue.d.ts +2 -2
- package/dist/components/breadcrumb/breadcrumb-page.vue.d.ts +2 -2
- package/dist/components/breadcrumb/breadcrumb-root.vue.d.ts +2 -2
- package/dist/components/breadcrumb/breadcrumb-separator.vue.d.ts +2 -2
- package/dist/components/breadcrumb/context.d.ts +2 -2
- package/dist/components/button/button.vue.d.ts +5 -5
- package/dist/components/card/card-content.vue.d.ts +2 -2
- package/dist/components/card/card-description.vue.d.ts +2 -2
- package/dist/components/card/card-footer.vue.d.ts +2 -2
- package/dist/components/card/card-header.vue.d.ts +2 -2
- package/dist/components/card/card-root.vue.d.ts +2 -2
- package/dist/components/card/card-title-root.vue.d.ts +2 -2
- package/dist/components/card/card-title.vue.d.ts +2 -2
- package/dist/components/card/context.d.ts +2 -2
- package/dist/components/checkbox/checkbox-control.vue.d.ts +2 -2
- package/dist/components/checkbox/checkbox-group-root.vue.d.ts +3 -3
- package/dist/components/checkbox/checkbox-indicator.vue.d.ts +4 -4
- package/dist/components/checkbox/checkbox-label.vue.d.ts +2 -2
- package/dist/components/checkbox/checkbox-root.vue.d.ts +4 -4
- package/dist/components/checkbox/context.d.ts +2 -2
- package/dist/components/collapsible/collapsible-content.js +1 -1
- package/dist/components/collapsible/collapsible-content.vue.d.ts +2 -2
- package/dist/components/collapsible/collapsible-root.vue.d.ts +6 -6
- package/dist/components/collapsible/collapsible-trigger.vue.d.ts +4 -4
- package/dist/components/collapsible/context.d.ts +2 -2
- package/dist/components/collapsible/context.js +1 -1
- package/dist/components/config-provider/config-provider.vue.d.ts +3 -3
- package/dist/components/context-menu/context-menu-content.vue.d.ts +8 -8
- package/dist/components/context-menu/context-menu-root.js +1 -1
- package/dist/components/context-menu/context-menu-root.vue.d.ts +4 -4
- package/dist/components/context-menu/context-menu-trigger.js +1 -1
- package/dist/components/context-menu/context-menu-trigger.vue.d.ts +4 -4
- package/dist/components/dialog/context.d.ts +2 -2
- package/dist/components/dialog/context.js +1 -1
- package/dist/components/dialog/dialog-close.vue.d.ts +2 -2
- package/dist/components/dialog/dialog-content.vue.d.ts +6 -6
- package/dist/components/dialog/dialog-description.vue.d.ts +2 -2
- package/dist/components/dialog/dialog-footer.vue.d.ts +2 -2
- package/dist/components/dialog/dialog-header.vue.d.ts +2 -2
- package/dist/components/dialog/dialog-overlay.vue.d.ts +2 -2
- package/dist/components/dialog/dialog-root.vue.d.ts +5 -5
- package/dist/components/dialog/dialog-title.vue.d.ts +2 -2
- package/dist/components/dialog/dialog-trigger.vue.d.ts +2 -2
- package/dist/components/dropdown-menu/context.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-content.vue.d.ts +8 -8
- package/dist/components/dropdown-menu/dropdown-menu-root.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-root.vue.d.ts +6 -6
- package/dist/components/dropdown-menu/dropdown-menu-trigger.vue.d.ts +4 -4
- package/dist/components/form/context.d.ts +2 -2
- package/dist/components/form/form-description.vue.d.ts +2 -2
- package/dist/components/form/form-error.vue.d.ts +2 -2
- package/dist/components/form/form-field.vue.d.ts +2 -2
- package/dist/components/form/form-label.vue.d.ts +2 -2
- package/dist/components/input/context.d.ts +2 -2
- package/dist/components/input/input-control.vue.d.ts +2 -2
- package/dist/components/input/input-root.vue.d.ts +4 -4
- package/dist/components/kbd/kbd.vue.d.ts +2 -2
- package/dist/components/layout/context.d.ts +2 -2
- package/dist/components/layout/index.d.ts +12 -11
- package/dist/components/layout/index.js +1 -1
- package/dist/components/layout/layout-content.js +1 -0
- package/dist/components/layout/layout-content.vue.d.ts +18 -0
- package/dist/components/layout/layout-footer.vue.d.ts +2 -2
- package/dist/components/layout/layout-header.vue.d.ts +2 -2
- package/dist/components/layout/layout-main.vue.d.ts +2 -2
- package/dist/components/layout/layout-mobile.vue.d.ts +2 -2
- package/dist/components/layout/layout-rail.js +1 -1
- package/dist/components/layout/layout-rail.vue.d.ts +2 -2
- package/dist/components/layout/layout-root.vue.d.ts +4 -4
- package/dist/components/layout/layout-sidebar.vue.d.ts +2 -2
- package/dist/components/layout/layout-tab.vue.d.ts +2 -2
- package/dist/components/layout/layout-trigger.vue.d.ts +2 -2
- package/dist/components/layout/types.d.ts +5 -4
- package/dist/components/link/link.vue.d.ts +4 -4
- package/dist/components/list/context.d.ts +2 -2
- package/dist/components/list/list-content.vue.d.ts +2 -2
- package/dist/components/list/list-description.vue.d.ts +2 -2
- package/dist/components/list/list-item.vue.d.ts +2 -2
- package/dist/components/list/list-root.vue.d.ts +2 -2
- package/dist/components/list/list-title.vue.d.ts +2 -2
- package/dist/components/listbox/context.d.ts +2 -2
- package/dist/components/listbox/listbox-content.js +1 -1
- package/dist/components/listbox/listbox-content.vue.d.ts +2 -2
- package/dist/components/listbox/listbox-filter.js +1 -1
- package/dist/components/listbox/listbox-filter.vue.d.ts +4 -4
- package/dist/components/listbox/listbox-group-label.vue.d.ts +2 -2
- package/dist/components/listbox/listbox-group.vue.d.ts +2 -2
- package/dist/components/listbox/listbox-item-indicator.vue.d.ts +4 -4
- package/dist/components/listbox/listbox-item.vue.d.ts +5 -5
- package/dist/components/listbox/listbox-root.js +1 -1
- package/dist/components/listbox/listbox-root.vue.d.ts +5 -5
- package/dist/components/listbox/listbox-virtualizer.vue.d.ts +2 -2
- package/dist/components/menu/context.d.ts +2 -2
- package/dist/components/menu/context.js +1 -1
- package/dist/components/menu/menu-checkbox-group.vue.d.ts +3 -3
- package/dist/components/menu/menu-checkbox-item.vue.d.ts +4 -4
- package/dist/components/menu/menu-content-impl.js +1 -1
- package/dist/components/menu/menu-content.vue.d.ts +8 -8
- package/dist/components/menu/menu-group-label.vue.d.ts +2 -2
- package/dist/components/menu/menu-group.vue.d.ts +2 -2
- package/dist/components/menu/menu-item-indicator.vue.d.ts +4 -4
- package/dist/components/menu/menu-item.vue.d.ts +4 -4
- package/dist/components/menu/menu-radio-group.vue.d.ts +3 -3
- package/dist/components/menu/menu-radio-item.vue.d.ts +4 -4
- package/dist/components/menu/menu-root.vue.d.ts +4 -4
- package/dist/components/menu/menu-sub-content.js +1 -1
- package/dist/components/menu/menu-sub-content.vue.d.ts +8 -8
- package/dist/components/menu/menu-sub-trigger.vue.d.ts +2 -2
- package/dist/components/menu/menu-sub.vue.d.ts +4 -4
- package/dist/components/navigation-menu/context.d.ts +2 -2
- package/dist/components/navigation-menu/navigation-menu-content.vue.d.ts +4 -4
- package/dist/components/navigation-menu/navigation-menu-indicator.vue.d.ts +2 -2
- package/dist/components/navigation-menu/navigation-menu-item.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-item.vue.d.ts +2 -2
- package/dist/components/navigation-menu/navigation-menu-link.vue.d.ts +4 -4
- package/dist/components/navigation-menu/navigation-menu-list.vue.d.ts +2 -2
- package/dist/components/navigation-menu/navigation-menu-root.vue.d.ts +5 -5
- package/dist/components/navigation-menu/navigation-menu-sub-list.vue.d.ts +2 -2
- package/dist/components/navigation-menu/navigation-menu-trigger.vue.d.ts +4 -4
- package/dist/components/navigation-menu/navigation-menu-viewport.vue.d.ts +3 -3
- package/dist/components/number-input/context.d.ts +2 -2
- package/dist/components/number-input/number-input-control.js +1 -1
- package/dist/components/number-input/number-input-control.vue.d.ts +2 -2
- package/dist/components/number-input/number-input-decrement.js +1 -1
- package/dist/components/number-input/number-input-decrement.vue.d.ts +4 -4
- package/dist/components/number-input/number-input-increment.js +1 -1
- package/dist/components/number-input/number-input-increment.vue.d.ts +4 -4
- package/dist/components/number-input/number-input-root.vue.d.ts +4 -4
- package/dist/components/pagination/context.d.ts +2 -2
- package/dist/components/pagination/pagination-ellipsis.js +1 -1
- package/dist/components/pagination/pagination-ellipsis.vue.d.ts +2 -2
- package/dist/components/pagination/pagination-first.js +1 -1
- package/dist/components/pagination/pagination-first.vue.d.ts +2 -2
- package/dist/components/pagination/pagination-last.js +1 -1
- package/dist/components/pagination/pagination-last.vue.d.ts +2 -2
- package/dist/components/pagination/pagination-list-item.vue.d.ts +2 -2
- package/dist/components/pagination/pagination-list.vue.d.ts +2 -2
- package/dist/components/pagination/pagination-next.js +1 -1
- package/dist/components/pagination/pagination-next.vue.d.ts +2 -2
- package/dist/components/pagination/pagination-prev.js +1 -1
- package/dist/components/pagination/pagination-prev.vue.d.ts +2 -2
- package/dist/components/pagination/pagination-root.vue.d.ts +5 -5
- package/dist/components/popover/context.js +1 -1
- package/dist/components/popover/popover-anchor.vue.d.ts +2 -2
- package/dist/components/popover/popover-close.js +1 -1
- package/dist/components/popover/popover-close.vue.d.ts +4 -4
- package/dist/components/popover/popover-popup.vue.d.ts +2 -2
- package/dist/components/popover/popover-positioner.vue.d.ts +6 -6
- package/dist/components/popover/popover-root.vue.d.ts +5 -5
- package/dist/components/popover/popover-trigger.vue.d.ts +4 -4
- package/dist/components/popper/context.d.ts +2 -2
- package/dist/components/popper/popper-anchor.vue.d.ts +2 -2
- package/dist/components/popper/popper-arrow.vue.d.ts +2 -2
- package/dist/components/popper/popper-popup.vue.d.ts +2 -2
- package/dist/components/popper/popper-positioner.vue.d.ts +17 -17
- package/dist/components/popper/popper-root.vue.d.ts +2 -2
- package/dist/components/portal/portal.vue.d.ts +3 -3
- package/dist/components/radio-group/context.d.ts +2 -2
- package/dist/components/radio-group/radio-group-control.js +1 -1
- package/dist/components/radio-group/radio-group-control.vue.d.ts +2 -2
- package/dist/components/radio-group/radio-group-indicator.vue.d.ts +4 -4
- package/dist/components/radio-group/radio-group-item.vue.d.ts +4 -4
- package/dist/components/radio-group/radio-group-label.vue.d.ts +2 -2
- package/dist/components/radio-group/radio-group-root.vue.d.ts +3 -3
- package/dist/components/roving-focus/roving-focus-group.vue.d.ts +6 -6
- package/dist/components/roving-focus/roving-focus-item.vue.d.ts +3 -3
- package/dist/components/select/context.d.ts +2 -2
- package/dist/components/select/context.js +1 -1
- package/dist/components/select/select-arrow.vue.d.ts +2 -2
- package/dist/components/select/select-content-impl.js +1 -1
- package/dist/components/select/select-content.vue.d.ts +6 -6
- package/dist/components/select/select-group-label.vue.d.ts +2 -2
- package/dist/components/select/select-group.vue.d.ts +2 -2
- package/dist/components/select/select-item-indicator.vue.d.ts +4 -4
- package/dist/components/select/select-item-text.vue.d.ts +2 -2
- package/dist/components/select/select-item.js +1 -1
- package/dist/components/select/select-item.vue.d.ts +4 -4
- package/dist/components/select/select-root.vue.d.ts +5 -5
- package/dist/components/select/select-scroll-down-button.vue.d.ts +2 -2
- package/dist/components/select/select-scroll-up-button.vue.d.ts +2 -2
- package/dist/components/select/select-separator.vue.d.ts +2 -2
- package/dist/components/select/select-trigger-icon.vue.d.ts +2 -2
- package/dist/components/select/select-trigger.vue.d.ts +4 -4
- package/dist/components/select/select-value.vue.d.ts +3 -3
- package/dist/components/select/select-viewport.vue.d.ts +2 -2
- package/dist/components/separator/context.d.ts +2 -2
- package/dist/components/separator/separator-label.vue.d.ts +2 -2
- package/dist/components/separator/separator-root.vue.d.ts +3 -3
- package/dist/components/switch/context.d.ts +2 -2
- package/dist/components/switch/switch-control.js +1 -1
- package/dist/components/switch/switch-control.vue.d.ts +2 -2
- package/dist/components/switch/switch-root.vue.d.ts +3 -3
- package/dist/components/switch/switch-thumb.vue.d.ts +4 -4
- package/dist/components/tabs/context.d.ts +2 -2
- package/dist/components/tabs/tabs-content.vue.d.ts +2 -2
- package/dist/components/tabs/tabs-indicator.vue.d.ts +2 -2
- package/dist/components/tabs/tabs-list.vue.d.ts +2 -2
- package/dist/components/tabs/tabs-root.vue.d.ts +4 -4
- package/dist/components/tabs/tabs-trigger.vue.d.ts +4 -4
- package/dist/components/tag/tag.vue.d.ts +4 -4
- package/dist/components/textarea/context.d.ts +2 -2
- package/dist/components/textarea/textarea-control.vue.d.ts +2 -2
- package/dist/components/textarea/textarea-counter.vue.d.ts +2 -2
- package/dist/components/textarea/textarea-root.vue.d.ts +4 -4
- package/dist/components/toast/toast-action.vue.d.ts +4 -4
- package/dist/components/toast/toast-close.vue.d.ts +4 -4
- package/dist/components/toast/toast-description.vue.d.ts +2 -2
- package/dist/components/toast/toast-provider.vue.d.ts +3 -3
- package/dist/components/toast/toast-root.vue.d.ts +8 -8
- package/dist/components/toast/toast-title.vue.d.ts +2 -2
- package/dist/components/toast/toast-viewport.js +1 -1
- package/dist/components/toast/toast-viewport.vue.d.ts +4 -4
- package/dist/components/tooltip/context.js +1 -1
- package/dist/components/tooltip/tooltip-popup.vue.d.ts +2 -2
- package/dist/components/tooltip/tooltip-positioner.vue.d.ts +4 -4
- package/dist/components/tooltip/tooltip-root.vue.d.ts +4 -4
- package/dist/components/tooltip/tooltip-trigger.vue.d.ts +4 -4
- package/dist/components/tree/tree-item.js +1 -1
- package/dist/components/tree/tree-item.vue.d.ts +5 -5
- package/dist/components/tree/tree-root.vue.d.ts +3 -3
- package/dist/components/tree/tree-virtualizer-item.vue.d.ts +4 -4
- package/dist/components/tree/tree-virtualizer-root.vue.d.ts +3 -3
- package/dist/components/tree-menu/context.d.ts +2 -2
- package/dist/components/tree-menu/tree-menu-button.vue.d.ts +4 -4
- package/dist/components/tree-menu/tree-menu-collapsible.vue.d.ts +2 -2
- package/dist/components/tree-menu/tree-menu-group-label.vue.d.ts +2 -2
- package/dist/components/tree-menu/tree-menu-group-root.vue.d.ts +2 -2
- package/dist/components/tree-menu/tree-menu-group.vue.d.ts +4 -4
- package/dist/components/tree-menu/tree-menu-item.vue.d.ts +4 -4
- package/dist/components/tree-menu/tree-menu-root.vue.d.ts +4 -4
- package/dist/components/tree-menu/tree-menu-sub.vue.d.ts +4 -4
- package/dist/components/virtualizer/virtualizer-content.vue.d.ts +2 -2
- package/dist/components/virtualizer/virtualizer-item.vue.d.ts +2 -2
- package/dist/components/virtualizer/virtualizer-root.vue.d.ts +3 -3
- package/dist/components/visually-hidden/visually-hidden-input.vue.d.ts +3 -3
- package/dist/components/visually-hidden/visually-hidden.vue.d.ts +4 -4
- package/dist/composables/use-collection.d.ts +6 -6
- package/dist/composables/use-collection.js +1 -1
- package/dist/composables/use-dismissable-layer.d.ts +2 -2
- package/dist/composables/use-exposed-element.d.ts +2 -2
- package/dist/composables/use-forward-element.d.ts +2 -2
- package/dist/composables/use-grace-area.js +1 -1
- package/dist/composables/use-image-loading-status.d.ts +2 -2
- package/dist/composables/use-image-loading-status.js +1 -1
- package/dist/composables/use-is-using-keyboard.d.ts +2 -2
- package/dist/composables/use-is-using-keyboard.js +1 -1
- package/dist/composables/use-kbd.d.ts +2 -2
- package/dist/composables/use-presence.d.ts +2 -2
- package/dist/composables/use-props.d.ts +3 -3
- package/dist/composables/use-selection.d.ts +4 -4
- package/dist/index.d.ts +121 -120
- package/dist/index.js +1 -1
- package/dist/namespaced/index.d.ts +14 -14
- package/dist/namespaced/index.js +1 -1
- package/dist/shared/focus.js +1 -1
- package/package.json +26 -26
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { AsTag } from "../primitive/types.js";
|
|
2
2
|
import "../primitive/index.js";
|
|
3
3
|
import { RadioGroupIndicatorProps } from "./types.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as vue1347 from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/components/radio-group/radio-group-indicator.vue.d.ts
|
|
7
7
|
declare var __VLS_8: {};
|
|
8
8
|
type __VLS_Slots = {} & {
|
|
9
9
|
default?: (props: typeof __VLS_8) => any;
|
|
10
10
|
};
|
|
11
|
-
declare const __VLS_base:
|
|
12
|
-
as: AsTag |
|
|
13
|
-
}, {}, {}, {}, string,
|
|
11
|
+
declare const __VLS_base: vue1347.DefineComponent<RadioGroupIndicatorProps, {}, {}, {}, {}, vue1347.ComponentOptionsMixin, vue1347.ComponentOptionsMixin, {}, string, vue1347.PublicProps, Readonly<RadioGroupIndicatorProps> & Readonly<{}>, {
|
|
12
|
+
as: AsTag | vue1347.Component;
|
|
13
|
+
}, {}, {}, {}, string, vue1347.ComponentProvideOptions, false, {}, any>;
|
|
14
14
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
15
15
|
declare const _default: typeof __VLS_export;
|
|
16
16
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RadioGroupItemProps, RadioSelectEvent } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue1337 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/radio-group/radio-group-item.vue.d.ts
|
|
5
5
|
declare var __VLS_1: {
|
|
@@ -8,11 +8,11 @@ declare var __VLS_1: {
|
|
|
8
8
|
type __VLS_Slots = {} & {
|
|
9
9
|
default?: (props: typeof __VLS_1) => any;
|
|
10
10
|
};
|
|
11
|
-
declare const __VLS_base:
|
|
11
|
+
declare const __VLS_base: vue1337.DefineComponent<RadioGroupItemProps, {}, {}, {}, {}, vue1337.ComponentOptionsMixin, vue1337.ComponentOptionsMixin, {
|
|
12
12
|
select: (event: RadioSelectEvent) => any;
|
|
13
|
-
}, string,
|
|
13
|
+
}, string, vue1337.PublicProps, Readonly<RadioGroupItemProps> & Readonly<{
|
|
14
14
|
onSelect?: ((event: RadioSelectEvent) => any) | undefined;
|
|
15
|
-
}>, {}, {}, {}, {}, string,
|
|
15
|
+
}>, {}, {}, {}, {}, string, vue1337.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,13 +1,13 @@
|
|
|
1
1
|
import { LabelProps } from "../label/types.js";
|
|
2
2
|
import "./types.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue1353 from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/components/radio-group/radio-group-label.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:
|
|
10
|
+
declare const __VLS_base: vue1353.DefineComponent<LabelProps, {}, {}, {}, {}, vue1353.ComponentOptionsMixin, vue1353.ComponentOptionsMixin, {}, string, vue1353.PublicProps, Readonly<LabelProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1353.ComponentProvideOptions, false, {}, any>;
|
|
11
11
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
12
12
|
declare const _default: typeof __VLS_export;
|
|
13
13
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { AcceptableBooleanValue } from "../../types/common.js";
|
|
2
2
|
import "../../types/index.js";
|
|
3
3
|
import { RadioGroupRootProps } from "./types.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as vue1335 from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/components/radio-group/radio-group-root.vue.d.ts
|
|
7
7
|
declare const __VLS_export: <T extends AcceptableBooleanValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
8
|
-
props:
|
|
8
|
+
props: vue1335.PublicProps & __VLS_PrettifyLocal<RadioGroupRootProps<T> & {
|
|
9
9
|
"onUpdate:modelValue"?: ((payload: NonNullable<T>) => any) | undefined;
|
|
10
10
|
}> & (typeof globalThis extends {
|
|
11
11
|
__VLS_PROPS_FALLBACK: infer P;
|
|
@@ -18,7 +18,7 @@ declare const __VLS_export: <T extends AcceptableBooleanValue>(__VLS_props: NonN
|
|
|
18
18
|
}) => any;
|
|
19
19
|
};
|
|
20
20
|
emit: (evt: "update:modelValue", payload: NonNullable<T>) => void;
|
|
21
|
-
}>) =>
|
|
21
|
+
}>) => vue1335.VNode & {
|
|
22
22
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
23
23
|
};
|
|
24
24
|
declare const _default: typeof __VLS_export;
|
|
@@ -3,26 +3,26 @@ import { RovingFocusGroupProps } from "./types.js";
|
|
|
3
3
|
import { CollectionItemData } from "../../composables/use-collection.js";
|
|
4
4
|
import "../../composables/index.js";
|
|
5
5
|
import "../../index.js";
|
|
6
|
-
import * as
|
|
6
|
+
import * as vue1233 from "vue";
|
|
7
7
|
|
|
8
8
|
//#region src/components/roving-focus/roving-focus-group.vue.d.ts
|
|
9
9
|
declare var __VLS_8: {};
|
|
10
10
|
type __VLS_Slots = {} & {
|
|
11
11
|
default?: (props: typeof __VLS_8) => any;
|
|
12
12
|
};
|
|
13
|
-
declare const __VLS_base:
|
|
13
|
+
declare const __VLS_base: vue1233.DefineComponent<RovingFocusGroupProps, {
|
|
14
14
|
getItems: (excludeDisabled?: boolean) => CollectionItemData<Record<string, any>>[];
|
|
15
|
-
}, {}, {}, {},
|
|
15
|
+
}, {}, {}, {}, vue1233.ComponentOptionsMixin, vue1233.ComponentOptionsMixin, {
|
|
16
16
|
entryFocus: (event: Event) => any;
|
|
17
17
|
"update:currentTabStopId": (value: string | null | undefined) => any;
|
|
18
|
-
}, string,
|
|
18
|
+
}, string, vue1233.PublicProps, Readonly<RovingFocusGroupProps> & Readonly<{
|
|
19
19
|
onEntryFocus?: ((event: Event) => any) | undefined;
|
|
20
20
|
"onUpdate:currentTabStopId"?: ((value: string | null | undefined) => any) | undefined;
|
|
21
21
|
}>, {
|
|
22
22
|
orientation: DataOrientation;
|
|
23
|
-
preventScrollOnEntryFocus: boolean;
|
|
24
23
|
loop: boolean;
|
|
25
|
-
|
|
24
|
+
preventScrollOnEntryFocus: boolean;
|
|
25
|
+
}, {}, {}, {}, string, vue1233.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 { RovingFocusItemProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue1228 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/roving-focus/roving-focus-item.vue.d.ts
|
|
5
5
|
declare var __VLS_8: {};
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
7
|
default?: (props: typeof __VLS_8) => any;
|
|
8
8
|
};
|
|
9
|
-
declare const __VLS_base:
|
|
9
|
+
declare const __VLS_base: vue1228.DefineComponent<RovingFocusItemProps, {}, {}, {}, {}, vue1228.ComponentOptionsMixin, vue1228.ComponentOptionsMixin, {}, string, vue1228.PublicProps, Readonly<RovingFocusItemProps> & Readonly<{}>, {
|
|
10
10
|
focusable: boolean;
|
|
11
|
-
}, {}, {}, {}, string,
|
|
11
|
+
}, {}, {}, {}, string, vue1228.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 & {
|
|
@@ -3,10 +3,10 @@ import "../../types/index.js";
|
|
|
3
3
|
import "../../composables/index.js";
|
|
4
4
|
import { SelectUiSlot } from "./types.js";
|
|
5
5
|
import "../../index.js";
|
|
6
|
-
import * as
|
|
6
|
+
import * as vue1015 from "vue";
|
|
7
7
|
|
|
8
8
|
//#region src/components/select/context.d.ts
|
|
9
9
|
|
|
10
|
-
declare const provideSelectUi: (ui:
|
|
10
|
+
declare const provideSelectUi: (ui: vue1015.ComputedRef<Partial<UiClass<SelectUiSlot>>>) => vue1015.ComputedRef<Partial<UiClass<SelectUiSlot>>>, useSelectUi: <S extends SelectUiSlot | undefined = undefined>(slot?: S | undefined) => S extends SelectUiSlot ? vue1015.ComputedRef<ClassValue> : vue1015.ComputedRef<Partial<UiClass<SelectUiSlot>>>;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { provideSelectUi };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{isValueEqualOrExist as e}from"../../shared/comparison.js";import{getDisclosureState as t}from"../../shared/value.js";import{tryFocusFirst as n}from"../../shared/focus.js";import{useContext as r}from"../../composables/use-context.js";import{useCollection as i}from"../../composables/use-collection.js";import{useUiContext as a}from"../../composables/use-ui-context.js";import{useDirection as o}from"../config-provider/context.js";import{providePopperUi as s}from"../popper/context.js";import{computed as c,ref as l,shallowRef as u,useId as d}from"vue";const[f,p]=r(`SelectRoot`,e=>{let{open:n}=e,r=e=>{n.value=e},i=c(()=>t(n.value)),a=o(e.dir),s=u(``),f=()=>{s.value
|
|
1
|
+
import{isValueEqualOrExist as e}from"../../shared/comparison.js";import{getDisclosureState as t}from"../../shared/value.js";import{tryFocusFirst as n}from"../../shared/focus.js";import{useContext as r}from"../../composables/use-context.js";import{useCollection as i}from"../../composables/use-collection.js";import{useUiContext as a}from"../../composables/use-ui-context.js";import{useDirection as o}from"../config-provider/context.js";import{providePopperUi as s}from"../popper/context.js";import{computed as c,ref as l,shallowRef as u,useId as d}from"vue";const[f,p]=r(`SelectRoot`,e=>{let{open:n}=e,r=e=>{n.value=e},i=c(()=>t(n.value)),a=o(e.dir),s=u(``),f=()=>{s.value||(s.value=`soybean-select-content-${d()}`)},p=u(),m=e=>{p.value=e},h=u(),g=e=>{h.value=e},_=l(new Set),v=c(()=>Array.from(_.value)),y=c(()=>v.value.map(e=>e.value).join(`;`)),b=e=>{_.value.add(e)},x=e=>{_.value.delete(e)},S=u({x:0,y:0}),C=e=>{S.value=e},w=()=>{S.value=null};return{...e,dataState:i,onOpenChange:r,dir:a,contentId:s,initContentId:f,triggerElement:p,onTriggerElementChange:m,valueElement:h,onValueElementChange:g,optionsSet:_,onOptionAdd:b,onOptionRemove:x,options:v,nativeSelectKey:y,triggerPointerDownPosition:S,setTriggerPointerDownPosition:C,resetTriggerPointerDownPosition:w}}),{provideCollectionContext:m,useCollectionContext:h,useCollectionItem:g}=i(`Select`),[_,v]=r(`SelectContent`,t=>{let{modelValue:r,isMultiple:i,popupElement:a}=t,o=u(!1),s=u(),c=e=>{s.value=e},l=!1,d=!1,f=u(),p=(t,n,i)=>{let a=!l&&!i;(e(r.value,n)||a)&&(f.value=t)},m=u(),h=(t,n,a)=>{let o=!l&&!a,s=e(r.value,n);if(i.value){if(d)return;(s||o)&&(m.value=t,s&&(d=!0))}else (s||o)&&(m.value=t);o&&(l=!0)},g=()=>{a.value?.focus()};function _(){!m.value||!a.value||n([m.value,a.value])}return{...t,isPositioned:o,viewportElement:s,onViewportElementChange:c,selectedItemElement:m,onSelectedItemElementChange:h,onItemElementLeave:g,selectedItemTextElement:f,onSelectedItemTextElementChange:p,focusSelectedItem:_}}),[y,b]=r(`SelectGroup`,()=>{let e=u(``);return{labelId:e,initLabelId:()=>{e.value||(e.value=`soybean-select-group-label-${d()}`)}}}),[x,S]=r(`SelectItem`,e=>{let t=u(e.textValue.value??``),n=u(),r=e=>{n.value=e,t.value=((t.value||e?.textContent)??``).trim()},i=u(``),a=()=>{i.value||(i.value=`soybean-select-item-text-${d()}`)};return{...e,textId:i,initTextId:a,textValue:t,itemTextElement:n,onItemTextElementChange:r}}),[C,w]=r(`SelectPopupElement`,()=>{let e=u();return{popupElement:e,onPopupElementChange:t=>{e.value=t}}}),[T,E]=r(`SelectItemAlignedPosition`,e=>e),[D,O]=a(`SelectUi`,e=>(s(e),e));export{m as provideCollectionContext,_ as provideSelectContentContext,y as provideSelectGroupContext,T as provideSelectItemAlignedPositionContext,x as provideSelectItemContext,C as provideSelectPopupElementContext,f as provideSelectRootContext,D as provideSelectUi,h as useCollectionContext,g as useCollectionItem,v as useSelectContentContext,b as useSelectGroupContext,E as useSelectItemAlignedPositionContext,S as useSelectItemContext,w as useSelectPopupElementContext,p as useSelectRootContext,O as useSelectUi};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { PopperArrowProps } from "../popper/types.js";
|
|
2
2
|
import "./types.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue995 from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/components/select/select-arrow.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:
|
|
10
|
+
declare const __VLS_base: vue995.DefineComponent<PopperArrowProps, {}, {}, {}, {}, vue995.ComponentOptionsMixin, vue995.ComponentOptionsMixin, {}, string, vue995.PublicProps, Readonly<PopperArrowProps> & Readonly<{}>, {}, {}, {}, {}, string, vue995.ComponentProvideOptions, false, {}, any>;
|
|
11
11
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
12
12
|
declare const _default: typeof __VLS_export;
|
|
13
13
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{tryFocusFirst as e}from"../../shared/focus.js";import{useBodyScrollLock as t}from"../../composables/use-body-scroll-lock.js";import{useDismissableLayer as n}from"../../composables/use-dismissable-layer.js";import{useForwardElement as r}from"../../composables/use-forward-element.js";import{useFocusGuards as ee}from"../../composables/use-focus-guards.js";import{useFocusScope as te}from"../../composables/use-focus-scope.js";import{useHideOthers as i}from"../../composables/use-hide-others.js";import{useOmitProps as a}from"../../composables/use-props.js";import{useTypeahead as ne}from"../../composables/use-typeahead.js";import re from"../popper/popper-positioner.js";import{provideSelectContentContext as o,useCollectionContext as s,useSelectPopupElementContext as c,useSelectRootContext as l}from"./context.js";import{CONTENT_MARGIN as u}from"./shared.js";import d from"./select-popper-popup.js";import f from"./select-item-aligned-popup.js";import p from"./select-item-aligned-positioner.js";import{computed as m,createBlock as h,createVNode as g,defineComponent as _,mergeProps as v,onWatcherCleanup as y,openBlock as b,renderSlot as x,unref as S,watch as C,watchEffect as w,withCtx as T,withModifiers as E}from"vue";var D=_({name:`SelectContentImpl`,__name:`select-content-impl`,props:{position:{default:`popper`},bodyLock:{type:Boolean,default:!0},popupProps:{},placement:{},side:{},sideOffset:{},sideFlip:{type:Boolean},align:{default:`start`},alignOffset:{},alignFlip:{type:Boolean},avoidCollisions:{type:Boolean,default:!0},collisionBoundary:{},collisionPadding:{default:u},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean},reference:{}},emits:[`closeAutoFocus`,`escapeKeyDown`,`pointerDownOutside`],setup(u,{emit:_}){let D=u,O=_,{onOpenChange:k,dataState:A,modelValue:j,isMultiple:M,dir:N,contentId:P,triggerElement:F,triggerPointerDownPosition:I,resetTriggerPointerDownPosition:L}=l(`SelectContentImpl`),{onPopupElementChange:R}=c(`SelectContentImpl`),{onContainerElementChange:z,getOrderedItems:B,getOrderedElements:V}=s(`SelectContentImpl`),[H,U]=r(),[W,G]=r(e=>{R(e),z(e)}),{search:K,handleTypeaheadSearch:q}=ne(),{pointerEvents:J}=n(H,{disableOutsidePointerEvents:!0,onEscapeKeyDown:e=>{O(`escapeKeyDown`,e)},onPointerDownOutside:e=>{O(`pointerDownOutside`,e)},onFocusOutside:e=>{e.preventDefault()},onDismiss:()=>{k(!1)}}),{onKeydown:Y}=te(H,{onOpenAutoFocus:e=>{e.preventDefault()},onCloseAutoFocus:e=>{O(`closeAutoFocus`,e),!e.defaultPrevented&&(F.value?.focus({preventScroll:!0}),e.preventDefault())}}),{isPositioned:X,focusSelectedItem:ie}=o({position:m(()=>D.position),modelValue:j,isMultiple:M,search:K,popupElement:W}),ae=a(D,[`position`,`bodyLock`,`popupProps`]),Z=m(()=>({display:`flex`,flexDirection:`column`,outline:`none`,pointerEvents:J.value})),Q=t=>{Y(t);let n=t.ctrlKey||t.altKey||t.metaKey;if(t.key===`Tab`&&t.preventDefault(),!n&&t.key.length===1&&q(t.key,B()),[`ArrowUp`,`ArrowDown`,`Home`,`End`].includes(t.key)){let n=[...V()];if([`ArrowUp`,`End`].includes(t.key)&&(n=n.slice().reverse()),[`ArrowUp`,`ArrowDown`].includes(t.key)){let e=t.target,r=n.indexOf(e);n=n.slice(r+1)}setTimeout(()=>{e(n)}),t.preventDefault()}},$=()=>{X.value=!0};return ee(),i(W),C(X,()=>{ie()}),w(()=>{D.bodyLock&&y(t())}),w(()=>{if(!W.value)return;let e={x:0,y:0},t=t=>{let{x:n,y:r}=I.value??{x:0,y:0};e={x:Math.abs(Math.round(t.pageX)-n),y:Math.abs(Math.round(t.pageY)-r)}},n=n=>{n.pointerType!==`touch`&&(e.x<=10&&e.y<=10?n.preventDefault():W.value?.contains(n.target)||k(!1),document.removeEventListener(`pointermove`,t),L())};I.value!==null&&(document.addEventListener(`pointermove`,t),document.addEventListener(`pointerup`,n,{capture:!0,once:!0})),y(()=>{document.removeEventListener(`pointermove`,t),document.removeEventListener(`pointerup`,n,{capture:!0})})}),(e,t)=>u.position===`popper`?(b(),h(S(re),v({key:0,ref:S(U)},S(ae),{onContextmenu:t[0]
|
|
1
|
+
import{tryFocusFirst as e}from"../../shared/focus.js";import{useBodyScrollLock as t}from"../../composables/use-body-scroll-lock.js";import{useDismissableLayer as n}from"../../composables/use-dismissable-layer.js";import{useForwardElement as r}from"../../composables/use-forward-element.js";import{useFocusGuards as ee}from"../../composables/use-focus-guards.js";import{useFocusScope as te}from"../../composables/use-focus-scope.js";import{useHideOthers as i}from"../../composables/use-hide-others.js";import{useOmitProps as a}from"../../composables/use-props.js";import{useTypeahead as ne}from"../../composables/use-typeahead.js";import re from"../popper/popper-positioner.js";import{provideSelectContentContext as o,useCollectionContext as s,useSelectPopupElementContext as c,useSelectRootContext as l}from"./context.js";import{CONTENT_MARGIN as u}from"./shared.js";import d from"./select-popper-popup.js";import f from"./select-item-aligned-popup.js";import p from"./select-item-aligned-positioner.js";import{computed as m,createBlock as h,createVNode as g,defineComponent as _,mergeProps as v,onWatcherCleanup as y,openBlock as b,renderSlot as x,unref as S,watch as C,watchEffect as w,withCtx as T,withModifiers as E}from"vue";var D=_({name:`SelectContentImpl`,__name:`select-content-impl`,props:{position:{default:`popper`},bodyLock:{type:Boolean,default:!0},popupProps:{},placement:{},side:{},sideOffset:{},sideFlip:{type:Boolean},align:{default:`start`},alignOffset:{},alignFlip:{type:Boolean},avoidCollisions:{type:Boolean,default:!0},collisionBoundary:{},collisionPadding:{default:u},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean},reference:{}},emits:[`closeAutoFocus`,`escapeKeyDown`,`pointerDownOutside`],setup(u,{emit:_}){let D=u,O=_,{onOpenChange:k,dataState:A,modelValue:j,isMultiple:M,dir:N,contentId:P,triggerElement:F,triggerPointerDownPosition:I,resetTriggerPointerDownPosition:L}=l(`SelectContentImpl`),{onPopupElementChange:R}=c(`SelectContentImpl`),{onContainerElementChange:z,getOrderedItems:B,getOrderedElements:V}=s(`SelectContentImpl`),[H,U]=r(),[W,G]=r(e=>{R(e),z(e)}),{search:K,handleTypeaheadSearch:q}=ne(),{pointerEvents:J}=n(H,{disableOutsidePointerEvents:!0,onEscapeKeyDown:e=>{O(`escapeKeyDown`,e)},onPointerDownOutside:e=>{O(`pointerDownOutside`,e)},onFocusOutside:e=>{e.preventDefault()},onDismiss:()=>{k(!1)}}),{onKeydown:Y}=te(H,{onOpenAutoFocus:e=>{e.preventDefault()},onCloseAutoFocus:e=>{O(`closeAutoFocus`,e),!e.defaultPrevented&&(F.value?.focus({preventScroll:!0}),e.preventDefault())}}),{isPositioned:X,focusSelectedItem:ie}=o({position:m(()=>D.position),modelValue:j,isMultiple:M,search:K,popupElement:W}),ae=a(D,[`position`,`bodyLock`,`popupProps`]),Z=m(()=>({display:`flex`,flexDirection:`column`,outline:`none`,pointerEvents:J.value})),Q=t=>{Y(t);let n=t.ctrlKey||t.altKey||t.metaKey;if(t.key===`Tab`&&t.preventDefault(),!n&&t.key.length===1&&q(t.key,B()),[`ArrowUp`,`ArrowDown`,`Home`,`End`].includes(t.key)){let n=[...V()];if([`ArrowUp`,`End`].includes(t.key)&&(n=n.slice().reverse()),[`ArrowUp`,`ArrowDown`].includes(t.key)){let e=t.target,r=n.indexOf(e);n=n.slice(r+1)}setTimeout(()=>{e(n)}),t.preventDefault()}},$=()=>{X.value=!0};return ee(),i(W),C(X,()=>{ie()}),w(()=>{D.bodyLock&&y(t())}),w(()=>{if(!W.value)return;let e={x:0,y:0},t=t=>{let{x:n,y:r}=I.value??{x:0,y:0};e={x:Math.abs(Math.round(t.pageX)-n),y:Math.abs(Math.round(t.pageY)-r)}},n=n=>{n.pointerType!==`touch`&&(e.x<=10&&e.y<=10?n.preventDefault():W.value?.contains(n.target)||k(!1),document.removeEventListener(`pointermove`,t),L())};I.value!==null&&(document.addEventListener(`pointermove`,t),document.addEventListener(`pointerup`,n,{capture:!0,once:!0})),y(()=>{document.removeEventListener(`pointermove`,t),document.removeEventListener(`pointerup`,n,{capture:!0})})}),(e,t)=>u.position===`popper`?(b(),h(S(re),v({key:0,ref:S(U)},S(ae),{onContextmenu:t[0]||(t[0]=E(()=>{},[`prevent`])),onPlaced:$,onKeydown:Q}),{default:T(()=>[g(d,v({id:S(P),ref:S(G)},u.popupProps,{"data-dismissable-layer":``,"data-state":S(A),dir:S(N),role:`listbox`,tabindex:`-1`,style:Z.value}),{default:T(()=>[x(e.$slots,`default`)]),_:3},16,[`id`,`data-state`,`dir`,`style`])]),_:3},16)):(b(),h(p,{key:1,ref:S(U),onContextmenu:t[1]||(t[1]=E(()=>{},[`prevent`])),onPlaced:$,onKeydown:Q},{default:T(()=>[g(f,v({id:S(P),ref:S(G)},u.popupProps,{"data-dismissable-layer":``,"data-state":S(A),dir:S(N),role:`listbox`,tabindex:`-1`,style:Z.value}),{default:T(()=>[x(e.$slots,`default`)]),_:3},16,[`id`,`data-state`,`dir`,`style`])]),_:3},512))}});export{D as default};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PointerDownOutsideEvent } from "../../types/event.js";
|
|
2
2
|
import { SelectContentProps, SelectPosition } from "./types.js";
|
|
3
3
|
import "../../index.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as vue954 from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/components/select/select-content.vue.d.ts
|
|
7
7
|
declare var __VLS_8: {}, __VLS_22: {};
|
|
@@ -10,20 +10,20 @@ type __VLS_Slots = {} & {
|
|
|
10
10
|
} & {
|
|
11
11
|
default?: (props: typeof __VLS_22) => any;
|
|
12
12
|
};
|
|
13
|
-
declare const __VLS_base:
|
|
13
|
+
declare const __VLS_base: vue954.DefineComponent<SelectContentProps, {}, {}, {}, {}, vue954.ComponentOptionsMixin, vue954.ComponentOptionsMixin, {
|
|
14
14
|
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
15
15
|
pointerDownOutside: (event: PointerDownOutsideEvent) => any;
|
|
16
16
|
closeAutoFocus: (event: Event) => any;
|
|
17
|
-
}, string,
|
|
17
|
+
}, string, vue954.PublicProps, Readonly<SelectContentProps> & Readonly<{
|
|
18
18
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
19
19
|
onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
20
20
|
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
21
21
|
}>, {
|
|
22
|
-
avoidCollisions: boolean;
|
|
23
|
-
prioritizePosition: boolean;
|
|
24
22
|
position: SelectPosition;
|
|
25
23
|
bodyLock: boolean;
|
|
26
|
-
|
|
24
|
+
avoidCollisions: boolean;
|
|
25
|
+
prioritizePosition: boolean;
|
|
26
|
+
}, {}, {}, {}, string, vue954.ComponentProvideOptions, false, {}, any>;
|
|
27
27
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
28
28
|
declare const _default: typeof __VLS_export;
|
|
29
29
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { SelectGroupLabelProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue941 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/select/select-group-label.vue.d.ts
|
|
5
5
|
declare var __VLS_1: {};
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
7
|
default?: (props: typeof __VLS_1) => any;
|
|
8
8
|
};
|
|
9
|
-
declare const __VLS_base:
|
|
9
|
+
declare const __VLS_base: vue941.DefineComponent<SelectGroupLabelProps, {}, {}, {}, {}, vue941.ComponentOptionsMixin, vue941.ComponentOptionsMixin, {}, string, vue941.PublicProps, Readonly<SelectGroupLabelProps> & Readonly<{}>, {}, {}, {}, {}, string, vue941.ComponentProvideOptions, false, {}, any>;
|
|
10
10
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
11
|
declare const _default: typeof __VLS_export;
|
|
12
12
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { SelectGroupProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue969 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/select/select-group.vue.d.ts
|
|
5
5
|
declare var __VLS_1: {};
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
7
|
default?: (props: typeof __VLS_1) => any;
|
|
8
8
|
};
|
|
9
|
-
declare const __VLS_base:
|
|
9
|
+
declare const __VLS_base: vue969.DefineComponent<SelectGroupProps, {}, {}, {}, {}, vue969.ComponentOptionsMixin, vue969.ComponentOptionsMixin, {}, string, vue969.PublicProps, Readonly<SelectGroupProps> & Readonly<{}>, {}, {}, {}, {}, string, vue969.ComponentProvideOptions, false, {}, any>;
|
|
10
10
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
11
|
declare const _default: typeof __VLS_export;
|
|
12
12
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { AsTag } from "../primitive/types.js";
|
|
2
2
|
import "../primitive/index.js";
|
|
3
3
|
import { SelectItemIndicatorProps } from "./types.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as vue989 from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/components/select/select-item-indicator.vue.d.ts
|
|
7
7
|
declare var __VLS_8: {};
|
|
8
8
|
type __VLS_Slots = {} & {
|
|
9
9
|
default?: (props: typeof __VLS_8) => any;
|
|
10
10
|
};
|
|
11
|
-
declare const __VLS_base:
|
|
12
|
-
as: AsTag |
|
|
13
|
-
}, {}, {}, {}, string,
|
|
11
|
+
declare const __VLS_base: vue989.DefineComponent<SelectItemIndicatorProps, {}, {}, {}, {}, vue989.ComponentOptionsMixin, vue989.ComponentOptionsMixin, {}, string, vue989.PublicProps, Readonly<SelectItemIndicatorProps> & Readonly<{}>, {
|
|
12
|
+
as: AsTag | vue989.Component;
|
|
13
|
+
}, {}, {}, {}, string, vue989.ComponentProvideOptions, false, {}, any>;
|
|
14
14
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
15
15
|
declare const _default: typeof __VLS_export;
|
|
16
16
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { SelectItemTextProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue1005 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/select/select-item-text.vue.d.ts
|
|
5
5
|
declare var __VLS_1: {};
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
7
|
default?: (props: typeof __VLS_1) => any;
|
|
8
8
|
};
|
|
9
|
-
declare const __VLS_base:
|
|
9
|
+
declare const __VLS_base: vue1005.DefineComponent<SelectItemTextProps, {}, {}, {}, {}, vue1005.ComponentOptionsMixin, vue1005.ComponentOptionsMixin, {}, string, vue1005.PublicProps, Readonly<SelectItemTextProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1005.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{isValueEqualOrExist as e}from"../../shared/comparison.js";import{getBinaryCheckedState as t}from"../../shared/value.js";import{getActiveElement as n}from"../../shared/dom.js";import{transformPropsToContext as r}from"../../shared/vue.js";import{handleAndDispatchCustomEvent as i}from"../../shared/event.js";import{useForwardElement as a}from"../../composables/use-forward-element.js";import{Primitive as o}from"../primitive/primitive.js";import{provideSelectItemContext as s,useCollectionItem as c,useSelectContentContext as l,useSelectRootContext as u,useSelectUi as d}from"./context.js";import{SELECTION_KEYS as f,SELECT_EVENT as p}from"./shared.js";import{computed as m,createBlock as h,defineComponent as g,mergeProps as _,nextTick as v,openBlock as y,renderSlot as b,shallowRef as x,unref as S,withCtx as C,withModifiers as w}from"vue";var T=g({name:`SelectItem`,__name:`select-item`,props:{value:{},disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},emits:[`select`],setup(g,{emit:T}){let E=g,D=T,{modelValue:O,onModelValueChange:k,onOpenChange:A,isMultiple:j}=u(`SelectItem`),M=d(`item`),N=m(()=>e(O.value,E.value)),{textId:P,textValue:F,disabled:I}=s({...r(E,[`textValue`,`disabled`]),value:E.value,isSelected:N}),{onItemElementChange:L,itemProps:R}=c(()=>({textValue:F.value})),{onSelectedItemElementChange:z,onItemElementLeave:B,search:V}=l(`SelectItem`),[H,U]=a(e=>{z(e,E.value,E.disabled),L(e)}),W=m(()=>t(N.value)),G=x(!1),K=()=>{G.value=!0},q=()=>{G.value=!1};async function J(e){e.defaultPrevented||i(p,Y,{originalEvent:e,value:E.value})}async function Y(e){await v(),D(`select`,e),!e.defaultPrevented&&(I.value||(k(E.value),!j.value&&A(!1)))}async function X(e){await v(),!e.defaultPrevented&&(I.value?B():e.currentTarget?.focus({preventScroll:!0}))}async function Z(e){await v(),!e.defaultPrevented&&e.currentTarget===n()&&B()}async function Q(e){await v(),!e.defaultPrevented&&(V.value!==``&&e.key===` `||(f.includes(e.key)&&J(e),e.key===` `&&e.preventDefault()))}function $(e){e.currentTarget.focus({preventScroll:!0})}if(E.value===``)throw Error(`A <SelectItem /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.`);return(e,t)=>(y(),h(S(o),_(S(R),{ref:S(U),as:g.as,"as-child":g.asChild,class:S(M),"aria-disabled":S(I)||void 0,"data-highlighted":G.value?``:void 0,"aria-labelledby":S(P),"aria-selected":N.value,"data-disabled":S(I)?``:void 0,"data-state":W.value,role:`option`,tabindex:S(I)?void 0:-1,onFocus:K,onBlur:q,onPointerup:J,onPointerdown:$,onTouchend:t[0]
|
|
1
|
+
import{isValueEqualOrExist as e}from"../../shared/comparison.js";import{getBinaryCheckedState as t}from"../../shared/value.js";import{getActiveElement as n}from"../../shared/dom.js";import{transformPropsToContext as r}from"../../shared/vue.js";import{handleAndDispatchCustomEvent as i}from"../../shared/event.js";import{useForwardElement as a}from"../../composables/use-forward-element.js";import{Primitive as o}from"../primitive/primitive.js";import{provideSelectItemContext as s,useCollectionItem as c,useSelectContentContext as l,useSelectRootContext as u,useSelectUi as d}from"./context.js";import{SELECTION_KEYS as f,SELECT_EVENT as p}from"./shared.js";import{computed as m,createBlock as h,defineComponent as g,mergeProps as _,nextTick as v,openBlock as y,renderSlot as b,shallowRef as x,unref as S,withCtx as C,withModifiers as w}from"vue";var T=g({name:`SelectItem`,__name:`select-item`,props:{value:{},disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},emits:[`select`],setup(g,{emit:T}){let E=g,D=T,{modelValue:O,onModelValueChange:k,onOpenChange:A,isMultiple:j}=u(`SelectItem`),M=d(`item`),N=m(()=>e(O.value,E.value)),{textId:P,textValue:F,disabled:I}=s({...r(E,[`textValue`,`disabled`]),value:E.value,isSelected:N}),{onItemElementChange:L,itemProps:R}=c(()=>({textValue:F.value})),{onSelectedItemElementChange:z,onItemElementLeave:B,search:V}=l(`SelectItem`),[H,U]=a(e=>{z(e,E.value,E.disabled),L(e)}),W=m(()=>t(N.value)),G=x(!1),K=()=>{G.value=!0},q=()=>{G.value=!1};async function J(e){e.defaultPrevented||i(p,Y,{originalEvent:e,value:E.value})}async function Y(e){await v(),D(`select`,e),!e.defaultPrevented&&(I.value||(k(E.value),!j.value&&A(!1)))}async function X(e){await v(),!e.defaultPrevented&&(I.value?B():e.currentTarget?.focus({preventScroll:!0}))}async function Z(e){await v(),!e.defaultPrevented&&e.currentTarget===n()&&B()}async function Q(e){await v(),!e.defaultPrevented&&(V.value!==``&&e.key===` `||(f.includes(e.key)&&J(e),e.key===` `&&e.preventDefault()))}function $(e){e.currentTarget.focus({preventScroll:!0})}if(E.value===``)throw Error(`A <SelectItem /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.`);return(e,t)=>(y(),h(S(o),_(S(R),{ref:S(U),as:g.as,"as-child":g.asChild,class:S(M),"aria-disabled":S(I)||void 0,"data-highlighted":G.value?``:void 0,"aria-labelledby":S(P),"aria-selected":N.value,"data-disabled":S(I)?``:void 0,"data-state":W.value,role:`option`,tabindex:S(I)?void 0:-1,onFocus:K,onBlur:q,onPointerup:J,onPointerdown:$,onTouchend:t[0]||(t[0]=w(()=>{},[`prevent`,`stop`])),onPointermove:X,onPointerleave:Z,onKeydown:Q}),{default:C(()=>[b(e.$slots,`default`)]),_:3},16,[`as`,`as-child`,`class`,`aria-disabled`,`data-highlighted`,`aria-labelledby`,`aria-selected`,`data-disabled`,`data-state`,`tabindex`]))}});export{T as default};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { DefinedValue } from "../../types/common.js";
|
|
2
2
|
import "../../types/index.js";
|
|
3
3
|
import { SelectItemEvent, SelectItemProps } from "./types.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as vue974 from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/components/select/select-item.vue.d.ts
|
|
7
7
|
declare var __VLS_17: {};
|
|
8
8
|
type __VLS_Slots = {} & {
|
|
9
9
|
default?: (props: typeof __VLS_17) => any;
|
|
10
10
|
};
|
|
11
|
-
declare const __VLS_base:
|
|
11
|
+
declare const __VLS_base: vue974.DefineComponent<SelectItemProps, {}, {}, {}, {}, vue974.ComponentOptionsMixin, vue974.ComponentOptionsMixin, {
|
|
12
12
|
select: (event: SelectItemEvent<DefinedValue>) => any;
|
|
13
|
-
}, string,
|
|
13
|
+
}, string, vue974.PublicProps, Readonly<SelectItemProps> & Readonly<{
|
|
14
14
|
onSelect?: ((event: SelectItemEvent<DefinedValue>) => any) | undefined;
|
|
15
|
-
}>, {}, {}, {}, {}, string,
|
|
15
|
+
}>, {}, {}, {}, {}, string, vue974.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,13 +1,13 @@
|
|
|
1
1
|
import { DefinedValue } from "../../types/common.js";
|
|
2
2
|
import "../../types/index.js";
|
|
3
3
|
import { SelectRootProps } from "./types.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as vue946 from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/components/select/select-root.vue.d.ts
|
|
7
7
|
declare const __VLS_export: <T extends DefinedValue, M extends boolean = false>(__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:
|
|
9
|
-
"onUpdate:modelValue"?: ((value: M extends true ? T[] : T) => any) | undefined;
|
|
8
|
+
props: vue946.PublicProps & __VLS_PrettifyLocal<SelectRootProps<T, M> & {
|
|
10
9
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
10
|
+
"onUpdate:modelValue"?: ((value: M extends true ? T[] : T) => any) | undefined;
|
|
11
11
|
}> & (typeof globalThis extends {
|
|
12
12
|
__VLS_PROPS_FALLBACK: infer P;
|
|
13
13
|
} ? P : {});
|
|
@@ -19,8 +19,8 @@ declare const __VLS_export: <T extends DefinedValue, M extends boolean = false>(
|
|
|
19
19
|
open: boolean;
|
|
20
20
|
}) => any;
|
|
21
21
|
};
|
|
22
|
-
emit: ((evt: "update:
|
|
23
|
-
}>) =>
|
|
22
|
+
emit: ((evt: "update:open", value: boolean) => void) & ((evt: "update:modelValue", value: M extends true ? T[] : T) => void);
|
|
23
|
+
}>) => vue946.VNode & {
|
|
24
24
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
25
25
|
};
|
|
26
26
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { SelectScrollDownButtonProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue1010 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/select/select-scroll-down-button.vue.d.ts
|
|
5
5
|
declare var __VLS_10: {};
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
7
|
default?: (props: typeof __VLS_10) => any;
|
|
8
8
|
};
|
|
9
|
-
declare const __VLS_base:
|
|
9
|
+
declare const __VLS_base: vue1010.DefineComponent<SelectScrollDownButtonProps, {}, {}, {}, {}, vue1010.ComponentOptionsMixin, vue1010.ComponentOptionsMixin, {}, string, vue1010.PublicProps, Readonly<SelectScrollDownButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1010.ComponentProvideOptions, false, {}, any>;
|
|
10
10
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
11
|
declare const _default: typeof __VLS_export;
|
|
12
12
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { SelectScrollUpButtonProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue1000 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/select/select-scroll-up-button.vue.d.ts
|
|
5
5
|
declare var __VLS_10: {};
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
7
|
default?: (props: typeof __VLS_10) => any;
|
|
8
8
|
};
|
|
9
|
-
declare const __VLS_base:
|
|
9
|
+
declare const __VLS_base: vue1000.DefineComponent<SelectScrollUpButtonProps, {}, {}, {}, {}, vue1000.ComponentOptionsMixin, vue1000.ComponentOptionsMixin, {}, string, vue1000.PublicProps, Readonly<SelectScrollUpButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1000.ComponentProvideOptions, false, {}, any>;
|
|
10
10
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
11
|
declare const _default: typeof __VLS_export;
|
|
12
12
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { SelectSeparatorProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue984 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/select/select-separator.vue.d.ts
|
|
5
5
|
declare var __VLS_1: {};
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
7
|
default?: (props: typeof __VLS_1) => any;
|
|
8
8
|
};
|
|
9
|
-
declare const __VLS_base:
|
|
9
|
+
declare const __VLS_base: vue984.DefineComponent<SelectSeparatorProps, {}, {}, {}, {}, vue984.ComponentOptionsMixin, vue984.ComponentOptionsMixin, {}, string, vue984.PublicProps, Readonly<SelectSeparatorProps> & Readonly<{}>, {}, {}, {}, {}, string, vue984.ComponentProvideOptions, false, {}, any>;
|
|
10
10
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
11
|
declare const _default: typeof __VLS_export;
|
|
12
12
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { SelectTriggerIconProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue979 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/select/select-trigger-icon.vue.d.ts
|
|
5
5
|
declare var __VLS_1: {};
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
7
|
default?: (props: typeof __VLS_1) => any;
|
|
8
8
|
};
|
|
9
|
-
declare const __VLS_base:
|
|
9
|
+
declare const __VLS_base: vue979.DefineComponent<SelectTriggerIconProps, {}, {}, {}, {}, vue979.ComponentOptionsMixin, vue979.ComponentOptionsMixin, {}, string, vue979.PublicProps, Readonly<SelectTriggerIconProps> & Readonly<{}>, {}, {}, {}, {}, string, vue979.ComponentProvideOptions, false, {}, any>;
|
|
10
10
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
11
|
declare const _default: typeof __VLS_export;
|
|
12
12
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { AsTag } from "../primitive/types.js";
|
|
2
2
|
import "../primitive/index.js";
|
|
3
3
|
import { SelectTriggerProps } from "./types.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as vue948 from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/components/select/select-trigger.vue.d.ts
|
|
7
7
|
declare var __VLS_19: {};
|
|
8
8
|
type __VLS_Slots = {} & {
|
|
9
9
|
default?: (props: typeof __VLS_19) => any;
|
|
10
10
|
};
|
|
11
|
-
declare const __VLS_base:
|
|
12
|
-
as: AsTag |
|
|
13
|
-
}, {}, {}, {}, string,
|
|
11
|
+
declare const __VLS_base: vue948.DefineComponent<SelectTriggerProps, {}, {}, {}, {}, vue948.ComponentOptionsMixin, vue948.ComponentOptionsMixin, {}, string, vue948.PublicProps, Readonly<SelectTriggerProps> & Readonly<{}>, {
|
|
12
|
+
as: AsTag | vue948.Component;
|
|
13
|
+
}, {}, {}, {}, string, vue948.ComponentProvideOptions, false, {}, any>;
|
|
14
14
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
15
15
|
declare const _default: typeof __VLS_export;
|
|
16
16
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DefinedValue, MaybeArray } from "../../types/common.js";
|
|
2
2
|
import { SelectValueProps } from "./types.js";
|
|
3
3
|
import "../../index.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as vue959 from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/components/select/select-value.vue.d.ts
|
|
7
7
|
declare var __VLS_1: {
|
|
@@ -12,9 +12,9 @@ declare var __VLS_1: {
|
|
|
12
12
|
type __VLS_Slots = {} & {
|
|
13
13
|
default?: (props: typeof __VLS_1) => any;
|
|
14
14
|
};
|
|
15
|
-
declare const __VLS_base:
|
|
15
|
+
declare const __VLS_base: vue959.DefineComponent<SelectValueProps, {}, {}, {}, {}, vue959.ComponentOptionsMixin, vue959.ComponentOptionsMixin, {}, string, vue959.PublicProps, Readonly<SelectValueProps> & Readonly<{}>, {
|
|
16
16
|
placeholder: string;
|
|
17
|
-
}, {}, {}, {}, string,
|
|
17
|
+
}, {}, {}, {}, string, vue959.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,12 +1,12 @@
|
|
|
1
1
|
import { SelectViewportProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue964 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/select/select-viewport.vue.d.ts
|
|
5
5
|
declare var __VLS_1: {};
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
7
|
default?: (props: typeof __VLS_1) => any;
|
|
8
8
|
};
|
|
9
|
-
declare const __VLS_base:
|
|
9
|
+
declare const __VLS_base: vue964.DefineComponent<SelectViewportProps, {}, {}, {}, {}, vue964.ComponentOptionsMixin, vue964.ComponentOptionsMixin, {}, string, vue964.PublicProps, Readonly<SelectViewportProps> & Readonly<{}>, {}, {}, {}, {}, string, vue964.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,9 +1,9 @@
|
|
|
1
1
|
import { ClassValue, UiClass } from "../../types/common.js";
|
|
2
2
|
import { SeparatorUiSlot } from "./types.js";
|
|
3
3
|
import "../../index.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as vue1637 from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/components/separator/context.d.ts
|
|
7
|
-
declare const provideSeparatorUi: (ui:
|
|
7
|
+
declare const provideSeparatorUi: (ui: vue1637.ComputedRef<Partial<UiClass<SeparatorUiSlot>>>) => vue1637.ComputedRef<Partial<UiClass<SeparatorUiSlot>>>, useSeparatorUi: <S extends SeparatorUiSlot | undefined = undefined>(slot?: S | undefined) => S extends SeparatorUiSlot ? vue1637.ComputedRef<ClassValue> : vue1637.ComputedRef<Partial<UiClass<SeparatorUiSlot>>>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { provideSeparatorUi };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { SeparatorLabelProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue1735 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/separator/separator-label.vue.d.ts
|
|
5
5
|
declare var __VLS_1: {};
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
7
|
default?: (props: typeof __VLS_1) => any;
|
|
8
8
|
};
|
|
9
|
-
declare const __VLS_base:
|
|
9
|
+
declare const __VLS_base: vue1735.DefineComponent<SeparatorLabelProps, {}, {}, {}, {}, vue1735.ComponentOptionsMixin, vue1735.ComponentOptionsMixin, {}, string, vue1735.PublicProps, Readonly<SeparatorLabelProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1735.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 { DataOrientation } from "../../types/common.js";
|
|
2
2
|
import "../../types/index.js";
|
|
3
3
|
import { SeparatorRootProps } from "./types.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as vue1641 from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/components/separator/separator-root.vue.d.ts
|
|
7
7
|
declare var __VLS_1: {};
|
|
8
8
|
type __VLS_Slots = {} & {
|
|
9
9
|
default?: (props: typeof __VLS_1) => any;
|
|
10
10
|
};
|
|
11
|
-
declare const __VLS_base:
|
|
11
|
+
declare const __VLS_base: vue1641.DefineComponent<SeparatorRootProps, {}, {}, {}, {}, vue1641.ComponentOptionsMixin, vue1641.ComponentOptionsMixin, {}, string, vue1641.PublicProps, Readonly<SeparatorRootProps> & Readonly<{}>, {
|
|
12
12
|
orientation: DataOrientation;
|
|
13
13
|
decorative: boolean;
|
|
14
|
-
}, {}, {}, {}, string,
|
|
14
|
+
}, {}, {}, {}, string, vue1641.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 & {
|
|
@@ -2,10 +2,10 @@ import { ClassValue, UiClass } from "../../types/common.js";
|
|
|
2
2
|
import "../../types/index.js";
|
|
3
3
|
import { SwitchUiSlot } from "./types.js";
|
|
4
4
|
import "../../index.js";
|
|
5
|
-
import * as
|
|
5
|
+
import * as vue743 from "vue";
|
|
6
6
|
|
|
7
7
|
//#region src/components/switch/context.d.ts
|
|
8
8
|
|
|
9
|
-
declare const provideSwitchUi: (ui:
|
|
9
|
+
declare const provideSwitchUi: (ui: vue743.ComputedRef<Partial<UiClass<SwitchUiSlot>>>) => vue743.ComputedRef<Partial<UiClass<SwitchUiSlot>>>, useSwitchUi: <S extends SwitchUiSlot | undefined = undefined>(slot?: S | undefined) => S extends SwitchUiSlot ? vue743.ComputedRef<ClassValue> : vue743.ComputedRef<Partial<UiClass<SwitchUiSlot>>>;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { provideSwitchUi };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{getAriaLabel as e}from"../../shared/dom.js";import{useForwardElement as t}from"../../composables/use-forward-element.js";import{useSwitchRootContext as n,useSwitchUi as r}from"./context.js";import{computed as i,createElementBlock as a,defineComponent as o,normalizeClass as s,openBlock as c,renderSlot as l,unref as u,useAttrs as d,withKeys as f,withModifiers as p}from"vue";const m=[`id`,`aria-checked`,`aria-label`,`aria-required`,`data-disabled`,`data-state`];var h=o({name:`SwitchControl`,__name:`switch-control`,props:{id:{}},setup(o){let h=o,g=d(),{modelValue:_,dataDisabled:v,dataState:y,toggleCheck:b,required:x}=n(`SwitchControl`),[S,C]=t(),w=r(`control`),T=i(()=>e(S.value,h.id,g[`aria-label`]));return(e,t)=>(c(),a(`button`,{id:o.id,ref:u(C),class:s(u(w)),"aria-checked":u(y)===`checked`,"aria-label":T.value,"aria-required":u(x),"data-disabled":u(v),"data-state":u(y),role:`switch`,onClick:t[0]
|
|
1
|
+
import{getAriaLabel as e}from"../../shared/dom.js";import{useForwardElement as t}from"../../composables/use-forward-element.js";import{useSwitchRootContext as n,useSwitchUi as r}from"./context.js";import{computed as i,createElementBlock as a,defineComponent as o,normalizeClass as s,openBlock as c,renderSlot as l,unref as u,useAttrs as d,withKeys as f,withModifiers as p}from"vue";const m=[`id`,`aria-checked`,`aria-label`,`aria-required`,`data-disabled`,`data-state`];var h=o({name:`SwitchControl`,__name:`switch-control`,props:{id:{}},setup(o){let h=o,g=d(),{modelValue:_,dataDisabled:v,dataState:y,toggleCheck:b,required:x}=n(`SwitchControl`),[S,C]=t(),w=r(`control`),T=i(()=>e(S.value,h.id,g[`aria-label`]));return(e,t)=>(c(),a(`button`,{id:o.id,ref:u(C),class:s(u(w)),"aria-checked":u(y)===`checked`,"aria-label":T.value,"aria-required":u(x),"data-disabled":u(v),"data-state":u(y),role:`switch`,onClick:t[0]||(t[0]=(...e)=>u(b)&&u(b)(...e)),onKeydown:t[1]||(t[1]=f(p((...e)=>u(b)&&u(b)(...e),[`prevent`]),[`enter`]))},[l(e.$slots,`default`,{modelValue:u(_)})],42,m))}});export{h as default};
|