@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,280 @@
|
|
|
1
|
+
import { Direction, UiClass } from "../../types/common.js";
|
|
2
|
+
import { FormFieldCommonProps } from "../../types/component.js";
|
|
3
|
+
import { PropsToContext } from "../../types/vue.js";
|
|
4
|
+
import { PrimitiveProps } from "../primitive/types.js";
|
|
5
|
+
import { TimeValue } from "../../date/comparators.js";
|
|
6
|
+
import { DateStep, HourCycle, SegmentPart, SegmentValueObj, TimeGranularity, TimeInputType, TimeMatcher, TimeRange } from "../../date/types.js";
|
|
7
|
+
import { Formatter } from "../../date/formatter.js";
|
|
8
|
+
import { ComputedRef, HTMLAttributes, ShallowRef } from "vue";
|
|
9
|
+
|
|
10
|
+
//#region src/components/time-range-field/types.d.ts
|
|
11
|
+
/**
|
|
12
|
+
* Props for the time range field root component.
|
|
13
|
+
*/
|
|
14
|
+
interface TimeRangeFieldRootProps extends PrimitiveProps, FormFieldCommonProps, /** @vue-ignore */Omit<HTMLAttributes, 'placeholder'> {
|
|
15
|
+
/**
|
|
16
|
+
* Default value.
|
|
17
|
+
*/
|
|
18
|
+
defaultValue?: TimeRange;
|
|
19
|
+
/**
|
|
20
|
+
* Default placeholder.
|
|
21
|
+
*/
|
|
22
|
+
defaultPlaceholder?: TimeValue;
|
|
23
|
+
/**
|
|
24
|
+
* Placeholder.
|
|
25
|
+
*/
|
|
26
|
+
placeholder?: TimeValue;
|
|
27
|
+
/**
|
|
28
|
+
* Current model value.
|
|
29
|
+
*/
|
|
30
|
+
modelValue?: TimeRange;
|
|
31
|
+
/**
|
|
32
|
+
* Hour cycle.
|
|
33
|
+
*/
|
|
34
|
+
hourCycle?: HourCycle;
|
|
35
|
+
/**
|
|
36
|
+
* Step.
|
|
37
|
+
*/
|
|
38
|
+
step?: DateStep;
|
|
39
|
+
/**
|
|
40
|
+
* Granularity.
|
|
41
|
+
*/
|
|
42
|
+
granularity?: TimeGranularity;
|
|
43
|
+
/**
|
|
44
|
+
* Whether hide time zone.
|
|
45
|
+
*/
|
|
46
|
+
hideTimeZone?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Max value.
|
|
49
|
+
*/
|
|
50
|
+
maxValue?: TimeValue;
|
|
51
|
+
/**
|
|
52
|
+
* Min value.
|
|
53
|
+
*/
|
|
54
|
+
minValue?: TimeValue;
|
|
55
|
+
/**
|
|
56
|
+
* Locale.
|
|
57
|
+
*/
|
|
58
|
+
locale?: string;
|
|
59
|
+
/**
|
|
60
|
+
* Whether the component is disabled.
|
|
61
|
+
*/
|
|
62
|
+
disabled?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Whether the component is readonly.
|
|
65
|
+
*/
|
|
66
|
+
readonly?: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Whether the time is unavailable.
|
|
69
|
+
*/
|
|
70
|
+
isTimeUnavailable?: TimeMatcher;
|
|
71
|
+
/**
|
|
72
|
+
* Id.
|
|
73
|
+
*/
|
|
74
|
+
id?: string;
|
|
75
|
+
/**
|
|
76
|
+
* Reading direction of the component.
|
|
77
|
+
*/
|
|
78
|
+
dir?: Direction;
|
|
79
|
+
/**
|
|
80
|
+
* Start name.
|
|
81
|
+
*/
|
|
82
|
+
startName?: string;
|
|
83
|
+
/**
|
|
84
|
+
* End name.
|
|
85
|
+
*/
|
|
86
|
+
endName?: string;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Emits for the time range field root component.
|
|
90
|
+
*/
|
|
91
|
+
type TimeRangeFieldRootEmits = {
|
|
92
|
+
/**
|
|
93
|
+
* Emitted when the model value changes.
|
|
94
|
+
*/
|
|
95
|
+
'update:modelValue': [range: TimeRange];
|
|
96
|
+
/**
|
|
97
|
+
* Emitted when the placeholder value changes.
|
|
98
|
+
*/
|
|
99
|
+
'update:placeholder': [time: TimeValue];
|
|
100
|
+
/**
|
|
101
|
+
* Emitted when the start value changes.
|
|
102
|
+
*/
|
|
103
|
+
'update:startValue': [time: TimeValue | undefined];
|
|
104
|
+
/**
|
|
105
|
+
* Emitted when the end value changes.
|
|
106
|
+
*/
|
|
107
|
+
'update:endValue': [time: TimeValue | undefined];
|
|
108
|
+
};
|
|
109
|
+
/**
|
|
110
|
+
* Props for the time range field input component.
|
|
111
|
+
*/
|
|
112
|
+
interface TimeRangeFieldInputProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {
|
|
113
|
+
/**
|
|
114
|
+
* Part.
|
|
115
|
+
*/
|
|
116
|
+
part: SegmentPart;
|
|
117
|
+
/**
|
|
118
|
+
* Type.
|
|
119
|
+
*/
|
|
120
|
+
type?: 'start' | 'end';
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Type information for the time range field segment component.
|
|
124
|
+
*/
|
|
125
|
+
interface TimeRangeFieldSegment {
|
|
126
|
+
/**
|
|
127
|
+
* Part.
|
|
128
|
+
*/
|
|
129
|
+
part: SegmentPart;
|
|
130
|
+
/**
|
|
131
|
+
* Value associated with the current item.
|
|
132
|
+
*/
|
|
133
|
+
value: string;
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Context for the time range field root component.
|
|
137
|
+
*/
|
|
138
|
+
interface TimeRangeFieldRootContext extends PropsToContext<TimeRangeFieldRootProps, 'disabled' | 'readonly'> {
|
|
139
|
+
/**
|
|
140
|
+
* Locale used by the component context.
|
|
141
|
+
*/
|
|
142
|
+
locale: ComputedRef<string>;
|
|
143
|
+
/**
|
|
144
|
+
* Reading direction of the component.
|
|
145
|
+
*/
|
|
146
|
+
dir: ComputedRef<Direction>;
|
|
147
|
+
/**
|
|
148
|
+
* Current model value.
|
|
149
|
+
*/
|
|
150
|
+
modelValue: ShallowRef<TimeRange>;
|
|
151
|
+
/**
|
|
152
|
+
* Placeholder used by the component context.
|
|
153
|
+
*/
|
|
154
|
+
placeholder: ShallowRef<TimeValue>;
|
|
155
|
+
/**
|
|
156
|
+
* Whether the time is unavailable.
|
|
157
|
+
*/
|
|
158
|
+
isTimeUnavailable?: TimeMatcher;
|
|
159
|
+
/**
|
|
160
|
+
* Whether the current value is invalid.
|
|
161
|
+
*/
|
|
162
|
+
isInvalid: ComputedRef<boolean>;
|
|
163
|
+
/**
|
|
164
|
+
* Formatter used by the component context.
|
|
165
|
+
*/
|
|
166
|
+
formatter: Formatter;
|
|
167
|
+
/**
|
|
168
|
+
* Hour cycle used by the component context.
|
|
169
|
+
*/
|
|
170
|
+
hourCycle: HourCycle;
|
|
171
|
+
/**
|
|
172
|
+
* Step used by the component context.
|
|
173
|
+
*/
|
|
174
|
+
step: ComputedRef<DateStep>;
|
|
175
|
+
/**
|
|
176
|
+
* Start segment values used by the component context.
|
|
177
|
+
*/
|
|
178
|
+
startSegmentValues: ShallowRef<SegmentValueObj>;
|
|
179
|
+
/**
|
|
180
|
+
* End segment values used by the component context.
|
|
181
|
+
*/
|
|
182
|
+
endSegmentValues: ShallowRef<SegmentValueObj>;
|
|
183
|
+
/**
|
|
184
|
+
* Start segment contents used by the component context.
|
|
185
|
+
*/
|
|
186
|
+
startSegmentContents: ComputedRef<TimeRangeFieldSegment[]>;
|
|
187
|
+
/**
|
|
188
|
+
* End segment contents used by the component context.
|
|
189
|
+
*/
|
|
190
|
+
endSegmentContents: ComputedRef<TimeRangeFieldSegment[]>;
|
|
191
|
+
/**
|
|
192
|
+
* Start input type used by the component context.
|
|
193
|
+
*/
|
|
194
|
+
startInputType: ComputedRef<TimeInputType>;
|
|
195
|
+
/**
|
|
196
|
+
* End input type used by the component context.
|
|
197
|
+
*/
|
|
198
|
+
endInputType: ComputedRef<TimeInputType>;
|
|
199
|
+
/**
|
|
200
|
+
* Start input value used by the component context.
|
|
201
|
+
*/
|
|
202
|
+
startInputValue: ComputedRef<string>;
|
|
203
|
+
/**
|
|
204
|
+
* End input value used by the component context.
|
|
205
|
+
*/
|
|
206
|
+
endInputValue: ComputedRef<string>;
|
|
207
|
+
/**
|
|
208
|
+
* Input max value used by the component context.
|
|
209
|
+
*/
|
|
210
|
+
inputMaxValue: ComputedRef<string | undefined>;
|
|
211
|
+
/**
|
|
212
|
+
* Input min value used by the component context.
|
|
213
|
+
*/
|
|
214
|
+
inputMinValue: ComputedRef<string | undefined>;
|
|
215
|
+
/**
|
|
216
|
+
* Start elements used by the component context.
|
|
217
|
+
*/
|
|
218
|
+
startElements: ShallowRef<HTMLElement[]>;
|
|
219
|
+
/**
|
|
220
|
+
* End elements used by the component context.
|
|
221
|
+
*/
|
|
222
|
+
endElements: ShallowRef<HTMLElement[]>;
|
|
223
|
+
/**
|
|
224
|
+
* Focused type used by the component context.
|
|
225
|
+
*/
|
|
226
|
+
focusedType: ShallowRef<'start' | 'end'>;
|
|
227
|
+
/**
|
|
228
|
+
* Focus next used by the component context.
|
|
229
|
+
*/
|
|
230
|
+
focusNext: (type: 'start' | 'end') => void;
|
|
231
|
+
/**
|
|
232
|
+
* Set focused element used by the component context.
|
|
233
|
+
*/
|
|
234
|
+
setFocusedElement: (el: HTMLElement, type: 'start' | 'end') => void;
|
|
235
|
+
}
|
|
236
|
+
/**
|
|
237
|
+
* Available UI slots for the time range field component.
|
|
238
|
+
*/
|
|
239
|
+
type TimeRangeFieldUiSlot = 'root' | 'input' | 'separator';
|
|
240
|
+
/**
|
|
241
|
+
* UI class overrides for the time range field component.
|
|
242
|
+
*/
|
|
243
|
+
type TimeRangeFieldUi = UiClass<TimeRangeFieldUiSlot>;
|
|
244
|
+
/**
|
|
245
|
+
* Props for the time range field compact component.
|
|
246
|
+
*/
|
|
247
|
+
interface TimeRangeFieldCompactProps extends TimeRangeFieldRootProps {
|
|
248
|
+
/**
|
|
249
|
+
* Props forwarded to the input element.
|
|
250
|
+
*/
|
|
251
|
+
inputProps?: Omit<TimeRangeFieldInputProps, 'part' | 'type'>;
|
|
252
|
+
/**
|
|
253
|
+
* Separator.
|
|
254
|
+
*/
|
|
255
|
+
separator?: string;
|
|
256
|
+
}
|
|
257
|
+
/**
|
|
258
|
+
* Emits for the time range field compact component.
|
|
259
|
+
*/
|
|
260
|
+
type TimeRangeFieldCompactEmits = TimeRangeFieldRootEmits;
|
|
261
|
+
/**
|
|
262
|
+
* Slots for the time range field compact component.
|
|
263
|
+
*/
|
|
264
|
+
type TimeRangeFieldCompactSlots = {
|
|
265
|
+
/**
|
|
266
|
+
* Custom content for the default slot.
|
|
267
|
+
*/
|
|
268
|
+
default?: (props: {
|
|
269
|
+
startSegments: TimeRangeFieldSegment[];
|
|
270
|
+
endSegments: TimeRangeFieldSegment[];
|
|
271
|
+
modelValue: TimeRange;
|
|
272
|
+
isInvalid: boolean;
|
|
273
|
+
}) => any;
|
|
274
|
+
/**
|
|
275
|
+
* Custom content for the separator slot.
|
|
276
|
+
*/
|
|
277
|
+
separator?: () => any;
|
|
278
|
+
};
|
|
279
|
+
//#endregion
|
|
280
|
+
export { TimeRangeFieldCompactEmits, TimeRangeFieldCompactProps, TimeRangeFieldCompactSlots, TimeRangeFieldInputProps, TimeRangeFieldRootContext, TimeRangeFieldRootEmits, TimeRangeFieldRootProps, TimeRangeFieldSegment, TimeRangeFieldUi, TimeRangeFieldUiSlot };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { UiClass } from "../../types/common.js";
|
|
2
|
+
import { UseUiConsumer } from "../../composables/use-ui-context.js";
|
|
3
|
+
import { TimeRangePickerUiSlot } from "./types.js";
|
|
4
|
+
import * as _$vue from "vue";
|
|
5
|
+
|
|
6
|
+
//#region src/components/time-range-picker/context.d.ts
|
|
7
|
+
declare const provideTimeRangePickerUi: (ui: _$vue.ComputedRef<Partial<UiClass<TimeRangePickerUiSlot>>>) => _$vue.ComputedRef<Partial<UiClass<TimeRangePickerUiSlot>>>, useTimeRangePickerUi: UseUiConsumer<TimeRangePickerUiSlot>;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { provideTimeRangePickerUi };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useContext as e}from"../../composables/use-context.js";import{useUiContext as t}from"../../composables/use-ui-context.js";import"../../composables/index.js";const[n,r]=e(`TimeRangePickerRoot`),[i,a]=t(`TimeRangePickerUi`);export{n as provideTimeRangePickerRootContext,i as provideTimeRangePickerUi,r as useTimeRangePickerRootContext,a as useTimeRangePickerUi};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TimeRangePickerCompactEmits, TimeRangePickerCompactProps, TimeRangePickerCompactSlots, TimeRangePickerPopupProps, TimeRangePickerRootContext, TimeRangePickerRootEmits, TimeRangePickerRootProps, TimeRangePickerTriggerProps, TimeRangePickerUi, TimeRangePickerUiSlot } from "./types.js";
|
|
2
|
+
import { _default } from "./time-range-picker-compact.vue.js";
|
|
3
|
+
import { _default as _default$1 } from "./time-range-picker-popup.vue.js";
|
|
4
|
+
import { _default as _default$2 } from "./time-range-picker-root.vue.js";
|
|
5
|
+
import { _default as _default$3 } from "./time-range-picker-trigger.vue.js";
|
|
6
|
+
import { provideTimeRangePickerUi } from "./context.js";
|
|
7
|
+
export { _default as TimeRangePickerCompact, type TimeRangePickerCompactEmits, type TimeRangePickerCompactProps, type TimeRangePickerCompactSlots, _default$1 as TimeRangePickerPopup, type TimeRangePickerPopupProps, _default$2 as TimeRangePickerRoot, type TimeRangePickerRootContext, type TimeRangePickerRootEmits, type TimeRangePickerRootProps, _default$3 as TimeRangePickerTrigger, type TimeRangePickerTriggerProps, type TimeRangePickerUi, type TimeRangePickerUiSlot, provideTimeRangePickerUi };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{provideTimeRangePickerUi as e}from"./context.js";import t from"./time-range-picker-root.js";import n from"./time-range-picker-trigger.js";import r from"./time-range-picker-popup.js";import i from"./time-range-picker-compact.js";export{i as TimeRangePickerCompact,r as TimeRangePickerPopup,t as TimeRangePickerRoot,n as TimeRangePickerTrigger,e as provideTimeRangePickerUi};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useForwardListeners as e}from"../../composables/use-forward-listeners.js";import{useOmitProps as t}from"../../composables/use-props.js";import"../../composables/index.js";import n from"./time-range-picker-root.js";import r from"./time-range-picker-trigger.js";import i from"./time-range-picker-popup.js";import{createBlock as a,createVNode as o,defineComponent as s,guardReactiveProps as c,mergeProps as l,normalizeProps as u,openBlock as d,renderSlot as f,toHandlers as p,unref as m,withCtx as h}from"vue";const g=s({name:`TimeRangePickerCompact`,__name:`time-range-picker-compact`,props:{triggerProps:{},popupProps:{},defaultValue:{},defaultPlaceholder:{},placeholder:{},modelValue:{},hourCycle:{},step:{},granularity:{},hideTimeZone:{type:Boolean},maxValue:{},minValue:{},locale:{},disabled:{type:Boolean},readonly:{type:Boolean},isTimeUnavailable:{},id:{},dir:{},defaultOpen:{type:Boolean},open:{type:Boolean,default:void 0},modal:{type:Boolean},asChild:{type:Boolean},as:{},name:{},required:{type:Boolean}},emits:[`update:modelValue`,`update:placeholder`,`update:startValue`,`update:endValue`,`update:open`],setup(s,{emit:g}){let _=s,v=g,y=t(_,[`triggerProps`,`popupProps`]),b=e(v);return(e,t)=>(d(),a(n,l(m(y),p(m(b))),{default:h(t=>[o(r,u(c(s.triggerProps)),{default:h(()=>[f(e.$slots,`trigger`,{displayValue:t.displayValue,modelValue:t.modelValue,open:t.open})]),_:2},1040),o(i,u(c(s.popupProps)),{time:h(t=>[f(e.$slots,`time`,u(c(t)))]),_:3},16),f(e.$slots,`default`,u(c(t)))]),_:3},16))}});export{g as default};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { TimeValue } from "../../date/comparators.js";
|
|
2
|
+
import { TimeRange } from "../../date/types.js";
|
|
3
|
+
import { TimeRangePickerCompactProps, TimeRangePickerCompactSlots } from "./types.js";
|
|
4
|
+
import * as _$vue from "vue";
|
|
5
|
+
|
|
6
|
+
//#region src/components/time-range-picker/time-range-picker-compact.vue.d.ts
|
|
7
|
+
type __VLS_Slots = TimeRangePickerCompactSlots;
|
|
8
|
+
declare const __VLS_base: _$vue.DefineComponent<TimeRangePickerCompactProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
9
|
+
"update:modelValue": (range: TimeRange) => any;
|
|
10
|
+
"update:open": (open: boolean) => any;
|
|
11
|
+
"update:placeholder": (time: TimeValue) => any;
|
|
12
|
+
"update:startValue": (time: TimeValue | undefined) => any;
|
|
13
|
+
"update:endValue": (time: TimeValue | undefined) => any;
|
|
14
|
+
}, string, _$vue.PublicProps, Readonly<TimeRangePickerCompactProps> & Readonly<{
|
|
15
|
+
"onUpdate:modelValue"?: ((range: TimeRange) => any) | undefined;
|
|
16
|
+
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
17
|
+
"onUpdate:placeholder"?: ((time: TimeValue) => any) | undefined;
|
|
18
|
+
"onUpdate:startValue"?: ((time: TimeValue | undefined) => any) | undefined;
|
|
19
|
+
"onUpdate:endValue"?: ((time: TimeValue | undefined) => any) | undefined;
|
|
20
|
+
}>, {
|
|
21
|
+
open: boolean;
|
|
22
|
+
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
24
|
+
declare const _default: typeof __VLS_export;
|
|
25
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
26
|
+
new (): {
|
|
27
|
+
$slots: S;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
//#endregion
|
|
31
|
+
export { _default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{findClosestTimeOption as e}from"../../shared/time-picker.js";import{useForwardElement as t}from"../../composables/use-forward-element.js";import"../../composables/index.js";import{Primitive as n}from"../primitive/primitive.js";import"../primitive/index.js";import{useTimeRangePickerRootContext as r,useTimeRangePickerUi as i}from"./context.js";import{Fragment as a,createBlock as o,createCommentVNode as s,createElementBlock as c,createElementVNode as l,createTextVNode as u,defineComponent as d,nextTick as f,normalizeClass as p,openBlock as m,renderList as h,renderSlot as g,toDisplayString as _,unref as v,watch as y,withCtx as b}from"vue";const x=[`aria-label`,`aria-pressed`,`data-disabled`,`data-focused`,`data-highlighted`,`data-range-end`,`data-range-start`,`data-selected`,`data-time-key`,`disabled`,`tabindex`,`onClick`,`onFocus`,`onKeydown`,`onMouseenter`],S=d({name:`TimeRangePickerPopup`,__name:`time-range-picker-popup`,props:{asChild:{type:Boolean},as:{default:`div`}},setup(d){let S=i(`popup`),C=i(`list`),w=i(`cellTrigger`),{focusedTime:T,isRangeEnd:E,isRangeStart:D,isTimeDisabled:O,isTimeHighlighted:k,isTimeSelected:A,modelValue:j,onRangeChange:M,open:N,options:P,popupId:F,setFocusedTime:I,setHoveredTime:L}=r(`TimeRangePickerPopup`),[R,z]=t(),B=e=>{let t=R.value?.querySelector(`[data-time-key='${e}']`);t?.focus(),t?.scrollIntoView({block:`nearest`})},V=(e,t)=>{let n=P.value,r=e;for(;r>=0&&r<n.length;){let e=n[r];if(!O(e.value))return I(e.value),f(()=>{B(e.key)}),!0;r+=t}return!1},H=()=>{let t=e(P.value,j.value.end??j.value.start??T.value);if(!t)return;let n=P.value.findIndex(e=>e.key===t.key);V(n===-1?0:n,1)},U=(e,t)=>{let n=e+t,r=t>=0?1:-1;n<0||n>=P.value.length||V(n,r)},W=e=>{O(e)||M(e)},G=e=>{I(e)},K=e=>{j.value.start&&!j.value.end&&!O(e)&&L(e)},q=(e,t,n)=>{if(!O(e))switch(n.key){case`ArrowDown`:n.preventDefault(),U(t,1);break;case`ArrowUp`:n.preventDefault(),U(t,-1);break;case`Home`:n.preventDefault(),V(0,1);break;case`End`:n.preventDefault(),V(P.value.length-1,-1);break;case`Enter`:case` `:n.preventDefault(),M(e);break;default:break}};return y(()=>N.value,e=>{e&&f(()=>{H()})}),(e,t)=>v(N)?(m(),o(v(n),{key:0,id:v(F),ref:v(z),as:d.as,"as-child":d.asChild,"aria-label":`Time range picker`,class:p(v(S)),"data-slot":`popup`,role:`dialog`,onMouseleave:t[0]||(t[0]=e=>v(L)(void 0))},{default:b(()=>[l(`div`,{class:p(v(C)),"data-slot":`list`},[(m(!0),c(a,null,h(v(P),(t,n)=>(m(),c(`button`,{key:t.key,"aria-label":t.label,"aria-pressed":v(A)(t.value)?!0:void 0,class:p(v(w)),"data-disabled":v(O)(t.value)?``:void 0,"data-focused":t.value.toString()===v(T).toString()?``:void 0,"data-highlighted":v(k)(t.value)?``:void 0,"data-range-end":v(E)(t.value)?``:void 0,"data-range-start":v(D)(t.value)?``:void 0,"data-selected":v(A)(t.value)?``:void 0,"data-slot":`cell-trigger`,"data-time-key":t.key,disabled:v(O)(t.value),tabindex:t.value.toString()===v(T).toString()&&!v(O)(t.value)?0:-1,type:`button`,onClick:e=>W(t.value),onFocus:e=>G(t.value),onKeydown:e=>q(t.value,n,e),onMouseenter:e=>K(t.value)},[g(e.$slots,`time`,{disabled:v(O)(t.value),focused:t.value.toString()===v(T).toString(),highlighted:v(k)(t.value),label:t.label,rangeEnd:v(E)(t.value),rangeStart:v(D)(t.value),selected:v(A)(t.value),time:t.value},()=>[u(_(t.label),1)])],42,x))),128))],2)]),_:3},8,[`id`,`as`,`as-child`,`class`])):s(`v-if`,!0)}});export{S as default};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { AsTag } from "../primitive/types.js";
|
|
2
|
+
import { TimeValue } from "../../date/comparators.js";
|
|
3
|
+
import { TimeRangePickerPopupProps } from "./types.js";
|
|
4
|
+
import * as _$vue from "vue";
|
|
5
|
+
|
|
6
|
+
//#region src/components/time-range-picker/time-range-picker-popup.vue.d.ts
|
|
7
|
+
type __VLS_Slots = {
|
|
8
|
+
time?: (props: {
|
|
9
|
+
disabled: boolean;
|
|
10
|
+
focused: boolean;
|
|
11
|
+
highlighted: boolean;
|
|
12
|
+
label: string;
|
|
13
|
+
rangeEnd: boolean;
|
|
14
|
+
rangeStart: boolean;
|
|
15
|
+
selected: boolean;
|
|
16
|
+
time: TimeValue;
|
|
17
|
+
}) => any;
|
|
18
|
+
};
|
|
19
|
+
declare const __VLS_base: _$vue.DefineComponent<TimeRangePickerPopupProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<TimeRangePickerPopupProps> & Readonly<{}>, {
|
|
20
|
+
as: AsTag | _$vue.Component;
|
|
21
|
+
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
22
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
23
|
+
declare const _default: typeof __VLS_export;
|
|
24
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
25
|
+
new (): {
|
|
26
|
+
$slots: S;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
//#endregion
|
|
30
|
+
export { _default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{getDefaultTime as e,isBefore as t}from"../../date/comparators.js";import{normalizeHourCycle as n}from"../../date/utils.js";import{useDateFormatter as r}from"../../date/formatter.js";import"../../date/index.js";import{compareTimeValues as i,createTimeOptions as a,formatTimeValue as o,isTimeBetweenInclusive as s}from"../../shared/time-picker.js";import{useControllableState as c}from"../../composables/use-controllable-state.js";import"../../composables/index.js";import{useDirection as l,useLocale as u}from"../config-provider/context.js";import{Primitive as d}from"../primitive/primitive.js";import"../primitive/index.js";import{provideTimeRangePickerRootContext as f,useTimeRangePickerUi as p}from"./context.js";import{computed as m,createBlock as h,defineComponent as g,normalizeClass as _,openBlock as v,renderSlot as y,shallowRef as b,unref as x,useId as S,watch as C,withCtx as w}from"vue";const T=g({name:`TimeRangePickerRoot`,__name:`time-range-picker-root`,props:{defaultValue:{default:void 0},defaultPlaceholder:{default:void 0},placeholder:{default:void 0},modelValue:{},hourCycle:{default:void 0},step:{default:void 0},granularity:{default:void 0},hideTimeZone:{type:Boolean,default:!1},maxValue:{},minValue:{},locale:{},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},isTimeUnavailable:{type:Function,default:void 0},id:{},dir:{},defaultOpen:{type:Boolean,default:!1},open:{type:Boolean,default:void 0},modal:{type:Boolean,default:!1},asChild:{type:Boolean},as:{},name:{},required:{type:Boolean}},emits:[`update:modelValue`,`update:placeholder`,`update:startValue`,`update:endValue`,`update:open`],setup(g,{emit:T}){let E=g,D=T,O=p(`root`),k=S(),A=u(()=>E.locale),j=l(()=>E.dir),M=r(A.value,{hourCycle:n(E.hourCycle)}),N=m(()=>E.granularity??`minute`),P=m(()=>E.hideTimeZone),F=c(()=>E.modelValue,e=>{D(`update:modelValue`,e),D(`update:startValue`,e.start),D(`update:endValue`,e.end)},E.defaultValue??{}),I=e({defaultPlaceholder:E.placeholder,defaultValue:F.value.start}),L=c(()=>E.placeholder,e=>D(`update:placeholder`,e),E.defaultPlaceholder??I.copy()),R=c(()=>E.open,e=>D(`update:open`,e??!1),E.defaultOpen),z=b(F.value.end?.copy()??F.value.start?.copy()??L.value.copy()),B=b(),V=m(()=>E.minValue),H=m(()=>E.maxValue),U=e=>!!(E.disabled||E.isTimeUnavailable?.(e)||V.value&&t(e,V.value)||H.value&&t(H.value,e)),W=(e,t)=>i(e,t)<=0?{start:e.copy(),end:t.copy()}:{start:t.copy(),end:e.copy()},G=e=>F.value.start?F.value.start.toString()===e.toString():!1,K=e=>F.value.end?F.value.end.toString()===e.toString():!1,q=e=>{let{start:t,end:n}=F.value;return!t&&!n?!1:t&&!n?t.toString()===e.toString():t&&n?s(e,t,n):!1},J=e=>{let{start:t,end:n}=F.value;if(!t||n||!B.value)return!1;let r=W(t,B.value);return s(e,r.start,r.end)},Y=m(()=>{let{start:e,end:t}=F.value;return!!(e&&U(e)||t&&U(t)||e&&t&&i(t,e)<0)}),X=m(()=>{let{start:e,end:t}=F.value;return e&&t?`${o({formatter:M,granularity:N.value,hideTimeZone:P.value,hourCycle:E.hourCycle,value:e})} – ${o({formatter:M,granularity:N.value,hideTimeZone:P.value,hourCycle:E.hourCycle,value:t})}`:e?`${o({formatter:M,granularity:N.value,hideTimeZone:P.value,hourCycle:E.hourCycle,value:e})} – ...`:``}),Z=m(()=>a({formatter:M,granularity:N.value,hideTimeZone:P.value,hourCycle:E.hourCycle,isTimeUnavailable:E.isTimeUnavailable,maxValue:H.value,minValue:V.value,reference:F.value.start??L.value,step:E.step})),Q=e=>{L.value=e.copy(),z.value=e.copy()};return C(A,e=>{M.getLocale()!==e&&M.setLocale(e)}),C(()=>F.value.start,e=>{e&&L.value.toString()!==e.toString()&&(L.value=e.copy())}),C(F,e=>{z.value=e.end?.copy()??e.start?.copy()??L.value.copy()},{deep:!0}),f({locale:A,dir:j,modelValue:F,placeholder:L,isTimeUnavailable:E.isTimeUnavailable,isInvalid:Y,formatter:M,granularity:N,hourCycle:E.hourCycle,hideTimeZone:P,open:R,popupId:k,displayValue:X,focusedTime:z,hoveredTime:B,options:Z,minValue:V,maxValue:H,onRangeChange:e=>{if(E.readonly||U(e))return;let{start:t,end:n}=F.value;if(!t||n){F.value={start:e.copy(),end:void 0},z.value=e.copy(),B.value=void 0,Q(e);return}let r=W(t,e);F.value=r,z.value=e.copy(),B.value=void 0,Q(r.start),R.value=!1},onPlaceholderChange:Q,isTimeDisabled:U,isTimeSelected:q,isTimeHighlighted:J,isRangeStart:G,isRangeEnd:K,setOpen(e){R.value=e},setFocusedTime:e=>{z.value=e.copy()},setHoveredTime:e=>{B.value=e?.copy()},disabled:m(()=>E.disabled),readonly:m(()=>E.readonly)}),(e,t)=>(v(),h(x(d),{as:g.as,"as-child":g.asChild,class:_(x(O)),"data-disabled":g.disabled?``:void 0,"data-invalid":Y.value?``:void 0,"data-readonly":g.readonly?``:void 0,dir:x(j),"data-slot":`root`},{default:w(()=>[y(e.$slots,`default`,{displayValue:X.value,modelValue:x(F),open:!!x(R),placeholder:x(L)})]),_:3},8,[`as`,`as-child`,`class`,`data-disabled`,`data-invalid`,`data-readonly`,`dir`]))}});export{T as default};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { TimeValue } from "../../date/comparators.js";
|
|
2
|
+
import { DateStep, TimeGranularity, TimeMatcher, TimeRange } from "../../date/types.js";
|
|
3
|
+
import { TimeRangePickerRootProps } from "./types.js";
|
|
4
|
+
import * as _$vue from "vue";
|
|
5
|
+
|
|
6
|
+
//#region src/components/time-range-picker/time-range-picker-root.vue.d.ts
|
|
7
|
+
type __VLS_Slots = {
|
|
8
|
+
default?: (props: {
|
|
9
|
+
displayValue: string;
|
|
10
|
+
modelValue: TimeRange;
|
|
11
|
+
open: boolean;
|
|
12
|
+
placeholder: TimeValue;
|
|
13
|
+
}) => any;
|
|
14
|
+
};
|
|
15
|
+
declare const __VLS_base: _$vue.DefineComponent<TimeRangePickerRootProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
16
|
+
"update:modelValue": (range: TimeRange) => any;
|
|
17
|
+
"update:open": (open: boolean) => any;
|
|
18
|
+
"update:placeholder": (time: TimeValue) => any;
|
|
19
|
+
"update:startValue": (time: TimeValue | undefined) => any;
|
|
20
|
+
"update:endValue": (time: TimeValue | undefined) => any;
|
|
21
|
+
}, string, _$vue.PublicProps, Readonly<TimeRangePickerRootProps> & Readonly<{
|
|
22
|
+
"onUpdate:modelValue"?: ((range: TimeRange) => any) | undefined;
|
|
23
|
+
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
24
|
+
"onUpdate:placeholder"?: ((time: TimeValue) => any) | undefined;
|
|
25
|
+
"onUpdate:startValue"?: ((time: TimeValue | undefined) => any) | undefined;
|
|
26
|
+
"onUpdate:endValue"?: ((time: TimeValue | undefined) => any) | undefined;
|
|
27
|
+
}>, {
|
|
28
|
+
placeholder: TimeValue;
|
|
29
|
+
disabled: boolean;
|
|
30
|
+
step: DateStep;
|
|
31
|
+
defaultValue: TimeRange;
|
|
32
|
+
open: boolean;
|
|
33
|
+
defaultOpen: boolean;
|
|
34
|
+
readonly: boolean;
|
|
35
|
+
defaultPlaceholder: TimeValue;
|
|
36
|
+
modal: boolean;
|
|
37
|
+
hourCycle: 12 | 24;
|
|
38
|
+
granularity: TimeGranularity;
|
|
39
|
+
hideTimeZone: boolean;
|
|
40
|
+
isTimeUnavailable: TimeMatcher;
|
|
41
|
+
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
42
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
43
|
+
declare const _default: typeof __VLS_export;
|
|
44
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
45
|
+
new (): {
|
|
46
|
+
$slots: S;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
//#endregion
|
|
50
|
+
export { _default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Primitive as e}from"../primitive/primitive.js";import"../primitive/index.js";import{useTimeRangePickerRootContext as t,useTimeRangePickerUi as n}from"./context.js";import{createBlock as r,defineComponent as i,normalizeClass as a,openBlock as o,renderSlot as s,unref as c,withCtx as l}from"vue";const u=i({name:`TimeRangePickerTrigger`,__name:`time-range-picker-trigger`,props:{asChild:{type:Boolean},as:{default:`button`}},setup(i){let u=n(`trigger`),{disabled:d,readonly:f,open:p,setOpen:m,popupId:h}=t(`TimeRangePickerTrigger`),g=()=>{d.value||f.value||m(!p.value)};return(t,n)=>(o(),r(c(e),{as:i.as,"as-child":i.asChild,"aria-controls":c(h),"aria-disabled":c(d)?!0:void 0,"aria-expanded":!!c(p),class:a(c(u)),"data-disabled":c(d)?``:void 0,"data-state":c(p)?`open`:`closed`,"data-slot":`trigger`,type:`button`,onClick:g},{default:l(()=>[s(t.$slots,`default`)]),_:3},8,[`as`,`as-child`,`aria-controls`,`aria-disabled`,`aria-expanded`,`class`,`data-disabled`,`data-state`]))}});export{u as default};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { AsTag } from "../primitive/types.js";
|
|
2
|
+
import { TimeRangePickerTriggerProps } from "./types.js";
|
|
3
|
+
import * as _$vue from "vue";
|
|
4
|
+
|
|
5
|
+
//#region src/components/time-range-picker/time-range-picker-trigger.vue.d.ts
|
|
6
|
+
declare var __VLS_10: {};
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
8
|
+
default?: (props: typeof __VLS_10) => any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_base: _$vue.DefineComponent<TimeRangePickerTriggerProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<TimeRangePickerTriggerProps> & Readonly<{}>, {
|
|
11
|
+
as: AsTag | _$vue.Component;
|
|
12
|
+
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
16
|
+
new (): {
|
|
17
|
+
$slots: S;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
//#endregion
|
|
21
|
+
export { _default };
|