mirror of
https://github.com/Tria-plc/emaui.git
synced 2026-08-30 06:28:13 +00:00
132 lines
2.6 KiB
JavaScript
132 lines
2.6 KiB
JavaScript
'use client';
|
|
function pickCalendarProps(props) {
|
|
const {
|
|
maxLevel,
|
|
minLevel,
|
|
defaultLevel,
|
|
level,
|
|
onLevelChange,
|
|
nextIcon,
|
|
previousIcon,
|
|
date,
|
|
defaultDate,
|
|
onDateChange,
|
|
numberOfColumns,
|
|
columnsToScroll,
|
|
ariaLabels,
|
|
nextLabel,
|
|
previousLabel,
|
|
onYearSelect,
|
|
onMonthSelect,
|
|
onYearMouseEnter,
|
|
onMonthMouseEnter,
|
|
onNextMonth,
|
|
onPreviousMonth,
|
|
onNextYear,
|
|
onPreviousYear,
|
|
onNextDecade,
|
|
onPreviousDecade,
|
|
withCellSpacing,
|
|
highlightToday,
|
|
__updateDateOnYearSelect,
|
|
__updateDateOnMonthSelect,
|
|
__setDateRef,
|
|
__setLevelRef,
|
|
withWeekNumbers,
|
|
headerControlsOrder,
|
|
// MonthLevelGroup props
|
|
firstDayOfWeek,
|
|
weekdayFormat,
|
|
weekendDays,
|
|
getDayProps,
|
|
excludeDate,
|
|
renderDay,
|
|
hideOutsideDates,
|
|
hideWeekdays,
|
|
getDayAriaLabel,
|
|
monthLabelFormat,
|
|
// YearLevelGroup props
|
|
monthsListFormat,
|
|
getMonthControlProps,
|
|
yearLabelFormat,
|
|
// DecadeLevelGroup props
|
|
yearsListFormat,
|
|
getYearControlProps,
|
|
decadeLabelFormat,
|
|
// External picker props
|
|
allowSingleDateInRange,
|
|
allowDeselect,
|
|
// Other props
|
|
minDate,
|
|
maxDate,
|
|
locale,
|
|
...others
|
|
} = props;
|
|
return {
|
|
calendarProps: {
|
|
maxLevel,
|
|
minLevel,
|
|
defaultLevel,
|
|
level,
|
|
onLevelChange,
|
|
nextIcon,
|
|
previousIcon,
|
|
date,
|
|
defaultDate,
|
|
onDateChange,
|
|
numberOfColumns,
|
|
columnsToScroll,
|
|
ariaLabels,
|
|
nextLabel,
|
|
previousLabel,
|
|
onYearSelect,
|
|
onMonthSelect,
|
|
onYearMouseEnter,
|
|
onMonthMouseEnter,
|
|
onNextMonth,
|
|
onPreviousMonth,
|
|
onNextYear,
|
|
onPreviousYear,
|
|
onNextDecade,
|
|
onPreviousDecade,
|
|
withCellSpacing,
|
|
highlightToday,
|
|
__updateDateOnYearSelect,
|
|
__updateDateOnMonthSelect,
|
|
__setDateRef,
|
|
withWeekNumbers,
|
|
headerControlsOrder,
|
|
// MonthLevelGroup props
|
|
firstDayOfWeek,
|
|
weekdayFormat,
|
|
weekendDays,
|
|
getDayProps,
|
|
excludeDate,
|
|
renderDay,
|
|
hideOutsideDates,
|
|
hideWeekdays,
|
|
getDayAriaLabel,
|
|
monthLabelFormat,
|
|
// YearLevelGroup props
|
|
monthsListFormat,
|
|
getMonthControlProps,
|
|
yearLabelFormat,
|
|
// DecadeLevelGroup props
|
|
yearsListFormat,
|
|
getYearControlProps,
|
|
decadeLabelFormat,
|
|
// External picker props
|
|
allowSingleDateInRange,
|
|
allowDeselect,
|
|
// Other props
|
|
minDate,
|
|
maxDate,
|
|
locale
|
|
},
|
|
others
|
|
};
|
|
}
|
|
|
|
export { pickCalendarProps };
|
|
//# sourceMappingURL=pick-calendar-levels-props.mjs.map
|