@umriss-ui/table 0.16.0 → 0.35.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 +46 -2
- package/README.md +6 -7
- package/dist/index.d.ts +18 -515
- package/dist/table.css +1 -1
- package/dist/table.js +3005 -3339
- package/docs/llms-full.md +515 -1459
- package/package.json +7 -6
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.
|
|
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,49 @@ is one of the internal numbers from before core's first publication as `0.1.0`
|
|
|
22
23
|
|
|
23
24
|
---
|
|
24
25
|
|
|
26
|
+
## 0.35.0 – React 19 is the floor, and a table that holds at two hundred thousand rows (Oct. 2026)
|
|
27
|
+
|
|
28
|
+
Needs `@umriss-ui/core` 0.35; the peer range is `^0.35.0`.
|
|
29
|
+
|
|
30
|
+
### Fixed
|
|
31
|
+
|
|
32
|
+
- **A table with an aggregate no longer throws above roughly 125,000 rows.** A minimum, a maximum or a range, and the decimals of a footer's sum or average, passed every row's value as an argument of one call, which the engine refuses with a `RangeError`.
|
|
33
|
+
|
|
34
|
+
### Changed
|
|
35
|
+
|
|
36
|
+
- **React 19 is required.** The peers `react` and `react-dom` are `>=19`; `0.34.0` is the last version that serves React 18.
|
|
37
|
+
|
|
38
|
+
- **A column's `value`, `sortValue` and `groupValue` and the `rowKey` are compared by their source text.** A caller who writes them in the call hands the table a new function on every render; the table now takes a function with the same text for the same function, so nothing is filtered, sorted or keyed again. The limit: a function that reads an outer variable which has changed counts as unchanged, and the table keeps showing the old values. Give such a function a new text, or carry the variable in the row data. A bound or native function is compared by identity, and the `preFilter` is not compared this way at all: it may read the caller's state as before.
|
|
39
|
+
|
|
40
|
+
- **The package ships ES2022 syntax.** An application that serves older browsers transpiles it itself.
|
|
41
|
+
|
|
42
|
+
### Otherwise
|
|
43
|
+
|
|
44
|
+
- **Scrolling, paging, folding and re-rendering no longer grow with the rows.** The model is computed in stages, each held while what it reads is unchanged; an aggregate is computed once for a set of rows; a scroll inside the virtual window renders nothing. At 200,000 rows a scroll step takes 3.7 ms where it took 135 ms, a re-render of the caller with nothing changed 1.5 ms (308), a page turned 6.2 ms (312), a group folded 2.4 ms (902), a column hidden 2.8 ms (486). A sort reads each row's value once and takes 151 ms (488). The figures and how they were taken stand in the package's capability record.
|
|
45
|
+
|
|
46
|
+
---
|
|
47
|
+
|
|
48
|
+
## 0.34.0 – The alarm list leaves, and a view is set (Oct. 2026)
|
|
49
|
+
|
|
50
|
+
From this version all five packages carry one number and are released
|
|
51
|
+
together. Needs `@umriss-ui/core` 0.34; the peer range is `^0.34.0`.
|
|
52
|
+
|
|
53
|
+
### Fixed
|
|
54
|
+
|
|
55
|
+
- **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.
|
|
56
|
+
|
|
57
|
+
- **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.
|
|
58
|
+
|
|
59
|
+
### Changed
|
|
60
|
+
|
|
61
|
+
- **`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.
|
|
62
|
+
|
|
63
|
+
- **`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.
|
|
64
|
+
|
|
65
|
+
- **`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.
|
|
66
|
+
|
|
67
|
+
---
|
|
68
|
+
|
|
25
69
|
## 0.16.0 – Rows are copied, and the CSV follows the language (Oct. 2026)
|
|
26
70
|
|
|
27
71
|
Needs `@umriss-ui/core` 0.33; the peer range moves to `^0.33.0`.
|
package/README.md
CHANGED
|
@@ -17,7 +17,10 @@ pnpm add @umriss-ui/table @umriss-ui/core
|
|
|
17
17
|
|
|
18
18
|
`@umriss-ui/core` is a **peer dependency** (ADR-0016): the table reads its
|
|
19
19
|
provider, its formats and its wording, and enters it by the public entry only.
|
|
20
|
-
React
|
|
20
|
+
React 19 or newer as a peer as well.
|
|
21
|
+
|
|
22
|
+
The package ships ES2022 syntax; an application that serves older browsers
|
|
23
|
+
transpiles it itself.
|
|
21
24
|
|
|
22
25
|
Every entry begins with `"use client"`, the directive a framework
|
|
23
26
|
with Server Components reads to treat a module as client code. No test runs
|
|
@@ -83,8 +86,7 @@ Each line gets a group header with its count and its sum under the Quantity
|
|
|
83
86
|
column; the customers stand beside their orders as a span (ADR-0029). Without
|
|
84
87
|
`defaultGrouping` the user groups from the column menu. `aggregate` takes `sum`,
|
|
85
88
|
`avg`, `min`, `max`, `range`, `count`, `distinct` or a function of one's own, and
|
|
86
|
-
is the footer over the filtered set as well
|
|
87
|
-
and the old name still works for this version.
|
|
89
|
+
is the footer over the filtered set as well.
|
|
88
90
|
|
|
89
91
|
## Styles
|
|
90
92
|
|
|
@@ -135,10 +137,7 @@ stylesheets by hand.
|
|
|
135
137
|
actions that stay quiet until the row is meant, and a bulk action that always
|
|
136
138
|
receives a list.
|
|
137
139
|
* **For monitoring**: `VerdictColumn` reads a measured value against a
|
|
138
|
-
limit set
|
|
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).
|
|
140
|
+
limit set. The library generates no alarms.
|
|
142
141
|
* **A million rows on a server**: in server mode (`server: true`, `rowCount`)
|
|
143
142
|
the rows are one page a server answered; the table reports the request -
|
|
144
143
|
search, conditions, sort, page, page size - through `onRequest` once per
|