@umriss-ui/table 0.55.0 → 0.55.1
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/CHANGELOG.md +13 -0
- package/dist/table.css +1 -1
- package/dist/table.js +901 -901
- package/docs/llms-full.md +114 -41
- package/package.json +2 -2
package/docs/llms-full.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @umriss-ui/table 0.55.
|
|
1
|
+
# @umriss-ui/table 0.55.1
|
|
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
|
|
|
@@ -376,7 +376,7 @@ A value cut short at the edge of its cell shows whole in a tip, under the pointe
|
|
|
376
376
|
| `stickyHeader` | `boolean` | — | Keeps the header row visible while scrolling.<br>Shown in: [A header over columns (Column)](#column), [Keep the header and the names in view (Width and pinning)](#width-and-pinning), [A head below an app bar (Width and pinning)](#width-and-pinning) and 11 more |
|
|
377
377
|
| `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 |
|
|
378
378
|
| `striped` | `boolean` | — | Discreet zebra stripes.<br>Shown in: [Stripes across a wide table (Row appearance)](#row-appearance) |
|
|
379
|
-
| `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)
|
|
379
|
+
| `density` | `"regular" \| "compact"` | the density of the `UmrissProvider`, else `"regular"` | How tightly the rows stand.<br>Shown in: [Every column option in one head (Column)](#column), [Fit long group names in a compact table (Grouping)](#grouping-1), [Employees in the detail (Tree rows)](#tree-rows) and 5 more |
|
|
380
380
|
| `maxHeight` | `string` | — | Height of the scroll area, e.g. "480px". A virtualised table needs it.<br>Shown in: [Keep the header and the names in view (Width and pinning)](#width-and-pinning), [A head below an app bar (Width and pinning)](#width-and-pinning), [Fold groups into a summary (Grouping)](#grouping-1) and 10 more |
|
|
381
381
|
| `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) |
|
|
382
382
|
| `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) |
|
|
@@ -387,7 +387,7 @@ A value cut short at the edge of its cell shows whole in a tip, under the pointe
|
|
|
387
387
|
| `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 9 more |
|
|
388
388
|
| `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 |
|
|
389
389
|
| `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) |
|
|
390
|
-
| `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
|
|
390
|
+
| `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 148 more |
|
|
391
391
|
| `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) |
|
|
392
392
|
|
|
393
393
|
###### Events
|
|
@@ -405,7 +405,7 @@ Also takes every attribute of `<div>` – without `children`.
|
|
|
405
405
|
|
|
406
406
|
| Prop | Type | Default | Description |
|
|
407
407
|
|---|---|---|---|
|
|
408
|
-
| `rowKey` *required* | `(row: Z) => Key` | — | 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
|
|
408
|
+
| `rowKey` *required* | `(row: Z) => Key` | — | 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 148 more |
|
|
409
409
|
| `pageSize` | `number` | `10` | How many rows a page holds in flow, or with `maxHeight`, and the start value in a frame of definite height before it is measured: there a page holds the whole lines the frame leaves between the head and the pager.<br>Shown in: [Search and page from a header of your own](#first-table), [Ask a question over several fields (Filter)](#filter), [Restrict which rows a table has (Pre-filter)](#pre-filter) and 12 more |
|
|
410
410
|
| `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 |
|
|
411
411
|
| `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 24 more |
|
|
@@ -716,10 +716,10 @@ type TextOperator = "contains" | "notContains" | "startsWith" | "endsWith" | "eq
|
|
|
716
716
|
|
|
717
717
|
#### Known limits
|
|
718
718
|
|
|
719
|
-
- No cell range selection and no built-in undo: an edit is reported, never applied, and the application owns the rows; undo is a recipe over the reported edits ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.55.
|
|
720
|
-
- 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.55.
|
|
719
|
+
- No cell range selection and no built-in undo: an edit is reported, never applied, and the application owns the rows; undo is a recipe over the reported edits ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.55.1/docs/adr/0032-what-umriss-is-not.md)).
|
|
720
|
+
- 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.55.1/docs/adr/0032-what-umriss-is-not.md)).
|
|
721
721
|
|
|
722
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.55.
|
|
722
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.55.1/docs/adr/0032-what-umriss-is-not.md).
|
|
723
723
|
|
|
724
724
|
### Provider
|
|
725
725
|
|
|
@@ -1054,6 +1054,79 @@ export default function HeaderOverColumns() {
|
|
|
1054
1054
|
}
|
|
1055
1055
|
```
|
|
1056
1056
|
|
|
1057
|
+
##### Every column option in one head
|
|
1058
|
+
|
|
1059
|
+
Left and right alignment (`numeric`), a list or a range `filter`, an automatic, `flex` or sized `width`, a `pin` to the start or the end, first, middle and last place, a `ColumnGroup` and a time column that carries its zone's name - the zone is the application's, not the reader's - over a footer of sums, in the regular and the compact density. Sort two columns to see the ranks beside the arrows.
|
|
1060
|
+
|
|
1061
|
+
```tsx
|
|
1062
|
+
import { Stack, Text, UmrissProvider } from "@umriss-ui/core";
|
|
1063
|
+
import type { LanguageOptions } from "@umriss-ui/core";
|
|
1064
|
+
import { ColumnGroup, ColumnMenu, Toolbar, useTable } from "@umriss-ui/table";
|
|
1065
|
+
|
|
1066
|
+
/* Outside the component: a provider that gets a new object on every render
|
|
1067
|
+
recomputes on every render. */
|
|
1068
|
+
const LANGUAGE: LanguageOptions = { formats: { timeZone: "Pacific/Auckland" } };
|
|
1069
|
+
|
|
1070
|
+
interface Shipment {
|
|
1071
|
+
id: string;
|
|
1072
|
+
customer: string;
|
|
1073
|
+
city: string;
|
|
1074
|
+
weight: number;
|
|
1075
|
+
parcels: number;
|
|
1076
|
+
departs: Date;
|
|
1077
|
+
fee: number;
|
|
1078
|
+
}
|
|
1079
|
+
|
|
1080
|
+
const SHIPMENTS: Shipment[] = [
|
|
1081
|
+
{ id: "FP-1004210", customer: "Holloway Garden Supplies", city: "Leeds", weight: 412.5, parcels: 12, departs: new Date(Date.UTC(2026, 2, 16, 21, 30)), fee: 184.2 },
|
|
1082
|
+
{ id: "FP-1004223", customer: "Oakridge Pharmacy", city: "Bristol", weight: 38, parcels: 2, departs: new Date(Date.UTC(2026, 2, 17, 6, 15)), fee: 41.9 },
|
|
1083
|
+
{ id: "FP-1004236", customer: "Brixley Cycles", city: "Leeds", weight: 1260, parcels: 30, departs: new Date(Date.UTC(2026, 2, 17, 9, 0)), fee: 612 },
|
|
1084
|
+
{ id: "FP-1004241", customer: "Nimbrel Software", city: "Cardiff", weight: 7.2, parcels: 1, departs: new Date(Date.UTC(2026, 2, 18, 14, 45)), fee: 12.5 },
|
|
1085
|
+
];
|
|
1086
|
+
|
|
1087
|
+
function Shipments({ caption, density }: { caption: string; density?: "regular" | "compact" }) {
|
|
1088
|
+
const { Table, Column } = useTable(SHIPMENTS, { rowKey: (s) => s.id });
|
|
1089
|
+
return (
|
|
1090
|
+
<Stack gap={2}>
|
|
1091
|
+
<Text size="xs" tone="muted">
|
|
1092
|
+
{caption}
|
|
1093
|
+
</Text>
|
|
1094
|
+
<Table density={density} aria-label={`Shipments, ${caption}`}>
|
|
1095
|
+
<Toolbar>
|
|
1096
|
+
<ColumnMenu />
|
|
1097
|
+
</Toolbar>
|
|
1098
|
+
<Column value="id" label="Shipment" rowHeader pin="start" width={130} />
|
|
1099
|
+
<ColumnGroup label="Consignee">
|
|
1100
|
+
<Column value="customer" label="Customer" filter="list" flex={1} minWidth={160} />
|
|
1101
|
+
<Column value="city" label="City" />
|
|
1102
|
+
</ColumnGroup>
|
|
1103
|
+
<ColumnGroup label="Load">
|
|
1104
|
+
<Column value="weight" label="Weight (kg)" numeric filter="range" width={150} aggregate="sum" />
|
|
1105
|
+
<Column value="parcels" label="Parcels" numeric flex={1} aggregate="sum" />
|
|
1106
|
+
</ColumnGroup>
|
|
1107
|
+
<ColumnGroup label="Dispatch">
|
|
1108
|
+
<Column value="departs" label="Departs" format="dateTime" filter="range" width={280} />
|
|
1109
|
+
</ColumnGroup>
|
|
1110
|
+
<ColumnGroup label="Charge">
|
|
1111
|
+
<Column value="fee" label="Fee (€)" numeric format={{ decimals: 2 }} pin="end" aggregate="sum" />
|
|
1112
|
+
</ColumnGroup>
|
|
1113
|
+
</Table>
|
|
1114
|
+
</Stack>
|
|
1115
|
+
);
|
|
1116
|
+
}
|
|
1117
|
+
|
|
1118
|
+
export default function EveryColumnOption() {
|
|
1119
|
+
return (
|
|
1120
|
+
<UmrissProvider language={LANGUAGE}>
|
|
1121
|
+
<Stack gap={5}>
|
|
1122
|
+
<Shipments caption="Regular" />
|
|
1123
|
+
<Shipments caption='density="compact"' density="compact" />
|
|
1124
|
+
</Stack>
|
|
1125
|
+
</UmrissProvider>
|
|
1126
|
+
);
|
|
1127
|
+
}
|
|
1128
|
+
```
|
|
1129
|
+
|
|
1057
1130
|
#### When to use something else
|
|
1058
1131
|
|
|
1059
1132
|
- Restricting a column to some of its values → Filter
|
|
@@ -1074,10 +1147,10 @@ The `label` is the column header's text, and so what a screen reader says for ev
|
|
|
1074
1147
|
|
|
1075
1148
|
| Prop | Type | Default | Description |
|
|
1076
1149
|
|---|---|---|---|
|
|
1077
|
-
| `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
|
|
1150
|
+
| `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 148 more |
|
|
1078
1151
|
| `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) |
|
|
1079
|
-
| `format` | `FormatFor``<Z[K]>` | — | A standard presentation by name: `"percent"`, `"count"` or `{ decimals }` for numbers, `"date"`, `"time"`, `"dateTime"`, `"timeWithSeconds"` or `"dateTimeWithSeconds"` for points in time. Alignment, sorting, export and footer stay with the value.<br>Shown in: [Compute a value from the row](#column), [
|
|
1080
|
-
| `filter` | `FilterFor``<Z[K]>` | — | A filter in the column header: `"list"` offers the values that occur, `"range"` two bounds (numbers or points in time), `"text"` operators over a text, a filter from `columnFilter` asks whatever it asks itself. Its condition stands in the table toolbar.<br>Shown in: [A label wider than its column (Width and pinning)](#width-and-pinning), [Share a column between tables (Presets)](#presets)
|
|
1152
|
+
| `format` | `FormatFor``<Z[K]>` | — | A standard presentation by name: `"percent"`, `"count"` or `{ decimals }` for numbers, `"date"`, `"time"`, `"dateTime"`, `"timeWithSeconds"` or `"dateTimeWithSeconds"` for points in time. Alignment, sorting, export and footer stay with the value.<br>Shown in: [Compute a value from the row](#column), [Every column option in one head](#column), [Set wording and formats once (Provider)](#provider) and 42 more |
|
|
1153
|
+
| `filter` | `FilterFor``<Z[K]>` | — | A filter in the column header: `"list"` offers the values that occur, `"range"` two bounds (numbers or points in time), `"text"` operators over a text, a filter from `columnFilter` asks whatever it asks itself. Its condition stands in the table toolbar.<br>Shown in: [Every column option in one head](#column), [A label wider than its column (Width and pinning)](#width-and-pinning), [Share a column between tables (Presets)](#presets) and 14 more |
|
|
1081
1154
|
| `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) |
|
|
1082
1155
|
| `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 8 more |
|
|
1083
1156
|
| `editOptions` | `readonly ``Present``<Z[K]>[]` | the values that occur | What `edit="select"` offers. From `EditOptions`.<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 2 more |
|
|
@@ -1090,14 +1163,14 @@ Also every prop of `ColumnBase`, `ValuePaths` and `AggregateOptions`.
|
|
|
1090
1163
|
|
|
1091
1164
|
| Prop | Type | Default | Description |
|
|
1092
1165
|
|---|---|---|---|
|
|
1093
|
-
| `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
|
|
1094
|
-
| `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
|
|
1095
|
-
| `numeric` | `boolean` | decided by the first value present | Right-aligned with tabular figures.<br>Shown in: [A header over columns](#column), [
|
|
1096
|
-
| `width` | `number` | the browser's | Initial width in pixels.<br>Shown in: [
|
|
1097
|
-
| `flex` | `number` | none: the column is as wide as its content | A share of the width the other columns leave, so that the table fills its frame: two columns with `flex={1}` split it equally. A width, declared or dragged by hand, ends the flex of that column.<br>Shown in: [Columns that share the width (Width and pinning)](#width-and-pinning), [Share a column between tables (Presets)](#presets) |
|
|
1098
|
-
| `minWidth` | `number` | — | The least width of a column with `flex`, in pixels.<br>Shown in: [Columns that share the width (Width and pinning)](#width-and-pinning), [Share a column between tables (Presets)](#presets) |
|
|
1166
|
+
| `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 148 more |
|
|
1167
|
+
| `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 147 more |
|
|
1168
|
+
| `numeric` | `boolean` | decided by the first value present | Right-aligned with tabular figures.<br>Shown in: [A header over columns](#column), [Every column option in one head](#column), [Share a column between tables (Presets)](#presets) and 1 more |
|
|
1169
|
+
| `width` | `number` | the browser's | Initial width in pixels.<br>Shown in: [Every column option in one head](#column), [Fit long values (Formats)](#formats), [Fit what does not fit (Formats)](#formats) and 22 more |
|
|
1170
|
+
| `flex` | `number` | none: the column is as wide as its content | A share of the width the other columns leave, so that the table fills its frame: two columns with `flex={1}` split it equally. A width, declared or dragged by hand, ends the flex of that column.<br>Shown in: [Every column option in one head](#column), [Columns that share the width (Width and pinning)](#width-and-pinning), [Share a column between tables (Presets)](#presets) |
|
|
1171
|
+
| `minWidth` | `number` | — | The least width of a column with `flex`, in pixels.<br>Shown in: [Every column option in one head](#column), [Columns that share the width (Width and pinning)](#width-and-pinning), [Share a column between tables (Presets)](#presets) |
|
|
1099
1172
|
| `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), [Columns that share the width (Width and pinning)](#width-and-pinning) and 2 more |
|
|
1100
|
-
| `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)
|
|
1173
|
+
| `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: [Every column option in one head](#column), [Pin columns to both sides (Width and pinning)](#width-and-pinning), [Share a column between tables (Presets)](#presets) and 3 more |
|
|
1101
1174
|
| `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 11 more |
|
|
1102
1175
|
| `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) |
|
|
1103
1176
|
| `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) |
|
|
@@ -2553,7 +2626,7 @@ From `ExportProps` — the full table stands on [Export](#export).
|
|
|
2553
2626
|
|
|
2554
2627
|
- In [server mode](#server-mode) the table sorts nothing itself; the sort goes to the server in the request.
|
|
2555
2628
|
|
|
2556
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.55.
|
|
2629
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.55.1/docs/adr/0032-what-umriss-is-not.md).
|
|
2557
2630
|
|
|
2558
2631
|
### Search
|
|
2559
2632
|
|
|
@@ -2783,7 +2856,7 @@ type TableRef = Omit<TableSnapshot<unknown, any>, "setFilter" | "conditionOf"> &
|
|
|
2783
2856
|
|
|
2784
2857
|
- In [server mode](#server-mode) the table searches nothing itself; the term goes to the server in the request.
|
|
2785
2858
|
|
|
2786
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.55.
|
|
2859
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.55.1/docs/adr/0032-what-umriss-is-not.md).
|
|
2787
2860
|
|
|
2788
2861
|
### Filter
|
|
2789
2862
|
|
|
@@ -3852,7 +3925,7 @@ type Absent = null | undefined;
|
|
|
3852
3925
|
|
|
3853
3926
|
- In [server mode](#server-mode) a list filter offers what the application names; the table cannot count values it does not hold.
|
|
3854
3927
|
|
|
3855
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.55.
|
|
3928
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.55.1/docs/adr/0032-what-umriss-is-not.md).
|
|
3856
3929
|
|
|
3857
3930
|
### Pre-filter
|
|
3858
3931
|
|
|
@@ -5134,11 +5207,11 @@ export default function GroupAndFoldFromControls() {
|
|
|
5134
5207
|
|
|
5135
5208
|
#### Known limits
|
|
5136
5209
|
|
|
5137
|
-
- No pivot and no more than three levels ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.55.
|
|
5210
|
+
- No pivot and no more than three levels ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.55.1/docs/adr/0032-what-umriss-is-not.md)).
|
|
5138
5211
|
- No bar to drag headers onto: grouping is chosen in the column menu.
|
|
5139
5212
|
- In [server mode](#server-mode) the server groups: the request carries `grouping`, the answer `groups`, and a page counts lines.
|
|
5140
5213
|
|
|
5141
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.55.
|
|
5214
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.55.1/docs/adr/0032-what-umriss-is-not.md).
|
|
5142
5215
|
|
|
5143
5216
|
### Tree rows
|
|
5144
5217
|
|
|
@@ -5804,7 +5877,7 @@ From `ToolbarProps` — the full table stands on [Toolbar](#toolbar).
|
|
|
5804
5877
|
- Not in [server mode](#server-mode).
|
|
5805
5878
|
- One column set for every level; a level without a value shows it as absent.
|
|
5806
5879
|
|
|
5807
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.55.
|
|
5880
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.55.1/docs/adr/0032-what-umriss-is-not.md).
|
|
5808
5881
|
|
|
5809
5882
|
### Aggregate
|
|
5810
5883
|
|
|
@@ -6274,7 +6347,7 @@ The keys of [First table](#first-table) and Input apply here.
|
|
|
6274
6347
|
|
|
6275
6348
|
| Prop | Type | Default | Description |
|
|
6276
6349
|
|---|---|---|---|
|
|
6277
|
-
| `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; a string is not coerced - it is left out and warns once in development.<br>Shown in: [Total a column](#aggregate), [Find the extremes](#aggregate), [Show a range of dates](#aggregate) and
|
|
6350
|
+
| `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; a string is not coerced - it is left out and warns once in development.<br>Shown in: [Total a column](#aggregate), [Find the extremes](#aggregate), [Show a range of dates](#aggregate) and 40 more |
|
|
6278
6351
|
| `aggregateLabel` | `string` | — | The word for an `aggregate` function of one's own: it stands before the value in the footer and is what a screen reader reads. A group header shows no word. A built-in kind keeps its own word, the wording's; a name beside it is ignored.<br>Shown in: [Name your own aggregate](#aggregate), [Share a column between tables (Presets)](#presets) |
|
|
6279
6352
|
| `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 |
|
|
6280
6353
|
|
|
@@ -6346,7 +6419,7 @@ type Displayable = string | number | boolean | Date;
|
|
|
6346
6419
|
|
|
6347
6420
|
- 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.
|
|
6348
6421
|
|
|
6349
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.55.
|
|
6422
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.55.1/docs/adr/0032-what-umriss-is-not.md).
|
|
6350
6423
|
|
|
6351
6424
|
## Rows
|
|
6352
6425
|
|
|
@@ -6618,7 +6691,7 @@ From `ToolbarProps` — the full table stands on [Toolbar](#toolbar).
|
|
|
6618
6691
|
|
|
6619
6692
|
- 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.
|
|
6620
6693
|
|
|
6621
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.55.
|
|
6694
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.55.1/docs/adr/0032-what-umriss-is-not.md).
|
|
6622
6695
|
|
|
6623
6696
|
### Row appearance
|
|
6624
6697
|
|
|
@@ -7655,7 +7728,7 @@ The parts the table puts in name themselves: the search field “Search table”
|
|
|
7655
7728
|
|
|
7656
7729
|
| Prop | Type | Default | Description |
|
|
7657
7730
|
|---|---|---|---|
|
|
7658
|
-
| `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
|
|
7731
|
+
| `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 47 more |
|
|
7659
7732
|
| `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) |
|
|
7660
7733
|
| `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) |
|
|
7661
7734
|
| `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) |
|
|
@@ -8380,7 +8453,7 @@ The keys of [First table](#first-table), Input, [ColumnMenu](#columnmenu), Selec
|
|
|
8380
8453
|
|
|
8381
8454
|
| Prop | Type | Default | Description |
|
|
8382
8455
|
|---|---|---|---|
|
|
8383
|
-
| `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
|
|
8456
|
+
| `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 47 more |
|
|
8384
8457
|
| `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) |
|
|
8385
8458
|
| `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) |
|
|
8386
8459
|
| `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) |
|
|
@@ -8952,7 +9025,7 @@ Everything the library knows about formatting.
|
|
|
8952
9025
|
| Prop | Type | Default | Description |
|
|
8953
9026
|
|---|---|---|---|
|
|
8954
9027
|
| `locale` *required* | `string` | — | The language tag the set was built in: "en-GB". |
|
|
8955
|
-
| `timeZone` *required* | `string \| undefined` | — | The IANA name of the time zone instants are written in, or `undefined` for the reader's own
|
|
9028
|
+
| `timeZone` *required* | `string \| undefined` | — | The IANA name of the time zone instants are written in, or `undefined` for the reader's own.<br>Shown in: [Every column option in one head (Column)](#column) |
|
|
8956
9029
|
| `timeZoneName` *required* | `(d: Date) => string` | — | The zone's generic name in the set's locale: "Central European Time". Empty until the page has hydrated where no zone is named. |
|
|
8957
9030
|
| `date` *required* | `(d: Date) => string` | — | Date as displayed: 17/03/2026<br>Shown in: [Set wording and formats once (Provider)](#provider) |
|
|
8958
9031
|
| `dateShort` *required* | `(d: Date) => string` | — | Short form without the year, in the range footer: 17/03 |
|
|
@@ -9426,7 +9499,7 @@ Everything the library puts out as text.
|
|
|
9426
9499
|
|
|
9427
9500
|
- 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; the browser's print is the print layout (see Print above).
|
|
9428
9501
|
|
|
9429
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.55.
|
|
9502
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.55.1/docs/adr/0032-what-umriss-is-not.md).
|
|
9430
9503
|
|
|
9431
9504
|
### View
|
|
9432
9505
|
|
|
@@ -10033,7 +10106,7 @@ type TableRef = Omit<TableSnapshot<unknown, any>, "setFilter" | "conditionOf"> &
|
|
|
10033
10106
|
|
|
10034
10107
|
- In [server mode](#server-mode) the page goes to the server in the request, and `rowCount` decides how many pages there are.
|
|
10035
10108
|
|
|
10036
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.55.
|
|
10109
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.55.1/docs/adr/0032-what-umriss-is-not.md).
|
|
10037
10110
|
|
|
10038
10111
|
### Virtualisation
|
|
10039
10112
|
|
|
@@ -10439,7 +10512,7 @@ From `ToolbarProps` — the full table stands on [Toolbar](#toolbar).
|
|
|
10439
10512
|
- Paging and virtualisation do not combine; one table does one or the other.
|
|
10440
10513
|
- No loading more rows while scrolling: a table on a server pages ([Server mode](#server-mode)).
|
|
10441
10514
|
|
|
10442
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.55.
|
|
10515
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.55.1/docs/adr/0032-what-umriss-is-not.md).
|
|
10443
10516
|
|
|
10444
10517
|
### Benchmark
|
|
10445
10518
|
|
|
@@ -12251,7 +12324,7 @@ From `ToolbarProps` — the full table stands on [Toolbar](#toolbar).
|
|
|
12251
12324
|
- A list filter offers what `filterOptions` names; the table cannot count values it does not hold.
|
|
12252
12325
|
- No loading more rows while scrolling: paging and virtualisation do not combine.
|
|
12253
12326
|
|
|
12254
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.55.
|
|
12327
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.55.1/docs/adr/0032-what-umriss-is-not.md).
|
|
12255
12328
|
|
|
12256
12329
|
## Editing
|
|
12257
12330
|
|
|
@@ -12990,9 +13063,9 @@ From `ToolbarProps` — the full table stands on [Toolbar](#toolbar).
|
|
|
12990
13063
|
|
|
12991
13064
|
#### Known limits
|
|
12992
13065
|
|
|
12993
|
-
- No cell range selection and no built-in undo: the history of the reported edits is the application's ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.55.
|
|
13066
|
+
- No cell range selection and no built-in undo: the history of the reported edits is the application's ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.55.1/docs/adr/0032-what-umriss-is-not.md)).
|
|
12994
13067
|
|
|
12995
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.55.
|
|
13068
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.55.1/docs/adr/0032-what-umriss-is-not.md).
|
|
12996
13069
|
|
|
12997
13070
|
## Limits and alarms
|
|
12998
13071
|
|
|
@@ -13336,7 +13409,7 @@ type Severity = "warning" | "alarm";
|
|
|
13336
13409
|
- No list filter: four verdicts are sorted, not filtered.
|
|
13337
13410
|
- 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)).
|
|
13338
13411
|
|
|
13339
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.55.
|
|
13412
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.55.1/docs/adr/0032-what-umriss-is-not.md).
|
|
13340
13413
|
|
|
13341
13414
|
## API index
|
|
13342
13415
|
|
|
@@ -13671,8 +13744,8 @@ The props of `ColumnGroup`.
|
|
|
13671
13744
|
|
|
13672
13745
|
| Prop | Type | Default | Description |
|
|
13673
13746
|
|---|---|---|---|
|
|
13674
|
-
| `label` *required* | `string` | — | The text over the group's columns.<br>Shown in: [A header over columns (Column)](#column), [Column groups over virtual rows (Virtualisation)](#virtualisation) |
|
|
13675
|
-
| `children` | `ReactNode` | — | The `Column`s of the group; they stay together when columns are reordered.<br>Shown in: [A header over columns (Column)](#column), [Column groups over virtual rows (Virtualisation)](#virtualisation) |
|
|
13747
|
+
| `label` *required* | `string` | — | The text over the group's columns.<br>Shown in: [A header over columns (Column)](#column), [Every column option in one head (Column)](#column), [Column groups over virtual rows (Virtualisation)](#virtualisation) |
|
|
13748
|
+
| `children` | `ReactNode` | — | The `Column`s of the group; they stay together when columns are reordered.<br>Shown in: [A header over columns (Column)](#column), [Every column option in one head (Column)](#column), [Column groups over virtual rows (Virtualisation)](#virtualisation) |
|
|
13676
13749
|
|
|
13677
13750
|
##### `ColumnMenuProps`
|
|
13678
13751
|
|
|
@@ -14221,8 +14294,8 @@ row. Pass it as `of` to a part that stands outside the table.
|
|
|
14221
14294
|
|
|
14222
14295
|
| Prop | Type | Default | Description |
|
|
14223
14296
|
|---|---|---|---|
|
|
14224
|
-
| `Table` *required* | `(props: `[`TableProps`](#first-table)`<Z, Key>) => 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
|
|
14225
|
-
| `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
|
|
14297
|
+
| `Table` *required* | `(props: `[`TableProps`](#first-table)`<Z, Key>) => 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 148 more |
|
|
14298
|
+
| `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 148 more |
|
|
14226
14299
|
| `VerdictColumn` *required* | `VerdictColumnComponent``<Z>` | — | <br>Shown in: [A bar, a scale, an icon and a limit (Conditional formatting)](#conditional-formatting), [Pin columns to both sides (Width and pinning)](#width-and-pinning), [Read a day's deliveries by depot (Grouping)](#grouping-1) and 6 more |
|
|
14227
14300
|
| `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 |
|
|
14228
14301
|
| `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 11 more |
|
|
@@ -14502,7 +14575,7 @@ Everything the library knows about formatting.
|
|
|
14502
14575
|
| Prop | Type | Default | Description |
|
|
14503
14576
|
|---|---|---|---|
|
|
14504
14577
|
| `locale` *required* | `string` | — | The language tag the set was built in: "en-GB". |
|
|
14505
|
-
| `timeZone` *required* | `string \| undefined` | — | The IANA name of the time zone instants are written in, or `undefined` for the reader's own
|
|
14578
|
+
| `timeZone` *required* | `string \| undefined` | — | The IANA name of the time zone instants are written in, or `undefined` for the reader's own.<br>Shown in: [Every column option in one head (Column)](#column) |
|
|
14506
14579
|
| `timeZoneName` *required* | `(d: Date) => string` | — | The zone's generic name in the set's locale: "Central European Time". Empty until the page has hydrated where no zone is named. |
|
|
14507
14580
|
| `date` *required* | `(d: Date) => string` | — | Date as displayed: 17/03/2026<br>Shown in: [Set wording and formats once (Provider)](#provider) |
|
|
14508
14581
|
| `dateShort` *required* | `(d: Date) => string` | — | Short form without the year, in the range footer: 17/03 |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umriss-ui/table",
|
|
3
|
-
"version": "0.55.
|
|
3
|
+
"version": "0.55.1",
|
|
4
4
|
"description": "React data table for data-dense applications - sorting, filtering, grouping, aggregates, virtualisation. Declared the way it reads: columns as JSX, typed against their rows.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Roman Händler",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"@types/node": "^22.20.2",
|
|
80
80
|
"@types/react": "^19.0.0",
|
|
81
81
|
"@types/react-dom": "^19.0.0",
|
|
82
|
-
"@umriss-ui/core": "0.55.
|
|
82
|
+
"@umriss-ui/core": "0.55.1",
|
|
83
83
|
"@umriss-ui/demo": "0.0.0",
|
|
84
84
|
"@vitejs/plugin-react": "^4.3.4",
|
|
85
85
|
"happy-dom": "^21.0.4",
|