@umriss-ui/table 0.11.2 → 0.13.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,135 @@ is one of the internal numbers from before core's first publication as `0.1.0`
22
22
 
23
23
  ---
24
24
 
25
+ ## 0.13.0 – The table holds its view, and server mode (Oct. 2026)
26
+
27
+ Released together with `@umriss-ui/charts` and `@umriss-ui/schedule`, which
28
+ break in the same release (ADR-0047). A view handed in applies whenever its
29
+ content changes, every change of it is reported in every mode, and manual mode
30
+ is called what it is: server mode, reporting the **Request** - the five parts
31
+ that decide the rows - and nothing else. The old names are removed, not
32
+ deprecated.
33
+
34
+ ### Changed
35
+
36
+ **Moving over.** Every name that went, and what stands in its place:
37
+
38
+ | Was | Is |
39
+ |---|---|
40
+ | `useTable(rows, { manual: true, rowCount, onViewChange })` | `useTable(rows, { server: true, rowCount, onRequest })` |
41
+ | `ManualView` (the whole view, the five parts always present) | `TableRequest` - search, conditions, sort, page and page size, and nothing else |
42
+ | `onViewChange(view: ManualView)` in manual mode | `onRequest(request: TableRequest)`; `onViewChange` is the general report of every mode now (see Added) |
43
+ | `t.manual`, `TableSnapshot.manual`, `TableRef.manual` | `t.server`, `TableSnapshot.server`, `TableRef.server` |
44
+ | a `key` to start a table again from another view | the view handed in as `initialView` - a `key` still restarts |
45
+
46
+ - **Manual mode is server mode.** The option, the snapshot's flag, the type
47
+ of its report and the report itself are renamed as above; what the mode
48
+ does is unchanged. The DEV warnings say so and their ids read
49
+ `server-prefilter`, `server-virtual`, `server-grouping`,
50
+ `server-groupable`, `server-groupable-column` and `server-filter-options`.
51
+ - **The request is the five parts and nothing else.** `ManualView` carried
52
+ the whole view, widths, order and pins included, though it was reported
53
+ only when one of the five changed; `TableRequest` is exactly search,
54
+ conditions, sort, page and page size, each present at its default too. It
55
+ is still reported once when the table first stands and once per change.
56
+ - **`initialView` applies whenever its content differs from the last one
57
+ handed in**, no longer on the first render only. The same view again
58
+ changes nothing - a view written in the call is compared by its content,
59
+ not its identity; what a new one leaves out goes back to its default,
60
+ conditions, grouping, folds, pins and branches included; leaving it out
61
+ keeps the table's own. A table that was handed a changing `initialView`
62
+ and ignored it now goes to it. **A known limit:** a view handed in that
63
+ equals one the table reported less than a second ago, and that has not
64
+ come back yet, is taken for the table's own report coming back late and is
65
+ not applied - so that tables kept in step do not jump back. An application
66
+ that restores a just-reported view within that second sees no change.
67
+
68
+ ### Added
69
+
70
+ - **`onViewChange(view)` in every mode**: every change of the view, once,
71
+ always the whole view - the one to keep, or to hand another table as its
72
+ `initialView`; not the view the table starts with. In server mode it hears
73
+ what `onRequest` does not: a width, an order, a pin, a fold, a hidden
74
+ column.
75
+ - **The demo**: the page 'Manual mode' is 'Server mode' at `/server-mode/`;
76
+ the old address lands there. The 'View' example keeps the reported view
77
+ and hands it back, without a `key`.
78
+
79
+ ---
80
+
81
+ ## 0.12.0 – Every export explained, and actions that may scroll (Oct. 2026)
82
+
83
+ The package explains itself where it is used: every export carries a comment,
84
+ every default a `@default` tag, every type it names can be imported, and the
85
+ demo lists all of it in an API index (ADR-0044). `RowActions` may leave its
86
+ column in the flow. Needs `@umriss-ui/core` 0.25; the peer range moves to
87
+ `^0.25.0`.
88
+
89
+ ### Added
90
+
91
+ - **`RowActions` takes `pin`**: `pin={false}` leaves the actions column in the
92
+ flow instead of sticking at the end of the row, for a place the application
93
+ finds too narrow for a pinned block - it measures the place and decides. A
94
+ column pinned to the end still takes the actions with it, and an open Row
95
+ draft's Save still sticks. The default, `true`, is the behaviour so far.
96
+ - **Every type a props table or a signature names can be imported**:
97
+ `Present`, `Absent`, `Pin`, `ToolbarSize`, `FormatFor`, `FilterFor`,
98
+ `GroupFor`, `FooterFor`, `AggregateFor` and `Presentation` are new public
99
+ types, for annotating one's own variables and wrappers with what a column or
100
+ a toolbar part accepts. So are the types a page's table headers and type
101
+ definitions name: `ColumnBase`, `FieldColumn`, `ValuePaths`, `GroupByBase`,
102
+ `VerdictBase`, `Displayable`, `IsDisplayable`, `DatePeriod` and `RowGroup`;
103
+ and those a hook's or a function's signature names: `ModelColumn` - what
104
+ `alarmModel` and `ALARM_COLUMNS` read of a column, so far an unexported
105
+ `Column` in the `.d.ts` -, `TableInput`, `TreeInput`, `GroupLevel`,
106
+ `AggregateColumn`, `AggregateKind`, `OwnAggregate`, `Computed`,
107
+ `NumberField`, `AlarmBase` and `AlarmAvailability`. Type exports only;
108
+ nothing else changes.
109
+ - **Every export carries a comment**: what a component, a hook, a function or a
110
+ type is for, and for a hook or a function `@param` and `@returns` where its
111
+ type alone does not say it. The editor shows it on hover, from the package's
112
+ `.d.ts`. Nothing else changes.
113
+ - **A prop's default stands in a `@default` tag** where its comment used to say
114
+ it in words: the editor shows it on hover, and the props table in its Default
115
+ column. Nothing else changes.
116
+ - **The demo has an API index**: `/table/api/`, the last entry of the sidebar,
117
+ lists every export of `@umriss-ui/table`, grouped as components, hooks,
118
+ functions, constants and types, alphabetical - each value with its comment
119
+ and its declaration, each type with a link to its table or its definition,
120
+ and the pages that use it. A hook or a function a page names, in its text or
121
+ its import line, leads to its entry. `docs/llms-full.md` ends with the same
122
+ index, in place of the appendix "The rest of the API". The library is
123
+ unchanged.
124
+ - **`docs/llms-full.md` defines every type a props table names**: a type
125
+ without a table of its own (`TableRef`, `Pin`, core's `Limit`) stands under
126
+ "Types on this page" of each page that names it, with its comment and its
127
+ members or its declaration.
128
+ - **Every page says its keys**: First table has a Keyboard section of its
129
+ own (Enter and Space on a sortable header, Escape on a cut value's tip), and
130
+ every other page whose examples take Tab links the keys that apply there -
131
+ First table's, ColumnMenu's, RowActions', and those of core's Input, Select,
132
+ Popover, Checkbox, Button and the other controls a part is built from.
133
+ First table, Column, Formats, Row appearance, RowActions, Toolbar and
134
+ AlarmList gain a section Accessibility: the table's name and row header,
135
+ `aria-sort`, `aria-busy`, the toolbar's count of matches, the alarm list's
136
+ one live number, and the label a presentation's component needs. In the
137
+ demo, the Markdown twins and `docs/llms-full.md`; the table is unchanged.
138
+ - **Every prop of a props table is shown, or named as an exception**: new
139
+ examples for stripes across a wide table (`striped`), a selection held by
140
+ the application (`selection` from `useTableSelection`), an own filter that
141
+ offers the values that occur (`values`) and the toolbar's parts outside a
142
+ toolbar (`size`, the pager's `of`). The five props left without an example
143
+ are pass-throughs, a deprecated alias and a twin of a prop shown on a
144
+ sibling type; the demo's list says so for each. The table is unchanged.
145
+
146
+ ### Fixed
147
+
148
+ - **`docs/llms-full.md` names the peer in its install line**:
149
+ `npm install @umriss-ui/table @umriss-ui/core`, read from the manifest. It
150
+ had named the table alone, and an install after it lacked core.
151
+
152
+ ---
153
+
25
154
  ## 0.11.2 – Core 0.24.0 (Oct. 2026)
26
155
 
27
156
  Needs `@umriss-ui/core` 0.24; the peer range moves to `^0.24.0`. Nothing else changes for a caller.
package/README.md CHANGED
@@ -126,10 +126,10 @@ stylesheets by hand.
126
126
  * **For monitoring**: `VerdictColumn` reads a measured value against a
127
127
  limit set, and `AlarmList` shows alarms with a lifecycle — active or
128
128
  resolved, acknowledged or not. The library generates no alarms (ADR-0009).
129
- * **A million rows on a server**: in manual mode the rows are one page a server
130
- answered; the table reports the view - search, conditions, sort, page -
131
- once per change and keeps the previous page, dimmed, while the next is on
132
- its way.
129
+ * **A million rows on a server**: in server mode (`server: true`, `rowCount`)
130
+ the rows are one page a server answered; the table reports the request -
131
+ search, conditions, sort, page, page size - through `onRequest` once per
132
+ change and keeps the previous page, dimmed, while the next is on its way.
133
133
  * **Twenty thousand rows** where it has to be: virtualisation, sticky parts,
134
134
  columns pinned to either side and column widths that survive a view being
135
135
  restored.
@@ -146,12 +146,15 @@ stylesheets by hand.
146
146
  * The demo: <https://romanhaendler.github.io/umriss-ui/table/>, or locally
147
147
  `pnpm dev:table` (port 4175). It is the documentation — one page per
148
148
  feature, each with running examples and their source, and the props tables
149
- generated from `src/` where a page documents a type.
149
+ generated from `src/` where a page documents a type, each prop linked to the
150
+ examples that show it. An API index lists every export, one search finds
151
+ across all five packages, and the header switches the examples to German.
150
152
  * [`CHANGELOG.md`](CHANGELOG.md) — what changes for a caller.
151
153
  * **For a coding agent**: `docs/llms-full.md` inside the installed package —
152
154
  the demo as one Markdown file, pinned to the installed version: every page
153
155
  with its examples' source, its props tables and why it is built as it is,
154
- and the declaration of every other export. Online, for the latest version:
156
+ and an index of every export with its comment and its declaration. Each
157
+ page also has a Markdown twin online; for the latest version:
155
158
  <https://romanhaendler.github.io/umriss-ui/table/llms.txt>.
156
159
  * [`../../docs/design-language.md`](../../docs/design-language.md) — the design
157
160
  language all five packages share.