@soybeanjs/headless 0.15.5 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/_icon/types.d.ts +9 -0
- package/dist/components/accordion/types.d.ts +87 -0
- package/dist/components/affix/types.d.ts +39 -0
- package/dist/components/alert/types.d.ts +78 -0
- package/dist/components/anchor/anchor-compact.js +1 -1
- package/dist/components/anchor/{anchor-compact-item.js → anchor-item-compact.js} +1 -1
- package/dist/components/anchor/anchor-item-compact.vue.d.ts +8 -0
- package/dist/components/anchor/anchor-link.js +1 -1
- package/dist/components/anchor/anchor-root.vue.d.ts +1 -1
- package/dist/components/anchor/index.d.ts +5 -4
- package/dist/components/anchor/index.js +1 -1
- package/dist/components/anchor/types.d.ts +122 -10
- package/dist/components/arrow/types.d.ts +3 -0
- package/dist/components/aspect-ratio/types.d.ts +3 -0
- package/dist/components/autocomplete/autocomplete-compact.js +1 -1
- package/dist/components/autocomplete/autocomplete-compact.vue.d.ts +2 -2
- package/dist/components/autocomplete/autocomplete-input.js +1 -1
- package/dist/components/autocomplete/autocomplete-input.vue.d.ts +2 -2
- package/dist/components/autocomplete/autocomplete-root.js +1 -1
- package/dist/components/autocomplete/autocomplete-root.vue.d.ts +15 -5
- package/dist/components/autocomplete/context.d.ts +2 -2
- package/dist/components/autocomplete/context.js +1 -1
- package/dist/components/autocomplete/index.d.ts +17 -13
- package/dist/components/autocomplete/index.js +1 -1
- package/dist/components/autocomplete/types.d.ts +159 -32
- package/dist/components/avatar/types.d.ts +18 -0
- package/dist/components/backtop/backtop.vue.d.ts +9 -3
- package/dist/components/backtop/index.d.ts +2 -2
- package/dist/components/backtop/types.d.ts +19 -12
- package/dist/components/badge/types.d.ts +21 -0
- package/dist/components/bottom-sheet/bottom-sheet-compact.js +1 -1
- package/dist/components/bottom-sheet/bottom-sheet-root-nested.js +1 -1
- package/dist/components/bottom-sheet/bottom-sheet-root-nested.vue.d.ts +2 -2
- package/dist/components/bottom-sheet/bottom-sheet-root.js +1 -1
- package/dist/components/bottom-sheet/types.d.ts +99 -0
- package/dist/components/breadcrumb/index.d.ts +2 -2
- package/dist/components/breadcrumb/types.d.ts +103 -1
- package/dist/components/button/types.d.ts +16 -1
- package/dist/components/calendar/calendar-cell-trigger.js +1 -0
- package/dist/components/calendar/calendar-cell-trigger.vue.d.ts +28 -0
- package/dist/components/calendar/calendar-cell.js +1 -0
- package/dist/components/{autocomplete/autocomplete-anchor.vue.d.ts → calendar/calendar-cell.vue.d.ts} +3 -3
- package/dist/components/calendar/calendar-compact.js +1 -0
- package/dist/components/calendar/calendar-compact.vue.d.ts +23 -0
- package/dist/components/calendar/calendar-grid-body.js +1 -0
- package/dist/components/{combobox/combobox-item-indicator.vue.d.ts → calendar/calendar-grid-body.vue.d.ts} +3 -3
- package/dist/components/calendar/calendar-grid-head.js +1 -0
- package/dist/components/calendar/calendar-grid-head.vue.d.ts +21 -0
- package/dist/components/calendar/calendar-grid-row.js +1 -0
- package/dist/components/calendar/calendar-grid-row.vue.d.ts +21 -0
- package/dist/components/calendar/calendar-grid.js +1 -0
- package/dist/components/calendar/calendar-grid.vue.d.ts +21 -0
- package/dist/components/calendar/calendar-head-cell.js +1 -0
- package/dist/components/calendar/calendar-head-cell.vue.d.ts +21 -0
- package/dist/components/calendar/calendar-header.js +1 -0
- package/dist/components/calendar/calendar-header.vue.d.ts +21 -0
- package/dist/components/calendar/calendar-heading.js +1 -0
- package/dist/components/calendar/calendar-heading.vue.d.ts +22 -0
- package/dist/components/calendar/calendar-next.js +1 -0
- package/dist/components/calendar/calendar-next.vue.d.ts +24 -0
- package/dist/components/calendar/calendar-prev.js +1 -0
- package/dist/components/calendar/calendar-prev.vue.d.ts +24 -0
- package/dist/components/calendar/calendar-root.js +1 -0
- package/dist/components/calendar/calendar-root.vue.d.ts +25 -0
- package/dist/components/calendar/context.d.ts +9 -0
- package/dist/components/calendar/context.js +1 -0
- package/dist/components/calendar/index.d.ts +16 -0
- package/dist/components/calendar/index.js +1 -0
- package/dist/components/calendar/types.d.ts +528 -0
- package/dist/components/calendar/use-calendar.d.ts +45 -0
- package/dist/components/calendar/use-calendar.js +1 -0
- package/dist/components/card/card-compact.js +1 -0
- package/dist/components/card/card-compact.vue.d.ts +19 -0
- package/dist/components/card/card-root.vue.d.ts +1 -1
- package/dist/components/card/index.d.ts +10 -9
- package/dist/components/card/index.js +1 -1
- package/dist/components/card/types.d.ts +112 -1
- package/dist/components/carousel/carousel-root.vue.d.ts +39 -2
- package/dist/components/carousel/index.d.ts +4 -2
- package/dist/components/carousel/types.d.ts +50 -8
- package/dist/components/checkbox/checkbox-group-root.js +1 -1
- package/dist/components/checkbox/checkbox-root.js +1 -1
- package/dist/components/checkbox/types.d.ts +111 -0
- package/dist/components/clipboard/types.d.ts +42 -0
- package/dist/components/collapsible/collapsible-root.vue.d.ts +1 -1
- package/dist/components/collapsible/types.d.ts +18 -0
- package/dist/components/color-area/color-area-root.vue.d.ts +4 -4
- package/dist/components/color-area/types.d.ts +60 -0
- package/dist/components/color-field/color-field-root.vue.d.ts +3 -3
- package/dist/components/color-field/types.d.ts +51 -0
- package/dist/components/color-picker/color-picker-root.vue.d.ts +4 -4
- package/dist/components/color-picker/types.d.ts +39 -0
- package/dist/components/color-slider/color-slider-root.vue.d.ts +4 -4
- package/dist/components/color-slider/types.d.ts +60 -0
- package/dist/components/color-swatch/types.d.ts +9 -0
- package/dist/components/color-swatch-picker/color-swatch-picker-root.vue.d.ts +2 -2
- package/dist/components/color-swatch-picker/types.d.ts +27 -0
- package/dist/components/combobox/combobox-arrow.js +1 -1
- package/dist/components/combobox/combobox-arrow.vue.d.ts +2 -2
- package/dist/components/combobox/combobox-compact.js +1 -1
- package/dist/components/combobox/combobox-compact.vue.d.ts +2 -2
- package/dist/components/combobox/combobox-content-impl.js +1 -1
- package/dist/components/combobox/combobox-group.vue.d.ts +2 -2
- package/dist/components/combobox/combobox-input.js +1 -1
- package/dist/components/combobox/combobox-item.js +1 -1
- package/dist/components/combobox/combobox-root.js +1 -1
- package/dist/components/combobox/combobox-root.vue.d.ts +2 -2
- package/dist/components/combobox/combobox-trigger.js +1 -1
- package/dist/components/combobox/combobox-virtualizer.js +1 -1
- package/dist/components/combobox/context.js +1 -1
- package/dist/components/combobox/index.d.ts +12 -10
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/combobox/types.d.ts +247 -20
- package/dist/components/command/command-compact.js +1 -1
- package/dist/components/command/command-compact.vue.d.ts +2 -2
- package/dist/components/command/types.d.ts +148 -1
- package/dist/components/config-provider/config-provider.vue.d.ts +1 -1
- package/dist/components/config-provider/types.d.ts +3 -0
- package/dist/components/context-menu/context-menu-checkbox-compact.js +1 -1
- package/dist/components/context-menu/context-menu-checkbox-compact.vue.d.ts +2 -2
- package/dist/components/context-menu/context-menu-compact.js +1 -1
- package/dist/components/context-menu/context-menu-compact.vue.d.ts +2 -2
- package/dist/components/context-menu/context-menu-radio-compact.js +1 -1
- package/dist/components/context-menu/context-menu-radio-compact.vue.d.ts +2 -2
- package/dist/components/context-menu/context-menu-root.js +1 -1
- package/dist/components/context-menu/context-menu-wrapper-compact.js +1 -1
- package/dist/components/context-menu/context-menu-wrapper-compact.vue.d.ts +2 -2
- package/dist/components/context-menu/index.d.ts +2 -2
- package/dist/components/context-menu/index.js +1 -1
- package/dist/components/context-menu/types.d.ts +78 -0
- package/dist/components/date-field/context.d.ts +9 -0
- package/dist/components/date-field/context.js +1 -0
- package/dist/components/date-field/date-field-compact.js +1 -0
- package/dist/components/date-field/date-field-compact.vue.d.ts +15 -0
- package/dist/components/date-field/date-field-input.js +1 -0
- package/dist/components/date-field/date-field-input.vue.d.ts +21 -0
- package/dist/components/date-field/date-field-root.js +1 -0
- package/dist/components/date-field/date-field-root.vue.d.ts +42 -0
- package/dist/components/date-field/index.d.ts +6 -0
- package/dist/components/date-field/index.js +1 -0
- package/dist/components/date-field/types.d.ts +214 -0
- package/dist/components/date-picker/context.d.ts +9 -0
- package/dist/components/date-picker/context.js +1 -0
- package/dist/components/date-picker/date-picker-compact.js +1 -0
- package/dist/components/date-picker/date-picker-compact.vue.d.ts +27 -0
- package/dist/components/date-picker/date-picker-content.js +1 -0
- package/dist/components/date-picker/date-picker-content.vue.d.ts +33 -0
- package/dist/components/date-picker/date-picker-root.js +1 -0
- package/dist/components/date-picker/date-picker-root.vue.d.ts +38 -0
- package/dist/components/date-picker/index.d.ts +9 -0
- package/dist/components/date-picker/index.js +1 -0
- package/dist/components/date-picker/types.d.ts +290 -0
- package/dist/components/date-range-field/context.d.ts +9 -0
- package/dist/components/date-range-field/context.js +1 -0
- package/dist/components/date-range-field/date-range-field-compact.js +1 -0
- package/dist/components/date-range-field/date-range-field-compact.vue.d.ts +29 -0
- package/dist/components/date-range-field/date-range-field-input.js +1 -0
- package/dist/components/date-range-field/date-range-field-input.vue.d.ts +22 -0
- package/dist/components/date-range-field/date-range-field-root.js +1 -0
- package/dist/components/date-range-field/date-range-field-root.vue.d.ts +55 -0
- package/dist/components/date-range-field/index.d.ts +6 -0
- package/dist/components/date-range-field/index.js +1 -0
- package/dist/components/date-range-field/types.d.ts +280 -0
- package/dist/components/date-range-picker/context.d.ts +9 -0
- package/dist/components/date-range-picker/context.js +1 -0
- package/dist/components/date-range-picker/date-range-picker-compact.js +1 -0
- package/dist/components/date-range-picker/date-range-picker-compact.vue.d.ts +31 -0
- package/dist/components/date-range-picker/date-range-picker-popup.js +1 -0
- package/dist/components/date-range-picker/date-range-picker-popup.vue.d.ts +21 -0
- package/dist/components/date-range-picker/date-range-picker-root.js +1 -0
- package/dist/components/date-range-picker/date-range-picker-root.vue.d.ts +50 -0
- package/dist/components/date-range-picker/date-range-picker-trigger.js +1 -0
- package/dist/components/date-range-picker/date-range-picker-trigger.vue.d.ts +21 -0
- package/dist/components/date-range-picker/index.d.ts +7 -0
- package/dist/components/date-range-picker/index.js +1 -0
- package/dist/components/date-range-picker/types.d.ts +282 -0
- package/dist/components/dialog/dialog-compact.js +1 -1
- package/dist/components/dialog/dialog-compact.vue.d.ts +6 -6
- package/dist/components/dialog/dialog-root.js +1 -1
- package/dist/components/dialog/types.d.ts +196 -2
- package/dist/components/dropdown-menu/dropdown-menu-checkbox-compact.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-checkbox-compact.vue.d.ts +2 -2
- package/dist/components/dropdown-menu/dropdown-menu-compact.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-compact.vue.d.ts +2 -2
- package/dist/components/dropdown-menu/dropdown-menu-radio-compact.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-radio-compact.vue.d.ts +2 -2
- package/dist/components/dropdown-menu/dropdown-menu-root.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-root.vue.d.ts +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-wrapper-compact.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-wrapper-compact.vue.d.ts +2 -2
- package/dist/components/dropdown-menu/index.d.ts +2 -2
- package/dist/components/dropdown-menu/index.js +1 -1
- package/dist/components/dropdown-menu/types.d.ts +84 -0
- package/dist/components/editable/editable-compact.js +1 -0
- package/dist/components/editable/editable-compact.vue.d.ts +23 -0
- package/dist/components/editable/editable-root.vue.d.ts +1 -1
- package/dist/components/editable/index.d.ts +8 -7
- package/dist/components/editable/index.js +1 -1
- package/dist/components/editable/types.d.ts +151 -2
- package/dist/components/empty/types.d.ts +24 -0
- package/dist/components/form/core/types.d.ts +396 -13
- package/dist/components/form/types.d.ts +27 -0
- package/dist/components/hover-card/hover-card-compact.js +1 -0
- package/dist/components/hover-card/hover-card-compact.vue.d.ts +30 -0
- package/dist/components/hover-card/hover-card-positioner-impl.js +1 -1
- package/dist/components/hover-card/hover-card-positioner.js +1 -1
- package/dist/components/hover-card/hover-card-positioner.vue.d.ts +1 -0
- package/dist/components/hover-card/hover-card-root.vue.d.ts +1 -1
- package/dist/components/hover-card/index.d.ts +8 -7
- package/dist/components/hover-card/index.js +1 -1
- package/dist/components/hover-card/types.d.ts +72 -1
- package/dist/components/input/input-root.js +1 -1
- package/dist/components/input/types.d.ts +21 -0
- package/dist/components/input-number/types.d.ts +30 -0
- package/dist/components/input-otp/index.d.ts +1 -2
- package/dist/components/input-otp/index.js +1 -1
- package/dist/components/input-otp/input-otp-compact.vue.d.ts +2 -2
- package/dist/components/input-otp/input-otp-root.vue.d.ts +3 -3
- package/dist/components/input-otp/types.d.ts +186 -0
- package/dist/components/kbd/types.d.ts +6 -0
- package/dist/components/label/types.d.ts +3 -0
- package/dist/components/layout/layout-classic-compact.vue.d.ts +1 -1
- package/dist/components/layout/layout-compact.vue.d.ts +1 -1
- package/dist/components/layout/layout-root.vue.d.ts +1 -1
- package/dist/components/layout/types.d.ts +124 -10
- package/dist/components/link/link.vue.d.ts +1 -1
- package/dist/components/link/types.d.ts +12 -0
- package/dist/components/list/types.d.ts +21 -0
- package/dist/components/listbox/index.js +1 -1
- package/dist/components/listbox/listbox-root.js +1 -1
- package/dist/components/listbox/listbox-root.vue.d.ts +2 -2
- package/dist/components/listbox/types.d.ts +66 -0
- package/dist/components/menu/hooks.js +1 -1
- package/dist/components/menu/index.d.ts +2 -2
- package/dist/components/menu/index.js +1 -1
- package/dist/components/menu/menu-checkbox-options-compact.js +1 -1
- package/dist/components/menu/menu-option-compact.js +1 -1
- package/dist/components/menu/menu-option-compact.vue.d.ts +2 -2
- package/dist/components/menu/menu-options-compact.js +1 -1
- package/dist/components/menu/menu-options-compact.vue.d.ts +2 -2
- package/dist/components/menu/menu-radio-options-compact.js +1 -1
- package/dist/components/menu/menu-root.js +1 -1
- package/dist/components/menu/types.d.ts +267 -3
- package/dist/components/menubar/index.js +1 -1
- package/dist/components/menubar/menubar-compact.js +1 -1
- package/dist/components/menubar/menubar-compact.vue.d.ts +2 -2
- package/dist/components/menubar/types.d.ts +72 -0
- package/dist/components/month-picker/context.d.ts +9 -0
- package/dist/components/month-picker/context.js +1 -0
- package/dist/components/month-picker/index.d.ts +6 -0
- package/dist/components/month-picker/index.js +1 -0
- package/dist/components/month-picker/month-picker-popup.js +1 -0
- package/dist/components/month-picker/month-picker-popup.vue.d.ts +36 -0
- package/dist/components/month-picker/month-picker-root.js +1 -0
- package/dist/components/month-picker/month-picker-root.vue.d.ts +39 -0
- package/dist/components/month-picker/month-picker-trigger.js +1 -0
- package/dist/components/{autocomplete/autocomplete-trigger.vue.d.ts → month-picker/month-picker-trigger.vue.d.ts} +3 -3
- package/dist/components/month-picker/types.d.ts +202 -0
- package/dist/components/month-range-picker/context.d.ts +9 -0
- package/dist/components/month-range-picker/context.js +1 -0
- package/dist/components/month-range-picker/index.d.ts +6 -0
- package/dist/components/month-range-picker/index.js +1 -0
- package/dist/components/month-range-picker/month-range-picker-popup.js +1 -0
- package/dist/components/month-range-picker/month-range-picker-popup.vue.d.ts +39 -0
- package/dist/components/month-range-picker/month-range-picker-root.js +1 -0
- package/dist/components/month-range-picker/month-range-picker-root.vue.d.ts +43 -0
- package/dist/components/month-range-picker/month-range-picker-trigger.js +1 -0
- package/dist/components/month-range-picker/month-range-picker-trigger.vue.d.ts +21 -0
- package/dist/components/month-range-picker/types.d.ts +234 -0
- package/dist/components/navigation-menu/index.d.ts +12 -11
- package/dist/components/navigation-menu/index.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-compact.js +1 -0
- package/dist/components/navigation-menu/navigation-menu-compact.vue.d.ts +34 -0
- package/dist/components/navigation-menu/navigation-menu-root.vue.d.ts +1 -1
- package/dist/components/navigation-menu/types.d.ts +153 -2
- package/dist/components/page-tabs/types.d.ts +24 -0
- package/dist/components/pagination/index.d.ts +11 -10
- package/dist/components/pagination/index.js +1 -1
- package/dist/components/pagination/pagination-compact.js +1 -0
- package/dist/components/pagination/pagination-compact.vue.d.ts +23 -0
- package/dist/components/pagination/types.d.ts +117 -1
- package/dist/components/popover/context.d.ts +9 -0
- package/dist/components/popover/context.js +1 -1
- package/dist/components/popover/index.d.ts +10 -9
- package/dist/components/popover/index.js +1 -1
- package/dist/components/popover/popover-compact.js +1 -0
- package/dist/components/popover/popover-compact.vue.d.ts +36 -0
- package/dist/components/popover/popover-root.js +1 -1
- package/dist/components/popover/popover-root.vue.d.ts +0 -2
- package/dist/components/popover/popover-trigger.js +1 -1
- package/dist/components/popover/types.d.ts +111 -6
- package/dist/components/popper/index.js +1 -1
- package/dist/components/popper/popper-anchor.js +1 -1
- package/dist/components/popper/popper-positioner.vue.d.ts +2 -2
- package/dist/components/popper/types.d.ts +22 -1
- package/dist/components/portal/types.d.ts +3 -0
- package/dist/components/primitive/types.d.ts +6 -0
- package/dist/components/progress/types.d.ts +81 -0
- package/dist/components/radio-group/types.d.ts +66 -0
- package/dist/components/range-calendar/context.d.ts +9 -0
- package/dist/components/range-calendar/context.js +1 -0
- package/dist/components/range-calendar/index.d.ts +16 -0
- package/dist/components/range-calendar/index.js +1 -0
- package/dist/components/range-calendar/range-calendar-cell-trigger.js +1 -0
- package/dist/components/range-calendar/range-calendar-cell-trigger.vue.d.ts +33 -0
- package/dist/components/range-calendar/range-calendar-cell.js +1 -0
- package/dist/components/range-calendar/range-calendar-cell.vue.d.ts +21 -0
- package/dist/components/range-calendar/range-calendar-compact.js +1 -0
- package/dist/components/range-calendar/range-calendar-compact.vue.d.ts +25 -0
- package/dist/components/range-calendar/range-calendar-grid-body.js +1 -0
- package/dist/components/range-calendar/range-calendar-grid-body.vue.d.ts +21 -0
- package/dist/components/range-calendar/range-calendar-grid-head.js +1 -0
- package/dist/components/range-calendar/range-calendar-grid-head.vue.d.ts +21 -0
- package/dist/components/range-calendar/range-calendar-grid-row.js +1 -0
- package/dist/components/range-calendar/range-calendar-grid-row.vue.d.ts +21 -0
- package/dist/components/range-calendar/range-calendar-grid.js +1 -0
- package/dist/components/range-calendar/range-calendar-grid.vue.d.ts +21 -0
- package/dist/components/range-calendar/range-calendar-head-cell.js +1 -0
- package/dist/components/range-calendar/range-calendar-head-cell.vue.d.ts +21 -0
- package/dist/components/range-calendar/range-calendar-header.js +1 -0
- package/dist/components/range-calendar/range-calendar-header.vue.d.ts +21 -0
- package/dist/components/range-calendar/range-calendar-heading.js +1 -0
- package/dist/components/range-calendar/range-calendar-heading.vue.d.ts +22 -0
- package/dist/components/range-calendar/range-calendar-next.js +1 -0
- package/dist/components/range-calendar/range-calendar-next.vue.d.ts +24 -0
- package/dist/components/range-calendar/range-calendar-prev.js +1 -0
- package/dist/components/range-calendar/range-calendar-prev.vue.d.ts +24 -0
- package/dist/components/range-calendar/range-calendar-root.js +1 -0
- package/dist/components/range-calendar/range-calendar-root.vue.d.ts +55 -0
- package/dist/components/range-calendar/types.d.ts +488 -0
- package/dist/components/range-calendar/use-range-calendar.js +1 -0
- package/dist/components/roving-focus/types.d.ts +18 -0
- package/dist/components/scroll-area/types.d.ts +33 -0
- package/dist/components/segment/types.d.ts +36 -0
- package/dist/components/select/select-content.vue.d.ts +1 -1
- package/dist/components/select/types.d.ts +240 -0
- package/dist/components/separator/types.d.ts +12 -0
- package/dist/components/skeleton/types.d.ts +3 -0
- package/dist/components/slider/slider-root.vue.d.ts +2 -2
- package/dist/components/slider/types.d.ts +90 -0
- package/dist/components/splitter/splitter-group.vue.d.ts +1 -1
- package/dist/components/splitter/types.d.ts +114 -0
- package/dist/components/stepper/index.d.ts +10 -9
- package/dist/components/stepper/index.js +1 -1
- package/dist/components/stepper/stepper-compact.js +1 -0
- package/dist/components/stepper/stepper-compact.vue.d.ts +19 -0
- package/dist/components/stepper/stepper-root.vue.d.ts +2 -2
- package/dist/components/stepper/types.d.ts +136 -2
- package/dist/components/switch/types.d.ts +21 -0
- package/dist/components/table/table-compact.vue.d.ts +2 -2
- package/dist/components/table/types.d.ts +819 -0
- package/dist/components/tabs/tabs-root.vue.d.ts +1 -1
- package/dist/components/tabs/types.d.ts +75 -0
- package/dist/components/tag/types.d.ts +12 -0
- package/dist/components/tags-input/types.d.ts +63 -0
- package/dist/components/textarea/types.d.ts +27 -0
- package/dist/components/time-field/context.d.ts +9 -0
- package/dist/components/time-field/context.js +1 -0
- package/dist/components/time-field/index.d.ts +5 -0
- package/dist/components/time-field/index.js +1 -0
- package/dist/components/time-field/time-field-input.js +1 -0
- package/dist/components/time-field/time-field-input.vue.d.ts +21 -0
- package/dist/components/time-field/time-field-root.js +1 -0
- package/dist/components/time-field/time-field-root.vue.d.ts +43 -0
- package/dist/components/time-field/types.d.ts +201 -0
- package/dist/components/time-picker/context.d.ts +9 -0
- package/dist/components/time-picker/context.js +1 -0
- package/dist/components/time-picker/index.d.ts +6 -0
- package/dist/components/time-picker/index.js +1 -0
- package/dist/components/time-picker/time-picker-popup.js +1 -0
- package/dist/components/time-picker/time-picker-popup.vue.d.ts +27 -0
- package/dist/components/time-picker/time-picker-root.js +1 -0
- package/dist/components/time-picker/time-picker-root.vue.d.ts +45 -0
- package/dist/components/time-picker/time-picker-trigger.js +1 -0
- package/dist/components/time-picker/time-picker-trigger.vue.d.ts +21 -0
- package/dist/components/time-picker/types.d.ts +224 -0
- package/dist/components/time-range-field/context.d.ts +9 -0
- package/dist/components/time-range-field/context.js +1 -0
- package/dist/components/time-range-field/index.d.ts +6 -0
- package/dist/components/time-range-field/index.js +1 -0
- package/dist/components/time-range-field/time-range-field-compact.js +1 -0
- package/dist/components/time-range-field/time-range-field-compact.vue.d.ts +29 -0
- package/dist/components/time-range-field/time-range-field-input.js +1 -0
- package/dist/components/time-range-field/time-range-field-input.vue.d.ts +22 -0
- package/dist/components/time-range-field/time-range-field-root.js +1 -0
- package/dist/components/time-range-field/time-range-field-root.vue.d.ts +53 -0
- package/dist/components/time-range-field/types.d.ts +280 -0
- package/dist/components/time-range-picker/context.d.ts +9 -0
- package/dist/components/time-range-picker/context.js +1 -0
- package/dist/components/time-range-picker/index.d.ts +7 -0
- package/dist/components/time-range-picker/index.js +1 -0
- package/dist/components/time-range-picker/time-range-picker-compact.js +1 -0
- package/dist/components/time-range-picker/time-range-picker-compact.vue.d.ts +31 -0
- package/dist/components/time-range-picker/time-range-picker-popup.js +1 -0
- package/dist/components/time-range-picker/time-range-picker-popup.vue.d.ts +30 -0
- package/dist/components/time-range-picker/time-range-picker-root.js +1 -0
- package/dist/components/time-range-picker/time-range-picker-root.vue.d.ts +50 -0
- package/dist/components/time-range-picker/time-range-picker-trigger.js +1 -0
- package/dist/components/time-range-picker/time-range-picker-trigger.vue.d.ts +21 -0
- package/dist/components/time-range-picker/types.d.ts +304 -0
- package/dist/components/toast/shared.js +1 -1
- package/dist/components/toast/toaster.vue.d.ts +2 -2
- package/dist/components/toast/types.d.ts +224 -4
- package/dist/components/toggle/toggle.vue.d.ts +1 -1
- package/dist/components/toggle/types.d.ts +9 -0
- package/dist/components/toggle-group/types.d.ts +15 -0
- package/dist/components/toolbar/types.d.ts +48 -0
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tooltip/tooltip-popup.js +1 -1
- package/dist/components/tooltip/tooltip-root.vue.d.ts +1 -1
- package/dist/components/tooltip/types.d.ts +27 -0
- package/dist/components/tree/types.d.ts +75 -0
- package/dist/components/tree-menu/tree-menu-root.vue.d.ts +1 -1
- package/dist/components/tree-menu/types.d.ts +60 -0
- package/dist/components/virtualizer/types.d.ts +33 -0
- package/dist/components/visually-hidden/types.d.ts +30 -0
- package/dist/components/year-picker/context.d.ts +9 -0
- package/dist/components/year-picker/context.js +1 -0
- package/dist/components/year-picker/index.d.ts +6 -0
- package/dist/components/year-picker/index.js +1 -0
- package/dist/components/year-picker/types.d.ts +207 -0
- package/dist/components/year-picker/year-picker-popup.js +1 -0
- package/dist/components/year-picker/year-picker-popup.vue.d.ts +36 -0
- package/dist/components/year-picker/year-picker-root.js +1 -0
- package/dist/components/year-picker/year-picker-root.vue.d.ts +39 -0
- package/dist/components/year-picker/year-picker-trigger.js +1 -0
- package/dist/components/year-picker/year-picker-trigger.vue.d.ts +21 -0
- package/dist/components/year-range-picker/context.d.ts +9 -0
- package/dist/components/year-range-picker/context.js +1 -0
- package/dist/components/year-range-picker/index.d.ts +6 -0
- package/dist/components/year-range-picker/index.js +1 -0
- package/dist/components/year-range-picker/types.d.ts +239 -0
- package/dist/components/year-range-picker/year-range-picker-popup.js +1 -0
- package/dist/components/year-range-picker/year-range-picker-popup.vue.d.ts +39 -0
- package/dist/components/year-range-picker/year-range-picker-root.js +1 -0
- package/dist/components/year-range-picker/year-range-picker-root.vue.d.ts +43 -0
- package/dist/components/year-range-picker/year-range-picker-trigger.js +1 -0
- package/dist/components/year-range-picker/year-range-picker-trigger.vue.d.ts +21 -0
- package/dist/composables/use-collection.js +1 -1
- package/dist/composables/use-hide-others.d.ts +2 -1
- package/dist/composables/use-hide-others.js +1 -1
- package/dist/constants/components.d.ts +19 -5
- package/dist/constants/components.js +1 -1
- package/dist/constants/index.d.ts +2 -1
- package/dist/constants/index.js +1 -1
- package/dist/{components/input-otp → constants}/regexp.d.ts +1 -1
- package/dist/date/comparators.d.ts +24 -14
- package/dist/date/comparators.js +1 -1
- package/dist/date/formatter.d.ts +27 -0
- package/dist/date/formatter.js +1 -0
- package/dist/date/index.d.ts +10 -4
- package/dist/date/index.js +1 -1
- package/dist/date/parser.d.ts +34 -0
- package/dist/date/parser.js +1 -0
- package/dist/date/parts.d.ts +15 -0
- package/dist/date/parts.js +1 -0
- package/dist/date/placeholders.d.ts +23 -0
- package/dist/date/placeholders.js +1 -0
- package/dist/date/segment.d.ts +7 -0
- package/dist/date/segment.js +1 -0
- package/dist/date/types.d.ts +34 -21
- package/dist/date/use-date-field.d.ts +50 -0
- package/dist/date/use-date-field.js +1 -0
- package/dist/date/utils.d.ts +15 -1
- package/dist/date/utils.js +1 -1
- package/dist/index.d.ts +460 -375
- package/dist/index.js +1 -1
- package/dist/namespaced/index.d.ts +884 -725
- package/dist/namespaced/index.js +1 -1
- package/dist/node_modules/.pnpm/@soybeanjs_utils@0.1.1/node_modules/@soybeanjs/utils/dist/index.js +1 -0
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Alignment.d.ts +4 -0
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Animations.d.ts +11 -0
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Axis.d.ts +16 -0
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Counter.d.ts +9 -0
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/DragHandler.d.ts +13 -0
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/DragTracker.d.ts +4 -0
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/EmblaCarousel.d.ts +31 -0
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Engine.d.ts +67 -0
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/EventHandler.d.ts +29 -0
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/EventStore.d.ts +10 -0
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Limit.d.ts +13 -0
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/NodeRects.d.ts +11 -0
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Options.d.ts +43 -0
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/OptionsHandler.d.ts +11 -0
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/PercentOfView.d.ts +6 -0
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Plugins.d.ts +20 -0
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/ResizeHandler.d.ts +11 -0
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/ScrollBody.d.ts +14 -0
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/ScrollBounds.d.ts +8 -0
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/ScrollContain.d.ts +4 -0
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/ScrollLooper.d.ts +6 -0
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/ScrollProgress.d.ts +6 -0
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/ScrollTarget.d.ts +12 -0
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/ScrollTo.d.ts +7 -0
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/SlideFocus.d.ts +10 -0
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/SlideLooper.d.ts +19 -0
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/SlideRegistry.d.ts +6 -0
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/SlidesHandler.d.ts +11 -0
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/SlidesInView.d.ts +9 -0
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/SlidesToScroll.d.ts +7 -0
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Translate.d.ts +8 -0
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Vector1d.d.ts +9 -0
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/utils.d.ts +4 -0
- package/dist/resolver/index.js +1 -1
- package/dist/shared/index.d.ts +3 -2
- package/dist/shared/index.js +1 -1
- package/dist/shared/string.d.ts +1 -34
- package/dist/shared/string.js +1 -1
- package/dist/shared/time-picker.d.ts +30 -0
- package/dist/shared/time-picker.js +1 -0
- package/dist/types/common.d.ts +9 -1
- package/dist/types/dom.d.ts +3 -1
- package/dist/types/event.d.ts +10 -1
- package/dist/types/index.d.ts +5 -4
- package/dist/types/index.js +0 -0
- package/dist/types/vue.d.ts +4 -1
- package/package.json +13 -8
- package/dist/components/autocomplete/autocomplete-anchor.js +0 -1
- package/dist/components/autocomplete/autocomplete-content.js +0 -1
- package/dist/components/autocomplete/autocomplete-content.vue.d.ts +0 -24
- package/dist/components/autocomplete/autocomplete-group-label.js +0 -1
- package/dist/components/autocomplete/autocomplete-group-label.vue.d.ts +0 -18
- package/dist/components/autocomplete/autocomplete-group.js +0 -1
- package/dist/components/autocomplete/autocomplete-group.vue.d.ts +0 -18
- package/dist/components/autocomplete/autocomplete-item-indicator.js +0 -1
- package/dist/components/autocomplete/autocomplete-item-indicator.vue.d.ts +0 -18
- package/dist/components/autocomplete/autocomplete-item.js +0 -1
- package/dist/components/autocomplete/autocomplete-item.vue.d.ts +0 -26
- package/dist/components/autocomplete/autocomplete-separator.js +0 -1
- package/dist/components/autocomplete/autocomplete-separator.vue.d.ts +0 -18
- package/dist/components/autocomplete/autocomplete-trigger.js +0 -1
- package/dist/components/autocomplete/autocomplete-viewport.js +0 -1
- package/dist/components/autocomplete/autocomplete-viewport.vue.d.ts +0 -18
- package/dist/components/combobox/combobox-anchor.js +0 -1
- package/dist/components/combobox/combobox-anchor.vue.d.ts +0 -18
- package/dist/components/combobox/combobox-group-label.js +0 -1
- package/dist/components/combobox/combobox-group-label.vue.d.ts +0 -18
- package/dist/components/combobox/combobox-item-indicator.js +0 -1
- package/dist/node_modules/.pnpm/@soybeanjs_utils@0.1.0/node_modules/@soybeanjs/utils/dist/index.js +0 -1
- /package/dist/{components/input-otp → constants}/regexp.js +0 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Vector1DType } from "./Vector1d.js";
|
|
2
|
+
import { TranslateType } from "./Translate.js";
|
|
3
|
+
|
|
4
|
+
//#region ../node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/SlideLooper.d.ts
|
|
5
|
+
type LoopPointType = {
|
|
6
|
+
loopPoint: number;
|
|
7
|
+
index: number;
|
|
8
|
+
translate: TranslateType;
|
|
9
|
+
slideLocation: Vector1DType;
|
|
10
|
+
target: () => number;
|
|
11
|
+
};
|
|
12
|
+
type SlideLooperType = {
|
|
13
|
+
canLoop: () => boolean;
|
|
14
|
+
clear: () => void;
|
|
15
|
+
loop: () => void;
|
|
16
|
+
loopPoints: LoopPointType[];
|
|
17
|
+
};
|
|
18
|
+
//#endregion
|
|
19
|
+
export { SlideLooperType };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { EmblaCarouselType } from "./EmblaCarousel.js";
|
|
2
|
+
|
|
3
|
+
//#region ../node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/SlidesHandler.d.ts
|
|
4
|
+
type SlidesHandlerCallbackType = (emblaApi: EmblaCarouselType, mutations: MutationRecord[]) => boolean | void;
|
|
5
|
+
type SlidesHandlerOptionType = boolean | SlidesHandlerCallbackType;
|
|
6
|
+
type SlidesHandlerType = {
|
|
7
|
+
init: (emblaApi: EmblaCarouselType) => void;
|
|
8
|
+
destroy: () => void;
|
|
9
|
+
};
|
|
10
|
+
//#endregion
|
|
11
|
+
export { SlidesHandlerOptionType, SlidesHandlerType };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region ../node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/SlidesInView.d.ts
|
|
2
|
+
type SlidesInViewOptionsType = IntersectionObserverInit['threshold'];
|
|
3
|
+
type SlidesInViewType = {
|
|
4
|
+
init: () => void;
|
|
5
|
+
destroy: () => void;
|
|
6
|
+
get: (inView?: boolean) => number[];
|
|
7
|
+
};
|
|
8
|
+
//#endregion
|
|
9
|
+
export { SlidesInViewOptionsType, SlidesInViewType };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
//#region ../node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/SlidesToScroll.d.ts
|
|
2
|
+
type SlidesToScrollOptionType = 'auto' | number;
|
|
3
|
+
type SlidesToScrollType = {
|
|
4
|
+
groupSlides: <Type>(array: Type[]) => Type[][];
|
|
5
|
+
};
|
|
6
|
+
//#endregion
|
|
7
|
+
export { SlidesToScrollOptionType, SlidesToScrollType };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
//#region ../node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Translate.d.ts
|
|
2
|
+
type TranslateType = {
|
|
3
|
+
clear: () => void;
|
|
4
|
+
to: (target: number) => void;
|
|
5
|
+
toggleActive: (active: boolean) => void;
|
|
6
|
+
};
|
|
7
|
+
//#endregion
|
|
8
|
+
export { TranslateType };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region ../node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Vector1d.d.ts
|
|
2
|
+
type Vector1DType = {
|
|
3
|
+
get: () => number;
|
|
4
|
+
set: (n: Vector1DType | number) => void;
|
|
5
|
+
add: (n: Vector1DType | number) => void;
|
|
6
|
+
subtract: (n: Vector1DType | number) => void;
|
|
7
|
+
};
|
|
8
|
+
//#endregion
|
|
9
|
+
export { Vector1DType };
|
package/dist/resolver/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{components as e}from"../constants/components.js";import{
|
|
1
|
+
import{components as e}from"../constants/components.js";import{o as t,s as n}from"../node_modules/.pnpm/@soybeanjs_utils@0.1.1/node_modules/@soybeanjs/utils/dist/index.js";function r(r={}){return{type:`component`,resolve:i=>{let a=Object.values(e).flat(),o=n(i);if(a.includes(o)){let e=t(o).split(`-`)[0];return{name:o,from:r.standalone?`@soybeanjs/headless/${e}`:`@soybeanjs/headless`}}return null}}}export{r as default};
|
package/dist/shared/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isArrayValue, isBlankString, isDateObject, isFunction, isNonNullObject, isNullish, isObject, isObjectType, isPrimitive, isPromise, isString, keysOf } from "./guard.js";
|
|
2
2
|
import { appendAt, arrayRemove, compact, findValuesBetween, flattenChildren, getNextMatch, insertAt, moveAt, omit, pick, prependAt, removeAt, swapAt, updateAt, wrapArray } from "./object.js";
|
|
3
|
-
import { isKey, stringToPath
|
|
3
|
+
import { isKey, stringToPath } from "./string.js";
|
|
4
4
|
import { isValueEqualOrExist } from "./comparison.js";
|
|
5
5
|
import { ColorChannel, ColorChannelRange, ColorFormat, ColorObjectSpace, ColorSpace, ColorValue, NormalizedColor, areColorsEqual, formatChannelValue, formatColor, getAreaBackgroundStyle, getChannelName, getChannelObjectSpace, getChannelRange, getChannelValue, getColorContrast, getColorLabel, getSliderBackgroundStyle, hasVisibleChromaticity, isValidColor, normalizeColor, resolveColorFormat, setChannelValue, setChannelValues, toColorObject } from "./color.js";
|
|
6
6
|
import { clamp, getBinaryCheckedState, getCheckedState, getDisclosureState, getOpenFromSingleOrMultiple, getValue, isIndeterminate, roundToStepPrecision, setValue, snapValueToStep } from "./value.js";
|
|
@@ -12,4 +12,5 @@ import { isBrowser, isClient, isIOS, refreshIOSDetection } from "./env.js";
|
|
|
12
12
|
import { handleAndDispatchCustomEvent, isMouseEvent } from "./event.js";
|
|
13
13
|
import { getExitSideFromRect, getHull, getPaddedExitPoints, getPointsFromRect, isDeltaInDirection, isPointInPolygon, isPointerInGraceArea } from "./geometry.js";
|
|
14
14
|
import { getTreePaths } from "./tree.js";
|
|
15
|
-
|
|
15
|
+
import { CreateTimeOptionsProps, FormatTimeValueProps, TimePickerOption, compareTimeValues, createTimeOptions, findClosestTimeOption, formatTimeValue, isTimeBetweenInclusive } from "./time-picker.js";
|
|
16
|
+
export { ColorChannel, ColorChannelRange, ColorFormat, ColorObjectSpace, ColorSpace, ColorValue, CreateTimeOptionsProps, FormatTimeValueProps, NormalizedColor, TimePickerOption, appendAt, areColorsEqual, arrayRemove, clamp, compact, compareTimeValues, createFieldName, createTimeOptions, findClosestTimeOption, findValuesBetween, flattenChildren, focus, focusFirstAndSelect, formatChannelValue, formatColor, formatTimeValue, getActiveElement, getAreaBackgroundStyle, getAriaLabel, getBinaryCheckedState, getChannelName, getChannelObjectSpace, getChannelRange, getChannelValue, getCheckedState, getCollectionItemElements, getColorContrast, getColorLabel, getDirectionAwareKey, getDisclosureState, getElFromTemplateRef, getExitSideFromRect, getFocusIntent, getHull, getLifeCycleTarget, getMergedRefsValue, getNextMatch, getOpenFromSingleOrMultiple, getPaddedExitPoints, getPointsFromRect, getRawChildren, getSliderBackgroundStyle, getTabbableCandidates, getTabbableEdges, getTreePaths, getValue, getVueBooleanCasting, handleAndDispatchCustomEvent, hasVisibleChromaticity, insertAt, isArrayValue, isBlankString, isBrowser, isClient, isDateObject, isDeltaInDirection, isElementHasAttribute, isFormControl, isFunction, isHTMLElement, isIOS, isIndeterminate, isKey, isMouseEvent, isNonNullObject, isNullish, isObject, isObjectType, isPointInPolygon, isPointerInGraceArea, isPrimitive, isPromise, isString, isTimeBetweenInclusive, isValidColor, isValueEqualOrExist, keysOf, moveAt, normalizeColor, omit, parseArrayValue, parseFormValue, parseObjectValue, parsePrimitiveValue, pick, prependAt, refreshIOSDetection, removeAt, removeFromTabOrder, removeLinks, resolveColorFormat, roundToStepPrecision, setChannelValue, setChannelValues, setValue, snapValueToStep, stringToPath, swapAt, toColorObject, transformPropsToContext, tryFocusFirst, updateAt, wrapArray };
|
package/dist/shared/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{isArrayValue as e,isBlankString as t,isDateObject as n,isFunction as r,isNonNullObject as i,isNullish as a,isObject as o,isObjectType as s,isPrimitive as c,isPromise as l,isString as u,keysOf as d}from"./guard.js";import{appendAt as f,arrayRemove as p,compact as m,findValuesBetween as h,flattenChildren as g,getNextMatch as _,insertAt as v,moveAt as y,omit as b,pick as x,prependAt as S,removeAt as C,swapAt as w,updateAt as T,wrapArray as E}from"./object.js";import{isKey as D,stringToPath as O
|
|
1
|
+
import{isArrayValue as e,isBlankString as t,isDateObject as n,isFunction as r,isNonNullObject as i,isNullish as a,isObject as o,isObjectType as s,isPrimitive as c,isPromise as l,isString as u,keysOf as d}from"./guard.js";import{appendAt as f,arrayRemove as p,compact as m,findValuesBetween as h,flattenChildren as g,getNextMatch as _,insertAt as v,moveAt as y,omit as b,pick as x,prependAt as S,removeAt as C,swapAt as w,updateAt as T,wrapArray as E}from"./object.js";import{isKey as D,stringToPath as O}from"./string.js";import{isValueEqualOrExist as k}from"./comparison.js";import{areColorsEqual as A,formatChannelValue as j,formatColor as M,getAreaBackgroundStyle as N,getChannelName as P,getChannelObjectSpace as F,getChannelRange as I,getChannelValue as L,getColorContrast as R,getColorLabel as z,getSliderBackgroundStyle as B,hasVisibleChromaticity as V,isValidColor as H,normalizeColor as U,resolveColorFormat as W,setChannelValue as G,setChannelValues as K,toColorObject as q}from"./color.js";import{clamp as J,getBinaryCheckedState as Y,getCheckedState as X,getDisclosureState as Z,getOpenFromSingleOrMultiple as Q,getValue as $,isIndeterminate as ee,roundToStepPrecision as te,setValue as ne,snapValueToStep as re}from"./value.js";import{createFieldName as ie,parseArrayValue as ae,parseFormValue as oe,parseObjectValue as se,parsePrimitiveValue as ce}from"./form.js";import{getActiveElement as le,getAriaLabel as ue,getCollectionItemElements as de,isElementHasAttribute as fe,isHTMLElement as pe,removeLinks as me}from"./dom.js";import{focus as he,focusFirstAndSelect as ge,getDirectionAwareKey as _e,getFocusIntent as ve,getTabbableCandidates as ye,getTabbableEdges as be,removeFromTabOrder as xe,tryFocusFirst as Se}from"./focus.js";import{getElFromTemplateRef as Ce,getLifeCycleTarget as we,getMergedRefsValue as Te,getRawChildren as Ee,getVueBooleanCasting as De,isFormControl as Oe,transformPropsToContext as ke}from"./vue.js";import{isBrowser as Ae,isClient as je,isIOS as Me,refreshIOSDetection as Ne}from"./env.js";import{handleAndDispatchCustomEvent as Pe,isMouseEvent as Fe}from"./event.js";import{getExitSideFromRect as Ie,getHull as Le,getPaddedExitPoints as Re,getPointsFromRect as ze,isDeltaInDirection as Be,isPointInPolygon as Ve,isPointerInGraceArea as He}from"./geometry.js";import{getTreePaths as Ue}from"./tree.js";import{compareTimeValues as We,createTimeOptions as Ge,findClosestTimeOption as Ke,formatTimeValue as qe,isTimeBetweenInclusive as Je}from"./time-picker.js";export{f as appendAt,A as areColorsEqual,p as arrayRemove,J as clamp,m as compact,We as compareTimeValues,ie as createFieldName,Ge as createTimeOptions,Ke as findClosestTimeOption,h as findValuesBetween,g as flattenChildren,he as focus,ge as focusFirstAndSelect,j as formatChannelValue,M as formatColor,qe as formatTimeValue,le as getActiveElement,N as getAreaBackgroundStyle,ue as getAriaLabel,Y as getBinaryCheckedState,P as getChannelName,F as getChannelObjectSpace,I as getChannelRange,L as getChannelValue,X as getCheckedState,de as getCollectionItemElements,R as getColorContrast,z as getColorLabel,_e as getDirectionAwareKey,Z as getDisclosureState,Ce as getElFromTemplateRef,Ie as getExitSideFromRect,ve as getFocusIntent,Le as getHull,we as getLifeCycleTarget,Te as getMergedRefsValue,_ as getNextMatch,Q as getOpenFromSingleOrMultiple,Re as getPaddedExitPoints,ze as getPointsFromRect,Ee as getRawChildren,B as getSliderBackgroundStyle,ye as getTabbableCandidates,be as getTabbableEdges,Ue as getTreePaths,$ as getValue,De as getVueBooleanCasting,Pe as handleAndDispatchCustomEvent,V as hasVisibleChromaticity,v as insertAt,e as isArrayValue,t as isBlankString,Ae as isBrowser,je as isClient,n as isDateObject,Be as isDeltaInDirection,fe as isElementHasAttribute,Oe as isFormControl,r as isFunction,pe as isHTMLElement,Me as isIOS,ee as isIndeterminate,D as isKey,Fe as isMouseEvent,i as isNonNullObject,a as isNullish,o as isObject,s as isObjectType,Ve as isPointInPolygon,He as isPointerInGraceArea,c as isPrimitive,l as isPromise,u as isString,Je as isTimeBetweenInclusive,H as isValidColor,k as isValueEqualOrExist,d as keysOf,y as moveAt,U as normalizeColor,b as omit,ae as parseArrayValue,oe as parseFormValue,se as parseObjectValue,ce as parsePrimitiveValue,x as pick,S as prependAt,Ne as refreshIOSDetection,C as removeAt,xe as removeFromTabOrder,me as removeLinks,W as resolveColorFormat,te as roundToStepPrecision,G as setChannelValue,K as setChannelValues,ne as setValue,re as snapValueToStep,O as stringToPath,w as swapAt,q as toColorObject,ke as transformPropsToContext,Se as tryFocusFirst,T as updateAt,E as wrapArray};
|
package/dist/shared/string.d.ts
CHANGED
|
@@ -1,37 +1,4 @@
|
|
|
1
1
|
//#region src/shared/string.d.ts
|
|
2
|
-
/**
|
|
3
|
-
* Convert string to kebab-case format
|
|
4
|
-
*
|
|
5
|
-
* @example
|
|
6
|
-
* toKebabCase('helloWorld'); // 'hello-world'
|
|
7
|
-
* toKebabCase('HelloWorld'); // 'hello-world'
|
|
8
|
-
*
|
|
9
|
-
* @param str - The string to convert
|
|
10
|
-
* @returns String in kebab-case format
|
|
11
|
-
*/
|
|
12
|
-
declare function toKebabCase(str: string): string;
|
|
13
|
-
/**
|
|
14
|
-
* Convert string to PascalCase format
|
|
15
|
-
*
|
|
16
|
-
* @example
|
|
17
|
-
* toPascalCase('hello-world'); // 'HelloWorld'
|
|
18
|
-
* toPascalCase('hello_world'); // 'HelloWorld'
|
|
19
|
-
*
|
|
20
|
-
* @param str - The string to convert
|
|
21
|
-
* @returns String in PascalCase format
|
|
22
|
-
*/
|
|
23
|
-
declare function toPascalCase(str: string): string;
|
|
24
|
-
/**
|
|
25
|
-
* Convert string to camelCase format
|
|
26
|
-
*
|
|
27
|
-
* @example
|
|
28
|
-
* toCamelCase('hello-world'); // 'helloWorld'
|
|
29
|
-
* toCamelCase('hello_world'); // 'helloWorld'
|
|
30
|
-
*
|
|
31
|
-
* @param str - The string to convert
|
|
32
|
-
* @returns String in camelCase format
|
|
33
|
-
*/
|
|
34
|
-
declare function toCamelCase(str: string): string;
|
|
35
2
|
/**
|
|
36
3
|
* Convert string to path
|
|
37
4
|
*
|
|
@@ -47,4 +14,4 @@ declare function stringToPath(str: string): string[];
|
|
|
47
14
|
*/
|
|
48
15
|
declare function isKey(str: string): boolean;
|
|
49
16
|
//#endregion
|
|
50
|
-
export { isKey, stringToPath
|
|
17
|
+
export { isKey, stringToPath };
|
package/dist/shared/string.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{compact as e}from"./object.js";function t(
|
|
1
|
+
import{compact as e}from"./object.js";function t(t){return e(t.replace(/["|']|\]/g,``).split(/\.|\[/))}function n(e){return/^\w*$/.test(e)}export{n as isKey,t as stringToPath};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { TimeValue } from "../date/comparators.js";
|
|
2
|
+
import { DateStep, HourCycle, TimeGranularity, TimeMatcher } from "../date/types.js";
|
|
3
|
+
import { Formatter } from "../date/formatter.js";
|
|
4
|
+
//#region src/shared/time-picker.d.ts
|
|
5
|
+
interface TimePickerOption {
|
|
6
|
+
value: TimeValue;
|
|
7
|
+
label: string;
|
|
8
|
+
key: string;
|
|
9
|
+
}
|
|
10
|
+
interface FormatTimeValueProps {
|
|
11
|
+
formatter: Formatter;
|
|
12
|
+
granularity: TimeGranularity;
|
|
13
|
+
hideTimeZone?: boolean;
|
|
14
|
+
hourCycle?: HourCycle;
|
|
15
|
+
value: TimeValue;
|
|
16
|
+
}
|
|
17
|
+
interface CreateTimeOptionsProps extends Omit<FormatTimeValueProps, 'value'> {
|
|
18
|
+
isTimeUnavailable?: TimeMatcher;
|
|
19
|
+
maxValue?: TimeValue;
|
|
20
|
+
minValue?: TimeValue;
|
|
21
|
+
reference: TimeValue;
|
|
22
|
+
step?: DateStep;
|
|
23
|
+
}
|
|
24
|
+
declare function compareTimeValues(a: TimeValue, b: TimeValue): number;
|
|
25
|
+
declare function isTimeBetweenInclusive(date: TimeValue, start: TimeValue, end: TimeValue): boolean;
|
|
26
|
+
declare function formatTimeValue(props: FormatTimeValueProps): string;
|
|
27
|
+
declare function createTimeOptions(props: CreateTimeOptionsProps): TimePickerOption[];
|
|
28
|
+
declare function findClosestTimeOption(options: TimePickerOption[], value: TimeValue | undefined): TimePickerOption;
|
|
29
|
+
//#endregion
|
|
30
|
+
export { CreateTimeOptionsProps, FormatTimeValueProps, TimePickerOption, compareTimeValues, createTimeOptions, findClosestTimeOption, formatTimeValue, isTimeBetweenInclusive };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{isAfter as e,isAfterOrSame as t,isBefore as n,isBeforeOrSame as r,isEqualValue as i,isTime as a,isZonedDateTime as o}from"../date/comparators.js";import{getOptsByGranularity as s}from"../date/utils.js";import"../date/index.js";function c(t,r){return n(t,r)?-1:+!!e(t,r)}function l(e,n,i){return t(e,n)&&r(e,i)}function u(e){return e.formatter.toParts(e.value,s(e.granularity,e.hourCycle,!0)).filter(t=>t.type===`timeZoneName`?e.hideTimeZone?!1:!a(e.value)&&o(e.value):!0).map(e=>e.value).join(``)}function d(t){let r=p(t.granularity,t.step),i=Math.ceil(1440*60/r);return Array.from({length:i},(e,n)=>{let i=n*r,a=Math.floor(i/3600)%24,o=Math.floor(i%3600/60),s=i%60,c=t.reference.set({hour:a,minute:o,second:s,millisecond:0});return{value:c,label:u({formatter:t.formatter,granularity:t.granularity,hideTimeZone:t.hideTimeZone,hourCycle:t.hourCycle,value:c}),key:c.toString()}}).filter(r=>!(t.minValue&&n(r.value,t.minValue)||t.maxValue&&e(r.value,t.maxValue)||t.isTimeUnavailable?.(r.value)))}function f(e,t){return t?e.find(e=>i(e.value,t))??e[0]:e[0]}function p(e,t){let n=(t?.hour??0)*3600+(t?.minute??0)*60+(t?.second??0);return n>0?n:e===`hour`?3600:e===`second`?30:1800}export{c as compareTimeValues,d as createTimeOptions,f as findClosestTimeOption,u as formatTimeValue,l as isTimeBetweenInclusive};
|
package/dist/types/common.d.ts
CHANGED
|
@@ -21,11 +21,19 @@ type HorizontalSide = Extract<Side, 'left' | 'right'>;
|
|
|
21
21
|
type Align = 'start' | 'center' | 'end';
|
|
22
22
|
type AlignSide = Extract<Align, 'start' | 'end'>;
|
|
23
23
|
type Placement = 'top' | 'right' | 'bottom' | 'left' | 'top-start' | 'top-end' | 'right-start' | 'right-end' | 'bottom-start' | 'bottom-end' | 'left-start' | 'left-end';
|
|
24
|
+
interface Size {
|
|
25
|
+
width: number;
|
|
26
|
+
height: number;
|
|
27
|
+
}
|
|
24
28
|
type Point = {
|
|
25
29
|
x: number;
|
|
26
30
|
y: number;
|
|
27
31
|
};
|
|
28
32
|
type Polygon = Point[];
|
|
33
|
+
interface GraceIntent {
|
|
34
|
+
area: Polygon;
|
|
35
|
+
side: HorizontalSide;
|
|
36
|
+
}
|
|
29
37
|
type SelectionBehavior = 'toggle' | 'replace';
|
|
30
38
|
interface SelectionProps<M extends boolean = false, N extends DefinedValue = string> {
|
|
31
39
|
/**
|
|
@@ -61,4 +69,4 @@ type SelectionEmits<M extends boolean = false, N extends DefinedValue = string>
|
|
|
61
69
|
'update:modelValue': [value: M extends true ? N[] : N];
|
|
62
70
|
};
|
|
63
71
|
//#endregion
|
|
64
|
-
export { AcceptableBooleanValue, AcceptableValue, Align, AlignSide, ArrayElement, CheckedState, ClassValue, DataOrientation, DefinedValue, Direction, DisclosureState, FocusIntent, HorizontalSide, KbdKey, MaybeArray, MaybePromise, NavigationKey, Placement, Point, Polygon, PrimitiveType, SelectionBehavior, SelectionEmits, SelectionProps, Side, SwipeDirection, UiClass };
|
|
72
|
+
export { AcceptableBooleanValue, AcceptableValue, Align, AlignSide, ArrayElement, CheckedState, ClassValue, DataOrientation, DefinedValue, Direction, DisclosureState, FocusIntent, GraceIntent, HorizontalSide, KbdKey, MaybeArray, MaybePromise, NavigationKey, Placement, Point, Polygon, PrimitiveType, SelectionBehavior, SelectionEmits, SelectionProps, Side, Size, SwipeDirection, UiClass };
|
package/dist/types/dom.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
//#region src/types/dom.d.ts
|
|
2
|
+
type HTMLAttributeReferrerPolicy = '' | 'no-referrer' | 'no-referrer-when-downgrade' | 'origin' | 'origin-when-cross-origin' | 'same-origin' | 'strict-origin' | 'strict-origin-when-cross-origin' | 'unsafe-url';
|
|
3
|
+
type HTMLAttributeCrossOrigin = 'anonymous' | 'use-credentials' | '';
|
|
2
4
|
type ImageLoadingStatus = 'idle' | 'loading' | 'loaded' | 'error';
|
|
3
5
|
//#endregion
|
|
4
|
-
export { ImageLoadingStatus };
|
|
6
|
+
export { HTMLAttributeCrossOrigin, HTMLAttributeReferrerPolicy, ImageLoadingStatus };
|
package/dist/types/event.d.ts
CHANGED
|
@@ -23,5 +23,14 @@ type TreeToggleEvent<T = AcceptableValue> = CustomEvent<{
|
|
|
23
23
|
isExpanded: boolean;
|
|
24
24
|
isSelected: boolean;
|
|
25
25
|
}>;
|
|
26
|
+
type SwipeEvent = Omit<CustomEvent<{
|
|
27
|
+
originalEvent: PointerEvent;
|
|
28
|
+
delta: {
|
|
29
|
+
x: number;
|
|
30
|
+
y: number;
|
|
31
|
+
};
|
|
32
|
+
}>, 'currentTarget'> & {
|
|
33
|
+
currentTarget: EventTarget & HTMLElement;
|
|
34
|
+
};
|
|
26
35
|
//#endregion
|
|
27
|
-
export { FocusOutsideEvent, PointerDownOutsideEvent, SelectEvent, TreeSelectEvent, TreeToggleEvent };
|
|
36
|
+
export { FocusOutsideEvent, PointerDownOutsideEvent, SelectEvent, SwipeEvent, TreeSelectEvent, TreeToggleEvent };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { AcceptableBooleanValue, AcceptableValue, Align, AlignSide, ArrayElement, CheckedState, ClassValue, DataOrientation, DefinedValue, Direction, DisclosureState, FocusIntent, HorizontalSide, KbdKey, MaybeArray, MaybePromise, NavigationKey, Placement, Point, Polygon, PrimitiveType, SelectionBehavior, SelectionEmits, SelectionProps, Side, SwipeDirection, UiClass } from "./common.js";
|
|
2
|
-
import { FocusOutsideEvent, PointerDownOutsideEvent, SelectEvent, TreeSelectEvent, TreeToggleEvent } from "./event.js";
|
|
1
|
+
import { AcceptableBooleanValue, AcceptableValue, Align, AlignSide, ArrayElement, CheckedState, ClassValue, DataOrientation, DefinedValue, Direction, DisclosureState, FocusIntent, GraceIntent, HorizontalSide, KbdKey, MaybeArray, MaybePromise, NavigationKey, Placement, Point, Polygon, PrimitiveType, SelectionBehavior, SelectionEmits, SelectionProps, Side, Size, SwipeDirection, UiClass } from "./common.js";
|
|
2
|
+
import { FocusOutsideEvent, PointerDownOutsideEvent, SelectEvent, SwipeEvent, TreeSelectEvent, TreeToggleEvent } from "./event.js";
|
|
3
3
|
import { DismissableLayerEmits, DismissableLayerProps, FocusScopeEmits, ForceMountProps, FormFieldCommonProps, FormNameValueProps, TrapFocusProps } from "./component.js";
|
|
4
|
-
import { ImageLoadingStatus } from "./dom.js";
|
|
4
|
+
import { HTMLAttributeCrossOrigin, HTMLAttributeReferrerPolicy, ImageLoadingStatus } from "./dom.js";
|
|
5
5
|
import { ArrayPath, IsTuple, Path, PathValue, TupleKeys } from "./path.js";
|
|
6
|
-
import { EmitsToHookProps, PropsToContext, VNodeRef } from "./vue.js";
|
|
6
|
+
import { EmitsToHookProps, InferDefaults, PropsToContext, VNodeRef } from "./vue.js";
|
|
7
|
+
export { AcceptableBooleanValue, AcceptableValue, Align, AlignSide, ArrayElement, ArrayPath, CheckedState, ClassValue, DataOrientation, DefinedValue, Direction, DisclosureState, DismissableLayerEmits, DismissableLayerProps, EmitsToHookProps, FocusIntent, FocusOutsideEvent, FocusScopeEmits, ForceMountProps, FormFieldCommonProps, FormNameValueProps, GraceIntent, HTMLAttributeCrossOrigin, HTMLAttributeReferrerPolicy, HorizontalSide, ImageLoadingStatus, InferDefaults, IsTuple, KbdKey, MaybeArray, MaybePromise, NavigationKey, Path, PathValue, Placement, Point, PointerDownOutsideEvent, Polygon, PrimitiveType, PropsToContext, SelectEvent, SelectionBehavior, SelectionEmits, SelectionProps, Side, Size, SwipeDirection, SwipeEvent, TrapFocusProps, TreeSelectEvent, TreeToggleEvent, TupleKeys, UiClass, VNodeRef };
|
|
File without changes
|
package/dist/types/vue.d.ts
CHANGED
|
@@ -5,5 +5,8 @@ type VNodeRef = Element | ComponentPublicInstance | null | undefined;
|
|
|
5
5
|
type PropsToContext<T, K extends keyof T = keyof T> = { [P in K]-?: ComputedRef<T[P]> };
|
|
6
6
|
/** Convert emits to hook props */
|
|
7
7
|
type EmitsToHookProps<T extends Record<string, any[]>> = { [K in keyof T as K extends `update:${infer Rest}` ? `onUpdate${Capitalize<Rest>}` : `on${Capitalize<string & K>}`]?: (...args: T[K]) => void };
|
|
8
|
+
type InferDefaults<T> = { [K in keyof T]?: InferDefault<T, T[K]> };
|
|
9
|
+
type NativeType = null | number | string | boolean | symbol | ((...args: any[]) => any);
|
|
10
|
+
type InferDefault<P, T> = ((props: P) => T & {}) | (T extends NativeType ? T : never);
|
|
8
11
|
//#endregion
|
|
9
|
-
export { EmitsToHookProps, PropsToContext, VNodeRef };
|
|
12
|
+
export { EmitsToHookProps, InferDefaults, PropsToContext, VNodeRef };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soybeanjs/headless",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.0",
|
|
4
4
|
"description": "SoybeanHeadless is a collection unstyled components for Vue 3. It is designed to be lightweight and easy to use.",
|
|
5
5
|
"homepage": "https://github.com/soybeanjs/soybean-ui",
|
|
6
6
|
"bugs": {
|
|
@@ -63,6 +63,11 @@
|
|
|
63
63
|
"import": "./dist/namespaced/index.js",
|
|
64
64
|
"require": "./dist/namespaced/index.js"
|
|
65
65
|
},
|
|
66
|
+
"./types": {
|
|
67
|
+
"types": "./dist/types/index.d.ts",
|
|
68
|
+
"import": "./dist/types/index.js",
|
|
69
|
+
"require": "./dist/types/index.js"
|
|
70
|
+
},
|
|
66
71
|
"./*": {
|
|
67
72
|
"types": "./dist/components/*/index.d.ts",
|
|
68
73
|
"import": "./dist/components/*/index.js",
|
|
@@ -81,10 +86,10 @@
|
|
|
81
86
|
"@standard-schema/spec": "^1.1.0",
|
|
82
87
|
"@tanstack/vue-virtual": "^3.13.24",
|
|
83
88
|
"@vue/shared": "^3.5.33",
|
|
84
|
-
"@vueuse/core": "^14.
|
|
85
|
-
"@vueuse/integrations": "^14.
|
|
86
|
-
"@vueuse/router": "^14.
|
|
87
|
-
"@vueuse/shared": "^14.
|
|
89
|
+
"@vueuse/core": "^14.3.0",
|
|
90
|
+
"@vueuse/integrations": "^14.3.0",
|
|
91
|
+
"@vueuse/router": "^14.3.0",
|
|
92
|
+
"@vueuse/shared": "^14.3.0",
|
|
88
93
|
"aria-hidden": "^1.2.6",
|
|
89
94
|
"defu": "^6.1.7",
|
|
90
95
|
"embla-carousel-vue": "8.6.0",
|
|
@@ -92,11 +97,11 @@
|
|
|
92
97
|
"ohash": "^2.0.11"
|
|
93
98
|
},
|
|
94
99
|
"devDependencies": {
|
|
95
|
-
"@nuxt/kit": "^4.4.
|
|
96
|
-
"@nuxt/schema": "^4.4.
|
|
100
|
+
"@nuxt/kit": "^4.4.4",
|
|
101
|
+
"@nuxt/schema": "^4.4.4",
|
|
97
102
|
"tsdown": "0.21.10",
|
|
98
103
|
"typescript": "6.0.3",
|
|
99
|
-
"unplugin-vue": "7.
|
|
104
|
+
"unplugin-vue": "7.2.0",
|
|
100
105
|
"unplugin-vue-components": "^32.0.0",
|
|
101
106
|
"unplugin-vue-jsx": "0.8.1",
|
|
102
107
|
"vue": "3.5.33",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{useForwardElement as e}from"../../composables/use-forward-element.js";import{useOmitProps as t}from"../../composables/use-props.js";import"../../composables/index.js";import{Primitive as n}from"../primitive/primitive.js";import"../primitive/index.js";import{usePopperRootContext as r}from"../popper/context.js";import{usePopoverRootContext as i}from"../popover/context.js";import{useAutocompleteUi as a}from"./context.js";import{createBlock as o,defineComponent as s,mergeProps as c,openBlock as l,renderSlot as u,unref as d,watchEffect as f,withCtx as p}from"vue";const m=s({name:`AutocompleteAnchor`,__name:`autocomplete-anchor`,props:{reference:{},asChild:{type:Boolean},as:{default:`div`}},setup(s){let m=s,h=t(m,[`reference`]),g=a(`anchor`),{onAnchorElementChange:_}=r(`AutocompleteAnchor`),{onTriggerElementChange:v}=i(`AutocompleteAnchor`),[y,b]=e(e=>{m.reference||(_(e),v(e))});return f(()=>{m.reference&&(_(m.reference),m.reference instanceof HTMLElement&&v(m.reference))}),(e,t)=>(l(),o(d(n),c(d(h),{ref:d(b),class:d(g)}),{default:p(()=>[u(e.$slots,`default`)]),_:3},16,[`class`]))}});export{m as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{useForwardElement as e}from"../../composables/use-forward-element.js";import{useOmitProps as t}from"../../composables/use-props.js";import"../../composables/index.js";import n from"../popper/popper-popup.js";import"../popper/index.js";import{usePopoverRootContext as r}from"../popover/context.js";import{useAutocompleteRootContext as i,useAutocompleteUi as a}from"./context.js";import o from"../popover/popover-positioner.js";import"../popover/index.js";import{createBlock as s,createVNode as c,defineComponent as l,mergeProps as u,normalizeClass as d,openBlock as f,renderSlot as p,unref as m,withCtx as h}from"vue";const g=l({name:`AutocompleteContent`,inheritAttrs:!1,__name:`autocomplete-content`,props:{placement:{},side:{default:`bottom`},sideOffset:{default:4},sideFlip:{type:Boolean},align:{},alignOffset:{},alignFlip:{type:Boolean},avoidCollisions:{type:Boolean,default:!0},collisionBoundary:{},collisionPadding:{},arrowPadding:{},hideShiftedArrow:{type:Boolean},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean,default:!0},reference:{},forceMount:{type:Boolean}},setup(l){let g=t(l,[`forceMount`]),_=a(`content`),{dataState:v,onPopupElementChange:y}=r(`AutocompleteContent`),{inputElement:b}=i(`AutocompleteContent`),[x,S]=e(y),C=e=>{e.preventDefault(),b.value?.focus()};return(e,t)=>(f(),s(m(o),u(m(g),{"force-mount":l.forceMount,onCloseAutoFocus:C}),{default:h(()=>[c(m(n),{ref:m(S),class:d(m(_)),"data-state":m(v)},{default:h(()=>[p(e.$slots,`default`)]),_:3},8,[`class`,`data-state`])]),_:3},16,[`force-mount`]))}});export{g as default};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { AutocompleteContentProps } from "./types.js";
|
|
2
|
-
import * as _$vue from "vue";
|
|
3
|
-
import * as _$_floating_ui_utils0 from "@floating-ui/utils";
|
|
4
|
-
|
|
5
|
-
//#region src/components/autocomplete/autocomplete-content.vue.d.ts
|
|
6
|
-
declare var __VLS_16: {};
|
|
7
|
-
type __VLS_Slots = {} & {
|
|
8
|
-
default?: (props: typeof __VLS_16) => any;
|
|
9
|
-
};
|
|
10
|
-
declare const __VLS_base: _$vue.DefineComponent<AutocompleteContentProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<AutocompleteContentProps> & Readonly<{}>, {
|
|
11
|
-
side: _$_floating_ui_utils0.Side;
|
|
12
|
-
sideOffset: number;
|
|
13
|
-
avoidCollisions: boolean;
|
|
14
|
-
prioritizePosition: boolean;
|
|
15
|
-
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
16
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
17
|
-
declare const _default: typeof __VLS_export;
|
|
18
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
19
|
-
new (): {
|
|
20
|
-
$slots: S;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
//#endregion
|
|
24
|
-
export { _default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import e from"../listbox/listbox-group-label.js";import"../listbox/index.js";import{createBlock as t,defineComponent as n,guardReactiveProps as r,normalizeProps as i,openBlock as a,renderSlot as o,unref as s,withCtx as c}from"vue";const l=n({name:`AutocompleteGroupLabel`,__name:`autocomplete-group-label`,setup(n){let l=n;return(n,u)=>(a(),t(s(e),i(r(l)),{default:c(()=>[o(n.$slots,`default`)]),_:3},16))}});export{l as default};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { AutocompleteGroupLabelProps } from "./types.js";
|
|
2
|
-
import * as _$vue from "vue";
|
|
3
|
-
|
|
4
|
-
//#region src/components/autocomplete/autocomplete-group-label.vue.d.ts
|
|
5
|
-
declare var __VLS_8: {};
|
|
6
|
-
type __VLS_Slots = {} & {
|
|
7
|
-
default?: (props: typeof __VLS_8) => any;
|
|
8
|
-
};
|
|
9
|
-
declare const __VLS_base: _$vue.DefineComponent<AutocompleteGroupLabelProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<AutocompleteGroupLabelProps> & Readonly<{}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
10
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
|
-
declare const _default: typeof __VLS_export;
|
|
12
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
13
|
-
new (): {
|
|
14
|
-
$slots: S;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
//#endregion
|
|
18
|
-
export { _default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import e from"../listbox/listbox-group.js";import"../listbox/index.js";import{createBlock as t,defineComponent as n,guardReactiveProps as r,normalizeProps as i,openBlock as a,renderSlot as o,unref as s,withCtx as c}from"vue";const l=n({name:`AutocompleteGroup`,__name:`autocomplete-group`,setup(n){let l=n;return(n,u)=>(a(),t(s(e),i(r(l)),{default:c(()=>[o(n.$slots,`default`)]),_:3},16))}});export{l as default};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { AutocompleteGroupProps } from "./types.js";
|
|
2
|
-
import * as _$vue from "vue";
|
|
3
|
-
|
|
4
|
-
//#region src/components/autocomplete/autocomplete-group.vue.d.ts
|
|
5
|
-
declare var __VLS_8: {};
|
|
6
|
-
type __VLS_Slots = {} & {
|
|
7
|
-
default?: (props: typeof __VLS_8) => any;
|
|
8
|
-
};
|
|
9
|
-
declare const __VLS_base: _$vue.DefineComponent<AutocompleteGroupProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<AutocompleteGroupProps> & Readonly<{}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
10
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
|
-
declare const _default: typeof __VLS_export;
|
|
12
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
13
|
-
new (): {
|
|
14
|
-
$slots: S;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
//#endregion
|
|
18
|
-
export { _default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import e from"../listbox/listbox-item-indicator.js";import"../listbox/index.js";import{createBlock as t,defineComponent as n,guardReactiveProps as r,normalizeProps as i,openBlock as a,renderSlot as o,unref as s,withCtx as c}from"vue";const l=n({name:`AutocompleteItemIndicator`,__name:`autocomplete-item-indicator`,props:{asChild:{type:Boolean},as:{}},setup(n){let l=n;return(n,u)=>(a(),t(s(e),i(r(l)),{default:c(()=>[o(n.$slots,`default`)]),_:3},16))}});export{l as default};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { AutocompleteItemIndicatorProps } from "./types.js";
|
|
2
|
-
import * as _$vue from "vue";
|
|
3
|
-
|
|
4
|
-
//#region src/components/autocomplete/autocomplete-item-indicator.vue.d.ts
|
|
5
|
-
declare var __VLS_8: {};
|
|
6
|
-
type __VLS_Slots = {} & {
|
|
7
|
-
default?: (props: typeof __VLS_8) => any;
|
|
8
|
-
};
|
|
9
|
-
declare const __VLS_base: _$vue.DefineComponent<AutocompleteItemIndicatorProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<AutocompleteItemIndicatorProps> & Readonly<{}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
10
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
|
-
declare const _default: typeof __VLS_export;
|
|
12
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
13
|
-
new (): {
|
|
14
|
-
$slots: S;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
//#endregion
|
|
18
|
-
export { _default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import e from"../listbox/listbox-item.js";import"../listbox/index.js";import{useAutocompleteRootContext as t}from"./context.js";import{createBlock as n,defineComponent as r,openBlock as i,renderSlot as a,unref as o,withCtx as s}from"vue";const c=r({name:`AutocompleteItem`,__name:`autocomplete-item`,props:{value:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{default:`div`}},emits:[`select`],setup(r,{emit:c}){let l=c,{onOpenChange:u}=t(`AutocompleteItem`),d=e=>{l(`select`,e),!e.defaultPrevented&&u(!1)};return(t,c)=>(i(),n(o(e),{as:r.as,"as-child":r.asChild,value:r.value,disabled:r.disabled,onSelect:d},{default:s(()=>[a(t.$slots,`default`)]),_:3},8,[`as`,`as-child`,`value`,`disabled`]))}});export{c as default};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { SelectEvent } from "../../types/event.js";
|
|
2
|
-
import { AsTag } from "../primitive/types.js";
|
|
3
|
-
import { AutocompleteItemProps } from "./types.js";
|
|
4
|
-
import * as _$vue from "vue";
|
|
5
|
-
|
|
6
|
-
//#region src/components/autocomplete/autocomplete-item.vue.d.ts
|
|
7
|
-
declare var __VLS_10: {};
|
|
8
|
-
type __VLS_Slots = {} & {
|
|
9
|
-
default?: (props: typeof __VLS_10) => any;
|
|
10
|
-
};
|
|
11
|
-
declare const __VLS_base: _$vue.DefineComponent<AutocompleteItemProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
12
|
-
select: (event: SelectEvent<string>) => any;
|
|
13
|
-
}, string, _$vue.PublicProps, Readonly<AutocompleteItemProps> & Readonly<{
|
|
14
|
-
onSelect?: ((event: SelectEvent<string>) => any) | undefined;
|
|
15
|
-
}>, {
|
|
16
|
-
as: AsTag | _$vue.Component;
|
|
17
|
-
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
18
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
19
|
-
declare const _default: typeof __VLS_export;
|
|
20
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
21
|
-
new (): {
|
|
22
|
-
$slots: S;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
//#endregion
|
|
26
|
-
export { _default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{useAutocompleteUi as e}from"./context.js";import t from"../separator/separator-root.js";import"../separator/index.js";import{createBlock as n,defineComponent as r,mergeProps as i,openBlock as a,renderSlot as o,unref as s,withCtx as c}from"vue";const l=r({name:`AutocompleteSeparator`,__name:`autocomplete-separator`,props:{orientation:{},decorative:{type:Boolean}},setup(r){let l=r,u=e(`separator`);return(e,r)=>(a(),n(s(t),i(l,{class:s(u)}),{default:c(()=>[o(e.$slots,`default`)]),_:3},16,[`class`]))}});export{l as default};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { AutocompleteSeparatorProps } from "./types.js";
|
|
2
|
-
import * as _$vue from "vue";
|
|
3
|
-
|
|
4
|
-
//#region src/components/autocomplete/autocomplete-separator.vue.d.ts
|
|
5
|
-
declare var __VLS_8: {};
|
|
6
|
-
type __VLS_Slots = {} & {
|
|
7
|
-
default?: (props: typeof __VLS_8) => any;
|
|
8
|
-
};
|
|
9
|
-
declare const __VLS_base: _$vue.DefineComponent<AutocompleteSeparatorProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<AutocompleteSeparatorProps> & Readonly<{}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
10
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
|
-
declare const _default: typeof __VLS_export;
|
|
12
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
13
|
-
new (): {
|
|
14
|
-
$slots: S;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
//#endregion
|
|
18
|
-
export { _default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Primitive as e}from"../primitive/primitive.js";import"../primitive/index.js";import{usePopoverRootContext as t}from"../popover/context.js";import{useAutocompleteRootContext as n,useAutocompleteUi as r}from"./context.js";import{computed as i,createBlock as a,defineComponent as o,normalizeClass as s,openBlock as c,renderSlot as l,unref as u,withCtx as d}from"vue";const f=o({name:`AutocompleteTrigger`,__name:`autocomplete-trigger`,props:{asChild:{type:Boolean},as:{default:`button`}},setup(o){let f=o,p=r(`trigger`),{dataState:m}=t(`AutocompleteTrigger`),{contentId:h,disabled:g,onOpenChange:_,open:v}=n(`AutocompleteTrigger`),y=i(()=>g.value||f.disabled||!1),b=i(()=>f.as===`button`?`button`:void 0),x=()=>{y.value||_(!v.value)};return(t,n)=>(c(),a(u(e),{as:o.as,"as-child":o.asChild,class:s(u(p)),"aria-controls":u(h),"aria-expanded":u(v)||!1,"data-disabled":y.value?``:void 0,"data-state":u(m),disabled:y.value,type:b.value,onClick:x},{default:d(()=>[l(t.$slots,`default`)]),_:3},8,[`as`,`as-child`,`class`,`aria-controls`,`aria-expanded`,`data-disabled`,`data-state`,`disabled`,`type`]))}});export{f as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import e from"../listbox/listbox-content.js";import"../listbox/index.js";import{useAutocompleteRootContext as t}from"./context.js";import{createBlock as n,defineComponent as r,mergeProps as i,openBlock as a,renderSlot as o,unref as s,withCtx as c}from"vue";const l=r({name:`AutocompleteViewport`,__name:`autocomplete-viewport`,setup(r){let l=r,{contentId:u,initContentId:d}=t(`AutocompleteViewport`);return d(),(t,r)=>(a(),n(s(e),i(l,{id:s(u)}),{default:c(()=>[o(t.$slots,`default`)]),_:3},16,[`id`]))}});export{l as default};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { AutocompleteViewportProps } from "./types.js";
|
|
2
|
-
import * as _$vue from "vue";
|
|
3
|
-
|
|
4
|
-
//#region src/components/autocomplete/autocomplete-viewport.vue.d.ts
|
|
5
|
-
declare var __VLS_8: {};
|
|
6
|
-
type __VLS_Slots = {} & {
|
|
7
|
-
default?: (props: typeof __VLS_8) => any;
|
|
8
|
-
};
|
|
9
|
-
declare const __VLS_base: _$vue.DefineComponent<AutocompleteViewportProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<AutocompleteViewportProps> & Readonly<{}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
10
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
|
-
declare const _default: typeof __VLS_export;
|
|
12
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
13
|
-
new (): {
|
|
14
|
-
$slots: S;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
//#endregion
|
|
18
|
-
export { _default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import e from"../popper/popper-anchor.js";import"../popper/index.js";import{useComboboxUi as t}from"./context.js";import{createBlock as n,defineComponent as r,normalizeClass as i,openBlock as a,renderSlot as o,unref as s,withCtx as c}from"vue";const l=r({name:`ComboboxAnchor`,__name:`combobox-anchor`,props:{reference:{},asChild:{type:Boolean},as:{}},setup(r){let l=t(`anchor`);return(t,u)=>(a(),n(s(e),{as:r.as,"as-child":r.asChild,class:i(s(l)),reference:r.reference,"data-slot":`anchor`},{default:c(()=>[o(t.$slots,`default`)]),_:3},8,[`as`,`as-child`,`class`,`reference`]))}});export{l as default};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { ComboboxAnchorProps } from "./types.js";
|
|
2
|
-
import * as _$vue from "vue";
|
|
3
|
-
|
|
4
|
-
//#region src/components/combobox/combobox-anchor.vue.d.ts
|
|
5
|
-
declare var __VLS_8: {};
|
|
6
|
-
type __VLS_Slots = {} & {
|
|
7
|
-
default?: (props: typeof __VLS_8) => any;
|
|
8
|
-
};
|
|
9
|
-
declare const __VLS_base: _$vue.DefineComponent<ComboboxAnchorProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<ComboboxAnchorProps> & Readonly<{}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
10
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
|
-
declare const _default: typeof __VLS_export;
|
|
12
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
13
|
-
new (): {
|
|
14
|
-
$slots: S;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
//#endregion
|
|
18
|
-
export { _default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import e from"../listbox/listbox-group-label.js";import"../listbox/index.js";import{createBlock as t,defineComponent as n,mergeProps as r,openBlock as i,renderSlot as a,unref as o,withCtx as s}from"vue";const c=n({name:`ComboboxGroupLabel`,__name:`combobox-group-label`,setup(n){let c=n;return(n,l)=>(i(),t(o(e),r(c,{"data-slot":`group-label`}),{default:s(()=>[a(n.$slots,`default`)]),_:3},16))}});export{c as default};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { ComboboxGroupLabelProps } from "./types.js";
|
|
2
|
-
import * as _$vue from "vue";
|
|
3
|
-
|
|
4
|
-
//#region src/components/combobox/combobox-group-label.vue.d.ts
|
|
5
|
-
declare var __VLS_8: {};
|
|
6
|
-
type __VLS_Slots = {} & {
|
|
7
|
-
default?: (props: typeof __VLS_8) => any;
|
|
8
|
-
};
|
|
9
|
-
declare const __VLS_base: _$vue.DefineComponent<ComboboxGroupLabelProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<ComboboxGroupLabelProps> & Readonly<{}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
10
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
|
-
declare const _default: typeof __VLS_export;
|
|
12
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
13
|
-
new (): {
|
|
14
|
-
$slots: S;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
//#endregion
|
|
18
|
-
export { _default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import e from"../listbox/listbox-item-indicator.js";import"../listbox/index.js";import{createBlock as t,defineComponent as n,openBlock as r,renderSlot as i,unref as a,withCtx as o}from"vue";const s=n({name:`ComboboxItemIndicator`,__name:`combobox-item-indicator`,props:{asChild:{type:Boolean},as:{default:`span`}},setup(n){return(s,c)=>(r(),t(a(e),{as:n.as,"as-child":n.asChild,"data-slot":`item-indicator`},{default:o(()=>[i(s.$slots,`default`)]),_:3},8,[`as`,`as-child`]))}});export{s as default};
|
package/dist/node_modules/.pnpm/@soybeanjs_utils@0.1.0/node_modules/@soybeanjs/utils/dist/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=e=>Object.keys(e);export{e};
|