@umriss-ui/table 0.41.1 → 0.42.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.41.1
1
+ # @umriss-ui/table 0.42.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
 
@@ -1266,7 +1266,7 @@ A value cut short at the edge of its cell shows whole in a tip, under the pointe
1266
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 |
1267
1267
  | `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
1268
  | `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 118 more |
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 |
1270
1270
 
1271
1271
  ###### Events
1272
1272
 
@@ -1281,7 +1281,7 @@ A value cut short at the edge of its cell shows whole in a tip, under the pointe
1281
1281
 
1282
1282
  | Prop | Type | Default | Description |
1283
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 118 more |
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
1285
 
1286
1286
  ###### Styling
1287
1287
 
@@ -1293,7 +1293,7 @@ A value cut short at the edge of its cell shows whole in a tip, under the pointe
1293
1293
 
1294
1294
  | Prop | Type | Default | Description |
1295
1295
  |---|---|---|---|
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 118 more |
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 |
1297
1297
  | `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
1298
  | `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
1299
  | `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 |
@@ -1553,10 +1553,10 @@ type Absent = null | undefined;
1553
1553
 
1554
1554
  #### Known limits
1555
1555
 
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.41.1/docs/adr/0032-what-umriss-is-not.md)).
1557
- - No pivot: compute the pivoted rows and declare their columns ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.41.1/docs/adr/0032-what-umriss-is-not.md)).
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)).
1558
1558
 
1559
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.41.1/docs/adr/0032-what-umriss-is-not.md).
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).
1560
1560
 
1561
1561
  ### Provider
1562
1562
 
@@ -1870,9 +1870,9 @@ The `label` is the column header's text, and so what a screen reader says for ev
1870
1870
 
1871
1871
  | Prop | Type | Default | Description |
1872
1872
  |---|---|---|---|
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 118 more |
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
1874
  | `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 33 more |
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
1876
  | `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
1877
  | `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
1878
  | `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,8 +1886,8 @@ Also every prop of `ColumnBase`, `ValuePaths` and `AggregateOptions`.
1886
1886
 
1887
1887
  | Prop | Type | Default | Description |
1888
1888
  |---|---|---|---|
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 118 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 117 more |
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 |
1891
1891
  | `numeric` | `boolean` | decided by the first value present | Right-aligned with tabular figures.<br>Shown in: [Share a column between tables (Presets)](#presets) |
1892
1892
  | `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
1893
  | `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 |
@@ -3088,7 +3088,7 @@ From `ExportProps` — the full table stands on [Export](#export).
3088
3088
 
3089
3089
  - In [server mode](#server-mode) the table sorts nothing itself; the sort goes to the server in the request.
3090
3090
 
3091
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.41.1/docs/adr/0032-what-umriss-is-not.md).
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).
3092
3092
 
3093
3093
  ### Search
3094
3094
 
@@ -3308,7 +3308,7 @@ type TableRef = Omit<TableSnapshot<unknown>, "setFilter" | "conditionOf"> & {
3308
3308
 
3309
3309
  - In [server mode](#server-mode) the table searches nothing itself; the term goes to the server in the request.
3310
3310
 
3311
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.41.1/docs/adr/0032-what-umriss-is-not.md).
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).
3312
3312
 
3313
3313
  ### Filter
3314
3314
 
@@ -4335,7 +4335,7 @@ type Absent = null | undefined;
4335
4335
  - No text filter per column: the search covers text.
4336
4336
  - In [server mode](#server-mode) a list filter offers what the application names; the table cannot count values it does not hold.
4337
4337
 
4338
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.41.1/docs/adr/0032-what-umriss-is-not.md).
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).
4339
4339
 
4340
4340
  ### Pre-filter
4341
4341
 
@@ -5623,11 +5623,11 @@ export default function GroupAndFoldFromControls() {
5623
5623
 
5624
5624
  #### Known limits
5625
5625
 
5626
- - No pivot and no more than three levels ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.41.1/docs/adr/0032-what-umriss-is-not.md)).
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)).
5627
5627
  - No bar to drag headers onto: grouping is chosen in the column menu.
5628
5628
  - No groups in [server mode](#server-mode): they would be made of one page.
5629
5629
 
5630
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.41.1/docs/adr/0032-what-umriss-is-not.md).
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).
5631
5631
 
5632
5632
  ### Tree rows
5633
5633
 
@@ -6231,7 +6231,7 @@ From `ToolbarProps` — the full table stands on [Toolbar](#toolbar).
6231
6231
  - Not in [server mode](#server-mode), and no branches loaded on demand yet.
6232
6232
  - One column set for every level; a level without a value shows it as absent.
6233
6233
 
6234
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.41.1/docs/adr/0032-what-umriss-is-not.md).
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).
6235
6235
 
6236
6236
  ### Aggregate
6237
6237
 
@@ -6585,6 +6585,62 @@ export default function WorstVerdict() {
6585
6585
  }
6586
6586
  ```
