@soybeanjs/headless 0.17.0 → 0.19.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/README.md +10 -5
- package/README.zh-CN.md +10 -5
- package/dist/components/_icon/types.d.ts +2 -11
- 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 +25 -24
- 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 +17 -16
- 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 +31 -24
- 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 +3 -3
- package/dist/components/anchor/context.js +1 -1
- package/dist/components/anchor/types.d.ts +24 -23
- package/dist/components/arrow/arrow.js +1 -1
- package/dist/components/arrow/types.d.ts +3 -2
- package/dist/components/aspect-ratio/aspect-ratio.js +1 -1
- package/dist/components/aspect-ratio/types.d.ts +3 -4
- 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 +27 -26
- package/dist/components/avatar/avatar-compact.js +1 -0
- package/dist/components/avatar/avatar-compact.vue.d.ts +20 -0
- 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/index.d.ts +6 -5
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/avatar/types.d.ts +43 -11
- 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 +7 -7
- package/dist/components/badge/badge-compact.js +1 -0
- package/dist/components/badge/badge-compact.vue.d.ts +21 -0
- package/dist/components/badge/badge-content.js +1 -1
- package/dist/components/badge/badge-root.js +1 -1
- package/dist/components/badge/index.d.ts +5 -4
- package/dist/components/badge/index.js +1 -1
- package/dist/components/badge/types.d.ts +30 -9
- 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.js +1 -1
- package/dist/components/bottom-sheet/context.js +1 -1
- package/dist/components/bottom-sheet/types.d.ts +16 -15
- 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 +29 -29
- package/dist/components/button/button.js +1 -1
- package/dist/components/button/button.vue.d.ts +2 -2
- package/dist/components/button/types.d.ts +6 -5
- 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 +147 -230
- 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 +26 -26
- package/dist/components/carousel/carousel-compact.js +1 -0
- package/dist/components/carousel/carousel-compact.vue.d.ts +23 -0
- package/dist/components/carousel/carousel-container.js +1 -0
- package/dist/components/carousel/carousel-container.vue.d.ts +18 -0
- package/dist/components/carousel/carousel-content.js +1 -1
- package/dist/components/carousel/carousel-control.js +1 -0
- package/dist/components/carousel/carousel-control.vue.d.ts +18 -0
- package/dist/components/carousel/carousel-item.js +1 -1
- package/dist/components/carousel/carousel-navigation.js +1 -0
- package/dist/components/carousel/carousel-navigation.vue.d.ts +18 -0
- package/dist/components/carousel/carousel-next.js +1 -1
- package/dist/components/carousel/carousel-next.vue.d.ts +2 -12
- package/dist/components/carousel/carousel-previous.js +1 -1
- package/dist/components/carousel/carousel-previous.vue.d.ts +2 -12
- package/dist/components/carousel/carousel-root.js +1 -1
- package/dist/components/carousel/carousel-root.vue.d.ts +6 -28
- package/dist/components/carousel/context.d.ts +0 -1
- package/dist/components/carousel/context.js +1 -1
- package/dist/components/carousel/hooks.js +1 -0
- package/dist/components/carousel/index.d.ts +11 -9
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/carousel/types.d.ts +125 -32
- 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 +1 -1
- package/dist/components/checkbox/context.js +1 -1
- package/dist/components/checkbox/types.d.ts +35 -33
- package/dist/components/clipboard/clipboard.js +1 -1
- package/dist/components/clipboard/clipboard.vue.d.ts +2 -2
- package/dist/components/clipboard/types.d.ts +6 -6
- 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 +12 -11
- 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 +1 -3
- 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 +31 -14
- 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 +25 -11
- 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 +16 -5
- 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 +135 -8
- 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 +1 -1
- 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 +30 -13
- 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 +59 -6
- 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 +3 -3
- 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 +71 -16
- 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 +3 -3
- package/dist/components/combobox/combobox-content-impl.js +1 -1
- package/dist/components/combobox/combobox-content.js +1 -1
- package/dist/components/combobox/combobox-content.vue.d.ts +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 +51 -50
- package/dist/components/command/command-compact.js +1 -1
- package/dist/components/command/command-compact.vue.d.ts +2 -2
- package/dist/components/command/types.d.ts +29 -29
- package/dist/components/config-provider/config-provider.js +13 -1
- package/dist/components/config-provider/config-provider.vue.d.ts +1 -1
- package/dist/components/config-provider/context.js +1 -1
- package/dist/components/config-provider/types.d.ts +10 -2
- 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/context-menu/types.d.ts +21 -21
- 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 +13 -21
- package/dist/components/date-field/index.d.ts +3 -3
- package/dist/components/date-field/types.d.ts +50 -150
- 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 +14 -277
- 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 +14 -29
- package/dist/components/date-range-field/index.d.ts +3 -3
- package/dist/components/date-range-field/types.d.ts +44 -191
- 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 +6 -6
- 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/types.d.ts +61 -54
- 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/dropdown-menu/types.d.ts +21 -21
- 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-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 +2 -4
- 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 +35 -34
- package/dist/components/empty/empty-compact.js +1 -0
- package/dist/components/empty/empty-compact.vue.d.ts +15 -0
- 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/index.d.ts +9 -8
- package/dist/components/empty/index.js +1 -1
- package/dist/components/empty/types.d.ts +79 -16
- package/dist/components/form/context.d.ts +3 -2
- package/dist/components/form/context.js +1 -1
- package/dist/components/form/core/types.d.ts +24 -24
- package/dist/components/form/core/use-form.js +1 -1
- package/dist/components/form/form-compact.js +1 -0
- package/dist/components/form/form-compact.vue.d.ts +21 -0
- 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 -0
- package/dist/components/form/form-field-array-compact.vue.d.ts +16 -0
- package/dist/components/form/form-field-base-compact.js +1 -0
- package/dist/components/form/form-field-base-compact.vue.d.ts +26 -0
- package/dist/components/form/form-field-compact.js +1 -0
- package/dist/components/form/form-field-compact.vue.d.ts +16 -0
- package/dist/components/form/form-field.js +1 -1
- package/dist/components/form/form-label.js +1 -1
- package/dist/components/form/index.d.ts +14 -10
- package/dist/components/form/index.js +1 -1
- package/dist/components/form/shared.js +1 -0
- package/dist/components/form/types.d.ts +134 -14
- package/dist/components/form/use-form.d.ts +8 -0
- package/dist/components/form/use-form.js +1 -0
- package/dist/components/hover-card/context.js +1 -1
- package/dist/components/hover-card/hover-card-compact.vue.d.ts +1 -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 +15 -15
- package/dist/components/input/index.d.ts +6 -4
- package/dist/components/input/index.js +1 -1
- package/dist/components/input/input-clear.js +1 -0
- package/dist/components/input/input-clear.vue.d.ts +22 -0
- package/dist/components/input/input-compact.js +1 -0
- package/dist/components/input/input-compact.vue.d.ts +21 -0
- 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 +83 -11
- 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 +3 -3
- package/dist/components/input-number/types.d.ts +93 -20
- package/dist/components/input-otp/input-otp-compact.js +1 -1
- package/dist/components/input-otp/input-otp-compact.vue.d.ts +2 -2
- 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 +2 -2
- package/dist/components/input-otp/types.d.ts +19 -18
- package/dist/components/kbd/kbd.js +1 -1
- package/dist/components/kbd/types.d.ts +4 -5
- package/dist/components/label/label.js +1 -1
- package/dist/components/label/types.d.ts +3 -4
- 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 +41 -40
- package/dist/components/link/link.js +1 -1
- package/dist/components/link/types.d.ts +6 -7
- 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 +13 -14
- 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/listbox-root.vue.d.ts +2 -2
- package/dist/components/listbox/types.d.ts +25 -24
- 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 +79 -80
- 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 +24 -26
- package/dist/components/navigation-menu/context.js +1 -1
- 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.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-root.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-sub-list.js +1 -1
- 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/types.d.ts +43 -42
- 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 +2 -2
- 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 +216 -17
- 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/types.d.ts +29 -27
- 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 +33 -35
- 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 +14 -13
- package/dist/components/portal/types.d.ts +1 -1
- package/dist/components/primitive/index.d.ts +2 -2
- package/dist/components/primitive/types.d.ts +5 -3
- 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/types.d.ts +75 -30
- package/dist/components/radio-group/context.js +1 -1
- package/dist/components/radio-group/radio-group-compact.vue.d.ts +2 -2
- 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 +3 -3
- package/dist/components/radio-group/types.d.ts +25 -23
- 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-item.js +1 -1
- package/dist/components/roving-focus/types.d.ts +6 -7
- 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 +56 -18
- 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/segment/types.d.ts +8 -8
- 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-content.vue.d.ts +2 -2
- 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 +67 -65
- 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 +30 -9
- 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 +3 -4
- 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 +0 -2
- 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 +65 -18
- 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 +16 -16
- 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 +29 -29
- 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 +58 -13
- 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 +82 -78
- 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 +25 -24
- package/dist/components/tag/tag.js +1 -1
- package/dist/components/tag/types.d.ts +4 -5
- 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 +81 -69
- 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 +104 -14
- 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 +37 -136
- 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 +6 -20
- package/dist/components/time-range-field/types.d.ts +44 -192
- 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 +1 -1
- package/dist/components/toast/types.d.ts +28 -27
- 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 +5 -10
- 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 +8 -10
- package/dist/components/toolbar/context.js +1 -1
- package/dist/components/toolbar/toolbar-button.js +1 -1
- package/dist/components/toolbar/toolbar-button.vue.d.ts +2 -2
- package/dist/components/toolbar/toolbar-link.js +1 -1
- 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 +16 -16
- 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 +67 -11
- 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 +18 -18
- 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 +255 -26
- package/dist/components/virtualizer/types.d.ts +13 -12
- 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 +5 -6
- 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 +476 -456
- 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 -939
- 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 +1 -1
- package/dist/types/index.d.ts +3 -2
- package/dist/types/vue.d.ts +4 -2
- package/package.json +16 -4
- 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/form/core/use-form.d.ts +0 -7
- 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/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Alignment.d.ts +0 -4
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Animations.d.ts +0 -11
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Axis.d.ts +0 -16
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Counter.d.ts +0 -9
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/DragHandler.d.ts +0 -13
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/DragTracker.d.ts +0 -4
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/EmblaCarousel.d.ts +0 -31
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Engine.d.ts +0 -67
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/EventHandler.d.ts +0 -29
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/EventStore.d.ts +0 -10
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Limit.d.ts +0 -13
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/NodeRects.d.ts +0 -11
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Options.d.ts +0 -43
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/OptionsHandler.d.ts +0 -11
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/PercentOfView.d.ts +0 -6
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Plugins.d.ts +0 -20
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/ResizeHandler.d.ts +0 -11
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/ScrollBody.d.ts +0 -14
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/ScrollBounds.d.ts +0 -8
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/ScrollContain.d.ts +0 -4
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/ScrollLooper.d.ts +0 -6
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/ScrollProgress.d.ts +0 -6
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/ScrollTarget.d.ts +0 -12
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/ScrollTo.d.ts +0 -7
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/SlideFocus.d.ts +0 -10
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/SlideLooper.d.ts +0 -19
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/SlideRegistry.d.ts +0 -6
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/SlidesHandler.d.ts +0 -11
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/SlidesInView.d.ts +0 -9
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/SlidesToScroll.d.ts +0 -7
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Translate.d.ts +0 -8
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Vector1d.d.ts +0 -9
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/utils.d.ts +0 -4
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { AsTag } from "../primitive/types.js";
|
|
2
|
-
import { ColorValue } from "../../shared/color.js";
|
|
3
|
-
import { ColorSwatchProps } from "./types.js";
|
|
4
|
-
import * as _$vue from "vue";
|
|
5
|
-
|
|
6
|
-
//#region src/components/color-swatch/color-swatch.vue.d.ts
|
|
7
|
-
declare var __VLS_8: {
|
|
8
|
-
color: string;
|
|
9
|
-
alpha: number;
|
|
10
|
-
};
|
|
11
|
-
type __VLS_Slots = {} & {
|
|
12
|
-
default?: (props: typeof __VLS_8) => any;
|
|
13
|
-
};
|
|
14
|
-
declare const __VLS_base: _$vue.DefineComponent<ColorSwatchProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<ColorSwatchProps> & Readonly<{}>, {
|
|
15
|
-
color: string | ColorValue;
|
|
16
|
-
as: AsTag | _$vue.Component;
|
|
17
|
-
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
18
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
19
|
-
declare const _default: typeof __VLS_export;
|
|
20
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
21
|
-
new (): {
|
|
22
|
-
$slots: S;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
//#endregion
|
|
26
|
-
export { _default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{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"../portal/portal.js";import r from"../popover/popover-positioner.js";import i from"../popover/popover-popup.js";import"../popover/index.js";import{useDatePickerRootContext as a}from"./context.js";import{createBlock as o,createVNode as s,defineComponent as c,guardReactiveProps as l,mergeProps as u,normalizeProps as d,openBlock as f,renderSlot as p,toHandlers as m,unref as h,withCtx as g}from"vue";const _=c({name:`DatePickerContent`,__name:`date-picker-content`,props:{popupProps:{},portalProps:{},placement:{},side:{},sideOffset:{},sideFlip:{type:Boolean},align:{},alignOffset:{},alignFlip:{type:Boolean},avoidCollisions:{type:Boolean,default:!0},collisionBoundary:{},collisionPadding:{},arrowPadding:{},hideShiftedArrow:{type:Boolean},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean,default:!0},reference:{},forceMount:{type:Boolean}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(c,{emit:_}){let v=c,y=_,b=t(v,[`popupProps`,`portalProps`]),x=e(y),{modelValue:S,open:C,placeholder:w,onDateChange:T,onPlaceholderChange:E}=a(`DatePickerContent`);return(e,t)=>(f(),o(h(n),d(l(c.portalProps)),{default:g(()=>[s(h(r),u(h(b),m(h(x))),{default:g(()=>[s(h(i),d(l(c.popupProps)),{default:g(()=>[p(e.$slots,`default`,{open:h(C),modelValue:h(S),placeholder:h(w),setDate:h(T),setPlaceholder:h(E)})]),_:3},16)]),_:3},16)]),_:3},16))}});export{_ as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{isNullish as e}from"../../shared/guard.js";import{getDefaultDate as t,isBefore as n}from"../../date/comparators.js";import{normalizeDateStep as r,normalizeHourCycle as i}from"../../date/utils.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 l}from"../config-provider/context.js";import{Primitive as u}from"../primitive/primitive.js";import"../primitive/index.js";import d from"../popover/popover-root.js";import{provideDatePickerRootContext as f,useDatePickerUi as p}from"./context.js";import{computed as m,createBlock as h,createVNode as g,defineComponent as _,isRef as v,mergeProps as y,openBlock as b,renderSlot as x,unref as S,useAttrs as C,watch as w,withCtx as T}from"vue";const E=_({name:`DatePickerRoot`,inheritAttrs:!1,__name:`date-picker-root`,props:{defaultValue:{default:void 0},defaultPlaceholder:{default:void 0},placeholder:{default:void 0},modelValue:{},hourCycle:{default:void 0},step:{default:void 0},granularity:{default:void 0},hideTimeZone:{type:Boolean,default:!1},maxValue:{},minValue:{},locale:{},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},isDateUnavailable:{type:Function,default:void 0},id:{},dir:{},asChild:{type:Boolean},as:{},name:{},required:{type:Boolean},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:!1},modal:{type:Boolean,default:!1}},emits:[`update:modelValue`,`update:placeholder`,`update:open`],setup(_,{emit:E}){let D=_,O=E,k=C(),A=p(`root`),[j,M]=s(),N=l(()=>D.locale),P=c(()=>D.dir),F=a(N.value,{hourCycle:i(D.hourCycle)}),I=o(()=>D.modelValue,e=>O(`update:modelValue`,e),D.defaultValue),L=t({defaultPlaceholder:D.placeholder,defaultValue:I.value,granularity:D.granularity,locale:D.locale}),R=o(()=>D.placeholder,e=>O(`update:placeholder`,e),D.defaultPlaceholder??L.copy()),z=o(()=>D.open,e=>{O(`update:open`,e??!1)},D.defaultOpen),B=m(()=>r(D)),V=m(()=>I.value?!!(D.isDateUnavailable?.(I.value)||D.minValue&&n(I.value,D.minValue)||D.maxValue&&n(D.maxValue,I.value)):!1),H=m(()=>D.minValue),U=m(()=>D.maxValue),W=e=>!!(D.disabled||D.isDateUnavailable?.(e)||H.value&&n(e,H.value)||U.value&&n(U.value,e)),G=e=>I.value?I.value.compare(e)===0:!1,K=m(()=>!e(I.value)),q=m(()=>I.value?W(I.value):!1),J=m(()=>!W(R.value));w(N,e=>{F.getLocale()!==e&&F.setLocale(e)}),w(I,t=>{!e(t)&&R.value.compare(t)!==0&&(R.value=t.copy())});let Y=e=>{I.value=e?.copy(),e&&(z.value=!1)},X=e=>{R.value=e.copy()};return f({locale:N,dir:P,modelValue:I,placeholder:R,isDateUnavailable:D.isDateUnavailable,isInvalid:V,disabled:m(()=>D.disabled),readonly:m(()=>D.readonly),formatter:F,hourCycle:D.hourCycle,step:B,isPlaceholderFocusable:J,hasSelectedDate:K,isSelectedDateDisabled:q,minValue:H,maxValue:U,onDateChange:Y,onPlaceholderChange:X,isDateDisabled:W,isDateSelected:G,open:z,setOpen(e){z.value=e}}),(e,t)=>(b(),h(d,{open:S(z),"onUpdate:open":t[0]||(t[0]=e=>v(z)?z.value=e:null),disabled:_.disabled,modal:_.modal},{default:T(()=>[g(S(u),y({ref:S(M)},S(k),{as:_.as,"as-child":_.asChild,class:S(A),"data-disabled":_.disabled?``:void 0,"data-invalid":V.value?``:void 0,"data-readonly":_.readonly?``:void 0,dir:S(P),"data-slot":`root`}),{default:T(()=>[x(e.$slots,`default`,{modelValue:S(I),placeholder:S(R),setDate:Y,setPlaceholder:X,open:!!S(z)})]),_:3},16,[`as`,`as-child`,`class`,`data-disabled`,`data-invalid`,`data-readonly`,`dir`])]),_:3},8,[`open`,`disabled`,`modal`]))}});export{E as default};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { DateStep, DateValue, Granularity, Matcher } from "../../date/types.js";
|
|
2
|
-
import { DatePickerRootProps, DatePickerRootSlots } from "./types.js";
|
|
3
|
-
import * as _$vue from "vue";
|
|
4
|
-
|
|
5
|
-
//#region src/components/date-picker/date-picker-root.vue.d.ts
|
|
6
|
-
type __VLS_Slots = DatePickerRootSlots;
|
|
7
|
-
declare const __VLS_base: _$vue.DefineComponent<DatePickerRootProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
8
|
-
"update:modelValue": (date: DateValue | undefined) => any;
|
|
9
|
-
"update:open": (open: boolean) => any;
|
|
10
|
-
"update:placeholder": (date: DateValue) => any;
|
|
11
|
-
}, string, _$vue.PublicProps, Readonly<DatePickerRootProps> & Readonly<{
|
|
12
|
-
"onUpdate:modelValue"?: ((date: DateValue | undefined) => any) | undefined;
|
|
13
|
-
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
14
|
-
"onUpdate:placeholder"?: ((date: DateValue) => any) | undefined;
|
|
15
|
-
}>, {
|
|
16
|
-
placeholder: DateValue;
|
|
17
|
-
disabled: boolean;
|
|
18
|
-
step: DateStep;
|
|
19
|
-
defaultValue: DateValue;
|
|
20
|
-
open: boolean;
|
|
21
|
-
defaultOpen: boolean;
|
|
22
|
-
readonly: boolean;
|
|
23
|
-
defaultPlaceholder: DateValue;
|
|
24
|
-
isDateUnavailable: Matcher;
|
|
25
|
-
modal: boolean;
|
|
26
|
-
hourCycle: 12 | 24;
|
|
27
|
-
granularity: Granularity;
|
|
28
|
-
hideTimeZone: boolean;
|
|
29
|
-
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
30
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
31
|
-
declare const _default: typeof __VLS_export;
|
|
32
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
33
|
-
new (): {
|
|
34
|
-
$slots: S;
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
//#endregion
|
|
38
|
-
export { _default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Primitive as e}from"../primitive/primitive.js";import"../primitive/index.js";import{useDateRangePickerRootContext as t,useDateRangePickerUi as n}from"./context.js";import{createBlock as r,createCommentVNode as i,defineComponent as a,normalizeClass as o,openBlock as s,renderSlot as c,unref as l,withCtx as u}from"vue";const d=a({name:`DateRangePickerPopup`,__name:`date-range-picker-popup`,props:{asChild:{type:Boolean},as:{default:`div`}},setup(a){let d=n(`popup`),{open:f}=t(`DateRangePickerPopup`);return(t,n)=>l(f)?(s(),r(l(e),{key:0,as:a.as,"as-child":a.asChild,"aria-label":`Date range picker`,class:o(l(d)),"data-slot":`popup`,role:`dialog`},{default:u(()=>[c(t.$slots,`default`)]),_:3},8,[`as`,`as-child`,`class`])):i(`v-if`,!0)}});export{d as default};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { AsTag } from "../primitive/types.js";
|
|
2
|
-
import { DateRangePickerPopupProps } from "./types.js";
|
|
3
|
-
import * as _$vue from "vue";
|
|
4
|
-
|
|
5
|
-
//#region src/components/date-range-picker/date-range-picker-popup.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<DateRangePickerPopupProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<DateRangePickerPopupProps> & 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{isNullish as e}from"../../shared/guard.js";import{getDefaultDate as t,isBefore as n}from"../../date/comparators.js";import{normalizeDateStep as r,normalizeHourCycle as i}from"../../date/utils.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 l}from"../config-provider/context.js";import{Primitive as u}from"../primitive/primitive.js";import"../primitive/index.js";import{provideDateRangePickerRootContext as d,useDateRangePickerUi as f}from"./context.js";import{computed as p,createBlock as m,defineComponent as h,normalizeClass as g,openBlock as _,renderSlot as v,shallowRef as y,unref as b,watch as x,withCtx as S}from"vue";const C=h({name:`DateRangePickerRoot`,__name:`date-range-picker-root`,props:{defaultValue:{default:void 0},defaultPlaceholder:{default:void 0},placeholder:{default:void 0},modelValue:{},hourCycle:{default:void 0},step:{default:void 0},granularity:{default:void 0},hideTimeZone:{type:Boolean,default:!1},maxValue:{},minValue:{},locale:{},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},isDateUnavailable:{type:Function,default:void 0},id:{},dir:{},defaultOpen:{type:Boolean,default:!1},open:{type:Boolean,default:void 0},modal:{type:Boolean,default:!1},asChild:{type:Boolean},as:{},name:{},required:{type:Boolean}},emits:[`update:modelValue`,`update:placeholder`,`update:startValue`,`update:endValue`,`update:open`],setup(h,{emit:C}){let w=h,T=C,E=f(`root`),[D,O]=s(),k=l(()=>w.locale),A=c(()=>w.dir),j=a(k.value,{hourCycle:i(w.hourCycle)}),M=o(()=>w.modelValue,e=>{T(`update:modelValue`,e),T(`update:startValue`,e.start),T(`update:endValue`,e.end)},w.defaultValue??{}),N=t({defaultPlaceholder:w.placeholder,defaultValue:M.value.start,granularity:w.granularity,locale:w.locale}),P=o(()=>w.placeholder,e=>T(`update:placeholder`,e),w.defaultPlaceholder??N.copy()),F=o(()=>w.open,e=>{T(`update:open`,e??!1)},w.defaultOpen),I=y(),L=p(()=>r(w)),R=p(()=>{let{start:e,end:t}=M.value;return!!(e&&t&&n(t,e)||e&&(w.isDateUnavailable?.(e)||w.minValue&&n(e,w.minValue)||w.maxValue&&n(w.maxValue,e))||t&&(w.isDateUnavailable?.(t)||w.minValue&&n(t,w.minValue)||w.maxValue&&n(w.maxValue,t)))}),z=p(()=>w.minValue),B=p(()=>w.maxValue),V=e=>!!(w.disabled||w.isDateUnavailable?.(e)||z.value&&n(e,z.value)||B.value&&n(B.value,e)),H=e=>{let{start:t,end:r}=M.value;return!t&&!r?!1:t&&t.compare(e)===0||r&&r.compare(e)===0?!0:t&&r?!n(e,t)&&!n(r,e):!1},U=e=>{let{start:t,end:r}=M.value;if(!I.value)return!1;if(t&&!r){let r=n(e,t)?e:t,i=n(e,t)?t:e;return!n(I.value,r)&&!n(i,I.value)}return!1},W=p(()=>!e(M.value.start)&&!e(M.value.end)),G=p(()=>M.value.start?V(M.value.start):!1),K=p(()=>M.value.end?V(M.value.end):!1),q=p(()=>!V(P.value));x(k,e=>{j.getLocale()!==e&&j.setLocale(e)}),x(()=>M.value.start,t=>{!e(t)&&P.value.compare(t)!==0&&(P.value=t.copy())});let J=e=>{M.value=e,e.start&&e.end&&(F.value=!1)},Y=e=>{P.value=e.copy()};return d({locale:k,dir:A,modelValue:M,placeholder:P,isDateUnavailable:w.isDateUnavailable,isInvalid:R,disabled:p(()=>w.disabled),readonly:p(()=>w.readonly),formatter:j,hourCycle:w.hourCycle,step:L,open:F,isPlaceholderFocusable:q,hasSelectedRange:W,isStartDateDisabled:G,isEndDateDisabled:K,minValue:z,maxValue:B,onRangeChange:J,onPlaceholderChange:Y,isDateDisabled:V,isDateSelected:H,isDateHovered:U,setOpen(e){F.value=e},setHoveredDate:e=>{I.value=e},hoveredDate:I}),(e,t)=>(_(),m(b(u),{ref:b(O),as:h.as,"as-child":h.asChild,class:g(b(E)),"data-disabled":h.disabled?``:void 0,"data-invalid":R.value?``:void 0,"data-readonly":h.readonly?``:void 0,dir:b(A),"data-slot":`root`},{default:S(()=>[v(e.$slots,`default`,{modelValue:b(M),open:!!b(F),placeholder:b(P),setPlaceholder:Y,setRange:J})]),_:3},8,[`as`,`as-child`,`class`,`data-disabled`,`data-invalid`,`data-readonly`,`dir`]))}});export{C as default};
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { DateRange, DateStep, DateValue, Granularity, Matcher } from "../../date/types.js";
|
|
2
|
-
import { DateRangePickerRootProps } from "./types.js";
|
|
3
|
-
import * as _$vue from "vue";
|
|
4
|
-
|
|
5
|
-
//#region src/components/date-range-picker/date-range-picker-root.vue.d.ts
|
|
6
|
-
type __VLS_Slots = {
|
|
7
|
-
default?: (props: {
|
|
8
|
-
modelValue: DateRange;
|
|
9
|
-
placeholder: DateValue;
|
|
10
|
-
setPlaceholder: (date: DateValue) => void;
|
|
11
|
-
setRange: (range: DateRange) => void;
|
|
12
|
-
open: boolean;
|
|
13
|
-
}) => any;
|
|
14
|
-
};
|
|
15
|
-
declare const __VLS_base: _$vue.DefineComponent<DateRangePickerRootProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
16
|
-
"update:modelValue": (range: DateRange) => any;
|
|
17
|
-
"update:open": (open: boolean) => any;
|
|
18
|
-
"update:placeholder": (date: DateValue) => any;
|
|
19
|
-
"update:startValue": (date: DateValue | undefined) => any;
|
|
20
|
-
"update:endValue": (date: DateValue | undefined) => any;
|
|
21
|
-
}, string, _$vue.PublicProps, Readonly<DateRangePickerRootProps> & Readonly<{
|
|
22
|
-
"onUpdate:modelValue"?: ((range: DateRange) => any) | undefined;
|
|
23
|
-
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
24
|
-
"onUpdate:placeholder"?: ((date: DateValue) => any) | undefined;
|
|
25
|
-
"onUpdate:startValue"?: ((date: DateValue | undefined) => any) | undefined;
|
|
26
|
-
"onUpdate:endValue"?: ((date: DateValue | undefined) => any) | undefined;
|
|
27
|
-
}>, {
|
|
28
|
-
placeholder: DateValue;
|
|
29
|
-
disabled: boolean;
|
|
30
|
-
step: DateStep;
|
|
31
|
-
defaultValue: DateRange;
|
|
32
|
-
open: boolean;
|
|
33
|
-
defaultOpen: boolean;
|
|
34
|
-
readonly: boolean;
|
|
35
|
-
defaultPlaceholder: DateValue;
|
|
36
|
-
isDateUnavailable: Matcher;
|
|
37
|
-
modal: boolean;
|
|
38
|
-
hourCycle: 12 | 24;
|
|
39
|
-
granularity: Granularity;
|
|
40
|
-
hideTimeZone: boolean;
|
|
41
|
-
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
42
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
43
|
-
declare const _default: typeof __VLS_export;
|
|
44
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
45
|
-
new (): {
|
|
46
|
-
$slots: S;
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
//#endregion
|
|
50
|
-
export { _default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Primitive as e}from"../primitive/primitive.js";import"../primitive/index.js";import{useDateRangePickerRootContext as t,useDateRangePickerUi 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:`DateRangePickerTrigger`,__name:`date-range-picker-trigger`,props:{asChild:{type:Boolean},as:{default:`button`}},setup(i){let u=n(`trigger`),{disabled:d,readonly:f,open:p,setOpen:m}=t(`DateRangePickerTrigger`),h=()=>{d.value||f.value||m(!p.value)};return(t,n)=>(o(),r(c(e),{as:i.as,"as-child":i.asChild,"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:h},{default:l(()=>[s(t.$slots,`default`)]),_:3},8,[`as`,`as-child`,`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 { DateRangePickerTriggerProps } from "./types.js";
|
|
3
|
-
import * as _$vue from "vue";
|
|
4
|
-
|
|
5
|
-
//#region src/components/date-range-picker/date-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<DateRangePickerTriggerProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<DateRangePickerTriggerProps> & 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,7 +0,0 @@
|
|
|
1
|
-
import { FormContext, FormValues, InferStandardSchemaInput, UseFormOptions } from "./types.js";
|
|
2
|
-
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
3
|
-
|
|
4
|
-
//#region src/components/form/core/use-form.d.ts
|
|
5
|
-
declare function useForm<S extends StandardSchemaV1<FormValues, FormValues>>(options: UseFormOptions<S>): Readonly<FormContext<InferStandardSchemaInput<S>>>;
|
|
6
|
-
//#endregion
|
|
7
|
-
export { useForm };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { UiClass } from "../../types/common.js";
|
|
2
|
-
import { UseUiConsumer } from "../../composables/use-ui-context.js";
|
|
3
|
-
import { MonthPickerUiSlot } from "./types.js";
|
|
4
|
-
import * as _$vue from "vue";
|
|
5
|
-
|
|
6
|
-
//#region src/components/month-picker/context.d.ts
|
|
7
|
-
declare const provideMonthPickerUi: (ui: _$vue.ComputedRef<Partial<UiClass<MonthPickerUiSlot>>>) => _$vue.ComputedRef<Partial<UiClass<MonthPickerUiSlot>>>, useMonthPickerUi: UseUiConsumer<MonthPickerUiSlot>;
|
|
8
|
-
//#endregion
|
|
9
|
-
export { provideMonthPickerUi };
|
|
@@ -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(`MonthPickerRoot`),[i,a]=t(`MonthPickerUi`);export{n as provideMonthPickerRootContext,i as provideMonthPickerUi,r as useMonthPickerRootContext,a as useMonthPickerUi};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { MonthPickerPopupProps, MonthPickerRootContext, MonthPickerRootEmits, MonthPickerRootProps, MonthPickerTriggerProps, MonthPickerUi, MonthPickerUiSlot } from "./types.js";
|
|
2
|
-
import { _default } from "./month-picker-popup.vue.js";
|
|
3
|
-
import { _default as _default$1 } from "./month-picker-root.vue.js";
|
|
4
|
-
import { _default as _default$2 } from "./month-picker-trigger.vue.js";
|
|
5
|
-
import { provideMonthPickerUi } from "./context.js";
|
|
6
|
-
export { _default as MonthPickerPopup, type MonthPickerPopupProps, _default$1 as MonthPickerRoot, type MonthPickerRootContext, type MonthPickerRootEmits, type MonthPickerRootProps, _default$2 as MonthPickerTrigger, type MonthPickerTriggerProps, type MonthPickerUi, type MonthPickerUiSlot, provideMonthPickerUi };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{provideMonthPickerUi as e}from"./context.js";import t from"./month-picker-popup.js";import n from"./month-picker-root.js";import r from"./month-picker-trigger.js";export{t as MonthPickerPopup,n as MonthPickerRoot,r as MonthPickerTrigger,e as provideMonthPickerUi};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{compareYearMonth 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{useMonthPickerRootContext as i,useMonthPickerUi as a}from"./context.js";import{Fragment as ee,computed as te,createBlock as o,createCommentVNode as s,createElementBlock as c,createElementVNode as l,createTextVNode as u,defineComponent as d,nextTick as f,normalizeClass as p,openBlock as m,renderList as h,renderSlot as g,toDisplayString as _,unref as v,useId as ne,watch as y,withCtx as b}from"vue";const re=[`data-disabled`,`disabled`],x=[`id`],S=[`data-disabled`,`disabled`],C=[`aria-label`,`aria-pressed`,`data-disabled`,`data-focused`,`data-month-value`,`data-selected`,`disabled`,`tabindex`,`onClick`,`onFocus`,`onKeydown`],w=d({name:`MonthPickerPopup`,__name:`month-picker-popup`,props:{asChild:{type:Boolean},as:{default:`div`}},setup(d){let w=a(`popup`),T=a(`header`),E=a(`heading`),D=a(`prev`),O=a(`next`),k=a(`grid`),ie=a(`cellTrigger`),{placeholder:ae,isMonthDisabled:A,setFocusedMonth:j,isNextButtonDisabled:M,nextPage:N,isPrevButtonDisabled:P,prevPage:F,focusedMonth:I,onMonthChange:L,dir:R,open:z,popupId:B,headingValue:V,formatter:H,isMonthSelected:U}=i(`MonthPickerPopup`),[W,G]=n(),K=ne(),q=te(()=>Array.from({length:12},(e,t)=>ae.value.set({month:t+1,day:1}))),J=e=>{(W.value?.querySelector(`[data-month-value='${e.toString()}']`))?.focus()},Y=(e,t)=>{let n=e;for(;n>=0&&n<q.value.length;){let e=q.value[n];if(!A(e)){j(e),f(()=>{J(e)});return}n+=t}},X=(e,t)=>{if(t>0){if(M())return;N()}else{if(P())return;F()}f(()=>{Y(e,t)})},Z=(e,t)=>{let n=e+t,r=t>=0?1:-1;if(n>=0&&n<q.value.length){Y(n,r);return}X(n<0?q.value.length+n:n-q.value.length,r)},Q=()=>{P()||(F(),f(()=>{J(I.value)}))},$=()=>{M()||(N(),f(()=>{J(I.value)}))},oe=e=>{j(e)},se=e=>{A(e)||L(e)},ce=(e,t,n)=>{if(A(e))return;let r=R.value===`rtl`?-1:1;switch(n.key){case`ArrowRight`:n.preventDefault(),Z(t,r);break;case`ArrowLeft`:n.preventDefault(),Z(t,-r);break;case`ArrowDown`:n.preventDefault(),Z(t,3);break;case`ArrowUp`:n.preventDefault(),Z(t,-3);break;case`Home`:n.preventDefault(),Y(t-t%3,1);break;case`End`:n.preventDefault(),Y(t+(2-t%3),-1);break;case`PageUp`:n.preventDefault(),Q();break;case`PageDown`:n.preventDefault(),$();break;case`Enter`:case` `:n.preventDefault(),L(e);break;default:break}};return y(()=>z.value,e=>{e&&f(()=>{J(I.value)})}),(n,i)=>v(z)?(m(),o(v(r),{key:0,id:v(B),ref:v(G),as:d.as,"as-child":d.asChild,"aria-labelledby":v(K),class:p(v(w)),"data-slot":`popup`,role:`dialog`},{default:b(()=>[l(`div`,{class:p(v(T)),"data-slot":`header`},[l(`button`,{"aria-label":`Previous year`,class:p(v(D)),"data-disabled":v(P)()?``:void 0,"data-slot":`prev`,disabled:v(P)(),type:`button`,onClick:Q},[g(n.$slots,`prev`,{disabled:v(P)()},()=>[i[0]||(i[0]=u(`Prev`,-1))])],10,re),l(`div`,{id:v(K),class:p(v(E)),"data-slot":`heading`},[g(n.$slots,`heading`,{headingValue:v(V)},()=>[u(_(v(V)),1)])],10,x),l(`button`,{"aria-label":`Next year`,class:p(v(O)),"data-disabled":v(M)()?``:void 0,"data-slot":`next`,disabled:v(M)(),type:`button`,onClick:$},[g(n.$slots,`next`,{disabled:v(M)()},()=>[i[1]||(i[1]=u(`Next`,-1))])],10,S)],2),l(`div`,{class:p(v(k)),"data-slot":`grid`},[(m(!0),c(ee,null,h(q.value,(r,i)=>(m(),c(`button`,{key:r.toString(),"aria-label":v(H).fullMonthAndYear(v(t)(r)),"aria-pressed":v(U)(r)?!0:void 0,class:p(v(ie)),"data-disabled":v(A)(r)?``:void 0,"data-focused":v(e)(r,v(I))===0?``:void 0,"data-month-value":r.toString(),"data-selected":v(U)(r)?``:void 0,"data-slot":`cell-trigger`,disabled:v(A)(r),tabindex:v(e)(r,v(I))===0&&!v(A)(r)?0:-1,type:`button`,onClick:e=>se(r),onFocus:e=>oe(r),onKeydown:e=>ce(r,i,e)},[g(n.$slots,`month`,{date:r,disabled:v(A)(r),focused:v(e)(r,v(I))===0,label:v(H).custom(v(t)(r),{month:`short`}),selected:v(U)(r)},()=>[u(_(v(H).custom(v(t)(r),{month:`short`})),1)])],42,C))),128))],2)]),_:3},8,[`id`,`as`,`as-child`,`aria-labelledby`,`class`])):s(`v-if`,!0)}});export{w as default};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { AsTag } from "../primitive/types.js";
|
|
2
|
-
import { MonthPickerPopupProps } from "./types.js";
|
|
3
|
-
import * as _$vue from "vue";
|
|
4
|
-
import { DateValue } from "@internationalized/date";
|
|
5
|
-
|
|
6
|
-
//#region src/components/month-picker/month-picker-popup.vue.d.ts
|
|
7
|
-
type __VLS_Slots = {
|
|
8
|
-
heading?: (props: {
|
|
9
|
-
headingValue: string;
|
|
10
|
-
}) => any;
|
|
11
|
-
prev?: (props: {
|
|
12
|
-
disabled: boolean;
|
|
13
|
-
}) => any;
|
|
14
|
-
next?: (props: {
|
|
15
|
-
disabled: boolean;
|
|
16
|
-
}) => any;
|
|
17
|
-
month?: (props: {
|
|
18
|
-
date: DateValue;
|
|
19
|
-
label: string;
|
|
20
|
-
disabled: boolean;
|
|
21
|
-
focused: boolean;
|
|
22
|
-
selected: boolean;
|
|
23
|
-
}) => any;
|
|
24
|
-
};
|
|
25
|
-
declare const __VLS_base: _$vue.DefineComponent<MonthPickerPopupProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<MonthPickerPopupProps> & Readonly<{}>, {
|
|
26
|
-
as: AsTag | _$vue.Component;
|
|
27
|
-
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
28
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
29
|
-
declare const _default: typeof __VLS_export;
|
|
30
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
31
|
-
new (): {
|
|
32
|
-
$slots: S;
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
//#endregion
|
|
36
|
-
export { _default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{compareYearMonth as e,getDefaultDate as t,toDate as n}from"../../date/comparators.js";import{useDateFormatter as r}from"../../date/formatter.js";import"../../date/index.js";import{useControllableState as i}from"../../composables/use-controllable-state.js";import"../../composables/index.js";import{useDirection as a,useLocale as o}from"../config-provider/context.js";import{Primitive as s}from"../primitive/primitive.js";import"../primitive/index.js";import{provideMonthPickerRootContext as c,useMonthPickerUi as l}from"./context.js";import{computed as u,createBlock as d,defineComponent as f,normalizeClass as p,openBlock as m,renderSlot as h,shallowRef as g,unref as _,useId as v,watch as y,withCtx as b}from"vue";const x=f({name:`MonthPickerRoot`,__name:`month-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:open`],setup(f,{emit:x}){let S=f,C=x,w=l(`root`),T=v(),E=o(()=>S.locale),D=a(()=>S.dir),O=r(E.value),k=i(()=>S.modelValue,e=>C(`update:modelValue`,e),S.defaultValue),A=t({defaultPlaceholder:S.placeholder,defaultValue:k.value,locale:S.locale}).set({day:1}),j=i(()=>S.placeholder,e=>C(`update:placeholder`,e),S.defaultPlaceholder?.set({day:1})??A.copy()),M=i(()=>S.open,e=>C(`update:open`,e??!1),S.defaultOpen),N=g((k.value??j.value).set({day:1})),P=u(()=>S.minValue?.set({day:1})),F=u(()=>S.maxValue?.set({day:1})),I=t=>!!(S.disabled||P.value&&e(t,P.value)<0||F.value&&e(t,F.value)>0),L=t=>k.value?e(t,k.value.set({day:1}))===0:!1,R=u(()=>k.value?I(k.value.set({day:1})):!1),z=u(()=>k.value?O.fullMonthAndYear(n(k.value.set({day:1}))):``),B=u(()=>O.fullYear(n(j.value.set({day:1})))),V=e=>{let t=e.set({day:1});j.value=t.copy(),N.value=t.copy()};return y(E,e=>{O.getLocale()!==e&&O.setLocale(e)}),y(k,t=>{if(!t){N.value=j.value.set({day:1}).copy();return}let n=t.set({day:1});e(j.value,n)!==0&&(j.value=n.copy()),N.value=n.copy()}),c({locale:E,dir:D,modelValue:k,placeholder:j,isInvalid:R,formatter:O,open:M,popupId:T,displayValue:z,headingValue:B,focusedMonth:N,minValue:P,maxValue:F,onMonthChange:e=>{let t=e.set({day:1});S.readonly||I(t)||(k.value=t.copy(),V(t),M.value=!1)},onPlaceholderChange:V,isMonthDisabled:I,isMonthSelected:L,setOpen(e){M.value=e},setFocusedMonth:e=>{N.value=e.set({day:1}).copy()},prevPage:()=>{V(j.value.subtract({years:1}))},nextPage:()=>{V(j.value.add({years:1}))},isPrevButtonDisabled:()=>S.disabled?!0:P.value?e(j.value.subtract({years:1}).set({month:12,day:1}),P.value)<0:!1,isNextButtonDisabled:()=>S.disabled?!0:F.value?e(j.value.add({years:1}).set({month:1,day:1}),F.value)>0:!1,disabled:u(()=>S.disabled),readonly:u(()=>S.readonly)}),(e,t)=>(m(),d(_(s),{as:f.as,"as-child":f.asChild,class:p(_(w)),"data-disabled":f.disabled?``:void 0,"data-invalid":R.value?``:void 0,"data-readonly":f.readonly?``:void 0,dir:_(D),"data-slot":`root`},{default:b(()=>[h(e.$slots,`default`,{displayValue:z.value,modelValue:_(k),open:!!_(M)})]),_:3},8,[`as`,`as-child`,`class`,`data-disabled`,`data-invalid`,`data-readonly`,`dir`]))}});export{x as default};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { MonthPickerRootProps } from "./types.js";
|
|
2
|
-
import * as _$vue from "vue";
|
|
3
|
-
import { DateValue } from "@internationalized/date";
|
|
4
|
-
|
|
5
|
-
//#region src/components/month-picker/month-picker-root.vue.d.ts
|
|
6
|
-
type __VLS_Slots = {
|
|
7
|
-
default?: (props: {
|
|
8
|
-
modelValue: DateValue | undefined;
|
|
9
|
-
displayValue: string;
|
|
10
|
-
open: boolean;
|
|
11
|
-
}) => any;
|
|
12
|
-
};
|
|
13
|
-
declare const __VLS_base: _$vue.DefineComponent<MonthPickerRootProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
14
|
-
"update:modelValue": (date: DateValue | undefined) => any;
|
|
15
|
-
"update:open": (open: boolean) => any;
|
|
16
|
-
"update:placeholder": (date: DateValue) => any;
|
|
17
|
-
}, string, _$vue.PublicProps, Readonly<MonthPickerRootProps> & Readonly<{
|
|
18
|
-
"onUpdate:modelValue"?: ((date: DateValue | undefined) => any) | undefined;
|
|
19
|
-
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
20
|
-
"onUpdate:placeholder"?: ((date: DateValue) => any) | undefined;
|
|
21
|
-
}>, {
|
|
22
|
-
placeholder: DateValue;
|
|
23
|
-
disabled: boolean;
|
|
24
|
-
defaultValue: DateValue;
|
|
25
|
-
open: boolean;
|
|
26
|
-
defaultOpen: boolean;
|
|
27
|
-
readonly: boolean;
|
|
28
|
-
defaultPlaceholder: DateValue;
|
|
29
|
-
modal: boolean;
|
|
30
|
-
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
31
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
32
|
-
declare const _default: typeof __VLS_export;
|
|
33
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
34
|
-
new (): {
|
|
35
|
-
$slots: S;
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
//#endregion
|
|
39
|
-
export { _default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Primitive as e}from"../primitive/primitive.js";import"../primitive/index.js";import{useMonthPickerRootContext as t,useMonthPickerUi 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:`MonthPickerTrigger`,__name:`month-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(`MonthPickerTrigger`),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 { MonthPickerTriggerProps } from "./types.js";
|
|
3
|
-
import * as _$vue from "vue";
|
|
4
|
-
|
|
5
|
-
//#region src/components/month-picker/month-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<MonthPickerTriggerProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<MonthPickerTriggerProps> & 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,202 +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 { Formatter } from "../../date/formatter.js";
|
|
6
|
-
import { ComputedRef, HTMLAttributes, ShallowRef } from "vue";
|
|
7
|
-
import { DateValue } from "@internationalized/date";
|
|
8
|
-
|
|
9
|
-
//#region src/components/month-picker/types.d.ts
|
|
10
|
-
/**
|
|
11
|
-
* Props for the month picker root component.
|
|
12
|
-
*/
|
|
13
|
-
interface MonthPickerRootProps extends PrimitiveProps, FormFieldCommonProps, /** @vue-ignore */Omit<HTMLAttributes, 'placeholder'> {
|
|
14
|
-
/**
|
|
15
|
-
* Default value.
|
|
16
|
-
*/
|
|
17
|
-
defaultValue?: DateValue;
|
|
18
|
-
/**
|
|
19
|
-
* Default placeholder.
|
|
20
|
-
*/
|
|
21
|
-
defaultPlaceholder?: DateValue;
|
|
22
|
-
/**
|
|
23
|
-
* Placeholder.
|
|
24
|
-
*/
|
|
25
|
-
placeholder?: DateValue;
|
|
26
|
-
/**
|
|
27
|
-
* Current model value.
|
|
28
|
-
*/
|
|
29
|
-
modelValue?: DateValue;
|
|
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
|
-
* Emits for the month picker root component.
|
|
73
|
-
*/
|
|
74
|
-
type MonthPickerRootEmits = {
|
|
75
|
-
/**
|
|
76
|
-
* Emitted when the model value changes.
|
|
77
|
-
*/
|
|
78
|
-
'update:modelValue': [date: DateValue | undefined];
|
|
79
|
-
/**
|
|
80
|
-
* Emitted when the placeholder value changes.
|
|
81
|
-
*/
|
|
82
|
-
'update:placeholder': [date: DateValue];
|
|
83
|
-
/**
|
|
84
|
-
* Emitted when the open state changes.
|
|
85
|
-
*/
|
|
86
|
-
'update:open': [open: boolean];
|
|
87
|
-
};
|
|
88
|
-
/**
|
|
89
|
-
* Props for the month picker trigger component.
|
|
90
|
-
*/
|
|
91
|
-
interface MonthPickerTriggerProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {}
|
|
92
|
-
/**
|
|
93
|
-
* Props for the month picker popup component.
|
|
94
|
-
*/
|
|
95
|
-
interface MonthPickerPopupProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {}
|
|
96
|
-
/**
|
|
97
|
-
* Context for the month picker root component.
|
|
98
|
-
*/
|
|
99
|
-
interface MonthPickerRootContext extends PropsToContext<MonthPickerRootProps, 'disabled' | 'readonly'> {
|
|
100
|
-
/**
|
|
101
|
-
* Locale used by the component context.
|
|
102
|
-
*/
|
|
103
|
-
locale: ComputedRef<string>;
|
|
104
|
-
/**
|
|
105
|
-
* Reading direction of the component.
|
|
106
|
-
*/
|
|
107
|
-
dir: ComputedRef<Direction>;
|
|
108
|
-
/**
|
|
109
|
-
* Current model value.
|
|
110
|
-
*/
|
|
111
|
-
modelValue: ShallowRef<DateValue | undefined>;
|
|
112
|
-
/**
|
|
113
|
-
* Placeholder used by the component context.
|
|
114
|
-
*/
|
|
115
|
-
placeholder: ShallowRef<DateValue>;
|
|
116
|
-
/**
|
|
117
|
-
* Whether the current value is invalid.
|
|
118
|
-
*/
|
|
119
|
-
isInvalid: ComputedRef<boolean>;
|
|
120
|
-
/**
|
|
121
|
-
* Formatter used by the component context.
|
|
122
|
-
*/
|
|
123
|
-
formatter: Formatter;
|
|
124
|
-
/**
|
|
125
|
-
* Whether the component is open.
|
|
126
|
-
*/
|
|
127
|
-
open: ShallowRef<boolean | undefined>;
|
|
128
|
-
/**
|
|
129
|
-
* Popup id used by the component context.
|
|
130
|
-
*/
|
|
131
|
-
popupId: string;
|
|
132
|
-
/**
|
|
133
|
-
* Display value used by the component context.
|
|
134
|
-
*/
|
|
135
|
-
displayValue: ComputedRef<string>;
|
|
136
|
-
/**
|
|
137
|
-
* Heading value used by the component context.
|
|
138
|
-
*/
|
|
139
|
-
headingValue: ComputedRef<string>;
|
|
140
|
-
/**
|
|
141
|
-
* Focused month used by the component context.
|
|
142
|
-
*/
|
|
143
|
-
focusedMonth: ShallowRef<DateValue>;
|
|
144
|
-
/**
|
|
145
|
-
* Min value used by the component context.
|
|
146
|
-
*/
|
|
147
|
-
minValue: ComputedRef<DateValue | undefined>;
|
|
148
|
-
/**
|
|
149
|
-
* Max value used by the component context.
|
|
150
|
-
*/
|
|
151
|
-
maxValue: ComputedRef<DateValue | undefined>;
|
|
152
|
-
/**
|
|
153
|
-
* Callback invoked when the month changes.
|
|
154
|
-
*/
|
|
155
|
-
onMonthChange: (date: DateValue) => void;
|
|
156
|
-
/**
|
|
157
|
-
* Callback invoked when the placeholder changes.
|
|
158
|
-
*/
|
|
159
|
-
onPlaceholderChange: (date: DateValue) => void;
|
|
160
|
-
/**
|
|
161
|
-
* Whether the month is disabled.
|
|
162
|
-
*/
|
|
163
|
-
isMonthDisabled: (date: DateValue) => boolean;
|
|
164
|
-
/**
|
|
165
|
-
* Whether the month is selected.
|
|
166
|
-
*/
|
|
167
|
-
isMonthSelected: (date: DateValue) => boolean;
|
|
168
|
-
/**
|
|
169
|
-
* Set open used by the component context.
|
|
170
|
-
*/
|
|
171
|
-
setOpen: (value: boolean) => void;
|
|
172
|
-
/**
|
|
173
|
-
* Set focused month used by the component context.
|
|
174
|
-
*/
|
|
175
|
-
setFocusedMonth: (date: DateValue) => void;
|
|
176
|
-
/**
|
|
177
|
-
* Prev page used by the component context.
|
|
178
|
-
*/
|
|
179
|
-
prevPage: () => void;
|
|
180
|
-
/**
|
|
181
|
-
* Next page used by the component context.
|
|
182
|
-
*/
|
|
183
|
-
nextPage: () => void;
|
|
184
|
-
/**
|
|
185
|
-
* Whether the previous button is disabled.
|
|
186
|
-
*/
|
|
187
|
-
isPrevButtonDisabled: () => boolean;
|
|
188
|
-
/**
|
|
189
|
-
* Whether the next button is disabled.
|
|
190
|
-
*/
|
|
191
|
-
isNextButtonDisabled: () => boolean;
|
|
192
|
-
}
|
|
193
|
-
/**
|
|
194
|
-
* Available UI slots for the month picker component.
|
|
195
|
-
*/
|
|
196
|
-
type MonthPickerUiSlot = 'root' | 'trigger' | 'popup' | 'header' | 'heading' | 'prev' | 'next' | 'grid' | 'cellTrigger';
|
|
197
|
-
/**
|
|
198
|
-
* UI class overrides for the month picker component.
|
|
199
|
-
*/
|
|
200
|
-
type MonthPickerUi = UiClass<MonthPickerUiSlot>;
|
|
201
|
-
//#endregion
|
|
202
|
-
export { MonthPickerPopupProps, MonthPickerRootContext, MonthPickerRootEmits, MonthPickerRootProps, MonthPickerTriggerProps, MonthPickerUi, MonthPickerUiSlot };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { UiClass } from "../../types/common.js";
|
|
2
|
-
import { UseUiConsumer } from "../../composables/use-ui-context.js";
|
|
3
|
-
import { MonthRangePickerUiSlot } from "./types.js";
|
|
4
|
-
import * as _$vue from "vue";
|
|
5
|
-
|
|
6
|
-
//#region src/components/month-range-picker/context.d.ts
|
|
7
|
-
declare const provideMonthRangePickerUi: (ui: _$vue.ComputedRef<Partial<UiClass<MonthRangePickerUiSlot>>>) => _$vue.ComputedRef<Partial<UiClass<MonthRangePickerUiSlot>>>, useMonthRangePickerUi: UseUiConsumer<MonthRangePickerUiSlot>;
|
|
8
|
-
//#endregion
|
|
9
|
-
export { provideMonthRangePickerUi };
|
|
@@ -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(`MonthRangePickerRoot`),[i,a]=t(`MonthRangePickerUi`);export{n as provideMonthRangePickerRootContext,i as provideMonthRangePickerUi,r as useMonthRangePickerRootContext,a as useMonthRangePickerUi};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { MonthRangePickerPopupProps, MonthRangePickerRootContext, MonthRangePickerRootEmits, MonthRangePickerRootProps, MonthRangePickerTriggerProps, MonthRangePickerUi, MonthRangePickerUiSlot } from "./types.js";
|
|
2
|
-
import { _default } from "./month-range-picker-popup.vue.js";
|
|
3
|
-
import { _default as _default$1 } from "./month-range-picker-root.vue.js";
|
|
4
|
-
import { _default as _default$2 } from "./month-range-picker-trigger.vue.js";
|
|
5
|
-
import { provideMonthRangePickerUi } from "./context.js";
|
|
6
|
-
export { _default as MonthRangePickerPopup, type MonthRangePickerPopupProps, _default$1 as MonthRangePickerRoot, type MonthRangePickerRootContext, type MonthRangePickerRootEmits, type MonthRangePickerRootProps, _default$2 as MonthRangePickerTrigger, type MonthRangePickerTriggerProps, type MonthRangePickerUi, type MonthRangePickerUiSlot, provideMonthRangePickerUi };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{provideMonthRangePickerUi as e}from"./context.js";import t from"./month-range-picker-popup.js";import n from"./month-range-picker-root.js";import r from"./month-range-picker-trigger.js";export{t as MonthRangePickerPopup,n as MonthRangePickerRoot,r as MonthRangePickerTrigger,e as provideMonthRangePickerUi};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{compareYearMonth 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{useMonthRangePickerRootContext as i,useMonthRangePickerUi as a}from"./context.js";import{Fragment as ee,computed as te,createBlock as ne,createCommentVNode as o,createElementBlock as s,createElementVNode as c,createTextVNode as l,defineComponent as u,nextTick as d,normalizeClass as f,openBlock as p,renderList as re,renderSlot as m,toDisplayString as h,unref as g,useId as ie,watch as ae,withCtx as oe}from"vue";const se=[`data-disabled`,`disabled`],ce=[`id`],_=[`data-disabled`,`disabled`],v=[`aria-label`,`aria-pressed`,`data-disabled`,`data-focused`,`data-highlighted`,`data-month-value`,`data-range-end`,`data-range-start`,`data-selected`,`disabled`,`tabindex`,`onClick`,`onFocus`,`onKeydown`,`onMouseenter`],y=u({name:`MonthRangePickerPopup`,__name:`month-range-picker-popup`,props:{asChild:{type:Boolean},as:{default:`div`}},setup(u){let y=a(`popup`),b=a(`header`),x=a(`heading`),S=a(`prev`),C=a(`next`),w=a(`grid`),T=a(`cellTrigger`),{dir:E,formatter:D,focusedMonth:O,headingValue:k,isMonthDisabled:A,isMonthHighlighted:j,isMonthSelected:M,isNextButtonDisabled:N,isPrevButtonDisabled:P,isRangeEnd:F,isRangeStart:I,modelValue:L,nextPage:R,onRangeChange:z,open:B,placeholder:V,popupId:H,prevPage:U,setFocusedMonth:W,setHoveredMonth:G}=i(`MonthRangePickerPopup`),[le,ue]=n(),K=ie(),q=te(()=>Array.from({length:12},(e,t)=>V.value.set({month:t+1,day:1}))),J=e=>{(le.value?.querySelector(`[data-month-value='${e.toString()}']`))?.focus()},Y=(e,t)=>{let n=e;for(;n>=0&&n<q.value.length;){let e=q.value[n];if(!A(e))return W(e),d(()=>{J(e)}),!0;n+=t}return!1},X=t=>{let n=q.value.findIndex(n=>e(n,t)===0),r=n===-1?0:n;Y(r,1)||Y(r,-1)},de=(e,t)=>{if(t>0){if(N())return;R()}else{if(P())return;U()}d(()=>{Y(e,t)})},Z=(e,t)=>{let n=e+t,r=t>=0?1:-1;if(n>=0&&n<q.value.length){Y(n,r);return}de(n<0?q.value.length+n:n-q.value.length,r)},Q=()=>{P()||(U(),d(()=>{X(O.value)}))},$=()=>{N()||(R(),d(()=>{X(O.value)}))},fe=e=>{W(e)},pe=e=>{L.value.start&&!L.value.end&&!A(e)&&G(e)},me=e=>{A(e)||z(e)},he=(e,t,n)=>{if(A(e))return;let r=E.value===`rtl`?-1:1;switch(n.key){case`ArrowRight`:n.preventDefault(),Z(t,r);break;case`ArrowLeft`:n.preventDefault(),Z(t,-r);break;case`ArrowDown`:n.preventDefault(),Z(t,3);break;case`ArrowUp`:n.preventDefault(),Z(t,-3);break;case`Home`:n.preventDefault(),Y(t-t%3,1);break;case`End`:n.preventDefault(),Y(t+(2-t%3),-1);break;case`PageUp`:n.preventDefault(),Q();break;case`PageDown`:n.preventDefault(),$();break;case`Enter`:case` `:n.preventDefault(),z(e);break;default:break}};return ae(()=>B.value,e=>{e&&d(()=>{X(O.value)})}),(n,i)=>g(B)?(p(),ne(g(r),{key:0,id:g(H),ref:g(ue),as:u.as,"as-child":u.asChild,"aria-labelledby":g(K),class:f(g(y)),"data-slot":`popup`,role:`dialog`,onMouseleave:i[0]||(i[0]=e=>g(G)(void 0))},{default:oe(()=>[c(`div`,{class:f(g(b)),"data-slot":`header`},[c(`button`,{"aria-label":`Previous year`,class:f(g(S)),"data-disabled":g(P)()?``:void 0,"data-slot":`prev`,disabled:g(P)(),type:`button`,onClick:Q},[m(n.$slots,`prev`,{disabled:g(P)()},()=>[i[1]||(i[1]=l(`Prev`,-1))])],10,se),c(`div`,{id:g(K),class:f(g(x)),"data-slot":`heading`},[m(n.$slots,`heading`,{headingValue:g(k)},()=>[l(h(g(k)),1)])],10,ce),c(`button`,{"aria-label":`Next year`,class:f(g(C)),"data-disabled":g(N)()?``:void 0,"data-slot":`next`,disabled:g(N)(),type:`button`,onClick:$},[m(n.$slots,`next`,{disabled:g(N)()},()=>[i[2]||(i[2]=l(`Next`,-1))])],10,_)],2),c(`div`,{class:f(g(w)),"data-slot":`grid`},[(p(!0),s(ee,null,re(q.value,(r,i)=>(p(),s(`button`,{key:r.toString(),"aria-label":g(D).fullMonthAndYear(g(t)(r)),"aria-pressed":g(M)(r)?!0:void 0,class:f(g(T)),"data-disabled":g(A)(r)?``:void 0,"data-focused":g(e)(r,g(O))===0?``:void 0,"data-highlighted":g(j)(r)?``:void 0,"data-month-value":r.toString(),"data-range-end":g(F)(r)?``:void 0,"data-range-start":g(I)(r)?``:void 0,"data-selected":g(M)(r)?``:void 0,"data-slot":`cell-trigger`,disabled:g(A)(r),tabindex:g(e)(r,g(O))===0&&!g(A)(r)?0:-1,type:`button`,onClick:e=>me(r),onFocus:e=>fe(r),onKeydown:e=>he(r,i,e),onMouseenter:e=>pe(r)},[m(n.$slots,`month`,{date:r,disabled:g(A)(r),focused:g(e)(r,g(O))===0,highlighted:g(j)(r),label:g(D).custom(g(t)(r),{month:`short`}),rangeEnd:g(F)(r),rangeStart:g(I)(r),selected:g(M)(r)},()=>[l(h(g(D).custom(g(t)(r),{month:`short`})),1)])],42,v))),128))],2)]),_:3},8,[`id`,`as`,`as-child`,`aria-labelledby`,`class`])):o(`v-if`,!0)}});export{y as default};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { AsTag } from "../primitive/types.js";
|
|
2
|
-
import { MonthRangePickerPopupProps } from "./types.js";
|
|
3
|
-
import * as _$vue from "vue";
|
|
4
|
-
import { DateValue } from "@internationalized/date";
|
|
5
|
-
|
|
6
|
-
//#region src/components/month-range-picker/month-range-picker-popup.vue.d.ts
|
|
7
|
-
type __VLS_Slots = {
|
|
8
|
-
heading?: (props: {
|
|
9
|
-
headingValue: string;
|
|
10
|
-
}) => any;
|
|
11
|
-
prev?: (props: {
|
|
12
|
-
disabled: boolean;
|
|
13
|
-
}) => any;
|
|
14
|
-
next?: (props: {
|
|
15
|
-
disabled: boolean;
|
|
16
|
-
}) => any;
|
|
17
|
-
month?: (props: {
|
|
18
|
-
date: DateValue;
|
|
19
|
-
label: string;
|
|
20
|
-
disabled: boolean;
|
|
21
|
-
focused: boolean;
|
|
22
|
-
highlighted: boolean;
|
|
23
|
-
rangeEnd: boolean;
|
|
24
|
-
rangeStart: boolean;
|
|
25
|
-
selected: boolean;
|
|
26
|
-
}) => any;
|
|
27
|
-
};
|
|
28
|
-
declare const __VLS_base: _$vue.DefineComponent<MonthRangePickerPopupProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<MonthRangePickerPopupProps> & Readonly<{}>, {
|
|
29
|
-
as: AsTag | _$vue.Component;
|
|
30
|
-
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
31
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
32
|
-
declare const _default: typeof __VLS_export;
|
|
33
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
34
|
-
new (): {
|
|
35
|
-
$slots: S;
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
//#endregion
|
|
39
|
-
export { _default };
|