useViewCalendarRange
A view's rows in one calendar window, for a screen that places them itself (a custom view, ADR 0019). ResourceCalendar loads its rows through it. ```tsx const range = calendarWindow("weeks", today, { weeks: 1 }); const week = useViewCalendarRange(sessionsView, range, { filters: useViewListParams({ view: sessionsView }).filters }); ``` At most two requests, each a plain filter list the provider rules apply to, that neither overlap nor leave a gap: rows that start in the window, and, with an end field, rows that started before it and end inside or after it. One query for both, under core's list keys, so a save refreshes it; the last window's rows stand in while the next loads, never across a change of filters.
packages/ui/src/components/data/resource-view/use-view-calendar-range.ts
@marktiderman/genesis-ui/dataimport { useViewCalendarRange } from "@marktiderman/genesis-ui/data";react-docgen-typescript.CALENDAR_LIMIT
Most rows one request loads (a calendar with an `endField` makes two, so up to twice this). A month grid is six weeks: 500 is about a dozen a day, more than a busy shared calendar holds, and still one quick request. Past it the calendar says how many it left out ("+N more") rather than dropping them silently.
No declared props.
useViewCalendarRange
A view's rows in one calendar window, for a screen that places them itself (a custom view, ADR 0019). ResourceCalendar loads its rows through it. ```tsx const range = calendarWindow("weeks", today, { weeks: 1 }); const week = useViewCalendarRange(sessionsView, range, { filters: useViewListParams({ view: sessionsView }).filters }); ``` At most two requests, each a plain filter list the provider rules apply to, that neither overlap nor leave a gap: rows that start in the window, and, with an end field, rows that started before it and end inside or after it. One query for both, under core's list keys, so a save refreshes it; the last window's rows stand in while the next loads, never across a change of filters.
No declared props.
ViewCalendarRange
The days a calendar shows: `start` inclusive, `end` exclusive, as `calendarWindow` gives them.
No declared props.
displayZone
The clock a field's cells use: its own zone, the scope's, the viewer's, the device's.
No declared props.