6587
6587
 
6588
+ ##### A matrix with row and column totals
6589
+
6590
+ Pivot the facts into rows, then map one computed column per year from the data, `key` by the year. An accessor closes only over what is constant for its column, so the row total is a field of the row, not a function over the years: it stays right when a year arrives.
6591
+
6592
+ ```tsx
6593
+ import { useTable } from "@umriss-ui/table";
6594
+
6595
+ interface Fact {
6596
+ plant: string;
6597
+ year: number;
6598
+ tonnes: number;
6599
+ }
6600
+
6601
+ interface Row {
6602
+ plant: string;
6603
+ byYear: Record<number, number>;
6604
+ total: number;
6605
+ }
6606
+
6607
+ const FACTS: Fact[] = [
6608
+ { plant: "Ulm", year: 2024, tonnes: 410 },
6609
+ { plant: "Ulm", year: 2025, tonnes: 435 },
6610
+ { plant: "Ulm", year: 2026, tonnes: 452 },
6611
+ { plant: "Hof", year: 2024, tonnes: 220 },
6612
+ { plant: "Hof", year: 2026, tonnes: 205 },
6613
+ { plant: "Kiel", year: 2025, tonnes: 310 },
6614
+ { plant: "Kiel", year: 2026, tonnes: 342 },
6615
+ ];
6616
+
6617
+ /** One row per plant, its cells keyed by year, its total as a field. */
6618
+ function pivot(facts: Fact[]) {
6619
+ const rows = new Map<string, Row>();
6620
+ for (const f of facts) {
6621
+ const row = rows.get(f.plant) ?? { plant: f.plant, byYear: {}, total: 0 };
6622
+ row.byYear[f.year] = (row.byYear[f.year] ?? 0) + f.tonnes;
6623
+ row.total += f.tonnes;
6624
+ rows.set(f.plant, row);
6625
+ }
6626
+ return { rows: [...rows.values()], years: [...new Set(facts.map((f) => f.year))].sort() };
6627
+ }
6628
+
6629
+ export default function MatrixWithTotals() {
6630
+ const { rows, years } = pivot(FACTS);
6631
+ const { Table, Column } = useTable(rows, { rowKey: (r) => r.plant });
6632
+ return (
6633
+ <Table ariaLabel="Output by plant and year">
6634
+ <Column value="plant" label="Plant" rowHeader />
6635
+ {years.map((y) => (
6636
+ <Column key={y} id={`y${y}`} label={String(y)} value={(r: Row) => r.byYear[y]} aggregate="sum" format="count" filter="range" />
6637
+ ))}
6638
+ <Column value="total" label="Total" aggregate="sum" format="count" />
6639
+ </Table>
6640
+ );
6641
+ }
6642
+ ```
6643
+
6588
6644
  #### When to use something else
6589
6645
 
6590
6646
  - A key figure outside the table → `Stat` from @umriss-ui/core
@@ -6599,7 +6655,7 @@ The keys of [First table](#first-table) and Input apply here.
6599
6655
 
6600
6656
  | Prop | Type | Default | Description |
6601
6657
  |---|---|---|---|
6602
- | `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 34 more |
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 |
6603
6659
  | `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 |
6604
6660
 
6605
6661
  ##### Types on this page
@@ -6670,7 +6726,7 @@ type Displayable = string | number | boolean | Date;
6670
6726
 
6671
6727
  - No footer in [server mode](#server-mode): a sum over one page would misstate the server's set.
6672
6728
 
6673
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.41.1/docs/adr/0032-what-umriss-is-not.md).
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).
6674
6730
 
