@umriss-ui/table 0.50.0 → 0.51.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/docs/llms-full.md CHANGED
@@ -1,4 +1,4 @@
1
- # @umriss-ui/table 0.50.0
1
+ # @umriss-ui/table 0.51.0
2
2
 
3
3
  > React data table for data-dense applications - sorting, filtering, grouping, aggregates, virtualisation. Declared the way it reads: columns as JSX, typed against their rows.
4
4
 
@@ -1254,7 +1254,7 @@ A value cut short at the edge of its cell shows whole in a tip, under the pointe
1254
1254
  | `stickyRowHeader` | `boolean` | — | Keeps the row header column visible while scrolling sideways - the same as `pin="start"` on the row header.<br>Shown in: [Keep the header and the names in view (Width and pinning)](#width-and-pinning), [Stripes across a wide table (Row appearance)](#row-appearance), [Show, hide and arrange (ColumnMenu)](#columnmenu) and 1 more |
1255
1255
  | `striped` | `boolean` | — | Discreet zebra stripes.<br>Shown in: [Stripes across a wide table (Row appearance)](#row-appearance) |
1256
1256
  | `density` | `"regular" \| "compact"` | the density of the `UmrissProvider`, else `"regular"` | How tightly the rows stand.<br>Shown in: [Fit long group names in a compact table (Grouping)](#grouping-1), [Employees in the detail (Tree rows)](#tree-rows), [Own staff and teams (Tree rows)](#tree-rows) and 4 more |
1257
- | `maxHeight` | `string` | — | Height of the scroll area, e.g. "480px". A virtualised table needs it.<br>Shown in: [Keep the header and the names in view (Width and pinning)](#width-and-pinning), [A head below an app bar (Width and pinning)](#width-and-pinning), [Fold groups into a summary (Grouping)](#grouping-1) and 8 more |
1257
+ | `maxHeight` | `string` | — | Height of the scroll area, e.g. "480px". A virtualised table needs it.<br>Shown in: [Keep the header and the names in view (Width and pinning)](#width-and-pinning), [A head below an app bar (Width and pinning)](#width-and-pinning), [Fold groups into a summary (Grouping)](#grouping-1) and 9 more |
1258
1258
  | `empty` | `ReactNode` | — | What stands in the body when there are no rows. Empty because of a filter the table shows itself – with the way back.<br>Shown in: [Restrict which rows a table has (Pre-filter)](#pre-filter), [Show loading, empty, failed and no match (Row appearance)](#row-appearance) |
1259
1259
  | `loading` | `boolean` | — | Shows placeholder rows instead of the rows.<br>Shown in: [Rows from a request (Filter)](#filter), [Show loading, empty, failed and no match (Row appearance)](#row-appearance), [Load pages from a server (Server mode)](#server-mode) |
1260
1260
  | `rowProps` | `(row: Z) => ``RowAttributes` | — | Classes and data attributes per row.<br>Shown in: [Mark rows by their state (Row appearance)](#row-appearance) |
@@ -1264,7 +1264,7 @@ A value cut short at the edge of its cell shows whole in a tip, under the pointe
1264
1264
  | `grid` | `boolean` | — | Grid mode: the table is one tab stop, and the arrows walk its cells - Home and End in the row, Ctrl+Home and Ctrl+End to the table's ends, PageUp and PageDown by the rows in view. A cell's own controls are reached with Enter or F2 and left with Escape; a column with `edit` is edited in place. Without it the table stays a native table.<br>Shown in: [Bring a row into view from outside (Virtualisation)](#virtualisation), [Work cell by cell (Grid mode)](#grid-mode), [Combine grid mode with groups, pinning and many rows (Grid mode)](#grid-mode) and 8 more |
1265
1265
  | `editMode` | `"cell" \| "row"` | — | Grid mode ([ADR-0036](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0036-a-grid-edits-on-the-first-click-and-saves-rows-on-purpose.md)): `"cell"` reports every cell as it is left (`onCellEdit`); `"row"` opens every cell of a row that edits at once, as one **Row draft**, and reports it only when the row is saved on purpose (`onRowSave`) - by its Save button or Enter; Escape or Discard drops it. A row with a draft is left only by saving or discarding it.<br>Shown in: [Save a row on purpose (Edits)](#edits), [Check a whole row before it is saved (Edits)](#edits), [Keep a list: add, change and delete rows (Edits)](#edits) and 1 more |
1266
1266
  | `newRow` | `() => Partial<Z>` | — | What a new row starts with - the values the columns read before anything is typed. Without it, nothing.<br>Shown in: [Keep a list: add, change and delete rows (Edits)](#edits) |
1267
- | `children` | `ReactNode` | — | Columns, `RowDetail`, `RowActions` and the unbound parts.<br>Shown in: [Show a list of services](#first-table), [Search and page from a header of your own](#first-table), [Sort, arrange and export from controls of your own](#first-table) and 138 more |
1267
+ | `children` | `ReactNode` | — | Columns, `RowDetail`, `RowActions` and the unbound parts.<br>Shown in: [Show a list of services](#first-table), [Search and page from a header of your own](#first-table), [Sort, arrange and export from controls of your own](#first-table) and 140 more |
1268
1268
  | `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [Find a late shipment (Scenarios)](#find-a-late-shipment), [Plan the team's capacity (Scenarios)](#plan-the-teams-capacity) |
1269
1269
 
1270
1270
  ###### Events
@@ -1282,8 +1282,8 @@ Also takes every attribute of `<div>` – without `children`.
1282
1282
 
1283
1283
  | Prop | Type | Default | Description |
1284
1284
  |---|---|---|---|
1285
- | `rowKey` *required* | `(row: Z) => string` | — | A stable key per row – the basis of selection and expansion.<br>Shown in: [Show a list of services](#first-table), [Search and page from a header of your own](#first-table), [Sort, arrange and export from controls of your own](#first-table) and 138 more |
1286
- | `pageSize` | `number` | `10` | How many rows a page holds.<br>Shown in: [Search and page from a header of your own](#first-table), [Ask a question over several fields (Filter)](#filter), [Restrict which rows a table has (Pre-filter)](#pre-filter) and 7 more |
1285
+ | `rowKey` *required* | `(row: Z) => string` | — | A stable key per row – the basis of selection and expansion.<br>Shown in: [Show a list of services](#first-table), [Search and page from a header of your own](#first-table), [Sort, arrange and export from controls of your own](#first-table) and 140 more |
1286
+ | `pageSize` | `number` | `10` | How many rows a page holds in flow, or with `maxHeight`, and the start value in a frame of definite height before it is measured: there a page holds the whole lines the frame leaves between the head and the pager.<br>Shown in: [Search and page from a header of your own](#first-table), [Ask a question over several fields (Filter)](#filter), [Restrict which rows a table has (Pre-filter)](#pre-filter) and 9 more |
1287
1287
  | `defaultSort` | `SortLevel`` \| readonly ``SortLevel``[] \| null` | `null` | The application's sort; it is the default that `view` leaves out.<br>Shown in: [Sort, arrange and export from controls of your own](#first-table), [A label wider than its column (Width and pinning)](#width-and-pinning), [Sort by several columns (Sorting)](#sorting) and 10 more |
1288
1288
  | `defaultGrouping` | `GroupingId``<Z> \| readonly ``GroupingId``<Z>[]` | ungrouped, until the user groups | The application's grouping: a column or group key, or up to three, the outermost first. It is the default that `view` leaves out.<br>Shown in: [Group by one column (Grouping)](#grouping-1), [Group on two levels (Grouping)](#grouping-1), [Group on three levels (Grouping)](#grouping-1) and 23 more |
1289
1289
  | `preFilter` | `(row: Z) => boolean` | — | Which rows the table has at all – by permission, by tenant, by anything the user is not meant to undo. It is invisible: never a condition, never reset, never part of the view, and "43 of 1,204" counts only the rows it admits. It may stand in the call; a change leaves the page standing, and the model clamps it.<br>Shown in: [Restrict which rows a table has (Pre-filter)](#pre-filter) |
@@ -1308,9 +1308,9 @@ Also takes every attribute of `<div>` – without `children`.
1308
1308
  | `visible` *required* | `readonly Z[]` | — | What is rendered right now: the page or the window.<br>Shown in: [Scroll twenty thousand rows (Virtualisation)](#virtualisation) |
1309
1309
  | `page` *required* | `number` | — | The page shown, from 1. Without `Pagination` always 1.<br>Shown in: [Search and page from a header of your own](#first-table) |
1310
1310
  | `pageCount` *required* | `number` | — | How many pages the filtered set makes.<br>Shown in: [Search and page from a header of your own](#first-table) |
1311
- | `pageSize` *required* | `number` | — | Rows per page.<br>Shown in: [Search and page from a header of your own](#first-table) |
1311
+ | `pageSize` *required* | `number` | — | Rows per page now: the whole lines a filled frame holds, otherwise the chosen size.<br>Shown in: [Search and page from a header of your own](#first-table) |
1312
1312
  | `setPage` *required* | `(page: number) => void` | — | Changes the page, clamped to those that exist.<br>Shown in: [Search and page from a header of your own](#first-table) |
1313
- | `setPageSize` *required* | `(size: number) => void` | — | Sets the rows per page; back to page one.<br>Shown in: [Search and page from a header of your own](#first-table) |
1313
+ | `setPageSize` *required* | `(size: number \| "fit") => void` | — | Sets the rows per page, a choice the view keeps. The page follows the row the user looks at - the one with focus, else the current row on the page, else the top row - and does not go back to page one; a search, a filter and a sort still do. `"fit"` takes the choice back: in a filled frame the page is what the frame holds again.<br>Shown in: [Search and page from a header of your own](#first-table) |
1314
1314
  | `search` *required* | `string` | — | The search text.<br>Shown in: [Search and page from a header of your own](#first-table) |
1315
1315
  | `setSearch` *required* | `(search: string) => void` | — | Sets the search text; back to page one.<br>Shown in: [Search and page from a header of your own](#first-table) |
1316
1316
  | `sort` *required* | `readonly ``SortLevel``[]` | — | The sort levels, the first one first – only over columns that registered.<br>Shown in: [Sort, arrange and export from controls of your own](#first-table) |
@@ -1348,6 +1348,7 @@ Also takes every attribute of `<div>` – without `children`.
1348
1348
  | `rowCount` *required* | `number` | — | How many rows the filtered set has - in server mode the server's count.<br>Shown in: [Search and page from a header of your own](#first-table) |
1349
1349
  | `server` *required* | `boolean` | — | Whether it is in server mode: the rows are one page of a server's.<br>Shown in: [Sort, arrange and export from controls of your own](#first-table) |
1350
1350
  | `request` *required* | `TableRequest`` \| null` | — | Server mode: the request `onRequest` last received, or is about to; `null` outside it.<br>Shown in: [Show loading, and hold a late answer (Server mode)](#server-mode) |
1351
+ | `framed` *required* | `boolean` | — | Whether the table fills a parent of definite height, with no prop: the frame is exactly as tall as the parent. `false` in a flowing parent and with `maxHeight`. It does not depend on the Pagination.<br>Shown in: [Fill a pane (Pagination)](#pagination) |
1351
1352
 
1352
1353
  ##### Types on this page
1353
1354
 
@@ -1592,10 +1593,10 @@ type TextOperator = "contains" | "notContains" | "startsWith" | "endsWith" | "eq
1592
1593
 
1593
1594
  #### Known limits
1594
1595
 
1595
- - No cell range selection and no built-in undo: an edit is reported, never applied, and the application owns the rows; undo is a recipe over the reported edits ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.50.0/docs/adr/0032-what-umriss-is-not.md)).
1596
- - No pivot: compute the pivoted rows and map one computed column per key from the data, as in [a matrix with row and column totals](#aggregate) ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.50.0/docs/adr/0032-what-umriss-is-not.md)).
1596
+ - No cell range selection and no built-in undo: an edit is reported, never applied, and the application owns the rows; undo is a recipe over the reported edits ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.51.0/docs/adr/0032-what-umriss-is-not.md)).
1597
+ - No pivot: compute the pivoted rows and map one computed column per key from the data, as in [a matrix with row and column totals](#aggregate) ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.51.0/docs/adr/0032-what-umriss-is-not.md)).
1597
1598
 
1598
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.50.0/docs/adr/0032-what-umriss-is-not.md).
1599
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.51.0/docs/adr/0032-what-umriss-is-not.md).
1599
1600
 
1600
1601
  ### Provider
1601
1602
 
@@ -1954,7 +1955,7 @@ The `label` is the column header's text, and so what a screen reader says for ev
1954
1955
 
1955
1956
  | Prop | Type | Default | Description |
1956
1957
  |---|---|---|---|
1957
- | `value` *required* | `K` | — | A field of the row. Supplies the column's `id` at the same time.<br>Shown in: [Read a value from a field](#column), [Compute a value from the row](#column), [Let the value type decide](#column) and 138 more |
1958
+ | `value` *required* | `K` | — | A field of the row. Supplies the column's `id` at the same time.<br>Shown in: [Read a value from a field](#column), [Compute a value from the row](#column), [Let the value type decide](#column) and 140 more |
1958
1959
  | `id` | `string` | — | An id of one's own instead of the field name – for two columns over the same field.<br>Shown in: [Pick a standard format (Formats)](#formats), [Share a column between tables (Presets)](#presets) |
1959
1960
  | `format` | `FormatFor``<Z[K]>` | — | A standard presentation by name: `"percent"`, `"count"` or `{ decimals }` for numbers, `"date"`, `"time"`, `"dateTime"`, `"timeWithSeconds"` or `"dateTimeWithSeconds"` for points in time. Alignment, sorting, export and footer stay with the value.<br>Shown in: [Compute a value from the row](#column), [Set wording and formats once (Provider)](#provider), [Pick a standard format (Formats)](#formats) and 38 more |
1960
1961
  | `filter` | `FilterFor``<Z[K]>` | — | A filter in the column header: `"list"` offers the values that occur, `"range"` two bounds (numbers or points in time), `"text"` operators over a text, a filter from `columnFilter` asks whatever it asks itself. Its condition stands in the table toolbar.<br>Shown in: [A label wider than its column (Width and pinning)](#width-and-pinning), [Share a column between tables (Presets)](#presets), [Choose from the values that occur (Filter)](#filter) and 13 more |
@@ -1970,8 +1971,8 @@ Also every prop of `ColumnBase`, `ValuePaths` and `AggregateOptions`.
1970
1971
 
1971
1972
  | Prop | Type | Default | Description |
1972
1973
  |---|---|---|---|
1973
- | `label` *required* | `string` | — | Names the column in its header, in the column menu and in the header row of the export.<br>Shown in: [Read a value from a field](#column), [Compute a value from the row](#column), [Let the value type decide](#column) and 138 more |
1974
- | `rowHeader` | `boolean` | — | This column names the row: row header cells, never hideable, the column `stickyRowHeader` pins, and the name by which the row's selection, expander and actions are read out. At most one per table.<br>Shown in: [Read a value from a field](#column), [Compute a value from the row](#column), [Let the value type decide](#column) and 137 more |
1974
+ | `label` *required* | `string` | — | Names the column in its header, in the column menu and in the header row of the export.<br>Shown in: [Read a value from a field](#column), [Compute a value from the row](#column), [Let the value type decide](#column) and 140 more |
1975
+ | `rowHeader` | `boolean` | — | This column names the row: row header cells, never hideable, the column `stickyRowHeader` pins, and the name by which the row's selection, expander and actions are read out. At most one per table.<br>Shown in: [Read a value from a field](#column), [Compute a value from the row](#column), [Let the value type decide](#column) and 139 more |
1975
1976
  | `numeric` | `boolean` | decided by the first value present | Right-aligned with tabular figures.<br>Shown in: [A header over columns](#column), [Share a column between tables (Presets)](#presets), [Column groups over virtual rows (Virtualisation)](#virtualisation) |
1976
1977
  | `width` | `number` | the browser's | Initial width in pixels.<br>Shown in: [Fit long values (Formats)](#formats), [Fit what does not fit (Formats)](#formats), [A bar, a scale, an icon and a limit (Conditional formatting)](#conditional-formatting) and 19 more |
1977
1978
  | `flex` | `number` | none: the column is as wide as its content | A share of the width the other columns leave, so that the table fills its frame: two columns with `flex={1}` split it equally. A width, declared or dragged by hand, ends the flex of that column.<br>Shown in: [Columns that share the width (Width and pinning)](#width-and-pinning), [Share a column between tables (Presets)](#presets) |
@@ -3430,7 +3431,7 @@ From `ExportProps` — the full table stands on [Export](#export).
3430
3431
 
3431
3432
  - In [server mode](#server-mode) the table sorts nothing itself; the sort goes to the server in the request.
3432
3433
 
3433
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.50.0/docs/adr/0032-what-umriss-is-not.md).
3434
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.51.0/docs/adr/0032-what-umriss-is-not.md).
3434
3435
 
3435
3436
  ### Search
3436
3437
 
@@ -3607,7 +3608,7 @@ The keys of [First table](#first-table) and Input apply here.
3607
3608
 
3608
3609
  | Prop | Type | Default | Description |
3609
3610
  |---|---|---|---|
3610
- | `placeholder` | `string` | the wording's "Search …" | The placeholder in the field.<br>Shown in: [Find a person](#search), [Leave a column out](#search), [Search from a card header](#search) and 24 more |
3611
+ | `placeholder` | `string` | the wording's "Search …" | The placeholder in the field.<br>Shown in: [Find a person](#search), [Leave a column out](#search), [Search from a card header](#search) and 25 more |
3611
3612
  | `size` | `ToolbarSize`<br>`"sm" \| "md"` | the size of the toolbar it stands in, `"sm"` outside one | The size of the part: `sm` or `md`.<br>Shown in: [Parts outside a toolbar (Toolbar)](#toolbar) |
3612
3613
  | `grow` | `boolean` | `false` | Take the rest of the toolbar's line: the parts after the search - column menu, export - stand at its end.<br>Shown in: [Search takes the line](#search) |
3613
3614
  | `of` | `TableRef` | — | The table, when the part does not stand inside it: the return value of `useTable`.<br>Shown in: [Search from a card header](#search), [Place it outside the table (Toolbar)](#toolbar), [Parts outside a toolbar (Toolbar)](#toolbar) and 1 more |
@@ -3654,7 +3655,7 @@ type TableRef = Omit<TableSnapshot<unknown>, "setFilter" | "conditionOf"> & {
3654
3655
 
3655
3656
  - In [server mode](#server-mode) the table searches nothing itself; the term goes to the server in the request.
3656
3657
 
3657
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.50.0/docs/adr/0032-what-umriss-is-not.md).
3658
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.51.0/docs/adr/0032-what-umriss-is-not.md).
3658
3659
 
3659
3660
  ### Filter
3660
3661
 
@@ -4724,7 +4725,7 @@ type Absent = null | undefined;
4724
4725
  - No text filter per column: the search covers text.
4725
4726
  - In [server mode](#server-mode) a list filter offers what the application names; the table cannot count values it does not hold.
4726
4727
 
4727
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.50.0/docs/adr/0032-what-umriss-is-not.md).
4728
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.51.0/docs/adr/0032-what-umriss-is-not.md).
4728
4729
 
4729
4730
  ### Pre-filter
4730
4731
 
@@ -4817,7 +4818,7 @@ From `TableOptions` — the full table stands on [First table](#first-table).
4817
4818
  | Prop | Type | Default | Description |
4818
4819
  |---|---|---|---|
4819
4820
  | [`rowKey`](#first-table) *required* | `(row: Z) => string` | — | A stable key per row – the basis of selection and expansion. |
4820
- | [`pageSize`](#first-table) | `number` | `10` | How many rows a page holds. |
4821
+ | [`pageSize`](#first-table) | `number` | `10` | How many rows a page holds in flow, or with `maxHeight`, and the start value in a frame of definite height before it is measured: there a page holds the whole lines the frame leaves between the head and the pager. |
4821
4822
  | [`preFilter`](#first-table) | `(row: Z) => boolean` | — | Which rows the table has at all – by permission, by tenant, by anything the user is not meant to undo. It is invisible: never a condition, never reset, never part of the view, and "43 of 1,204" counts only the rows it admits. It may stand in the call; a change leaves the page standing, and the model clamps it. |
4822
4823
 
4823
4824
  From `FieldColumn` — the full table stands on [Column](#column).
@@ -6006,11 +6007,11 @@ export default function GroupAndFoldFromControls() {
6006
6007
 
6007
6008
  #### Known limits
6008
6009
 
6009
- - No pivot and no more than three levels ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.50.0/docs/adr/0032-what-umriss-is-not.md)).
6010
+ - No pivot and no more than three levels ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.51.0/docs/adr/0032-what-umriss-is-not.md)).
6010
6011
  - No bar to drag headers onto: grouping is chosen in the column menu.
6011
6012
  - No groups in [server mode](#server-mode): they would be made of one page.
6012
6013
 
6013
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.50.0/docs/adr/0032-what-umriss-is-not.md).
6014
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.51.0/docs/adr/0032-what-umriss-is-not.md).
6014
6015
 
6015
6016
  ### Tree rows
6016
6017
 
@@ -6608,7 +6609,7 @@ From `ToolbarProps` — the full table stands on [Toolbar](#toolbar).
6608
6609
  - Not in [server mode](#server-mode), and no branches loaded on demand yet.
6609
6610
  - One column set for every level; a level without a value shows it as absent.
6610
6611
 
6611
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.50.0/docs/adr/0032-what-umriss-is-not.md).
6612
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.51.0/docs/adr/0032-what-umriss-is-not.md).
6612
6613
 
6613
6614
  ### Aggregate
6614
6615
 
@@ -7150,7 +7151,7 @@ type Displayable = string | number | boolean | Date;
7150
7151
 
7151
7152
  - In [server mode](#server-mode) the footer shows the sums the server hands in as `totals`, and nothing without them: a sum over one page would misstate the server's set.
7152
7153
 
7153
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.50.0/docs/adr/0032-what-umriss-is-not.md).
7154
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.51.0/docs/adr/0032-what-umriss-is-not.md).
7154
7155
 
7155
7156
  ## Rows
7156
7157
 
@@ -7422,7 +7423,7 @@ From `ToolbarProps` — the full table stands on [Toolbar](#toolbar).
7422
7423
 
7423
7424
  - In [server mode](#server-mode) “select all” selects the page, and with the page ticked the table offers all that match: a state that a bulk action receives as `{ request, except }`, since the table holds no rows for it.
7424
7425
 
7425
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.50.0/docs/adr/0032-what-umriss-is-not.md).
7426
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.51.0/docs/adr/0032-what-umriss-is-not.md).
7426
7427
 
7427
7428
  ### Row appearance
7428
7429
 
@@ -8408,7 +8409,7 @@ The parts the table puts in name themselves: the search field “Search table”
8408
8409
 
8409
8410
  | Prop | Type | Default | Description |
8410
8411
  |---|---|---|---|
8411
- | `children` | `ReactNode` | — | Search, column menu, export – on the left in the table toolbar, before the conditions.<br>Shown in: [Search, arrange and export](#toolbar), [Place it outside the table](#toolbar), [Set wording and formats once (Provider)](#provider) and 42 more |
8412
+ | `children` | `ReactNode` | — | Search, column menu, export – on the left in the table toolbar, before the conditions.<br>Shown in: [Search, arrange and export](#toolbar), [Place it outside the table](#toolbar), [Set wording and formats once (Provider)](#provider) and 43 more |
8412
8413
  | `size` | `ToolbarSize`<br>`"sm" \| "md"` | `"sm"` | The size of every control the table puts into it - search, column menu, export, "reset", the bulk actions -: `sm` or `md`. A control of one's own takes the same size by its own prop.<br>Shown in: [A larger toolbar (Toolbar controls)](#toolbar-controls), [A dispatcher's bar (Toolbar controls)](#toolbar-controls) |
8413
8414
  | `of` | `TableRef` | — | The table, when the table toolbar does not stand inside it. If it then stands behind the table in the tree, it registers only after the first frame – until then a table with a search or a column filter shows its own toolbar. Placed before the table, there is no such change.<br>Shown in: [Place it outside the table](#toolbar), [Review cost centres against budget (Scenarios)](#review-cost-centres-against-budget) |
8414
8415
  | `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [Find a late shipment (Scenarios)](#find-a-late-shipment), [Plan the team's capacity (Scenarios)](#plan-the-teams-capacity) |
@@ -9133,7 +9134,7 @@ The keys of [First table](#first-table), Input, [ColumnMenu](#columnmenu), Selec
9133
9134
 
9134
9135
  | Prop | Type | Default | Description |
9135
9136
  |---|---|---|---|
9136
- | `children` | `ReactNode` | — | Search, column menu, export – on the left in the table toolbar, before the conditions.<br>Shown in: [Controls of your own at the toolbar's size](#toolbar-controls), [A larger toolbar](#toolbar-controls), [A dispatcher's bar](#toolbar-controls) and 42 more |
9137
+ | `children` | `ReactNode` | — | Search, column menu, export – on the left in the table toolbar, before the conditions.<br>Shown in: [Controls of your own at the toolbar's size](#toolbar-controls), [A larger toolbar](#toolbar-controls), [A dispatcher's bar](#toolbar-controls) and 43 more |
9137
9138
  | `size` | `ToolbarSize`<br>`"sm" \| "md"` | `"sm"` | The size of every control the table puts into it - search, column menu, export, "reset", the bulk actions -: `sm` or `md`. A control of one's own takes the same size by its own prop.<br>Shown in: [A larger toolbar](#toolbar-controls), [A dispatcher's bar](#toolbar-controls) |
9138
9139
  | `of` | `TableRef` | — | The table, when the table toolbar does not stand inside it. If it then stands behind the table in the tree, it registers only after the first frame – until then a table with a search or a column filter shows its own toolbar. Placed before the table, there is no such change.<br>Shown in: [Place it outside the table (Toolbar)](#toolbar), [Review cost centres against budget (Scenarios)](#review-cost-centres-against-budget) |
9139
9140
  | `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [Find a late shipment (Scenarios)](#find-a-late-shipment), [Plan the team's capacity (Scenarios)](#plan-the-teams-capacity) |
@@ -9770,9 +9771,13 @@ Everything the library puts out as text.
9770
9771
  | `pagination` *required* | `string` | — | |
9771
9772
  | `rows` *required* | `string` | — | |
9772
9773
  | `rowsPerPage` *required* | `string` | — | |
9774
+ | `fit` *required* | `string` | — | The page-size choice that leaves the page to the frame. |
9773
9775
  | `pageOfPages` *required* | `(page: number, total: number, formatted?: { page: string; total: string }) => string` | — | "Page 2 of 7". `formatted` carries both numbers in the provider's formats, where the caller has them - a table over a server has "Page 1 of 100,000". |
9776
+ | `pageRange` *required* | `(from: number, to: number, total: number, formatted?: { from: string; to: string; total: string }) => string` | — | "13–24 of 120" in the pagination bar. `formatted` carries the three numbers in the provider's formats, where the caller has them. |
9777
+ | `firstPage` *required* | `string` | — | The names of the four steps of the pagination bar. |
9774
9778
  | `previousPage` *required* | `string` | — | |
9775
9779
  | `nextPage` *required* | `string` | — | |
9780
+ | `lastPage` *required* | `string` | — | |
9776
9781
  | `filterReset` *required* | `string` | — | The two buttons in the column filter's footer. |
9777
9782
  | `filterDone` *required* | `string` | — | |
9778
9783
  | `columns` *required* | `string` | — | The column menu's button.<br>Shown in: [Set wording and formats once (Provider)](#provider) |
@@ -10081,7 +10086,7 @@ Everything the library puts out as text.
10081
10086
 
10082
10087
  - Two formats: CSV, and the Excel workbook from `@umriss-ui/table/xlsx` - one sheet, no styling, no formulas, no group rows, no compression; no PDF or print layout.
10083
10088
 
10084
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.50.0/docs/adr/0032-what-umriss-is-not.md).
10089
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.51.0/docs/adr/0032-what-umriss-is-not.md).
10085
10090
 
10086
10091
  ### View
10087
10092
 
@@ -10535,6 +10540,115 @@ export default function ShowEveryRow() {
10535
10540
  }
10536
10541
  ```
10537
10542
 
10543
+ ##### Fill a pane
10544
+
10545
+ In a parent of definite height the table is exactly as tall as the parent - with no rows, five or a hundred. Toolbar on top, the pager at the bottom edge, and a page holds the whole rows that fit - none cut, no scrollbar; blank surface stands only under a short last page, the few rows a search leaves and the empty message. In a parent without a height the table is as tall as its rows, as ever.
10546
+
10547
+ ```tsx
10548
+ import { useMemo, useState } from "react";
10549
+ import { Button, Text } from "@umriss-ui/core";
10550
+ import { Pagination, Search, Toolbar, useTable } from "@umriss-ui/table";
10551
+
10552
+ interface Stop {
10553
+ id: string;
10554
+ street: string;
10555
+ parcels: number;
10556
+ }
10557
+
10558
+ const COUNTS = [0, 5, 100] as const;
10559
+ const HEIGHTS = [260, 360, 480] as const;
10560
+
10561
+ export default function FillAPane() {
10562
+ const [count, setCount] = useState<number>(5);
10563
+ const [height, setHeight] = useState<number>(360);
10564
+ const [bounded, setBounded] = useState(false);
10565
+ const stops = useMemo<Stop[]>(
10566
+ () => Array.from({ length: count }, (_, i) => ({ id: `ST-${String(i + 1).padStart(4, "0")}`, street: `Dock ${1 + (i % 24)}`, parcels: 1 + ((i * 7) % 9) })),
10567
+ [count],
10568
+ );
10569
+ const { Table, Column, framed } = useTable(stops, { rowKey: (s) => s.id, pageSize: 5 });
10570
+
10571
+ return (
10572
+ <div style={{ display: "grid", gap: "var(--u-space-3)" }}>
10573
+ <div style={{ display: "flex", gap: "var(--u-space-2)", flexWrap: "wrap", alignItems: "center" }}>
10574
+ {COUNTS.map((n) => (
10575
+ <Button key={n} size="sm" variant={n === count ? "primary" : "secondary"} onClick={() => setCount(n)}>
10576
+ {`${n} rows`}
10577
+ </Button>
10578
+ ))}
10579
+ {HEIGHTS.map((h) => (
10580
+ <Button key={h} size="sm" variant={h === height ? "primary" : "secondary"} onClick={() => setHeight(h)}>
10581
+ {`${h} px`}
10582
+ </Button>
10583
+ ))}
10584
+ <Button size="sm" variant={bounded ? "primary" : "secondary"} aria-pressed={bounded} onClick={() => setBounded(!bounded)}>
10585
+ maxHeight 200 px
10586
+ </Button>
10587
+ </div>
10588
+ <div data-pane style={{ height: `${height / 16}rem` }}>
10589
+ <Table aria-label="Stops" maxHeight={bounded ? "200px" : undefined}>
10590
+ <Toolbar>
10591
+ <Search placeholder="Stop or dock" />
10592
+ </Toolbar>
10593
+ <Column value="id" label="Stop" rowHeader />
10594
+ <Column value="street" label="Dock" />
10595
+ <Column value="parcels" label="Parcels" />
10596
+ <Pagination />
10597
+ </Table>
10598
+ </div>
10599
+ <Text size="xs" tone="muted">{`The pane is ${height} px tall; the table ${framed ? "fills it" : "is as tall as its rows"}.${bounded ? " A maxHeight of your own wins." : ""}`}</Text>
10600
+ </div>
10601
+ );
10602
+ }
10603
+ ```
10604
+
10605
+ ##### Beside a taller neighbour
10606
+
10607
+ A table in a stretched grid row fills the row, and asks of it only the height of its page - never its rows. When the neighbour grows the table grows with it; when it shrinks the row shrinks back.
10608
+
10609
+ ```tsx
10610
+ import { useState } from "react";
10611
+ import { Button, Text } from "@umriss-ui/core";
10612
+ import { Pagination, useTable } from "@umriss-ui/table";
10613
+
10614
+ interface Stop {
10615
+ id: string;
10616
+ street: string;
10617
+ }
10618
+
10619
+ const STOPS: Stop[] = Array.from({ length: 100 }, (_, i) => ({ id: `ST-${String(i + 1).padStart(4, "0")}`, street: `Dock ${1 + (i % 24)}` }));
10620
+ const HEIGHTS = [200, 500, 700] as const;
10621
+
10622
+ export default function BesideATallerNeighbour() {
10623
+ const [height, setHeight] = useState<number>(200);
10624
+ const { Table, Column } = useTable(STOPS, { rowKey: (s) => s.id, pageSize: 10 });
10625
+
10626
+ return (
10627
+ <div style={{ display: "grid", gap: "var(--u-space-3)" }}>
10628
+ <div style={{ display: "flex", gap: "var(--u-space-2)" }}>
10629
+ {HEIGHTS.map((h) => (
10630
+ <Button key={h} size="sm" variant={h === height ? "primary" : "secondary"} onClick={() => setHeight(h)}>
10631
+ {`Neighbour ${h} px`}
10632
+ </Button>
10633
+ ))}
10634
+ </div>
10635
+ <div data-row style={{ display: "grid", gridTemplateColumns: "1fr 1fr", gap: "var(--u-space-4)" }}>
10636
+ <div data-cell>
10637
+ <Table aria-label="Stops">
10638
+ <Column value="id" label="Stop" rowHeader />
10639
+ <Column value="street" label="Dock" />
10640
+ <Pagination />
10641
+ </Table>
10642
+ </div>
10643
+ <div data-neighbour style={{ height, borderRadius: "var(--u-radius-md)", boxShadow: "var(--u-edge)", padding: "var(--u-space-3)" }}>
10644
+ <Text size="xs" tone="muted">{`A neighbour ${height} px tall.`}</Text>
10645
+ </div>
10646
+ </div>
10647
+ </div>
10648
+ );
10649
+ }
10650
+ ```
10651
+
10538
10652
  #### When to use something else
10539
10653
 
10540
10654
  - Thousands of rows the user scrolls through without pages → Virtualisation
@@ -10579,7 +10693,7 @@ type TableRef = Omit<TableSnapshot<unknown>, "setFilter" | "conditionOf"> & {
10579
10693
 
10580
10694
  - In [server mode](#server-mode) the page goes to the server in the request, and `rowCount` decides how many pages there are.
10581
10695
 
10582
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.50.0/docs/adr/0032-what-umriss-is-not.md).
10696
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.51.0/docs/adr/0032-what-umriss-is-not.md).
10583
10697
 
10584
10698
  ### Virtualisation
10585
10699
 
@@ -10689,7 +10803,7 @@ export default function Virtualisation() {
10689
10803
 
10690
10804
  ##### Inside a pane of fixed height
10691
10805
 
10692
- In a parent of definite height the table stays within it: the toolbar keeps its place, the rows scroll, and `virtual` renders only the window - no `maxHeight` needed.
10806
+ In a parent of definite height the table fills it: the toolbar keeps its place, the rows scroll, and `virtual` renders only the window - no `maxHeight` needed.
10693
10807
 
10694
10808
  ```tsx
10695
10809
  import { useMemo } from "react";
@@ -10926,7 +11040,7 @@ From `ToolbarProps` — the full table stands on [Toolbar](#toolbar).
10926
11040
  - Paging and virtualisation do not combine; one table does one or the other.
10927
11041
  - No loading more rows while scrolling: a table on a server pages ([Server mode](#server-mode)).
10928
11042
 
10929
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.50.0/docs/adr/0032-what-umriss-is-not.md).
11043
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.51.0/docs/adr/0032-what-umriss-is-not.md).
10930
11044
 
10931
11045
  ### Benchmark
10932
11046
 
@@ -11265,7 +11379,7 @@ From `TableOptions` — the full table stands on [First table](#first-table).
11265
11379
  | Prop | Type | Default | Description |
11266
11380
  |---|---|---|---|
11267
11381
  | [`rowKey`](#first-table) *required* | `(row: Z) => string` | — | A stable key per row – the basis of selection and expansion. |
11268
- | [`pageSize`](#first-table) | `number` | `10` | How many rows a page holds. |
11382
+ | [`pageSize`](#first-table) | `number` | `10` | How many rows a page holds in flow, or with `maxHeight`, and the start value in a frame of definite height before it is measured: there a page holds the whole lines the frame leaves between the head and the pager. |
11269
11383
  | [`defaultGrouping`](#first-table) | [`GroupingId`](#first-table)`<Z> \| readonly `[`GroupingId`](#first-table)`<Z>[]` | ungrouped, until the user groups | The application's grouping: a column or group key, or up to three, the outermost first. It is the default that `view` leaves out. |
11270
11384
  | [`virtual`](#first-table) | `boolean \| { overscan?: number }` | — | Renders only what stands in the scroll area; paging is then off. Every row is one row pitch tall, which the table measures itself ([ADR-0042](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0042-a-rows-height-never-follows-what-it-shows.md)). |
11271
11385
 
@@ -12522,7 +12636,7 @@ From `ToolbarProps` — the full table stands on [Toolbar](#toolbar).
12522
12636
  - A list filter offers what `filterOptions` names; the table cannot count values it does not hold.
12523
12637
  - No loading more rows while scrolling: paging and virtualisation do not combine.
12524
12638
 
12525
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.50.0/docs/adr/0032-what-umriss-is-not.md).
12639
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.51.0/docs/adr/0032-what-umriss-is-not.md).
12526
12640
 
12527
12641
  ## Editing
12528
12642
 
@@ -13213,9 +13327,9 @@ From `ToolbarProps` — the full table stands on [Toolbar](#toolbar).
13213
13327
 
13214
13328
  #### Known limits
13215
13329
 
13216
- - No cell range selection and no built-in undo: the history of the reported edits is the application's ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.50.0/docs/adr/0032-what-umriss-is-not.md)).
13330
+ - No cell range selection and no built-in undo: the history of the reported edits is the application's ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.51.0/docs/adr/0032-what-umriss-is-not.md)).
13217
13331
 
13218
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.50.0/docs/adr/0032-what-umriss-is-not.md).
13332
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.51.0/docs/adr/0032-what-umriss-is-not.md).
13219
13333
 
13220
13334
  ## Limits and alarms
13221
13335
 
@@ -13559,7 +13673,7 @@ type Severity = "warning" | "alarm";
13559
13673
  - No list filter: four verdicts are sorted, not filtered.
13560
13674
  - It does not judge whether a value is stale; a stale value keeps its verdict ([ADR-0010](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0010-a-stale-value-keeps-its-verdict.md)).
13561
13675
 
13562
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.50.0/docs/adr/0032-what-umriss-is-not.md).
13676
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.51.0/docs/adr/0032-what-umriss-is-not.md).
13563
13677
 
13564
13678
  ## API index
13565
13679
 
@@ -14402,8 +14516,8 @@ row. Pass it as `of` to a part that stands outside the table.
14402
14516
 
14403
14517
  | Prop | Type | Default | Description |
14404
14518
  |---|---|---|---|
14405
- | `Table` *required* | `(props: `[`TableProps`](#first-table)`<Z>) => ReactNode` | — | <br>Shown in: [A first table (Installation)](#installation), [Show a list of services (First table)](#first-table), [Search and page from a header of your own (First table)](#first-table) and 138 more |
14406
- | `Column` *required* | `ColumnComponent``<Z>` | — | <br>Shown in: [A first table (Installation)](#installation), [Show a list of services (First table)](#first-table), [Search and page from a header of your own (First table)](#first-table) and 138 more |
14519
+ | `Table` *required* | `(props: `[`TableProps`](#first-table)`<Z>) => ReactNode` | — | <br>Shown in: [A first table (Installation)](#installation), [Show a list of services (First table)](#first-table), [Search and page from a header of your own (First table)](#first-table) and 140 more |
14520
+ | `Column` *required* | `ColumnComponent``<Z>` | — | <br>Shown in: [A first table (Installation)](#installation), [Show a list of services (First table)](#first-table), [Search and page from a header of your own (First table)](#first-table) and 140 more |
14407
14521
  | `VerdictColumn` *required* | `VerdictColumnComponent``<Z>` | — | <br>Shown in: [A bar, a scale, an icon and a limit (Conditional formatting)](#conditional-formatting), [Pin columns to both sides (Width and pinning)](#width-and-pinning), [Read a day's deliveries by depot (Grouping)](#grouping-1) and 6 more |
14408
14522
  | `RowDetail` *required* | `(props: `[`RowDetailProps`](#rowdetail)`<Z>) => ReactNode` | — | <br>Shown in: [Keep the header and the names in view (Width and pinning)](#width-and-pinning), [Employees in the detail (Tree rows)](#tree-rows), [Own staff and teams (Tree rows)](#tree-rows) and 5 more |
14409
14523
  | `RowActions` *required* | `(props: `[`RowActionsProps`](#rowactions)`) => ReactNode` | — | <br>Shown in: [Name the row (Column)](#column), [Pin columns to both sides (Width and pinning)](#width-and-pinning), [Select a whole group (Grouping)](#grouping-1) and 8 more |
@@ -14416,9 +14530,9 @@ row. Pass it as `of` to a part that stands outside the table.
14416
14530
  | `visible` *required* | `readonly Z[]` | — | What is rendered right now: the page or the window. From `TableSnapshot`.<br>Shown in: [Scroll twenty thousand rows (Virtualisation)](#virtualisation) |
14417
14531
  | `page` *required* | `number` | — | The page shown, from 1. Without `Pagination` always 1. From `TableSnapshot`.<br>Shown in: [Search and page from a header of your own (First table)](#first-table) |
14418
14532
  | `pageCount` *required* | `number` | — | How many pages the filtered set makes. From `TableSnapshot`.<br>Shown in: [Search and page from a header of your own (First table)](#first-table) |
14419
- | `pageSize` *required* | `number` | — | Rows per page. From `TableSnapshot`.<br>Shown in: [Search and page from a header of your own (First table)](#first-table) |
14533
+ | `pageSize` *required* | `number` | — | Rows per page now: the whole lines a filled frame holds, otherwise the chosen size. From `TableSnapshot`.<br>Shown in: [Search and page from a header of your own (First table)](#first-table) |
14420
14534
  | `setPage` *required* | `(page: number) => void` | — | Changes the page, clamped to those that exist. From `TableSnapshot`.<br>Shown in: [Search and page from a header of your own (First table)](#first-table) |
14421
- | `setPageSize` *required* | `(size: number) => void` | — | Sets the rows per page; back to page one. From `TableSnapshot`.<br>Shown in: [Search and page from a header of your own (First table)](#first-table) |
14535
+ | `setPageSize` *required* | `(size: number \| "fit") => void` | — | Sets the rows per page, a choice the view keeps. The page follows the row the user looks at - the one with focus, else the current row on the page, else the top row - and does not go back to page one; a search, a filter and a sort still do. `"fit"` takes the choice back: in a filled frame the page is what the frame holds again. From `TableSnapshot`.<br>Shown in: [Search and page from a header of your own (First table)](#first-table) |
14422
14536
  | `search` *required* | `string` | — | The search text. From `TableSnapshot`.<br>Shown in: [Search and page from a header of your own (First table)](#first-table) |
14423
14537
  | `setSearch` *required* | `(search: string) => void` | — | Sets the search text; back to page one. From `TableSnapshot`.<br>Shown in: [Search and page from a header of your own (First table)](#first-table) |
14424
14538
  | `sort` *required* | `readonly ``SortLevel``[]` | — | The sort levels, the first one first – only over columns that registered. From `TableSnapshot`.<br>Shown in: [Sort, arrange and export from controls of your own (First table)](#first-table) |
@@ -14456,6 +14570,7 @@ row. Pass it as `of` to a part that stands outside the table.
14456
14570
  | `rowCount` *required* | `number` | — | How many rows the filtered set has - in server mode the server's count. From `TableSnapshot`.<br>Shown in: [Search and page from a header of your own (First table)](#first-table) |
14457
14571
  | `server` *required* | `boolean` | — | Whether it is in server mode: the rows are one page of a server's. From `TableSnapshot`.<br>Shown in: [Sort, arrange and export from controls of your own (First table)](#first-table) |
14458
14572
  | `request` *required* | `TableRequest`` \| null` | — | Server mode: the request `onRequest` last received, or is about to; `null` outside it. From `TableSnapshot`.<br>Shown in: [Show loading, and hold a late answer (Server mode)](#server-mode) |
14573
+ | `framed` *required* | `boolean` | — | Whether the table fills a parent of definite height, with no prop: the frame is exactly as tall as the parent. `false` in a flowing parent and with `maxHeight`. It does not depend on the Pagination. From `TableSnapshot`.<br>Shown in: [Fill a pane (Pagination)](#pagination) |
14459
14574
 
14460
14575
  Used on [Scenarios](#scenarios), [Installation](#installation), [First table](#first-table), [Provider](#provider), [Column](#column), [Formats](#formats), [Conditional formatting](#conditional-formatting), [Width and pinning](#width-and-pinning), [Presets](#presets), [Sorting](#sorting), [Search](#search), [Filter](#filter), [Pre-filter](#pre-filter), [Grouping](#grouping-1), [Tree rows](#tree-rows), [Aggregate](#aggregate), [Selection](#selection), [Row appearance](#row-appearance), [RowDetail](#rowdetail), [RowActions](#rowactions), [Toolbar](#toolbar), [Toolbar controls](#toolbar-controls), [ColumnMenu](#columnmenu), [Export](#export), [View](#view), [Pagination](#pagination), [Virtualisation](#virtualisation), [Benchmark](#benchmark), [Server mode](#server-mode), [Grid mode](#grid-mode), [Edits](#edits) and [VerdictColumn](#verdictcolumn).
14461
14576
 
@@ -14800,9 +14915,13 @@ Everything the library puts out as text.
14800
14915
  | `pagination` *required* | `string` | — | |
14801
14916
  | `rows` *required* | `string` | — | |
14802
14917
  | `rowsPerPage` *required* | `string` | — | |
14918
+ | `fit` *required* | `string` | — | The page-size choice that leaves the page to the frame. |
14803
14919
  | `pageOfPages` *required* | `(page: number, total: number, formatted?: { page: string; total: string }) => string` | — | "Page 2 of 7". `formatted` carries both numbers in the provider's formats, where the caller has them - a table over a server has "Page 1 of 100,000". |
14920
+ | `pageRange` *required* | `(from: number, to: number, total: number, formatted?: { from: string; to: string; total: string }) => string` | — | "13–24 of 120" in the pagination bar. `formatted` carries the three numbers in the provider's formats, where the caller has them. |
14921
+ | `firstPage` *required* | `string` | — | The names of the four steps of the pagination bar. |
14804
14922
  | `previousPage` *required* | `string` | — | |
14805
14923
  | `nextPage` *required* | `string` | — | |
14924
+ | `lastPage` *required* | `string` | — | |
14806
14925
  | `filterReset` *required* | `string` | — | The two buttons in the column filter's footer. |
14807
14926
  | `filterDone` *required* | `string` | — | |
14808
14927
  | `columns` *required* | `string` | — | The column menu's button.<br>Shown in: [Set wording and formats once (Provider)](#provider) |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umriss-ui/table",
3
- "version": "0.50.0",
3
+ "version": "0.51.0",
4
4
  "description": "React data table for data-dense applications - sorting, filtering, grouping, aggregates, virtualisation. Declared the way it reads: columns as JSX, typed against their rows.",
5
5
  "license": "MIT",
6
6
  "author": "Roman Händler",
@@ -68,7 +68,7 @@
68
68
  }
69
69
  },
70
70
  "peerDependencies": {
71
- "@umriss-ui/core": "^0.50.0",
71
+ "@umriss-ui/core": "^0.51.0",
72
72
  "react": ">=19",
73
73
  "react-dom": ">=19"
74
74
  },
@@ -78,7 +78,7 @@
78
78
  "@types/node": "^22.20.2",
79
79
  "@types/react": "^19.0.0",
80
80
  "@types/react-dom": "^19.0.0",
81
- "@umriss-ui/core": "0.50.0",
81
+ "@umriss-ui/core": "0.51.0",
82
82
  "@umriss-ui/demo": "0.0.0",
83
83
  "@vitejs/plugin-react": "^4.3.4",
84
84
  "happy-dom": "^21.0.4",