Package-level declarations
Types
Policy for which day gets selected when auto-advance paging changes month.
Maps pager indices to months/weeks within a calendar range.
Standard priority tiers for DayInfo.priority when composing providers.
Secondary per-day information (lunar date, festival, holiday flag…). calendar-lunar ships an implementation; consumers can provide their own.
Where a day cell falls relative to the month being rendered.
Partitioned events for a single date column: all-day banner items plus non-overlapping 2D-packed timed placements.
Immutable set of unavailable dates: explicit dates, inclusive ranges, days of week, exclusive before/after bounds, and predicate escape hatches for dynamic availability. Entries combine as a union. Build with the DisabledDates factory function.
Temporal extent of a CalendarEvent.
Aggregates for a heatmap range: how many days were active, the streak ending at the range end, and the longest streak anywhere in the range.
Computed 2D layout box for a single CalendarEvent on a specific date's 24-hour timeline (0..1440 minutes from midnight).
Pure factories for common range selections. Apply via CalendarSelectionState.set.
Functions
Picks the day to auto-select when auto-advance paging lands on month (parity with the original month_view_auto_select_day).
The 7 days of the week starting at firstDayOfWeek.
Groups events by each LocalDate they cover within range, sorted in canonical display order per day:
Single-pass scan of range. HeatmapSummary.currentStreak counts consecutive active days ending exactly at range.endInclusive (zero when that day is inactive). An empty range (start after end) yields all zeros.
ISO-8601 week of year: weeks start Monday, week 1 contains January 4th.
Computes DayScheduleLayout for events occurring on date.
Builds the day grid for yearMonth. Leading cells are previous-month DayPosition.InDates, trailing cells next-month DayPosition.OutDates. Row count follows the original CalendarView line-count semantics.
The week containing anchor; days are always DayPosition.MonthDate.