@umriss-ui/table 0.49.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.49.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
 
@@ -1250,11 +1250,11 @@ A value cut short at the edge of its cell shows whole in a tip, under the pointe
1250
1250
  | Prop | Type | Default | Description |
1251
1251
  |---|---|---|---|
1252
1252
  | `selectable` | `boolean` | — | Adds the selection column. "All" means: the filtered set.<br>Shown in: [Name the row (Column)](#column), [Pin columns to both sides (Width and pinning)](#width-and-pinning), [Keep the header and the names in view (Width and pinning)](#width-and-pinning) and 17 more |
1253
- | `stickyHeader` | `boolean` | — | Keeps the header row visible while scrolling.<br>Shown in: [A header over columns (Column)](#column), [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) and 9 more |
1253
+ | `stickyHeader` | `boolean` | — | Keeps the header row visible while scrolling.<br>Shown in: [A header over columns (Column)](#column), [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) and 10 more |
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 7 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 137 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,14 +1282,14 @@ 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 137 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) |
1290
1290
  | `rowFilters` | `readonly `[`RowFilter`](#filter)`<Z, any>[]` | — | The row filters the table has: conditions the application defines over the whole row and sets with `t.setFilter(filter, condition)` from a control of its own. Named here so that a condition from `initialView`, which arrives by id, is known in the first render.<br>Shown in: [Filter by a field no column shows (Filter)](#filter), [Rows from a request (Filter)](#filter), [Ask a question over several fields (Filter)](#filter) and 3 more |
1291
1291
  | `initialView` | `TableView` | — | The view to start from, read once when the hook first runs; a different value on a later render is ignored, as React ignores a changed `defaultValue`. To go to a view later, call `setView`. The table remembers none: where a view is kept is the application's decision. Names no column carries fall out.<br>Shown in: [Ask a question over several fields (Filter)](#filter), [Filter a text with operators (Filter)](#filter), [Fold groups into a summary (Grouping)](#grouping-1) and 4 more |
1292
- | `virtual` | `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)).<br>Shown in: [Group twenty thousand rows (Grouping)](#grouping-1), [Scroll twenty thousand rows (Virtualisation)](#virtualisation), [Inside a pane of fixed height (Virtualisation)](#virtualisation) and 4 more |
1292
+ | `virtual` | `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)).<br>Shown in: [Group twenty thousand rows (Grouping)](#grouping-1), [Scroll twenty thousand rows (Virtualisation)](#virtualisation), [Inside a pane of fixed height (Virtualisation)](#virtualisation) and 5 more |
1293
1293
  | `selection` | `TableSelection``<string>` | — | A selection from outside instead of its own – when the application holds it.<br>Shown in: [Hold the selection yourself (Selection)](#selection) |
1294
1294
  | `onSelectionChange` | `(keys: string[]) => void` | — | Called with the selected keys after each change – the user's or the API's, its own selection or the one handed in – from an effect, never at mount. Under "all that match" (server mode) the keys are the ones ticked before it; `selection.allMatching` and `selection.except` tell the rest.<br>Shown in: [Hear the selection (Selection)](#selection) |
1295
1295
 
@@ -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.49.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.49.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.49.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 137 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,9 +1971,9 @@ 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 137 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 136 more |
1975
- | `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) |
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 |
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) |
1978
1979
  | `minWidth` | `number` | — | The least width of a column with `flex`, in pixels.<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.49.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.49.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.49.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.49.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.49.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.49.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.49.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.49.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) |
@@ -9919,6 +9924,7 @@ Everything the library puts out as text.
9919
9924
  | `dropFiles` *required* | `string` | — | |
9920
9925
  | `removeFile` *required* | `(name: string) => string` | — | The cross beside a chosen file. |
9921
9926
  | `fileNotAccepted` *required* | `(name: string) => string` | — | A dropped file the input's `accept` does not take. |
9927
+ | `numberRefused` *required* | `string` | — | A NumberInput refusing a character it cannot read. |
9922
9928
  | `show` *required* | `string` | — | |
9923
9929
  | `hide` *required* | `string` | — | |
9924
9930
  | `moreActions` *required* | `string` | — | |
@@ -10080,7 +10086,7 @@ Everything the library puts out as text.
10080
10086
 
10081
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.
10082
10088
 
10083
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.49.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).
10084
10090
 
10085
10091
  ### View
10086
10092
 
@@ -10534,6 +10540,115 @@ export default function ShowEveryRow() {
10534
10540
  }
10535
10541
  ```
10536
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
+
10537
10652
  #### When to use something else
10538
10653
 
10539
10654
  - Thousands of rows the user scrolls through without pages → Virtualisation
@@ -10578,7 +10693,7 @@ type TableRef = Omit<TableSnapshot<unknown>, "setFilter" | "conditionOf"> & {
10578
10693
 
10579
10694
  - In [server mode](#server-mode) the page goes to the server in the request, and `rowCount` decides how many pages there are.
10580
10695
 
10581
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.49.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).
10582
10697
 
10583
10698
  ### Virtualisation
10584
10699
 
@@ -10688,7 +10803,7 @@ export default function Virtualisation() {
10688
10803
 
10689
10804
  ##### Inside a pane of fixed height
10690
10805
 
10691
- 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.
10692
10807
 
10693
10808
  ```tsx
10694
10809
  import { useMemo } from "react";
@@ -10819,6 +10934,41 @@ export default function ScrollToARow() {
10819
10934
  }
10820
10935
  ```
10821
10936
 
10937
+ ##### Column groups over virtual rows
10938
+
10939
+ Two thousand rows, rendered a window at a time: both head rows stay in the sticky head, and a screen reader still counts each row within the whole set.
10940
+
10941
+ ```tsx
10942
+ import { useMemo } from "react";
10943
+ import { ColumnGroup, useTable } from "@umriss-ui/table";
10944
+
10945
+ interface Reading {
10946
+ id: string;
10947
+ mon: number;
10948
+ tue: number;
10949
+ wed: number;
10950
+ }
10951
+
10952
+ export default function GroupsOverVirtualRows() {
10953
+ const readings = useMemo<Reading[]>(
10954
+ () => Array.from({ length: 2000 }, (_, i) => ({ id: `R-${String(i + 1).padStart(4, "0")}`, mon: i % 17, tue: (i * 3) % 19, wed: (i * 7) % 23 })),
10955
+ [],
10956
+ );
10957
+ const { Table, Column } = useTable(readings, { rowKey: (r) => r.id, virtual: true });
10958
+
10959
+ return (
10960
+ <Table stickyHeader maxHeight="300px" aria-label="Readings">
10961
+ <Column value="id" label="Reading" rowHeader />
10962
+ <ColumnGroup label="Week 1">
10963
+ <Column value="mon" label="Mon" numeric />
10964
+ <Column value="tue" label="Tue" numeric />
10965
+ <Column value="wed" label="Wed" numeric />
10966
+ </ColumnGroup>
10967
+ </Table>
10968
+ );
10969
+ }
10970
+ ```
10971
+
10822
10972
  #### Keyboard
10823
10973
 
10824
10974
  | Key | Action |
@@ -10870,6 +11020,7 @@ From `ColumnBase` — the full table stands on [Column](#column).
10870
11020
  |---|---|---|---|
10871
11021
  | [`label`](#column) *required* | `string` | — | Names the column in its header, in the column menu and in the header row of the export. |
10872
11022
  | [`rowHeader`](#column) | `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. |
11023
+ | [`numeric`](#column) | `boolean` | decided by the first value present | Right-aligned with tabular figures. |
10873
11024
  | [`width`](#column) | `number` | the browser's | Initial width in pixels. |
10874
11025
 
10875
11026
  From `SearchProps` — the full table stands on [Search](#search).
@@ -10889,7 +11040,7 @@ From `ToolbarProps` — the full table stands on [Toolbar](#toolbar).
10889
11040
  - Paging and virtualisation do not combine; one table does one or the other.
10890
11041
  - No loading more rows while scrolling: a table on a server pages ([Server mode](#server-mode)).
10891
11042
 
10892
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.49.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).
10893
11044
 
10894
11045
  ### Benchmark
10895
11046
 
@@ -11228,7 +11379,7 @@ From `TableOptions` — the full table stands on [First table](#first-table).
11228
11379
  | Prop | Type | Default | Description |
11229
11380
  |---|---|---|---|
11230
11381
  | [`rowKey`](#first-table) *required* | `(row: Z) => string` | — | A stable key per row – the basis of selection and expansion. |
11231
- | [`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. |
11232
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. |
11233
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)). |
11234
11385
 
@@ -12485,7 +12636,7 @@ From `ToolbarProps` — the full table stands on [Toolbar](#toolbar).
12485
12636
  - A list filter offers what `filterOptions` names; the table cannot count values it does not hold.
12486
12637
  - No loading more rows while scrolling: paging and virtualisation do not combine.
12487
12638
 
12488
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.49.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).
12489
12640
 
12490
12641
  ## Editing
12491
12642
 
@@ -13176,9 +13327,9 @@ From `ToolbarProps` — the full table stands on [Toolbar](#toolbar).
13176
13327
 
13177
13328
  #### Known limits
13178
13329
 
13179
- - 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.49.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)).
13180
13331
 
13181
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.49.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).
13182
13333
 
13183
13334
  ## Limits and alarms
13184
13335
 
@@ -13522,7 +13673,7 @@ type Severity = "warning" | "alarm";
13522
13673
  - No list filter: four verdicts are sorted, not filtered.
13523
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)).
13524
13675
 
13525
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.49.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).
13526
13677
 
13527
13678
  ## API index
13528
13679
 
@@ -13543,7 +13694,7 @@ group's visible columns.
13543
13694
  function ColumnGroup({ label, children }: ColumnGroupProps): ReactNode;
13544
13695
  ```
13545
13696
 
13546
- Used on [Column](#column).
13697
+ Used on [Column](#column) and [Virtualisation](#virtualisation).
13547
13698
 
13548
13699
  ##### `ColumnMenu`
13549
13700
 
@@ -13845,8 +13996,8 @@ The props of `ColumnGroup`.
13845
13996
 
13846
13997
  | Prop | Type | Default | Description |
13847
13998
  |---|---|---|---|
13848
- | `label` *required* | `string` | — | The text over the group's columns.<br>Shown in: [A header over columns (Column)](#column) |
13849
- | `children` | `ReactNode` | — | The `Column`s of the group; they stay together when columns are reordered.<br>Shown in: [A header over columns (Column)](#column) |
13999
+ | `label` *required* | `string` | — | The text over the group's columns.<br>Shown in: [A header over columns (Column)](#column), [Column groups over virtual rows (Virtualisation)](#virtualisation) |
14000
+ | `children` | `ReactNode` | — | The `Column`s of the group; they stay together when columns are reordered.<br>Shown in: [A header over columns (Column)](#column), [Column groups over virtual rows (Virtualisation)](#virtualisation) |
13850
14001
 
13851
14002
  ##### `ColumnMenuProps`
13852
14003
 
@@ -14365,8 +14516,8 @@ row. Pass it as `of` to a part that stands outside the table.
14365
14516
 
14366
14517
  | Prop | Type | Default | Description |
14367
14518
  |---|---|---|---|
14368
- | `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 137 more |
14369
- | `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 137 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 |
14370
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 |
14371
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 |
14372
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 |
@@ -14379,9 +14530,9 @@ row. Pass it as `of` to a part that stands outside the table.
14379
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) |
14380
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) |
14381
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) |
14382
- | `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) |
14383
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) |
14384
- | `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) |
14385
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) |
14386
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) |
14387
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) |
@@ -14419,6 +14570,7 @@ row. Pass it as `of` to a part that stands outside the table.
14419
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) |
14420
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) |
14421
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) |
14422
14574
 
14423
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).
14424
14576
 
@@ -14763,9 +14915,13 @@ Everything the library puts out as text.
14763
14915
  | `pagination` *required* | `string` | — | |
14764
14916
  | `rows` *required* | `string` | — | |
14765
14917
  | `rowsPerPage` *required* | `string` | — | |
14918
+ | `fit` *required* | `string` | — | The page-size choice that leaves the page to the frame. |
14766
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. |
14767
14922
  | `previousPage` *required* | `string` | — | |
14768
14923
  | `nextPage` *required* | `string` | — | |
14924
+ | `lastPage` *required* | `string` | — | |
14769
14925
  | `filterReset` *required* | `string` | — | The two buttons in the column filter's footer. |
14770
14926
  | `filterDone` *required* | `string` | — | |
14771
14927
  | `columns` *required* | `string` | — | The column menu's button.<br>Shown in: [Set wording and formats once (Provider)](#provider) |
@@ -14912,6 +15068,7 @@ Everything the library puts out as text.
14912
15068
  | `dropFiles` *required* | `string` | — | |
14913
15069
  | `removeFile` *required* | `(name: string) => string` | — | The cross beside a chosen file. |
14914
15070
  | `fileNotAccepted` *required* | `(name: string) => string` | — | A dropped file the input's `accept` does not take. |
15071
+ | `numberRefused` *required* | `string` | — | A NumberInput refusing a character it cannot read. |
14915
15072
  | `show` *required* | `string` | — | |
14916
15073
  | `hide` *required* | `string` | — | |
14917
15074
  | `moreActions` *required* | `string` | — | |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umriss-ui/table",
3
- "version": "0.49.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.49.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.49.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",
@@ -98,7 +98,7 @@
98
98
  "typecheck": "tsc --noEmit",
99
99
  "typecheck:demo": "pnpm run props && tsc --noEmit -p tsconfig.demo.json",
100
100
  "check:site": "pnpm run props -- --check && node --disable-warning=ExperimentalWarning --experimental-strip-types ../../scripts/checkReadmeLinks.ts",
101
- "preview:demo": "vite preview --config vite.demo.config.ts --port 4175 --strictPort",
101
+ "preview:demo": "node ../../scripts/preview.mjs table",
102
102
  "test:unit": "vitest run",
103
103
  "check:dist": "node --disable-warning=ExperimentalWarning --experimental-strip-types ../../scripts/check-dist.ts table.js table.css"
104
104
  }