@@ -44,9 +44,10 @@ type DateRangePickerRootContext = {
4444 dir: Ref <Direction >
4545 allowNonContiguousRanges: Ref <boolean >
4646 fixedDate: Ref <' start' | ' end' | undefined >
47+ maximumDays? : Ref <number | undefined >
4748}
4849
49- export type DateRangePickerRootProps = DateRangeFieldRootProps & PopoverRootProps & Pick <RangeCalendarRootProps , ' isDateDisabled' | ' pagedNavigation' | ' weekStartsOn' | ' weekdayFormat' | ' fixedWeeks' | ' numberOfMonths' | ' preventDeselect' | ' isDateUnavailable' | ' isDateHighlightable' | ' allowNonContiguousRanges' | ' fixedDate' >
50+ export type DateRangePickerRootProps = DateRangeFieldRootProps & PopoverRootProps & Pick <RangeCalendarRootProps , ' isDateDisabled' | ' pagedNavigation' | ' weekStartsOn' | ' weekdayFormat' | ' fixedWeeks' | ' numberOfMonths' | ' preventDeselect' | ' isDateUnavailable' | ' isDateHighlightable' | ' allowNonContiguousRanges' | ' fixedDate' | ' maximumDays ' >
5051
5152export type DateRangePickerRootEmits = {
5253 /** Event handler called whenever the model value changes */
@@ -88,6 +89,7 @@ const props = withDefaults(defineProps<DateRangePickerRootProps>(), {
8889 isDateUnavailable: undefined ,
8990 isDateHighlightable: undefined ,
9091 allowNonContiguousRanges: false ,
92+ maximumDays: undefined ,
9193})
9294const emits = defineEmits <DateRangePickerRootEmits & PopoverRootEmits >()
9395const {
@@ -116,6 +118,7 @@ const {
116118 dir : propsDir,
117119 allowNonContiguousRanges,
118120 fixedDate,
121+ maximumDays,
119122} = toRefs (props )
120123
121124const dir = useDirection (propsDir )
@@ -180,6 +183,7 @@ provideDateRangePickerRootContext({
180183 dateFieldRef ,
181184 dir ,
182185 fixedDate ,
186+ maximumDays ,
183187 onStartValueChange(date : DateValue | undefined ) {
184188 emits (' update:startValue' , date )
185189 },
0 commit comments