@umriss-ui/table 0.34.0 → 0.36.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.34.0
1
+ # @umriss-ui/table 0.36.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
 
@@ -899,7 +899,7 @@ npm install @umriss-ui/table @umriss-ui/core
899
899
 
900
900
  Demo page: https://romanhaendler.github.io/umriss-ui/table/installation/
901
901
 
902
- The command brings the core package along, a peer dependency: the table reads its provider, its formats and its wording ([ADR-0016](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0016-the-table-is-a-package-that-depends-on-ui.md)). React 18 or 19 is a peer as well and stays the application's own.
902
+ The command brings the core package along, a peer dependency: the table reads its provider, its formats and its wording ([ADR-0016](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0016-the-table-is-a-package-that-depends-on-ui.md)). React 19 or newer is a peer as well and stays the application's own.
903
903
 
904
904
  There is no stylesheet to import. The table loads its own, and the core package loads the tokens it reads; both lie in cascade layers, so the application's CSS wins. `@umriss-ui/table/styles.css` stays exported for setups that link stylesheets by hand.
905
905
 
@@ -1258,11 +1258,11 @@ A value cut short at the edge of its cell shows whole in a tip, under the pointe
1258
1258
  | Prop | Type | Default | Description |
1259
1259
  |---|---|---|---|
