@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
|
@@ -5,6 +5,9 @@ import { LabelProps } from "../label/types.js";
|
|
|
5
5
|
import { ButtonHTMLAttributes, ComputedRef, HTMLAttributes, ShallowRef } from "vue";
|
|
6
6
|
|
|
7
7
|
//#region src/components/radio-group/types.d.ts
|
|
8
|
+
/**
|
|
9
|
+
* Props for the radio group root component.
|
|
10
|
+
*/
|
|
8
11
|
interface RadioGroupRootProps<T extends AcceptableBooleanValue = AcceptableBooleanValue> extends FormFieldCommonProps, /** @vue-ignore */HTMLAttributes {
|
|
9
12
|
/** The controlled value of the radio item to check. Can be bound as `v-model`. */
|
|
10
13
|
modelValue?: T;
|
|
@@ -22,41 +25,104 @@ interface RadioGroupRootProps<T extends AcceptableBooleanValue = AcceptableBoole
|
|
|
22
25
|
/** When `true`, keyboard navigation will loop from last item to first, and vice versa. */
|
|
23
26
|
loop?: boolean;
|
|
24
27
|
}
|
|
28
|
+
/**
|
|
29
|
+
* Emits for the radio group root component.
|
|
30
|
+
*/
|
|
25
31
|
type RadioGroupRootEmits<T extends AcceptableBooleanValue = AcceptableBooleanValue> = {
|
|
26
32
|
/** Event handler called when the radio group value changes */'update:modelValue': [payload: NonNullable<T>];
|
|
27
33
|
};
|
|
34
|
+
/**
|
|
35
|
+
* Props for the radio group item component.
|
|
36
|
+
*/
|
|
28
37
|
interface RadioGroupItemProps extends FormFieldCommonProps, /** @vue-ignore */HTMLAttributes {
|
|
29
38
|
/** The value given as data when submitted with a `name`. */
|
|
30
39
|
value: NonNullable<AcceptableBooleanValue>;
|
|
31
40
|
/** When `true`, prevents the user from interacting with the radio item. */
|
|
32
41
|
disabled?: boolean;
|
|
33
42
|
}
|
|
43
|
+
/**
|
|
44
|
+
* Type information for the radio select event component.
|
|
45
|
+
*/
|
|
34
46
|
type RadioSelectEvent = CustomEvent<{
|
|
47
|
+
/**
|
|
48
|
+
* Original event.
|
|
49
|
+
*/
|
|
35
50
|
originalEvent: MouseEvent;
|
|
51
|
+
/**
|
|
52
|
+
* Value associated with the current item.
|
|
53
|
+
*/
|
|
36
54
|
value: NonNullable<AcceptableBooleanValue>;
|
|
37
55
|
}>;
|
|
56
|
+
/**
|
|
57
|
+
* Emits for the radio group item component.
|
|
58
|
+
*/
|
|
38
59
|
type RadioGroupItemEmits = {
|
|
39
60
|
/** Event handler called when the radio item is selected */select: [event: RadioSelectEvent];
|
|
40
61
|
};
|
|
62
|
+
/**
|
|
63
|
+
* Props for the radio group control component.
|
|
64
|
+
*/
|
|
41
65
|
interface RadioGroupControlProps extends /** @vue-ignore */ButtonHTMLAttributes {
|
|
42
66
|
/** Id of the element */
|
|
43
67
|
id?: string;
|
|
44
68
|
}
|
|
69
|
+
/**
|
|
70
|
+
* Props for the radio group indicator component.
|
|
71
|
+
*/
|
|
45
72
|
interface RadioGroupIndicatorProps extends PrimitiveProps, ForceMountProps, /** @vue-ignore */HTMLAttributes {}
|
|
73
|
+
/**
|
|
74
|
+
* Option data for the radio group component.
|
|
75
|
+
*/
|
|
46
76
|
interface RadioGroupOptionData<T extends AcceptableBooleanValue = AcceptableBooleanValue> {
|
|
77
|
+
/**
|
|
78
|
+
* Value associated with the current item.
|
|
79
|
+
*/
|
|
47
80
|
value: NonNullable<T>;
|
|
81
|
+
/**
|
|
82
|
+
* Label text rendered by the component.
|
|
83
|
+
*/
|
|
48
84
|
label: string;
|
|
85
|
+
/**
|
|
86
|
+
* Whether the component is disabled.
|
|
87
|
+
*/
|
|
49
88
|
disabled?: boolean;
|
|
50
89
|
}
|
|
90
|
+
/**
|
|
91
|
+
* Props for the radio group compact component.
|
|
92
|
+
*/
|
|
51
93
|
interface RadioGroupCompactProps<T extends AcceptableBooleanValue = AcceptableBooleanValue, S extends RadioGroupOptionData<T> = RadioGroupOptionData<T>> extends RadioGroupRootProps<T> {
|
|
94
|
+
/**
|
|
95
|
+
* Items rendered by the component.
|
|
96
|
+
*/
|
|
52
97
|
items: S[];
|
|
98
|
+
/**
|
|
99
|
+
* Props forwarded to the item element.
|
|
100
|
+
*/
|
|
53
101
|
itemProps?: RadioGroupItemProps;
|
|
102
|
+
/**
|
|
103
|
+
* Props forwarded to the control element.
|
|
104
|
+
*/
|
|
54
105
|
controlProps?: RadioGroupControlProps;
|
|
106
|
+
/**
|
|
107
|
+
* Props forwarded to the indicator element.
|
|
108
|
+
*/
|
|
55
109
|
indicatorProps?: RadioGroupIndicatorProps;
|
|
110
|
+
/**
|
|
111
|
+
* Props forwarded to the label element.
|
|
112
|
+
*/
|
|
56
113
|
labelProps?: LabelProps;
|
|
57
114
|
}
|
|
115
|
+
/**
|
|
116
|
+
* Emits for the radio group compact component.
|
|
117
|
+
*/
|
|
58
118
|
type RadioGroupCompactEmits<T extends AcceptableBooleanValue = AcceptableBooleanValue> = RadioGroupRootEmits<T>;
|
|
119
|
+
/**
|
|
120
|
+
* Available UI slots for the radio group component.
|
|
121
|
+
*/
|
|
59
122
|
type RadioGroupUiSlot = 'root' | 'item' | 'indicator' | 'label' | 'control';
|
|
123
|
+
/**
|
|
124
|
+
* UI class overrides for the radio group component.
|
|
125
|
+
*/
|
|
60
126
|
type RadioGroupUi = UiClass<RadioGroupUiSlot>;
|
|
61
127
|
//#endregion
|
|
62
128
|
export { RadioGroupCompactEmits, RadioGroupCompactProps, RadioGroupControlProps, RadioGroupIndicatorProps, RadioGroupItemEmits, RadioGroupItemProps, RadioGroupOptionData, RadioGroupRootEmits, RadioGroupRootProps, RadioGroupUi, RadioGroupUiSlot, RadioSelectEvent };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { UiClass } from "../../types/common.js";
|
|
2
|
+
import { UseUiConsumer } from "../../composables/use-ui-context.js";
|
|
3
|
+
import { RangeCalendarUiSlot } from "./types.js";
|
|
4
|
+
import * as _$vue from "vue";
|
|
5
|
+
|
|
6
|
+
//#region src/components/range-calendar/context.d.ts
|
|
7
|
+
declare const provideRangeCalendarUi: (ui: _$vue.ComputedRef<Partial<UiClass<RangeCalendarUiSlot>>>) => _$vue.ComputedRef<Partial<UiClass<RangeCalendarUiSlot>>>, useRangeCalendarUi: UseUiConsumer<RangeCalendarUiSlot>;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { provideRangeCalendarUi };
|
|
@@ -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(`RangeCalendarRoot`),[i,a]=t(`RangeCalendarUi`);export{n as provideRangeCalendarRootContext,i as provideRangeCalendarUi,r as useRangeCalendarRootContext,a as useRangeCalendarUi};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { RangeCalendarCellProps, RangeCalendarCellTriggerProps, RangeCalendarCompactEmits, RangeCalendarCompactProps, RangeCalendarCompactSlots, RangeCalendarGridBodyProps, RangeCalendarGridHeadProps, RangeCalendarGridProps, RangeCalendarGridRowProps, RangeCalendarHeadCellProps, RangeCalendarHeaderProps, RangeCalendarHeadingProps, RangeCalendarNextProps, RangeCalendarPrevProps, RangeCalendarRootContext, RangeCalendarRootEmits, RangeCalendarRootProps, RangeCalendarUi, RangeCalendarUiSlot } from "./types.js";
|
|
2
|
+
import { _default as _default$2 } from "./range-calendar-compact.vue.js";
|
|
3
|
+
import { _default as _default$12 } from "./range-calendar-root.vue.js";
|
|
4
|
+
import { _default as _default$8 } from "./range-calendar-header.vue.js";
|
|
5
|
+
import { _default as _default$9 } from "./range-calendar-heading.vue.js";
|
|
6
|
+
import { _default as _default$11 } from "./range-calendar-prev.vue.js";
|
|
7
|
+
import { _default as _default$10 } from "./range-calendar-next.vue.js";
|
|
8
|
+
import { _default as _default$3 } from "./range-calendar-grid.vue.js";
|
|
9
|
+
import { _default as _default$5 } from "./range-calendar-grid-head.vue.js";
|
|
10
|
+
import { _default as _default$4 } from "./range-calendar-grid-body.vue.js";
|
|
11
|
+
import { _default as _default$6 } from "./range-calendar-grid-row.vue.js";
|
|
12
|
+
import { _default as _default$7 } from "./range-calendar-head-cell.vue.js";
|
|
13
|
+
import { _default } from "./range-calendar-cell.vue.js";
|
|
14
|
+
import { _default as _default$1 } from "./range-calendar-cell-trigger.vue.js";
|
|
15
|
+
import { provideRangeCalendarUi } from "./context.js";
|
|
16
|
+
export { _default as RangeCalendarCell, type RangeCalendarCellProps, _default$1 as RangeCalendarCellTrigger, type RangeCalendarCellTriggerProps, _default$2 as RangeCalendarCompact, type RangeCalendarCompactEmits, type RangeCalendarCompactProps, type RangeCalendarCompactSlots, _default$3 as RangeCalendarGrid, _default$4 as RangeCalendarGridBody, type RangeCalendarGridBodyProps, _default$5 as RangeCalendarGridHead, type RangeCalendarGridHeadProps, type RangeCalendarGridProps, _default$6 as RangeCalendarGridRow, type RangeCalendarGridRowProps, _default$7 as RangeCalendarHeadCell, type RangeCalendarHeadCellProps, _default$8 as RangeCalendarHeader, type RangeCalendarHeaderProps, _default$9 as RangeCalendarHeading, type RangeCalendarHeadingProps, _default$10 as RangeCalendarNext, type RangeCalendarNextProps, _default$11 as RangeCalendarPrev, type RangeCalendarPrevProps, _default$12 as RangeCalendarRoot, type RangeCalendarRootContext, type RangeCalendarRootEmits, type RangeCalendarRootProps, type RangeCalendarUi, type RangeCalendarUiSlot, provideRangeCalendarUi };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{provideRangeCalendarUi as e}from"./context.js";import t from"./range-calendar-root.js";import n from"./range-calendar-header.js";import r from"./range-calendar-heading.js";import i from"./range-calendar-prev.js";import a from"./range-calendar-next.js";import o from"./range-calendar-grid.js";import s from"./range-calendar-grid-head.js";import c from"./range-calendar-grid-body.js";import l from"./range-calendar-grid-row.js";import u from"./range-calendar-head-cell.js";import d from"./range-calendar-cell.js";import f from"./range-calendar-cell-trigger.js";import p from"./range-calendar-compact.js";export{d as RangeCalendarCell,f as RangeCalendarCellTrigger,p as RangeCalendarCompact,o as RangeCalendarGrid,c as RangeCalendarGridBody,s as RangeCalendarGridHead,l as RangeCalendarGridRow,u as RangeCalendarHeadCell,n as RangeCalendarHeader,r as RangeCalendarHeading,a as RangeCalendarNext,i as RangeCalendarPrev,t as RangeCalendarRoot,e as provideRangeCalendarUi};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{isBetweenInclusive as e,toDate as t}from"../../date/comparators.js";import"../../date/index.js";import{useForwardElement as n}from"../../composables/use-forward-element.js";import"../../composables/index.js";import{Primitive as r}from"../primitive/primitive.js";import"../primitive/index.js";import{useRangeCalendarRootContext as ee,useRangeCalendarUi as i}from"./context.js";import{computed as a,createBlock as o,createTextVNode as s,defineComponent as c,nextTick as l,normalizeClass as u,openBlock as d,renderSlot as te,toDisplayString as ne,unref as f,withCtx as re}from"vue";import{getLocalTimeZone as ie,isSameDay as p,isSameMonth as m,isToday as h}from"@internationalized/date";const g=c({name:`RangeCalendarCellTrigger`,__name:`range-calendar-cell-trigger`,props:{day:{},month:{},asChild:{type:Boolean},as:{default:`button`}},setup(c){let g=c,_=i(`cellTrigger`),{locale:v,formatter:ae,isDateUnavailable:oe,isOutsideVisibleView:se,isDateDisabled:ce,disableDaysOutsideCurrentView:le,isDateSelected:ue,isSelectionStart:de,isSelectionEnd:fe,isHighlightedStart:pe,isHighlightedEnd:me,highlightedRange:y,disabled:b,isPlaceholderFocusable:x,placeholder:S,hasSelectedDate:C,isSelectedDateDisabled:w,firstFocusableDate:T,selectedFocusableDate:E,minValue:D,maxValue:O,parentElement:k,isNextButtonDisabled:A,nextPage:j,isPrevButtonDisabled:M,prevPage:N,onPlaceholderChange:P,setHoveredDate:F,onDateChange:I,dir:L}=ee(`RangeCalendarCellTrigger`),[he,R]=n(),z=a(()=>g.day.day.toLocaleString(v.value)),ge=a(()=>ae.custom(t(g.day),{weekday:`long`,month:`long`,day:`numeric`,year:`numeric`})),B=a(()=>oe?.(g.day)??!1),V=a(()=>h(g.day,ie())),H=a(()=>!m(g.day,g.month)),U=a(()=>se(g.day)),W=a(()=>ce(g.day)||le.value&&H.value),G=a(()=>ue(g.day)),K=a(()=>de(g.day)),q=a(()=>fe(g.day)),J=a(()=>pe(g.day)),Y=a(()=>me(g.day)),X=a(()=>!y.value?.start||!y.value?.end?!1:e(g.day,y.value.start,y.value.end)),Z=a(()=>H.value||W.value?!1:!b.value&&x.value&&p(g.day,S.value)?!0:(!C.value||w.value)&&!x.value?!!(T.value&&p(g.day,T.value)):E.value&&!x.value?p(g.day,E.value):!1),Q=(e,t)=>{let n=e.add({days:t});if(D.value&&n.compare(D.value)<0||O.value&&n.compare(O.value)>0)return;let r=k.value?.querySelector(`[data-value='${n.toString()}']:not([data-outside-view])`);if(!r){if(t>0){if(A())return;j()}else{if(M())return;N()}l(()=>{Q(e,t)});return}if(r.hasAttribute(`data-disabled`)||r.hasAttribute(`data-unavailable`)){Q(n,t);return}P(n),F(n),r.focus()},_e=()=>{W.value||B.value||I(g.day)},$=()=>{W.value||B.value||F(g.day)},ve=e=>{if(W.value)return;let t=L.value===`rtl`?-1:1;switch(e.key){case`ArrowRight`:e.preventDefault(),Q(g.day,t);break;case`ArrowLeft`:e.preventDefault(),Q(g.day,-t);break;case`ArrowUp`:e.preventDefault(),Q(g.day,-7);break;case`ArrowDown`:e.preventDefault(),Q(g.day,7);break;case`Enter`:case` `:e.preventDefault(),I(g.day);break;default:break}};return(e,t)=>(d(),o(f(r),{ref:f(R),as:c.as,"as-child":c.asChild,"aria-disabled":c.as===`button`?void 0:W.value||B.value?!0:void 0,"aria-label":ge.value,"aria-pressed":G.value?!0:void 0,class:u(f(_)),"data-disabled":W.value?``:void 0,"data-focused":Z.value?``:void 0,"data-highlighted":X.value?``:void 0,"data-highlighted-end":Y.value?``:void 0,"data-highlighted-start":J.value?``:void 0,"data-outside-view":H.value?``:void 0,"data-outside-visible-view":U.value?``:void 0,"data-selected":G.value?``:void 0,"data-selection-end":q.value?``:void 0,"data-selection-start":K.value?``:void 0,"data-today":V.value?``:void 0,"data-unavailable":B.value?``:void 0,"data-value":c.day.toString(),disabled:c.as===`button`?W.value||B.value:void 0,role:c.as===`button`?void 0:`button`,tabindex:Z.value?0:H.value||W.value?void 0:-1,type:c.as===`button`?`button`:void 0,"data-slot":`cell-trigger`,onClick:_e,onFocusin:$,onKeydown:ve,onMouseleave:t[0]||(t[0]=e=>f(F)(void 0)),onMouseenter:$},{default:re(()=>[te(e.$slots,`default`,{dayValue:z.value,disabled:!!W.value,highlighted:X.value,highlightedEnd:Y.value,highlightedStart:J.value,outsideView:H.value,outsideVisibleView:U.value,selected:G.value,selectionEnd:q.value,selectionStart:K.value,today:V.value,unavailable:B.value},()=>[s(ne(z.value),1)])]),_:3},8,[`as`,`as-child`,`aria-disabled`,`aria-label`,`aria-pressed`,`class`,`data-disabled`,`data-focused`,`data-highlighted`,`data-highlighted-end`,`data-highlighted-start`,`data-outside-view`,`data-outside-visible-view`,`data-selected`,`data-selection-end`,`data-selection-start`,`data-today`,`data-unavailable`,`data-value`,`disabled`,`role`,`tabindex`,`type`]))}});export{g as default};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { AsTag } from "../primitive/types.js";
|
|
2
|
+
import { RangeCalendarCellTriggerProps } from "./types.js";
|
|
3
|
+
import * as _$vue from "vue";
|
|
4
|
+
|
|
5
|
+
//#region src/components/range-calendar/range-calendar-cell-trigger.vue.d.ts
|
|
6
|
+
type __VLS_Slots = {
|
|
7
|
+
default?: (props: {
|
|
8
|
+
dayValue: string;
|
|
9
|
+
disabled: boolean;
|
|
10
|
+
selected: boolean;
|
|
11
|
+
today: boolean;
|
|
12
|
+
outsideView: boolean;
|
|
13
|
+
outsideVisibleView: boolean;
|
|
14
|
+
unavailable: boolean;
|
|
15
|
+
highlighted: boolean;
|
|
16
|
+
highlightedStart: boolean;
|
|
17
|
+
highlightedEnd: boolean;
|
|
18
|
+
selectionStart: boolean;
|
|
19
|
+
selectionEnd: boolean;
|
|
20
|
+
}) => any;
|
|
21
|
+
};
|
|
22
|
+
declare const __VLS_base: _$vue.DefineComponent<RangeCalendarCellTriggerProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<RangeCalendarCellTriggerProps> & Readonly<{}>, {
|
|
23
|
+
as: AsTag | _$vue.Component;
|
|
24
|
+
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
25
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
26
|
+
declare const _default: typeof __VLS_export;
|
|
27
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
28
|
+
new (): {
|
|
29
|
+
$slots: S;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
//#endregion
|
|
33
|
+
export { _default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Primitive as e}from"../primitive/primitive.js";import"../primitive/index.js";import{useRangeCalendarRootContext as t,useRangeCalendarUi as n}from"./context.js";import{computed as r,createBlock as i,defineComponent as a,normalizeClass as o,openBlock as s,renderSlot as c,unref as l,withCtx as u}from"vue";const d=a({name:`RangeCalendarCell`,__name:`range-calendar-cell`,props:{date:{},asChild:{type:Boolean},as:{default:`td`}},setup(a){let d=a,f=n(`cell`),{isDateSelected:p,isDateDisabled:m,isDateUnavailable:h}=t(`RangeCalendarCell`),g=r(()=>p(d.date)),_=r(()=>m(d.date)||h?.(d.date));return(t,n)=>(s(),i(l(e),{as:a.as,"as-child":a.asChild,"aria-disabled":_.value?!0:void 0,"aria-selected":g.value?!0:void 0,class:o(l(f)),"data-disabled":_.value?``:void 0,"data-selected":g.value?``:void 0,"data-slot":`cell`,role:`gridcell`},{default:u(()=>[c(t.$slots,`default`)]),_:3},8,[`as`,`as-child`,`aria-disabled`,`aria-selected`,`class`,`data-disabled`,`data-selected`]))}});export{d as default};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { AsTag } from "../primitive/types.js";
|
|
2
|
+
import { RangeCalendarCellProps } from "./types.js";
|
|
3
|
+
import * as _$vue from "vue";
|
|
4
|
+
|
|
5
|
+
//#region src/components/range-calendar/range-calendar-cell.vue.d.ts
|
|
6
|
+
declare var __VLS_8: {};
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
8
|
+
default?: (props: typeof __VLS_8) => any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_base: _$vue.DefineComponent<RangeCalendarCellProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<RangeCalendarCellProps> & 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 };
|
|
@@ -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"../_icon/icon.js";import r from"./range-calendar-root.js";import i from"./range-calendar-header.js";import a from"./range-calendar-heading.js";import o from"./range-calendar-prev.js";import s from"./range-calendar-next.js";import c from"./range-calendar-grid.js";import l from"./range-calendar-grid-head.js";import u from"./range-calendar-grid-body.js";import d from"./range-calendar-grid-row.js";import f from"./range-calendar-head-cell.js";import p from"./range-calendar-cell.js";import m from"./range-calendar-cell-trigger.js";import{Fragment as h,createBlock as g,createElementBlock as _,createTextVNode as v,createVNode as y,defineComponent as b,guardReactiveProps as x,mergeProps as S,normalizeProps as C,openBlock as w,renderList as T,renderSlot as E,toDisplayString as D,toHandlers as O,unref as k,withCtx as A}from"vue";const j=b({name:`RangeCalendarCompact`,__name:`range-calendar-compact`,props:{headerProps:{},headingProps:{},prevProps:{},nextProps:{},gridProps:{},gridHeadProps:{},gridBodyProps:{},gridRowProps:{},headCellProps:{},cellProps:{},cellTriggerProps:{},defaultValue:{},defaultPlaceholder:{},placeholder:{},modelValue:{},allowNonContiguousRanges:{type:Boolean},pagedNavigation:{type:Boolean},preventDeselect:{type:Boolean},maximumDays:{},weekStartsOn:{},weekdayFormat:{},calendarLabel:{},fixedWeeks:{type:Boolean},maxValue:{},minValue:{},locale:{},numberOfMonths:{},disabled:{type:Boolean},readonly:{type:Boolean},initialFocus:{type:Boolean},isDateDisabled:{type:Function},isDateUnavailable:{type:Function},isDateHighlightable:{type:Function},dir:{},nextPage:{type:Function},prevPage:{type:Function},disableDaysOutsideCurrentView:{type:Boolean},fixedDate:{},asChild:{type:Boolean},as:{}},emits:[`update:modelValue`,`update:placeholder`,`update:startValue`],setup(b,{emit:j}){let M=b,N=j,P=t(M,[`headerProps`,`headingProps`,`prevProps`,`nextProps`,`gridProps`,`gridHeadProps`,`gridBodyProps`,`gridRowProps`,`headCellProps`,`cellProps`,`cellTriggerProps`]),F=e(N);return(e,t)=>(w(),g(r,S(k(P),O(k(F))),{default:A(({grid:t,modelValue:r,weekDays:O})=>[y(i,C(x(b.headerProps)),{default:A(()=>[y(o,C(x(b.prevProps)),{default:A(t=>[E(e.$slots,`prev`,C(x(t)),()=>[y(n,{class:`size-4 rtl:rotate-180`,icon:`lucide:chevron-left`})])]),_:3},16),y(a,C(x(b.headingProps)),{default:A(t=>[E(e.$slots,`heading`,C(x(t)),()=>[v(D(t.headingValue),1)])]),_:3},16),y(s,C(x(b.nextProps)),{default:A(t=>[E(e.$slots,`next`,C(x(t)),()=>[y(n,{class:`size-4 rtl:rotate-180`,icon:`lucide:chevron-right`})])]),_:3},16)]),_:3},16),(w(!0),_(h,null,T(t,t=>(w(),g(c,S({key:t.value.toString()},{ref_for:!0},b.gridProps),{default:A(()=>[y(l,S({ref_for:!0},b.gridHeadProps),{default:A(()=>[y(d,S({ref_for:!0},b.gridRowProps),{default:A(()=>[(w(!0),_(h,null,T(O,(n,r)=>(w(),g(f,S({key:`${t.value.toString()}-${n}-${r}`},{ref_for:!0},b.headCellProps),{default:A(()=>[E(e.$slots,`head-cell`,{date:t.value,index:r,label:n},()=>[v(D(n),1)])]),_:2},1040))),128))]),_:2},1040)]),_:2},1040),y(u,S({ref_for:!0},b.gridBodyProps),{default:A(()=>[(w(!0),_(h,null,T(t.rows,(n,r)=>(w(),g(d,S({key:`${t.value.toString()}-${r}`},{ref_for:!0},b.gridRowProps),{default:A(()=>[(w(!0),_(h,null,T(n,n=>(w(),g(p,S({key:n.toString(),date:n},{ref_for:!0},b.cellProps),{default:A(()=>[y(m,S({day:n,month:t.value},{ref_for:!0},b.cellTriggerProps),{default:A(r=>[E(e.$slots,`day`,{day:n,dayValue:r.dayValue,disabled:r.disabled,highlighted:r.highlighted,highlightedEnd:r.highlightedEnd,highlightedStart:r.highlightedStart,month:t.value,outsideView:r.outsideView,outsideVisibleView:r.outsideVisibleView,selected:r.selected,selectionEnd:r.selectionEnd,selectionStart:r.selectionStart,today:r.today,unavailable:r.unavailable},()=>[v(D(r.dayValue),1)])]),_:2},1040,[`day`,`month`])]),_:2},1040,[`date`]))),128))]),_:2},1040))),128))]),_:2},1040)]),_:2},1040))),128)),E(e.$slots,`default`,{modelValue:r})]),_:3},16))}});export{j as default};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { DateRange } from "../../date/types.js";
|
|
2
|
+
import { RangeCalendarCompactProps, RangeCalendarCompactSlots } from "./types.js";
|
|
3
|
+
import * as _$vue from "vue";
|
|
4
|
+
import * as _$_internationalized_date0 from "@internationalized/date";
|
|
5
|
+
|
|
6
|
+
//#region src/components/range-calendar/range-calendar-compact.vue.d.ts
|
|
7
|
+
type __VLS_Slots = RangeCalendarCompactSlots;
|
|
8
|
+
declare const __VLS_base: _$vue.DefineComponent<RangeCalendarCompactProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
9
|
+
"update:modelValue": (range: DateRange) => any;
|
|
10
|
+
"update:placeholder": (date: _$_internationalized_date0.DateValue) => any;
|
|
11
|
+
"update:startValue": (date: _$_internationalized_date0.DateValue | undefined) => any;
|
|
12
|
+
}, string, _$vue.PublicProps, Readonly<RangeCalendarCompactProps> & Readonly<{
|
|
13
|
+
"onUpdate:modelValue"?: ((range: DateRange) => any) | undefined;
|
|
14
|
+
"onUpdate:placeholder"?: ((date: _$_internationalized_date0.DateValue) => any) | undefined;
|
|
15
|
+
"onUpdate:startValue"?: ((date: _$_internationalized_date0.DateValue | undefined) => any) | undefined;
|
|
16
|
+
}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
18
|
+
declare const _default: typeof __VLS_export;
|
|
19
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
20
|
+
new (): {
|
|
21
|
+
$slots: S;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
//#endregion
|
|
25
|
+
export { _default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Primitive as e}from"../primitive/primitive.js";import"../primitive/index.js";import{useRangeCalendarUi 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:`RangeCalendarGridBody`,__name:`range-calendar-grid-body`,props:{asChild:{type:Boolean},as:{default:`tbody`}},setup(r){let l=t(`gridBody`);return(t,u)=>(a(),n(s(e),{as:r.as,"as-child":r.asChild,class:i(s(l)),"data-slot":`grid-body`},{default:c(()=>[o(t.$slots,`default`)]),_:3},8,[`as`,`as-child`,`class`]))}});export{l as default};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { AsTag } from "../primitive/types.js";
|
|
2
|
+
import { RangeCalendarGridBodyProps } from "./types.js";
|
|
3
|
+
import * as _$vue from "vue";
|
|
4
|
+
|
|
5
|
+
//#region src/components/range-calendar/range-calendar-grid-body.vue.d.ts
|
|
6
|
+
declare var __VLS_8: {};
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
8
|
+
default?: (props: typeof __VLS_8) => any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_base: _$vue.DefineComponent<RangeCalendarGridBodyProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<RangeCalendarGridBodyProps> & 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 };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Primitive as e}from"../primitive/primitive.js";import"../primitive/index.js";import{useRangeCalendarUi 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:`RangeCalendarGridHead`,__name:`range-calendar-grid-head`,props:{asChild:{type:Boolean},as:{default:`thead`}},setup(r){let l=t(`gridHead`);return(t,u)=>(a(),n(s(e),{as:r.as,"as-child":r.asChild,class:i(s(l)),"aria-hidden":`true`,"data-slot":`grid-head`},{default:c(()=>[o(t.$slots,`default`)]),_:3},8,[`as`,`as-child`,`class`]))}});export{l as default};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { AsTag } from "../primitive/types.js";
|
|
2
|
+
import { RangeCalendarGridHeadProps } from "./types.js";
|
|
3
|
+
import * as _$vue from "vue";
|
|
4
|
+
|
|
5
|
+
//#region src/components/range-calendar/range-calendar-grid-head.vue.d.ts
|
|
6
|
+
declare var __VLS_8: {};
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
8
|
+
default?: (props: typeof __VLS_8) => any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_base: _$vue.DefineComponent<RangeCalendarGridHeadProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<RangeCalendarGridHeadProps> & 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 };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Primitive as e}from"../primitive/primitive.js";import"../primitive/index.js";import{useRangeCalendarUi 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:`RangeCalendarGridRow`,__name:`range-calendar-grid-row`,props:{asChild:{type:Boolean},as:{default:`tr`}},setup(r){let l=t(`gridRow`);return(t,u)=>(a(),n(s(e),{as:r.as,"as-child":r.asChild,class:i(s(l)),"data-slot":`grid-row`},{default:c(()=>[o(t.$slots,`default`)]),_:3},8,[`as`,`as-child`,`class`]))}});export{l as default};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { AsTag } from "../primitive/types.js";
|
|
2
|
+
import { RangeCalendarGridRowProps } from "./types.js";
|
|
3
|
+
import * as _$vue from "vue";
|
|
4
|
+
|
|
5
|
+
//#region src/components/range-calendar/range-calendar-grid-row.vue.d.ts
|
|
6
|
+
declare var __VLS_8: {};
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
8
|
+
default?: (props: typeof __VLS_8) => any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_base: _$vue.DefineComponent<RangeCalendarGridRowProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<RangeCalendarGridRowProps> & 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 };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Primitive as e}from"../primitive/primitive.js";import"../primitive/index.js";import{useRangeCalendarRootContext as t,useRangeCalendarUi as n}from"./context.js";import{computed as r,createBlock as i,defineComponent as a,normalizeClass as o,openBlock as s,renderSlot as c,unref as l,withCtx as u}from"vue";const d=a({name:`RangeCalendarGrid`,__name:`range-calendar-grid`,props:{asChild:{type:Boolean},as:{default:`table`}},setup(a){let d=n(`grid`),{disabled:f,readonly:p}=t(`RangeCalendarGrid`),m=r(()=>f.value?!0:void 0),h=r(()=>p.value?!0:void 0);return(t,n)=>(s(),i(l(e),{as:a.as,"as-child":a.asChild,"aria-disabled":m.value,"aria-readonly":h.value,class:o(l(d)),"data-disabled":m.value?``:void 0,"data-readonly":h.value?``:void 0,"data-slot":`grid`,role:`application`,tabindex:`-1`},{default:u(()=>[c(t.$slots,`default`)]),_:3},8,[`as`,`as-child`,`aria-disabled`,`aria-readonly`,`class`,`data-disabled`,`data-readonly`]))}});export{d as default};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { AsTag } from "../primitive/types.js";
|
|
2
|
+
import { RangeCalendarGridProps } from "./types.js";
|
|
3
|
+
import * as _$vue from "vue";
|
|
4
|
+
|
|
5
|
+
//#region src/components/range-calendar/range-calendar-grid.vue.d.ts
|
|
6
|
+
declare var __VLS_8: {};
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
8
|
+
default?: (props: typeof __VLS_8) => any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_base: _$vue.DefineComponent<RangeCalendarGridProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<RangeCalendarGridProps> & 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 };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Primitive as e}from"../primitive/primitive.js";import"../primitive/index.js";import{useRangeCalendarUi 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:`RangeCalendarHeadCell`,__name:`range-calendar-head-cell`,props:{asChild:{type:Boolean},as:{default:`th`}},setup(r){let l=t(`headCell`);return(t,u)=>(a(),n(s(e),{as:r.as,"as-child":r.asChild,class:i(s(l)),"data-slot":`head-cell`},{default:c(()=>[o(t.$slots,`default`)]),_:3},8,[`as`,`as-child`,`class`]))}});export{l as default};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { AsTag } from "../primitive/types.js";
|
|
2
|
+
import { RangeCalendarHeadCellProps } from "./types.js";
|
|
3
|
+
import * as _$vue from "vue";
|
|
4
|
+
|
|
5
|
+
//#region src/components/range-calendar/range-calendar-head-cell.vue.d.ts
|
|
6
|
+
declare var __VLS_8: {};
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
8
|
+
default?: (props: typeof __VLS_8) => any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_base: _$vue.DefineComponent<RangeCalendarHeadCellProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<RangeCalendarHeadCellProps> & 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 };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Primitive as e}from"../primitive/primitive.js";import"../primitive/index.js";import{useRangeCalendarUi 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:`RangeCalendarHeader`,__name:`range-calendar-header`,props:{asChild:{type:Boolean},as:{default:`div`}},setup(r){let l=t(`header`);return(t,u)=>(a(),n(s(e),{as:r.as,"as-child":r.asChild,class:i(s(l)),"data-slot":`header`},{default:c(()=>[o(t.$slots,`default`)]),_:3},8,[`as`,`as-child`,`class`]))}});export{l as default};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { AsTag } from "../primitive/types.js";
|
|
2
|
+
import { RangeCalendarHeaderProps } from "./types.js";
|
|
3
|
+
import * as _$vue from "vue";
|
|
4
|
+
|
|
5
|
+
//#region src/components/range-calendar/range-calendar-header.vue.d.ts
|
|
6
|
+
declare var __VLS_8: {};
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
8
|
+
default?: (props: typeof __VLS_8) => any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_base: _$vue.DefineComponent<RangeCalendarHeaderProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<RangeCalendarHeaderProps> & 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 };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Primitive as e}from"../primitive/primitive.js";import"../primitive/index.js";import{useRangeCalendarRootContext as t,useRangeCalendarUi as n}from"./context.js";import{createBlock as r,createTextVNode as i,defineComponent as a,normalizeClass as o,openBlock as s,renderSlot as c,toDisplayString as l,unref as u,withCtx as d}from"vue";const f=a({name:`RangeCalendarHeading`,__name:`range-calendar-heading`,props:{asChild:{type:Boolean},as:{default:`div`}},setup(a){let f=n(`heading`),{disabled:p,headingValue:m}=t(`RangeCalendarHeading`);return(t,n)=>(s(),r(u(e),{as:a.as,"as-child":a.asChild,class:o(u(f)),"data-disabled":u(p)?``:void 0,"data-slot":`heading`},{default:d(()=>[c(t.$slots,`default`,{headingValue:u(m)},()=>[i(l(u(m)),1)])]),_:3},8,[`as`,`as-child`,`class`,`data-disabled`]))}});export{f as default};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { AsTag } from "../primitive/types.js";
|
|
2
|
+
import { RangeCalendarHeadingProps } from "./types.js";
|
|
3
|
+
import * as _$vue from "vue";
|
|
4
|
+
|
|
5
|
+
//#region src/components/range-calendar/range-calendar-heading.vue.d.ts
|
|
6
|
+
type __VLS_Slots = {
|
|
7
|
+
default?: (props: {
|
|
8
|
+
headingValue: string;
|
|
9
|
+
}) => any;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_base: _$vue.DefineComponent<RangeCalendarHeadingProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<RangeCalendarHeadingProps> & Readonly<{}>, {
|
|
12
|
+
as: AsTag | _$vue.Component;
|
|
13
|
+
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
17
|
+
new (): {
|
|
18
|
+
$slots: S;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
//#endregion
|
|
22
|
+
export { _default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Primitive as e}from"../primitive/primitive.js";import"../primitive/index.js";import{useRangeCalendarRootContext as t,useRangeCalendarUi as n}from"./context.js";import{computed as r,createBlock as i,createTextVNode 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:`RangeCalendarNext`,__name:`range-calendar-next`,props:{nextPage:{type:Function,default:void 0},asChild:{type:Boolean},as:{default:`button`}},setup(o){let f=o,p=n(`next`),{disabled:m,isNextButtonDisabled:h,nextPage:g}=t(`RangeCalendarNext`),_=r(()=>m.value||h(f.nextPage)),v=()=>{_.value||g(f.nextPage)};return(t,n)=>(c(),i(u(e),{as:o.as,"as-child":o.asChild,"aria-disabled":o.as===`button`?void 0:_.value||void 0,class:s(u(p)),"data-disabled":_.value?``:void 0,disabled:o.as===`button`?_.value:void 0,type:o.as===`button`?`button`:void 0,"aria-label":`Next page`,"data-slot":`next`,onClick:v},{default:d(()=>[l(t.$slots,`default`,{disabled:_.value},()=>[n[0]||(n[0]=a(`Next page`,-1))])]),_:3},8,[`as`,`as-child`,`aria-disabled`,`class`,`data-disabled`,`disabled`,`type`]))}});export{f as default};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { AsTag } from "../primitive/types.js";
|
|
2
|
+
import { RangeCalendarNextProps } from "./types.js";
|
|
3
|
+
import * as _$vue from "vue";
|
|
4
|
+
import * as _$_internationalized_date0 from "@internationalized/date";
|
|
5
|
+
|
|
6
|
+
//#region src/components/range-calendar/range-calendar-next.vue.d.ts
|
|
7
|
+
type __VLS_Slots = {
|
|
8
|
+
default?: (props: {
|
|
9
|
+
disabled: boolean;
|
|
10
|
+
}) => any;
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_base: _$vue.DefineComponent<RangeCalendarNextProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<RangeCalendarNextProps> & Readonly<{}>, {
|
|
13
|
+
as: AsTag | _$vue.Component;
|
|
14
|
+
nextPage: (placeholder: _$_internationalized_date0.DateValue) => _$_internationalized_date0.DateValue;
|
|
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 };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Primitive as e}from"../primitive/primitive.js";import"../primitive/index.js";import{useRangeCalendarRootContext as t,useRangeCalendarUi as n}from"./context.js";import{computed as r,createBlock as i,createTextVNode 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:`RangeCalendarPrev`,__name:`range-calendar-prev`,props:{prevPage:{type:Function,default:void 0},asChild:{type:Boolean},as:{default:`button`}},setup(o){let f=o,p=n(`prev`),{disabled:m,isPrevButtonDisabled:h,prevPage:g}=t(`RangeCalendarPrev`),_=r(()=>m.value||h(f.prevPage)),v=()=>{_.value||g(f.prevPage)};return(t,n)=>(c(),i(u(e),{as:o.as,"as-child":o.asChild,"aria-disabled":o.as===`button`?void 0:_.value||void 0,class:s(u(p)),"data-disabled":_.value?``:void 0,disabled:o.as===`button`?_.value:void 0,type:o.as===`button`?`button`:void 0,"aria-label":`Previous page`,"data-slot":`prev`,onClick:v},{default:d(()=>[l(t.$slots,`default`,{disabled:_.value},()=>[n[0]||(n[0]=a(`Prev page`,-1))])]),_:3},8,[`as`,`as-child`,`aria-disabled`,`class`,`data-disabled`,`disabled`,`type`]))}});export{f as default};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { AsTag } from "../primitive/types.js";
|
|
2
|
+
import { RangeCalendarPrevProps } from "./types.js";
|
|
3
|
+
import * as _$vue from "vue";
|
|
4
|
+
import * as _$_internationalized_date0 from "@internationalized/date";
|
|
5
|
+
|
|
6
|
+
//#region src/components/range-calendar/range-calendar-prev.vue.d.ts
|
|
7
|
+
type __VLS_Slots = {
|
|
8
|
+
default?: (props: {
|
|
9
|
+
disabled: boolean;
|
|
10
|
+
}) => any;
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_base: _$vue.DefineComponent<RangeCalendarPrevProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<RangeCalendarPrevProps> & Readonly<{}>, {
|
|
13
|
+
as: AsTag | _$vue.Component;
|
|
14
|
+
prevPage: (placeholder: _$_internationalized_date0.DateValue) => _$_internationalized_date0.DateValue;
|
|
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 };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{transformPropsToContext as e}from"../../shared/vue.js";import{getDefaultDate as t,isBefore as n}from"../../date/comparators.js";import{handleCalendarInitialFocus as r}from"../../date/utils.js";import{getWeekStartsOn as i}from"../../date/calendar.js";import{useDateFormatter as a}from"../../date/formatter.js";import"../../date/index.js";import"../../shared/index.js";import{useControllableState as o}from"../../composables/use-controllable-state.js";import{useForwardElement as s}from"../../composables/use-forward-element.js";import"../../composables/index.js";import{useDirection as c,useLocale as ee}from"../config-provider/context.js";import{Primitive as l}from"../primitive/primitive.js";import"../primitive/index.js";import{useCalendar as u}from"../calendar/use-calendar.js";import{provideRangeCalendarRootContext as d,useRangeCalendarUi as f}from"./context.js";import{useRangeCalendarState as p}from"./use-range-calendar.js";import{computed as m,createBlock as h,defineComponent as g,normalizeClass as _,onMounted as v,openBlock as y,renderSlot as b,shallowRef as x,unref as S,watch as C,withCtx as te}from"vue";import{isSameDay as w}from"@internationalized/date";const T=g({name:`RangeCalendarRoot`,__name:`range-calendar-root`,props:{defaultValue:{default:()=>({start:void 0,end:void 0})},defaultPlaceholder:{default:void 0},placeholder:{default:void 0},modelValue:{},allowNonContiguousRanges:{type:Boolean,default:!1},pagedNavigation:{type:Boolean,default:!1},preventDeselect:{type:Boolean,default:!1},maximumDays:{default:void 0},weekStartsOn:{},weekdayFormat:{default:`narrow`},calendarLabel:{},fixedWeeks:{type:Boolean,default:!1},maxValue:{},minValue:{},locale:{},numberOfMonths:{default:1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},initialFocus:{type:Boolean,default:!1},isDateDisabled:{type:Function,default:void 0},isDateUnavailable:{type:Function,default:void 0},isDateHighlightable:{type:Function,default:void 0},dir:{},nextPage:{},prevPage:{},disableDaysOutsideCurrentView:{type:Boolean,default:!1},fixedDate:{default:void 0},asChild:{type:Boolean},as:{}},emits:[`update:modelValue`,`update:placeholder`,`update:startValue`],setup(g,{emit:T}){let E=g,D=T,O=f(`root`),[k,A]=s(),j=ee(()=>E.locale),M=c(()=>E.dir),N=m(()=>E.weekStartsOn??i(j.value)),P=a(j.value),F=o(()=>E.modelValue,e=>{D(`update:modelValue`,e),D(`update:startValue`,e.start)},E.defaultValue??{}),I=t({defaultPlaceholder:E.placeholder,defaultValue:F.value.start,locale:E.locale}),L=o(()=>E.placeholder,e=>{D(`update:placeholder`,e)},E.defaultPlaceholder??I.copy()),R=m(()=>F.value.start),z=m(()=>F.value.end),B=x(),{fullCalendarLabel:V,headingValue:H,isDateDisabled:U,isDateUnavailable:W,isNextButtonDisabled:ne,isPrevButtonDisabled:G,weekdays:K,isOutsideVisibleView:q,nextPage:J,prevPage:Y,grid:X,isPlaceholderFocusable:Z,firstFocusableDate:re}=u({locale:j,placeholder:L,weekStartsOn:N,fixedWeeks:m(()=>E.fixedWeeks),numberOfMonths:m(()=>E.numberOfMonths),minValue:m(()=>E.minValue),maxValue:m(()=>E.maxValue),disabled:m(()=>E.disabled),weekdayFormat:m(()=>E.weekdayFormat),pagedNavigation:m(()=>E.pagedNavigation),isDateDisabled:E.isDateDisabled,isDateUnavailable:E.isDateUnavailable,calendarLabel:m(()=>E.calendarLabel),nextPage:m(()=>E.nextPage),prevPage:m(()=>E.prevPage)}),{highlightedRange:ie,isDateSelected:ae,isSelectionStart:oe,isSelectionEnd:se,isHighlightedStart:Q,isHighlightedEnd:ce,hasSelectedDate:le,isSelectedDateDisabled:ue,selectedFocusableDate:de,isInvalid:$,sortRange:fe,getInclusiveRangeDays:pe}=p({start:R,end:z,hoveredDate:B,isDateDisabled:U,isDateUnavailable:W,isDateHighlightable:E.isDateHighlightable,allowNonContiguousRanges:m(()=>E.allowNonContiguousRanges),maximumDays:m(()=>E.maximumDays)});C(j,e=>{P.getLocale()!==e&&P.setLocale(e)}),C(()=>F.value.start,e=>{e&&!w(L.value,e)&&(L.value=e.copy())});function me(e){L.value=e.copy()}function he(e){if(E.readonly||U(e)||W(e))return;let{start:t,end:r}=F.value;if(!t){F.value={start:e.copy(),end:void 0};return}if(!r){if(!E.preventDeselect&&w(t,e)){F.value={start:void 0,end:void 0},L.value=e.copy(),B.value=void 0;return}let n=fe(t,e);if(E.maximumDays&&n.start&&n.end&&pe(n.start,n.end)>E.maximumDays){F.value={start:e.copy(),end:void 0};return}if(!E.allowNonContiguousRanges&&n.start&&n.end&&$.value){F.value={start:e.copy(),end:void 0};return}F.value=n,B.value=void 0;return}if(E.fixedDate===`start`){F.value=n(e,t)?{start:e.copy(),end:t.copy()}:{start:t.copy(),end:e.copy()},B.value=void 0;return}if(E.fixedDate===`end`){F.value=n(r,e)?{start:r.copy(),end:e.copy()}:{start:e.copy(),end:r.copy()},B.value=void 0;return}F.value={start:e.copy(),end:void 0},B.value=void 0}return d({locale:j,dir:M,weekStartsOn:N,weekdayFormat:m(()=>E.weekdayFormat),modelValue:F,placeholder:L,grid:X,parentElement:k,fullCalendarLabel:V,headingValue:H,isInvalid:$,minValue:m(()=>E.minValue),maxValue:m(()=>E.maxValue),isPlaceholderFocusable:Z,firstFocusableDate:re,hasSelectedDate:le,isSelectedDateDisabled:ue,selectedFocusableDate:de,formatter:P,highlightedRange:ie,fixedDate:m(()=>E.fixedDate),maximumDays:m(()=>E.maximumDays),isDateUnavailable:E.isDateUnavailable,isDateHighlightable:E.isDateHighlightable,onDateChange:he,onPlaceholderChange:me,isDateDisabled:U,isDateSelected:ae,isSelectionStart:oe,isSelectionEnd:se,isHighlightedStart:Q,isHighlightedEnd:ce,isOutsideVisibleView:q,setHoveredDate(e){B.value=e?.copy()},hoveredDate:B,prevPage:Y,nextPage:J,isPrevButtonDisabled:G,isNextButtonDisabled:ne,...e(E,[`allowNonContiguousRanges`,`disableDaysOutsideCurrentView`,`disabled`,`fixedWeeks`,`initialFocus`,`numberOfMonths`,`pagedNavigation`,`preventDeselect`,`readonly`])}),v(()=>{E.initialFocus&&k.value&&r(k.value)}),(e,t)=>(y(),h(S(l),{ref:S(A),as:g.as,"as-child":g.asChild,"aria-label":S(V),class:_(S(O)),"data-disabled":g.disabled?``:void 0,"data-invalid":S($)?``:void 0,"data-readonly":g.readonly?``:void 0,dir:S(M),"data-slot":`root`},{default:te(()=>[b(e.$slots,`default`,{date:S(L),fixedWeeks:g.fixedWeeks,grid:S(X),locale:S(j),modelValue:S(F),weekDays:S(K),weekStartsOn:N.value})]),_:3},8,[`as`,`as-child`,`aria-label`,`class`,`data-disabled`,`data-invalid`,`data-readonly`,`dir`]))}});export{T as default};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { DateRange, DateValue, Matcher } from "../../date/types.js";
|
|
2
|
+
import { WeekDayFormat } from "../../date/calendar.js";
|
|
3
|
+
import { RangeCalendarRootProps } from "./types.js";
|
|
4
|
+
import { useCalendar } from "../calendar/use-calendar.js";
|
|
5
|
+
import * as _$vue from "vue";
|
|
6
|
+
|
|
7
|
+
//#region src/components/range-calendar/range-calendar-root.vue.d.ts
|
|
8
|
+
type __VLS_Slots = {
|
|
9
|
+
default?: (props: {
|
|
10
|
+
date: DateValue;
|
|
11
|
+
grid: ReturnType<typeof useCalendar>['grid']['value'];
|
|
12
|
+
weekDays: string[];
|
|
13
|
+
weekStartsOn: number;
|
|
14
|
+
locale: string;
|
|
15
|
+
fixedWeeks: boolean;
|
|
16
|
+
modelValue: DateRange;
|
|
17
|
+
}) => any;
|
|
18
|
+
};
|
|
19
|
+
declare const __VLS_base: _$vue.DefineComponent<RangeCalendarRootProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
20
|
+
"update:modelValue": (range: DateRange) => any;
|
|
21
|
+
"update:placeholder": (date: DateValue) => any;
|
|
22
|
+
"update:startValue": (date: DateValue | undefined) => any;
|
|
23
|
+
}, string, _$vue.PublicProps, Readonly<RangeCalendarRootProps> & Readonly<{
|
|
24
|
+
"onUpdate:modelValue"?: ((range: DateRange) => any) | undefined;
|
|
25
|
+
"onUpdate:placeholder"?: ((date: DateValue) => any) | undefined;
|
|
26
|
+
"onUpdate:startValue"?: ((date: DateValue | undefined) => any) | undefined;
|
|
27
|
+
}>, {
|
|
28
|
+
placeholder: DateValue;
|
|
29
|
+
disabled: boolean;
|
|
30
|
+
defaultValue: DateRange;
|
|
31
|
+
readonly: boolean;
|
|
32
|
+
defaultPlaceholder: DateValue;
|
|
33
|
+
pagedNavigation: boolean;
|
|
34
|
+
preventDeselect: boolean;
|
|
35
|
+
weekdayFormat: WeekDayFormat;
|
|
36
|
+
fixedWeeks: boolean;
|
|
37
|
+
numberOfMonths: number;
|
|
38
|
+
initialFocus: boolean;
|
|
39
|
+
isDateDisabled: Matcher;
|
|
40
|
+
isDateUnavailable: Matcher;
|
|
41
|
+
disableDaysOutsideCurrentView: boolean;
|
|
42
|
+
allowNonContiguousRanges: boolean;
|
|
43
|
+
maximumDays: number;
|
|
44
|
+
isDateHighlightable: Matcher;
|
|
45
|
+
fixedDate: "start" | "end";
|
|
46
|
+
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
47
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
48
|
+
declare const _default: typeof __VLS_export;
|
|
49
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
50
|
+
new (): {
|
|
51
|
+
$slots: S;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
//#endregion
|
|
55
|
+
export { _default };
|