Group items by day, then each day into slots. Items whose [start, end) overlap run in parallel and share a slot; an item with no time stands alone, after the timed ones. Within a day items go by start, then the app's order; parallel tracks go by track name, then order.
dayRange
(from: string | number | Date | null | undefined, to: string | number | Date | null | undefined, zone?: string): string[]
Every day from one moment to another, both included, in the zone: a meeting's date range, so a day with nothing on it yet still gets a tab.
The days a day nav offers: the days that hold items, the days of the range, and one more (a day a person just added), in order, with NO_DATE last when any item has no date.
"Saturday, March 6", with the year when asked: "Saturday, March 6, 2027". A day key is a calendar date, so it is read in UTC and never moves by the viewer's zone.
slotParts
(start: number | null, end: number | null, zone?: string, none?: string): SlotPart[]
slotLabel
(start: number | null, end: number | null, zone?: string, none?: string): string
zoneLine
(at: number | null, zone?: string): string
The line that says once which zone the times are in: "Times are in CDT." The zone's name at the first item's moment, so a meeting across a clock change still names the right one.
tracksLabel
(n: number): string
"3 parallel tracks".
Parts and data attributes
Class
Is
.cap-schedule
the root
.cap-schedule-body
a part
.cap-schedule-count
a part
.cap-schedule-day
a part
.cap-schedule-day-link
a part
.cap-schedule-day-title
a part
.cap-schedule-daybar
a part
.cap-schedule-daybar-extra
a part
.cap-schedule-daynav
a part
.cap-schedule-empty
a part
.cap-schedule-session
a part
.cap-schedule-session-meta
a part
.cap-schedule-session-title
a part
.cap-schedule-slot
a part
.cap-schedule-slots
a part
.cap-schedule-talks
a part
.cap-schedule-time
a part
.cap-schedule-track
a part
.cap-schedule-track-name
a part
.cap-schedule-tracks
a part
.cap-schedule-when
a part
.cap-schedule-zone
a part
State
Read from
:hover
the platform
:visited
the platform
[aria-current="page"]
an attribute
Accessibility
Key
Does
Tab, Shift+Tab
Moves through the day links, then whatever the sessions hold
Enter
Follows the focused day link
The day nav is a nav named by label ("Meeting days"); give a second nav on the page its own name.
Headings: the day at level (2 by default), each slot one under, each session's title one under that (renderItem is given the level).
Contrast: day links in --accent-text (4.5:1), the current day's text in --text on --sel, track names, counts and facts in --muted (4.5:1), a session's edge --line.
Forced colors: the current day has a 2px Highlight edge, since its tint and bar are gone.
Printing hides the day nav and keeps a slot on one page.