@umriss-ui/core 0.32.0 → 0.33.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/dist/de.d.ts CHANGED
@@ -337,6 +337,12 @@ declare interface Wording {
337
337
  entries: (count: number, formatted: string) => string;
338
338
  /** "3 selected" in the pagination bar and the table toolbar. */
339
339
  selectedCount: (count: number, formatted: string) => string;
340
+ /** Said to a screen reader after Ctrl+C copied rows: "3 rows copied". */
341
+ copiedRows: (count: number, formatted: string) => string;
342
+ /** Said after Ctrl+C copied the active cell of a grid. */
343
+ copiedCell: string;
344
+ /** Said when the clipboard refused or is not there. */
345
+ copyFailed: string;
340
346
  /** Empty because there are no rows. */
341
347
  noEntries: string;
342
348
  /** Empty because search and filters leave nothing - something else. */
@@ -432,8 +438,9 @@ declare interface Wording {
432
438
  columnAge: string;
433
439
  /** The availability of an alarm (ISA-18.2's special states), written out.
434
440
  A snooze names its end and who snoozed it - a snooze is tracked, not
435
- anonymous; the time comes from the formats. */
436
- availabilitySnoozed: (until: string, by: string) => string;
441
+ anonymous; the time comes from the formats. The reason, when the snooze
442
+ has one, comes last and is optional: a wording of two parameters fits. */
443
+ availabilitySnoozed: (until: string, by: string, reason?: string) => string;
437
444
  /** A snooze as one word - the alarm list's badge; the sentence above stands
438
445
  in its tooltip and in what is spoken. */
439
446
  availabilitySnoozedShort: string;
package/dist/index.d.ts CHANGED
@@ -104,6 +104,22 @@ export declare function allBranches<K, S extends Key = string>(roots: readonly K
104
104
  rotate it by 90 degrees for an open branch. */
105
105
  export declare const AngleGlyph: ForwardRefExoticComponent<Omit<GlyphProps, "ref"> & RefAttributes<SVGSVGElement>>;
106
106
 
107
+ /**
108
+ * The library's one voice: says `text` in a polite live region, for what
109
+ * happened without a visible change in the place a reader is at - a copy made,
110
+ * a count after a filter. Use it instead of a region of your own: there is one
111
+ * region, so two announcements never speak over each other.
112
+ *
113
+ * Says `text` once announcements have rested for `ANNOUNCE_REST`; a later call
114
+ * within the rest replaces an earlier one.
115
+ *
116
+ * `at` is the element that speaks. Inside a modal `<dialog>` everything else
117
+ * is inert and a region there is silent, so the region is the dialog's own -
118
+ * the portal target's rule, without the provider's setting: that decides where
119
+ * a surface is laid out, and a region is laid out nowhere.
120
+ */
121
+ export declare function announce(text: string, at?: Element | null): void;
122
+
107
123
  /**
108
124
  * What the value is, given the limit set. A pure function of the two.
109
125
  *
@@ -1026,7 +1042,7 @@ export declare interface FormFieldProps extends HTMLAttributes<HTMLDivElement> {
1026
1042
  Checkbox. The triggers of the pickers and of the MultiSelect are
1027
1043
  buttons, on which `aria-required` is not a permitted attribute; there
1028
1044
  the mark carries it alone. It validates nothing - validation belongs to
1029
- the caller. */
1045
+ the caller (ADR-0060). */
1030
1046
  required?: boolean;
1031
1047
  /** Optional: a fixed id for the input element (instead of a generated
1032
1048
  one). */
@@ -3064,6 +3080,12 @@ export declare interface Wording {
3064
3080
  entries: (count: number, formatted: string) => string;
3065
3081
  /** "3 selected" in the pagination bar and the table toolbar. */
3066
3082
  selectedCount: (count: number, formatted: string) => string;
3083
+ /** Said to a screen reader after Ctrl+C copied rows: "3 rows copied". */
3084
+ copiedRows: (count: number, formatted: string) => string;
3085
+ /** Said after Ctrl+C copied the active cell of a grid. */
3086
+ copiedCell: string;
3087
+ /** Said when the clipboard refused or is not there. */
3088
+ copyFailed: string;
3067
3089
  /** Empty because there are no rows. */
3068
3090
  noEntries: string;
3069
3091
  /** Empty because search and filters leave nothing - something else. */
@@ -3159,8 +3181,9 @@ export declare interface Wording {
3159
3181
  columnAge: string;
3160
3182
  /** The availability of an alarm (ISA-18.2's special states), written out.
3161
3183
  A snooze names its end and who snoozed it - a snooze is tracked, not
3162
- anonymous; the time comes from the formats. */
3163
- availabilitySnoozed: (until: string, by: string) => string;
3184
+ anonymous; the time comes from the formats. The reason, when the snooze
3185
+ has one, comes last and is optional: a wording of two parameters fits. */
3186
+ availabilitySnoozed: (until: string, by: string, reason?: string) => string;
3164
3187
  /** A snooze as one word - the alarm list's badge; the sentence above stands
3165
3188
  in its tooltip and in what is spoken. */
3166
3189
  availabilitySnoozedShort: string;
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { f as u } from "../formats-DrB9TuzO.js";
2
3
  const c = u("de-DE"), d = {
3
4
  clearInput: "Eingabe leeren",
@@ -176,6 +177,9 @@ const c = u("de-DE"), d = {
176
177
  calendarWeek: (e, n) => `KW ${e}/${n}`,
177
178
  entries: (e, n) => e === 1 ? "1 Eintrag" : `${n} Einträge`,
178
179
  selectedCount: (e, n) => `${n} ausgewählt`,
180
+ copiedRows: (e, n) => e === 1 ? "1 Zeile kopiert" : `${n} Zeilen kopiert`,
181
+ copiedCell: "Zelle kopiert",
182
+ copyFailed: "Kopieren nicht möglich",
179
183
  noEntries: "Keine Einträge",
180
184
  nothingMatchesFilters: "Nichts passt zu Suche und Filtern",
181
185
  treeSearchPlaceholder: "Im Baum suchen …",
@@ -235,7 +239,7 @@ const c = u("de-DE"), d = {
235
239
  columnFrequency: "Häufigkeit",
236
240
  columnAcknowledgement: "Quittierung",
237
241
  columnAge: "Alter",
238
- availabilitySnoozed: (e, n) => `Zurückgestellt bis ${e} von ${n}`,
242
+ availabilitySnoozed: (e, n, t) => `Zurückgestellt bis ${e} von ${n}${t ? `: ${t}` : ""}`,
239
243
  availabilitySnoozedShort: "Zurückgestellt",
240
244
  availabilitySuppressed: "Unterdrückt",
241
245
  availabilityDisabled: "Deaktiviert",
package/docs/llms-full.md CHANGED
@@ -1,4 +1,4 @@
1
- # @umriss-ui/core 0.32.0
1
+ # @umriss-ui/core 0.33.0
2
2
 
3
3
  > React component library for data-dense dashboards and tools - forms, date pickers, overlays, a tree view and a command palette. Precise, quiet, professional.
4
4
 
@@ -3976,6 +3976,9 @@ Every entry of `Wording`: the English of `DEFAULT_WORDING` beside the German of
3976
3976
  | `calendarWeek(week, year)` | `` `Week ${week}, ${year}` `` | `` `KW ${week}/${year}` `` | A group of the week key: "Week 42, 2026". |
3977
3977
  | `entries(count, formatted)` | `` (count === 1 ? "1 entry" : `${formatted} entries`) `` | `` (count === 1 ? "1 Eintrag" : `${formatted} Einträge`) `` | "128 entries" in the pagination bar; the plural belongs to the language. |
3978
3978
  | `selectedCount(count, formatted)` | `` `${formatted} selected` `` | `` `${formatted} ausgewählt` `` | "3 selected" in the pagination bar and the table toolbar. |
3979
+ | `copiedRows(count, formatted)` | `` (count === 1 ? "1 row copied" : `${formatted} rows copied`) `` | `` (count === 1 ? "1 Zeile kopiert" : `${formatted} Zeilen kopiert`) `` | Said to a screen reader after Ctrl+C copied rows: "3 rows copied". |
3980
+ | `copiedCell` | Cell copied | Zelle kopiert | Said after Ctrl+C copied the active cell of a grid. |
3981
+ | `copyFailed` | Could not copy | Kopieren nicht möglich | Said when the clipboard refused or is not there. |
3979
3982
  | `noEntries` | No entries | Keine Einträge | Empty because there are no rows. |
3980
3983
  | `nothingMatchesFilters` | Nothing matches the search and filters | Nichts passt zu Suche und Filtern | Empty because search and filters leave nothing - something else. |
3981
3984
  | `treeSearchPlaceholder` | Search the tree … | Im Baum suchen … | — |
@@ -4045,7 +4048,7 @@ Every entry of `Wording`: the English of `DEFAULT_WORDING` beside the German of
4045
4048
  | `columnFrequency` | Frequency | Häufigkeit | — |
4046
4049
  | `columnAcknowledgement` | Acknowledgement | Quittierung | The two columns of the alarm model the list does not show, but which do land in the column menu and the CSV header (`alarmColumns`). |
4047
4050
  | `columnAge` | Age | Alter | — |
4048
- | `availabilitySnoozed(until, by)` | `` `Snoozed until ${until} by ${by}` `` | `` `Zurückgestellt bis ${until} von ${by}` `` | The availability of an alarm (ISA-18.2's special states), written out. A snooze names its end and who snoozed it - a snooze is tracked, not anonymous; the time comes from the formats. |
4051
+ | `availabilitySnoozed(until, by, reason)` | `` `Snoozed until ${until} by ${by}${reason ? `: ${reason}` : ""}` `` | `` `Zurückgestellt bis ${until} von ${by}${reason ? `: ${reason}` : ""}` `` | The availability of an alarm (ISA-18.2's special states), written out. A snooze names its end and who snoozed it - a snooze is tracked, not anonymous; the time comes from the formats. The reason, when the snooze has one, comes last and is optional: a wording of two parameters fits. |
4049
4052
  | `availabilitySnoozedShort` | Snoozed | Zurückgestellt | A snooze as one word - the alarm list's badge; the sentence above stands in its tooltip and in what is spoken. |
4050
4053
  | `availabilitySuppressed` | Suppressed | Unterdrückt | — |
4051
4054
  | `availabilityDisabled` | Disabled | Deaktiviert | — |
@@ -4400,6 +4403,9 @@ Everything the library puts out as text.
4400
4403
  | `calendarWeek` *required* | `(week: number, year: number) => string` | — | A group of the week key: "Week 42, 2026". |
4401
4404
  | `entries` *required* | `(count: number, formatted: string) => string` | — | "128 entries" in the pagination bar; the plural belongs to the language. |
4402
4405
  | `selectedCount` *required* | `(count: number, formatted: string) => string` | — | "3 selected" in the pagination bar and the table toolbar. |
4406
+ | `copiedRows` *required* | `(count: number, formatted: string) => string` | — | Said to a screen reader after Ctrl+C copied rows: "3 rows copied". |
4407
+ | `copiedCell` *required* | `string` | — | Said after Ctrl+C copied the active cell of a grid. |
4408
+ | `copyFailed` *required* | `string` | — | Said when the clipboard refused or is not there. |
4403
4409
  | `noEntries` *required* | `string` | — | Empty because there are no rows. |
4404
4410
  | `nothingMatchesFilters` *required* | `string` | — | Empty because search and filters leave nothing - something else. |
4405
4411
  | `treeSearchPlaceholder` *required* | `string` | — | |
@@ -4459,7 +4465,7 @@ Everything the library puts out as text.
4459
4465
  | `columnFrequency` *required* | `string` | — | |
4460
4466
  | `columnAcknowledgement` *required* | `string` | — | The two columns of the alarm model the list does not show, but which do land in the column menu and the CSV header (`alarmColumns`). |
4461
4467
  | `columnAge` *required* | `string` | — | |
4462
- | `availabilitySnoozed` *required* | `(until: string, by: string) => string` | — | The availability of an alarm (ISA-18.2's special states), written out. A snooze names its end and who snoozed it - a snooze is tracked, not anonymous; the time comes from the formats. |
4468
+ | `availabilitySnoozed` *required* | `(until: string, by: string, reason?: string) => string` | — | The availability of an alarm (ISA-18.2's special states), written out. A snooze names its end and who snoozed it - a snooze is tracked, not anonymous; the time comes from the formats. The reason, when the snooze has one, comes last and is optional: a wording of two parameters fits. |
4463
4469
  | `availabilitySnoozedShort` *required* | `string` | — | A snooze as one word - the alarm list's badge; the sentence above stands in its tooltip and in what is spoken. |
4464
4470
  | `availabilitySuppressed` *required* | `string` | — | |
4465
4471
  | `availabilityDisabled` *required* | `string` | — | |
@@ -4884,6 +4890,7 @@ type GridColumnWidth = number | "fill";
4884
4890
  #### Known limits
4885
4891
 
4886
4892
  - No breakpoints and no responsive props: a grid follows the width through `minItemWidth`, anything else is your stylesheet's.
4893
+ - Tiles are not arranged by the user: no dragging, no resizing, no stored layout ([ADR-0060](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0060-validation-and-a-layout-editor-are-never-time-zones-not-yet.md)).
4887
4894
 
4888
4895
  What umriss deliberately does not build, and why: [ADR-0032](https://romanhaendler.github.io/umriss-ui/what-umriss-ui-is-not/).
4889
4896
 
@@ -5708,7 +5715,7 @@ Also takes every attribute of `<div>` – without `children`, `defaultValue`, `o
5708
5715
 
5709
5716
  #### Known limits
5710
5717
 
5711
- - Two panes per splitter, no more.
5718
+ - Two panes per splitter, no more. Tiles are not arranged by the user ([ADR-0060](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0060-validation-and-a-layout-editor-are-never-time-zones-not-yet.md)).
5712
5719
  - It does not remember the share beyond its own life; keep it in the user's settings through `value` and `onChange`.
5713
5720
 
5714
5721
  What umriss deliberately does not build, and why: [ADR-0032](https://romanhaendler.github.io/umriss-ui/what-umriss-ui-is-not/).
@@ -6553,7 +6560,7 @@ What umriss deliberately does not build, and why: [ADR-0032](https://romanhaendl
6553
6560
  Text a screen reader announces but the eye does not see (also called screen-reader-only or sr-only). Reach for it when a visible label is clear from its surroundings but not on its own, and for a skip link.
6554
6561
 
6555
6562
  ```ts
6556
- import { VisuallyHidden } from "@umriss-ui/core";
6563
+ import { VisuallyHidden, announce } from "@umriss-ui/core";
6557
6564
  ```
6558
6565
 
6559
6566
  Demo page: https://romanhaendler.github.io/umriss-ui/core/visuallyhidden/
@@ -8187,14 +8194,14 @@ The keys of [Input](#/input/keyboard-input), [NumberInput](#/numberinput/keyboar
8187
8194
  | `label` *required* | `ReactNode` | — | The label of the field. It is mandatory: a field without a name is a field without a question for a screen reader.<br>Shown in: [Configurator](#/formfield/configurator-formfield), [Label and hint](#/formfield/label-and-hint), [Show an error](#/formfield/show-an-error) and 76 more |
8188
8195
  | `hint` | `ReactNode` | — | Help text below the field. Replaced by `error`.<br>Shown in: [Configurator](#/formfield/configurator-formfield), [Label and hint](#/formfield/label-and-hint), [Show an error](#/formfield/show-an-error) and 33 more |
8189
8196
  | `error` | `ReactNode` | — | Error message; it marks the field as invalid at the same time.<br>Shown in: [Configurator](#/formfield/configurator-formfield), [Show an error](#/formfield/show-an-error), [Check an invoice on submit](#/formfield/check-an-invoice-on-submit) and 22 more |
8190
- | `required` | `boolean` | `false` | Sets the required mark on the label and `aria-required` on the field - on Input, Select, Textarea, NumberInput, Combobox, RadioGroup and Checkbox. The triggers of the pickers and of the MultiSelect are buttons, on which `aria-required` is not a permitted attribute; there the mark carries it alone. It validates nothing - validation belongs to the caller.<br>Shown in: [Configurator](#/formfield/configurator-formfield), [Mark a field as required](#/formfield/mark-a-field-as-required), [Check an invoice on submit](#/formfield/check-an-invoice-on-submit) and 9 more |
8197
+ | `required` | `boolean` | `false` | Sets the required mark on the label and `aria-required` on the field - on Input, Select, Textarea, NumberInput, Combobox, RadioGroup and Checkbox. The triggers of the pickers and of the MultiSelect are buttons, on which `aria-required` is not a permitted attribute; there the mark carries it alone. It validates nothing - validation belongs to the caller ([ADR-0060](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0060-validation-and-a-layout-editor-are-never-time-zones-not-yet.md)).<br>Shown in: [Configurator](#/formfield/configurator-formfield), [Mark a field as required](#/formfield/mark-a-field-as-required), [Check an invoice on submit](#/formfield/check-an-invoice-on-submit) and 9 more |
8191
8198
  | `fieldId` | `string` | — | Optional: a fixed id for the input element (instead of a generated one).<br>Shown in: [Sum up a form's errors (Alert)](#/alert/above-a-form) |
8192
8199
 
8193
8200
  Also takes every attribute of `<div>`.
8194
8201
 
8195
8202
  #### Known limits
8196
8203
 
8197
- - No form state, no validation rules, no submit handling: use your own state or a form library, and hand each message to its field.
8204
+ - No validation: the caller's form library decides; pass `error` ([ADR-0060](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0060-validation-and-a-layout-editor-are-never-time-zones-not-yet.md)). No form state and no submit handling either.
8198
8205
  - One field per `FormField`; a group of fields that share one label is a fieldset of your own.
8199
8206
 
8200
8207
  What umriss deliberately does not build, and why: [ADR-0032](https://romanhaendler.github.io/umriss-ui/what-umriss-ui-is-not/).
@@ -10788,7 +10795,7 @@ Also takes every attribute of `<span>` – without `defaultValue`, `onChange`.
10788
10795
  #### Known limits
10789
10796
 
10790
10797
  - No typing of a date into the field.
10791
- - No time zones other than the browser's.
10798
+ - umriss shows the reader's time ([ADR-0060](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0060-validation-and-a-layout-editor-are-never-time-zones-not-yet.md)).
10792
10799
 
10793
10800
  What umriss deliberately does not build, and why: [ADR-0032](https://romanhaendler.github.io/umriss-ui/what-umriss-ui-is-not/).
10794
10801
 
@@ -10958,7 +10965,7 @@ Also takes every attribute of `<span>` – without `defaultValue`, `onChange`.
10958
10965
 
10959
10966
  #### Known limits
10960
10967
 
10961
- - No time zones other than the browser's.
10968
+ - umriss shows the reader's time ([ADR-0060](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0060-validation-and-a-layout-editor-are-never-time-zones-not-yet.md)).
10962
10969
 
10963
10970
  What umriss deliberately does not build, and why: [ADR-0032](https://romanhaendler.github.io/umriss-ui/what-umriss-ui-is-not/).
10964
10971
 
@@ -11391,7 +11398,7 @@ the moment of the click.
11391
11398
 
11392
11399
  #### Known limits
11393
11400
 
11394
- - No time zones other than the browser's.
11401
+ - umriss shows the reader's time ([ADR-0060](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0060-validation-and-a-layout-editor-are-never-time-zones-not-yet.md)).
11395
11402
  - No recurring windows.
11396
11403
 
11397
11404
  What umriss deliberately does not build, and why: [ADR-0032](https://romanhaendler.github.io/umriss-ui/what-umriss-ui-is-not/).
@@ -19004,6 +19011,27 @@ otherwise trigger a thousand requests ([ADR-0005](https://github.com/romanhaendl
19004
19011
  function allBranches<K, S extends Key = string>(roots: readonly K[], reader: NodeReader<K, S>): S[];
19005
19012
  ```
19006
19013
 
19014
+ ##### `announce`
19015
+
19016
+ The library's one voice: says `text` in a polite live region, for what
19017
+ happened without a visible change in the place a reader is at - a copy made,
19018
+ a count after a filter. Use it instead of a region of your own: there is one
19019
+ region, so two announcements never speak over each other.
19020
+
19021
+ Says `text` once announcements have rested for `ANNOUNCE_REST`; a later call
19022
+ within the rest replaces an earlier one.
19023
+
19024
+ `at` is the element that speaks. Inside a modal `<dialog>` everything else
19025
+ is inert and a region there is silent, so the region is the dialog's own -
19026
+ the portal target's rule, without the provider's setting: that decides where
19027
+ a surface is laid out, and a region is laid out nowhere.
19028
+
19029
+ ```ts
19030
+ function announce(text: string, at?: Element | null): void;
19031
+ ```
19032
+
19033
+ Used on [VisuallyHidden](#/visuallyhidden) and [CommandPalette](#/commandpalette).
19034
+
19007
19035
  ##### `assess`
19008
19036
 
19009
19037
  What the value is, given the limit set. A pure function of the two.
@@ -20491,6 +20519,9 @@ Everything the library puts out as text.
20491
20519
  | `calendarWeek` *required* | `(week: number, year: number) => string` | — | A group of the week key: "Week 42, 2026". |
20492
20520
  | `entries` *required* | `(count: number, formatted: string) => string` | — | "128 entries" in the pagination bar; the plural belongs to the language. |
20493
20521
  | `selectedCount` *required* | `(count: number, formatted: string) => string` | — | "3 selected" in the pagination bar and the table toolbar. |
20522
+ | `copiedRows` *required* | `(count: number, formatted: string) => string` | — | Said to a screen reader after Ctrl+C copied rows: "3 rows copied". |
20523
+ | `copiedCell` *required* | `string` | — | Said after Ctrl+C copied the active cell of a grid. |
20524
+ | `copyFailed` *required* | `string` | — | Said when the clipboard refused or is not there. |
20494
20525
  | `noEntries` *required* | `string` | — | Empty because there are no rows. |
20495
20526
  | `nothingMatchesFilters` *required* | `string` | — | Empty because search and filters leave nothing - something else. |
20496
20527
  | `treeSearchPlaceholder` *required* | `string` | — | |
@@ -20550,7 +20581,7 @@ Everything the library puts out as text.
20550
20581
  | `columnFrequency` *required* | `string` | — | |
20551
20582
  | `columnAcknowledgement` *required* | `string` | — | The two columns of the alarm model the list does not show, but which do land in the column menu and the CSV header (`alarmColumns`). |
20552
20583
  | `columnAge` *required* | `string` | — | |
20553
- | `availabilitySnoozed` *required* | `(until: string, by: string) => string` | — | The availability of an alarm (ISA-18.2's special states), written out. A snooze names its end and who snoozed it - a snooze is tracked, not anonymous; the time comes from the formats. |
20584
+ | `availabilitySnoozed` *required* | `(until: string, by: string, reason?: string) => string` | — | The availability of an alarm (ISA-18.2's special states), written out. A snooze names its end and who snoozed it - a snooze is tracked, not anonymous; the time comes from the formats. The reason, when the snooze has one, comes last and is optional: a wording of two parameters fits. |
20554
20585
  | `availabilitySnoozedShort` *required* | `string` | — | A snooze as one word - the alarm list's badge; the sentence above stands in its tooltip and in what is spoken. |
20555
20586
  | `availabilitySuppressed` *required* | `string` | — | |
20556
20587
  | `availabilityDisabled` *required* | `string` | — | |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umriss-ui/core",
3
- "version": "0.32.0",
3
+ "version": "0.33.0",
4
4
  "description": "React component library for data-dense dashboards and tools - forms, date pickers, overlays, a tree view and a command palette. Precise, quiet, professional.",
5
5
  "license": "MIT",
6
6
  "author": "Roman Händler",