@umriss-ui/table 0.43.0 → 0.44.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.43.0
1
+ # @umriss-ui/table 0.44.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
 
@@ -981,7 +981,7 @@ Rows of records to scan, sort, search and select (also called a data table or da
981
981
  import { useTable } from "@umriss-ui/table";
982
982
  ```
983
983
 
984
- [`useTable`](#api-index-1) takes the rows and hands back the `Table` and the `Column` that belong to them, so a column can only name a field the row has. The parts that touch no row, such as `Toolbar` or `Search`, are ordinary imports.
984
+ [`useTable`](#api-index-1) takes the rows and hands back the `Table` and the `Column` that belong to them, so a column can only name a field the row has. The rows are one object per row in an array; anything else (an object of columns, an Arrow table, a typed array) is read as no rows, shows the empty state and warns once in development, and `Array.from` makes rows of an Arrow table or a typed array. The parts that touch no row, such as `Toolbar` or `Search`, are ordinary imports.
985
985
 
986
986
  Every option of the hook and every prop of the table stands in the tables below; each feature has a page of its own in the sidebar.
987
987
 
@@ -1247,14 +1247,14 @@ A value cut short at the edge of its cell shows whole in a tip, under the pointe
1247
1247
 
1248
1248
  | Prop | Type | Default | Description |
1249
1249
  |---|---|---|---|
1250
- | `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 15 more |
1250
+ | `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 16 more |
1251
1251
  | `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), [Fold groups into a summary (Grouping)](#grouping-1), [Group twenty thousand rows (Grouping)](#grouping-1) and 7 more |
1252
1252
  | `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 |
1253
1253
  | `striped` | `boolean` | — | Discreet zebra stripes.<br>Shown in: [Stripes across a wide table (Row appearance)](#row-appearance) |
1254
1254
  | `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 |
1255
1255
  | `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), [Fold groups into a summary (Grouping)](#grouping-1), [Group twenty thousand rows (Grouping)](#grouping-1) and 6 more |
1256
1256
  | `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) |
