Date filter with ranges
Adds a date filter with the operators equals, before, after and inRange. Values are entered through a locale-aware text input or an accessible date picker. Values are compared at day granularity by default so that time-of-day does not cause surprising misses.
Planned. This page shows the specification from issue #187. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
An invoices grid with an issuedAt column containing ISO date strings that span 2 years. No filter is active.
Expected behavior
Picking inRange for Q1 shows only Q1 rows. With granularity 'month', 'equals 2024-02' matches every February row. The filter model stores dates as ISO-8601 strings.
Planned API surface
columnDefs[].filterType='date'filterParams.granularityfilterParams.dateParserfilterParams.minDatefilterParams.maxDatefilterParams.showPickerAcceptance criteria
- With day granularity, equals matches every cell value on that calendar day regardless of time. (pending)
- inRange is inclusive of both days by default. (pending)
- The filter model serializes dates as ISO-8601 date strings (YYYY-MM-DD) for day granularity. (pending)
- Dates outside minDate and maxDate cannot be selected in the picker and are flagged invalid when typed. (pending)
- Typed input is parsed according to the selected locale's short date pattern. (pending)