@umriss-ui/table 0.13.6 → 0.14.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.13.6
1
+ # @umriss-ui/table 0.14.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
 
@@ -1281,7 +1281,7 @@ A value cut short at the edge of its cell shows whole in a tip, under the pointe
1281
1281
  | `grid` | `boolean` | — | Grid mode: the table is one tab stop, and the arrows walk its cells - Home and End in the row, Ctrl+Home and Ctrl+End to the table's ends, PageUp and PageDown by the rows in view. A cell's own controls are reached with Enter or F2 and left with Escape; a column with `edit` is edited in place. Without it the table stays a native table.<br>Shown in: [Work cell by cell (Grid mode)](#/grid-mode/grid-mode), [Combine grid mode with groups, pinning and many rows (Grid mode)](#/grid-mode/the-whole-grid), [Edit a comments column (Edits)](#/edits/comments-column) and 6 more |
1282
1282
  | `editMode` | `"cell" \| "row"` | — | Grid mode ([ADR-0036](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0036-a-grid-edits-on-the-first-click-and-saves-rows-on-purpose.md)): `"cell"` reports every cell as it is left (`onCellEdit`); `"row"` opens every cell of a row that edits at once, as one **Row draft**, and reports it only when the row is saved on purpose (`onRowSave`) - by its Save button or Enter; Escape or Discard drops it. A row with a draft is left only by saving or discarding it.<br>Shown in: [Save a row on purpose (Edits)](#/edits/save-a-row-on-purpose), [Check a whole row before it is saved (Edits)](#/edits/check-a-whole-row), [Keep a list: add, change and delete rows (Edits)](#/edits/keep-a-list) and 1 more |
1283
1283
  | `newRow` | `() => Partial<Z>` | — | What a new row starts with - the values the columns read before anything is typed. Without it, nothing.<br>Shown in: [Keep a list: add, change and delete rows (Edits)](#/edits/keep-a-list) |
1284
- | `children` | `ReactNode` | — | Columns, `RowDetail`, `RowActions` and the unbound parts.<br>Shown in: [Show a list of services](#/first-table/first-table), [Search and page from a header of your own](#/first-table/search-and-page-from-a-header-of-your-own), [Sort, arrange and export from controls of your own](#/first-table/sort-arrange-and-export-from-controls-of-your-own) and 114 more |
1284
+ | `children` | `ReactNode` | — | Columns, `RowDetail`, `RowActions` and the unbound parts.<br>Shown in: [Show a list of services](#/first-table/first-table), [Search and page from a header of your own](#/first-table/search-and-page-from-a-header-of-your-own), [Sort, arrange and export from controls of your own](#/first-table/sort-arrange-and-export-from-controls-of-your-own) and 115 more |
1285
1285
 
1286
1286
  ###### Events
1287
1287
 
@@ -1296,7 +1296,7 @@ A value cut short at the edge of its cell shows whole in a tip, under the pointe
1296
1296
 
1297
1297
  | Prop | Type | Default | Description |
1298
1298
  |---|---|---|---|
1299
- | `ariaLabel` | `string` | — | Accessible name of the table (not of the outer frame).<br>Shown in: [Show a list of services](#/first-table/first-table), [Search and page from a header of your own](#/first-table/search-and-page-from-a-header-of-your-own), [Sort, arrange and export from controls of your own](#/first-table/sort-arrange-and-export-from-controls-of-your-own) and 114 more |
1299
+ | `ariaLabel` | `string` | — | Accessible name of the table (not of the outer frame).<br>Shown in: [Show a list of services](#/first-table/first-table), [Search and page from a header of your own](#/first-table/search-and-page-from-a-header-of-your-own), [Sort, arrange and export from controls of your own](#/first-table/sort-arrange-and-export-from-controls-of-your-own) and 115 more |
1300
1300
 
1301
1301
  ###### Styling
1302
1302
 
@@ -1308,7 +1308,7 @@ A value cut short at the edge of its cell shows whole in a tip, under the pointe
1308
1308
 
1309
1309
  | Prop | Type | Default | Description |
1310
1310
  |---|---|---|---|
1311
- | `rowKey` *required* | `(row: Z) => string` | — | A stable key per row – the basis of selection and expansion.<br>Shown in: [Show a list of services](#/first-table/first-table), [Search and page from a header of your own](#/first-table/search-and-page-from-a-header-of-your-own), [Sort, arrange and export from controls of your own](#/first-table/sort-arrange-and-export-from-controls-of-your-own) and 114 more |
1311
+ | `rowKey` *required* | `(row: Z) => string` | — | A stable key per row – the basis of selection and expansion.<br>Shown in: [Show a list of services](#/first-table/first-table), [Search and page from a header of your own](#/first-table/search-and-page-from-a-header-of-your-own), [Sort, arrange and export from controls of your own](#/first-table/sort-arrange-and-export-from-controls-of-your-own) and 115 more |
1312
1312
  | `pageSize` | `number` | `10` | How many rows a page holds.<br>Shown in: [Search and page from a header of your own](#/first-table/search-and-page-from-a-header-of-your-own), [Ask a question over several fields (Filter)](#/filter/a-question-over-several-fields), [Restrict which rows a table has (Pre-filter)](#/pre-filter/pre-filter) and 6 more |
1313
1313
  | `defaultSort` | [`SortLevel`](#type-SortLevel)` \| readonly `[`SortLevel`](#type-SortLevel)`[] \| null` | `null` | The application's sort; it is the default that `view` leaves out.<br>Shown in: [Sort, arrange and export from controls of your own](#/first-table/sort-arrange-and-export-from-controls-of-your-own), [A label wider than its column (Width and pinning)](#/width-and-pinning/a-label-wider-than-its-column), [Sort by several columns (Sorting)](#/sorting/sort-by-several-columns) and 9 more |
1314
1314
  | `defaultGrouping` | [`GroupingId`](#type-GroupingId)`<Z> \| readonly `[`GroupingId`](#type-GroupingId)`<Z>[]` | ungrouped, until the user groups | The application's grouping: a column or group key, or up to three, the outermost first. It is the default that `view` leaves out.<br>Shown in: [Group by one column (Grouping)](#/grouping/one-level), [Group on two levels (Grouping)](#/grouping/two-levels), [Group on three levels (Grouping)](#/grouping/three-levels) and 22 more |
@@ -1475,7 +1475,7 @@ selection.
1475
1475
  | `isSelected` *required* | `(id: T) => boolean` | — | <br>Shown in: [Select rows (Selection)](#/selection/selection), [Hold the selection yourself (Selection)](#/selection/hold-the-selection-yourself) |
1476
1476
  | `toggle` *required* | `(id: T) => void` | — | <br>Shown in: [Hold the selection yourself (Selection)](#/selection/hold-the-selection-yourself) |
1477
1477
  | `toggleAll` *required* | `() => void` | — | Selects all the keys passed in - or, when all of them are selected already, deselects them. Keys outside them stay as they are. |
1478
- | `clear` *required* | `() => void` | — | <br>Shown in: [Hold the selection yourself (Selection)](#/selection/hold-the-selection-yourself), [Acknowledge alerts (AlarmList)](#/alarmlist/acknowledge-alerts), [Snooze and hide (AlarmList)](#/alarmlist/snooze-and-hide) and 2 more |
1478
+ | `clear` *required* | `() => void` | — | <br>Shown in: [Hold the selection yourself (Selection)](#/selection/hold-the-selection-yourself), [Acknowledge alerts (AlarmList)](#/alarmlist/acknowledge-alerts), [Snooze and hide (AlarmList)](#/alarmlist/snooze-and-hide) and 3 more |
1479
1479
  | `allSelected` *required* | `boolean` | — | true when every key passed in is selected. |
1480
1480
  | `someSelected` *required* | `boolean` | — | true when some - but not all - are selected. |
1481
1481
  | `count` *required* | `number` | — | <br>Shown in: [Select rows (Selection)](#/selection/selection), [Hold the selection yourself (Selection)](#/selection/hold-the-selection-yourself), [Scroll twenty thousand rows (Virtualisation)](#/virtualisation/virtualisation) and 1 more |
@@ -1886,7 +1886,7 @@ The `label` is the column header's text, and so what a screen reader says for ev
1886
1886
 
1887
1887
  | Prop | Type | Default | Description |
1888
1888
  |---|---|---|---|
1889
- | `value` *required* | `K` | — | A field of the row. Supplies the column's `id` at the same time.<br>Shown in: [Read a value from a field](#/column/value-from-field), [Compute a value from the row](#/column/computed-value), [Let the value type decide](#/column/defaults) and 114 more |
1889
+ | `value` *required* | `K` | — | A field of the row. Supplies the column's `id` at the same time.<br>Shown in: [Read a value from a field](#/column/value-from-field), [Compute a value from the row](#/column/computed-value), [Let the value type decide](#/column/defaults) and 115 more |
1890
1890
  | `id` | `string` | — | An id of one's own instead of the field name – for two columns over the same field.<br>Shown in: [Pick a standard format (Formats)](#/formats/format), [Share a column between tables (Presets)](#/presets/presets) |
1891
1891
  | `format` | [`FormatFor`](#type-FormatFor)`<Z[K]>` | — | A standard presentation by name: `"percent"`, `"count"` or `{ decimals }` for numbers, `"date"`, `"time"` or `"dateTime"` for points in time. Alignment, sorting, export and footer stay with the value.<br>Shown in: [Compute a value from the row](#/column/computed-value), [Set wording and formats once (Provider)](#/provider/provider), [Pick a standard format (Formats)](#/formats/format) and 33 more |
1892
1892
  | `filter` | [`FilterFor`](#type-FilterFor)`<Z[K]>` | — | A filter in the column header: `"list"` offers the values that occur, `"range"` two bounds (numbers or points in time), a filter from `columnFilter` asks whatever it asks itself. Its condition stands in the table toolbar.<br>Shown in: [A label wider than its column (Width and pinning)](#/width-and-pinning/a-label-wider-than-its-column), [Share a column between tables (Presets)](#/presets/presets), [Choose from the values that occur (Filter)](#/filter/list-filter) and 11 more |
@@ -1905,8 +1905,8 @@ Also every prop of `ColumnBase` and `ValuePaths`.
1905
1905
 
1906
1906
  | Prop | Type | Default | Description |
1907
1907
  |---|---|---|---|
1908
- | `label` *required* | `string` | — | Names the column in its header, in the column menu and in the header row of the export.<br>Shown in: [Read a value from a field](#/column/value-from-field), [Compute a value from the row](#/column/computed-value), [Let the value type decide](#/column/defaults) and 114 more |
1909
- | `rowHeader` | `boolean` | — | This column names the row: row header cells, never hideable, the column `stickyRowHeader` pins, and the name by which the row's selection, expander and actions are read out. At most one per table.<br>Shown in: [Read a value from a field](#/column/value-from-field), [Compute a value from the row](#/column/computed-value), [Let the value type decide](#/column/defaults) and 113 more |
1908
+ | `label` *required* | `string` | — | Names the column in its header, in the column menu and in the header row of the export.<br>Shown in: [Read a value from a field](#/column/value-from-field), [Compute a value from the row](#/column/computed-value), [Let the value type decide](#/column/defaults) and 115 more |
1909
+ | `rowHeader` | `boolean` | — | This column names the row: row header cells, never hideable, the column `stickyRowHeader` pins, and the name by which the row's selection, expander and actions are read out. At most one per table.<br>Shown in: [Read a value from a field](#/column/value-from-field), [Compute a value from the row](#/column/computed-value), [Let the value type decide](#/column/defaults) and 114 more |
1910
1910
  | `numeric` | `boolean` | decided by the first value present | Right-aligned with tabular figures.<br>Shown in: [Share a column between tables (Presets)](#/presets/presets) |
1911
1911
  | `width` | `number` | the browser's | Initial width in pixels.<br>Shown in: [Fit long values (Formats)](#/formats/long-values), [Fit what does not fit (Formats)](#/formats/values-that-do-not-fit), [Let people set the width (Width and pinning)](#/width-and-pinning/width) and 14 more |
1912
1912
  | `resizable` | `boolean` | — | Shows the drag grip on the header cell.<br>Shown in: [Let people set the width (Width and pinning)](#/width-and-pinning/width), [Pin and size from controls of your own (Width and pinning)](#/width-and-pinning/pin-and-size-from-controls-of-your-own), [Share a column between tables (Presets)](#/presets/presets) and 1 more |
@@ -3280,6 +3280,43 @@ export default function SearchFromACardHeader() {
3280
3280
  }
3281
3281
  ```
3282
3282
 
3283
+ ##### Search takes the line
3284
+
3285
+ `<Search grow />` takes the rest of the toolbar's line; the column menu and the export stand at its end.
3286
+
3287
+ ```tsx
3288
+ import { ColumnMenu, Export, Search, Toolbar, useTable } from "@umriss-ui/table";
3289
+
3290
+ interface Person {
3291
+ name: string;
3292
+ role: string;
3293
+ city: string;
3294
+ }
3295
+
3296
+ const PEOPLE: Person[] = [
3297
+ { name: "Luis Moreno", role: "Product manager", city: "Lisbon" },
3298
+ { name: "Hana Sato", role: "Developer", city: "Osaka" },
3299
+ { name: "Freya Olsen", role: "Designer", city: "Bergen" },
3300
+ ];
3301
+
3302
+ export default function SearchTakesTheLine() {
3303
+ const { Table, Column } = useTable(PEOPLE, { rowKey: (p) => p.name });
3304
+
3305
+ return (
3306
+ <Table ariaLabel="Apps team">
3307
+ <Toolbar>
3308
+ <Search grow placeholder="Search people" />
3309
+ <ColumnMenu />
3310
+ <Export filename="people.csv" />
3311
+ </Toolbar>
3312
+ <Column value="name" label="Name" rowHeader />
3313
+ <Column value="role" label="Role" />
3314
+ <Column value="city" label="City" />
3315
+ </Table>
3316
+ );
3317
+ }
3318
+ ```
3319
+
3283
3320
  #### When to use something else
3284
3321
 
3285
3322
  - Restrict one column to some of its values or to a range → Filter
@@ -3294,8 +3331,9 @@ The keys of [First table](#/first-table/keyboard-first-table) and [Input](https:
3294
3331
 
3295
3332
  | Prop | Type | Default | Description |
3296
3333
  |---|---|---|---|
3297
- | `placeholder` | `string` | the wording's "Search …" | The placeholder in the field.<br>Shown in: [Find a person](#/search/find-a-person), [Leave a column out](#/search/leave-a-column-out), [Search from a card header](#/search/search-from-a-card-header) and 21 more |
3334
+ | `placeholder` | `string` | the wording's "Search …" | The placeholder in the field.<br>Shown in: [Find a person](#/search/find-a-person), [Leave a column out](#/search/leave-a-column-out), [Search from a card header](#/search/search-from-a-card-header) and 22 more |
3298
3335
  | `size` | [`ToolbarSize`](#type-ToolbarSize)<br>`"sm" \| "md"` | the size of the toolbar it stands in, `"sm"` outside one | The size of the part: `sm` or `md`.<br>Shown in: [Parts outside a toolbar (Toolbar)](#/toolbar/parts-outside-a-toolbar) |
3336
+ | `grow` | `boolean` | `false` | Take the rest of the toolbar's line: the parts after the search - column menu, export - stand at its end.<br>Shown in: [Search takes the line](#/search/search-takes-the-line) |
3299
3337
  | `of` | [`TableRef`](#type-TableRef) | — | The table, when the part does not stand inside it: the return value of `useTable`.<br>Shown in: [Search from a card header](#/search/search-from-a-card-header), [Place it outside the table (Toolbar)](#/toolbar/place-it-outside), [Parts outside a toolbar (Toolbar)](#/toolbar/parts-outside-a-toolbar) and 1 more |
3300
3338
 
3301
3339
  ###### Accessibility
@@ -7903,7 +7941,7 @@ The parts the table puts in name themselves: the search field “Search table”
7903
7941
 
7904
7942
  | Prop | Type | Default | Description |
7905
7943
  |---|---|---|---|
7906
- | `children` | `ReactNode` | — | Search, column menu, export – on the left in the table toolbar, before the conditions.<br>Shown in: [Search, arrange and export](#/toolbar/search-arrange-and-export), [Place it outside the table](#/toolbar/place-it-outside), [Set wording and formats once (Provider)](#/provider/provider) and 35 more |
7944
+ | `children` | `ReactNode` | — | Search, column menu, export – on the left in the table toolbar, before the conditions.<br>Shown in: [Search, arrange and export](#/toolbar/search-arrange-and-export), [Place it outside the table](#/toolbar/place-it-outside), [Set wording and formats once (Provider)](#/provider/provider) and 36 more |
7907
7945
  | `size` | [`ToolbarSize`](#type-ToolbarSize)<br>`"sm" \| "md"` | `"sm"` | The size of every control the table puts into it - search, column menu, export, "reset", the bulk actions -: `sm` or `md`. A control of one's own takes the same size by its own prop.<br>Shown in: [A larger toolbar (Toolbar controls)](#/toolbar-controls/a-larger-toolbar), [A dispatcher's bar (Toolbar controls)](#/toolbar-controls/a-dispatcher-s-bar) |
7908
7946
  | `of` | [`TableRef`](#type-TableRef) | — | The table, when the table toolbar does not stand inside it. If it then stands behind the table in the tree, it registers only after the first frame – until then a table with a search or a column filter shows its own toolbar. Placed before the table, there is no such change.<br>Shown in: [Place it outside the table](#/toolbar/place-it-outside), [Review cost centres against budget (Scenarios)](#/scenarios/review-cost-centres) |
7909
7947
 
@@ -8627,7 +8665,7 @@ The keys of [First table](#/first-table/keyboard-first-table), [Input](https://r
8627
8665
 
8628
8666
  | Prop | Type | Default | Description |
8629
8667
  |---|---|---|---|
8630
- | `children` | `ReactNode` | — | Search, column menu, export – on the left in the table toolbar, before the conditions.<br>Shown in: [Controls of your own at the toolbar's size](#/toolbar-controls/controls-at-the-toolbars-size), [A larger toolbar](#/toolbar-controls/a-larger-toolbar), [A dispatcher's bar](#/toolbar-controls/a-dispatcher-s-bar) and 35 more |
8668
+ | `children` | `ReactNode` | — | Search, column menu, export – on the left in the table toolbar, before the conditions.<br>Shown in: [Controls of your own at the toolbar's size](#/toolbar-controls/controls-at-the-toolbars-size), [A larger toolbar](#/toolbar-controls/a-larger-toolbar), [A dispatcher's bar](#/toolbar-controls/a-dispatcher-s-bar) and 36 more |
8631
8669
  | `size` | [`ToolbarSize`](#type-ToolbarSize)<br>`"sm" \| "md"` | `"sm"` | The size of every control the table puts into it - search, column menu, export, "reset", the bulk actions -: `sm` or `md`. A control of one's own takes the same size by its own prop.<br>Shown in: [A larger toolbar](#/toolbar-controls/a-larger-toolbar), [A dispatcher's bar](#/toolbar-controls/a-dispatcher-s-bar) |
8632
8670
  | `of` | [`TableRef`](#type-TableRef) | — | The table, when the table toolbar does not stand inside it. If it then stands behind the table in the tree, it registers only after the first frame – until then a table with a search or a column filter shows its own toolbar. Placed before the table, there is no such change.<br>Shown in: [Place it outside the table (Toolbar)](#/toolbar/place-it-outside), [Review cost centres against budget (Scenarios)](#/scenarios/review-cost-centres) |
8633
8671
 
@@ -8911,7 +8949,7 @@ The keys of [First table](#/first-table/keyboard-first-table), [Input](https://r
8911
8949
 
8912
8950
  | Prop | Type | Default | Description |
8913
8951
  |---|---|---|---|
8914
- | `filename` | `string` | the wording's "table.csv" | File name of the download.<br>Shown in: [Download a file](#/export/download-a-file), [Set wording and formats once (Provider)](#/provider/provider), [Read a day's deliveries by depot (Grouping)](#/grouping/the-dispatch-report) and 5 more |
8952
+ | `filename` | `string` | the wording's "table.csv" | File name of the download.<br>Shown in: [Download a file](#/export/download-a-file), [Set wording and formats once (Provider)](#/provider/provider), [Search takes the line (Search)](#/search/search-takes-the-line) and 6 more |
8915
8953
  | `size` | [`ToolbarSize`](#type-ToolbarSize)<br>`"sm" \| "md"` | the size of the toolbar it stands in, `"sm"` outside one | The size of the part: `sm` or `md`.<br>Shown in: [Parts outside a toolbar (Toolbar)](#/toolbar/parts-outside-a-toolbar) |
8916
8954
  | `of` | [`TableRef`](#type-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/place-it-outside), [Parts outside a toolbar (Toolbar)](#/toolbar/parts-outside-a-toolbar), [Review cost centres against budget (Scenarios)](#/scenarios/review-cost-centres) |
8917
8955
 
@@ -11518,7 +11556,7 @@ The library receives alerts and raises none ([ADR-0009](https://github.com/roman
11518
11556
 
11519
11557
  Availability is a second field: snoozed by a person, with an end and a name; suppressed by the application's logic; or disabled. A hidden alert keeps its lifecycle, stays in the list drawn neutral with its state as a word, and is counted; a snooze ends by the model's clock, with no timer. A flood is marked, never thinned out.
11520
11558
 
11521
- The live region announces one number, the active unacknowledged alerts, not each arrival. The terms follow ISA-18.2; `docs/standards.md` maps each to its name here.
11559
+ The live region announces one number, the active unacknowledged alerts, not each arrival. With `onSnooze` and `snoozeDurations` the list offers snoozing beside “Acknowledge”, and with `onUnsnooze` the ending of a snooze: it reports what the operator asked for and snoozes nothing - your application calls `snooze()` or refuses. The durations are yours; there is no default list. A filter by state or priority is the projection's `filter`, fed by controls of your own. The terms follow ISA-18.2; `docs/standards.md` maps each to its name here.
11522
11560
 
11523
11561
  #### Examples
11524
11562
 
@@ -11772,6 +11810,129 @@ export default function TellQuietFromDisconnected() {
11772
11810
  }
11773
11811
  ```
11774
11812
 
11813
+ ##### Offer snoozing to the operator
11814
+
11815
+ Pass `onSnooze` with `snoozeDurations`, and `onUnsnooze`: the list reports which alerts and until when; your application calls `snooze()` or `unsnooze()` on its own state, or refuses.
11816
+
11817
+ ```tsx
11818
+ import { useMemo, useState } from "react";
11819
+ import { AlarmList, alarmModel, snooze, unsnooze, useTableSelection } from "@umriss-ui/table";
11820
+ import type { Alarm, AlarmType } from "@umriss-ui/table";
11821
+
11822
+ /* Data from the operations world, written out here so the example runs on its own. */
11823
+ const at = (day: number, hours: number, minutes = 0) => new Date(2026, 2, day, hours, minutes).getTime();
11824
+
11825
+ /** Tuesday, 17 March 2026, 10:30 - the moment the screens are read at. */
11826
+ const NOW = at(17, 10, 30);
11827
+
11828
+ const ALERT_TYPES: readonly AlarmType[] = [
11829
+ { id: "checkout-latency", label: "Checkout · p95 latency above 300 ms", priority: "high" },
11830
+ { id: "webhooks-queue", label: "Webhooks · queue older than 5 min", priority: "medium" },
11831
+ { id: "search-latency", label: "Search · p95 latency above 250 ms", priority: "medium" },
11832
+ { id: "images-disk", label: "Image service · disk 85 % full", priority: "low" },
11833
+ { id: "reports-job", label: "Reporting · nightly job late", priority: "low" },
11834
+ ];
11835
+
11836
+ const ALERTS: readonly Alarm[] = [
11837
+ { id: "a-1", type: "checkout-latency", lifecycle: "active-acknowledged", raised: at(17, 9, 41), acknowledgedAt: at(17, 9, 46) },
11838
+ { id: "a-2", type: "webhooks-queue", lifecycle: "active-acknowledged", raised: at(17, 7, 12), acknowledgedAt: at(17, 8, 2) },
11839
+ { id: "a-3", type: "search-latency", lifecycle: "active-unacknowledged", raised: at(17, 10, 24) },
11840
+ { id: "a-4", type: "images-disk", lifecycle: "active-unacknowledged", raised: at(17, 6, 0), availability: "snoozed", snooze: { until: at(17, 14), by: "Tomasz Nowak" } },
11841
+ { id: "a-5", type: "reports-job", lifecycle: "active-unacknowledged", raised: at(17, 4, 30), availability: "disabled" },
11842
+ ];
11843
+
11844
+ const MIN = 60_000;
11845
+
11846
+ /* The application's own rule: which durations an operator may choose. */
11847
+ const DURATIONS = [15 * MIN, 60 * MIN, 4 * 60 * MIN] as const;
11848
+
11849
+ export default function OfferSnoozing() {
11850
+ const [alerts, setAlerts] = useState<readonly Alarm[]>(ALERTS);
11851
+ const view = useMemo(() => alarmModel({ alarms: alerts, types: ALERT_TYPES, asOf: NOW }), [alerts]);
11852
+ const selection = useTableSelection(view.filtered.map((row) => row.id));
11853
+
11854
+ return (
11855
+ <AlarmList
11856
+ view={view}
11857
+ selection={selection}
11858
+ snoozeDurations={DURATIONS}
11859
+ onSnooze={(ids, until) => {
11860
+ setAlerts((current) => current.map((a) => (ids.includes(a.id) ? snooze(a, until, "Jonas Keller") : a)));
11861
+ selection.clear();
11862
+ }}
11863
+ onUnsnooze={(ids) => {
11864
+ setAlerts((current) => current.map((a) => (ids.includes(a.id) ? unsnooze(a) : a)));
11865
+ selection.clear();
11866
+ }}
11867
+ />
11868
+ );
11869
+ }
11870
+ ```
11871
+
11872
+ ##### Filter by state and priority
11873
+
11874
+ The list does not filter, the projection does: pass `filter` to [`alarmModel`](#/api/alarmModel) with the state and priority your own controls hold.
11875
+
11876
+ ```tsx
11877
+ import { useMemo, useState } from "react";
11878
+ import { Select, Stack } from "@umriss-ui/core";
11879
+ import { AlarmList, alarmModel } from "@umriss-ui/table";
11880
+ import type { Alarm, AlarmType, LifecycleState, Priority } from "@umriss-ui/table";
11881
+
11882
+ /* Data from the operations world, written out here so the example runs on its own. */
11883
+ const at = (day: number, hours: number, minutes = 0) => new Date(2026, 2, day, hours, minutes).getTime();
11884
+
11885
+ /** Tuesday, 17 March 2026, 10:30 - the moment the screens are read at. */
11886
+ const NOW = at(17, 10, 30);
11887
+
11888
+ const ALERT_TYPES: readonly AlarmType[] = [
11889
+ { id: "checkout-latency", label: "Checkout · p95 latency above 300 ms", priority: "high" },
11890
+ { id: "checkout-errors", label: "Checkout · error rate above 2 %", priority: "high" },
11891
+ { id: "webhooks-queue", label: "Webhooks · queue older than 5 min", priority: "medium" },
11892
+ { id: "search-latency", label: "Search · p95 latency above 250 ms", priority: "medium" },
11893
+ { id: "images-disk", label: "Image service · disk 85 % full", priority: "low" },
11894
+ ];
11895
+
11896
+ const ALERTS: readonly Alarm[] = [
11897
+ { id: "a-1", type: "checkout-latency", lifecycle: "active-acknowledged", raised: at(17, 9, 41), acknowledgedAt: at(17, 9, 46) },
11898
+ { id: "a-2", type: "checkout-errors", lifecycle: "resolved-unacknowledged", raised: at(17, 9, 43), resolved: at(17, 10, 11) },
11899
+ { id: "a-3", type: "webhooks-queue", lifecycle: "active-acknowledged", raised: at(17, 7, 12), acknowledgedAt: at(17, 8, 2) },
11900
+ { id: "a-4", type: "search-latency", lifecycle: "active-unacknowledged", raised: at(17, 10, 24) },
11901
+ { id: "a-5", type: "images-disk", lifecycle: "active-unacknowledged", raised: at(17, 6, 0) },
11902
+ ];
11903
+
11904
+ export default function FilterByStateAndPriority() {
11905
+ const [state, setState] = useState<LifecycleState | "">("");
11906
+ const [priority, setPriority] = useState<Priority | "">("");
11907
+ const view = useMemo(
11908
+ () =>
11909
+ alarmModel(
11910
+ { alarms: ALERTS, types: ALERT_TYPES, asOf: NOW },
11911
+ { filter: (row) => (state === "" || row.lifecycle === state) && (priority === "" || row.priority === priority) },
11912
+ ),
11913
+ [state, priority],
11914
+ );
11915
+
11916
+ return (
11917
+ <Stack gap={3}>
11918
+ <Select size="sm" aria-label="State" value={state} onChange={(event) => setState(event.target.value as LifecycleState | "")}>
11919
+ <option value="">Any state</option>
11920
+ <option value="active-unacknowledged">Active, unacknowledged</option>
11921
+ <option value="active-acknowledged">Active, acknowledged</option>
11922
+ <option value="resolved-unacknowledged">Resolved, unacknowledged</option>
11923
+ </Select>
11924
+ <Select size="sm" aria-label="Priority" value={priority} onChange={(event) => setPriority(event.target.value as Priority | "")}>
11925
+ <option value="">Any priority</option>
11926
+ <option value="high">High</option>
11927
+ <option value="medium">Medium</option>
11928
+ <option value="low">Low</option>
11929
+ </Select>
11930
+ <AlarmList view={view} />
11931
+ </Stack>
11932
+ );
11933
+ }
11934
+ ```
11935
+
11775
11936
  #### When to use something else
11776
11937
 
11777
11938
  - Measured values against limits, without a lifecycle → VerdictColumn
@@ -11782,7 +11943,8 @@ export default function TellQuietFromDisconnected() {
11782
11943
  |---|---|
11783
11944
  | `Tab` | Move through the row boxes, “Acknowledge” and the hidden-alerts switch. |
11784
11945
  | `Space` | On a box: tick or untick the alert. On the switch: show only the hidden alerts, or all. |
11785
- | `Enter` | On “Acknowledge”: hand the ticked alerts to `onAcknowledge`. |
11946
+ | `Enter` | On “Acknowledge”: hand the ticked alerts to `onAcknowledge`. On “Snooze”: open the durations; on a duration: hand the ticked alerts and the end to `onSnooze`. On “Unsnooze”: hand the ticked snoozed alerts to `onUnsnooze`. |
11947
+ | `Arrow keys` | In the durations menu: move between them; Escape closes it. |
11786
11948
 
11787
11949
  #### Accessibility
11788
11950
 
@@ -11798,8 +11960,9 @@ Each row's box is named after the alert, and “Acknowledge” names how many it
11798
11960
 
11799
11961
  | Prop | Type | Default | Description |
11800
11962
  |---|---|---|---|
11801
- | `view` *required* | [`AlarmProjection`](#type-AlarmProjection) | — | The projection from `alarmModel`.<br>Shown in: [Show the alerts](#/alarmlist/show-the-alerts), [Acknowledge alerts](#/alarmlist/acknowledge-alerts), [Mark a flood](#/alarmlist/mark-a-flood) and 3 more |
11802
- | `selection` | [`TableSelection`](#type-TableSelection)`<string>` | — | The caller's selection helper; without it there is no bulk acknowledgement. Deliberately the same one as for any other table: the rules on "everything filtered" versus "this page" are already decided there.<br>Shown in: [Acknowledge alerts](#/alarmlist/acknowledge-alerts), [Snooze and hide](#/alarmlist/snooze-and-hide), [Work through the alerts (Scenarios)](#/scenarios/work-through-the-alerts) |
11963
+ | `view` *required* | [`AlarmProjection`](#type-AlarmProjection) | — | The projection from `alarmModel`.<br>Shown in: [Show the alerts](#/alarmlist/show-the-alerts), [Acknowledge alerts](#/alarmlist/acknowledge-alerts), [Mark a flood](#/alarmlist/mark-a-flood) and 5 more |
11964
+ | `selection` | [`TableSelection`](#type-TableSelection)`<string>` | — | The caller's selection helper; without it there is no bulk acknowledgement. Deliberately the same one as for any other table: the rules on "everything filtered" versus "this page" are already decided there.<br>Shown in: [Acknowledge alerts](#/alarmlist/acknowledge-alerts), [Snooze and hide](#/alarmlist/snooze-and-hide), [Offer snoozing to the operator](#/alarmlist/offer-snoozing-to-the-operator) and 1 more |
11965
+ | `snoozeDurations` | `readonly number[]` | no default | The durations on offer, in milliseconds. Which are permitted is the application's rule, so there is no default list; empty or missing, there is no snooze action.<br>Shown in: [Offer snoozing to the operator](#/alarmlist/offer-snoozing-to-the-operator) |
11803
11966
  | `asOf` | `Date \| number \| null` | — | When the data was true.<br>Shown in: [Tell quiet from disconnected](#/alarmlist/tell-quiet-from-disconnected), [Work through the alerts (Scenarios)](#/scenarios/work-through-the-alerts) |
11804
11967
  | `freshness` | [`FreshnessAges`](#type-FreshnessAges) | — | From when the data counts as stale and from when as disconnected. Without them the list shows no freshness – a time without a rule for when it is too old is no information.<br>Shown in: [Tell quiet from disconnected](#/alarmlist/tell-quiet-from-disconnected), [Work through the alerts (Scenarios)](#/scenarios/work-through-the-alerts) |
11805
11968
  | `density` | `"regular" \| "compact"` | the density of the `UmrissProvider`, else `"compact"` | "compact" reduces the row height for very dense views.<br>Shown in: [Mark a flood](#/alarmlist/mark-a-flood) |
@@ -11811,6 +11974,8 @@ Each row's box is named after the alert, and “Acknowledge” names how many it
11811
11974
  | Prop | Type | Default | Description |
11812
11975
  |---|---|---|---|
11813
11976
  | `onAcknowledge` | `(ids: readonly string[]) => void` | — | Gets the ids that are to be acknowledged. The component does not acknowledge itself – it does not own the alarms.<br>Shown in: [Acknowledge alerts](#/alarmlist/acknowledge-alerts), [Snooze and hide](#/alarmlist/snooze-and-hide), [Work through the alerts (Scenarios)](#/scenarios/work-through-the-alerts) |
11977
+ | `onSnooze` | `(ids: readonly string[], until: number) => void` | — | Gets the ids the operator wants to snooze and the end they chose (`asOf` of the view plus a duration of `snoozeDurations`). The component snoozes nothing – the application calls `snooze()` on its own alarms, or refuses. The action stands beside "Acknowledge", on the selection, and needs `selection`, `snoozeDurations` and this handler.<br>Shown in: [Offer snoozing to the operator](#/alarmlist/offer-snoozing-to-the-operator) |
11978
+ | `onUnsnooze` | `(ids: readonly string[]) => void` | — | Gets the ids whose snooze the operator wants to end early. Shown, beside "Acknowledge", only with this handler and a selection.<br>Shown in: [Offer snoozing to the operator](#/alarmlist/offer-snoozing-to-the-operator) |
11814
11979
 
11815
11980
  Also takes every attribute of `<div>` – without `children`.
11816
11981
 
@@ -11828,7 +11993,7 @@ announces. Give it to `AlarmList` as `view`.
11828
11993
  | `activeUnacknowledged` *required* | `number` | — | Active and unacknowledged within the filtered set - the number for the polite screen reader. From the filtered set, not from the visible page, like every figure in this house. Only alarms in service count: the number calls somebody over, and a hidden alarm is one it must not call to. |
11829
11994
  | `hiddenAlarms` *required* | `number` | — | Hidden within the filtered set: snoozed, suppressed, disabled. They are in the list; this is how many. |
11830
11995
  | `columns` *required* | `readonly `[`ModelColumn`](#type-ModelColumn)`<AlarmRow, AlarmColumn>[]` | — | The visible columns in their order – the basis for the header row, the column menu and the CSV export. From `TableProjection`. |
11831
- | `filtered` *required* | `AlarmRow[]` | — | Everything the filter leaves – the basis for figures and the selection. From `TableProjection`.<br>Shown in: [Acknowledge alerts](#/alarmlist/acknowledge-alerts), [Snooze and hide](#/alarmlist/snooze-and-hide), [Work through the alerts (Scenarios)](#/scenarios/work-through-the-alerts) |
11996
+ | `filtered` *required* | `AlarmRow[]` | — | Everything the filter leaves – the basis for figures and the selection. From `TableProjection`.<br>Shown in: [Acknowledge alerts](#/alarmlist/acknowledge-alerts), [Snooze and hide](#/alarmlist/snooze-and-hide), [Offer snoozing to the operator](#/alarmlist/offer-snoozing-to-the-operator) and 1 more |
11832
11997
  | `visible` *required* | `AlarmRow[]` | — | Only the current page - with a grouping, the rows among its lines. From `TableProjection`. |
11833
11998
  | `groups` | [`RowGroup`](#type-RowGroup)`<AlarmRow>[]` | — | With a grouping: the groups, outermost first. From `TableProjection`. |
11834
11999
  | `lines` | [`Line`](#type-Line)`<AlarmRow>[]` | — | With a grouping: every line of the filtered set. From `TableProjection`. |
@@ -11854,7 +12019,7 @@ selection.
11854
12019
  | `isSelected` *required* | `(id: T) => boolean` | — | <br>Shown in: [Select rows (Selection)](#/selection/selection), [Hold the selection yourself (Selection)](#/selection/hold-the-selection-yourself) |
11855
12020
  | `toggle` *required* | `(id: T) => void` | — | <br>Shown in: [Hold the selection yourself (Selection)](#/selection/hold-the-selection-yourself) |
11856
12021
  | `toggleAll` *required* | `() => void` | — | Selects all the keys passed in - or, when all of them are selected already, deselects them. Keys outside them stay as they are. |
11857
- | `clear` *required* | `() => void` | — | <br>Shown in: [Acknowledge alerts](#/alarmlist/acknowledge-alerts), [Snooze and hide](#/alarmlist/snooze-and-hide), [Hold the selection yourself (Selection)](#/selection/hold-the-selection-yourself) and 2 more |
12022
+ | `clear` *required* | `() => void` | — | <br>Shown in: [Acknowledge alerts](#/alarmlist/acknowledge-alerts), [Snooze and hide](#/alarmlist/snooze-and-hide), [Offer snoozing to the operator](#/alarmlist/offer-snoozing-to-the-operator) and 3 more |
11858
12023
  | `allSelected` *required* | `boolean` | — | true when every key passed in is selected. |
11859
12024
  | `someSelected` *required* | `boolean` | — | true when some - but not all - are selected. |
11860
12025
  | `count` *required* | `number` | — | <br>Shown in: [Select rows (Selection)](#/selection/selection), [Hold the selection yourself (Selection)](#/selection/hold-the-selection-yourself), [Scroll twenty thousand rows (Virtualisation)](#/virtualisation/virtualisation) and 1 more |
@@ -12006,13 +12171,13 @@ Used on [Scenarios](#/) and [AlarmList](#/alarmlist).
12006
12171
 
12007
12172
  [ColumnMenu](#/columnmenu) – A menu in which the user shows, hides, reorders and pins the table's columns and picks a grouping (also called a column chooser). Offer it where the table has more columns than everyone needs.
12008
12173
 
12009
- Used on [Scenarios](#/), [Provider](#/provider), [Column](#/column), [Width and pinning](#/width-and-pinning), [Grouping](#/grouping), [Tree rows](#/tree-rows), [Toolbar](#/toolbar), [Toolbar controls](#/toolbar-controls), [ColumnMenu](#/columnmenu), [View](#/view) and [Server mode](#/server-mode).
12174
+ Used on [Scenarios](#/), [Provider](#/provider), [Column](#/column), [Width and pinning](#/width-and-pinning), [Search](#/search), [Grouping](#/grouping), [Tree rows](#/tree-rows), [Toolbar](#/toolbar), [Toolbar controls](#/toolbar-controls), [ColumnMenu](#/columnmenu), [View](#/view) and [Server mode](#/server-mode).
12010
12175
 
12011
12176
  ##### `Export`
12012
12177
 
12013
12178
  [Export](#/export) – A button that writes the rows the user sees into a CSV file for a spreadsheet (also called download or export to Excel). Hand the application the text instead where it wants the clipboard or a file of its own.
12014
12179
 
12015
- Used on [Scenarios](#/), [Provider](#/provider), [Sorting](#/sorting), [Grouping](#/grouping), [Toolbar](#/toolbar), [Toolbar controls](#/toolbar-controls), [Export](#/export) and [Server mode](#/server-mode).
12180
+ Used on [Scenarios](#/), [Provider](#/provider), [Sorting](#/sorting), [Search](#/search), [Grouping](#/grouping), [Toolbar](#/toolbar), [Toolbar controls](#/toolbar-controls), [Export](#/export) and [Server mode](#/server-mode).
12016
12181
 
12017
12182
  ##### `Pagination`
12018
12183
 
@@ -12471,12 +12636,12 @@ place in the lifecycle and its moments.
12471
12636
 
12472
12637
  | Prop | Type | Default | Description |
12473
12638
  |---|---|---|---|
12474
- | `id` *required* | `string` | — | <br>Shown in: [Show the alerts (AlarmList)](#/alarmlist/show-the-alerts), [Acknowledge alerts (AlarmList)](#/alarmlist/acknowledge-alerts), [Mark a flood (AlarmList)](#/alarmlist/mark-a-flood) and 2 more |
12475
- | `type` *required* | `string` | — | Id of the alarm type.<br>Shown in: [Show the alerts (AlarmList)](#/alarmlist/show-the-alerts), [Acknowledge alerts (AlarmList)](#/alarmlist/acknowledge-alerts), [Mark a flood (AlarmList)](#/alarmlist/mark-a-flood) and 2 more |
12476
- | `lifecycle` *required* | [`LifecycleState`](#type-LifecycleState)<br>`"active-unacknowledged" \| "active-acknowledged" \| "resolved-unacknowledged" \| "resolved-acknowledged"` | — | <br>Shown in: [Show the alerts (AlarmList)](#/alarmlist/show-the-alerts), [Acknowledge alerts (AlarmList)](#/alarmlist/acknowledge-alerts), [Mark a flood (AlarmList)](#/alarmlist/mark-a-flood) and 2 more |
12477
- | `raised` *required* | `number` | — | The moment of coming, in milliseconds.<br>Shown in: [Show the alerts (AlarmList)](#/alarmlist/show-the-alerts), [Acknowledge alerts (AlarmList)](#/alarmlist/acknowledge-alerts), [Mark a flood (AlarmList)](#/alarmlist/mark-a-flood) and 2 more |
12478
- | `resolved` | `number` | — | The moment of resolving; while the alarm is active: none.<br>Shown in: [Show the alerts (AlarmList)](#/alarmlist/show-the-alerts), [Acknowledge alerts (AlarmList)](#/alarmlist/acknowledge-alerts), [Mark a flood (AlarmList)](#/alarmlist/mark-a-flood) and 2 more |
12479
- | `acknowledgedAt` | `number` | — | The moment of the acknowledgement, as long as unacknowledged: none.<br>Shown in: [Show the alerts (AlarmList)](#/alarmlist/show-the-alerts), [Acknowledge alerts (AlarmList)](#/alarmlist/acknowledge-alerts), [Snooze and hide (AlarmList)](#/alarmlist/snooze-and-hide) and 1 more |
12639
+ | `id` *required* | `string` | — | <br>Shown in: [Show the alerts (AlarmList)](#/alarmlist/show-the-alerts), [Acknowledge alerts (AlarmList)](#/alarmlist/acknowledge-alerts), [Mark a flood (AlarmList)](#/alarmlist/mark-a-flood) and 4 more |
12640
+ | `type` *required* | `string` | — | Id of the alarm type.<br>Shown in: [Show the alerts (AlarmList)](#/alarmlist/show-the-alerts), [Acknowledge alerts (AlarmList)](#/alarmlist/acknowledge-alerts), [Mark a flood (AlarmList)](#/alarmlist/mark-a-flood) and 4 more |
12641
+ | `lifecycle` *required* | [`LifecycleState`](#type-LifecycleState)<br>`"active-unacknowledged" \| "active-acknowledged" \| "resolved-unacknowledged" \| "resolved-acknowledged"` | — | <br>Shown in: [Show the alerts (AlarmList)](#/alarmlist/show-the-alerts), [Acknowledge alerts (AlarmList)](#/alarmlist/acknowledge-alerts), [Mark a flood (AlarmList)](#/alarmlist/mark-a-flood) and 4 more |
12642
+ | `raised` *required* | `number` | — | The moment of coming, in milliseconds.<br>Shown in: [Show the alerts (AlarmList)](#/alarmlist/show-the-alerts), [Acknowledge alerts (AlarmList)](#/alarmlist/acknowledge-alerts), [Mark a flood (AlarmList)](#/alarmlist/mark-a-flood) and 4 more |
12643
+ | `resolved` | `number` | — | The moment of resolving; while the alarm is active: none.<br>Shown in: [Show the alerts (AlarmList)](#/alarmlist/show-the-alerts), [Acknowledge alerts (AlarmList)](#/alarmlist/acknowledge-alerts), [Mark a flood (AlarmList)](#/alarmlist/mark-a-flood) and 3 more |
12644
+ | `acknowledgedAt` | `number` | — | The moment of the acknowledgement, as long as unacknowledged: none.<br>Shown in: [Show the alerts (AlarmList)](#/alarmlist/show-the-alerts), [Acknowledge alerts (AlarmList)](#/alarmlist/acknowledge-alerts), [Snooze and hide (AlarmList)](#/alarmlist/snooze-and-hide) and 3 more |
12480
12645
 
12481
12646
  ##### `AlarmColumn`
12482
12647
 
@@ -12501,9 +12666,9 @@ the rules for chatter and floods.
12501
12666
 
12502
12667
  | Prop | Type | Default | Description |
12503
12668
  |---|---|---|---|
12504
- | `alarms` *required* | `readonly `[`Alarm`](#type-Alarm)`[]` | — | <br>Shown in: [Show the alerts (AlarmList)](#/alarmlist/show-the-alerts), [Acknowledge alerts (AlarmList)](#/alarmlist/acknowledge-alerts), [Mark a flood (AlarmList)](#/alarmlist/mark-a-flood) and 3 more |
12505
- | `types` *required* | `readonly `[`AlarmType`](#type-AlarmType)`[]` | — | The catalogue of conditions. An alarm whose type is missing is not thrown away.<br>Shown in: [Show the alerts (AlarmList)](#/alarmlist/show-the-alerts), [Acknowledge alerts (AlarmList)](#/alarmlist/acknowledge-alerts), [Mark a flood (AlarmList)](#/alarmlist/mark-a-flood) and 3 more |
12506
- | `asOf` *required* | `number` | — | Milliseconds. The age and every window hang on it; nothing reads a clock.<br>Shown in: [Show the alerts (AlarmList)](#/alarmlist/show-the-alerts), [Acknowledge alerts (AlarmList)](#/alarmlist/acknowledge-alerts), [Mark a flood (AlarmList)](#/alarmlist/mark-a-flood) and 3 more |
12669
+ | `alarms` *required* | `readonly `[`Alarm`](#type-Alarm)`[]` | — | <br>Shown in: [Show the alerts (AlarmList)](#/alarmlist/show-the-alerts), [Acknowledge alerts (AlarmList)](#/alarmlist/acknowledge-alerts), [Mark a flood (AlarmList)](#/alarmlist/mark-a-flood) and 5 more |
12670
+ | `types` *required* | `readonly `[`AlarmType`](#type-AlarmType)`[]` | — | The catalogue of conditions. An alarm whose type is missing is not thrown away.<br>Shown in: [Show the alerts (AlarmList)](#/alarmlist/show-the-alerts), [Acknowledge alerts (AlarmList)](#/alarmlist/acknowledge-alerts), [Mark a flood (AlarmList)](#/alarmlist/mark-a-flood) and 5 more |
12671
+ | `asOf` *required* | `number` | — | Milliseconds. The age and every window hang on it; nothing reads a clock.<br>Shown in: [Show the alerts (AlarmList)](#/alarmlist/show-the-alerts), [Acknowledge alerts (AlarmList)](#/alarmlist/acknowledge-alerts), [Mark a flood (AlarmList)](#/alarmlist/mark-a-flood) and 5 more |
12507
12672
  | `chatter` | [`ChatterRule`](#type-ChatterRule) | — | Without it `frequency` counts every occurrence up to the as-of time and `chatters` stays false.<br>Shown in: [Mark a flood (AlarmList)](#/alarmlist/mark-a-flood) |
12508
12673
  | `flood` | [`FloodRule`](#type-FloodRule) | — | Without it no flood is detected and nothing is marked.<br>Shown in: [Mark a flood (AlarmList)](#/alarmlist/mark-a-flood) |
12509
12674
  | `keepDone` | `boolean` | `false` | Show the alarms that are done as well (resolved and acknowledged). Default: no - that is the only removal the model performs. |
@@ -12525,7 +12690,7 @@ announces. Give it to `AlarmList` as `view`.
12525
12690
  | `activeUnacknowledged` *required* | `number` | — | Active and unacknowledged within the filtered set - the number for the polite screen reader. From the filtered set, not from the visible page, like every figure in this house. Only alarms in service count: the number calls somebody over, and a hidden alarm is one it must not call to. |
12526
12691
  | `hiddenAlarms` *required* | `number` | — | Hidden within the filtered set: snoozed, suppressed, disabled. They are in the list; this is how many. |
12527
12692
  | `columns` *required* | `readonly `[`ModelColumn`](#type-ModelColumn)`<AlarmRow, AlarmColumn>[]` | — | The visible columns in their order – the basis for the header row, the column menu and the CSV export. From `TableProjection`. |
12528
- | `filtered` *required* | `AlarmRow[]` | — | Everything the filter leaves – the basis for figures and the selection. From `TableProjection`.<br>Shown in: [Acknowledge alerts (AlarmList)](#/alarmlist/acknowledge-alerts), [Snooze and hide (AlarmList)](#/alarmlist/snooze-and-hide), [Work through the alerts (Scenarios)](#/scenarios/work-through-the-alerts) |
12693
+ | `filtered` *required* | `AlarmRow[]` | — | Everything the filter leaves – the basis for figures and the selection. From `TableProjection`.<br>Shown in: [Acknowledge alerts (AlarmList)](#/alarmlist/acknowledge-alerts), [Snooze and hide (AlarmList)](#/alarmlist/snooze-and-hide), [Offer snoozing to the operator (AlarmList)](#/alarmlist/offer-snoozing-to-the-operator) and 1 more |
12529
12694
  | `visible` *required* | `AlarmRow[]` | — | Only the current page - with a grouping, the rows among its lines. From `TableProjection`. |
12530
12695
  | `groups` | [`RowGroup`](#type-RowGroup)`<AlarmRow>[]` | — | With a grouping: the groups, outermost first. From `TableProjection`. |
12531
12696
  | `lines` | [`Line`](#type-Line)`<AlarmRow>[]` | — | With a grouping: every line of the filtered set. From `TableProjection`. |
@@ -12546,12 +12711,12 @@ Derived, never stored.
12546
12711
 
12547
12712
  | Prop | Type | Default | Description |
12548
12713
  |---|---|---|---|
12549
- | `id` *required* | `string` | — | Id of the alarm - the key for selection and acknowledgement.<br>Shown in: [Acknowledge alerts (AlarmList)](#/alarmlist/acknowledge-alerts), [Snooze and hide (AlarmList)](#/alarmlist/snooze-and-hide), [Work through the alerts (Scenarios)](#/scenarios/work-through-the-alerts) |
12714
+ | `id` *required* | `string` | — | Id of the alarm - the key for selection and acknowledgement.<br>Shown in: [Acknowledge alerts (AlarmList)](#/alarmlist/acknowledge-alerts), [Snooze and hide (AlarmList)](#/alarmlist/snooze-and-hide), [Offer snoozing to the operator (AlarmList)](#/alarmlist/offer-snoozing-to-the-operator) and 1 more |
12550
12715
  | `alarm` *required* | [`Alarm`](#type-Alarm) | — | |
12551
12716
  | `type` *required* | [`AlarmType`](#type-AlarmType) | — | |
12552
- | `lifecycle` *required* | [`LifecycleState`](#type-LifecycleState)<br>`"active-unacknowledged" \| "active-acknowledged" \| "resolved-unacknowledged" \| "resolved-acknowledged"` | — | |
12717
+ | `lifecycle` *required* | [`LifecycleState`](#type-LifecycleState)<br>`"active-unacknowledged" \| "active-acknowledged" \| "resolved-unacknowledged" \| "resolved-acknowledged"` | — | <br>Shown in: [Filter by state and priority (AlarmList)](#/alarmlist/filter-by-state-and-priority) |
12553
12718
  | `availability` *required* | [`Availability`](#type-Availability)<br>`"in-service" \| "snoozed" \| "suppressed" \| "disabled"` | — | At the as-of time: an expired snooze is already back in service here.<br>Shown in: [Snooze and hide (AlarmList)](#/alarmlist/snooze-and-hide), [Work through the alerts (Scenarios)](#/scenarios/work-through-the-alerts) |
12554
- | `priority` *required* | [`Priority`](#type-Priority)<br>`"high" \| "medium" \| "low"` | — | |
12719
+ | `priority` *required* | [`Priority`](#type-Priority)<br>`"high" \| "medium" \| "low"` | — | <br>Shown in: [Filter by state and priority (AlarmList)](#/alarmlist/filter-by-state-and-priority) |
12555
12720
  | `rank` *required* | `number` | — | 0 is the most urgent. For the sort. |
12556
12721
  | `age` *required* | `number` | — | Since the coming, from the as-of time passed in. |
12557
12722
  | `duration` *required* | `number` | — | How long the condition was true - until the resolving, otherwise until the as-of time. Not the same thing as the age. |
@@ -12568,9 +12733,9 @@ cannot be expressed without it.
12568
12733
 
12569
12734
  | Prop | Type | Default | Description |
12570
12735
  |---|---|---|---|
12571
- | `id` *required* | `string` | — | <br>Shown in: [Show the alerts (AlarmList)](#/alarmlist/show-the-alerts), [Acknowledge alerts (AlarmList)](#/alarmlist/acknowledge-alerts), [Mark a flood (AlarmList)](#/alarmlist/mark-a-flood) and 3 more |
12572
- | `label` *required* | `string` | — | <br>Shown in: [Show the alerts (AlarmList)](#/alarmlist/show-the-alerts), [Acknowledge alerts (AlarmList)](#/alarmlist/acknowledge-alerts), [Mark a flood (AlarmList)](#/alarmlist/mark-a-flood) and 3 more |
12573
- | `priority` *required* | [`Priority`](#type-Priority)<br>`"high" \| "medium" \| "low"` | — | <br>Shown in: [Show the alerts (AlarmList)](#/alarmlist/show-the-alerts), [Acknowledge alerts (AlarmList)](#/alarmlist/acknowledge-alerts), [Mark a flood (AlarmList)](#/alarmlist/mark-a-flood) and 3 more |
12736
+ | `id` *required* | `string` | — | <br>Shown in: [Show the alerts (AlarmList)](#/alarmlist/show-the-alerts), [Acknowledge alerts (AlarmList)](#/alarmlist/acknowledge-alerts), [Mark a flood (AlarmList)](#/alarmlist/mark-a-flood) and 5 more |
12737
+ | `label` *required* | `string` | — | <br>Shown in: [Show the alerts (AlarmList)](#/alarmlist/show-the-alerts), [Acknowledge alerts (AlarmList)](#/alarmlist/acknowledge-alerts), [Mark a flood (AlarmList)](#/alarmlist/mark-a-flood) and 5 more |
12738
+ | `priority` *required* | [`Priority`](#type-Priority)<br>`"high" \| "medium" \| "low"` | — | <br>Shown in: [Show the alerts (AlarmList)](#/alarmlist/show-the-alerts), [Acknowledge alerts (AlarmList)](#/alarmlist/acknowledge-alerts), [Mark a flood (AlarmList)](#/alarmlist/mark-a-flood) and 5 more |
12574
12739
  | `returnBand` | [`ReturnBand`](#type-ReturnBand) | — | The dead band, when the type has one. |
12575
12740
 
12576
12741
  Used on [Scenarios](#/) and [AlarmList](#/alarmlist).
@@ -12973,6 +13138,8 @@ type LifecycleState =
12973
13138
  | "resolved-acknowledged";
12974
13139
  ```
12975
13140
 
13141
+ Used on [AlarmList](#/alarmlist).
13142
+
12976
13143
  ##### `ListCondition<W>`
12977
13144
 
12978
13145
  The condition of a list filter: the chosen values, an absent one as `null`.
@@ -13070,6 +13237,8 @@ where the application's convention stands.
13070
13237
  type Priority = "high" | "medium" | "low";
13071
13238
  ```
13072
13239
 
13240
+ Used on [AlarmList](#/alarmlist).
13241
+
13073
13242
  ##### `RangeCondition<W>`
13074
13243
 
13075
13244
  The condition of a range filter: both bounds inclusive, each may be absent.
@@ -13184,8 +13353,8 @@ the way.
13184
13353
 
13185
13354
  | Prop | Type | Default | Description |
13186
13355
  |---|---|---|---|
13187
- | `until` *required* | `number` | — | When it ends, in milliseconds. Reaching it is enough.<br>Shown in: [Show the alerts (AlarmList)](#/alarmlist/show-the-alerts), [Acknowledge alerts (AlarmList)](#/alarmlist/acknowledge-alerts), [Snooze and hide (AlarmList)](#/alarmlist/snooze-and-hide) and 1 more |
13188
- | `by` *required* | `string` | — | Who snoozed it - a snooze is tracked, not anonymous.<br>Shown in: [Show the alerts (AlarmList)](#/alarmlist/show-the-alerts), [Acknowledge alerts (AlarmList)](#/alarmlist/acknowledge-alerts), [Snooze and hide (AlarmList)](#/alarmlist/snooze-and-hide) and 1 more |
13356
+ | `until` *required* | `number` | — | When it ends, in milliseconds. Reaching it is enough.<br>Shown in: [Show the alerts (AlarmList)](#/alarmlist/show-the-alerts), [Acknowledge alerts (AlarmList)](#/alarmlist/acknowledge-alerts), [Snooze and hide (AlarmList)](#/alarmlist/snooze-and-hide) and 2 more |
13357
+ | `by` *required* | `string` | — | Who snoozed it - a snooze is tracked, not anonymous.<br>Shown in: [Show the alerts (AlarmList)](#/alarmlist/show-the-alerts), [Acknowledge alerts (AlarmList)](#/alarmlist/acknowledge-alerts), [Snooze and hide (AlarmList)](#/alarmlist/snooze-and-hide) and 2 more |
13189
13358
 
13190
13359
  Used on [Scenarios](#/) and [AlarmList](#/alarmlist).
13191
13360
 
@@ -13215,8 +13384,8 @@ row. Pass it as `of` to a part that stands outside the table.
13215
13384
 
13216
13385
  | Prop | Type | Default | Description |
13217
13386
  |---|---|---|---|
13218
- | `Table` *required* | `(props: `[`TableProps`](#/first-table/type-TableProps)`<Z>) => ReactNode` | — | <br>Shown in: [A first table (Installation)](#/installation/first-table), [Show a list of services (First table)](#/first-table/first-table), [Search and page from a header of your own (First table)](#/first-table/search-and-page-from-a-header-of-your-own) and 114 more |
13219
- | `Column` *required* | [`ColumnComponent`](#type-ColumnComponent)`<Z>` | — | <br>Shown in: [A first table (Installation)](#/installation/first-table), [Show a list of services (First table)](#/first-table/first-table), [Search and page from a header of your own (First table)](#/first-table/search-and-page-from-a-header-of-your-own) and 114 more |
13387
+ | `Table` *required* | `(props: `[`TableProps`](#/first-table/type-TableProps)`<Z>) => ReactNode` | — | <br>Shown in: [A first table (Installation)](#/installation/first-table), [Show a list of services (First table)](#/first-table/first-table), [Search and page from a header of your own (First table)](#/first-table/search-and-page-from-a-header-of-your-own) and 115 more |
13388
+ | `Column` *required* | [`ColumnComponent`](#type-ColumnComponent)`<Z>` | — | <br>Shown in: [A first table (Installation)](#/installation/first-table), [Show a list of services (First table)](#/first-table/first-table), [Search and page from a header of your own (First table)](#/first-table/search-and-page-from-a-header-of-your-own) and 115 more |
13220
13389
  | `VerdictColumn` *required* | [`VerdictColumnComponent`](#type-VerdictColumnComponent)`<Z>` | — | <br>Shown in: [Pin columns to both sides (Width and pinning)](#/width-and-pinning/pinned-both-sides), [Read a day's deliveries by depot (Grouping)](#/grouping/the-dispatch-report), [Carry the worst verdict up (Aggregate)](#/aggregate/worst-verdict) and 5 more |
13221
13390
  | `RowDetail` *required* | `(props: `[`RowDetailProps`](#/rowdetail/type-RowDetailProps)`<Z>) => ReactNode` | — | <br>Shown in: [Keep the header and the names in view (Width and pinning)](#/width-and-pinning/sticky-parts), [Employees in the detail (Tree rows)](#/tree-rows/employees-in-the-detail), [Own staff and teams (Tree rows)](#/tree-rows/own-staff-and-teams) and 5 more |
13222
13391
  | `RowActions` *required* | `(props: `[`RowActionsProps`](#/rowactions/type-RowActionsProps)`) => ReactNode` | — | <br>Shown in: [Name the row (Column)](#/column/row-header), [Pin columns to both sides (Width and pinning)](#/width-and-pinning/pinned-both-sides), [Select a whole group (Grouping)](#/grouping/a-whole-group-selected) and 7 more |
@@ -13274,7 +13443,7 @@ columns: search, filter, sort, page, hidden columns, order, grouping, tree.
13274
13443
  | Prop | Type | Default | Description |
13275
13444
  |---|---|---|---|
13276
13445
  | `search` | `string` | — | |
13277
- | `filter` | `(row: Z) => boolean` | — | An additional filter beside the free-text search, e.g. a status choice.<br>Shown in: [Snooze and hide (AlarmList)](#/alarmlist/snooze-and-hide), [Work through the alerts (Scenarios)](#/scenarios/work-through-the-alerts) |
13446
+ | `filter` | `(row: Z) => boolean` | — | An additional filter beside the free-text search, e.g. a status choice.<br>Shown in: [Snooze and hide (AlarmList)](#/alarmlist/snooze-and-hide), [Filter by state and priority (AlarmList)](#/alarmlist/filter-by-state-and-priority), [Work through the alerts (Scenarios)](#/scenarios/work-through-the-alerts) |
13278
13447
  | `sort` | [`SortLevel`](#type-SortLevel)`<K> \| readonly `[`SortLevel`](#type-SortLevel)`<K>[] \| null` | — | One level or several. A single level means the same as a list holding only it – which is why callers that still pass a single object remain correct unchanged. |
13279
13448
  | `page` | `number` | — | 1-based; is clamped to the valid range. |
13280
13449
  | `pageSize` | `number` | — | |
@@ -13332,7 +13501,7 @@ selection.
13332
13501
  | `isSelected` *required* | `(id: T) => boolean` | — | <br>Shown in: [Select rows (Selection)](#/selection/selection), [Hold the selection yourself (Selection)](#/selection/hold-the-selection-yourself) |
13333
13502
  | `toggle` *required* | `(id: T) => void` | — | <br>Shown in: [Hold the selection yourself (Selection)](#/selection/hold-the-selection-yourself) |
13334
13503
  | `toggleAll` *required* | `() => void` | — | Selects all the keys passed in - or, when all of them are selected already, deselects them. Keys outside them stay as they are. |
13335
- | `clear` *required* | `() => void` | — | <br>Shown in: [Hold the selection yourself (Selection)](#/selection/hold-the-selection-yourself), [Acknowledge alerts (AlarmList)](#/alarmlist/acknowledge-alerts), [Snooze and hide (AlarmList)](#/alarmlist/snooze-and-hide) and 2 more |
13504
+ | `clear` *required* | `() => void` | — | <br>Shown in: [Hold the selection yourself (Selection)](#/selection/hold-the-selection-yourself), [Acknowledge alerts (AlarmList)](#/alarmlist/acknowledge-alerts), [Snooze and hide (AlarmList)](#/alarmlist/snooze-and-hide) and 3 more |
13336
13505
  | `allSelected` *required* | `boolean` | — | true when every key passed in is selected. |
13337
13506
  | `someSelected` *required* | `boolean` | — | true when some - but not all - are selected. |
13338
13507
  | `count` *required* | `number` | — | <br>Shown in: [Select rows (Selection)](#/selection/selection), [Hold the selection yourself (Selection)](#/selection/hold-the-selection-yourself), [Scroll twenty thousand rows (Virtualisation)](#/virtualisation/virtualisation) and 1 more |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umriss-ui/table",
3
- "version": "0.13.6",
3
+ "version": "0.14.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,7 @@
51
51
  "peerDependencies": {
52
52
  "react": ">=18",
53
53
  "react-dom": ">=18",
54
- "@umriss-ui/core": "^0.30.0"
54
+ "@umriss-ui/core": "^0.31.0"
55
55
  },
56
56
  "devDependencies": {
57
57
  "@fontsource/geist-mono": "^5.3.0",
@@ -66,7 +66,7 @@
66
66
  "vite": "^6.0.0",
67
67
  "vite-plugin-dts": "^4.3.0",
68
68
  "@umriss-ui/demo": "0.0.0",
69
- "@umriss-ui/core": "0.30.0"
69
+ "@umriss-ui/core": "0.31.0"
70
70
  },
71
71
  "scripts": {
72
72
  "props": "node --disable-warning=ExperimentalWarning --experimental-strip-types demo/props.ts",