@umriss-ui/core 0.32.0 → 0.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +52 -6
- package/README.md +15 -11
- package/dist/core.css +1 -1
- package/dist/core.js +3935 -4262
- package/dist/de.d.ts +6 -73
- package/dist/index.d.ts +58 -310
- package/dist/wording/de.js +5 -42
- package/docs/llms-full.md +227 -941
- package/package.json +3 -2
package/docs/llms-full.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @umriss-ui/core 0.
|
|
1
|
+
# @umriss-ui/core 0.34.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
|
|
|
@@ -18,10 +18,10 @@ The engineer on call at Quillmere works an open incident from this console: chec
|
|
|
18
18
|
4. The alerts that belong to the incident stand in the list; acknowledging one records who knew when.
|
|
19
19
|
5. Resolving asks for a cause and a summary, and a toast confirms it without covering the console.
|
|
20
20
|
|
|
21
|
-
Built from: Breadcrumb, Badge, Tag, Stepper, Stat, Tabs, Menu, Modal, FormField, Select, Textarea, Checkbox, Toast, Line,
|
|
21
|
+
Built from: Breadcrumb, Badge, Tag, Stepper, Stat, Tabs, Menu, Modal, FormField, Select, Textarea, Checkbox, Toast, Line, Table.
|
|
22
22
|
|
|
23
23
|
```tsx
|
|
24
|
-
import {
|
|
24
|
+
import { useState } from "react";
|
|
25
25
|
import {
|
|
26
26
|
Badge,
|
|
27
27
|
Breadcrumb,
|
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
} from "@umriss-ui/core";
|
|
58
58
|
import type { LimitSet } from "@umriss-ui/core";
|
|
59
59
|
import { LimitLine, Tooltip, useChart } from "@umriss-ui/charts";
|
|
60
|
-
import {
|
|
60
|
+
import { useTable } from "@umriss-ui/table";
|
|
61
61
|
|
|
62
62
|
/* Data from the operations world, written out here so the example runs on its own. */
|
|
63
63
|
/** A small LCG - the same numbers on every computer. */
|
|
@@ -201,44 +201,31 @@ const INCIDENTS: readonly Incident[] = [
|
|
|
201
201
|
{ id: "INC-1041", title: "Invoices generated twice", service: "billing", severity: "SEV2", opened: at(12, 16, 10), acknowledged: at(12, 16, 18), resolved: at(12, 18, 40), assignee: "priya" },
|
|
202
202
|
];
|
|
203
203
|
|
|
204
|
-
|
|
205
|
-
interface AlertType {
|
|
206
|
-
id: string;
|
|
207
|
-
label: string;
|
|
208
|
-
priority: "high" | "medium" | "low";
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
const ALERT_TYPES: readonly AlertType[] = [
|
|
212
|
-
{ id: "checkout-latency", label: "Checkout · p95 latency above 300 ms", priority: "high" },
|
|
213
|
-
{ id: "checkout-errors", label: "Checkout · error rate above 2\u00a0%", priority: "high" },
|
|
214
|
-
{ id: "webhooks-queue", label: "Webhooks · queue older than 5 min", priority: "medium" },
|
|
215
|
-
{ id: "search-latency", label: "Search · p95 latency above 250 ms", priority: "medium" },
|
|
216
|
-
{ id: "images-disk", label: "Image service · disk 85 % full", priority: "low" },
|
|
217
|
-
{ id: "reports-job", label: "Reporting · nightly job late", priority: "low" },
|
|
218
|
-
];
|
|
204
|
+
type Priority = "high" | "medium" | "low";
|
|
219
205
|
|
|
220
|
-
|
|
221
|
-
type Alert = {
|
|
206
|
+
interface Alert {
|
|
222
207
|
id: string;
|
|
223
|
-
type: string;
|
|
224
|
-
lifecycle: "active-unacknowledged" | "active-acknowledged" | "resolved-unacknowledged" | "resolved-acknowledged";
|
|
225
208
|
raised: number;
|
|
226
|
-
|
|
209
|
+
priority: Priority;
|
|
210
|
+
message: string;
|
|
211
|
+
state: "Active" | "Resolved";
|
|
227
212
|
acknowledgedAt?: number;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
const TONE = { high: "danger", medium: "warning", low: "neutral" } as const;
|
|
216
|
+
const RANK = { high: 0, medium: 1, low: 2 } as const;
|
|
217
|
+
|
|
218
|
+
/** Worst first: by priority, then what nobody has acknowledged, then the newest. */
|
|
219
|
+
const WORST_FIRST = [
|
|
220
|
+
{ column: "priority", direction: "asc" },
|
|
221
|
+
{ column: "acknowledged", direction: "asc" },
|
|
222
|
+
{ column: "raised", direction: "desc" },
|
|
223
|
+
] as const;
|
|
232
224
|
|
|
233
225
|
/** The alerts as they stand at 10:30. */
|
|
234
226
|
const ALERTS: readonly Alert[] = [
|
|
235
|
-
{ id: "a-1",
|
|
236
|
-
{ id: "a-2",
|
|
237
|
-
{ id: "a-3", type: "webhooks-queue", lifecycle: "active-acknowledged", raised: at(17, 7, 12), acknowledgedAt: at(17, 8, 2) },
|
|
238
|
-
{ id: "a-4", type: "search-latency", lifecycle: "active-unacknowledged", raised: at(17, 10, 24) },
|
|
239
|
-
{ id: "a-5", type: "search-latency", lifecycle: "resolved-acknowledged", raised: at(17, 8, 5), resolved: at(17, 8, 9), acknowledgedAt: at(17, 8, 6) },
|
|
240
|
-
{ id: "a-6", type: "images-disk", lifecycle: "active-unacknowledged", raised: at(17, 6, 0), availability: "snoozed", snooze: { until: at(17, 14), by: "Tomasz Nowak" } },
|
|
241
|
-
{ id: "a-7", type: "reports-job", lifecycle: "active-unacknowledged", raised: at(17, 4, 30), availability: "disabled" },
|
|
227
|
+
{ id: "a-1", raised: at(17, 9, 41), priority: "high", message: "Checkout · p95 latency above 300 ms", state: "Active", acknowledgedAt: at(17, 9, 46) },
|
|
228
|
+
{ id: "a-2", raised: at(17, 9, 43), priority: "high", message: "Checkout · error rate above 2\u00a0%", state: "Resolved" },
|
|
242
229
|
];
|
|
243
230
|
|
|
244
231
|
const INCIDENT = INCIDENTS.find((one) => one.id === "INC-1048")!;
|
|
@@ -274,31 +261,22 @@ const STEPS = [
|
|
|
274
261
|
{ label: "Resolved" },
|
|
275
262
|
];
|
|
276
263
|
|
|
277
|
-
/* The alerts of the services this incident touches. */
|
|
278
|
-
const OWN = new Set(["checkout-latency", "checkout-errors"]);
|
|
279
|
-
|
|
280
264
|
function Content() {
|
|
281
265
|
const { toast } = useToast();
|
|
282
266
|
const { Chart, XAxis, YAxis, Line } = useChart(TODAY);
|
|
283
|
-
const [alerts, setAlerts] = useState<readonly Alert[]>(
|
|
267
|
+
const [alerts, setAlerts] = useState<readonly Alert[]>(ALERTS);
|
|
284
268
|
const [resolved, setResolved] = useState<number | null>(null);
|
|
285
269
|
const [resolving, setResolving] = useState(false);
|
|
286
270
|
const [cause, setCause] = useState("");
|
|
287
271
|
const [summary, setSummary] = useState("");
|
|
288
272
|
const [tried, setTried] = useState(false);
|
|
289
273
|
|
|
290
|
-
const
|
|
291
|
-
const
|
|
292
|
-
|
|
293
|
-
const acknowledge = (
|
|
294
|
-
setAlerts((before) =>
|
|
295
|
-
|
|
296
|
-
ids.includes(one.id) && one.lifecycle.endsWith("-unacknowledged")
|
|
297
|
-
? { ...one, lifecycle: one.lifecycle.replace("-unacknowledged", "-acknowledged") as Alert["lifecycle"], acknowledgedAt: NOW }
|
|
298
|
-
: one,
|
|
299
|
-
),
|
|
300
|
-
);
|
|
301
|
-
selection.clear();
|
|
274
|
+
const t = useTable(alerts, { rowKey: (a) => a.id, defaultSort: WORST_FIRST });
|
|
275
|
+
const { Table, Column } = t;
|
|
276
|
+
|
|
277
|
+
const acknowledge = () => {
|
|
278
|
+
setAlerts((before) => before.map((one) => (t.selection.selected.has(one.id) ? { ...one, acknowledgedAt: one.acknowledgedAt ?? NOW } : one)));
|
|
279
|
+
t.selection.clear();
|
|
302
280
|
};
|
|
303
281
|
|
|
304
282
|
const resolve = () => {
|
|
@@ -406,7 +384,26 @@ function Content() {
|
|
|
406
384
|
</TabList>
|
|
407
385
|
<TabPanel value="alerts">
|
|
408
386
|
<div data-callout="4">
|
|
409
|
-
<
|
|
387
|
+
<Stack gap={2}>
|
|
388
|
+
<Table selectable ariaLabel="Alerts of the incident">
|
|
389
|
+
<Column value="raised" label="Raised">
|
|
390
|
+
{(raised) => time(raised)}
|
|
391
|
+
</Column>
|
|
392
|
+
<Column value="priority" label="Priority" sortValue={(priority) => RANK[priority]}>
|
|
393
|
+
{(priority) => <Badge tone={TONE[priority]}>{priority}</Badge>}
|
|
394
|
+
</Column>
|
|
395
|
+
<Column value="message" label="Alert" rowHeader />
|
|
396
|
+
<Column value="state" label="State" />
|
|
397
|
+
<Column id="acknowledged" label="Acknowledged" value={(a) => a.acknowledgedAt ?? 0}>
|
|
398
|
+
{(_, a) => (a.acknowledgedAt === undefined ? "No" : time(a.acknowledgedAt))}
|
|
399
|
+
</Column>
|
|
400
|
+
</Table>
|
|
401
|
+
<div>
|
|
402
|
+
<Button size="sm" disabled={t.selection.selected.size === 0} onClick={acknowledge}>
|
|
403
|
+
Acknowledge
|
|
404
|
+
</Button>
|
|
405
|
+
</div>
|
|
406
|
+
</Stack>
|
|
410
407
|
</div>
|
|
411
408
|
</TabPanel>
|
|
412
409
|
<TabPanel value="earlier">
|
|
@@ -1605,18 +1602,19 @@ export default function SetUpATeam() {
|
|
|
1605
1602
|
A line lead at Brenholt Tile Works keeps this control room open through the shift to see the kiln, its alarms, the plan and the OEE at once.
|
|
1606
1603
|
|
|
1607
1604
|
1. The shift runs a minute per second; Pause stops it, and under reduced motion it starts stopped. The skip links reach each region by keyboard.
|
|
1608
|
-
2. The tile reads zone 3 against its limits and says the verdict in a word. The minute the kiln crosses its alarm limit is the same minute in the trend and in the alarm
|
|
1605
|
+
2. The tile reads zone 3 against its limits and says the verdict in a word. The minute the kiln crosses its alarm limit is the same minute in the trend and in the alarm table.
|
|
1609
1606
|
3. The trend draws the limits the tile reads, and its table view holds every reading for a screen reader.
|
|
1610
|
-
4. The alarm the kiln raised stands in the
|
|
1607
|
+
4. The alarm the kiln raised stands in the table; acknowledging it records who knew when and changes nothing else on the screen.
|
|
1611
1608
|
5. Choosing a batch in the plan and opening its details shows what the kiln has fired of it so far, in a drawer.
|
|
1612
1609
|
6. The OEE shows its working, down to the counts it is made of, so the scrap from the excursion can be traced back.
|
|
1613
1610
|
|
|
1614
|
-
Built from: Stat, Card, ProgressBar, Drawer, Line, ControlChart,
|
|
1611
|
+
Built from: Stat, Card, ProgressBar, Drawer, Line, ControlChart, Table, Schedule, Calculation.
|
|
1615
1612
|
|
|
1616
1613
|
```tsx
|
|
1617
1614
|
import { useEffect, useMemo, useState } from "react";
|
|
1618
1615
|
import type { MouseEvent, ReactNode } from "react";
|
|
1619
1616
|
import {
|
|
1617
|
+
Badge,
|
|
1620
1618
|
Button,
|
|
1621
1619
|
Card,
|
|
1622
1620
|
CardBody,
|
|
@@ -1634,29 +1632,28 @@ import {
|
|
|
1634
1632
|
} from "@umriss-ui/core";
|
|
1635
1633
|
import type { FreshnessAges, LimitSet } from "@umriss-ui/core";
|
|
1636
1634
|
import { ControlChart, DataTable, LimitBand, LimitLine, Tooltip, useChart } from "@umriss-ui/charts";
|
|
1637
|
-
import {
|
|
1635
|
+
import { useTable } from "@umriss-ui/table";
|
|
1638
1636
|
import { useSchedule } from "@umriss-ui/schedule";
|
|
1639
1637
|
import type { Subtask, Task } from "@umriss-ui/schedule";
|
|
1640
1638
|
import { Calculation, Difference, Given, Product, Quotient, Ref } from "@umriss-ui/calculation";
|
|
1641
1639
|
|
|
1642
1640
|
/* Data from the plant world, written out here so the example runs on its own. */
|
|
1643
1641
|
|
|
1644
|
-
/** An alarm's dead band
|
|
1642
|
+
/** An alarm's dead band. */
|
|
1645
1643
|
interface ReturnBand {
|
|
1646
1644
|
direction: "upper" | "lower";
|
|
1647
1645
|
limit: number;
|
|
1648
1646
|
returnTo: number;
|
|
1649
1647
|
}
|
|
1650
1648
|
|
|
1651
|
-
/** A kind of alarm
|
|
1649
|
+
/** A kind of alarm. */
|
|
1652
1650
|
interface AlarmType {
|
|
1653
1651
|
id: string;
|
|
1654
1652
|
label: string;
|
|
1655
1653
|
priority: "high" | "medium" | "low";
|
|
1656
|
-
returnBand?: ReturnBand;
|
|
1657
1654
|
}
|
|
1658
1655
|
|
|
1659
|
-
/** One alarm
|
|
1656
|
+
/** One alarm. */
|
|
1660
1657
|
interface Alarm {
|
|
1661
1658
|
id: string;
|
|
1662
1659
|
type: string;
|
|
@@ -1698,7 +1695,7 @@ const KILN_LIMITS: LimitSet = {
|
|
|
1698
1695
|
the ideal cycle time of the OEE's performance. */
|
|
1699
1696
|
const IDEAL_CYCLE_MINUTES = 0.25;
|
|
1700
1697
|
|
|
1701
|
-
/** The kiln alarm's condition and its dead band
|
|
1698
|
+
/** The kiln alarm's condition and its dead band. */
|
|
1702
1699
|
const KILN_RETURN: ReturnBand = { direction: "upper", limit: KILN.alarm, returnTo: KILN.returnTo };
|
|
1703
1700
|
|
|
1704
1701
|
/** What the four measuring points of the line can report. */
|
|
@@ -1707,9 +1704,6 @@ const ALARM_TYPES: readonly AlarmType[] = [
|
|
|
1707
1704
|
id: "kiln-high",
|
|
1708
1705
|
label: "Kiln K1 · zone 3 above alarm limit",
|
|
1709
1706
|
priority: "high",
|
|
1710
|
-
/* The dead band: back below `returnTo`, not merely below the limit, or a
|
|
1711
|
-
reading riding on the limit would raise an alarm a minute. */
|
|
1712
|
-
returnBand: KILN_RETURN,
|
|
1713
1707
|
},
|
|
1714
1708
|
{ id: "exit-silent", label: "Kiln K1 · exit pyrometer sends nothing", priority: "medium" },
|
|
1715
1709
|
{ id: "belt-empty", label: "Kiln K1 · belt empty", priority: "medium" },
|
|
@@ -1871,8 +1865,9 @@ function spans(
|
|
|
1871
1865
|
* The alarms of the shift as they stand at the minute: raised, resolved - and
|
|
1872
1866
|
* acknowledged where the operator did, at the instant he did.
|
|
1873
1867
|
*
|
|
1874
|
-
* `start` is the instant the shift began; the alarms carry instants
|
|
1875
|
-
*
|
|
1868
|
+
* `start` is the instant the shift began; the alarms carry instants.
|
|
1869
|
+
* The dead band applies: an alarm clears only below `returnTo`, not merely
|
|
1870
|
+
* below the limit, or a reading riding on the limit would raise one a minute.
|
|
1876
1871
|
*/
|
|
1877
1872
|
function alarmsAt(
|
|
1878
1873
|
p: Plant,
|
|
@@ -2111,6 +2106,17 @@ function skipTo(event: MouseEvent<HTMLAnchorElement>, id: string) {
|
|
|
2111
2106
|
region?.scrollIntoView({ block: "start" });
|
|
2112
2107
|
}
|
|
2113
2108
|
|
|
2109
|
+
const clock = (t: number) => new Date(t).toLocaleTimeString("en-GB", { hour: "2-digit", minute: "2-digit" });
|
|
2110
|
+
|
|
2111
|
+
const RANK = { high: 0, medium: 1, low: 2 } as const;
|
|
2112
|
+
|
|
2113
|
+
/** Worst first: by priority, then what nobody has acknowledged, then the newest. */
|
|
2114
|
+
const WORST_FIRST = [
|
|
2115
|
+
{ column: "priority", direction: "asc" },
|
|
2116
|
+
{ column: "acknowledged", direction: "asc" },
|
|
2117
|
+
{ column: "raised", direction: "desc" },
|
|
2118
|
+
] as const;
|
|
2119
|
+
|
|
2114
2120
|
export default function ControlRoom() {
|
|
2115
2121
|
const { Schedule, Lane, Subtasks } = useSchedule({ initialView: { domain: PLAN_DOMAIN } });
|
|
2116
2122
|
const { minute, wall, running, setRunning } = usePlantMinute();
|
|
@@ -2118,7 +2124,6 @@ export default function ControlRoom() {
|
|
|
2118
2124
|
const reading = SHIFT.readings[minute]!;
|
|
2119
2125
|
|
|
2120
2126
|
const [acknowledged, setAcknowledged] = useState<ReadonlyMap<string, number>>(new Map());
|
|
2121
|
-
const [hiddenOnly, setHiddenOnly] = useState(false);
|
|
2122
2127
|
const [batch, setBatch] = useState<string | null>(() => inKiln(FROM)?.id ?? null);
|
|
2123
2128
|
const [details, setDetails] = useState(false);
|
|
2124
2129
|
|
|
@@ -2134,13 +2139,22 @@ export default function ControlRoom() {
|
|
|
2134
2139
|
const tileLength = useChart(measured);
|
|
2135
2140
|
const alarms = useMemo(
|
|
2136
2141
|
() =>
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2142
|
+
alarmsAt(SHIFT, minute, START, acknowledged).map((one) => {
|
|
2143
|
+
const type = ALARM_TYPES.find((kind) => kind.id === one.type)!;
|
|
2144
|
+
const ended = one.resolved === undefined ? "Active" : "Resolved";
|
|
2145
|
+
return {
|
|
2146
|
+
id: one.id,
|
|
2147
|
+
raised: one.raised,
|
|
2148
|
+
priority: type.priority,
|
|
2149
|
+
message: type.label,
|
|
2150
|
+
state: one.availability === "suppressed" || one.availability === "disabled" ? `${ended}, ${one.availability}` : ended,
|
|
2151
|
+
acknowledgedAt: one.acknowledgedAt,
|
|
2152
|
+
};
|
|
2153
|
+
}),
|
|
2154
|
+
[minute, acknowledged],
|
|
2155
|
+
);
|
|
2156
|
+
const t = useTable(alarms, { rowKey: (a) => a.id, defaultSort: WORST_FIRST });
|
|
2157
|
+
const { Table, Column } = t;
|
|
2144
2158
|
|
|
2145
2159
|
const count = countAt(SHIFT, minute);
|
|
2146
2160
|
const oee = (IDEAL_CYCLE_MINUTES * count.good) / count.planned;
|
|
@@ -2226,17 +2240,33 @@ export default function ControlRoom() {
|
|
|
2226
2240
|
</Region>
|
|
2227
2241
|
|
|
2228
2242
|
<Region id="room-alarms" title="Alarms" quiet callout="4">
|
|
2229
|
-
<
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2243
|
+
<Stack gap={2}>
|
|
2244
|
+
<Table selectable ariaLabel="Alarms">
|
|
2245
|
+
<Column value="raised" label="Raised">
|
|
2246
|
+
{(raised) => clock(raised)}
|
|
2247
|
+
</Column>
|
|
2248
|
+
<Column value="priority" label="Priority" sortValue={(priority) => RANK[priority]}>
|
|
2249
|
+
{(priority) => <Badge tone={priority === "high" ? "danger" : priority === "medium" ? "warning" : "neutral"}>{priority}</Badge>}
|
|
2250
|
+
</Column>
|
|
2251
|
+
<Column value="message" label="Alarm" rowHeader />
|
|
2252
|
+
<Column value="state" label="State" />
|
|
2253
|
+
<Column id="acknowledged" label="Acknowledged" value={(a) => a.acknowledgedAt ?? 0}>
|
|
2254
|
+
{(_, a) => (a.acknowledgedAt === undefined ? "No" : clock(a.acknowledgedAt))}
|
|
2255
|
+
</Column>
|
|
2256
|
+
</Table>
|
|
2257
|
+
<div>
|
|
2258
|
+
<Button
|
|
2259
|
+
size="sm"
|
|
2260
|
+
disabled={t.selection.selected.size === 0}
|
|
2261
|
+
onClick={() => {
|
|
2262
|
+
setAcknowledged((before) => new Map([...before, ...[...t.selection.selected].map((id) => [String(id), now] as const)]));
|
|
2263
|
+
t.selection.clear();
|
|
2264
|
+
}}
|
|
2265
|
+
>
|
|
2266
|
+
Acknowledge
|
|
2267
|
+
</Button>
|
|
2268
|
+
</div>
|
|
2269
|
+
</Stack>
|
|
2240
2270
|
</Region>
|
|
2241
2271
|
|
|
2242
2272
|
<Region
|
|
@@ -2548,7 +2578,7 @@ The keys of [Button](#/button/keyboard-button), [Menu](#/menu/keyboard-menu) and
|
|
|
2548
2578
|
|
|
2549
2579
|
| Prop | Type | Default | Description |
|
|
2550
2580
|
|---|---|---|---|
|
|
2551
|
-
| `density` | [`Density`](#type-Density)<br>`"comfortable" \| "compact"` | none - a component keeps its own density | The default for the `density` of every component that reads it with `useDensityFor` - in `@umriss-ui/table` `Table
|
|
2581
|
+
| `density` | [`Density`](#type-Density)<br>`"comfortable" \| "compact"` | none - a component keeps its own density | The default for the `density` of every component that reads it with `useDensityFor` - in `@umriss-ui/table` `Table`, in `@umriss-ui/calculation` `Calculation` ("comfortable" means "regular").<br>Shown in: [Set up an application](#/umrissprovider/everything-at-once) |
|
|
2552
2582
|
| `portalTarget` | [`PortalTarget`](#type-PortalTarget) | `null` | Where overlays portal to. A function is evaluated on every opening - a target that only enters the tree later cannot be given otherwise; `null` means "as before". The callers' own rules take precedence: the popover seam portals into the nearest `<dialog>` ancestor, because a portal at the body does not reach the top layer.<br>Shown in: [Open overlays inside a full-screen panel](#/umrissprovider/portal-target), [Set up an application](#/umrissprovider/everything-at-once) |
|
|
2553
2583
|
| `toast` | [`ToastConfig`](#type-ToastConfig) | — | The setting for toasts: the display duration where the individual toast names none, where they stand, and how many stand at once.<br>Shown in: [At the root](#/umrissprovider/at-the-root), [Set up an application](#/umrissprovider/everything-at-once), [Where they stand (Toast)](#/toast/where-they-stand) and 1 more |
|
|
2554
2584
|
| `language` | [`LanguageOptions`](#/language/type-LanguageOptions) | none - the surrounding language holds, English at the root | Formats and wording, entry by entry - see [Language](#/language).<br>Shown in: [Set up an application](#/umrissprovider/everything-at-once) |
|
|
@@ -2631,7 +2661,6 @@ import { Badge, Button, Card, CardBody, CardHeader, Checkbox, Link, Stack, Switc
|
|
|
2631
2661
|
:root {
|
|
2632
2662
|
--u-color-accent: light-dark(#4338ca, #818cf8);
|
|
2633
2663
|
--u-color-accent-hover: light-dark(#3730a3, #a5b4fc);
|
|
2634
|
-
--u-color-accent-active: light-dark(#312e81, #6366f1);
|
|
2635
2664
|
--u-color-accent-subtle: light-dark(#eef0fb, #1e1f3d);
|
|
2636
2665
|
--u-color-accent-subtle-pressed: light-dark(#dfe2f7, #282a52);
|
|
2637
2666
|
--u-color-accent-text: light-dark(#4338ca, #a5b4fc);
|
|
@@ -2643,7 +2672,6 @@ import { Badge, Button, Card, CardBody, CardHeader, Checkbox, Link, Stack, Switc
|
|
|
2643
2672
|
const INDIGO = {
|
|
2644
2673
|
"--u-color-accent": "light-dark(#4338ca, #818cf8)",
|
|
2645
2674
|
"--u-color-accent-hover": "light-dark(#3730a3, #a5b4fc)",
|
|
2646
|
-
"--u-color-accent-active": "light-dark(#312e81, #6366f1)",
|
|
2647
2675
|
"--u-color-accent-subtle": "light-dark(#eef0fb, #1e1f3d)",
|
|
2648
2676
|
"--u-color-accent-subtle-pressed": "light-dark(#dfe2f7, #282a52)",
|
|
2649
2677
|
"--u-color-accent-text": "light-dark(#4338ca, #a5b4fc)",
|
|
@@ -2770,7 +2798,7 @@ Every token the components draw with, grouped as the stylesheet groups them. A s
|
|
|
2770
2798
|
| `--u-color-bg` | `#fafafa` | `#0f0f10` | — |
|
|
2771
2799
|
| `--u-color-surface` | `#ffffff` | `#161618` | — |
|
|
2772
2800
|
| `--u-color-surface-sunken` | `#f4f4f5` | `#1e1e21` | — |
|
|
2773
|
-
| `--u-color-surface-pressed` | `#e9e9eb` | `#28282c` | The pressed step of a quiet key: what sinks to the sunken surface under the pointer sinks once more while it is pressed (the interaction-state canon
|
|
2801
|
+
| `--u-color-surface-pressed` | `#e9e9eb` | `#28282c` | The pressed step of a quiet key: what sinks to the sunken surface under the pointer sinks once more while it is pressed (the interaction-state canon). The three `-pressed` surfaces exist because a hover for each ground needs something stronger. |
|
|
2774
2802
|
| `--u-color-text` | `#171717` | `#ededed` | — |
|
|
2775
2803
|
| `--u-color-text-secondary` | `#565656` | `#a5a5ab` | — |
|
|
2776
2804
|
| `--u-color-text-muted` | `#8b8b8b` | `#77777e` | — |
|
|
@@ -2784,7 +2812,7 @@ Every token the components draw with, grouped as the stylesheet groups them. A s
|
|
|
2784
2812
|
| `--u-edge` | `0 0 0 1px var(`[--u-edge-color](#token-u-edge-color)`)` | same | — |
|
|
2785
2813
|
| `--u-edge-strong` | `0 0 0 1px var(`[--u-edge-color-strong](#token-u-edge-color-strong)`)` | same | — |
|
|
2786
2814
|
| `--u-hairline` | `rgba(23, 23, 23, 0.06)` | `rgba(255, 255, 255, 0.07)` | inner dividing lines |
|
|
2787
|
-
| `--u-color-edge-hover` | `color-mix(in srgb, var(`[--u-color-text](#token-u-color-text)`) 30%, transparent)` | same | The edge of a field under the pointer.
|
|
2815
|
+
| `--u-color-edge-hover` | `color-mix(in srgb, var(`[--u-color-text](#token-u-color-text)`) 30%, transparent)` | same | The edge of a field under the pointer. |
|
|
2788
2816
|
| `--u-hairline-strong` | `rgba(23, 23, 23, 0.12)` | `rgba(255, 255, 255, 0.14)` | e.g. under table heads |
|
|
2789
2817
|
|
|
2790
2818
|
##### Ink as interaction (the primary button)
|
|
@@ -2802,12 +2830,11 @@ Every token the components draw with, grouped as the stylesheet groups them. A s
|
|
|
2802
2830
|
|---|---|---|---|
|
|
2803
2831
|
| `--u-color-accent` | `#0e7d72` | `#17a292` | — |
|
|
2804
2832
|
| `--u-color-accent-hover` | `#0a685f` | `#1cb5a3` | — |
|
|
2805
|
-
| `--u-color-accent-active` | `#085a52` | `#128d7f` | — |
|
|
2806
2833
|
| `--u-color-accent-subtle` | `#e9f4f2` | `#142e2b` | — |
|
|
2807
2834
|
| `--u-color-accent-subtle-pressed` | `#d5e9e6` | `#1b3d39` | — |
|
|
2808
2835
|
| `--u-color-accent-text` | `#0b6a61` | `#4cc4b5` | — |
|
|
2809
2836
|
| `--u-color-on-accent` | `#ffffff` | `#072522` | — |
|
|
2810
|
-
| `--u-color-on-danger` | `#ffffff` | `#2b0f0d` | Type on the danger surface
|
|
2837
|
+
| `--u-color-on-danger` | `#ffffff` | `#2b0f0d` | Type on the danger surface, a token so that a contrast check sees it. Dark: White measures only 3.68:1 on the lighter danger surface. The polarity turns as it does for the accent: dark type on a light ground. |
|
|
2811
2838
|
|
|
2812
2839
|
##### Semantics (muted)
|
|
2813
2840
|
|
|
@@ -2815,7 +2842,7 @@ Every token the components draw with, grouped as the stylesheet groups them. A s
|
|
|
2815
2842
|
|---|---|---|---|
|
|
2816
2843
|
| `--u-color-success` | `#217a4b` | `#4fae7c` | — |
|
|
2817
2844
|
| `--u-color-success-subtle` | `#e8f2ec` | `#16241d` | — |
|
|
2818
|
-
| `--u-color-warning` | `#8a5c00` | `#d0a24d` | Darkened from #9a6700: on its own pale surface
|
|
2845
|
+
| `--u-color-warning` | `#8a5c00` | `#d0a24d` | Darkened from #9a6700, which reached only 4.24:1 on its own pale surface and so missed the 4.5:1 for normal text; this reaches 4.97:1. |
|
|
2819
2846
|
| `--u-color-warning-subtle` | `#f7efdb` | `#2b2415` | — |
|
|
2820
2847
|
| `--u-color-danger` | `#b13636` | `#d0655c` | — |
|
|
2821
2848
|
| `--u-color-danger-hover` | `#9a2c2c` | `#da7a72` | — |
|
|
@@ -2826,7 +2853,7 @@ Every token the components draw with, grouped as the stylesheet groups them. A s
|
|
|
2826
2853
|
|
|
2827
2854
|
##### Focus: a crisp accent edge, two pixels, no glow
|
|
2828
2855
|
|
|
2829
|
-
One look for every component.
|
|
2856
|
+
One look for every component. A soft glow would read as a second, shadowy border. On a field the ring lies where its edge lies, so the edge seems to grow. `-danger` for an invalid field, which keeps its colour.
|
|
2830
2857
|
|
|
2831
2858
|
| Token | Light | Dark | Description |
|
|
2832
2859
|
|---|---|---|---|
|
|
@@ -2845,7 +2872,7 @@ One look for every component. It was a soft 4px glow at 20 %, and on fields an a
|
|
|
2845
2872
|
| `--u-text-lg` | `1rem` | same | — |
|
|
2846
2873
|
| `--u-text-xl` | `1.1875rem` | same | — |
|
|
2847
2874
|
| `--u-text-2xl` | `1.5rem` | same | — |
|
|
2848
|
-
| `--u-text-mono` | `0.75rem` | same | Figures in Geist Mono inside a control or a cell, beside --u-text-sm set in Sans. The mono cut runs wider and taller, so one step down reads as the same size. It
|
|
2875
|
+
| `--u-text-mono` | `0.75rem` | same | Figures in Geist Mono inside a control or a cell, beside --u-text-sm set in Sans. The mono cut runs wider and taller, so one step down reads as the same size. It serves as a role: the date picker's value, days and time fields, the numeric field and input, the table's numeric cells. |
|
|
2849
2876
|
| `--u-leading-none` | `1` | same | A box as tall as its type: a badge, a tag, a count, a glyph. The height comes from the control or the padding, and the line adds no leading. |
|
|
2850
2877
|
| `--u-leading-tight` | `1.3` | same | — |
|
|
2851
2878
|
| `--u-leading-normal` | `1.5` | same | — |
|
|
@@ -2882,24 +2909,7 @@ One look for every component. It was a soft 4px glow at 20 %, and on fields an a
|
|
|
2882
2909
|
| `--u-icon-size-sm` | `12px` | same | — |
|
|
2883
2910
|
| `--u-button-padding` | `10px` | same | The room left and right of a button's label, one step per control height. What stands beside a quiet button and has to align with its word hangs out by exactly this much (the date pickers' foot, the MultiSelect's quick keys) - so they read it here instead of repeating the number. |
|
|
2884
2911
|
| `--u-button-padding-sm` | `6px` | same | — |
|
|
2885
|
-
|
|
2886
|
-
##### Dock (floating-dock)
|
|
2887
|
-
|
|
2888
|
-
A dock's measurements stand here and not only in the module, because the component READS THEM BACK at runtime: whether a resting place fits is a calculation over exactly these values (Dock/place.ts), and a second copy of them in JavaScript would be one that stops being true at some point. Whoever changes them here also changes how many tools it takes for a side edge to be refused - and that is as it should be.
|
|
2889
|
-
|
|
2890
|
-
The travel of the grip is the knob to turn when the gesture feels lifeless: [ADR-0013](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0013-a-dock-snaps-it-does-not-follow.md) lets the grip follow the pointer and not the dock, and if that looks broken rather than like resistance, this value grows - the dock does not become movable.
|
|
2891
|
-
|
|
2892
|
-
| Token | Light | Dark | Description |
|
|
2893
|
-
|---|---|---|---|
|
|
2894
|
-
| `--u-dock-tool` | `30px` | same | edge length of one tool |
|
|
2895
|
-
| `--u-dock-grip` | `18px` | same | extent of the grip along the strip |
|
|
2896
|
-
| `--u-dock-gap` | `2px` | same | gap between two tools |
|
|
2897
|
-
| `--u-dock-padding` | `5px` | same | padding at the ends |
|
|
2898
|
-
| `--u-dock-margin` | `16px` | same | air between strip and host edge |
|
|
2899
|
-
| `--u-dock-grip-travel` | `6px` | same | how far the grip may follow the pointer |
|
|
2900
|
-
| `--u-dock-refusal-surface` | `color-mix(in srgb, var(`[--u-color-material-fallback](#token-u-color-material-fallback)`) 55%, transparent)` | same | The refusal: the outline the dock would have at a place it does not fit. The same material, half as present - no warning colour, because nothing has gone wrong here. The duration deliberately does NOT stand in the `--u-duration-*` scale and therefore does not fall to zero under `prefers-reduced-motion`: it measures how long a statement stays readable, not how long a movement lasts. Whoever switches motion off does not mean to switch a refusal off. It is needed only for the keyboard - with the pointer the refusal ends as soon as it leaves the zone. |
|
|
2901
|
-
| `--u-dock-refusal-duration` | `1400ms` | same | — |
|
|
2902
|
-
| `--u-drawer-width` | `400px` | same | The width of a drawer (core-foundations 03). A token rather than a size prop: a detail beside a process picture wants one width across an application, and one drawer that needs another sets it in its `style`. |
|
|
2912
|
+
| `--u-drawer-width` | `400px` | same | The width of a drawer A token rather than a size prop: a detail beside a process picture wants one width across an application, and one drawer that needs another sets it in its `style`. |
|
|
2903
2913
|
|
|
2904
2914
|
##### Toast (toast-inset-tokens)
|
|
2905
2915
|
|
|
@@ -2918,7 +2928,7 @@ Card: edge, contact with the ground, soft depth. Overlay: edge, near shadow, dep
|
|
|
2918
2928
|
|---|---|---|---|
|
|
2919
2929
|
| `--u-shadow-card` | `var(`[--u-edge](#token-u-edge)`), 0 1px 2px rgba(23, 23, 23, 0.04), 0 8px 24px -12px rgba(23, 23, 23, 0.14)` | `var(`[--u-edge](#token-u-edge)`), 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px -12px rgba(0, 0, 0, 0.6)` | — |
|
|
2920
2930
|
| `--u-shadow-overlay` | `var(`[--u-edge](#token-u-edge)`), 0 4px 8px rgba(23, 23, 23, 0.06), 0 24px 48px -16px rgba(23, 23, 23, 0.24)` | `var(`[--u-edge](#token-u-edge)`), 0 4px 8px rgba(0, 0, 0, 0.4), 0 24px 48px -16px rgba(0, 0, 0, 0.7)` | — |
|
|
2921
|
-
| `--u-shadow-sticky` | `rgba(23, 23, 23, 0.09)` | `rgba(0, 0, 0, 0.5)` | The shadow a sticking part casts on what scrolls under it - a pinned column block, a stuck group header - as the colour its gradient starts from. Dark is black at a higher opacity: the text colour at 9 % read as a glow on the dark ground
|
|
2931
|
+
| `--u-shadow-sticky` | `rgba(23, 23, 23, 0.09)` | `rgba(0, 0, 0, 0.5)` | The shadow a sticking part casts on what scrolls under it - a pinned column block, a stuck group header - as the colour its gradient starts from. Dark is black at a higher opacity: the text colour at 9 % read as a glow on the dark ground. |
|
|
2922
2932
|
|
|
2923
2933
|
##### Translucent material and scrim ([ADR-0012](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0012-a-translucent-material-needs-a-floor.md))
|
|
2924
2934
|
|
|
@@ -2928,11 +2938,11 @@ The alpha value is a FLOOR and not a matter of taste: the opaque colour carries
|
|
|
2928
2938
|
|
|
2929
2939
|
Three tokens, because there are three jobs: - `-fallback` is the opaque colour underneath. It is really painted where `backdrop-filter` is missing or switched off, and it is what the contrast test checks (see tests-unit/contrast.test.ts). - `--u-color-material` is the same colour with the floor alpha. - `--u-material-blur` softens what shows through. Decoration under the same rule: the blur does not make the type legible.
|
|
2930
2940
|
|
|
2931
|
-
The scrim dims the page behind an overlay.
|
|
2941
|
+
The scrim dims the page behind an overlay. Dark gets its own values, chosen by eye: inverting a light surface lands wrong, because light type over a dark blur tolerates far less transparency than the other way round.
|
|
2932
2942
|
|
|
2933
2943
|
| Token | Light | Dark | Description |
|
|
2934
2944
|
|---|---|---|---|
|
|
2935
|
-
| `--u-color-material-fallback` | `#fdfdfe` | `#1f1f23` | The numbers were looked at, not calculated.
|
|
2945
|
+
| `--u-color-material-fallback` | `#fdfdfe` | `#1f1f23` | The numbers were looked at, not calculated. In the light theme the scrim must dim less and the panel cover more: a scrim that presses the whole page to a middling grey leaves the panel a grey slab within it, legible but looking like a fault. The distance between the two carries the step. The dark theme needs no such correction: there the lightness already separates them. Dark: Chosen by eye, not derived from the light theme: the alpha floor lies higher here, because light type over a dark blur tolerates markedly less transparency. |
|
|
2936
2946
|
| `--u-color-material` | `rgba(253, 253, 254, 0.86)` | `rgba(31, 31, 35, 0.82)` | — |
|
|
2937
2947
|
| `--u-material-blur` | `24px` | same | — |
|
|
2938
2948
|
| `--u-color-scrim` | `rgba(23, 23, 23, 0.30)` | `rgba(0, 0, 0, 0.60)` | — |
|
|
@@ -2960,7 +2970,7 @@ Continuous process. A spinner or a shimmer has no start and no end; it runs stea
|
|
|
2960
2970
|
| `--u-duration-draw` | `320ms` | same | a stroke drawn slowly enough to watch: the tick **0ms under reduced motion.** |
|
|
2961
2971
|
| `--u-delay-draw` | `60ms` | same | the box fills first, then the tick is drawn **0ms under reduced motion.** |
|
|
2962
2972
|
| `--u-delay-stale` | `200ms` | same | content being reloaded dims only after this: a quick answer never flickers |
|
|
2963
|
-
| `--u-duration-exit-fast` | `100ms` | same | Exits.
|
|
2973
|
+
| `--u-duration-exit-fast` | `100ms` | same | Exits. The stylesheet drawing the movement and the code waiting for its end read the same tokens, so the two cannot drift apart. a panel or a tooltip goes **0ms under reduced motion.** |
|
|
2964
2974
|
| `--u-duration-exit` | `160ms` | same | a sheet takes its leave: modal **0ms under reduced motion.** |
|
|
2965
2975
|
| `--u-duration-exit-collapse` | `200ms` | same | a message goes and its place closes **0ms under reduced motion.** |
|
|
2966
2976
|
| `--u-duration-spin` | `700ms` | same | Continuous processes. They do NOT fall to zero under reduced motion - a spinner at 0ms says nothing; each module slows or stops its own. |
|
|
@@ -2971,7 +2981,7 @@ Continuous process. A spinner or a shimmer has no start and no end; it runs stea
|
|
|
2971
2981
|
|
|
2972
2982
|
##### Stacking order
|
|
2973
2983
|
|
|
2974
|
-
|
|
2984
|
+
Popovers portal into the nearest <dialog> ancestor, and this scale orders the rest.
|
|
2975
2985
|
|
|
2976
2986
|
| Token | Light | Dark | Description |
|
|
2977
2987
|
|---|---|---|---|
|
|
@@ -3797,9 +3807,9 @@ Every entry of `Wording`: the English of `DEFAULT_WORDING` beside the German of
|
|
|
3797
3807
|
| `selectNone` | None | Keine | — |
|
|
3798
3808
|
| `invertSelection` | Invert | Umkehren | — |
|
|
3799
3809
|
| `nothingSelected` | Nothing selected | Nichts ausgewählt | — |
|
|
3800
|
-
| `removeSelectedValue(beschriftung)` | `` `Remove ${beschriftung}` `` | `` `${
|
|
3810
|
+
| `removeSelectedValue(beschriftung)` | `` `Remove ${beschriftung}` `` | `` `${label} entfernen` `` | The cross on a selected value in the trigger. |
|
|
3801
3811
|
| `manageMoreSelected(count)` | `` `Manage all ${count} selected` `` | `` `Alle ${count} Gewählten verwalten` `` | The "+N" counter in the trigger. |
|
|
3802
|
-
| `multiSelectSummary(gewaehlt, total)` | `` `${gewaehlt} / ${total}` `` | `` `${
|
|
3812
|
+
| `multiSelectSummary(gewaehlt, total)` | `` `${gewaehlt} / ${total}` `` | `` `${selected} / ${total}` `` | The summary in the panel: "3 / 12". The sentence structure belongs to the language, even where it is only a slash here. |
|
|
3803
3813
|
| `optionCount(count)` | `` (count === 1 ? "1 option" : `${count} options`) `` | `` (count === 1 ? "1 Option" : `${count} Optionen`) `` | How many options stand, when a list opens or its filter changes; never zero - an empty list says its own empty text. Named, like the three below, after the moment it is spoken in: an announcement labels no element. |
|
|
3804
3814
|
| `optionActive(label, state)` | `[label, group, selected && "selected", disabled && "unavailable"].filter(Boolean).join(", ")` | `[label, group, selected && "ausgewählt", disabled && "nicht verfügbar"].filter(Boolean).join(", ")` | The option the keys moved onto, with what VoiceOver leaves out. |
|
|
3805
3815
|
| `optionAdded(label)` | `` `${label} added` `` | `` `${label} hinzugefügt` `` | A value the multi-select took or gave away where no checkbox had the focus to say it - Enter in the search, a chip, Backspace. |
|
|
@@ -3821,16 +3831,6 @@ Every entry of `Wording`: the English of `DEFAULT_WORDING` beside the German of
|
|
|
3821
3831
|
| `paletteHintClose` | close | schließen | — |
|
|
3822
3832
|
| `paletteKeyEsc` | Esc | Esc | The legend on the Escape key. The arrows and the return key are glyphs and therefore do not stand here; "Esc" is a word and is called something else elsewhere. |
|
|
3823
3833
|
|
|
3824
|
-
##### Dock
|
|
3825
|
-
|
|
3826
|
-
| Key | English | German | Description |
|
|
3827
|
-
|---|---|---|---|
|
|
3828
|
-
| `dockTools` | Tools | Werkzeuge | Accessible name of a dock's tools. |
|
|
3829
|
-
| `dockGrip` | Move dock | Dock verschieben | Accessible name of the grip - it says what it does, not what it is. |
|
|
3830
|
-
| `dockPlace(place)` | `({ top: "top", right: "right", bottom: "bottom", left: "left" })[place]` | `({ top: "oben", right: "rechts", bottom: "unten", left: "links" })[place]` | The four resting places, named. The keys are the `DockPlace` type's, and a register translates them: the German one answers "oben" where the English one answers "top". |
|
|
3831
|
-
| `dockPlaced(place)` | `` `Dock at the ${place}` `` | `` `Dock ${place}` `` | What the screen reader hears once the dock has taken a place. |
|
|
3832
|
-
| `dockNoPlace(place)` | `` `No room for the dock on the ${place}` `` | `` `Für das Dock ist ${place} kein Platz` `` | And what it hears when a place has refused. A refusal is not a fault: a wide, flat host with no room for a standing dock is not a mistake anyone made. |
|
|
3833
|
-
|
|
3834
3834
|
##### Date and time
|
|
3835
3835
|
|
|
3836
3836
|
| Key | English | German | Description |
|
|
@@ -3866,23 +3866,23 @@ Every entry of `Wording`: the English of `DEFAULT_WORDING` beside the German of
|
|
|
3866
3866
|
| `endHour` | End hour | Endstunde | — |
|
|
3867
3867
|
| `endMinute` | End minute | Endminute | — |
|
|
3868
3868
|
| `endSecond` | End second | Endsekunde | — |
|
|
3869
|
-
| `timeFieldIncrease(feld)` | `` `Increase ${feld}` `` | `` `${
|
|
3870
|
-
| `timeFieldDecrease(feld)` | `` `Decrease ${feld}` `` | `` `${
|
|
3869
|
+
| `timeFieldIncrease(feld)` | `` `Increase ${feld}` `` | `` `${field} erhöhen` `` | Stepper buttons of a time field; the label comes from above. |
|
|
3870
|
+
| `timeFieldDecrease(feld)` | `` `Decrease ${feld}` `` | `` `${field} verringern` `` | — |
|
|
3871
3871
|
| `chooseStartDate` | Select start date | Startdatum wählen | Footer of the range panels. |
|
|
3872
3872
|
| `chooseEndDate` | Select end date – backwards is allowed | Enddatum wählen – rückwärts ist erlaubt | — |
|
|
3873
3873
|
| `days(count)` | `` `${count} ${count === 1 ? "day" : "days"}` `` | `` `${count} ${count === 1 ? "Tag" : "Tage"}` `` | "3 days" or "1 day" - the plural belongs to the language. |
|
|
3874
3874
|
| `daysSelected(count)` | `` `${count} ${count === 1 ? "day" : "days"} selected` `` | `` `${count} ${count === 1 ? "Tag" : "Tage"} gewählt` `` | "3 days selected" |
|
|
3875
3875
|
| `rangePreview(from, to, count)` | `` `${from} – ${to} · ${count} ${count === 1 ? "day" : "days"}` `` | `` `${from} – ${to}\u2009·\u2009${count} ${count === 1 ? "Tag" : "Tage"}` `` | "17.03. – 19.03. · 3 days" while dragging; the dates come from the formats. |
|
|
3876
3876
|
| `daysAllDay(count)` | `` `${count} ${count === 1 ? "day" : "days"} (all day)` `` | `` `${count} ${count === 1 ? "Tag" : "Tage"} (ganztägig)` `` | "3 days (all day)" |
|
|
3877
|
-
| `duration(teile)` | `` `Duration: ${teile.join(" ")}` `` | `` `Dauer: ${
|
|
3877
|
+
| `duration(teile)` | `` `Duration: ${teile.join(" ")}` `` | `` `Dauer: ${parts.join(" ")}` `` | "Duration: 1 day 2 hrs 30 min" |
|
|
3878
3878
|
| `hoursShort(count)` | `` `${count} ${count === 1 ? "hr" : "hrs"}` `` | `` `${count} Std` `` | — |
|
|
3879
3879
|
| `minutesShort(count)` | `` `${count} min` `` | `` `${count} Min` `` | — |
|
|
3880
3880
|
| `timeMissingHint(timeOfDay)` | `` `This time does not exist on this day (start of daylight saving time). ${timeOfDay} is used instead.` `` | `` `Diese Uhrzeit existiert an diesem Tag nicht (Beginn der Sommerzeit). Es wird ${timeOfDay} Uhr verwendet.` `` | Daylight-saving change: the hour that does not exist. |
|
|
3881
3881
|
| `timeMissingHintSide(side, timeOfDay)` | `` `${side}: This time does not exist on this day (start of daylight saving time). ${timeOfDay} is used instead.` `` | `` `${side}: Diese Uhrzeit existiert an diesem Tag nicht (Beginn der Sommerzeit). Es wird ${timeOfDay} Uhr verwendet.` `` | The same, with the side put in front ("From"/"To"). |
|
|
3882
3882
|
| `timeAmbiguousHint` | This time occurs twice on this day (end of daylight saving time): | Diese Uhrzeit kommt an diesem Tag zweimal vor (Ende der Sommerzeit): | Daylight-saving change: the hour that occurs twice. |
|
|
3883
3883
|
| `timeAmbiguousHintSide(side)` | `` `${side}: This time occurs twice on this day (end of daylight saving time):` `` | `` `${side}: Diese Uhrzeit kommt an diesem Tag zweimal vor (Ende der Sommerzeit):` `` | — |
|
|
3884
|
-
| `timeEarlier(versatz)` | `` `Earlier (${versatz})` `` | `` `Frühere (${
|
|
3885
|
-
| `timeLater(versatz)` | `` `Later (${versatz})` `` | `` `Spätere (${
|
|
3884
|
+
| `timeEarlier(versatz)` | `` `Earlier (${versatz})` `` | `` `Frühere (${offset})` `` | — |
|
|
3885
|
+
| `timeLater(versatz)` | `` `Later (${versatz})` `` | `` `Spätere (${offset})` `` | — |
|
|
3886
3886
|
| `weekdays` | `["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]` | `["Mo", "Di", "Mi", "Do", "Fr", "Sa", "So"]` | The calendar's weekday headers, starting at Monday. |
|
|
3887
3887
|
| `presets.today` | Today | Heute | The quick-select ranges, in the order of PRESET_LABELS. |
|
|
3888
3888
|
| `presets.yesterday` | Yesterday | Gestern | The quick-select ranges, in the order of PRESET_LABELS. |
|
|
@@ -3935,7 +3935,7 @@ Every entry of `Wording`: the English of `DEFAULT_WORDING` beside the German of
|
|
|
3935
3935
|
| `expandRowNamed(row)` | `` `Expand ${row}` `` | `` `${row} aufklappen` `` | The expand button, named after the row header. |
|
|
3936
3936
|
| `collapseRowNamed(row)` | `` `Collapse ${row}` `` | `` `${row} zuklappen` `` | — |
|
|
3937
3937
|
| `rowActions` | Actions | Aktionen | Header of the actions column - for the screen reader, not visible. |
|
|
3938
|
-
| `rowAction(aktion, row)` | `` `${aktion}: ${row}` `` | `` `${
|
|
3938
|
+
| `rowAction(aktion, row)` | `` `${aktion}: ${row}` `` | `` `${action}: ${row}` `` | One action on a row: "Open: A-2041". |
|
|
3939
3939
|
| `rowActionsMenu(row)` | `` `Actions: ${row}` `` | `` `Aktionen: ${row}` `` | The menu holding a row's actions. |
|
|
3940
3940
|
| `editCell(column, row)` | `` `Edit ${column}: ${row}` `` | `` `${column} bearbeiten: ${row}` `` | The editor of a cell in a table's grid mode, named after its column and its row: "Edit Budget: Marketing". |
|
|
3941
3941
|
| `newRow` | New row | Neue Zeile | The button above a grid that opens an empty row to fill in, and the name of that row while it has none ([ADR-0036](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0036-a-grid-edits-on-the-first-click-and-saves-rows-on-purpose.md)). |
|
|
@@ -3976,13 +3976,16 @@ 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 … | — |
|
|
3982
3985
|
| `treeNoMatches` | Nothing matches the search. | Nichts passt zur Suche. | — |
|
|
3983
3986
|
| `conditions` | Active filters | Aktive Filter | Group name of the conditions in the table toolbar. |
|
|
3984
|
-
| `removeConditionNamed(label, value)` | `` `Remove ${label}: ${value}` `` | `` `${label}: ${
|
|
3985
|
-
| `editConditionNamed(label, value)` | `` `Edit ${label}: ${value}` `` | `` `${label}: ${
|
|
3987
|
+
| `removeConditionNamed(label, value)` | `` `Remove ${label}: ${value}` `` | `` `${label}: ${value} entfernen` `` | The button that removes a condition: "Remove Region: EU, US". |
|
|
3988
|
+
| `editConditionNamed(label, value)` | `` `Edit ${label}: ${value}` `` | `` `${label}: ${value} bearbeiten` `` | The condition itself, which opens its filter: "Edit Region: EU, US". |
|
|
3986
3989
|
| `moreValues(count, formatted)` | `` `+${formatted}` `` | `` `+${formatted}` `` | The remainder of a long list in a condition: "+1". |
|
|
3987
3990
|
| `filterFrom` | From | Von | The two fields of the range filter. |
|
|
3988
3991
|
| `filterTo` | To | Bis | — |
|
|
@@ -4003,54 +4006,13 @@ Every entry of `Wording`: the English of `DEFAULT_WORDING` beside the German of
|
|
|
4003
4006
|
| `verdictUnknown` | No value | Kein Wert | — |
|
|
4004
4007
|
| `statAbsentValue` | — | — | What stands in the value field when there is no value. No dash, no zero: either could be a value. |
|
|
4005
4008
|
| `target` | Target | Ziel | — |
|
|
4006
|
-
| `deviationAbove(betrag)` | `` `${betrag} above target` `` | `` `${
|
|
4007
|
-
| `deviationBelow(betrag)` | `` `${betrag} below target` `` | `` `${
|
|
4009
|
+
| `deviationAbove(betrag)` | `` `${betrag} above target` `` | `` `${amount} über Ziel` `` | "3,2 above target" or "1,5 below target" - the amount comes from the formats, which is where the comma is from. |
|
|
4010
|
+
| `deviationBelow(betrag)` | `` `${betrag} below target` `` | `` `${amount} unter Ziel` `` | — |
|
|
4008
4011
|
| `deviationOnTarget` | on target | auf Ziel | — |
|
|
4009
4012
|
| `freshnessFresh` | Fresh | Aktuell | The three freshness states. They are a DIFFERENT axis from the verdict: a stale value keeps its verdict ([ADR-0010](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0010-a-stale-value-keeps-its-verdict.md)). |
|
|
4010
4013
|
| `freshnessStale` | Stale | Veraltet | — |
|
|
4011
4014
|
| `freshnessDisconnected` | No connection | Keine Verbindung | — |
|
|
4012
|
-
| `asOfAgo(duration)` | `` `As of: ${
|
|
4013
|
-
| `asOfUnknown` | As-of time unknown | Stand unbekannt | — |
|
|
4014
|
-
|
|
4015
|
-
##### Alarm list
|
|
4016
|
-
|
|
4017
|
-
| Key | English | German | Description |
|
|
4018
|
-
|---|---|---|---|
|
|
4019
|
-
| `alarms` | Alarms | Meldungen | — |
|
|
4020
|
-
| `noAlarms` | No alarms | Keine Meldungen | — |
|
|
4021
|
-
| `noAlarmsDisconnected` | No alarms – the connection is down | Keine Meldungen – die Verbindung steht nicht | Empty, but the line is down - that is something other than quiet. |
|
|
4022
|
-
| `acknowledgeAlarm` | Acknowledge | Quittieren | — |
|
|
4023
|
-
| `acknowledgeAlarms(count)` | `` count === 1 ? "Acknowledge 1 alarm" : `Acknowledge ${count} alarms` `` | `` count === 1 ? "1 Meldung quittieren" : `${count} Meldungen quittieren` `` | Bulk acknowledgement; the number stands in the text on purpose. |
|
|
4024
|
-
| `snoozeAlarm` | Snooze | Zurückstellen | The alarm list's snooze menu, beside "Acknowledge": the word on its button, and the sentence with the number of alarms it acts on. |
|
|
4025
|
-
| `snoozeAlarms(count)` | `` (count === 1 ? "Snooze 1 alarm" : `Snooze ${count} alarms`) `` | `` (count === 1 ? "1 Meldung zurückstellen" : `${count} Meldungen zurückstellen`) `` | — |
|
|
4026
|
-
| `snoozeDuration` | Duration | Dauer | The labels in the panel that opens with `snoozeReason`: the duration to choose and the reason to give. The panel's own button is `snoozeAlarm`. |
|
|
4027
|
-
| `snoozeReason` | Reason | Grund | — |
|
|
4028
|
-
| `unsnoozeAlarm` | Unsnooze | Zurückstellung aufheben | Ends the snooze of the ticked alarms before its time. |
|
|
4029
|
-
| `unsnoozeAlarms(count)` | `` (count === 1 ? "Unsnooze 1 alarm" : `Unsnooze ${count} alarms`) `` | `` count === 1 ? "Zurückstellung von 1 Meldung aufheben" : `Zurückstellung von ${count} Meldungen aufheben` `` | — |
|
|
4030
|
-
| `priorityHigh` | High | Hoch | — |
|
|
4031
|
-
| `priorityMedium` | Medium | Mittel | — |
|
|
4032
|
-
| `priorityLow` | Low | Niedrig | — |
|
|
4033
|
-
| `lifecycleActiveUnacknowledged` | Active, unacknowledged | Aktiv, unquittiert | The four lifecycle states, written out. |
|
|
4034
|
-
| `lifecycleActiveAcknowledged` | Active, acknowledged | Aktiv, quittiert | — |
|
|
4035
|
-
| `lifecycleResolvedUnacknowledged` | Resolved, unacknowledged | Behoben, unquittiert | — |
|
|
4036
|
-
| `lifecycleResolvedAcknowledged` | Resolved, acknowledged | Behoben, quittiert | — |
|
|
4037
|
-
| `floodHint(count)` | `` `Alarm flood: ${count} in quick succession` `` | `` `Meldungsflut: ${count} in kurzer Folge` `` | "Alarm flood: 12 in quick succession" - a flood is marked, never suppressed. |
|
|
4038
|
-
| `chatterHint(count)` | `` `${count}×` `` | `` `${count}×` `` | "40×" on a chattering alarm type. |
|
|
4039
|
-
| `activeUnacknowledged(count)` | `` count === 1 ? "1 active alarm, unacknowledged" : `${count} active alarms, unacknowledged` `` | `` count === 1 ? "1 aktive Meldung, unquittiert" : `${count} aktive Meldungen, unquittiert` `` | The text of the live region: the number of active unacknowledged alarms. |
|
|
4040
|
-
| `columnAlarm` | Alarm | Meldung | — |
|
|
4041
|
-
| `columnLifecycleState` | State | Zustand | — |
|
|
4042
|
-
| `columnPriority` | Priority | Priorität | — |
|
|
4043
|
-
| `columnRaised` | Raised | Gekommen | — |
|
|
4044
|
-
| `columnDuration` | Duration | Dauer | — |
|
|
4045
|
-
| `columnFrequency` | Frequency | Häufigkeit | — |
|
|
4046
|
-
| `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
|
-
| `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. |
|
|
4049
|
-
| `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
|
-
| `availabilitySuppressed` | Suppressed | Unterdrückt | — |
|
|
4051
|
-
| `availabilityDisabled` | Disabled | Deaktiviert | — |
|
|
4052
|
-
| `hiddenAlarms(count)` | `` `Hidden: ${count}` `` | `` `Ausgeblendet: ${count}` `` | "Hidden: 3" - the count of the view of snoozed, suppressed and disabled alarms, and its name where the list offers the view as a switch. |
|
|
4053
|
-
| `columnAvailability` | Availability | Verfügbarkeit | The availability column of the alarm model: the column menu and the CSV header, like the two above. |
|
|
4015
|
+
| `asOfAgo(duration)` | `` `As of: ${duration}` `` | `` `Stand: ${duration}` `` | "As of: 3 minutes ago", where the duration comes from the formats. |
|
|
4054
4016
|
|
|
4055
4017
|
##### Overlays and states
|
|
4056
4018
|
|
|
@@ -4081,7 +4043,7 @@ Every entry of `Wording`: the English of `DEFAULT_WORDING` beside the German of
|
|
|
4081
4043
|
| `hide` | Hide | Ausblenden | — |
|
|
4082
4044
|
| `moreActions` | More actions | Weitere Aktionen | — |
|
|
4083
4045
|
| `remove` | Remove | Entfernen | The cross on a tag without text content. |
|
|
4084
|
-
| `removeTag(beschriftung)` | `` `Remove ${beschriftung}` `` | `` `${
|
|
4046
|
+
| `removeTag(beschriftung)` | `` `Remove ${beschriftung}` `` | `` `${label} entfernen` `` | The cross on a tag with text content. |
|
|
4085
4047
|
|
|
4086
4048
|
##### @umriss-ui/schedule
|
|
4087
4049
|
|
|
@@ -4141,6 +4103,7 @@ Every entry of `ChartsWording` from `@umriss-ui/charts`, which a chart takes thr
|
|
|
4141
4103
|
|
|
4142
4104
|
| Key | English | German | Description |
|
|
4143
4105
|
|---|---|---|---|
|
|
4106
|
+
| `locale` | en-GB | de-DE | The BCP 47 tag every number and every date or time label of the chart is formatted in (`en-GB`, `de-DE`). The one input for the locale: the browser's language is not read. The clock stays 24-hour in both. |
|
|
4144
4107
|
| `roleDescription` | chart | Diagramm | What a screen reader calls the plot area that takes the keys (`aria-roledescription`). |
|
|
4145
4108
|
| `empty` | No data | Keine Daten | Shown in the plot area when no visible series has a point to show. |
|
|
4146
4109
|
| `seriesList(names)` | `` `${names.length === 1 ? "1 series" : `${names.length} series`}: ${names.join(", ")}.` `` | `` `${names.length === 1 ? "1 Serie" : `${names.length} Serien`}: ${names.join(", ")}.` `` | The summary's visible series, by name. |
|
|
@@ -4148,15 +4111,15 @@ Every entry of `ChartsWording` from `@umriss-ui/charts`, which a chart takes thr
|
|
|
4148
4111
|
| `seriesExtent(name, min, max)` | `` `${name} from ${min} to ${max}.` `` | `` `${name} von ${min} bis ${max}.` `` | The summary's lowest and highest value of one series in that stretch. |
|
|
4149
4112
|
| `limitList(limits)` | `` `Limits: ${limits.map((l) => `${l.name} ${l.value}`).join(", ")}.` `` | `` `Grenzen: ${limits.map((l) => `${l.name} ${l.value}`).join(", ")}.` `` | The summary's labelled limits, each with its value in its axis' format (a band's two edges as one value). |
|
|
4150
4113
|
| `readout(x, rows)` | `` [`${x}.`, ...rows.map((r) => `${r.name} ${r.value}${r.x === "" ? "" : ` at ${r.x}`}.`)].join(" ") `` | `` [`${x}.`, ...rows.map((r) => `${r.name} ${r.value}${r.x === "" ? "" : ` bei ${r.x}`}.`)].join(" ") `` | What is read after a key: the position, then each series with its value (and its own x where it stands on another x axis), the emphasised one first. |
|
|
4151
|
-
| `stackTotal` | Total | Summe | The last row of a stack in the tooltip and the readout: the sum of its members at the point
|
|
4152
|
-
| `percent(value)` | `` `${value}%` `` | `` `${value} %` `` | A share in a normalised stack, its number already formatted
|
|
4114
|
+
| `stackTotal` | Total | Summe | The last row of a stack in the tooltip and the readout: the sum of its members at the point. |
|
|
4115
|
+
| `percent(value)` | `` `${value}%` `` | `` `${value} %` `` | A share in a normalised stack, its number already formatted. |
|
|
4153
4116
|
| `walkHelp` | Left and right arrows move through the values, up and down change the series, Home and End go to the first and the last, Escape clears. | Pfeil links und rechts gehen durch die Werte, Pfeil hoch und runter wechseln die Serie, Pos1 und Ende springen zum ersten und letzten Wert, Escape hebt die Markierung auf. | The keys that walk the chart. |
|
|
4154
4117
|
| `selectHelp` | Enter chooses the point. | Enter wählt den Punkt. | The key that reports the Active point - only where `onSelect` is given. |
|
|
4155
4118
|
| `zoomHelp` | Plus and minus zoom, Shift with left or right pans, 0 goes back to the axis' own span. | Plus und Minus zoomen, Umschalt mit Pfeil links oder rechts verschiebt, 0 kehrt zum eigenen Bereich der Achse zurück. | The keys that zoom and pan it - only where the chart can be zoomed. |
|
|
4156
4119
|
| `legendHelp` | In the legend, Enter hides or shows a series, Shift+Enter shows only it. | In der Legende blendet Enter eine Serie aus oder ein, Umschalt+Enter zeigt nur sie. | The keys of the legend's entries - only where it has one to press. |
|
|
4157
4120
|
| `allShown` | Nothing would be left to see, so every series is shown. | Sonst wäre nichts mehr zu sehen, darum werden alle Serien gezeigt. | Read out where hiding would leave nothing to see, and every series is shown instead. |
|
|
4158
4121
|
| `showAll` | Show all | Alles zeigen | The control over a zoomed plot that brings every zoomed axis back to its own domain (component-view 04). |
|
|
4159
|
-
| `showData` | Show data | Daten zeigen | The data table's disclosure key, closed and open
|
|
4122
|
+
| `showData` | Show data | Daten zeigen | The data table's disclosure key, closed and open. |
|
|
4160
4123
|
| `hideData` | Hide data | Daten verbergen | — |
|
|
4161
4124
|
| `positionColumn` | Position | Position | The heading of the table's x column where its axis has no `label`, and of a matrix' row column where its y axis has none. |
|
|
4162
4125
|
| `rowColumn` | Row | Zeile | — |
|
|
@@ -4171,7 +4134,7 @@ Every entry of `ChartsWording` from `@umriss-ui/charts`, which a chart takes thr
|
|
|
4171
4134
|
| `notch` | Notch | Notch | — |
|
|
4172
4135
|
| `count` | n | n | — |
|
|
4173
4136
|
| `outlierList(values, more)` | `` `${values.length + more}: ${values.join(", ")}${more > 0 ? ` and ${more} more` : ""}` `` | `` `${values.length + more}: ${values.join(", ")}${more > 0 ? ` und ${more} weitere` : ""}` `` | — |
|
|
4174
|
-
| `downsampled(readings)` | `` `Downsampled from ${readings.toLocaleString("en-GB")} readings: the first, lowest, highest and last value of each stretch.` `` | `` `Ausgedünnt aus ${readings.toLocaleString("de-DE")} Messwerten: erster, kleinster, größter und letzter Wert je Abschnitt.` `` | Added to the caption where the table shows the downsampled course
|
|
4137
|
+
| `downsampled(readings)` | `` `Downsampled from ${readings.toLocaleString("en-GB")} readings: the first, lowest, highest and last value of each stretch.` `` | `` `Ausgedünnt aus ${readings.toLocaleString("de-DE")} Messwerten: erster, kleinster, größter und letzter Wert je Abschnitt.` `` | Added to the caption where the table shows the downsampled course: how many readings its rows stand for. |
|
|
4175
4138
|
|
|
4176
4139
|
#### Formats
|
|
4177
4140
|
|
|
@@ -4271,11 +4234,6 @@ Everything the library puts out as text.
|
|
|
4271
4234
|
| `paletteHintChoose` *required* | `string` | — | |
|
|
4272
4235
|
| `paletteHintClose` *required* | `string` | — | |
|
|
4273
4236
|
| `paletteKeyEsc` *required* | `string` | — | The legend on the Escape key. The arrows and the return key are glyphs and therefore do not stand here; "Esc" is a word and is called something else elsewhere. |
|
|
4274
|
-
| `dockTools` *required* | `string` | — | Accessible name of a dock's tools. |
|
|
4275
|
-
| `dockGrip` *required* | `string` | — | Accessible name of the grip - it says what it does, not what it is. |
|
|
4276
|
-
| `dockPlace` *required* | `(place: "top" \| "right" \| "bottom" \| "left") => string` | — | The four resting places, named. The keys are the `DockPlace` type's, and a register translates them: the German one answers "oben" where the English one answers "top". |
|
|
4277
|
-
| `dockPlaced` *required* | `(place: string) => string` | — | What the screen reader hears once the dock has taken a place. |
|
|
4278
|
-
| `dockNoPlace` *required* | `(place: string) => string` | — | And what it hears when a place has refused. A refusal is not a fault: a wide, flat host with no room for a standing dock is not a mistake anyone made. |
|
|
4279
4237
|
| `datePlaceholder` *required* | `string` | — | |
|
|
4280
4238
|
| `datePanel` *required* | `string` | — | Accessible name of the panel. Deliberately kept apart from the placeholder: whoever labels the field differently does not thereby rename the dialog. |
|
|
4281
4239
|
| `dateClear` *required* | `string` | — | |
|
|
@@ -4400,6 +4358,9 @@ Everything the library puts out as text.
|
|
|
4400
4358
|
| `calendarWeek` *required* | `(week: number, year: number) => string` | — | A group of the week key: "Week 42, 2026". |
|
|
4401
4359
|
| `entries` *required* | `(count: number, formatted: string) => string` | — | "128 entries" in the pagination bar; the plural belongs to the language. |
|
|
4402
4360
|
| `selectedCount` *required* | `(count: number, formatted: string) => string` | — | "3 selected" in the pagination bar and the table toolbar. |
|
|
4361
|
+
| `copiedRows` *required* | `(count: number, formatted: string) => string` | — | Said to a screen reader after Ctrl+C copied rows: "3 rows copied". |
|
|
4362
|
+
| `copiedCell` *required* | `string` | — | Said after Ctrl+C copied the active cell of a grid. |
|
|
4363
|
+
| `copyFailed` *required* | `string` | — | Said when the clipboard refused or is not there. |
|
|
4403
4364
|
| `noEntries` *required* | `string` | — | Empty because there are no rows. |
|
|
4404
4365
|
| `nothingMatchesFilters` *required* | `string` | — | Empty because search and filters leave nothing - something else. |
|
|
4405
4366
|
| `treeSearchPlaceholder` *required* | `string` | — | |
|
|
@@ -4429,42 +4390,6 @@ Everything the library puts out as text.
|
|
|
4429
4390
|
| `freshnessStale` *required* | `string` | — | |
|
|
4430
4391
|
| `freshnessDisconnected` *required* | `string` | — | |
|
|
4431
4392
|
| `asOfAgo` *required* | `(duration: string) => string` | — | "As of: 3 minutes ago", where the duration comes from the formats. |
|
|
4432
|
-
| `asOfUnknown` *required* | `string` | — | |
|
|
4433
|
-
| `alarms` *required* | `string` | — | |
|
|
4434
|
-
| `noAlarms` *required* | `string` | — | |
|
|
4435
|
-
| `noAlarmsDisconnected` *required* | `string` | — | Empty, but the line is down - that is something other than quiet. |
|
|
4436
|
-
| `acknowledgeAlarm` *required* | `string` | — | |
|
|
4437
|
-
| `acknowledgeAlarms` *required* | `(count: number) => string` | — | Bulk acknowledgement; the number stands in the text on purpose. |
|
|
4438
|
-
| `snoozeAlarm` *required* | `string` | — | The alarm list's snooze menu, beside "Acknowledge": the word on its button, and the sentence with the number of alarms it acts on. |
|
|
4439
|
-
| `snoozeAlarms` *required* | `(count: number) => string` | — | |
|
|
4440
|
-
| `snoozeDuration` *required* | `string` | — | The labels in the panel that opens with `snoozeReason`: the duration to choose and the reason to give. The panel's own button is `snoozeAlarm`. |
|
|
4441
|
-
| `snoozeReason` *required* | `string` | — | |
|
|
4442
|
-
| `unsnoozeAlarm` *required* | `string` | — | Ends the snooze of the ticked alarms before its time. |
|
|
4443
|
-
| `unsnoozeAlarms` *required* | `(count: number) => string` | — | |
|
|
4444
|
-
| `priorityHigh` *required* | `string` | — | |
|
|
4445
|
-
| `priorityMedium` *required* | `string` | — | |
|
|
4446
|
-
| `priorityLow` *required* | `string` | — | |
|
|
4447
|
-
| `lifecycleActiveUnacknowledged` *required* | `string` | — | The four lifecycle states, written out. |
|
|
4448
|
-
| `lifecycleActiveAcknowledged` *required* | `string` | — | |
|
|
4449
|
-
| `lifecycleResolvedUnacknowledged` *required* | `string` | — | |
|
|
4450
|
-
| `lifecycleResolvedAcknowledged` *required* | `string` | — | |
|
|
4451
|
-
| `floodHint` *required* | `(count: number) => string` | — | "Alarm flood: 12 in quick succession" - a flood is marked, never suppressed. |
|
|
4452
|
-
| `chatterHint` *required* | `(count: number) => string` | — | "40×" on a chattering alarm type. |
|
|
4453
|
-
| `activeUnacknowledged` *required* | `(count: number) => string` | — | The text of the live region: the number of active unacknowledged alarms. |
|
|
4454
|
-
| `columnAlarm` *required* | `string` | — | |
|
|
4455
|
-
| `columnLifecycleState` *required* | `string` | — | |
|
|
4456
|
-
| `columnPriority` *required* | `string` | — | |
|
|
4457
|
-
| `columnRaised` *required* | `string` | — | |
|
|
4458
|
-
| `columnDuration` *required* | `string` | — | |
|
|
4459
|
-
| `columnFrequency` *required* | `string` | — | |
|
|
4460
|
-
| `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
|
-
| `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. |
|
|
4463
|
-
| `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
|
-
| `availabilitySuppressed` *required* | `string` | — | |
|
|
4465
|
-
| `availabilityDisabled` *required* | `string` | — | |
|
|
4466
|
-
| `hiddenAlarms` *required* | `(count: number) => string` | — | "Hidden: 3" - the count of the view of snoozed, suppressed and disabled alarms, and its name where the list offers the view as a switch. |
|
|
4467
|
-
| `columnAvailability` *required* | `string` | — | The availability column of the alarm model: the column menu and the CSV header, like the two above. |
|
|
4468
4393
|
| `close` *required* | `string` | — | |
|
|
4469
4394
|
| `closeToast` *required* | `string` | — | |
|
|
4470
4395
|
| `toastDeckCount` *required* | `(count: number) => string` | — | The count on the front toast of a closed deck; pressing it shows them all. |
|
|
@@ -4844,7 +4769,7 @@ The keys of [Button](#/button/keyboard-button) apply here.
|
|
|
4844
4769
|
| Prop | Type | Default | Description |
|
|
4845
4770
|
|---|---|---|---|
|
|
4846
4771
|
| `direction` | `"row" \| "column"` | `"column"` | Below one another or beside one another. Below is the direction content stands in anyway, without being asked.<br>Shown in: [A row](#/stack-and-grid/a-row), [Gaps](#/stack-and-grid/gaps), [Wrapping](#/stack-and-grid/wrapping) and 68 more |
|
|
4847
|
-
| `gap` | [`SpaceStep`](#type-SpaceStep)<br>`1 \| 2 \| 3 \| 4 \| 5 \| 6 \| 7 \| 8` | `3` | Spacing as a step of the 4 px spacing steps (1–8).<br>Shown in: [A column](#/stack-and-grid/a-column), [A row](#/stack-and-grid/a-row), [Gaps](#/stack-and-grid/gaps) and
|
|
4772
|
+
| `gap` | [`SpaceStep`](#type-SpaceStep)<br>`1 \| 2 \| 3 \| 4 \| 5 \| 6 \| 7 \| 8` | `3` | Spacing as a step of the 4 px spacing steps (1–8).<br>Shown in: [A column](#/stack-and-grid/a-column), [A row](#/stack-and-grid/a-row), [Gaps](#/stack-and-grid/gaps) and 163 more |
|
|
4848
4773
|
| `align` | `CSSProperties["alignItems"]` | — | Alignment across the direction – `alignItems` unchanged.<br>Shown in: [A row](#/stack-and-grid/a-row), [Gaps](#/stack-and-grid/gaps), [A tour summary](#/stack-and-grid/a-tour-summary) and 77 more |
|
|
4849
4774
|
| `justify` | `CSSProperties["justifyContent"]` | — | Distribution along the direction – `justifyContent` unchanged.<br>Shown in: [A row](#/stack-and-grid/a-row), [A tour summary](#/stack-and-grid/a-tour-summary), [Name the same action in every row (VisuallyHidden)](#/visuallyhidden/actions-in-rows) and 9 more |
|
|
4850
4775
|
| `wrap` | `boolean` | `false` | Lets the children wrap when the line does not suffice.<br>Shown in: [Gaps](#/stack-and-grid/gaps), [Wrapping](#/stack-and-grid/wrapping), [Sized to the value (Sizes)](#/sizes/sized-to-the-value) and 32 more |
|
|
@@ -4884,6 +4809,7 @@ type GridColumnWidth = number | "fill";
|
|
|
4884
4809
|
#### Known limits
|
|
4885
4810
|
|
|
4886
4811
|
- No breakpoints and no responsive props: a grid follows the width through `minItemWidth`, anything else is your stylesheet's.
|
|
4812
|
+
- 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
4813
|
|
|
4888
4814
|
What umriss deliberately does not build, and why: [ADR-0032](https://romanhaendler.github.io/umriss-ui/what-umriss-ui-is-not/).
|
|
4889
4815
|
|
|
@@ -5565,7 +5491,7 @@ function metrics(serviceId: string): MetricPoint[] {
|
|
|
5565
5491
|
return points;
|
|
5566
5492
|
}
|
|
5567
5493
|
|
|
5568
|
-
/** A kind of alert
|
|
5494
|
+
/** A kind of alert. */
|
|
5569
5495
|
interface AlertType {
|
|
5570
5496
|
id: string;
|
|
5571
5497
|
label: string;
|
|
@@ -5581,7 +5507,7 @@ const ALERT_TYPES: readonly AlertType[] = [
|
|
|
5581
5507
|
{ id: "reports-job", label: "Reporting · nightly job late", priority: "low" },
|
|
5582
5508
|
];
|
|
5583
5509
|
|
|
5584
|
-
/** One alert
|
|
5510
|
+
/** One alert. */
|
|
5585
5511
|
type Alert = {
|
|
5586
5512
|
id: string;
|
|
5587
5513
|
type: string;
|
|
@@ -5708,408 +5634,11 @@ Also takes every attribute of `<div>` – without `children`, `defaultValue`, `o
|
|
|
5708
5634
|
|
|
5709
5635
|
#### Known limits
|
|
5710
5636
|
|
|
5711
|
-
- Two panes per splitter, no more.
|
|
5637
|
+
- 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
5638
|
- It does not remember the share beyond its own life; keep it in the user's settings through `value` and `onChange`.
|
|
5713
5639
|
|
|
5714
5640
|
What umriss deliberately does not build, and why: [ADR-0032](https://romanhaendler.github.io/umriss-ui/what-umriss-ui-is-not/).
|
|
5715
5641
|
|
|
5716
|
-
### Dock
|
|
5717
|
-
|
|
5718
|
-
A strip of tools that floats above one surface, a chart or a map, and rests at the edge the user moves it to (also called a floating toolbar). Reach for it when the tools act on that surface and must not take room from it.
|
|
5719
|
-
|
|
5720
|
-
```ts
|
|
5721
|
-
import { Dock } from "@umriss-ui/core";
|
|
5722
|
-
```
|
|
5723
|
-
|
|
5724
|
-
Demo page: https://romanhaendler.github.io/umriss-ui/core/dock/
|
|
5725
|
-
|
|
5726
|
-
It snaps and does not follow: dragging moves the handle, and the dock jumps to the edge whose zone the pointer reaches. It always rests at one of four places, never in between and never in a corner ([ADR-0013](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0013-a-dock-snaps-it-does-not-follow.md)).
|
|
5727
|
-
|
|
5728
|
-
It belongs to one surface; two charts side by side have two docks. Which tools are modes is yours to say through `mode`; without it, every tool simply reports its use.
|
|
5729
|
-
|
|
5730
|
-
Where an edge has no room for the strip, as the side edges of a wide, flat chart, that edge refuses visibly and shows the outline the dock would take. Nothing shrinks and nothing overflows.
|
|
5731
|
-
|
|
5732
|
-
#### Examples
|
|
5733
|
-
|
|
5734
|
-
##### A tool strip
|
|
5735
|
-
|
|
5736
|
-
Put the dock inside a positioned surface and give it `tools`; it lies above the surface and takes no room from it.
|
|
5737
|
-
|
|
5738
|
-
```tsx
|
|
5739
|
-
import { Dock, GridGlyph, MeasureGlyph } from "@umriss-ui/core";
|
|
5740
|
-
import type { DockTool } from "@umriss-ui/core";
|
|
5741
|
-
|
|
5742
|
-
const TOOLS: readonly DockTool[] = [
|
|
5743
|
-
{ id: "grid", label: "Grid", icon: <GridGlyph /> },
|
|
5744
|
-
{ id: "measure", label: "Measure", icon: <MeasureGlyph /> },
|
|
5745
|
-
];
|
|
5746
|
-
|
|
5747
|
-
export default function AToolStrip() {
|
|
5748
|
-
return (
|
|
5749
|
-
<div
|
|
5750
|
-
style={{
|
|
5751
|
-
position: "relative",
|
|
5752
|
-
height: 200,
|
|
5753
|
-
borderRadius: "var(--u-radius-lg)",
|
|
5754
|
-
background: "var(--u-color-surface-sunken)",
|
|
5755
|
-
boxShadow: "var(--u-edge)",
|
|
5756
|
-
}}
|
|
5757
|
-
>
|
|
5758
|
-
<Dock tools={TOOLS} defaultPlace="bottom" />
|
|
5759
|
-
</div>
|
|
5760
|
-
);
|
|
5761
|
-
}
|
|
5762
|
-
```
|
|
5763
|
-
|
|
5764
|
-
##### Four resting places
|
|
5765
|
-
|
|
5766
|
-
Drag the handle or press an arrow on it to move the dock; control `place` with `onPlaceChange` to keep it in the user's settings.
|
|
5767
|
-
|
|
5768
|
-
```tsx
|
|
5769
|
-
import { useState } from "react";
|
|
5770
|
-
import { Dock, GridGlyph, MeasureGlyph, PlusGlyph, Stack, Text } from "@umriss-ui/core";
|
|
5771
|
-
import type { DockPlace, DockTool } from "@umriss-ui/core";
|
|
5772
|
-
|
|
5773
|
-
const TOOLS: readonly DockTool[] = [
|
|
5774
|
-
{ id: "zoom-in", label: "Zoom in", icon: <PlusGlyph /> },
|
|
5775
|
-
{ id: "grid", label: "Grid", icon: <GridGlyph /> },
|
|
5776
|
-
{ id: "measure", label: "Measure", icon: <MeasureGlyph /> },
|
|
5777
|
-
];
|
|
5778
|
-
|
|
5779
|
-
export default function FourRestingPlaces() {
|
|
5780
|
-
const [place, setPlace] = useState<DockPlace>("top");
|
|
5781
|
-
|
|
5782
|
-
return (
|
|
5783
|
-
<Stack gap={2}>
|
|
5784
|
-
<div
|
|
5785
|
-
style={{
|
|
5786
|
-
position: "relative",
|
|
5787
|
-
height: 260,
|
|
5788
|
-
borderRadius: "var(--u-radius-lg)",
|
|
5789
|
-
background: "var(--u-color-surface-sunken)",
|
|
5790
|
-
boxShadow: "var(--u-edge)",
|
|
5791
|
-
}}
|
|
5792
|
-
>
|
|
5793
|
-
<Dock tools={TOOLS} place={place} onPlaceChange={setPlace} />
|
|
5794
|
-
</div>
|
|
5795
|
-
<Text size="xs" tone="muted">
|
|
5796
|
-
Resting place: <code>{place}</code>
|
|
5797
|
-
</Text>
|
|
5798
|
-
</Stack>
|
|
5799
|
-
);
|
|
5800
|
-
}
|
|
5801
|
-
```
|
|
5802
|
-
|
|
5803
|
-
##### Modes and actions
|
|
5804
|
-
|
|
5805
|
-
Set `mode` for the tool the surface stands in and let `onUse` report the rest; a `disabled` tool stays in its place.
|
|
5806
|
-
|
|
5807
|
-
```tsx
|
|
5808
|
-
import { useState } from "react";
|
|
5809
|
-
import { CrossGlyph, Dock, GridGlyph, MeasureGlyph, MinusGlyph, PlusGlyph, Stack, Text } from "@umriss-ui/core";
|
|
5810
|
-
import type { DockTool } from "@umriss-ui/core";
|
|
5811
|
-
|
|
5812
|
-
const TOOLS: readonly DockTool[] = [
|
|
5813
|
-
{ id: "zoom-in", label: "Zoom in", icon: <PlusGlyph /> },
|
|
5814
|
-
{ id: "zoom-out", label: "Zoom out", icon: <MinusGlyph />, disabled: true },
|
|
5815
|
-
{ id: "grid", label: "Grid", icon: <GridGlyph /> },
|
|
5816
|
-
{ id: "measure", label: "Measure", icon: <MeasureGlyph /> },
|
|
5817
|
-
{ id: "clear", label: "Clear the selection", icon: <CrossGlyph /> },
|
|
5818
|
-
];
|
|
5819
|
-
|
|
5820
|
-
/** Which tools are modes is the application's knowledge, not the dock's. */
|
|
5821
|
-
const MODES = new Set(["grid", "measure"]);
|
|
5822
|
-
|
|
5823
|
-
export default function ModesAndActions() {
|
|
5824
|
-
const [mode, setMode] = useState("grid");
|
|
5825
|
-
const [last, setLast] = useState<string | null>(null);
|
|
5826
|
-
|
|
5827
|
-
return (
|
|
5828
|
-
<Stack gap={2}>
|
|
5829
|
-
<div
|
|
5830
|
-
style={{
|
|
5831
|
-
position: "relative",
|
|
5832
|
-
height: 220,
|
|
5833
|
-
borderRadius: "var(--u-radius-lg)",
|
|
5834
|
-
background: "var(--u-color-surface-sunken)",
|
|
5835
|
-
boxShadow: "var(--u-edge)",
|
|
5836
|
-
}}
|
|
5837
|
-
>
|
|
5838
|
-
<Dock
|
|
5839
|
-
tools={TOOLS}
|
|
5840
|
-
defaultPlace="bottom"
|
|
5841
|
-
mode={mode}
|
|
5842
|
-
onModeChange={(id) => {
|
|
5843
|
-
if (MODES.has(id)) setMode(id);
|
|
5844
|
-
}}
|
|
5845
|
-
onUse={setLast}
|
|
5846
|
-
/>
|
|
5847
|
-
</div>
|
|
5848
|
-
<Text size="xs" tone="muted">
|
|
5849
|
-
Mode: <code>{mode}</code>, last used: <code>{last ?? "none"}</code>
|
|
5850
|
-
</Text>
|
|
5851
|
-
</Stack>
|
|
5852
|
-
);
|
|
5853
|
-
}
|
|
5854
|
-
```
|
|
5855
|
-
|
|
5856
|
-
##### Move the dock, and where it does not fit
|
|
5857
|
-
|
|
5858
|
-
Above a latency chart the dock reaches all four edges; on a flat chart the two side edges refuse and show why.
|
|
5859
|
-
|
|
5860
|
-
```tsx
|
|
5861
|
-
/* `data-dock` names the two hosts for the screenshot and interaction suites:
|
|
5862
|
-
`spacious` has room for an upright dock, `flat` has not. */
|
|
5863
|
-
|
|
5864
|
-
import { useState } from "react";
|
|
5865
|
-
import type { ReactNode } from "react";
|
|
5866
|
-
import { CrossGlyph, Dock, GridGlyph, MeasureGlyph, MinusGlyph, PlusGlyph, Stack, Text } from "@umriss-ui/core";
|
|
5867
|
-
import type { DockPlace, DockTool } from "@umriss-ui/core";
|
|
5868
|
-
|
|
5869
|
-
/* Data from the operations world, written out here so the example runs on its own. */
|
|
5870
|
-
/** A small LCG - the same numbers on every computer. */
|
|
5871
|
-
function random(seed: number): () => number {
|
|
5872
|
-
let s = seed >>> 0;
|
|
5873
|
-
return () => {
|
|
5874
|
-
s = (Math.imul(s, 1664525) + 1013904223) >>> 0;
|
|
5875
|
-
return s / 4294967296;
|
|
5876
|
-
};
|
|
5877
|
-
}
|
|
5878
|
-
|
|
5879
|
-
const at = (day: number, hours: number, minutes = 0) => new Date(2026, 2, day, hours, minutes).getTime();
|
|
5880
|
-
const MINUTE = 60_000;
|
|
5881
|
-
|
|
5882
|
-
/** Tuesday, 17 March 2026, 10:30 - the moment the screens are read at. */
|
|
5883
|
-
const NOW = at(17, 10, 30);
|
|
5884
|
-
|
|
5885
|
-
interface Service {
|
|
5886
|
-
id: string;
|
|
5887
|
-
name: string;
|
|
5888
|
-
team: string;
|
|
5889
|
-
/** 1 is customer-facing and pages at night; 3 waits for the morning. */
|
|
5890
|
-
tier: 1 | 2 | 3;
|
|
5891
|
-
/** The latency objective: the 95th percentile stays below this, in ms. */
|
|
5892
|
-
latencySlo: number;
|
|
5893
|
-
/** The availability promised for a month, in per cent. */
|
|
5894
|
-
availabilityTarget: number;
|
|
5895
|
-
}
|
|
5896
|
-
|
|
5897
|
-
const SERVICES: readonly Service[] = [
|
|
5898
|
-
{ id: "checkout", name: "Checkout", team: "Payments", tier: 1, latencySlo: 300, availabilityTarget: 99.95 },
|
|
5899
|
-
{ id: "billing", name: "Billing", team: "Payments", tier: 1, latencySlo: 400, availabilityTarget: 99.9 },
|
|
5900
|
-
{ id: "sign-in", name: "Sign-in", team: "Identity", tier: 1, latencySlo: 200, availabilityTarget: 99.95 },
|
|
5901
|
-
{ id: "search", name: "Search", team: "Discovery", tier: 1, latencySlo: 250, availabilityTarget: 99.9 },
|
|
5902
|
-
{ id: "images", name: "Image service", team: "Discovery", tier: 2, latencySlo: 500, availabilityTarget: 99.5 },
|
|
5903
|
-
{ id: "notifications", name: "Notifications", team: "Messaging", tier: 2, latencySlo: 800, availabilityTarget: 99.5 },
|
|
5904
|
-
{ id: "webhooks", name: "Webhooks", team: "Integrations", tier: 2, latencySlo: 1000, availabilityTarget: 99.5 },
|
|
5905
|
-
{ id: "reports", name: "Reporting", team: "Insights", tier: 3, latencySlo: 2000, availabilityTarget: 99 },
|
|
5906
|
-
];
|
|
5907
|
-
|
|
5908
|
-
interface MetricPoint {
|
|
5909
|
-
t: number;
|
|
5910
|
-
/** Median and 95th percentile latency, in ms. */
|
|
5911
|
-
p50: number;
|
|
5912
|
-
p95: number;
|
|
5913
|
-
/** Failed requests, in per cent. */
|
|
5914
|
-
errorRate: number;
|
|
5915
|
-
/** Requests per minute. */
|
|
5916
|
-
requests: number;
|
|
5917
|
-
}
|
|
5918
|
-
|
|
5919
|
-
/** Requests per minute at the busiest hour, by tier. */
|
|
5920
|
-
const VOLUME = { 1: 900, 2: 400, 3: 120 } as const;
|
|
5921
|
-
|
|
5922
|
-
/** A service's latency and error rate every five minutes of today, from
|
|
5923
|
-
midnight up to now. Busy by day, quiet at night; Checkout's 95th percentile
|
|
5924
|
-
climbs well past its objective from 09:40 to 10:10, and its errors with it. */
|
|
5925
|
-
function metrics(serviceId: string): MetricPoint[] {
|
|
5926
|
-
const index = SERVICES.findIndex((one) => one.id === serviceId);
|
|
5927
|
-
const service = SERVICES[index];
|
|
5928
|
-
if (service === undefined) throw new Error(`No service "${serviceId}".`);
|
|
5929
|
-
const r = random(1000 + index * 37);
|
|
5930
|
-
const points: MetricPoint[] = [];
|
|
5931
|
-
let drift = 0;
|
|
5932
|
-
for (let t = at(17, 0); t <= NOW; t += 5 * MINUTE) {
|
|
5933
|
-
const hour = (t - at(17, 0)) / (60 * MINUTE);
|
|
5934
|
-
const load = 0.35 + 0.65 * Math.max(0, Math.sin((Math.PI * (hour - 5)) / 16));
|
|
5935
|
-
drift = 0.8 * drift + (r() - 0.5) * 0.08;
|
|
5936
|
-
const base = service.latencySlo * (0.45 + 0.2 * load + drift);
|
|
5937
|
-
const surge = serviceId === "checkout" && t >= at(17, 9, 40) && t < at(17, 10, 10) ? 1.9 : 1;
|
|
5938
|
-
const p95 = Math.round(base * surge * (1 + r() * 0.08));
|
|
5939
|
-
points.push({
|
|
5940
|
-
t,
|
|
5941
|
-
p50: Math.round(p95 * (0.42 + r() * 0.06)),
|
|
5942
|
-
p95,
|
|
5943
|
-
errorRate: Math.round((0.05 + r() * 0.12 + (surge > 1 ? 2.4 + r() : 0)) * 100) / 100,
|
|
5944
|
-
requests: Math.round(VOLUME[service.tier] * load * (1 + (r() - 0.5) * 0.1)),
|
|
5945
|
-
});
|
|
5946
|
-
}
|
|
5947
|
-
return points;
|
|
5948
|
-
}
|
|
5949
|
-
|
|
5950
|
-
const TOOLS: readonly DockTool[] = [
|
|
5951
|
-
{ id: "zoom-in", label: "Zoom in", icon: <PlusGlyph /> },
|
|
5952
|
-
{ id: "zoom-out", label: "Zoom out", icon: <MinusGlyph />, disabled: true },
|
|
5953
|
-
{ id: "grid", label: "Grid", icon: <GridGlyph /> },
|
|
5954
|
-
{ id: "measure", label: "Measure", icon: <MeasureGlyph /> },
|
|
5955
|
-
{ id: "clear", label: "Clear the selection", icon: <CrossGlyph /> },
|
|
5956
|
-
];
|
|
5957
|
-
|
|
5958
|
-
/** Which tools are modes is the application's knowledge, not the dock's. */
|
|
5959
|
-
const MODES = new Set(["grid", "measure"]);
|
|
5960
|
-
|
|
5961
|
-
/* Checkout's p95 today, scaled into a 400 × 100 box: the chart the tools
|
|
5962
|
-
would act on, drawn as a plain line. */
|
|
5963
|
-
const P95 = metrics("checkout").map((point) => point.p95);
|
|
5964
|
-
const TOP = Math.max(...P95) * 1.1;
|
|
5965
|
-
const POINTS = P95.map((value, i) => `${((i / (P95.length - 1)) * 400).toFixed(1)},${(100 - (value / TOP) * 100).toFixed(1)}`).join(" ");
|
|
5966
|
-
|
|
5967
|
-
function Chart({ height, children }: { height: number; children: ReactNode }) {
|
|
5968
|
-
return (
|
|
5969
|
-
<div
|
|
5970
|
-
style={{
|
|
5971
|
-
position: "relative",
|
|
5972
|
-
height: `${height}px`,
|
|
5973
|
-
borderRadius: "var(--u-radius-lg)",
|
|
5974
|
-
overflow: "hidden",
|
|
5975
|
-
background:
|
|
5976
|
-
"repeating-linear-gradient(0deg, var(--u-hairline-strong) 0 1px, transparent 1px 24px)," +
|
|
5977
|
-
"repeating-linear-gradient(90deg, var(--u-hairline-strong) 0 1px, transparent 1px 24px)," +
|
|
5978
|
-
"var(--u-color-surface-sunken)",
|
|
5979
|
-
boxShadow: "var(--u-edge)",
|
|
5980
|
-
}}
|
|
5981
|
-
>
|
|
5982
|
-
<svg
|
|
5983
|
-
viewBox="0 0 400 100"
|
|
5984
|
-
preserveAspectRatio="none"
|
|
5985
|
-
role="img"
|
|
5986
|
-
aria-label="Checkout, p95 latency today"
|
|
5987
|
-
style={{ position: "absolute", inset: 0, width: "100%", height: "100%" }}
|
|
5988
|
-
>
|
|
5989
|
-
<polyline
|
|
5990
|
-
points={POINTS}
|
|
5991
|
-
fill="none"
|
|
5992
|
-
stroke="var(--u-color-accent)"
|
|
5993
|
-
strokeWidth="1.5"
|
|
5994
|
-
vectorEffect="non-scaling-stroke"
|
|
5995
|
-
strokeLinejoin="round"
|
|
5996
|
-
strokeLinecap="round"
|
|
5997
|
-
/>
|
|
5998
|
-
</svg>
|
|
5999
|
-
{children}
|
|
6000
|
-
</div>
|
|
6001
|
-
);
|
|
6002
|
-
}
|
|
6003
|
-
|
|
6004
|
-
export default function RoomAndNoRoom() {
|
|
6005
|
-
const [place, setPlace] = useState<DockPlace>("bottom");
|
|
6006
|
-
const [mode, setMode] = useState("grid");
|
|
6007
|
-
const [last, setLast] = useState<string | null>(null);
|
|
6008
|
-
|
|
6009
|
-
return (
|
|
6010
|
-
<Stack gap={4}>
|
|
6011
|
-
<div data-dock="spacious">
|
|
6012
|
-
<Chart height={320}>
|
|
6013
|
-
<Dock
|
|
6014
|
-
tools={TOOLS}
|
|
6015
|
-
place={place}
|
|
6016
|
-
onPlaceChange={setPlace}
|
|
6017
|
-
mode={mode}
|
|
6018
|
-
onModeChange={(id) => {
|
|
6019
|
-
if (MODES.has(id)) setMode(id);
|
|
6020
|
-
}}
|
|
6021
|
-
onUse={setLast}
|
|
6022
|
-
/>
|
|
6023
|
-
</Chart>
|
|
6024
|
-
</div>
|
|
6025
|
-
<Text size="xs" tone="muted">
|
|
6026
|
-
Resting place: <code>{place}</code>, mode: <code>{mode}</code>, last used: <code>{last ?? "none"}</code>
|
|
6027
|
-
</Text>
|
|
6028
|
-
|
|
6029
|
-
<Text size="sm" weight="medium">
|
|
6030
|
-
A flat chart, where the side edges refuse
|
|
6031
|
-
</Text>
|
|
6032
|
-
<div data-dock="flat">
|
|
6033
|
-
<Chart height={140}>
|
|
6034
|
-
<Dock tools={TOOLS} defaultPlace="bottom" mode="grid" />
|
|
6035
|
-
</Chart>
|
|
6036
|
-
</div>
|
|
6037
|
-
</Stack>
|
|
6038
|
-
);
|
|
6039
|
-
}
|
|
6040
|
-
```
|
|
6041
|
-
|
|
6042
|
-
#### When to use something else
|
|
6043
|
-
|
|
6044
|
-
- A toolbar standing in the flow above a table → `Toolbar` from @umriss-ui/table
|
|
6045
|
-
|
|
6046
|
-
#### Keyboard
|
|
6047
|
-
|
|
6048
|
-
| Key | Action |
|
|
6049
|
-
|---|---|
|
|
6050
|
-
| `Tab` | Moves to the handle, then into the tools: one stop for all of them. |
|
|
6051
|
-
| `Arrow keys (on a tool)` | Moves to the next or previous tool, passing disabled ones. |
|
|
6052
|
-
| `Home / End (on a tool)` | Moves to the first or the last tool. |
|
|
6053
|
-
| `Enter or Space (on a tool)` | Takes the tool. |
|
|
6054
|
-
| `Arrow Up / Right / Down / Left (on the handle)` | Moves the dock to the top, right, bottom or left edge. |
|
|
6055
|
-
| `Escape (while dragging)` | Puts the dock back where the drag started. |
|
|
6056
|
-
|
|
6057
|
-
#### Accessibility
|
|
6058
|
-
|
|
6059
|
-
The strip is a `group` named by `label`, "Tools" by default. The handle is a button named "Move dock", and each tool a button named by its `label`, which its tooltip shows too. Only the tool of the current `mode` carries `aria-pressed`; the others are not announced as switches that are off, since which tools are modes is yours to say.
|
|
6060
|
-
|
|
6061
|
-
A polite live region beside the strip says where the dock has gone - "Dock at the top" - or that an edge has no room for it - "No room for the dock on the left" - so a move by the arrow keys on the handle is heard, not only seen.
|
|
6062
|
-
|
|
6063
|
-
#### API
|
|
6064
|
-
|
|
6065
|
-
##### `DockProps`
|
|
6066
|
-
|
|
6067
|
-
| Prop | Type | Default | Description |
|
|
6068
|
-
|---|---|---|---|
|
|
6069
|
-
| `tools` *required* | `readonly `[`DockTool`](#type-DockTool)`[]` | — | The tools - a property and expressly not children. Children would read more flexibly and would cost exactly the one number that is needed: the dock must know how many tools it has in order to answer whether it would have room at a side edge at all - and to answer that before it is there.<br>Shown in: [A tool strip](#/dock/a-tool-strip), [Four resting places](#/dock/four-resting-places), [Modes and actions](#/dock/modes-and-actions) and 1 more |
|
|
6070
|
-
| `defaultPlace` | [`DockPlace`](#type-DockPlace)<br>`"top" \| "right" \| "bottom" \| "left"` | `DEFAULT_PLACE` | Uncontrolled: the resting place it starts with.<br>Shown in: [A tool strip](#/dock/a-tool-strip), [Modes and actions](#/dock/modes-and-actions), [Move the dock, and where it does not fit](#/dock/room-and-no-room) |
|
|
6071
|
-
| `place` | [`DockPlace`](#type-DockPlace)<br>`"top" \| "right" \| "bottom" \| "left"` | — | Controlled: the dock reports and waits, it does not move itself.<br>Shown in: [Four resting places](#/dock/four-resting-places), [Move the dock, and where it does not fit](#/dock/room-and-no-room) |
|
|
6072
|
-
| `onPlaceChange` | `(place: `[`DockPlace`](#type-DockPlace)`) => void` | — | Reports the desired resting place. Controlled, the dock moves only once `place` follows; uncontrolled it is merely a message.<br>Shown in: [Four resting places](#/dock/four-resting-places), [Move the dock, and where it does not fit](#/dock/room-and-no-room) |
|
|
6073
|
-
| `mode` | `string` | — | The mode - the tool the dock stands in. At most one, and without a value NONE is marked: a dock whose tools simply fire has no mode. None is invented either, and none is preset to the first tool - that would be a statement about the state of the application which this component cannot make.<br>Shown in: [Modes and actions](#/dock/modes-and-actions), [Move the dock, and where it does not fit](#/dock/room-and-no-room) |
|
|
6074
|
-
| `onModeChange` | `(id: string) => void` | — | Reported is only what is a CHANGE, and only as long as there is a mode at all: without `mode` there is no change of mode to report, and the taking itself reports `onUse`.<br>Shown in: [Modes and actions](#/dock/modes-and-actions), [Move the dock, and where it does not fit](#/dock/room-and-no-room) |
|
|
6075
|
-
| `label` | `string` | the wording's "Tools" | The accessible name of the dock. |
|
|
6076
|
-
|
|
6077
|
-
###### Events
|
|
6078
|
-
|
|
6079
|
-
| Prop | Type | Default | Description |
|
|
6080
|
-
|---|---|---|---|
|
|
6081
|
-
| `onUse` | `(id: string) => void` | — | A tool was taken.<br>Shown in: [Modes and actions](#/dock/modes-and-actions), [Move the dock, and where it does not fit](#/dock/room-and-no-room) |
|
|
6082
|
-
|
|
6083
|
-
Also takes every attribute of `<div>` – without `onSelect`.
|
|
6084
|
-
|
|
6085
|
-
##### `DockTool`
|
|
6086
|
-
|
|
6087
|
-
| Prop | Type | Default | Description |
|
|
6088
|
-
|---|---|---|---|
|
|
6089
|
-
| `id` *required* | `string` | — | What is reported on taking.<br>Shown in: [A tool strip](#/dock/a-tool-strip), [Four resting places](#/dock/four-resting-places), [Modes and actions](#/dock/modes-and-actions) and 1 more |
|
|
6090
|
-
| `label` *required* | `string` | — | The name. It reaches the eye through the tooltip and the screen reader through the accessible name - it never stands written, because a standing dock has no room for text.<br>Shown in: [A tool strip](#/dock/a-tool-strip), [Four resting places](#/dock/four-resting-places), [Modes and actions](#/dock/modes-and-actions) and 1 more |
|
|
6091
|
-
| `icon` *required* | `ReactNode` | — | The glyph. Drawn according to `packages/core/docs/glyphs.md`: only `currentColor`.<br>Shown in: [A tool strip](#/dock/a-tool-strip), [Four resting places](#/dock/four-resting-places), [Modes and actions](#/dock/modes-and-actions) and 1 more |
|
|
6092
|
-
| `disabled` | `boolean` | — | Shows the tool but does not let it be taken. It stays standing in the strip: a dock whose tools come and go grows and shrinks under the hand reaching for them.<br>Shown in: [Modes and actions](#/dock/modes-and-actions), [Move the dock, and where it does not fit](#/dock/room-and-no-room) |
|
|
6093
|
-
|
|
6094
|
-
##### Types on this page
|
|
6095
|
-
|
|
6096
|
-
###### `DockPlace`
|
|
6097
|
-
|
|
6098
|
-
The outside of the resting place: one of the four edges of the host.
|
|
6099
|
-
There is no fifth and no corner.
|
|
6100
|
-
|
|
6101
|
-
```ts
|
|
6102
|
-
type DockPlace = "top" | "right" | "bottom" | "left";
|
|
6103
|
-
```
|
|
6104
|
-
|
|
6105
|
-
#### Known limits
|
|
6106
|
-
|
|
6107
|
-
- No free position and no corner: four resting places only ([ADR-0013](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0013-a-dock-snaps-it-does-not-follow.md)).
|
|
6108
|
-
- No overflow menu and no shrinking; a dock with more tools than an edge holds is refused at that edge.
|
|
6109
|
-
- It does not remember its place beyond its own life; keep it in the user's settings through `place`.
|
|
6110
|
-
|
|
6111
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://romanhaendler.github.io/umriss-ui/what-umriss-ui-is-not/).
|
|
6112
|
-
|
|
6113
5642
|
## Typography
|
|
6114
5643
|
|
|
6115
5644
|
The type a screen is set in.
|
|
@@ -6468,9 +5997,9 @@ export default function IncidentSummary() {
|
|
|
6468
5997
|
| Prop | Type | Default | Description |
|
|
6469
5998
|
|---|---|---|---|
|
|
6470
5999
|
| `as` | `ElementType` | `"p"` | Element to render as.<br>Shown in: [Tones and weights](#/typography/tones-and-weights), [Set an incident summary](#/typography/incident-summary), [Use the language in your own components (Language)](#/language/own-components) and 16 more |
|
|
6471
|
-
| `size` | [`TextSize`](#type-TextSize)<br>`"xs" \| "sm" \| "md" \| "lg" \| "xl" \| "2xl"` | `"md"` | Type size from the token set. It is independent of the element: a `p` may be small without becoming a different element.<br>Shown in: [Configurator](#/typography/configurator-typography), [Sizes](#/typography/sizes), [Tones and weights](#/typography/tones-and-weights) and
|
|
6472
|
-
| `weight` | [`TextWeight`](#type-TextWeight)<br>`"regular" \| "medium" \| "semibold"` | `"regular"` | Font weight from the token set.<br>Shown in: [Configurator](#/typography/configurator-typography), [Tones and weights](#/typography/tones-and-weights), [Tracking and leading](#/typography/tracking-and-leading) and
|
|
6473
|
-
| `tone` | [`TextTone`](#type-TextTone)<br>`"default" \| "secondary" \| "muted"` | `"default"` | How loud the text is. `secondary` and `muted` step back without falling below the contrast threshold.<br>Shown in: [Configurator](#/typography/configurator-typography), [Tones and weights](#/typography/tones-and-weights), [Tracking and leading](#/typography/tracking-and-leading) and
|
|
6000
|
+
| `size` | [`TextSize`](#type-TextSize)<br>`"xs" \| "sm" \| "md" \| "lg" \| "xl" \| "2xl"` | `"md"` | Type size from the token set. It is independent of the element: a `p` may be small without becoming a different element.<br>Shown in: [Configurator](#/typography/configurator-typography), [Sizes](#/typography/sizes), [Tones and weights](#/typography/tones-and-weights) and 128 more |
|
|
6001
|
+
| `weight` | [`TextWeight`](#type-TextWeight)<br>`"regular" \| "medium" \| "semibold"` | `"regular"` | Font weight from the token set.<br>Shown in: [Configurator](#/typography/configurator-typography), [Tones and weights](#/typography/tones-and-weights), [Tracking and leading](#/typography/tracking-and-leading) and 15 more |
|
|
6002
|
+
| `tone` | [`TextTone`](#type-TextTone)<br>`"default" \| "secondary" \| "muted"` | `"default"` | How loud the text is. `secondary` and `muted` step back without falling below the contrast threshold.<br>Shown in: [Configurator](#/typography/configurator-typography), [Tones and weights](#/typography/tones-and-weights), [Tracking and leading](#/typography/tracking-and-leading) and 93 more |
|
|
6474
6003
|
| `mono` | `boolean` | `false` | Geist Mono with tabular figures – for numbers and identifiers.<br>Shown in: [Configurator](#/typography/configurator-typography), [Numbers and identifiers](#/typography/numbers), [Handle long values](#/typography/long-values) and 30 more |
|
|
6475
6004
|
| `tracking` | [`TextTracking`](#type-TextTracking)<br>`"normal" \| "tight" \| "display" \| "caps"` | `"normal"` | Letter spacing from the token set. `caps` belongs with letterspaced capitals.<br>Shown in: [Configurator](#/typography/configurator-typography), [Tracking and leading](#/typography/tracking-and-leading), [Set an incident summary](#/typography/incident-summary) |
|
|
6476
6005
|
| `leading` | [`TextLeading`](#type-TextLeading)<br>`"normal" \| "tight"` | `"normal"` | Line spacing. `tight` for multi-line headings and key figures, where the normal spacing lets the lines fall apart.<br>Shown in: [Configurator](#/typography/configurator-typography), [Tracking and leading](#/typography/tracking-and-leading) |
|
|
@@ -6553,7 +6082,7 @@ What umriss deliberately does not build, and why: [ADR-0032](https://romanhaendl
|
|
|
6553
6082
|
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
6083
|
|
|
6555
6084
|
```ts
|
|
6556
|
-
import { VisuallyHidden } from "@umriss-ui/core";
|
|
6085
|
+
import { VisuallyHidden, announce } from "@umriss-ui/core";
|
|
6557
6086
|
```
|
|
6558
6087
|
|
|
6559
6088
|
Demo page: https://romanhaendler.github.io/umriss-ui/core/visuallyhidden/
|
|
@@ -7295,7 +6824,6 @@ export default function Toolbar() {
|
|
|
7295
6824
|
|
|
7296
6825
|
- The action is clearer said than drawn → Button
|
|
7297
6826
|
- Icon buttons that act on the same thing → ButtonGroup
|
|
7298
|
-
- A floating strip of tools over a canvas → Dock
|
|
7299
6827
|
|
|
7300
6828
|
#### Keyboard
|
|
7301
6829
|
|
|
@@ -8187,14 +7715,14 @@ The keys of [Input](#/input/keyboard-input), [NumberInput](#/numberinput/keyboar
|
|
|
8187
7715
|
| `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
7716
|
| `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
7717
|
| `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 |
|
|
7718
|
+
| `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
7719
|
| `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
7720
|
|
|
8193
7721
|
Also takes every attribute of `<div>`.
|
|
8194
7722
|
|
|
8195
7723
|
#### Known limits
|
|
8196
7724
|
|
|
8197
|
-
- No
|
|
7725
|
+
- 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
7726
|
- One field per `FormField`; a group of fields that share one label is a fieldset of your own.
|
|
8199
7727
|
|
|
8200
7728
|
What umriss deliberately does not build, and why: [ADR-0032](https://romanhaendler.github.io/umriss-ui/what-umriss-ui-is-not/).
|
|
@@ -10781,14 +10309,14 @@ export default function CheckADueDate() {
|
|
|
10781
10309
|
|
|
10782
10310
|
| Prop | Type | Default | Description |
|
|
10783
10311
|
|---|---|---|---|
|
|
10784
|
-
| `onChange` *required* | `(date: Date \| null) => void` | — | Runs as soon as a day is settled - on a click in the grid, on "Today"
|
|
10312
|
+
| `onChange` *required* | `(date: Date \| null) => void` | — | Runs as soon as a day is settled - on a click in the grid, on "Today" and on clearing (`null`). Every one of these ways hands out local midnight; there is none that delivers a time along with it.<br>Shown in: [Configurator](#/datepicker/configurator-datepicker), [Pick a day](#/datepicker/pick-a-day), [States](#/datepicker/states) and 8 more |
|
|
10785
10313
|
|
|
10786
10314
|
Also takes every attribute of `<span>` – without `defaultValue`, `onChange`.
|
|
10787
10315
|
|
|
10788
10316
|
#### Known limits
|
|
10789
10317
|
|
|
10790
10318
|
- No typing of a date into the field.
|
|
10791
|
-
-
|
|
10319
|
+
- 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
10320
|
|
|
10793
10321
|
What umriss deliberately does not build, and why: [ADR-0032](https://romanhaendler.github.io/umriss-ui/what-umriss-ui-is-not/).
|
|
10794
10322
|
|
|
@@ -10958,7 +10486,7 @@ Also takes every attribute of `<span>` – without `defaultValue`, `onChange`.
|
|
|
10958
10486
|
|
|
10959
10487
|
#### Known limits
|
|
10960
10488
|
|
|
10961
|
-
-
|
|
10489
|
+
- 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
10490
|
|
|
10963
10491
|
What umriss deliberately does not build, and why: [ADR-0032](https://romanhaendler.github.io/umriss-ui/what-umriss-ui-is-not/).
|
|
10964
10492
|
|
|
@@ -11391,7 +10919,7 @@ the moment of the click.
|
|
|
11391
10919
|
|
|
11392
10920
|
#### Known limits
|
|
11393
10921
|
|
|
11394
|
-
-
|
|
10922
|
+
- 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
10923
|
- No recurring windows.
|
|
11396
10924
|
|
|
11397
10925
|
What umriss deliberately does not build, and why: [ADR-0032](https://romanhaendler.github.io/umriss-ui/what-umriss-ui-is-not/).
|
|
@@ -13892,7 +13420,7 @@ type ModalSize = "sm" | "md" | "lg";
|
|
|
13892
13420
|
|
|
13893
13421
|
#### Known limits
|
|
13894
13422
|
|
|
13895
|
-
- No non-modal window and no dragging or resizing: a panel that leaves the page usable is layout – a [Splitter](#/splitter)
|
|
13423
|
+
- No non-modal window and no dragging or resizing: a panel that leaves the page usable is layout – a [Splitter](#/splitter).
|
|
13896
13424
|
|
|
13897
13425
|
What umriss deliberately does not build, and why: [ADR-0032](https://romanhaendler.github.io/umriss-ui/what-umriss-ui-is-not/).
|
|
13898
13426
|
|
|
@@ -16660,7 +16188,7 @@ The keys of [Button](#/button/keyboard-button) apply here.
|
|
|
16660
16188
|
|
|
16661
16189
|
| Prop | Type | Default | Description |
|
|
16662
16190
|
|---|---|---|---|
|
|
16663
|
-
| `tone` | [`BadgeTone`](#type-BadgeTone)<br>`"neutral" \| "accent" \| "success" \| "warning" \| "danger"` | `"neutral"` | What the badge stands for. There is always a word beside it: a colour on its own is not a statement.<br>Shown in: [Configurator](#/badge/configurator-badge), [Tones](#/badge/tones), [Counters](#/badge/counters) and
|
|
16191
|
+
| `tone` | [`BadgeTone`](#type-BadgeTone)<br>`"neutral" \| "accent" \| "success" \| "warning" \| "danger"` | `"neutral"` | What the badge stands for. There is always a word beside it: a colour on its own is not a statement.<br>Shown in: [Configurator](#/badge/configurator-badge), [Tones](#/badge/tones), [Counters](#/badge/counters) and 19 more |
|
|
16664
16192
|
| `pill` | `boolean` | `false` | Fully rounded pill shape - for counters and key figures. The default is the slightly rounded badge shape for status labels.<br>Shown in: [Configurator](#/badge/configurator-badge), [Counters](#/badge/counters), [Fold the body (Card)](#/card/fold-the-body) and 1 more |
|
|
16665
16193
|
|
|
16666
16194
|
Also takes every attribute of `<span>`.
|
|
@@ -17724,8 +17252,7 @@ Also takes every attribute of `<div>` – without `children`.
|
|
|
17724
17252
|
The set a value is read against.
|
|
17725
17253
|
|
|
17726
17254
|
The target stands beside the limits and is not one: it is missed, never
|
|
17727
|
-
violated, and it is never the edge of a region.
|
|
17728
|
-
tile turns red for being above target.
|
|
17255
|
+
violated, and it is never the edge of a region.
|
|
17729
17256
|
|
|
17730
17257
|
| Prop | Type | Default | Description |
|
|
17731
17258
|
|---|---|---|---|
|
|
@@ -17752,8 +17279,7 @@ A bound: a value, a side, a severity.
|
|
|
17752
17279
|
|
|
17753
17280
|
No tolerance band as input. A band is derived - two limits of equal
|
|
17754
17281
|
severity on opposite sides enclose one - and as an input type it would
|
|
17755
|
-
force a `null` on one edge in the one-sided case.
|
|
17756
|
-
case, not the exception.
|
|
17282
|
+
force a `null` on one edge in the one-sided case.
|
|
17757
17283
|
|
|
17758
17284
|
| Prop | Type | Default | Description |
|
|
17759
17285
|
|---|---|---|---|
|
|
@@ -17772,8 +17298,7 @@ type Side = "upper" | "lower";
|
|
|
17772
17298
|
###### `Severity`
|
|
17773
17299
|
|
|
17774
17300
|
How seriously a violation weighs: one severity that advises and one that
|
|
17775
|
-
calls for action. Exactly two
|
|
17776
|
-
the screen, and five colours are noise. For a third distinction one sets a
|
|
17301
|
+
calls for action. Exactly two; for a third distinction one sets a
|
|
17777
17302
|
second limit.
|
|
17778
17303
|
|
|
17779
17304
|
```ts
|
|
@@ -18368,7 +17893,7 @@ dialog, a toast or an alert - one drawing at the size of its place.
|
|
|
18368
17893
|
const CrossGlyph: import("react").ForwardRefExoticComponent<Omit<GlyphProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
18369
17894
|
```
|
|
18370
17895
|
|
|
18371
|
-
Used on [
|
|
17896
|
+
Used on [IconButton](#/iconbutton).
|
|
18372
17897
|
|
|
18373
17898
|
##### `DatePicker`
|
|
18374
17899
|
|
|
@@ -18400,12 +17925,6 @@ Used on [Sizes](#/sizes) and [DateTimeRangePicker](#/datetimerangepicker).
|
|
|
18400
17925
|
|
|
18401
17926
|
Used on [Stack and Grid](#/stack-and-grid), [Divider](#/divider), [Switch](#/switch), [ProgressBar](#/progressbar) and [CommandPalette](#/commandpalette).
|
|
18402
17927
|
|
|
18403
|
-
##### `Dock`
|
|
18404
|
-
|
|
18405
|
-
[Dock](#/dock) – A strip of tools that floats above one surface, a chart or a map, and rests at the edge the user moves it to (also called a floating toolbar). Reach for it when the tools act on that surface and must not take room from it.
|
|
18406
|
-
|
|
18407
|
-
Used on [Dock](#/dock).
|
|
18408
|
-
|
|
18409
17928
|
##### `Drawer`
|
|
18410
17929
|
|
|
18411
17930
|
[Drawer](#/drawer) – A modal window that slides in from the left or right edge of the screen (also called a side sheet or side panel). Reach for it for the detail of something picked from a list, while the list stays in sight behind it.
|
|
@@ -18449,7 +17968,7 @@ function FormFieldBoundary({ children }: {
|
|
|
18449
17968
|
[Stack and Grid](#/stack-and-grid) – Children in a grid: a fixed number of columns, a list of column widths,
|
|
18450
17969
|
or as many columns as fit at `minItemWidth`.
|
|
18451
17970
|
|
|
18452
|
-
Used on [Scenarios](#/), [Theming](#/theming), [Sizes](#/sizes), [Language](#/language), [Stack and Grid](#/stack-and-grid), [Card](#/card), [Splitter](#/splitter), [
|
|
17971
|
+
Used on [Scenarios](#/), [Theming](#/theming), [Sizes](#/sizes), [Language](#/language), [Stack and Grid](#/stack-and-grid), [Card](#/card), [Splitter](#/splitter), [Typography](#/typography), [Input](#/input), [FormField](#/formfield), [Textarea](#/textarea), [NumberInput](#/numberinput), [Slider](#/slider), [Checkbox](#/checkbox), [Switch](#/switch), [RadioGroup](#/radiogroup), [FileInput](#/fileinput), [Select](#/select), [Combobox](#/combobox), [MultiSelect](#/multiselect), [DatePicker](#/datepicker), [DateTimePicker](#/datetimepicker), [DateRangePicker](#/daterangepicker), [DateTimeRangePicker](#/datetimerangepicker), [Modal](#/modal), [Drawer](#/drawer), [CommandPalette](#/commandpalette), [Breadcrumb](#/breadcrumb), [Tabs](#/tabs), [TreeView](#/treeview), [Stat](#/stat) and [Meter](#/meter).
|
|
18453
17972
|
|
|
18454
17973
|
##### `GridGlyph`
|
|
18455
17974
|
|
|
@@ -18460,20 +17979,13 @@ purpose, otherwise it would be a window.
|
|
|
18460
17979
|
const GridGlyph: import("react").ForwardRefExoticComponent<Omit<GlyphProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
18461
17980
|
```
|
|
18462
17981
|
|
|
18463
|
-
Used on [
|
|
17982
|
+
Used on [CommandPalette](#/commandpalette).
|
|
18464
17983
|
|
|
18465
17984
|
##### `GripGlyph`
|
|
18466
17985
|
|
|
18467
|
-
The grip a
|
|
18468
|
-
would be the obvious form and is wrong here - dots are fill, and point 4 of
|
|
17986
|
+
The grip a drag is taken by: two grooves. Dots are fill, and point 4 of
|
|
18469
17987
|
the specification draws with the stroke.
|
|
18470
17988
|
|
|
18471
|
-
The grooves stand the same way in both orientations of the dock. Turning
|
|
18472
|
-
them with it would be prettier and would need a `rotate()` in a component
|
|
18473
|
-
whose acceptance ([ADR-0014](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0014-a-turn-that-cannot-be-a-transition.md), ticket 04) rules exactly that out - a glyph
|
|
18474
|
-
that has to be rotated to be right is one that would be rotated along at
|
|
18475
|
-
the change.
|
|
18476
|
-
|
|
18477
17989
|
```ts
|
|
18478
17990
|
const GripGlyph: import("react").ForwardRefExoticComponent<Omit<GlyphProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
18479
17991
|
```
|
|
@@ -18517,15 +18029,13 @@ Used on [Scenarios](#/), [Theming](#/theming), [Typography](#/typography) and [M
|
|
|
18517
18029
|
|
|
18518
18030
|
##### `MeasureGlyph`
|
|
18519
18031
|
|
|
18520
|
-
Measuring: a line with two end marks. Not a ruler with a scale
|
|
18032
|
+
Measuring: a line with two end marks. Not a ruler with a scale: the teeth
|
|
18521
18033
|
would be a grey stripe at ten nominal units.
|
|
18522
18034
|
|
|
18523
18035
|
```ts
|
|
18524
18036
|
const MeasureGlyph: import("react").ForwardRefExoticComponent<Omit<GlyphProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
18525
18037
|
```
|
|
18526
18038
|
|
|
18527
|
-
Used on [Dock](#/dock).
|
|
18528
|
-
|
|
18529
18039
|
##### `Menu`
|
|
18530
18040
|
|
|
18531
18041
|
[Menu](#/menu) – A list of actions that opens under a button (also called a dropdown menu). Reach for it when a place has more actions than room for buttons, or for the actions of each row in a list.
|
|
@@ -18563,7 +18073,7 @@ The minus of `NumberInput`'s step buttons.
|
|
|
18563
18073
|
const MinusGlyph: import("react").ForwardRefExoticComponent<Omit<GlyphProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
18564
18074
|
```
|
|
18565
18075
|
|
|
18566
|
-
Used on [
|
|
18076
|
+
Used on [IconButton](#/iconbutton).
|
|
18567
18077
|
|
|
18568
18078
|
##### `Modal`
|
|
18569
18079
|
|
|
@@ -18619,7 +18129,7 @@ The plus of `NumberInput`'s step buttons.
|
|
|
18619
18129
|
const PlusGlyph: import("react").ForwardRefExoticComponent<Omit<GlyphProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
18620
18130
|
```
|
|
18621
18131
|
|
|
18622
|
-
Used on [
|
|
18132
|
+
Used on [IconButton](#/iconbutton).
|
|
18623
18133
|
|
|
18624
18134
|
##### `Popover`
|
|
18625
18135
|
|
|
@@ -18694,7 +18204,7 @@ Used on [Splitter](#/splitter) and [CommandPalette](#/commandpalette).
|
|
|
18694
18204
|
[Stack and Grid](#/stack-and-grid) – Children below or beside one another, spaced by a step of the spacing
|
|
18695
18205
|
scale.
|
|
18696
18206
|
|
|
18697
|
-
Used on [Scenarios](#/), [UmrissProvider](#/umrissprovider), [Theming](#/theming), [Sizes](#/sizes), [Language](#/language), [Stack and Grid](#/stack-and-grid), [Divider](#/divider), [Card](#/card), [Splitter](#/splitter), [
|
|
18207
|
+
Used on [Scenarios](#/), [UmrissProvider](#/umrissprovider), [Theming](#/theming), [Sizes](#/sizes), [Language](#/language), [Stack and Grid](#/stack-and-grid), [Divider](#/divider), [Card](#/card), [Splitter](#/splitter), [Typography](#/typography), [VisuallyHidden](#/visuallyhidden), [Button](#/button), [IconButton](#/iconbutton), [ButtonGroup](#/buttongroup), [Input](#/input), [FormField](#/formfield), [Textarea](#/textarea), [NumberInput](#/numberinput), [Slider](#/slider), [Checkbox](#/checkbox), [Switch](#/switch), [SegmentedControl](#/segmentedcontrol), [FileInput](#/fileinput), [Select](#/select), [Combobox](#/combobox), [MultiSelect](#/multiselect), [DatePicker](#/datepicker), [DateTimePicker](#/datetimepicker), [DateRangePicker](#/daterangepicker), [DateTimeRangePicker](#/datetimerangepicker), [Spinner](#/spinner), [ProgressBar](#/progressbar), [Skeleton](#/skeleton), [Alert](#/alert), [Toast](#/toast), [EmptyState](#/emptystate), [Tooltip](#/tooltip), [Popover](#/popover), [Menu](#/menu), [ContextMenu](#/contextmenu), [Modal](#/modal), [Drawer](#/drawer), [ConfirmDialog](#/confirmdialog), [CommandPalette](#/commandpalette), [Breadcrumb](#/breadcrumb), [Tabs](#/tabs), [Accordion](#/accordion), [Stepper](#/stepper), [TreeView](#/treeview), [Badge](#/badge), [Tag](#/tag), [Stat](#/stat), [Meter](#/meter) and [Sparkline](#/sparkline).
|
|
18698
18208
|
|
|
18699
18209
|
##### `Stat`
|
|
18700
18210
|
|
|
@@ -18719,7 +18229,7 @@ Used on [Scenarios](#/), [Theming](#/theming), [Sizes](#/sizes), [Switch](#/swit
|
|
|
18719
18229
|
[Tabs](#/tabs) – One tab of a `TabList`; choosing it shows the `TabPanel` of the same
|
|
18720
18230
|
`value`.
|
|
18721
18231
|
|
|
18722
|
-
Used on [Scenarios](#/), [Card](#/card), [
|
|
18232
|
+
Used on [Scenarios](#/), [Card](#/card), [Typography](#/typography), [VisuallyHidden](#/visuallyhidden), [Button](#/button), [IconButton](#/iconbutton), [ButtonGroup](#/buttongroup), [Input](#/input), [Textarea](#/textarea), [RadioGroup](#/radiogroup), [SegmentedControl](#/segmentedcontrol), [Select](#/select), [Alert](#/alert), [Toast](#/toast), [Tooltip](#/tooltip), [Menu](#/menu), [Modal](#/modal), [Drawer](#/drawer), [ConfirmDialog](#/confirmdialog), [Breadcrumb](#/breadcrumb), [Tabs](#/tabs), [Accordion](#/accordion) and [Tag](#/tag).
|
|
18723
18233
|
|
|
18724
18234
|
##### `TabList`
|
|
18725
18235
|
|
|
@@ -18763,7 +18273,7 @@ Used on [Scenarios](#/), [EmptyState](#/emptystate) and [Tag](#/tag).
|
|
|
18763
18273
|
[Typography](#/typography) – Body text from the token set; `as` chooses the element, independent of the
|
|
18764
18274
|
size.
|
|
18765
18275
|
|
|
18766
|
-
Used on [Scenarios](#/), [UmrissProvider](#/umrissprovider), [Theming](#/theming), [Sizes](#/sizes), [Language](#/language), [Stack and Grid](#/stack-and-grid), [Divider](#/divider), [Card](#/card), [Splitter](#/splitter), [
|
|
18276
|
+
Used on [Scenarios](#/), [UmrissProvider](#/umrissprovider), [Theming](#/theming), [Sizes](#/sizes), [Language](#/language), [Stack and Grid](#/stack-and-grid), [Divider](#/divider), [Card](#/card), [Splitter](#/splitter), [Typography](#/typography), [VisuallyHidden](#/visuallyhidden), [Button](#/button), [IconButton](#/iconbutton), [ButtonGroup](#/buttongroup), [Input](#/input), [FormField](#/formfield), [Textarea](#/textarea), [NumberInput](#/numberinput), [Slider](#/slider), [Switch](#/switch), [SegmentedControl](#/segmentedcontrol), [FileInput](#/fileinput), [Select](#/select), [Combobox](#/combobox), [MultiSelect](#/multiselect), [DatePicker](#/datepicker), [DateTimePicker](#/datetimepicker), [DateRangePicker](#/daterangepicker), [DateTimeRangePicker](#/datetimerangepicker), [Spinner](#/spinner), [ProgressBar](#/progressbar), [Skeleton](#/skeleton), [Toast](#/toast), [EmptyState](#/emptystate), [Tooltip](#/tooltip), [Popover](#/popover), [Menu](#/menu), [ContextMenu](#/contextmenu), [Modal](#/modal), [Drawer](#/drawer), [ConfirmDialog](#/confirmdialog), [CommandPalette](#/commandpalette), [Breadcrumb](#/breadcrumb), [Tabs](#/tabs), [Accordion](#/accordion), [Stepper](#/stepper), [TreeView](#/treeview), [Badge](#/badge), [Tag](#/tag), [Stat](#/stat), [Meter](#/meter) and [Sparkline](#/sparkline).
|
|
18767
18277
|
|
|
18768
18278
|
##### `Textarea`
|
|
18769
18279
|
|
|
@@ -18844,8 +18354,7 @@ const useDensity: () => Density;
|
|
|
18844
18354
|
A component's `density`: its own value, else the density the provider
|
|
18845
18355
|
explicitly configured, else its own default.
|
|
18846
18356
|
|
|
18847
|
-
"comfortable" means "regular" here. A compact set of tokens does not exist
|
|
18848
|
-
that is work package B.13; here only what exists is wired up.
|
|
18357
|
+
"comfortable" means "regular" here. A compact set of tokens does not exist.
|
|
18849
18358
|
|
|
18850
18359
|
```ts
|
|
18851
18360
|
function useDensityFor(own: "regular" | "compact" | undefined, fallback: "regular" | "compact"): "regular" | "compact";
|
|
@@ -18957,9 +18466,8 @@ Holds the scroll position and the measured heights and derives the window
|
|
|
18957
18466
|
from them.
|
|
18958
18467
|
|
|
18959
18468
|
It is measured on the first rendered row rather than taken from the caller's
|
|
18960
|
-
value: row height depends on density, font size and zoom, and
|
|
18961
|
-
|
|
18962
|
-
forty thousand pixels.
|
|
18469
|
+
value: row height depends on density, font size and zoom, and a small error
|
|
18470
|
+
adds up over many rows to a scrollbar that lies.
|
|
18963
18471
|
|
|
18964
18472
|
```ts
|
|
18965
18473
|
function useVirtual(count: number, options: VirtualOptions): VirtualRows;
|
|
@@ -19004,6 +18512,27 @@ otherwise trigger a thousand requests ([ADR-0005](https://github.com/romanhaendl
|
|
|
19004
18512
|
function allBranches<K, S extends Key = string>(roots: readonly K[], reader: NodeReader<K, S>): S[];
|
|
19005
18513
|
```
|
|
19006
18514
|
|
|
18515
|
+
##### `announce`
|
|
18516
|
+
|
|
18517
|
+
The library's one voice: says `text` in a polite live region, for what
|
|
18518
|
+
happened without a visible change in the place a reader is at - a copy made,
|
|
18519
|
+
a count after a filter. Use it instead of a region of your own: there is one
|
|
18520
|
+
region, so two announcements never speak over each other.
|
|
18521
|
+
|
|
18522
|
+
Says `text` once announcements have rested for `ANNOUNCE_REST`; a later call
|
|
18523
|
+
within the rest replaces an earlier one.
|
|
18524
|
+
|
|
18525
|
+
`at` is the element that speaks. Inside a modal `<dialog>` everything else
|
|
18526
|
+
is inert and a region there is silent, so the region is the dialog's own -
|
|
18527
|
+
the portal target's rule, without the provider's setting: that decides where
|
|
18528
|
+
a surface is laid out, and a region is laid out nowhere.
|
|
18529
|
+
|
|
18530
|
+
```ts
|
|
18531
|
+
function announce(text: string, at?: Element | null): void;
|
|
18532
|
+
```
|
|
18533
|
+
|
|
18534
|
+
Used on [VisuallyHidden](#/visuallyhidden) and [CommandPalette](#/commandpalette).
|
|
18535
|
+
|
|
19007
18536
|
##### `assess`
|
|
19008
18537
|
|
|
19009
18538
|
What the value is, given the limit set. A pure function of the two.
|
|
@@ -19016,9 +18545,7 @@ severe ones the one with the greatest excess. A warning must not hide an
|
|
|
19016
18545
|
alarm, even where the value lies further beyond the warning.
|
|
19017
18546
|
|
|
19018
18547
|
No hysteresis: that would need the previous state, and a function of a
|
|
19019
|
-
single value has none.
|
|
19020
|
-
duplicate; the trailing of an alarm belongs to its lifecycle and not to a
|
|
19021
|
-
bound.
|
|
18548
|
+
single value has none.
|
|
19022
18549
|
|
|
19023
18550
|
```ts
|
|
19024
18551
|
function assess(value: number | null | undefined, set?: LimitSet): Assessment;
|
|
@@ -19042,50 +18569,16 @@ is then enough.
|
|
|
19042
18569
|
function cadence(ages: FreshnessAges): number;
|
|
19043
18570
|
```
|
|
19044
18571
|
|
|
19045
|
-
##### `clampedHeight`
|
|
19046
|
-
|
|
19047
|
-
The height the field is allowed to take on. Without an upper bound it
|
|
19048
|
-
grows with its content; with one, up to that many rows and then no
|
|
19049
|
-
further.
|
|
19050
|
-
|
|
19051
|
-
A line height of 0 is treated as "not measurable yet" (the font has not
|
|
19052
|
-
been loaded), because otherwise the field visibly collapsed while
|
|
19053
|
-
loading.
|
|
19054
|
-
|
|
19055
|
-
```ts
|
|
19056
|
-
const clampedHeight: (measured: number, lineHeight: number, maxRows: number | undefined) => number;
|
|
19057
|
-
```
|
|
19058
|
-
|
|
19059
|
-
##### `collapse`
|
|
19060
|
-
|
|
19061
|
-
Closes a branch. Returns the same snapshot where it is closed already.
|
|
19062
|
-
|
|
19063
|
-
```ts
|
|
19064
|
-
function collapse<S extends Key>(snapshot: TreeSnapshot<S>, key: S): TreeSnapshot<S>;
|
|
19065
|
-
```
|
|
19066
|
-
|
|
19067
|
-
Used on [Scenarios](#/), [Meter](#/meter) and [Sparkline](#/sparkline).
|
|
19068
|
-
|
|
19069
18572
|
##### `duplicateKey`
|
|
19070
18573
|
|
|
19071
18574
|
The first key that occurs twice, otherwise null. Two nodes with the same
|
|
19072
|
-
key break the cascade and the active node silently -
|
|
18575
|
+
key break the cascade and the active node silently - [`useTree`](#/api/useTree) reports
|
|
19073
18576
|
that during development.
|
|
19074
18577
|
|
|
19075
18578
|
```ts
|
|
19076
18579
|
function duplicateKey<K, S extends Key = string>(roots: readonly K[], reader: NodeReader<K, S>): S | null;
|
|
19077
18580
|
```
|
|
19078
18581
|
|
|
19079
|
-
##### `expand`
|
|
19080
|
-
|
|
19081
|
-
Opens a branch. Returns the same snapshot where it is open already.
|
|
19082
|
-
|
|
19083
|
-
```ts
|
|
19084
|
-
function expand<S extends Key>(snapshot: TreeSnapshot<S>, key: S): TreeSnapshot<S>;
|
|
19085
|
-
```
|
|
19086
|
-
|
|
19087
|
-
Used on [TreeView](#/treeview).
|
|
19088
|
-
|
|
19089
18582
|
##### `freshness`
|
|
19090
18583
|
|
|
19091
18584
|
The freshness of a value: its as-of time, measured against a reference time,
|
|
@@ -19106,50 +18599,14 @@ function freshness(asOf: Instant, now: Instant, ages: FreshnessAges): Freshness;
|
|
|
19106
18599
|
|
|
19107
18600
|
Used on [Scenarios](#/) and [Stat](#/stat).
|
|
19108
18601
|
|
|
19109
|
-
##### `keysBetween`
|
|
19110
|
-
|
|
19111
|
-
The checkable keys between two visible nodes, both ends included and
|
|
19112
|
-
independent of their order. Whatever may not be checked drops out: the
|
|
19113
|
-
gesture does what it can instead of nothing.
|
|
19114
|
-
|
|
19115
|
-
```ts
|
|
19116
|
-
function keysBetween<K, S extends Key = string>(flattening: readonly FlatteningEntry<K, S>[], from: S, to: S): S[];
|
|
19117
|
-
```
|
|
19118
|
-
|
|
19119
18602
|
##### `mergeLanguage`
|
|
19120
18603
|
|
|
19121
18604
|
Builds a complete instance from the default and a partial value.
|
|
19122
18605
|
|
|
19123
18606
|
```ts
|
|
19124
|
-
function mergeLanguage(
|
|
19125
|
-
```
|
|
19126
|
-
|
|
19127
|
-
##### `move`
|
|
19128
|
-
|
|
19129
|
-
Move the active node.
|
|
19130
|
-
|
|
19131
|
-
`in` and `out` have two meanings each, and that is intended: one key goes
|
|
19132
|
-
deeper, no matter whether something has to be opened for it first. Doing
|
|
19133
|
-
both at once - opening *and* stepping inside - makes the tree impossible to
|
|
19134
|
-
inspect without expanding it.
|
|
19135
|
-
|
|
19136
|
-
```ts
|
|
19137
|
-
function move<K, S extends Key = string>(flattening: readonly FlatteningEntry<K, S>[], snapshot: TreeSnapshot<S>, direction: Direction): TreeSnapshot<S>;
|
|
19138
|
-
```
|
|
19139
|
-
|
|
19140
|
-
Used on [Scenarios](#/), [Alert](#/alert) and [Stat](#/stat).
|
|
19141
|
-
|
|
19142
|
-
##### `pathTo`
|
|
19143
|
-
|
|
19144
|
-
The keys from the root down to the target, the target included; null if
|
|
19145
|
-
the key does not exist in the data.
|
|
19146
|
-
|
|
19147
|
-
```ts
|
|
19148
|
-
function pathTo<K, S extends Key = string>(roots: readonly K[], reader: NodeReader<K, S>, key: S): S[] | null;
|
|
18607
|
+
function mergeLanguage(options: LanguageOptions | undefined): Language;
|
|
19149
18608
|
```
|
|
19150
18609
|
|
|
19151
|
-
Used on [Breadcrumb](#/breadcrumb).
|
|
19152
|
-
|
|
19153
18610
|
##### `rangeDays`
|
|
19154
18611
|
|
|
19155
18612
|
The number of days in the range, both ends included. It is calculated on day
|
|
@@ -19162,46 +18619,12 @@ const rangeDays: (from: Date, to: Date) => number;
|
|
|
19162
18619
|
|
|
19163
18620
|
Used on [DateRangePicker](#/daterangepicker).
|
|
19164
18621
|
|
|
19165
|
-
##### `remainingChars`
|
|
19166
|
-
|
|
19167
|
-
How many characters still fit. Without a limit there is nothing to
|
|
19168
|
-
report. Counts the way the browser counts (UTF-16 units, an emoji is
|
|
19169
|
-
two), so that the display and `maxLength` say the same thing.
|
|
19170
|
-
|
|
19171
|
-
Negative is allowed and intended: a value set from outside does not know
|
|
19172
|
-
`maxLength`, and then the display is meant to show that.
|
|
19173
|
-
|
|
19174
|
-
```ts
|
|
19175
|
-
const remainingChars: (value: string, maxLength: number | undefined) => number | undefined;
|
|
19176
|
-
```
|
|
19177
|
-
|
|
19178
|
-
##### `revealPath`
|
|
19179
|
-
|
|
19180
|
-
Expands along a path as far as the data reaches, and reports the deepest
|
|
19181
|
-
key it got to.
|
|
19182
|
-
|
|
19183
|
-
The path is handed over and not searched for: a deep link knows it, the
|
|
19184
|
-
data does not know it yet. If the run gets stuck at an unloaded branch,
|
|
19185
|
-
that branch's key is the answer - and because it is expanded in the
|
|
19186
|
-
process, it triggers the loading at the same time. The caller loads and
|
|
19187
|
-
calls again; the same loop it already has for expanding anyway.
|
|
19188
|
-
|
|
19189
|
-
The target itself is not expanded: it is meant to be shown, not opened.
|
|
19190
|
-
|
|
19191
|
-
```ts
|
|
19192
|
-
function revealPath<K, S extends Key = string>(roots: readonly K[], reader: NodeReader<K, S>, snapshot: TreeSnapshot<S>, path: readonly S[]): {
|
|
19193
|
-
snapshot: TreeSnapshot<S>;
|
|
19194
|
-
reached: S | null;
|
|
19195
|
-
};
|
|
19196
|
-
```
|
|
19197
|
-
|
|
19198
18622
|
##### `scrollForRow`
|
|
19199
18623
|
|
|
19200
18624
|
The scroll position at which a row is visible - or null where it already is.
|
|
19201
18625
|
|
|
19202
|
-
This is the arithmetic the keyboard handling hangs on
|
|
19203
|
-
moves into a row that is not rendered
|
|
19204
|
-
virtualised table that cannot do this is worse than a paged one.
|
|
18626
|
+
This is the arithmetic the keyboard handling hangs on: without it the focus
|
|
18627
|
+
moves into a row that is not rendered.
|
|
19205
18628
|
|
|
19206
18629
|
The sticky header counts against the upper edge: a row standing exactly at
|
|
19207
18630
|
`scrollTop` lies behind it.
|
|
@@ -19215,71 +18638,14 @@ function scrollForRow(index: number, { rowHeight, scrollTop, viewportHeight, hea
|
|
|
19215
18638
|
The separators a set of formats writes, read off the formats themselves.
|
|
19216
18639
|
|
|
19217
18640
|
A field that formats a number must be able to read its own output back, and
|
|
19218
|
-
an application may have replaced `number` with anything
|
|
19219
|
-
|
|
19220
|
-
|
|
19221
|
-
decimal place, digits struck out, and what remains is the notation's own
|
|
19222
|
-
punctuation.
|
|
18641
|
+
an application may have replaced `number` with anything. So the
|
|
18642
|
+
separators are measured: one number with one decimal place, digits struck
|
|
18643
|
+
out, and what remains is the notation's own punctuation.
|
|
19223
18644
|
|
|
19224
18645
|
```ts
|
|
19225
18646
|
function separatorsOf(formats: Formats): Separators;
|
|
19226
18647
|
```
|
|
19227
18648
|
|
|
19228
|
-
##### `setActive`
|
|
19229
|
-
|
|
19230
|
-
Sets the active node; `null` for none. Returns the same snapshot where
|
|
19231
|
-
nothing changes.
|
|
19232
|
-
|
|
19233
|
-
```ts
|
|
19234
|
-
function setActive<S extends Key>(snapshot: TreeSnapshot<S>, key: S | null): TreeSnapshot<S>;
|
|
19235
|
-
```
|
|
19236
|
-
|
|
19237
|
-
##### `setAnchor`
|
|
19238
|
-
|
|
19239
|
-
Sets the node a range selection spans from; `null` for none. Returns the
|
|
19240
|
-
same snapshot where nothing changes.
|
|
19241
|
-
|
|
19242
|
-
```ts
|
|
19243
|
-
function setAnchor<S extends Key>(snapshot: TreeSnapshot<S>, key: S | null): TreeSnapshot<S>;
|
|
19244
|
-
```
|
|
19245
|
-
|
|
19246
|
-
##### `setChecked`
|
|
19247
|
-
|
|
19248
|
-
Sets a set of nodes to checked or unchecked - and does not toggle.
|
|
19249
|
-
|
|
19250
|
-
That is the decision which separates a range from a sequence of single
|
|
19251
|
-
clicks: if it contains a branch *and* one of its children, a sequence of
|
|
19252
|
-
toggles would touch the child twice and uncheck it again. Every target is
|
|
19253
|
-
set together with its descendants; afterwards all ancestors of the targets
|
|
19254
|
-
are reconciled, from the bottom up - and only those.
|
|
19255
|
-
|
|
19256
|
-
```ts
|
|
19257
|
-
function setChecked<K, S extends Key = string>(roots: readonly K[], reader: NodeReader<K, S>, snapshot: TreeSnapshot<S>, targets: readonly S[], on: boolean): TreeSnapshot<S>;
|
|
19258
|
-
```
|
|
19259
|
-
|
|
19260
|
-
Used on [TreeView](#/treeview).
|
|
19261
|
-
|
|
19262
|
-
##### `toggleAll`
|
|
19263
|
-
|
|
19264
|
-
Everything checkable on - or empty, if everything is on already.
|
|
19265
|
-
|
|
19266
|
-
```ts
|
|
19267
|
-
function toggleAll<K, S extends Key = string>(roots: readonly K[], reader: NodeReader<K, S>, snapshot: TreeSnapshot<S>): TreeSnapshot<S>;
|
|
19268
|
-
```
|
|
19269
|
-
|
|
19270
|
-
##### `toggleCheck`
|
|
19271
|
-
|
|
19272
|
-
Toggle a check: cascade downwards, reconcile upwards.
|
|
19273
|
-
|
|
19274
|
-
A single check is a range of one target - which is why the arithmetic
|
|
19275
|
-
stands there only once, and the direction comes from the same definition of
|
|
19276
|
-
"full" as in toggleAll. If the node is not checkable or does not exist, the
|
|
19277
|
-
snapshot stays unchanged.
|
|
19278
|
-
|
|
19279
|
-
```ts
|
|
19280
|
-
function toggleCheck<K, S extends Key = string>(roots: readonly K[], reader: NodeReader<K, S>, snapshot: TreeSnapshot<S>, key: S): TreeSnapshot<S>;
|
|
19281
|
-
```
|
|
19282
|
-
|
|
19283
18649
|
##### `treeModel`
|
|
19284
18650
|
|
|
19285
18651
|
The visible nodes in reading order.
|
|
@@ -19296,23 +18662,6 @@ actually expanded.
|
|
|
19296
18662
|
function treeModel<K, S extends Key = string>(roots: readonly K[], reader: NodeReader<K, S>, snapshot: TreeSnapshot<S>): readonly FlatteningEntry<K, S>[];
|
|
19297
18663
|
```
|
|
19298
18664
|
|
|
19299
|
-
##### `typeaheadTarget`
|
|
19300
|
-
|
|
19301
|
-
The next visible node whose label starts like this - or null.
|
|
19302
|
-
|
|
19303
|
-
A single letter searches **behind** the active node, so that the same
|
|
19304
|
-
letter pressed twice jumps onwards instead of finding the same node again.
|
|
19305
|
-
Several letters search **from** the active node, so that refining does not
|
|
19306
|
-
jump onwards. Both are intended and are the reason why the length of the
|
|
19307
|
-
prefix matters here.
|
|
19308
|
-
|
|
19309
|
-
At the end it wraps around. Disabled and unloaded nodes are valid targets:
|
|
19310
|
-
typeahead moves only the focus, and both are navigable.
|
|
19311
|
-
|
|
19312
|
-
```ts
|
|
19313
|
-
function typeaheadTarget<K, S extends Key = string>(flattening: readonly FlatteningEntry<K, S>[], prefix: string, active: S | null): S | null;
|
|
19314
|
-
```
|
|
19315
|
-
|
|
19316
18665
|
##### `verdictWeight`
|
|
19317
18666
|
|
|
19318
18667
|
How heavily a verdict weighs - for sorting and comparing, as when a matrix
|
|
@@ -19424,7 +18773,7 @@ The verdict and what led to it.
|
|
|
19424
18773
|
| `verdict` *required* | [`Verdict`](#type-Verdict)<br>`"ok" \| "unknown" \| "warning" \| "alarm"` | — | |
|
|
19425
18774
|
| `limit` | [`Limit`](#type-Limit) | — | The violated limit - the same object the caller passed in. Absent where none is violated. |
|
|
19426
18775
|
| `excess` | `number` | — | The amount beyond the bound, always positive. Absent where none is violated. |
|
|
19427
|
-
| `deviation` | `number` | — | The signed distance from the target. Absent where none is set: no target means no deviation, not a deviation of zero.
|
|
18776
|
+
| `deviation` | `number` | — | The signed distance from the target. Absent where none is set: no target means no deviation, not a deviation of zero. |
|
|
19428
18777
|
|
|
19429
18778
|
##### `BadgeProps`
|
|
19430
18779
|
|
|
@@ -19586,27 +18935,6 @@ type Direction = "up" | "down" | "in" | "out" | "start" | "end";
|
|
|
19586
18935
|
|
|
19587
18936
|
Its table stands on [Divider](#/divider/type-DividerProps).
|
|
19588
18937
|
|
|
19589
|
-
##### `DockPlace`
|
|
19590
|
-
|
|
19591
|
-
The outside of the resting place: one of the four edges of the host.
|
|
19592
|
-
There is no fifth and no corner.
|
|
19593
|
-
|
|
19594
|
-
```ts
|
|
19595
|
-
type DockPlace = "top" | "right" | "bottom" | "left";
|
|
19596
|
-
```
|
|
19597
|
-
|
|
19598
|
-
Used on [Dock](#/dock).
|
|
19599
|
-
|
|
19600
|
-
##### `DockProps`
|
|
19601
|
-
|
|
19602
|
-
Its table stands on [Dock](#/dock/type-DockProps).
|
|
19603
|
-
|
|
19604
|
-
##### `DockTool`
|
|
19605
|
-
|
|
19606
|
-
Its table stands on [Dock](#/dock/type-DockTool).
|
|
19607
|
-
|
|
19608
|
-
Used on [Dock](#/dock).
|
|
19609
|
-
|
|
19610
18938
|
##### `DrawerProps`
|
|
19611
18939
|
|
|
19612
18940
|
Its table stands on [Drawer](#/drawer/type-DrawerProps).
|
|
@@ -19710,7 +19038,7 @@ The props of a glyph: an SVG's attributes and its edge length.
|
|
|
19710
19038
|
|
|
19711
19039
|
| Prop | Type | Default | Description |
|
|
19712
19040
|
|---|---|---|---|
|
|
19713
|
-
| `size` | `number` | `12` | Edge length in pixels. The default is the size the glyph is
|
|
19041
|
+
| `size` | `number` | `12` | Edge length in pixels. The default is the size the glyph is drawn at in the components. |
|
|
19714
19042
|
|
|
19715
19043
|
Also takes every attribute of `<svg>` – without `children`, `viewBox`.
|
|
19716
19044
|
|
|
@@ -19779,8 +19107,7 @@ A bound: a value, a side, a severity.
|
|
|
19779
19107
|
|
|
19780
19108
|
No tolerance band as input. A band is derived - two limits of equal
|
|
19781
19109
|
severity on opposite sides enclose one - and as an input type it would
|
|
19782
|
-
force a `null` on one edge in the one-sided case.
|
|
19783
|
-
case, not the exception.
|
|
19110
|
+
force a `null` on one edge in the one-sided case.
|
|
19784
19111
|
|
|
19785
19112
|
| Prop | Type | Default | Description |
|
|
19786
19113
|
|---|---|---|---|
|
|
@@ -19793,8 +19120,7 @@ case, not the exception.
|
|
|
19793
19120
|
The set a value is read against.
|
|
19794
19121
|
|
|
19795
19122
|
The target stands beside the limits and is not one: it is missed, never
|
|
19796
|
-
violated, and it is never the edge of a region.
|
|
19797
|
-
tile turns red for being above target.
|
|
19123
|
+
violated, and it is never the edge of a region.
|
|
19798
19124
|
|
|
19799
19125
|
| Prop | Type | Default | Description |
|
|
19800
19126
|
|---|---|---|---|
|
|
@@ -19868,7 +19194,7 @@ thereby stays entirely the caller's.
|
|
|
19868
19194
|
| `children` *required* | `(node: K) => readonly K[] \| undefined` | — | `undefined` means leaf, an empty list means empty branch - the difference is visible and intended.<br>Shown in: [A tree (TreeView)](#/treeview/a-tree), [Tick a selection (TreeView)](#/treeview/tick-a-selection), [Load branches on demand (TreeView)](#/treeview/load-branches-on-demand) and 4 more |
|
|
19869
19195
|
| `label` *required* | `(node: K) => string` | — | Text the search checks against.<br>Shown in: [A tree (TreeView)](#/treeview/a-tree), [Tick a selection (TreeView)](#/treeview/tick-a-selection), [Load branches on demand (TreeView)](#/treeview/load-branches-on-demand) and 4 more |
|
|
19870
19196
|
| `disabled` | `(node: K) => boolean` | — | May this node be checked? Without an answer: everyone may. Disabled is a statement about the checkbox, not about the node - it stays navigable ([ADR-0005](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0005-what-cannot-be-checked.md)).<br>Shown in: [Search, check and reveal in a large tree (TreeView)](#/treeview/search-check-and-reveal) |
|
|
19871
|
-
| `unloaded` | `(node: K) => boolean` | — | Can this branch have children that are not present? Without an answer: no
|
|
19197
|
+
| `unloaded` | `(node: K) => boolean` | — | Can this branch have children that are not present? Without an answer: no.<br>Shown in: [Load branches on demand (TreeView)](#/treeview/load-branches-on-demand), [Search, check and reveal in a large tree (TreeView)](#/treeview/search-check-and-reveal) |
|
|
19872
19198
|
| `matches` | `(node: K) => boolean` | — | Does this node match? Given, it filters instead of the search text, which is then not read - a table matches by its columns and filters, not by one label. The path rule stays the same. |
|
|
19873
19199
|
|
|
19874
19200
|
Used on [Scenarios](#/) and [TreeView](#/treeview).
|
|
@@ -19965,8 +19291,7 @@ The two characters a notation separates with.
|
|
|
19965
19291
|
##### `Severity`
|
|
19966
19292
|
|
|
19967
19293
|
How seriously a violation weighs: one severity that advises and one that
|
|
19968
|
-
calls for action. Exactly two
|
|
19969
|
-
the screen, and five colours are noise. For a third distinction one sets a
|
|
19294
|
+
calls for action. Exactly two; for a third distinction one sets a
|
|
19970
19295
|
second limit.
|
|
19971
19296
|
|
|
19972
19297
|
```ts
|
|
@@ -20209,7 +19534,7 @@ either uncontrolled (`default…`) or controlled with its `on…` handler.
|
|
|
20209
19534
|
| `active` | `S \| null` | — | <br>Shown in: [Dispatch a tour (Scenarios)](#/scenarios/dispatch-a-tour) |
|
|
20210
19535
|
| `anchor` | `S \| null` | — | Where a range gesture spans from. Steerable from outside like the other four values, so that a range is repeatable. |
|
|
20211
19536
|
| `search` | `string` | — | <br>Shown in: [Search with the path (TreeView)](#/treeview/search-with-the-path), [Search, check and reveal in a large tree (TreeView)](#/treeview/search-check-and-reveal) |
|
|
20212
|
-
| `virtual` | [`VirtualOptions`](#type-VirtualOptions) | — | Render only what stands in the scroll area.
|
|
19537
|
+
| `virtual` | [`VirtualOptions`](#type-VirtualOptions) | — | Render only what stands in the scroll area. Optional: without it every row is rendered and no row height is needed.<br>Shown in: [Search, check and reveal in a large tree (TreeView)](#/treeview/search-check-and-reveal) |
|
|
20213
19538
|
|
|
20214
19539
|
###### Events
|
|
20215
19540
|
|
|
@@ -20267,9 +19592,8 @@ Used on [UmrissProvider](#/umrissprovider).
|
|
|
20267
19592
|
What a value is. Four outcomes, ordered by severity, `unknown` between
|
|
20268
19593
|
`ok` and `warning`: a value nobody has is a reason to look.
|
|
20269
19594
|
|
|
20270
|
-
The fourth outcome is not a `null
|
|
20271
|
-
call site
|
|
20272
|
-
against: a dead data source would look like a healthy service.
|
|
19595
|
+
The fourth outcome is not a `null`, which would invite `?? "ok"` at the
|
|
19596
|
+
call site: a dead data source would look like a healthy service.
|
|
20273
19597
|
|
|
20274
19598
|
```ts
|
|
20275
19599
|
type Verdict = "ok" | "unknown" | "warning" | "alarm";
|
|
@@ -20362,11 +19686,6 @@ Everything the library puts out as text.
|
|
|
20362
19686
|
| `paletteHintChoose` *required* | `string` | — | |
|
|
20363
19687
|
| `paletteHintClose` *required* | `string` | — | |
|
|
20364
19688
|
| `paletteKeyEsc` *required* | `string` | — | The legend on the Escape key. The arrows and the return key are glyphs and therefore do not stand here; "Esc" is a word and is called something else elsewhere. |
|
|
20365
|
-
| `dockTools` *required* | `string` | — | Accessible name of a dock's tools. |
|
|
20366
|
-
| `dockGrip` *required* | `string` | — | Accessible name of the grip - it says what it does, not what it is. |
|
|
20367
|
-
| `dockPlace` *required* | `(place: "top" \| "right" \| "bottom" \| "left") => string` | — | The four resting places, named. The keys are the `DockPlace` type's, and a register translates them: the German one answers "oben" where the English one answers "top". |
|
|
20368
|
-
| `dockPlaced` *required* | `(place: string) => string` | — | What the screen reader hears once the dock has taken a place. |
|
|
20369
|
-
| `dockNoPlace` *required* | `(place: string) => string` | — | And what it hears when a place has refused. A refusal is not a fault: a wide, flat host with no room for a standing dock is not a mistake anyone made. |
|
|
20370
19689
|
| `datePlaceholder` *required* | `string` | — | |
|
|
20371
19690
|
| `datePanel` *required* | `string` | — | Accessible name of the panel. Deliberately kept apart from the placeholder: whoever labels the field differently does not thereby rename the dialog. |
|
|
20372
19691
|
| `dateClear` *required* | `string` | — | |
|
|
@@ -20491,6 +19810,9 @@ Everything the library puts out as text.
|
|
|
20491
19810
|
| `calendarWeek` *required* | `(week: number, year: number) => string` | — | A group of the week key: "Week 42, 2026". |
|
|
20492
19811
|
| `entries` *required* | `(count: number, formatted: string) => string` | — | "128 entries" in the pagination bar; the plural belongs to the language. |
|
|
20493
19812
|
| `selectedCount` *required* | `(count: number, formatted: string) => string` | — | "3 selected" in the pagination bar and the table toolbar. |
|
|
19813
|
+
| `copiedRows` *required* | `(count: number, formatted: string) => string` | — | Said to a screen reader after Ctrl+C copied rows: "3 rows copied". |
|
|
19814
|
+
| `copiedCell` *required* | `string` | — | Said after Ctrl+C copied the active cell of a grid. |
|
|
19815
|
+
| `copyFailed` *required* | `string` | — | Said when the clipboard refused or is not there. |
|
|
20494
19816
|
| `noEntries` *required* | `string` | — | Empty because there are no rows. |
|
|
20495
19817
|
| `nothingMatchesFilters` *required* | `string` | — | Empty because search and filters leave nothing - something else. |
|
|
20496
19818
|
| `treeSearchPlaceholder` *required* | `string` | — | |
|
|
@@ -20520,42 +19842,6 @@ Everything the library puts out as text.
|
|
|
20520
19842
|
| `freshnessStale` *required* | `string` | — | |
|
|
20521
19843
|
| `freshnessDisconnected` *required* | `string` | — | |
|
|
20522
19844
|
| `asOfAgo` *required* | `(duration: string) => string` | — | "As of: 3 minutes ago", where the duration comes from the formats. |
|
|
20523
|
-
| `asOfUnknown` *required* | `string` | — | |
|
|
20524
|
-
| `alarms` *required* | `string` | — | |
|
|
20525
|
-
| `noAlarms` *required* | `string` | — | |
|
|
20526
|
-
| `noAlarmsDisconnected` *required* | `string` | — | Empty, but the line is down - that is something other than quiet. |
|
|
20527
|
-
| `acknowledgeAlarm` *required* | `string` | — | |
|
|
20528
|
-
| `acknowledgeAlarms` *required* | `(count: number) => string` | — | Bulk acknowledgement; the number stands in the text on purpose. |
|
|
20529
|
-
| `snoozeAlarm` *required* | `string` | — | The alarm list's snooze menu, beside "Acknowledge": the word on its button, and the sentence with the number of alarms it acts on. |
|
|
20530
|
-
| `snoozeAlarms` *required* | `(count: number) => string` | — | |
|
|
20531
|
-
| `snoozeDuration` *required* | `string` | — | The labels in the panel that opens with `snoozeReason`: the duration to choose and the reason to give. The panel's own button is `snoozeAlarm`. |
|
|
20532
|
-
| `snoozeReason` *required* | `string` | — | |
|
|
20533
|
-
| `unsnoozeAlarm` *required* | `string` | — | Ends the snooze of the ticked alarms before its time. |
|
|
20534
|
-
| `unsnoozeAlarms` *required* | `(count: number) => string` | — | |
|
|
20535
|
-
| `priorityHigh` *required* | `string` | — | |
|
|
20536
|
-
| `priorityMedium` *required* | `string` | — | |
|
|
20537
|
-
| `priorityLow` *required* | `string` | — | |
|
|
20538
|
-
| `lifecycleActiveUnacknowledged` *required* | `string` | — | The four lifecycle states, written out. |
|
|
20539
|
-
| `lifecycleActiveAcknowledged` *required* | `string` | — | |
|
|
20540
|
-
| `lifecycleResolvedUnacknowledged` *required* | `string` | — | |
|
|
20541
|
-
| `lifecycleResolvedAcknowledged` *required* | `string` | — | |
|
|
20542
|
-
| `floodHint` *required* | `(count: number) => string` | — | "Alarm flood: 12 in quick succession" - a flood is marked, never suppressed. |
|
|
20543
|
-
| `chatterHint` *required* | `(count: number) => string` | — | "40×" on a chattering alarm type. |
|
|
20544
|
-
| `activeUnacknowledged` *required* | `(count: number) => string` | — | The text of the live region: the number of active unacknowledged alarms. |
|
|
20545
|
-
| `columnAlarm` *required* | `string` | — | |
|
|
20546
|
-
| `columnLifecycleState` *required* | `string` | — | |
|
|
20547
|
-
| `columnPriority` *required* | `string` | — | |
|
|
20548
|
-
| `columnRaised` *required* | `string` | — | |
|
|
20549
|
-
| `columnDuration` *required* | `string` | — | |
|
|
20550
|
-
| `columnFrequency` *required* | `string` | — | |
|
|
20551
|
-
| `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
|
-
| `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. |
|
|
20554
|
-
| `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
|
-
| `availabilitySuppressed` *required* | `string` | — | |
|
|
20556
|
-
| `availabilityDisabled` *required* | `string` | — | |
|
|
20557
|
-
| `hiddenAlarms` *required* | `(count: number) => string` | — | "Hidden: 3" - the count of the view of snoozed, suppressed and disabled alarms, and its name where the list offers the view as a switch. |
|
|
20558
|
-
| `columnAvailability` *required* | `string` | — | The availability column of the alarm model: the column menu and the CSV header, like the two above. |
|
|
20559
19845
|
| `close` *required* | `string` | — | |
|
|
20560
19846
|
| `closeToast` *required* | `string` | — | |
|
|
20561
19847
|
| `toastDeckCount` *required* | `(count: number) => string` | — | The count on the front toast of a closed deck; pressing it shows them all. |
|