1260
1260
  | `selectable` | `boolean` | — | Adds the selection column. "All" means: the filtered set.<br>Shown in: [Name the row (Column)](#/column/row-header), [Pin columns to both sides (Width and pinning)](#/width-and-pinning/pinned-both-sides), [Keep the header and the names in view (Width and pinning)](#/width-and-pinning/sticky-parts) and 14 more |
1261
- | `stickyHeader` | `boolean` | — | Keeps the header row visible while scrolling.<br>Shown in: [Keep the header and the names in view (Width and pinning)](#/width-and-pinning/sticky-parts), [Fold groups into a summary (Grouping)](#/grouping/the-overview), [Group twenty thousand rows (Grouping)](#/grouping/twenty-thousand-rows) and 3 more |
1261
+ | `stickyHeader` | `boolean` | — | Keeps the header row visible while scrolling.<br>Shown in: [Keep the header and the names in view (Width and pinning)](#/width-and-pinning/sticky-parts), [Fold groups into a summary (Grouping)](#/grouping/the-overview), [Group twenty thousand rows (Grouping)](#/grouping/twenty-thousand-rows) and 4 more |
1262
1262
  | `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/sticky-parts), [Stripes across a wide table (Row appearance)](#/row-appearance/stripes-across-a-wide-table), [Show, hide and arrange (ColumnMenu)](#/columnmenu/show-hide-and-arrange) and 1 more |
1263
1263
  | `striped` | `boolean` | — | Discreet zebra stripes.<br>Shown in: [Stripes across a wide table (Row appearance)](#/row-appearance/stripes-across-a-wide-table) |
1264
1264
  | `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/compact-and-long-values), [Employees in the detail (Tree rows)](#/tree-rows/employees-in-the-detail), [Own staff and teams (Tree rows)](#/tree-rows/own-staff-and-teams) and 4 more |
1265
- | `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/sticky-parts), [Fold groups into a summary (Grouping)](#/grouping/the-overview), [Group twenty thousand rows (Grouping)](#/grouping/twenty-thousand-rows) and 3 more |
1265
+ | `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/sticky-parts), [Fold groups into a summary (Grouping)](#/grouping/the-overview), [Group twenty thousand rows (Grouping)](#/grouping/twenty-thousand-rows) and 4 more |
1266
1266
  | `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/pre-filter), [Show loading, empty, failed and no match (Row appearance)](#/row-appearance/states) |
1267
1267
  | `loading` | `boolean` | — | Shows placeholder rows instead of the rows.<br>Shown in: [Rows from a request (Filter)](#/filter/rows-from-a-request), [Show loading, empty, failed and no match (Row appearance)](#/row-appearance/states), [Show loading, and drop a late answer (Server mode)](#/server-mode/loading-and-late-answers) and 1 more |
1268
1268
  | `rowProps` | `(row: Z) => `[`RowAttributes`](#type-RowAttributes) | — | Classes and data attributes per row.<br>Shown in: [Mark rows by their state (Row appearance)](#/row-appearance/styling-rows) |
@@ -1270,7 +1270,7 @@ A value cut short at the edge of its cell shows whole in a tip, under the pointe
1270
1270
  | `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: [Work cell by cell (Grid mode)](#/grid-mode/grid-mode), [Combine grid mode with groups, pinning and many rows (Grid mode)](#/grid-mode/the-whole-grid), [Edit a comments column (Edits)](#/edits/comments-column) and 6 more |
1271
1271
  | `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/save-a-row-on-purpose), [Check a whole row before it is saved (Edits)](#/edits/check-a-whole-row), [Keep a list: add, change and delete rows (Edits)](#/edits/keep-a-list) and 1 more |
1272
1272
  | `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/keep-a-list) |
1273
- | `children` | `ReactNode` | — | Columns, `RowDetail`, `RowActions` and the unbound parts.<br>Shown in: [Show a list of services](#/first-table/first-table), [Search and page from a header of your own](#/first-table/search-and-page-from-a-header-of-your-own), [Sort, arrange and export from controls of your own](#/first-table/sort-arrange-and-export-from-controls-of-your-own) and 117 more |
1273
+ | `children` | `ReactNode` | — | Columns, `RowDetail`, `RowActions` and the unbound parts.<br>Shown in: [Show a list of services](#/first-table/first-table), [Search and page from a header of your own](#/first-table/search-and-page-from-a-header-of-your-own), [Sort, arrange and export from controls of your own](#/first-table/sort-arrange-and-export-from-controls-of-your-own) and 118 more |
1274
1274
 
1275
1275
  ###### Events
1276
1276
 
@@ -1285,7 +1285,7 @@ A value cut short at the edge of its cell shows whole in a tip, under the pointe
1285
1285
 
1286
1286
  | Prop | Type | Default | Description |
1287
1287
  |---|---|---|---|
1288
- | `ariaLabel` | `string` | — | Accessible name of the table (not of the outer frame).<br>Shown in: [Show a list of services](#/first-table/first-table), [Search and page from a header of your own](#/first-table/search-and-page-from-a-header-of-your-own), [Sort, arrange and export from controls of your own](#/first-table/sort-arrange-and-export-from-controls-of-your-own) and 117 more |
1288
+ | `ariaLabel` | `string` | — | Accessible name of the table (not of the outer frame).<br>Shown in: [Show a list of services](#/first-table/first-table), [Search and page from a header of your own](#/first-table/search-and-page-from-a-header-of-your-own), [Sort, arrange and export from controls of your own](#/first-table/sort-arrange-and-export-from-controls-of-your-own) and 118 more |
1289
1289
 
1290
1290
  ###### Styling
1291
1291
 
@@ -1297,14 +1297,14 @@ A value cut short at the edge of its cell shows whole in a tip, under the pointe
1297
1297
 
1298
1298
  | Prop | Type | Default | Description |
1299
1299
  |---|---|---|---|
1300
- | `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/first-table), [Search and page from a header of your own](#/first-table/search-and-page-from-a-header-of-your-own), [Sort, arrange and export from controls of your own](#/first-table/sort-arrange-and-export-from-controls-of-your-own) and 117 more |
1301
- | `pageSize` | `number` | `10` | How many rows a page holds.<br>Shown in: [Search and page from a header of your own](#/first-table/search-and-page-from-a-header-of-your-own), [Ask a question over several fields (Filter)](#/filter/a-question-over-several-fields), [Restrict which rows a table has (Pre-filter)](#/pre-filter/pre-filter) and 6 more |
1300
+ | `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/first-table), [Search and page from a header of your own](#/first-table/search-and-page-from-a-header-of-your-own), [Sort, arrange and export from controls of your own](#/first-table/sort-arrange-and-export-from-controls-of-your-own) and 118 more |
1301
+ | `pageSize` | `number` | `10` | How many rows a page holds.<br>Shown in: [Search and page from a header of your own](#/first-table/search-and-page-from-a-header-of-your-own), [Ask a question over several fields (Filter)](#/filter/a-question-over-several-fields), [Restrict which rows a table has (Pre-filter)](#/pre-filter/pre-filter) and 7 more |
1302
1302
  | `defaultSort` | [`SortLevel`](#type-SortLevel)` \| readonly `[`SortLevel`](#type-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/sort-arrange-and-export-from-controls-of-your-own), [A label wider than its column (Width and pinning)](#/width-and-pinning/a-label-wider-than-its-column), [Sort by several columns (Sorting)](#/sorting/sort-by-several-columns) and 10 more |
1303
- | `defaultGrouping` | [`GroupingId`](#type-GroupingId)`<Z> \| readonly `[`GroupingId`](#type-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/one-level), [Group on two levels (Grouping)](#/grouping/two-levels), [Group on three levels (Grouping)](#/grouping/three-levels) and 22 more |
1303
+ | `defaultGrouping` | [`GroupingId`](#type-GroupingId)`<Z> \| readonly `[`GroupingId`](#type-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/one-level), [Group on two levels (Grouping)](#/grouping/two-levels), [Group on three levels (Grouping)](#/grouping/three-levels) and 23 more |
1304
1304
  | `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/pre-filter) |
1305
1305
  | `rowFilters` | `readonly `[`RowFilter`](#/filter/type-RowFilter)`<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/a-field-no-column-shows), [Rows from a request (Filter)](#/filter/rows-from-a-request), [Ask a question over several fields (Filter)](#/filter/a-question-over-several-fields) and 3 more |
1306
1306
  | `initialView` | [`TableView`](#type-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/a-question-over-several-fields), [Fold groups into a summary (Grouping)](#/grouping/the-overview), [Show loading, empty, failed and no match (Row appearance)](#/row-appearance/states) and 2 more |
1307
- | `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/twenty-thousand-rows), [Scroll twenty thousand rows (Virtualisation)](#/virtualisation/virtualisation), [Combine grid mode with groups, pinning and many rows (Grid mode)](#/grid-mode/the-whole-grid) |
1307
+ | `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/twenty-thousand-rows), [Scroll twenty thousand rows (Virtualisation)](#/virtualisation/virtualisation), [Measure two hundred thousand rows (Benchmark)](#/benchmark/benchmark) and 1 more |
1308
1308
  | `selection` | [`TableSelection`](#type-TableSelection)`<string>` | — | A selection from outside instead of its own – when the application holds it.<br>Shown in: [Hold the selection yourself (Selection)](#/selection/hold-the-selection-yourself) |
1309
1309
 
1310
1310
  ###### Events
@@ -1710,6 +1710,8 @@ Without a presentation the value type decides: text on the left, numbers right-a
1710
1710
 
1711
1711
  A computed value needs an `id`. One column is the row header: it names the row, cannot be hidden, and the row's checkbox and actions are read out with it.
1712
1712
 
1713
+ A computed `value` (like `sortValue`, `groupValue` and `rowKey`) may be written inline: a new function with the same source text counts as the same one, and nothing is recomputed. A closure that reads an outer variable which has changed reads as unchanged; give the function a new text, or carry the variable in the row data.
1714
+
1713
1715
  #### Examples
1714
1716
 
1715
1717
  ##### Read a value from a field
@@ -1876,7 +1878,7 @@ The `label` is the column header's text, and so what a screen reader says for ev
1876
1878
 
1877
1879
  | Prop | Type | Default | Description |
1878
1880
  |---|---|---|---|
1879
- | `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/value-from-field), [Compute a value from the row](#/column/computed-value), [Let the value type decide](#/column/defaults) and 117 more |
1881
+ | `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/value-from-field), [Compute a value from the row](#/column/computed-value), [Let the value type decide](#/column/defaults) and 118 more |
1880
1882
  | `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/format), [Share a column between tables (Presets)](#/presets/presets) |
1881
1883
  | `format` | [`FormatFor`](#type-FormatFor)`<Z[K]>` | — | A standard presentation by name: `"percent"`, `"count"` or `{ decimals }` for numbers, `"date"`, `"time"` or `"dateTime"` for points in time. Alignment, sorting, export and footer stay with the value.<br>Shown in: [Compute a value from the row](#/column/computed-value), [Set wording and formats once (Provider)](#/provider/provider), [Pick a standard format (Formats)](#/formats/format) and 33 more |
1882
1884
  | `filter` | [`FilterFor`](#type-FilterFor)`<Z[K]>` | — | A filter in the column header: `"list"` offers the values that occur, `"range"` two bounds (numbers or points in time), 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/a-label-wider-than-its-column), [Share a column between tables (Presets)](#/presets/presets), [Choose from the values that occur (Filter)](#/filter/list-filter) and 11 more |
@@ -1884,7 +1886,7 @@ The `label` is the column header's text, and so what a screen reader says for ev
1884
1886
  | `edit` | [`EditFor`](#type-EditFor)`<Z[K], Z>` | — | Edits the column's cells in place in grid mode: Enter, F2 or typing starts it, Enter or Tab commits, Escape cancels. The table applies nothing - the edit is reported through the table's `onCellEdit`. From `EditOptions`.<br>Shown in: [Share a column between tables (Presets)](#/presets/presets), [Combine grid mode with groups, pinning and many rows (Grid mode)](#/grid-mode/the-whole-grid), [Edit a comments column (Edits)](#/edits/comments-column) and 6 more |
1885
1887
  | `editOptions` | `readonly `[`Present`](#type-Present)`<Z[K]>[]` | the values that occur | What `edit="select"` offers. From `EditOptions`.<br>Shown in: [Share a column between tables (Presets)](#/presets/presets), [Check an edit before it is reported (Edits)](#/edits/validated-edits), [Save a row on purpose (Edits)](#/edits/save-a-row-on-purpose) and 1 more |
1886
1888
  | `validate` | `(value: Z[K] \| null, row: Z) => string \| null \| undefined` | — | Checks a draft before it is reported: a message keeps the editor open and stands beneath the field, as in a `FormField`; nothing lets it through. From `EditOptions`.<br>Shown in: [Share a column between tables (Presets)](#/presets/presets), [Combine grid mode with groups, pinning and many rows (Grid mode)](#/grid-mode/the-whole-grid), [Check an edit before it is reported (Edits)](#/edits/validated-edits) and 3 more |
1887
- | `children` | [`Presentation`](#type-Presentation)`<Z[K], Z>` | — | How the value appears: `(value, row)`. Never called for an absent value. Required where the value has no text form.<br>Shown in: [Draw a value with other components (Formats)](#/formats/presentation), [Show absent values (Formats)](#/formats/absent-values), [Fit what does not fit (Formats)](#/formats/values-that-do-not-fit) and 8 more |
1889
+ | `children` | [`Presentation`](#type-Presentation)`<Z[K], Z>` | — | How the value appears: `(value, row)`. Never called for an absent value. Required where the value has no text form.<br>Shown in: [Draw a value with other components (Formats)](#/formats/presentation), [Show absent values (Formats)](#/formats/absent-values), [Fit what does not fit (Formats)](#/formats/values-that-do-not-fit) and 9 more |
1888
1890
 
1889
1891
  Also every prop of `ColumnBase`, `ValuePaths` and `AggregateOptions`.
1890
1892
 
@@ -1892,10 +1894,10 @@ Also every prop of `ColumnBase`, `ValuePaths` and `AggregateOptions`.
1892
1894
 
1893
1895
  | Prop | Type | Default | Description |
1894
1896
  |---|---|---|---|
1895
- | `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/value-from-field), [Compute a value from the row](#/column/computed-value), [Let the value type decide](#/column/defaults) and 117 more |
1896
- | `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/value-from-field), [Compute a value from the row](#/column/computed-value), [Let the value type decide](#/column/defaults) and 116 more |
1897
+ | `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/value-from-field), [Compute a value from the row](#/column/computed-value), [Let the value type decide](#/column/defaults) and 118 more |
1898
+ | `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/value-from-field), [Compute a value from the row](#/column/computed-value), [Let the value type decide](#/column/defaults) and 117 more |
1897
1899
  | `numeric` | `boolean` | decided by the first value present | Right-aligned with tabular figures.<br>Shown in: [Share a column between tables (Presets)](#/presets/presets) |
1898
- | `width` | `number` | the browser's | Initial width in pixels.<br>Shown in: [Fit long values (Formats)](#/formats/long-values), [Fit what does not fit (Formats)](#/formats/values-that-do-not-fit), [Let people set the width (Width and pinning)](#/width-and-pinning/width) and 14 more |
1900
+ | `width` | `number` | the browser's | Initial width in pixels.<br>Shown in: [Fit long values (Formats)](#/formats/long-values), [Fit what does not fit (Formats)](#/formats/values-that-do-not-fit), [Let people set the width (Width and pinning)](#/width-and-pinning/width) and 15 more |
1899
1901
  | `resizable` | `boolean` | — | Shows the drag grip on the header cell.<br>Shown in: [Let people set the width (Width and pinning)](#/width-and-pinning/width), [Pin and size from controls of your own (Width and pinning)](#/width-and-pinning/pin-and-size-from-controls-of-your-own), [Share a column between tables (Presets)](#/presets/presets) and 1 more |
1900
1902
  | `pin` | [`Pin`](#type-Pin)<br>`"start" \| "end"` | — | Keeps the column in view while the table scrolls sideways: in a block before every other column, or after them. The user can change it in the column menu; the view carries the change. Pinned blocks take at most half of the width the table shows: on a narrower one the end block, then the start block scrolls with the rest, and sticks again when there is room.<br>Shown in: [Pin columns to both sides (Width and pinning)](#/width-and-pinning/pinned-both-sides), [Share a column between tables (Presets)](#/presets/presets), [Combine grid mode with groups, pinning and many rows (Grid mode)](#/grid-mode/the-whole-grid) and 1 more |
1901
1903
  | `sortable` | `boolean` | `true` when the value is text, a number, a point in time or a boolean | Whether the column can be sorted by.<br>Shown in: [Fit long values (Formats)](#/formats/long-values), [Fit what does not fit (Formats)](#/formats/values-that-do-not-fit), [Let people set the width (Width and pinning)](#/width-and-pinning/width) and 6 more |
@@ -3281,7 +3283,7 @@ The keys of [First table](#/first-table/keyboard-first-table) and [Input](https:
3281
3283
 
3282
3284
  | Prop | Type | Default | Description |
3283
3285
  |---|---|---|---|
3284
- | `placeholder` | `string` | the wording's "Search …" | The placeholder in the field.<br>Shown in: [Find a person](#/search/find-a-person), [Leave a column out](#/search/leave-a-column-out), [Search from a card header](#/search/search-from-a-card-header) and 22 more |
3286
+ | `placeholder` | `string` | the wording's "Search …" | The placeholder in the field.<br>Shown in: [Find a person](#/search/find-a-person), [Leave a column out](#/search/leave-a-column-out), [Search from a card header](#/search/search-from-a-card-header) and 23 more |
3285
3287
  | `size` | [`ToolbarSize`](#type-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/parts-outside-a-toolbar) |
3286
3288
  | `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/search-takes-the-line) |
3287
3289
  | `of` | [`TableRef`](#type-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/search-from-a-card-header), [Place it outside the table (Toolbar)](#/toolbar/place-it-outside), [Parts outside a toolbar (Toolbar)](#/toolbar/parts-outside-a-toolbar) and 1 more |
@@ -6625,7 +6627,7 @@ The keys of [First table](#/first-table/keyboard-first-table) and [Input](https:
6625
6627
 
6626
6628
  | Prop | Type | Default | Description |
6627
6629
  |---|---|---|---|
6628
- | `aggregate` | [`AggregateFor`](#type-AggregateFor)`<W, Z>` | — | What the column's values come to: in the footer over the filtered set, in a group's header over its rows. `"sum"`, `"avg"` for numbers; `"min"`, `"max"` for numbers and points in time; `"range"` for points in time; `"count"`, `"distinct"` for every value with a text form - or a function of one's own. Always from the values, never from other aggregates; absent values count towards nothing.<br>Shown in: [Total a column](#/aggregate/sum-and-average), [Find the extremes](#/aggregate/minimum-and-maximum), [Show a range of dates](#/aggregate/range-of-dates) and 33 more |
6630
+ | `aggregate` | [`AggregateFor`](#type-AggregateFor)`<W, Z>` | — | What the column's values come to: in the footer over the filtered set, in a group's header over its rows. `"sum"`, `"avg"` for numbers; `"min"`, `"max"` for numbers and points in time; `"range"` for points in time; `"count"`, `"distinct"` for every value with a text form - or a function of one's own. Always from the values, never from other aggregates; absent values count towards nothing.<br>Shown in: [Total a column](#/aggregate/sum-and-average), [Find the extremes](#/aggregate/minimum-and-maximum), [Show a range of dates](#/aggregate/range-of-dates) and 34 more |
6629
6631
  | `share` | `boolean` | — | The share bar in a group's header – the group's share of the filtered set's sum. It stands under the first column with a sum, one per header; `false` passes it on to the next.<br>Shown in: [Show each group's share](#/aggregate/share-bar), [Weight a rate by its rows](#/aggregate/never-an-average-of-averages), [Share a column between tables (Presets)](#/presets/presets) and 2 more |
6630
6632
 
6631
6633
  ##### Types on this page
@@ -7886,7 +7888,7 @@ The parts the table puts in name themselves: the search field “Search table”
7886
7888
 
7887
7889
  | Prop | Type | Default | Description |
7888
7890
  |---|---|---|---|
7889
- | `children` | `ReactNode` | — | Search, column menu, export – on the left in the table toolbar, before the conditions.<br>Shown in: [Search, arrange and export](#/toolbar/search-arrange-and-export), [Place it outside the table](#/toolbar/place-it-outside), [Set wording and formats once (Provider)](#/provider/provider) and 36 more |
7891
+ | `children` | `ReactNode` | — | Search, column menu, export – on the left in the table toolbar, before the conditions.<br>Shown in: [Search, arrange and export](#/toolbar/search-arrange-and-export), [Place it outside the table](#/toolbar/place-it-outside), [Set wording and formats once (Provider)](#/provider/provider) and 37 more |
7890
7892
  | `size` | [`ToolbarSize`](#type-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-larger-toolbar), [A dispatcher's bar (Toolbar controls)](#/toolbar-controls/a-dispatcher-s-bar) |
7891
7893
  | `of` | [`TableRef`](#type-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/place-it-outside), [Review cost centres against budget (Scenarios)](#/scenarios/review-cost-centres) |
7892
7894
 
@@ -8610,7 +8612,7 @@ The keys of [First table](#/first-table/keyboard-first-table), [Input](https://r
8610
8612
 
8611
8613
  | Prop | Type | Default | Description |
8612
8614
  |---|---|---|---|
8613
- | `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/controls-at-the-toolbars-size), [A larger toolbar](#/toolbar-controls/a-larger-toolbar), [A dispatcher's bar](#/toolbar-controls/a-dispatcher-s-bar) and 36 more |
8615
+ | `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/controls-at-the-toolbars-size), [A larger toolbar](#/toolbar-controls/a-larger-toolbar), [A dispatcher's bar](#/toolbar-controls/a-dispatcher-s-bar) and 37 more |
8614
8616
  | `size` | [`ToolbarSize`](#type-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-larger-toolbar), [A dispatcher's bar](#/toolbar-controls/a-dispatcher-s-bar) |
8615
8617
  | `of` | [`TableRef`](#type-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/place-it-outside), [Review cost centres against budget (Scenarios)](#/scenarios/review-cost-centres) |
8616
8618
 
@@ -9587,6 +9589,388 @@ From `ToolbarProps` — the full table stands on [Toolbar](#/toolbar/type-Toolba
9587
9589
 
9588
9590
  What umriss deliberately does not build, and why: [ADR-0032](https://romanhaendler.github.io/umriss-ui/what-umriss-ui-is-not/).
9589
9591
 
9592
+ ### Benchmark
9593
+
9594
+ Up to two hundred thousand rows, measured in this browser rather than claimed: the first render, a scroll step, a sort, a keystroke, a page, a fold, a hidden column and a re-render of the caller.
9595
+
9596
+ ```ts
9597
+ import { useTable } from "@umriss-ui/table";
9598
+ ```
9599
+
9600
+ Demo page: https://romanhaendler.github.io/umriss-ui/table/benchmark/
9601
+
9602
+ The figures come from the clock around each change, with nothing added to the table. The reference figures in `packages/table/docs/capabilities.md` come from here.
9603
+
9604
+ #### Examples
9605
+
9606
+ ##### Measure two hundred thousand rows
9607
+
9608
+ Load up to 200 000 rows and run a change: the times say what rendering, scrolling, sorting, searching, paging, folding and hiding cost here.
9609
+
9610
+ ```tsx
9611
+ /* What the table costs, measured from outside with the clock: the first render,
9612
+ a scroll step, a sort, a search keystroke, a page turned, a group folded, a
9613
+ column hidden and a re-render of the caller with nothing changed. The page
9614
+ adds nothing to the table. Not photographed: it measures the moment it runs.
9615
+
9616
+ A figure is the synchronous time of `flushSync` around the change - render,
9617
+ commit and layout effects, not the paint. Every change but the scroll is the
9618
+ median of five runs; the scroll is the mean over a scripted scroll, timed to
9619
+ the change of the rows in the DOM because the table renders it outside
9620
+ `flushSync`. A
9621
+ production build has no React profiler, so the clock is the only instrument.
9622
+
9623
+ The page is driven by a script as well as by hand: every control and every
9624
+ figure carries a `data-role`, and `status` reads idle, running or done. */
9625
+
9626
+ import { useRef, useState } from "react";
9627
+ import { flushSync } from "react-dom";
9628
+ import { Badge, Button, Stack, Text } from "@umriss-ui/core";
9629
+ import { Pagination, Search, Toolbar, useTable } from "@umriss-ui/table";
9630
+
9631
+ interface Request {
9632
+ id: string;
9633
+ service: string;
9634
+ status: 200 | 404 | 500;
9635
+ duration: number;
9636
+ size: number;
9637
+ region: string;
9638
+ }
9639
+
9640
+ const SERVICES = ["Checkout", "Billing", "Sign-in", "Search", "Image service", "Notifications", "Webhooks", "Reporting"] as const;
9641
+ const REGIONS = ["eu-west", "eu-central", "us-east", "ap-south"] as const;
9642
+ const STATUSES = [200, 200, 200, 200, 200, 200, 404, 500] as const;
9643
+ const TONE = { 200: "success", 404: "warning", 500: "danger" } as const;
9644
+
9645
+ /* A linear congruential generator: the same rows on every run. */
9646
+ function generate(count: number): Request[] {
9647
+ let seed = 20260317;
9648
+ const next = () => {
9649
+ seed = (seed * 1103515245 + 12345) % 2147483648;
9650
+ return seed / 2147483648;
9651
+ };
9652
+ return Array.from({ length: count }, (_, i) => ({
9653
+ id: `REQ-${String(i + 1).padStart(6, "0")}`,
9654
+ service: SERVICES[Math.floor(next() * SERVICES.length)]!,
9655
+ status: STATUSES[Math.floor(next() * STATUSES.length)]!,
9656
+ duration: Math.round(20 + next() * 900),
9657
+ size: Math.round(next() * 5000) / 10,
9658
+ region: REGIONS[Math.floor(next() * REGIONS.length)]!,
9659
+ }));
9660
+ }
9661
+
9662
+ /** `virtual`: a virtualised table with a footer aggregate. `grouped`: the same,
9663
+ grouped by service with share bars. `paged`: pages instead of a window, the
9664
+ only mode in which a page can be turned. */
9665
+ type Mode = "virtual" | "grouped" | "paged";
9666
+
9667
+ const SIZES = [10_000, 50_000, 200_000] as const;
9668
+ const MODES: readonly Mode[] = ["virtual", "grouped", "paged"];
9669
+
9670
+ /* The table under measurement. `tick` is not read: a new value only makes the
9671
+ caller render this component again, with the accessors below written inline
9672
+ as the examples write them. */
9673
+ function Measured({ rows, mode, onTable }: { rows: Request[]; mode: Mode; tick: number; onTable: (t: Handle) => void }) {
9674
+ const t = useTable(rows, {
9675
+ rowKey: (r) => r.id,
9676
+ virtual: mode !== "paged",
9677
+ pageSize: 50,
9678
+ defaultGrouping: mode === "grouped" ? "service" : undefined,
9679
+ });
9680
+ onTable(t);
9681
+ const { Table, Column } = t;
9682
+ return (
9683
+ <Table maxHeight="340px" stickyHeader ariaLabel="Requests">
9684
+ <Toolbar>
9685
+ <Search placeholder="Request or service" />
9686
+ </Toolbar>
9687
+ <Column value="id" label="Request" rowHeader width={130} />
9688
+ <Column value="service" label="Service" width={140} />
9689
+ <Column value="status" label="Status" width={100}>
9690
+ {(status) => <Badge tone={TONE[status]}>{status}</Badge>}
9691
+ </Column>
9692
+ <Column value="duration" label="Duration (ms)" width={130} aggregate="sum" />
9693
+ {/* A computed column, its function written inline: a new one on every
9694
+ render of the caller, which is what the re-render figure is about. */}
9695
+ <Column id="size" value={(r) => r.size} label="Size (kB)" format={{ decimals: 1 }} width={110} aggregate="sum" />
9696
+ <Column value="region" label="Region" width={120} />
9697
+ {mode === "paged" ? <Pagination /> : null}
9698
+ </Table>
9699
+ );
9700
+ }
9701
+
9702
+ /** The calls the measurements make on the table. */
9703
+ interface Handle {
9704
+ toggleSort: (column: string) => void;
9705
+ setSearch: (search: string) => void;
9706
+ setPage: (page: number) => void;
9707
+ foldAll: () => void;
9708
+ unfoldAll: () => void;
9709
+ toggleColumn: (column: string) => void;
9710
+ }
9711
+
9712
+ const FIGURES = ["first-render", "scroll", "sort", "search", "page", "fold", "hide", "rerender"] as const;
9713
+ type Figure = (typeof FIGURES)[number];
9714
+ type Status = "idle" | "running" | "done";
9715
+
9716
+ const REPEATS = 5;
9717
+ const SCROLL_STEPS = 60;
9718
+ const QUERIES = ["eu", "web", "500", "pay", "us-"];
9719
+
9720
+ const timed = (change: () => void): number => {
9721
+ const start = performance.now();
9722
+ flushSync(change);
9723
+ return performance.now() - start;
9724
+ };
9725
+ const median = (values: number[]): number => [...values].sort((a, b) => a - b)[Math.floor(values.length / 2)]!;
9726
+ /* Lets the browser paint "running" before a measurement blocks the thread, and
9727
+ settles what a change left behind. */
9728
+ const settle = () => new Promise<void>((resolve) => setTimeout(resolve, 50));
9729
+
9730
+ export default function Benchmark() {
9731
+ const [load, setLoad] = useState<{ rows: Request[]; mode: Mode; key: number }>({ rows: [], mode: "virtual", key: 0 });
9732
+ const [tick, setTick] = useState(0);
9733
+ const [count, setCount] = useState(String(SIZES[0]));
9734
+ const [status, setStatus] = useState<Status>("idle");
9735
+ const [figures, setFigures] = useState<Partial<Record<Figure, string>>>({});
9736
+ const table = useRef<Handle | null>(null);
9737
+ const host = useRef<HTMLDivElement>(null);
9738
+ const generated = useRef<Request[]>([]);
9739
+
9740
+ /* A figure that does not apply in this mode reads "-". */
9741
+ const show = (figure: Figure, ms: number | null) =>
9742
+ setFigures((f) => ({ ...f, [figure]: ms === null ? "-" : ms.toFixed(1) }));
9743
+
9744
+ const run = async (body: () => Promise<void> | void) => {
9745
+ flushSync(() => setStatus("running"));
9746
+ await settle();
9747
+ try {
9748
+ await body();
9749
+ } finally {
9750
+ setStatus("done");
9751
+ }
9752
+ };
9753
+
9754
+ const open = (n: number, mode: Mode) =>
9755
+ run(async () => {
9756
+ if (generated.current.length !== n) generated.current = generate(n);
9757
+ const rows = generated.current;
9758
+ /* The previous table goes first, so the figure is a mount and no more. */
9759
+ flushSync(() => setLoad({ rows: [], mode, key: load.key + 1 }));
9760
+ await settle();
9761
+ show("first-render", timed(() => setLoad({ rows, mode, key: load.key + 2 })));
9762
+ });
9763
+
9764
+ /* `change` is timed, `restore` is not; both run synchronously. */
9765
+ const repeat = (figure: Figure, applies: boolean, change: (i: number) => void, restore?: () => void) =>
9766
+ run(async () => {
9767
+ if (!applies || table.current === null) return show(figure, null);
9768
+ const times: number[] = [];
9769
+ for (let i = 0; i < REPEATS; i++) {
9770
+ times.push(timed(() => change(i)));
9771
+ if (restore) flushSync(restore);
9772
+ await settle();
9773
+ }
9774
+ show(figure, median(times));
9775
+ });
9776
+
9777
+ /* The scroll area is the table's parent, the element that carries the
9778
+ table's `onScroll`. */
9779
+ const scroller = (): HTMLElement | null => host.current?.querySelector("table")?.parentElement ?? null;
9780
+
9781
+ /* Each step moves the scroll position and then sends the scroll event inside
9782
+ the timing: the event reaches the table's handler the same way the browser's
9783
+ own, which comes a frame later, does. */
9784
+ const measureScroll = () =>
9785
+ run(async () => {
9786
+ const el = scroller();
9787
+ if (el === null || mode === "paged") return show("scroll", null);
9788
+ el.scrollTop = 0;
9789
+ await settle();
9790
+ let total = 0;
9791
+ for (let i = 0; i < SCROLL_STEPS; i++) {
9792
+ const start = performance.now();
9793
+ await new Promise<void>((resolve) => {
9794
+ const rows = new MutationObserver(() => {
9795
+ rows.disconnect();
9796
+ resolve();
9797
+ });
9798
+ rows.observe(el, { childList: true, subtree: true });
9799
+ el.scrollTop += 600;
9800
+ el.dispatchEvent(new Event("scroll"));
9801
+ setTimeout(() => {
9802
+ rows.disconnect();
9803
+ resolve();
9804
+ }, 1000);
9805
+ });
9806
+ total += performance.now() - start;
9807
+ /* The browser's own scroll event follows a frame later and finds the
9808
+ window already in place. */
9809
+ await new Promise((resolve) => setTimeout(resolve, 30));
9810
+ }
9811
+ show("scroll", total / SCROLL_STEPS);
9812
+ });
9813
+
9814
+ const t = () => table.current!;
9815
+ const mode = load.mode;
9816
+
9817
+ return (
9818
+ <Stack gap={3}>
9819
+ <Stack direction="row" gap={2} align="center" wrap>
9820
+ {SIZES.map((n) => (
9821
+ <Button
9822
+ key={n}
9823
+ size="sm"
9824
+ data-role={`rows-${n}`}
9825
+ onClick={() => {
9826
+ setCount(String(n));
9827
+ void open(n, mode);
9828
+ }}
9829
+ >
9830
+ {n.toLocaleString("en-US")} rows
9831
+ </Button>
9832
+ ))}
9833
+ <input
9834
+ type="number"
9835
+ min={1}
9836
+ max={200_000}
9837
+ aria-label="Row count"
9838
+ data-role="rows-input"
9839
+ value={count}
9840
+ onChange={(event) => setCount(event.target.value)}
9841
+ />
9842
+ <Button size="sm" data-role="load" onClick={() => void open(Math.min(200_000, Math.max(1, Number(count) || 1)), mode)}>
9843
+ Load
9844
+ </Button>
9845
+ {MODES.map((m) => (
9846
+ <Button
9847
+ key={m}
9848
+ size="sm"
9849
+ data-role={`mode-${m}`}
9850
+ aria-pressed={mode === m}
9851
+ onClick={() => void open(generated.current.length || SIZES[0], m)}
9852
+ >
9853
+ {m}
9854
+ </Button>
9855
+ ))}
9856
+ </Stack>
9857
+ <Stack direction="row" gap={2} align="center" wrap>
9858
+ <Button size="sm" data-role="measure-scroll" onClick={() => void measureScroll()}>Scroll</Button>
9859
+ <Button size="sm" data-role="measure-sort" onClick={() => void repeat("sort", true, () => t().toggleSort("duration"))}>Sort</Button>
9860
+ <Button
9861
+ size="sm"
9862
+ data-role="measure-search"
9863
+ onClick={() => void repeat("search", true, (i) => t().setSearch(QUERIES[i % QUERIES.length]!), () => t().setSearch(""))}
9864
+ >
9865
+ Search
9866
+ </Button>
9867
+ <Button size="sm" data-role="measure-page" onClick={() => void repeat("page", mode === "paged", (i) => t().setPage(2 + i), () => t().setPage(1))}>
9868
+ Page
9869
+ </Button>
9870
+ <Button size="sm" data-role="measure-fold" onClick={() => void repeat("fold", mode === "grouped", () => t().foldAll(), () => t().unfoldAll())}>
9871
+ Fold
9872
+ </Button>
9873
+ <Button size="sm" data-role="measure-hide" onClick={() => void repeat("hide", true, () => t().toggleColumn("region"), () => t().toggleColumn("region"))}>
9874
+ Hide column
9875
+ </Button>
9876
+ <Button size="sm" data-role="measure-rerender" onClick={() => void repeat("rerender", true, () => setTick((n) => n + 1))}>Re-render</Button>
9877
+ </Stack>
9878
+ <dl style={{ display: "flex", flexWrap: "wrap", gap: "1.5rem", margin: 0 }}>
9879
+ <div>
9880
+ <Text as="dt">Status</Text>
9881
+ <Text as="dd" mono style={{ margin: 0 }} data-role="status">{status}</Text>
9882
+ </div>
9883
+ <div>
9884
+ <Text as="dt">Rows</Text>
9885
+ <Text as="dd" mono style={{ margin: 0 }} data-role="rows">{load.rows.length}</Text>
9886
+ </div>
9887
+ {FIGURES.map((f) => (
9888
+ <div key={f}>
9889
+ <Text as="dt">{f} (ms)</Text>
9890
+ <Text as="dd" mono style={{ margin: 0 }} data-role={f}>{figures[f] ?? "-"}</Text>
9891
+ </div>
9892
+ ))}
9893
+ </dl>
9894
+ <div ref={host}>
9895
+ {load.rows.length > 0 ? (
9896
+ <Measured
9897
+ key={`${mode}-${load.key}`}
9898
+ rows={load.rows}
9899
+ mode={mode}
9900
+ tick={tick}
9901
+ onTable={(handle) => {
9902
+ table.current = handle;
9903
+ }}
9904
+ />
9905
+ ) : null}
9906
+ </div>
9907
+ </Stack>
9908
+ );
9909
+ }
9910
+ ```
9911
+
9912
+ #### Keyboard
9913
+
9914
+ The keys of [First table](#/first-table/keyboard-first-table), [Virtualisation](#/virtualisation/keyboard-virtualisation) and [Button](https://romanhaendler.github.io/umriss-ui/core/button/#keyboard-button) apply here.
9915
+
9916
+ #### Props on this page
9917
+
9918
+ From `TableProps` — the full table stands on [First table](#/first-table/type-TableProps).
9919
+
9920
+ | Prop | Type | Default | Description |
9921
+ |---|---|---|---|
9922
+ | [`stickyHeader`](#/first-table/TableProps-stickyHeader) | `boolean` | — | Keeps the header row visible while scrolling. |
9923
+ | [`maxHeight`](#/first-table/TableProps-maxHeight) | `string` | — | Height of the scroll area, e.g. "480px". A virtualised table needs it. |
9924
+ | [`children`](#/first-table/TableProps-children) | `ReactNode` | — | Columns, `RowDetail`, `RowActions` and the unbound parts. |
9925
+
9926
+ ###### Accessibility
9927
+
9928
+ | Prop | Type | Default | Description |
9929
+ |---|---|---|---|
9930
+ | [`ariaLabel`](#/first-table/TableProps-ariaLabel) | `string` | — | Accessible name of the table (not of the outer frame). |
9931
+
9932
+ From `TableOptions` — the full table stands on [First table](#/first-table/type-TableOptions).
9933
+
9934
+ | Prop | Type | Default | Description |
9935
+ |---|---|---|---|
9936
+ | [`rowKey`](#/first-table/TableOptions-rowKey) *required* | `(row: Z) => string` | — | A stable key per row – the basis of selection and expansion. |
9937
+ | [`pageSize`](#/first-table/TableOptions-pageSize) | `number` | `10` | How many rows a page holds. |
9938
+ | [`defaultGrouping`](#/first-table/TableOptions-defaultGrouping) | [`GroupingId`](#/first-table/type-GroupingId)`<Z> \| readonly `[`GroupingId`](#/first-table/type-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. |
9939
+ | [`virtual`](#/first-table/TableOptions-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)). |
9940
+
9941
+ From `FieldColumn` — the full table stands on [Column](#/column/type-FieldColumn).
9942
+
9943
+ | Prop | Type | Default | Description |
9944
+ |---|---|---|---|
9945
+ | [`value`](#/column/FieldColumn-value) *required* | `K` | — | A field of the row. Supplies the column's `id` at the same time. |
9946
+ | [`children`](#/column/FieldColumn-children) | [`Presentation`](#/column/type-Presentation)`<Z[K], Z>` | — | How the value appears: `(value, row)`. Never called for an absent value. Required where the value has no text form. |
9947
+
9948
+ From `ColumnBase` — the full table stands on [Column](#/column/type-ColumnBase).
9949
+
9950
+ | Prop | Type | Default | Description |
9951
+ |---|---|---|---|
9952
+ | [`label`](#/column/ColumnBase-label) *required* | `string` | — | Names the column in its header, in the column menu and in the header row of the export. |
9953
+ | [`rowHeader`](#/column/ColumnBase-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. |
9954
+ | [`width`](#/column/ColumnBase-width) | `number` | the browser's | Initial width in pixels. |
9955
+
9956
+ From `SearchProps` — the full table stands on [Search](#/search/type-SearchProps).
9957
+
9958
+ | Prop | Type | Default | Description |
9959
+ |---|---|---|---|
9960
+ | [`placeholder`](#/search/SearchProps-placeholder) | `string` | the wording's "Search …" | The placeholder in the field. |
9961
+
9962
+ From `AggregateOptions` — the full table stands on [Aggregate](#/aggregate/type-AggregateOptions).
9963
+
9964
+ | Prop | Type | Default | Description |
9965
+ |---|---|---|---|
9966
+ | [`aggregate`](#/aggregate/AggregateOptions-aggregate) | [`AggregateFor`](#/aggregate/type-AggregateFor)`<W, Z>` | — | What the column's values come to: in the footer over the filtered set, in a group's header over its rows. `"sum"`, `"avg"` for numbers; `"min"`, `"max"` for numbers and points in time; `"range"` for points in time; `"count"`, `"distinct"` for every value with a text form - or a function of one's own. Always from the values, never from other aggregates; absent values count towards nothing. |
9967
+
9968
+ From `ToolbarProps` — the full table stands on [Toolbar](#/toolbar/type-ToolbarProps).
9969
+
9970
+ | Prop | Type | Default | Description |
9971
+ |---|---|---|---|
9972
+ | [`children`](#/toolbar/ToolbarProps-children) | `ReactNode` | — | Search, column menu, export – on the left in the table toolbar, before the conditions. |
9973
+
9590
9974
  ### Server mode
9591
9975
 
9592
9976
  A table over rows a server holds: the application hands in one page and the server's count, and the table reports what to fetch next (also called server-side paging, sorting and filtering).
@@ -11558,19 +11942,19 @@ Used on [Scenarios](#/), [Provider](#/provider), [Sorting](#/sorting), [Search](
11558
11942
 
11559
11943
  [Pagination](#/pagination) – The bar under the table that splits long results into pages, with the page size to choose (also called a pager). The table pages only where one stands; without it every filtered row is shown.
11560
11944
 
11561
- Used on [Scenarios](#/), [First table](#/first-table), [Filter](#/filter), [Pre-filter](#/pre-filter), [Grouping](#/grouping), [Toolbar](#/toolbar), [Toolbar controls](#/toolbar-controls), [Pagination](#/pagination) and [Server mode](#/server-mode).
11945
+ Used on [Scenarios](#/), [First table](#/first-table), [Filter](#/filter), [Pre-filter](#/pre-filter), [Grouping](#/grouping), [Toolbar](#/toolbar), [Toolbar controls](#/toolbar-controls), [Pagination](#/pagination), [Benchmark](#/benchmark) and [Server mode](#/server-mode).
11562
11946
 
11563
11947
  ##### `Search`
11564
11948
 
11565
11949
  [Search](#/search) – A text field that narrows the table to the rows containing what the user types (also called a quick filter or global filter). Put it in the toolbar, or anywhere on the page.
11566
11950
 
11567
- Used on [Scenarios](#/), [First table](#/first-table), [Provider](#/provider), [Formats](#/formats), [Sorting](#/sorting), [Search](#/search), [Filter](#/filter), [Pre-filter](#/pre-filter), [Grouping](#/grouping), [Tree rows](#/tree-rows), [Aggregate](#/aggregate), [Selection](#/selection), [Row appearance](#/row-appearance), [RowDetail](#/rowdetail), [Toolbar](#/toolbar), [Toolbar controls](#/toolbar-controls), [Export](#/export), [View](#/view), [Pagination](#/pagination), [Virtualisation](#/virtualisation), [Server mode](#/server-mode), [Grid mode](#/grid-mode) and [Edits](#/edits).
11951
+ Used on [Scenarios](#/), [First table](#/first-table), [Provider](#/provider), [Formats](#/formats), [Sorting](#/sorting), [Search](#/search), [Filter](#/filter), [Pre-filter](#/pre-filter), [Grouping](#/grouping), [Tree rows](#/tree-rows), [Aggregate](#/aggregate), [Selection](#/selection), [Row appearance](#/row-appearance), [RowDetail](#/rowdetail), [Toolbar](#/toolbar), [Toolbar controls](#/toolbar-controls), [Export](#/export), [View](#/view), [Pagination](#/pagination), [Virtualisation](#/virtualisation), [Benchmark](#/benchmark), [Server mode](#/server-mode), [Grid mode](#/grid-mode) and [Edits](#/edits).
11568
11952
 
11569
11953
  ##### `Toolbar`
11570
11954
 
11571
11955
  [Toolbar](#/toolbar) – The bar above the table that holds its search, column menu and export, shows how many rows match, and carries the bulk actions while rows are ticked (also called a table header bar).
11572
11956
 
11573
- Used on [Scenarios](#/), [First table](#/first-table), [Provider](#/provider), [Column](#/column), [Width and pinning](#/width-and-pinning), [Sorting](#/sorting), [Search](#/search), [Filter](#/filter), [Pre-filter](#/pre-filter), [Grouping](#/grouping), [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), [Server mode](#/server-mode) and [Edits](#/edits).
11957
+ Used on [Scenarios](#/), [First table](#/first-table), [Provider](#/provider), [Column](#/column), [Width and pinning](#/width-and-pinning), [Sorting](#/sorting), [Search](#/search), [Filter](#/filter), [Pre-filter](#/pre-filter), [Grouping](#/grouping), [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) and [Edits](#/edits).
11574
11958
 
11575
11959
  #### Hooks
11576
11960
 
@@ -11591,7 +11975,7 @@ as `of` to a part that stands outside the table.
11591
11975
  function useTable<Z>(rows: readonly Z[], options: TableOptions<Z>): Table<Z>;
11592
11976
  ```
11593
11977
 
11594
- Used on [Scenarios](#/), [Installation](#/installation), [First table](#/first-table), [Provider](#/provider), [Column](#/column), [Formats](#/formats), [Width and pinning](#/width-and-pinning), [Presets](#/presets), [Sorting](#/sorting), [Search](#/search), [Filter](#/filter), [Pre-filter](#/pre-filter), [Grouping](#/grouping), [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), [Server mode](#/server-mode), [Grid mode](#/grid-mode), [Edits](#/edits) and [VerdictColumn](#/verdictcolumn).
11978
+ Used on [Scenarios](#/), [Installation](#/installation), [First table](#/first-table), [Provider](#/provider), [Column](#/column), [Formats](#/formats), [Width and pinning](#/width-and-pinning), [Presets](#/presets), [Sorting](#/sorting), [Search](#/search), [Filter](#/filter), [Pre-filter](#/pre-filter), [Grouping](#/grouping), [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).
11595
11979
 
11596
11980
  ##### `useTableSelection`
11597
11981
 
@@ -11617,7 +12001,7 @@ one field in `P`, name the field as the second type argument.
11617
12001
  function column<P, K extends Field<P> = Field<P>>(preset: ColumnPreset<P, K>): ColumnPreset<P, K>;
11618
12002
  ```
11619
12003
 
11620
- Used on [Scenarios](#/), [First table](#/first-table), [Formats](#/formats), [Width and pinning](#/width-and-pinning), [Presets](#/presets), [Sorting](#/sorting), [Filter](#/filter), [Grouping](#/grouping), [Tree rows](#/tree-rows), [View](#/view), [Virtualisation](#/virtualisation), [Server mode](#/server-mode), [Grid mode](#/grid-mode) and [VerdictColumn](#/verdictcolumn).
12004
+ Used on [Scenarios](#/), [First table](#/first-table), [Formats](#/formats), [Width and pinning](#/width-and-pinning), [Presets](#/presets), [Sorting](#/sorting), [Filter](#/filter), [Grouping](#/grouping), [Tree rows](#/tree-rows), [View](#/view), [Virtualisation](#/virtualisation), [Benchmark](#/benchmark), [Server mode](#/server-mode), [Grid mode](#/grid-mode) and [VerdictColumn](#/verdictcolumn).
11621
12005
 
11622
12006
  ##### `columnFilter`
11623
12007
 
@@ -12230,8 +12614,8 @@ row. Pass it as `of` to a part that stands outside the table.
12230
12614
 
12231
12615
  | Prop | Type | Default | Description |
12232
12616
  |---|---|---|---|
12233
- | `Table` *required* | `(props: `[`TableProps`](#/first-table/type-TableProps)`<Z>) => ReactNode` | — | <br>Shown in: [A first table (Installation)](#/installation/first-table), [Show a list of services (First table)](#/first-table/first-table), [Search and page from a header of your own (First table)](#/first-table/search-and-page-from-a-header-of-your-own) and 117 more |
12234
- | `Column` *required* | [`ColumnComponent`](#type-ColumnComponent)`<Z>` | — | <br>Shown in: [A first table (Installation)](#/installation/first-table), [Show a list of services (First table)](#/first-table/first-table), [Search and page from a header of your own (First table)](#/first-table/search-and-page-from-a-header-of-your-own) and 117 more |
12617
+ | `Table` *required* | `(props: `[`TableProps`](#/first-table/type-TableProps)`<Z>) => ReactNode` | — | <br>Shown in: [A first table (Installation)](#/installation/first-table), [Show a list of services (First table)](#/first-table/first-table), [Search and page from a header of your own (First table)](#/first-table/search-and-page-from-a-header-of-your-own) and 118 more |
12618
+ | `Column` *required* | [`ColumnComponent`](#type-ColumnComponent)`<Z>` | — | <br>Shown in: [A first table (Installation)](#/installation/first-table), [Show a list of services (First table)](#/first-table/first-table), [Search and page from a header of your own (First table)](#/first-table/search-and-page-from-a-header-of-your-own) and 118 more |
12235
12619
  | `VerdictColumn` *required* | [`VerdictColumnComponent`](#type-VerdictColumnComponent)`<Z>` | — | <br>Shown in: [Pin columns to both sides (Width and pinning)](#/width-and-pinning/pinned-both-sides), [Read a day's deliveries by depot (Grouping)](#/grouping/the-dispatch-report), [Carry the worst verdict up (Aggregate)](#/aggregate/worst-verdict) and 5 more |
12236
12620
  | `RowDetail` *required* | `(props: `[`RowDetailProps`](#/rowdetail/type-RowDetailProps)`<Z>) => ReactNode` | — | <br>Shown in: [Keep the header and the names in view (Width and pinning)](#/width-and-pinning/sticky-parts), [Employees in the detail (Tree rows)](#/tree-rows/employees-in-the-detail), [Own staff and teams (Tree rows)](#/tree-rows/own-staff-and-teams) and 5 more |
12237
12621
  | `RowActions` *required* | `(props: `[`RowActionsProps`](#/rowactions/type-RowActionsProps)`) => ReactNode` | — | <br>Shown in: [Name the row (Column)](#/column/row-header), [Pin columns to both sides (Width and pinning)](#/width-and-pinning/pinned-both-sides), [Select a whole group (Grouping)](#/grouping/a-whole-group-selected) and 7 more |
@@ -12281,7 +12665,7 @@ row. Pass it as `of` to a part that stands outside the table.
12281
12665
  | `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/search-and-page-from-a-header-of-your-own) |
12282
12666
  | `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/sort-arrange-and-export-from-controls-of-your-own) |
12283
12667
 
12284
- Used on [Scenarios](#/), [Installation](#/installation), [First table](#/first-table), [Provider](#/provider), [Column](#/column), [Formats](#/formats), [Width and pinning](#/width-and-pinning), [Presets](#/presets), [Sorting](#/sorting), [Search](#/search), [Filter](#/filter), [Pre-filter](#/pre-filter), [Grouping](#/grouping), [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), [Server mode](#/server-mode), [Grid mode](#/grid-mode), [Edits](#/edits) and [VerdictColumn](#/verdictcolumn).
12668
+ Used on [Scenarios](#/), [Installation](#/installation), [First table](#/first-table), [Provider](#/provider), [Column](#/column), [Formats](#/formats), [Width and pinning](#/width-and-pinning), [Presets](#/presets), [Sorting](#/sorting), [Search](#/search), [Filter](#/filter), [Pre-filter](#/pre-filter), [Grouping](#/grouping), [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).
12285
12669
 
12286
12670
  ##### `TableInput<Z = unknown, K extends string = string>`
12287
12671