@umriss-ui/table 0.16.0 → 0.34.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
@@ -1,14 +1,15 @@
1
1
  # Changes to `@umriss-ui/table`
2
2
 
3
3
  This document describes what changes for **callers** of the package: exports,
4
- props, behaviour. What was worked on in the repository stands in its journal
5
- (`docs/journal.md`) and in the specs under `.scratch/`.
4
+ props, behaviour.
6
5
 
7
6
  **The numbers** follow the rule of `@umriss-ui/core` and `@umriss-ui/charts`: the
8
7
  middle digit rises when something is added, the last one when something is
9
8
  repaired, and **whatever changes existing behaviour stands under a heading
10
9
  "Changed" of its own**, no matter which digit rose.
11
10
 
11
+ From 0.34.0 all five packages share one number: they are released together, and a package without a change of its own still gets a heading for it.
12
+
12
13
  **Names read forwards.** Where an entry describes a name that has since been
13
14
  renamed, it is named here as it is called today; names that were removed stand
14
15
  as they stood.
@@ -22,6 +23,27 @@ is one of the internal numbers from before core's first publication as `0.1.0`
22
23
 
23
24
  ---
24
25
 
26
+ ## 0.34.0 – The alarm list leaves, and a view is set (Oct. 2026)
27
+
28
+ From this version all five packages carry one number and are released
29
+ together. Needs `@umriss-ui/core` 0.34; the peer range is `^0.34.0`.
30
+
31
+ ### Fixed
32
+
33
+ - **A new row in a tree that is a grid has as many cells as the head.** With `tree`, grid mode, `onRowAdd` and a `RowDetail`, the placeholder row for a new row counted the expander column the tree leaves out, and stood one cell too wide.
34
+
35
+ - **A tree is never cut into pages.** Where the body computed its rows anew - a column that registers after the hook has run - a tree with a `Pagination` part could be paged; the hook never paged a tree, and the two now agree.
36
+
37
+ ### Changed
38
+
39
+ - **`AlarmList`, `alarmModel` and every other export of the alarm model are removed.** An application shows its alerts in a `Table`; the scenario "Work through the alerts" does.
40
+
41
+ - **`footer` on a column and `filter` in the hook's options are gone.** They were the old names of `aggregate` and `preFilter`, deprecated since the rename. A column with `footer="sum"` is `aggregate="sum"`, `useTable(rows, { filter })` is `useTable(rows, { preFilter })`; the old names are no longer read, so they do nothing, and the type `FooterFor` is no longer exported.
42
+
43
+ - **`initialView` is read once, and `t.setView(view)` goes to another view later.** A different `initialView` on a later render used to be applied when its content differed, and a view the table had reported itself, handed back within a second, was told apart by the clock; now it is ignored, as React ignores a changed `defaultValue`. A caller who kept the reported view in state and handed it back (`useState` plus `onViewChange: setView` plus `initialView: view`) writes `const t = useTable(rows, { initialView })` and calls `t.setView(kept)` where it restored; two tables kept in step use `onViewChange: (v) => other.setView(v)` in both directions. `setView` is not reported through `onViewChange`, which reports what the reader did, and a view with the content already shown changes nothing.
44
+
45
+ ---
46
+
25
47
  ## 0.16.0 – Rows are copied, and the CSV follows the language (Oct. 2026)
26
48
 
27
49
  Needs `@umriss-ui/core` 0.33; the peer range moves to `^0.33.0`.
package/README.md CHANGED
@@ -83,8 +83,7 @@ Each line gets a group header with its count and its sum under the Quantity
83
83
  column; the customers stand beside their orders as a span (ADR-0029). Without
84
84
  `defaultGrouping` the user groups from the column menu. `aggregate` takes `sum`,
85
85
  `avg`, `min`, `max`, `range`, `count`, `distinct` or a function of one's own, and
86
- is the footer over the filtered set as well — it used to be called `footer`,
87
- and the old name still works for this version.
86
+ is the footer over the filtered set as well.
88
87
 
89
88
  ## Styles
90
89
 
@@ -135,10 +134,7 @@ stylesheets by hand.
135
134
  actions that stay quiet until the row is meant, and a bulk action that always
136
135
  receives a list.
137
136
  * **For monitoring**: `VerdictColumn` reads a measured value against a
138
- limit set, and `AlarmList` shows alarms with a lifecycle — active or
139
- resolved, acknowledged or not. It offers snoozing and reports what the
140
- operator asked for; the application applies it or refuses. The library
141
- generates no alarms (ADR-0009).
137
+ limit set. The library generates no alarms.
142
138
  * **A million rows on a server**: in server mode (`server: true`, `rowCount`)
143
139
  the rows are one page a server answered; the table reports the request -
144
140
  search, conditions, sort, page, page size - through `onRequest` once per