A configurable DateInput component, formatting and validating text input for dates and times
Possible errors in the DateInput field.
Messages that can be sent through user interaction to update the DateInput model.
Configuration settings for DateInput.
Supported date and time formats.
Available date format patterns.
Settings for the DateInput component.
Default configuration for DateInput.
Default date format pattern.
Default format used for DateInput.
Default settings for DateInput.
Default time format settings.
Converts a DateInput model into a Posix time, if possible.
Update the DateInput based on user interaction according to the given internal msg.
Returns the updated DateInput and a Cmd msg.
Updates the DateInput model from a given Posix time.
Converts the time into date and time parts and updates the model accordingly.
Checks if one of the two DateInputs of a duration input has an error, returning a boolean and an optional error.
Generates the ID for the container element based on the provided configuration.
Generates the ID for a duration's end input element based on the provided configuration.
Generates the ID for a duration's start input element based on the provided configuration.
Renders a single date input element view with error handling and theme styling.
Renders a container element for the date input element. This element is scaled to the date input element's size and is used to position the picker popover.
Renders two date input fields (start and end) for duration picking with error handling and theme styling.
Renders a placeholder view based on the configuration. This element is empty and scaled to the date input element's size. It is used in combination with the picker popover working as a placeholder to arrange the picker popover's layout. The real date input element will be positioned fixed above this element when the picker popover is opened.
Converts date and time parts into a Posix time.
Returns Nothing if the parts do not form a valid date/time.
Cleans and truncates the user input value based on the given format.
Converts an input string into date and time parts.
Converts date and time parts into an input string value.
Checks if the input value, date parts, and time parts are valid and allowed based on the provided configuration, returning an optional error.
The opaque type representing a particular DateInput instance.