Expand description
Date and time selection over a calendar this crate does not own.
There is no calendar system, no time zone database, no locale, and no
notion of today anywhere in this module. All of it arrives through
DateAdapter, which the host implements over whatever date library it
already depends on. docs/datetime.md says what a host has to supply and
why the seam is here rather than lower down.
Calendar— a month grid, keyboard navigation, blocked days with the host’s reasons, and a today ring only when there is a today.DateInput— a field with that calendar in a popover. Text the adapter will not read stays in the field and publishes invalid.RangePicker— two ends, where incomplete is a state and an end before a start is a report rather than a swap.TimeInput— hour, minute, and optionally second, over the host’s own clock.
Re-exports§
pub use adapter::Clock;pub use adapter::DateAdapter;pub use adapter::Day;pub use adapter::MonthCell;pub use adapter::MonthGrid;pub use adapter::MonthKey;pub use adapter::Selectability;pub use adapter::TimeOfDay;pub use calendar::Calendar;pub use calendar::CalendarEvent;pub use calendar::DayMark;pub use date_input::DateInput;pub use date_input::DateInputEvent;pub use range::BlockedDay;pub use range::BlockedReport;pub use range::DayRange;pub use range::RangePicker;pub use range::RangePickerEvent;pub use range::RangeState;pub use time_input::Segment as TimeSegment;pub use time_input::TimeInput;pub use time_input::TimeInputEvent;
Modules§
- adapter
- The seam between the date components and whoever owns the calendar.
- calendar
- A month grid over a host-owned calendar.
- date_
input - A date field with a calendar hanging off it.
- range
- Two ends of a range over a host-owned calendar.
- time_
input - Hour, minute, and optionally second, as separate segments.