arrayColumn |
A tags-style filter on an array column: the chosen values become arrayOverlaps (has any of them, like TanStack’s arrIncludesSome; the default) or arrayContains (has all of them, like arrIncludesAll). |
booleanColumn |
A yes/no filter: a boolean becomes eq. Anything else (including undefined, the “any” state of a tri-state control) means “no filter”. |
createTableBridge |
Bind a per-column mapping spec once and get converters between TanStack Table state and the filter model. The spec is plain data, so share it between the browser (table ⇄ URL) and the server (URL → FilterNode → adapter). |
customColumn |
Your own mapping, for a value shape the builders don’t cover. toFilter receives the raw (unknown) table value; return null for “no filter”. fromFilter returns undefined for a filter the column can’t show. The table value type is inferred from fromFilter. |
dateColumn |
A date preset picker: the value is a DatePresetValue (e.g. “this month”, or a between range with end) and becomes a date filter. With timeZone, the value may omit it (and fromFilter leaves it out again when it matches). The preset is resolved later by your resolveDate. |
filterColumn |
An operator-picker column: the value is the whole filter minus kind ({ operator: "gte", value: 3 }, { operator: "isNull" }, …), so any operator of kind round-trips. The value is checked like the compact URL codec checks a leaf: an unknown operator or a wrong-typed argument means “no filter”. |
fromPagination |
A page or offset PaginationInput (e.g. from parsePaginationParams) → TanStack pagination. An offset that isn’t a multiple of limit lands on the page that contains it. |
fromSort |
The model’s Sort → TanStack sorting (the inverse of toSort). |
multiSelectColumn |
A multi-select (TanStack’s arrIncludesSome on a scalar column): the chosen values become an inArray filter (or notInArray with operator) of kind (default enum). Values of the wrong type are skipped; an empty selection means “no filter”. |
numberColumn |
A single number input: a number (or numeric string, as an <input> gives it) becomes a number filter with operator (default eq). |
numberRangeColumn |
A min/max range (TanStack’s inNumberRange): [min, max] becomes between, [min, ] becomes gte, [, max] becomes lte. Bounds may be numbers or numeric strings; blank bounds are open, and swapped bounds are put in order (as inNumberRange does). [ , ] means “no filter”. |
rememberCursor |
Record the endCursor of the page just fetched at pageIndex, so the next page can be requested. Cursors past it are dropped (they belonged to an older walk); on the last page (hasNextPage: false) nothing is added. |
selectColumn |
A single-choice select (TanStack’s equals): the chosen value becomes an eq filter of kind (default enum; text and number work too). |
tablePaginationOptions |
The pageCount / rowCount table options for a server-paginated table (manualPagination: true), from the response’s PageInfo. With a total (totalItems), both are exact; without one (cursor or no COUNT(*)), pageCount is “this page, plus one more while hasNextPage”, so getCanNextPage() follows the server. |
textColumn |
A text input (TanStack’s includesString): a non-empty string becomes a text filter with operator (default contains). "" and non-strings mean “no filter”. |
toCursorPagination |
Turn the table’s index-based pagination into a cursor request, using the cursors recorded so far (rememberCursor). The request always walks forward from the cursor of the page before. A pageIndex the stack can’t reach yet (a deep link, a jump) is clamped to the furthest known page and returned as pageIndex, so you can correct the table state. |
toPagination |
TanStack pagination (0-based pageIndex) → a page (page is 1-based) or offset PaginationInput, for an API that takes ?page= / ?offset=. |
toSort |
TanStack sorting → the model’s Sort (desc: true → dir: "desc"). Column ids pass through unchanged; use createTableBridge’s toSort to map ids to model fields. |