@umriss-ui/table 0.3.3 → 0.5.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/CHANGELOG.md CHANGED
@@ -22,6 +22,200 @@ is one of the internal numbers from before core's first publication as `0.1.0`
22
22
 
23
23
  ---
24
24
 
25
+ ## 0.5.0 – Alarms without a plant (Sep. 2026)
26
+
27
+ Needs `@umriss-ui/core` 0.11: it reads the renamed alarm wording keys; the peer range moves to `^0.11.0`.
28
+
29
+ ### Changed
30
+
31
+ - **The alarm names no longer assume a plant** (ADR-0035). One hard cut before
32
+ 1.0, with no deprecated aliases: rename as below and the compiler finds the
33
+ rest. The concepts are ISA-18.2's as before; `docs/standards.md` maps each
34
+ ISA term to the name here. The string values change with the names, and so
35
+ do `data-lifecycle` and `data-availability` in the DOM.
36
+
37
+ | Before | Now |
38
+ |---|---|
39
+ | `"standing-unacknowledged"`, `"standing-acknowledged"` | `"active-unacknowledged"`, `"active-acknowledged"` |
40
+ | `"cleared-unacknowledged"`, `"cleared-acknowledged"` | `"resolved-unacknowledged"`, `"resolved-acknowledged"` |
41
+ | `Transition` `"cleared"` | `"resolved"` |
42
+ | `Alarm.cleared` (the moment) | `Alarm.resolved` |
43
+ | `isStanding` | `isActive` |
44
+ | `AlarmProjection.standingUnacknowledged` | `AlarmProjection.activeUnacknowledged` |
45
+ | `Availability` `"shelved"` | `"snoozed"` |
46
+ | `Availability` `"suppressed-by-design"` | `"suppressed"` |
47
+ | `Availability` `"out-of-service"` | `"disabled"` |
48
+ | `shelve(alarm, until, by)`, `unshelve(alarm)` | `snooze(alarm, until, by)`, `unsnooze(alarm)` |
49
+ | `takeOutOfService(alarm)`, `returnToService(alarm)` | `disable(alarm)`, `enable(alarm)` |
50
+ | the type `Shelf`, the field `Alarm.shelf` | the type `Snooze`, the field `Alarm.snooze` |
51
+ | `isHiddenFromOperation` | `isHidden` |
52
+ | `AlarmProjection.hiddenFromOperation` | `AlarmProjection.hiddenAlarms` |
53
+ | `ReturnBand.direction` `"obere"`, `"untere"` | `"upper"`, `"lower"` |
54
+
55
+ `"in-service"` and `acknowledge` keep their names. `<AlarmList>` reads the
56
+ renamed wording keys, so its words change with them: "Active" and
57
+ "Resolved" for the lifecycle, "Snoozed", "Suppressed" and "Disabled" for
58
+ the availability, "Hidden: 3" for the count.
59
+
60
+ ---
61
+
62
+ ## 0.4.0 – Grid, server, pinning, availability (Sep. 2026)
63
+
64
+ Needs `@umriss-ui/core` 0.10: it reads the new wording keys and `--u-shadow-sticky`; the peer range moves to `^0.10.0`.
65
+
66
+ ### Added
67
+
68
+ - **Manual mode, for data the browser does not hold**: `useTable(page, {
69
+ manual: true, rowCount, onViewChange })`. The rows are the page a server
70
+ answered and `rowCount` its filtered set; the table searches, filters,
71
+ sorts and pages nothing of its own. `onViewChange(view)` receives a
72
+ `ManualView` - search, conditions, sort, page and page size, always
73
+ present - once when the table first stands and once per change of those
74
+ five (a width or a hidden column fetches nothing). `loading` then lays as
75
+ many placeholders as the page had rows over it, in its rows' height and its
76
+ columns' widths, with `aria-busy`. A list filter offers what
77
+ `filterOptions(column)` names (with a warning in development where it
78
+ names nothing). Keys selected on another page stay selected, and a bulk
79
+ action receives every selected row the table has seen; "select all" selects
80
+ the page and says so ("Select all on this page"). The export writes the
81
+ page, and its button says so ("Export page"). There is no grouping, no
82
+ footer, no pre-filter and no virtualisation in manual mode - each would be
83
+ the page's and not the server's; a grouping asked for is passed over with
84
+ a warning in development. `TableSnapshot` gains `rowCount` and `manual`.
85
+ Without `manual` nothing changes.
86
+ - **Grid mode, on request** (ADR-0034): `<Table grid>` makes the table
87
+ `role="grid"` (`treegrid` when grouped) and one tab stop with an **Active
88
+ cell** - the arrows walk the cells of the head, the rows, group headers,
89
+ folded spans, details and the footer; Home and End go to the row's ends,
90
+ Ctrl+Home and Ctrl+End to the table's, PageUp and PageDown by the rows in
91
+ view. A cell's own controls leave the tab order and are reached with Enter
92
+ or F2 and left with Escape. The Active cell holds on to its row and its
93
+ column: it follows a sort, stands where a filtered row stood, and walks to
94
+ rows a virtual window has not rendered. Without `grid` nothing changes.
95
+ - **Editing in place**: `edit` on a column - `"text"`, `"number"`,
96
+ `"select"` (over `editOptions`, or the values that occur), `"date"`, or an
97
+ editor of one's own receiving `CellEditorProps` - gives it the core field
98
+ for its value. Enter, F2 or typing starts an edit, Enter commits, Escape
99
+ cancels, Tab commits and moves on to the next cell that edits; a picked day
100
+ commits at once. `validate(value, row)` keeps a draft that does not pass
101
+ open, its message beneath the field. The table applies nothing:
102
+ `onCellEdit({ rowKey, columnId, value, row })` on `<Table>` reports, and the
103
+ cell shows the value once the rows carry it. New types `CellEdit`,
104
+ `CellEditorProps`, `EditFor`, `EditOptions`.
105
+ - **The Windows contrast mode** (`forced-colors: active`, forced-colors 03).
106
+ A selected row keeps its selection as lines in the system's selection colour
107
+ and a focused virtual row its ring as lines in the text colour, both drawn
108
+ inside the cells, where the sticky cells cannot paint over them; the frame,
109
+ the panels and every focus ring keep an outline where the box-shadow stood,
110
+ and a group's share bar a system colour. Nothing changes outside forced
111
+ colours.
112
+ - **`docs/llms-full.md`**, the package's documentation as one Markdown file for
113
+ a coding agent, in the npm package and pinned to its version: every demo page
114
+ with its import line, its examples' source, its props tables and why it is
115
+ built as it is, and the declaration of every other export. The same text
116
+ stands online as <https://romanhaendler.github.io/umriss-ui/table/llms-full.txt>,
117
+ with an index of the pages beside it (`llms.txt`).
118
+ - **Availability, the second field beside the lifecycle** (ISA-18.2's special
119
+ states): `availability?: "in-service" | "snoozed" | "suppressed" |
120
+ "disabled"` on `Alarm`, never merged into the four lifecycle values.
121
+ Without a statement an alarm is in service, so existing alarms read as
122
+ before. A shelved alarm carries `snooze: { until, by }` - and cannot be
123
+ written without it.
124
+ - **Four pure transitions**, one alarm in and one out, performed by the
125
+ application: `snooze(alarm, until, by)`, `unsnooze`, `disable`,
126
+ `enable`. One that does not apply returns the same object. A shelf
127
+ never overwrites out of service or suppressed by design, and taking out of
128
+ service never overwrites suppressed by design - the plant's logic owns it.
129
+ - **`availabilityAt(alarm, asOf)`**: a shelf that has reached its end is in
130
+ service again at the as-of time - by the model's clock, not by a timer.
131
+ `AlarmRow.availability` carries that value.
132
+ - **`isHidden`, `AVAILABILITIES`, the types `Availability` and
133
+ `Snooze`**, and on the projection **`hiddenAlarms`**: how many of the
134
+ filtered set are hidden. The model still removes nothing.
135
+ - **An `availability` column** in `alarmColumns` / `ALARM_COLUMNS` (its label
136
+ from `wording.columnAvailability`), valued by rank like the priority.
137
+ - **`<AlarmList>` shows what is hidden from operation**: the row stays,
138
+ drawn neutrally - no edge, the priority a word without its colour, the type
139
+ muted - with its availability as a word before its lifecycle ("Shelved until
140
+ 11:10 by M. Keller"). The bar counts them ("Hidden from operation: 3").
141
+ - **`hiddenOnly` and `onHiddenOnlyChange` on `<AlarmList>`**: with the
142
+ handler the count becomes a switch for the view; the application filters
143
+ with the table's own `filter` and `isHidden`. The switch stays
144
+ while the view is on, even at zero.
145
+ - **Any column can be pinned**: `pin="start"` or `pin="end"` on a `Column` or
146
+ a `VerdictColumn` keeps it in view while the table scrolls sideways, in a
147
+ block before or after every other column. The selection and the expander
148
+ stick with the start block (and a group span with them), the row actions
149
+ with the end block; a group header's label and aggregates stick in their
150
+ blocks, and virtual rows pin like any other. A shadow on a block's inner
151
+ edge shows only while content lies under it.
152
+ - **`t.pinned` and `t.setPin(column, "start" | "end" | null)`**, and
153
+ **`pinned` in the view**: the user's choice, whole, once it deviates from
154
+ what the columns declare (`{}` when every declared pin was undone). A view
155
+ handed in as `initialView` restores it.
156
+ - **The column menu pins**: two keys per column, "Pin to start" and "Pin to
157
+ end"; the key of the side a column is pinned to stands in the accent and
158
+ reads "Unpin". The focus stays on the key that was pressed while the entry
159
+ moves to its block.
160
+
161
+ ### Changed
162
+
163
+ - **`stickyRowHeader` is `pin="start"` on the row header.** It looks as
164
+ before; the difference is that the row header can now be unpinned (with
165
+ `setPin`) and share its block with other pinned columns. The sticky offsets
166
+ are measured from the head row instead of assumed from the 34 px of a
167
+ control cell, so a control cell that grows no longer slides under the row
168
+ header.
169
+ - **In the column menu a column moves only inside its block** (start, the
170
+ unpinned ones, end). Before, only the sticky row header was held in place.
171
+
172
+ - **`DEFAULT_ORDER` begins with availability**: in service above hidden, then
173
+ priority, acknowledgement and time as before. Only alarms with an
174
+ availability of their own move.
175
+ - **`activeUnacknowledged` counts only alarms in service.** The live figure
176
+ calls somebody over; it must not call them to a shelved alarm.
177
+ - **A done alarm's row (`keepDone`) is muted as it always claimed to be.**
178
+ Its colour stood on the row, and the table's cells set their own; it now
179
+ stands on the cells.
180
+ - **Final polish of pinning, grid mode and the alarm list** (table-column-pinning
181
+ 03, table-grid-mode 05, alarm-standards 05):
182
+ - The shadow of a pinned block and of a stuck group header comes from core's
183
+ `--u-shadow-sticky`: dark as a shadow in the dark theme, no longer a glow.
184
+ - A group header draws its top line inside its cells in every table, as a
185
+ table with pinned columns already did - one drawing, one look.
186
+ - In grid mode the open editor lies over its cell at the cell's size, and
187
+ the message of a draft that does not validate hangs beneath it in a
188
+ popover (core `Popover`); nothing in the table shifts while editing.
189
+ - The scroll area carries a `scroll-padding` of the sticky head's height and
190
+ the pinned blocks' widths, so a cell the keys walk to is scrolled clear of
191
+ them; a pinned cell's own scroll target is shifted out of that padding, so
192
+ focusing it does not scroll the table back.
193
+ - Space in a grid with selection selects or deselects the Active cell's row,
194
+ from any of its cells (as AG Grid and MUI do); without selection it does
195
+ nothing - it no longer starts a text edit either.
196
+ - In a grid with an editable column every cell that does not edit carries
197
+ `aria-readonly="true"`.
198
+ - `AlarmList` shows the availability as a small neutral badge before the
199
+ lifecycle state; until when and by whom stand in its tooltip and are
200
+ spoken with it. The state keeps to one line. A shelf that ends on another
201
+ day than the as-of time shows its date beside the time. The "Hidden from
202
+ operation" switch's label is in the live figure's size.
203
+ - **`Alarm` is a type, no longer an interface** - the union with the shelf
204
+ needs it. `Partial<Alarm>` spread into an `Alarm` no longer compiles; name
205
+ the fields you mean (`Pick<Alarm, "resolved" | "acknowledgedAt">`).
206
+
207
+ ### Fixed
208
+
209
+ - **A table's rounded corner stays whole** under a sticky head or pinned
210
+ cells: the scroll area carries the frame's radius and clips to it.
211
+ - **A group header whose first column carries an aggregate keeps its
212
+ aggregates under their columns.** Grouped by one level, its label stood in a
213
+ cell over no column, which a browser counts as one, and every aggregate
214
+ stood a column too far right. The label now takes the first column's place
215
+ in the header; its sum stays in the footer.
216
+
217
+ ---
218
+
25
219
  ## 0.3.3 – Depth work on the table (Sep. 2026)
26
220
 
27
221
  Needs `@umriss-ui/core` 0.9: it reads `--u-tracking-figures`; the peer range moves to `^0.9.0`.
@@ -265,10 +459,10 @@ Delivery report for `.scratch/english-and-umriss-ui/spec.md`, the table's share.
265
459
 
266
460
  ### Changed — the values, not only the names
267
461
 
268
- - **The alarm lifecycle.** `LifecycleState` is `"standing-unacknowledged"`,
269
- `"standing-acknowledged"`, `"cleared-unacknowledged"`,
270
- `"cleared-acknowledged"`; `Transition` is `"raised"`, `"acknowledged"`,
271
- `"cleared"`; `Priority` is `"high"`, `"medium"`, `"low"`. In the DOM,
462
+ - **The alarm lifecycle.** `LifecycleState` is `"active-unacknowledged"`,
463
+ `"active-acknowledged"`, `"resolved-unacknowledged"`,
464
+ `"resolved-acknowledged"`; `Transition` is `"raised"`, `"acknowledged"`,
465
+ `"resolved"`; `Priority` is `"high"`, `"medium"`, `"low"`. In the DOM,
272
466
  `data-zustand` is `data-lifecycle` and `data-prioritaet` is `data-priority`.
273
467
  - **The limit model's wire format** follows `@umriss-ui/core` and
274
468
  `@umriss-ui/charts`: `data-urteil` is `data-verdict`, and `VerdictColumn`
package/README.md CHANGED
@@ -108,11 +108,21 @@ stylesheets by hand.
108
108
  * **On a row**: a detail row that stays open across a change of filter, row
109
109
  actions that stay quiet until the row is meant, and a bulk action that always
110
110
  receives a list.
111
- * **For producing plants**: `VerdictColumn` reads a measured value against a
112
- limit set, and `AlarmList` shows alarms with a lifecycle — standing or
113
- cleared, acknowledged or not. The library generates no alarms (ADR-0009).
114
- * **Twenty thousand rows** where it has to be: virtualisation, sticky parts and
115
- column widths that survive a view being restored.
111
+ * **For monitoring**: `VerdictColumn` reads a measured value against a
112
+ limit set, and `AlarmList` shows alarms with a lifecycle — active or
113
+ resolved, acknowledged or not. The library generates no alarms (ADR-0009).
114
+ * **A million rows on a server**: in manual mode the rows are one page a server
115
+ answered; the table reports the view - search, conditions, sort, page -
116
+ once per change and shows placeholders over the previous page while the
117
+ next is on its way.
118
+ * **Twenty thousand rows** where it has to be: virtualisation, sticky parts,
119
+ columns pinned to either side and column widths that survive a view being
120
+ restored.
121
+ * **A grid, on request** (ADR-0034): `<Table grid>` is one tab stop whose
122
+ Active cell the arrows walk, and a column with `edit` is edited in place -
123
+ with the core field for its value, a `validate` that keeps a wrong draft
124
+ open, and `onCellEdit` reporting what the application applies. Without
125
+ `grid` the table stays a native table.
116
126
 
117
127
  ## More
118
128
 
@@ -121,6 +131,11 @@ stylesheets by hand.
121
131
  shows running examples with their source and the props table generated from
122
132
  `src/`.
123
133
  * [`CHANGELOG.md`](CHANGELOG.md) — what changes for a caller.
134
+ * **For a coding agent**: `docs/llms-full.md` inside the installed package —
135
+ the demo as one Markdown file, pinned to the installed version: every page
136
+ with its examples' source, its props tables and why it is built as it is,
137
+ and the declaration of every other export. Online, for the latest version:
138
+ <https://romanhaendler.github.io/umriss-ui/table/llms.txt>.
124
139
  * [`../../docs/design-language.md`](../../docs/design-language.md) — the design
125
140
  language all five packages share.
126
141
  * [`../core/README.md`](../core/README.md) — the component library underneath.