6675
6731
  ## Rows
6676
6732
 
@@ -6852,7 +6908,7 @@ From `ToolbarProps` — the full table stands on [Toolbar](#toolbar).
6852
6908
 
6853
6909
  - In [server mode](#server-mode) “select all” selects the page the table holds.
6854
6910
 
6855
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.41.1/docs/adr/0032-what-umriss-is-not.md).
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).
6856
6912
 
6857
6913
  ### Row appearance
6858
6914
 
@@ -8934,7 +8990,7 @@ type TableRef = Omit<TableSnapshot<unknown>, "setFilter" | "conditionOf"> & {
8934
8990
 
8935
8991
  - One format, CSV: no workbook, PDF or print layout.
8936
8992
 
8937
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.41.1/docs/adr/0032-what-umriss-is-not.md).
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).
8938
8994
 
8939
8995
  ### View
8940
8996
 
@@ -9350,7 +9406,7 @@ type TableRef = Omit<TableSnapshot<unknown>, "setFilter" | "conditionOf"> & {
9350
9406
 
9351
9407
  - In [server mode](#server-mode) the page goes to the server in the request, and `rowCount` decides how many pages there are.
9352
9408
 
9353
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.41.1/docs/adr/0032-what-umriss-is-not.md).
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).
9354
9410
 
9355
9411
  ### Virtualisation
9356
9412
 
@@ -9537,7 +9593,7 @@ From `ToolbarProps` — the full table stands on [Toolbar](#toolbar).
9537
9593
  - Paging and virtualisation do not combine; one table does one or the other.
9538
9594
  - No loading more rows while scrolling: a table on a server pages ([Server mode](#server-mode)).
9539
9595
 
9540
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.41.1/docs/adr/0032-what-umriss-is-not.md).
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).
9541
9597
 
9542
9598
  ### Benchmark
9543
9599
 
@@ -10922,7 +10978,7 @@ From `ToolbarProps` — the full table stands on [Toolbar](#toolbar).
10922
10978
  - A list filter offers what `filterOptions` names; the table cannot count values it does not hold.
10923
10979
  - No loading more rows while scrolling: paging and virtualisation do not combine.
10924
10980
 
10925
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.41.1/docs/adr/0032-what-umriss-is-not.md).
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).
10926
10982
 
10927
10983
  ## Editing
10928
10984
 
@@ -11521,9 +11577,9 @@ From `ToolbarProps` — the full table stands on [Toolbar](#toolbar).
11521
11577
 
11522
11578
  #### Known limits
11523
11579
 
11524
- - No cell range selection and no undo ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.41.1/docs/adr/0032-what-umriss-is-not.md)).
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)).
11525
11581
 
11526
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.41.1/docs/adr/0032-what-umriss-is-not.md).
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).
11527
11583
 
11528
11584
  ## Limits and alarms
11529
11585
 
@@ -11852,7 +11908,7 @@ type Severity = "warning" | "alarm";
11852
11908
  - No list filter: four verdicts are sorted, not filtered.
11853
11909
  - 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)).
11854
11910
 
11855
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.41.1/docs/adr/0032-what-umriss-is-not.md).
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).
11856
11912
 
11857
11913
  ## API index
11858
11914
 
@@ -12072,13 +12128,9 @@ value.
12072
12128
 
