@soybeanjs/headless 0.0.9 → 0.0.11
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.js +1 -1
- package/dist/components/accordion/accordion-content.vue.d.ts +2 -2
- package/dist/components/accordion/accordion-header.js +1 -1
- package/dist/components/accordion/accordion-header.vue.d.ts +2 -2
- package/dist/components/accordion/accordion-item.js +1 -1
- package/dist/components/accordion/accordion-item.vue.d.ts +5 -5
- package/dist/components/accordion/accordion-root.js +1 -1
- package/dist/components/accordion/accordion-root.vue.d.ts +3 -3
- package/dist/components/accordion/accordion-trigger.js +1 -1
- package/dist/components/accordion/accordion-trigger.vue.d.ts +2 -2
- package/dist/components/accordion/context.d.ts +5 -4
- package/dist/components/accordion/context.js +1 -1
- package/dist/components/accordion/index.d.ts +3 -3
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/accordion/types.d.ts +4 -7
- 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.js +1 -1
- package/dist/components/alert/alert-content.vue.d.ts +2 -2
- package/dist/components/alert/alert-description.js +1 -1
- package/dist/components/alert/alert-description.vue.d.ts +2 -2
- package/dist/components/alert/alert-root.js +1 -1
- package/dist/components/alert/alert-root.vue.d.ts +4 -4
- package/dist/components/alert/alert-title.js +1 -1
- package/dist/components/alert/alert-title.vue.d.ts +2 -2
- package/dist/components/alert/context.d.ts +6 -4
- package/dist/components/alert/context.js +1 -1
- package/dist/components/alert/index.d.ts +3 -3
- package/dist/components/alert/index.js +1 -1
- package/dist/components/alert/types.d.ts +5 -8
- package/dist/components/alert-dialog/alert-dialog-close.vue.d.ts +2 -2
- package/dist/components/alert-dialog/alert-dialog-content.vue.d.ts +4 -4
- package/dist/components/alert-dialog/alert-dialog-root.vue.d.ts +4 -4
- package/dist/components/alert-dialog/index.d.ts +3 -3
- package/dist/components/alert-dialog/index.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.js +1 -1
- package/dist/components/avatar/avatar-fallback.vue.d.ts +2 -2
- package/dist/components/avatar/avatar-image.js +1 -1
- package/dist/components/avatar/avatar-image.vue.d.ts +4 -4
- package/dist/components/avatar/avatar-root.js +1 -1
- package/dist/components/avatar/avatar-root.vue.d.ts +2 -2
- package/dist/components/avatar/context.d.ts +6 -4
- package/dist/components/avatar/context.js +1 -1
- package/dist/components/avatar/index.d.ts +3 -3
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/avatar/types.d.ts +5 -8
- package/dist/components/badge/badge-content.js +1 -1
- package/dist/components/badge/badge-content.vue.d.ts +2 -2
- package/dist/components/badge/badge-root.js +1 -1
- package/dist/components/badge/badge-root.vue.d.ts +4 -4
- package/dist/components/badge/context.d.ts +6 -3
- package/dist/components/badge/context.js +1 -1
- package/dist/components/badge/index.d.ts +3 -3
- package/dist/components/badge/index.js +1 -1
- package/dist/components/badge/types.d.ts +5 -8
- 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.js +1 -1
- package/dist/components/breadcrumb/breadcrumb-item.vue.d.ts +2 -2
- package/dist/components/breadcrumb/breadcrumb-link.js +1 -1
- package/dist/components/breadcrumb/breadcrumb-link.vue.d.ts +2 -2
- package/dist/components/breadcrumb/breadcrumb-list.js +1 -1
- package/dist/components/breadcrumb/breadcrumb-list.vue.d.ts +2 -2
- package/dist/components/breadcrumb/breadcrumb-page.js +1 -1
- package/dist/components/breadcrumb/breadcrumb-page.vue.d.ts +2 -2
- package/dist/components/breadcrumb/breadcrumb-root.js +1 -1
- package/dist/components/breadcrumb/breadcrumb-root.vue.d.ts +2 -2
- package/dist/components/breadcrumb/breadcrumb-separator.js +1 -1
- package/dist/components/breadcrumb/breadcrumb-separator.vue.d.ts +2 -2
- package/dist/components/breadcrumb/context.d.ts +6 -3
- package/dist/components/breadcrumb/context.js +1 -1
- package/dist/components/breadcrumb/index.d.ts +3 -3
- package/dist/components/breadcrumb/index.js +1 -1
- package/dist/components/breadcrumb/types.d.ts +5 -8
- package/dist/components/button/button.vue.d.ts +5 -5
- package/dist/components/card/card-content.js +1 -1
- package/dist/components/card/card-content.vue.d.ts +2 -2
- package/dist/components/card/card-description.js +1 -1
- package/dist/components/card/card-description.vue.d.ts +2 -2
- package/dist/components/card/card-footer.js +1 -1
- package/dist/components/card/card-footer.vue.d.ts +2 -2
- package/dist/components/card/card-header.js +1 -1
- package/dist/components/card/card-header.vue.d.ts +2 -2
- package/dist/components/card/card-root.js +1 -1
- package/dist/components/card/card-root.vue.d.ts +2 -2
- package/dist/components/card/card-title-root.js +1 -1
- package/dist/components/card/card-title-root.vue.d.ts +2 -2
- package/dist/components/card/card-title.js +1 -1
- package/dist/components/card/card-title.vue.d.ts +2 -2
- package/dist/components/card/context.d.ts +6 -3
- package/dist/components/card/context.js +1 -1
- package/dist/components/card/index.d.ts +3 -3
- package/dist/components/card/index.js +1 -1
- package/dist/components/card/types.d.ts +5 -8
- package/dist/components/checkbox/checkbox-control.js +1 -1
- 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.js +1 -1
- package/dist/components/checkbox/checkbox-indicator.vue.d.ts +4 -4
- package/dist/components/checkbox/checkbox-label.js +1 -1
- package/dist/components/checkbox/checkbox-label.vue.d.ts +2 -2
- package/dist/components/checkbox/checkbox-root.js +1 -1
- package/dist/components/checkbox/checkbox-root.vue.d.ts +4 -4
- package/dist/components/checkbox/context.d.ts +5 -4
- package/dist/components/checkbox/context.js +1 -1
- package/dist/components/checkbox/index.d.ts +3 -3
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/checkbox/types.d.ts +4 -7
- 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.js +1 -1
- package/dist/components/collapsible/collapsible-root.vue.d.ts +6 -6
- package/dist/components/collapsible/collapsible-trigger.js +1 -1
- package/dist/components/collapsible/collapsible-trigger.vue.d.ts +4 -4
- package/dist/components/collapsible/context.d.ts +6 -4
- package/dist/components/collapsible/context.js +1 -1
- package/dist/components/collapsible/index.d.ts +3 -3
- package/dist/components/collapsible/index.js +1 -1
- package/dist/components/collapsible/types.d.ts +5 -8
- 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/context-menu/index.d.ts +2 -2
- package/dist/components/dialog/context.d.ts +5 -4
- 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-impl.js +1 -1
- package/dist/components/dialog/dialog-content.vue.d.ts +4 -4
- package/dist/components/dialog/dialog-description.js +1 -1
- package/dist/components/dialog/dialog-description.vue.d.ts +2 -2
- package/dist/components/dialog/dialog-footer.js +1 -1
- package/dist/components/dialog/dialog-footer.vue.d.ts +2 -2
- package/dist/components/dialog/dialog-header.js +1 -1
- package/dist/components/dialog/dialog-header.vue.d.ts +2 -2
- package/dist/components/dialog/dialog-overlay.js +1 -1
- 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.js +1 -1
- package/dist/components/dialog/dialog-title.vue.d.ts +2 -2
- package/dist/components/dialog/dialog-trigger.vue.d.ts +2 -2
- package/dist/components/dialog/index.d.ts +3 -3
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/dialog/types.d.ts +5 -8
- package/dist/components/dropdown-menu/dropdown-menu-content.vue.d.ts +6 -6
- package/dist/components/dropdown-menu/dropdown-menu-root.vue.d.ts +5 -5
- package/dist/components/dropdown-menu/dropdown-menu-trigger.vue.d.ts +4 -4
- package/dist/components/dropdown-menu/index.d.ts +2 -2
- package/dist/components/form/context.d.ts +6 -3
- package/dist/components/form/context.js +1 -1
- package/dist/components/form/core/shared.js +1 -0
- package/dist/components/form/core/standard.js +1 -0
- package/dist/components/form/core/types.d.ts +158 -0
- package/dist/components/form/core/use-field-array.js +1 -0
- package/dist/components/form/core/use-form-state.js +1 -0
- package/dist/components/form/core/use-form.d.ts +7 -0
- package/dist/components/form/core/use-form.js +1 -0
- package/dist/components/form/form-description.js +1 -1
- package/dist/components/form/form-description.vue.d.ts +2 -2
- package/dist/components/form/form-error.js +1 -1
- package/dist/components/form/form-error.vue.d.ts +2 -2
- package/dist/components/form/form-field.js +1 -1
- package/dist/components/form/form-field.vue.d.ts +2 -13
- package/dist/components/form/form-label.js +1 -1
- package/dist/components/form/form-label.vue.d.ts +2 -2
- package/dist/components/form/index.d.ts +7 -5
- package/dist/components/form/index.js +1 -1
- package/dist/components/form/types.d.ts +6 -11
- package/dist/components/input/context.d.ts +6 -3
- package/dist/components/input/context.js +1 -1
- package/dist/components/input/index.d.ts +3 -3
- package/dist/components/input/index.js +1 -1
- package/dist/components/input/input-control.js +1 -1
- package/dist/components/input/input-control.vue.d.ts +2 -2
- package/dist/components/input/input-root.js +1 -1
- package/dist/components/input/input-root.vue.d.ts +4 -4
- package/dist/components/input/types.d.ts +5 -8
- 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 +6 -4
- package/dist/components/layout/context.js +1 -1
- package/dist/components/layout/index.d.ts +3 -3
- package/dist/components/layout/index.js +1 -1
- package/dist/components/layout/layout-footer.js +1 -1
- package/dist/components/layout/layout-footer.vue.d.ts +2 -2
- package/dist/components/layout/layout-header.js +1 -1
- package/dist/components/layout/layout-header.vue.d.ts +2 -2
- package/dist/components/layout/layout-main.js +1 -1
- package/dist/components/layout/layout-main.vue.d.ts +2 -2
- package/dist/components/layout/layout-mobile.js +1 -1
- 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.js +1 -1
- package/dist/components/layout/layout-root.vue.d.ts +5 -5
- package/dist/components/layout/layout-sidebar.js +1 -1
- package/dist/components/layout/layout-sidebar.vue.d.ts +2 -2
- package/dist/components/layout/layout-tab.js +1 -1
- package/dist/components/layout/layout-tab.vue.d.ts +2 -2
- package/dist/components/layout/layout-trigger.js +1 -1
- package/dist/components/layout/layout-trigger.vue.d.ts +2 -2
- package/dist/components/layout/types.d.ts +13 -14
- package/dist/components/link/link.vue.d.ts +4 -4
- package/dist/components/list/context.d.ts +6 -3
- package/dist/components/list/context.js +1 -1
- package/dist/components/list/index.d.ts +3 -3
- package/dist/components/list/index.js +1 -1
- package/dist/components/list/list-content.js +1 -1
- package/dist/components/list/list-content.vue.d.ts +2 -2
- package/dist/components/list/list-description.js +1 -1
- package/dist/components/list/list-description.vue.d.ts +2 -2
- package/dist/components/list/list-item.js +1 -1
- package/dist/components/list/list-item.vue.d.ts +2 -2
- package/dist/components/list/list-root.js +1 -1
- package/dist/components/list/list-root.vue.d.ts +2 -2
- package/dist/components/list/list-title.js +1 -1
- package/dist/components/list/list-title.vue.d.ts +2 -2
- package/dist/components/list/types.d.ts +5 -8
- package/dist/components/listbox/context.d.ts +5 -4
- package/dist/components/listbox/context.js +1 -1
- package/dist/components/listbox/index.d.ts +3 -3
- package/dist/components/listbox/index.js +1 -1
- 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.vue.d.ts +4 -4
- package/dist/components/listbox/listbox-group-label.js +1 -1
- package/dist/components/listbox/listbox-group-label.vue.d.ts +2 -2
- package/dist/components/listbox/listbox-group.js +1 -1
- package/dist/components/listbox/listbox-group.vue.d.ts +2 -2
- package/dist/components/listbox/listbox-item-indicator.js +1 -1
- package/dist/components/listbox/listbox-item-indicator.vue.d.ts +4 -4
- package/dist/components/listbox/listbox-item.js +1 -1
- 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 +7 -7
- package/dist/components/listbox/listbox-virtualizer.js +1 -1
- package/dist/components/listbox/listbox-virtualizer.vue.d.ts +2 -2
- package/dist/components/listbox/types.d.ts +4 -7
- package/dist/components/menu/context.d.ts +5 -4
- package/dist/components/menu/context.js +1 -1
- package/dist/components/menu/index.d.ts +3 -3
- package/dist/components/menu/index.js +1 -1
- package/dist/components/menu/menu-checkbox-group.js +1 -1
- 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 +4 -4
- package/dist/components/menu/menu-content-impl.js +1 -1
- package/dist/components/menu/menu-content.vue.d.ts +6 -6
- package/dist/components/menu/menu-group-label.js +1 -1
- package/dist/components/menu/menu-group-label.vue.d.ts +2 -2
- package/dist/components/menu/menu-group.js +1 -1
- package/dist/components/menu/menu-group.vue.d.ts +2 -2
- package/dist/components/menu/menu-item-indicator.js +1 -1
- package/dist/components/menu/menu-item-indicator.vue.d.ts +4 -4
- package/dist/components/menu/menu-item.js +1 -1
- package/dist/components/menu/menu-item.vue.d.ts +4 -4
- package/dist/components/menu/menu-radio-group.js +1 -1
- 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 +4 -4
- package/dist/components/menu/menu-root.vue.d.ts +4 -4
- package/dist/components/menu/menu-sub-content.vue.d.ts +6 -6
- package/dist/components/menu/menu-sub-trigger.js +1 -1
- 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 +4 -7
- package/dist/components/navigation-menu/context.d.ts +5 -4
- package/dist/components/navigation-menu/context.js +1 -1
- package/dist/components/navigation-menu/index.d.ts +3 -3
- package/dist/components/navigation-menu/index.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-content-impl.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-content.vue.d.ts +4 -4
- package/dist/components/navigation-menu/navigation-menu-indicator.js +1 -1
- 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.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-link.vue.d.ts +4 -4
- package/dist/components/navigation-menu/navigation-menu-list.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-list.vue.d.ts +2 -2
- package/dist/components/navigation-menu/navigation-menu-root.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-root.vue.d.ts +5 -5
- package/dist/components/navigation-menu/navigation-menu-sub-list.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-sub-list.vue.d.ts +2 -2
- package/dist/components/navigation-menu/navigation-menu-trigger.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-trigger.vue.d.ts +4 -4
- package/dist/components/navigation-menu/navigation-menu-viewport.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-viewport.vue.d.ts +3 -3
- package/dist/components/navigation-menu/types.d.ts +5 -8
- package/dist/components/number-input/context.d.ts +5 -4
- package/dist/components/number-input/context.js +1 -1
- package/dist/components/number-input/index.d.ts +3 -3
- package/dist/components/number-input/index.js +1 -1
- 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.js +1 -1
- package/dist/components/number-input/number-input-root.vue.d.ts +4 -4
- package/dist/components/number-input/types.d.ts +5 -8
- package/dist/components/pagination/context.d.ts +6 -4
- package/dist/components/pagination/context.js +1 -1
- package/dist/components/pagination/index.d.ts +3 -3
- package/dist/components/pagination/index.js +1 -1
- 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.js +1 -1
- package/dist/components/pagination/pagination-list-item.vue.d.ts +2 -2
- package/dist/components/pagination/pagination-list.js +1 -1
- 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.js +1 -1
- package/dist/components/pagination/pagination-root.vue.d.ts +4 -4
- package/dist/components/pagination/types.d.ts +5 -8
- package/dist/components/popover/index.d.ts +3 -3
- package/dist/components/popover/index.js +1 -1
- package/dist/components/popover/popover-anchor.vue.d.ts +2 -2
- package/dist/components/popover/popover-close.vue.d.ts +4 -4
- package/dist/components/popover/popover-popup.vue.d.ts +2 -2
- package/dist/components/popover/popover-positioner.vue.d.ts +4 -4
- package/dist/components/popover/popover-root.vue.d.ts +4 -4
- package/dist/components/popover/popover-trigger.vue.d.ts +4 -4
- package/dist/components/popper/context.d.ts +5 -4
- package/dist/components/popper/context.js +1 -1
- package/dist/components/popper/index.d.ts +3 -3
- package/dist/components/popper/index.js +1 -1
- package/dist/components/popper/popper-anchor.vue.d.ts +2 -2
- package/dist/components/popper/popper-arrow.js +1 -1
- package/dist/components/popper/popper-arrow.vue.d.ts +2 -2
- package/dist/components/popper/popper-popup.js +1 -1
- package/dist/components/popper/popper-popup.vue.d.ts +2 -2
- package/dist/components/popper/popper-positioner.js +1 -1
- 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/popper/types.d.ts +4 -7
- package/dist/components/primitive/primitive.d.ts +2 -2
- package/dist/components/radio-group/context.d.ts +5 -4
- package/dist/components/radio-group/context.js +1 -1
- package/dist/components/radio-group/index.d.ts +3 -3
- package/dist/components/radio-group/index.js +1 -1
- 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.js +1 -1
- package/dist/components/radio-group/radio-group-indicator.vue.d.ts +4 -4
- package/dist/components/radio-group/radio-group-item.js +1 -1
- package/dist/components/radio-group/radio-group-item.vue.d.ts +4 -4
- package/dist/components/radio-group/radio-group-label.js +1 -1
- package/dist/components/radio-group/radio-group-label.vue.d.ts +2 -2
- package/dist/components/radio-group/radio-group-root.js +1 -1
- package/dist/components/radio-group/radio-group-root.vue.d.ts +3 -3
- package/dist/components/radio-group/types.d.ts +4 -7
- 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 +5 -4
- package/dist/components/select/context.js +1 -1
- package/dist/components/select/index.d.ts +3 -3
- package/dist/components/select/index.js +1 -1
- package/dist/components/select/select-arrow.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 +4 -4
- package/dist/components/select/select-group-label.js +1 -1
- package/dist/components/select/select-group-label.vue.d.ts +2 -2
- package/dist/components/select/select-group.js +1 -1
- package/dist/components/select/select-group.vue.d.ts +2 -2
- package/dist/components/select/select-item-indicator.js +1 -1
- package/dist/components/select/select-item-indicator.vue.d.ts +4 -4
- package/dist/components/select/select-item-text.js +1 -1
- 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 +3 -3
- package/dist/components/select/select-scroll-down-button.js +1 -1
- package/dist/components/select/select-scroll-down-button.vue.d.ts +2 -2
- package/dist/components/select/select-scroll-up-button.js +1 -1
- package/dist/components/select/select-scroll-up-button.vue.d.ts +2 -2
- package/dist/components/select/select-separator.js +1 -1
- package/dist/components/select/select-separator.vue.d.ts +2 -2
- package/dist/components/select/select-trigger-icon.js +1 -1
- package/dist/components/select/select-trigger-icon.vue.d.ts +2 -2
- package/dist/components/select/select-trigger.js +1 -1
- package/dist/components/select/select-trigger.vue.d.ts +4 -4
- package/dist/components/select/select-value.js +1 -1
- package/dist/components/select/select-value.vue.d.ts +3 -3
- package/dist/components/select/select-viewport.js +2 -2
- package/dist/components/select/select-viewport.vue.d.ts +2 -2
- package/dist/components/select/types.d.ts +4 -7
- package/dist/components/separator/context.d.ts +6 -3
- package/dist/components/separator/context.js +1 -1
- package/dist/components/separator/index.d.ts +3 -3
- package/dist/components/separator/index.js +1 -1
- package/dist/components/separator/separator-label.js +1 -1
- package/dist/components/separator/separator-label.vue.d.ts +2 -2
- package/dist/components/separator/separator-root.js +1 -1
- package/dist/components/separator/separator-root.vue.d.ts +3 -3
- package/dist/components/separator/types.d.ts +5 -8
- package/dist/components/switch/context.d.ts +6 -4
- package/dist/components/switch/context.js +1 -1
- package/dist/components/switch/index.d.ts +3 -3
- package/dist/components/switch/index.js +1 -1
- 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.js +1 -1
- package/dist/components/switch/switch-root.vue.d.ts +3 -3
- package/dist/components/switch/switch-thumb.js +1 -1
- package/dist/components/switch/switch-thumb.vue.d.ts +4 -4
- package/dist/components/switch/types.d.ts +5 -8
- package/dist/components/tabs/context.d.ts +5 -3
- package/dist/components/tabs/context.js +1 -1
- package/dist/components/tabs/index.d.ts +3 -3
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tabs/tabs-content.js +1 -1
- package/dist/components/tabs/tabs-content.vue.d.ts +2 -2
- package/dist/components/tabs/tabs-indicator.js +1 -1
- package/dist/components/tabs/tabs-indicator.vue.d.ts +2 -2
- package/dist/components/tabs/tabs-list.js +1 -1
- package/dist/components/tabs/tabs-list.vue.d.ts +2 -2
- package/dist/components/tabs/tabs-root.js +1 -1
- package/dist/components/tabs/tabs-root.vue.d.ts +5 -5
- package/dist/components/tabs/tabs-trigger.js +1 -1
- package/dist/components/tabs/tabs-trigger.vue.d.ts +4 -4
- package/dist/components/tabs/types.d.ts +5 -8
- package/dist/components/tag/tag.vue.d.ts +4 -4
- package/dist/components/textarea/context.d.ts +6 -3
- package/dist/components/textarea/context.js +1 -1
- package/dist/components/textarea/index.d.ts +3 -3
- package/dist/components/textarea/index.js +1 -1
- package/dist/components/textarea/textarea-control.js +1 -1
- package/dist/components/textarea/textarea-control.vue.d.ts +2 -2
- package/dist/components/textarea/textarea-counter.js +1 -1
- package/dist/components/textarea/textarea-counter.vue.d.ts +2 -2
- package/dist/components/textarea/textarea-root.js +1 -1
- package/dist/components/textarea/textarea-root.vue.d.ts +4 -4
- package/dist/components/textarea/types.d.ts +4 -7
- package/dist/components/toast/context.d.ts +5 -5
- package/dist/components/toast/context.js +1 -1
- package/dist/components/toast/index.d.ts +3 -3
- package/dist/components/toast/index.js +1 -1
- package/dist/components/toast/toast-action.js +1 -1
- package/dist/components/toast/toast-action.vue.d.ts +4 -4
- package/dist/components/toast/toast-close.js +1 -1
- package/dist/components/toast/toast-close.vue.d.ts +4 -4
- package/dist/components/toast/toast-description.js +1 -1
- 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.js +1 -1
- package/dist/components/toast/toast-root.vue.d.ts +5 -5
- package/dist/components/toast/toast-title.js +1 -1
- 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/toast/types.d.ts +5 -8
- package/dist/components/tooltip/index.d.ts +3 -3
- package/dist/components/tooltip/index.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.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 +6 -4
- package/dist/components/tree-menu/context.js +1 -1
- package/dist/components/tree-menu/index.d.ts +3 -3
- package/dist/components/tree-menu/index.js +1 -1
- package/dist/components/tree-menu/tree-menu-button.js +1 -1
- package/dist/components/tree-menu/tree-menu-button.vue.d.ts +4 -4
- package/dist/components/tree-menu/tree-menu-collapsible.js +1 -1
- package/dist/components/tree-menu/tree-menu-collapsible.vue.d.ts +2 -2
- package/dist/components/tree-menu/tree-menu-group-label.js +1 -1
- package/dist/components/tree-menu/tree-menu-group-label.vue.d.ts +2 -2
- package/dist/components/tree-menu/tree-menu-group-root.js +1 -1
- package/dist/components/tree-menu/tree-menu-group-root.vue.d.ts +2 -2
- package/dist/components/tree-menu/tree-menu-group.js +1 -1
- package/dist/components/tree-menu/tree-menu-group.vue.d.ts +4 -4
- package/dist/components/tree-menu/tree-menu-item.js +1 -1
- package/dist/components/tree-menu/tree-menu-item.vue.d.ts +4 -4
- package/dist/components/tree-menu/tree-menu-root.js +1 -1
- package/dist/components/tree-menu/tree-menu-root.vue.d.ts +5 -5
- package/dist/components/tree-menu/tree-menu-sub.js +1 -1
- package/dist/components/tree-menu/tree-menu-sub.vue.d.ts +4 -4
- package/dist/components/tree-menu/types.d.ts +4 -5
- 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/index.d.ts +2 -1
- package/dist/composables/index.js +1 -1
- package/dist/composables/use-collection.d.ts +6 -6
- package/dist/composables/use-direction.d.ts +2 -2
- package/dist/composables/use-dismissable-layer.d.ts +2 -2
- package/dist/composables/use-exposed-element.d.ts +2 -2
- package/dist/composables/use-forward-element.d.ts +2 -2
- package/dist/composables/use-image-loading-status.d.ts +2 -2
- package/dist/composables/use-is-using-keyboard.d.ts +2 -2
- package/dist/composables/use-kbd.d.ts +2 -2
- package/dist/composables/use-locale.d.ts +2 -2
- package/dist/composables/use-nonce.d.ts +2 -2
- package/dist/composables/use-presence.d.ts +2 -2
- package/dist/composables/use-props.d.ts +3 -3
- package/dist/composables/use-selection.d.ts +4 -4
- package/dist/composables/use-selection.js +1 -1
- package/dist/composables/use-ui-context.d.ts +8 -0
- package/dist/composables/use-ui-context.js +1 -0
- package/dist/index.d.ts +183 -181
- package/dist/index.js +1 -1
- package/dist/namespaced/index.d.ts +220 -222
- package/dist/namespaced/index.js +1 -1
- package/dist/types/common.d.ts +3 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +4 -17
- package/dist/components/form/form-field-array.js +0 -1
- package/dist/components/form/form-field-array.vue.d.ts +0 -36
- package/dist/forms/core/context.d.ts +0 -21
- package/dist/forms/core/context.js +0 -1
- package/dist/forms/core/hooks.d.ts +0 -6
- package/dist/forms/core/hooks.js +0 -1
- package/dist/forms/core/index.d.ts +0 -3
- package/dist/forms/core/shared.js +0 -1
- package/dist/forms/core/types.d.ts +0 -88
- package/dist/forms/index.d.ts +0 -8
- package/dist/forms/index.js +0 -1
- package/dist/forms/resolvers/index.d.ts +0 -2
- package/dist/forms/resolvers/valibot/index.d.ts +0 -8
- package/dist/forms/resolvers/valibot/index.js +0 -1
- package/dist/forms/resolvers/zod/index.d.ts +0 -8
- package/dist/forms/resolvers/zod/index.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{isNullish as e}from"../../shared/guard.js";import{isFormControl as t,transformPropsToContext as n}from"../../shared/vue.js";import{useControllableState as r}from"../../composables/use-controllable-state.js";import i from"../visually-hidden/visually-hidden-input.js";import a from"../roving-focus/roving-focus-group.js";import{provideRadioGroupRootContext as o,
|
|
1
|
+
import{isNullish as e}from"../../shared/guard.js";import{isFormControl as t,transformPropsToContext as n}from"../../shared/vue.js";import{useControllableState as r}from"../../composables/use-controllable-state.js";import i from"../visually-hidden/visually-hidden-input.js";import a from"../roving-focus/roving-focus-group.js";import{provideRadioGroupRootContext as o,useRadioGroupUi as s}from"./context.js";import{computed as c,createBlock as l,createCommentVNode as u,createElementVNode as d,defineComponent as f,normalizeClass as p,openBlock as m,renderSlot as h,unref as g,useTemplateRef as _,withCtx as v}from"vue";const y=[`data-disabled`,`aria-orientation`,`aria-required`];var b=f({name:`RadioGroupRoot`,__name:`radio-group-root`,props:{modelValue:{default:void 0},defaultValue:{},disabled:{type:Boolean,default:!1},orientation:{default:void 0},dir:{},loop:{type:Boolean,default:!0},name:{},required:{type:Boolean,default:!1}},emits:[`update:modelValue`],setup(f,{emit:b}){let x=f,S=b,C=s(`root`),w=_(`rootElement`),T=r(()=>x.modelValue,t=>{e(t)||S(`update:modelValue`,t)},x.defaultValue),E=c(()=>t(w.value));return o({...n(x,[`disabled`,`orientation`,`dir`,`loop`,`name`,`required`]),modelValue:T}),(e,t)=>(m(),l(g(a),{"as-child":``,orientation:f.orientation,dir:f.dir,loop:f.loop},{default:v(()=>[d(`div`,{ref_key:`rootElement`,ref:w,class:p(g(C)),role:`radiogroup`,"data-disabled":f.disabled?``:void 0,"aria-orientation":f.orientation,"aria-required":f.required},[h(e.$slots,`default`,{modelValue:g(T)}),E.value&&f.name?(m(),l(g(i),{key:0,required:f.required,disabled:f.disabled,value:g(T),name:f.name},null,8,[`required`,`disabled`,`value`,`name`])):u(`v-if`,!0)],10,y)]),_:3},8,[`orientation`,`dir`,`loop`]))}});export{b as default};
|
|
@@ -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 vue1874 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: vue1874.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
|
+
}>) => vue1874.VNode & {
|
|
22
22
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
23
23
|
};
|
|
24
24
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AcceptableBooleanValue,
|
|
1
|
+
import { AcceptableBooleanValue, DataOrientation, Direction, UiClass } from "../../types/common.js";
|
|
2
2
|
import { ForceMountProps, FormFieldCommonProps } from "../../types/component.js";
|
|
3
3
|
import "../../types/index.js";
|
|
4
4
|
import { PrimitiveProps } from "../primitive/types.js";
|
|
@@ -46,10 +46,7 @@ interface RadioGroupControlProps extends /** @vue-ignore */ButtonHTMLAttributes
|
|
|
46
46
|
id?: string;
|
|
47
47
|
}
|
|
48
48
|
interface RadioGroupIndicatorProps extends PrimitiveProps, ForceMountProps, /** @vue-ignore */HTMLAttributes {}
|
|
49
|
-
type
|
|
50
|
-
type RadioGroupUi =
|
|
51
|
-
interface RadioGroupThemeContextParams {
|
|
52
|
-
ui: ComputedRef<RadioGroupUi>;
|
|
53
|
-
}
|
|
49
|
+
type RadioGroupUiSlot = 'root' | 'item' | 'indicator' | 'label' | 'control';
|
|
50
|
+
type RadioGroupUi = UiClass<RadioGroupUiSlot>;
|
|
54
51
|
//#endregion
|
|
55
|
-
export { RadioGroupControlProps, RadioGroupIndicatorProps, RadioGroupItemEmits, RadioGroupItemProps, RadioGroupRootEmits, RadioGroupRootProps,
|
|
52
|
+
export { RadioGroupControlProps, RadioGroupIndicatorProps, RadioGroupItemEmits, RadioGroupItemProps, RadioGroupRootEmits, RadioGroupRootProps, RadioGroupUi, RadioGroupUiSlot, RadioSelectEvent };
|
|
@@ -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 vue861 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: vue861.DefineComponent<RovingFocusGroupProps, {
|
|
14
14
|
getItems: (excludeDisabled?: boolean) => CollectionItemData<Record<string, any>>[];
|
|
15
|
-
}, {}, {}, {},
|
|
15
|
+
}, {}, {}, {}, vue861.ComponentOptionsMixin, vue861.ComponentOptionsMixin, {
|
|
16
16
|
entryFocus: (event: Event) => any;
|
|
17
17
|
"update:currentTabStopId": (value: string | null | undefined) => any;
|
|
18
|
-
}, string,
|
|
18
|
+
}, string, vue861.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
23
|
loop: boolean;
|
|
24
24
|
preventScrollOnEntryFocus: boolean;
|
|
25
|
-
}, {}, {}, {}, string,
|
|
25
|
+
}, {}, {}, {}, string, vue861.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 vue856 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: vue856.DefineComponent<RovingFocusItemProps, {}, {}, {}, {}, vue856.ComponentOptionsMixin, vue856.ComponentOptionsMixin, {}, string, vue856.PublicProps, Readonly<RovingFocusItemProps> & Readonly<{}>, {
|
|
10
10
|
focusable: boolean;
|
|
11
|
-
}, {}, {}, {}, string,
|
|
11
|
+
}, {}, {}, {}, string, vue856.ComponentProvideOptions, false, {}, any>;
|
|
12
12
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
13
13
|
declare const _default: typeof __VLS_export;
|
|
14
14
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
import { ClassValue, UiClass } from "../../types/common.js";
|
|
1
2
|
import "../../types/index.js";
|
|
2
3
|
import "../../composables/index.js";
|
|
3
|
-
import {
|
|
4
|
+
import { SelectUiSlot } from "./types.js";
|
|
4
5
|
import "../../index.js";
|
|
5
|
-
import "vue";
|
|
6
|
+
import * as vue1108 from "vue";
|
|
6
7
|
|
|
7
8
|
//#region src/components/select/context.d.ts
|
|
8
9
|
|
|
9
|
-
declare const
|
|
10
|
+
declare const provideSelectUi: (ui: vue1108.ComputedRef<Partial<UiClass<SelectUiSlot>>>) => vue1108.ComputedRef<Partial<UiClass<SelectUiSlot>>>, useSelectUi: <S extends SelectUiSlot | undefined = undefined>(slot?: S | undefined) => S extends SelectUiSlot ? vue1108.ComputedRef<ClassValue> : vue1108.ComputedRef<Partial<UiClass<SelectUiSlot>>>;
|
|
10
11
|
//#endregion
|
|
11
|
-
export {
|
|
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{useDirection as a}from"../../composables/use-direction.js";import{computed as
|
|
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{useDirection as a}from"../../composables/use-direction.js";import{useUiContext as o}from"../../composables/use-ui-context.js";import{computed as s,ref as c,shallowRef as l,useId as u}from"vue";const[d,f]=r(`SelectRoot`,e=>{let{open:n}=e,r=e=>{n.value=e},i=s(()=>t(n.value)),o=a(e.dir),d=l(``),f=()=>{d.value||=`soybean-select-content-${u()}`},p=l(),m=e=>{p.value=e},h=l(),g=e=>{h.value=e},_=c(new Set),v=s(()=>Array.from(_.value)),y=s(()=>v.value.map(e=>e.value).join(`;`)),b=e=>{_.value.add(e)},x=e=>{_.value.delete(e)},S=l({x:0,y:0}),C=e=>{S.value=e},w=()=>{S.value=null};return{...e,dataState:i,onOpenChange:r,dir:o,contentId:d,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:p,useCollectionContext:m,useCollectionItem:h}=i(`Select`),[g,_]=r(`SelectContent`,t=>{let{modelValue:r,isMultiple:i,popupElement:a}=t,o=l(!1),s=l(),c=e=>{s.value=e},u=!1,d=!1,f=l(),p=(t,n,i)=>{let a=!u&&!i;(e(r.value,n)||a)&&(f.value=t)},m=l(),h=(t,n,a)=>{let o=!u&&!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&&(u=!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:_}}),[v,y]=r(`SelectGroup`,()=>{let e=l(``);return{labelId:e,initLabelId:()=>{e.value||=`soybean-select-group-label-${u()}`}}}),[b,x]=r(`SelectItem`,e=>{let t=l(e.textValue.value??``),n=l(),r=e=>{n.value=e,t.value=((t.value||e?.textContent)??``).trim()},i=l(``),a=()=>{i.value||=`soybean-select-item-text-${u()}`};return{...e,textId:i,initTextId:a,textValue:t,itemTextElement:n,onItemTextElementChange:r}}),[S,C]=r(`SelectPopupElement`,()=>{let e=l();return{popupElement:e,onPopupElementChange:t=>{e.value=t}}}),[w,T]=r(`SelectItemAlignedPosition`,e=>e),[E,D]=o(`SelectUi`);export{p as provideCollectionContext,g as provideSelectContentContext,v as provideSelectGroupContext,w as provideSelectItemAlignedPositionContext,b as provideSelectItemContext,S as provideSelectPopupElementContext,d as provideSelectRootContext,E as provideSelectUi,m as useCollectionContext,h as useCollectionItem,_ as useSelectContentContext,y as useSelectGroupContext,T as useSelectItemAlignedPositionContext,x as useSelectItemContext,C as useSelectPopupElementContext,f as useSelectRootContext,D as useSelectUi};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PortalProps } from "../portal/types.js";
|
|
2
2
|
import { _default as _default$7 } from "../portal/portal.vue.js";
|
|
3
3
|
import { PopperArrowProps } from "../popper/types.js";
|
|
4
|
-
import { SelectContentEmits, SelectContentProps, SelectGroupLabelProps, SelectGroupProps, SelectItemEmits, SelectItemEvent, SelectItemIndicatorProps, SelectItemProps, SelectItemTextProps, SelectPopupProps, SelectPosition, SelectRootEmits, SelectRootProps, SelectScrollDownButtonProps, SelectScrollUpButtonProps, SelectSeparatorProps,
|
|
4
|
+
import { SelectContentEmits, SelectContentProps, SelectGroupLabelProps, SelectGroupProps, SelectItemEmits, SelectItemEvent, SelectItemIndicatorProps, SelectItemProps, SelectItemTextProps, SelectPopupProps, SelectPosition, SelectRootEmits, SelectRootProps, SelectScrollDownButtonProps, SelectScrollUpButtonProps, SelectSeparatorProps, SelectTriggerIconProps, SelectTriggerProps, SelectUi, SelectUiSlot, SelectValueProps, SelectViewportProps } from "./types.js";
|
|
5
5
|
import { _default as _default$8 } from "./select-root.vue.js";
|
|
6
6
|
import { _default as _default$1 } from "./select-content.vue.js";
|
|
7
7
|
import { _default as _default$15 } from "./select-viewport.vue.js";
|
|
@@ -17,5 +17,5 @@ import { _default as _default$11 } from "./select-separator.vue.js";
|
|
|
17
17
|
import { _default } from "./select-arrow.vue.js";
|
|
18
18
|
import { _default as _default$10 } from "./select-scroll-up-button.vue.js";
|
|
19
19
|
import { _default as _default$9 } from "./select-scroll-down-button.vue.js";
|
|
20
|
-
import {
|
|
21
|
-
export { _default as SelectArrow, type PopperArrowProps as SelectArrowProps, _default$1 as SelectContent, type SelectContentEmits, type SelectContentProps, _default$2 as SelectGroup, _default$3 as SelectGroupLabel, type SelectGroupLabelProps, type SelectGroupProps, _default$4 as SelectItem, type SelectItemEmits, type SelectItemEvent, _default$5 as SelectItemIndicator, type SelectItemIndicatorProps, type SelectItemProps, _default$6 as SelectItemText, type SelectItemTextProps, type SelectPopupProps, _default$7 as SelectPortal, type PortalProps as SelectPortalProps, type SelectPosition, _default$8 as SelectRoot, type SelectRootEmits, type SelectRootProps, _default$9 as SelectScrollDownButton, type SelectScrollDownButtonProps, _default$10 as SelectScrollUpButton, type SelectScrollUpButtonProps, _default$11 as SelectSeparator, type SelectSeparatorProps,
|
|
20
|
+
import { provideSelectUi } from "./context.js";
|
|
21
|
+
export { _default as SelectArrow, type PopperArrowProps as SelectArrowProps, _default$1 as SelectContent, type SelectContentEmits, type SelectContentProps, _default$2 as SelectGroup, _default$3 as SelectGroupLabel, type SelectGroupLabelProps, type SelectGroupProps, _default$4 as SelectItem, type SelectItemEmits, type SelectItemEvent, _default$5 as SelectItemIndicator, type SelectItemIndicatorProps, type SelectItemProps, _default$6 as SelectItemText, type SelectItemTextProps, type SelectPopupProps, _default$7 as SelectPortal, type PortalProps as SelectPortalProps, type SelectPosition, _default$8 as SelectRoot, type SelectRootEmits, type SelectRootProps, _default$9 as SelectScrollDownButton, type SelectScrollDownButtonProps, _default$10 as SelectScrollUpButton, type SelectScrollUpButtonProps, _default$11 as SelectSeparator, type SelectSeparatorProps, _default$12 as SelectTrigger, _default$13 as SelectTriggerIcon, type SelectTriggerIconProps, type SelectTriggerProps, type SelectUi, type SelectUiSlot, _default$14 as SelectValue, type SelectValueProps, _default$15 as SelectViewport, type SelectViewportProps, provideSelectUi };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"../portal/portal.js";import{
|
|
1
|
+
import e from"../portal/portal.js";import{provideSelectUi as t}from"./context.js";import n from"./select-root.js";import r from"./select-content.js";import i from"./select-viewport.js";import a from"./select-trigger.js";import o from"./select-trigger-icon.js";import s from"./select-value.js";import c from"./select-group.js";import l from"./select-group-label.js";import u from"./select-item.js";import d from"./select-item-text.js";import f from"./select-item-indicator.js";import p from"./select-separator.js";import m from"./select-arrow.js";import h from"./select-scroll-up-button.js";import g from"./select-scroll-down-button.js";export{m as SelectArrow,r as SelectContent,c as SelectGroup,l as SelectGroupLabel,u as SelectItem,f as SelectItemIndicator,d as SelectItemText,e as SelectPortal,n as SelectRoot,g as SelectScrollDownButton,h as SelectScrollUpButton,p as SelectSeparator,a as SelectTrigger,o as SelectTriggerIcon,s as SelectValue,i as SelectViewport,t as provideSelectUi};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"../popper/popper-arrow.js";import{useSelectContentContext as t,useSelectRootContext as n,
|
|
1
|
+
import e from"../popper/popper-arrow.js";import{useSelectContentContext as t,useSelectRootContext as n,useSelectUi as r}from"./context.js";import{computed as i,createBlock as a,createCommentVNode as o,defineComponent as s,normalizeClass as c,openBlock as l,renderSlot as u,unref as d,withCtx as f}from"vue";var p=s({name:`SelectArrow`,__name:`select-arrow`,setup(s){let{open:p}=n(`SelectArrow`),{position:m}=t(`SelectArrow`),h=r(`arrow`),g=i(()=>p.value&&m.value===`popper`);return(t,n)=>g.value?(l(),a(d(e),{key:0,class:c(d(h))},{default:f(()=>[u(t.$slots,`default`)]),_:3},8,[`class`])):o(`v-if`,!0)}});export{p as default};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { PopperArrowProps } from "../popper/types.js";
|
|
2
2
|
import "./types.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue1083 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: vue1083.DefineComponent<PopperArrowProps, {}, {}, {}, {}, vue1083.ComponentOptionsMixin, vue1083.ComponentOptionsMixin, {}, string, vue1083.PublicProps, Readonly<PopperArrowProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1083.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 o}from"../../composables/use-typeahead.js";import s from"../popper/popper-positioner.js";import{provideSelectContentContext as c,useCollectionContext as l,useSelectPopupElementContext as u,useSelectRootContext as d,
|
|
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 o}from"../../composables/use-typeahead.js";import s from"../popper/popper-positioner.js";import{provideSelectContentContext as c,useCollectionContext as l,useSelectPopupElementContext as u,useSelectRootContext as d,useSelectUi as ne}from"./context.js";import{CONTENT_MARGIN as f}from"./shared.js";import re from"./select-popper-popup.js";import ie from"./select-item-aligned-popup.js";import ae from"./select-item-aligned-positioner.js";import{computed as p,createBlock as m,createVNode as h,defineComponent as g,mergeProps as _,normalizeClass 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=g({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:f},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean},reference:{}},emits:[`closeAutoFocus`,`escapeKeyDown`,`pointerDownOutside`],setup(f,{emit:g}){let D=f,O=g,k=ne(),A=p(()=>k.value?.positioner),j=p(()=>k.value?.popup),{onOpenChange:M,dataState:N,modelValue:P,isMultiple:F,dir:I,contentId:L,triggerElement:R,triggerPointerDownPosition:z,resetTriggerPointerDownPosition:B}=d(`SelectContentImpl`),{onPopupElementChange:V}=u(`SelectContentImpl`),{onContainerElementChange:H,getOrderedItems:U,getOrderedElements:W}=l(`SelectContentImpl`),[G,K]=r(),[q,J]=r(e=>{V(e),H(e)}),{search:oe,handleTypeaheadSearch:se}=o(),{pointerEvents:ce}=n(G,{disableOutsidePointerEvents:!0,onEscapeKeyDown:e=>{O(`escapeKeyDown`,e)},onPointerDownOutside:e=>{O(`pointerDownOutside`,e)},onFocusOutside:e=>{e.preventDefault()},onDismiss:()=>{M(!1)}}),{onKeydown:le}=te(G,{onOpenAutoFocus:e=>{e.preventDefault()},onCloseAutoFocus:e=>{O(`closeAutoFocus`,e),!e.defaultPrevented&&(R.value?.focus({preventScroll:!0}),e.preventDefault())}}),{isPositioned:Y,focusSelectedItem:X}=c({position:p(()=>D.position),modelValue:P,isMultiple:F,search:oe,popupElement:q}),ue=a(D,[`position`,`bodyLock`,`popupProps`]),Z=p(()=>({display:`flex`,flexDirection:`column`,outline:`none`,pointerEvents:ce.value})),Q=t=>{le(t);let n=t.ctrlKey||t.altKey||t.metaKey;if(t.key===`Tab`&&t.preventDefault(),!n&&t.key.length===1&&se(t.key,U()),[`ArrowUp`,`ArrowDown`,`Home`,`End`].includes(t.key)){let n=[...W()];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()}},$=()=>{Y.value=!0};return ee(),i(q),C(Y,()=>{X()}),w(()=>{D.bodyLock&&y(t())}),w(()=>{if(!q.value)return;let e={x:0,y:0},t=t=>{let{x:n,y:r}=z.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():q.value?.contains(n.target)||M(!1),document.removeEventListener(`pointermove`,t),B())};z.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)=>f.position===`popper`?(b(),m(S(s),_({key:0,ref:S(K)},S(ue),{class:A.value,onContextmenu:t[0]||=E(()=>{},[`prevent`]),onPlaced:$,onKeydown:Q}),{default:T(()=>[h(re,_({id:S(L),ref:S(J)},f.popupProps,{class:j.value,"data-dismissable-layer":``,"data-state":S(N),dir:S(I),role:`listbox`,tabindex:`-1`,style:Z.value}),{default:T(()=>[x(e.$slots,`default`)]),_:3},16,[`id`,`class`,`data-state`,`dir`,`style`])]),_:3},16,[`class`])):(b(),m(ae,{key:1,ref:S(K),class:v(A.value),onContextmenu:t[1]||=E(()=>{},[`prevent`]),onPlaced:$,onKeydown:Q},{default:T(()=>[h(ie,_({id:S(L),ref:S(J)},f.popupProps,{class:j.value,"data-dismissable-layer":``,"data-state":S(N),dir:S(I),role:`listbox`,tabindex:`-1`,style:Z.value}),{default:T(()=>[x(e.$slots,`default`)]),_:3},16,[`id`,`class`,`data-state`,`dir`,`style`])]),_:3},8,[`class`]))}});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 vue1020 from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/components/select/select-content.vue.d.ts
|
|
7
7
|
declare var __VLS_8: {}, __VLS_22: {};
|
|
@@ -10,11 +10,11 @@ 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: vue1020.DefineComponent<SelectContentProps, {}, {}, {}, {}, vue1020.ComponentOptionsMixin, vue1020.ComponentOptionsMixin, {
|
|
14
14
|
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
15
15
|
pointerDownOutside: (event: PointerDownOutsideEvent) => any;
|
|
16
16
|
closeAutoFocus: (event: Event) => any;
|
|
17
|
-
}, string,
|
|
17
|
+
}, string, vue1020.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;
|
|
@@ -23,7 +23,7 @@ declare const __VLS_base: vue903.DefineComponent<SelectContentProps, {}, {}, {},
|
|
|
23
23
|
prioritizePosition: boolean;
|
|
24
24
|
position: SelectPosition;
|
|
25
25
|
bodyLock: boolean;
|
|
26
|
-
}, {}, {}, {}, string,
|
|
26
|
+
}, {}, {}, {}, string, vue1020.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 +1 @@
|
|
|
1
|
-
import{useSelectGroupContext as e,
|
|
1
|
+
import{useSelectGroupContext as e,useSelectUi as t}from"./context.js";import{createElementBlock as n,defineComponent as r,normalizeClass as i,openBlock as a,renderSlot as o,unref as s}from"vue";const c=[`id`];var l=r({name:`SelectGroupLabel`,__name:`select-group-label`,setup(r){let{labelId:l}=e(`SelectGroupLabel`),u=t(`groupLabel`);return(e,t)=>(a(),n(`div`,{id:s(l),class:i(s(u))},[o(e.$slots,`default`)],10,c))}});export{l as default};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { SelectGroupLabelProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue1051 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: vue1051.DefineComponent<SelectGroupLabelProps, {}, {}, {}, {}, vue1051.ComponentOptionsMixin, vue1051.ComponentOptionsMixin, {}, string, vue1051.PublicProps, Readonly<SelectGroupLabelProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1051.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{provideSelectGroupContext as e,
|
|
1
|
+
import{provideSelectGroupContext as e,useSelectUi as t}from"./context.js";import{createElementBlock as n,defineComponent as r,normalizeClass as i,openBlock as a,renderSlot as o,unref as s}from"vue";const c=[`aria-labelledby`];var l=r({name:`SelectGroup`,__name:`select-group`,setup(r){let{labelId:l,initLabelId:u}=e(),d=t(`group`);return u(),(e,t)=>(a(),n(`div`,{class:i(s(d)),"aria-labelledby":s(l),role:`group`},[o(e.$slots,`default`)],10,c))}});export{l as default};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { SelectGroupProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue1046 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: vue1046.DefineComponent<SelectGroupProps, {}, {}, {}, {}, vue1046.ComponentOptionsMixin, vue1046.ComponentOptionsMixin, {}, string, vue1046.PublicProps, Readonly<SelectGroupProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1046.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{Primitive as e}from"../primitive/primitive.js";import{useSelectItemContext as t,
|
|
1
|
+
import{Primitive as e}from"../primitive/primitive.js";import{useSelectItemContext as t,useSelectUi as n}from"./context.js";import{createBlock as r,createCommentVNode as i,defineComponent as a,normalizeClass as o,openBlock as s,renderSlot as c,unref as l,withCtx as u}from"vue";var d=a({name:`SelectItemIndicator`,__name:`select-item-indicator`,props:{asChild:{type:Boolean},as:{default:`span`}},setup(a){let{isSelected:d}=t(`SelectItemIndicator`),f=n(`itemIndicator`);return(t,n)=>l(d)?(s(),r(l(e),{key:0,as:a.as,"as-child":a.asChild,class:o(l(f)),"aria-hidden":`true`},{default:u(()=>[c(t.$slots,`default`)]),_:3},8,[`as`,`as-child`,`class`])):i(`v-if`,!0)}});export{d as default};
|
|
@@ -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 vue1066 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: vue1066.DefineComponent<SelectItemIndicatorProps, {}, {}, {}, {}, vue1066.ComponentOptionsMixin, vue1066.ComponentOptionsMixin, {}, string, vue1066.PublicProps, Readonly<SelectItemIndicatorProps> & Readonly<{}>, {
|
|
12
|
+
as: AsTag | vue1066.Component;
|
|
13
|
+
}, {}, {}, {}, string, vue1066.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 +1 @@
|
|
|
1
|
-
import{useForwardElement as e}from"../../composables/use-forward-element.js";import{useSelectContentContext as t,useSelectItemContext as n,useSelectRootContext as r,
|
|
1
|
+
import{useForwardElement as e}from"../../composables/use-forward-element.js";import{useSelectContentContext as t,useSelectItemContext as n,useSelectRootContext as r,useSelectUi as i}from"./context.js";import{computed as a,createElementBlock as o,defineComponent as s,normalizeClass as c,onMounted as l,onUnmounted as u,openBlock as d,renderSlot as f,unref as p}from"vue";const m=[`id`];var h=s({name:`SelectItemText`,__name:`select-item-text`,setup(s){let{onOptionAdd:h,onOptionRemove:g}=r(`SelectItemText`),{onSelectedItemTextElementChange:_}=t(`SelectItemText`),{onItemTextElementChange:v,value:y,disabled:b,textId:x,initTextId:S}=n(`SelectItemText`),[C,w]=e(e=>{v(e),_(e,y,b.value??!1)}),T=i(`itemText`),E=a(()=>({value:y,disabled:b.value??!1,textContent:C.value?.textContent??y?.toString()??``}));return S(),l(()=>{h(E.value)}),u(()=>{g(E.value)}),(e,t)=>(d(),o(`span`,{id:p(x),ref:p(w),class:c(p(T))},[f(e.$slots,`default`)],10,m))}});export{h as default};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { SelectItemTextProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue1061 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: vue1061.DefineComponent<SelectItemTextProps, {}, {}, {}, {}, vue1061.ComponentOptionsMixin, vue1061.ComponentOptionsMixin, {}, string, vue1061.PublicProps, Readonly<SelectItemTextProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1061.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,
|
|
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]||=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 vue1056 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: vue1056.DefineComponent<SelectItemProps, {}, {}, {}, {}, vue1056.ComponentOptionsMixin, vue1056.ComponentOptionsMixin, {
|
|
12
12
|
select: (event: SelectItemEvent<DefinedValue>) => any;
|
|
13
|
-
}, string,
|
|
13
|
+
}, string, vue1056.PublicProps, Readonly<SelectItemProps> & Readonly<{
|
|
14
14
|
onSelect?: ((event: SelectItemEvent<DefinedValue>) => any) | undefined;
|
|
15
|
-
}>, {}, {}, {}, {}, string,
|
|
15
|
+
}>, {}, {}, {}, {}, string, vue1056.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,11 +1,11 @@
|
|
|
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 vue1018 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:
|
|
8
|
+
props: vue1018.PublicProps & __VLS_PrettifyLocal<SelectRootProps<T, M> & {
|
|
9
9
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
10
10
|
"onUpdate:modelValue"?: ((value: M extends true ? T[] : T) => any) | undefined;
|
|
11
11
|
}> & (typeof globalThis extends {
|
|
@@ -20,7 +20,7 @@ declare const __VLS_export: <T extends DefinedValue, M extends boolean = false>(
|
|
|
20
20
|
}) => any;
|
|
21
21
|
};
|
|
22
22
|
emit: ((evt: "update:open", value: boolean) => void) & ((evt: "update:modelValue", value: M extends true ? T[] : T) => void);
|
|
23
|
-
}>) =>
|
|
23
|
+
}>) => vue1018.VNode & {
|
|
24
24
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
25
25
|
};
|
|
26
26
|
declare const _default: typeof __VLS_export;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useForwardElement as e}from"../../composables/use-forward-element.js";import{useSelectContentContext as t,useSelectItemAlignedPositionContext as n,
|
|
1
|
+
import{useForwardElement as e}from"../../composables/use-forward-element.js";import{useSelectContentContext as t,useSelectItemAlignedPositionContext as n,useSelectUi as r}from"./context.js";import i from"./select-scroll-button-impl.js";import{createBlock as a,createCommentVNode as o,defineComponent as s,normalizeClass as c,onWatcherCleanup as l,openBlock as u,renderSlot as d,shallowRef as f,unref as p,watchEffect as m,withCtx as h}from"vue";var g=s({name:`SelectScrollDownButton`,__name:`select-scroll-down-button`,props:{asChild:{type:Boolean},as:{}},setup(s){let{selectedItemElement:g,viewportElement:_,isPositioned:v}=t(`SelectScrollDownButton`),y=n(),[b,x]=e(e=>{y?.onScrollButtonChange(e)}),S=r(`scrollDownButton`),C=()=>{_.value&&g.value&&(_.value.scrollTop+=g.value.offsetHeight)},w=f(!1);return m(()=>{if(!_.value||!v.value)return;let e=_.value;function t(){let t=e.scrollHeight-e.clientHeight;w.value=Math.ceil(e.scrollTop)<t}t(),e.addEventListener(`scroll`,t),l(()=>{e.removeEventListener(`scroll`,t)})}),(e,t)=>w.value?(u(),a(i,{key:0,ref:p(x),as:s.as,"as-child":s.asChild,class:c(p(S)),onAutoScroll:C},{default:h(()=>[d(e.$slots,`default`)]),_:3},8,[`as`,`as-child`,`class`])):o(`v-if`,!0)}});export{g as default};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { SelectScrollDownButtonProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue1098 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: vue1098.DefineComponent<SelectScrollDownButtonProps, {}, {}, {}, {}, vue1098.ComponentOptionsMixin, vue1098.ComponentOptionsMixin, {}, string, vue1098.PublicProps, Readonly<SelectScrollDownButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1098.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{useForwardElement as e}from"../../composables/use-forward-element.js";import{useSelectContentContext as t,useSelectItemAlignedPositionContext as n,
|
|
1
|
+
import{useForwardElement as e}from"../../composables/use-forward-element.js";import{useSelectContentContext as t,useSelectItemAlignedPositionContext as n,useSelectUi as r}from"./context.js";import i from"./select-scroll-button-impl.js";import{createBlock as a,createCommentVNode as o,defineComponent as s,normalizeClass as c,onWatcherCleanup as l,openBlock as u,renderSlot as d,shallowRef as f,unref as p,watchEffect as m,withCtx as h}from"vue";var g=s({name:`SelectScrollUpButton`,__name:`select-scroll-up-button`,props:{asChild:{type:Boolean},as:{}},setup(s){let{selectedItemElement:g,viewportElement:_,isPositioned:v}=t(`SelectScrollDownButton`),y=n(),[b,x]=e(e=>{y?.onScrollButtonChange(e)}),S=r(`scrollUpButton`),C=()=>{_.value&&g.value&&(_.value.scrollTop-=g.value.offsetHeight)},w=f(!1);return m(()=>{if(!_.value||!v.value)return;let e=_.value;function t(){w.value=e.scrollTop>0}t(),e.addEventListener(`scroll`,t),l(()=>{e.removeEventListener(`scroll`,t)})}),(e,t)=>w.value?(u(),a(i,{key:0,ref:p(x),as:s.as,"as-child":s.asChild,class:c(p(S)),onAutoScroll:C},{default:h(()=>[d(e.$slots,`default`)]),_:3},8,[`as`,`as-child`,`class`])):o(`v-if`,!0)}});export{g as default};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { SelectScrollUpButtonProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue1103 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: vue1103.DefineComponent<SelectScrollUpButtonProps, {}, {}, {}, {}, vue1103.ComponentOptionsMixin, vue1103.ComponentOptionsMixin, {}, string, vue1103.PublicProps, Readonly<SelectScrollUpButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1103.ComponentProvideOptions, false, {}, any>;
|
|
10
10
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
11
|
declare const _default: typeof __VLS_export;
|
|
12
12
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{useSelectUi as e}from"./context.js";import{createElementBlock as t,defineComponent as n,normalizeClass as r,openBlock as i,renderSlot as a,unref as o}from"vue";var s=n({name:`SelectSeparator`,__name:`select-separator`,setup(n){let s=e(`separator`);return(e,n)=>(i(),t(`div`,{class:r(o(s)),role:`separator`,"aria-orientation":`horizontal`},[a(e.$slots,`default`)],2))}});export{s as default};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { SelectSeparatorProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue1072 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: vue1072.DefineComponent<SelectSeparatorProps, {}, {}, {}, {}, vue1072.ComponentOptionsMixin, vue1072.ComponentOptionsMixin, {}, string, vue1072.PublicProps, Readonly<SelectSeparatorProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1072.ComponentProvideOptions, false, {}, any>;
|
|
10
10
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
11
|
declare const _default: typeof __VLS_export;
|
|
12
12
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{useSelectUi as e}from"./context.js";import{createElementBlock as t,defineComponent as n,normalizeClass as r,openBlock as i,renderSlot as a,unref as o}from"vue";var s=n({name:`SelectTriggerIcon`,__name:`select-trigger-icon`,setup(n){let s=e(`triggerIcon`);return(e,n)=>(i(),t(`span`,{class:r(o(s)),"aria-hidden":`true`},[a(e.$slots,`default`)],2))}});export{s as default};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { SelectTriggerIconProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue1036 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: vue1036.DefineComponent<SelectTriggerIconProps, {}, {}, {}, {}, vue1036.ComponentOptionsMixin, vue1036.ComponentOptionsMixin, {}, string, vue1036.PublicProps, Readonly<SelectTriggerIconProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1036.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{useForwardElement as e}from"../../composables/use-forward-element.js";import{useTypeahead as t}from"../../composables/use-typeahead.js";import{Primitive as n}from"../primitive/primitive.js";import r from"../popper/popper-anchor.js";import{useCollectionContext as i,useSelectRootContext as a,
|
|
1
|
+
import{useForwardElement as e}from"../../composables/use-forward-element.js";import{useTypeahead as t}from"../../composables/use-typeahead.js";import{Primitive as n}from"../primitive/primitive.js";import r from"../popper/popper-anchor.js";import{useCollectionContext as i,useSelectRootContext as a,useSelectUi as o}from"./context.js";import{OPEN_KEYS as s,shouldShowPlaceholder as c}from"./shared.js";import{computed as l,createBlock as u,createVNode as d,defineComponent as f,normalizeClass as p,openBlock as m,renderSlot as h,unref as g,withCtx as _,withModifiers as v}from"vue";var y=f({name:`SelectTrigger`,__name:`select-trigger`,props:{disabled:{type:Boolean},reference:{},asChild:{type:Boolean},as:{default:`button`}},setup(f){let y=f,{open:b,dataState:x,modelValue:S,disabled:C,required:w,contentId:T,dir:E,initContentId:D,onTriggerElementChange:O,onOpenChange:k,setTriggerPointerDownPosition:A}=a(`SelectTrigger`),[j,M]=e(O),{getOrderedItems:N}=i(`SelectTrigger`),{search:P,handleTypeaheadSearch:F,resetTypeahead:I}=t(),L=o(`trigger`),R=l(()=>C.value||y.disabled),z=l(()=>c(S.value)?``:void 0),B=l(()=>y.as===`button`?`button`:void 0),V=()=>{R.value||(k(!0),I())},H=e=>{V();let{pageX:t,pageY:n}=e;A({x:Math.round(t),y:Math.round(n)})},U=e=>{e.currentTarget?.focus()},W=e=>{if(e.pointerType===`touch`){e.preventDefault();return}let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),e.button===0&&e.ctrlKey===!1&&(H(e),e.preventDefault())},G=e=>{e.pointerType===`touch`&&H(e)},K=e=>{let t=P.value!==``;if(!(e.ctrlKey||e.altKey||e.metaKey)&&e.key.length===1&&t&&e.key===` `)return;let n=N();F(e.key,n),s.includes(e.key)&&(V(),e.preventDefault())};return D(),(e,t)=>(m(),u(g(r),{"as-child":``,reference:f.reference},{default:_(()=>[d(g(n),{ref:g(M),as:f.as,"as-child":f.asChild,class:p(g(L)),"aria-controls":g(T),"aria-expanded":g(b)||!1,"aria-required":g(w),"aria-autocomplete":`none`,disabled:R.value,dir:g(E),"data-state":g(x),"data-disabled":R.value?``:void 0,"data-placeholder":z.value,role:`combobox`,type:B.value,onClick:U,onPointerdown:W,onPointerup:v(G,[`prevent`]),onKeydown:K},{default:_(()=>[h(e.$slots,`default`)]),_:3},8,[`as`,`as-child`,`class`,`aria-controls`,`aria-expanded`,`aria-required`,`disabled`,`dir`,`data-state`,`data-disabled`,`data-placeholder`,`type`])]),_:3},8,[`reference`]))}});export{y as default};
|
|
@@ -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 vue1030 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: vue1030.DefineComponent<SelectTriggerProps, {}, {}, {}, {}, vue1030.ComponentOptionsMixin, vue1030.ComponentOptionsMixin, {}, string, vue1030.PublicProps, Readonly<SelectTriggerProps> & Readonly<{}>, {
|
|
12
|
+
as: AsTag | vue1030.Component;
|
|
13
|
+
}, {}, {}, {}, string, vue1030.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 +1 @@
|
|
|
1
|
-
import{useForwardElement as e}from"../../composables/use-forward-element.js";import{useSelectRootContext as t,
|
|
1
|
+
import{useForwardElement as e}from"../../composables/use-forward-element.js";import{useSelectRootContext as t,useSelectUi as n}from"./context.js";import{computed as r,createElementBlock as i,createTextVNode as a,defineComponent as o,normalizeClass as s,openBlock as c,renderSlot as l,toDisplayString as u,unref as d}from"vue";const f=[`data-placeholder`];var p=o({name:`SelectValue`,__name:`select-value`,props:{placeholder:{default:``}},setup(o){let p=o,{modelValue:m,options:h,onValueElementChange:g}=t(`SelectValue`),[_,v]=e(g),y=n(`value`),b=r(()=>{let e=[],t=e=>h.value.find(t=>e===t.value);return e=Array.isArray(m.value)?m.value.map(e=>t(e)?.textContent??``):[t(m.value)?.textContent??``],e.filter(Boolean)}),x=r(()=>b.value.length?b.value.join(`, `):p.placeholder);return(e,t)=>(c(),i(`span`,{ref:d(v),class:s(d(y)),"data-placeholder":b.value.length?void 0:p.placeholder,style:{"pointer-events":`none`}},[l(e.$slots,`default`,{modelValue:d(m),selectedLabel:b.value,slotText:x.value},()=>[a(u(x.value),1)])],10,f))}});export{p as default};
|