2022-09-12 07:13:52 +00:00
const CalendarProps = [
{
2022-09-14 14:26:41 +00:00
name : 'modelValue' ,
type : 'any' ,
default : 'null' ,
description : 'Value of the component.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'selectionMode' ,
type : 'string' ,
default : 'single' ,
2022-09-12 07:13:52 +00:00
description : 'Defines the quantity of the selection, valid values are "single", "multiple" and "range".'
} ,
{
2022-09-14 14:26:41 +00:00
name : 'dateFormat' ,
type : 'string' ,
default : 'null' ,
description : 'Format of the date. Defaults to PrimeVue Locale configuration.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'inline' ,
type : 'boolean' ,
default : 'false' ,
description : 'When enabled, displays the calendar as inline instead of an overlay.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'showOtherMonths' ,
type : 'boolean' ,
default : 'true' ,
description : 'Whether to display dates in other months (non-selectable) at the start or end of the current month. To make these days selectable use the selectOtherMonths option.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'selectOtherMonths' ,
type : 'boolean' ,
default : 'false' ,
description : 'Whether days in other months shown before or after the current month are selectable. This only applies if the showOtherMonths option is set to true.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'showIcon' ,
type : 'boolean' ,
default : 'false' ,
description : 'When enabled, displays a button with icon next to input.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'icon' ,
type : 'string' ,
2023-04-06 08:19:46 +00:00
default : 'null' ,
2022-09-14 14:26:41 +00:00
description : 'Icon of the calendar button.'
2022-09-12 07:13:52 +00:00
} ,
2023-04-06 08:19:46 +00:00
{
name : 'previousIcon' ,
type : 'string' ,
default : 'null' ,
description : 'Icon to show in the previous button.'
} ,
{
name : 'nextIcon' ,
type : 'string' ,
default : 'null' ,
description : 'Icon to show in the next button.'
} ,
{
name : 'incrementIcon' ,
type : 'string' ,
default : 'null' ,
description : 'Icon to show in each of the increment buttons.'
} ,
{
name : 'decrementIcon' ,
type : 'string' ,
default : 'null' ,
description : 'Icon to show in each of the decrement buttons.'
} ,
2022-09-12 07:13:52 +00:00
{
2022-09-14 14:26:41 +00:00
name : 'numberOfMonths' ,
type : 'number' ,
default : '1' ,
description : 'Number of months to display.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'view' ,
type : 'string' ,
default : 'date' ,
2022-09-12 07:13:52 +00:00
description : 'Type of view to display, valid valids are "date" for datepicker and "month" for month picker.'
} ,
{
2022-09-14 14:26:41 +00:00
name : 'touchUI' ,
type : 'boolean' ,
default : 'false' ,
description : 'When enabled, calendar overlay is displayed as optimized for touch devices.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'monthNavigator' ,
type : 'boolean' ,
default : 'false' ,
description : 'Whether the month should be rendered as a dropdown instead of text.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'yearNavigator' ,
type : 'boolean' ,
default : 'false' ,
description : 'Whether the year should be rendered as a dropdown instead of text.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'yearRange' ,
type : 'string' ,
default : 'null' ,
description : 'The range of years displayed in the year drop-down in (nnnn:nnnn) format such as (2000:2020).'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'panelClass' ,
type : 'string' ,
default : 'null' ,
description : 'Style class of the datetimepicker panel.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'minDate' ,
type : 'Date' ,
default : 'null' ,
description : 'The minimum selectable date.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'maxDate' ,
type : 'Date' ,
default : 'null' ,
description : 'The maximum selectable date.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'disabledDates' ,
type : 'array' ,
default : 'null' ,
description : 'Array with dates to disable.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'disabledDays' ,
type : 'array' ,
default : 'null' ,
description : 'Array with disabled weekday numbers.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'maxDateCount' ,
type : 'number' ,
default : 'null' ,
description : 'Maximum number of selectable dates in multiple mode.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'showOnFocus' ,
type : 'boolean' ,
default : 'true' ,
description : 'When disabled, datepicker will not be visible with input focus.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'autoZIndex' ,
type : 'boolean' ,
default : 'true' ,
description : 'Whether to automatically manage layering.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'baseZIndex' ,
type : 'number' ,
default : '0' ,
description : 'Base zIndex value to use in layering.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'showButtonBar' ,
type : 'boolean' ,
default : 'false' ,
description : 'Whether to display today and clear buttons at the footer'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'shortYearCutoff' ,
type : 'string' ,
default : '+10' ,
description : 'The cutoff year for determining the century for a date.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'showTime' ,
type : 'boolean' ,
default : 'false' ,
description : 'Whether to display timepicker.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'timeOnly' ,
type : 'boolean' ,
default : 'false' ,
description : 'Whether to display timepicker only.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'hourFormat' ,
type : 'string' ,
default : '24' ,
description : 'Specifies 12 or 24 hour format.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'stepHour' ,
type : 'number' ,
default : '1' ,
description : 'Hours to change per step.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'stepMinute' ,
type : 'number' ,
default : '1' ,
description : 'Minutes to change per step.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'stepSeconds' ,
type : 'number' ,
default : '1' ,
description : 'Seconds to change per step.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'showSeconds' ,
type : 'boolean' ,
default : 'false' ,
description : 'Whether to show the seconds in time picker.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'hideOnDateTimeSelect' ,
type : 'boolean' ,
default : 'false' ,
description : 'Whether to hide the overlay on date selection when showTime is enabled.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'hideOnRangeSelection' ,
type : 'boolean' ,
default : 'false' ,
description : 'Whether to hide the overlay on date selection is completed when selectionMode is range.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'timeSeparator' ,
type : 'string' ,
default : ':' ,
description : 'Separator of time selector.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'showWeek' ,
type : 'boolean' ,
default : 'false' ,
description : 'When enabled, calendar will show week numbers.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'manualInput' ,
type : 'boolean' ,
default : 'true' ,
description : 'Wheter to allow prevents entering the date manually via typing.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'appendTo' ,
type : 'string' ,
default : 'body' ,
2022-09-12 07:13:52 +00:00
description : 'A valid query selector or an HTMLElement to specify where the overlay gets attached. Special keywords are "body" for document body and "self" for the element itself.'
} ,
{
2022-09-14 14:26:41 +00:00
name : 'disabled' ,
type : 'boolean' ,
default : 'false' ,
description : 'When present, it specifies that the element should be disabled.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'readonly' ,
type : 'boolean' ,
default : 'false' ,
description : 'When present, it specifies that an input field is read-only.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'placeholder' ,
type : 'string' ,
default : 'null' ,
description : 'Placeholder text for the input.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'id' ,
type : 'string' ,
default : 'null' ,
description : 'Identifier of the element.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'inputId' ,
type : 'string' ,
default : 'null' ,
description : 'Identifier of the underlying input element.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'inputClass' ,
2023-03-09 07:02:25 +00:00
type : 'string | object' ,
2022-09-14 14:26:41 +00:00
default : 'null' ,
description : 'Style class of the input field.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'inputStyle' ,
2023-03-09 07:02:25 +00:00
type : 'object' ,
2022-09-14 14:26:41 +00:00
default : 'null' ,
description : 'Inline style of the input field.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'inputProps' ,
type : 'object' ,
default : 'null' ,
description : 'Uses to pass all properties of the HTMLInputElement to the focusable input element inside the component.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'panelClass' ,
2023-03-09 07:02:25 +00:00
type : 'string | object' ,
2022-09-14 14:26:41 +00:00
default : 'null' ,
description : 'Style class of the overlay panel.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'panelStyle' ,
2023-03-09 07:02:25 +00:00
type : 'object' ,
2022-09-14 14:26:41 +00:00
default : 'null' ,
description : 'Inline style of the overlay panel.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'panelProps' ,
type : 'object' ,
default : 'null' ,
description : 'Uses to pass all properties of the HTMLDivElement to the overlay panel inside the component.'
2022-09-12 07:13:52 +00:00
}
] ;
const CalendarEvents = [
{
2022-09-14 14:26:41 +00:00
name : 'input' ,
description : 'Callback to invoke when input field is being typed.' ,
2022-09-12 07:13:52 +00:00
arguments : [
{
2022-09-14 14:26:41 +00:00
name : 'event' ,
type : 'object' ,
description : 'New date'
2022-09-12 07:13:52 +00:00
}
]
} ,
{
2022-09-14 14:26:41 +00:00
name : 'date-select' ,
description : 'Callback to invoke when a date is selected.' ,
2022-09-12 07:13:52 +00:00
arguments : [
{
2022-09-14 14:26:41 +00:00
name : 'value' ,
type : 'Date' ,
description : 'Selected value'
2022-09-12 07:13:52 +00:00
}
]
} ,
{
2022-09-14 14:26:41 +00:00
name : 'show' ,
description : 'Callback to invoke when datepicker panel is shown.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'hide' ,
description : 'Callback to invoke when datepicker panel is hidden.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'today-click' ,
description : 'Callback to invoke when today button is clicked.' ,
2022-09-12 07:13:52 +00:00
arguments : [
{
2022-09-14 14:26:41 +00:00
name : 'date' ,
type : 'Date' ,
description : 'Today as a date instance'
2022-09-12 07:13:52 +00:00
}
]
} ,
{
2022-09-14 14:26:41 +00:00
name : 'clear-click' ,
description : 'Callback to invoke when clear button is clicked.' ,
2022-09-12 07:13:52 +00:00
arguments : [
{
2022-09-14 14:26:41 +00:00
name : 'event' ,
type : 'object' ,
description : 'Click event'
2022-09-12 07:13:52 +00:00
}
]
} ,
{
2022-09-14 14:26:41 +00:00
name : 'month-change' ,
description : 'Callback to invoke when a month is changed using the navigators.' ,
2022-09-12 07:13:52 +00:00
arguments : [
{
2022-09-14 14:26:41 +00:00
name : 'event.month' ,
type : 'number' ,
description : 'New month'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'event.year' ,
type : 'number' ,
description : 'New year'
2022-09-12 07:13:52 +00:00
}
]
} ,
{
2022-09-14 14:26:41 +00:00
name : 'year-change' ,
description : 'Callback to invoke when a year is changed using the navigators.' ,
2022-09-12 07:13:52 +00:00
arguments : [
{
2022-09-14 14:26:41 +00:00
name : 'event.month' ,
type : 'number' ,
description : 'New month'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'event.year' ,
type : 'number' ,
description : 'New year'
2022-09-12 07:13:52 +00:00
}
]
} ,
{
2022-09-14 14:26:41 +00:00
name : 'focus' ,
description : 'Callback to invoke on focus of input field.' ,
2022-09-12 07:13:52 +00:00
arguments : [
{
2022-09-14 14:26:41 +00:00
name : 'event' ,
type : 'object' ,
description : 'Focus event'
2022-09-12 07:13:52 +00:00
}
]
} ,
{
2022-09-14 14:26:41 +00:00
name : 'blur' ,
description : 'Callback to invoke on blur of input field.' ,
2022-09-12 07:13:52 +00:00
arguments : [
{
2022-09-14 14:26:41 +00:00
name : 'event.originalEvent' ,
type : 'object' ,
description : 'Browser event'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'event.value' ,
type : 'string' ,
description : 'Input value'
2022-09-12 07:13:52 +00:00
}
]
} ,
{
2022-09-14 14:26:41 +00:00
name : 'keydown' ,
description : 'Callback to invoke when a key is pressed.' ,
2022-09-12 07:13:52 +00:00
arguments : [
{
2022-09-14 14:26:41 +00:00
name : 'event' ,
type : 'object' ,
description : 'Keydown event'
2022-09-12 07:13:52 +00:00
}
]
}
] ;
const CalendarSlots = [
{
2022-09-14 14:26:41 +00:00
name : 'header' ,
description : 'Custom content for the component header.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'footer' ,
description : 'Custom content for the component footer.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'date' ,
description : 'Custom content for the calendar cell.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'decade' ,
description : 'Custom content for the calendar decade.'
2023-04-06 08:19:46 +00:00
} ,
{
2023-04-18 12:03:17 +00:00
name : 'dropdownicon' ,
description : 'Custom dropdown icon template.'
2023-04-06 08:19:46 +00:00
} ,
{
name : 'previcon' ,
description : 'Custom previous icon template.'
} ,
{
name : 'nexticon' ,
description : 'Custom next icon template.'
} ,
{
name : 'incrementicon' ,
description : 'Custom increment icon template.'
} ,
{
name : 'decrementicon' ,
description : 'Custom decrement icon template.'
2022-09-12 07:13:52 +00:00
}
] ;
module . exports = {
calendar : {
2022-09-14 14:26:41 +00:00
name : 'Calendar' ,
description : 'Calendar is an input component to select a date.' ,
2022-09-12 07:13:52 +00:00
props : CalendarProps ,
events : CalendarEvents ,
slots : CalendarSlots
}
} ;