Package-level declarations
Types
A reactive controller that resolves the metadata (currently the disabled state) for the dates shown by the date-picker's dateMetadataProvider.
Attribute names of <vaadin-date-picker>, for use with setAttribute.
A calendar date as understood by the date picker helpers.
Metadata for a single date, returned by a DatePickerDateMetadataProvider.
Loads metadata for the given date range.
A range of dates the calendar is about to render, always covering whole months.
<vaadin-date-picker> is an input field that allows to enter a date by typing or by selecting from a calendar overlay.
Typed event names of <vaadin-date-picker>, for use with addEventHandler.
The values exported by @vaadin/date-picker/src/vaadin-date-picker-mixin.js.
Functions
Create a date at midnight in local time. Unlike new Date(year, month, day), this supports years below 100, which the constructor maps into the 20th century. The month is assigned before the day so that the initial day of month (1) always exists in the target month.
Creates a <vaadin-date-picker> element. The custom element is registered on first use.
Get difference in months between today and given months value.
Check if the given date is in the range of allowed dates.
The class registered by @vaadin/date-picker/src/vaadin-date-metadata-controller.js.
Check if the given date can be selected: allowed by dateAllowed and not reported as disabled by the date metadata controller. This is narrower than dateAllowed, which decides what can be focused: a disabled date is still focusable, it just cannot be selected.
Extracts the basic component parts of a date (day, month and year) to the expected format.
Get the first day of the month the given date is in.
Format a date instance in ISO 8601 ("YYYY-MM-DD") or 6-digit extended ISO 8601 ("+YYYYYY-MM-DD", "-YYYYYY-MM-DD") format.
Format a date instance in ISO 8601 ("YYYY-MM-DD") or 6-digit extended ISO 8601 ("+YYYYYY-MM-DD", "-YYYYYY-MM-DD") format.
Get closest date from array of dates.
Get ISO 8601 week number for the given date.
Get the last day of the month the given date is in.
Get the index of the month the given date is in.
Get the index of a month, counted from January of year 0. Reduces a month to a single integer, so a lookup builds no key and two months are adjacent when their indexes are.
Creates a new object with the same date, but sets the hours, minutes, seconds and milliseconds to 0.
Creates a new object with the same date, but sets the hours, minutes, seconds and milliseconds to 0.
Parse date string of one of the following date formats:
Imports @vaadin/date-picker/src/vaadin-date-picker.js, registering <vaadin-date-picker>, and returns the element class.