@umriss-ui/table 0.13.6 → 0.15.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.15.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 4 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” (with `snoozeReason`, as a small panel that also asks for a reason, passed on as a third argument), 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,181 @@ 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
+
11936
+ ##### Ask for a reason when snoozing
11937
+
11938
+ Pass `snoozeReason` and “Snooze” opens a small panel instead of the menu: the durations, a field for the reason, and a button that reports. With `"required"` the button waits for text; your application stores the reason with `snooze()`.
11939
+
11940
+ ```tsx
11941
+ import { useMemo, useState } from "react";
11942
+ import { AlarmList, alarmModel, snooze, useTableSelection } from "@umriss-ui/table";
11943
+ import type { Alarm, AlarmType } from "@umriss-ui/table";
11944
+
11945
+ /* Data from the operations world, written out here so the example runs on its own. */
11946
+ const at = (day: number, hours: number, minutes = 0) => new Date(2026, 2, day, hours, minutes).getTime();
11947
+
11948
+ /** Tuesday, 17 March 2026, 10:30 - the moment the screens are read at. */
11949
+ const NOW = at(17, 10, 30);
11950
+
11951
+ const ALERT_TYPES: readonly AlarmType[] = [
11952
+ { id: "checkout-latency", label: "Checkout · p95 latency above 300 ms", priority: "high" },
11953
+ { id: "webhooks-queue", label: "Webhooks · queue older than 5 min", priority: "medium" },
11954
+ { id: "images-disk", label: "Image service · disk 85 % full", priority: "low" },
11955
+ ];
11956
+
11957
+ const ALERTS: readonly Alarm[] = [
11958
+ { id: "a-1", type: "checkout-latency", lifecycle: "active-unacknowledged", raised: at(17, 10, 12) },
11959
+ { id: "a-2", type: "webhooks-queue", lifecycle: "active-acknowledged", raised: at(17, 7, 12), acknowledgedAt: at(17, 8, 2) },
11960
+ { id: "a-3", type: "images-disk", lifecycle: "active-unacknowledged", raised: at(17, 6, 0) },
11961
+ ];
11962
+
11963
+ const MIN = 60_000;
11964
+
11965
+ /* The application's own rule: which durations an operator may choose. */
11966
+ const DURATIONS = [15 * MIN, 60 * MIN, 4 * 60 * MIN] as const;
11967
+
11968
+ export default function AskForAReason() {
11969
+ const [alerts, setAlerts] = useState<readonly Alarm[]>(ALERTS);
11970
+ const view = useMemo(() => alarmModel({ alarms: alerts, types: ALERT_TYPES, asOf: NOW }), [alerts]);
11971
+ const selection = useTableSelection(view.filtered.map((row) => row.id));
11972
+
11973
+ return (
11974
+ <AlarmList
11975
+ view={view}
11976
+ selection={selection}
11977
+ snoozeDurations={DURATIONS}
11978
+ snoozeReason="required"
11979
+ onSnooze={(ids, until, reason) => {
11980
+ setAlerts((current) => current.map((a) => (ids.includes(a.id) ? snooze(a, until, "Jonas Keller", reason) : a)));
11981
+ selection.clear();
11982
+ }}
11983
+ />
11984
+ );
11985
+ }
11986
+ ```
11987
+
11775
11988
  #### When to use something else
11776
11989
 
11777
11990
  - Measured values against limits, without a lifecycle → VerdictColumn