1257
- | `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), [Show loading, and drop a late answer (Server mode)](#server-mode) and 1 more |
1257
+ | `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) |
1258
1258
  | `rowProps` | `(row: Z) => ``RowAttributes` | — | Classes and data attributes per row.<br>Shown in: [Mark rows by their state (Row appearance)](#row-appearance) |
1259
1259
  | `currentRow` | `string \| null` | — | The key of the row the rest of the screen follows - the table marks it with `aria-current` and an accent bar, apart from the selection. The table keeps no copy: pass the key you hold, `null` for none.<br>Shown in: [The current row (Selection)](#selection), [Another view chooses a row (Virtualisation)](#virtualisation) |
1260
1260
  | `onCurrentRowChange` | `(key: string, row: Z) => void` | — | A primary click on a row, outside its controls - the checkbox, the expander, the actions and any button of yours in a cell - with the row's key and the row. Also called for the row already current, so that you decide whether a second click clears it. By the keyboard: in a native table the content of the row-header cell becomes a button (Enter and Space), so a control of your own in that cell would stand inside it; in grid mode Enter on a cell with nothing to edit or enter. Without a `rowHeader` column the keyboard cannot choose a row.<br>Shown in: [The current row (Selection)](#selection), [Another view chooses a row (Virtualisation)](#virtualisation) |
@@ -1262,7 +1262,7 @@ A value cut short at the edge of its cell shows whole in a tip, under the pointe
1262
1262
  | `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 7 more |
1263
1263
  | `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 |
1264
1264
  | `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) |
1265
- | `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 123 more |
1265
+ | `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 128 more |
1266
1266
  | `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) |
1267
1267
 
1268
1268
  ###### Events
@@ -1274,19 +1274,13 @@ A value cut short at the edge of its cell shows whole in a tip, under the pointe
1274
1274
  | `onRowAdd` | `(add: ``RowAdd``) => void` | — | Grid mode: puts up a "New row" button - in the table toolbar, or beneath the table without one. It opens an empty Row draft above the rows; saved, it is reported whole. The row appears when the rows passed in carry it.<br>Shown in: [Keep a list: add, change and delete rows (Edits)](#edits) |
1275
1275
  | `onRowDelete` | `(remove: ``RowDelete``<Z>) => void` | — | Grid mode: a Delete button on every row, which asks inside its row before the delete is reported. The table removes nothing.<br>Shown in: [Keep a list: add, change and delete rows (Edits)](#edits), [Edit a dense table (Edits)](#edits) |
1276
1276
 
1277
- ###### Accessibility
1278
-
1279
- | Prop | Type | Default | Description |
1280
- |---|---|---|---|
1281
- | `ariaLabel` | `string` | — | *Deprecated* since 0.43 - use `aria-label`. Accessible name of the table. |
1282
-
1283
1277
  Also takes every attribute of `<div>` – without `children`.
1284
1278
 
1285
1279
  ##### `TableOptions<Z>`
1286
1280
 
1287
1281
  | Prop | Type | Default | Description |
1288
1282
  |---|---|---|---|
1289
- | `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 123 more |
1283
+ | `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 128 more |
1290
1284
  | `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 |
1291
1285
  | `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 |
1292
1286
  | `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 |
@@ -1349,6 +1343,7 @@ Also takes every attribute of `<div>` – without `children`.
1349
1343
  | `virtual` *required* | `boolean` | — | Whether it virtualises.<br>Shown in: [Search and page from a header of your own](#first-table) |
1350
1344
  | `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) |
1351
1345
  | `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) |
1346
+ | `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) |
1352
1347
 
1353
1348
  ##### Types on this page
1354
1349
 
@@ -1429,11 +1424,11 @@ the application.
1429
1424
 
1430
1425
  | Prop | Type | Default | Description |
1431
1426
  |---|---|---|---|
1432
- | `search` | `string` | — | <br>Shown in: [Show loading, empty, failed and no match (Row appearance)](#row-appearance), [Hand the table one page (Server mode)](#server-mode), [Sort and search on the server (Server mode)](#server-mode) and 3 more |
1433
- | `conditions` | `Readonly<Record<string, unknown>>` | — | The conditions of the column filters, per column. A condition for a column that does not exist, or whose filter is of another kind, falls out.<br>Shown in: [Ask a question over several fields (Filter)](#filter), [A dispatcher's bar (Toolbar controls)](#toolbar-controls), [Hand the table one page (Server mode)](#server-mode) and 4 more |
1434
- | `sort` | `readonly ``SortLevel``<K>[]` | — | <br>Shown in: [Keep and restore a view (View)](#view), [Hand the table one page (Server mode)](#server-mode), [Sort and search on the server (Server mode)](#server-mode) and 3 more |
1435
- | `page` | `number` | — | <br>Shown in: [Hand the table one page (Server mode)](#server-mode), [Sort and search on the server (Server mode)](#server-mode), [Name the values a list filter offers (Server mode)](#server-mode) and 2 more |
1436
- | `pageSize` | `number` | — | <br>Shown in: [Hand the table one page (Server mode)](#server-mode), [Sort and search on the server (Server mode)](#server-mode), [Name the values a list filter offers (Server mode)](#server-mode) and 2 more |
1427
+ | `search` | `string` | — | <br>Shown in: [Show loading, empty, failed and no match (Row appearance)](#row-appearance), [Hand the table one page (Server mode)](#server-mode), [Sort and search on the server (Server mode)](#server-mode) and 6 more |
1428
+ | `conditions` | `Readonly<Record<string, unknown>>` | — | The conditions of the column filters, per column. A condition for a column that does not exist, or whose filter is of another kind, falls out.<br>Shown in: [Ask a question over several fields (Filter)](#filter), [A dispatcher's bar (Toolbar controls)](#toolbar-controls), [Hand the table one page (Server mode)](#server-mode) and 7 more |
1429
+ | `sort` | `readonly ``SortLevel``<K>[]` | — | <br>Shown in: [Keep and restore a view (View)](#view), [Hand the table one page (Server mode)](#server-mode), [Sort and search on the server (Server mode)](#server-mode) and 6 more |
1430
+ | `page` | `number` | — | <br>Shown in: [Hand the table one page (Server mode)](#server-mode), [Sort and search on the server (Server mode)](#server-mode), [Name the values a list filter offers (Server mode)](#server-mode) and 5 more |
1431
+ | `pageSize` | `number` | — | <br>Shown in: [Hand the table one page (Server mode)](#server-mode), [Sort and search on the server (Server mode)](#server-mode), [Name the values a list filter offers (Server mode)](#server-mode) and 5 more |
1437
1432
  | `hidden` | `readonly K[]` | — | <br>Shown in: [Keep and restore a view (View)](#view) |
1438
1433
  | `order` | `readonly K[]` | — | |
1439
1434
  | `widths` | `Readonly<Record<string, number>>` | — | Column widths the user has dragged, in pixels. |
@@ -1457,6 +1452,9 @@ selection.
1457
1452
  | `clear` *required* | `() => void` | — | <br>Shown in: [Hold the selection yourself (Selection)](#selection), [Work through the alerts (Scenarios)](#work-through-the-alerts), [Find a late shipment (Scenarios)](#find-a-late-shipment) |
1458
1453
  | `allSelected` *required* | `boolean` | — | true when every key passed in is selected. |
1459
1454
  | `someSelected` *required* | `boolean` | — | true when some - but not all - are selected. |
1455
+ | `allMatching` *required* | `boolean` | — | Every row that matches is selected, those on no page held included. While it stands `selected` is empty and `count` is 0, and `isSelected(id)` is `!except.has(id)`. Store it with the keys when the selection is held outside. |
1456
+ | `except` *required* | `ReadonlySet<T>` | — | While `allMatching`: the keys unticked since. |
1457
+ | `selectMatching` *required* | `() => void` | — | Selects all that match; the keys selected before are dropped. |
1460
1458
  | `count` *required* | `number` | — | <br>Shown in: [Select rows (Selection)](#selection), [Hold the selection yourself (Selection)](#selection), [Copy the selection (Export)](#export) and 2 more |
1461
1459
 
1462
1460
  ###### `Pin`
@@ -1483,6 +1481,18 @@ interface SetFilter<Z> {
1483
1481
  }
1484
1482
  ```
1485
1483
 
1484
+ ###### `TableRequest<K extends string = string>`
1485
+
1486
+ The request server mode reports to `onRequest`: the parts of the view that
1487
+ decide the rows - search, conditions, sort, page and page size - and
1488
+ nothing else, each at its default as well. A server has no default of the
1489
+ table's to fall back on, and a request it has to complete is one it
1490
+ completes wrongly. A width, an order, a pin or a fold is no part of it.
1491
+
1492
+ ```ts
1493
+ type TableRequest<K extends string = string> = Required<Pick<TableView<K>, "search" | "conditions" | "sort" | "page" | "pageSize">>;
1494
+ ```
1495
+
1486
1496
  ###### `SortDirection`
1487
1497
 
1488
1498
  The direction of one sort level: `asc` puts the smallest value on top,
@@ -1546,10 +1556,10 @@ type Absent = null | undefined;
1546
1556
 
1547
1557
  #### Known limits
1548
1558
 
1549
- - No cell range selection and no undo: an edit is reported, never applied, and the application owns the rows ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.43.0/docs/adr/0032-what-umriss-is-not.md)).
1550
- - 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.43.0/docs/adr/0032-what-umriss-is-not.md)).
1559
+ - No cell range selection and no undo: an edit is reported, never applied, and the application owns the rows ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.44.0/docs/adr/0032-what-umriss-is-not.md)).
1560
+ - 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.44.0/docs/adr/0032-what-umriss-is-not.md)).
1551
1561
 
1552
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.43.0/docs/adr/0032-what-umriss-is-not.md).
1562
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
1553
1563
 
1554
1564
  ### Provider
1555
1565
 
@@ -1671,7 +1681,7 @@ From `ExportProps` — the full table stands on [Export](#export).
1671
1681
 
1672
1682
  | Prop | Type | Default | Description |
1673
1683
  |---|---|---|---|
1674
- | [`filename`](#export) | `string` | the wording's "table.csv" | File name of the download. |
1684
+ | [`filename`](#export) | `string` | the base of the wording's "table.csv" with the format's extension | File name of the download. |
1675
1685
 
1676
1686
  ## Columns
1677
1687
 
@@ -1689,7 +1699,11 @@ Without a presentation the value type decides: text on the left, numbers right-a
1689
1699
 
1690
1700
  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.
1691
1701
 
1692
- 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.
1702
+ 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; carry the variable in the row data, or give the column a `key` that changes with it. Development warns once per column.
1703
+
1704
+ A value sorts by its kind, and a string sorts as text: numbers given as strings are converted in the rows or given `sortValue={Number}`.
1705
+
1706
+ A point in time is a `Date` in the row; an epoch number or an ISO string is converted there. A date format on a column that holds no `Date` shows the value raw, and in development the table says so once.
1693
1707
 
1694
1708
  #### Examples
1695
1709
 
@@ -1857,9 +1871,9 @@ The `label` is the column header's text, and so what a screen reader says for ev
1857
1871
 
1858
1872
  | Prop | Type | Default | Description |
1859
1873
  |---|---|---|---|
1860
- | `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 123 more |
1874
+ | `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 128 more |
1861
1875
  | `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) |
1862
- | `format` | `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), [Set wording and formats once (Provider)](#provider), [Pick a standard format (Formats)](#formats) and 34 more |
1876
+ | `format` | `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), [Set wording and formats once (Provider)](#provider), [Pick a standard format (Formats)](#formats) and 36 more |
1863
1877
  | `filter` | `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), [Share a column between tables (Presets)](#presets), [Choose from the values that occur (Filter)](#filter) and 11 more |
1864
1878
  | `group` | `GroupFor``<Z[K]>` | — | Groups points in time by `"day"`, `"week"`, `"month"` or `"year"`.<br>Shown in: [Share a column between tables (Presets)](#presets), [Group dates by month (Grouping)](#grouping-1) |
1865
1879
  | `edit` | `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), [Combine grid mode with groups, pinning and many rows (Grid mode)](#grid-mode), [Edit a comments column (Edits)](#edits) and 6 more |
@@ -1873,13 +1887,13 @@ Also every prop of `ColumnBase`, `ValuePaths` and `AggregateOptions`.
1873
1887
 
1874
1888
  | Prop | Type | Default | Description |
1875
1889
  |---|---|---|---|
1876
- | `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 123 more |
1877
- | `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 122 more |
1890
+ | `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 128 more |
1891
+ | `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 127 more |
1878
1892
  | `numeric` | `boolean` | decided by the first value present | Right-aligned with tabular figures.<br>Shown in: [Share a column between tables (Presets)](#presets) |
1879
1893
  | `width` | `number` | the browser's | Initial width in pixels.<br>Shown in: [Fit long values (Formats)](#formats), [Fit what does not fit (Formats)](#formats), [Let people set the width (Width and pinning)](#width-and-pinning) and 15 more |
1880
1894
  | `resizable` | `boolean` | — | Shows the drag grip on the header cell.<br>Shown in: [Let people set the width (Width and pinning)](#width-and-pinning), [Pin and size from controls of your own (Width and pinning)](#width-and-pinning), [Share a column between tables (Presets)](#presets) and 1 more |
1881
1895
  | `pin` | `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), [Share a column between tables (Presets)](#presets), [Combine grid mode with groups, pinning and many rows (Grid mode)](#grid-mode) and 1 more |
1882
- | `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), [Fit what does not fit (Formats)](#formats), [Let people set the width (Width and pinning)](#width-and-pinning) and 6 more |
1896
+ | `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), [Fit what does not fit (Formats)](#formats), [Let people set the width (Width and pinning)](#width-and-pinning) and 9 more |
1883
1897
  | `searchable` | `boolean` | `true` for text, `false` otherwise | Takes part in the search.<br>Shown in: [Share a column between tables (Presets)](#presets), [Leave a column out (Search)](#search), [An uneven organisation (Tree rows)](#tree-rows) |
1884
1898
  | `groupable` | `boolean` | `true` when its value is text, a number, a point in time or a boolean, or it has a `groupValue` | Can the table be grouped by this column?<br>Shown in: [Share a column between tables (Presets)](#presets), [Switch grouping off (Grouping)](#grouping-1) |
1885
1899
 
@@ -2692,7 +2706,7 @@ From `ActionProps` — the full table stands on [RowActions](#rowactions).
2692
2706
 
2693
2707
  | Prop | Type | Default | Description |
2694
2708
  |---|---|---|---|
2695
- | [`onSelect`](#rowactions) *required* | `((row: Z) => void) \| ((rows: readonly Z[]) => void)` | — | Gets the row the action was triggered on. With `bulk` a list: at the row one made from it, in the table toolbar the selection. |
2709
+ | [`onSelect`](#rowactions) | `(row: Z) => void` | — | Gets the row the action was triggered on. |
2696
2710
 
2697
2711
  From `ToolbarProps` — the full table stands on [Toolbar](#toolbar).
2698
2712
 
@@ -3055,13 +3069,13 @@ From `ExportProps` — the full table stands on [Export](#export).
3055
3069
 
3056
3070
  | Prop | Type | Default | Description |
3057
3071
  |---|---|---|---|
3058
- | [`onExport`](#export) | `(text: string) => void` | — | Gets the text instead of triggering a file. |
3072
+ | [`onExport`](#export) | `(content: R) => void` | — | Gets what the format wrote instead of triggering a file. |
3059
3073
 
3060
3074
  #### Known limits
3061
3075
 
3062
3076
  - In [server mode](#server-mode) the table sorts nothing itself; the sort goes to the server in the request.
3063
3077
 
3064
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.43.0/docs/adr/0032-what-umriss-is-not.md).
3078
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
3065
3079
 
3066
3080
  ### Search
3067
3081
 
@@ -3285,7 +3299,7 @@ type TableRef = Omit<TableSnapshot<unknown>, "setFilter" | "conditionOf"> & {
3285
3299
 
3286
3300
  - In [server mode](#server-mode) the table searches nothing itself; the term goes to the server in the request.
3287
3301
 
3288
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.43.0/docs/adr/0032-what-umriss-is-not.md).
3302
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
3289
3303
 
3290
3304
  ### Filter
3291
3305
 
@@ -4312,7 +4326,7 @@ type Absent = null | undefined;
4312
4326
  - No text filter per column: the search covers text.
4313
4327
  - In [server mode](#server-mode) a list filter offers what the application names; the table cannot count values it does not hold.
4314
4328
 
4315
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.43.0/docs/adr/0032-what-umriss-is-not.md).
4329
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
4316
4330
 
4317
4331
  ### Pre-filter
4318
4332
 
@@ -5594,11 +5608,11 @@ export default function GroupAndFoldFromControls() {
5594
5608
 
5595
5609
  #### Known limits
5596
5610
 
5597
- - No pivot and no more than three levels ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.43.0/docs/adr/0032-what-umriss-is-not.md)).
5611
+ - No pivot and no more than three levels ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.44.0/docs/adr/0032-what-umriss-is-not.md)).
5598
5612
  - No bar to drag headers onto: grouping is chosen in the column menu.
5599
5613
  - No groups in [server mode](#server-mode): they would be made of one page.
5600
5614
 
5601
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.43.0/docs/adr/0032-what-umriss-is-not.md).
5615
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
5602
5616
 
5603
5617
  ### Tree rows
5604
5618
 
@@ -6196,7 +6210,7 @@ From `ToolbarProps` — the full table stands on [Toolbar](#toolbar).
6196
6210
  - Not in [server mode](#server-mode), and no branches loaded on demand yet.
6197
6211
  - One column set for every level; a level without a value shows it as absent.
6198
6212
 
6199
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.43.0/docs/adr/0032-what-umriss-is-not.md).
6213
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
6200
6214
 
6201
6215
  ### Aggregate
6202
6216
 
@@ -6620,7 +6634,7 @@ The keys of [First table](#first-table) and Input apply here.
6620
6634
 
6621
6635
  | Prop | Type | Default | Description |
6622
6636
  |---|---|---|---|
6623
- | `aggregate` | `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), [Find the extremes](#aggregate), [Show a range of dates](#aggregate) and 35 more |
6637
+ | `aggregate` | `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), [Find the extremes](#aggregate), [Show a range of dates](#aggregate) and 36 more |
6624
6638
  | `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), [Weight a rate by its rows](#aggregate), [Share a column between tables (Presets)](#presets) and 2 more |
6625
6639
 
6626
6640
  ##### Types on this page
@@ -6689,9 +6703,9 @@ type Displayable = string | number | boolean | Date;
6689
6703
 
6690
6704
  #### Known limits
6691
6705
 
6692
- - No footer in [server mode](#server-mode): a sum over one page would misstate the server's set.
6706
+ - 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.
6693
6707
 
6694
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.43.0/docs/adr/0032-what-umriss-is-not.md).
6708
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
6695
6709
 
6696
6710
  ## Rows
6697
6711
 
@@ -6918,9 +6932,9 @@ From `ToolbarProps` — the full table stands on [Toolbar](#toolbar).
6918
6932
 
6919
6933
  #### Known limits
6920
6934
 
6921
- - In [server mode](#server-mode) “select all” selects the page the table holds.
6935
+ - 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.
6922
6936
 
6923
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.43.0/docs/adr/0032-what-umriss-is-not.md).
6937
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
6924
6938
 
6925
6939
  ### Row appearance
6926
6940
 
@@ -7706,22 +7720,22 @@ What an action does is the application's to say: a result that should be heard -
7706
7720
 
7707
7721
  | Prop | Type | Default | Description |
7708
7722
  |---|---|---|---|
7709
- | `children` *required* | `ReactNode` | — | The row's `Action`s.<br>Shown in: [Two actions](#rowactions), [Act on a selection](#rowactions), [More than two actions](#rowactions) and 7 more |
7723
+ | `children` *required* | `ReactNode` | — | The row's `Action`s.<br>Shown in: [Two actions](#rowactions), [Act on a selection](#rowactions), [More than two actions](#rowactions) and 8 more |
7710
7724
  | `pin` | `boolean` | `true` | Whether the actions column sticks at the end of the row while the table scrolls sideways. `false` leaves it in the flow, for a place too narrow for a pinned block - the application decides, by its own measure. A column pinned to the end takes the actions with it regardless.<br>Shown in: [Find a late shipment (Scenarios)](#find-a-late-shipment) |
7711
7725
 
7712
- ##### `ActionProps<Z>`
7726
+ ##### `ActionProps<Z, S extends boolean = false>`
7713
7727
 
7714
7728
  | Prop | Type | Default | Description |
7715
7729
  |---|---|---|---|
7716
- | `children` *required* | `string` | — | The label – text, because it is read out together with the row's name.<br>Shown in: [Two actions](#rowactions), [Act on a selection](#rowactions), [More than two actions](#rowactions) and 7 more |
7730
+ | `children` *required* | `string` | — | The label – text, because it is read out together with the row's name.<br>Shown in: [Two actions](#rowactions), [Act on a selection](#rowactions), [More than two actions](#rowactions) and 8 more |
7717
7731
  | `tone` | `"default" \| "danger"` | — | `"danger"` for an action that destroys something – that is how it appears in the menu and in the table toolbar.<br>Shown in: [More than two actions](#rowactions), [Find a late shipment (Scenarios)](#find-a-late-shipment) |
7718
- | `bulk` | `false \| true` | — | Acts on a list: at the row on a list made from it, in the table toolbar on the selection within the filtered set.<br>Shown in: [Act on a selection](#rowactions), [Select a whole group (Grouping)](#grouping-1), [Read a day's deliveries by depot (Grouping)](#grouping-1) and 2 more |
7732
+ | `bulk` | `false \| true` | — | Acts on a list: at the row on a list made from it, in the table toolbar on the selection within the filtered set.<br>Shown in: [Act on a selection](#rowactions), [Select a whole group (Grouping)](#grouping-1), [Read a day's deliveries by depot (Grouping)](#grouping-1) and 3 more |
7719
7733
 
7720
7734
  ###### Events
7721
7735
 
7722
7736
  | Prop | Type | Default | Description |
7723
7737
  |---|---|---|---|
7724
- | `onSelect` *required* | `((row: Z) => void) \| ((rows: readonly Z[]) => void)` | — | Gets the row the action was triggered on. With `bulk` a list: at the row one made from it, in the table toolbar the selection.<br>Shown in: [Two actions](#rowactions), [Act on a selection](#rowactions), [More than two actions](#rowactions) and 7 more |
7738
+ | `onSelect` | `(row: Z) => void` | — | Gets the row the action was triggered on.<br>Shown in: [Two actions](#rowactions), [Act on a selection](#rowactions), [More than two actions](#rowactions) and 8 more |
7725
7739
 
7726
7740
  ## Around the table
7727
7741
 
@@ -7906,7 +7920,7 @@ The parts the table puts in name themselves: the search field “Search table”
7906
7920
 
7907
7921
  | Prop | Type | Default | Description |
7908
7922
  |---|---|---|---|
7909
- | `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 38 more |
7923
+ | `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 40 more |
7910
7924
  | `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) |
7911
7925
  | `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) |
7912
7926
  | `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) |
@@ -8631,7 +8645,7 @@ The keys of [First table](#first-table), Input, [ColumnMenu](#columnmenu), Selec
8631
8645
 
8632
8646
  | Prop | Type | Default | Description |
8633
8647
  |---|---|---|---|
8634
- | `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 38 more |
8648
+ | `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 40 more |
8635
8649
  | `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) |
8636
8650
  | `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) |
8637
8651
  | `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) |
@@ -8818,9 +8832,9 @@ A button that writes the rows the user sees into a CSV file for a spreadsheet (a
8818
8832
  import { Export } from "@umriss-ui/table";
8819
8833
  ```
8820
8834
 
8821
- It writes the filtered set across all pages, in the visible columns, in the order and sorting on screen – and the values, not their presentation: numbers with the decimal mark of the formats, yes and no from the wording, a point in time as a timestamp, an absent value as an empty field. The separator follows the mark – a comma, or a semicolon where the mark is a comma – and a byte order mark tells the spreadsheet it is UTF-8. English gets commas and a point; the German wording and formats from `@umriss-ui/core/wording/de` get the file the table always wrote, and German wording with English formats gets German words with comma and point – take both halves ([ADR-0061](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0061-the-csv-follows-the-language-in-use.md)).
8835
+ It writes the filtered set across all pages, in the visible columns, in the order and sorting on screen – and the values, not their presentation: numbers with the decimal mark of the formats, yes and no from the wording, a column of days as its day (2026-03-17), any other point in time as an ISO timestamp, an absent value as an empty field. The separator follows the mark – a comma, or a semicolon where the mark is a comma – and a byte order mark tells the spreadsheet it is UTF-8. English gets commas and a point; the German wording and formats from `@umriss-ui/core/wording/de` get the file the table always wrote, and German wording with English formats gets German words with comma and point – take both halves ([ADR-0061](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0061-the-csv-follows-the-language-in-use.md)).
8822
8836
 
8823
- A verdict column exports its value, not the verdict. In [server mode](#server-mode) the table holds one page of the server's, so it exports that page, and the button says so. The same text is `t.asCsv()`, without a button.
8837
+ A verdict column exports its value, not the verdict. In [server mode](#server-mode) the table holds one page of the server's, so it exports that page, and the button says so; with `exportRows` it asks the application for every match and writes those. The same text is `t.asCsv()`, without a button. `format={xlsx}` from `@umriss-ui/table/xlsx` writes an Excel workbook instead - numbers, dates and booleans as what they are, the table's column widths, dates in the reader's local time - and `label` lets two buttons stand side by side; `onExport` then gets the bytes. A sheet over 1,048,576 rows throws a `RangeError`, and a text over 32,767 characters is cut.
8824
8838
 
8825
8839
  Ctrl or Cmd with C copies the selected rows – the visible columns under a header line, tab-separated, with the same values and the formats' decimal mark – and in a grid with no selection the Active cell. What was copied flashes once in an accent tint (shown without the fade under reduced motion), and a screen reader is told how many rows were copied, or that the copy failed. Marked text and a focused field keep the browser's own copy; in an open cell editor with nothing marked the key copies the value that stands in the field. `t.selectionAsText()` is the same text for a button of your own, as in the last example.
8826
8840
 
@@ -8953,17 +8967,118 @@ export default function CopyTheSelection() {
8953
8967
  }
8954
8968
  ```
8955
8969
 
8970
+ ##### Choose the format
8971
+
8972
+ Hand `Export` a `format` – `csv` or one of your own, a value with an extension, a MIME type and a `write` – and name its button with `label`; `exportAs` writes the same format without a button.
8973
+
8974
+ ```tsx
8975
+ import { useState } from "react";
8976
+ import { Stack, Text } from "@umriss-ui/core";
8977
+ import { Export, Toolbar, csv, useTable } from "@umriss-ui/table";
8978
+ import type { ExportFormat } from "@umriss-ui/table";
8979
+
8980
+ interface Shipment {
8981
+ id: string;
8982
+ weight: number;
8983
+ delivered: Date | null;
8984
+ }
8985
+
8986
+ const SHIPMENTS: Shipment[] = [
8987
+ { id: "FP-1004210", weight: 23.5, delivered: new Date(Date.UTC(2026, 2, 17, 8, 12)) },
8988
+ { id: "FP-1004223", weight: 14, delivered: null },
8989
+ ];
8990
+
8991
+ /* Writes the sheet as JSON: the typed cells, a date as its ISO text. */
8992
+ const json: ExportFormat = {
8993
+ extension: "json",
8994
+ mime: "application/json",
8995
+ write: (sheet) =>
8996
+ JSON.stringify(sheet.rows.map((row) => Object.fromEntries(sheet.columns.map((c, i) => [c.label, row[i]])))),
8997
+ };
8998
+
8999
+ export default function ChooseTheFormat() {
9000
+ const [text, setText] = useState("Not exported yet.");
9001
+ const table = useTable(SHIPMENTS, { rowKey: (s) => s.id });
9002
+ const { Table, Column } = table;
9003
+
9004
+ return (
9005
+ <Stack gap={3}>
9006
+ <Table aria-label="Shipments to export">
9007
+ <Toolbar>
9008
+ <Export format={csv} label="Export CSV" onExport={setText} />
9009
+ <Export format={json} label="Export JSON" onExport={setText} />
9010
+ </Toolbar>
9011
+ <Column value="id" label="Shipment" rowHeader />
9012
+ <Column value="weight" label="Weight (kg)" />
9013
+ <Column value="delivered" label="Delivered" format="dateTime" />
9014
+ </Table>
9015
+ <Text as="pre" size="xs" mono>
9016
+ {text}
9017
+ </Text>
9018
+ <Text size="xs">{table.exportAs(json).length} characters as JSON</Text>
9019
+ </Stack>
9020
+ );
9021
+ }
9022
+ ```
9023
+
9024
+ ##### An Excel file
9025
+
9026
+ Hand `Export` the `xlsx` format from `@umriss-ui/table/xlsx` for a workbook with real numbers, dates and booleans; with `onExport` it gets the bytes, for a server. An application that never imports the subpath never pays for it.
9027
+
9028
+ ```tsx
9029
+ import { useState } from "react";
9030
+ import { Stack, Text } from "@umriss-ui/core";
9031
+ import { Export, Toolbar, csv, useTable } from "@umriss-ui/table";
9032
+ import { xlsx } from "@umriss-ui/table/xlsx";
9033
+
9034
+ interface Shipment {
9035
+ id: string;
9036
+ weight: number;
9037
+ delivered: Date | null;
9038
+ signed: boolean;
9039
+ }
9040
+
9041
+ const SHIPMENTS: Shipment[] = [
9042
+ { id: "FP-1004210", weight: 23.5, delivered: new Date(2026, 2, 17, 8, 12), signed: true },
9043
+ { id: "FP-1004223", weight: 14, delivered: null, signed: false },
9044
+ ];
9045
+
9046
+ export default function AnExcelFile() {
9047
+ const [size, setSize] = useState<number | null>(null);
9048
+ const { Table, Column } = useTable(SHIPMENTS, { rowKey: (s) => s.id });
9049
+
9050
+ return (
9051
+ <Stack gap={3}>
9052
+ <Table aria-label="Shipments to export">
9053
+ <Toolbar>
9054
+ <Export format={csv} label="Export CSV" />
9055
+ <Export format={xlsx} label="Export Excel" />
9056
+ <Export format={xlsx} label="Take the bytes" onExport={(bytes) => setSize(bytes.length)} />
9057
+ </Toolbar>
9058
+ <Column value="id" label="Shipment" rowHeader />
9059
+ <Column value="weight" label="Weight (kg)" />
9060
+ <Column value="delivered" label="Delivered" format="dateTime" />
9061
+ <Column value="signed" label="Signed" />
9062
+ </Table>
9063
+ <Text size="xs">{size === null ? "Not exported yet." : `${size} bytes of workbook`}</Text>
9064
+ </Stack>
9065
+ );
9066
+ }
9067
+ ```
9068
+
8956
9069
  #### Keyboard
8957
9070
 
8958
9071
  The keys of [First table](#first-table), Input and Button apply here.
8959
9072
 
8960
9073
  #### API
8961
9074
 
8962
- ##### `ExportProps`
9075
+ ##### `ExportProps<R = string>`
8963
9076
 
8964
9077
  | Prop | Type | Default | Description |
8965
9078
  |---|---|---|---|
8966
- | `filename` | `string` | the wording's "table.csv" | File name of the download.<br>Shown in: [Download a file](#export), [Set wording and formats once (Provider)](#provider), [Search takes the line (Search)](#search) and 6 more |
9079
+ | `format` | `ExportFormat``<R>` | `csv` | What is written: `csv`, or a format of one's own.<br>Shown in: [Choose the format](#export), [An Excel file](#export) |
9080
+ | `filename` | `string` | the base of the wording's "table.csv" with the format's extension | File name of the download.<br>Shown in: [Download a file](#export), [Set wording and formats once (Provider)](#provider), [Search takes the line (Search)](#search) and 6 more |
9081
+ | `label` | `ReactNode` | the wording's export label | The button's text.<br>Shown in: [Choose the format](#export), [An Excel file](#export) |
8967
9082
  | `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) |
8968
9083
  | `of` | `TableRef` | — | The table, when the part does not stand inside it: the return value of `useTable`.<br>Shown in: [Place it outside the table (Toolbar)](#toolbar), [Parts outside a toolbar (Toolbar)](#toolbar), [Review cost centres against budget (Scenarios)](#review-cost-centres-against-budget) |
8969
9084
  | `ref` | `Ref<HTMLButtonElement> \| 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) |
@@ -8972,12 +9087,23 @@ The keys of [First table](#first-table), Input and Button apply here.
8972
9087
 
8973
9088
  | Prop | Type | Default | Description |
8974
9089
  |---|---|---|---|
8975
- | `onExport` | `(text: string) => void` | — | Gets the text instead of triggering a file.<br>Shown in: [Take the text](#export), [Sort and export a value that is an object (Sorting)](#sorting) |
9090
+ | `onExport` | `(content: R) => void` | — | Gets what the format wrote instead of triggering a file.<br>Shown in: [Take the text](#export), [Choose the format](#export), [An Excel file](#export) and 1 more |
8976
9091
 
8977
9092
  Also takes every attribute of `<button>`.
8978
9093
 
8979
9094
  ##### Types on this page
8980
9095
 
9096
+ ###### `ExportFormat<R = string>`
9097
+
9098
+ A way to write the export: the file's extension and MIME type, and the
9099
+ function that turns the sheet into `R` - text or bytes.
9100
+
9101
+ | Prop | Type | Default | Description |
9102
+ |---|---|---|---|
9103
+ | `extension` *required* | `string` | — | <br>Shown in: [Choose the format](#export) |
9104
+ | `mime` *required* | `string` | — | <br>Shown in: [Choose the format](#export) |
9105
+ | `write` *required* | `(sheet: ``ExportSheet``, context: ``ExportContext``) => R` | — | <br>Shown in: [Choose the format](#export) |
9106
+
8981
9107
  ###### `ToolbarSize`
8982
9108
 
8983
9109
  The size of a toolbar's controls.
@@ -8998,11 +9124,381 @@ type TableRef = Omit<TableSnapshot<unknown>, "setFilter" | "conditionOf"> & {
8998
9124
  };
8999
9125
  ```
9000
9126
 
9127
+ ###### `ExportSheet`
9128
+
9129
+ What a format writes: the header labels, the widths the table holds, whether
9130
+ a column's own `exportValue` made its values (`own`: written as they come),
9131
+ and the rows as typed cells. A tree's level is its first column, a number.
9132
+
9133
+ | Prop | Type | Default | Description |
9134
+ |---|---|---|---|
9135
+ | `columns` *required* | `readonly { label: string; width?: number; own?: true }[]` | — | <br>Shown in: [Choose the format](#export) |
9136
+ | `rows` *required* | `readonly (readonly ``ExportCell``[])[]` | — | <br>Shown in: [Choose the format](#export) |
9137
+
9138
+ ###### `ExportContext`
9139
+
9140
+ What the language in use hands a format.
9141
+
9142
+ | Prop | Type | Default | Description |
9143
+ |---|---|---|---|
9144
+ | `formats` *required* | `Formats` | — | |
9145
+ | `wording` *required* | `Wording` | — | |
9146
+
9147
+ ###### `ExportCell`
9148
+
9149
+ What a spreadsheet cell holds: numbers, booleans and points in time stay
9150
+ what they are, an absent value is `undefined`.
9151
+
9152
+ ```ts
9153
+ type ExportCell = string | number | boolean | Date | undefined;
9154
+ ```
9155
+
9156
+ ###### `Formats`
9157
+
9158
+ From `@umriss-ui/core`.
9159
+
9160
+ Everything the library knows about formatting.
9161
+
9162
+ | Prop | Type | Default | Description |
9163
+ |---|---|---|---|
9164
+ | `date` *required* | `(d: Date) => string` | — | Date as displayed: 17/03/2026<br>Shown in: [Set wording and formats once (Provider)](#provider) |
9165
+ | `dateShort` *required* | `(d: Date) => string` | — | Short form without the year, in the range footer: 17/03 |
9166
+ | `month` *required* | `(d: Date) => string` | — | The calendar's month header: March 2026 |
9167
+ | `dateLong` *required* | `(d: Date) => string` | — | Accessible name of a calendar cell: Tuesday, 17 March 2026 |
9168
+ | `time` *required* | `(d: Date, withSeconds: boolean) => string` | — | Time of day, optionally with seconds: 09:05 or 09:05:03<br>Shown in: [Work through the alerts (Scenarios)](#work-through-the-alerts), [Find a late shipment (Scenarios)](#find-a-late-shipment) |
9169
+ | `dateTime` *required* | `(d: Date, withSeconds: boolean) => string` | — | Date and time together: 17/03/2026, 09:05 |
9170
+ | `offset` *required* | `(d: Date) => string` | — | Short form of the UTC offset: GMT+2 |
9171
+ | `number` *required* | `(n: number, decimals?: number) => string` | — | A number in the set's notation. Without a digit count the value stands to the tenth decimal place, and a non-zero value that would read 0 there is written in scientific notation; with one it is padded and rounded to exactly that many places. |
9172
+ | `numberWith` *required* | `(n: number, options: Intl.NumberFormatOptions) => string` | — | A number written with Intl's own options in the set's locale: a currency, a year without grouping, scientific notation. Pure Intl options - the `decimals` shorthand is expanded by `writeNumber` before it. Like the others it writes no negative zero unless the options set `signDisplay`. |
9173
+ | `count` *required* | `(n: number) => string` | — | A count. Kept apart from `number` because it makes a different promise: a count is whole, and Intl's own rounding (at most three decimal places) is right for it and wrong for a measurement.<br>Shown in: [Scroll twenty thousand rows (Virtualisation)](#virtualisation) |
9174
+ | `percent` *required* | `(share: number) => string` | — | A share from 0 to 1 as whole per cent: 74 % |
9175
+ | `compareText` *required* | `(a: string, b: string) => number` | — | The ordering of two texts by the set's collation. |
9176
+ | `relative` *required* | `(ms: number) => string` | — | An elapsed duration as a phrase: "3 minutes ago". The amount comes in milliseconds, counted back from now. |
9177
+
9178
+ ###### `Wording`
9179
+
9180
+ From `@umriss-ui/core`.
9181
+
9182
+ Everything the library puts out as text.
9183
+
9184
+ | Prop | Type | Default | Description |
9185
+ |---|---|---|---|
9186
+ | `clearInput` *required* | `string` | — | The cross in the text field. |
9187
+ | `clearSelection` *required* | `string` | — | The cross in the select and in the combobox. |
9188
+ | `decreaseValue` *required* | `string` | — | Stepper buttons of the number field. |
9189
+ | `increaseValue` *required* | `string` | — | |
9190
+ | `comboboxPlaceholder` *required* | `string` | — | |
9191
+ | `noMatches` *required* | `string` | — | Empty state of both lists. |
9192
+ | `multiSelectPlaceholder` *required* | `string` | — | |
9193
+ | `multiSelectSearchPlaceholder` *required* | `string` | — | |
9194
+ | `searchOptions` *required* | `string` | — | |
9195
+ | `options` *required* | `string` | — | Group name of the option list. |
9196
+ | `optionScope` *required* | `string` | — | Group name of the scope switch. |
9197
+ | `optionScopeAll` *required* | `string` | — | |
9198
+ | `optionScopeSelected` *required* | `(count: number) => string` | — | The second scope, with the count in the text. |
9199
+ | `selectAll` *required* | `string` | — | |
9200
+ | `selectNone` *required* | `string` | — | |
9201
+ | `invertSelection` *required* | `string` | — | |
9202
+ | `nothingSelected` *required* | `string` | — | |
9203
+ | `removeSelectedValue` *required* | `(beschriftung: string) => string` | — | The cross on a selected value in the trigger. |
9204
+ | `manageMoreSelected` *required* | `(count: number) => string` | — | The "+N" counter in the trigger. |
9205
+ | `multiSelectSummary` *required* | `(gewaehlt: number, total: number) => string` | — | The summary in the panel: "3 / 12". The sentence structure belongs to the language, even where it is only a slash here. |
9206
+ | `optionCount` *required* | `(count: number) => string` | — | How many options stand, when a list opens or its filter changes; never zero - an empty list says its own empty text. Named, like the three below, after the moment it is spoken in: an announcement labels no element. |
9207
+ | `optionActive` *required* | `( label: string, state: { selected?: boolean; disabled?: boolean; group?: string }, ) => string` | — | The option the keys moved onto, with what VoiceOver leaves out. |
9208
+ | `optionAdded` *required* | `(label: string) => string` | — | A value the multi-select took or gave away where no checkbox had the focus to say it - Enter in the search, a chip, Backspace. |
9209
+ | `optionRemoved` *required* | `(label: string) => string` | — | |
9210
+ | `palettePlaceholder` *required* | `string` | — | What stands in the empty field. |
9211
+ | `paletteField` *required* | `string` | — | Accessible name of the field. Deliberately kept apart from the placeholder - whoever labels the field differently does not thereby rename the window. |
9212
+ | `palettePanel` *required* | `string` | — | Accessible name of the window. |
9213
+ | `paletteList` *required* | `string` | — | Accessible name of the list of finds. |
9214
+ | `paletteNoFinds` *required* | `string` | — | The one line when the query finds nothing. |
9215
+ | `paletteFindCount` *required* | `(count: number) => string` | — | What the screen reader hears when the number of finds changes. |
9216
+ | `paletteMoreFinds` *required* | `(count: number) => string` | — | The last line when more finds exist than `maxFinds` lets stand. |
9217
+ | `paletteHintMove` *required* | `string` | — | The three key hints in the footer, each the text beside the key. |
9218
+ | `paletteHintChoose` *required* | `string` | — | |
9219
+ | `paletteHintClose` *required* | `string` | — | |
9220
+ | `paletteKeyEsc` *required* | `string` | — | The legend on the Escape key. The arrows and the return key are glyphs and therefore do not stand here; "Esc" is a word and is called something else elsewhere. |
9221
+ | `datePlaceholder` *required* | `string` | — | |
9222
+ | `datePanel` *required* | `string` | — | Accessible name of the panel. Deliberately kept apart from the placeholder: whoever labels the field differently does not thereby rename the dialog. |
9223
+ | `dateClear` *required* | `string` | — | |
9224
+ | `dateTimePlaceholder` *required* | `string` | — | |
9225
+ | `dateTimePanel` *required* | `string` | — | |
9226
+ | `dateTimeClear` *required* | `string` | — | |
9227
+ | `dateRangePlaceholder` *required* | `string` | — | |
9228
+ | `dateRangePanel` *required* | `string` | — | |
9229
+ | `dateRangeClear` *required* | `string` | — | |
9230
+ | `dateTimeRangePanel` *required* | `string` | — | Accessible name of the panel in the range with time of day. |
9231
+ | `dateTimeRangeClear` *required* | `string` | — | The clearing x of the range with time - kept apart from the range without, so that an application can call the two differently. |
9232
+ | `previousMonth` *required* | `string` | — | |
9233
+ | `nextMonth` *required* | `string` | — | |
9234
+ | `quickSelect` *required* | `string` | — | Group name of the preset column. |
9235
+ | `today` *required* | `string` | — | |
9236
+ | `now` *required* | `string` | — | |
9237
+ | `clear` *required* | `string` | — | |
9238
+ | `apply` *required* | `string` | — | |
9239
+ | `allDay` *required* | `string` | — | |
9240
+ | `timeOfDay` *required* | `string` | — | |
9241
+ | `hour` *required* | `string` | — | |
9242
+ | `minute` *required* | `string` | — | |
9243
+ | `second` *required* | `string` | — | |
9244
+ | `sideFrom` *required* | `string` | — | Header of the two time columns in the range with time of day. |
9245
+ | `sideTo` *required* | `string` | — | |
9246
+ | `startHour` *required* | `string` | — | Accessible name of the time fields, per side. |
9247
+ | `startMinute` *required* | `string` | — | |
9248
+ | `startSecond` *required* | `string` | — | |
9249
+ | `endHour` *required* | `string` | — | |
9250
+ | `endMinute` *required* | `string` | — | |
9251
+ | `endSecond` *required* | `string` | — | |
9252
+ | `timeFieldIncrease` *required* | `(feld: string) => string` | — | Stepper buttons of a time field; the label comes from above. |
9253
+ | `timeFieldDecrease` *required* | `(feld: string) => string` | — | |
9254
+ | `chooseStartDate` *required* | `string` | — | Footer of the range panels. |
9255
+ | `chooseEndDate` *required* | `string` | — | |
9256
+ | `days` *required* | `(count: number) => string` | — | "3 days" or "1 day" - the plural belongs to the language. |
9257
+ | `daysSelected` *required* | `(count: number) => string` | — | "3 days selected" |
9258
+ | `rangePreview` *required* | `(from: string, to: string, count: number) => string` | — | "17.03. – 19.03. · 3 days" while dragging; the dates come from the formats. |
9259
+ | `daysAllDay` *required* | `(count: number) => string` | — | "3 days (all day)" |
9260
+ | `duration` *required* | `(teile: readonly string[]) => string` | — | "Duration: 1 day 2 hrs 30 min" |
9261
+ | `hoursShort` *required* | `(count: number) => string` | — | |
9262
+ | `minutesShort` *required* | `(count: number) => string` | — | |
9263
+ | `timeMissingHint` *required* | `(timeOfDay: string) => string` | — | Daylight-saving change: the hour that does not exist. |
9264
+ | `timeMissingHintSide` *required* | `(side: string, timeOfDay: string) => string` | — | The same, with the side put in front ("From"/"To"). |
9265
+ | `timeAmbiguousHint` *required* | `string` | — | Daylight-saving change: the hour that occurs twice. |
9266
+ | `timeAmbiguousHintSide` *required* | `(side: string) => string` | — | |
9267
+ | `timeEarlier` *required* | `(versatz: string) => string` | — | |
9268
+ | `timeLater` *required* | `(versatz: string) => string` | — | |
9269
+ | `weekdays` *required* | `readonly string[]` | — | The calendar's weekday headers, starting at Monday. |
9270
+ | `presets` *required* | `{ today: string; yesterday: string; last7Days: string; last30Days: string; thisMonth: string; previousMonth: string; thisQuarter: string; thisYear: string; }` | — | The quick-select ranges, in the order of PRESET_LABELS. |
9271
+ | `pagination` *required* | `string` | — | |
9272
+ | `rows` *required* | `string` | — | |
9273
+ | `rowsPerPage` *required* | `string` | — | |
9274
+ | `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". |
9275
+ | `previousPage` *required* | `string` | — | |
9276
+ | `nextPage` *required* | `string` | — | |
9277
+ | `filterReset` *required* | `string` | — | The two buttons in the column filter's footer. |
9278
+ | `filterDone` *required* | `string` | — | |
9279
+ | `columns` *required* | `string` | — | The column menu's button.<br>Shown in: [Set wording and formats once (Provider)](#provider) |
9280
+ | `arrangeColumns` *required* | `string` | — | Accessible name of the list in the column menu. |
9281
+ | `columnForward` *required* | `(column: string) => string` | — | The two buttons that move a column in the column menu. |
9282
+ | `columnBackward` *required* | `(column: string) => string` | — | |
9283
+ | `pinColumnToStart` *required* | `(column: string) => string` | — | The column menu's pin keys: to a side, and back when it is pinned there. |
9284
+ | `pinColumnToEnd` *required* | `(column: string) => string` | — | |
9285
+ | `unpinColumn` *required* | `(column: string) => string` | — | |
9286
+ | `columnForwardHint` *required* | `string` | — | The tooltips over those four keys: short, without the column, which stands in the same line. The keys' names above keep it for a screen reader. |
9287
+ | `columnBackwardHint` *required* | `string` | — | |
9288
+ | `pinToStartHint` *required* | `string` | — | |
9289
+ | `pinToEndHint` *required* | `string` | — | |
9290
+ | `unpinHint` *required* | `string` | — | |
9291
+ | `exportLabel` *required* | `string` | — | The export button.<br>Shown in: [Set wording and formats once (Provider)](#provider) |
9292
+ | `exportPageLabel` *required* | `string` | — | The export button of a table in server mode, which holds and writes one page. |
9293
+ | `exporting` *required* | `string` | — | The status while the application prepares an export of every match. |
9294
+ | `exportFailed` *required* | `string` | — | The alert beside the export button when preparing the export failed without a message. |
9295
+ | `exportFileName` *required* | `string` | — | The export's file name, where the application names none. |
9296
+ | `exportSheetName` *required* | `string` | — | The name of the sheet an XLSX export holds. |
9297
+ | `tableSearchPlaceholder` *required* | `string` | — | Placeholder and accessible name of the search field.<br>Shown in: [Set wording and formats once (Provider)](#provider) |
9298
+ | `tableSearchLabel` *required* | `string` | — | |
9299
+ | `filterColumn` *required* | `(column: string) => string` | — | The filter button of a column: "Filter Region". |
9300
+ | `filterHint` *required* | `string` | — | The tooltip over that button. |
9301
+ | `selectRow` *required* | `(row: string) => string` | — | The selection of one row, named after its row header. |
9302
+ | `selectAllRows` *required* | `string` | — | The selection of every row in the filtered set. |
9303
+ | `selectAllOnPage` *required* | `string` | — | The same checkbox in server mode, where the table holds one page of a server's. |
9304
+ | `expandRowNamed` *required* | `(row: string) => string` | — | The expand button, named after the row header. |
9305
+ | `collapseRowNamed` *required* | `(row: string) => string` | — | |
9306
+ | `rowActions` *required* | `string` | — | Header of the actions column - for the screen reader, not visible. |
9307
+ | `rowAction` *required* | `(aktion: string, row: string) => string` | — | One action on a row: "Open: A-2041". |
9308
+ | `rowActionsMenu` *required* | `(row: string) => string` | — | The menu holding a row's actions. |
9309
+ | `editCell` *required* | `(column: string, row: string) => string` | — | The editor of a cell in a table's grid mode, named after its column and its row: "Edit Budget: Marketing". |
9310
+ | `newRow` *required* | `string` | — | The button above a grid that opens an empty row to fill in, and the name of that row while it has none ([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)). |
9311
+ | `saveRow` *required* | `string` | — | A row draft's buttons, named with the row through `rowAction`. |
9312
+ | `discardRow` *required* | `string` | — | |
9313
+ | `deleteRow` *required* | `string` | — | A row's delete button, and its question once pressed: Delete? Delete / Keep. |
9314
+ | `deleteRowAsk` *required* | `string` | — | |
9315
+ | `keepRow` *required* | `string` | — | |
9316
+ | `saveOrDiscardFirst` *required* | `string` | — | Said where someone tries to leave a row draft unsaved. |
9317
+ | `cellAbsentValue` *required* | `string` | — | What the screen reader hears for an absent value. Visibly a muted dash stands there. |
9318
+ | `booleanYes` *required* | `string` | — | A boolean without a presentation of its own. |
9319
+ | `booleanNo` *required* | `string` | — | |
9320
+ | `footerSum` *required* | `string` | — | The kind of a footer number, read out before the number. |
9321
+ | `footerAverage` *required* | `string` | — | |
9322
+ | `footerMinimum` *required* | `string` | — | |
9323
+ | `footerMaximum` *required* | `string` | — | |
9324
+ | `footerRange` *required* | `string` | — | |
9325
+ | `footerCount` *required* | `string` | — | |
9326
+ | `footerDistinct` *required* | `string` | — | |
9327
+ | `footerAggregate` *required* | `string` | — | An aggregate the application computes itself. |
9328
+ | `grouping` *required* | `string` | — | The grouping section of the column menu, and the menu entry per column. |
9329
+ | `groupBy` *required* | `(label: string) => string` | — | |
9330
+ | `groupedBy` *required* | `string` | — | The grouping's tag in the table toolbar: "Grouped by" Region › Customer. |
9331
+ | `removeGrouping` *required* | `string` | — | |
9332
+ | `removeGroupingLevel` *required* | `(label: string) => string` | — | |
9333
+ | `foldAll` *required* | `string` | — | |
9334
+ | `unfoldAll` *required* | `string` | — | |
9335
+ | `groupNoValue` *required* | `string` | — | The group of rows without a value. |
9336
+ | `groupContinued` *required* | `string` | — | Beside a group repeated at the top of a page that begins inside it. |
9337
+ | `foldGroup` *required* | `(name: string, count: string) => string` | — | The fold of a group, with its value and its count. |
9338
+ | `unfoldGroup` *required* | `(name: string, count: string) => string` | — | |
9339
+ | `foldBranch` *required* | `(row: string) => string` | — | The fold of a branch in a table with tree rows, named after its row - not `expandRowNamed`, which names the row detail's expander on the same row. |
9340
+ | `unfoldBranch` *required* | `(row: string) => string` | — | |
9341
+ | `levelColumn` *required* | `string` | — | The first column of a tree's export. |
9342
+ | `pathRow` *required* | `string` | — | A row shown only because a descendant matches the search or a filter. |
9343
+ | `footerTopLevel` *required* | `string` | — | The footer of a tree: it sums the top level, since a parent holds its children. |
9344
+ | `footerOfMatches` *required* | `string` | — | The footer of a server-mode table: its sums come from the server and cover every match, not the page. Read out only. |
9345
+ | `selectGroup` *required* | `(name: string) => string` | — | The box that selects every row of a group. |
9346
+ | `calendarWeek` *required* | `(week: number, year: number) => string` | — | A group of the week key: "Week 42, 2026". |
9347
+ | `entries` *required* | `(count: number, formatted: string) => string` | — | "128 entries" in the pagination bar; the plural belongs to the language. |
9348
+ | `selectedCount` *required* | `(count: number, formatted: string) => string` | — | "3 selected" in the pagination bar and the table toolbar. |
9349
+ | `selectedOnPage` *required* | `(count: number, formatted: string) => string` | — | The first sentence of the offer in a server-mode table, once the page is ticked: "All 50 on this page are selected." |
9350
+ | `selectAllMatching` *required* | `(count: number, formatted: string) => string` | — | The button after it, for the rows the server holds: "Select all 12,400 that match". |
9351
+ | `allMatchingSelected` *required* | `(count: number, formatted: string) => string` | — | The line once they are selected: "All 12,400 that match are selected." |
9352
+ | `copiedRows` *required* | `(count: number, formatted: string) => string` | — | Said to a screen reader after Ctrl+C copied rows: "3 rows copied". |
9353
+ | `copiedCell` *required* | `string` | — | Said after Ctrl+C copied the active cell of a grid. |
9354
+ | `copyFailed` *required* | `string` | — | Said when the clipboard refused or is not there. |
9355
+ | `noEntries` *required* | `string` | — | Empty because there are no rows. |
9356
+ | `nothingMatchesFilters` *required* | `string` | — | Empty because search and filters leave nothing - something else. |
9357
+ | `treeSearchPlaceholder` *required* | `string` | — | |
9358
+ | `treeNoMatches` *required* | `string` | — | |
9359
+ | `conditions` *required* | `string` | — | Group name of the conditions in the table toolbar. |
9360
+ | `removeConditionNamed` *required* | `(label: string, value: string) => string` | — | The button that removes a condition: "Remove Region: EU, US". |
9361
+ | `editConditionNamed` *required* | `(label: string, value: string) => string` | — | The condition itself, which opens its filter: "Edit Region: EU, US". |
9362
+ | `moreValues` *required* | `(count: number, formatted: string) => string` | — | The remainder of a long list in a condition: "+1". |
9363
+ | `filterFrom` *required* | `string` | — | The two fields of the range filter. |
9364
+ | `filterTo` *required* | `string` | — | |
9365
+ | `rangeFromTo` *required* | `(from: string, to: string) => string` | — | The condition of a range filter: "100–500", "from 100", "to 500". |
9366
+ | `rangeFrom` *required* | `(from: string) => string` | — | |
9367
+ | `rangeTo` *required* | `(to: string) => string` | — | |
9368
+ | `rangeInvalid` *required* | `string` | — | When "From" lies behind "To". The condition stays the last valid one. |
9369
+ | `resetAll` *required* | `string` | — | Clears search and conditions - in the table toolbar and in the empty body. |
9370
+ | `tryAgain` *required* | `string` | — | The button under a server-mode table's error that sends the request once more. |
9371
+ | `filteredOfTotal` *required* | `(matches: string, total: string) => string` | — | "43 of 1.204" - the numbers come from the formats. |
9372
+ | `verdictOk` *required* | `string` | — | The four outcomes of an assessment, as a word beside the value. Colour alone carries no meaning - the word stands here for that reason. |
9373
+ | `verdictWarning` *required* | `string` | — | |
9374
+ | `verdictAlarm` *required* | `string` | — | |
9375
+ | `verdictUnknown` *required* | `string` | — | |
9376
+ | `statAbsentValue` *required* | `string` | — | What stands in the value field when there is no value. No dash, no zero: either could be a value. |
9377
+ | `target` *required* | `string` | — | |
9378
+ | `deviationAbove` *required* | `(betrag: string) => string` | — | "3,2 above target" or "1,5 below target" - the amount comes from the formats, which is where the comma is from. |
9379
+ | `deviationBelow` *required* | `(betrag: string) => string` | — | |
9380
+ | `deviationOnTarget` *required* | `string` | — | |
9381
+ | `freshnessFresh` *required* | `string` | — | The three freshness states. They are a DIFFERENT axis from the verdict: 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)). |
9382
+ | `freshnessStale` *required* | `string` | — | |
9383
+ | `freshnessDisconnected` *required* | `string` | — | |
9384
+ | `asOfAgo` *required* | `(duration: string) => string` | — | "As of: 3 minutes ago", where the duration comes from the formats. |
9385
+ | `close` *required* | `string` | — | |
9386
+ | `closeToast` *required* | `string` | — | |
9387
+ | `toastDeckCount` *required* | `(count: number) => string` | — | The count on the front toast of a closed deck; pressing it shows them all. |
9388
+ | `toastRegion` *required* | `string` | — | The name of the toasts' region, which Alt+T moves the focus into. |
9389
+ | `confirm` *required* | `string` | — | |
9390
+ | `cancel` *required* | `string` | — | |
9391
+ | `loading` *required* | `string` | — | |
9392
+ | `fillLevel` *required* | `string` | — | Generic name of a fill-level bar, where the caller names none. |
9393
+ | `progress` *required* | `string` | — | Generic name of a progress bar, where the caller names none. |
9394
+ | `breadcrumb` *required* | `string` | — | The accessible name of a breadcrumb's navigation landmark. |
9395
+ | `breadcrumbFolded` *required* | `string` | — | The key that opens a breadcrumb's folded middle levels as a menu. |
9396
+ | `splitter` *required* | `string` | — | The separator between a splitter's panes, where the caller names none - a caller who can should name the first pane instead (APG). |
9397
+ | `stepDone` *required* | `string` | — | A stepper's step that is behind it, said beside its label to a screen reader; the current step is `aria-current` and needs no word. |
9398
+ | `stepUpcoming` *required* | `string` | — | A step still ahead. |
9399
+ | `stepFailed` *required* | `string` | — | A step that failed - behind the current one or the current one itself. |
9400
+ | `chooseFile` *required* | `string` | — | The key of a file input that takes one file - and its name where no field names it. |
9401
+ | `chooseFiles` *required* | `string` | — | The same key where it takes several. |
9402
+ | `dropFile` *required* | `string` | — | The words beside the key that say the zone takes a drop. |
9403
+ | `dropFiles` *required* | `string` | — | |
9404
+ | `removeFile` *required* | `(name: string) => string` | — | The cross beside a chosen file. |
9405
+ | `fileNotAccepted` *required* | `(name: string) => string` | — | A dropped file the input's `accept` does not take. |
9406
+ | `show` *required* | `string` | — | |
9407
+ | `hide` *required* | `string` | — | |
9408
+ | `moreActions` *required* | `string` | — | |
9409
+ | `remove` *required* | `string` | — | The cross on a tag without text content. |
9410
+ | `removeTag` *required* | `(beschriftung: string) => string` | — | The cross on a tag with text content. |
9411
+ | `scheduleOverlap` *required* | `string` | — | The two findings, named on the ghost of a drag. |
9412
+ | `scheduleViolatedDependency` *required* | `string` | — | |
9413
+ | `scheduleGhostTimes` *required* | `(from: string, to: string) => string` | — | The new times on the ghost: "08:15–10:00" - the times come from the formats. |
9414
+ | `scheduleLeadIn` *required* | `string` | — | The parts of a subtask and a dependency, named in the tooltip. |
9415
+ | `scheduleLeadOut` *required* | `string` | — | |
9416
+ | `scheduleDependency` *required* | `string` | — | |
9417
+ | `scheduleRoute` *required* | `(from: string, to: string) => string` | — | "A-2041-1 → A-2041-2": the two subtasks a dependency joins. |
9418
+ | `scheduleOverlapWith` *required* | `(other: string) => string` | — | "Overlap with A-2043-2" - the other subtask on the lane. |
9419
+ | `scheduleViolatedBy` *required* | `(amount: string) => string` | — | "Violated dependency, 15 min short" - the amount from `minutesShort`. |
9420
+ | `scheduleLaneRefused` *required* | `string` | — | On the ghost of a drag over a lane the subtask may not go to. |
9421
+ | `scheduleBlockedTime` *required* | `string` | — | On the ghost of a drag held back from a lane's blocked time. |
9422
+ | `scheduleInBlockedTime` *required* | `(label: string \| undefined) => string` | — | "In blocked time (Leave)" - a subtask covering its lane's blocked time, with the blocked time's label where it has one. |
9423
+ | `scheduleMilestone` *required* | `(name: string) => string` | — | "Milestone: Release" - a milestone named by its label (or id), so that the tooltip and the spoken readout say what kind of thing it is. |
9424
+ | `scheduleFoldGroup` *required* | `string` | — | The chevron of a lane group's header, which folds it into one row and unfolds it again. The group's own label stands beside the button, so the name is what the ACTION is, not which group it acts on. |
9425
+ | `scheduleUnfoldGroup` *required* | `string` | — | |
9426
+ | `scheduleLaneCount` *required* | `(count: number) => string` | — | How many lanes a group holds, beside its name in the header. |
9427
+ | `scheduleRoleDescription` *required* | `string` | — | What a screen reader calls the plot that takes the keys (`aria-roledescription`, schedule-a11y S1). |
9428
+ | `scheduleSummary` *required* | `(summary: { lanes: number; subtasks: number; from: string; to: string; overlaps: number; violated: number; /** Subtasks in blocked time; said only where there are any. */ blocked: number; /** Milestones of the plan; said only where there are any. */ milestones: number; }) => string` | — | The plot's description (S6): the lanes, the subtasks in view, the visible span with both ends formatted, and the findings of the plan by kind. |
9429
+ | `scheduleKeyHelp` *required* | `string` | — | The keys that walk the plot, select and edit - read after the summary. |
9430
+ | `dashboardEdit` *required* | `string` | — | The editing bar's buttons and the label that says the mode is on. |
9431
+ | `dashboardEditing` *required* | `string` | — | |
9432
+ | `dashboardCancel` *required* | `string` | — | |
9433
+ | `dashboardDone` *required* | `string` | — | |
9434
+ | `dashboardUndo` *required* | `string` | — | |
9435
+ | `dashboardRedo` *required* | `string` | — | |
9436
+ | `dashboardReset` *required* | `string` | — | |
9437
+ | `dashboardMenu` *required* | `(title: string) => string` | — | The name of a widget's menu button: the widget's title is the thing. |
9438
+ | `dashboardPlace` *required* | `(place: number, of: number) => string` | — | At the top of the menu, and in the name of a head the arrow keys move. |
9439
+ | `dashboardHead` *required* | `(title: string, place: number, of: number) => string` | — | |
9440
+ | `dashboardMoveStart` *required* | `string` | — | |
9441
+ | `dashboardMoveEarlier` *required* | `string` | — | |
9442
+ | `dashboardMoveLater` *required* | `string` | — | |
9443
+ | `dashboardMoveEnd` *required* | `string` | — | |
9444
+ | `dashboardRemove` *required* | `string` | — | |
9445
+ | `dashboardSizes` *required* | `{ small: string; medium: string; wide: string; tall: string; large: string; full: string }` | — | The closed set of size names, worded once for every widget type. |
9446
+ | `dashboardSizeEntry` *required* | `(size: string, share: string, current: boolean) => string` | — | A size's entry in a widget's menu: its name and its share of the width (`share` is "¼" or "5/12", empty for the whole width); `current` marks the size the widget stands at. |
9447
+ | `dashboardHeadingLabel` *required* | `string` | — | The built-in heading type: its name, its sentence in the catalogue, the text a new heading starts with and the label of its text field. |
9448
+ | `dashboardHeadingSentence` *required* | `string` | — | |
9449
+ | `dashboardHeadingText` *required* | `string` | — | |
9450
+ | `dashboardHeadingField` *required* | `string` | — | |
9451
+ | `dashboardLeft` *required* | `string` | — | Said when "Done" leaves the mode and nothing was changed. |
9452
+ | `dashboardMoved` *required* | `(title: string, from: number, to: number, of: number) => string` | — | What is spoken after a change. |
9453
+ | `dashboardDragCancelled` *required* | `(title: string) => string` | — | |
9454
+ | `dashboardResized` *required* | `(title: string, size: string) => string` | — | |
9455
+ | `dashboardRemoved` *required* | `(title: string) => string` | — | |
9456
+ | `dashboardKept` *required* | `string` | — | |
9457
+ | `dashboardCancelled` *required* | `string` | — | |
9458
+ | `dashboardAddWidget` *required* | `string` | — | The catalogue and the options. |
9459
+ | `dashboardCatalogue` *required* | `string` | — | |
9460
+ | `dashboardCatalogueSentence` *required* | `string` | — | |
9461
+ | `dashboardAdd` *required* | `string` | — | |
9462
+ | `dashboardAddType` *required* | `(label: string) => string` | — | |
9463
+ | `dashboardFootprint` *required* | `(columns: number, rows: number) => string` | — | |
9464
+ | `dashboardAdded` *required* | `(title: string, place: number, of: number) => string` | — | |
9465
+ | `dashboardOptions` *required* | `string` | — | |
9466
+ | `dashboardOptionsChanged` *required* | `(title: string) => string` | — | |
9467
+ | `dashboardEmpty` *required* | `string` | — | |
9468
+ | `dashboardEmptyEditing` *required* | `string` | — | |
9469
+ | `dashboardFailed` *required* | `string` | — | |
9470
+ | `dashboardUndone` *required* | `string` | — | |
9471
+ | `dashboardRedone` *required* | `string` | — | |
9472
+ | `dashboardResetDone` *required* | `string` | — | |
9473
+ | `calculationSumSymbol` *required* | `string` | — | The four operators as symbols in a formula line. |
9474
+ | `calculationDifferenceSymbol` *required* | `string` | — | |
9475
+ | `calculationProductSymbol` *required* | `string` | — | |
9476
+ | `calculationQuotientSymbol` *required* | `string` | — | |
9477
+ | `calculationSumWord` *required* | `string` | — | The same four as words, in the accessible sentence of a line. |
9478
+ | `calculationDifferenceWord` *required* | `string` | — | |
9479
+ | `calculationProductWord` *required* | `string` | — | |
9480
+ | `calculationQuotientWord` *required* | `string` | — | |
9481
+ | `calculationEquals` *required* | `string` | — | Between the parts of the sentence: "Availability equals ...". |
9482
+ | `calculationApproximately` *required* | `string` | — | Before a result marked "≈" in the sentence. |
9483
+ | `calculationApproximateNote` *required* | `string` | — | Beside a result marked "≈": why the rounded operands do not give it. |
9484
+ | `calculationPercent` *required* | `string` | — | How a percentage is read out: "91.6 percent". |
9485
+ | `calculationMissing` *required* | `(label: string) => string` | — | Why a quantity has no number - the label is the given at the root of it, or the divisor that is zero. |
9486
+ | `calculationDivisionByZero` *required* | `(label: string) => string` | — | |
9487
+ | `calculationAboveTarget` *required* | `(target: string) => string` | — | The target beside the result, with the target's number and unit. |
9488
+ | `calculationBelowTarget` *required* | `(target: string) => string` | — | |
9489
+ | `calculationOnTarget` *required* | `(target: string) => string` | — | |
9490
+ | `calculationWorstInside` *required* | `(verdict: string) => string` | — | The quiet marker on a folded quantity whose derivation holds a worse verdict than its own; the verdict word comes from `verdict*`. |
9491
+ | `calculationSource` *required* | `(source: string) => string` | — | Where a given number came from. |
9492
+ | `calculationShowDerivation` *required* | `(label: string) => string` | — | The disclosure button of a derivation, named after the quantity. |
9493
+ | `calculationHideDerivation` *required* | `(label: string) => string` | — | |
9494
+ | `calculationOperandCount` *required* | `(count: number) => string` | — | On a folded line whose operator has more operands than are written out beneath it ([ADR-0028](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0028-a-calculation-is-a-tree-or-a-chain.md)): how many there are. |
9495
+ | `calculationNoOperands` *required* | `string` | — | On the line of a sum with no operands, where its formula would stand ([ADR-0049](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0049-a-sum-takes-rows-from-data.md)). |
9496
+
9001
9497
  #### Known limits
9002
9498
 
9003
- - One format, CSV: no workbook, PDF or print layout.
9499
+ - 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.
9004
9500
 
9005
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.43.0/docs/adr/0032-what-umriss-is-not.md).
9501
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
9006
9502
 
9007
9503
  ### View
9008
9504
 
@@ -9415,7 +9911,7 @@ type TableRef = Omit<TableSnapshot<unknown>, "setFilter" | "conditionOf"> & {
9415
9911
 
9416
9912
  - In [server mode](#server-mode) the page goes to the server in the request, and `rowCount` decides how many pages there are.
9417
9913
 
9418
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.43.0/docs/adr/0032-what-umriss-is-not.md).
9914
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
9419
9915
 
9420
9916
  ### Virtualisation
9421
9917
 
@@ -9726,7 +10222,7 @@ From `ToolbarProps` — the full table stands on [Toolbar](#toolbar).
9726
10222
  - Paging and virtualisation do not combine; one table does one or the other.
9727
10223
  - No loading more rows while scrolling: a table on a server pages ([Server mode](#server-mode)).
9728
10224
 
9729
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.43.0/docs/adr/0032-what-umriss-is-not.md).
10225
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
9730
10226
 
9731
10227
  ### Benchmark
9732
10228
 
@@ -10112,7 +10608,9 @@ import { useTable } from "@umriss-ui/table";
10112
10608
 
10113
10609
  `onRequest` reports the request whenever what decides the rows changes – search, conditions, sort, page, page size – complete, defaults included, since a server has no default of the table's.
10114
10610
 
10115
- Requests are the application's: the table shows whatever rows it is given, so an answer to a view the user has already left is the application's to drop.
10611
+ `answers` names the request the rows answer: while it is not the table's current request the table is loading, so a late answer is never shown as current. Without it the rows are taken as current.
10612
+
10613
+ `error` shows the application's message in place of the rows, with “Try again”; `totals` fill the footer over every match; `exportRows` writes every match. What to cap, what to sum and when to clear `error` stay the application's.
10116
10614
 
10117
10615
  #### Examples
10118
10616
 
@@ -10702,12 +11200,13 @@ export default function ListFilter() {
10702
11200
  }
10703
11201
  ```
10704
11202
 
10705
- ##### Show loading, and drop a late answer
11203
+ ##### Show loading, and hold a late answer
10706
11204
 
10707
- `loading` marks the table while a request runs: the page it has stays, dimmed after a moment, and nothing below it moves. An answer to a view the user has already left is the application's to drop; the table shows whatever rows it is given.
11205
+ `answers` names the request the rows answer. While it is not the table's current request the table is busy as `loading` makes it: the page it has stays, dimmed after a moment, and nothing below it moves. Here every answer takes a different time, so they arrive out of order on purpose - page on quickly and the table stays busy until the answer to the page you are on has come; the others are never shown as current.
10708
11206
 
10709
11207
  ```tsx
10710
11208
  import { useRef, useState } from "react";
11209
+ import { Stack, Text } from "@umriss-ui/core";
10711
11210
  import { Pagination, useTable } from "@umriss-ui/table";
10712
11211
  import type { TableRequest } from "@umriss-ui/table";
10713
11212
 
@@ -10863,48 +11362,47 @@ const SHIPMENTS: readonly Shipment[] = TOURS.flatMap((one) =>
10863
11362
  }),
10864
11363
  );
10865
11364
 
10866
- /* Every answer takes 600 ms. Page on quickly: only the last request lands. */
10867
- const LATENCY = 600;
10868
-
11365
+ /* Every second request is slow, so an answer is overtaken by the next one:
11366
+ page on quickly to see it hold. */
10869
11367
  const serve = (view: TableRequest) => {
10870
11368
  const start = (view.page - 1) * view.pageSize;
10871
- return { rows: SHIPMENTS.slice(start, start + view.pageSize), rowCount: SHIPMENTS.length };
11369
+ return { rows: SHIPMENTS.slice(start, start + view.pageSize), rowCount: SHIPMENTS.length, answers: view };
10872
11370
  };
10873
11371
 
10874
11372
  export default function LoadingAndLateAnswers() {
10875
11373
  const [answer, setAnswer] = useState(() => serve({ search: "", conditions: {}, sort: [], page: 1, pageSize: 10 }));
10876
- const [loading, setLoading] = useState(false);
10877
- const latest = useRef<TableRequest | null>(null);
11374
+ const asked = useRef(0);
10878
11375
 
10879
- const { Table, Column } = useTable(answer.rows, {
11376
+ const { Table, Column, request } = useTable(answer.rows, {
10880
11377
  rowKey: (s) => s.id,
10881
11378
  server: true,
10882
11379
  rowCount: answer.rowCount,
11380
+ answers: answer.answers,
10883
11381
  onRequest: (view) => {
10884
- latest.current = view;
10885
- setLoading(true);
10886
- setTimeout(() => {
10887
- if (latest.current !== view) return;
10888
- setAnswer(serve(view));
10889
- setLoading(false);
10890
- }, LATENCY);
11382
+ asked.current += 1;
11383
+ setTimeout(() => setAnswer(serve(view)), asked.current % 2 === 0 ? 1200 : 300);
10891
11384
  },
10892
11385
  });
10893
11386
 
10894
11387
  return (
10895
- <Table aria-label="Shipments on the server" loading={loading}>
10896
- <Column value="id" label="Shipment" rowHeader sortable={false} />
10897
- <Column value="customer" label="Customer" sortable={false} />
10898
- <Column value="weight" label="Weight (kg)" sortable={false} />
10899
- <Pagination />
10900
- </Table>
11388
+ <Stack gap={2}>
11389
+ <Text size="xs" tone="muted">
11390
+ Asked for page {request?.page}, showing page {answer.answers.page}.
11391
+ </Text>
11392
+ <Table aria-label="Shipments on the server">
11393
+ <Column value="id" label="Shipment" rowHeader sortable={false} />
11394
+ <Column value="customer" label="Customer" sortable={false} />
11395
+ <Column value="weight" label="Weight (kg)" sortable={false} />
11396
+ <Pagination />
11397
+ </Table>
11398
+ </Stack>
10901
11399
  );
10902
11400
  }
10903
11401
  ```
10904
11402
 
10905
11403
  ##### Load pages from a server
10906
11404
 
10907
- `server` hands the table one page and the server's `rowCount`; `onRequest` reports search, conditions, sort and page to fetch the next.
11405
+ `server` hands the table one page and the server's `rowCount`; `onRequest` reports search, conditions, sort and page to fetch the next. A typed search is reported after a pause of 300 ms, so the server is asked once for "pump", not four times; Enter, an emptied field, `setSearch` and any other change report at once. The table has no cancel token: the application aborts the previous fetch itself, with an `AbortController`.
10908
11406
 
10909
11407
  ```tsx
10910
11408
  import { useRef, useState } from "react";
@@ -10979,6 +11477,15 @@ function serve(view: TableRequest): { rows: Request[]; rowCount: number } {
10979
11477
  return { rows, rowCount };
10980
11478
  }
10981
11479
 
11480
+ /* The export asks the server for every match, the way a spreadsheet wants it;
11481
+ the application caps the file and refuses what is too large. */
11482
+ const EXPORT_CAP = 5000;
11483
+ const everyMatch = async (view: TableRequest) => {
11484
+ const { rows, rowCount } = serve({ ...view, page: 1, pageSize: EXPORT_CAP });
11485
+ if (rowCount > EXPORT_CAP) throw new Error(`${rowCount.toLocaleString("en")} rows match; narrow the search to ${EXPORT_CAP.toLocaleString("en")} or fewer.`);
11486
+ return rows;
11487
+ };
11488
+
10982
11489
  const FIRST: TableRequest = { search: "", conditions: {}, sort: [BY_ID], page: 1, pageSize: 10 };
10983
11490
  const same = (a: TableRequest, b: TableRequest) =>
10984
11491
  JSON.stringify([a.search, a.conditions, a.sort, a.page, a.pageSize]) ===
@@ -10989,6 +11496,7 @@ export default function AMillionRowsOnAServer() {
10989
11496
  const [answer, setAnswer] = useState(() => ({ view: FIRST, ...serve(FIRST) }));
10990
11497
  const [loading, setLoading] = useState(false);
10991
11498
  const latest = useRef(FIRST);
11499
+ const controller = useRef<AbortController | null>(null);
10992
11500
 
10993
11501
  const t = useTable(answer.rows, {
10994
11502
  rowKey: (r) => r.id,
@@ -10997,17 +11505,23 @@ export default function AMillionRowsOnAServer() {
10997
11505
  rowCount: answer.rowCount,
10998
11506
  onRequest: (view) => {
10999
11507
  latest.current = view;
11508
+ /* The previous fetch is the application's to abort; here it is a timer. */
11509
+ controller.current?.abort();
11510
+ const own = new AbortController();
11511
+ controller.current = own;
11000
11512
  /* Back to the view on screen before its successor was answered: the
11001
11513
  pending answer is dropped, so nothing is loading any more. */
11002
11514
  if (same(view, answer.view)) return setLoading(false);
11003
11515
  setLoading(true);
11004
- setTimeout(() => {
11516
+ const timer = setTimeout(() => {
11005
11517
  if (latest.current !== view) return;
11006
11518
  setAnswer({ view, ...serve(view) });
11007
11519
  setLoading(false);
11008
11520
  }, LATENCY);
11521
+ own.signal.addEventListener("abort", () => clearTimeout(timer));
11009
11522
  },
11010
11523
  filterOptions: (column) => (column === "service" ? SERVICES : []),
11524
+ exportRows: everyMatch,
11011
11525
  });
11012
11526
  const { Table, Column } = t;
11013
11527
  const { search, sort, page, pageSize } = answer.view;
@@ -11034,6 +11548,184 @@ export default function AMillionRowsOnAServer() {
11034
11548
  }
11035
11549
  ```
11036
11550
 
11551
+ ##### Show a failed fetch
11552
+
11553
+ `error` is the message the application wrote when the fetch failed. It stands where the rows were, with "Try again", which reports the same request once more. With `answers` the message is the failure of that request and shows only while it is the table's current one. The table clears nothing: the application sets and clears `error`. Here the second page fails the first time it is asked for.
11554
+
11555
+ ```tsx
11556
+ import { useState } from "react";
11557
+ import { Stack, Text } from "@umriss-ui/core";
11558
+ import { Pagination, useTable } from "@umriss-ui/table";
11559
+ import type { TableRequest } from "@umriss-ui/table";
11560
+
11561
+ interface Order {
11562
+ id: string;
11563
+ customer: string;
11564
+ amount: number;
11565
+ }
11566
+
11567
+ const CUSTOMERS = ["Holloway Garden Supplies", "Marlow & Finch Books", "Oakridge Pharmacy", "Brixley Cycles", "Tamsin's Bakery"] as const;
11568
+ const ORDERS: readonly Order[] = Array.from({ length: 120 }, (_, i) => ({
11569
+ id: `ORD-${String(i + 1).padStart(4, "0")}`,
11570
+ customer: CUSTOMERS[(i * 3) % CUSTOMERS.length]!,
11571
+ amount: 40 + ((i * 7919) % 900),
11572
+ }));
11573
+
11574
+ const pageOf = (view: TableRequest) => ORDERS.slice((view.page - 1) * view.pageSize, view.page * view.pageSize);
11575
+
11576
+ export default function AFailedFetch() {
11577
+ const [answer, setAnswer] = useState<{ rows: readonly Order[]; answers: TableRequest; error?: string }>(() => {
11578
+ const first: TableRequest = { search: "", conditions: {}, sort: [], page: 1, pageSize: 10 };
11579
+ return { rows: pageOf(first), answers: first };
11580
+ });
11581
+ const [failed, setFailed] = useState(false);
11582
+
11583
+ const { Table, Column } = useTable(answer.rows, {
11584
+ rowKey: (o) => o.id,
11585
+ server: true,
11586
+ rowCount: ORDERS.length,
11587
+ answers: answer.answers,
11588
+ ...(answer.error ? { error: answer.error } : {}),
11589
+ onRequest: (view) => {
11590
+ setTimeout(() => {
11591
+ if (view.page === 2 && !failed) {
11592
+ setFailed(true);
11593
+ setAnswer({ rows: [], answers: view, error: "The orders could not be loaded: the server did not answer." });
11594
+ } else setAnswer({ rows: pageOf(view), answers: view });
11595
+ }, 300);
11596
+ },
11597
+ });
11598
+
11599
+ return (
11600
+ <Stack gap={2}>
11601
+ <Table aria-label="Orders on the server">
11602
+ <Column value="id" label="Order" rowHeader sortable={false} />
11603
+ <Column value="customer" label="Customer" sortable={false} />
11604
+ <Column value="amount" label="Amount" sortable={false} />
11605
+ <Pagination />
11606
+ </Table>
11607
+ <Text size="xs" tone="muted">Page 2 fails once; press Try again.</Text>
11608
+ </Stack>
11609
+ );
11610
+ }
11611
+ ```
11612
+
11613
+ ##### Select all that match
11614
+
11615
+ With the page ticked, the table offers "Select all 12,400 that match". The selection is then a state, not a list: all that match, except the rows unticked since. A bulk action receives rows, or - once that state stands - `{ request, except }`, and the `except` key tells the two apart; carrying it out is the server's. A change of search or conditions clears the selection.
11616
+
11617
+ ```tsx
11618
+ import { useState } from "react";
11619
+ import { Stack, Text } from "@umriss-ui/core";
11620
+ import { Pagination, Toolbar, useTable } from "@umriss-ui/table";
11621
+ import type { AllMatching, TableRequest } from "@umriss-ui/table";
11622
+
11623
+ interface Order {
11624
+ id: string;
11625
+ customer: string;
11626
+ amount: number;
11627
+ }
11628
+
11629
+ const CUSTOMERS = ["Holloway Garden Supplies", "Marlow & Finch Books", "Oakridge Pharmacy", "Brixley Cycles", "Tamsin's Bakery"] as const;
11630
+ const ORDERS: readonly Order[] = Array.from({ length: 12_400 }, (_, i) => ({
11631
+ id: `ORD-${String(i + 1).padStart(5, "0")}`,
11632
+ customer: CUSTOMERS[(i * 3) % CUSTOMERS.length]!,
11633
+ amount: 40 + ((i * 7919) % 900),
11634
+ }));
11635
+
11636
+ const pageOf = (view: TableRequest) => ORDERS.slice((view.page - 1) * view.pageSize, view.page * view.pageSize);
11637
+
11638
+ export default function SelectAllThatMatch() {
11639
+ const [answer, setAnswer] = useState(() => {
11640
+ const first: TableRequest = { search: "", conditions: {}, sort: [], page: 1, pageSize: 10 };
11641
+ return { rows: pageOf(first), answers: first };
11642
+ });
11643
+ const [done, setDone] = useState("Nothing archived yet.");
11644
+
11645
+ const { Table, Column, RowActions, Action } = useTable(answer.rows, {
11646
+ rowKey: (o) => o.id,
11647
+ server: true,
11648
+ rowCount: ORDERS.length,
11649
+ answers: answer.answers,
11650
+ onRequest: (view) => setTimeout(() => setAnswer({ rows: pageOf(view), answers: view }), 200),
11651
+ });
11652
+
11653
+ const archive = (selected: readonly Order[] | AllMatching) =>
11654
+ setDone(
11655
+ "except" in selected
11656
+ ? `The server archives every match of the request, except ${selected.except.length} orders.`
11657
+ : `The server archives ${selected.length} named orders.`,
11658
+ );
11659
+
11660
+ return (
11661
+ <Stack gap={2}>
11662
+ <Table selectable aria-label="Orders on the server">
11663
+ <Toolbar />
11664
+ <Column value="id" label="Order" rowHeader sortable={false} />
11665
+ <Column value="customer" label="Customer" sortable={false} />
11666
+ <Column value="amount" label="Amount" sortable={false} />
11667
+ <RowActions>
11668
+ <Action bulk onSelect={archive}>Archive</Action>
11669
+ </RowActions>
11670
+ <Pagination />
11671
+ </Table>
11672
+ <Text size="xs" tone="muted">{done}</Text>
11673
+ </Stack>
11674
+ );
11675
+ }
11676
+ ```
11677
+
11678
+ ##### Show sums from the server
11679
+
11680
+ `totals` come beside the rows, by column id: the value of the column's declared `aggregate` over every match, not over the page. The footer shows them in the column's format; a key left out shows the absent value, and while an answer is out the cells are skeleton, never the old sums.
11681
+
11682
+ ```tsx
11683
+ import { useState } from "react";
11684
+ import { Pagination, useTable } from "@umriss-ui/table";
11685
+ import type { TableRequest } from "@umriss-ui/table";
11686
+
11687
+ interface Order {
11688
+ id: string;
11689
+ customer: string;
11690
+ amount: number;
11691
+ }
11692
+
11693
+ const CUSTOMERS = ["Holloway Garden Supplies", "Marlow & Finch Books", "Oakridge Pharmacy", "Brixley Cycles", "Tamsin's Bakery"] as const;
11694
+ const ORDERS: readonly Order[] = Array.from({ length: 1000 }, (_, i) => ({
11695
+ id: `ORD-${String(i + 1).padStart(4, "0")}`,
11696
+ customer: CUSTOMERS[(i * 3) % CUSTOMERS.length]!,
11697
+ amount: 40 + ((i * 7919) % 900),
11698
+ }));
11699
+
11700
+ const serve = (view: TableRequest) => ({
11701
+ rows: ORDERS.slice((view.page - 1) * view.pageSize, view.page * view.pageSize),
11702
+ answers: view,
11703
+ totals: { id: ORDERS.length, amount: ORDERS.reduce((sum, o) => sum + o.amount, 0) },
11704
+ });
11705
+
11706
+ export default function SumsFromTheServer() {
11707
+ const [answer, setAnswer] = useState(() => serve({ search: "", conditions: {}, sort: [], page: 1, pageSize: 10 }));
11708
+
11709
+ const { Table, Column } = useTable(answer.rows, {
11710
+ rowKey: (o) => o.id,
11711
+ server: true,
11712
+ rowCount: ORDERS.length,
11713
+ answers: answer.answers,
11714
+ totals: answer.totals,
11715
+ onRequest: (view) => setTimeout(() => setAnswer(serve(view)), 400),
11716
+ });
11717
+
11718
+ return (
11719
+ <Table aria-label="Orders on the server">
11720
+ <Column value="id" label="Order" rowHeader sortable={false} aggregate="count" />
11721
+ <Column value="customer" label="Customer" sortable={false} />
11722
+ <Column value="amount" label="Amount" sortable={false} aggregate="sum" />
11723
+ <Pagination />
11724
+ </Table>
11725
+ );
11726
+ }
11727
+ ```
11728
+
11037
11729
  #### When to use something else
11038
11730
 
11039
11731
  - Thousands of rows that are all in the browser → Virtualisation
@@ -11064,6 +11756,7 @@ From `TableSnapshot` — the full table stands on [First table](#first-table).
11064
11756
  | Prop | Type | Default | Description |
11065
11757
  |---|---|---|---|
11066
11758
  | [`selection`](#first-table) *required* | [`TableSelection`](#first-table)`<string>` | — | The selection – its own or the one handed in through `selection`. |
11759
+ | [`request`](#first-table) *required* | [`TableRequest`](#first-table)` \| null` | — | Server mode: the request `onRequest` last received, or is about to; `null` outside it. |
11067
11760
 
11068
11761
  From `FieldColumn` — the full table stands on [Column](#column).
11069
11762
 
@@ -11086,6 +11779,31 @@ From `SearchProps` — the full table stands on [Search](#search).
11086
11779
  |---|---|---|---|
11087
11780
  | [`placeholder`](#search) | `string` | the wording's "Search …" | The placeholder in the field. |
11088
11781
 
11782
+ From `AggregateOptions` — the full table stands on [Aggregate](#aggregate).
11783
+
11784
+ | Prop | Type | Default | Description |
11785
+ |---|---|---|---|
11786
+ | [`aggregate`](#aggregate) | [`AggregateFor`](#aggregate)`<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. |
11787
+
11788
+ From `RowActionsProps` — the full table stands on [RowActions](#rowactions).
11789
+
11790
+ | Prop | Type | Default | Description |
11791
+ |---|---|---|---|
11792
+ | [`children`](#rowactions) *required* | `ReactNode` | — | The row's `Action`s. |
11793
+
11794
+ From `ActionProps` — the full table stands on [RowActions](#rowactions).
11795
+
11796
+ | Prop | Type | Default | Description |
11797
+ |---|---|---|---|
11798
+ | [`children`](#rowactions) *required* | `string` | — | The label – text, because it is read out together with the row's name. |
11799
+ | [`bulk`](#rowactions) | `false \| true` | — | Acts on a list: at the row on a list made from it, in the table toolbar on the selection within the filtered set. |
11800
+
11801
+ ###### Events
11802
+
11803
+ | Prop | Type | Default | Description |
11804
+ |---|---|---|---|
11805
+ | [`onSelect`](#rowactions) | `(row: Z) => void` | — | Gets the row the action was triggered on. |
11806
+
11089
11807
  From `ToolbarProps` — the full table stands on [Toolbar](#toolbar).
11090
11808
 
11091
11809
  | Prop | Type | Default | Description |
@@ -11094,12 +11812,13 @@ From `ToolbarProps` — the full table stands on [Toolbar](#toolbar).
11094
11812
 
11095
11813
  #### Known limits
11096
11814
 
11097
- - The table sorts, filters and pages nothing itself, and it shows no groups and no footer: they would be made of one page.
11098
- - “Select all” and the export act on the page the table holds, and the export button says so.
11815
+ - The table sorts, filters and pages nothing itself, and it shows no groups: they would be made of one page. Groups from the server are the next piece, with a spec of their own.
11816
+ - The footer shows only `totals` the application hands in.
11817
+ - Without `exportRows` the export acts on the page the table holds, and the export button says so.
11099
11818
  - A list filter offers what `filterOptions` names; the table cannot count values it does not hold.
11100
11819
  - No loading more rows while scrolling: paging and virtualisation do not combine.
11101
11820
 
11102
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.43.0/docs/adr/0032-what-umriss-is-not.md).
11821
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
11103
11822
 
11104
11823
  ## Editing
11105
11824
 
@@ -11311,7 +12030,7 @@ From `ActionProps` — the full table stands on [RowActions](#rowactions).
11311
12030
 
11312
12031
  | Prop | Type | Default | Description |
11313
12032
  |---|---|---|---|
11314
- | [`onSelect`](#rowactions) *required* | `((row: Z) => void) \| ((rows: readonly Z[]) => void)` | — | Gets the row the action was triggered on. With `bulk` a list: at the row one made from it, in the table toolbar the selection. |
12033
+ | [`onSelect`](#rowactions) | `(row: Z) => void` | — | Gets the row the action was triggered on. |
11315
12034
 
11316
12035
  ### Edits
11317
12036
 
@@ -11686,9 +12405,9 @@ From `ToolbarProps` — the full table stands on [Toolbar](#toolbar).
11686
12405
 
11687
12406
  #### Known limits
11688
12407
 
11689
- - No cell range selection and no undo ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.43.0/docs/adr/0032-what-umriss-is-not.md)).
12408
+ - No cell range selection and no undo ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.44.0/docs/adr/0032-what-umriss-is-not.md)).
11690
12409
 
11691
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.43.0/docs/adr/0032-what-umriss-is-not.md).
12410
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
11692
12411
 
11693
12412
  ## Limits and alarms
11694
12413
 
@@ -12029,7 +12748,7 @@ type Severity = "warning" | "alarm";
12029
12748
  - No list filter: four verdicts are sorted, not filtered.
12030
12749
  - 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)).
12031
12750
 
12032
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.43.0/docs/adr/0032-what-umriss-is-not.md).
12751
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
12033
12752
 
12034
12753
  ## API index
12035
12754
 
@@ -12087,6 +12806,9 @@ compiler.
12087
12806
  as `of` to a part that stands outside the table.
12088
12807
 
12089
12808
  ```ts
12809
+ function useTable<Z>(rows: readonly Z[], options: Extract<TableOptions<Z>, {
12810
+ server: true;
12811
+ }>): Table<Z, true>;
12090
12812
  function useTable<Z>(rows: readonly Z[], options: TableOptions<Z>): Table<Z>;
12091
12813
  ```
12092
12814
 
@@ -12141,6 +12863,19 @@ function rowFilter<Z, B>(definition: RowFilter<Z, B>): RowFilter<Z, B>;
12141
12863
 
12142
12864
  Used on [Filter](#filter) and [Toolbar controls](#toolbar-controls).
12143
12865
 
12866
+ #### Constants
12867
+
12868
+ ##### `csv`
12869
+
12870
+ The CSV: the language's conventions; a column of days as its local day,
12871
+ other points in time as ISO text.
12872
+
12873
+ ```ts
12874
+ const csv: ExportFormat;
12875
+ ```
12876
+
12877
+ Used on [Scenarios](#scenarios), [Provider](#provider), [Sorting](#sorting), [Search](#search), [Grouping](#grouping-1), [Toolbar](#toolbar) and [Export](#export).
12878
+
12144
12879
  #### Types
12145
12880
 
12146
12881
  ##### `Absent`
@@ -12204,6 +12939,20 @@ type AggregateKind = "sum" | "avg" | "min" | "max" | "range" | "count" | "distin
12204
12939
 
12205
12940
  Its table stands on [Aggregate](#aggregate).
12206
12941
 
12942
+ ##### `AllMatching`
12943
+
12944
+ What a server-mode bulk action receives, in the toolbar, while all that
12945
+ match are selected: the request they match and the keys unticked since.
12946
+ `Array.isArray` tells it from rows - the rows are typed as a mutable array
12947
+ so that it narrows both ways.
12948
+
12949
+ | Prop | Type | Default | Description |
12950
+ |---|---|---|---|
12951
+ | `request` *required* | `TableRequest` | — | |
12952
+ | `except` *required* | `readonly string[]` | — | <br>Shown in: [Select all that match (Server mode)](#server-mode) |
12953
+
12954
+ Used on [Server mode](#server-mode).
12955
+
12207
12956
  ##### `CellEdit<Z>`
12208
12957
 
12209
12958
  An edit the user committed - reported, not applied.
@@ -12388,10 +13137,52 @@ The props a column carries for editing in grid mode (`<Table grid>`).
12388
13137
  | `editOptions` | `readonly ``Present``<W>[]` | the values that occur | What `edit="select"` offers.<br>Shown in: [Share a column between tables (Presets)](#presets), [Check an edit before it is reported (Edits)](#edits), [Save a row on purpose (Edits)](#edits) and 1 more |
12389
13138
  | `validate` | `(value: W \| 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.<br>Shown in: [Share a column between tables (Presets)](#presets), [Combine grid mode with groups, pinning and many rows (Grid mode)](#grid-mode), [Check an edit before it is reported (Edits)](#edits) and 3 more |
12390
13139
 
13140
+ ##### `ExportCell`
13141
+
13142
+ What a spreadsheet cell holds: numbers, booleans and points in time stay
13143
+ what they are, an absent value is `undefined`.
13144
+
13145
+ ```ts
13146
+ type ExportCell = string | number | boolean | Date | undefined;
13147
+ ```
13148
+
13149
+ ##### `ExportContext`
13150
+
13151
+ What the language in use hands a format.
13152
+
13153
+ | Prop | Type | Default | Description |
13154
+ |---|---|---|---|
13155
+ | `formats` *required* | `Formats` | — | |
13156
+ | `wording` *required* | `Wording` | — | |
13157
+
13158
+ ##### `ExportFormat<R = string>`
13159
+
13160
+ A way to write the export: the file's extension and MIME type, and the
13161
+ function that turns the sheet into `R` - text or bytes.
13162
+
13163
+ | Prop | Type | Default | Description |
13164
+ |---|---|---|---|
13165
+ | `extension` *required* | `string` | — | <br>Shown in: [Choose the format (Export)](#export) |
13166
+ | `mime` *required* | `string` | — | <br>Shown in: [Choose the format (Export)](#export) |
13167
+ | `write` *required* | `(sheet: ``ExportSheet``, context: ``ExportContext``) => R` | — | <br>Shown in: [Choose the format (Export)](#export) |
13168
+
13169
+ Used on [Export](#export).
13170
+
12391
13171
  ##### `ExportProps`
12392
13172
 
12393
13173
  Its table stands on [Export](#export).
12394
13174
 
13175
+ ##### `ExportSheet`
13176
+
13177
+ What a format writes: the header labels, the widths the table holds, whether
13178
+ a column's own `exportValue` made its values (`own`: written as they come),
13179
+ and the rows as typed cells. A tree's level is its first column, a number.
13180
+
13181
+ | Prop | Type | Default | Description |
13182
+ |---|---|---|---|
13183
+ | `columns` *required* | `readonly { label: string; width?: number; own?: true }[]` | — | <br>Shown in: [Choose the format (Export)](#export) |
13184
+ | `rows` *required* | `readonly (readonly ``ExportCell``[])[]` | — | <br>Shown in: [Choose the format (Export)](#export) |
13185
+
12395
13186
  ##### `Field<Z>`
12396
13187
 
12397
13188
  The field names of a row.
@@ -12716,19 +13507,19 @@ only what the first leaves open.
12716
13507
  | `column` *required* | `K` | — | <br>Shown in: [Sort, arrange and export from controls of your own (First table)](#first-table), [A label wider than its column (Width and pinning)](#width-and-pinning), [Sort by several columns (Sorting)](#sorting) and 10 more |
12717
13508
  | `direction` *required* | `SortDirection`<br>`"asc" \| "desc"` | — | <br>Shown in: [Sort, arrange and export from controls of your own (First table)](#first-table), [A label wider than its column (Width and pinning)](#width-and-pinning), [Sort by several columns (Sorting)](#sorting) and 10 more |
12718
13509
 
12719
- ##### `Table<Z>`
13510
+ ##### `Table<Z, S extends boolean = false>`
12720
13511
 
12721
13512
  What `useTable` returns: the table's state, and its parts typed at the
12722
13513
  row. Pass it as `of` to a part that stands outside the table.
12723
13514
 
12724
13515
  | Prop | Type | Default | Description |
12725
13516
  |---|---|---|---|
12726
- | `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 123 more |
12727
- | `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 123 more |
13517
+ | `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 128 more |
13518
+ | `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 128 more |
12728
13519
  | `VerdictColumn` *required* | `VerdictColumnComponent``<Z>` | — | <br>Shown in: [Pin columns to both sides (Width and pinning)](#width-and-pinning), [Read a day's deliveries by depot (Grouping)](#grouping-1), [Carry the worst verdict up (Aggregate)](#aggregate) and 5 more |
12729
13520
  | `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 |
12730
- | `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 7 more |
12731
- | `Action` *required* | `(props: `[`ActionProps`](#rowactions)`<Z>) => 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 7 more |
13521
+ | `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 |
13522
+ | `Action` *required* | `(props: `[`ActionProps`](#rowactions)`<Z, S>) => 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 |
12732
13523
  | `GroupBy` *required* | `GroupByComponent``<Z>` | — | <br>Shown in: [Group by a value that is no column (Grouping)](#grouping-1), [Group twenty thousand rows (Grouping)](#grouping-1), [Read a day's deliveries by depot (Grouping)](#grouping-1) |
12733
13524
  | `scrollToRow` *required* | `(key: string) => boolean` | — | Brings the row with this key into view and returns `true`: in a paged table its page, in a scroll area, virtual or not, the scroll to it. `false`, with nothing changed, for a key the table does not have, a row a search, a condition or the `preFilter` hides, a row inside a folded group or branch, or a table not mounted; nothing is unfolded and no filter cleared. In server mode it reaches the rows of the page it holds.<br>Shown in: [Bring a row into view from outside (Virtualisation)](#virtualisation) |
12734
13525
  | `focusCell` *required* | `(key: string, column: string) => boolean` | — | In grid mode, brings the row into view as `scrollToRow` does, makes the cell of that row and column the Active cell and moves the focus to it. Outside grid mode, for a column the table does not show, and wherever `scrollToRow` returns `false`, it returns `false` and changes nothing.<br>Shown in: [Bring a row into view from outside (Virtualisation)](#virtualisation) |
@@ -12775,6 +13566,7 @@ row. Pass it as `of` to a part that stands outside the table.
12775
13566
  | `virtual` *required* | `boolean` | — | Whether it virtualises. From `TableSnapshot`.<br>Shown in: [Search and page from a header of your own (First table)](#first-table) |
12776
13567
  | `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) |
12777
13568
  | `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) |
13569
+ | `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) |
12778
13570
 
12779
13571
  Used on [Scenarios](#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-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).
12780
13572
 
@@ -12847,6 +13639,9 @@ selection.
12847
13639
  | `clear` *required* | `() => void` | — | <br>Shown in: [Hold the selection yourself (Selection)](#selection), [Work through the alerts (Scenarios)](#work-through-the-alerts), [Find a late shipment (Scenarios)](#find-a-late-shipment) |
12848
13640
  | `allSelected` *required* | `boolean` | — | true when every key passed in is selected. |
12849
13641
  | `someSelected` *required* | `boolean` | — | true when some - but not all - are selected. |
13642
+ | `allMatching` *required* | `boolean` | — | Every row that matches is selected, those on no page held included. While it stands `selected` is empty and `count` is 0, and `isSelected(id)` is `!except.has(id)`. Store it with the keys when the selection is held outside. |
13643
+ | `except` *required* | `ReadonlySet<T>` | — | While `allMatching`: the keys unticked since. |
13644
+ | `selectMatching` *required* | `() => void` | — | Selects all that match; the keys selected before are dropped. |
12850
13645
  | `count` *required* | `number` | — | <br>Shown in: [Select rows (Selection)](#selection), [Hold the selection yourself (Selection)](#selection), [Copy the selection (Export)](#export) and 2 more |
12851
13646
 
12852
13647
  ##### `TableSnapshot`
@@ -12862,11 +13657,11 @@ the application.
12862
13657
 
12863
13658
  | Prop | Type | Default | Description |
12864
13659
  |---|---|---|---|
12865
- | `search` | `string` | — | <br>Shown in: [Show loading, empty, failed and no match (Row appearance)](#row-appearance), [Hand the table one page (Server mode)](#server-mode), [Sort and search on the server (Server mode)](#server-mode) and 3 more |
12866
- | `conditions` | `Readonly<Record<string, unknown>>` | — | The conditions of the column filters, per column. A condition for a column that does not exist, or whose filter is of another kind, falls out.<br>Shown in: [Ask a question over several fields (Filter)](#filter), [A dispatcher's bar (Toolbar controls)](#toolbar-controls), [Hand the table one page (Server mode)](#server-mode) and 4 more |
12867
- | `sort` | `readonly ``SortLevel``<K>[]` | — | <br>Shown in: [Keep and restore a view (View)](#view), [Hand the table one page (Server mode)](#server-mode), [Sort and search on the server (Server mode)](#server-mode) and 3 more |
12868
- | `page` | `number` | — | <br>Shown in: [Hand the table one page (Server mode)](#server-mode), [Sort and search on the server (Server mode)](#server-mode), [Name the values a list filter offers (Server mode)](#server-mode) and 2 more |
12869
- | `pageSize` | `number` | — | <br>Shown in: [Hand the table one page (Server mode)](#server-mode), [Sort and search on the server (Server mode)](#server-mode), [Name the values a list filter offers (Server mode)](#server-mode) and 2 more |
13660
+ | `search` | `string` | — | <br>Shown in: [Show loading, empty, failed and no match (Row appearance)](#row-appearance), [Hand the table one page (Server mode)](#server-mode), [Sort and search on the server (Server mode)](#server-mode) and 6 more |
13661
+ | `conditions` | `Readonly<Record<string, unknown>>` | — | The conditions of the column filters, per column. A condition for a column that does not exist, or whose filter is of another kind, falls out.<br>Shown in: [Ask a question over several fields (Filter)](#filter), [A dispatcher's bar (Toolbar controls)](#toolbar-controls), [Hand the table one page (Server mode)](#server-mode) and 7 more |
13662
+ | `sort` | `readonly ``SortLevel``<K>[]` | — | <br>Shown in: [Keep and restore a view (View)](#view), [Hand the table one page (Server mode)](#server-mode), [Sort and search on the server (Server mode)](#server-mode) and 6 more |
13663
+ | `page` | `number` | — | <br>Shown in: [Hand the table one page (Server mode)](#server-mode), [Sort and search on the server (Server mode)](#server-mode), [Name the values a list filter offers (Server mode)](#server-mode) and 5 more |
13664
+ | `pageSize` | `number` | — | <br>Shown in: [Hand the table one page (Server mode)](#server-mode), [Sort and search on the server (Server mode)](#server-mode), [Name the values a list filter offers (Server mode)](#server-mode) and 5 more |
12870
13665
  | `hidden` | `readonly K[]` | — | <br>Shown in: [Keep and restore a view (View)](#view) |
12871
13666
  | `order` | `readonly K[]` | — | |
12872
13667
  | `widths` | `Readonly<Record<string, number>>` | — | Column widths the user has dragged, in pixels. |
@@ -12922,8 +13717,361 @@ interface VerdictColumnComponent<Z> {
12922
13717
  }
12923
13718
  ```
12924
13719
 
13720
+ #### @umriss-ui/table/xlsx
13721
+
13722
+ ##### `xlsx`
13723
+
13724
+ The Excel workbook format for `Export`: one sheet, a header line, numbers, dates, booleans and text as what they are, and the table's column widths. `onExport` gets the bytes.
13725
+
13726
+ ```ts
13727
+ const xlsx: ExportFormat<Uint8Array>;
13728
+ ```
13729
+
13730
+ Used on [Export](#export).
13731
+
12925
13732
  #### Types on this page
12926
13733
 
13734
+ ##### `Formats`
13735
+
13736
+ From `@umriss-ui/core`.
13737
+
13738
+ Everything the library knows about formatting.
13739
+
13740
+ | Prop | Type | Default | Description |
13741
+ |---|---|---|---|
13742
+ | `date` *required* | `(d: Date) => string` | — | Date as displayed: 17/03/2026<br>Shown in: [Set wording and formats once (Provider)](#provider) |
13743
+ | `dateShort` *required* | `(d: Date) => string` | — | Short form without the year, in the range footer: 17/03 |
13744
+ | `month` *required* | `(d: Date) => string` | — | The calendar's month header: March 2026 |
13745
+ | `dateLong` *required* | `(d: Date) => string` | — | Accessible name of a calendar cell: Tuesday, 17 March 2026 |
13746
+ | `time` *required* | `(d: Date, withSeconds: boolean) => string` | — | Time of day, optionally with seconds: 09:05 or 09:05:03<br>Shown in: [Work through the alerts (Scenarios)](#work-through-the-alerts), [Find a late shipment (Scenarios)](#find-a-late-shipment) |
13747
+ | `dateTime` *required* | `(d: Date, withSeconds: boolean) => string` | — | Date and time together: 17/03/2026, 09:05 |
13748
+ | `offset` *required* | `(d: Date) => string` | — | Short form of the UTC offset: GMT+2 |
13749
+ | `number` *required* | `(n: number, decimals?: number) => string` | — | A number in the set's notation. Without a digit count the value stands to the tenth decimal place, and a non-zero value that would read 0 there is written in scientific notation; with one it is padded and rounded to exactly that many places. |
13750
+ | `numberWith` *required* | `(n: number, options: Intl.NumberFormatOptions) => string` | — | A number written with Intl's own options in the set's locale: a currency, a year without grouping, scientific notation. Pure Intl options - the `decimals` shorthand is expanded by `writeNumber` before it. Like the others it writes no negative zero unless the options set `signDisplay`. |
13751
+ | `count` *required* | `(n: number) => string` | — | A count. Kept apart from `number` because it makes a different promise: a count is whole, and Intl's own rounding (at most three decimal places) is right for it and wrong for a measurement.<br>Shown in: [Scroll twenty thousand rows (Virtualisation)](#virtualisation) |
13752
+ | `percent` *required* | `(share: number) => string` | — | A share from 0 to 1 as whole per cent: 74 % |
13753
+ | `compareText` *required* | `(a: string, b: string) => number` | — | The ordering of two texts by the set's collation. |
13754
+ | `relative` *required* | `(ms: number) => string` | — | An elapsed duration as a phrase: "3 minutes ago". The amount comes in milliseconds, counted back from now. |
13755
+
13756
+ ##### `Wording`
13757
+
13758
+ From `@umriss-ui/core`.
13759
+
13760
+ Everything the library puts out as text.
13761
+
13762
+ | Prop | Type | Default | Description |
13763
+ |---|---|---|---|
13764
+ | `clearInput` *required* | `string` | — | The cross in the text field. |
13765
+ | `clearSelection` *required* | `string` | — | The cross in the select and in the combobox. |
13766
+ | `decreaseValue` *required* | `string` | — | Stepper buttons of the number field. |
13767
+ | `increaseValue` *required* | `string` | — | |
13768
+ | `comboboxPlaceholder` *required* | `string` | — | |
13769
+ | `noMatches` *required* | `string` | — | Empty state of both lists. |
13770
+ | `multiSelectPlaceholder` *required* | `string` | — | |
13771
+ | `multiSelectSearchPlaceholder` *required* | `string` | — | |
13772
+ | `searchOptions` *required* | `string` | — | |
13773
+ | `options` *required* | `string` | — | Group name of the option list. |
13774
+ | `optionScope` *required* | `string` | — | Group name of the scope switch. |
13775
+ | `optionScopeAll` *required* | `string` | — | |
13776
+ | `optionScopeSelected` *required* | `(count: number) => string` | — | The second scope, with the count in the text. |
13777
+ | `selectAll` *required* | `string` | — | |
13778
+ | `selectNone` *required* | `string` | — | |
13779
+ | `invertSelection` *required* | `string` | — | |
13780
+ | `nothingSelected` *required* | `string` | — | |
13781
+ | `removeSelectedValue` *required* | `(beschriftung: string) => string` | — | The cross on a selected value in the trigger. |
13782
+ | `manageMoreSelected` *required* | `(count: number) => string` | — | The "+N" counter in the trigger. |
13783
+ | `multiSelectSummary` *required* | `(gewaehlt: number, total: number) => string` | — | The summary in the panel: "3 / 12". The sentence structure belongs to the language, even where it is only a slash here. |
13784
+ | `optionCount` *required* | `(count: number) => string` | — | How many options stand, when a list opens or its filter changes; never zero - an empty list says its own empty text. Named, like the three below, after the moment it is spoken in: an announcement labels no element. |
13785
+ | `optionActive` *required* | `( label: string, state: { selected?: boolean; disabled?: boolean; group?: string }, ) => string` | — | The option the keys moved onto, with what VoiceOver leaves out. |
13786
+ | `optionAdded` *required* | `(label: string) => string` | — | A value the multi-select took or gave away where no checkbox had the focus to say it - Enter in the search, a chip, Backspace. |
13787
+ | `optionRemoved` *required* | `(label: string) => string` | — | |
13788
+ | `palettePlaceholder` *required* | `string` | — | What stands in the empty field. |
13789
+ | `paletteField` *required* | `string` | — | Accessible name of the field. Deliberately kept apart from the placeholder - whoever labels the field differently does not thereby rename the window. |
13790
+ | `palettePanel` *required* | `string` | — | Accessible name of the window. |
13791
+ | `paletteList` *required* | `string` | — | Accessible name of the list of finds. |
13792
+ | `paletteNoFinds` *required* | `string` | — | The one line when the query finds nothing. |
13793
+ | `paletteFindCount` *required* | `(count: number) => string` | — | What the screen reader hears when the number of finds changes. |
13794
+ | `paletteMoreFinds` *required* | `(count: number) => string` | — | The last line when more finds exist than `maxFinds` lets stand. |
13795
+ | `paletteHintMove` *required* | `string` | — | The three key hints in the footer, each the text beside the key. |
13796
+ | `paletteHintChoose` *required* | `string` | — | |
13797
+ | `paletteHintClose` *required* | `string` | — | |
13798
+ | `paletteKeyEsc` *required* | `string` | — | The legend on the Escape key. The arrows and the return key are glyphs and therefore do not stand here; "Esc" is a word and is called something else elsewhere. |
13799
+ | `datePlaceholder` *required* | `string` | — | |
13800
+ | `datePanel` *required* | `string` | — | Accessible name of the panel. Deliberately kept apart from the placeholder: whoever labels the field differently does not thereby rename the dialog. |
13801
+ | `dateClear` *required* | `string` | — | |
13802
+ | `dateTimePlaceholder` *required* | `string` | — | |
13803
+ | `dateTimePanel` *required* | `string` | — | |
13804
+ | `dateTimeClear` *required* | `string` | — | |
13805
+ | `dateRangePlaceholder` *required* | `string` | — | |
13806
+ | `dateRangePanel` *required* | `string` | — | |
13807
+ | `dateRangeClear` *required* | `string` | — | |
13808
+ | `dateTimeRangePanel` *required* | `string` | — | Accessible name of the panel in the range with time of day. |
13809
+ | `dateTimeRangeClear` *required* | `string` | — | The clearing x of the range with time - kept apart from the range without, so that an application can call the two differently. |
13810
+ | `previousMonth` *required* | `string` | — | |
13811
+ | `nextMonth` *required* | `string` | — | |
13812
+ | `quickSelect` *required* | `string` | — | Group name of the preset column. |
13813
+ | `today` *required* | `string` | — | |
13814
+ | `now` *required* | `string` | — | |
13815
+ | `clear` *required* | `string` | — | |
13816
+ | `apply` *required* | `string` | — | |
13817
+ | `allDay` *required* | `string` | — | |
13818
+ | `timeOfDay` *required* | `string` | — | |
13819
+ | `hour` *required* | `string` | — | |
13820
+ | `minute` *required* | `string` | — | |
13821
+ | `second` *required* | `string` | — | |
13822
+ | `sideFrom` *required* | `string` | — | Header of the two time columns in the range with time of day. |
13823
+ | `sideTo` *required* | `string` | — | |
13824
+ | `startHour` *required* | `string` | — | Accessible name of the time fields, per side. |
13825
+ | `startMinute` *required* | `string` | — | |
13826
+ | `startSecond` *required* | `string` | — | |
13827
+ | `endHour` *required* | `string` | — | |
13828
+ | `endMinute` *required* | `string` | — | |
13829
+ | `endSecond` *required* | `string` | — | |
13830
+ | `timeFieldIncrease` *required* | `(feld: string) => string` | — | Stepper buttons of a time field; the label comes from above. |
13831
+ | `timeFieldDecrease` *required* | `(feld: string) => string` | — | |
13832
+ | `chooseStartDate` *required* | `string` | — | Footer of the range panels. |
13833
+ | `chooseEndDate` *required* | `string` | — | |
13834
+ | `days` *required* | `(count: number) => string` | — | "3 days" or "1 day" - the plural belongs to the language. |
13835
+ | `daysSelected` *required* | `(count: number) => string` | — | "3 days selected" |
13836
+ | `rangePreview` *required* | `(from: string, to: string, count: number) => string` | — | "17.03. – 19.03. · 3 days" while dragging; the dates come from the formats. |
13837
+ | `daysAllDay` *required* | `(count: number) => string` | — | "3 days (all day)" |
13838
+ | `duration` *required* | `(teile: readonly string[]) => string` | — | "Duration: 1 day 2 hrs 30 min" |
13839
+ | `hoursShort` *required* | `(count: number) => string` | — | |
13840
+ | `minutesShort` *required* | `(count: number) => string` | — | |
13841
+ | `timeMissingHint` *required* | `(timeOfDay: string) => string` | — | Daylight-saving change: the hour that does not exist. |
13842
+ | `timeMissingHintSide` *required* | `(side: string, timeOfDay: string) => string` | — | The same, with the side put in front ("From"/"To"). |
13843
+ | `timeAmbiguousHint` *required* | `string` | — | Daylight-saving change: the hour that occurs twice. |
13844
+ | `timeAmbiguousHintSide` *required* | `(side: string) => string` | — | |
13845
+ | `timeEarlier` *required* | `(versatz: string) => string` | — | |
13846
+ | `timeLater` *required* | `(versatz: string) => string` | — | |
13847
+ | `weekdays` *required* | `readonly string[]` | — | The calendar's weekday headers, starting at Monday. |
13848
+ | `presets` *required* | `{ today: string; yesterday: string; last7Days: string; last30Days: string; thisMonth: string; previousMonth: string; thisQuarter: string; thisYear: string; }` | — | The quick-select ranges, in the order of PRESET_LABELS. |
13849
+ | `pagination` *required* | `string` | — | |
13850
+ | `rows` *required* | `string` | — | |
13851
+ | `rowsPerPage` *required* | `string` | — | |
13852
+ | `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". |
13853
+ | `previousPage` *required* | `string` | — | |
13854
+ | `nextPage` *required* | `string` | — | |
13855
+ | `filterReset` *required* | `string` | — | The two buttons in the column filter's footer. |
13856
+ | `filterDone` *required* | `string` | — | |
13857
+ | `columns` *required* | `string` | — | The column menu's button.<br>Shown in: [Set wording and formats once (Provider)](#provider) |
13858
+ | `arrangeColumns` *required* | `string` | — | Accessible name of the list in the column menu. |
13859
+ | `columnForward` *required* | `(column: string) => string` | — | The two buttons that move a column in the column menu. |
13860
+ | `columnBackward` *required* | `(column: string) => string` | — | |
13861
+ | `pinColumnToStart` *required* | `(column: string) => string` | — | The column menu's pin keys: to a side, and back when it is pinned there. |
13862
+ | `pinColumnToEnd` *required* | `(column: string) => string` | — | |
13863
+ | `unpinColumn` *required* | `(column: string) => string` | — | |
13864
+ | `columnForwardHint` *required* | `string` | — | The tooltips over those four keys: short, without the column, which stands in the same line. The keys' names above keep it for a screen reader. |
13865
+ | `columnBackwardHint` *required* | `string` | — | |
13866
+ | `pinToStartHint` *required* | `string` | — | |
13867
+ | `pinToEndHint` *required* | `string` | — | |
13868
+ | `unpinHint` *required* | `string` | — | |
13869
+ | `exportLabel` *required* | `string` | — | The export button.<br>Shown in: [Set wording and formats once (Provider)](#provider) |
13870
+ | `exportPageLabel` *required* | `string` | — | The export button of a table in server mode, which holds and writes one page. |
13871
+ | `exporting` *required* | `string` | — | The status while the application prepares an export of every match. |
13872
+ | `exportFailed` *required* | `string` | — | The alert beside the export button when preparing the export failed without a message. |
13873
+ | `exportFileName` *required* | `string` | — | The export's file name, where the application names none. |
13874
+ | `exportSheetName` *required* | `string` | — | The name of the sheet an XLSX export holds. |
13875
+ | `tableSearchPlaceholder` *required* | `string` | — | Placeholder and accessible name of the search field.<br>Shown in: [Set wording and formats once (Provider)](#provider) |
13876
+ | `tableSearchLabel` *required* | `string` | — | |
13877
+ | `filterColumn` *required* | `(column: string) => string` | — | The filter button of a column: "Filter Region". |
13878
+ | `filterHint` *required* | `string` | — | The tooltip over that button. |
13879
+ | `selectRow` *required* | `(row: string) => string` | — | The selection of one row, named after its row header. |
13880
+ | `selectAllRows` *required* | `string` | — | The selection of every row in the filtered set. |
13881
+ | `selectAllOnPage` *required* | `string` | — | The same checkbox in server mode, where the table holds one page of a server's. |
13882
+ | `expandRowNamed` *required* | `(row: string) => string` | — | The expand button, named after the row header. |
13883
+ | `collapseRowNamed` *required* | `(row: string) => string` | — | |
13884
+ | `rowActions` *required* | `string` | — | Header of the actions column - for the screen reader, not visible. |
13885
+ | `rowAction` *required* | `(aktion: string, row: string) => string` | — | One action on a row: "Open: A-2041". |
13886
+ | `rowActionsMenu` *required* | `(row: string) => string` | — | The menu holding a row's actions. |
13887
+ | `editCell` *required* | `(column: string, row: string) => string` | — | The editor of a cell in a table's grid mode, named after its column and its row: "Edit Budget: Marketing". |
13888
+ | `newRow` *required* | `string` | — | The button above a grid that opens an empty row to fill in, and the name of that row while it has none ([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)). |
13889
+ | `saveRow` *required* | `string` | — | A row draft's buttons, named with the row through `rowAction`. |
13890
+ | `discardRow` *required* | `string` | — | |
13891
+ | `deleteRow` *required* | `string` | — | A row's delete button, and its question once pressed: Delete? Delete / Keep. |
13892
+ | `deleteRowAsk` *required* | `string` | — | |
13893
+ | `keepRow` *required* | `string` | — | |
13894
+ | `saveOrDiscardFirst` *required* | `string` | — | Said where someone tries to leave a row draft unsaved. |
13895
+ | `cellAbsentValue` *required* | `string` | — | What the screen reader hears for an absent value. Visibly a muted dash stands there. |
13896
+ | `booleanYes` *required* | `string` | — | A boolean without a presentation of its own. |
13897
+ | `booleanNo` *required* | `string` | — | |
13898
+ | `footerSum` *required* | `string` | — | The kind of a footer number, read out before the number. |
13899
+ | `footerAverage` *required* | `string` | — | |
13900
+ | `footerMinimum` *required* | `string` | — | |
13901
+ | `footerMaximum` *required* | `string` | — | |
13902
+ | `footerRange` *required* | `string` | — | |
13903
+ | `footerCount` *required* | `string` | — | |
13904
+ | `footerDistinct` *required* | `string` | — | |
13905
+ | `footerAggregate` *required* | `string` | — | An aggregate the application computes itself. |
13906
+ | `grouping` *required* | `string` | — | The grouping section of the column menu, and the menu entry per column. |
13907
+ | `groupBy` *required* | `(label: string) => string` | — | |
13908
+ | `groupedBy` *required* | `string` | — | The grouping's tag in the table toolbar: "Grouped by" Region › Customer. |
13909
+ | `removeGrouping` *required* | `string` | — | |
13910
+ | `removeGroupingLevel` *required* | `(label: string) => string` | — | |
13911
+ | `foldAll` *required* | `string` | — | |
13912
+ | `unfoldAll` *required* | `string` | — | |
13913
+ | `groupNoValue` *required* | `string` | — | The group of rows without a value. |
13914
+ | `groupContinued` *required* | `string` | — | Beside a group repeated at the top of a page that begins inside it. |
13915
+ | `foldGroup` *required* | `(name: string, count: string) => string` | — | The fold of a group, with its value and its count. |
13916
+ | `unfoldGroup` *required* | `(name: string, count: string) => string` | — | |
13917
+ | `foldBranch` *required* | `(row: string) => string` | — | The fold of a branch in a table with tree rows, named after its row - not `expandRowNamed`, which names the row detail's expander on the same row. |
13918
+ | `unfoldBranch` *required* | `(row: string) => string` | — | |
13919
+ | `levelColumn` *required* | `string` | — | The first column of a tree's export. |
13920
+ | `pathRow` *required* | `string` | — | A row shown only because a descendant matches the search or a filter. |
13921
+ | `footerTopLevel` *required* | `string` | — | The footer of a tree: it sums the top level, since a parent holds its children. |
13922
+ | `footerOfMatches` *required* | `string` | — | The footer of a server-mode table: its sums come from the server and cover every match, not the page. Read out only. |
13923
+ | `selectGroup` *required* | `(name: string) => string` | — | The box that selects every row of a group. |
13924
+ | `calendarWeek` *required* | `(week: number, year: number) => string` | — | A group of the week key: "Week 42, 2026". |
13925
+ | `entries` *required* | `(count: number, formatted: string) => string` | — | "128 entries" in the pagination bar; the plural belongs to the language. |
13926
+ | `selectedCount` *required* | `(count: number, formatted: string) => string` | — | "3 selected" in the pagination bar and the table toolbar. |
13927
+ | `selectedOnPage` *required* | `(count: number, formatted: string) => string` | — | The first sentence of the offer in a server-mode table, once the page is ticked: "All 50 on this page are selected." |
13928
+ | `selectAllMatching` *required* | `(count: number, formatted: string) => string` | — | The button after it, for the rows the server holds: "Select all 12,400 that match". |
13929
+ | `allMatchingSelected` *required* | `(count: number, formatted: string) => string` | — | The line once they are selected: "All 12,400 that match are selected." |
13930
+ | `copiedRows` *required* | `(count: number, formatted: string) => string` | — | Said to a screen reader after Ctrl+C copied rows: "3 rows copied". |
13931
+ | `copiedCell` *required* | `string` | — | Said after Ctrl+C copied the active cell of a grid. |
13932
+ | `copyFailed` *required* | `string` | — | Said when the clipboard refused or is not there. |
13933
+ | `noEntries` *required* | `string` | — | Empty because there are no rows. |
13934
+ | `nothingMatchesFilters` *required* | `string` | — | Empty because search and filters leave nothing - something else. |
13935
+ | `treeSearchPlaceholder` *required* | `string` | — | |
13936
+ | `treeNoMatches` *required* | `string` | — | |
13937
+ | `conditions` *required* | `string` | — | Group name of the conditions in the table toolbar. |
13938
+ | `removeConditionNamed` *required* | `(label: string, value: string) => string` | — | The button that removes a condition: "Remove Region: EU, US". |
13939
+ | `editConditionNamed` *required* | `(label: string, value: string) => string` | — | The condition itself, which opens its filter: "Edit Region: EU, US". |
13940
+ | `moreValues` *required* | `(count: number, formatted: string) => string` | — | The remainder of a long list in a condition: "+1". |
13941
+ | `filterFrom` *required* | `string` | — | The two fields of the range filter. |
13942
+ | `filterTo` *required* | `string` | — | |
13943
+ | `rangeFromTo` *required* | `(from: string, to: string) => string` | — | The condition of a range filter: "100–500", "from 100", "to 500". |
13944
+ | `rangeFrom` *required* | `(from: string) => string` | — | |
13945
+ | `rangeTo` *required* | `(to: string) => string` | — | |
13946
+ | `rangeInvalid` *required* | `string` | — | When "From" lies behind "To". The condition stays the last valid one. |
13947
+ | `resetAll` *required* | `string` | — | Clears search and conditions - in the table toolbar and in the empty body. |
13948
+ | `tryAgain` *required* | `string` | — | The button under a server-mode table's error that sends the request once more. |
13949
+ | `filteredOfTotal` *required* | `(matches: string, total: string) => string` | — | "43 of 1.204" - the numbers come from the formats. |
13950
+ | `verdictOk` *required* | `string` | — | The four outcomes of an assessment, as a word beside the value. Colour alone carries no meaning - the word stands here for that reason. |
13951
+ | `verdictWarning` *required* | `string` | — | |
13952
+ | `verdictAlarm` *required* | `string` | — | |
13953
+ | `verdictUnknown` *required* | `string` | — | |
13954
+ | `statAbsentValue` *required* | `string` | — | What stands in the value field when there is no value. No dash, no zero: either could be a value. |
13955
+ | `target` *required* | `string` | — | |
13956
+ | `deviationAbove` *required* | `(betrag: string) => string` | — | "3,2 above target" or "1,5 below target" - the amount comes from the formats, which is where the comma is from. |
13957
+ | `deviationBelow` *required* | `(betrag: string) => string` | — | |
13958
+ | `deviationOnTarget` *required* | `string` | — | |
13959
+ | `freshnessFresh` *required* | `string` | — | The three freshness states. They are a DIFFERENT axis from the verdict: 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)). |
13960
+ | `freshnessStale` *required* | `string` | — | |
13961
+ | `freshnessDisconnected` *required* | `string` | — | |
13962
+ | `asOfAgo` *required* | `(duration: string) => string` | — | "As of: 3 minutes ago", where the duration comes from the formats. |
13963
+ | `close` *required* | `string` | — | |
13964
+ | `closeToast` *required* | `string` | — | |
13965
+ | `toastDeckCount` *required* | `(count: number) => string` | — | The count on the front toast of a closed deck; pressing it shows them all. |
13966
+ | `toastRegion` *required* | `string` | — | The name of the toasts' region, which Alt+T moves the focus into. |
13967
+ | `confirm` *required* | `string` | — | |
13968
+ | `cancel` *required* | `string` | — | |
13969
+ | `loading` *required* | `string` | — | |
13970
+ | `fillLevel` *required* | `string` | — | Generic name of a fill-level bar, where the caller names none. |
13971
+ | `progress` *required* | `string` | — | Generic name of a progress bar, where the caller names none. |
13972
+ | `breadcrumb` *required* | `string` | — | The accessible name of a breadcrumb's navigation landmark. |
13973
+ | `breadcrumbFolded` *required* | `string` | — | The key that opens a breadcrumb's folded middle levels as a menu. |
13974
+ | `splitter` *required* | `string` | — | The separator between a splitter's panes, where the caller names none - a caller who can should name the first pane instead (APG). |
13975
+ | `stepDone` *required* | `string` | — | A stepper's step that is behind it, said beside its label to a screen reader; the current step is `aria-current` and needs no word. |
13976
+ | `stepUpcoming` *required* | `string` | — | A step still ahead. |
13977
+ | `stepFailed` *required* | `string` | — | A step that failed - behind the current one or the current one itself. |
13978
+ | `chooseFile` *required* | `string` | — | The key of a file input that takes one file - and its name where no field names it. |
13979
+ | `chooseFiles` *required* | `string` | — | The same key where it takes several. |
13980
+ | `dropFile` *required* | `string` | — | The words beside the key that say the zone takes a drop. |
13981
+ | `dropFiles` *required* | `string` | — | |
13982
+ | `removeFile` *required* | `(name: string) => string` | — | The cross beside a chosen file. |
13983
+ | `fileNotAccepted` *required* | `(name: string) => string` | — | A dropped file the input's `accept` does not take. |
13984
+ | `show` *required* | `string` | — | |
13985
+ | `hide` *required* | `string` | — | |
13986
+ | `moreActions` *required* | `string` | — | |
13987
+ | `remove` *required* | `string` | — | The cross on a tag without text content. |
13988
+ | `removeTag` *required* | `(beschriftung: string) => string` | — | The cross on a tag with text content. |
13989
+ | `scheduleOverlap` *required* | `string` | — | The two findings, named on the ghost of a drag. |
13990
+ | `scheduleViolatedDependency` *required* | `string` | — | |
13991
+ | `scheduleGhostTimes` *required* | `(from: string, to: string) => string` | — | The new times on the ghost: "08:15–10:00" - the times come from the formats. |
13992
+ | `scheduleLeadIn` *required* | `string` | — | The parts of a subtask and a dependency, named in the tooltip. |
13993
+ | `scheduleLeadOut` *required* | `string` | — | |
13994
+ | `scheduleDependency` *required* | `string` | — | |
13995
+ | `scheduleRoute` *required* | `(from: string, to: string) => string` | — | "A-2041-1 → A-2041-2": the two subtasks a dependency joins. |
13996
+ | `scheduleOverlapWith` *required* | `(other: string) => string` | — | "Overlap with A-2043-2" - the other subtask on the lane. |
13997
+ | `scheduleViolatedBy` *required* | `(amount: string) => string` | — | "Violated dependency, 15 min short" - the amount from `minutesShort`. |
13998
+ | `scheduleLaneRefused` *required* | `string` | — | On the ghost of a drag over a lane the subtask may not go to. |
13999
+ | `scheduleBlockedTime` *required* | `string` | — | On the ghost of a drag held back from a lane's blocked time. |
14000
+ | `scheduleInBlockedTime` *required* | `(label: string \| undefined) => string` | — | "In blocked time (Leave)" - a subtask covering its lane's blocked time, with the blocked time's label where it has one. |
14001
+ | `scheduleMilestone` *required* | `(name: string) => string` | — | "Milestone: Release" - a milestone named by its label (or id), so that the tooltip and the spoken readout say what kind of thing it is. |
14002
+ | `scheduleFoldGroup` *required* | `string` | — | The chevron of a lane group's header, which folds it into one row and unfolds it again. The group's own label stands beside the button, so the name is what the ACTION is, not which group it acts on. |
14003
+ | `scheduleUnfoldGroup` *required* | `string` | — | |
14004
+ | `scheduleLaneCount` *required* | `(count: number) => string` | — | How many lanes a group holds, beside its name in the header. |
14005
+ | `scheduleRoleDescription` *required* | `string` | — | What a screen reader calls the plot that takes the keys (`aria-roledescription`, schedule-a11y S1). |
14006
+ | `scheduleSummary` *required* | `(summary: { lanes: number; subtasks: number; from: string; to: string; overlaps: number; violated: number; /** Subtasks in blocked time; said only where there are any. */ blocked: number; /** Milestones of the plan; said only where there are any. */ milestones: number; }) => string` | — | The plot's description (S6): the lanes, the subtasks in view, the visible span with both ends formatted, and the findings of the plan by kind. |
14007
+ | `scheduleKeyHelp` *required* | `string` | — | The keys that walk the plot, select and edit - read after the summary. |
14008
+ | `dashboardEdit` *required* | `string` | — | The editing bar's buttons and the label that says the mode is on. |
14009
+ | `dashboardEditing` *required* | `string` | — | |
14010
+ | `dashboardCancel` *required* | `string` | — | |
14011
+ | `dashboardDone` *required* | `string` | — | |
14012
+ | `dashboardUndo` *required* | `string` | — | |
14013
+ | `dashboardRedo` *required* | `string` | — | |
14014
+ | `dashboardReset` *required* | `string` | — | |
14015
+ | `dashboardMenu` *required* | `(title: string) => string` | — | The name of a widget's menu button: the widget's title is the thing. |
14016
+ | `dashboardPlace` *required* | `(place: number, of: number) => string` | — | At the top of the menu, and in the name of a head the arrow keys move. |
14017
+ | `dashboardHead` *required* | `(title: string, place: number, of: number) => string` | — | |
14018
+ | `dashboardMoveStart` *required* | `string` | — | |
14019
+ | `dashboardMoveEarlier` *required* | `string` | — | |
14020
+ | `dashboardMoveLater` *required* | `string` | — | |
14021
+ | `dashboardMoveEnd` *required* | `string` | — | |
14022
+ | `dashboardRemove` *required* | `string` | — | |
14023
+ | `dashboardSizes` *required* | `{ small: string; medium: string; wide: string; tall: string; large: string; full: string }` | — | The closed set of size names, worded once for every widget type. |
14024
+ | `dashboardSizeEntry` *required* | `(size: string, share: string, current: boolean) => string` | — | A size's entry in a widget's menu: its name and its share of the width (`share` is "¼" or "5/12", empty for the whole width); `current` marks the size the widget stands at. |
14025
+ | `dashboardHeadingLabel` *required* | `string` | — | The built-in heading type: its name, its sentence in the catalogue, the text a new heading starts with and the label of its text field. |
14026
+ | `dashboardHeadingSentence` *required* | `string` | — | |
14027
+ | `dashboardHeadingText` *required* | `string` | — | |
14028
+ | `dashboardHeadingField` *required* | `string` | — | |
14029
+ | `dashboardLeft` *required* | `string` | — | Said when "Done" leaves the mode and nothing was changed. |
14030
+ | `dashboardMoved` *required* | `(title: string, from: number, to: number, of: number) => string` | — | What is spoken after a change. |
14031
+ | `dashboardDragCancelled` *required* | `(title: string) => string` | — | |
14032
+ | `dashboardResized` *required* | `(title: string, size: string) => string` | — | |
14033
+ | `dashboardRemoved` *required* | `(title: string) => string` | — | |
14034
+ | `dashboardKept` *required* | `string` | — | |
14035
+ | `dashboardCancelled` *required* | `string` | — | |
14036
+ | `dashboardAddWidget` *required* | `string` | — | The catalogue and the options. |
14037
+ | `dashboardCatalogue` *required* | `string` | — | |
14038
+ | `dashboardCatalogueSentence` *required* | `string` | — | |
14039
+ | `dashboardAdd` *required* | `string` | — | |
14040
+ | `dashboardAddType` *required* | `(label: string) => string` | — | |
14041
+ | `dashboardFootprint` *required* | `(columns: number, rows: number) => string` | — | |
14042
+ | `dashboardAdded` *required* | `(title: string, place: number, of: number) => string` | — | |
14043
+ | `dashboardOptions` *required* | `string` | — | |
14044
+ | `dashboardOptionsChanged` *required* | `(title: string) => string` | — | |
14045
+ | `dashboardEmpty` *required* | `string` | — | |
14046
+ | `dashboardEmptyEditing` *required* | `string` | — | |
14047
+ | `dashboardFailed` *required* | `string` | — | |
14048
+ | `dashboardUndone` *required* | `string` | — | |
14049
+ | `dashboardRedone` *required* | `string` | — | |
14050
+ | `dashboardResetDone` *required* | `string` | — | |
14051
+ | `calculationSumSymbol` *required* | `string` | — | The four operators as symbols in a formula line. |
14052
+ | `calculationDifferenceSymbol` *required* | `string` | — | |
14053
+ | `calculationProductSymbol` *required* | `string` | — | |
14054
+ | `calculationQuotientSymbol` *required* | `string` | — | |
14055
+ | `calculationSumWord` *required* | `string` | — | The same four as words, in the accessible sentence of a line. |
14056
+ | `calculationDifferenceWord` *required* | `string` | — | |
14057
+ | `calculationProductWord` *required* | `string` | — | |
14058
+ | `calculationQuotientWord` *required* | `string` | — | |
14059
+ | `calculationEquals` *required* | `string` | — | Between the parts of the sentence: "Availability equals ...". |
14060
+ | `calculationApproximately` *required* | `string` | — | Before a result marked "≈" in the sentence. |
14061
+ | `calculationApproximateNote` *required* | `string` | — | Beside a result marked "≈": why the rounded operands do not give it. |
14062
+ | `calculationPercent` *required* | `string` | — | How a percentage is read out: "91.6 percent". |
14063
+ | `calculationMissing` *required* | `(label: string) => string` | — | Why a quantity has no number - the label is the given at the root of it, or the divisor that is zero. |
14064
+ | `calculationDivisionByZero` *required* | `(label: string) => string` | — | |
14065
+ | `calculationAboveTarget` *required* | `(target: string) => string` | — | The target beside the result, with the target's number and unit. |
14066
+ | `calculationBelowTarget` *required* | `(target: string) => string` | — | |
14067
+ | `calculationOnTarget` *required* | `(target: string) => string` | — | |
14068
+ | `calculationWorstInside` *required* | `(verdict: string) => string` | — | The quiet marker on a folded quantity whose derivation holds a worse verdict than its own; the verdict word comes from `verdict*`. |
14069
+ | `calculationSource` *required* | `(source: string) => string` | — | Where a given number came from. |
14070
+ | `calculationShowDerivation` *required* | `(label: string) => string` | — | The disclosure button of a derivation, named after the quantity. |
14071
+ | `calculationHideDerivation` *required* | `(label: string) => string` | — | |
14072
+ | `calculationOperandCount` *required* | `(count: number) => string` | — | On a folded line whose operator has more operands than are written out beneath it ([ADR-0028](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0028-a-calculation-is-a-tree-or-a-chain.md)): how many there are. |
14073
+ | `calculationNoOperands` *required* | `string` | — | On the line of a sum with no operands, where its formula would stand ([ADR-0049](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0049-a-sum-takes-rows-from-data.md)). |
14074
+
12927
14075
  ##### `NumberOptions`
12928
14076
 
12929
14077
  From `@umriss-ui/core`.