@soybeanjs/headless 0.18.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/dist/components/_icon/types.d.ts +1 -10
- package/dist/components/accordion/accordion-content.js +1 -1
- package/dist/components/accordion/accordion-description.js +1 -1
- package/dist/components/accordion/accordion-header.js +1 -1
- package/dist/components/accordion/accordion-item.js +1 -1
- package/dist/components/accordion/accordion-root.js +1 -1
- package/dist/components/accordion/accordion-trigger.js +1 -1
- package/dist/components/accordion/context.js +1 -1
- package/dist/components/accordion/types.d.ts +6 -5
- package/dist/components/affix/affix-content.js +1 -1
- package/dist/components/affix/affix-placeholder.js +1 -1
- package/dist/components/affix/affix-root.js +1 -1
- package/dist/components/affix/types.d.ts +5 -4
- package/dist/components/alert/alert-close.js +1 -1
- package/dist/components/alert/alert-close.vue.d.ts +5 -4
- package/dist/components/alert/alert-compact.js +1 -1
- package/dist/components/alert/alert-compact.vue.d.ts +2 -0
- package/dist/components/alert/alert-content.js +1 -1
- package/dist/components/alert/alert-description.js +1 -1
- package/dist/components/alert/alert-root.js +1 -1
- package/dist/components/alert/alert-title.js +1 -1
- package/dist/components/alert/types.d.ts +16 -9
- package/dist/components/anchor/anchor-link.js +1 -1
- package/dist/components/anchor/anchor-root.js +1 -1
- package/dist/components/anchor/anchor-root.vue.d.ts +2 -2
- package/dist/components/anchor/context.js +1 -1
- package/dist/components/anchor/types.d.ts +5 -4
- package/dist/components/arrow/arrow.js +1 -1
- package/dist/components/arrow/types.d.ts +2 -1
- package/dist/components/aspect-ratio/aspect-ratio.js +1 -1
- package/dist/components/aspect-ratio/types.d.ts +2 -3
- package/dist/components/autocomplete/autocomplete-compact.js +1 -1
- package/dist/components/autocomplete/autocomplete-compact.vue.d.ts +2 -2
- package/dist/components/autocomplete/autocomplete-input.js +1 -1
- package/dist/components/autocomplete/autocomplete-root.js +1 -1
- package/dist/components/autocomplete/autocomplete-root.vue.d.ts +3 -3
- package/dist/components/autocomplete/types.d.ts +4 -3
- package/dist/components/avatar/avatar-fallback.js +1 -1
- package/dist/components/avatar/avatar-image.js +1 -1
- package/dist/components/avatar/avatar-root.js +1 -1
- package/dist/components/avatar/types.d.ts +5 -4
- package/dist/components/backtop/backtop.js +1 -1
- package/dist/components/backtop/backtop.vue.d.ts +3 -7
- package/dist/components/backtop/types.d.ts +2 -2
- package/dist/components/badge/badge-content.js +1 -1
- package/dist/components/badge/badge-root.js +1 -1
- package/dist/components/badge/types.d.ts +4 -3
- package/dist/components/bottom-sheet/bottom-sheet-compact.js +1 -1
- package/dist/components/bottom-sheet/bottom-sheet-popup.js +1 -1
- package/dist/components/bottom-sheet/bottom-sheet-root-nested.vue.d.ts +2 -2
- package/dist/components/bottom-sheet/bottom-sheet-root.js +1 -1
- package/dist/components/bottom-sheet/context.js +1 -1
- package/dist/components/bottom-sheet/types.d.ts +3 -2
- package/dist/components/breadcrumb/breadcrumb-ellipsis.js +1 -1
- package/dist/components/breadcrumb/breadcrumb-item.js +1 -1
- package/dist/components/breadcrumb/breadcrumb-link.js +1 -1
- package/dist/components/breadcrumb/breadcrumb-list.js +1 -1
- package/dist/components/breadcrumb/breadcrumb-page.js +1 -1
- package/dist/components/breadcrumb/breadcrumb-root.js +1 -1
- package/dist/components/breadcrumb/breadcrumb-separator.js +1 -1
- package/dist/components/breadcrumb/types.d.ts +8 -8
- package/dist/components/button/button.js +1 -1
- package/dist/components/button/types.d.ts +3 -2
- package/dist/components/calendar/calendar-cell-trigger.js +1 -1
- package/dist/components/calendar/calendar-cell-trigger.vue.d.ts +3 -16
- package/dist/components/calendar/calendar-cell.js +1 -1
- package/dist/components/calendar/calendar-compact.js +1 -1
- package/dist/components/calendar/calendar-compact.vue.d.ts +3 -3
- package/dist/components/calendar/calendar-grid-body.js +1 -1
- package/dist/components/calendar/calendar-grid-head.js +1 -1
- package/dist/components/calendar/calendar-grid-row.js +1 -1
- package/dist/components/calendar/calendar-grid.js +1 -1
- package/dist/components/calendar/calendar-head-cell.js +1 -1
- package/dist/components/calendar/calendar-header.js +1 -1
- package/dist/components/calendar/calendar-header.vue.d.ts +1 -4
- package/dist/components/calendar/calendar-heading.js +1 -1
- package/dist/components/calendar/calendar-heading.vue.d.ts +6 -8
- package/dist/components/calendar/calendar-next.js +1 -1
- package/dist/components/calendar/calendar-next.vue.d.ts +6 -10
- package/dist/components/calendar/calendar-prev.js +1 -1
- package/dist/components/calendar/calendar-prev.vue.d.ts +6 -10
- package/dist/components/calendar/calendar-root.js +1 -1
- package/dist/components/calendar/calendar-root.vue.d.ts +2 -4
- package/dist/components/calendar/index.d.ts +2 -2
- package/dist/components/calendar/shared.js +1 -0
- package/dist/components/calendar/types.d.ts +119 -202
- package/dist/components/calendar/use-calendar.js +1 -1
- package/dist/components/calendar-range/calendar-range-cell-trigger.js +1 -0
- package/dist/components/calendar-range/calendar-range-cell-trigger.vue.d.ts +15 -0
- package/dist/components/calendar-range/calendar-range-cell.js +1 -0
- package/dist/components/{range-calendar/range-calendar-cell.vue.d.ts → calendar-range/calendar-range-cell.vue.d.ts} +3 -3
- package/dist/components/calendar-range/calendar-range-compact.js +1 -0
- package/dist/components/{range-calendar/range-calendar-compact.vue.d.ts → calendar-range/calendar-range-compact.vue.d.ts} +5 -5
- package/dist/components/calendar-range/calendar-range-grid-body.js +1 -0
- package/dist/components/{range-calendar/range-calendar-grid-body.vue.d.ts → calendar-range/calendar-range-grid-body.vue.d.ts} +3 -3
- package/dist/components/calendar-range/calendar-range-grid-head.js +1 -0
- package/dist/components/{range-calendar/range-calendar-grid-head.vue.d.ts → calendar-range/calendar-range-grid-head.vue.d.ts} +3 -3
- package/dist/components/calendar-range/calendar-range-grid-row.js +1 -0
- package/dist/components/{range-calendar/range-calendar-grid-row.vue.d.ts → calendar-range/calendar-range-grid-row.vue.d.ts} +3 -3
- package/dist/components/calendar-range/calendar-range-grid.js +1 -0
- package/dist/components/{range-calendar/range-calendar-grid.vue.d.ts → calendar-range/calendar-range-grid.vue.d.ts} +3 -3
- package/dist/components/calendar-range/calendar-range-head-cell.js +1 -0
- package/dist/components/{range-calendar/range-calendar-head-cell.vue.d.ts → calendar-range/calendar-range-head-cell.vue.d.ts} +3 -3
- package/dist/components/calendar-range/calendar-range-header.js +1 -0
- package/dist/components/calendar-range/calendar-range-header.vue.d.ts +18 -0
- package/dist/components/calendar-range/calendar-range-heading.js +1 -0
- package/dist/components/calendar-range/calendar-range-heading.vue.d.ts +20 -0
- package/dist/components/calendar-range/calendar-range-next.js +1 -0
- package/dist/components/calendar-range/calendar-range-next.vue.d.ts +20 -0
- package/dist/components/calendar-range/calendar-range-prev.js +1 -0
- package/dist/components/calendar-range/calendar-range-prev.vue.d.ts +20 -0
- package/dist/components/calendar-range/calendar-range-root.js +1 -0
- package/dist/components/{range-calendar/range-calendar-root.vue.d.ts → calendar-range/calendar-range-root.vue.d.ts} +11 -23
- 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-title-root.js +1 -1
- package/dist/components/card/card-title.js +1 -1
- package/dist/components/card/types.d.ts +6 -6
- package/dist/components/carousel/carousel-container.js +1 -1
- package/dist/components/carousel/carousel-content.js +1 -1
- package/dist/components/carousel/carousel-control.js +1 -1
- package/dist/components/carousel/carousel-item.js +1 -1
- package/dist/components/carousel/carousel-navigation.js +1 -1
- package/dist/components/carousel/carousel-next.js +1 -1
- package/dist/components/carousel/carousel-previous.js +1 -1
- package/dist/components/carousel/carousel-root.js +1 -1
- package/dist/components/carousel/types.d.ts +8 -7
- package/dist/components/checkbox/checkbox-card-compact.js +1 -1
- package/dist/components/checkbox/checkbox-card-group-compact.js +1 -1
- package/dist/components/checkbox/checkbox-compact.vue.d.ts +2 -2
- package/dist/components/checkbox/checkbox-control.js +1 -1
- package/dist/components/checkbox/checkbox-group-compact.js +1 -1
- package/dist/components/checkbox/checkbox-group-root.js +1 -1
- package/dist/components/checkbox/checkbox-indicator.js +1 -1
- package/dist/components/checkbox/checkbox-label.js +1 -1
- package/dist/components/checkbox/checkbox-root.js +1 -1
- package/dist/components/checkbox/checkbox-root.vue.d.ts +1 -1
- package/dist/components/checkbox/context.js +1 -1
- package/dist/components/checkbox/types.d.ts +8 -6
- package/dist/components/clipboard/clipboard.js +1 -1
- package/dist/components/clipboard/types.d.ts +1 -1
- package/dist/components/collapsible/collapsible-content.js +1 -1
- package/dist/components/collapsible/collapsible-root.js +1 -1
- package/dist/components/collapsible/collapsible-root.vue.d.ts +2 -2
- package/dist/components/collapsible/collapsible-trigger.js +1 -1
- package/dist/components/collapsible/collapsible-trigger.vue.d.ts +1 -4
- package/dist/components/collapsible/context.js +1 -1
- package/dist/components/collapsible/types.d.ts +6 -5
- package/dist/components/color-area/color-area-area.js +1 -1
- package/dist/components/color-area/color-area-area.vue.d.ts +1 -4
- package/dist/components/color-area/color-area-compact.js +1 -0
- package/dist/components/color-area/color-area-compact.vue.d.ts +19 -0
- package/dist/components/color-area/color-area-root.js +1 -1
- package/dist/components/color-area/color-area-root.vue.d.ts +2 -4
- package/dist/components/color-area/color-area-thumb.js +1 -1
- package/dist/components/color-area/index.d.ts +5 -4
- package/dist/components/color-area/index.js +1 -1
- package/dist/components/color-area/types.d.ts +24 -7
- package/dist/components/color-field/color-field-compact.js +1 -0
- package/dist/components/color-field/color-field-compact.vue.d.ts +15 -0
- package/dist/components/color-field/color-field-input.js +1 -1
- package/dist/components/color-field/color-field-root.js +1 -1
- package/dist/components/color-field/color-field-root.vue.d.ts +2 -4
- package/dist/components/color-field/index.d.ts +5 -4
- package/dist/components/color-field/index.js +1 -1
- package/dist/components/color-field/types.d.ts +20 -6
- package/dist/components/color-picker/color-picker-compact.js +1 -0
- package/dist/components/color-picker/color-picker-compact.vue.d.ts +60 -0
- package/dist/components/color-picker/color-picker-root.js +1 -1
- package/dist/components/color-picker/color-picker-root.vue.d.ts +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 +132 -5
- package/dist/components/color-slider/color-slider-compact.js +1 -0
- package/dist/components/color-slider/color-slider-compact.vue.d.ts +19 -0
- package/dist/components/color-slider/color-slider-root.js +1 -1
- package/dist/components/color-slider/color-slider-root.vue.d.ts +3 -3
- package/dist/components/color-slider/color-slider-thumb.js +1 -1
- package/dist/components/color-slider/color-slider-track.js +1 -1
- package/dist/components/color-slider/index.d.ts +6 -5
- package/dist/components/color-slider/index.js +1 -1
- package/dist/components/color-slider/types.d.ts +24 -7
- package/dist/components/color-swatch/color-swatch-checker.js +1 -0
- package/dist/components/color-swatch/color-swatch-checker.vue.d.ts +8 -0
- package/dist/components/color-swatch/color-swatch-compact.js +1 -0
- package/dist/components/color-swatch/color-swatch-compact.vue.d.ts +15 -0
- package/dist/components/color-swatch/color-swatch-fill.js +1 -0
- package/dist/components/color-swatch/color-swatch-fill.vue.d.ts +8 -0
- package/dist/components/color-swatch/color-swatch-root.js +1 -0
- package/dist/components/color-swatch/color-swatch-root.vue.d.ts +15 -0
- package/dist/components/color-swatch/context.d.ts +9 -0
- package/dist/components/color-swatch/context.js +1 -0
- package/dist/components/color-swatch/index.d.ts +7 -3
- package/dist/components/color-swatch/index.js +1 -1
- package/dist/components/color-swatch/types.d.ts +58 -5
- package/dist/components/color-swatch-picker/color-swatch-picker-compact.js +1 -0
- package/dist/components/color-swatch-picker/color-swatch-picker-compact.vue.d.ts +28 -0
- package/dist/components/color-swatch-picker/color-swatch-picker-item-indicator.js +1 -1
- package/dist/components/color-swatch-picker/color-swatch-picker-item-swatch.js +1 -1
- package/dist/components/color-swatch-picker/color-swatch-picker-item.js +1 -1
- package/dist/components/color-swatch-picker/color-swatch-picker-root.js +1 -1
- package/dist/components/color-swatch-picker/color-swatch-picker-root.vue.d.ts +1 -1
- package/dist/components/color-swatch-picker/context.js +1 -1
- package/dist/components/color-swatch-picker/index.d.ts +7 -6
- package/dist/components/color-swatch-picker/index.js +1 -1
- package/dist/components/color-swatch-picker/types.d.ts +63 -8
- package/dist/components/combobox/combobox-arrow.js +1 -1
- package/dist/components/combobox/combobox-cancel.js +1 -1
- package/dist/components/combobox/combobox-compact.js +1 -1
- package/dist/components/combobox/combobox-compact.vue.d.ts +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-empty.js +1 -1
- package/dist/components/combobox/combobox-empty.vue.d.ts +1 -4
- package/dist/components/combobox/combobox-group.js +1 -1
- package/dist/components/combobox/combobox-input.js +1 -1
- package/dist/components/combobox/combobox-item.js +1 -1
- package/dist/components/combobox/combobox-root.js +1 -1
- package/dist/components/combobox/combobox-root.vue.d.ts +3 -3
- package/dist/components/combobox/combobox-separator.js +1 -1
- package/dist/components/combobox/combobox-trigger.js +1 -1
- package/dist/components/combobox/combobox-viewport.js +1 -1
- package/dist/components/combobox/combobox-virtualizer.js +1 -1
- package/dist/components/combobox/types.d.ts +9 -8
- package/dist/components/command/command-compact.js +1 -1
- package/dist/components/command/types.d.ts +4 -4
- package/dist/components/config-provider/config-provider.js +1 -1
- package/dist/components/config-provider/context.js +1 -1
- package/dist/components/config-provider/types.d.ts +9 -1
- package/dist/components/context-menu/context-menu-checkbox-compact.vue.d.ts +3 -3
- package/dist/components/context-menu/context-menu-compact.vue.d.ts +2 -2
- package/dist/components/context-menu/context-menu-content.js +1 -1
- package/dist/components/context-menu/context-menu-content.vue.d.ts +2 -2
- package/dist/components/context-menu/context-menu-radio-compact.vue.d.ts +3 -3
- package/dist/components/context-menu/context-menu-trigger.js +1 -1
- package/dist/components/context-menu/context-menu-wrapper-compact.vue.d.ts +2 -2
- package/dist/components/context-menu/context.js +1 -1
- package/dist/components/date-field/date-field-compact.js +1 -1
- package/dist/components/date-field/date-field-compact.vue.d.ts +17 -5
- package/dist/components/date-field/date-field-input.js +1 -1
- package/dist/components/date-field/date-field-root.js +1 -1
- package/dist/components/date-field/date-field-root.vue.d.ts +14 -22
- package/dist/components/date-field/index.d.ts +3 -3
- package/dist/components/date-field/types.d.ts +44 -144
- package/dist/components/date-picker/context.js +1 -1
- package/dist/components/date-picker/date-picker-compact.js +1 -1
- package/dist/components/date-picker/date-picker-compact.vue.d.ts +290 -10
- package/dist/components/date-picker/index.d.ts +2 -7
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-picker/types.d.ts +11 -274
- package/dist/components/date-range-field/date-range-field-compact.js +1 -1
- package/dist/components/date-range-field/date-range-field-input.js +1 -1
- package/dist/components/date-range-field/date-range-field-input.vue.d.ts +2 -2
- package/dist/components/date-range-field/date-range-field-root.js +1 -1
- package/dist/components/date-range-field/date-range-field-root.vue.d.ts +15 -30
- package/dist/components/date-range-field/index.d.ts +3 -3
- package/dist/components/date-range-field/types.d.ts +36 -183
- package/dist/components/date-range-picker/context.js +1 -1
- package/dist/components/date-range-picker/date-range-picker-compact.js +1 -1
- package/dist/components/date-range-picker/date-range-picker-compact.vue.d.ts +293 -12
- package/dist/components/date-range-picker/index.d.ts +2 -5
- package/dist/components/date-range-picker/index.js +1 -1
- package/dist/components/date-range-picker/types.d.ts +14 -269
- package/dist/components/dialog/context.js +1 -1
- package/dist/components/dialog/dialog-cancel.js +1 -1
- package/dist/components/dialog/dialog-close.js +1 -1
- package/dist/components/dialog/dialog-compact.js +1 -1
- package/dist/components/dialog/dialog-compact.vue.d.ts +7 -7
- package/dist/components/dialog/dialog-confirm.js +1 -1
- package/dist/components/dialog/dialog-content.js +1 -1
- package/dist/components/dialog/dialog-description.js +1 -1
- package/dist/components/dialog/dialog-footer.js +1 -1
- package/dist/components/dialog/dialog-header.js +1 -1
- package/dist/components/dialog/dialog-overlay.js +1 -1
- package/dist/components/dialog/dialog-popup-impl.js +1 -1
- package/dist/components/dialog/dialog-popup.js +1 -1
- package/dist/components/dialog/dialog-root.js +1 -1
- package/dist/components/dialog/dialog-title.js +1 -1
- package/dist/components/dialog/dialog-trigger.js +1 -1
- package/dist/components/dialog/dialog-trigger.vue.d.ts +5 -1
- package/dist/components/dialog/types.d.ts +21 -14
- package/dist/components/dropdown-menu/context.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-checkbox-compact.vue.d.ts +3 -3
- package/dist/components/dropdown-menu/dropdown-menu-compact.vue.d.ts +2 -2
- package/dist/components/dropdown-menu/dropdown-menu-content.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-content.vue.d.ts +2 -2
- package/dist/components/dropdown-menu/dropdown-menu-radio-compact.vue.d.ts +3 -3
- package/dist/components/dropdown-menu/dropdown-menu-root.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-root.vue.d.ts +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-trigger.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-wrapper-compact.vue.d.ts +2 -2
- 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 +10 -9
- package/dist/components/empty/empty-content.js +1 -1
- package/dist/components/empty/empty-description.js +1 -1
- package/dist/components/empty/empty-header.js +1 -1
- package/dist/components/empty/empty-media.js +1 -1
- package/dist/components/empty/empty-root.js +1 -1
- package/dist/components/empty/empty-title.js +1 -1
- package/dist/components/empty/types.d.ts +8 -8
- package/dist/components/form/form-compact.js +1 -1
- package/dist/components/form/form-control.js +1 -1
- package/dist/components/form/form-description.js +1 -1
- package/dist/components/form/form-error.js +1 -1
- package/dist/components/form/form-field-array-compact.js +1 -1
- package/dist/components/form/form-field-compact.js +1 -1
- package/dist/components/form/form-label.js +1 -1
- package/dist/components/form/types.d.ts +7 -6
- package/dist/components/hover-card/context.js +1 -1
- package/dist/components/hover-card/hover-card-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 +1 -1
- package/dist/components/hover-card/hover-card-trigger.js +1 -1
- package/dist/components/hover-card/index.d.ts +1 -1
- package/dist/components/input/input-clear.js +1 -1
- package/dist/components/input/input-compact.js +1 -1
- package/dist/components/input/input-control.js +1 -1
- package/dist/components/input/input-root.js +1 -1
- package/dist/components/input/input-root.vue.d.ts +1 -1
- package/dist/components/input/types.d.ts +10 -9
- package/dist/components/input-number/context.js +1 -1
- package/dist/components/input-number/index.d.ts +7 -6
- package/dist/components/input-number/index.js +1 -1
- package/dist/components/input-number/input-number-clear.js +1 -0
- package/dist/components/input-number/input-number-compact.js +1 -0
- package/dist/components/input-number/input-number-compact.vue.d.ts +21 -0
- package/dist/components/input-number/input-number-control.js +1 -1
- package/dist/components/input-number/input-number-decrement.js +1 -1
- package/dist/components/input-number/input-number-decrement.vue.d.ts +1 -4
- package/dist/components/input-number/input-number-increment.js +1 -1
- package/dist/components/input-number/input-number-increment.vue.d.ts +1 -4
- package/dist/components/input-number/input-number-root.js +1 -1
- package/dist/components/input-number/input-number-root.vue.d.ts +4 -4
- package/dist/components/input-number/types.d.ts +87 -14
- package/dist/components/input-otp/input-otp-compact.js +1 -1
- package/dist/components/input-otp/input-otp-compact.vue.d.ts +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 +5 -4
- package/dist/components/kbd/kbd.js +1 -1
- package/dist/components/kbd/types.d.ts +2 -3
- package/dist/components/label/label.js +1 -1
- package/dist/components/label/types.d.ts +2 -3
- package/dist/components/layout/layout-classic-placeholder.js +1 -1
- package/dist/components/layout/layout-classic-root.js +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 +2 -2
- package/dist/components/layout/layout-sidebar.js +1 -1
- package/dist/components/layout/layout-tab.js +1 -1
- package/dist/components/layout/layout-trigger.js +1 -1
- package/dist/components/layout/layout-trigger.vue.d.ts +1 -4
- package/dist/components/layout/types.d.ts +13 -12
- package/dist/components/link/link.js +1 -1
- package/dist/components/link/types.d.ts +2 -3
- package/dist/components/list/list-content.js +1 -1
- package/dist/components/list/list-description.js +1 -1
- package/dist/components/list/list-item.js +1 -1
- package/dist/components/list/list-root.js +1 -1
- package/dist/components/list/list-title.js +1 -1
- package/dist/components/list/types.d.ts +6 -7
- package/dist/components/listbox/context.js +1 -1
- package/dist/components/listbox/listbox-content.js +1 -1
- package/dist/components/listbox/listbox-filter.js +1 -1
- package/dist/components/listbox/listbox-group-label.js +1 -1
- package/dist/components/listbox/listbox-group.js +1 -1
- package/dist/components/listbox/listbox-item-indicator.js +1 -1
- package/dist/components/listbox/listbox-item.js +1 -1
- package/dist/components/listbox/listbox-item.vue.d.ts +1 -4
- package/dist/components/listbox/listbox-root.js +1 -1
- package/dist/components/listbox/types.d.ts +9 -8
- package/dist/components/menu/context.js +1 -1
- package/dist/components/menu/menu-checkbox-group.js +1 -1
- package/dist/components/menu/menu-checkbox-group.vue.d.ts +1 -1
- package/dist/components/menu/menu-checkbox-item.js +1 -1
- package/dist/components/menu/menu-content-impl.js +1 -1
- package/dist/components/menu/menu-content.js +1 -1
- package/dist/components/menu/menu-content.vue.d.ts +2 -2
- 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-option-compact.vue.d.ts +2 -2
- package/dist/components/menu/menu-options-compact.vue.d.ts +2 -2
- 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-content.vue.d.ts +2 -2
- package/dist/components/menu/menu-sub-trigger.js +1 -1
- package/dist/components/menu/menu-sub.js +1 -1
- package/dist/components/menu/types.d.ts +11 -12
- package/dist/components/menubar/context.js +1 -1
- package/dist/components/menubar/menubar-compact.vue.d.ts +3 -3
- package/dist/components/menubar/menubar-content.js +1 -1
- package/dist/components/menubar/menubar-content.vue.d.ts +2 -2
- 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-content.vue.d.ts +2 -2
- package/dist/components/menubar/menubar-sub-trigger.js +1 -1
- package/dist/components/menubar/menubar-trigger.js +1 -1
- package/dist/components/menubar/menubar-trigger.vue.d.ts +1 -4
- package/dist/components/menubar/types.d.ts +5 -7
- package/dist/components/navigation-menu/context.js +1 -1
- package/dist/components/navigation-menu/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 +12 -11
- 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 +208 -9
- package/dist/components/pagination/pagination-ellipsis.js +1 -1
- package/dist/components/pagination/pagination-first.js +1 -1
- package/dist/components/pagination/pagination-first.vue.d.ts +2 -2
- package/dist/components/pagination/pagination-last.js +1 -1
- package/dist/components/pagination/pagination-last.vue.d.ts +2 -2
- package/dist/components/pagination/pagination-list-item.js +1 -1
- package/dist/components/pagination/pagination-list-item.vue.d.ts +2 -2
- package/dist/components/pagination/pagination-list.js +1 -1
- package/dist/components/pagination/pagination-next.js +1 -1
- package/dist/components/pagination/pagination-next.vue.d.ts +2 -2
- package/dist/components/pagination/pagination-prev.js +1 -1
- package/dist/components/pagination/pagination-prev.vue.d.ts +2 -2
- package/dist/components/pagination/pagination-root.js +1 -1
- package/dist/components/pagination/types.d.ts +8 -6
- 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-popup.js +1 -1
- package/dist/components/popover/popover-positioner-impl.js +1 -1
- package/dist/components/popover/popover-positioner.js +1 -1
- package/dist/components/popover/popover-positioner.vue.d.ts +1 -0
- package/dist/components/popover/popover-root.js +1 -1
- package/dist/components/popover/popover-root.vue.d.ts +1 -1
- package/dist/components/popover/popover-trigger.js +1 -1
- package/dist/components/popover/types.d.ts +13 -15
- package/dist/components/popper/index.d.ts +1 -1
- package/dist/components/popper/popper-anchor.js +1 -1
- package/dist/components/popper/popper-arrow.js +1 -1
- package/dist/components/popper/popper-positioner.js +1 -1
- package/dist/components/popper/popper-positioner.vue.d.ts +3 -2
- package/dist/components/popper/types.d.ts +7 -6
- package/dist/components/primitive/index.d.ts +2 -2
- package/dist/components/primitive/types.d.ts +3 -1
- package/dist/components/progress/index.d.ts +8 -6
- package/dist/components/progress/index.js +1 -1
- package/dist/components/progress/progress-circle-compact.js +1 -0
- package/dist/components/progress/progress-circle-compact.vue.d.ts +21 -0
- package/dist/components/progress/progress-circle-svg.js +1 -0
- package/dist/components/progress/{progress-circle.vue.d.ts → progress-circle-svg.vue.d.ts} +3 -3
- package/dist/components/progress/progress-compact.js +1 -0
- package/dist/components/progress/progress-compact.vue.d.ts +21 -0
- package/dist/components/progress/progress-indicator.js +1 -1
- package/dist/components/progress/progress-indicator.vue.d.ts +1 -4
- package/dist/components/progress/progress-provider.js +1 -1
- package/dist/components/progress/progress-root.js +1 -1
- package/dist/components/progress/progress-root.vue.d.ts +1 -3
- package/dist/components/progress/shared.js +1 -1
- package/dist/components/progress/types.d.ts +67 -22
- 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 +9 -7
- package/dist/components/roving-focus/context.js +1 -1
- package/dist/components/roving-focus/roving-focus-group.js +1 -1
- package/dist/components/roving-focus/roving-focus-group.vue.d.ts +1 -1
- package/dist/components/roving-focus/roving-focus-item.js +1 -1
- package/dist/components/roving-focus/types.d.ts +3 -4
- package/dist/components/scroll-area/index.d.ts +8 -7
- package/dist/components/scroll-area/index.js +1 -1
- package/dist/components/scroll-area/scroll-area-compact.js +1 -0
- package/dist/components/scroll-area/scroll-area-compact.vue.d.ts +15 -0
- package/dist/components/scroll-area/scroll-area-corner.js +1 -1
- package/dist/components/scroll-area/scroll-area-corner.vue.d.ts +1 -4
- package/dist/components/scroll-area/scroll-area-root.js +1 -1
- package/dist/components/scroll-area/scroll-area-root.vue.d.ts +0 -2
- package/dist/components/scroll-area/scroll-area-scrollbar.js +1 -1
- package/dist/components/scroll-area/scroll-area-scrollbar.vue.d.ts +0 -2
- package/dist/components/scroll-area/scroll-area-thumb.js +1 -1
- package/dist/components/scroll-area/scroll-area-thumb.vue.d.ts +1 -4
- package/dist/components/scroll-area/scroll-area-viewport.js +1 -1
- package/dist/components/scroll-area/types.d.ts +46 -8
- package/dist/components/segment/index.d.ts +1 -1
- package/dist/components/segment/segment-compact.js +1 -1
- package/dist/components/segment/segment-compact.vue.d.ts +2 -2
- package/dist/components/select/context.js +1 -1
- package/dist/components/select/select-arrow.js +1 -1
- package/dist/components/select/select-bubble-select.js +1 -1
- package/dist/components/select/select-compact.vue.d.ts +2 -2
- package/dist/components/select/select-content.js +1 -1
- package/dist/components/select/select-group-label.js +1 -1
- package/dist/components/select/select-group.js +1 -1
- package/dist/components/select/select-item-aligned-popup.js +1 -1
- package/dist/components/select/select-item-aligned-positioner.js +1 -1
- package/dist/components/select/select-item-indicator.js +1 -1
- package/dist/components/select/select-item-text.js +1 -1
- package/dist/components/select/select-item.js +1 -1
- package/dist/components/select/select-popper-popup.js +1 -1
- package/dist/components/select/select-root.vue.d.ts +2 -2
- package/dist/components/select/select-scroll-button-impl.js +1 -1
- package/dist/components/select/select-scroll-down-button.js +1 -1
- package/dist/components/select/select-scroll-up-button.js +1 -1
- package/dist/components/select/select-separator.js +1 -1
- package/dist/components/select/select-trigger-icon.js +1 -1
- package/dist/components/select/select-trigger.js +1 -1
- package/dist/components/select/select-value.js +1 -1
- package/dist/components/select/select-viewport.js +1 -1
- package/dist/components/select/types.d.ts +16 -14
- package/dist/components/separator/index.d.ts +5 -4
- package/dist/components/separator/index.js +1 -1
- package/dist/components/separator/separator-compact.js +1 -0
- package/dist/components/separator/separator-compact.vue.d.ts +18 -0
- package/dist/components/separator/separator-label.js +1 -1
- package/dist/components/separator/separator-root.js +1 -1
- package/dist/components/separator/types.d.ts +26 -5
- package/dist/components/skeleton/skeleton.js +1 -1
- package/dist/components/skeleton/skeleton.vue.d.ts +1 -4
- package/dist/components/skeleton/types.d.ts +2 -3
- package/dist/components/slider/index.d.ts +7 -6
- package/dist/components/slider/index.js +1 -1
- package/dist/components/slider/shared.js +1 -1
- package/dist/components/slider/slider-compact.js +1 -0
- package/dist/components/slider/slider-compact.vue.d.ts +21 -0
- package/dist/components/slider/slider-range.js +1 -1
- package/dist/components/slider/slider-range.vue.d.ts +1 -4
- package/dist/components/slider/slider-root.js +1 -1
- package/dist/components/slider/slider-root.vue.d.ts +1 -3
- package/dist/components/slider/slider-thumb.js +1 -1
- package/dist/components/slider/slider-thumb.vue.d.ts +1 -4
- package/dist/components/slider/slider-track.js +1 -1
- package/dist/components/slider/slider-track.vue.d.ts +1 -4
- package/dist/components/slider/types.d.ts +55 -8
- package/dist/components/splitter/context.js +1 -1
- package/dist/components/splitter/splitter-group.js +1 -1
- package/dist/components/splitter/splitter-group.vue.d.ts +1 -3
- package/dist/components/splitter/splitter-panel.js +1 -1
- package/dist/components/splitter/splitter-panel.vue.d.ts +4 -6
- package/dist/components/splitter/splitter-resize-handle.js +1 -1
- package/dist/components/splitter/splitter-resize-handle.vue.d.ts +0 -2
- package/dist/components/splitter/types.d.ts +5 -5
- package/dist/components/stepper/context.js +1 -1
- package/dist/components/stepper/stepper-description.js +1 -1
- package/dist/components/stepper/stepper-indicator.js +1 -1
- package/dist/components/stepper/stepper-item.js +1 -1
- package/dist/components/stepper/stepper-item.vue.d.ts +0 -2
- package/dist/components/stepper/stepper-root.js +1 -1
- package/dist/components/stepper/stepper-root.vue.d.ts +2 -4
- package/dist/components/stepper/stepper-separator.js +1 -1
- package/dist/components/stepper/stepper-title.js +1 -1
- package/dist/components/stepper/stepper-trigger.js +1 -1
- package/dist/components/stepper/types.d.ts +8 -8
- 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 +51 -6
- package/dist/components/table/hooks.js +1 -1
- package/dist/components/table/shared.js +1 -1
- package/dist/components/table/table-body.js +1 -1
- package/dist/components/table/table-cell.js +1 -1
- package/dist/components/table/table-compact.js +1 -1
- package/dist/components/table/table-content.js +1 -1
- package/dist/components/table/table-footer.js +1 -1
- package/dist/components/table/table-head.js +1 -1
- package/dist/components/table/table-header.js +1 -1
- package/dist/components/table/table-root.js +1 -1
- package/dist/components/table/table-row.js +1 -1
- package/dist/components/table/table-scroll.js +1 -1
- package/dist/components/table/table-virtual-spacer-row.js +1 -1
- package/dist/components/table/types.d.ts +15 -11
- package/dist/components/tabs/context.js +1 -1
- package/dist/components/tabs/tabs-compact.vue.d.ts +2 -2
- package/dist/components/tabs/tabs-content.js +1 -1
- package/dist/components/tabs/tabs-indicator.js +1 -1
- package/dist/components/tabs/tabs-list.js +1 -1
- package/dist/components/tabs/tabs-root.js +1 -1
- package/dist/components/tabs/tabs-root.vue.d.ts +5 -5
- package/dist/components/tabs/tabs-trigger.js +1 -1
- package/dist/components/tabs/types.d.ts +8 -7
- package/dist/components/tag/tag.js +1 -1
- package/dist/components/tag/types.d.ts +2 -3
- package/dist/components/tags-input/index.d.ts +8 -7
- package/dist/components/tags-input/index.js +1 -1
- package/dist/components/tags-input/tags-input-clear.js +1 -1
- package/dist/components/tags-input/tags-input-clear.vue.d.ts +1 -4
- package/dist/components/tags-input/tags-input-compact.js +1 -0
- package/dist/components/tags-input/tags-input-compact.vue.d.ts +25 -0
- package/dist/components/tags-input/tags-input-control.js +1 -0
- package/dist/components/tags-input/tags-input-control.vue.d.ts +8 -0
- package/dist/components/tags-input/tags-input-item-delete.js +1 -1
- package/dist/components/tags-input/tags-input-item-delete.vue.d.ts +1 -4
- package/dist/components/tags-input/tags-input-item-text.js +1 -1
- package/dist/components/tags-input/tags-input-item-text.vue.d.ts +3 -6
- package/dist/components/tags-input/tags-input-item.js +1 -1
- package/dist/components/tags-input/tags-input-item.vue.d.ts +14 -14
- package/dist/components/tags-input/tags-input-root.js +1 -1
- package/dist/components/tags-input/tags-input-root.vue.d.ts +29 -21
- package/dist/components/tags-input/types.d.ts +75 -63
- package/dist/components/textarea/index.d.ts +7 -5
- package/dist/components/textarea/index.js +1 -1
- package/dist/components/textarea/textarea-clear.js +1 -0
- package/dist/components/textarea/textarea-clear.vue.d.ts +22 -0
- package/dist/components/textarea/textarea-compact.js +1 -0
- package/dist/components/textarea/textarea-compact.vue.d.ts +21 -0
- package/dist/components/textarea/textarea-control.js +1 -1
- package/dist/components/textarea/textarea-counter.js +1 -1
- package/dist/components/textarea/textarea-root.js +1 -1
- package/dist/components/textarea/textarea-root.vue.d.ts +3 -1
- package/dist/components/textarea/types.d.ts +96 -6
- package/dist/components/time-field/index.d.ts +6 -4
- package/dist/components/time-field/index.js +1 -1
- package/dist/components/time-field/time-field-compact.js +1 -0
- package/dist/components/time-field/time-field-compact.vue.d.ts +15 -0
- package/dist/components/time-field/time-field-input.js +1 -1
- package/dist/components/time-field/time-field-input.vue.d.ts +2 -2
- package/dist/components/time-field/time-field-root.js +1 -1
- package/dist/components/time-field/time-field-root.vue.d.ts +5 -15
- package/dist/components/time-field/types.d.ts +33 -132
- package/dist/components/time-range-field/index.d.ts +2 -2
- package/dist/components/time-range-field/time-range-field-compact.js +1 -1
- package/dist/components/time-range-field/time-range-field-compact.vue.d.ts +1 -2
- package/dist/components/time-range-field/time-range-field-input.js +1 -1
- package/dist/components/time-range-field/time-range-field-root.js +1 -1
- package/dist/components/time-range-field/time-range-field-root.vue.d.ts +6 -20
- package/dist/components/time-range-field/types.d.ts +36 -184
- 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 +3 -2
- package/dist/components/toggle/toggle.js +1 -1
- package/dist/components/toggle/toggle.vue.d.ts +1 -4
- package/dist/components/toggle/types.d.ts +2 -7
- package/dist/components/toggle-group/context.js +1 -1
- package/dist/components/toggle-group/toggle-group-item.js +1 -1
- package/dist/components/toggle-group/toggle-group-root.js +1 -1
- package/dist/components/toggle-group/types.d.ts +3 -5
- package/dist/components/toolbar/context.js +1 -1
- package/dist/components/toolbar/toolbar-button.js +1 -1
- package/dist/components/toolbar/toolbar-link.js +1 -1
- package/dist/components/toolbar/toolbar-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 +4 -4
- 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 +1 -1
- package/dist/components/tooltip/tooltip-trigger.js +1 -1
- package/dist/components/tooltip/types.d.ts +58 -2
- package/dist/components/tree/context.js +1 -1
- package/dist/components/tree/tree-item.js +1 -1
- package/dist/components/tree/tree-root.js +1 -1
- package/dist/components/tree/tree-root.vue.d.ts +1 -1
- package/dist/components/tree/tree-virtualizer-item.js +1 -1
- package/dist/components/tree/tree-virtualizer-root.js +1 -1
- package/dist/components/tree/types.d.ts +5 -5
- package/dist/components/tree-menu/index.d.ts +12 -8
- package/dist/components/tree-menu/index.js +1 -1
- package/dist/components/tree-menu/shared.js +1 -0
- package/dist/components/tree-menu/tree-menu-button.js +1 -1
- package/dist/components/tree-menu/tree-menu-button.vue.d.ts +1 -4
- package/dist/components/tree-menu/tree-menu-collapsible.js +1 -1
- package/dist/components/tree-menu/tree-menu-compact.js +1 -0
- package/dist/components/tree-menu/tree-menu-compact.vue.d.ts +24 -0
- package/dist/components/tree-menu/tree-menu-group-label.js +1 -1
- package/dist/components/tree-menu/tree-menu-group-root.js +1 -1
- package/dist/components/tree-menu/tree-menu-group.js +1 -1
- package/dist/components/tree-menu/tree-menu-item.js +1 -1
- package/dist/components/tree-menu/tree-menu-option-compact.js +1 -0
- package/dist/components/tree-menu/tree-menu-option-compact.vue.d.ts +33 -0
- package/dist/components/tree-menu/tree-menu-options-compact.js +1 -0
- package/dist/components/tree-menu/tree-menu-options-compact.vue.d.ts +34 -0
- package/dist/components/tree-menu/tree-menu-root.js +1 -1
- package/dist/components/tree-menu/tree-menu-root.vue.d.ts +4 -1
- package/dist/components/tree-menu/tree-menu-slot-compact.js +1 -0
- package/dist/components/tree-menu/tree-menu-slot-compact.vue.d.ts +28 -0
- package/dist/components/tree-menu/tree-menu-sub.js +1 -1
- package/dist/components/tree-menu/types.d.ts +241 -12
- package/dist/components/virtualizer/types.d.ts +7 -6
- package/dist/components/virtualizer/virtualizer-content.js +1 -1
- package/dist/components/virtualizer/virtualizer-item.js +1 -1
- package/dist/components/virtualizer/virtualizer-root.js +1 -1
- package/dist/components/visually-hidden/types.d.ts +2 -3
- package/dist/components/visually-hidden/visually-hidden-input-bubble.js +1 -1
- package/dist/components/visually-hidden/visually-hidden-input.js +1 -1
- package/dist/components/visually-hidden/visually-hidden.js +1 -1
- package/dist/composables/index.d.ts +2 -1
- package/dist/composables/index.js +1 -1
- package/dist/composables/use-bool-prop.d.ts +12 -0
- package/dist/composables/use-bool-prop.js +1 -0
- package/dist/composables/use-collection.d.ts +0 -3
- package/dist/composables/use-collection.js +1 -1
- package/dist/composables/use-controllable-state.d.ts +10 -1
- package/dist/composables/use-controllable-state.js +1 -1
- package/dist/composables/use-selection.js +1 -1
- package/dist/constants/components.d.ts +3 -7
- package/dist/constants/components.js +1 -1
- package/dist/date/calendar.d.ts +22 -24
- package/dist/date/calendar.js +1 -1
- package/dist/date/comparators.d.ts +29 -30
- package/dist/date/formatter.d.ts +1 -1
- package/dist/date/index.d.ts +8 -8
- package/dist/date/index.js +1 -1
- package/dist/date/parser.d.ts +14 -13
- package/dist/date/parser.js +1 -1
- package/dist/date/parts.d.ts +6 -6
- package/dist/date/placeholders.d.ts +2 -21
- package/dist/date/placeholders.js +1 -1
- package/dist/date/types.d.ts +12 -11
- package/dist/date/use-date-field.d.ts +6 -8
- package/dist/date/use-date-field.js +1 -1
- package/dist/date/utils.d.ts +3 -7
- package/dist/date/utils.js +1 -1
- package/dist/index.d.ts +423 -414
- 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 +983 -966
- 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/index.d.ts +3 -2
- package/dist/types/vue.d.ts +4 -2
- package/package.json +13 -3
- package/dist/components/_icon/icon.vue.d.ts +0 -8
- package/dist/components/_icon/index.d.ts +0 -3
- package/dist/components/_icon/index.js +0 -1
- package/dist/components/calendar/use-calendar.d.ts +0 -45
- package/dist/components/color-swatch/color-swatch.js +0 -1
- package/dist/components/color-swatch/color-swatch.vue.d.ts +0 -26
- package/dist/components/date-picker/date-picker-content.js +0 -1
- package/dist/components/date-picker/date-picker-root.js +0 -1
- package/dist/components/date-picker/date-picker-root.vue.d.ts +0 -38
- package/dist/components/date-range-picker/date-range-picker-popup.js +0 -1
- package/dist/components/date-range-picker/date-range-picker-popup.vue.d.ts +0 -21
- package/dist/components/date-range-picker/date-range-picker-root.js +0 -1
- package/dist/components/date-range-picker/date-range-picker-root.vue.d.ts +0 -50
- package/dist/components/date-range-picker/date-range-picker-trigger.js +0 -1
- package/dist/components/date-range-picker/date-range-picker-trigger.vue.d.ts +0 -21
- package/dist/components/month-picker/context.d.ts +0 -9
- package/dist/components/month-picker/context.js +0 -1
- package/dist/components/month-picker/index.d.ts +0 -6
- package/dist/components/month-picker/index.js +0 -1
- package/dist/components/month-picker/month-picker-popup.js +0 -1
- package/dist/components/month-picker/month-picker-popup.vue.d.ts +0 -36
- package/dist/components/month-picker/month-picker-root.js +0 -1
- package/dist/components/month-picker/month-picker-root.vue.d.ts +0 -39
- package/dist/components/month-picker/month-picker-trigger.js +0 -1
- package/dist/components/month-picker/month-picker-trigger.vue.d.ts +0 -21
- package/dist/components/month-picker/types.d.ts +0 -202
- package/dist/components/month-range-picker/context.d.ts +0 -9
- package/dist/components/month-range-picker/context.js +0 -1
- package/dist/components/month-range-picker/index.d.ts +0 -6
- package/dist/components/month-range-picker/index.js +0 -1
- package/dist/components/month-range-picker/month-range-picker-popup.js +0 -1
- package/dist/components/month-range-picker/month-range-picker-popup.vue.d.ts +0 -39
- package/dist/components/month-range-picker/month-range-picker-root.js +0 -1
- package/dist/components/month-range-picker/month-range-picker-root.vue.d.ts +0 -43
- package/dist/components/month-range-picker/month-range-picker-trigger.js +0 -1
- package/dist/components/month-range-picker/month-range-picker-trigger.vue.d.ts +0 -21
- package/dist/components/month-range-picker/types.d.ts +0 -234
- package/dist/components/progress/progress-circle.js +0 -1
- package/dist/components/range-calendar/context.d.ts +0 -9
- package/dist/components/range-calendar/context.js +0 -1
- package/dist/components/range-calendar/index.d.ts +0 -16
- package/dist/components/range-calendar/index.js +0 -1
- package/dist/components/range-calendar/range-calendar-cell-trigger.js +0 -1
- package/dist/components/range-calendar/range-calendar-cell-trigger.vue.d.ts +0 -33
- package/dist/components/range-calendar/range-calendar-cell.js +0 -1
- package/dist/components/range-calendar/range-calendar-compact.js +0 -1
- package/dist/components/range-calendar/range-calendar-grid-body.js +0 -1
- package/dist/components/range-calendar/range-calendar-grid-head.js +0 -1
- package/dist/components/range-calendar/range-calendar-grid-row.js +0 -1
- package/dist/components/range-calendar/range-calendar-grid.js +0 -1
- package/dist/components/range-calendar/range-calendar-head-cell.js +0 -1
- package/dist/components/range-calendar/range-calendar-header.js +0 -1
- package/dist/components/range-calendar/range-calendar-header.vue.d.ts +0 -21
- package/dist/components/range-calendar/range-calendar-heading.js +0 -1
- package/dist/components/range-calendar/range-calendar-heading.vue.d.ts +0 -22
- package/dist/components/range-calendar/range-calendar-next.js +0 -1
- package/dist/components/range-calendar/range-calendar-next.vue.d.ts +0 -24
- package/dist/components/range-calendar/range-calendar-prev.js +0 -1
- package/dist/components/range-calendar/range-calendar-prev.vue.d.ts +0 -24
- package/dist/components/range-calendar/range-calendar-root.js +0 -1
- package/dist/components/range-calendar/types.d.ts +0 -488
- package/dist/components/tags-input/tags-input-input.js +0 -1
- package/dist/components/tags-input/tags-input-input.vue.d.ts +0 -21
- package/dist/components/time-picker/context.d.ts +0 -9
- package/dist/components/time-picker/context.js +0 -1
- package/dist/components/time-picker/index.d.ts +0 -6
- package/dist/components/time-picker/index.js +0 -1
- package/dist/components/time-picker/time-picker-popup.js +0 -1
- package/dist/components/time-picker/time-picker-popup.vue.d.ts +0 -27
- package/dist/components/time-picker/time-picker-root.js +0 -1
- package/dist/components/time-picker/time-picker-root.vue.d.ts +0 -45
- package/dist/components/time-picker/time-picker-trigger.js +0 -1
- package/dist/components/time-picker/time-picker-trigger.vue.d.ts +0 -21
- package/dist/components/time-picker/types.d.ts +0 -224
- package/dist/components/time-range-picker/context.d.ts +0 -9
- package/dist/components/time-range-picker/context.js +0 -1
- package/dist/components/time-range-picker/index.d.ts +0 -7
- package/dist/components/time-range-picker/index.js +0 -1
- package/dist/components/time-range-picker/time-range-picker-compact.js +0 -1
- package/dist/components/time-range-picker/time-range-picker-compact.vue.d.ts +0 -31
- package/dist/components/time-range-picker/time-range-picker-popup.js +0 -1
- package/dist/components/time-range-picker/time-range-picker-popup.vue.d.ts +0 -30
- package/dist/components/time-range-picker/time-range-picker-root.js +0 -1
- package/dist/components/time-range-picker/time-range-picker-root.vue.d.ts +0 -50
- package/dist/components/time-range-picker/time-range-picker-trigger.js +0 -1
- package/dist/components/time-range-picker/time-range-picker-trigger.vue.d.ts +0 -21
- package/dist/components/time-range-picker/types.d.ts +0 -304
- package/dist/components/year-picker/context.d.ts +0 -9
- package/dist/components/year-picker/context.js +0 -1
- package/dist/components/year-picker/index.d.ts +0 -6
- package/dist/components/year-picker/index.js +0 -1
- package/dist/components/year-picker/types.d.ts +0 -207
- package/dist/components/year-picker/year-picker-popup.js +0 -1
- package/dist/components/year-picker/year-picker-popup.vue.d.ts +0 -36
- package/dist/components/year-picker/year-picker-root.js +0 -1
- package/dist/components/year-picker/year-picker-root.vue.d.ts +0 -39
- package/dist/components/year-picker/year-picker-trigger.js +0 -1
- package/dist/components/year-picker/year-picker-trigger.vue.d.ts +0 -21
- package/dist/components/year-range-picker/context.d.ts +0 -9
- package/dist/components/year-range-picker/context.js +0 -1
- package/dist/components/year-range-picker/index.d.ts +0 -6
- package/dist/components/year-range-picker/index.js +0 -1
- package/dist/components/year-range-picker/types.d.ts +0 -239
- package/dist/components/year-range-picker/year-range-picker-popup.js +0 -1
- package/dist/components/year-range-picker/year-range-picker-popup.vue.d.ts +0 -39
- package/dist/components/year-range-picker/year-range-picker-root.js +0 -1
- package/dist/components/year-range-picker/year-range-picker-root.vue.d.ts +0 -43
- package/dist/components/year-range-picker/year-range-picker-trigger.js +0 -1
- package/dist/components/year-range-picker/year-range-picker-trigger.vue.d.ts +0 -21
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { UiClass } from "../../types/common.js";
|
|
2
2
|
import { FormFieldCommonProps } from "../../types/component.js";
|
|
3
|
-
import {
|
|
3
|
+
import { BaseProps } from "../../types/vue.js";
|
|
4
|
+
import { ButtonProps } from "../button/types.js";
|
|
5
|
+
import { ComputedRef, ShallowRef, TextareaHTMLAttributes } from "vue";
|
|
4
6
|
|
|
5
7
|
//#region src/components/textarea/types.d.ts
|
|
6
8
|
/**
|
|
@@ -34,7 +36,7 @@ interface TextareaBaseProps {
|
|
|
34
36
|
/**
|
|
35
37
|
* Properties for the TextareaRoot component.
|
|
36
38
|
*/
|
|
37
|
-
interface TextareaRootProps extends TextareaBaseProps, FormFieldCommonProps,
|
|
39
|
+
interface TextareaRootProps extends TextareaBaseProps, FormFieldCommonProps, BaseProps {
|
|
38
40
|
/** The default value of the textarea */
|
|
39
41
|
defaultValue?: string;
|
|
40
42
|
/** The controlled value of the textarea */
|
|
@@ -54,18 +56,106 @@ type TextareaRootEmits = {
|
|
|
54
56
|
/**
|
|
55
57
|
* Properties for the TextareaControl component.
|
|
56
58
|
*/
|
|
57
|
-
interface TextareaControlProps extends
|
|
59
|
+
interface TextareaControlProps extends BaseProps<TextareaHTMLAttributes> {}
|
|
60
|
+
/**
|
|
61
|
+
* Properties for the TextareaClear component.
|
|
62
|
+
*/
|
|
63
|
+
interface TextareaClearProps extends ButtonProps {}
|
|
64
|
+
/**
|
|
65
|
+
* Events for the TextareaClear component.
|
|
66
|
+
*/
|
|
67
|
+
type TextareaClearEmits = {
|
|
68
|
+
/**
|
|
69
|
+
* Emitted when the clear button is clicked.
|
|
70
|
+
*/
|
|
71
|
+
clear: [event: PointerEvent];
|
|
72
|
+
};
|
|
58
73
|
/**
|
|
59
74
|
* Properties for the TextareaCounter component.
|
|
60
75
|
*/
|
|
61
|
-
interface TextareaCounterProps extends
|
|
76
|
+
interface TextareaCounterProps extends BaseProps {}
|
|
62
77
|
/**
|
|
63
78
|
* Available UI slots for the Textarea component.
|
|
64
79
|
*/
|
|
65
|
-
type TextareaUiSlot = 'root' | 'control' | 'counter';
|
|
80
|
+
type TextareaUiSlot = 'root' | 'control' | 'counter' | 'clear';
|
|
66
81
|
/**
|
|
67
82
|
* UI class overrides for the Textarea component.
|
|
68
83
|
*/
|
|
69
84
|
type TextareaUi = UiClass<TextareaUiSlot>;
|
|
85
|
+
/**
|
|
86
|
+
* Slot properties for the TextareaCompact component.
|
|
87
|
+
*/
|
|
88
|
+
interface TextareaCompactSlotProps {
|
|
89
|
+
/**
|
|
90
|
+
* Current model value.
|
|
91
|
+
*/
|
|
92
|
+
modelValue?: string;
|
|
93
|
+
/**
|
|
94
|
+
* Clear handler.
|
|
95
|
+
*/
|
|
96
|
+
clear: () => void;
|
|
97
|
+
/**
|
|
98
|
+
* Current character count.
|
|
99
|
+
*/
|
|
100
|
+
count: number;
|
|
101
|
+
/**
|
|
102
|
+
* Current maxlength.
|
|
103
|
+
*/
|
|
104
|
+
maxlength?: number;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Properties for the TextareaCompact component.
|
|
108
|
+
*/
|
|
109
|
+
interface TextareaCompactProps extends TextareaRootProps {
|
|
110
|
+
/**
|
|
111
|
+
* The function to set the textarea element.
|
|
112
|
+
*/
|
|
113
|
+
textareaRef?: (el: HTMLTextAreaElement) => void;
|
|
114
|
+
/**
|
|
115
|
+
* Whether to show the clear trigger.
|
|
116
|
+
*
|
|
117
|
+
* @defaultValue false
|
|
118
|
+
*/
|
|
119
|
+
clearable?: boolean;
|
|
120
|
+
/**
|
|
121
|
+
* Whether to show the counter.
|
|
122
|
+
*
|
|
123
|
+
* @defaultValue false
|
|
124
|
+
*/
|
|
125
|
+
showCounter?: boolean;
|
|
126
|
+
/**
|
|
127
|
+
* Properties forwarded to the control element.
|
|
128
|
+
*/
|
|
129
|
+
controlProps?: TextareaControlProps;
|
|
130
|
+
/**
|
|
131
|
+
* Properties forwarded to the clear element.
|
|
132
|
+
*/
|
|
133
|
+
clearProps?: TextareaClearProps;
|
|
134
|
+
/**
|
|
135
|
+
* Properties forwarded to the counter element.
|
|
136
|
+
*/
|
|
137
|
+
counterProps?: TextareaCounterProps;
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* Events for the TextareaCompact component.
|
|
141
|
+
*/
|
|
142
|
+
type TextareaCompactEmits = TextareaRootEmits & TextareaClearEmits;
|
|
143
|
+
/**
|
|
144
|
+
* Slots for the TextareaCompact component.
|
|
145
|
+
*/
|
|
146
|
+
type TextareaCompactSlots = {
|
|
147
|
+
/**
|
|
148
|
+
* Custom content for the clear slot.
|
|
149
|
+
*/
|
|
150
|
+
clear?: (props: TextareaCompactSlotProps) => any;
|
|
151
|
+
/**
|
|
152
|
+
* Custom content for the counter slot.
|
|
153
|
+
*/
|
|
154
|
+
counter?: (props: TextareaCompactSlotProps) => any;
|
|
155
|
+
/**
|
|
156
|
+
* Custom content for the footer slot.
|
|
157
|
+
*/
|
|
158
|
+
footer?: (props: TextareaCompactSlotProps) => any;
|
|
159
|
+
};
|
|
70
160
|
//#endregion
|
|
71
|
-
export { TextareaControlProps, TextareaCounterProps, TextareaRootEmits, TextareaRootProps, TextareaUi, TextareaUiSlot };
|
|
161
|
+
export { TextareaClearEmits, TextareaClearProps, TextareaCompactEmits, TextareaCompactProps, TextareaCompactSlotProps, TextareaCompactSlots, TextareaControlProps, TextareaCounterProps, TextareaRootEmits, TextareaRootProps, TextareaUi, TextareaUiSlot };
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { _default } from "./time-field-
|
|
1
|
+
import { DateFieldInputProps } from "../date-field/types.js";
|
|
2
|
+
import { TimeFieldCompactEmits, TimeFieldCompactProps, TimeFieldRootEmits, TimeFieldRootProps, TimeFieldRootSlotProps, TimeFieldRootSlots, TimeFieldUi, TimeFieldUiSlot } from "./types.js";
|
|
3
|
+
import { _default } from "./time-field-compact.vue.js";
|
|
4
|
+
import { _default as _default$2 } from "./time-field-root.vue.js";
|
|
5
|
+
import { _default as _default$1 } from "./time-field-input.vue.js";
|
|
4
6
|
import { provideTimeFieldUi } from "./context.js";
|
|
5
|
-
export { _default as
|
|
7
|
+
export { _default as TimeFieldCompact, type TimeFieldCompactEmits, type TimeFieldCompactProps, _default$1 as TimeFieldInput, type DateFieldInputProps as TimeFieldInputProps, _default$2 as TimeFieldRoot, type TimeFieldRootEmits, type TimeFieldRootProps, type TimeFieldRootSlotProps, type TimeFieldRootSlots, type TimeFieldUi, type TimeFieldUiSlot, provideTimeFieldUi };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{provideTimeFieldUi as e}from"./context.js";import t from"./time-field-
|
|
1
|
+
import{provideTimeFieldUi as e}from"./context.js";import t from"./time-field-input.js";import n from"./time-field-root.js";import r from"./time-field-compact.js";export{r as TimeFieldCompact,t as TimeFieldInput,n as TimeFieldRoot,e as provideTimeFieldUi};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useForwardListeners as e}from"../../composables/use-forward-listeners.js";import{useOmitProps as t}from"../../composables/use-props.js";import"../../composables/index.js";import n from"./time-field-input.js";import r from"./time-field-root.js";import{Fragment as i,createBlock as a,createElementBlock as o,createTextVNode as s,defineComponent as c,mergeProps as l,openBlock as u,renderList as d,toDisplayString as f,toHandlers as p,unref as m,withCtx as h}from"vue";const g=c({name:`TimeFieldCompact`,__name:`time-field-compact`,props:{inputProps:{},defaultValue:{},modelValue:{},defaultPlaceholder:{},placeholder:{},granularity:{},maxValue:{},minValue:{},isTimeUnavailable:{type:Function},id:{},hourCycle:{},step:{},hideTimeZone:{type:Boolean},name:{},required:{type:Boolean},dir:{},locale:{},disabled:{type:Boolean},readonly:{type:Boolean},asChild:{type:Boolean},as:{}},emits:[`update:modelValue`,`update:placeholder`],setup(c,{emit:g}){let _=c,v=g,y=t(_,[`inputProps`]),b=e(v);return(e,t)=>(u(),a(r,l(m(y),p(m(b))),{default:h(e=>[(u(!0),o(i,null,d(e.segments,(e,t)=>(u(),a(n,l({key:`${e.part}-${t}`,part:e.part},{ref_for:!0},c.inputProps),{default:h(()=>[s(f(e.value),1)]),_:2},1040,[`part`]))),128))]),_:1},16))}});export{g as default};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { TimeValue } from "../../date/types.js";
|
|
2
|
+
import { TimeFieldCompactProps } from "./types.js";
|
|
3
|
+
import * as _$vue from "vue";
|
|
4
|
+
|
|
5
|
+
//#region src/components/time-field/time-field-compact.vue.d.ts
|
|
6
|
+
declare const __VLS_export: _$vue.DefineComponent<TimeFieldCompactProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
7
|
+
"update:modelValue": (time: TimeValue | undefined) => any;
|
|
8
|
+
"update:placeholder": (time: TimeValue) => any;
|
|
9
|
+
}, string, _$vue.PublicProps, Readonly<TimeFieldCompactProps> & Readonly<{
|
|
10
|
+
"onUpdate:modelValue"?: ((time: TimeValue | undefined) => any) | undefined;
|
|
11
|
+
"onUpdate:placeholder"?: ((time: TimeValue) => any) | undefined;
|
|
12
|
+
}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { _default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useDateField as e}from"../../date/use-date-field.js";import"../../date/index.js";import{Primitive as t}from"../primitive/primitive.js";import"../primitive/index.js";import{useTimeFieldRootContext as n,useTimeFieldUi as r}from"./context.js";import{computed as i,createBlock as a,defineComponent as o,mergeProps as s,openBlock as c,ref as l,renderSlot as u,toHandlers as d,unref as f,withCtx as p}from"vue";const m=o({name:`TimeFieldInput`,__name:`time-field-input`,props:{part:{},asChild:{type:Boolean},as:{default:`span`}},setup(o){let m=o,h=r(`input`),{disabled:g,readonly:_,placeholder:v,hourCycle:y,step:b,segmentValues:x,formatter:S,focusNext:C,modelValue:w,isInvalid:T,setFocusedElement:E}=n(`TimeFieldInput`),D=l(!0),
|
|
1
|
+
import{useDateField as e}from"../../date/use-date-field.js";import"../../date/index.js";import{Primitive as t}from"../primitive/primitive.js";import"../primitive/index.js";import{useTimeFieldRootContext as n,useTimeFieldUi as r}from"./context.js";import{computed as i,createBlock as a,defineComponent as o,mergeProps as s,openBlock as c,ref as l,renderSlot as u,toHandlers as d,unref as f,withCtx as p}from"vue";const m=o({name:`TimeFieldInput`,__name:`time-field-input`,props:{part:{},asChild:{type:Boolean},as:{default:`span`}},setup(o){let m=o,h=r(`input`),{disabled:g,readonly:_,placeholder:v,hourCycle:y,step:b,segmentValues:x,formatter:S,focusNext:C,modelValue:w,isInvalid:T,setFocusedElement:E}=n(`TimeFieldInput`),D=l(!0),{attributes:O,handleSegmentClick:k,handleSegmentFocusOut:A,handleSegmentKeydown:j}=e({hasLeftFocus:D,lastKeyZero:l(!1),placeholder:v,hourCycle:y,step:b,segmentValues:x,formatter:S,part:m.part,disabled:g,readonly:_,focusNext:C,modelValue:w}),M=i(()=>g.value||_.value?!1:m.part!==`literal`&&m.part!==`timeZoneName`),N=i(()=>m.part===`literal`?{}:{mousedown:k,keydown:j,focusout:()=>{D.value=!0,A()},focusin:e=>{E(e.target)}});return(e,n)=>(c(),a(f(t),s(f(O),{as:o.as,"as-child":o.asChild,"data-soybean-time-field-input":``,"data-soybean-date-field-segment":o.part,class:f(h),"aria-disabled":f(g)?!0:void 0,"aria-invalid":f(T)?!0:void 0,"aria-readonly":f(_)||o.part===`timeZoneName`?!0:void 0,contenteditable:M.value,"data-disabled":f(g)?``:void 0,"data-invalid":f(T)?``:void 0,"data-readonly":f(_)||o.part===`timeZoneName`?``:void 0,"data-segment":o.part},d(N.value)),{default:p(()=>[u(e.$slots,`default`)]),_:3},16,[`as`,`as-child`,`data-soybean-date-field-segment`,`class`,`aria-disabled`,`aria-invalid`,`aria-readonly`,`contenteditable`,`data-disabled`,`data-invalid`,`data-readonly`,`data-segment`]))}});export{m as default};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AsTag } from "../primitive/types.js";
|
|
2
|
-
import {
|
|
2
|
+
import { DateFieldInputProps } from "../date-field/types.js";
|
|
3
3
|
import * as _$vue from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/components/time-field/time-field-input.vue.d.ts
|
|
@@ -7,7 +7,7 @@ declare var __VLS_8: {};
|
|
|
7
7
|
type __VLS_Slots = {} & {
|
|
8
8
|
default?: (props: typeof __VLS_8) => any;
|
|
9
9
|
};
|
|
10
|
-
declare const __VLS_base: _$vue.DefineComponent<
|
|
10
|
+
declare const __VLS_base: _$vue.DefineComponent<DateFieldInputProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<DateFieldInputProps> & Readonly<{}>, {
|
|
11
11
|
as: AsTag | _$vue.Component;
|
|
12
12
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
13
13
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{isNullish as e}from"../../shared/guard.js";import{getDefaultTime as t,isBefore as n,isEqualValue as
|
|
1
|
+
import{isNullish as e}from"../../shared/guard.js";import{getDefaultTime as t,isBefore as n,isEqualValue as r}from"../../date/comparators.js";import{useDateFormatter as i}from"../../date/formatter.js";import{getTimeInputType as a,normalizeDateStep as o,normalizeHourCycle as s,normalizeTimeInputValue as c}from"../../date/utils.js";import{createContent as l,syncTimeSegmentValues as u}from"../../date/parser.js";import{getSegmentElements as d}from"../../date/segment.js";import{useDirection as f,useLocale as p}from"../config-provider/context.js";import{useLocaleMessages as m}from"../../locale/hooks.js";import"../../locale/index.js";import"../../date/index.js";import"../../shared/index.js";import{useControllableState as h}from"../../composables/use-controllable-state.js";import{useForwardElement as g}from"../../composables/use-forward-element.js";import"../../composables/index.js";import{Primitive as _}from"../primitive/primitive.js";import"../primitive/index.js";import v from"../visually-hidden/visually-hidden.js";import"../visually-hidden/index.js";import{provideTimeFieldRootContext as y,useTimeFieldUi as b}from"./context.js";import{computed as x,createBlock as S,createVNode as C,defineComponent as w,nextTick as T,normalizeClass as E,onMounted as D,openBlock as ee,renderSlot as te,shallowRef as O,unref as k,watch as A,withCtx as j}from"vue";const M=w({name:`TimeFieldRoot`,__name:`time-field-root`,props:{defaultValue:{default:void 0},modelValue:{},defaultPlaceholder:{default:void 0},placeholder:{default:void 0},granularity:{default:void 0},maxValue:{},minValue:{},isTimeUnavailable:{type:Function,default:void 0},id:{},hourCycle:{default:void 0},step:{default:void 0},hideTimeZone:{type:Boolean,default:!1},name:{},required:{type:Boolean},dir:{},locale:{},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},asChild:{type:Boolean},as:{}},emits:[`update:modelValue`,`update:placeholder`],setup(w,{emit:M}){let N=w,P=M,F=b(`root`),[I,L]=g(),R=p(()=>N.locale),z=f(()=>N.dir),B=m(),V=i(R.value,{hourCycle:s(N.hourCycle)}),H=h(()=>N.modelValue,e=>P(`update:modelValue`,e),N.defaultValue,!0),ne=t({defaultPlaceholder:N.placeholder,defaultValue:H.value}),U=h(()=>N.placeholder,e=>P(`update:placeholder`,e),N.defaultPlaceholder??ne.copy()),W=x(()=>N.granularity??`minute`),G=x(()=>o(N.step)),K=x(()=>H.value?!!(N.isTimeUnavailable?.(H.value)||N.minValue&&n(H.value,N.minValue)||N.maxValue&&n(N.maxValue,H.value)):!1),q=O(H.value?{...u({value:H.value,formatter:V})}:{...u({value:U.value,formatter:V})}),J=x(()=>l({granularity:W.value,dateRef:U.value,formatter:V,hideTimeZone:N.hideTimeZone,hourCycle:N.hourCycle,segmentValues:q.value,locale:R,isTimeValue:!0,dateMessages:B.value.date}).arr),Y=O([]),X=O(null),Z=()=>{I.value&&(Y.value=d(I.value))};A(R,e=>{V.getLocale()!==e&&V.setLocale(e),T(Z)}),A(H,t=>{!e(t)&&!r(U.value,t)&&(U.value=t.copy())}),A([H,R,W],([t])=>{if(!e(t)){q.value={...u({value:t,formatter:V})};return}q.value={...u({value:U.value,formatter:V})}});let re=x(()=>Y.value.findIndex(e=>e.getAttribute(`data-soybean-date-field-segment`)===X.value?.getAttribute(`data-soybean-date-field-segment`))),Q=e=>{let t=z.value===`rtl`?-1:1,n=e===`next`?t:-t;Y.value[re.value+n]?.focus()},$=x(()=>a(W.value)),ie=x(()=>c(H.value,W.value)),ae=x(()=>N.maxValue?c(N.maxValue,W.value):void 0),oe=x(()=>N.minValue?c(N.minValue,W.value):void 0),se=e=>{e.key!==`ArrowLeft`&&e.key!==`ArrowRight`||(e.preventDefault(),Q(e.key===`ArrowRight`?`next`:`prev`))};return y({modelValue:H,placeholder:U,isTimeUnavailable:N.isTimeUnavailable,isInvalid:K,disabled:x(()=>N.disabled),readonly:x(()=>N.readonly),formatter:V,hourCycle:N.hourCycle,step:G,segmentValues:q,inputType:$,focusNext(){Q(`next`)},setFocusedElement(e){X.value=e}}),D(Z),(e,t)=>(ee(),S(k(_),{ref:k(L),as:w.as,"as-child":w.asChild,"data-soybean-time-field-root":``,class:E(k(F)),"data-disabled":w.disabled?``:void 0,"data-invalid":K.value?``:void 0,"data-readonly":w.readonly?``:void 0,dir:k(z),role:`group`,onKeydown:se},{default:j(()=>[te(e.$slots,`default`,{isInvalid:K.value,modelValue:k(H),segments:J.value}),C(k(v),{id:w.id,as:`input`,feature:`focusable`,type:$.value,tabindex:`-1`,value:ie.value,name:w.name,disabled:w.disabled,required:w.required,max:ae.value,min:oe.value,onFocus:t[0]||(t[0]=e=>Y.value[0]?.focus())},null,8,[`id`,`type`,`value`,`name`,`disabled`,`required`,`max`,`min`])]),_:3},8,[`as`,`as-child`,`class`,`data-disabled`,`data-invalid`,`data-readonly`,`dir`]))}});export{M as default};
|
|
@@ -1,19 +1,9 @@
|
|
|
1
|
-
import { TimeValue } from "../../date/
|
|
2
|
-
import {
|
|
3
|
-
import { TimeFieldRootProps } from "./types.js";
|
|
1
|
+
import { DateStep, TimeGranularity, TimeMatcher, TimeValue } from "../../date/types.js";
|
|
2
|
+
import { TimeFieldRootProps, TimeFieldRootSlots } from "./types.js";
|
|
4
3
|
import * as _$vue from "vue";
|
|
5
4
|
|
|
6
5
|
//#region src/components/time-field/time-field-root.vue.d.ts
|
|
7
|
-
type __VLS_Slots =
|
|
8
|
-
default?: (props: {
|
|
9
|
-
modelValue: TimeValue | undefined;
|
|
10
|
-
segments: {
|
|
11
|
-
part: SegmentPart;
|
|
12
|
-
value: string;
|
|
13
|
-
}[];
|
|
14
|
-
isInvalid: boolean;
|
|
15
|
-
}) => any;
|
|
16
|
-
};
|
|
6
|
+
type __VLS_Slots = TimeFieldRootSlots;
|
|
17
7
|
declare const __VLS_base: _$vue.DefineComponent<TimeFieldRootProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
18
8
|
"update:modelValue": (time: TimeValue | undefined) => any;
|
|
19
9
|
"update:placeholder": (time: TimeValue) => any;
|
|
@@ -26,10 +16,10 @@ declare const __VLS_base: _$vue.DefineComponent<TimeFieldRootProps, {}, {}, {},
|
|
|
26
16
|
step: DateStep;
|
|
27
17
|
defaultValue: TimeValue;
|
|
28
18
|
defaultPlaceholder: TimeValue;
|
|
29
|
-
hourCycle: 12 | 24;
|
|
30
19
|
granularity: TimeGranularity;
|
|
31
|
-
hideTimeZone: boolean;
|
|
32
20
|
readonly: boolean;
|
|
21
|
+
hourCycle: 12 | 24;
|
|
22
|
+
hideTimeZone: boolean;
|
|
33
23
|
isTimeUnavailable: TimeMatcher;
|
|
34
24
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
35
25
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -1,49 +1,33 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { TimeValue } from "../../date/comparators.js";
|
|
6
|
-
import { DateStep, HourCycle, SegmentPart, SegmentValueObj, TimeGranularity, TimeInputType, TimeMatcher } from "../../date/types.js";
|
|
7
|
-
import { Formatter } from "../../date/formatter.js";
|
|
8
|
-
import { ComputedRef, HTMLAttributes, ShallowRef } from "vue";
|
|
1
|
+
import { UiClass } from "../../types/common.js";
|
|
2
|
+
import { TimeGranularity, TimeMatcher, TimeValue } from "../../date/types.js";
|
|
3
|
+
import { DateFieldInputProps, DateFieldRootProps, DateFieldSegment } from "../date-field/types.js";
|
|
4
|
+
import { ComputedRef, ShallowRef } from "vue";
|
|
9
5
|
|
|
10
6
|
//#region src/components/time-field/types.d.ts
|
|
11
7
|
/**
|
|
12
8
|
* Properties for the TimeFieldRoot component.
|
|
13
9
|
*/
|
|
14
|
-
interface TimeFieldRootProps extends
|
|
10
|
+
interface TimeFieldRootProps extends Omit<DateFieldRootProps, 'modelValue' | 'defaultValue' | 'placeholder' | 'defaultPlaceholder' | 'granularity' | 'maxValue' | 'minValue' | 'isDateUnavailable'> {
|
|
15
11
|
/**
|
|
16
|
-
* Default value.
|
|
12
|
+
* Default value for the time field.
|
|
17
13
|
*/
|
|
18
14
|
defaultValue?: TimeValue;
|
|
19
|
-
/**
|
|
20
|
-
* Default placeholder.
|
|
21
|
-
*/
|
|
22
|
-
defaultPlaceholder?: TimeValue;
|
|
23
|
-
/**
|
|
24
|
-
* Placeholder.
|
|
25
|
-
*/
|
|
26
|
-
placeholder?: TimeValue;
|
|
27
15
|
/**
|
|
28
16
|
* Current model value.
|
|
29
17
|
*/
|
|
30
18
|
modelValue?: TimeValue;
|
|
31
19
|
/**
|
|
32
|
-
*
|
|
20
|
+
* Default placeholder.
|
|
33
21
|
*/
|
|
34
|
-
|
|
22
|
+
defaultPlaceholder?: TimeValue;
|
|
35
23
|
/**
|
|
36
|
-
*
|
|
24
|
+
* Placeholder.
|
|
37
25
|
*/
|
|
38
|
-
|
|
26
|
+
placeholder?: TimeValue;
|
|
39
27
|
/**
|
|
40
28
|
* Granularity.
|
|
41
29
|
*/
|
|
42
30
|
granularity?: TimeGranularity;
|
|
43
|
-
/**
|
|
44
|
-
* Whether hide time zone.
|
|
45
|
-
*/
|
|
46
|
-
hideTimeZone?: boolean;
|
|
47
31
|
/**
|
|
48
32
|
* Max value.
|
|
49
33
|
*/
|
|
@@ -52,30 +36,10 @@ interface TimeFieldRootProps extends PrimitiveProps, FormFieldCommonProps, /** @
|
|
|
52
36
|
* Min value.
|
|
53
37
|
*/
|
|
54
38
|
minValue?: TimeValue;
|
|
55
|
-
/**
|
|
56
|
-
* Locale.
|
|
57
|
-
*/
|
|
58
|
-
locale?: string;
|
|
59
|
-
/**
|
|
60
|
-
* Whether the component is disabled.
|
|
61
|
-
*/
|
|
62
|
-
disabled?: boolean;
|
|
63
|
-
/**
|
|
64
|
-
* Whether the component is readonly.
|
|
65
|
-
*/
|
|
66
|
-
readonly?: boolean;
|
|
67
39
|
/**
|
|
68
40
|
* Whether the time is unavailable.
|
|
69
41
|
*/
|
|
70
42
|
isTimeUnavailable?: TimeMatcher;
|
|
71
|
-
/**
|
|
72
|
-
* Id.
|
|
73
|
-
*/
|
|
74
|
-
id?: string;
|
|
75
|
-
/**
|
|
76
|
-
* Reading direction of the component.
|
|
77
|
-
*/
|
|
78
|
-
dir?: Direction;
|
|
79
43
|
}
|
|
80
44
|
/**
|
|
81
45
|
* Events for the TimeFieldRoot component.
|
|
@@ -91,104 +55,41 @@ type TimeFieldRootEmits = {
|
|
|
91
55
|
'update:placeholder': [time: TimeValue];
|
|
92
56
|
};
|
|
93
57
|
/**
|
|
94
|
-
*
|
|
58
|
+
* Slot properties for the TimeFieldRoot component.
|
|
95
59
|
*/
|
|
96
|
-
interface
|
|
60
|
+
interface TimeFieldRootSlotProps {
|
|
97
61
|
/**
|
|
98
|
-
*
|
|
62
|
+
* Current model value.
|
|
99
63
|
*/
|
|
100
|
-
|
|
101
|
-
}
|
|
102
|
-
/**
|
|
103
|
-
* Type information for TimeFieldSegment.
|
|
104
|
-
*/
|
|
105
|
-
interface TimeFieldSegment {
|
|
64
|
+
modelValue: TimeValue | undefined;
|
|
106
65
|
/**
|
|
107
|
-
*
|
|
66
|
+
* Segments used by the default slot.
|
|
108
67
|
*/
|
|
109
|
-
|
|
68
|
+
segments: DateFieldSegment[];
|
|
110
69
|
/**
|
|
111
|
-
*
|
|
70
|
+
* Whether the current value is invalid.
|
|
112
71
|
*/
|
|
113
|
-
|
|
72
|
+
isInvalid: boolean;
|
|
114
73
|
}
|
|
115
74
|
/**
|
|
116
|
-
*
|
|
75
|
+
* Slots for the TimeFieldRoot component.
|
|
117
76
|
*/
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
*/
|
|
126
|
-
dir: ComputedRef<Direction>;
|
|
127
|
-
/**
|
|
128
|
-
* Current model value.
|
|
129
|
-
*/
|
|
130
|
-
modelValue: ShallowRef<TimeValue | undefined>;
|
|
131
|
-
/**
|
|
132
|
-
* Placeholder used by the component context.
|
|
133
|
-
*/
|
|
134
|
-
placeholder: ShallowRef<TimeValue>;
|
|
135
|
-
/**
|
|
136
|
-
* Whether the time is unavailable.
|
|
137
|
-
*/
|
|
138
|
-
isTimeUnavailable?: TimeMatcher;
|
|
139
|
-
/**
|
|
140
|
-
* Whether the current value is invalid.
|
|
141
|
-
*/
|
|
142
|
-
isInvalid: ComputedRef<boolean>;
|
|
143
|
-
/**
|
|
144
|
-
* Formatter used by the component context.
|
|
145
|
-
*/
|
|
146
|
-
formatter: Formatter;
|
|
147
|
-
/**
|
|
148
|
-
* Hour cycle used by the component context.
|
|
149
|
-
*/
|
|
150
|
-
hourCycle: HourCycle;
|
|
151
|
-
/**
|
|
152
|
-
* Step used by the component context.
|
|
153
|
-
*/
|
|
154
|
-
step: ComputedRef<DateStep>;
|
|
155
|
-
/**
|
|
156
|
-
* Segment values used by the component context.
|
|
157
|
-
*/
|
|
158
|
-
segmentValues: ShallowRef<SegmentValueObj>;
|
|
159
|
-
/**
|
|
160
|
-
* Segment contents used by the component context.
|
|
161
|
-
*/
|
|
162
|
-
segmentContents: ComputedRef<TimeFieldSegment[]>;
|
|
163
|
-
/**
|
|
164
|
-
* Input type used by the component context.
|
|
165
|
-
*/
|
|
166
|
-
inputType: ComputedRef<TimeInputType>;
|
|
167
|
-
/**
|
|
168
|
-
* Input value used by the component context.
|
|
169
|
-
*/
|
|
170
|
-
inputValue: ComputedRef<string>;
|
|
171
|
-
/**
|
|
172
|
-
* Input max value used by the component context.
|
|
173
|
-
*/
|
|
174
|
-
inputMaxValue: ComputedRef<string | undefined>;
|
|
175
|
-
/**
|
|
176
|
-
* Input min value used by the component context.
|
|
177
|
-
*/
|
|
178
|
-
inputMinValue: ComputedRef<string | undefined>;
|
|
179
|
-
/**
|
|
180
|
-
* Elements used by the component context.
|
|
181
|
-
*/
|
|
182
|
-
elements: ShallowRef<HTMLElement[]>;
|
|
183
|
-
/**
|
|
184
|
-
* Focus next used by the component context.
|
|
185
|
-
*/
|
|
186
|
-
focusNext: () => void;
|
|
77
|
+
type TimeFieldRootSlots = {
|
|
78
|
+
default?: (props: TimeFieldRootSlotProps) => any;
|
|
79
|
+
};
|
|
80
|
+
/**
|
|
81
|
+
* Properties for the time field compact component.
|
|
82
|
+
*/
|
|
83
|
+
interface TimeFieldCompactProps extends TimeFieldRootProps {
|
|
187
84
|
/**
|
|
188
|
-
*
|
|
85
|
+
* Properties forwarded to the input element.
|
|
189
86
|
*/
|
|
190
|
-
|
|
87
|
+
inputProps?: DateFieldInputProps;
|
|
191
88
|
}
|
|
89
|
+
/**
|
|
90
|
+
* Events for the time field compact component.
|
|
91
|
+
*/
|
|
92
|
+
type TimeFieldCompactEmits = TimeFieldRootEmits;
|
|
192
93
|
/**
|
|
193
94
|
* Available UI slots for the TimeField component.
|
|
194
95
|
*/
|
|
@@ -198,4 +99,4 @@ type TimeFieldUiSlot = 'root' | 'input';
|
|
|
198
99
|
*/
|
|
199
100
|
type TimeFieldUi = UiClass<TimeFieldUiSlot>;
|
|
200
101
|
//#endregion
|
|
201
|
-
export {
|
|
102
|
+
export { TimeFieldCompactEmits, TimeFieldCompactProps, TimeFieldRootEmits, TimeFieldRootProps, TimeFieldRootSlotProps, TimeFieldRootSlots, TimeFieldUi, TimeFieldUiSlot };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { TimeRangeFieldCompactEmits, TimeRangeFieldCompactProps, TimeRangeFieldCompactSlots, TimeRangeFieldInputProps,
|
|
1
|
+
import { TimeRangeFieldCompactEmits, TimeRangeFieldCompactProps, TimeRangeFieldCompactSlots, TimeRangeFieldInputProps, TimeRangeFieldRootEmits, TimeRangeFieldRootProps, TimeRangeFieldRootSlots, TimeRangeFieldSlotProps, TimeRangeFieldUi, TimeRangeFieldUiSlot } from "./types.js";
|
|
2
2
|
import { _default } from "./time-range-field-compact.vue.js";
|
|
3
3
|
import { _default as _default$2 } from "./time-range-field-root.vue.js";
|
|
4
4
|
import { _default as _default$1 } from "./time-range-field-input.vue.js";
|
|
5
5
|
import { provideTimeRangeFieldUi } from "./context.js";
|
|
6
|
-
export { _default as TimeRangeFieldCompact, type TimeRangeFieldCompactEmits, type TimeRangeFieldCompactProps, type TimeRangeFieldCompactSlots, _default$1 as TimeRangeFieldInput, type TimeRangeFieldInputProps, _default$2 as TimeRangeFieldRoot, type
|
|
6
|
+
export { _default as TimeRangeFieldCompact, type TimeRangeFieldCompactEmits, type TimeRangeFieldCompactProps, type TimeRangeFieldCompactSlots, _default$1 as TimeRangeFieldInput, type TimeRangeFieldInputProps, _default$2 as TimeRangeFieldRoot, type TimeRangeFieldRootEmits, type TimeRangeFieldRootProps, type TimeRangeFieldRootSlots, type TimeRangeFieldSlotProps, type TimeRangeFieldUi, type TimeRangeFieldUiSlot, provideTimeRangeFieldUi };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useForwardListeners as e}from"../../composables/use-forward-listeners.js";import{useOmitProps as t}from"../../composables/use-props.js";import"../../composables/index.js";import{useTimeRangeFieldUi as n}from"./context.js";import r from"./time-range-field-root.js";import i from"./time-range-field-input.js";import{Fragment as a,createBlock as o,createElementBlock as s,createElementVNode as c,createTextVNode as l,defineComponent as u,mergeProps as d,normalizeClass as f,
|
|
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{useTimeRangeFieldUi as n}from"./context.js";import r from"./time-range-field-root.js";import i from"./time-range-field-input.js";import{Fragment as a,createBlock as o,createElementBlock as s,createElementVNode as c,createTextVNode as l,defineComponent as u,mergeProps as d,normalizeClass as f,openBlock as p,renderList as m,renderSlot as h,toDisplayString as g,toHandlers as _,unref as v,withCtx as y}from"vue";const b=u({name:`TimeRangeFieldCompact`,__name:`time-range-field-compact`,props:{inputProps:{},separator:{default:`–`},defaultValue:{},modelValue:{},startName:{},endName:{},defaultPlaceholder:{},placeholder:{},granularity:{},maxValue:{},minValue:{},isTimeUnavailable:{},id:{},hourCycle:{},step:{},hideTimeZone:{type:Boolean},name:{},required:{type:Boolean},dir:{},locale:{},disabled:{type:Boolean},readonly:{type:Boolean},asChild:{type:Boolean},as:{}},emits:[`update:modelValue`,`update:placeholder`,`update:startValue`,`update:endValue`],setup(u,{emit:b}){let x=u,S=b,C=t(x,[`inputProps`,`separator`]),w=e(S),T=n();return(e,t)=>(p(),o(r,d(v(C),_(v(w))),{default:y(t=>[h(e.$slots,`leading`),c(`div`,{"data-time-range-field-part":`start`,class:f(v(T).startRoot)},[(p(!0),s(a,null,m(t.startSegments,(e,t)=>(p(),o(i,d({key:`start-${e.part}-${t}`,part:e.part,type:`start`},{ref_for:!0},u.inputProps),{default:y(()=>[l(g(e.value),1)]),_:2},1040,[`part`]))),128))],2),c(`div`,{class:f(v(T).separator)},[h(e.$slots,`separator`,{},()=>[l(g(u.separator),1)])],2),c(`div`,{"data-time-range-field-part":`end`,class:f(v(T).endRoot)},[(p(!0),s(a,null,m(t.endSegments,(e,t)=>(p(),o(i,d({key:`end-${e.part}-${t}`,part:e.part,type:`end`},{ref_for:!0},u.inputProps),{default:y(()=>[l(g(e.value),1)]),_:2},1040,[`part`]))),128))],2),h(e.$slots,`trailing`)]),_:3},16))}});export{b as default};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { TimeValue } from "../../date/
|
|
2
|
-
import { TimeRange } from "../../date/types.js";
|
|
1
|
+
import { TimeRange, TimeValue } from "../../date/types.js";
|
|
3
2
|
import { TimeRangeFieldCompactProps, TimeRangeFieldCompactSlots } from "./types.js";
|
|
4
3
|
import * as _$vue from "vue";
|
|
5
4
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useDateField as e}from"../../date/use-date-field.js";import"../../date/index.js";import{Primitive as t}from"../primitive/primitive.js";import"../primitive/index.js";import{useTimeRangeFieldRootContext as n,useTimeRangeFieldUi as r}from"./context.js";import{computed as i,createBlock as a,defineComponent as o,mergeProps as s,openBlock as c,ref as l,renderSlot as u,toHandlers as d,unref as f,withCtx as p}from"vue";const m=o({name:`TimeRangeFieldInput`,__name:`time-range-field-input`,props:{
|
|
1
|
+
import{useDateField as e}from"../../date/use-date-field.js";import"../../date/index.js";import{Primitive as t}from"../primitive/primitive.js";import"../primitive/index.js";import{useTimeRangeFieldRootContext as n,useTimeRangeFieldUi as r}from"./context.js";import{computed as i,createBlock as a,defineComponent as o,mergeProps as s,openBlock as c,ref as l,renderSlot as u,toHandlers as d,unref as f,withCtx as p}from"vue";const m=o({name:`TimeRangeFieldInput`,__name:`time-range-field-input`,props:{type:{default:`start`},part:{},asChild:{type:Boolean},as:{default:`span`}},setup(o){let m=o,h=r(`input`),{modelValue:g,disabled:_,readonly:v,placeholder:y,hourCycle:b,step:x,startSegmentValues:S,endSegmentValues:C,formatter:w,isInvalid:T,focusNext:E,setFocusedElement:D}=n(`TimeRangeFieldInput`),O=l(!0),{attributes:k,handleSegmentClick:A,handleSegmentFocusOut:j,handleSegmentKeydown:M}=e({hasLeftFocus:O,lastKeyZero:l(!1),placeholder:y,hourCycle:b,step:x,segmentValues:i(()=>m.type===`start`?S.value:C.value),formatter:w,part:m.part,disabled:_,readonly:v,focusNext:()=>E(m.type),modelValue:i({get:()=>m.type===`start`?g.value.start:g.value.end,set:e=>{m.type===`start`?g.value={...g.value,start:e}:g.value={...g.value,end:e}}})}),N=i(()=>_.value||v.value?!1:m.part!==`literal`&&m.part!==`timeZoneName`),P=i(()=>m.part===`literal`?{}:{mousedown:A,keydown:M,focusout:()=>{O.value=!0,j()},focusin:e=>{D(e.target,m.type)}});return(e,n)=>(c(),a(f(t),s(f(k),{as:o.as,"as-child":o.asChild,"data-soybean-time-range-field-input":``,"data-soybean-date-field-segment":o.part,class:f(h),"aria-disabled":f(_)?!0:void 0,"aria-invalid":f(T)?!0:void 0,"aria-readonly":f(v)||o.part===`timeZoneName`?!0:void 0,contenteditable:N.value,"data-disabled":f(_)?``:void 0,"data-invalid":f(T)?``:void 0,"data-readonly":f(v)||o.part===`timeZoneName`?``:void 0,"data-segment":o.part},d(P.value)),{default:p(()=>[u(e.$slots,`default`)]),_:3},16,[`as`,`as-child`,`data-soybean-date-field-segment`,`class`,`aria-disabled`,`aria-invalid`,`aria-readonly`,`contenteditable`,`data-disabled`,`data-invalid`,`data-readonly`,`data-segment`]))}});export{m as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{isNullish as e}from"../../shared/guard.js";import{getDefaultTime as t,isBefore as n,isEqualValue as r}from"../../date/comparators.js";import{getTimeInputType as
|
|
1
|
+
import{isNullish as e}from"../../shared/guard.js";import{getDefaultTime as t,isBefore as n,isEqualValue as r}from"../../date/comparators.js";import{useDateFormatter as i}from"../../date/formatter.js";import{getTimeInputType as a,normalizeDateStep as ee,normalizeHourCycle as te,normalizeTimeInputValue as o}from"../../date/utils.js";import{createContent as s,syncTimeSegmentValues as c}from"../../date/parser.js";import{getSegmentElements as l}from"../../date/segment.js";import{useDirection as ne,useLocale as re}from"../config-provider/context.js";import{useLocaleMessages as ie}from"../../locale/hooks.js";import"../../locale/index.js";import"../../date/index.js";import"../../shared/index.js";import{useControllableState as u}from"../../composables/use-controllable-state.js";import{useForwardElement as d}from"../../composables/use-forward-element.js";import"../../composables/index.js";import{Primitive as f}from"../primitive/primitive.js";import"../primitive/index.js";import p from"../visually-hidden/visually-hidden.js";import"../visually-hidden/index.js";import{provideTimeRangeFieldRootContext as m,useTimeRangeFieldUi as h}from"./context.js";import{computed as g,createBlock as ae,createVNode as _,defineComponent as v,nextTick as y,normalizeClass as oe,onMounted as b,openBlock as x,renderSlot as se,shallowRef as S,unref as C,watch as w,withCtx as T}from"vue";const E=v({name:`TimeRangeFieldRoot`,__name:`time-range-field-root`,props:{defaultValue:{default:void 0},modelValue:{},startName:{default:void 0},endName:{default:void 0},defaultPlaceholder:{default:void 0},placeholder:{default:void 0},granularity:{default:void 0},maxValue:{},minValue:{},isTimeUnavailable:{type:Function,default:void 0},id:{},hourCycle:{default:void 0},step:{default:void 0},hideTimeZone:{type:Boolean,default:!1},name:{},required:{type:Boolean},dir:{},locale:{},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},asChild:{type:Boolean},as:{}},emits:[`update:modelValue`,`update:placeholder`,`update:startValue`,`update:endValue`],setup(v,{emit:E}){let D=v,O=E,ce=h(`root`),[k,le]=d(),A=re(()=>D.locale),j=ne(()=>D.dir),M=ie(),N=i(A.value,{hourCycle:te(D.hourCycle)}),P=u(()=>D.modelValue,e=>{O(`update:modelValue`,e),O(`update:startValue`,e.start),O(`update:endValue`,e.end)},D.defaultValue??{}),F=t({defaultPlaceholder:D.placeholder,defaultValue:P.value.start}),I=u(()=>D.placeholder,e=>O(`update:placeholder`,e),D.defaultPlaceholder??F.copy()),L=g(()=>ee(D.step)),R=g(()=>D.granularity??`minute`),z=g(()=>{let{start:e,end:t}=P.value;return!!(e&&t&&n(t,e)||e&&(D.isTimeUnavailable?.(e)||D.minValue&&n(e,D.minValue)||D.maxValue&&n(D.maxValue,e))||t&&(D.isTimeUnavailable?.(t)||D.minValue&&n(t,D.minValue)||D.maxValue&&n(D.maxValue,t)))}),B=S(P.value.start?{...c({value:P.value.start,formatter:N})}:{...c({value:I.value,formatter:N})}),V=S(P.value.end?{...c({value:P.value.end,formatter:N})}:{...c({value:I.value,formatter:N})}),H=g(()=>s({granularity:R.value,dateRef:I.value,formatter:N,hideTimeZone:D.hideTimeZone,hourCycle:D.hourCycle,segmentValues:B.value,locale:A,isTimeValue:!0,dateMessages:M.value.date}).arr),U=g(()=>s({granularity:R.value,dateRef:I.value,formatter:N,hideTimeZone:D.hideTimeZone,hourCycle:D.hourCycle,segmentValues:V.value,locale:A,isTimeValue:!0,dateMessages:M.value.date}).arr),W=S([]),G=S([]),K=S(null),q=S(`start`),J=()=>{if(!k.value)return;let e=k.value.querySelector(`[data-time-range-field-part="start"]`),t=k.value.querySelector(`[data-time-range-field-part="end"]`);e&&(W.value=l(e)),t&&(G.value=l(t))};w(A,e=>{N.getLocale()!==e&&N.setLocale(e),y(J)}),w(()=>P.value.start,t=>{!e(t)&&!r(I.value,t)&&(I.value=t.copy())}),w([()=>P.value.start,A,R],([t])=>{if(!e(t)){B.value={...c({value:t,formatter:N})};return}B.value={...c({value:I.value,formatter:N})}}),w([()=>P.value.end,A,R],([t])=>{if(!e(t)){V.value={...c({value:t,formatter:N})};return}V.value={...c({value:I.value,formatter:N})}});let Y=g(()=>(q.value===`start`?W.value:G.value).findIndex(e=>e.getAttribute(`data-soybean-date-field-segment`)===K.value?.getAttribute(`data-soybean-date-field-segment`))),X=(e,t)=>{let n=j.value===`rtl`?-1:1,r=t===`next`?n:-n,i=e===`start`?W.value:G.value,a=Y.value+r;a>=0&&a<i.length?i[a]?.focus():t===`next`&&e===`start`&&G.value.length>0?(q.value=`end`,G.value[0]?.focus()):t===`prev`&&e===`end`&&W.value.length>0&&(q.value=`start`,W.value[W.value.length-1]?.focus())},Z=g(()=>a(R.value)),ue=g(()=>o(P.value.start,R.value)),de=g(()=>o(P.value.end,R.value)),Q=g(()=>D.maxValue?o(D.maxValue,R.value):void 0),$=g(()=>D.minValue?o(D.minValue,R.value):void 0),fe=e=>{e.key!==`ArrowLeft`&&e.key!==`ArrowRight`||(e.preventDefault(),X(q.value,e.key===`ArrowRight`?`next`:`prev`))};return m({modelValue:P,placeholder:I,isInvalid:z,disabled:g(()=>D.disabled),readonly:g(()=>D.readonly),formatter:N,hourCycle:D.hourCycle,step:L,startSegmentValues:B,endSegmentValues:V,focusNext(e){X(e,`next`)},setFocusedElement(e,t){K.value=e,q.value=t}}),b(J),(e,t)=>(x(),ae(C(f),{ref:C(le),as:v.as,"as-child":v.asChild,"data-soybean-time-range-field-root":``,class:oe(C(ce)),"data-disabled":v.disabled?``:void 0,"data-invalid":z.value?``:void 0,"data-readonly":v.readonly?``:void 0,dir:C(j),role:`group`,onKeydown:fe},{default:T(()=>[se(e.$slots,`default`,{modelValue:C(P),startSegments:H.value,endSegments:U.value,isInvalid:z.value}),_(C(p),{id:v.id,as:`input`,feature:`focusable`,type:Z.value,tabindex:`-1`,value:ue.value,name:v.startName||v.name,disabled:v.disabled,required:v.required,max:Q.value,min:$.value,onFocus:t[0]||(t[0]=e=>W.value[0]?.focus())},null,8,[`id`,`type`,`value`,`name`,`disabled`,`required`,`max`,`min`]),_(C(p),{as:`input`,feature:`focusable`,type:Z.value,tabindex:`-1`,value:de.value,name:v.endName,disabled:v.disabled,required:v.required,max:Q.value,min:$.value,onFocus:t[1]||(t[1]=e=>G.value[0]?.focus())},null,8,[`type`,`value`,`name`,`disabled`,`required`,`max`,`min`])]),_:3},8,[`as`,`as-child`,`class`,`data-disabled`,`data-invalid`,`data-readonly`,`dir`]))}});export{E as default};
|
|
@@ -1,23 +1,9 @@
|
|
|
1
|
-
import { TimeValue } from "../../date/
|
|
2
|
-
import {
|
|
3
|
-
import { TimeRangeFieldRootProps } from "./types.js";
|
|
1
|
+
import { DateStep, TimeGranularity, TimeMatcher, TimeRange, TimeValue } from "../../date/types.js";
|
|
2
|
+
import { TimeRangeFieldRootProps, TimeRangeFieldRootSlots } from "./types.js";
|
|
4
3
|
import * as _$vue from "vue";
|
|
5
4
|
|
|
6
5
|
//#region src/components/time-range-field/time-range-field-root.vue.d.ts
|
|
7
|
-
type __VLS_Slots =
|
|
8
|
-
default?: (props: {
|
|
9
|
-
modelValue: TimeRange;
|
|
10
|
-
startSegments: {
|
|
11
|
-
part: SegmentPart;
|
|
12
|
-
value: string;
|
|
13
|
-
}[];
|
|
14
|
-
endSegments: {
|
|
15
|
-
part: SegmentPart;
|
|
16
|
-
value: string;
|
|
17
|
-
}[];
|
|
18
|
-
isInvalid: boolean;
|
|
19
|
-
}) => any;
|
|
20
|
-
};
|
|
6
|
+
type __VLS_Slots = TimeRangeFieldRootSlots;
|
|
21
7
|
declare const __VLS_base: _$vue.DefineComponent<TimeRangeFieldRootProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
22
8
|
"update:modelValue": (range: TimeRange) => any;
|
|
23
9
|
"update:placeholder": (time: TimeValue) => any;
|
|
@@ -34,13 +20,13 @@ declare const __VLS_base: _$vue.DefineComponent<TimeRangeFieldRootProps, {}, {},
|
|
|
34
20
|
step: DateStep;
|
|
35
21
|
defaultValue: TimeRange;
|
|
36
22
|
defaultPlaceholder: TimeValue;
|
|
37
|
-
hourCycle: 12 | 24;
|
|
38
23
|
granularity: TimeGranularity;
|
|
39
|
-
hideTimeZone: boolean;
|
|
40
24
|
readonly: boolean;
|
|
25
|
+
hourCycle: 12 | 24;
|
|
26
|
+
hideTimeZone: boolean;
|
|
27
|
+
isTimeUnavailable: TimeMatcher;
|
|
41
28
|
startName: string;
|
|
42
29
|
endName: string;
|
|
43
|
-
isTimeUnavailable: TimeMatcher;
|
|
44
30
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
45
31
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
46
32
|
declare const _default: typeof __VLS_export;
|