@umriss-ui/table 0.42.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.42.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
 
@@ -152,7 +152,7 @@ export default function WorkThroughTheAlerts() {
152
152
  </div>
153
153
 
154
154
  <div data-callout="2">
155
- <Table selectable ariaLabel="Alerts">
155
+ <Table selectable aria-label="Alerts">
156
156
  <Column value="raised" label="Raised">
157
157
  {(raised) => time(raised)}
158
158
  </Column>
@@ -474,7 +474,7 @@ export default function FindALateShipment() {
474
474
  </Button>
475
475
  </Stack>
476
476
 
477
- <Table selectable ariaLabel="Shipments">
477
+ <Table selectable aria-label="Shipments">
478
478
  <Toolbar>
479
479
  <span data-callout="2">
480
480
  <Search placeholder="Shipment or customer" />
@@ -683,7 +683,7 @@ export default function ReviewCostCentres() {
683
683
  </Toolbar>
684
684
 
685
685
  <div data-callout="3">
686
- <Table ariaLabel="Cost centres, first quarter">
686
+ <Table aria-label="Cost centres, first quarter">
687
687
  <Column value="area" label="Area" />
688
688
  <Column value="id" label="Cost centre" rowHeader />
689
689
  <Column value="name" label="Name">
@@ -848,7 +848,7 @@ export default function PlanTheTeamCapacity() {
848
848
  <div data-callout="2">
849
849
  <Table
850
850
  grid
851
- ariaLabel="Booked hours per person and week"
851
+ aria-label="Booked hours per person and week"
852
852
  onCellEdit={({ rowKey, columnId, value, row }) => {
853
853
  setRows((all) => all.map((r) => (r.id === rowKey ? { ...r, [columnId]: value } : r)));
854
854
  setLast(`${row.name}, ${columnId === "capacity" ? "capacity" : `week of ${columnId.slice(4)} March`}: ${String(value)} h`);
@@ -932,7 +932,7 @@ export default function FirstTable() {
932
932
  const { Table, Column } = useTable(PEOPLE, { rowKey: (p) => p.id });
933
933
 
934
934
  return (
935
- <Table ariaLabel="Team">
935
+ <Table aria-label="Team">
936
936
  <Column value="name" label="Name" rowHeader />
937
937
  <Column value="role" label="Role" />
938
938
  <Column value="team" label="Team" />
@@ -954,12 +954,6 @@ From `TableProps` — the full table stands on [First table](#first-table).
954
954
  |---|---|---|---|
955
955
  | [`children`](#first-table) | `ReactNode` | — | Columns, `RowDetail`, `RowActions` and the unbound parts. |
956
956
 
957
- ###### Accessibility
958
-
959
- | Prop | Type | Default | Description |
960
- |---|---|---|---|
961
- | [`ariaLabel`](#first-table) | `string` | — | Accessible name of the table (not of the outer frame). |
962
-
963
957
  From `TableOptions` — the full table stands on [First table](#first-table).
964
958
 
965
959
  | Prop | Type | Default | Description |
@@ -987,7 +981,7 @@ Rows of records to scan, sort, search and select (also called a data table or da
987
981
  import { useTable } from "@umriss-ui/table";
988
982
  ```
989
983
 
990
- [`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.
991
985
 
992
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.
993
987
 
@@ -1019,7 +1013,7 @@ export default function FirstTable() {
1019
1013
  const { Table, Column } = useTable(SERVICES, { rowKey: (s) => s.id });
1020
1014
 
1021
1015
  return (
1022
- <Table ariaLabel="Services">
1016
+ <Table aria-label="Services">
1023
1017
  <Column value="name" label="Service" rowHeader />
1024
1018
  <Column value="team" label="Team" />
1025
1019
  <Column value="tier" label="Tier" />
@@ -1113,7 +1107,7 @@ export default function SearchAndPageFromAHeader() {
1113
1107
  }
1114
1108
  />
1115
1109
  <CardBody>
1116
- <Table ariaLabel="Services">
1110
+ <Table aria-label="Services">
1117
1111
  <Column value="name" label="Service" rowHeader />
1118
1112
  <Column value="team" label="Team" />
1119
1113
  <Column value="tier" label="Tier" />
@@ -1216,7 +1210,7 @@ export default function SortArrangeAndExport() {
1216
1210
  );
1217
1211
  })}
1218
1212
  </Stack>
1219
- <Table ariaLabel="Services">
1213
+ <Table aria-label="Services">
1220
1214
  <Column value="name" label="Service" rowHeader />
1221
1215
  <Column value="team" label="Team" />
1222
1216
  <Column value="tier" label="Tier" />
@@ -1241,7 +1235,7 @@ export default function SortArrangeAndExport() {
1241
1235
 
1242
1236
  #### Accessibility
1243
1237
 
1244
- A native `table`, named by `ariaLabel`: without it a screen reader announces a table with no name, so pass one, the more so where a page holds two. The `rowHeader` column's cells are row headers, so a reader names the row as it moves along it, and the row's checkbox, expander and actions are named after it too.
1238
+ A native `table`, named by `aria-label`: without it a screen reader announces a table with no name, so pass one, the more so where a page holds two. The `rowHeader` column's cells are row headers, so a reader names the row as it moves along it, and the row's checkbox, expander and actions are named after it too.
1245
1239
 
1246
1240
  A sortable header holds a button, and its cell carries `aria-sort`, so the reader says which column orders the rows and in which direction. While `loading` is set the table is `aria-busy`.
1247
1241
 
@@ -1253,20 +1247,23 @@ A value cut short at the edge of its cell shows whole in a tip, under the pointe
1253
1247
 
1254
1248
  | Prop | Type | Default | Description |
1255
1249
  |---|---|---|---|
1256
- | `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 14 more |
1257
- | `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 4 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
+ | `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 |
1258
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 |
1259
1253
  | `striped` | `boolean` | — | Discreet zebra stripes.<br>Shown in: [Stripes across a wide table (Row appearance)](#row-appearance) |
1260
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 |
1261
- | `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 4 more |
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 |
1262
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) |
1263
- | `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) |
1264
1258
  | `rowProps` | `(row: Z) => ``RowAttributes` | — | Classes and data attributes per row.<br>Shown in: [Mark rows by their state (Row appearance)](#row-appearance) |
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
+ | `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) |
1265
1261
  | `groupable` | `boolean` | — | `false`: the user cannot group this table - the column menu offers no grouping, and a grouping handed in is passed over.<br>Shown in: [Switch grouping off (Grouping)](#grouping-1) |
1266
- | `grid` | `boolean` | — | Grid mode: the table is one tab stop, and the arrows walk its cells - Home and End in the row, Ctrl+Home and Ctrl+End to the table's ends, PageUp and PageDown by the rows in view. A cell's own controls are reached with Enter or F2 and left with Escape; a column with `edit` is edited in place. Without it the table stays a native table.<br>Shown in: [Work cell by cell (Grid mode)](#grid-mode), [Combine grid mode with groups, pinning and many rows (Grid mode)](#grid-mode), [Edit a comments column (Edits)](#edits) and 6 more |
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 |
1267
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 |
1268
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) |
1269
- | `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 119 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
+ | `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) |
1270
1267
 
1271
1268
  ###### Events
1272
1269
 
@@ -1277,30 +1274,20 @@ A value cut short at the edge of its cell shows whole in a tip, under the pointe
1277
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) |
1278
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) |
1279
1276
 
1280
- ###### Accessibility
1281
-
1282
- | Prop | Type | Default | Description |
1283
- |---|---|---|---|
1284
- | `ariaLabel` | `string` | — | Accessible name of the table (not of the outer frame).<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 119 more |
1285
-
1286
- ###### Styling
1287
-
1288
- | Prop | Type | Default | Description |
1289
- |---|---|---|---|
1290
- | `className` | `string` | — | Classes on the outer frame of the table.<br>Shown in: [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), [Pin and size from controls of your own (Width and pinning)](#width-and-pinning) and 2 more |
1277
+ Also takes every attribute of `<div>` – without `children`.
1291
1278
 
1292
1279
  ##### `TableOptions<Z>`
1293
1280
 
1294
1281
  | Prop | Type | Default | Description |
1295
1282
  |---|---|---|---|
1296
- | `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 119 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 |
1297
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 |
1298
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 |
1299
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 |
1300
1287
  | `preFilter` | `(row: Z) => boolean` | — | Which rows the table has at all – by permission, by tenant, by anything the user is not meant to undo. It is invisible: never a condition, never reset, never part of the view, and "43 of 1,204" counts only the rows it admits. It may stand in the call; a change leaves the page standing, and the model clamps it.<br>Shown in: [Restrict which rows a table has (Pre-filter)](#pre-filter) |
1301
1288
  | `rowFilters` | `readonly `[`RowFilter`](#filter)`<Z, any>[]` | — | The row filters the table has: conditions the application defines over the whole row and sets with `t.setFilter(filter, condition)` from a control of its own. Named here so that a condition from `initialView`, which arrives by id, is known in the first render.<br>Shown in: [Filter by a field no column shows (Filter)](#filter), [Rows from a request (Filter)](#filter), [Ask a question over several fields (Filter)](#filter) and 3 more |
1302
1289
  | `initialView` | `TableView` | — | The view to start from, read once when the hook first runs; a different value on a later render is ignored, as React ignores a changed `defaultValue`. To go to a view later, call `setView`. The table remembers none: where a view is kept is the application's decision. Names no column carries fall out.<br>Shown in: [Ask a question over several fields (Filter)](#filter), [Fold groups into a summary (Grouping)](#grouping-1), [Show loading, empty, failed and no match (Row appearance)](#row-appearance) and 2 more |
1303
- | `virtual` | `boolean \| { overscan?: number }` | — | Renders only what stands in the scroll area; paging is then off. Every row is one row pitch tall, which the table measures itself ([ADR-0042](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0042-a-rows-height-never-follows-what-it-shows.md)).<br>Shown in: [Group twenty thousand rows (Grouping)](#grouping-1), [Scroll twenty thousand rows (Virtualisation)](#virtualisation), [Measure two hundred thousand rows (Benchmark)](#benchmark) and 1 more |
1290
+ | `virtual` | `boolean \| { overscan?: number }` | — | Renders only what stands in the scroll area; paging is then off. Every row is one row pitch tall, which the table measures itself ([ADR-0042](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0042-a-rows-height-never-follows-what-it-shows.md)).<br>Shown in: [Group twenty thousand rows (Grouping)](#grouping-1), [Scroll twenty thousand rows (Virtualisation)](#virtualisation), [Inside a pane of fixed height (Virtualisation)](#virtualisation) and 4 more |
1304
1291
  | `selection` | `TableSelection``<string>` | — | A selection from outside instead of its own – when the application holds it.<br>Shown in: [Hold the selection yourself (Selection)](#selection) |
1305
1292
 
1306
1293
  ###### Events
@@ -1356,6 +1343,7 @@ A value cut short at the edge of its cell shows whole in a tip, under the pointe
1356
1343
  | `virtual` *required* | `boolean` | — | Whether it virtualises.<br>Shown in: [Search and page from a header of your own](#first-table) |
1357
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) |
1358
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) |
1359
1347
 
1360
1348
  ##### Types on this page
1361
1349
 
@@ -1436,11 +1424,11 @@ the application.
1436
1424
 
1437
1425
  | Prop | Type | Default | Description |
1438
1426
  |---|---|---|---|
1439
- | `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 |
1440
- | `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 |
1441
- | `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 |
1442
- | `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 |
1443
- | `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 |
1444
1432
  | `hidden` | `readonly K[]` | — | <br>Shown in: [Keep and restore a view (View)](#view) |
1445
1433
  | `order` | `readonly K[]` | — | |
1446
1434
  | `widths` | `Readonly<Record<string, number>>` | — | Column widths the user has dragged, in pixels. |
@@ -1464,6 +1452,9 @@ selection.
1464
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) |
1465
1453
  | `allSelected` *required* | `boolean` | — | true when every key passed in is selected. |
1466
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. |
1467
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 |
1468
1459
 
1469
1460
  ###### `Pin`
@@ -1490,6 +1481,18 @@ interface SetFilter<Z> {
1490
1481
  }
1491
1482
  ```
1492
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
+
1493
1496
  ###### `SortDirection`
1494
1497
 
1495
1498
  The direction of one sort level: `asc` puts the smallest value on top,
@@ -1553,10 +1556,10 @@ type Absent = null | undefined;
1553
1556
 
1554
1557
  #### Known limits
1555
1558
 
1556
- - 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.42.0/docs/adr/0032-what-umriss-is-not.md)).
1557
- - 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.42.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)).
1558
1561
 
1559
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.42.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).
1560
1563
 
1561
1564
  ### Provider
1562
1565
 
@@ -1608,7 +1611,7 @@ const INVOICES: Invoice[] = [
1608
1611
  function Invoices() {
1609
1612
  const { Table, Column } = useTable(INVOICES, { rowKey: (i) => i.id });
1610
1613
  return (
1611
- <Table ariaLabel="Invoices">
1614
+ <Table aria-label="Invoices">
1612
1615
  <Toolbar>
1613
1616
  <Search />
1614
1617
  <ColumnMenu />
@@ -1648,12 +1651,6 @@ From `TableProps` — the full table stands on [First table](#first-table).
1648
1651
  |---|---|---|---|
1649
1652
  | [`children`](#first-table) | `ReactNode` | — | Columns, `RowDetail`, `RowActions` and the unbound parts. |
1650
1653
 
1651
- ###### Accessibility
1652
-
1653
- | Prop | Type | Default | Description |
1654
- |---|---|---|---|
1655
- | [`ariaLabel`](#first-table) | `string` | — | Accessible name of the table (not of the outer frame). |
1656
-
1657
1654
  From `TableOptions` — the full table stands on [First table](#first-table).
1658
1655
 
1659
1656
  | Prop | Type | Default | Description |
@@ -1684,7 +1681,7 @@ From `ExportProps` — the full table stands on [Export](#export).
1684
1681
 
1685
1682
  | Prop | Type | Default | Description |
1686
1683
  |---|---|---|---|
1687
- | [`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. |
1688
1685
 
1689
1686
  ## Columns
1690
1687
 
@@ -1702,7 +1699,11 @@ Without a presentation the value type decides: text on the left, numbers right-a
1702
1699
 
1703
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.
1704
1701
 
1705
- 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.
1706
1707
 
1707
1708
  #### Examples
1708
1709
 
@@ -1729,7 +1730,7 @@ export default function ValueFromField() {
1729
1730
  const { Table, Column } = useTable(VEHICLES, { rowKey: (v) => v.plate });
1730
1731
 
1731
1732
  return (
1732
- <Table ariaLabel="Vehicles">
1733
+ <Table aria-label="Vehicles">
1733
1734
  <Column value="plate" label="Plate" rowHeader />
1734
1735
  <Column value="type" label="Type" />
1735
1736
  <Column value="capacity" label="Payload (kg)" />
@@ -1761,7 +1762,7 @@ export default function ComputedValue() {
1761
1762
  const { Table, Column } = useTable(LINES, { rowKey: (l) => l.description });
1762
1763
 
1763
1764
  return (
1764
- <Table ariaLabel="Invoice lines">
1765
+ <Table aria-label="Invoice lines">
1765
1766
  <Column value="description" label="Description" rowHeader />
1766
1767
  <Column value="quantity" label="Quantity" />
1767
1768
  <Column value="unitPrice" label="Unit price (€)" format={{ decimals: 2 }} />
@@ -1795,7 +1796,7 @@ export default function Defaults() {
1795
1796
  const { Table, Column } = useTable(SERVICES, { rowKey: (s) => s.name });
1796
1797
 
1797
1798
  return (
1798
- <Table ariaLabel="Defaults per value type">
1799
+ <Table aria-label="Defaults per value type">
1799
1800
  <Column value="name" label="Text" rowHeader />
1800
1801
  <Column value="requests" label="Number" />
1801
1802
  <Column value="deployed" label="Point in time" />
@@ -1832,7 +1833,7 @@ export default function RowHeader() {
1832
1833
 
1833
1834
  return (
1834
1835
  <Stack gap={3}>
1835
- <Table selectable ariaLabel="Incidents">
1836
+ <Table selectable aria-label="Incidents">
1836
1837
  <Toolbar>
1837
1838
  <ColumnMenu />
1838
1839
  </Toolbar>
@@ -1870,9 +1871,9 @@ The `label` is the column header's text, and so what a screen reader says for ev
1870
1871
 
1871
1872
  | Prop | Type | Default | Description |
1872
1873
  |---|---|---|---|
1873
- | `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 119 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 |
1874
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) |
1875
- | `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 |
1876
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 |
1877
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) |
1878
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 |
@@ -1886,13 +1887,13 @@ Also every prop of `ColumnBase`, `ValuePaths` and `AggregateOptions`.
1886
1887
 
1887
1888
  | Prop | Type | Default | Description |
1888
1889
  |---|---|---|---|
1889
- | `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 119 more |
1890
- | `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 118 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 |
1891
1892
  | `numeric` | `boolean` | decided by the first value present | Right-aligned with tabular figures.<br>Shown in: [Share a column between tables (Presets)](#presets) |
1892
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 |
1893
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 |
1894
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 |
1895
- | `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 |
1896
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) |
1897
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) |
1898
1899
 
@@ -1990,10 +1991,11 @@ type Absent = null | undefined;
1990
1991
 
1991
1992
  ###### `NumberFormat`
1992
1993
 
1993
- The names of the standard presentations of a number.
1994
+ How a number column is written: `"percent"`, `"count"`, or Intl's number
1995
+ options plus `decimals`; the same shape as core's `NumberFormat`.
1994
1996
 
1995
1997
  ```ts
1996
- type NumberFormat = "percent" | "count" | { decimals: number };
1998
+ type NumberFormat = "percent" | "count" | NumberOptions;
1997
1999
  ```
1998
2000
 
1999
2001
  ###### `DateFormat`
@@ -2045,6 +2047,17 @@ Escape and Tab stay the table's, bubbling up from the field.
2045
2047
  |---|---|---|---|
2046
2048
  | `onChange` *required* | `(value: W \| null) => void` | — | Changes the draft. |
2047
2049
 
2050
+ ###### `NumberOptions`
2051
+
2052
+ From `@umriss-ui/core`.
2053
+
2054
+ Intl's number options, plus `decimals`: the shorthand for the minimum and the
2055
+ maximum fraction digits. An Intl digit option given beside it wins.
2056
+
2057
+ ```ts
2058
+ type NumberOptions = Intl.NumberFormatOptions & { decimals?: number };
2059
+ ```
2060
+
2048
2061
  ###### `Displayable`
2049
2062
 
2050
2063
  What can appear as text without `children`.
@@ -2069,7 +2082,7 @@ A format or a presentation changes what the cell shows and nothing else: sorting
2069
2082
 
2070
2083
  ##### Pick a standard format
2071
2084
 
2072
- `format` names a presentation from the provider's formats; it is typed against the value and keeps sorting, export and totals.
2085
+ `format` names a presentation from the provider's formats; it is typed against the value and keeps sorting, export and totals. The object form is Intl's options: `{ decimals }` for places, `useGrouping: false` for a year, `style: "currency"` for money.
2073
2086
 
2074
2087
  ```tsx
2075
2088
  import { useTable } from "@umriss-ui/table";
@@ -2079,24 +2092,28 @@ interface Service {
2079
2092
  availability: number;
2080
2093
  requests: number;
2081
2094
  p95: number;
2095
+ since: number;
2096
+ monthly: number;
2082
2097
  deployed: Date;
2083
2098
  }
2084
2099
 
2085
2100
  const SERVICES: Service[] = [
2086
- { name: "Checkout", availability: 0.99921, requests: 1_284_310, p95: 412.37, deployed: new Date(2026, 2, 17, 9, 5) },
2087
- { name: "Billing", availability: 0.99958, requests: 402_118, p95: 238.9, deployed: new Date(2026, 2, 16, 16, 40) },
2088
- { name: "Search", availability: 0.99803, requests: 2_910_455, p95: 186.02, deployed: new Date(2026, 2, 12, 11, 15) },
2101
+ { name: "Checkout", availability: 0.99921, requests: 1_284_310, p95: 412.37, since: 2019, monthly: 18400.5, deployed: new Date(2026, 2, 17, 9, 5) },
2102
+ { name: "Billing", availability: 0.99958, requests: 402_118, p95: 238.9, since: 2021, monthly: 9250, deployed: new Date(2026, 2, 16, 16, 40) },
2103
+ { name: "Search", availability: 0.99803, requests: 2_910_455, p95: 186.02, since: 2024, monthly: 31200.75, deployed: new Date(2026, 2, 12, 11, 15) },
2089
2104
  ];
2090
2105
 
2091
2106
  export default function Format() {
2092
2107
  const { Table, Column } = useTable(SERVICES, { rowKey: (s) => s.name });
2093
2108
 
2094
2109
  return (
2095
- <Table ariaLabel="Services this month">
2110
+ <Table aria-label="Services this month">
2096
2111
  <Column value="name" label="Service" rowHeader />
2097
2112
  <Column value="availability" label="Availability" format="percent" />
2098
2113
  <Column value="requests" label="Requests" format="count" />
2099
2114
  <Column value="p95" label="p95 (ms)" format={{ decimals: 1 }} />
2115
+ <Column value="since" label="Since" format={{ useGrouping: false }} />
2116
+ <Column value="monthly" label="Cost" format={{ style: "currency", currency: "EUR" }} />
2100
2117
  <Column value="deployed" label="Deployed" format="date" />
2101
2118
  {/* A second column over the same field names its own id. */}
2102
2119
  <Column id="deployedAt" value="deployed" label="At" format="time" />
@@ -2131,7 +2148,7 @@ export default function Presentation() {
2131
2148
  const { Table, Column } = useTable(SERVICES, { rowKey: (s) => s.name });
2132
2149
 
2133
2150
  return (
2134
- <Table ariaLabel="Services">
2151
+ <Table aria-label="Services">
2135
2152
  <Column value="name" label="Service" rowHeader />
2136
2153
  <Column value="state" label="State">
2137
2154
  {(state) => <Badge tone={TONE[state]}>{state}</Badge>}
@@ -2171,7 +2188,7 @@ export default function AbsentValues() {
2171
2188
  const { Table, Column } = useTable(WORK, { rowKey: (w) => w.id });
2172
2189
 
2173
2190
  return (
2174
- <Table ariaLabel="Work items">
2191
+ <Table aria-label="Work items">
2175
2192
  <Column value="id" label="Item" rowHeader />
2176
2193
  <Column value="name" label="Title" />
2177
2194
  <Column value="estimate" label="Estimate" aggregate="avg">
@@ -2219,7 +2236,7 @@ export default function LongValues() {
2219
2236
  const { Table, Column } = useTable(SHIPMENTS, { rowKey: (s) => s.id });
2220
2237
 
2221
2238
  return (
2222
- <Table ariaLabel="Shipments with delivery instructions">
2239
+ <Table aria-label="Shipments with delivery instructions">
2223
2240
  <Column value="id" label="Shipment" rowHeader width={120} />
2224
2241
  <Column value="customer" label="Customer" width={200} />
2225
2242
  <Column value="address" label="Address" width={200} />
@@ -2254,7 +2271,7 @@ export default function ValuesThatDoNotFit() {
2254
2271
  const { Table, Column } = useTable(SERVICES, { rowKey: (s) => s.name });
2255
2272
 
2256
2273
  return (
2257
- <Table ariaLabel="Services with tags and notes">
2274
+ <Table aria-label="Services with tags and notes">
2258
2275
  <Column value="name" label="Service" rowHeader width={120} />
2259
2276
  <Column value="tags" label="Tags" width={170} sortable={false}>
2260
2277
  {(tags) =>
@@ -2289,12 +2306,6 @@ From `TableProps` — the full table stands on [First table](#first-table).
2289
2306
  |---|---|---|---|
2290
2307
  | [`children`](#first-table) | `ReactNode` | — | Columns, `RowDetail`, `RowActions` and the unbound parts. |
2291
2308
 
2292
- ###### Accessibility
2293
-
2294
- | Prop | Type | Default | Description |
2295
- |---|---|---|---|
2296
- | [`ariaLabel`](#first-table) | `string` | — | Accessible name of the table (not of the outer frame). |
2297
-
2298
2309
  From `TableOptions` — the full table stands on [First table](#first-table).
2299
2310
 
2300
2311
  | Prop | Type | Default | Description |
@@ -2358,7 +2369,7 @@ export default function Width() {
2358
2369
  const { Table, Column } = useTable(SHIPMENTS, { rowKey: (s) => s.id });
2359
2370
 
2360
2371
  return (
2361
- <Table ariaLabel="Shipments with a note">
2372
+ <Table aria-label="Shipments with a note">
2362
2373
  <Column value="id" label="Shipment" rowHeader width={120} />
2363
2374
  <Column value="customer" label="Customer" resizable width={180} />
2364
2375
  <Column value="note" label="Note" resizable sortable={false} width={160} />
@@ -2429,7 +2440,7 @@ export default function PinnedBothSides() {
2429
2440
  return (
2430
2441
  <Stack gap={2}>
2431
2442
  <style>{STYLE}</style>
2432
- <Table className="hourly-output" selectable ariaLabel="Output per hour">
2443
+ <Table className="hourly-output" selectable aria-label="Output per hour">
2433
2444
  <Toolbar>
2434
2445
  <ColumnMenu />
2435
2446
  </Toolbar>
@@ -2503,7 +2514,7 @@ export default function StickyParts() {
2503
2514
  return (
2504
2515
  <>
2505
2516
  <style>{STYLE}</style>
2506
- <Table className="week-table" selectable stickyHeader stickyRowHeader maxHeight="300px" ariaLabel="Planned hours per day">
2517
+ <Table className="week-table" selectable stickyHeader stickyRowHeader maxHeight="300px" aria-label="Planned hours per day">
2507
2518
  <Column value="team" label="Team" width={96} />
2508
2519
  <Column value="name" label="Person" rowHeader width={160} />
2509
2520
  {DAYS.map((day, d) => (
@@ -2575,7 +2586,7 @@ export default function PinAndSizeFromControls() {
2575
2586
  Note: {t.widths.note} px
2576
2587
  </Text>
2577
2588
  </Stack>
2578
- <Table className="delivery-notes" ariaLabel="Shipments with a note">
2589
+ <Table className="delivery-notes" aria-label="Shipments with a note">
2579
2590
  <Column value="id" label="Shipment" rowHeader width={120} />
2580
2591
  <Column value="customer" label="Customer" width={200} />
2581
2592
  <Column value="town" label="Town" width={120} />
@@ -2611,7 +2622,7 @@ export default function ALabelWiderThanItsColumn() {
2611
2622
  const { Table, Column } = useTable(SHIPMENTS, { rowKey: (s) => s.id, defaultSort: { column: "weight", direction: "desc" } });
2612
2623
 
2613
2624
  return (
2614
- <Table ariaLabel="Shipments in narrow columns">
2625
+ <Table aria-label="Shipments in narrow columns">
2615
2626
  <Column value="id" label="Shipment" rowHeader />
2616
2627
  <Column value="weight" label="Gross weight in kilograms" width={75} />
2617
2628
  <Column value="carrier" label="Carrier responsible for delivery" width={75} filter="list" />
@@ -2639,18 +2650,6 @@ From `TableProps` — the full table stands on [First table](#first-table).
2639
2650
  | [`maxHeight`](#first-table) | `string` | — | Height of the scroll area, e.g. "480px". A virtualised table needs it. |
2640
2651
  | [`children`](#first-table) | `ReactNode` | — | Columns, `RowDetail`, `RowActions` and the unbound parts. |
2641
2652
 
2642
- ###### Accessibility
2643
-
2644
- | Prop | Type | Default | Description |
2645
- |---|---|---|---|
2646
- | [`ariaLabel`](#first-table) | `string` | — | Accessible name of the table (not of the outer frame). |
2647
-
2648
- ###### Styling
2649
-
2650
- | Prop | Type | Default | Description |
2651
- |---|---|---|---|
2652
- | [`className`](#first-table) | `string` | — | Classes on the outer frame of the table. |
2653
-
2654
2653
  From `TableOptions` — the full table stands on [First table](#first-table).
2655
2654
 
2656
2655
  | Prop | Type | Default | Description |
@@ -2707,7 +2706,7 @@ From `ActionProps` — the full table stands on [RowActions](#rowactions).
2707
2706
 
2708
2707
  | Prop | Type | Default | Description |
2709
2708
  |---|---|---|---|
2710
- | [`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. |
2711
2710
 
2712
2711
  From `ToolbarProps` — the full table stands on [Toolbar](#toolbar).
2713
2712
 
@@ -2771,7 +2770,7 @@ const BUDGETS: Budget[] = [
2771
2770
  function Invoices() {
2772
2771
  const { Table, Column } = useTable(INVOICES, { rowKey: (i) => i.id });
2773
2772
  return (
2774
- <Table ariaLabel="Invoices">
2773
+ <Table aria-label="Invoices">
2775
2774
  <Column value="id" label="Invoice" rowHeader />
2776
2775
  <Column {...amount} />
2777
2776
  </Table>
@@ -2781,7 +2780,7 @@ function Invoices() {
2781
2780
  function Budgets() {
2782
2781
  const { Table, Column } = useTable(BUDGETS, { rowKey: (b) => b.costCentre });
2783
2782
  return (
2784
- <Table ariaLabel="Monthly budgets">
2783
+ <Table aria-label="Monthly budgets">
2785
2784
  <Column value="costCentre" label="Cost centre" rowHeader />
2786
2785
  <Column {...amount} label="Monthly budget (€)" />
2787
2786
  </Table>
@@ -2837,7 +2836,7 @@ export default function Wrapper() {
2837
2836
  const { Table, Column } = t;
2838
2837
 
2839
2838
  return (
2840
- <Table ariaLabel="Incidents">
2839
+ <Table aria-label="Incidents">
2841
2840
  <Column value="id" label="Incident" rowHeader />
2842
2841
  <SeverityColumn of={t} />
2843
2842
  </Table>
@@ -2857,12 +2856,6 @@ From `TableProps` — the full table stands on [First table](#first-table).
2857
2856
  |---|---|---|---|
2858
2857
  | [`children`](#first-table) | `ReactNode` | — | Columns, `RowDetail`, `RowActions` and the unbound parts. |
2859
2858
 
2860
- ###### Accessibility
2861
-
2862
- | Prop | Type | Default | Description |
2863
- |---|---|---|---|
2864
- | [`ariaLabel`](#first-table) | `string` | — | Accessible name of the table (not of the outer frame). |
2865
-
2866
2859
  From `TableOptions` — the full table stands on [First table](#first-table).
2867
2860
 
2868
2861
  | Prop | Type | Default | Description |
@@ -2962,7 +2955,7 @@ export default function SortBySeveralColumns() {
2962
2955
  });
2963
2956
 
2964
2957
  return (
2965
- <Table ariaLabel="Incidents, most severe and newest first">
2958
+ <Table aria-label="Incidents, most severe and newest first">
2966
2959
  <Column value="id" label="Incident" rowHeader />
2967
2960
  <Column value="title" label="Title" />
2968
2961
  <Column value="severity" label="Severity" />
@@ -2999,7 +2992,7 @@ export default function OwnOrdering() {
2999
2992
 
3000
2993
  return (
3001
2994
  <Stack gap={3}>
3002
- <Table ariaLabel="Parcels">
2995
+ <Table aria-label="Parcels">
3003
2996
  <Toolbar>
3004
2997
  <Export onExport={setCsv} />
3005
2998
  </Toolbar>
@@ -3035,12 +3028,6 @@ From `TableProps` — the full table stands on [First table](#first-table).
3035
3028
  |---|---|---|---|
3036
3029
  | [`children`](#first-table) | `ReactNode` | — | Columns, `RowDetail`, `RowActions` and the unbound parts. |
3037
3030
 
3038
- ###### Accessibility
3039
-
3040
- | Prop | Type | Default | Description |
3041
- |---|---|---|---|
3042
- | [`ariaLabel`](#first-table) | `string` | — | Accessible name of the table (not of the outer frame). |
3043
-
3044
3031
  From `TableOptions` — the full table stands on [First table](#first-table).
3045
3032
 
3046
3033
  | Prop | Type | Default | Description |
@@ -3082,13 +3069,13 @@ From `ExportProps` — the full table stands on [Export](#export).
3082
3069
 
3083
3070
  | Prop | Type | Default | Description |
3084
3071
  |---|---|---|---|
3085
- | [`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. |
3086
3073
 
3087
3074
  #### Known limits
3088
3075
 
3089
3076
  - In [server mode](#server-mode) the table sorts nothing itself; the sort goes to the server in the request.
3090
3077
 
3091
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.42.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).
3092
3079
 
3093
3080
  ### Search
3094
3081
 
@@ -3128,7 +3115,7 @@ export default function FindAPerson() {
3128
3115
  const { Table, Column } = useTable(PEOPLE, { rowKey: (p) => p.name });
3129
3116
 
3130
3117
  return (
3131
- <Table ariaLabel="People">
3118
+ <Table aria-label="People">
3132
3119
  <Toolbar>
3133
3120
  <Search placeholder="Search people" />
3134
3121
  </Toolbar>
@@ -3165,7 +3152,7 @@ export default function LeaveAColumnOut() {
3165
3152
  const { Table, Column } = useTable(PEOPLE, { rowKey: (p) => p.name });
3166
3153
 
3167
3154
  return (
3168
- <Table ariaLabel="People by role">
3155
+ <Table aria-label="People by role">
3169
3156
  <Toolbar>
3170
3157
  <Search placeholder="Search name or role" />
3171
3158
  </Toolbar>
@@ -3204,7 +3191,7 @@ export default function SearchFromACardHeader() {
3204
3191
  <Card>
3205
3192
  <CardHeader divider title="Apps team" actions={<Search of={t} placeholder="Search people" aria-label="Search the Apps team" />} />
3206
3193
  <CardBody>
3207
- <Table ariaLabel="Apps team">
3194
+ <Table aria-label="Apps team">
3208
3195
  <Column value="name" label="Name" rowHeader />
3209
3196
  <Column value="role" label="Role" />
3210
3197
  </Table>
@@ -3237,7 +3224,7 @@ export default function SearchTakesTheLine() {
3237
3224
  const { Table, Column } = useTable(PEOPLE, { rowKey: (p) => p.name });
3238
3225
 
3239
3226
  return (
3240
- <Table ariaLabel="Apps team">
3227
+ <Table aria-label="Apps team">
3241
3228
  <Toolbar>
3242
3229
  <Search grow placeholder="Search people" />
3243
3230
  <ColumnMenu />
@@ -3265,10 +3252,12 @@ The keys of [First table](#first-table) and Input apply here.
3265
3252
 
3266
3253
  | Prop | Type | Default | Description |
3267
3254
  |---|---|---|---|
3268
- | `placeholder` | `string` | the wording's "Search …" | The placeholder in the field.<br>Shown in: [Find a person](#search), [Leave a column out](#search), [Search from a card header](#search) and 23 more |
3255
+ | `placeholder` | `string` | the wording's "Search …" | The placeholder in the field.<br>Shown in: [Find a person](#search), [Leave a column out](#search), [Search from a card header](#search) and 24 more |
3269
3256
  | `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) |
3270
3257
  | `grow` | `boolean` | `false` | Take the rest of the toolbar's line: the parts after the search - column menu, export - stand at its end.<br>Shown in: [Search takes the line](#search) |
3271
3258
  | `of` | `TableRef` | — | The table, when the part does not stand inside it: the return value of `useTable`.<br>Shown in: [Search from a card header](#search), [Place it outside the table (Toolbar)](#toolbar), [Parts outside a toolbar (Toolbar)](#toolbar) and 1 more |
3259
+ | `chars` | `number` | — | The width in characters - room for the value; the field adds its own padding and cross. Given, the field is that wide wherever it stands, and never wider than its place. Without it the field fills its place, and is 20 characters wide where the place asks - in a toolbar or a row. From `InputProps`.<br>Shown in: [Search and page from a header of your own (First table)](#first-table) |
3260
+ | `ref` | `Ref<HTMLInputElement> \| 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) |
3272
3261
 
3273
3262
  ###### Accessibility
3274
3263
 
@@ -3282,6 +3271,8 @@ The keys of [First table](#first-table) and Input apply here.
3282
3271
  |---|---|---|---|
3283
3272
  | `className` | `string` | — | Classes on the field. |
3284
3273
 
3274
+ Also takes every attribute of `<input>` – without `size`.
3275
+
3285
3276
  ##### Types on this page
3286
3277
 
3287
3278
  ###### `ToolbarSize`
@@ -3308,7 +3299,7 @@ type TableRef = Omit<TableSnapshot<unknown>, "setFilter" | "conditionOf"> & {
3308
3299
 
3309
3300
  - In [server mode](#server-mode) the table searches nothing itself; the term goes to the server in the request.
3310
3301
 
3311
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.42.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).
3312
3303
 
3313
3304
  ### Filter
3314
3305
 
@@ -3349,7 +3340,7 @@ export default function ListFilter() {
3349
3340
  const { Table, Column } = useTable(INCIDENTS, { rowKey: (i) => i.id });
3350
3341
 
3351
3342
  return (
3352
- <Table ariaLabel="Incidents">
3343
+ <Table aria-label="Incidents">
3353
3344
  <Column value="id" label="Incident" rowHeader />
3354
3345
  <Column value="service" label="Service" filter="list" />
3355
3346
  <Column value="assignee" label="Assignee" filter="list" />
@@ -3385,7 +3376,7 @@ export default function RangeFilter() {
3385
3376
  const { Table, Column } = useTable(INVOICES, { rowKey: (i) => i.id });
3386
3377
 
3387
3378
  return (
3388
- <Table ariaLabel="Invoices">
3379
+ <Table aria-label="Invoices">
3389
3380
  <Column value="id" label="Invoice" rowHeader />
3390
3381
  <Column value="supplier" label="Supplier" />
3391
3382
  <Column value="amount" label="Amount (€)" format={{ decimals: 2 }} filter="range" aggregate="sum" />
@@ -3433,7 +3424,7 @@ export default function OwnFilterMinimal() {
3433
3424
  const { Table, Column } = useTable(INVOICES, { rowKey: (i) => i.id });
3434
3425
 
3435
3426
  return (
3436
- <Table ariaLabel="Invoices">
3427
+ <Table aria-label="Invoices">
3437
3428
  <Column value="id" label="Invoice" rowHeader />
3438
3429
  <Column value="supplier" label="Supplier" />
3439
3430
  <Column value="due" label="Due" format="date" filter={overdue} />
@@ -3485,7 +3476,7 @@ export default function OwnFilter() {
3485
3476
  const { Table, Column } = useTable(PEOPLE, { rowKey: (p) => p.id });
3486
3477
 
3487
3478
  return (
3488
- <Table ariaLabel="Team">
3479
+ <Table aria-label="Team">
3489
3480
  <Column value="name" label="Person" rowHeader />
3490
3481
  <Column value="role" label="Role" />
3491
3482
  <Column value="capacity" label="Hours a week" filter={workload} />
@@ -3558,7 +3549,7 @@ export default function ConditionsFromOutside() {
3558
3549
  </Button>
3559
3550
  </Stack>
3560
3551
 
3561
- <Table ariaLabel="Shipments">
3552
+ <Table aria-label="Shipments">
3562
3553
  <Toolbar>
3563
3554
  <Search placeholder="Shipment or customer" />
3564
3555
  </Toolbar>
@@ -3757,7 +3748,7 @@ export default function FieldNoColumnShows() {
3757
3748
  const { Table, Column } = t;
3758
3749
 
3759
3750
  return (
3760
- <Table ariaLabel="Shipments by tour">
3751
+ <Table aria-label="Shipments by tour">
3761
3752
  <Toolbar>
3762
3753
  <Search placeholder="Shipment or customer" />
3763
3754
  <MultiSelect
@@ -3986,7 +3977,7 @@ export default function RowsFromARequest() {
3986
3977
  const { Table, Column } = t;
3987
3978
 
3988
3979
  return (
3989
- <Table ariaLabel="Shipments from a request" loading={isPending}>
3980
+ <Table aria-label="Shipments from a request" loading={isPending}>
3990
3981
  <Toolbar>
3991
3982
  <MultiSelect<Status>
3992
3983
  aria-label="Status"
@@ -4213,7 +4204,7 @@ export default function QuestionOverSeveralFields() {
4213
4204
  />
4214
4205
  </Stack>
4215
4206
 
4216
- <Table ariaLabel="Shipments and their windows">
4207
+ <Table aria-label="Shipments and their windows">
4217
4208
  <Toolbar />
4218
4209
  <Column value="id" label="Shipment" rowHeader />
4219
4210
  <Column value="customer" label="Customer" />
@@ -4266,7 +4257,7 @@ export default function OfferTheValuesThatOccur() {
4266
4257
  const { Table, Column } = useTable(PEOPLE, { rowKey: (p) => p.id });
4267
4258
 
4268
4259
  return (
4269
- <Table ariaLabel="Team">
4260
+ <Table aria-label="Team">
4270
4261
  <Column value="name" label="Person" rowHeader />
4271
4262
  <Column value="role" label="Role" />
4272
4263
  <Column value="capacity" label="Hours a week" filter={atLeast} />
@@ -4335,7 +4326,7 @@ type Absent = null | undefined;
4335
4326
  - No text filter per column: the search covers text.
4336
4327
  - In [server mode](#server-mode) a list filter offers what the application names; the table cannot count values it does not hold.
4337
4328
 
4338
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.42.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).
4339
4330
 
4340
4331
  ### Pre-filter
4341
4332
 
@@ -4392,7 +4383,7 @@ export default function PreFilter() {
4392
4383
  </option>
4393
4384
  ))}
4394
4385
  </Select>
4395
- <Table ariaLabel="Shipments of the depot" empty="This depot has no shipments today.">
4386
+ <Table aria-label="Shipments of the depot" empty="This depot has no shipments today.">
4396
4387
  <Toolbar>
4397
4388
  <Search placeholder="Shipment or customer" />
4398
4389
  </Toolbar>
@@ -4423,12 +4414,6 @@ From `TableProps` — the full table stands on [First table](#first-table).
4423
4414
  | [`empty`](#first-table) | `ReactNode` | — | What stands in the body when there are no rows. Empty because of a filter the table shows itself – with the way back. |
4424
4415
  | [`children`](#first-table) | `ReactNode` | — | Columns, `RowDetail`, `RowActions` and the unbound parts. |
4425
4416
 
4426
- ###### Accessibility
4427
-
4428
- | Prop | Type | Default | Description |
4429
- |---|---|---|---|
4430
- | [`ariaLabel`](#first-table) | `string` | — | Accessible name of the table (not of the outer frame). |
4431
-
4432
4417
  From `TableOptions` — the full table stands on [First table](#first-table).
4433
4418
 
4434
4419
  | Prop | Type | Default | Description |
@@ -4516,7 +4501,7 @@ const SHIPMENTS: Shipment[] = [
4516
4501
  export default function OneLevel() {
4517
4502
  const { Table, Column } = useTable(SHIPMENTS, { rowKey: (s) => s.id, defaultGrouping: "tour" });
4518
4503
  return (
4519
- <Table ariaLabel="Shipments by tour">
4504
+ <Table aria-label="Shipments by tour">
4520
4505
  <Column value="id" label="Shipment" rowHeader />
4521
4506
  <Column value="tour" label="Tour" />
4522
4507
  <Column value="customer" label="Customer" />
@@ -4554,7 +4539,7 @@ const INCIDENTS: Incident[] = [
4554
4539
  export default function NothingDeclared() {
4555
4540
  const { Table, Column } = useTable(INCIDENTS, { rowKey: (i) => i.id });
4556
4541
  return (
4557
- <Table ariaLabel="Incidents">
4542
+ <Table aria-label="Incidents">
4558
4543
  <Toolbar>
4559
4544
  <ColumnMenu />
4560
4545
  </Toolbar>
@@ -4607,7 +4592,7 @@ export default function TwoLevels() {
4607
4592
  const { Table, Column } = useTable(INVOICES, { rowKey: (i) => i.id, defaultGrouping: ["costCentre", "supplier"] });
4608
4593
 
4609
4594
  return (
4610
- <Table ariaLabel="Invoices by cost centre and supplier">
4595
+ <Table aria-label="Invoices by cost centre and supplier">
4611
4596
  <Toolbar>
4612
4597
  <ColumnMenu />
4613
4598
  </Toolbar>
@@ -4654,7 +4639,7 @@ const INCIDENTS: Incident[] = [
4654
4639
  export default function ThreeLevels() {
4655
4640
  const { Table, Column } = useTable(INCIDENTS, { rowKey: (i) => i.id, defaultGrouping: ["tier", "team", "service"] });
4656
4641
  return (
4657
- <Table ariaLabel="Incidents by tier, team and service">
4642
+ <Table aria-label="Incidents by tier, team and service">
4658
4643
  <Column value="service" label="Service" />
4659
4644
  <Column value="id" label="Incident" rowHeader />
4660
4645
  <Column value="tier" label="Tier" />
@@ -4693,7 +4678,7 @@ const INVOICES: Invoice[] = [
4693
4678
  export default function ByMonth() {
4694
4679
  const { Table, Column } = useTable(INVOICES, { rowKey: (i) => i.id, defaultGrouping: "received" });
4695
4680
  return (
4696
- <Table ariaLabel="Invoices by month received">
4681
+ <Table aria-label="Invoices by month received">
4697
4682
  <Column value="received" label="Received" format="date" group="month" />
4698
4683
  <Column value="id" label="Invoice" rowHeader />
4699
4684
  <Column value="supplier" label="Supplier" />
@@ -4731,7 +4716,7 @@ const band = (amount: number) => (amount < 1000 ? "Small (under €1,000)" : amo
4731
4716
  export default function InBands() {
4732
4717
  const { Table, Column } = useTable(INVOICES, { rowKey: (i) => i.id, defaultGrouping: "size" });
4733
4718
  return (
4734
- <Table ariaLabel="Invoices by size">
4719
+ <Table aria-label="Invoices by size">
4735
4720
  <Column id="size" value={(i) => i.amount} label="Size" groupValue={band} format={{ decimals: 2 }} />
4736
4721
  <Column value="id" label="Invoice" rowHeader />
4737
4722
  <Column value="supplier" label="Supplier" />
@@ -4773,7 +4758,7 @@ const dayOf = (d: Date) => `${d.getDate()} March, ${d.toLocaleDateString("en-GB"
4773
4758
  export default function KeyThatIsNoColumn() {
4774
4759
  const { Table, Column, GroupBy } = useTable(INCIDENTS, { rowKey: (i) => i.id, defaultGrouping: "day" });
4775
4760
  return (
4776
- <Table ariaLabel="Incidents by day">
4761
+ <Table aria-label="Incidents by day">
4777
4762
  <Toolbar>
4778
4763
  <ColumnMenu />
4779
4764
  </Toolbar>
@@ -4818,7 +4803,7 @@ export default function GroupsByAggregate() {
4818
4803
  defaultSort: { column: "weight", direction: "desc" },
4819
4804
  });
4820
4805
  return (
4821
- <Table ariaLabel="Shipments by tour, heaviest first">
4806
+ <Table aria-label="Shipments by tour, heaviest first">
4822
4807
  <Column value="tour" label="Tour" />
4823
4808
  <Column value="id" label="Shipment" rowHeader />
4824
4809
  <Column value="customer" label="Customer" />
@@ -4920,7 +4905,7 @@ export default function Overview() {
4920
4905
  const { Table, Column } = t;
4921
4906
  return (
4922
4907
  <Stack gap={3}>
4923
- <Table ariaLabel="Budget by cost centre" maxHeight="480px" stickyHeader>
4908
+ <Table aria-label="Budget by cost centre" maxHeight="480px" stickyHeader>
4924
4909
  <Column value="centre" label="Cost centre" />
4925
4910
  <Column value="month" label="Month" rowHeader />
4926
4911
  <Column value="budget" label="Budget (€)" aggregate="sum" />
@@ -4975,7 +4960,7 @@ export default function WholeGroup() {
4975
4960
  pageSize: 5,
4976
4961
  });
4977
4962
  return (
4978
- <Table ariaLabel="Shipments to reschedule" selectable>
4963
+ <Table aria-label="Shipments to reschedule" selectable>
4979
4964
  <Toolbar />
4980
4965
  <Pagination pageSizes={[5, 10]} />
4981
4966
  <Column value="tour" label="Tour" />
@@ -5022,7 +5007,7 @@ const INVOICES: Invoice[] = [
5022
5007
  export default function Paging() {
5023
5008
  const { Table, Column } = useTable(INVOICES, { rowKey: (i) => i.id, defaultGrouping: ["costCentre", "supplier"], pageSize: 5 });
5024
5009
  return (
5025
- <Table ariaLabel="Invoices, five lines per page">
5010
+ <Table aria-label="Invoices, five lines per page">
5026
5011
  <Pagination pageSizes={[5, 10, 25]} />
5027
5012
  <Column value="supplier" label="Supplier" />
5028
5013
  <Column value="id" label="Invoice" rowHeader />
@@ -5061,7 +5046,7 @@ const SHIPMENTS: Shipment[] = [
5061
5046
  export default function FilterAndSearch() {
5062
5047
  const { Table, Column } = useTable(SHIPMENTS, { rowKey: (s) => s.id, defaultGrouping: "tour" });
5063
5048
  return (
5064
- <Table ariaLabel="Shipments by tour, searchable">
5049
+ <Table aria-label="Shipments by tour, searchable">
5065
5050
  <Toolbar>
5066
5051
  <Search />
5067
5052
  </Toolbar>
@@ -5102,7 +5087,7 @@ export default function SwitchedOff() {
5102
5087
  const report = useTable(INCIDENTS, { rowKey: (i) => i.id });
5103
5088
  return (
5104
5089
  <Stack gap={4}>
5105
- <list.Table ariaLabel="Incidents, groupable but not by id">
5090
+ <list.Table aria-label="Incidents, groupable but not by id">
5106
5091
  <Toolbar>
5107
5092
  <ColumnMenu />
5108
5093
  </Toolbar>
@@ -5111,7 +5096,7 @@ export default function SwitchedOff() {
5111
5096
  <list.Column value="severity" label="Severity" />
5112
5097
  <list.Column value="minutes" label="Minutes to resolve" groupable={false} aggregate="sum" />
5113
5098
  </list.Table>
5114
- <report.Table ariaLabel="Incident report, never grouped" groupable={false}>
5099
+ <report.Table aria-label="Incident report, never grouped" groupable={false}>
5115
5100
  <Toolbar>
5116
5101
  <ColumnMenu />
5117
5102
  </Toolbar>
@@ -5152,7 +5137,7 @@ const WORK: WorkItem[] = [
5152
5137
  export default function NoValue() {
5153
5138
  const { Table, Column } = useTable(WORK, { rowKey: (w) => w.id, defaultGrouping: "person" });
5154
5139
  return (
5155
- <Table ariaLabel="Work items by person">
5140
+ <Table aria-label="Work items by person">
5156
5141
  <Column value="person" label="Person" />
5157
5142
  <Column value="id" label="Item" rowHeader />
5158
5143
  <Column value="name" label="Title" />
@@ -5190,7 +5175,7 @@ const WORK: WorkItem[] = [
5190
5175
  export default function GroupOfOne() {
5191
5176
  const { Table, Column } = useTable(WORK, { rowKey: (w) => w.id, defaultGrouping: ["team", "person"] });
5192
5177
  return (
5193
- <Table ariaLabel="Work items by team and person">
5178
+ <Table aria-label="Work items by team and person">
5194
5179
  <Column value="person" label="Person" />
5195
5180
  <Column value="id" label="Item" rowHeader />
5196
5181
  <Column value="team" label="Team" />
@@ -5235,7 +5220,7 @@ const WORK: WorkItem[] = [
5235
5220
  export default function CompactAndLong() {
5236
5221
  const { Table, Column } = useTable(WORK, { rowKey: (w) => w.id, defaultGrouping: ["team", "project", "person"] });
5237
5222
  return (
5238
- <Table ariaLabel="Backlog, compact" density="compact" selectable>
5223
+ <Table aria-label="Backlog, compact" density="compact" selectable>
5239
5224
  <Column value="person" label="Person" />
5240
5225
  <Column value="id" label="Item" rowHeader />
5241
5226
  <Column value="team" label="Team" />
@@ -5296,7 +5281,7 @@ export default function TwentyThousand() {
5296
5281
  virtual: true,
5297
5282
  });
5298
5283
  return (
5299
- <Table ariaLabel="Requests" maxHeight="480px" stickyHeader>
5284
+ <Table aria-label="Requests" maxHeight="480px" stickyHeader>
5300
5285
  <Column value="service" label="Service" />
5301
5286
  <Column value="at" label="Received" format="dateTime" aggregate="range" />
5302
5287
  <Column value="duration" label="Duration (ms)" format={{ decimals: 0 }} aggregate="avg" />
@@ -5508,7 +5493,7 @@ export default function DispatchReport() {
5508
5493
  defaultGrouping: ["depot", "part"],
5509
5494
  });
5510
5495
  return (
5511
- <Table ariaLabel="Deliveries by depot" selectable stickyHeader maxHeight="560px">
5496
+ <Table aria-label="Deliveries by depot" selectable stickyHeader maxHeight="560px">
5512
5497
  <Toolbar>
5513
5498
  <Search />
5514
5499
  <ColumnMenu />
@@ -5590,7 +5575,7 @@ export default function GroupAndFoldFromControls() {
5590
5575
  Fold finished tours
5591
5576
  </Button>
5592
5577
  </Stack>
5593
- <Table ariaLabel="Shipments by tour">
5578
+ <Table aria-label="Shipments by tour">
5594
5579
  <Column value="id" label="Shipment" rowHeader />
5595
5580
  <Column value="tour" label="Tour" />
5596
5581
  <Column value="customer" label="Customer" />
@@ -5623,11 +5608,11 @@ export default function GroupAndFoldFromControls() {
5623
5608
 
5624
5609
  #### Known limits
5625
5610
 
5626
- - No pivot and no more than three levels ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.42.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)).
5627
5612
  - No bar to drag headers onto: grouping is chosen in the column menu.
5628
5613
  - No groups in [server mode](#server-mode): they would be made of one page.
5629
5614
 
5630
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.42.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).
5631
5616
 
5632
5617
  ### Tree rows
5633
5618
 
@@ -5686,7 +5671,7 @@ const UNITS: Unit[] = [
5686
5671
  export default function ASmallTree() {
5687
5672
  const { Table, Column } = useTable(UNITS, { rowKey: (u) => u.id, childRows: (u) => u.children });
5688
5673
  return (
5689
- <Table ariaLabel="Organisation">
5674
+ <Table aria-label="Organisation">
5690
5675
  <Column value="name" label="Unit" rowHeader />
5691
5676
  <Column value="headcount" label="Headcount" />
5692
5677
  </Table>
@@ -5763,7 +5748,7 @@ const UNITS: Unit[] = [
5763
5748
  export default function AnUnevenOrganisation() {
5764
5749
  const { Table, Column } = useTable(UNITS, { rowKey: (u) => u.id, childRows: (u) => u.children, defaultBranches: 1 });
5765
5750
  return (
5766
- <Table ariaLabel="Budget by unit">
5751
+ <Table aria-label="Budget by unit">
5767
5752
  <Toolbar>
5768
5753
  <Search />
5769
5754
  <ColumnMenu />
@@ -5826,7 +5811,7 @@ const PLACES: Place[] = [
5826
5811
  export default function RegionsAndPlaces() {
5827
5812
  const { Table, Column } = useTable(PLACES, { rowKey: (p) => p.id, childRows: (p) => p.children, defaultBranches: 2 });
5828
5813
  return (
5829
- <Table ariaLabel="Sites by region">
5814
+ <Table aria-label="Sites by region">
5830
5815
  <Column value="name" label="Region" rowHeader />
5831
5816
  <Column value="sites" label="Sites" />
5832
5817
  <Column value="postcode" label="Postcode" />
@@ -5894,7 +5879,7 @@ const TEAMS: Team[] = [
5894
5879
  function Employees({ team }: { team: Team }) {
5895
5880
  const { Table, Column } = useTable(team.employees ?? [], { rowKey: (e) => e.id, defaultSort: { column: "name", direction: "asc" } });
5896
5881
  return (
5897
- <Table ariaLabel={`Employees of ${team.name}`} density="compact">
5882
+ <Table aria-label={`Employees of ${team.name}`} density="compact">
5898
5883
  <Column value="name" label="Employee" rowHeader />
5899
5884
  <Column value="role" label="Role" />
5900
5885
  <Column value="since" label="Since" />
@@ -5906,7 +5891,7 @@ function Employees({ team }: { team: Team }) {
5906
5891
  export default function EmployeesInTheDetail() {
5907
5892
  const { Table, Column, RowDetail } = useTable(TEAMS, { rowKey: (t) => t.id, childRows: (t) => t.children, defaultBranches: 1 });
5908
5893
  return (
5909
- <Table ariaLabel="Teams">
5894
+ <Table aria-label="Teams">
5910
5895
  <Column value="name" label="Team" rowHeader />
5911
5896
  <Column value="headcount" label="Headcount" />
5912
5897
  <Column value="hours" label="Hours a week" />
@@ -5994,7 +5979,7 @@ const UNITS: Unit[] = [
5994
5979
  function Staff({ unit }: { unit: Unit }) {
5995
5980
  const { Table, Column } = useTable(unit.staff ?? [], { rowKey: (e) => e.id });
5996
5981
  return (
5997
- <Table ariaLabel={`Staff of ${unit.name}`} density="compact">
5982
+ <Table aria-label={`Staff of ${unit.name}`} density="compact">
5998
5983
  <Column value="name" label="Employee" rowHeader />
5999
5984
  <Column value="role" label="Role" />
6000
5985
  <Column value="hours" label="Hours" />
@@ -6005,7 +5990,7 @@ function Staff({ unit }: { unit: Unit }) {
6005
5990
  export default function OwnStaffAndTeams() {
6006
5991
  const { Table, Column, RowDetail } = useTable(UNITS, { rowKey: (u) => u.id, childRows: (u) => u.children, defaultBranches: ["it"] });
6007
5992
  return (
6008
- <Table ariaLabel="Units with their staff">
5993
+ <Table aria-label="Units with their staff">
6009
5994
  <Column value="name" label="Unit" rowHeader />
6010
5995
  <Column value="headcount" label="Headcount" />
6011
5996
  <Column value="hours" label="Hours a week" />
@@ -6057,7 +6042,7 @@ export default function FromAFlatList() {
6057
6042
  const rows = useMemo(() => nest(FLAT), []);
6058
6043
  const { Table, Column } = useTable(rows, { rowKey: (c) => c.id, childRows: (c) => c.children, defaultBranches: 1 });
6059
6044
  return (
6060
- <Table ariaLabel="Cost centres">
6045
+ <Table aria-label="Cost centres">
6061
6046
  <Column value="name" label="Name" rowHeader />
6062
6047
  <Column value="id" label="Cost centre" />
6063
6048
  <Column value="amount" label="Amount (k€)" />
@@ -6139,7 +6124,7 @@ export default function OpenBranchesFromControls() {
6139
6124
  Show it
6140
6125
  </Button>
6141
6126
  </Stack>
6142
- <Table ariaLabel="Budget by unit">
6127
+ <Table aria-label="Budget by unit">
6143
6128
  <Column value="name" label="Unit" rowHeader />
6144
6129
  <Column value="budget" label="Budget (k€)" />
6145
6130
  <Column value="spent" label="Spent (k€)" />
@@ -6171,12 +6156,6 @@ From `TableProps` — the full table stands on [First table](#first-table).
6171
6156
  | [`density`](#first-table) | `"regular" \| "compact"` | the density of the `UmrissProvider`, else `"regular"` | How tightly the rows stand. |
6172
6157
  | [`children`](#first-table) | `ReactNode` | — | Columns, `RowDetail`, `RowActions` and the unbound parts. |
6173
6158
 
6174
- ###### Accessibility
6175
-
6176
- | Prop | Type | Default | Description |
6177
- |---|---|---|---|
6178
- | [`ariaLabel`](#first-table) | `string` | — | Accessible name of the table (not of the outer frame). |
6179
-
6180
6159
  From `TableOptions` — the full table stands on [First table](#first-table).
6181
6160
 
6182
6161
  | Prop | Type | Default | Description |
@@ -6231,7 +6210,7 @@ From `ToolbarProps` — the full table stands on [Toolbar](#toolbar).
6231
6210
  - Not in [server mode](#server-mode), and no branches loaded on demand yet.
6232
6211
  - One column set for every level; a level without a value shows it as absent.
6233
6212
 
6234
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.42.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).
6235
6214
 
6236
6215
  ### Aggregate
6237
6216
 
@@ -6273,7 +6252,7 @@ const TOURS: Tour[] = [
6273
6252
  export default function SumAndAverage() {
6274
6253
  const { Table, Column } = useTable(TOURS, { rowKey: (t) => t.id });
6275
6254
  return (
6276
- <Table ariaLabel="Tours">
6255
+ <Table aria-label="Tours">
6277
6256
  <Toolbar>
6278
6257
  <Search placeholder="Search depot" />
6279
6258
  </Toolbar>
@@ -6313,7 +6292,7 @@ const INCIDENTS: Incident[] = [
6313
6292
  export default function MinimumAndMaximum() {
6314
6293
  const { Table, Column } = useTable(INCIDENTS, { rowKey: (i) => i.id });
6315
6294
  return (
6316
- <Table ariaLabel="Time to acknowledge">
6295
+ <Table aria-label="Time to acknowledge">
6317
6296
  <Column value="id" label="Incident" rowHeader />
6318
6297
  <Column value="toAcknowledge" label="Minutes to acknowledge" aggregate="max" />
6319
6298
  <Column value="opened" label="Opened" format="dateTime" aggregate="min" />
@@ -6353,7 +6332,7 @@ const WORK: WorkItem[] = [
6353
6332
  export default function RangeOfDates() {
6354
6333
  const { Table, Column } = useTable(WORK, { rowKey: (w) => w.id, defaultGrouping: ["project", "person"] });
6355
6334
  return (
6356
- <Table ariaLabel="Work items by project and person">
6335
+ <Table aria-label="Work items by project and person">
6357
6336
  <Column value="person" label="Person" />
6358
6337
  <Column value="project" label="Project" />
6359
6338
  <Column value="id" label="Item" rowHeader />
@@ -6392,7 +6371,7 @@ const ALERTS: Alert[] = [
6392
6371
  export default function CountAndDistinct() {
6393
6372
  const { Table, Column } = useTable(ALERTS, { rowKey: (a) => a.id });
6394
6373
  return (
6395
- <Table ariaLabel="Alerts this morning">
6374
+ <Table aria-label="Alerts this morning">
6396
6375
  <Column value="id" label="Alert" rowHeader aggregate="count" />
6397
6376
  <Column value="service" label="Service" aggregate="distinct" />
6398
6377
  <Column value="assignee" label="Assignee" aggregate="distinct" />
@@ -6429,7 +6408,7 @@ const INVOICES: Invoice[] = [
6429
6408
  export default function ShareBar() {
6430
6409
  const { Table, Column } = useTable(INVOICES, { rowKey: (i) => i.id, defaultGrouping: ["costCentre", "supplier"] });
6431
6410
  return (
6432
- <Table ariaLabel="Invoices by cost centre and supplier">
6411
+ <Table aria-label="Invoices by cost centre and supplier">
6433
6412
  <Column value="supplier" label="Supplier" />
6434
6413
  <Column value="costCentre" label="Cost centre" />
6435
6414
  {/* The amount with its bar right beside the groups: after the invoice
@@ -6469,7 +6448,7 @@ const rate = (t: Tour) => t.failed / t.parcels;
6469
6448
  export default function NeverAnAverageOfAverages() {
6470
6449
  const { Table, Column } = useTable(TOURS, { rowKey: (t) => t.id, defaultGrouping: "depot" });
6471
6450
  return (
6472
- <Table ariaLabel="Failed deliveries by depot">
6451
+ <Table aria-label="Failed deliveries by depot">
6473
6452
  <Column value="depot" label="Depot" />
6474
6453
  <Column value="id" label="Tour" rowHeader />
6475
6454
  <Column value="parcels" label="Parcels" format="count" aggregate="sum" share={false} />
@@ -6513,7 +6492,7 @@ const LINES: Line[] = [
6513
6492
  export default function OwnAggregate() {
6514
6493
  const { Table, Column } = useTable(LINES, { rowKey: (l) => l.id, defaultGrouping: "costCentre" });
6515
6494
  return (
6516
- <Table ariaLabel="Invoice lines by cost centre">
6495
+ <Table aria-label="Invoice lines by cost centre">
6517
6496
  <Column value="costCentre" label="Cost centre" />
6518
6497
  <Column value="description" label="Description" rowHeader />
6519
6498
  <Column value="quantity" label="Quantity" aggregate="sum" />
@@ -6575,7 +6554,7 @@ const READINGS: Reading[] = [
6575
6554
  export default function WorstVerdict() {
6576
6555
  const { Table, Column, VerdictColumn } = useTable(READINGS, { rowKey: (r) => r.id, defaultGrouping: ["kiln", "zone"] });
6577
6556
  return (
6578
- <Table ariaLabel="Kiln temperature by zone">
6557
+ <Table aria-label="Kiln temperature by zone">
6579
6558
  <Column value="zone" label="Zone" />
6580
6559
  <Column value="kiln" label="Kiln" />
6581
6560
  <Column value="at" label="Hour" rowHeader />
@@ -6630,7 +6609,7 @@ export default function MatrixWithTotals() {
6630
6609
  const { rows, years } = pivot(FACTS);
6631
6610
  const { Table, Column } = useTable(rows, { rowKey: (r) => r.plant });
6632
6611
  return (
6633
- <Table ariaLabel="Output by plant and year">
6612
+ <Table aria-label="Output by plant and year">
6634
6613
  <Column value="plant" label="Plant" rowHeader />
6635
6614
  {years.map((y) => (
6636
6615
  <Column key={y} id={`y${y}`} label={String(y)} value={(r: Row) => r.byYear[y]} aggregate="sum" format="count" filter="range" />
@@ -6655,7 +6634,7 @@ The keys of [First table](#first-table) and Input apply here.
6655
6634
 
6656
6635
  | Prop | Type | Default | Description |
6657
6636
  |---|---|---|---|
6658
- | `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 |
6659
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 |
6660
6639
 
6661
6640
  ##### Types on this page
@@ -6724,9 +6703,9 @@ type Displayable = string | number | boolean | Date;
6724
6703
 
6725
6704
  #### Known limits
6726
6705
 
6727
- - 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.
6728
6707
 
6729
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.42.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).
6730
6709
 
6731
6710
  ## Rows
6732
6711
 
@@ -6774,7 +6753,7 @@ export default function Selection() {
6774
6753
 
6775
6754
  return (
6776
6755
  <Stack gap={3}>
6777
- <Table selectable ariaLabel="Shipments">
6756
+ <Table selectable aria-label="Shipments">
6778
6757
  <Toolbar>
6779
6758
  <Search placeholder="Search customer" />
6780
6759
  </Toolbar>
@@ -6832,7 +6811,7 @@ export default function HoldTheSelectionYourself() {
6832
6811
  {selection.count} of {SHIPMENTS.length} to load
6833
6812
  </Text>
6834
6813
  </Stack>
6835
- <Table selectable ariaLabel="Shipments">
6814
+ <Table selectable aria-label="Shipments">
6836
6815
  <Column value="id" label="Shipment" rowHeader />
6837
6816
  <Column value="customer" label="Customer" />
6838
6817
  <Column value="tour" label="Tour" />
@@ -6842,6 +6821,57 @@ export default function HoldTheSelectionYourself() {
6842
6821
  }
6843
6822
  ```
6844
6823
 
6824
+ ##### The current row
6825
+
6826
+ `currentRow` marks the row you hold and `onCurrentRowChange` reports a click on one - or Enter on the focused machine name. The current row and the selection are independent: choosing a row ticks nothing, and ticking moves nothing.
6827
+
6828
+ ```tsx
6829
+ import { useState } from "react";
6830
+ import { Stack, Text } from "@umriss-ui/core";
6831
+ import { useTable } from "@umriss-ui/table";
6832
+
6833
+ interface Machine {
6834
+ id: string;
6835
+ name: string;
6836
+ line: string;
6837
+ state: string;
6838
+ }
6839
+
6840
+ const MACHINES: Machine[] = [
6841
+ { id: "M-101", name: "Press 4", line: "Line 1", state: "Running" },
6842
+ { id: "M-102", name: "Lathe 2", line: "Line 1", state: "Stopped" },
6843
+ { id: "M-201", name: "Mill 7", line: "Line 2", state: "Running" },
6844
+ { id: "M-202", name: "Grinder 1", line: "Line 2", state: "Service" },
6845
+ { id: "M-301", name: "Welder 3", line: "Line 3", state: "Running" },
6846
+ ];
6847
+
6848
+ export default function TheCurrentRow() {
6849
+ const [current, setCurrent] = useState<string | null>("M-201");
6850
+ const { Table, Column } = useTable(MACHINES, { rowKey: (m) => m.id });
6851
+ const machine = MACHINES.find((m) => m.id === current);
6852
+
6853
+ return (
6854
+ <Stack direction="row" gap={4} align="start" wrap>
6855
+ <Table selectable aria-label="Machines" currentRow={current} onCurrentRowChange={(key) => setCurrent(key)}>
6856
+ <Column value="name" label="Machine" rowHeader />
6857
+ <Column value="line" label="Line" />
6858
+ <Column value="state" label="State" />
6859
+ </Table>
6860
+ <Stack gap={1}>
6861
+ <Text size="sm" weight="medium">
6862
+ {machine ? machine.name : "No machine chosen"}
6863
+ </Text>
6864
+ {machine && (
6865
+ <Text size="xs" tone="muted">
6866
+ {machine.id} on {machine.line}, {machine.state.toLowerCase()}.
6867
+ </Text>
6868
+ )}
6869
+ </Stack>
6870
+ </Stack>
6871
+ );
6872
+ }
6873
+ ```
6874
+
6845
6875
  #### When to use something else
6846
6876
 
6847
6877
  - Actions that act on the ticked rows → RowActions
@@ -6857,14 +6887,10 @@ From `TableProps` — the full table stands on [First table](#first-table).
6857
6887
  | Prop | Type | Default | Description |
6858
6888
  |---|---|---|---|
6859
6889
  | [`selectable`](#first-table) | `boolean` | — | Adds the selection column. "All" means: the filtered set. |
6890
+ | [`currentRow`](#first-table) | `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. |
6891
+ | [`onCurrentRowChange`](#first-table) | `(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. |
6860
6892
  | [`children`](#first-table) | `ReactNode` | — | Columns, `RowDetail`, `RowActions` and the unbound parts. |
6861
6893
 
6862
- ###### Accessibility
6863
-
6864
- | Prop | Type | Default | Description |
6865
- |---|---|---|---|
6866
- | [`ariaLabel`](#first-table) | `string` | — | Accessible name of the table (not of the outer frame). |
6867
-
6868
6894
  From `TableOptions` — the full table stands on [First table](#first-table).
6869
6895
 
6870
6896
  | Prop | Type | Default | Description |
@@ -6906,9 +6932,9 @@ From `ToolbarProps` — the full table stands on [Toolbar](#toolbar).
6906
6932
 
6907
6933
  #### Known limits
6908
6934
 
6909
- - 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.
6910
6936
 
6911
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.42.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).
6912
6938
 
6913
6939
  ### Row appearance
6914
6940
 
@@ -6949,7 +6975,7 @@ function Services({ caption, density }: { caption: string; density?: "regular" |
6949
6975
  <Text size="xs" tone="muted">
6950
6976
  {caption}
6951
6977
  </Text>
6952
- <Table density={density} ariaLabel={`Services, ${caption}`}>
6978
+ <Table density={density} aria-label={`Services, ${caption}`}>
6953
6979
  <Column value="name" label="Service" rowHeader />
6954
6980
  <Column value="team" label="Team" />
6955
6981
  <Column value="p95" label="p95 latency (ms)" />
@@ -7004,7 +7030,7 @@ export default function StylingRows() {
7004
7030
  return (
7005
7031
  <>
7006
7032
  <style>{STYLE}</style>
7007
- <Table className="invoice-list" ariaLabel="Invoices" rowProps={(i) => ({ "data-overdue": i.overdue ? "" : undefined })}>
7033
+ <Table className="invoice-list" aria-label="Invoices" rowProps={(i) => ({ "data-overdue": i.overdue ? "" : undefined })}>
7008
7034
  <Column value="id" label="Invoice" rowHeader />
7009
7035
  <Column value="supplier" label="Supplier" />
7010
7036
  <Column value="due" label="Due" format="date" />
@@ -7041,7 +7067,7 @@ const NONE: Incident[] = [];
7041
7067
  function Incidents({ rows, label, ...props }: { rows: Incident[]; label: string; loading?: boolean; empty?: ReactNode; search?: string }) {
7042
7068
  const { Table, Column } = useTable(rows, { rowKey: (i) => i.id, initialView: props.search ? { search: props.search } : undefined });
7043
7069
  return (
7044
- <Table ariaLabel={label} loading={props.loading} empty={props.empty}>
7070
+ <Table aria-label={label} loading={props.loading} empty={props.empty}>
7045
7071
  {props.search !== undefined && (
7046
7072
  <Toolbar>
7047
7073
  <Search placeholder="Search incidents" />
@@ -7109,7 +7135,7 @@ export default function StripesAcrossAWideTable() {
7109
7135
  const { Table, Column } = useTable(SHIPMENTS, { rowKey: (s) => s.id });
7110
7136
 
7111
7137
  return (
7112
- <Table striped stickyRowHeader ariaLabel="Shipments with their addresses">
7138
+ <Table striped stickyRowHeader aria-label="Shipments with their addresses">
7113
7139
  <Column value="id" label="Shipment" rowHeader />
7114
7140
  <Column value="customer" label="Customer" />
7115
7141
  <Column value="street" label="Street" />
@@ -7147,18 +7173,6 @@ From `TableProps` — the full table stands on [First table](#first-table).
7147
7173
  | [`rowProps`](#first-table) | `(row: Z) => `[`RowAttributes`](#first-table) | — | Classes and data attributes per row. |
7148
7174
  | [`children`](#first-table) | `ReactNode` | — | Columns, `RowDetail`, `RowActions` and the unbound parts. |
7149
7175
 
7150
- ###### Accessibility
7151
-
7152
- | Prop | Type | Default | Description |
7153
- |---|---|---|---|
7154
- | [`ariaLabel`](#first-table) | `string` | — | Accessible name of the table (not of the outer frame). |
7155
-
7156
- ###### Styling
7157
-
7158
- | Prop | Type | Default | Description |
7159
- |---|---|---|---|
7160
- | [`className`](#first-table) | `string` | — | Classes on the outer frame of the table. |
7161
-
7162
7176
  From `TableOptions` — the full table stands on [First table](#first-table).
7163
7177
 
7164
7178
  | Prop | Type | Default | Description |
@@ -7243,7 +7257,7 @@ export default function OpenADetail() {
7243
7257
  const { Table, Column, RowDetail } = useTable(SHIPMENTS, { rowKey: (s) => s.id });
7244
7258
 
7245
7259
  return (
7246
- <Table ariaLabel="Shipments">
7260
+ <Table aria-label="Shipments">
7247
7261
  <Column value="id" label="Shipment" rowHeader />
7248
7262
  <Column value="customer" label="Customer" />
7249
7263
  <RowDetail>
@@ -7285,7 +7299,7 @@ export default function KeepRowsOpen() {
7285
7299
  const { Table, Column, RowDetail } = useTable(SHIPMENTS, { rowKey: (s) => s.id });
7286
7300
 
7287
7301
  return (
7288
- <Table ariaLabel="Shipments with notes">
7302
+ <Table aria-label="Shipments with notes">
7289
7303
  <Toolbar>
7290
7304
  <Search placeholder="Search customer" />
7291
7305
  </Toolbar>
@@ -7432,7 +7446,7 @@ const time = (t: number) => new Date(t).toLocaleTimeString("en-GB", { hour: "2-d
7432
7446
  function Stops({ tour }: { tour: Tour }) {
7433
7447
  const { Table, Column } = useTable(tour.stops, { rowKey: (s) => s.id });
7434
7448
  return (
7435
- <Table density="compact" ariaLabel={`Stops of ${tour.id}`}>
7449
+ <Table density="compact" aria-label={`Stops of ${tour.id}`}>
7436
7450
  <Column value="shipment" label="Shipment" rowHeader />
7437
7451
  <Column value="customer" label="Customer" />
7438
7452
  <Column id="window" label="Window" value={(s) => `${time(s.window[0])}–${time(s.window[1])}`} />
@@ -7445,7 +7459,7 @@ export default function StopsOfATour() {
7445
7459
  const { Table, Column, RowDetail } = useTable(TOURS, { rowKey: (t) => t.id });
7446
7460
 
7447
7461
  return (
7448
- <Table ariaLabel="Tours">
7462
+ <Table aria-label="Tours">
7449
7463
  <Column value="id" label="Tour" rowHeader />
7450
7464
  <Column id="driver" label="Driver" value={(t) => DRIVERS.find((d) => d.id === t.driver)?.name ?? t.driver} />
7451
7465
  <Column id="stops" label="Stops" value={(t) => t.stops.length} />
@@ -7499,7 +7513,7 @@ export default function OpenADetailFromOutside() {
7499
7513
  Close all details
7500
7514
  </Button>
7501
7515
  </Stack>
7502
- <Table ariaLabel="Shipments">
7516
+ <Table aria-label="Shipments">
7503
7517
  <Column value="id" label="Shipment" rowHeader />
7504
7518
  <Column value="customer" label="Customer" />
7505
7519
  <Column value="window" label="Window" />
@@ -7576,7 +7590,7 @@ export default function TwoActions() {
7576
7590
 
7577
7591
  return (
7578
7592
  <Stack gap={3}>
7579
- <Table ariaLabel="Invoices">
7593
+ <Table aria-label="Invoices">
7580
7594
  <Column value="id" label="Invoice" rowHeader />
7581
7595
  <Column value="supplier" label="Supplier" />
7582
7596
  <RowActions>
@@ -7620,7 +7634,7 @@ export default function ActOnASelection() {
7620
7634
 
7621
7635
  return (
7622
7636
  <Stack gap={3}>
7623
- <Table selectable ariaLabel="Invoices awaiting approval">
7637
+ <Table selectable aria-label="Invoices awaiting approval">
7624
7638
  <Toolbar />
7625
7639
  <Column value="id" label="Invoice" rowHeader />
7626
7640
  <Column value="supplier" label="Supplier" />
@@ -7665,7 +7679,7 @@ export default function MoreThanTwo() {
7665
7679
 
7666
7680
  return (
7667
7681
  <Stack gap={3}>
7668
- <Table ariaLabel="Invoices">
7682
+ <Table aria-label="Invoices">
7669
7683
  <Column value="id" label="Invoice" rowHeader />
7670
7684
  <Column value="supplier" label="Supplier" />
7671
7685
  <RowActions>
@@ -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
 
@@ -7770,7 +7784,7 @@ export default function SearchArrangeAndExport() {
7770
7784
 
7771
7785
  return (
7772
7786
  <Stack gap={3}>
7773
- <Table selectable ariaLabel="Incidents">
7787
+ <Table selectable aria-label="Incidents">
7774
7788
  <Toolbar>
7775
7789
  <Search placeholder="Search incidents" />
7776
7790
  <ColumnMenu />
@@ -7823,7 +7837,7 @@ export default function PlaceItOutside() {
7823
7837
  <Search of={t} placeholder="Search incidents" />
7824
7838
  <Export of={t} filename="incidents.csv" />
7825
7839
  </Toolbar>
7826
- <Table ariaLabel="Incidents">
7840
+ <Table aria-label="Incidents">
7827
7841
  <Column value="id" label="Incident" rowHeader />
7828
7842
  <Column value="title" label="Title" />
7829
7843
  </Table>
@@ -7878,7 +7892,7 @@ export default function PartsOutsideAToolbar() {
7878
7892
  <CardBody>
7879
7893
  <Stack gap={2}>
7880
7894
  <Pagination of={t} pageSizes={[4, 10]} />
7881
- <Table ariaLabel="Incidents">
7895
+ <Table aria-label="Incidents">
7882
7896
  <Column value="id" label="Incident" rowHeader />
7883
7897
  <Column value="title" label="Title" />
7884
7898
  <Column value="service" label="Service" />
@@ -7906,9 +7920,10 @@ 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 37 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) |
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) |
7912
7927
 
7913
7928
  ###### Styling
7914
7929
 
@@ -7916,6 +7931,8 @@ The parts the table puts in name themselves: the search field “Search table”
7916
7931
  |---|---|---|---|
7917
7932
  | `className` | `string` | — | Classes on the table toolbar. |
7918
7933
 
7934
+ Also takes every attribute of `<div>` – without `children`.
7935
+
7919
7936
  ##### Types on this page
7920
7937
 
7921
7938
  ###### `ToolbarSize`
@@ -8135,7 +8152,7 @@ export default function ControlsAtTheToolbarsSize() {
8135
8152
  const { Table, Column } = t;
8136
8153
 
8137
8154
  return (
8138
- <Table ariaLabel="Shipments">
8155
+ <Table aria-label="Shipments">
8139
8156
  <Toolbar>
8140
8157
  <Search placeholder="Shipment or customer" />
8141
8158
  <MultiSelect
@@ -8339,7 +8356,7 @@ export default function ALargerToolbar() {
8339
8356
  const { Table, Column } = t;
8340
8357
 
8341
8358
  return (
8342
- <Table ariaLabel="Shipments">
8359
+ <Table aria-label="Shipments">
8343
8360
  <Toolbar size="md">
8344
8361
  <Search placeholder="Shipment or customer" />
8345
8362
  <MultiSelect
@@ -8572,7 +8589,7 @@ export default function ADispatchersBar() {
8572
8589
  </Button>
8573
8590
  </Stack>
8574
8591
 
8575
- <Table ariaLabel="Shipments of the day">
8592
+ <Table aria-label="Shipments of the day">
8576
8593
  <Toolbar size="md">
8577
8594
  <Search placeholder="Shipment" />
8578
8595
  <MultiSelect
@@ -8628,9 +8645,10 @@ The keys of [First table](#first-table), Input, [ColumnMenu](#columnmenu), Selec
8628
8645
 
8629
8646
  | Prop | Type | Default | Description |
8630
8647
  |---|---|---|---|
8631
- | `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 37 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 |
8632
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) |
8633
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) |
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) |
8634
8652
 
8635
8653
  ###### Styling
8636
8654
 
@@ -8638,6 +8656,8 @@ The keys of [First table](#first-table), Input, [ColumnMenu](#columnmenu), Selec
8638
8656
  |---|---|---|---|
8639
8657
  | `className` | `string` | — | Classes on the table toolbar. |
8640
8658
 
8659
+ Also takes every attribute of `<div>` – without `children`.
8660
+
8641
8661
  ##### `RowFilter<Z, B>`
8642
8662
 
8643
8663
  | Prop | Type | Default | Description |
@@ -8709,7 +8729,7 @@ export default function ShowHideAndArrange() {
8709
8729
  const { Table, Column } = useTable(CENTRES, { rowKey: (c) => c.name });
8710
8730
 
8711
8731
  return (
8712
- <Table stickyRowHeader ariaLabel="Cost centres in March">
8732
+ <Table stickyRowHeader aria-label="Cost centres in March">
8713
8733
  <Toolbar>
8714
8734
  <ColumnMenu />
8715
8735
  </Toolbar>
@@ -8748,7 +8768,7 @@ export default function PinAColumn() {
8748
8768
  const { Table, Column } = useTable(CENTRES, { rowKey: (c) => c.name });
8749
8769
 
8750
8770
  return (
8751
- <Table ariaLabel="Cost centres by month">
8771
+ <Table aria-label="Cost centres by month">
8752
8772
  <Toolbar>
8753
8773
  <ColumnMenu />
8754
8774
  </Toolbar>
@@ -8778,6 +8798,9 @@ export default function PinAColumn() {
8778
8798
  |---|---|---|---|
8779
8799
  | `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) |
8780
8800
  | `of` | `TableRef` | — | The table, when the part does not stand inside it: the return value of `useTable`.<br>Shown in: [Parts outside a toolbar (Toolbar)](#toolbar) |
8801
+ | `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) |
8802
+
8803
+ Also takes every attribute of `<button>`.
8781
8804
 
8782
8805
  ##### Types on this page
8783
8806
 
@@ -8809,9 +8832,9 @@ A button that writes the rows the user sees into a CSV file for a spreadsheet (a
8809
8832
  import { Export } from "@umriss-ui/table";
8810
8833
  ```
8811
8834
 
8812
- 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)).
8813
8836
 
8814
- 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.
8815
8838
 
8816
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.
8817
8840
 
@@ -8842,7 +8865,7 @@ export default function DownloadAFile() {
8842
8865
  const { Table, Column } = useTable(SHIPMENTS, { rowKey: (s) => s.id });
8843
8866
 
8844
8867
  return (
8845
- <Table ariaLabel="Shipments">
8868
+ <Table aria-label="Shipments">
8846
8869
  <Toolbar>
8847
8870
  <Search placeholder="Search customer" />
8848
8871
  <Export filename="shipments.csv" />
@@ -8883,7 +8906,7 @@ export default function TakeTheText() {
8883
8906
 
8884
8907
  return (
8885
8908
  <Stack gap={3}>
8886
- <Table ariaLabel="Shipments to export">
8909
+ <Table aria-label="Shipments to export">
8887
8910
  <Toolbar>
8888
8911
  <Export onExport={setText} />
8889
8912
  </Toolbar>
@@ -8934,7 +8957,7 @@ export default function CopyTheSelection() {
8934
8957
  {t.selection.count} selected
8935
8958
  </Text>
8936
8959
  </Stack>
8937
- <Table selectable ariaLabel="Shipments to copy">
8960
+ <Table selectable aria-label="Shipments to copy">
8938
8961
  <Column value="id" label="Shipment" rowHeader />
8939
8962
  <Column value="customer" label="Customer" />
8940
8963
  <Column value="weight" label="Weight (kg)" />
@@ -8944,28 +8967,143 @@ export default function CopyTheSelection() {
8944
8967
  }
8945
8968
  ```
8946
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
+
8947
9069
  #### Keyboard
8948
9070
 
8949
9071
  The keys of [First table](#first-table), Input and Button apply here.
8950
9072
 
8951
9073
  #### API
8952
9074
 
8953
- ##### `ExportProps`
9075
+ ##### `ExportProps<R = string>`
8954
9076
 
8955
9077
  | Prop | Type | Default | Description |
8956
9078
  |---|---|---|---|
8957
- | `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) |
8958
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) |
8959
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) |
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) |
8960
9085
 
8961
9086
  ###### Events
8962
9087
 
8963
9088
  | Prop | Type | Default | Description |
8964
9089
  |---|---|---|---|
8965
- | `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 |
9091
+
9092
+ Also takes every attribute of `<button>`.
8966
9093
 
8967
9094
  ##### Types on this page
8968
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
+
8969
9107
  ###### `ToolbarSize`
8970
9108
 
8971
9109
  The size of a toolbar's controls.
@@ -8986,11 +9124,381 @@ type TableRef = Omit<TableSnapshot<unknown>, "setFilter" | "conditionOf"> & {
8986
9124
  };
8987
9125
  ```
8988
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
+
8989
9497
  #### Known limits
8990
9498
 
8991
- - 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.
8992
9500
 
8993
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.42.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).
8994
9502
 
8995
9503
  ### View
8996
9504
 
@@ -9043,7 +9551,7 @@ export default function InitialView() {
9043
9551
 
9044
9552
  return (
9045
9553
  <Stack gap={3}>
9046
- <Table ariaLabel="Invoices">
9554
+ <Table aria-label="Invoices">
9047
9555
  <Toolbar>
9048
9556
  <Search placeholder="Invoice or supplier" />
9049
9557
  <ColumnMenu />
@@ -9090,12 +9598,6 @@ From `TableProps` — the full table stands on [First table](#first-table).
9090
9598
  |---|---|---|---|
9091
9599
  | [`children`](#first-table) | `ReactNode` | — | Columns, `RowDetail`, `RowActions` and the unbound parts. |
9092
9600
 
9093
- ###### Accessibility
9094
-
9095
- | Prop | Type | Default | Description |
9096
- |---|---|---|---|
9097
- | [`ariaLabel`](#first-table) | `string` | — | Accessible name of the table (not of the outer frame). |
9098
-
9099
9601
  From `TableOptions` — the full table stands on [First table](#first-table).
9100
9602
 
9101
9603
  | Prop | Type | Default | Description |
@@ -9322,7 +9824,7 @@ export default function PageThroughShipments() {
9322
9824
  const { Table, Column } = useTable(SHIPMENTS, { rowKey: (s) => s.id, pageSize: 10 });
9323
9825
 
9324
9826
  return (
9325
- <Table ariaLabel="Today's shipments">
9827
+ <Table aria-label="Today's shipments">
9326
9828
  <Toolbar>
9327
9829
  <Search placeholder="Search customer" />
9328
9830
  </Toolbar>
@@ -9357,7 +9859,7 @@ export default function ShowEveryRow() {
9357
9859
  const { Table, Column } = useTable(DELIVERIES, { rowKey: (d) => d.id, pageSize: 5 });
9358
9860
 
9359
9861
  return (
9360
- <Table density="compact" ariaLabel="Deliveries without a paging bar">
9862
+ <Table density="compact" aria-label="Deliveries without a paging bar">
9361
9863
  <Column value="id" label="Shipment" rowHeader />
9362
9864
  <Column value="parcels" label="Parcels" />
9363
9865
  </Table>
@@ -9381,6 +9883,7 @@ The keys of [First table](#first-table), Input, Select and Button apply here.
9381
9883
  |---|---|---|---|
9382
9884
  | `pageSizes` | `readonly number[]` | `[10, 25, 50]` | The selectable page sizes.<br>Shown in: [Page through shipments](#pagination), [Search and page from a header of your own (First table)](#first-table), [Restrict which rows a table has (Pre-filter)](#pre-filter) and 4 more |
9383
9885
  | `of` | `TableRef` | — | The table, when the part does not stand inside it: the return value of `useTable`.<br>Shown in: [Parts outside a toolbar (Toolbar)](#toolbar) |
9886
+ | `ref` | `Ref<HTMLElement> \| 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) |
9384
9887
 
9385
9888
  ###### Styling
9386
9889
 
@@ -9388,6 +9891,8 @@ The keys of [First table](#first-table), Input, Select and Button apply here.
9388
9891
  |---|---|---|---|
9389
9892
  | `className` | `string` | — | Classes on the pagination bar. |
9390
9893
 
9894
+ Also takes every attribute of the rendered element – without `children`.
9895
+
9391
9896
  ##### Types on this page
9392
9897
 
9393
9898
  ###### `TableRef`
@@ -9406,7 +9911,7 @@ type TableRef = Omit<TableSnapshot<unknown>, "setFilter" | "conditionOf"> & {
9406
9911
 
9407
9912
  - In [server mode](#server-mode) the page goes to the server in the request, and `rowCount` decides how many pages there are.
9408
9913
 
9409
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.42.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).
9410
9915
 
9411
9916
  ### Virtualisation
9412
9917
 
@@ -9491,7 +9996,7 @@ export default function Virtualisation() {
9491
9996
  return (
9492
9997
  <Stack gap={2}>
9493
9998
  <style>{STYLE}</style>
9494
- <Table className="request-log" selectable stickyHeader stickyRowHeader maxHeight="340px" ariaLabel="Requests">
9999
+ <Table className="request-log" selectable stickyHeader stickyRowHeader maxHeight="340px" aria-label="Requests">
9495
10000
  <Toolbar>
9496
10001
  <Search placeholder="Request or service" />
9497
10002
  </Toolbar>
@@ -9514,35 +10019,159 @@ export default function Virtualisation() {
9514
10019
  }
9515
10020
  ```
9516
10021
 
9517
- #### Keyboard
9518
-
9519
- | Key | Action |
9520
- |---|---|
9521
- | `↑ ↓ Home End` | On a row: moves to the next, previous, first or last row, rendered or not. |
9522
-
9523
- #### Props on this page
10022
+ ##### Inside a pane of fixed height
9524
10023
 
9525
- From `TableProps` — the full table stands on [First table](#first-table).
10024
+ In a parent of definite height the table stays within it: the toolbar keeps its place, the rows scroll, and `virtual` renders only the window - no `maxHeight` needed.
9526
10025
 
9527
- | Prop | Type | Default | Description |
9528
- |---|---|---|---|
9529
- | [`selectable`](#first-table) | `boolean` | — | Adds the selection column. "All" means: the filtered set. |
9530
- | [`stickyHeader`](#first-table) | `boolean` | — | Keeps the header row visible while scrolling. |
9531
- | [`stickyRowHeader`](#first-table) | `boolean` | — | Keeps the row header column visible while scrolling sideways - the same as `pin="start"` on the row header. |
9532
- | [`maxHeight`](#first-table) | `string` | — | Height of the scroll area, e.g. "480px". A virtualised table needs it. |
9533
- | [`children`](#first-table) | `ReactNode` | — | Columns, `RowDetail`, `RowActions` and the unbound parts. |
10026
+ ```tsx
10027
+ import { useMemo } from "react";
10028
+ import { Text } from "@umriss-ui/core";
10029
+ import { Search, Toolbar, useTable } from "@umriss-ui/table";
9534
10030
 
9535
- ###### Accessibility
10031
+ interface Stop {
10032
+ id: string;
10033
+ street: string;
10034
+ parcels: number;
10035
+ }
9536
10036
 
9537
- | Prop | Type | Default | Description |
9538
- |---|---|---|---|
9539
- | [`ariaLabel`](#first-table) | `string` | — | Accessible name of the table (not of the outer frame). |
10037
+ export default function InAPane() {
10038
+ const stops = useMemo<Stop[]>(
10039
+ () => Array.from({ length: 300 }, (_, i) => ({ id: `ST-${String(i + 1).padStart(4, "0")}`, street: `Dock ${1 + (i % 24)}`, parcels: 1 + ((i * 7) % 9) })),
10040
+ [],
10041
+ );
10042
+ const { Table, Column } = useTable(stops, { rowKey: (s) => s.id, virtual: true });
9540
10043
 
9541
- ###### Styling
10044
+ return (
10045
+ <div data-pane style={{ height: 320, display: "flex", flexDirection: "column" }}>
10046
+ <div style={{ flex: "1 1 0", minHeight: 0 }}>
10047
+ <Table stickyHeader aria-label="Stops">
10048
+ <Toolbar>
10049
+ <Search placeholder="Stop or dock" />
10050
+ </Toolbar>
10051
+ <Column value="id" label="Stop" rowHeader />
10052
+ <Column value="street" label="Dock" />
10053
+ <Column value="parcels" label="Parcels" />
10054
+ </Table>
10055
+ </div>
10056
+ <Text size="xs" tone="muted">The pane is 320 px tall.</Text>
10057
+ </div>
10058
+ );
10059
+ }
10060
+ ```
10061
+
10062
+ ##### Another view chooses a row
10063
+
10064
+ When `currentRow` becomes the key of a row outside the window, the table renders that row and scrolls it in. Focus stays where it was.
10065
+
10066
+ ```tsx
10067
+ import { useMemo, useState } from "react";
10068
+ import { Button, Stack } from "@umriss-ui/core";
10069
+ import { useTable } from "@umriss-ui/table";
10070
+
10071
+ interface Parcel {
10072
+ id: string;
10073
+ town: string;
10074
+ weight: number;
10075
+ }
10076
+
10077
+ export default function AnotherViewChooses() {
10078
+ const parcels = useMemo<Parcel[]>(
10079
+ () => Array.from({ length: 2000 }, (_, i) => ({ id: `P-${String(i + 1).padStart(4, "0")}`, town: `Town ${1 + ((i * 7) % 40)}`, weight: 1 + ((i * 13) % 30) })),
10080
+ [],
10081
+ );
10082
+ const [current, setCurrent] = useState<string | null>(null);
10083
+ const { Table, Column } = useTable(parcels, { rowKey: (p) => p.id, virtual: true });
10084
+
10085
+ return (
10086
+ <Stack gap={2} align="start">
10087
+ <Stack direction="row" gap={2}>
10088
+ <Button onClick={() => setCurrent("P-1500")}>Choose parcel 1,500</Button>
10089
+ <Button onClick={() => setCurrent("P-0001")}>Choose parcel 1</Button>
10090
+ </Stack>
10091
+ <Table stickyHeader maxHeight="300px" aria-label="Parcels" currentRow={current} onCurrentRowChange={(key) => setCurrent(key)}>
10092
+ <Column value="id" label="Parcel" rowHeader />
10093
+ <Column value="town" label="Town" />
10094
+ <Column value="weight" label="Weight (kg)" />
10095
+ </Table>
10096
+ </Stack>
10097
+ );
10098
+ }
10099
+ ```
10100
+
10101
+ ##### Bring a row into view from outside
10102
+
10103
+ `scrollToRow(key)` scrolls a row of the table into view from anywhere, also one that is not rendered yet; in grid mode `focusCell(key, column)` puts the focus on one of its cells. Both return `false` for a row the table does not show.
10104
+
10105
+ ```tsx
10106
+ import { useMemo, useState } from "react";
10107
+ import { Button, Stack } from "@umriss-ui/core";
10108
+ import { useTable } from "@umriss-ui/table";
10109
+
10110
+ interface Tag {
10111
+ id: string;
10112
+ name: string;
10113
+ value: number;
10114
+ }
10115
+
10116
+ const ALARMS = ["TAG-00042", "TAG-07500", "TAG-10000"];
10117
+
10118
+ export default function ScrollToARow() {
10119
+ const tags = useMemo<Tag[]>(
10120
+ () => Array.from({ length: 10_000 }, (_, i) => ({ id: `TAG-${String(i + 1).padStart(5, "0")}`, name: `Sensor ${i + 1}`, value: (i * 37) % 100 })),
10121
+ [],
10122
+ );
10123
+ const { Table, Column, scrollToRow, focusCell } = useTable(tags, { rowKey: (t) => t.id, virtual: true });
10124
+ const [picked, setPicked] = useState(ALARMS[1]!);
10125
+
10126
+ return (
10127
+ <Stack gap={2}>
10128
+ <Stack direction="row" gap={1}>
10129
+ {ALARMS.map((id) => (
10130
+ <Button
10131
+ key={id}
10132
+ variant="secondary"
10133
+ onClick={() => {
10134
+ setPicked(id);
10135
+ scrollToRow(id);
10136
+ }}
10137
+ >
10138
+ {`Show ${id}`}
10139
+ </Button>
10140
+ ))}
10141
+ <Button variant="secondary" onClick={() => focusCell(picked, "value")}>
10142
+ {`Focus the value of ${picked}`}
10143
+ </Button>
10144
+ </Stack>
10145
+ <Table grid maxHeight="240px" stickyHeader aria-label="Tags">
10146
+ <Column value="id" label="Tag" rowHeader />
10147
+ <Column value="name" label="Name" />
10148
+ <Column value="value" label="Value" />
10149
+ </Table>
10150
+ </Stack>
10151
+ );
10152
+ }
10153
+ ```
10154
+
10155
+ #### Keyboard
10156
+
10157
+ | Key | Action |
10158
+ |---|---|
10159
+ | `↑ ↓ Home End` | On a row: moves to the next, previous, first or last row, rendered or not. |
10160
+
10161
+ #### Props on this page
10162
+
10163
+ From `TableProps` — the full table stands on [First table](#first-table).
9542
10164
 
9543
10165
  | Prop | Type | Default | Description |
9544
10166
  |---|---|---|---|
9545
- | [`className`](#first-table) | `string` | — | Classes on the outer frame of the table. |
10167
+ | [`selectable`](#first-table) | `boolean` | — | Adds the selection column. "All" means: the filtered set. |
10168
+ | [`stickyHeader`](#first-table) | `boolean` | — | Keeps the header row visible while scrolling. |
10169
+ | [`stickyRowHeader`](#first-table) | `boolean` | — | Keeps the row header column visible while scrolling sideways - the same as `pin="start"` on the row header. |
10170
+ | [`maxHeight`](#first-table) | `string` | — | Height of the scroll area, e.g. "480px". A virtualised table needs it. |
10171
+ | [`currentRow`](#first-table) | `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. |
10172
+ | [`onCurrentRowChange`](#first-table) | `(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. |
10173
+ | [`grid`](#first-table) | `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. |
10174
+ | [`children`](#first-table) | `ReactNode` | — | Columns, `RowDetail`, `RowActions` and the unbound parts. |
9546
10175
 
9547
10176
  From `TableOptions` — the full table stands on [First table](#first-table).
9548
10177
 
@@ -9593,7 +10222,7 @@ From `ToolbarProps` — the full table stands on [Toolbar](#toolbar).
9593
10222
  - Paging and virtualisation do not combine; one table does one or the other.
9594
10223
  - No loading more rows while scrolling: a table on a server pages ([Server mode](#server-mode)).
9595
10224
 
9596
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.42.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).
9597
10226
 
9598
10227
  ### Benchmark
9599
10228
 
@@ -9684,7 +10313,7 @@ function Measured({ rows, mode, onTable }: { rows: Request[]; mode: Mode; tick:
9684
10313
  onTable(t);
9685
10314
  const { Table, Column } = t;
9686
10315
  return (
9687
- <Table maxHeight="340px" stickyHeader ariaLabel="Requests">
10316
+ <Table maxHeight="340px" stickyHeader aria-label="Requests">
9688
10317
  <Toolbar>
9689
10318
  <Search placeholder="Request or service" />
9690
10319
  </Toolbar>
@@ -9927,12 +10556,6 @@ From `TableProps` — the full table stands on [First table](#first-table).
9927
10556
  | [`maxHeight`](#first-table) | `string` | — | Height of the scroll area, e.g. "480px". A virtualised table needs it. |
9928
10557
  | [`children`](#first-table) | `ReactNode` | — | Columns, `RowDetail`, `RowActions` and the unbound parts. |
9929
10558
 
9930
- ###### Accessibility
9931
-
9932
- | Prop | Type | Default | Description |
9933
- |---|---|---|---|
9934
- | [`ariaLabel`](#first-table) | `string` | — | Accessible name of the table (not of the outer frame). |
9935
-
9936
10559
  From `TableOptions` — the full table stands on [First table](#first-table).
9937
10560
 
9938
10561
  | Prop | Type | Default | Description |
@@ -9985,7 +10608,9 @@ import { useTable } from "@umriss-ui/table";
9985
10608
 
9986
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.
9987
10610
 
9988
- 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.
9989
10614
 
9990
10615
  #### Examples
9991
10616
 
@@ -10166,7 +10791,7 @@ export default function OnlyPages() {
10166
10791
  });
10167
10792
 
10168
10793
  return (
10169
- <Table ariaLabel="Shipments on the server">
10794
+ <Table aria-label="Shipments on the server">
10170
10795
  <Column value="id" label="Shipment" rowHeader sortable={false} />
10171
10796
  <Column value="customer" label="Customer" sortable={false} />
10172
10797
  <Column value="weight" label="Weight (kg)" sortable={false} />
@@ -10366,7 +10991,7 @@ export default function SortAndSearch() {
10366
10991
 
10367
10992
  return (
10368
10993
  <Stack gap={2}>
10369
- <Table ariaLabel="Shipments on the server">
10994
+ <Table aria-label="Shipments on the server">
10370
10995
  <Toolbar>
10371
10996
  <Search placeholder="Shipment or customer" />
10372
10997
  </Toolbar>
@@ -10565,7 +11190,7 @@ export default function ListFilter() {
10565
11190
  });
10566
11191
 
10567
11192
  return (
10568
- <Table ariaLabel="Shipments on the server">
11193
+ <Table aria-label="Shipments on the server">
10569
11194
  <Column value="id" label="Shipment" rowHeader sortable={false} />
10570
11195
  <Column value="customer" label="Customer" sortable={false} />
10571
11196
  <Column value="status" label="Status" filter="list" sortable={false} />
@@ -10575,12 +11200,13 @@ export default function ListFilter() {
10575
11200
  }
10576
11201
  ```
10577
11202
 
10578
- ##### Show loading, and drop a late answer
11203
+ ##### Show loading, and hold a late answer
10579
11204
 
10580
- `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.
10581
11206
 
10582
11207
  ```tsx
10583
11208
  import { useRef, useState } from "react";
11209
+ import { Stack, Text } from "@umriss-ui/core";
10584
11210
  import { Pagination, useTable } from "@umriss-ui/table";
10585
11211
  import type { TableRequest } from "@umriss-ui/table";
10586
11212
 
@@ -10736,48 +11362,47 @@ const SHIPMENTS: readonly Shipment[] = TOURS.flatMap((one) =>
10736
11362
  }),
10737
11363
  );
10738
11364
 
10739
- /* Every answer takes 600 ms. Page on quickly: only the last request lands. */
10740
- const LATENCY = 600;
10741
-
11365
+ /* Every second request is slow, so an answer is overtaken by the next one:
11366
+ page on quickly to see it hold. */
10742
11367
  const serve = (view: TableRequest) => {
10743
11368
  const start = (view.page - 1) * view.pageSize;
10744
- 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 };
10745
11370
  };
10746
11371
 
10747
11372
  export default function LoadingAndLateAnswers() {
10748
11373
  const [answer, setAnswer] = useState(() => serve({ search: "", conditions: {}, sort: [], page: 1, pageSize: 10 }));
10749
- const [loading, setLoading] = useState(false);
10750
- const latest = useRef<TableRequest | null>(null);
11374
+ const asked = useRef(0);
10751
11375
 
10752
- const { Table, Column } = useTable(answer.rows, {
11376
+ const { Table, Column, request } = useTable(answer.rows, {
10753
11377
  rowKey: (s) => s.id,
10754
11378
  server: true,
10755
11379
  rowCount: answer.rowCount,
11380
+ answers: answer.answers,
10756
11381
  onRequest: (view) => {
10757
- latest.current = view;
10758
- setLoading(true);
10759
- setTimeout(() => {
10760
- if (latest.current !== view) return;
10761
- setAnswer(serve(view));
10762
- setLoading(false);
10763
- }, LATENCY);
11382
+ asked.current += 1;
11383
+ setTimeout(() => setAnswer(serve(view)), asked.current % 2 === 0 ? 1200 : 300);
10764
11384
  },
10765
11385
  });
10766
11386
 
10767
11387
  return (
10768
- <Table ariaLabel="Shipments on the server" loading={loading}>
10769
- <Column value="id" label="Shipment" rowHeader sortable={false} />
10770
- <Column value="customer" label="Customer" sortable={false} />
10771
- <Column value="weight" label="Weight (kg)" sortable={false} />
10772
- <Pagination />
10773
- </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>
10774
11399
  );
10775
11400
  }
10776
11401
  ```
10777
11402
 
10778
11403
  ##### Load pages from a server
10779
11404
 
10780
- `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`.
10781
11406
 
10782
11407
  ```tsx
10783
11408
  import { useRef, useState } from "react";
@@ -10852,6 +11477,15 @@ function serve(view: TableRequest): { rows: Request[]; rowCount: number } {
10852
11477
  return { rows, rowCount };
10853
11478
  }
10854
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
+
10855
11489
  const FIRST: TableRequest = { search: "", conditions: {}, sort: [BY_ID], page: 1, pageSize: 10 };
10856
11490
  const same = (a: TableRequest, b: TableRequest) =>
10857
11491
  JSON.stringify([a.search, a.conditions, a.sort, a.page, a.pageSize]) ===
@@ -10862,6 +11496,7 @@ export default function AMillionRowsOnAServer() {
10862
11496
  const [answer, setAnswer] = useState(() => ({ view: FIRST, ...serve(FIRST) }));
10863
11497
  const [loading, setLoading] = useState(false);
10864
11498
  const latest = useRef(FIRST);
11499
+ const controller = useRef<AbortController | null>(null);
10865
11500
 
10866
11501
  const t = useTable(answer.rows, {
10867
11502
  rowKey: (r) => r.id,
@@ -10870,24 +11505,30 @@ export default function AMillionRowsOnAServer() {
10870
11505
  rowCount: answer.rowCount,
10871
11506
  onRequest: (view) => {
10872
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;
10873
11512
  /* Back to the view on screen before its successor was answered: the
10874
11513
  pending answer is dropped, so nothing is loading any more. */
10875
11514
  if (same(view, answer.view)) return setLoading(false);
10876
11515
  setLoading(true);
10877
- setTimeout(() => {
11516
+ const timer = setTimeout(() => {
10878
11517
  if (latest.current !== view) return;
10879
11518
  setAnswer({ view, ...serve(view) });
10880
11519
  setLoading(false);
10881
11520
  }, LATENCY);
11521
+ own.signal.addEventListener("abort", () => clearTimeout(timer));
10882
11522
  },
10883
11523
  filterOptions: (column) => (column === "service" ? SERVICES : []),
11524
+ exportRows: everyMatch,
10884
11525
  });
10885
11526
  const { Table, Column } = t;
10886
11527
  const { search, sort, page, pageSize } = answer.view;
10887
11528
 
10888
11529
  return (
10889
11530
  <Stack gap={2}>
10890
- <Table selectable loading={loading} ariaLabel="Requests on the server">
11531
+ <Table selectable loading={loading} aria-label="Requests on the server">
10891
11532
  <Toolbar>
10892
11533
  <Search placeholder="Request or service" />
10893
11534
  <ColumnMenu />
@@ -10907,6 +11548,184 @@ export default function AMillionRowsOnAServer() {
10907
11548
  }
10908
11549
  ```
10909
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
+
10910
11729
  #### When to use something else
10911
11730
 
10912
11731
  - Thousands of rows that are all in the browser → Virtualisation
@@ -10925,12 +11744,6 @@ From `TableProps` — the full table stands on [First table](#first-table).
10925
11744
  | [`loading`](#first-table) | `boolean` | — | Shows placeholder rows instead of the rows. |
10926
11745
  | [`children`](#first-table) | `ReactNode` | — | Columns, `RowDetail`, `RowActions` and the unbound parts. |
10927
11746
 
10928
- ###### Accessibility
10929
-
10930
- | Prop | Type | Default | Description |
10931
- |---|---|---|---|
10932
- | [`ariaLabel`](#first-table) | `string` | — | Accessible name of the table (not of the outer frame). |
10933
-
10934
11747
  From `TableOptions` — the full table stands on [First table](#first-table).
10935
11748
 
10936
11749
  | Prop | Type | Default | Description |
@@ -10943,6 +11756,7 @@ From `TableSnapshot` — the full table stands on [First table](#first-table).
10943
11756
  | Prop | Type | Default | Description |
10944
11757
  |---|---|---|---|
10945
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. |
10946
11760
 
10947
11761
  From `FieldColumn` — the full table stands on [Column](#column).
10948
11762
 
@@ -10965,6 +11779,31 @@ From `SearchProps` — the full table stands on [Search](#search).
10965
11779
  |---|---|---|---|
10966
11780
  | [`placeholder`](#search) | `string` | the wording's "Search …" | The placeholder in the field. |
10967
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
+
10968
11807
  From `ToolbarProps` — the full table stands on [Toolbar](#toolbar).
10969
11808
 
10970
11809
  | Prop | Type | Default | Description |
@@ -10973,12 +11812,13 @@ From `ToolbarProps` — the full table stands on [Toolbar](#toolbar).
10973
11812
 
10974
11813
  #### Known limits
10975
11814
 
10976
- - The table sorts, filters and pages nothing itself, and it shows no groups and no footer: they would be made of one page.
10977
- - “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.
10978
11818
  - A list filter offers what `filterOptions` names; the table cannot count values it does not hold.
10979
11819
  - No loading more rows while scrolling: paging and virtualisation do not combine.
10980
11820
 
10981
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.42.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).
10982
11822
 
10983
11823
  ## Editing
10984
11824
 
@@ -11022,7 +11862,7 @@ const SERVICES: Service[] = [
11022
11862
  export default function GridMode() {
11023
11863
  const { Table, Column, RowActions, Action } = useTable(SERVICES, { rowKey: (s) => s.id });
11024
11864
  return (
11025
- <Table grid selectable ariaLabel="Services">
11865
+ <Table grid selectable aria-label="Services">
11026
11866
  <Column value="name" label="Service" rowHeader />
11027
11867
  <Column value="team" label="Team" />
11028
11868
  <Column value="requests" label="Requests a minute" format="count" aggregate="sum" />
@@ -11086,7 +11926,7 @@ export default function TheWholeGrid() {
11086
11926
  selectable
11087
11927
  stickyHeader
11088
11928
  maxHeight="360px"
11089
- ariaLabel="Parcels by depot"
11929
+ aria-label="Parcels by depot"
11090
11930
  onCellEdit={({ rowKey, columnId, value }) =>
11091
11931
  setParcels((all) => all.map((p) => (p.id === rowKey ? { ...p, [columnId]: value } : p)))
11092
11932
  }
@@ -11141,12 +11981,6 @@ From `TableProps` — the full table stands on [First table](#first-table).
11141
11981
  |---|---|---|---|
11142
11982
  | [`onCellEdit`](#first-table) | `(edit: `[`CellEdit`](#first-table)`<Z>) => void` | — | Grid mode: an edit the user committed. The table applies nothing; the cell shows the new value when the rows passed in carry it. |
11143
11983
 
11144
- ###### Accessibility
11145
-
11146
- | Prop | Type | Default | Description |
11147
- |---|---|---|---|
11148
- | [`ariaLabel`](#first-table) | `string` | — | Accessible name of the table (not of the outer frame). |
11149
-
11150
11984
  From `TableOptions` — the full table stands on [First table](#first-table).
11151
11985
 
11152
11986
  | Prop | Type | Default | Description |
@@ -11196,7 +12030,7 @@ From `ActionProps` — the full table stands on [RowActions](#rowactions).
11196
12030
 
11197
12031
  | Prop | Type | Default | Description |
11198
12032
  |---|---|---|---|
11199
- | [`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. |
11200
12034
 
11201
12035
  ### Edits
11202
12036
 
@@ -11241,7 +12075,7 @@ export default function CommentsColumn() {
11241
12075
  return (
11242
12076
  <Table
11243
12077
  grid
11244
- ariaLabel="Today's tours"
12078
+ aria-label="Today's tours"
11245
12079
  onCellEdit={({ rowKey, value }) => setTours((all) => all.map((t) => (t.id === rowKey ? { ...t, comment: String(value) } : t)))}
11246
12080
  >
11247
12081
  <Column value="id" label="Tour" rowHeader />
@@ -11293,7 +12127,7 @@ export default function ValidatedEdits() {
11293
12127
 
11294
12128
  return (
11295
12129
  <Stack gap={2}>
11296
- <Table grid ariaLabel="Capacity" onCellEdit={apply}>
12130
+ <Table grid aria-label="Capacity" onCellEdit={apply}>
11297
12131
  <Column value="name" label="Person" rowHeader />
11298
12132
  <Column value="team" label="Team" />
11299
12133
  <Column
@@ -11352,7 +12186,7 @@ export default function SaveARowOnPurpose() {
11352
12186
 
11353
12187
  return (
11354
12188
  <Stack gap={2}>
11355
- <Table grid editMode="row" ariaLabel="Projects" onRowSave={save}>
12189
+ <Table grid editMode="row" aria-label="Projects" onRowSave={save}>
11356
12190
  <Column value="name" label="Project" rowHeader />
11357
12191
  <Column value="phase" label="Phase" edit="select" editOptions={["Discovery", "Build", "Launch"]} width={140} />
11358
12192
  <Column value="owner" label="Owner" edit="text" />
@@ -11398,7 +12232,7 @@ export default function CheckAWholeRow() {
11398
12232
  <Table
11399
12233
  grid
11400
12234
  editMode="row"
11401
- ariaLabel="Price list"
12235
+ aria-label="Price list"
11402
12236
  onRowSave={({ rowKey, changes }) => setOffers((all) => all.map((o) => (o.id === rowKey ? { ...o, ...changes } : o)))}
11403
12237
  >
11404
12238
  <Column value="product" label="Product" rowHeader />
@@ -11451,7 +12285,7 @@ export default function KeepAList() {
11451
12285
  <Table
11452
12286
  grid
11453
12287
  editMode="row"
11454
- ariaLabel="Stores"
12288
+ aria-label="Stores"
11455
12289
  newRow={() => ({ kind: "Spare part", stock: 0 })}
11456
12290
  onRowSave={({ rowKey, changes }) => setItems((all) => all.map((i) => (i.id === rowKey ? { ...i, ...changes } : i)))}
11457
12291
  onRowAdd={({ values }) => setItems((all) => [...all, { id: `i${++next}`, ...(values as Omit<Item, "id">) }])}
@@ -11498,7 +12332,7 @@ export default function EditADenseTable() {
11498
12332
  grid
11499
12333
  editMode="row"
11500
12334
  density="compact"
11501
- ariaLabel="Meeting rooms"
12335
+ aria-label="Meeting rooms"
11502
12336
  onRowSave={({ rowKey, changes }) => setRooms((all) => all.map((r) => (r.id === rowKey ? { ...r, ...changes } : r)))}
11503
12337
  onRowDelete={({ rowKey }) => setRooms((all) => all.filter((r) => r.id !== rowKey))}
11504
12338
  >
@@ -11539,12 +12373,6 @@ From `TableProps` — the full table stands on [First table](#first-table).
11539
12373
  | [`onRowAdd`](#first-table) | `(add: `[`RowAdd`](#first-table)`) => 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. |
11540
12374
  | [`onRowDelete`](#first-table) | `(remove: `[`RowDelete`](#first-table)`<Z>) => void` | — | Grid mode: a Delete button on every row, which asks inside its row before the delete is reported. The table removes nothing. |
11541
12375
 
11542
- ###### Accessibility
11543
-
11544
- | Prop | Type | Default | Description |
11545
- |---|---|---|---|
11546
- | [`ariaLabel`](#first-table) | `string` | — | Accessible name of the table (not of the outer frame). |
11547
-
11548
12376
  From `TableOptions` — the full table stands on [First table](#first-table).
11549
12377
 
11550
12378
  | Prop | Type | Default | Description |
@@ -11577,9 +12405,9 @@ From `ToolbarProps` — the full table stands on [Toolbar](#toolbar).
11577
12405
 
11578
12406
  #### Known limits
11579
12407
 
11580
- - No cell range selection and no undo ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.42.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)).
11581
12409
 
11582
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.42.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).
11583
12411
 
11584
12412
  ## Limits and alarms
11585
12413
 
@@ -11631,7 +12459,7 @@ export default function ReadLatency() {
11631
12459
  const { Table, Column, VerdictColumn } = useTable(ENDPOINTS, { rowKey: (e) => e.path });
11632
12460
 
11633
12461
  return (
11634
- <Table ariaLabel="Checkout endpoints">
12462
+ <Table aria-label="Checkout endpoints">
11635
12463
  <Column value="path" label="Endpoint" rowHeader />
11636
12464
  <VerdictColumn value="p95" label="p95 latency (ms)" limits={OBJECTIVE} />
11637
12465
  </Table>
@@ -11677,7 +12505,7 @@ function Tours({ sortBy }: { sortBy: "verdict" | "value" }) {
11677
12505
  defaultSort: { column: "load", direction: "desc" },
11678
12506
  });
11679
12507
  return (
11680
- <Table ariaLabel={sortBy === "verdict" ? "Tours by verdict" : "Tours by load"}>
12508
+ <Table aria-label={sortBy === "verdict" ? "Tours by verdict" : "Tours by load"}>
11681
12509
  <Column value="tour" label="Tour" rowHeader />
11682
12510
  <VerdictColumn value="load" label="Load (%)" limits={LOAD} sortBy={sortBy} />
11683
12511
  </Table>
@@ -11736,7 +12564,7 @@ export default function JudgeAComputedShare() {
11736
12564
  const { Table, Column, VerdictColumn } = useTable(CENTRES, { rowKey: (c) => c.name });
11737
12565
 
11738
12566
  return (
11739
- <Table ariaLabel="Budget use in March">
12567
+ <Table aria-label="Budget use in March">
11740
12568
  <Column value="name" label="Cost centre" rowHeader />
11741
12569
  <Column value="actual" label="Actual (€)" format="count" />
11742
12570
  <VerdictColumn id="used" label="Budget used" value={(c) => c.actual / c.budget} limits={SPEND} format="percent" />
@@ -11793,7 +12621,7 @@ export default function ShowTheWorst() {
11793
12621
  const { Table, Column, VerdictColumn } = useTable(PEOPLE, { rowKey: (p) => p.id });
11794
12622
 
11795
12623
  return (
11796
- <Table ariaLabel="Booked hours this week">
12624
+ <Table aria-label="Booked hours this week">
11797
12625
  <Column value="name" label="Name" rowHeader />
11798
12626
  <Column value="team" label="Team" />
11799
12627
  <Column value="capacity" label="Capacity (h)" />
@@ -11851,10 +12679,11 @@ violated, and it is never the edge of a region.
11851
12679
 
11852
12680
  ###### `NumberFormat`
11853
12681
 
11854
- The names of the standard presentations of a number.
12682
+ How a number column is written: `"percent"`, `"count"`, or Intl's number
12683
+ options plus `decimals`; the same shape as core's `NumberFormat`.
11855
12684
 
11856
12685
  ```ts
11857
- type NumberFormat = "percent" | "count" | { decimals: number };
12686
+ type NumberFormat = "percent" | "count" | NumberOptions;
11858
12687
  ```
11859
12688
 
11860
12689
  ###### `Pin`
@@ -11881,6 +12710,17 @@ force a `null` on one edge in the one-sided case.
11881
12710
  | `side` *required* | `Side`<br>`"upper" \| "lower"` | — | <br>Shown in: [Read latency against its objective](#verdictcolumn), [Sort by verdict or by value](#verdictcolumn), [Judge a computed share](#verdictcolumn) and 5 more |
11882
12711
  | `severity` *required* | `Severity`<br>`"warning" \| "alarm"` | — | <br>Shown in: [Read latency against its objective](#verdictcolumn), [Sort by verdict or by value](#verdictcolumn), [Judge a computed share](#verdictcolumn) and 5 more |
11883
12712
 
12713
+ ###### `NumberOptions`
12714
+
12715
+ From `@umriss-ui/core`.
12716
+
12717
+ Intl's number options, plus `decimals`: the shorthand for the minimum and the
12718
+ maximum fraction digits. An Intl digit option given beside it wins.
12719
+
12720
+ ```ts
12721
+ type NumberOptions = Intl.NumberFormatOptions & { decimals?: number };
12722
+ ```
12723
+
11884
12724
  ###### `Side`
11885
12725
 
11886
12726
  From `@umriss-ui/core`.
@@ -11908,7 +12748,7 @@ type Severity = "warning" | "alarm";
11908
12748
  - No list filter: four verdicts are sorted, not filtered.
11909
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)).
11910
12750
 
11911
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.42.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).
11912
12752
 
11913
12753
  ## API index
11914
12754
 
@@ -11966,6 +12806,9 @@ compiler.
11966
12806
  as `of` to a part that stands outside the table.
11967
12807
 
11968
12808
  ```ts
12809
+ function useTable<Z>(rows: readonly Z[], options: Extract<TableOptions<Z>, {
12810
+ server: true;
12811
+ }>): Table<Z, true>;
11969
12812
  function useTable<Z>(rows: readonly Z[], options: TableOptions<Z>): Table<Z>;
11970
12813
  ```
11971
12814
 
@@ -12020,6 +12863,19 @@ function rowFilter<Z, B>(definition: RowFilter<Z, B>): RowFilter<Z, B>;
12020
12863
 
12021
12864
  Used on [Filter](#filter) and [Toolbar controls](#toolbar-controls).
12022
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
+
12023
12879
  #### Types
12024
12880
 
12025
12881
  ##### `Absent`
@@ -12083,6 +12939,20 @@ type AggregateKind = "sum" | "avg" | "min" | "max" | "range" | "count" | "distin
12083
12939
 
12084
12940
  Its table stands on [Aggregate](#aggregate).
12085
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
+
12086
12956
  ##### `CellEdit<Z>`
12087
12957
 
12088
12958
  An edit the user committed - reported, not applied.
@@ -12267,10 +13137,52 @@ The props a column carries for editing in grid mode (`<Table grid>`).
12267
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 |
12268
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 |
12269
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
+
12270
13171
  ##### `ExportProps`
12271
13172
 
12272
13173
  Its table stands on [Export](#export).
12273
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
+
12274
13186
  ##### `Field<Z>`
12275
13187
 
12276
13188
  The field names of a row.
@@ -12436,10 +13348,11 @@ type NumberField<Z> = {
12436
13348
 
12437
13349
  ##### `NumberFormat`
12438
13350
 
12439
- The names of the standard presentations of a number.
13351
+ How a number column is written: `"percent"`, `"count"`, or Intl's number
13352
+ options plus `decimals`; the same shape as core's `NumberFormat`.
12440
13353
 
12441
13354
  ```ts
12442
- type NumberFormat = "percent" | "count" | { decimals: number };
13355
+ type NumberFormat = "percent" | "count" | NumberOptions;
12443
13356
  ```
12444
13357
 
12445
13358
  ##### `OwnAggregate<Z = never>`
@@ -12594,20 +13507,22 @@ only what the first leaves open.
12594
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 |
12595
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 |
12596
13509
 
12597
- ##### `Table<Z>`
13510
+ ##### `Table<Z, S extends boolean = false>`
12598
13511
 
12599
13512
  What `useTable` returns: the table's state, and its parts typed at the
12600
13513
  row. Pass it as `of` to a part that stands outside the table.
12601
13514
 
12602
13515
  | Prop | Type | Default | Description |
12603
13516
  |---|---|---|---|
12604
- | `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 119 more |
12605
- | `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 119 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 |
12606
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 |
12607
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 |
12608
- | `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 |
12609
- | `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 |
12610
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) |
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) |
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) |
12611
13526
  | `rows` *required* | `readonly Z[]` | — | All the rows passed in, including those the pre-filter does not admit. From `TableSnapshot`.<br>Shown in: [Search and page from a header of your own (First table)](#first-table) |
12612
13527
  | `filtered` *required* | `readonly Z[]` | — | The filtered set: what the pre-filter admits and search and filters leave, across all pages. From `TableSnapshot`.<br>Shown in: [Select rows (Selection)](#selection), [Scroll twenty thousand rows (Virtualisation)](#virtualisation) |
12613
13528
  | `visible` *required* | `readonly Z[]` | — | What is rendered right now: the page or the window. From `TableSnapshot`.<br>Shown in: [Scroll twenty thousand rows (Virtualisation)](#virtualisation) |
@@ -12651,6 +13566,7 @@ row. Pass it as `of` to a part that stands outside the table.
12651
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) |
12652
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) |
12653
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) |
12654
13570
 
12655
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).
12656
13572
 
@@ -12723,6 +13639,9 @@ selection.
12723
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) |
12724
13640
  | `allSelected` *required* | `boolean` | — | true when every key passed in is selected. |
12725
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. |
12726
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 |
12727
13646
 
12728
13647
  ##### `TableSnapshot`
@@ -12738,11 +13657,11 @@ the application.
12738
13657
 
12739
13658
  | Prop | Type | Default | Description |
12740
13659
  |---|---|---|---|
12741
- | `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 |
12742
- | `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 |
12743
- | `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 |
12744
- | `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 |
12745
- | `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 |
12746
13665
  | `hidden` | `readonly K[]` | — | <br>Shown in: [Keep and restore a view (View)](#view) |
12747
13666
  | `order` | `readonly K[]` | — | |
12748
13667
  | `widths` | `Readonly<Record<string, number>>` | — | Column widths the user has dragged, in pixels. |
@@ -12797,3 +13716,369 @@ interface VerdictColumnComponent<Z> {
12797
13716
  <K extends NumberField<Z>>(props: VerdictBase & { value: K; id?: string }): ReactNode;
12798
13717
  }
12799
13718
  ```
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
+
13732
+ #### Types on this page
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
+
14075
+ ##### `NumberOptions`
14076
+
14077
+ From `@umriss-ui/core`.
14078
+
14079
+ Intl's number options, plus `decimals`: the shorthand for the minimum and the
14080
+ maximum fraction digits. An Intl digit option given beside it wins.
14081
+
14082
+ ```ts
14083
+ type NumberOptions = Intl.NumberFormatOptions & { decimals?: number };
14084
+ ```