@soybeanjs/headless 0.18.0 → 0.20.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 +1 -10
- package/dist/components/accordion/accordion-content.js +1 -1
- package/dist/components/accordion/accordion-description.js +1 -1
- package/dist/components/accordion/accordion-header.js +1 -1
- package/dist/components/accordion/accordion-item.js +1 -1
- package/dist/components/accordion/accordion-root.js +1 -1
- package/dist/components/accordion/accordion-trigger.js +1 -1
- package/dist/components/accordion/context.js +1 -1
- package/dist/components/accordion/types.d.ts +6 -5
- package/dist/components/affix/affix-content.js +1 -1
- package/dist/components/affix/affix-placeholder.js +1 -1
- package/dist/components/affix/affix-root.js +1 -1
- package/dist/components/affix/types.d.ts +5 -4
- package/dist/components/alert/alert-close.js +1 -1
- package/dist/components/alert/alert-close.vue.d.ts +5 -4
- package/dist/components/alert/alert-compact.js +1 -1
- package/dist/components/alert/alert-compact.vue.d.ts +2 -0
- package/dist/components/alert/alert-content.js +1 -1
- package/dist/components/alert/alert-description.js +1 -1
- package/dist/components/alert/alert-root.js +1 -1
- package/dist/components/alert/alert-title.js +1 -1
- package/dist/components/alert/types.d.ts +16 -9
- package/dist/components/anchor/anchor-link.js +1 -1
- package/dist/components/anchor/anchor-root.js +1 -1
- package/dist/components/anchor/anchor-root.vue.d.ts +2 -2
- package/dist/components/anchor/context.js +1 -1
- package/dist/components/anchor/types.d.ts +5 -4
- package/dist/components/arrow/arrow.js +1 -1
- package/dist/components/arrow/types.d.ts +2 -1
- package/dist/components/aspect-ratio/aspect-ratio.js +1 -1
- package/dist/components/aspect-ratio/types.d.ts +2 -3
- 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-root.js +1 -1
- package/dist/components/autocomplete/autocomplete-root.vue.d.ts +4 -4
- package/dist/components/autocomplete/types.d.ts +4 -3
- package/dist/components/avatar/avatar-fallback.js +1 -1
- package/dist/components/avatar/avatar-image.js +1 -1
- package/dist/components/avatar/avatar-root.js +1 -1
- package/dist/components/avatar/types.d.ts +5 -4
- package/dist/components/backtop/backtop.js +1 -1
- package/dist/components/backtop/backtop.vue.d.ts +2 -6
- package/dist/components/backtop/types.d.ts +2 -2
- package/dist/components/badge/badge-content.js +1 -1
- package/dist/components/badge/badge-root.js +1 -1
- package/dist/components/badge/types.d.ts +4 -3
- package/dist/components/bottom-sheet/bottom-sheet-compact.js +1 -1
- package/dist/components/bottom-sheet/bottom-sheet-popup.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/context.js +1 -1
- package/dist/components/bottom-sheet/types.d.ts +3 -2
- package/dist/components/breadcrumb/breadcrumb-ellipsis.js +1 -1
- package/dist/components/breadcrumb/breadcrumb-item.js +1 -1
- package/dist/components/breadcrumb/breadcrumb-link.js +1 -1
- package/dist/components/breadcrumb/breadcrumb-list.js +1 -1
- package/dist/components/breadcrumb/breadcrumb-page.js +1 -1
- package/dist/components/breadcrumb/breadcrumb-root.js +1 -1
- package/dist/components/breadcrumb/breadcrumb-separator.js +1 -1
- package/dist/components/breadcrumb/types.d.ts +8 -8
- package/dist/components/button/button.js +1 -1
- package/dist/components/button/types.d.ts +3 -2
- package/dist/components/calendar/calendar-cell-trigger.js +1 -1
- package/dist/components/calendar/calendar-cell-trigger.vue.d.ts +3 -16
- package/dist/components/calendar/calendar-cell.js +1 -1
- package/dist/components/calendar/calendar-compact.js +1 -1
- package/dist/components/calendar/calendar-compact.vue.d.ts +3 -3
- package/dist/components/calendar/calendar-grid-body.js +1 -1
- package/dist/components/calendar/calendar-grid-head.js +1 -1
- package/dist/components/calendar/calendar-grid-row.js +1 -1
- package/dist/components/calendar/calendar-grid.js +1 -1
- package/dist/components/calendar/calendar-head-cell.js +1 -1
- package/dist/components/calendar/calendar-header.js +1 -1
- package/dist/components/calendar/calendar-header.vue.d.ts +1 -4
- package/dist/components/calendar/calendar-heading.js +1 -1
- package/dist/components/calendar/calendar-heading.vue.d.ts +6 -8
- package/dist/components/calendar/calendar-next.js +1 -1
- package/dist/components/calendar/calendar-next.vue.d.ts +6 -10
- package/dist/components/calendar/calendar-prev.js +1 -1
- package/dist/components/calendar/calendar-prev.vue.d.ts +6 -10
- package/dist/components/calendar/calendar-root.js +1 -1
- package/dist/components/calendar/calendar-root.vue.d.ts +2 -4
- package/dist/components/calendar/index.d.ts +2 -2
- package/dist/components/calendar/shared.js +1 -0
- package/dist/components/calendar/types.d.ts +119 -202
- package/dist/components/calendar/use-calendar.js +1 -1
- package/dist/components/calendar-range/calendar-range-cell-trigger.js +1 -0
- package/dist/components/calendar-range/calendar-range-cell-trigger.vue.d.ts +15 -0
- package/dist/components/calendar-range/calendar-range-cell.js +1 -0
- package/dist/components/{range-calendar/range-calendar-cell.vue.d.ts → calendar-range/calendar-range-cell.vue.d.ts} +3 -3
- package/dist/components/calendar-range/calendar-range-compact.js +1 -0
- package/dist/components/{range-calendar/range-calendar-compact.vue.d.ts → calendar-range/calendar-range-compact.vue.d.ts} +5 -5
- package/dist/components/calendar-range/calendar-range-grid-body.js +1 -0
- package/dist/components/{range-calendar/range-calendar-grid-body.vue.d.ts → calendar-range/calendar-range-grid-body.vue.d.ts} +3 -3
- package/dist/components/calendar-range/calendar-range-grid-head.js +1 -0
- package/dist/components/{range-calendar/range-calendar-grid-head.vue.d.ts → calendar-range/calendar-range-grid-head.vue.d.ts} +3 -3
- package/dist/components/calendar-range/calendar-range-grid-row.js +1 -0
- package/dist/components/{range-calendar/range-calendar-grid-row.vue.d.ts → calendar-range/calendar-range-grid-row.vue.d.ts} +3 -3
- package/dist/components/calendar-range/calendar-range-grid.js +1 -0
- package/dist/components/{range-calendar/range-calendar-grid.vue.d.ts → calendar-range/calendar-range-grid.vue.d.ts} +3 -3
- package/dist/components/calendar-range/calendar-range-head-cell.js +1 -0
- package/dist/components/{range-calendar/range-calendar-head-cell.vue.d.ts → calendar-range/calendar-range-head-cell.vue.d.ts} +3 -3
- package/dist/components/calendar-range/calendar-range-header.js +1 -0
- package/dist/components/calendar-range/calendar-range-header.vue.d.ts +18 -0
- package/dist/components/calendar-range/calendar-range-heading.js +1 -0
- package/dist/components/calendar-range/calendar-range-heading.vue.d.ts +20 -0
- package/dist/components/calendar-range/calendar-range-next.js +1 -0
- package/dist/components/calendar-range/calendar-range-next.vue.d.ts +20 -0
- package/dist/components/calendar-range/calendar-range-prev.js +1 -0
- package/dist/components/calendar-range/calendar-range-prev.vue.d.ts +20 -0
- package/dist/components/calendar-range/calendar-range-root.js +1 -0
- package/dist/components/{range-calendar/range-calendar-root.vue.d.ts → calendar-range/calendar-range-root.vue.d.ts} +12 -24
- package/dist/components/calendar-range/context.d.ts +9 -0
- package/dist/components/calendar-range/context.js +1 -0
- package/dist/components/calendar-range/index.d.ts +16 -0
- package/dist/components/calendar-range/index.js +1 -0
- package/dist/components/calendar-range/types.d.ts +471 -0
- package/dist/components/{range-calendar/use-range-calendar.js → calendar-range/use-calendar-range.js} +1 -1
- package/dist/components/card/card-collapsible-trigger.js +1 -1
- package/dist/components/card/card-content.js +1 -1
- package/dist/components/card/card-description.js +1 -1
- package/dist/components/card/card-footer.js +1 -1
- package/dist/components/card/card-header.js +1 -1
- package/dist/components/card/card-root.js +1 -1
- package/dist/components/card/card-root.vue.d.ts +1 -1
- package/dist/components/card/card-title-root.js +1 -1
- package/dist/components/card/card-title.js +1 -1
- package/dist/components/card/types.d.ts +8 -8
- package/dist/components/carousel/carousel-container.js +1 -1
- package/dist/components/carousel/carousel-content.js +1 -1
- package/dist/components/carousel/carousel-control.js +1 -1
- package/dist/components/carousel/carousel-item.js +1 -1
- package/dist/components/carousel/carousel-navigation.js +1 -1
- package/dist/components/carousel/carousel-next.js +1 -1
- package/dist/components/carousel/carousel-previous.js +1 -1
- package/dist/components/carousel/carousel-root.js +1 -1
- package/dist/components/carousel/types.d.ts +8 -7
- package/dist/components/checkbox/checkbox-card-compact.js +1 -1
- package/dist/components/checkbox/checkbox-card-group-compact.js +1 -1
- package/dist/components/checkbox/checkbox-compact.vue.d.ts +2 -2
- package/dist/components/checkbox/checkbox-control.js +1 -1
- package/dist/components/checkbox/checkbox-group-compact.js +1 -1
- package/dist/components/checkbox/checkbox-group-root.js +1 -1
- package/dist/components/checkbox/checkbox-indicator.js +1 -1
- package/dist/components/checkbox/checkbox-label.js +1 -1
- package/dist/components/checkbox/checkbox-root.js +1 -1
- package/dist/components/checkbox/checkbox-root.vue.d.ts +2 -2
- package/dist/components/checkbox/context.js +1 -1
- package/dist/components/checkbox/types.d.ts +8 -6
- package/dist/components/clipboard/clipboard.js +1 -1
- package/dist/components/clipboard/clipboard.vue.d.ts +5 -5
- package/dist/components/clipboard/types.d.ts +1 -1
- package/dist/components/collapsible/collapsible-content.js +1 -1
- package/dist/components/collapsible/collapsible-root.js +1 -1
- package/dist/components/collapsible/collapsible-root.vue.d.ts +3 -3
- package/dist/components/collapsible/collapsible-trigger.js +1 -1
- package/dist/components/collapsible/collapsible-trigger.vue.d.ts +1 -4
- package/dist/components/collapsible/context.js +1 -1
- package/dist/components/collapsible/types.d.ts +6 -5
- package/dist/components/color-area/color-area-area.js +1 -1
- package/dist/components/color-area/color-area-area.vue.d.ts +1 -4
- package/dist/components/color-area/color-area-compact.js +1 -0
- package/dist/components/color-area/color-area-compact.vue.d.ts +19 -0
- package/dist/components/color-area/color-area-root.js +1 -1
- package/dist/components/color-area/color-area-root.vue.d.ts +4 -6
- package/dist/components/color-area/color-area-thumb.js +1 -1
- package/dist/components/color-area/index.d.ts +5 -4
- package/dist/components/color-area/index.js +1 -1
- package/dist/components/color-area/types.d.ts +24 -7
- package/dist/components/color-field/color-field-compact.js +1 -0
- package/dist/components/color-field/color-field-compact.vue.d.ts +15 -0
- package/dist/components/color-field/color-field-input.js +1 -1
- package/dist/components/color-field/color-field-root.js +1 -1
- package/dist/components/color-field/color-field-root.vue.d.ts +2 -4
- package/dist/components/color-field/index.d.ts +5 -4
- package/dist/components/color-field/index.js +1 -1
- package/dist/components/color-field/types.d.ts +20 -6
- package/dist/components/color-picker/color-picker-compact.js +1 -0
- package/dist/components/color-picker/color-picker-compact.vue.d.ts +60 -0
- package/dist/components/color-picker/color-picker-root.js +1 -1
- package/dist/components/color-picker/color-picker-root.vue.d.ts +18 -7
- package/dist/components/color-picker/color-picker-trigger.js +1 -0
- package/dist/components/color-picker/color-picker-trigger.vue.d.ts +25 -0
- package/dist/components/color-picker/context.d.ts +9 -0
- package/dist/components/color-picker/context.js +1 -0
- package/dist/components/color-picker/index.d.ts +6 -3
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/color-picker/shared.js +1 -0
- package/dist/components/color-picker/types.d.ts +132 -5
- package/dist/components/color-slider/color-slider-compact.js +1 -0
- package/dist/components/color-slider/color-slider-compact.vue.d.ts +19 -0
- package/dist/components/color-slider/color-slider-root.js +1 -1
- package/dist/components/color-slider/color-slider-root.vue.d.ts +5 -5
- package/dist/components/color-slider/color-slider-thumb.js +1 -1
- package/dist/components/color-slider/color-slider-track.js +1 -1
- package/dist/components/color-slider/index.d.ts +6 -5
- package/dist/components/color-slider/index.js +1 -1
- package/dist/components/color-slider/types.d.ts +24 -7
- package/dist/components/color-swatch/color-swatch-checker.js +1 -0
- package/dist/components/color-swatch/color-swatch-checker.vue.d.ts +8 -0
- package/dist/components/color-swatch/color-swatch-compact.js +1 -0
- package/dist/components/color-swatch/color-swatch-compact.vue.d.ts +15 -0
- package/dist/components/color-swatch/color-swatch-fill.js +1 -0
- package/dist/components/color-swatch/color-swatch-fill.vue.d.ts +8 -0
- package/dist/components/color-swatch/color-swatch-root.js +1 -0
- package/dist/components/color-swatch/color-swatch-root.vue.d.ts +15 -0
- package/dist/components/color-swatch/context.d.ts +9 -0
- package/dist/components/color-swatch/context.js +1 -0
- package/dist/components/color-swatch/index.d.ts +7 -3
- package/dist/components/color-swatch/index.js +1 -1
- package/dist/components/color-swatch/types.d.ts +58 -5
- package/dist/components/color-swatch-picker/color-swatch-picker-compact.js +1 -0
- package/dist/components/color-swatch-picker/color-swatch-picker-compact.vue.d.ts +28 -0
- package/dist/components/color-swatch-picker/color-swatch-picker-item-indicator.js +1 -1
- package/dist/components/color-swatch-picker/color-swatch-picker-item-swatch.js +1 -1
- package/dist/components/color-swatch-picker/color-swatch-picker-item.js +1 -1
- package/dist/components/color-swatch-picker/color-swatch-picker-root.js +1 -1
- package/dist/components/color-swatch-picker/color-swatch-picker-root.vue.d.ts +1 -1
- package/dist/components/color-swatch-picker/context.js +1 -1
- package/dist/components/color-swatch-picker/index.d.ts +7 -6
- package/dist/components/color-swatch-picker/index.js +1 -1
- package/dist/components/color-swatch-picker/types.d.ts +63 -8
- package/dist/components/combobox/combobox-arrow.js +1 -1
- package/dist/components/combobox/combobox-cancel.js +1 -1
- 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-content.js +1 -1
- package/dist/components/combobox/combobox-empty.js +1 -1
- package/dist/components/combobox/combobox-empty.vue.d.ts +1 -4
- package/dist/components/combobox/combobox-group.js +1 -1
- 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 +3 -3
- package/dist/components/combobox/combobox-separator.js +1 -1
- package/dist/components/combobox/combobox-trigger.js +1 -1
- package/dist/components/combobox/combobox-viewport.js +1 -1
- package/dist/components/combobox/combobox-virtualizer.js +1 -1
- package/dist/components/combobox/types.d.ts +9 -8
- package/dist/components/command/command-compact.js +1 -1
- package/dist/components/command/types.d.ts +4 -4
- package/dist/components/config-provider/config-provider.js +14 -2
- package/dist/components/config-provider/context.js +1 -1
- package/dist/components/config-provider/types.d.ts +9 -1
- package/dist/components/context-menu/context-menu-checkbox-compact.vue.d.ts +2 -2
- package/dist/components/context-menu/context-menu-content.js +1 -1
- package/dist/components/context-menu/context-menu-radio-compact.vue.d.ts +2 -2
- package/dist/components/context-menu/context-menu-trigger.js +1 -1
- package/dist/components/context-menu/context.js +1 -1
- package/dist/components/date-field/date-field-compact.js +1 -1
- package/dist/components/date-field/date-field-compact.vue.d.ts +17 -5
- package/dist/components/date-field/date-field-input.js +1 -1
- package/dist/components/date-field/date-field-root.js +1 -1
- package/dist/components/date-field/date-field-root.vue.d.ts +14 -22
- package/dist/components/date-field/index.d.ts +3 -3
- package/dist/components/date-field/types.d.ts +44 -144
- package/dist/components/date-picker/context.js +1 -1
- package/dist/components/date-picker/date-picker-compact.js +1 -1
- package/dist/components/date-picker/date-picker-compact.vue.d.ts +290 -10
- package/dist/components/date-picker/index.d.ts +2 -7
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-picker/types.d.ts +11 -274
- package/dist/components/date-range-field/date-range-field-compact.js +1 -1
- package/dist/components/date-range-field/date-range-field-input.js +1 -1
- package/dist/components/date-range-field/date-range-field-input.vue.d.ts +2 -2
- package/dist/components/date-range-field/date-range-field-root.js +1 -1
- package/dist/components/date-range-field/date-range-field-root.vue.d.ts +15 -30
- package/dist/components/date-range-field/index.d.ts +3 -3
- package/dist/components/date-range-field/types.d.ts +36 -183
- package/dist/components/date-range-picker/context.js +1 -1
- package/dist/components/date-range-picker/date-range-picker-compact.js +1 -1
- package/dist/components/date-range-picker/date-range-picker-compact.vue.d.ts +293 -12
- package/dist/components/date-range-picker/index.d.ts +2 -5
- package/dist/components/date-range-picker/index.js +1 -1
- package/dist/components/date-range-picker/types.d.ts +14 -269
- package/dist/components/dialog/context.js +1 -1
- package/dist/components/dialog/dialog-cancel.js +1 -1
- package/dist/components/dialog/dialog-close.js +1 -1
- package/dist/components/dialog/dialog-compact.js +1 -1
- package/dist/components/dialog/dialog-compact.vue.d.ts +7 -7
- package/dist/components/dialog/dialog-confirm.js +1 -1
- package/dist/components/dialog/dialog-content.js +1 -1
- package/dist/components/dialog/dialog-description.js +1 -1
- package/dist/components/dialog/dialog-footer.js +1 -1
- package/dist/components/dialog/dialog-header.js +1 -1
- package/dist/components/dialog/dialog-overlay.js +1 -1
- package/dist/components/dialog/dialog-popup-impl.js +1 -1
- package/dist/components/dialog/dialog-popup.js +1 -1
- package/dist/components/dialog/dialog-root.js +1 -1
- package/dist/components/dialog/dialog-title.js +1 -1
- package/dist/components/dialog/dialog-trigger.js +1 -1
- package/dist/components/dialog/dialog-trigger.vue.d.ts +5 -1
- package/dist/components/dialog/state.js +1 -1
- package/dist/components/dialog/types.d.ts +26 -15
- package/dist/components/dropdown-menu/context.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-checkbox-compact.vue.d.ts +2 -2
- package/dist/components/dropdown-menu/dropdown-menu-content.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 +2 -2
- package/dist/components/dropdown-menu/dropdown-menu-trigger.js +1 -1
- package/dist/components/editable/context.js +1 -1
- package/dist/components/editable/editable-area.js +1 -1
- package/dist/components/editable/editable-area.vue.d.ts +1 -4
- package/dist/components/editable/editable-cancel-trigger.js +1 -1
- package/dist/components/editable/editable-cancel-trigger.vue.d.ts +1 -4
- package/dist/components/editable/editable-compact.js +1 -1
- package/dist/components/editable/editable-compact.vue.d.ts +2 -2
- package/dist/components/editable/editable-edit-trigger.js +1 -1
- package/dist/components/editable/editable-edit-trigger.vue.d.ts +1 -4
- package/dist/components/editable/editable-input.js +1 -1
- package/dist/components/editable/editable-input.vue.d.ts +4 -1
- package/dist/components/editable/editable-preview.js +1 -1
- package/dist/components/editable/editable-root.js +1 -1
- package/dist/components/editable/editable-root.vue.d.ts +4 -6
- package/dist/components/editable/editable-submit-trigger.js +1 -1
- package/dist/components/editable/editable-submit-trigger.vue.d.ts +1 -4
- package/dist/components/editable/types.d.ts +12 -11
- package/dist/components/empty/empty-content.js +1 -1
- package/dist/components/empty/empty-description.js +1 -1
- package/dist/components/empty/empty-header.js +1 -1
- package/dist/components/empty/empty-media.js +1 -1
- package/dist/components/empty/empty-root.js +1 -1
- package/dist/components/empty/empty-title.js +1 -1
- package/dist/components/empty/types.d.ts +8 -8
- package/dist/components/form/form-compact.js +1 -1
- package/dist/components/form/form-control.js +1 -1
- package/dist/components/form/form-description.js +1 -1
- package/dist/components/form/form-error.js +1 -1
- package/dist/components/form/form-field-array-compact.js +1 -1
- package/dist/components/form/form-field-compact.js +1 -1
- package/dist/components/form/form-label.js +1 -1
- package/dist/components/form/types.d.ts +7 -6
- package/dist/components/hover-card/context.js +1 -1
- package/dist/components/hover-card/hover-card-compact.js +1 -1
- package/dist/components/hover-card/hover-card-compact.vue.d.ts +0 -1
- package/dist/components/hover-card/hover-card-popup.js +1 -1
- package/dist/components/hover-card/hover-card-positioner.js +1 -1
- package/dist/components/hover-card/hover-card-root.js +1 -1
- package/dist/components/hover-card/hover-card-root.vue.d.ts +2 -2
- package/dist/components/hover-card/hover-card-trigger.js +1 -1
- package/dist/components/hover-card/index.d.ts +1 -1
- package/dist/components/hover-card/types.d.ts +2 -2
- package/dist/components/input/input-clear.js +1 -1
- package/dist/components/input/input-compact.js +1 -1
- package/dist/components/input/input-control.js +1 -1
- package/dist/components/input/input-root.js +1 -1
- package/dist/components/input/input-root.vue.d.ts +1 -1
- package/dist/components/input/types.d.ts +10 -9
- package/dist/components/input-number/context.js +1 -1
- package/dist/components/input-number/index.d.ts +7 -6
- package/dist/components/input-number/index.js +1 -1
- package/dist/components/input-number/input-number-clear.js +1 -0
- package/dist/components/input-number/input-number-compact.js +1 -0
- package/dist/components/input-number/input-number-compact.vue.d.ts +21 -0
- package/dist/components/input-number/input-number-control.js +1 -1
- package/dist/components/input-number/input-number-decrement.js +1 -1
- package/dist/components/input-number/input-number-decrement.vue.d.ts +1 -4
- package/dist/components/input-number/input-number-increment.js +1 -1
- package/dist/components/input-number/input-number-increment.vue.d.ts +1 -4
- package/dist/components/input-number/input-number-root.js +1 -1
- package/dist/components/input-number/input-number-root.vue.d.ts +4 -4
- package/dist/components/input-number/types.d.ts +87 -14
- package/dist/components/input-otp/input-otp-compact.js +1 -1
- package/dist/components/input-otp/input-otp-compact.vue.d.ts +4 -4
- package/dist/components/input-otp/input-otp-input.js +1 -1
- package/dist/components/input-otp/input-otp-positioner.js +1 -1
- package/dist/components/input-otp/input-otp-root.js +1 -1
- package/dist/components/input-otp/input-otp-root.vue.d.ts +4 -4
- package/dist/components/input-otp/types.d.ts +5 -4
- package/dist/components/kbd/kbd.js +1 -1
- package/dist/components/kbd/types.d.ts +2 -3
- package/dist/components/label/label.js +1 -1
- package/dist/components/label/types.d.ts +2 -3
- package/dist/components/layout/layout-classic-compact.vue.d.ts +1 -1
- package/dist/components/layout/layout-classic-placeholder.js +1 -1
- package/dist/components/layout/layout-classic-root.js +1 -1
- package/dist/components/layout/layout-compact.vue.d.ts +1 -1
- package/dist/components/layout/layout-content.js +1 -1
- package/dist/components/layout/layout-footer.js +1 -1
- package/dist/components/layout/layout-header.js +1 -1
- package/dist/components/layout/layout-main.js +1 -1
- package/dist/components/layout/layout-mobile.js +1 -1
- package/dist/components/layout/layout-rail.js +1 -1
- package/dist/components/layout/layout-root.js +1 -1
- package/dist/components/layout/layout-root.vue.d.ts +3 -3
- package/dist/components/layout/layout-sidebar.js +1 -1
- package/dist/components/layout/layout-tab.js +1 -1
- package/dist/components/layout/layout-trigger.js +1 -1
- package/dist/components/layout/layout-trigger.vue.d.ts +1 -4
- package/dist/components/layout/types.d.ts +13 -12
- package/dist/components/link/link.js +1 -1
- package/dist/components/link/types.d.ts +2 -3
- package/dist/components/list/list-content.js +1 -1
- package/dist/components/list/list-description.js +1 -1
- package/dist/components/list/list-item.js +1 -1
- package/dist/components/list/list-root.js +1 -1
- package/dist/components/list/list-title.js +1 -1
- package/dist/components/list/types.d.ts +6 -7
- package/dist/components/listbox/context.js +1 -1
- package/dist/components/listbox/listbox-content.js +1 -1
- package/dist/components/listbox/listbox-filter.js +1 -1
- package/dist/components/listbox/listbox-group-label.js +1 -1
- package/dist/components/listbox/listbox-group.js +1 -1
- package/dist/components/listbox/listbox-item-indicator.js +1 -1
- package/dist/components/listbox/listbox-item.js +1 -1
- package/dist/components/listbox/listbox-item.vue.d.ts +1 -4
- package/dist/components/listbox/listbox-root.js +1 -1
- package/dist/components/listbox/types.d.ts +9 -8
- package/dist/components/menu/context.js +1 -1
- package/dist/components/menu/menu-checkbox-group.js +1 -1
- package/dist/components/menu/menu-checkbox-group.vue.d.ts +1 -1
- package/dist/components/menu/menu-checkbox-item.js +1 -1
- package/dist/components/menu/menu-content-impl.js +1 -1
- package/dist/components/menu/menu-content.js +1 -1
- package/dist/components/menu/menu-group-label.js +1 -1
- package/dist/components/menu/menu-group.js +1 -1
- package/dist/components/menu/menu-item-impl.js +1 -1
- package/dist/components/menu/menu-item-indicator.js +1 -1
- package/dist/components/menu/menu-item.js +1 -1
- package/dist/components/menu/menu-radio-group.js +1 -1
- package/dist/components/menu/menu-radio-group.vue.d.ts +3 -3
- package/dist/components/menu/menu-radio-item.js +1 -1
- package/dist/components/menu/menu-radio-options-compact.js +1 -1
- package/dist/components/menu/menu-radio-options-compact.vue.d.ts +2 -2
- package/dist/components/menu/menu-root.js +1 -1
- package/dist/components/menu/menu-root.vue.d.ts +1 -1
- package/dist/components/menu/menu-sub-content.js +1 -1
- package/dist/components/menu/menu-sub-trigger.js +1 -1
- package/dist/components/menu/menu-sub.js +1 -1
- package/dist/components/menu/types.d.ts +11 -12
- package/dist/components/menubar/context.js +1 -1
- package/dist/components/menubar/menubar-compact.vue.d.ts +2 -2
- package/dist/components/menubar/menubar-content.js +1 -1
- package/dist/components/menubar/menubar-menu.js +1 -1
- package/dist/components/menubar/menubar-root.js +1 -1
- package/dist/components/menubar/menubar-root.vue.d.ts +1 -1
- package/dist/components/menubar/menubar-sub-content.js +1 -1
- package/dist/components/menubar/menubar-sub-trigger.js +1 -1
- package/dist/components/menubar/menubar-trigger.js +1 -1
- package/dist/components/menubar/menubar-trigger.vue.d.ts +1 -4
- package/dist/components/menubar/types.d.ts +5 -7
- package/dist/components/navigation-menu/context.js +1 -1
- package/dist/components/navigation-menu/index.d.ts +3 -3
- package/dist/components/navigation-menu/index.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-compact.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-compact.vue.d.ts +2 -2
- package/dist/components/navigation-menu/navigation-menu-content.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-indicator.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-item-slot-compact.js +1 -0
- package/dist/components/navigation-menu/navigation-menu-item.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-link.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-list.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-option-compact.js +1 -0
- package/dist/components/navigation-menu/navigation-menu-root.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-root.vue.d.ts +1 -2
- package/dist/components/navigation-menu/navigation-menu-sub-list.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-sub-option-compact.js +1 -0
- package/dist/components/navigation-menu/navigation-menu-trigger.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-viewport.js +1 -1
- package/dist/components/navigation-menu/shared.js +1 -1
- package/dist/components/navigation-menu/types.d.ts +105 -65
- package/dist/components/page-tabs/hooks.js +1 -1
- package/dist/components/page-tabs/index.d.ts +6 -5
- package/dist/components/page-tabs/index.js +1 -1
- package/dist/components/page-tabs/page-tabs-close.js +1 -1
- package/dist/components/page-tabs/page-tabs-compact.js +1 -0
- package/dist/components/page-tabs/page-tabs-compact.vue.d.ts +27 -0
- package/dist/components/page-tabs/page-tabs-item.js +1 -1
- package/dist/components/page-tabs/page-tabs-item.vue.d.ts +4 -4
- package/dist/components/page-tabs/page-tabs-pin.js +1 -1
- package/dist/components/page-tabs/page-tabs-root.js +1 -1
- package/dist/components/page-tabs/page-tabs-root.vue.d.ts +3 -2
- package/dist/components/page-tabs/types.d.ts +208 -9
- package/dist/components/pagination/pagination-ellipsis.js +1 -1
- package/dist/components/pagination/pagination-first.js +1 -1
- package/dist/components/pagination/pagination-first.vue.d.ts +2 -2
- package/dist/components/pagination/pagination-last.js +1 -1
- package/dist/components/pagination/pagination-last.vue.d.ts +2 -2
- package/dist/components/pagination/pagination-list-item.js +1 -1
- package/dist/components/pagination/pagination-list-item.vue.d.ts +2 -2
- package/dist/components/pagination/pagination-list.js +1 -1
- package/dist/components/pagination/pagination-next.js +1 -1
- package/dist/components/pagination/pagination-next.vue.d.ts +2 -2
- package/dist/components/pagination/pagination-prev.js +1 -1
- package/dist/components/pagination/pagination-prev.vue.d.ts +2 -2
- package/dist/components/pagination/pagination-root.js +1 -1
- package/dist/components/pagination/pagination-root.vue.d.ts +2 -2
- package/dist/components/pagination/types.d.ts +18 -16
- package/dist/components/password/context.d.ts +9 -0
- package/dist/components/password/context.js +1 -0
- package/dist/components/password/index.d.ts +4 -0
- package/dist/components/password/index.js +1 -0
- package/dist/components/password/password-compact.js +1 -0
- package/dist/components/password/password-compact.vue.d.ts +23 -0
- package/dist/components/password/types.d.ts +97 -0
- package/dist/components/popconfirm/context.d.ts +9 -0
- package/dist/components/popconfirm/context.js +1 -0
- package/dist/components/popconfirm/index.d.ts +21 -0
- package/dist/components/popconfirm/index.js +1 -0
- package/dist/components/popconfirm/popconfirm-cancel.js +1 -0
- package/dist/components/popconfirm/popconfirm-cancel.vue.d.ts +22 -0
- package/dist/components/popconfirm/popconfirm-compact.js +1 -0
- package/dist/components/{date-picker/date-picker-content.vue.d.ts → popconfirm/popconfirm-compact.vue.d.ts} +17 -7
- package/dist/components/popconfirm/popconfirm-confirm.js +1 -0
- package/dist/components/popconfirm/popconfirm-confirm.vue.d.ts +22 -0
- package/dist/components/popconfirm/popconfirm-content.js +1 -0
- package/dist/components/popconfirm/popconfirm-content.vue.d.ts +18 -0
- package/dist/components/popconfirm/popconfirm-description.js +1 -0
- package/dist/components/popconfirm/popconfirm-description.vue.d.ts +18 -0
- package/dist/components/popconfirm/popconfirm-footer.js +1 -0
- package/dist/components/popconfirm/popconfirm-footer.vue.d.ts +18 -0
- package/dist/components/popconfirm/popconfirm-header.js +1 -0
- package/dist/components/popconfirm/popconfirm-header.vue.d.ts +18 -0
- package/dist/components/popconfirm/popconfirm-title.js +1 -0
- package/dist/components/popconfirm/popconfirm-title.vue.d.ts +18 -0
- package/dist/components/popconfirm/types.d.ts +221 -0
- package/dist/components/popover/context.js +1 -1
- package/dist/components/popover/index.d.ts +3 -3
- package/dist/components/popover/index.js +1 -1
- package/dist/components/popover/popover-anchor.js +1 -1
- package/dist/components/popover/popover-close.js +1 -1
- package/dist/components/popover/popover-close.vue.d.ts +3 -6
- package/dist/components/popover/popover-compact.js +1 -1
- package/dist/components/popover/popover-compact.vue.d.ts +1 -1
- package/dist/components/popover/popover-popup.js +1 -1
- package/dist/components/popover/popover-positioner-impl.js +1 -1
- package/dist/components/popover/popover-positioner.js +1 -1
- package/dist/components/popover/popover-positioner.vue.d.ts +1 -0
- package/dist/components/popover/popover-root.js +1 -1
- package/dist/components/popover/popover-root.vue.d.ts +1 -1
- package/dist/components/popover/popover-trigger.js +1 -1
- package/dist/components/popover/types.d.ts +13 -15
- package/dist/components/popper/index.d.ts +1 -1
- package/dist/components/popper/popper-anchor.js +1 -1
- package/dist/components/popper/popper-arrow.js +1 -1
- package/dist/components/popper/popper-positioner.js +1 -1
- package/dist/components/popper/popper-positioner.vue.d.ts +2 -1
- package/dist/components/popper/types.d.ts +7 -6
- package/dist/components/primitive/index.d.ts +2 -2
- package/dist/components/primitive/types.d.ts +3 -1
- package/dist/components/progress/index.d.ts +8 -6
- package/dist/components/progress/index.js +1 -1
- package/dist/components/progress/progress-circle-compact.js +1 -0
- package/dist/components/progress/progress-circle-compact.vue.d.ts +21 -0
- package/dist/components/progress/progress-circle-svg.js +1 -0
- package/dist/components/progress/{progress-circle.vue.d.ts → progress-circle-svg.vue.d.ts} +3 -3
- package/dist/components/progress/progress-compact.js +1 -0
- package/dist/components/progress/progress-compact.vue.d.ts +21 -0
- package/dist/components/progress/progress-indicator.js +1 -1
- package/dist/components/progress/progress-indicator.vue.d.ts +1 -4
- package/dist/components/progress/progress-provider.js +1 -1
- package/dist/components/progress/progress-root.js +1 -1
- package/dist/components/progress/progress-root.vue.d.ts +1 -3
- package/dist/components/progress/shared.js +1 -1
- package/dist/components/progress/state.js +1 -1
- package/dist/components/progress/types.d.ts +68 -23
- package/dist/components/radio-group/context.d.ts +3 -2
- package/dist/components/radio-group/context.js +1 -1
- package/dist/components/radio-group/index.d.ts +10 -9
- package/dist/components/radio-group/index.js +1 -1
- package/dist/components/radio-group/radio-group-card-compact.js +1 -0
- package/dist/components/radio-group/radio-group-card-compact.vue.d.ts +21 -0
- package/dist/components/radio-group/radio-group-compact.js +1 -1
- package/dist/components/radio-group/radio-group-compact.vue.d.ts +4 -5
- package/dist/components/radio-group/radio-group-control.js +1 -1
- package/dist/components/radio-group/radio-group-control.vue.d.ts +2 -2
- package/dist/components/radio-group/radio-group-indicator.js +1 -1
- package/dist/components/radio-group/radio-group-item.js +1 -1
- package/dist/components/radio-group/radio-group-label.js +1 -1
- package/dist/components/radio-group/radio-group-root.js +1 -1
- package/dist/components/radio-group/radio-group-root.vue.d.ts +5 -5
- package/dist/components/radio-group/types.d.ts +74 -18
- package/dist/components/roving-focus/context.js +1 -1
- package/dist/components/roving-focus/roving-focus-group.js +1 -1
- package/dist/components/roving-focus/roving-focus-group.vue.d.ts +1 -1
- package/dist/components/roving-focus/roving-focus-item.js +1 -1
- package/dist/components/roving-focus/types.d.ts +3 -4
- package/dist/components/scroll-area/index.d.ts +8 -7
- package/dist/components/scroll-area/index.js +1 -1
- package/dist/components/scroll-area/scroll-area-compact.js +1 -0
- package/dist/components/scroll-area/scroll-area-compact.vue.d.ts +15 -0
- package/dist/components/scroll-area/scroll-area-corner.js +1 -1
- package/dist/components/scroll-area/scroll-area-corner.vue.d.ts +1 -4
- package/dist/components/scroll-area/scroll-area-root.js +1 -1
- package/dist/components/scroll-area/scroll-area-root.vue.d.ts +0 -2
- package/dist/components/scroll-area/scroll-area-scrollbar.js +1 -1
- package/dist/components/scroll-area/scroll-area-scrollbar.vue.d.ts +0 -2
- package/dist/components/scroll-area/scroll-area-thumb.js +1 -1
- package/dist/components/scroll-area/scroll-area-thumb.vue.d.ts +1 -4
- package/dist/components/scroll-area/scroll-area-viewport.js +1 -1
- package/dist/components/scroll-area/types.d.ts +46 -8
- package/dist/components/segment/index.d.ts +1 -1
- package/dist/components/segment/segment-compact.js +1 -1
- package/dist/components/segment/segment-compact.vue.d.ts +2 -2
- package/dist/components/select/context.js +1 -1
- package/dist/components/select/select-arrow.js +1 -1
- package/dist/components/select/select-bubble-select.js +1 -1
- package/dist/components/select/select-compact.vue.d.ts +2 -2
- package/dist/components/select/select-content.js +1 -1
- package/dist/components/select/select-group-label.js +1 -1
- package/dist/components/select/select-group.js +1 -1
- package/dist/components/select/select-item-aligned-popup.js +1 -1
- package/dist/components/select/select-item-aligned-positioner.js +1 -1
- package/dist/components/select/select-item-indicator.js +1 -1
- package/dist/components/select/select-item-text.js +1 -1
- package/dist/components/select/select-item.js +1 -1
- package/dist/components/select/select-popper-popup.js +1 -1
- package/dist/components/select/select-root.vue.d.ts +2 -2
- package/dist/components/select/select-scroll-button-impl.js +1 -1
- package/dist/components/select/select-scroll-down-button.js +1 -1
- package/dist/components/select/select-scroll-up-button.js +1 -1
- package/dist/components/select/select-separator.js +1 -1
- package/dist/components/select/select-trigger-icon.js +1 -1
- package/dist/components/select/select-trigger.js +1 -1
- package/dist/components/select/select-value.js +1 -1
- package/dist/components/select/select-viewport.js +1 -1
- package/dist/components/select/types.d.ts +16 -14
- package/dist/components/separator/index.d.ts +5 -4
- package/dist/components/separator/index.js +1 -1
- package/dist/components/separator/separator-compact.js +1 -0
- package/dist/components/separator/separator-compact.vue.d.ts +18 -0
- package/dist/components/separator/separator-label.js +1 -1
- package/dist/components/separator/separator-root.js +1 -1
- package/dist/components/separator/types.d.ts +26 -5
- package/dist/components/skeleton/skeleton.js +1 -1
- package/dist/components/skeleton/skeleton.vue.d.ts +1 -4
- package/dist/components/skeleton/types.d.ts +2 -3
- package/dist/components/slider/index.d.ts +7 -6
- package/dist/components/slider/index.js +1 -1
- package/dist/components/slider/shared.js +1 -1
- package/dist/components/slider/slider-compact.js +1 -0
- package/dist/components/slider/slider-compact.vue.d.ts +21 -0
- package/dist/components/slider/slider-range.js +1 -1
- package/dist/components/slider/slider-range.vue.d.ts +1 -4
- package/dist/components/slider/slider-root.js +1 -1
- package/dist/components/slider/slider-root.vue.d.ts +1 -3
- package/dist/components/slider/slider-thumb.js +1 -1
- package/dist/components/slider/slider-thumb.vue.d.ts +1 -4
- package/dist/components/slider/slider-track.js +1 -1
- package/dist/components/slider/slider-track.vue.d.ts +1 -4
- package/dist/components/slider/types.d.ts +55 -8
- package/dist/components/splitter/context.js +1 -1
- package/dist/components/splitter/splitter-group.js +1 -1
- package/dist/components/splitter/splitter-group.vue.d.ts +0 -2
- package/dist/components/splitter/splitter-panel.js +1 -1
- package/dist/components/splitter/splitter-panel.vue.d.ts +2 -4
- package/dist/components/splitter/splitter-resize-handle.js +1 -1
- package/dist/components/splitter/splitter-resize-handle.vue.d.ts +0 -2
- package/dist/components/splitter/types.d.ts +5 -5
- package/dist/components/stepper/context.js +1 -1
- package/dist/components/stepper/stepper-description.js +1 -1
- package/dist/components/stepper/stepper-indicator.js +1 -1
- package/dist/components/stepper/stepper-item.js +1 -1
- package/dist/components/stepper/stepper-item.vue.d.ts +0 -2
- package/dist/components/stepper/stepper-root.js +1 -1
- package/dist/components/stepper/stepper-root.vue.d.ts +2 -4
- package/dist/components/stepper/stepper-separator.js +1 -1
- package/dist/components/stepper/stepper-title.js +1 -1
- package/dist/components/stepper/stepper-trigger.js +1 -1
- package/dist/components/stepper/types.d.ts +10 -10
- package/dist/components/switch/context.js +1 -1
- package/dist/components/switch/index.d.ts +6 -5
- package/dist/components/switch/index.js +1 -1
- package/dist/components/switch/switch-compact.js +1 -0
- package/dist/components/switch/switch-compact.vue.d.ts +22 -0
- package/dist/components/switch/switch-control.js +1 -1
- package/dist/components/switch/switch-control.vue.d.ts +2 -2
- package/dist/components/switch/switch-root.js +1 -1
- package/dist/components/switch/switch-root.vue.d.ts +1 -1
- package/dist/components/switch/switch-thumb.js +1 -1
- package/dist/components/switch/types.d.ts +54 -7
- package/dist/components/table/hooks.js +1 -1
- package/dist/components/table/shared.js +1 -1
- package/dist/components/table/table-body.js +1 -1
- package/dist/components/table/table-cell.js +1 -1
- package/dist/components/table/table-compact.js +1 -1
- package/dist/components/table/table-content.js +1 -1
- package/dist/components/table/table-footer.js +1 -1
- package/dist/components/table/table-head.js +1 -1
- package/dist/components/table/table-header.js +1 -1
- package/dist/components/table/table-root.js +1 -1
- package/dist/components/table/table-row.js +1 -1
- package/dist/components/table/table-scroll.js +1 -1
- package/dist/components/table/table-virtual-spacer-row.js +1 -1
- package/dist/components/table/types.d.ts +15 -11
- package/dist/components/tabs/context.js +1 -1
- package/dist/components/tabs/tabs-compact.vue.d.ts +2 -2
- package/dist/components/tabs/tabs-content.js +1 -1
- package/dist/components/tabs/tabs-indicator.js +1 -1
- package/dist/components/tabs/tabs-list.js +1 -1
- package/dist/components/tabs/tabs-root.js +1 -1
- package/dist/components/tabs/tabs-root.vue.d.ts +5 -5
- package/dist/components/tabs/tabs-trigger.js +1 -1
- package/dist/components/tabs/types.d.ts +8 -7
- package/dist/components/tag/tag.js +1 -1
- package/dist/components/tag/types.d.ts +2 -3
- package/dist/components/tags-input/index.d.ts +8 -7
- package/dist/components/tags-input/index.js +1 -1
- package/dist/components/tags-input/tags-input-clear.js +1 -1
- package/dist/components/tags-input/tags-input-clear.vue.d.ts +1 -4
- package/dist/components/tags-input/tags-input-compact.js +1 -0
- package/dist/components/tags-input/tags-input-compact.vue.d.ts +25 -0
- package/dist/components/tags-input/tags-input-control.js +1 -0
- package/dist/components/tags-input/tags-input-control.vue.d.ts +8 -0
- package/dist/components/tags-input/tags-input-item-delete.js +1 -1
- package/dist/components/tags-input/tags-input-item-delete.vue.d.ts +1 -4
- package/dist/components/tags-input/tags-input-item-text.js +1 -1
- package/dist/components/tags-input/tags-input-item-text.vue.d.ts +3 -6
- package/dist/components/tags-input/tags-input-item.js +1 -1
- package/dist/components/tags-input/tags-input-item.vue.d.ts +14 -14
- package/dist/components/tags-input/tags-input-root.js +1 -1
- package/dist/components/tags-input/tags-input-root.vue.d.ts +29 -21
- package/dist/components/tags-input/types.d.ts +75 -63
- package/dist/components/textarea/index.d.ts +7 -5
- package/dist/components/textarea/index.js +1 -1
- package/dist/components/textarea/textarea-clear.js +1 -0
- package/dist/components/textarea/textarea-clear.vue.d.ts +22 -0
- package/dist/components/textarea/textarea-compact.js +1 -0
- package/dist/components/textarea/textarea-compact.vue.d.ts +21 -0
- package/dist/components/textarea/textarea-control.js +1 -1
- package/dist/components/textarea/textarea-counter.js +1 -1
- package/dist/components/textarea/textarea-root.js +1 -1
- package/dist/components/textarea/textarea-root.vue.d.ts +3 -1
- package/dist/components/textarea/types.d.ts +96 -6
- package/dist/components/time-field/index.d.ts +6 -4
- package/dist/components/time-field/index.js +1 -1
- package/dist/components/time-field/time-field-compact.js +1 -0
- package/dist/components/time-field/time-field-compact.vue.d.ts +15 -0
- package/dist/components/time-field/time-field-input.js +1 -1
- package/dist/components/time-field/time-field-input.vue.d.ts +2 -2
- package/dist/components/time-field/time-field-root.js +1 -1
- package/dist/components/time-field/time-field-root.vue.d.ts +5 -15
- package/dist/components/time-field/types.d.ts +33 -132
- package/dist/components/time-range-field/index.d.ts +2 -2
- package/dist/components/time-range-field/time-range-field-compact.js +1 -1
- package/dist/components/time-range-field/time-range-field-compact.vue.d.ts +1 -2
- package/dist/components/time-range-field/time-range-field-input.js +1 -1
- package/dist/components/time-range-field/time-range-field-root.js +1 -1
- package/dist/components/time-range-field/time-range-field-root.vue.d.ts +5 -19
- package/dist/components/time-range-field/types.d.ts +36 -184
- package/dist/components/toast/state.js +1 -1
- package/dist/components/toast/toast-provider.js +1 -1
- package/dist/components/toast/toast.js +1 -1
- package/dist/components/toast/toaster.js +1 -1
- package/dist/components/toast/toaster.vue.d.ts +2 -2
- package/dist/components/toast/types.d.ts +3 -2
- package/dist/components/toggle/toggle.js +1 -1
- package/dist/components/toggle/toggle.vue.d.ts +1 -4
- package/dist/components/toggle/types.d.ts +2 -7
- package/dist/components/toggle-group/context.js +1 -1
- package/dist/components/toggle-group/toggle-group-item.js +1 -1
- package/dist/components/toggle-group/toggle-group-root.js +1 -1
- package/dist/components/toggle-group/types.d.ts +3 -5
- package/dist/components/toolbar/context.js +1 -1
- package/dist/components/toolbar/toolbar-button.js +1 -1
- package/dist/components/toolbar/toolbar-link.js +1 -1
- package/dist/components/toolbar/toolbar-link.vue.d.ts +1 -2
- package/dist/components/toolbar/toolbar-root.js +1 -1
- package/dist/components/toolbar/toolbar-separator.js +1 -1
- package/dist/components/toolbar/toolbar-toggle-group.js +1 -1
- package/dist/components/toolbar/toolbar-toggle-item.js +1 -1
- package/dist/components/toolbar/types.d.ts +11 -6
- package/dist/components/tooltip/index.d.ts +8 -7
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tooltip/tooltip-compact.js +1 -0
- package/dist/components/tooltip/tooltip-compact.vue.d.ts +28 -0
- package/dist/components/tooltip/tooltip-popup.js +1 -1
- package/dist/components/tooltip/tooltip-positioner-impl.js +1 -1
- package/dist/components/tooltip/tooltip-positioner.js +1 -1
- package/dist/components/tooltip/tooltip-positioner.vue.d.ts +1 -0
- package/dist/components/tooltip/tooltip-root.js +1 -1
- package/dist/components/tooltip/tooltip-root.vue.d.ts +2 -2
- package/dist/components/tooltip/tooltip-trigger.js +1 -1
- package/dist/components/tooltip/types.d.ts +58 -2
- package/dist/components/tree/context.js +1 -1
- package/dist/components/tree/tree-item.js +1 -1
- package/dist/components/tree/tree-root.js +1 -1
- package/dist/components/tree/tree-root.vue.d.ts +1 -1
- package/dist/components/tree/tree-virtualizer-item.js +1 -1
- package/dist/components/tree/tree-virtualizer-root.js +1 -1
- package/dist/components/tree/types.d.ts +5 -5
- package/dist/components/tree-menu/index.d.ts +12 -8
- package/dist/components/tree-menu/index.js +1 -1
- package/dist/components/tree-menu/shared.js +1 -0
- package/dist/components/tree-menu/tree-menu-button.js +1 -1
- package/dist/components/tree-menu/tree-menu-button.vue.d.ts +1 -4
- package/dist/components/tree-menu/tree-menu-collapsible.js +1 -1
- package/dist/components/tree-menu/tree-menu-compact.js +1 -0
- package/dist/components/tree-menu/tree-menu-compact.vue.d.ts +24 -0
- package/dist/components/tree-menu/tree-menu-group-label.js +1 -1
- package/dist/components/tree-menu/tree-menu-group-root.js +1 -1
- package/dist/components/tree-menu/tree-menu-group.js +1 -1
- package/dist/components/tree-menu/tree-menu-item.js +1 -1
- package/dist/components/tree-menu/tree-menu-option-compact.js +1 -0
- package/dist/components/tree-menu/tree-menu-option-compact.vue.d.ts +33 -0
- package/dist/components/tree-menu/tree-menu-options-compact.js +1 -0
- package/dist/components/tree-menu/tree-menu-options-compact.vue.d.ts +34 -0
- package/dist/components/tree-menu/tree-menu-root.js +1 -1
- package/dist/components/tree-menu/tree-menu-root.vue.d.ts +3 -0
- package/dist/components/tree-menu/tree-menu-slot-compact.js +1 -0
- package/dist/components/tree-menu/tree-menu-slot-compact.vue.d.ts +28 -0
- package/dist/components/tree-menu/tree-menu-sub.js +1 -1
- package/dist/components/tree-menu/types.d.ts +241 -12
- package/dist/components/virtualizer/types.d.ts +7 -6
- package/dist/components/virtualizer/virtualizer-content.js +1 -1
- package/dist/components/virtualizer/virtualizer-item.js +1 -1
- package/dist/components/virtualizer/virtualizer-root.js +1 -1
- package/dist/components/visually-hidden/types.d.ts +2 -3
- package/dist/components/visually-hidden/visually-hidden-input-bubble.js +1 -1
- package/dist/components/visually-hidden/visually-hidden-input.js +1 -1
- package/dist/components/visually-hidden/visually-hidden.js +1 -1
- package/dist/composables/index.d.ts +2 -1
- package/dist/composables/index.js +1 -1
- package/dist/composables/use-bool-prop.d.ts +12 -0
- package/dist/composables/use-bool-prop.js +1 -0
- package/dist/composables/use-collection.d.ts +0 -3
- package/dist/composables/use-collection.js +1 -1
- package/dist/composables/use-controllable-state.d.ts +10 -1
- package/dist/composables/use-controllable-state.js +1 -1
- package/dist/composables/use-selection.js +1 -1
- package/dist/constants/components.d.ts +3 -7
- package/dist/constants/components.js +1 -1
- package/dist/date/calendar.d.ts +22 -24
- package/dist/date/calendar.js +1 -1
- package/dist/date/comparators.d.ts +29 -30
- package/dist/date/formatter.d.ts +1 -1
- package/dist/date/index.d.ts +8 -8
- package/dist/date/index.js +1 -1
- package/dist/date/parser.d.ts +14 -13
- package/dist/date/parser.js +1 -1
- package/dist/date/parts.d.ts +6 -6
- package/dist/date/placeholders.d.ts +2 -21
- package/dist/date/placeholders.js +1 -1
- package/dist/date/types.d.ts +12 -11
- package/dist/date/use-date-field.d.ts +6 -8
- package/dist/date/use-date-field.js +1 -1
- package/dist/date/utils.d.ts +3 -7
- package/dist/date/utils.js +1 -1
- package/dist/index.d.ts +427 -417
- package/dist/index.js +1 -1
- package/dist/locale/hooks.d.ts +14 -0
- package/dist/locale/hooks.js +1 -0
- package/dist/locale/index.d.ts +5 -0
- package/dist/locale/index.js +1 -0
- package/dist/locale/langs/en.d.ts +6 -0
- package/dist/locale/langs/en.js +1 -0
- package/dist/locale/langs/zh-CN.d.ts +6 -0
- package/dist/locale/langs/zh-CN.js +1 -0
- package/dist/locale/locales.d.ts +23 -0
- package/dist/locale/locales.js +1 -0
- package/dist/locale/types.d.ts +234 -0
- package/dist/namespaced/index.d.ts +982 -963
- package/dist/namespaced/index.js +1 -1
- package/dist/shared/color.d.ts +3 -13
- package/dist/shared/color.js +1 -1
- package/dist/shared/index.d.ts +4 -4
- package/dist/shared/index.js +1 -1
- package/dist/shared/object.d.ts +2 -1
- package/dist/shared/object.js +1 -1
- package/dist/shared/string.d.ts +6 -1
- package/dist/shared/string.js +1 -1
- package/dist/shared/time-picker.d.ts +1 -2
- package/dist/shared/vue.js +1 -1
- package/dist/types/color.d.ts +16 -0
- package/dist/types/common.d.ts +2 -1
- package/dist/types/index.d.ts +4 -3
- package/dist/types/vue.d.ts +4 -2
- package/package.json +17 -7
- package/dist/components/_icon/icon.vue.d.ts +0 -8
- package/dist/components/_icon/index.d.ts +0 -3
- package/dist/components/_icon/index.js +0 -1
- package/dist/components/calendar/use-calendar.d.ts +0 -45
- package/dist/components/color-swatch/color-swatch.js +0 -1
- package/dist/components/color-swatch/color-swatch.vue.d.ts +0 -26
- package/dist/components/date-picker/date-picker-content.js +0 -1
- package/dist/components/date-picker/date-picker-root.js +0 -1
- package/dist/components/date-picker/date-picker-root.vue.d.ts +0 -38
- package/dist/components/date-range-picker/date-range-picker-popup.js +0 -1
- package/dist/components/date-range-picker/date-range-picker-popup.vue.d.ts +0 -21
- package/dist/components/date-range-picker/date-range-picker-root.js +0 -1
- package/dist/components/date-range-picker/date-range-picker-root.vue.d.ts +0 -50
- package/dist/components/date-range-picker/date-range-picker-trigger.js +0 -1
- package/dist/components/date-range-picker/date-range-picker-trigger.vue.d.ts +0 -21
- package/dist/components/month-picker/context.d.ts +0 -9
- package/dist/components/month-picker/context.js +0 -1
- package/dist/components/month-picker/index.d.ts +0 -6
- package/dist/components/month-picker/index.js +0 -1
- package/dist/components/month-picker/month-picker-popup.js +0 -1
- package/dist/components/month-picker/month-picker-popup.vue.d.ts +0 -36
- package/dist/components/month-picker/month-picker-root.js +0 -1
- package/dist/components/month-picker/month-picker-root.vue.d.ts +0 -39
- package/dist/components/month-picker/month-picker-trigger.js +0 -1
- package/dist/components/month-picker/month-picker-trigger.vue.d.ts +0 -21
- package/dist/components/month-picker/types.d.ts +0 -202
- package/dist/components/month-range-picker/context.d.ts +0 -9
- package/dist/components/month-range-picker/context.js +0 -1
- package/dist/components/month-range-picker/index.d.ts +0 -6
- package/dist/components/month-range-picker/index.js +0 -1
- package/dist/components/month-range-picker/month-range-picker-popup.js +0 -1
- package/dist/components/month-range-picker/month-range-picker-popup.vue.d.ts +0 -39
- package/dist/components/month-range-picker/month-range-picker-root.js +0 -1
- package/dist/components/month-range-picker/month-range-picker-root.vue.d.ts +0 -43
- package/dist/components/month-range-picker/month-range-picker-trigger.js +0 -1
- package/dist/components/month-range-picker/month-range-picker-trigger.vue.d.ts +0 -21
- package/dist/components/month-range-picker/types.d.ts +0 -234
- package/dist/components/progress/progress-circle.js +0 -1
- package/dist/components/range-calendar/context.d.ts +0 -9
- package/dist/components/range-calendar/context.js +0 -1
- package/dist/components/range-calendar/index.d.ts +0 -16
- package/dist/components/range-calendar/index.js +0 -1
- package/dist/components/range-calendar/range-calendar-cell-trigger.js +0 -1
- package/dist/components/range-calendar/range-calendar-cell-trigger.vue.d.ts +0 -33
- package/dist/components/range-calendar/range-calendar-cell.js +0 -1
- package/dist/components/range-calendar/range-calendar-compact.js +0 -1
- package/dist/components/range-calendar/range-calendar-grid-body.js +0 -1
- package/dist/components/range-calendar/range-calendar-grid-head.js +0 -1
- package/dist/components/range-calendar/range-calendar-grid-row.js +0 -1
- package/dist/components/range-calendar/range-calendar-grid.js +0 -1
- package/dist/components/range-calendar/range-calendar-head-cell.js +0 -1
- package/dist/components/range-calendar/range-calendar-header.js +0 -1
- package/dist/components/range-calendar/range-calendar-header.vue.d.ts +0 -21
- package/dist/components/range-calendar/range-calendar-heading.js +0 -1
- package/dist/components/range-calendar/range-calendar-heading.vue.d.ts +0 -22
- package/dist/components/range-calendar/range-calendar-next.js +0 -1
- package/dist/components/range-calendar/range-calendar-next.vue.d.ts +0 -24
- package/dist/components/range-calendar/range-calendar-prev.js +0 -1
- package/dist/components/range-calendar/range-calendar-prev.vue.d.ts +0 -24
- package/dist/components/range-calendar/range-calendar-root.js +0 -1
- package/dist/components/range-calendar/types.d.ts +0 -488
- package/dist/components/tags-input/tags-input-input.js +0 -1
- package/dist/components/tags-input/tags-input-input.vue.d.ts +0 -21
- package/dist/components/time-picker/context.d.ts +0 -9
- package/dist/components/time-picker/context.js +0 -1
- package/dist/components/time-picker/index.d.ts +0 -6
- package/dist/components/time-picker/index.js +0 -1
- package/dist/components/time-picker/time-picker-popup.js +0 -1
- package/dist/components/time-picker/time-picker-popup.vue.d.ts +0 -27
- package/dist/components/time-picker/time-picker-root.js +0 -1
- package/dist/components/time-picker/time-picker-root.vue.d.ts +0 -45
- package/dist/components/time-picker/time-picker-trigger.js +0 -1
- package/dist/components/time-picker/time-picker-trigger.vue.d.ts +0 -21
- package/dist/components/time-picker/types.d.ts +0 -224
- package/dist/components/time-range-picker/context.d.ts +0 -9
- package/dist/components/time-range-picker/context.js +0 -1
- package/dist/components/time-range-picker/index.d.ts +0 -7
- package/dist/components/time-range-picker/index.js +0 -1
- package/dist/components/time-range-picker/time-range-picker-compact.js +0 -1
- package/dist/components/time-range-picker/time-range-picker-compact.vue.d.ts +0 -31
- package/dist/components/time-range-picker/time-range-picker-popup.js +0 -1
- package/dist/components/time-range-picker/time-range-picker-popup.vue.d.ts +0 -30
- package/dist/components/time-range-picker/time-range-picker-root.js +0 -1
- package/dist/components/time-range-picker/time-range-picker-root.vue.d.ts +0 -50
- package/dist/components/time-range-picker/time-range-picker-trigger.js +0 -1
- package/dist/components/time-range-picker/time-range-picker-trigger.vue.d.ts +0 -21
- package/dist/components/time-range-picker/types.d.ts +0 -304
- package/dist/components/year-picker/context.d.ts +0 -9
- package/dist/components/year-picker/context.js +0 -1
- package/dist/components/year-picker/index.d.ts +0 -6
- package/dist/components/year-picker/index.js +0 -1
- package/dist/components/year-picker/types.d.ts +0 -207
- package/dist/components/year-picker/year-picker-popup.js +0 -1
- package/dist/components/year-picker/year-picker-popup.vue.d.ts +0 -36
- package/dist/components/year-picker/year-picker-root.js +0 -1
- package/dist/components/year-picker/year-picker-root.vue.d.ts +0 -39
- package/dist/components/year-picker/year-picker-trigger.js +0 -1
- package/dist/components/year-picker/year-picker-trigger.vue.d.ts +0 -21
- package/dist/components/year-range-picker/context.d.ts +0 -9
- package/dist/components/year-range-picker/context.js +0 -1
- package/dist/components/year-range-picker/index.d.ts +0 -6
- package/dist/components/year-range-picker/index.js +0 -1
- package/dist/components/year-range-picker/types.d.ts +0 -239
- package/dist/components/year-range-picker/year-range-picker-popup.js +0 -1
- package/dist/components/year-range-picker/year-range-picker-popup.vue.d.ts +0 -39
- package/dist/components/year-range-picker/year-range-picker-root.js +0 -1
- package/dist/components/year-range-picker/year-range-picker-root.vue.d.ts +0 -43
- package/dist/components/year-range-picker/year-range-picker-trigger.js +0 -1
- package/dist/components/year-range-picker/year-range-picker-trigger.vue.d.ts +0 -21
- /package/dist/_virtual/{_@oxc-project_runtime@0.127.0 → _@oxc-project_runtime@0.129.0}/helpers/defineProperty.js +0 -0
- /package/dist/_virtual/{_@oxc-project_runtime@0.127.0 → _@oxc-project_runtime@0.129.0}/helpers/toPrimitive.js +0 -0
- /package/dist/_virtual/{_@oxc-project_runtime@0.127.0 → _@oxc-project_runtime@0.129.0}/helpers/toPropertyKey.js +0 -0
- /package/dist/_virtual/{_@oxc-project_runtime@0.127.0 → _@oxc-project_runtime@0.129.0}/helpers/typeof.js +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{isNullish as e}from"../../shared/guard.js";import{compareYearMonth as t,getDefaultDate as n,isMonthBetweenInclusive as r,toDate as i}from"../../date/comparators.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"../../composables/index.js";import{useDirection as s,useLocale as c}from"../config-provider/context.js";import{Primitive as l}from"../primitive/primitive.js";import"../primitive/index.js";import{provideMonthRangePickerRootContext as u,useMonthRangePickerUi as d}from"./context.js";import{computed as f,createBlock as p,defineComponent as m,normalizeClass as h,openBlock as g,renderSlot as _,shallowRef as v,unref as y,useId as b,watch as x,withCtx as S}from"vue";const C=m({name:`MonthRangePickerRoot`,__name:`month-range-picker-root`,props:{defaultValue:{default:void 0},defaultPlaceholder:{default:void 0},placeholder:{default:void 0},modelValue:{},minValue:{},maxValue:{},locale:{},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},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(m,{emit:C}){let w=m,T=C,E=d(`root`),D=b(),O=c(()=>w.locale),k=s(()=>w.dir),A=a(O.value),j=o(()=>w.modelValue,e=>{T(`update:modelValue`,e),T(`update:startValue`,e.start),T(`update:endValue`,e.end)},w.defaultValue??{}),M=n({defaultPlaceholder:w.placeholder,defaultValue:j.value.start,locale:w.locale}).set({day:1}),N=o(()=>w.placeholder,e=>T(`update:placeholder`,e),w.defaultPlaceholder?.set({day:1})??M.copy()),P=o(()=>w.open,e=>T(`update:open`,e??!1),w.defaultOpen),F=v((j.value.end??j.value.start??N.value).set({day:1})),I=v(),L=f(()=>w.minValue?.set({day:1})),R=f(()=>w.maxValue?.set({day:1})),z=(e,n)=>t(e,n)<=0?{start:e.copy(),end:n.copy()}:{start:n.copy(),end:e.copy()},B=e=>!!(w.disabled||L.value&&t(e,L.value)<0||R.value&&t(e,R.value)>0),V=e=>j.value.start?t(e,j.value.start.set({day:1}))===0:!1,H=e=>j.value.end?t(e,j.value.end.set({day:1}))===0:!1,U=e=>{let{start:n,end:i}=j.value;return!n&&!i?!1:n&&!i?t(e,n.set({day:1}))===0:n&&i?r(e,n.set({day:1}),i.set({day:1})):!1},W=e=>{let{start:t,end:n}=j.value;if(!t||n||!I.value)return!1;let i=z(t.set({day:1}),I.value.set({day:1}));return r(e,i.start,i.end)},G=f(()=>{let{start:e,end:n}=j.value;return!!(e&&B(e.set({day:1}))||n&&B(n.set({day:1}))||e&&n&&t(n.set({day:1}),e.set({day:1}))<0)}),K=f(()=>{let{start:e,end:t}=j.value;return e&&t?`${A.fullMonthAndYear(i(e.set({day:1})))} – ${A.fullMonthAndYear(i(t.set({day:1})))}`:e?`${A.fullMonthAndYear(i(e.set({day:1})))} – ...`:``}),q=f(()=>A.fullYear(i(N.value.set({day:1})))),J=f(()=>!e(j.value.start)&&!e(j.value.end)),Y=e=>{let t=e.set({day:1});N.value=t.copy(),F.value=t.copy()};return x(O,e=>{A.getLocale()!==e&&A.setLocale(e)}),x(()=>j.value.start,e=>{if(!e)return;let n=e.set({day:1});t(N.value,n)!==0&&(N.value=n.copy())}),x(j,e=>{F.value=(e.end??e.start??N.value).set({day:1}).copy()},{deep:!0}),u({locale:O,dir:k,modelValue:j,placeholder:N,isInvalid:G,formatter:A,open:P,popupId:D,displayValue:K,headingValue:q,focusedMonth:F,hoveredMonth:I,minValue:L,maxValue:R,hasSelectedRange:J,onRangeChange:e=>{let t=e.set({day:1});if(w.readonly||B(t))return;let{start:n,end:r}=j.value;if(!n||r){j.value={start:t.copy(),end:void 0},F.value=t.copy(),I.value=void 0,Y(t);return}let i=z(n.set({day:1}),t);j.value=i,F.value=t.copy(),I.value=void 0,Y(i.start),P.value=!1},onPlaceholderChange:Y,isMonthDisabled:B,isMonthSelected:U,isMonthHighlighted:W,isRangeStart:V,isRangeEnd:H,setOpen(e){P.value=e},setFocusedMonth:e=>{F.value=e.set({day:1}).copy()},setHoveredMonth:e=>{I.value=e?.set({day:1}).copy()},prevPage:()=>{Y(N.value.subtract({years:1}))},nextPage:()=>{Y(N.value.add({years:1}))},isPrevButtonDisabled:()=>w.disabled?!0:L.value?t(N.value.subtract({years:1}).set({month:12,day:1}),L.value)<0:!1,isNextButtonDisabled:()=>w.disabled?!0:R.value?t(N.value.add({years:1}).set({month:1,day:1}),R.value)>0:!1,disabled:f(()=>w.disabled),readonly:f(()=>w.readonly)}),(e,t)=>(g(),p(y(l),{as:m.as,"as-child":m.asChild,class:h(y(E)),"data-disabled":m.disabled?``:void 0,"data-invalid":G.value?``:void 0,"data-readonly":m.readonly?``:void 0,dir:y(k),"data-slot":`root`},{default:S(()=>[_(e.$slots,`default`,{displayValue:K.value,modelValue:y(j),open:!!y(P)})]),_:3},8,[`as`,`as-child`,`class`,`data-disabled`,`data-invalid`,`data-readonly`,`dir`]))}});export{C as default};
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { DateRange, DateValue } from "../../date/types.js";
|
|
2
|
-
import { MonthRangePickerRootProps } from "./types.js";
|
|
3
|
-
import * as _$vue from "vue";
|
|
4
|
-
|
|
5
|
-
//#region src/components/month-range-picker/month-range-picker-root.vue.d.ts
|
|
6
|
-
type __VLS_Slots = {
|
|
7
|
-
default?: (props: {
|
|
8
|
-
displayValue: string;
|
|
9
|
-
modelValue: DateRange;
|
|
10
|
-
open: boolean;
|
|
11
|
-
}) => any;
|
|
12
|
-
};
|
|
13
|
-
declare const __VLS_base: _$vue.DefineComponent<MonthRangePickerRootProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
14
|
-
"update:modelValue": (range: DateRange) => any;
|
|
15
|
-
"update:placeholder": (date: DateValue) => any;
|
|
16
|
-
"update:startValue": (date: DateValue | undefined) => any;
|
|
17
|
-
"update:endValue": (date: DateValue | undefined) => any;
|
|
18
|
-
"update:open": (open: boolean) => any;
|
|
19
|
-
}, string, _$vue.PublicProps, Readonly<MonthRangePickerRootProps> & Readonly<{
|
|
20
|
-
"onUpdate:modelValue"?: ((range: DateRange) => any) | undefined;
|
|
21
|
-
"onUpdate:placeholder"?: ((date: DateValue) => any) | undefined;
|
|
22
|
-
"onUpdate:startValue"?: ((date: DateValue | undefined) => any) | undefined;
|
|
23
|
-
"onUpdate:endValue"?: ((date: DateValue | undefined) => any) | undefined;
|
|
24
|
-
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
25
|
-
}>, {
|
|
26
|
-
placeholder: DateValue;
|
|
27
|
-
disabled: boolean;
|
|
28
|
-
defaultValue: DateRange;
|
|
29
|
-
defaultPlaceholder: DateValue;
|
|
30
|
-
readonly: boolean;
|
|
31
|
-
defaultOpen: boolean;
|
|
32
|
-
open: boolean;
|
|
33
|
-
modal: boolean;
|
|
34
|
-
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
35
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
36
|
-
declare const _default: typeof __VLS_export;
|
|
37
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
38
|
-
new (): {
|
|
39
|
-
$slots: S;
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
//#endregion
|
|
43
|
-
export { _default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Primitive as e}from"../primitive/primitive.js";import"../primitive/index.js";import{useMonthRangePickerRootContext as t,useMonthRangePickerUi 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:`MonthRangePickerTrigger`,__name:`month-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(`MonthRangePickerTrigger`),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};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { AsTag } from "../primitive/types.js";
|
|
2
|
-
import { MonthRangePickerTriggerProps } from "./types.js";
|
|
3
|
-
import * as _$vue from "vue";
|
|
4
|
-
|
|
5
|
-
//#region src/components/month-range-picker/month-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<MonthRangePickerTriggerProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<MonthRangePickerTriggerProps> & 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 };
|
|
@@ -1,234 +0,0 @@
|
|
|
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 { DateRange, DateValue } from "../../date/types.js";
|
|
6
|
-
import { Formatter } from "../../date/formatter.js";
|
|
7
|
-
import { ComputedRef, HTMLAttributes, ShallowRef } from "vue";
|
|
8
|
-
|
|
9
|
-
//#region src/components/month-range-picker/types.d.ts
|
|
10
|
-
/**
|
|
11
|
-
* Properties for the MonthRangePickerRoot component.
|
|
12
|
-
*/
|
|
13
|
-
interface MonthRangePickerRootProps extends PrimitiveProps, FormFieldCommonProps, /** @vue-ignore */Omit<HTMLAttributes, 'placeholder'> {
|
|
14
|
-
/**
|
|
15
|
-
* Default value.
|
|
16
|
-
*/
|
|
17
|
-
defaultValue?: DateRange;
|
|
18
|
-
/**
|
|
19
|
-
* Default placeholder.
|
|
20
|
-
*/
|
|
21
|
-
defaultPlaceholder?: DateValue;
|
|
22
|
-
/**
|
|
23
|
-
* Placeholder.
|
|
24
|
-
*/
|
|
25
|
-
placeholder?: DateValue;
|
|
26
|
-
/**
|
|
27
|
-
* Current model value.
|
|
28
|
-
*/
|
|
29
|
-
modelValue?: DateRange;
|
|
30
|
-
/**
|
|
31
|
-
* Min value.
|
|
32
|
-
*/
|
|
33
|
-
minValue?: DateValue;
|
|
34
|
-
/**
|
|
35
|
-
* Max value.
|
|
36
|
-
*/
|
|
37
|
-
maxValue?: DateValue;
|
|
38
|
-
/**
|
|
39
|
-
* Locale.
|
|
40
|
-
*/
|
|
41
|
-
locale?: string;
|
|
42
|
-
/**
|
|
43
|
-
* Whether the component is disabled.
|
|
44
|
-
*/
|
|
45
|
-
disabled?: boolean;
|
|
46
|
-
/**
|
|
47
|
-
* Whether the component is readonly.
|
|
48
|
-
*/
|
|
49
|
-
readonly?: boolean;
|
|
50
|
-
/**
|
|
51
|
-
* Id.
|
|
52
|
-
*/
|
|
53
|
-
id?: string;
|
|
54
|
-
/**
|
|
55
|
-
* Reading direction of the component.
|
|
56
|
-
*/
|
|
57
|
-
dir?: Direction;
|
|
58
|
-
/**
|
|
59
|
-
* Whether the component is open by default.
|
|
60
|
-
*/
|
|
61
|
-
defaultOpen?: boolean;
|
|
62
|
-
/**
|
|
63
|
-
* Whether the component is open.
|
|
64
|
-
*/
|
|
65
|
-
open?: boolean;
|
|
66
|
-
/**
|
|
67
|
-
* Whether the popup is modal.
|
|
68
|
-
*/
|
|
69
|
-
modal?: boolean;
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* Events for the MonthRangePickerRoot component.
|
|
73
|
-
*/
|
|
74
|
-
type MonthRangePickerRootEmits = {
|
|
75
|
-
/**
|
|
76
|
-
* Emitted when the model value changes.
|
|
77
|
-
*/
|
|
78
|
-
'update:modelValue': [range: DateRange];
|
|
79
|
-
/**
|
|
80
|
-
* Emitted when the placeholder value changes.
|
|
81
|
-
*/
|
|
82
|
-
'update:placeholder': [date: DateValue];
|
|
83
|
-
/**
|
|
84
|
-
* Emitted when the start value changes.
|
|
85
|
-
*/
|
|
86
|
-
'update:startValue': [date: DateValue | undefined];
|
|
87
|
-
/**
|
|
88
|
-
* Emitted when the end value changes.
|
|
89
|
-
*/
|
|
90
|
-
'update:endValue': [date: DateValue | undefined];
|
|
91
|
-
/**
|
|
92
|
-
* Emitted when the open state changes.
|
|
93
|
-
*/
|
|
94
|
-
'update:open': [open: boolean];
|
|
95
|
-
};
|
|
96
|
-
/**
|
|
97
|
-
* Properties for the MonthRangePickerTrigger component.
|
|
98
|
-
*/
|
|
99
|
-
interface MonthRangePickerTriggerProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {}
|
|
100
|
-
/**
|
|
101
|
-
* Properties for the MonthRangePickerPopup component.
|
|
102
|
-
*/
|
|
103
|
-
interface MonthRangePickerPopupProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {}
|
|
104
|
-
/**
|
|
105
|
-
* Context for the MonthRangePickerRoot component.
|
|
106
|
-
*/
|
|
107
|
-
interface MonthRangePickerRootContext extends PropsToContext<MonthRangePickerRootProps, 'disabled' | 'readonly'> {
|
|
108
|
-
/**
|
|
109
|
-
* Locale used by the component context.
|
|
110
|
-
*/
|
|
111
|
-
locale: ComputedRef<string>;
|
|
112
|
-
/**
|
|
113
|
-
* Reading direction of the component.
|
|
114
|
-
*/
|
|
115
|
-
dir: ComputedRef<Direction>;
|
|
116
|
-
/**
|
|
117
|
-
* Current model value.
|
|
118
|
-
*/
|
|
119
|
-
modelValue: ShallowRef<DateRange>;
|
|
120
|
-
/**
|
|
121
|
-
* Placeholder used by the component context.
|
|
122
|
-
*/
|
|
123
|
-
placeholder: ShallowRef<DateValue>;
|
|
124
|
-
/**
|
|
125
|
-
* Whether the current value is invalid.
|
|
126
|
-
*/
|
|
127
|
-
isInvalid: ComputedRef<boolean>;
|
|
128
|
-
/**
|
|
129
|
-
* Formatter used by the component context.
|
|
130
|
-
*/
|
|
131
|
-
formatter: Formatter;
|
|
132
|
-
/**
|
|
133
|
-
* Whether the component is open.
|
|
134
|
-
*/
|
|
135
|
-
open: ShallowRef<boolean | undefined>;
|
|
136
|
-
/**
|
|
137
|
-
* Popup id used by the component context.
|
|
138
|
-
*/
|
|
139
|
-
popupId: string;
|
|
140
|
-
/**
|
|
141
|
-
* Display value used by the component context.
|
|
142
|
-
*/
|
|
143
|
-
displayValue: ComputedRef<string>;
|
|
144
|
-
/**
|
|
145
|
-
* Heading value used by the component context.
|
|
146
|
-
*/
|
|
147
|
-
headingValue: ComputedRef<string>;
|
|
148
|
-
/**
|
|
149
|
-
* Focused month used by the component context.
|
|
150
|
-
*/
|
|
151
|
-
focusedMonth: ShallowRef<DateValue>;
|
|
152
|
-
/**
|
|
153
|
-
* Hovered month used by the component context.
|
|
154
|
-
*/
|
|
155
|
-
hoveredMonth: ShallowRef<DateValue | undefined>;
|
|
156
|
-
/**
|
|
157
|
-
* Min value used by the component context.
|
|
158
|
-
*/
|
|
159
|
-
minValue: ComputedRef<DateValue | undefined>;
|
|
160
|
-
/**
|
|
161
|
-
* Max value used by the component context.
|
|
162
|
-
*/
|
|
163
|
-
maxValue: ComputedRef<DateValue | undefined>;
|
|
164
|
-
/**
|
|
165
|
-
* Whether the component has selected range.
|
|
166
|
-
*/
|
|
167
|
-
hasSelectedRange: ComputedRef<boolean>;
|
|
168
|
-
/**
|
|
169
|
-
* Callback invoked when the range changes.
|
|
170
|
-
*/
|
|
171
|
-
onRangeChange: (month: DateValue) => void;
|
|
172
|
-
/**
|
|
173
|
-
* Callback invoked when the placeholder changes.
|
|
174
|
-
*/
|
|
175
|
-
onPlaceholderChange: (date: DateValue) => void;
|
|
176
|
-
/**
|
|
177
|
-
* Whether the month is disabled.
|
|
178
|
-
*/
|
|
179
|
-
isMonthDisabled: (date: DateValue) => boolean;
|
|
180
|
-
/**
|
|
181
|
-
* Whether the month is selected.
|
|
182
|
-
*/
|
|
183
|
-
isMonthSelected: (date: DateValue) => boolean;
|
|
184
|
-
/**
|
|
185
|
-
* Whether the month is highlighted.
|
|
186
|
-
*/
|
|
187
|
-
isMonthHighlighted: (date: DateValue) => boolean;
|
|
188
|
-
/**
|
|
189
|
-
* Whether a range start.
|
|
190
|
-
*/
|
|
191
|
-
isRangeStart: (date: DateValue) => boolean;
|
|
192
|
-
/**
|
|
193
|
-
* Whether a range end.
|
|
194
|
-
*/
|
|
195
|
-
isRangeEnd: (date: DateValue) => boolean;
|
|
196
|
-
/**
|
|
197
|
-
* Set open used by the component context.
|
|
198
|
-
*/
|
|
199
|
-
setOpen: (value: boolean) => void;
|
|
200
|
-
/**
|
|
201
|
-
* Set focused month used by the component context.
|
|
202
|
-
*/
|
|
203
|
-
setFocusedMonth: (date: DateValue) => void;
|
|
204
|
-
/**
|
|
205
|
-
* Set hovered month used by the component context.
|
|
206
|
-
*/
|
|
207
|
-
setHoveredMonth: (date: DateValue | undefined) => void;
|
|
208
|
-
/**
|
|
209
|
-
* Prev page used by the component context.
|
|
210
|
-
*/
|
|
211
|
-
prevPage: () => void;
|
|
212
|
-
/**
|
|
213
|
-
* Next page used by the component context.
|
|
214
|
-
*/
|
|
215
|
-
nextPage: () => void;
|
|
216
|
-
/**
|
|
217
|
-
* Whether the previous button is disabled.
|
|
218
|
-
*/
|
|
219
|
-
isPrevButtonDisabled: () => boolean;
|
|
220
|
-
/**
|
|
221
|
-
* Whether the next button is disabled.
|
|
222
|
-
*/
|
|
223
|
-
isNextButtonDisabled: () => boolean;
|
|
224
|
-
}
|
|
225
|
-
/**
|
|
226
|
-
* Available UI slots for the MonthRangePicker component.
|
|
227
|
-
*/
|
|
228
|
-
type MonthRangePickerUiSlot = 'root' | 'trigger' | 'popup' | 'header' | 'heading' | 'prev' | 'next' | 'grid' | 'cellTrigger';
|
|
229
|
-
/**
|
|
230
|
-
* UI class overrides for the MonthRangePicker component.
|
|
231
|
-
*/
|
|
232
|
-
type MonthRangePickerUi = UiClass<MonthRangePickerUiSlot>;
|
|
233
|
-
//#endregion
|
|
234
|
-
export { MonthRangePickerPopupProps, MonthRangePickerRootContext, MonthRangePickerRootEmits, MonthRangePickerRootProps, MonthRangePickerTriggerProps, MonthRangePickerUi, MonthRangePickerUiSlot };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{useProgressRootContext as e,useProgressUi as t}from"./context.js";import{getProgressCircleDasharray as n,getProgressCircleDashoffset as r,getProgressCircleRadius as i,getValidProgressCircleStrokeWidth as a}from"./shared.js";import{Fragment as o,computed as s,createElementBlock as c,createElementVNode as l,defineComponent as u,mergeProps as d,normalizeClass as f,openBlock as p,renderSlot as m,unref as h,useAttrs as g}from"vue";const _=[`viewBox`],v=[`cx`,`cy`,`r`,`stroke-width`],y=[`cx`,`cy`,`r`,`stroke-width`,`stroke-dasharray`,`stroke-dashoffset`,`data-state`,`data-value`,`data-max`,`transform`],b=u({name:`ProgressCircle`,inheritAttrs:!1,__name:`progress-circle`,props:{strokeWidth:{default:8}},setup(u){let b=u,x=g(),S=t(`circle`),C=t(`track`),w=t(`indicator`),{max:T,modelValue:E,progressState:D,valuePercent:O}=e(`ProgressCircle`),k=s(()=>a(b.strokeWidth)),A=s(()=>i(k.value)),j=s(()=>2*Math.PI*A.value);return(e,t)=>(p(),c(o,null,[(p(),c(`svg`,d(h(x),{fill:`none`,class:h(S),viewBox:`0 0 ${h(100)} ${h(100)}`,"aria-hidden":`true`,"data-slot":`circle`}),[l(`circle`,{cx:h(50),cy:h(50),r:A.value,"stroke-width":k.value,class:f(h(C)),"data-slot":`track`},null,10,v),l(`circle`,{cx:h(50),cy:h(50),r:A.value,"stroke-width":k.value,"stroke-dasharray":h(n)(j.value,h(D)),"stroke-dashoffset":h(r)(h(O),j.value,h(D)),"data-state":h(D),"data-value":h(E)??void 0,"data-max":h(T),class:f(h(w)),"data-slot":`indicator`,"stroke-linecap":`round`,transform:`rotate(-90 ${h(50)} ${h(50)})`},null,10,y)],16,_)),m(e.$slots,`default`,{modelValue:h(E),max:h(T),progressState:h(D),valuePercent:h(O)})],64))}});export{b as default};
|
|
@@ -1,9 +0,0 @@
|
|
|
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 };
|
|
@@ -1 +0,0 @@
|
|
|
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};
|
|
@@ -1,16 +0,0 @@
|
|
|
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 };
|
|
@@ -1 +0,0 @@
|
|
|
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};
|
|
@@ -1 +0,0 @@
|
|
|
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};
|
|
@@ -1,33 +0,0 @@
|
|
|
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 };
|
|
@@ -1 +0,0 @@
|
|
|
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};
|
|
@@ -1 +0,0 @@
|
|
|
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};
|
|
@@ -1 +0,0 @@
|
|
|
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};
|
|
@@ -1 +0,0 @@
|
|
|
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};
|
|
@@ -1 +0,0 @@
|
|
|
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};
|
|
@@ -1 +0,0 @@
|
|
|
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};
|
|
@@ -1 +0,0 @@
|
|
|
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};
|
|
@@ -1 +0,0 @@
|
|
|
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};
|
|
@@ -1,21 +0,0 @@
|
|
|
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 };
|
|
@@ -1 +0,0 @@
|
|
|
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};
|
|
@@ -1,22 +0,0 @@
|
|
|
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 };
|
|
@@ -1 +0,0 @@
|
|
|
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};
|
|
@@ -1,24 +0,0 @@
|
|
|
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 };
|
|
@@ -1 +0,0 @@
|
|
|
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};
|
|
@@ -1,24 +0,0 @@
|
|
|
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 };
|
|
@@ -1 +0,0 @@
|
|
|
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};
|