@@ -11782,7 +11995,10 @@ export default function TellQuietFromDisconnected() {
11782
11995
  |---|---|
11783
11996
  | `Tab` | Move through the row boxes, “Acknowledge” and the hidden-alerts switch. |
11784
11997
  | `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`. |
11998
+ | `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`. With `snoozeReason`, “Snooze” opens a panel instead (see Escape and Arrow keys). On “Unsnooze”: hand the ticked snoozed alerts to `onUnsnooze`. |
11999
+ | `Arrow keys` | In the durations menu, or among the durations of the reason panel: move between them; Escape closes the menu. |
12000
+ | `Escape` | In the reason panel: close it without reporting; the focus returns to “Snooze”. A click outside closes it the same way. |
12001
+ | `Enter (in the reason field)` | Report the snooze, as the panel's “Snooze” button does; with `"required"` and no text it does nothing. |
11786
12002
 
11787
12003
  #### Accessibility
11788
12004
 
@@ -11792,14 +12008,18 @@ One polite live region says one number: the active alerts nobody has acknowledge
11792
12008
 
11793
12009
  Each row's box is named after the alert, and “Acknowledge” names how many it will acknowledge; while there is none it is disabled.
11794
12010
 
12011
+ With `snoozeReason`, “Snooze” opens a dialog named after how many alerts it acts on. The focus moves to the chosen duration when it opens and back to “Snooze” when it closes; the durations and the reason field are labelled, and with `"required"` the field is marked and the button disabled until it holds text.
12012
+
11795
12013
  #### API
11796
12014
 
11797
12015
  ##### `AlarmListProps`
11798
12016
 
11799
12017
  | Prop | Type | Default | Description |
11800
12018
  |---|---|---|---|
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) |
12019
+ | `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 6 more |
12020
+ | `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 2 more |
12021
+ | `snoozeReason` | `"optional" \| "required"` | — | Asks for a reason when snoozing: "Snooze" then opens a small panel with the durations and a field for the reason, and its button reports. With `"required"` the button waits for text. Without this prop "Snooze" is the menu of durations and reports at once. The list keeps no draft once the panel closes; Escape and a click outside close it without reporting.<br>Shown in: [Ask for a reason when snoozing](#/alarmlist/ask-for-a-reason-when-snoozing) |
12022
+ | `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), [Ask for a reason when snoozing](#/alarmlist/ask-for-a-reason-when-snoozing) |
11803
12023
  | `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
12024
  | `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
12025
  | `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 +12031,8 @@ Each row's box is named after the alert, and “Acknowledge” names how many it
11811
12031
  | Prop | Type | Default | Description |
11812
12032
  |---|---|---|---|
11813
12033
  | `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) |
12034
+ | `onSnooze` | `(ids: readonly string[], until: number, reason?: string) => 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. With `snoozeReason` there is a third argument: the reason, trimmed, or `undefined` when it is optional and left empty.<br>Shown in: [Offer snoozing to the operator](#/alarmlist/offer-snoozing-to-the-operator), [Ask for a reason when snoozing](#/alarmlist/ask-for-a-reason-when-snoozing) |
12035
+ | `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
12036
 
11815
12037
  Also takes every attribute of `<div>` – without `children`.
11816
12038
 
@@ -11828,7 +12050,7 @@ announces. Give it to `AlarmList` as `view`.
11828
12050
  | `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
12051
  | `hiddenAlarms` *required* | `number` | — | Hidden within the filtered set: snoozed, suppressed, disabled. They are in the list; this is how many. |
11830
12052
  | `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) |
12053
+ | `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 2 more |
11832
12054
  | `visible` *required* | `AlarmRow[]` | — | Only the current page - with a grouping, the rows among its lines. From `TableProjection`. |
11833
12055
  | `groups` | [`RowGroup`](#type-RowGroup)`<AlarmRow>[]` | — | With a grouping: the groups, outermost first. From `TableProjection`. |
11834
12056
  | `lines` | [`Line`](#type-Line)`<AlarmRow>[]` | — | With a grouping: every line of the filtered set. From `TableProjection`. |
@@ -11854,7 +12076,7 @@ selection.
11854
12076
  | `isSelected` *required* | `(id: T) => boolean` | — | <br>Shown in: [Select rows (Selection)](#/selection/selection), [Hold the selection yourself (Selection)](#/selection/hold-the-selection-yourself) |
11855
12077
  | `toggle` *required* | `(id: T) => void` | — | <br>Shown in: [Hold the selection yourself (Selection)](#/selection/hold-the-selection-yourself) |
11856
12078
  | `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 |
12079
+ | `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 4 more |
11858
12080
  | `allSelected` *required* | `boolean` | — | true when every key passed in is selected. |
11859
12081
  | `someSelected` *required* | `boolean` | — | true when some - but not all - are selected. |
11860
12082
  | `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 +12228,13 @@ Used on [Scenarios](#/) and [AlarmList](#/alarmlist).
12006
12228
 
12007
12229
  [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
12230
 
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).
12231
+ 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
12232
 
12011
12233
  ##### `Export`
12012
12234
 
12013
12235
  [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
12236
 
12015
- Used on [Scenarios](#/), [Provider](#/provider), [Sorting](#/sorting), [Grouping](#/grouping), [Toolbar](#/toolbar), [Toolbar controls](#/toolbar-controls), [Export](#/export) and [Server mode](#/server-mode).
12237
+ 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
12238
 
12017
12239
  ##### `Pagination`
12018
12240
 
@@ -12296,7 +12518,7 @@ overwritten by the weaker one, or the end of the snooze would put an alarm
12296
12518
  disabled for maintenance back in service.
12297
12519
 
12298
12520
  ```ts
12299
- function snooze(alarm: Alarm, until: number, by: string): Alarm;
12521
+ function snooze(alarm: Alarm, until: number, by: string, reason?: string): Alarm;
12300
12522
  ```
12301
12523
 
12302
12524
  Used on [Scenarios](#/) and [AlarmList](#/alarmlist).
@@ -12471,12 +12693,12 @@ place in the lifecycle and its moments.
12471
12693
 
12472
12694
  | Prop | Type | Default | Description |
12473
12695
  |---|---|---|---|
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 |
12696
+ | `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 |
12697
+ | `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 5 more |
12698
+ | `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 5 more |
12699
+ | `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 5 more |
12700
+ | `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 |
12701
+ | `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 4 more |
12480
12702
 
12481
12703
  ##### `AlarmColumn`
12482
12704
 
@@ -12501,9 +12723,9 @@ the rules for chatter and floods.
12501
12723
 
12502
12724
  | Prop | Type | Default | Description |
12503
12725
  |---|---|---|---|
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 |
12726
+ | `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 6 more |
12727
+ | `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 6 more |
12728
+ | `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 6 more |
12507
12729
  | `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
12730
  | `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
12731
  | `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 +12747,7 @@ announces. Give it to `AlarmList` as `view`.
12525
12747
  | `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
12748
  | `hiddenAlarms` *required* | `number` | — | Hidden within the filtered set: snoozed, suppressed, disabled. They are in the list; this is how many. |
12527
12749
  | `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) |
12750
+ | `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 2 more |
12529
12751
  | `visible` *required* | `AlarmRow[]` | — | Only the current page - with a grouping, the rows among its lines. From `TableProjection`. |
12530
12752
  | `groups` | [`RowGroup`](#type-RowGroup)`<AlarmRow>[]` | — | With a grouping: the groups, outermost first. From `TableProjection`. |
12531
12753
  | `lines` | [`Line`](#type-Line)`<AlarmRow>[]` | — | With a grouping: every line of the filtered set. From `TableProjection`. |
@@ -12546,12 +12768,12 @@ Derived, never stored.
12546
12768
 
12547
12769
  | Prop | Type | Default | Description |
12548
12770
  |---|---|---|---|
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) |
12771
+ | `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 2 more |
12550
12772
  | `alarm` *required* | [`Alarm`](#type-Alarm) | — | |
12551
12773
  | `type` *required* | [`AlarmType`](#type-AlarmType) | — | |
12552
- | `lifecycle` *required* | [`LifecycleState`](#type-LifecycleState)<br>`"active-unacknowledged" \| "active-acknowledged" \| "resolved-unacknowledged" \| "resolved-acknowledged"` | — | |
12774
+ | `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
12775
  | `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"` | — | |
12776
+ | `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
12777
  | `rank` *required* | `number` | — | 0 is the most urgent. For the sort. |
12556
12778
  | `age` *required* | `number` | — | Since the coming, from the as-of time passed in. |
12557
12779
  | `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 +12790,9 @@ cannot be expressed without it.
12568
12790
 
12569
12791
  | Prop | Type | Default | Description |
12570
12792
  |---|---|---|---|
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 |
12793
+ | `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 6 more |
12794
+ | `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 6 more |
12795
+ | `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 6 more |
12574
12796
  | `returnBand` | [`ReturnBand`](#type-ReturnBand) | — | The dead band, when the type has one. |
12575
12797
 
12576
12798
  Used on [Scenarios](#/) and [AlarmList](#/alarmlist).
@@ -12973,6 +13195,8 @@ type LifecycleState =
12973
13195
  | "resolved-acknowledged";
12974
13196
  ```
12975
13197
 
13198
+ Used on [AlarmList](#/alarmlist).
13199
+
12976
13200
  ##### `ListCondition<W>`
12977
13201
 
12978
13202
  The condition of a list filter: the chosen values, an absent one as `null`.
@@ -13070,6 +13294,8 @@ where the application's convention stands.
13070
13294
  type Priority = "high" | "medium" | "low";
13071
13295
  ```
13072
13296
 
13297
+ Used on [AlarmList](#/alarmlist).
13298
+
13073
13299
  ##### `RangeCondition<W>`
13074
13300
 
13075
13301
  The condition of a range filter: both bounds inclusive, each may be absent.
@@ -13184,8 +13410,9 @@ the way.
13184
13410
 
13185
13411
  | Prop | Type | Default | Description |
13186
13412
  |---|---|---|---|
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 |
13413
+ | `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 |
13414
+ | `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 |
13415
+ | `reason` | `string` | — | Why, when the application asked for one. The list does not show it. |
13189
13416
 
13190
13417
  Used on [Scenarios](#/) and [AlarmList](#/alarmlist).
13191
13418
 
@@ -13215,8 +13442,8 @@ row. Pass it as `of` to a part that stands outside the table.
13215
13442
 
13216
13443
  | Prop | Type | Default | Description |
13217
13444
  |---|---|---|---|
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 |
13445
+ | `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 |
13446
+ | `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
13447
  | `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
13448
  | `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
13449
  | `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 +13501,7 @@ columns: search, filter, sort, page, hidden columns, order, grouping, tree.
13274
13501
  | Prop | Type | Default | Description |
13275
13502
  |---|---|---|---|
13276
13503
  | `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) |
13504
+ | `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
13505
  | `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
13506
  | `page` | `number` | — | 1-based; is clamped to the valid range. |
13280
13507
  | `pageSize` | `number` | — | |
@@ -13332,7 +13559,7 @@ selection.
13332
13559
  | `isSelected` *required* | `(id: T) => boolean` | — | <br>Shown in: [Select rows (Selection)](#/selection/selection), [Hold the selection yourself (Selection)](#/selection/hold-the-selection-yourself) |
13333
13560
  | `toggle` *required* | `(id: T) => void` | — | <br>Shown in: [Hold the selection yourself (Selection)](#/selection/hold-the-selection-yourself) |
13334
13561
  | `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 |
13562
+ | `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 4 more |
13336
13563
  | `allSelected` *required* | `boolean` | — | true when every key passed in is selected. |
13337
13564
  | `someSelected` *required* | `boolean` | — | true when some - but not all - are selected. |
13338
13565
  | `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.15.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.32.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.32.0"
70
70
  },
71
71
  "scripts": {
72
72
  "props": "node --disable-warning=ExperimentalWarning --experimental-strip-types demo/props.ts",