Typed comparison filter nodes
Specifies leaf filter nodes as {field, op, value} where the value is typed against the field's declared type. Filters therefore carry real numbers, dates and enums instead of display strings, which keeps translation exact.
Planned. This page shows the specification from issue #182. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
A product grid with per-column filter editors suited to each type (number, date, enum, text).
Expected behavior
Applying a filter produces a leaf node whose value is the native typed literal. Choosing 'between' shows two editors and produces a two-element tuple. 'isNull' hides the value editor.
Planned API surface
FilterLeaffilterfieldTypeeqneqltltegtgteinbetweencontainsstartsWithisNullAcceptance criteria
- The value type in each leaf matches the field's declared type after coercion (pending)
- 'between' requires exactly two ordered values; lower > upper is a validation error (pending)
- 'in' accepts a non-empty array of type-correct values (pending)
- Text operators are unavailable on numeric fields in the UI (pending)