@umriss-ui/table 0.14.0 → 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.14.0
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
 
@@ -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 3 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 |
@@ -11556,7 +11556,7 @@ The library receives alerts and raises none ([ADR-0009](https://github.com/roman
11556
11556
 
11557
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.
11558
11558
 
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.
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.
11560
11560
 
11561
11561
  #### Examples
11562
11562
 
@@ -11933,6 +11933,58 @@ export default function FilterByStateAndPriority() {
11933
11933
  }
11934
11934
  ```
11935
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
+
11936
11988
  #### When to use something else
11937
11989
 
11938
11990
  - Measured values against limits, without a lifecycle → VerdictColumn
@@ -11943,8 +11995,10 @@ export default function FilterByStateAndPriority() {
11943
11995
  |---|---|
11944
11996
  | `Tab` | Move through the row boxes, “Acknowledge” and the hidden-alerts switch. |
11945
11997
  | `Space` | On a box: tick or untick the alert. On the switch: show only the hidden alerts, or all. |
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. |
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. |
11948
12002
 
11949
12003
  #### Accessibility
11950
12004
 
@@ -11954,15 +12008,18 @@ One polite live region says one number: the active alerts nobody has acknowledge
11954
12008
 
11955
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.
11956
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
+
11957
12013
  #### API
11958
12014
 
11959
12015
  ##### `AlarmListProps`
11960
12016
 
11961
12017
  | Prop | Type | Default | Description |
11962
12018
  |---|---|---|---|
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) |
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) |
11966
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) |
11967
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) |
11968
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) |
@@ -11974,7 +12031,7 @@ Each row's box is named after the alert, and “Acknowledge” names how many it
11974
12031
  | Prop | Type | Default | Description |
11975
12032
  |---|---|---|---|
11976
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) |
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) |
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) |
11978
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) |
11979
12036
 
11980
12037
  Also takes every attribute of `<div>` – without `children`.
@@ -11993,7 +12050,7 @@ announces. Give it to `AlarmList` as `view`.
11993
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. |
11994
12051
  | `hiddenAlarms` *required* | `number` | — | Hidden within the filtered set: snoozed, suppressed, disabled. They are in the list; this is how many. |
11995
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`. |
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 |
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 |
11997
12054
  | `visible` *required* | `AlarmRow[]` | — | Only the current page - with a grouping, the rows among its lines. From `TableProjection`. |
11998
12055
  | `groups` | [`RowGroup`](#type-RowGroup)`<AlarmRow>[]` | — | With a grouping: the groups, outermost first. From `TableProjection`. |
11999
12056
  | `lines` | [`Line`](#type-Line)`<AlarmRow>[]` | — | With a grouping: every line of the filtered set. From `TableProjection`. |
@@ -12019,7 +12076,7 @@ selection.
12019
12076
  | `isSelected` *required* | `(id: T) => boolean` | — | <br>Shown in: [Select rows (Selection)](#/selection/selection), [Hold the selection yourself (Selection)](#/selection/hold-the-selection-yourself) |
12020
12077
  | `toggle` *required* | `(id: T) => void` | — | <br>Shown in: [Hold the selection yourself (Selection)](#/selection/hold-the-selection-yourself) |
12021
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. |
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 |
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 |
12023
12080
  | `allSelected` *required* | `boolean` | — | true when every key passed in is selected. |
12024
12081
  | `someSelected` *required* | `boolean` | — | true when some - but not all - are selected. |
12025
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 |
@@ -12461,7 +12518,7 @@ overwritten by the weaker one, or the end of the snooze would put an alarm
12461
12518
  disabled for maintenance back in service.
12462
12519
 
12463
12520
  ```ts
12464
- function snooze(alarm: Alarm, until: number, by: string): Alarm;
12521
+ function snooze(alarm: Alarm, until: number, by: string, reason?: string): Alarm;
12465
12522
  ```
12466
12523
 
12467
12524
  Used on [Scenarios](#/) and [AlarmList](#/alarmlist).
@@ -12636,12 +12693,12 @@ place in the lifecycle and its moments.
12636
12693
 
12637
12694
  | Prop | Type | Default | Description |
12638
12695
  |---|---|---|---|
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 |
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 |
12643
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 |
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 |
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 |
12645
12702
 
12646
12703
  ##### `AlarmColumn`
12647
12704
 
@@ -12666,9 +12723,9 @@ the rules for chatter and floods.
12666
12723
 
12667
12724
  | Prop | Type | Default | Description |
12668
12725
  |---|---|---|---|
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 |
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 |
12672
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) |
12673
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) |
12674
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. |
@@ -12690,7 +12747,7 @@ announces. Give it to `AlarmList` as `view`.
12690
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. |
12691
12748
  | `hiddenAlarms` *required* | `number` | — | Hidden within the filtered set: snoozed, suppressed, disabled. They are in the list; this is how many. |
12692
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`. |
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 |
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 |
12694
12751
  | `visible` *required* | `AlarmRow[]` | — | Only the current page - with a grouping, the rows among its lines. From `TableProjection`. |
12695
12752
  | `groups` | [`RowGroup`](#type-RowGroup)`<AlarmRow>[]` | — | With a grouping: the groups, outermost first. From `TableProjection`. |
12696
12753
  | `lines` | [`Line`](#type-Line)`<AlarmRow>[]` | — | With a grouping: every line of the filtered set. From `TableProjection`. |
@@ -12711,7 +12768,7 @@ Derived, never stored.
12711
12768
 
12712
12769
  | Prop | Type | Default | Description |
12713
12770
  |---|---|---|---|
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 |
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 |
12715
12772
  | `alarm` *required* | [`Alarm`](#type-Alarm) | — | |
12716
12773
  | `type` *required* | [`AlarmType`](#type-AlarmType) | — | |
12717
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) |
@@ -12733,9 +12790,9 @@ cannot be expressed without it.
12733
12790
 
12734
12791
  | Prop | Type | Default | Description |
12735
12792
  |---|---|---|---|
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 |
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 |
12739
12796
  | `returnBand` | [`ReturnBand`](#type-ReturnBand) | — | The dead band, when the type has one. |
12740
12797
 
12741
12798
  Used on [Scenarios](#/) and [AlarmList](#/alarmlist).
@@ -13355,6 +13412,7 @@ the way.
13355
13412
  |---|---|---|---|
13356
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 |
13357
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. |
13358
13416
 
13359
13417
  Used on [Scenarios](#/) and [AlarmList](#/alarmlist).
13360
13418
 
@@ -13501,7 +13559,7 @@ selection.
13501
13559
  | `isSelected` *required* | `(id: T) => boolean` | — | <br>Shown in: [Select rows (Selection)](#/selection/selection), [Hold the selection yourself (Selection)](#/selection/hold-the-selection-yourself) |
13502
13560
  | `toggle` *required* | `(id: T) => void` | — | <br>Shown in: [Hold the selection yourself (Selection)](#/selection/hold-the-selection-yourself) |
13503
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. |
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 |
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 |
13505
13563
  | `allSelected` *required* | `boolean` | — | true when every key passed in is selected. |
13506
13564
  | `someSelected` *required* | `boolean` | — | true when some - but not all - are selected. |
13507
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.14.0",
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.31.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.31.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",