@umriss-ui/core 0.1.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 ADDED
@@ -0,0 +1,849 @@
1
+ # Changes to `@umriss-ui/core`
2
+
3
+ This document describes what changes for **callers** of the package: exports,
4
+ props, behaviour. The journal of the repository (`docs/journal.md`) describes
5
+ something else — what was worked on here, including
6
+ rebuilds, tests and decisions that are invisible from outside. The two therefore
7
+ do not run in parallel: an entry there can be missing here because it changed
8
+ nothing about the contract; and one sentence here can summarise three entries
9
+ there.
10
+
11
+ **The numbers.** The middle digit rises when something is added; the last one
12
+ when something is repaired. As long as the first digit is `0`, no number
13
+ promises compatibility — which is why a rule stronger than the figure applies as
14
+ well: **whatever changes existing behaviour stands under a heading "Changed" of
15
+ its own**, no matter which digit rose. Whoever reads only one section before an
16
+ upgrade reads that one.
17
+
18
+ **Names read forwards.** Where an entry below describes a name that has since
19
+ been renamed, it is named here as it is called today; string literals, and
20
+ names of things that were removed rather than renamed, stand as they stood.
21
+
22
+ **The count started again at publication.** `0.1.0` is the first version for the
23
+ registry. Before it, the package counted up to `0.10.0` inside this repository
24
+ without ever being published; those entries stand below under **internal**
25
+ numbers (`internal 0.9.0`), and where another document of this repository names
26
+ a `core` version from before the first publication, it means that internal number.
27
+ Of those, `internal 0.1.0` to `internal 0.3.0` were reconstructed afterwards — the
28
+ package stood at `0.1.0` the whole time, because it had exactly one caller and that
29
+ caller lay in the same repository — and are grouped by unit of delivery, not by
30
+ commit.
31
+
32
+ ## Target environment: applications that render in the browser
33
+
34
+ The library is aimed at client-side rendered applications. The markers a
35
+ server-rendering framework expects at the client boundary (`"use client"` at the
36
+ head of the modules) are missing **on purpose**. That is a decision, not an
37
+ omission.
38
+
39
+ The reason: practically every component of the package holds state, hangs on
40
+ focus, pointer events or layout measurement, and on the server would be nothing
41
+ but a shell. The annotations would therefore enable nothing that is missing
42
+ today — they would open a guarantee (this package runs under server rendering)
43
+ that nobody checks and that breaks silently at the first extension. Server-side
44
+ rendering is not on the plan; should it ever arrive, it will be decided as a
45
+ delivery of its own and noted here.
46
+
47
+ For the caller that means: in an application with server rendering, the
48
+ components of this package belong behind a client boundary of their own — a
49
+ module on the caller's side that carries `"use client"` and imports from there.
50
+
51
+ ---
52
+
53
+ ## 0.1.0 – First publication (Sep. 2026)
54
+
55
+ The first version published to npm, under the tag `latest`. It is the state described by
56
+ every internal entry below, up to and including `internal 0.10.0`; nothing about
57
+ exports, props or behaviour changed for the publication itself.
58
+
59
+ - **Installable from the registry:** `pnpm add @umriss-ui/core`. The German
60
+ wording ships as `@umriss-ui/core/wording/de` (ADR-0019), the stylesheet as
61
+ `@umriss-ui/core/styles.css`.
62
+ - **The demo is online** at <https://romanhaendler.github.io/umriss-ui/core/>.
63
+ - **The version number was reset** from the internal `0.10.0` to `0.1.0` — see
64
+ **The count started again at publication** above.
65
+
66
+ ---
67
+
68
+ ## internal 0.10.0 – The seam of a button group (Sep. 2026)
69
+
70
+ Appearance only; no export, prop or behaviour moves. The number stays where it
71
+ is.
72
+
73
+ ### Fixed
74
+
75
+ - **A `ButtonGroup` drew two lines at every seam instead of one.** Every button
76
+ draws its own edge, and it draws it on all four sides. Inside the group the
77
+ two edges that face one another land exactly where the seam already is: a line
78
+ over the full height, running hard into the rounded outline, beside the inset
79
+ hairline that was meant to be the only line there. Three buttons read as three
80
+ boxes shoved together rather than as one control. The edges that face into the
81
+ group are now cut away; the edge above and below stays, because that is where
82
+ the outline of the group comes from, and the first and the last button keep
83
+ their outer side, rounded corner and all.
84
+ - **Groups of `primary` or `ghost` buttons are unchanged.** The repair takes away
85
+ the edge a button happens to have rather than drawing a new one, so a variant
86
+ that carries no edge gains none here. Visible in the demo: the seam of the
87
+ ghost group always looked the way the secondary group now does.
88
+ - **Keyboard focus keeps its whole ring.** It stands four pixels out, and the cut
89
+ would have sheared it off on exactly the sides that face into the group, so
90
+ focus lifts the cut. Hover does not need to: its edge is one pixel and would
91
+ stand where the seam already is.
92
+
93
+ ## internal 0.10.0 – The provider explains itself (Sep. 2026)
94
+
95
+ Documentation only; no export, prop or behaviour moves. The number stays where
96
+ it is.
97
+
98
+ ### Fixed
99
+
100
+ - **`<UmrissProvider wording={GERMAN_WORDING}>` was never valid.** The provider
101
+ takes `language`, and the wording sits inside it:
102
+ `language={{ wording: GERMAN_WORDING }}`. The wrong form stood in the header of
103
+ `src/lib/language/de.ts` — the file a reader imports the German wording from —
104
+ and in the entry below. The README always had it right. Both are corrected.
105
+
106
+ ### Added
107
+
108
+ - **Four props that land in a generated table now carry their JSDoc**:
109
+ `UmrissProviderProps.portalTarget`, `.toast` and `.children`, and
110
+ `LanguageOptions.formats`. They appear in a props table for the first time,
111
+ because `UmrissProvider` has a demo page for the first time.
112
+ - **The demo has a page for the provider**, with a worked example of taking the
113
+ German wording whole and one of overriding entries and formats singly. Where
114
+ the register was described before, it can now be read off two pictures.
115
+
116
+ ## internal 0.10.0 – One language, one scope (Sep. 2026)
117
+
118
+ Delivery report for `.scratch/english-and-umriss-ui/spec.md`. The number does not
119
+ move: nothing was ever published under it, and this is a rename rather than a
120
+ release.
121
+
122
+ ### Changed
123
+
124
+ - **The package is called `@umriss-ui/core`** and its directory is
125
+ `packages/core`. The npm scope moved from `@umriss/*` to `@umriss-ui/*`, the
126
+ org actually secured for this library; the sibling packages are
127
+ `@umriss-ui/table` and `@umriss-ui/charts`. Nothing was ever published under
128
+ the old names — all three returned 404 from the registry — so there is no
129
+ alias and no deprecation window. An import line changes from `@umriss/ui` to
130
+ `@umriss-ui/core`, and the stylesheet from `@umriss/ui/styles.css` to
131
+ `@umriss-ui/core/styles.css`. Nothing else about a call changes.
132
+ **`core` means the package you install first**, not a layer everything sits
133
+ on: `@umriss-ui/charts` depends on nothing and will keep depending on nothing
134
+ (ADR-0016).
135
+ - **Every identifier and every document is English** (ADR-0018, which supersedes
136
+ ADR-0015 and its carve-out that props are English while identifiers are
137
+ German). For the twenty-one names that cross the package boundary this is a
138
+ rename of the public surface, carried out in one commit: the wording is
139
+ `Wording` and the formats are `Formats`, `SpracheProvider` is
140
+ `LanguageProvider` with `useWording`, `useFormats` and `mergeLanguage`,
141
+ `STANDARD_WORTLAUT` and `STANDARD_FORMATE` are `DEFAULT_WORDING` and
142
+ `DEFAULT_FORMATS`, the limit model is `Limit`, `LimitSet`, `Assessment`,
143
+ `Verdict`, `Severity`, `Side`, `assess` and `verdictWeight`, freshness is
144
+ `Freshness`, `FreshnessAges`, `freshness`, `age`, `cadence` and `useFreshness`,
145
+ the window arithmetic is `visibleWindow`, `scrollForRow`, `useVirtual`,
146
+ `VirtualRows` and `VirtualOptions`, and the density hook is `useDensityFor`.
147
+ The long prose headers that carry the design reasoning were translated, not
148
+ shortened. Deprecated aliases were considered and rejected: they were right for
149
+ the prop renames of ADR-0015, because there were callers; here there are none.
150
+ - **English is the default wording, German ships as a subpath** (ADR-0019).
151
+ `DEFAULT_WORDING` is English, entry for entry, and every label the library
152
+ draws without being told otherwise is now English. The German that used to be
153
+ the default is unchanged — down to the thin spaces — and is exported as
154
+ `@umriss-ui/core/wording/de`:
155
+
156
+ ```tsx
157
+ import { GERMAN_WORDING } from "@umriss-ui/core/wording/de";
158
+
159
+ <UmrissProvider language={{ wording: GERMAN_WORDING }}>
160
+ ```
161
+
162
+ Both are typed `Wording`, so an entry added to the interface and forgotten in
163
+ the other language is a compile error rather than a missing label on a screen.
164
+ Semantic drift between the two cannot be caught by anything and is accepted as
165
+ the price of shipping two. A subpath and not a second entry in the main export:
166
+ an application that never imports it never pays for it.
167
+ - **The formats are still `de-DE`.** `DEFAULT_FORMATS` groups and separates
168
+ numbers, dates and percentages the German way, so the default currently renders
169
+ English words around German digits — "43 of 1.204", a date as "17.03.2026".
170
+ This was left alone on purpose and not for lack of noticing: a locale is not a
171
+ language, changing it moves every number, date and percentage in the library,
172
+ and `en-GB` and `en-US` disagree about dates, so a library whose audience is
173
+ unknown arguably should not pick either. The seam already works — the
174
+ `UmrissProvider` takes `formats` — and ADR-0019 records the state rather than
175
+ hiding it.
176
+
177
+ ### Otherwise
178
+
179
+ The licence is MIT, and a `LICENSE` file ships in the package. No behaviour
180
+ changed anywhere in this delivery: where a rename revealed a defect it was
181
+ written down and fixed in a commit of its own, never folded into the rename.
182
+
183
+ ### Changed — the values, not only the names
184
+
185
+ The first pass renamed identifiers and left the values they hold standing. A
186
+ value is read as often as the name that holds it — in the DOM, in a selector, in
187
+ a screenshot's file name — so these moved too, each with every consumer:
188
+
189
+ - **`Place` is `"top" | "right" | "bottom" | "left"`.** It was `"oben" |
190
+ "rechts" | "unten" | "links"`, and it stands in the DOM as `data-place`. The
191
+ wording registers translate it: the German one answers "oben" where the English
192
+ one answers "top".
193
+ - **The limit model.** `Verdict` is `"ok" | "unknown" | "warning" | "alarm"`,
194
+ `Severity` is `"warning" | "alarm"`, `Side` is `"upper" | "lower"`, and the
195
+ fields are `value`, `side`, `severity`, `limits`, `target`, `verdict`, `limit`,
196
+ `excess`, `deviation`. ADR-0006 holds this model twice, once in each package,
197
+ so core, `@umriss-ui/charts`, the shared case table and the runtime conformance
198
+ test moved in one commit. `data-urteil` is `data-verdict`.
199
+ - **`Freshness` is `"fresh" | "stale" | "lost"`** and its two ages are `stale`
200
+ and `lost`. `data-aktualitaet` is `data-freshness`.
201
+ - **`useVirtual`** takes `{ rowHeight, overscan }` and gives back `from`, `to`,
202
+ `fillerBefore`, `fillerAfter`, `count`, `showRow`, `onScroll`.
203
+ - **`DateRange` is `{ from, to }`** and a `RangePreset` carries a `range`. A
204
+ preset's key is now its wording key (`today`, `last7Days`).
205
+ - **The dock's eight tokens** are `--u-dock-tool`, `-grip`, `-gap`, `-padding`,
206
+ `-margin`, `-grip-travel`, `-refusal-surface`, `-refusal-duration`. Three of
207
+ them are read back at runtime, so whoever overrides them changes from how many
208
+ tools on a side edge the dock refuses.
209
+
210
+ ### Fixed
211
+
212
+ - **Virtualisation measured no row in `@umriss-ui/table`.** `useVirtual`
213
+ re-measures the row height on a real row; it looked for `[data-zeile]`, which
214
+ only the tree writes — the table writes `data-row`. The row height therefore
215
+ stayed at the starting value the caller passes, and the filler rows were sized
216
+ against it. Both attributes are `data-row` now.
217
+
218
+ ## internal 0.10.0 – What the table toolbar says (Sep. 2026)
219
+
220
+ Delivery report for `.scratch/table-filters/spec.md`: the entries of the wording
221
+ that `@umriss-ui/table` reads for its column filters. The components of this
222
+ package do not change.
223
+
224
+ ### Changed
225
+
226
+ - **`resetAll` says "Reset"** instead of "Reset everything". The button now
227
+ stands in the table toolbar beside the ratio "43 of 1.204", where "everything"
228
+ says nothing the place does not say already; in the empty body it does the same
229
+ thing and is therefore called the same.
230
+ - **`removeConditionNamed` no longer begins with "Filter"**: "Remove Line:
231
+ Line 1". Beside it now stands a second button for the same condition, and both
232
+ are built alike.
233
+
234
+ ### Added
235
+
236
+ - **`editConditionNamed`**: the name of a condition that opens its filter —
237
+ "Edit Line: Line 1, Line 2".
238
+ - **`moreValues`**: the rest of a long list within a condition — "+1".
239
+ - **The range filter of the table**: `filterFrom` and `filterTo` label its two
240
+ fields, `rangeFromTo`, `rangeFrom` and `rangeTo` name its condition —
241
+ "100–500", "from 100", "to 500" — and `rangeInvalid` says that "From" lies
242
+ behind "To".
243
+
244
+ ### Removed
245
+
246
+ - **`sucheBedingung`**, which had no English successor and is simply gone: the
247
+ search no longer appears as a condition beside the field that already shows it.
248
+
249
+ ## internal 0.9.0 – The table moves out (Sep. 2026)
250
+
251
+ Delivery report for `.scratch/umriss-table/issues/14-remove-table-from-ui.md`.
252
+ The table and the alarm list now stand in **`@umriss-ui/table`** (ADR-0016,
253
+ ADR-0017). There, columns are elements typed against their rows, and the table
254
+ renders its rows itself — so a reordering in the model is on the screen as well.
255
+ The new package takes `@umriss-ui/core` as a peer and reads its provider, formats
256
+ and wording; one `UmrissProvider` configures both packages.
257
+
258
+ With this number appear the two sections below it as well, which had been
259
+ unpublished until now.
260
+
261
+ ### Changed
262
+
263
+ - **The table and the alarm list are no longer in this package**, and three
264
+ entries of the wording are struck. Whoever imports or overrides them no longer
265
+ translates after the upgrade; what went where stands under "Removed". The
266
+ section "Where the library contradicted itself" further down appears with the
267
+ same number and has entries of its own under "Changed".
268
+
269
+ ### Removed
270
+
271
+ - **The table**: `Table`, `Th`, `Td`, `TableToolbar`, `TablePagination`,
272
+ `TableEmpty`, `TableSkeletonRows`, `TableFilter`, `TableFilterList`,
273
+ `TableFilterStrip`, `TableExpandButton`, `TableRowDetail`, `TableRowActions`,
274
+ `TableVirtualBody`, `TableVirtualRow` with their props types and
275
+ `SortDirection`, `TableActiveFilter`, `TableFilterOption`; the model
276
+ `tableModel`, `column`, `sum` with `Column`, `SortLevel`, `TableInput`,
277
+ `TableProjection`; the companion `useCompanion` with `Companion`,
278
+ `CompanionOptions`, `Sort`; `asCsv`; `alsSuchparameter` and `ausSuchparametern`
279
+ with `TableView` and `AusSuchparameternOptionen`; `useTableSelection` with
280
+ `TableSelection`.
281
+ **Instead** `@umriss-ui/table`. Some names exist there again, in a new shape:
282
+ `useTable(rows, options)` gives out `Table`, `Column` and the remaining parts
283
+ instead of taking a column field; `column` builds a preset for `Column`;
284
+ `alsSuchparameter`, `ausSuchparametern`, `useTableSelection` and their types
285
+ are unchanged. The export is `t.asCsv()` and the part `Export`.
286
+ - **`AlarmList` and `alarmModel`** with `acknowledge`, `countAcknowledgeable`,
287
+ `countInWindow`, `frequencyByType`, `detectFlood`, `nextLifecycleState`,
288
+ `isStanding`, `isAcknowledged`, `isDone`, `hasReturned`, `priorityRank`,
289
+ `PRIORITIES`, `ALARM_COLUMNS`, `alarmColumns`, `DEFAULT_ORDER` and their types.
290
+ **Instead** the same names out of `@umriss-ui/table`; the props of the alarm
291
+ list are called `view`, `selection`, `onAcknowledge`, `asOf` and `freshness`
292
+ there.
293
+ - **Three entries of the wording** that only the old table read:
294
+ `zeileAufklappen`, `zeileZuklappen`, `filterEntfernen`. `@umriss-ui/table`
295
+ names the same buttons after the row (`expandRowNamed`, `collapseRowNamed`,
296
+ `removeConditionNamed`). A provider that overrides the three no longer
297
+ translates. All remaining entries of the table stay here (umriss-table 04).
298
+
299
+ ### Stays
300
+
301
+ - The window arithmetic (`visibleWindow`, `scrollForRow`, `useVirtual`) and
302
+ `useDensityFor` — the `TreeView` uses the one, every part with a density of its
303
+ own the other, and `@umriss-ui/table` both.
304
+
305
+ ## internal 0.9.0 – What the table needs from outside (Sep. 2026)
306
+
307
+ Delivery report for `.scratch/umriss-table/spec.md`, ticket 04. The table moves
308
+ to `@umriss-ui/table` (ADR-0016); what it used to read from inside is now
309
+ reachable from outside. Ticket 04 removed nothing; the table itself went with
310
+ ticket 14 (the section above).
311
+
312
+ ### Added
313
+
314
+ - **The window arithmetic as an export of its own:** `visibleWindow`,
315
+ `scrollForRow`, `useVirtual` and their types `RowWindow`, `WindowInput`,
316
+ `RowPlacement`, `VirtualRows`, `VirtualOptions`. The arithmetic and the types
317
+ previously came out only through the export of the table, the hook not at all;
318
+ the `TreeView` goes on using them.
319
+ - **`useDensityFor`** – the density of a part: its own statement, otherwise the
320
+ density expressly set on the `UmrissProvider`, otherwise its own default.
321
+ Unlike `useDensity()` it tells "the provider says comfortable" apart from
322
+ "nobody says anything".
323
+ - **Wording for `@umriss-ui/table`**, in a section of the directory of its own:
324
+ `columns`, `arrangeColumns`, `columnForward`, `columnBackward`, `exportLabel`,
325
+ `exportFileName`, `tableSearchPlaceholder`, `tableSearchLabel`,
326
+ `sucheBedingung`, `filterColumn`, `selectRow`, `selectAllRows`,
327
+ `expandRowNamed`, `collapseRowNamed`, `rowActions`, `rowAction`,
328
+ `rowActionsMenu`, `cellAbsentValue`, `booleanYes`, `booleanNo`, `footerSum`,
329
+ `footerAverage`, `entries`, `selectedCount`, `noEntries`,
330
+ `nothingMatchesFilters`. They stand here and not in the new package, so that
331
+ one `UmrissProvider` switches the wording of both packages with one statement.
332
+ (`sucheBedingung` went again with 0.10.0.)
333
+
334
+ ## internal 0.9.0 – Where the library contradicted itself (Sep. 2026)
335
+
336
+ Delivery report for `.scratch/library-audit/spec.md`.
337
+
338
+ ### Changed
339
+
340
+ **`Modal` and `CommandPalette` report `onClose` exactly once.** Until now every
341
+ gesture — cross, escape, background — arrived twice: once out of the gesture and
342
+ once more through the native `close` event that the exit triggered at the end.
343
+ Whoever counts on the closing, logs it or shows a message now sees one. A closing
344
+ the browser itself triggers still arrives.
345
+
346
+ **`Wording.zeitraumMitZeitPlatzhalter` is gone.** It never named a placeholder
347
+ but the panel of the `DateTimeRangePicker`. In its place come two entries of
348
+ their own: `dateTimeRangePanel` for the panel and `dateTimeRangeClear` for its
349
+ clear ×, which until now shared `dateRangeClear` with the `DateRangePicker`.
350
+ Whoever overrode the old entry gets a type error and rewrites it to
351
+ `dateTimeRangePanel`.
352
+
353
+ **`Wording` has five new required fields**, because five texts stood in the
354
+ components past the directory: `filterReset` and `filterDone` (the buttons in the
355
+ `TableFilter`), `multiSelectSummary` (the "3 / 12" in the panel of the
356
+ `MultiSelect`), `columnAcknowledgement` and `columnAge` (the two columns of the
357
+ alarm model that the list does not show). Whoever overrides partially notices
358
+ nothing; whoever builds a complete `Wording` object gets type errors.
359
+
360
+ **A `Toast` with `tone="danger"` or `"warning"` announces itself as `alert`.**
361
+ Until now the shared region carried `role="status"` for every tone, and an error
362
+ was more polite there than the same error in the `Alert`. The region now has two
363
+ live areas that stand before the first message arrives — `status` for the polite
364
+ tones, `alert` for warning and error — and every message lands in the one for its
365
+ tone, by the same table as for the `Alert`. On the screen the order stays the one
366
+ the messages came in.
367
+
368
+ **`FormField required` sets `aria-required`.** The comment had always promised
369
+ it; only the asterisk was set. Now `Input`, `Select`, `Textarea`, `NumberInput`,
370
+ `Combobox`, `RadioGroup` and `Checkbox` carry it — out of the same context they
371
+ take `aria-describedby` and `aria-invalid` from. The triggers of the pickers and
372
+ of the `MultiSelect` are buttons and do not carry it: there it would not be a
373
+ permitted attribute.
374
+
375
+ **Ids that arise out of the caller's values have a different format.**
376
+ `Tab`/`TabPanel`, the options of the `RadioGroup`, the boxes of the `TreeView`
377
+ and groups as well as rows of the `CommandPalette` no longer build their ids out
378
+ of the raw value: a space in it broke `aria-labelledby`, and two trees on one
379
+ page handed out the same id. Whoever read one of these ids from outside — in a
380
+ test, say — now reads a different one; it was never promised.
381
+
382
+ **The danger `Button` writes dark on light in the dark theme.** White measured
383
+ 3.68:1 on the lighter danger surface of the dark theme; the type is now
384
+ `--u-color-on-danger` and turns the polarity like the accent. In the light theme
385
+ it stays white. The accessibility check no longer tolerates the pair.
386
+
387
+ **The scrim behind the `Modal` is `--u-color-scrim`.** It had a value of its own
388
+ and dimmed in the dark theme with the light one; in the light theme it is now as
389
+ light as behind the command palette.
390
+
391
+ **`UmrissProvider dichte` takes effect.** The setting was read by nothing. Now it
392
+ sets `data-dichte` at the root and is the default for the `density` of `Table`
393
+ and `AlarmList` (`"comfortable"` means `"regular"`). A provider without `dichte`
394
+ changes nothing — the alarm list then stays compact.
395
+
396
+ **The `Textarea` shows its focus ring at `:focus-visible`**, like every field
397
+ beside it; the hover edge of `Textarea` and `RadioGroup` is that of the remaining
398
+ fields.
399
+
400
+ **A `Tooltip` inside a `Modal` is visible.** It portalled to the body and thereby
401
+ lay behind the dialog — and with it every tooltip of a `Dock` inside one. It now
402
+ takes the same rule as the `Popover`: nearest `<dialog>`, then the `portalTarget`
403
+ of the `UmrissProvider`, then the body. With a `portalTarget` in the provider it
404
+ therefore lands there outside a dialog as well, instead of at the body.
405
+
406
+ **Enter in the time field commits in the `DateTimePicker` too**, as it already
407
+ did in the `DateTimeRangePicker`.
408
+
409
+ **A row of the `CommandPalette` is chosen only with the primary button.** A
410
+ right-click had already chosen.
411
+
412
+ **`wording.presets` reaches the `DateTimeRangePicker` as well.** It built its
413
+ quick select out of the German constant and passed over an override that the
414
+ `DateRangePicker` had long been taking.
415
+
416
+ ### New
417
+
418
+ **Five tokens:** `--u-color-on-danger`, `--u-color-danger-active`,
419
+ `--u-color-edge-hover`, `--u-duration-exit` and `--u-duration-exit-collapse`. The
420
+ two durations fall to zero under reduced motion; `Modal` and `Toast` read them at
421
+ runtime instead of carrying the figure a second time.
422
+
423
+ **`alarmColumns(wording)`** labels the columns of the alarm model out of a
424
+ wording, and `AlarmInput.columns` takes them. The labelling lands in the
425
+ projection's `columns` and from there in the column menu and the CSV header row.
426
+ `ALARM_COLUMNS` remains as the default labelling and is the same as
427
+ `alarmColumns(DEFAULT_WORDING)`.
428
+
429
+ ### Fixed
430
+
431
+ **"Now" in the `DateTimePicker` means now.** In the second 02:30 of the clock
432
+ change it gave out the first, an hour too early.
433
+
434
+ **An instant keeps its occurrence when reopened.** `DateTimePicker` and
435
+ `DateTimeRangePicker` opened a value that was the later occurrence of a doubled
436
+ hour as the earlier one; the next "apply" then shifted it by an hour.
437
+
438
+ **An `onInput` of one's own on the `Textarea` no longer takes anything away from
439
+ it.** It was spread after the library's and replaced it; the counter and the
440
+ growing then stood still. Both now run one after the other, the caller's first.
441
+
442
+ **The comments the props table shows say what the code does.** `NumberInput`
443
+ clamps every reported value, not only on blur; the default page sizes of the
444
+ `TablePagination` are 10, 25 and 50.
445
+
446
+ ## internal 0.8.0 – A strip above the surface (Sep. 2026)
447
+
448
+ Delivery report for `.scratch/floating-dock/spec.md`.
449
+
450
+ ### New
451
+
452
+ **`<Dock>` – the tools of a surface, above it instead of beside it.** A strip of
453
+ characters that lies above *one* host surface and carries the actions for it. It
454
+ belongs to its host and never to the screen: two charts side by side have two
455
+ docks, and neither claims to act on the other. It is rendered into a positioned
456
+ container:
457
+
458
+ ```tsx
459
+ <div style={{ position: "relative" }}>
460
+ <MyChart />
461
+ <Dock
462
+ tools={[{ id: "raster", label: "Grid", icon: <GridGlyph /> }, …]}
463
+ defaultPlace="unten"
464
+ mode={mode}
465
+ onUse={(id) => …}
466
+ />
467
+ </div>
468
+ ```
469
+
470
+ **Four resting places, and nothing in between.** `"oben" | "rechts" | "unten" |
471
+ "links"`, controlled (`place` / `onPlaceChange`) or uncontrolled
472
+ (`defaultPlace`, default `"unten"`). The dock is moved by its **grip**: dragging
473
+ snaps into the edge whose zone the pointer reaches, and the four arrow keys on
474
+ the grip are those same four places — absolute and not relative. Corners are not
475
+ resting places: a corner names no orientation. Why the dock *snaps* while being
476
+ dragged instead of following stands in ADR-0013; why the change of orientation is
477
+ animated by hand, in ADR-0014.
478
+
479
+ **A place without room refuses visibly.** Nine tools lie, with the tokens
480
+ shipped, as 316 × 40 and stand as 40 × 316; on a wide, flat surface the first
481
+ fits and the second does not. Such places are not offered — the zone shows the
482
+ outline the dock would have there, instead of quietly doing nothing. If the host
483
+ becomes so small that the *current* place no longer fits, the dock goes to the
484
+ next one that does and reports that through `onPlaceChange`. No overflow menu, no
485
+ shrinking, no scrolling.
486
+
487
+ The one limit of that, spoken out: if the strip fits in **neither** orientation
488
+ any more, the dock stays where it is and juts out beyond its host. There is then
489
+ no place to give way to, and the alternatives — shrink, scroll, collapse — are
490
+ one and all expressly rejected. Whoever puts a dock into a surface that can
491
+ become smaller than the strip is long had better hide it.
492
+
493
+ **The mode belongs to the caller.** `mode` names at most one tool and without a
494
+ statement is *none* — a dock whose tools simply fire has no mode, and none is
495
+ preset to the first tool either. `onUse(id)` reports every taking;
496
+ `onModeChange(id)` reports the same event narrowed to "that would be a different
497
+ mode", and whether the taken `id` is a mode at all is for the application to
498
+ decide.
499
+
500
+ **Three more characters in the set:** `GripGlyph`, `GridGlyph`, `MeasureGlyph` —
501
+ drawn according to the specification in `packages/core/docs/glyphs.md`.
502
+
503
+ **New tokens:** `--u-dock-tool`, `--u-dock-grip`, `--u-dock-gap`,
504
+ `--u-dock-padding`, `--u-dock-margin`, `--u-dock-grip-travel`. They are not merely
505
+ style: the component reads them back at runtime, because the question "does this
506
+ place fit" is a calculation over exactly these values. Whoever changes them
507
+ thereby also changes from how many tools on a side edge refuses.
508
+
509
+ **`TableToolbar` stays what it is.** It is a strip *in the flow* above a table —
510
+ it takes room instead of covering, and it does not move. Nothing about it
511
+ changes, and it is not deprecated.
512
+
513
+ ## internal 0.7.0 – A window for searching (Sep. 2026)
514
+
515
+ Delivery report for `.scratch/command-palette/spec.md`.
516
+
517
+ ### New
518
+
519
+ **`<CommandPalette>` – one list, one term, one window.** Controlled like the
520
+ modal (`open`, `onClose`); the opening remains the application's decision. An
521
+ item is `{ id, label, group?, icon?, weight? }`, and what is chosen is the `id` —
522
+ whether that leads to a jump or to something being executed is for the caller to
523
+ decide. Exactly that keeps **places and commands under one term** instead of
524
+ under two.
525
+
526
+ **The resting state belongs to the caller.** Without a statement the palette
527
+ shows nothing before the first character — a search field and not a menu, and
528
+ only so is the growth movement producible at all. Whoever wants something
529
+ standing there passes `restingItems`:
530
+
531
+ ```tsx
532
+ <CommandPalette items={ALL} restingItems={recentlyUsed} … />
533
+ ```
534
+
535
+ A **list** and not a switch, because the interesting question is not "all or
536
+ none" but "which". Whoever really wants to show everything writes
537
+ `restingItems={items}`; whoever wants to show the five most recently used can do
538
+ that too — and a `showAll` could not. With long lists, "all" is anyway exactly
539
+ the state this component abolished.
540
+
541
+ The rows stand in **your** order and without markings: without a term there is no
542
+ rank and nothing to mark. Everything else — arrow keys, enter, escape, the
543
+ pointer rule — applies unchanged.
544
+
545
+ There is **no `placeholder` prop**. Every visible text — placeholder, window
546
+ name, empty line, key hints down to the legend "Esc" — comes out of the
547
+ `Wording`. A second way to set the same text is worse than one.
548
+
549
+ Functionally it stays small, on purpose: **one** list as a prop. No sources, no
550
+ asynchrony, no preview, no "top hit", no memory. What is missing is reach — and
551
+ none of it is visible.
552
+
553
+ **The finder finds subsequences, not substrings.** `dtp` finds
554
+ `DateTimePicker`. A hit at the start of a word beats one in the middle of a word,
555
+ a contiguous run beats a scattered one, the shorter name beats the longer at
556
+ equal quality; the group name is searched along and ranks below every find in a
557
+ name. The matched characters are drawn in the accent — a find that no substring
558
+ explains has to let itself be seen to be one. The formula itself is internal;
559
+ what is promised is the **order**.
560
+
561
+ `weight` is the hook for frequency or recency: it is added to the rank last. The
562
+ library expressly keeps **no memory** for it — remembering is the application's
563
+ business.
564
+
565
+ **`useCommandPaletteShortcut(onOpen)`.** Binds ⌘K/Ctrl+K and `/`, including the
566
+ rule that every caller otherwise rediscovers through a bug report: `/` does
567
+ **not** open while the focus stands in an input, a textarea or a
568
+ `contenteditable`.
569
+
570
+ **Three new tokens, public** – so that overlays of one's own meet the palette
571
+ instead of guessing at it: `--u-radius-xl` (18px, one step above the card),
572
+ `--u-color-material` with `--u-color-material-fallback` and `--u-material-blur`
573
+ (the translucent surface with its opaque substitute colour), and
574
+ `--u-color-scrim` (the dimming behind an overlay). Both themes have values of
575
+ their own; the dark one is chosen by eye and did not come about by inverting.
576
+
577
+ The alpha of the material is a **floor**: the opaque colour beneath it carries
578
+ the legibility alone, the translucency supplies atmosphere and never contrast.
579
+ Whoever lowers the value gets a panel whose type is legible by luck. The reason
580
+ stands in `docs/adr/0012-a-translucent-material-needs-a-floor.md`. Where
581
+ `backdrop-filter` is missing or switched off, the pane falls back to the opaque
582
+ colour — quieter than intended, in every other respect right. The existing
583
+ overlays of the library do **not** move along; that is a decision of its own with
584
+ consequences of its own for the baselines.
585
+
586
+ ### Changed
587
+
588
+ **`Wording` has ten new required fields** for the palette: `palettePlaceholder`,
589
+ `paletteField`, `palettePanel`, `paletteList`, `paletteNoFinds`,
590
+ `paletteFindCount`, `paletteHintMove`, `paletteHintChoose`, `paletteHintClose`,
591
+ `paletteKeyEsc`. As before: whoever overrides **partially** notices nothing;
592
+ whoever has built a complete `Wording` object gets type errors.
593
+
594
+ They are deliberately entries of **their own** and not those of the combobox. Its
595
+ `noMatches` stays where it is: the palette finds *finds*, and the word "hit" is
596
+ taken in the glossary for the point detection of the charts. Two meanings under
597
+ one grep are exactly what the directory exists against.
598
+
599
+ Nothing changes in the behaviour of existing components. Modal and palette share
600
+ the entrance and exit choreography of the native `<dialog>` internally; the
601
+ times, the escape behaviour and the background rule of the modal are unchanged,
602
+ and the shared hook is not part of the public interface.
603
+
604
+ ## internal 0.6.0 – The value, the alarm and its age (Aug. 2026)
605
+
606
+ Delivery report for `.scratch/judging-values/spec.md`,
607
+ `.scratch/shopfloor-instruments/spec.md` and
608
+ `.scratch/plant-at-a-glance/spec.md`, this package's share.
609
+
610
+ ### New
611
+
612
+ **The limit is a rule, not a colour.** `assess()`, `verdictWeight()` and the
613
+ types `Limit`, `LimitSet`, `Assessment`, `Verdict`, `Severity`, `Side`. A limit
614
+ is a value, a side and a severity; a target is something else and is never
615
+ violated, only missed. The assessment has **four** outcomes — `ok`, `unbekannt`,
616
+ `warnung`, `alarm` — and the fourth is the reason for the module: an absent value
617
+ must not look like a good one. No `null` return value, because that invites a
618
+ `?? "ok"` at the call site. A violation is **beyond** a limit, not on it.
619
+
620
+ The same module also stands in `@umriss-ui/charts` — written twice, on purpose,
621
+ justified in ADR-0006 and held together by a conformance test. For callers that
622
+ means: a tile and the chart beneath it never contradict each other about the same
623
+ figure, and `@umriss-ui/core` brings no canvas library along for it.
624
+
625
+ **`<Stat>` – the tile that reads its value.** Value, unit, label, optionally a
626
+ target, limits, a history and an as-of time. It gets **no `tone`**: the rule is
627
+ pulled out of the call site, and a tone prop would push it back. It has **no
628
+ trend arrow**: a direction out of two points of a noisy signal is noise with an
629
+ arrowhead. It says its verdict as a **word**, not only as a colour. Without
630
+ limits it passes no verdict at all. There is deliberately no `StatRow`: a row of
631
+ tiles is a layout problem, and `<Stat>` aligns its inside itself.
632
+
633
+ **`<AlarmList>` and `alarmModel` – the lifecycle of an alarm.** The library takes
634
+ alarms in and generates none (ADR-0009). The lifecycle state is **one field with
635
+ four values**, not two booleans — otherwise every list loses the third: came,
636
+ went, and nobody saw it. On top of that: the default order priority →
637
+ acknowledgement → time, the frequency per alarm type, flood detection, a return
638
+ threshold (dead band) and bulk acknowledgement through the known selection
639
+ helper. A flood is **marked, never suppressed**. The model composes with
640
+ `tableModel`; all previous guarantees go on holding.
641
+
642
+ **Freshness is a different axis from the verdict.** `freshness()`, `age()`,
643
+ `cadence()` and the hook `useFreshness()`. Three states out of two thresholds:
644
+ `frisch`, `alt`, `abgerissen`. **A stale value keeps its verdict** (ADR-0010) —
645
+ it does not become "unknown", because when the connection drops exactly what the
646
+ human then needs would otherwise be lost. The cadence derives from the
647
+ thresholds; a tile that goes stale after five minutes does not tick sixty times a
648
+ minute.
649
+
650
+ `Formats` gains `relative(ms)` — "vor 3 Minuten", in the coarsest unit that still
651
+ works out. (The formats are `de-DE`; see the entry at the top.)
652
+
653
+ ### Changed
654
+
655
+ **`Wording` has new required fields** – some thirty, for assessment, freshness
656
+ and the alarm list. Whoever overrides the wording **partially**, as foreseen
657
+ (`<LanguageProvider wording={{ … }}>`), notices nothing of it: the statement was
658
+ and remains `Partial`. Whoever has built a complete `Wording` object themselves
659
+ gets type errors and adds the new entries — or writes
660
+ `{ ...DEFAULT_WORDING, …own }`, which is the better way anyway.
661
+
662
+ ## internal 0.5.0 – Configurable, very large, checked (Aug. 2026)
663
+
664
+ ### New
665
+
666
+ **Formats and wording are overridable.** `LanguageProvider`, `useFormats()`,
667
+ `useWording()`, `mergeLanguage()` as well as the defaults `DEFAULT_FORMATS` and
668
+ `DEFAULT_WORDING`. The wording is a **directory of entries**, named after what
669
+ they label — not a translation call. Whoever leaves an entry out gets the default
670
+ text, never a key name and never an empty string. At this point German was still
671
+ the only shipped language; since 0.10.0 English is the default and German ships
672
+ as `@umriss-ui/core/wording/de` (ADR-0019).
673
+
674
+ **One place to configure.** `UmrissProvider` holds exactly five things: `theme`
675
+ (`"light" | "dark" | "system"`, where "system" subscribes and takes a change at
676
+ runtime along), `dichte`, `portalTarget`, `toast` and `language`. With them
677
+ `useUmriss()`, `useDensity()`, `usePortalTarget()`, `useToastConfig()`.
678
+
679
+ **Virtualisation of very large tables.** `useTable(…, { virtual: { zeilenHoehe }
680
+ })`, `<Table virtual={…}>`, `TableVirtualBody`, `TableVirtualRow` and the pure
681
+ functions `visibleWindow` / `scrollForRow`. The sticky header and the sticky
682
+ first column stay; the keyboard reaches rows that were never rendered.
683
+
684
+ **A character set.** `CrossGlyph`, `PlusGlyph`, `MinusGlyph` – with a written-down
685
+ specification and a list of the characters that deviate from it (`packages/core/docs/glyphs.md`).
686
+ The set has grown since; what it holds today and what deviates stands in that
687
+ file, which is the actual deliverable.
688
+
689
+ `Meter` takes `label`.
690
+
691
+ ### Changed
692
+
693
+ **The provider is voluntary.** Without it every component behaves **exactly as
694
+ before**. That is tested, not claimed: one component of every sort that reads
695
+ configuration at all.
696
+
697
+ **The row actions of the table are visible.** They lay at `opacity: 0.4` at rest
698
+ and thereby came to about **1.6:1** — by WCAG no longer readable text. Now `0.9`.
699
+ **That is a visible change**: whoever uses the action column sees it more clearly
700
+ at rest than before.
701
+
702
+ **`Meter` carries an accessible name.** Without a `label` it says "Fill level".
703
+ Before, the role `meter` had no name at all.
704
+
705
+ **A disabled `Tag` reports that in the accessibility tree** (`aria-disabled`), no
706
+ longer only through a CSS class.
707
+
708
+ **Virtualisation switches paging off.** Whoever sets `virtual` gets no pages:
709
+ `pageSize` and `setPage` stay without effect, and the view carries neither `page`
710
+ nor `pageSize`. Both at once would be a control that contradicts itself.
711
+
712
+ Otherwise nothing changes about the contract. All formatters give out character
713
+ for character the same as before — the checks for that were written **before** the
714
+ move — and the glyph migration is pixel-identical.
715
+
716
+ ## internal 0.4.0 – Eight parts of the foundation (Aug. 2026)
717
+
718
+ The first version counted as it happened rather than reconstructed afterwards.
719
+
720
+ ### New
721
+
722
+ | Export | Purpose |
723
+ |---|---|
724
+ | `Textarea` | multi-line input; `autoGrow` with `maxRows`, `showCount` |
725
+ | `RadioGroup` | one out of few, with an explanatory line per option |
726
+ | `Alert` | a message that stays — five tones, optionally dismissible |
727
+ | `Tag`, `TagGroup` | a removable label; the group navigates with arrow keys |
728
+ | `Divider` | a separating line as a layout primitive, horizontal/vertical, with a label |
729
+ | `VisuallyHidden` | text only for the screen reader; `focusable` for skip links |
730
+ | `ButtonGroup`, `SplitButton` | buttons that belong together; a main action plus variants |
731
+ | `Text`, `Heading`, `Link` | typography on the token scale |
732
+
733
+ Two peculiarities that stand out at the call: `Heading` separates outline level
734
+ from size, so that nobody picks the wrong level in order to get the right size.
735
+ And the tone of the `Alert` determines its aria role, not the caller — the two
736
+ urgent tones interrupt the screen reader, the rest do not.
737
+
738
+ ### Changed
739
+
740
+ Nothing. No existing component was touched, no prop changed its meaning. This
741
+ release is purely additive.
742
+
743
+ ### Otherwise
744
+
745
+ The package gets this changelog and a `prepublishOnly` step that runs the type
746
+ check and the build — a package that does not build can no longer be published by
747
+ accident. Nothing about the delivered content changes.
748
+
749
+ ## internal 0.3.0 – The table as a surface, part one (Aug. 2026)
750
+
751
+ ### New
752
+
753
+ | Export | What it is |
754
+ |---|---|
755
+ | `asCsv` | the filtered set as delimiter-separated text |
756
+ | `alsSuchparameter`, `ausSuchparametern` | the view as a link and back |
757
+ | `orderColumns` | column order, shared with the companion |
758
+
759
+ `Column` carries two new fields: `label` (column menu, CSV header row) and
760
+ `hideable` — `false` for columns that identify the row. `TableInput` takes
761
+ `hidden` and `order`; `TableProjection` gives the visible columns back in order,
762
+ and `columnCount` derives from that. `useTable` gains `sortRankOf`,
763
+ `toggleColumn`, `columnChoices`, `setOrder`, `initialView` and `view`.
764
+
765
+ `asCsv` returns text and triggers no download; file name and timestamp belong to
766
+ the application. Likewise the library does not write the address bar itself —
767
+ which is why the package hangs on no routing library.
768
+
769
+ ### Changed
770
+
771
+ - **The sort is an ordered list of levels** instead of a single one. The model
772
+ still accepts a single level; existing calling code stays valid and yields the
773
+ same order. What is new is the behaviour *with* a modifier key: without it, one
774
+ actuation replaces the list and turns up/down as before; with it, it appends,
775
+ turns, and at the end of the cycle takes itself out again.
776
+ - **`Th` reports the modifier key to `onSort`** as a second parameter and shows
777
+ the rank from two levels on. Whoever calls `onSort` with a one-parameter
778
+ handler notices nothing of it.
779
+ - **Hiding does not reset the page.** Unlike search, sort and page size it does
780
+ not change the set of rows. Hiding is pure presentation: the pipeline goes on
781
+ working with all columns, so that a sort by a hidden column is preserved.
782
+
783
+ ### Without a version of its own
784
+
785
+ Into the same period falls a rebuild of the two range pickers: the preset column,
786
+ the month pair, the calendar configuration and the trigger now lie in shared,
787
+ package-internal parts. For the caller nothing changes about it — no prop, no
788
+ commit moment, no two-click rule, no class name — which is why it gets no number
789
+ here.
790
+
791
+ ## internal 0.2.0 – Popover, and the logic behind the bodies (Aug. 2026)
792
+
793
+ ### New
794
+
795
+ - **`Popover`** – the one dismissible, anchored surface: portal, position,
796
+ outside click, escape with focus return, travelling along while scrolling,
797
+ stacking order, entrance. Eight panel modules in the package have lain on it
798
+ since; whoever builds anchored surfaces of their own can take the same
799
+ primitive.
800
+ - **`DateTimePicker` has `size`** – of the four pickers it was the only one
801
+ missing it.
802
+ - **`Th` gains `column`** and passes the identifier on to `onSort`.
803
+ - The stacking order is a token scale (`--u-z-popover`, `--u-z-toast`,
804
+ `--u-z-tooltip`) and thereby shiftable from outside. A surface inside a
805
+ `<dialog>` portals there and no longer lies behind it.
806
+
807
+ ### Changed
808
+
809
+ This release corrects behaviour that one may have arranged oneself around. The
810
+ list in full:
811
+
812
+ - **`NumberInput` reports a clamped value on every route.** Previously a key
813
+ press gave out the unclamped value while blur and stepping gave the clamped one
814
+ — one prop with two contracts that the caller could not tell apart. The text in
815
+ the field still stays untouched while typing.
816
+ - **`DatePicker` "today" gives out local midnight.** The grid already did; the
817
+ button supplied the time of day with it.
818
+ - **`DateTimePicker` "now" goes through the time-zone resolution.** It was the
819
+ only way around it.
820
+ - **The choice between two identical wall-clock times** (the doubled hour at the
821
+ end of summer time) **applies per day.** Previously it was reset only on
822
+ opening.
823
+ - **Clearing while the panel is open closes it** – in all four pickers.
824
+ Previously a panel stayed standing that was filled out of a deleted value.
825
+ - **`TablePagination` clamps internally.** Without hits it said "page 1 of 1"
826
+ while "next" was disabled.
827
+
828
+ ### Otherwise
829
+
830
+ The checkable logic of the components has since lain in modules of its own
831
+ (German number notation, the month grid, the clock change, date and time formats,
832
+ option lists, scale projection, position arithmetic, the table model). They are
833
+ not part of the public interface; all that is visible of it is that these parts
834
+ are now checked one by one.
835
+
836
+ ## internal 0.1.0 – Takeover state (Aug. 2026)
837
+
838
+ The state the package came into this repository with.
839
+
840
+ What is delivered is an ESM bundle, type declarations and a stylesheet under
841
+ `@umriss-ui/core/styles.css`; `react` and `react-dom` from version 18 on are peer
842
+ dependencies. Contained are Badge, Button, Card, Checkbox, Combobox, DataViz, the
843
+ four date and time pickers, EmptyState, FormField, Input, Layout, Menu, Modal,
844
+ MultiSelect, NumberInput, Select, Skeleton, Spinner, Table, Tabs, Toast, Tooltip
845
+ and `useTableSelection`.
846
+
847
+ The number was a placeholder figure, not a statement — it stood for "delivered
848
+ once", not for a state one can update against. From 0.4.0 on, the rule above
849
+ applies.