12073
12129
  ```ts
12074
12130
  interface ColumnComponent<Z> {
12075
- <W extends number | Absent>(
12076
- props: Computed<Z, W> & { footer: "sum" | "avg"; aggregate?: never; format?: NumberFormat; children?: Presentation<W, Z>; share?: boolean },
12077
- ): ReactNode;
12078
12131
  <W extends number | Absent>(
12079
12132
  props: Computed<Z, W> & {
12080
12133
  aggregate: "sum" | "avg" | "min" | "max" | "count" | "distinct";
12081
- footer?: never;
12082
12134
  share?: boolean;
12083
12135
  format?: NumberFormat;
12084
12136
  children?: Presentation<W, Z>;
@@ -12087,7 +12139,6 @@ interface ColumnComponent<Z> {
12087
12139
  <W extends Date | Absent>(
12088
12140
  props: Computed<Z, W> & {
12089
12141
  aggregate: "min" | "max" | "range" | "count" | "distinct";
12090
- footer?: never;
12091
12142
  format?: DateFormat;
12092
12143
  group?: DatePeriod;
12093
12144
  children?: Presentation<W, Z>;
@@ -12097,7 +12148,6 @@ interface ColumnComponent<Z> {
12097
12148
  props: Computed<Z, W> & {
12098
12149
  group: DatePeriod;
12099
12150
  aggregate?: "min" | "max" | "range" | "count" | "distinct";
12100
- footer?: never;
12101
12151
  format?: DateFormat;
12102
12152
  children?: Presentation<W, Z>;
12103
12153
  },
@@ -12110,14 +12160,13 @@ interface ColumnComponent<Z> {
12110
12160
  ): ReactNode;
12111
12161
  <W>(
12112
12162
  props: Computed<Z, W> & {
12113
- footer?: never;
12114
12163
  format?: never;
12115
12164
  aggregate?: AggregateFunction<W, Z>;
12116
12165
  children: Presentation<W, Z>;
12117
12166
  },
12118
12167
  ): ReactNode;
12119
12168
  <W extends Displayable | Absent>(
12120
- props: Computed<Z, W> & { footer?: never; format?: never; aggregate?: "count" | "distinct" | AggregateFunction<W, Z>; children?: never },
12169
+ props: Computed<Z, W> & { format?: never; aggregate?: "count" | "distinct" | AggregateFunction<W, Z>; children?: never },
12121
12170
  ): ReactNode;
12122
12171
  <K extends Field<Z>>(props: FieldColumn<Z, K>): ReactNode;
12123
12172
  }
@@ -12552,8 +12601,8 @@ row. Pass it as `of` to a part that stands outside the table.
12552
12601
 
12553
12602
  | Prop | Type | Default | Description |
12554
12603
  |---|---|---|---|
12555
- | `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 118 more |
12556
- | `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 118 more |
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 |
12557
12606
  | `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 |
12558
12607
  | `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 |
12559
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 |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umriss-ui/table",
3
- "version": "0.41.1",
3
+ "version": "0.42.0",
4
4
  "description": "React data table for data-dense applications - sorting, filtering, grouping, aggregates, virtualisation. Declared the way it reads: columns as JSX, typed against their rows.",
5
5
  "license": "MIT",
6
6
  "author": "Roman Händler",
@@ -51,7 +51,8 @@
51
51
  "exports": {
52
52
  ".": {
53
53
  "types": "./dist/index.d.ts",
54
- "import": "./dist/table.js"
54
+ "import": "./dist/table.js",
55
+ "default": "./dist/table.js"
55
56
  },
56
57
  "./styles.css": {
57
58
  "types": "./dist/styles.d.ts",
@@ -59,9 +60,9 @@
59
60
  }
60
61
  },
61
62
  "peerDependencies": {
63
+ "@umriss-ui/core": "^0.42.0",
62
64
  "react": ">=19",
63
- "react-dom": ">=19",
64
- "@umriss-ui/core": "^0.41.1"
65
+ "react-dom": ">=19"
65
66
  },
66
67
  "devDependencies": {
67
68
  "@fontsource/geist-mono": "^5.3.0",
@@ -76,8 +77,8 @@
76
77
  "typescript": "^5.6.3",
77
78
  "vite": "^6.0.0",
78
79
  "vite-plugin-dts": "^4.3.0",
79
- "@umriss-ui/core": "0.41.1",
80
- "@umriss-ui/demo": "0.0.0"
80
+ "@umriss-ui/demo": "0.0.0",
81
+ "@umriss-ui/core": "0.42.0"
81
82
  },
82
83
  "scripts": {
83
84
  "props": "node --disable-warning=ExperimentalWarning --experimental-strip-types demo/props.ts",