A date picker component for picking a datetime range.
Internal Msg's to update the picker.
Instantiates and returns a date picker.
The date picker view. Simply pass it the configured settings and the date picker instance you wish to view.
The duration date inputs view with the date picker opening on click. Pass it the configured settings, the base time, the picked start and end times and the date picker instance you wish to view.
Update the DurationDatePicker according to the given internal msg.
Returns the updated picker and the currently selected start and end datetime, if available.
Events external to the picker to which it is subscribed.
Open the provided date picker and receive the updated picker instance. Also takes a default time the picker should center on (in the event a time has not yet been picked) as well as the picked start and end times. A common example of a default time would be the datetime for the current day.
Close the provided date picker and receive the updated picker instance.
Returns the command to update the trigger & picker DOM elements' instances. Is used internally but can also be used externally in case of a changing viewport (e.g. onScroll or onResize).
Indicates whether the DatePicker is open
Indicates whether the DatePicker's date inputs have a validation error
The opaque type representing a particular date picker instance.