@umriss-ui/core 0.29.0 → 0.31.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/de.d.ts CHANGED
@@ -394,6 +394,13 @@ declare interface Wording {
394
394
  acknowledgeAlarm: string;
395
395
  /** Bulk acknowledgement; the number stands in the text on purpose. */
396
396
  acknowledgeAlarms: (count: number) => string;
397
+ /** The alarm list's snooze menu, beside "Acknowledge": the word on its
398
+ button, and the sentence with the number of alarms it acts on. */
399
+ snoozeAlarm: string;
400
+ snoozeAlarms: (count: number) => string;
401
+ /** Ends the snooze of the ticked alarms before its time. */
402
+ unsnoozeAlarm: string;
403
+ unsnoozeAlarms: (count: number) => string;
397
404
  priorityHigh: string;
398
405
  priorityMedium: string;
399
406
  priorityLow: string;
@@ -503,6 +510,9 @@ declare interface Wording {
503
510
  /** "In blocked time (Leave)" - a subtask covering its lane's blocked time,
504
511
  with the blocked time's label where it has one. */
505
512
  scheduleInBlockedTime: (label: string | undefined) => string;
513
+ /** "Milestone: Release" - a milestone named by its label (or id), so that
514
+ the tooltip and the spoken readout say what kind of thing it is. */
515
+ scheduleMilestone: (name: string) => string;
506
516
  /** The chevron of a lane group's header, which folds it into one row and
507
517
  unfolds it again. The group's own label stands beside the button, so the
508
518
  name is what the ACTION is, not which group it acts on. */
package/dist/index.d.ts CHANGED
@@ -359,7 +359,7 @@ export declare interface ComboboxProps<T extends string = string> extends Omit<H
359
359
  /** The width in characters - room for the typed text and the chosen
360
360
  option; the field adds its own padding, chevron and cross. Given, the
361
361
  field is that wide wherever it stands, and never wider than its place.
362
- Without it the field fills its place, and is 16 characters wide where the
362
+ Without it the field fills its place, and is 20 characters wide where the
363
363
  place asks - in a toolbar or a row. The panel is never narrower than the
364
364
  field. */
365
365
  chars?: number;
@@ -767,8 +767,9 @@ export declare const DEFAULT_WORDING: Wording;
767
767
 
768
768
  /** How densely the library builds. A component with a density of its own
769
769
  takes it through `useDensityFor` as the default for its `density` - in
770
- @umriss-ui/table the table and the alarm list; a compact set of tokens
771
- exists only with work package B.13. */
770
+ @umriss-ui/table the table and the alarm list, in @umriss-ui/calculation
771
+ the calculation; a compact set of tokens exists only with work package
772
+ B.13. */
772
773
  export declare type Density = "comfortable" | "compact";
773
774
 
774
775
  /** Where the active node moves: up and down the visible rows, in and out of a
@@ -1171,7 +1172,7 @@ export declare interface InputProps extends Omit<InputHTMLAttributes<HTMLInputEl
1171
1172
  /** The width in characters - room for the value; the field adds its own
1172
1173
  padding and cross. Given, the field is that wide wherever it stands, and
1173
1174
  never wider than its place. Without it the field fills its place, and is
1174
- 16 characters wide where the place asks - in a toolbar or a row. */
1175
+ 20 characters wide where the place asks - in a toolbar or a row. */
1175
1176
  chars?: number;
1176
1177
  /** Marks the field as invalid. `FormField` sets it itself as soon as it
1177
1178
  carries an `error` - by hand only necessary without `FormField`. */
@@ -1830,7 +1831,7 @@ export declare interface SelectProps extends Omit<SelectHTMLAttributes<HTMLSelec
1830
1831
  /** The width in characters - room for the chosen option; the field adds
1831
1832
  its own padding, chevron and cross. Given, the field is that wide
1832
1833
  wherever it stands, and never wider than its place. Without it the field
1833
- fills its place, and is 16 characters wide where the place asks - never
1834
+ fills its place, and is 20 characters wide where the place asks - never
1834
1835
  as wide as its longest option. */
1835
1836
  chars?: number;
1836
1837
  /** Marks the field as invalid. `FormField` sets it itself as soon as it
@@ -2568,8 +2569,8 @@ export declare function UmrissProvider({ density, portalTarget, toast, language,
2568
2569
  export declare interface UmrissProviderProps {
2569
2570
  /**
2570
2571
  * The default for the `density` of every component that reads it with
2571
- * `useDensityFor` - in `@umriss-ui/table` `Table` and `AlarmList`
2572
- * ("comfortable" means "regular").
2572
+ * `useDensityFor` - in `@umriss-ui/table` `Table` and `AlarmList`, in
2573
+ * `@umriss-ui/calculation` `Calculation` ("comfortable" means "regular").
2573
2574
  *
2574
2575
  * @default none - a component keeps its own density
2575
2576
  */
@@ -3120,6 +3121,13 @@ export declare interface Wording {
3120
3121
  acknowledgeAlarm: string;
3121
3122
  /** Bulk acknowledgement; the number stands in the text on purpose. */
3122
3123
  acknowledgeAlarms: (count: number) => string;
3124
+ /** The alarm list's snooze menu, beside "Acknowledge": the word on its
3125
+ button, and the sentence with the number of alarms it acts on. */
3126
+ snoozeAlarm: string;
3127
+ snoozeAlarms: (count: number) => string;
3128
+ /** Ends the snooze of the ticked alarms before its time. */
3129
+ unsnoozeAlarm: string;
3130
+ unsnoozeAlarms: (count: number) => string;
3123
3131
  priorityHigh: string;
3124
3132
  priorityMedium: string;
3125
3133
  priorityLow: string;
@@ -3229,6 +3237,9 @@ export declare interface Wording {
3229
3237
  /** "In blocked time (Leave)" - a subtask covering its lane's blocked time,
3230
3238
  with the blocked time's label where it has one. */
3231
3239
  scheduleInBlockedTime: (label: string | undefined) => string;
3240
+ /** "Milestone: Release" - a milestone named by its label (or id), so that
3241
+ the tooltip and the spoken readout say what kind of thing it is. */
3242
+ scheduleMilestone: (name: string) => string;
3232
3243
  /** The chevron of a lane group's header, which folds it into one row and
3233
3244
  unfolds it again. The group's own label stands beside the button, so the
3234
3245
  name is what the ACTION is, not which group it acts on. */
@@ -1,5 +1,5 @@
1
1
  import { f as o } from "../formats-DrB9TuzO.js";
2
- const c = o("de-DE"), d = {
2
+ const s = o("de-DE"), c = {
3
3
  clearInput: "Eingabe leeren",
4
4
  clearSelection: "Auswahl leeren",
5
5
  decreaseValue: "Wert verringern",
@@ -211,6 +211,10 @@ const c = o("de-DE"), d = {
211
211
  noAlarmsDisconnected: "Keine Meldungen – die Verbindung steht nicht",
212
212
  acknowledgeAlarm: "Quittieren",
213
213
  acknowledgeAlarms: (e) => e === 1 ? "1 Meldung quittieren" : `${e} Meldungen quittieren`,
214
+ snoozeAlarm: "Zurückstellen",
215
+ snoozeAlarms: (e) => e === 1 ? "1 Meldung zurückstellen" : `${e} Meldungen zurückstellen`,
216
+ unsnoozeAlarm: "Zurückstellung aufheben",
217
+ unsnoozeAlarms: (e) => e === 1 ? "Zurückstellung von 1 Meldung aufheben" : `Zurückstellung von ${e} Meldungen aufheben`,
214
218
  priorityHigh: "Hoch",
215
219
  priorityMedium: "Mittel",
216
220
  priorityLow: "Niedrig",
@@ -273,6 +277,7 @@ const c = o("de-DE"), d = {
273
277
  scheduleLaneRefused: "Nicht hierher",
274
278
  scheduleBlockedTime: "Sperrzeit",
275
279
  scheduleInBlockedTime: (e) => e === void 0 ? "In der Sperrzeit" : `In der Sperrzeit (${e})`,
280
+ scheduleMilestone: (e) => `Meilenstein: ${e}`,
276
281
  scheduleFoldGroup: "Gruppe einklappen",
277
282
  scheduleUnfoldGroup: "Gruppe ausklappen",
278
283
  scheduleLaneCount: (e) => e === 1 ? "1 Bahn" : `${e} Bahnen`,
@@ -304,6 +309,6 @@ const c = o("de-DE"), d = {
304
309
  calculationNoOperands: "keine Einträge"
305
310
  };
306
311
  export {
307
- c as GERMAN_FORMATS,
308
- d as GERMAN_WORDING
312
+ s as GERMAN_FORMATS,
313
+ c as GERMAN_WORDING
309
314
  };
package/docs/llms-full.md CHANGED
@@ -1,4 +1,4 @@
1
- # @umriss-ui/core 0.29.0
1
+ # @umriss-ui/core 0.31.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
 
@@ -2097,8 +2097,8 @@ const REGIONS = [
2097
2097
  { id: "room-status", title: "Line status" },
2098
2098
  { id: "room-trend", title: "Kiln trend" },
2099
2099
  { id: "room-alarms", title: "Alarms" },
2100
- { id: "room-quality", title: "Tile length" },
2101
2100
  { id: "room-plan", title: "Plan" },
2101
+ { id: "room-quality", title: "Tile length" },
2102
2102
  { id: "room-oee", title: "OEE so far" },
2103
2103
  ] as const;
2104
2104
 
@@ -2239,25 +2239,6 @@ export default function ControlRoom() {
2239
2239
  />
2240
2240
  </Region>
2241
2241
 
2242
- <Region id="room-quality" title="Tile length">
2243
- <tileLength.Chart height={220} ariaLabel="Tile length after firing, individuals chart">
2244
- <tileLength.XAxis value="t" domain={[at(0), at(LAST)]} time />
2245
- <tileLength.YAxis domain={[597, 602]} label="mm" />
2246
- <LimitLine value={601.5} severity="alarm" label="USL" />
2247
- <LimitLine value={598.5} severity="alarm" label="LSL" />
2248
- <ControlChart
2249
- value="length"
2250
- data={measured}
2251
- origin={REFERENCE}
2252
- name="Length"
2253
- labelUpper="UCL"
2254
- labelLower="LCL"
2255
- violationName="Length - rule violation"
2256
- />
2257
- <Tooltip mode="x" />
2258
- </tileLength.Chart>
2259
- </Region>
2260
-
2261
2242
  <Region
2262
2243
  id="room-plan"
2263
2244
  title="Plan"
@@ -2283,30 +2264,51 @@ export default function ControlRoom() {
2283
2264
  </Schedule>
2284
2265
  </Region>
2285
2266
 
2286
- <Region id="room-oee" title="OEE so far" callout="6">
2287
- <Calculation aria-label="OEE of the shift so far">
2288
- <Product label="OEE" format="percent" target={OEE_TARGET}>
2289
- <Quotient label="Availability" format="percent">
2290
- <Difference id="runtime" label="Run time" unit="min">
2291
- <Given id="planned" label="Planned production time" value={count.planned} unit="min" />
2292
- <Given label="Downtime" value={count.downtime} unit="min" />
2293
- </Difference>
2294
- <Ref to="planned" />
2295
- </Quotient>
2296
- <Quotient label="Performance" format="percent">
2297
- <Product label="Ideal run time" unit="min">
2298
- <Given label="Ideal cycle time" value={IDEAL_CYCLE_MINUTES} unit="min/pc" />
2299
- <Given id="total" label="Total count" value={count.total} unit="pcs" />
2300
- </Product>
2301
- <Ref to="runtime" />
2302
- </Quotient>
2303
- <Quotient label="Quality" format="percent">
2304
- <Given label="Good count" value={count.good} unit="pcs" />
2305
- <Ref to="total" />
2306
- </Quotient>
2307
- </Product>
2308
- </Calculation>
2309
- </Region>
2267
+ <Grid columns={2} gap={4}>
2268
+ <Region id="room-quality" title="Tile length">
2269
+ <tileLength.Chart ariaLabel="Tile length after firing, individuals chart">
2270
+ <tileLength.XAxis value="t" domain={[at(0), at(LAST)]} time />
2271
+ <tileLength.YAxis domain={[597, 602]} label="mm" />
2272
+ <LimitLine value={601.5} severity="alarm" label="USL" />
2273
+ <LimitLine value={598.5} severity="alarm" label="LSL" />
2274
+ <ControlChart
2275
+ value="length"
2276
+ data={measured}
2277
+ origin={REFERENCE}
2278
+ name="Length"
2279
+ labelUpper="UCL"
2280
+ labelLower="LCL"
2281
+ violationName="Length - rule violation"
2282
+ />
2283
+ <Tooltip mode="x" />
2284
+ </tileLength.Chart>
2285
+ </Region>
2286
+
2287
+ <Region id="room-oee" title="OEE so far" callout="6">
2288
+ <Calculation aria-label="OEE of the shift so far">
2289
+ <Product label="OEE" format="percent" target={OEE_TARGET}>
2290
+ <Quotient label="Availability" format="percent">
2291
+ <Difference id="runtime" label="Run time" unit="min">
2292
+ <Given id="planned" label="Planned production time" value={count.planned} unit="min" />
2293
+ <Given label="Downtime" value={count.downtime} unit="min" />
2294
+ </Difference>
2295
+ <Ref to="planned" />
2296
+ </Quotient>
2297
+ <Quotient label="Performance" format="percent">
2298
+ <Product label="Ideal run time" unit="min">
2299
+ <Given label="Ideal cycle time" value={IDEAL_CYCLE_MINUTES} unit="min/pc" />
2300
+ <Given id="total" label="Total count" value={count.total} unit="pcs" />
2301
+ </Product>
2302
+ <Ref to="runtime" />
2303
+ </Quotient>
2304
+ <Quotient label="Quality" format="percent">
2305
+ <Given label="Good count" value={count.good} unit="pcs" />
2306
+ <Ref to="total" />
2307
+ </Quotient>
2308
+ </Product>
2309
+ </Calculation>
2310
+ </Region>
2311
+ </Grid>
2310
2312
 
2311
2313
  <Drawer open={details} onClose={() => setDetails(false)}>
2312
2314
  {chosen !== undefined && <BatchDetails batch={chosen} minute={minute} onClose={() => setDetails(false)} />}
@@ -2546,7 +2548,7 @@ The keys of [Button](#/button/keyboard-button), [Menu](#/menu/keyboard-menu) and
2546
2548
 
2547
2549
  | Prop | Type | Default | Description |
2548
2550
  |---|---|---|---|
2549
- | `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` and `AlarmList` ("comfortable" means "regular").<br>Shown in: [Set up an application](#/umrissprovider/everything-at-once) |
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` and `AlarmList`, in `@umriss-ui/calculation` `Calculation` ("comfortable" means "regular").<br>Shown in: [Set up an application](#/umrissprovider/everything-at-once) |
2550
2552
  | `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) |
2551
2553
  | `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 |
2552
2554
  | `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) |
@@ -3365,14 +3367,14 @@ function Row({ size }: { size: ControlSize }) {
3365
3367
  return (
3366
3368
  <Stack role="group" aria-label={size === "sm" ? "Small" : "Medium"} direction="row" gap={3} wrap>
3367
3369
  <FormField label="Caster">
3368
- <Select defaultValue="">
3370
+ <Select defaultValue="" chars={12}>
3369
3371
  <option value="">Every caster</option>
3370
3372
  <option>Caster 1</option>
3371
3373
  <option>Caster 2</option>
3372
3374
  </Select>
3373
3375
  </FormField>
3374
3376
  <FormField label="Strand">
3375
- <Select defaultValue="">
3377
+ <Select defaultValue="" chars={12}>
3376
3378
  <option value="">Every strand</option>
3377
3379
  <option>Strand 1</option>
3378
3380
  <option>Strand 2</option>
@@ -3419,6 +3421,61 @@ export default function ARowOfFields() {
3419
3421
  }
3420
3422
  ```
3421
3423
 
3424
+ ##### A bar with a search
3425
+
3426
+ A field does not grow to fill a row; a bar of one's own says which one takes the rest. In a grid, a field fills its cell: the search is the "fill" column, the selects beside it keep a width of their own, and nothing is styled by hand.
3427
+
3428
+ ```tsx
3429
+ import { useState } from "react";
3430
+ import { Grid, Input, Select, Stack, Text } from "@umriss-ui/core";
3431
+
3432
+ const ROWS = [
3433
+ { name: "Invoice 1042", status: "Open", region: "North" },
3434
+ { name: "Invoice 1043", status: "Paid", region: "South" },
3435
+ { name: "Invoice 1044", status: "Open", region: "South" },
3436
+ { name: "Invoice 1045", status: "Overdue", region: "North" },
3437
+ ];
3438
+
3439
+ export default function ABarWithASearch() {
3440
+ const [search, setSearch] = useState("");
3441
+ const [status, setStatus] = useState("");
3442
+ const [region, setRegion] = useState("");
3443
+ const shown = ROWS.filter(
3444
+ (row) =>
3445
+ row.name.toLowerCase().includes(search.trim().toLowerCase()) &&
3446
+ (!status || row.status === status) &&
3447
+ (!region || row.region === region),
3448
+ );
3449
+ return (
3450
+ <Stack gap={3}>
3451
+ <Grid columns={["fill", 180, 180]} gap={3}>
3452
+ <Input
3453
+ type="search"
3454
+ aria-label="Search"
3455
+ placeholder="Search invoices"
3456
+ value={search}
3457
+ onChange={(event) => setSearch(event.target.value)}
3458
+ />
3459
+ <Select aria-label="Status" value={status} onChange={(event) => setStatus(event.target.value)}>
3460
+ <option value="">Any status</option>
3461
+ <option>Open</option>
3462
+ <option>Paid</option>
3463
+ <option>Overdue</option>
3464
+ </Select>
3465
+ <Select aria-label="Region" value={region} onChange={(event) => setRegion(event.target.value)}>
3466
+ <option value="">Any region</option>
3467
+ <option>North</option>
3468
+ <option>South</option>
3469
+ </Select>
3470
+ </Grid>
3471
+ <Text size="sm" tone="secondary">
3472
+ {shown.length} of {ROWS.length} invoices: {shown.map((row) => row.name).join(", ") || "none"}
3473
+ </Text>
3474
+ </Stack>
3475
+ );
3476
+ }
3477
+ ```
3478
+
3422
3479
  #### When to use something else
3423
3480
 
3424
3481
  - A width the layout decides - two columns, a field beside a button → Stack and Grid
@@ -3964,6 +4021,10 @@ Every entry of `Wording`: the English of `DEFAULT_WORDING` beside the German of
3964
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. |
3965
4022
  | `acknowledgeAlarm` | Acknowledge | Quittieren | — |
3966
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
+ | `unsnoozeAlarm` | Unsnooze | Zurückstellung aufheben | Ends the snooze of the ticked alarms before its time. |
4027
+ | `unsnoozeAlarms(count)` | `` (count === 1 ? "Unsnooze 1 alarm" : `Unsnooze ${count} alarms`) `` | `` count === 1 ? "Zurückstellung von 1 Meldung aufheben" : `Zurückstellung von ${count} Meldungen aufheben` `` | — |
3967
4028
  | `priorityHigh` | High | Hoch | — |
3968
4029
  | `priorityMedium` | Medium | Mittel | — |
3969
4030
  | `priorityLow` | Low | Niedrig | — |
@@ -4036,6 +4097,7 @@ Every entry of `Wording`: the English of `DEFAULT_WORDING` beside the German of
4036
4097
  | `scheduleLaneRefused` | Not this lane | Nicht hierher | On the ghost of a drag over a lane the subtask may not go to. |
4037
4098
  | `scheduleBlockedTime` | Blocked time | Sperrzeit | On the ghost of a drag held back from a lane's blocked time. |
4038
4099
  | `scheduleInBlockedTime(label)` | `` (label === undefined ? "In blocked time" : `In blocked time (${label})`) `` | `` (label === undefined ? "In der Sperrzeit" : `In der Sperrzeit (${label})`) `` | "In blocked time (Leave)" - a subtask covering its lane's blocked time, with the blocked time's label where it has one. |
4100
+ | `scheduleMilestone(name)` | `` `Milestone: ${name}` `` | `` `Meilenstein: ${name}` `` | "Milestone: Release" - a milestone named by its label (or id), so that the tooltip and the spoken readout say what kind of thing it is. |
4039
4101
  | `scheduleFoldGroup` | Fold group | Gruppe einklappen | The chevron of a lane group's header, which folds it into one row and unfolds it again. The group's own label stands beside the button, so the name is what the ACTION is, not which group it acts on. |
4040
4102
  | `scheduleUnfoldGroup` | Unfold group | Gruppe ausklappen | — |
4041
4103
  | `scheduleLaneCount(count)` | `` (count === 1 ? "1 lane" : `${count} lanes`) `` | `` (count === 1 ? "1 Bahn" : `${count} Bahnen`) `` | How many lanes a group holds, beside its name in the header. |
@@ -4082,10 +4144,12 @@ Every entry of `ChartsWording` from `@umriss-ui/charts`, which a chart takes thr
4082
4144
  | `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. |
4083
4145
  | `visibleRange(from, to)` | `` `From ${from} to ${to}.` `` | `` `Von ${from} bis ${to}.` `` | The summary's visible stretch of the x axis, both ends formatted. |
4084
4146
  | `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. |
4147
+ | `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). |
4085
4148
  | `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. |
4086
4149
  | `stackTotal` | Total | Summe | The last row of a stack in the tooltip and the readout: the sum of its members at the point (charts-stacking K4). |
4087
4150
  | `percent(value)` | `` `${value}%` `` | `` `${value} %` `` | A share in a normalised stack, its number already formatted (K5). |
4088
4151
  | `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. |
4152
+ | `selectHelp` | Enter chooses the point. | Enter wählt den Punkt. | The key that reports the Active point - only where `onSelect` is given. |
4089
4153
  | `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. |
4090
4154
  | `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. |
4091
4155
  | `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. |
@@ -4369,6 +4433,10 @@ Everything the library puts out as text.
4369
4433
  | `noAlarmsDisconnected` *required* | `string` | — | Empty, but the line is down - that is something other than quiet. |
4370
4434
  | `acknowledgeAlarm` *required* | `string` | — | |
4371
4435
  | `acknowledgeAlarms` *required* | `(count: number) => string` | — | Bulk acknowledgement; the number stands in the text on purpose. |
4436
+ | `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. |
4437
+ | `snoozeAlarms` *required* | `(count: number) => string` | — | |
4438
+ | `unsnoozeAlarm` *required* | `string` | — | Ends the snooze of the ticked alarms before its time. |
4439
+ | `unsnoozeAlarms` *required* | `(count: number) => string` | — | |
4372
4440
  | `priorityHigh` *required* | `string` | — | |
4373
4441
  | `priorityMedium` *required* | `string` | — | |
4374
4442
  | `priorityLow` *required* | `string` | — | |
@@ -4431,6 +4499,7 @@ Everything the library puts out as text.
4431
4499
  | `scheduleLaneRefused` *required* | `string` | — | On the ghost of a drag over a lane the subtask may not go to. |
4432
4500
  | `scheduleBlockedTime` *required* | `string` | — | On the ghost of a drag held back from a lane's blocked time. |
4433
4501
  | `scheduleInBlockedTime` *required* | `(label: string \| undefined) => string` | — | "In blocked time (Leave)" - a subtask covering its lane's blocked time, with the blocked time's label where it has one. |
4502
+ | `scheduleMilestone` *required* | `(name: string) => string` | — | "Milestone: Release" - a milestone named by its label (or id), so that the tooltip and the spoken readout say what kind of thing it is. |
4434
4503
  | `scheduleFoldGroup` *required* | `string` | — | The chevron of a lane group's header, which folds it into one row and unfolds it again. The group's own label stands beside the button, so the name is what the ACTION is, not which group it acts on. |
4435
4504
  | `scheduleUnfoldGroup` *required* | `string` | — | |
4436
4505
  | `scheduleLaneCount` *required* | `(count: number) => string` | — | How many lanes a group holds, beside its name in the header. |
@@ -4771,7 +4840,7 @@ The keys of [Button](#/button/keyboard-button) apply here.
4771
4840
  | Prop | Type | Default | Description |
4772
4841
  |---|---|---|---|
4773
4842
  | `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 |
4774
- | `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 165 more |
4843
+ | `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 166 more |
4775
4844
  | `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 |
4776
4845
  | `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 |
4777
4846
  | `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 |
@@ -4782,9 +4851,9 @@ Also takes every attribute of `<div>`.
4782
4851
 
4783
4852
  | Prop | Type | Default | Description |
4784
4853
  |---|---|---|---|
4785
- | `columns` | `number \| readonly `[`GridColumnWidth`](#type-GridColumnWidth)`[]` | `2` | How many columns, all of one width - or a list with one width per column: a number in pixels, or `"fill"` for a share of what is left. Overridden by minItemWidth.<br>Shown in: [Fixed columns](#/stack-and-grid/fixed-columns), [Columns of their own widths](#/stack-and-grid/columns-of-their-own-widths), [A token for one region (Theming)](#/theming/a-token-for-one-region) and 3 more |
4854
+ | `columns` | `number \| readonly `[`GridColumnWidth`](#type-GridColumnWidth)`[]` | `2` | How many columns, all of one width - or a list with one width per column: a number in pixels, or `"fill"` for a share of what is left. Overridden by minItemWidth.<br>Shown in: [Fixed columns](#/stack-and-grid/fixed-columns), [Columns of their own widths](#/stack-and-grid/columns-of-their-own-widths), [A token for one region (Theming)](#/theming/a-token-for-one-region) and 5 more |
4786
4855
  | `minItemWidth` | `string` | — | Responsive: as many columns as fit at this minimum width; wins over `columns`, a list included.<br>Shown in: [Columns by width](#/stack-and-grid/columns-by-width), [A tour summary](#/stack-and-grid/a-tour-summary), [A dark region (Theming)](#/theming/a-dark-region) and 51 more |
4787
- | `gap` | [`SpaceStep`](#type-SpaceStep)<br>`1 \| 2 \| 3 \| 4 \| 5 \| 6 \| 7 \| 8` | `4` | Spacing as a step of the 4 px spacing steps (1–8); applies in both directions.<br>Shown in: [Fixed columns](#/stack-and-grid/fixed-columns), [Columns by width](#/stack-and-grid/columns-by-width), [Columns of their own widths](#/stack-and-grid/columns-of-their-own-widths) and 57 more |
4856
+ | `gap` | [`SpaceStep`](#type-SpaceStep)<br>`1 \| 2 \| 3 \| 4 \| 5 \| 6 \| 7 \| 8` | `4` | Spacing as a step of the 4 px spacing steps (1–8); applies in both directions.<br>Shown in: [Fixed columns](#/stack-and-grid/fixed-columns), [Columns by width](#/stack-and-grid/columns-by-width), [Columns of their own widths](#/stack-and-grid/columns-of-their-own-widths) and 58 more |
4788
4857
 
4789
4858
  Also takes every attribute of `<div>`.
4790
4859
 
@@ -6395,9 +6464,9 @@ export default function IncidentSummary() {
6395
6464
  | Prop | Type | Default | Description |
6396
6465
  |---|---|---|---|
6397
6466
  | `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 |
6398
- | `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 130 more |
6467
+ | `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 131 more |
6399
6468
  | `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 16 more |
6400
- | `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 95 more |
6469
+ | `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 96 more |
6401
6470
  | `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 |
6402
6471
  | `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) |
6403
6472
  | `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) |
@@ -7914,7 +7983,7 @@ export default function TakeADeliveryAddress() {
7914
7983
  | Prop | Type | Default | Description |
7915
7984
  |---|---|---|---|
7916
7985
  | `size` | `"sm" \| "md"` | the size of a `ControlSizeProvider` around it, else `"md"` | `sm` for a toolbar and dense forms, `md` otherwise.<br>Shown in: [Configurator](#/input/configurator-input), [Sizes](#/input/sizes), [Open it with a shortcut (CommandPalette)](#/commandpalette/shortcut) and 3 more |
7917
- | `chars` | `number` | — | The width in characters - room for the value; the field adds its own padding and cross. Given, the field is that wide wherever it stands, and never wider than its place. Without it the field fills its place, and is 16 characters wide where the place asks - in a toolbar or a row.<br>Shown in: [Configurator](#/input/configurator-input), [Sized to the value (Sizes)](#/sizes/sized-to-the-value), [Narrow places (Sizes)](#/sizes/narrow-places) |
7986
+ | `chars` | `number` | — | The width in characters - room for the value; the field adds its own padding and cross. Given, the field is that wide wherever it stands, and never wider than its place. Without it the field fills its place, and is 20 characters wide where the place asks - in a toolbar or a row.<br>Shown in: [Configurator](#/input/configurator-input), [Sized to the value (Sizes)](#/sizes/sized-to-the-value), [Narrow places (Sizes)](#/sizes/narrow-places) |
7918
7987
  | `invalid` | `boolean` | — | Marks the field as invalid. `FormField` sets it itself as soon as it carries an `error` - by hand only necessary without `FormField`.<br>Shown in: [Configurator](#/input/configurator-input), [With an error](#/input/with-an-error), [With an error (TreeView)](#/treeview/with-an-error) |
7919
7988
  | `numeric` | `boolean` | `false` | Right-aligned tabular figures in Geist Mono, e.g. for key figures.<br>Shown in: [Configurator](#/input/configurator-input), [Align reference numbers](#/input/align-reference-numbers), [Take a delivery address](#/input/take-a-delivery-address) and 2 more |
7920
7989
  | `clearable` | `boolean` | `false` | Shows a gently appearing cross where there is content, which clears the input. Requires a controlled field (value) and onClear.<br>Shown in: [Clear the field](#/input/clear-the-field), [A row that holds still (Sizes)](#/sizes/a-row-that-holds-still) |
@@ -9977,7 +10046,7 @@ export default function ClearTheChoice() {
9977
10046
  | Prop | Type | Default | Description |
9978
10047
  |---|---|---|---|
9979
10048
  | `size` | `"sm" \| "md"` | the size of a `ControlSizeProvider` around it, else `"md"` | `sm` for a toolbar and dense forms, `md` otherwise.<br>Shown in: [Configurator](#/select/configurator-select), [States](#/select/states), [Build a filter bar (Tag)](#/tag/a-filter-bar) and 1 more |
9980
- | `chars` | `number` | — | The width in characters - room for the chosen option; the field adds its own padding, chevron and cross. Given, the field is that wide wherever it stands, and never wider than its place. Without it the field fills its place, and is 16 characters wide where the place asks - never as wide as its longest option.<br>Shown in: [Configurator](#/select/configurator-select) |
10049
+ | `chars` | `number` | — | The width in characters - room for the chosen option; the field adds its own padding, chevron and cross. Given, the field is that wide wherever it stands, and never wider than its place. Without it the field fills its place, and is 20 characters wide where the place asks - never as wide as its longest option.<br>Shown in: [Configurator](#/select/configurator-select), [A row of fields (Sizes)](#/sizes/a-row-of-fields) |
9981
10050
  | `invalid` | `boolean` | — | Marks the field as invalid. `FormField` sets it itself as soon as it carries an `error` – by hand only necessary without `FormField`.<br>Shown in: [Configurator](#/select/configurator-select), [With an error](#/select/with-an-error) |
9982
10051
  | `clearable` | `boolean` | `false` | Shows a × once a selection has been made, which fades in on hover/focus and empties the selection. Requires a controlled field (value) and onClear; sensible for optional selects with a placeholder option.<br>Shown in: [Clear the choice](#/select/clear-the-choice) |
9983
10052
 
@@ -10233,7 +10302,7 @@ export default function AssignAnIncident() {
10233
10302
  | `value` *required* | `T \| null` | — | The chosen value; `null` means none. Always controlled - the field keeps no second state beside the caller's.<br>Shown in: [Configurator](#/combobox/configurator-combobox), [Combobox](#/combobox/pick-a-driver), [States](#/combobox/states) and 5 more |
10234
10303
  | `placeholder` | `string` | — | What stands in the empty field.<br>Shown in: [Combobox](#/combobox/pick-a-driver), [States](#/combobox/states), [With an error](#/combobox/with-an-error) and 3 more |
10235
10304
  | `size` | `"sm" \| "md"` | the size of a `ControlSizeProvider` around it, else `"md"` | `sm` for a toolbar and dense forms, `md` otherwise.<br>Shown in: [Configurator](#/combobox/configurator-combobox) |
10236
- | `chars` | `number` | — | The width in characters - room for the typed text and the chosen option; the field adds its own padding, chevron and cross. Given, the field is that wide wherever it stands, and never wider than its place. Without it the field fills its place, and is 16 characters wide where the place asks - in a toolbar or a row. The panel is never narrower than the field.<br>Shown in: [Configurator](#/combobox/configurator-combobox) |
10305
+ | `chars` | `number` | — | The width in characters - room for the typed text and the chosen option; the field adds its own padding, chevron and cross. Given, the field is that wide wherever it stands, and never wider than its place. Without it the field fills its place, and is 20 characters wide where the place asks - in a toolbar or a row. The panel is never narrower than the field.<br>Shown in: [Configurator](#/combobox/configurator-combobox) |
10237
10306
  | `disabled` | `boolean` | `false` | Locks field and panel.<br>Shown in: [Configurator](#/combobox/configurator-combobox), [States](#/combobox/states), [Dispatch a tour (Scenarios)](#/scenarios/dispatch-a-tour) |
10238
10307
  | `invalid` | `boolean` | — | Marks the field as invalid. `FormField` sets it itself as soon as it carries an `error` - by hand only necessary without `FormField`.<br>Shown in: [Configurator](#/combobox/configurator-combobox), [With an error](#/combobox/with-an-error) |
10239
10308
  | `emptyText` | `string` | — | Text shown for an empty search result.<br>Shown in: [States](#/combobox/states) |
@@ -16312,7 +16381,7 @@ Also takes every attribute of `<div>` – without `children`.
16312
16381
  |---|---|---|---|
16313
16382
  | `tree` *required* | [`Tree`](#type-Tree)`<K, S>` | — | The same tree as the view's. The field does not hold the text itself – it belongs to the tree, because the flattening depends on it.<br>Shown in: [Search with the path](#/treeview/search-with-the-path), [With an error](#/treeview/with-an-error), [Search, check and reveal in a large tree](#/treeview/search-check-and-reveal) |
16314
16383
  | `size` | `"sm" \| "md"` | the size of a `ControlSizeProvider` around it, else `"md"` | `sm` for a toolbar and dense forms, `md` otherwise. From `InputProps`.<br>Shown in: [Search with the path](#/treeview/search-with-the-path), [With an error](#/treeview/with-an-error), [Search, check and reveal in a large tree](#/treeview/search-check-and-reveal) and 3 more |
16315
- | `chars` | `number` | — | The width in characters - room for the value; the field adds its own padding and cross. Given, the field is that wide wherever it stands, and never wider than its place. Without it the field fills its place, and is 16 characters wide where the place asks - in a toolbar or a row. From `InputProps`.<br>Shown in: [Sized to the value (Sizes)](#/sizes/sized-to-the-value), [Narrow places (Sizes)](#/sizes/narrow-places), [Configurator (Input)](#/input/configurator-input) |
16384
+ | `chars` | `number` | — | The width in characters - room for the value; the field adds its own padding and cross. Given, the field is that wide wherever it stands, and never wider than its place. Without it the field fills its place, and is 20 characters wide where the place asks - in a toolbar or a row. From `InputProps`.<br>Shown in: [Sized to the value (Sizes)](#/sizes/sized-to-the-value), [Narrow places (Sizes)](#/sizes/narrow-places), [Configurator (Input)](#/input/configurator-input) |
16316
16385
  | `invalid` | `boolean` | — | Marks the field as invalid. `FormField` sets it itself as soon as it carries an `error` - by hand only necessary without `FormField`. From `InputProps`.<br>Shown in: [With an error](#/treeview/with-an-error), [Configurator (Input)](#/input/configurator-input), [With an error (Input)](#/input/with-an-error) |
16317
16386
  | `numeric` | `boolean` | `false` | Right-aligned tabular figures in Geist Mono, e.g. for key figures. From `InputProps`.<br>Shown in: [Configurator (Input)](#/input/configurator-input), [Align reference numbers (Input)](#/input/align-reference-numbers), [Take a delivery address (Input)](#/input/take-a-delivery-address) and 2 more |
16318
16387
  | `clearable` | `boolean` | `false` | Shows a gently appearing cross where there is content, which clears the input. Requires a controlled field (value) and onClear. From `InputProps`.<br>Shown in: [A row that holds still (Sizes)](#/sizes/a-row-that-holds-still), [Clear the field (Input)](#/input/clear-the-field) |
@@ -20453,6 +20522,10 @@ Everything the library puts out as text.
20453
20522
  | `noAlarmsDisconnected` *required* | `string` | — | Empty, but the line is down - that is something other than quiet. |
20454
20523
  | `acknowledgeAlarm` *required* | `string` | — | |
20455
20524
  | `acknowledgeAlarms` *required* | `(count: number) => string` | — | Bulk acknowledgement; the number stands in the text on purpose. |
20525
+ | `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. |
20526
+ | `snoozeAlarms` *required* | `(count: number) => string` | — | |
20527
+ | `unsnoozeAlarm` *required* | `string` | — | Ends the snooze of the ticked alarms before its time. |
20528
+ | `unsnoozeAlarms` *required* | `(count: number) => string` | — | |
20456
20529
  | `priorityHigh` *required* | `string` | — | |
20457
20530
  | `priorityMedium` *required* | `string` | — | |
20458
20531
  | `priorityLow` *required* | `string` | — | |
@@ -20515,6 +20588,7 @@ Everything the library puts out as text.
20515
20588
  | `scheduleLaneRefused` *required* | `string` | — | On the ghost of a drag over a lane the subtask may not go to. |
20516
20589
  | `scheduleBlockedTime` *required* | `string` | — | On the ghost of a drag held back from a lane's blocked time. |
20517
20590
  | `scheduleInBlockedTime` *required* | `(label: string \| undefined) => string` | — | "In blocked time (Leave)" - a subtask covering its lane's blocked time, with the blocked time's label where it has one. |
20591
+ | `scheduleMilestone` *required* | `(name: string) => string` | — | "Milestone: Release" - a milestone named by its label (or id), so that the tooltip and the spoken readout say what kind of thing it is. |
20518
20592
  | `scheduleFoldGroup` *required* | `string` | — | The chevron of a lane group's header, which folds it into one row and unfolds it again. The group's own label stands beside the button, so the name is what the ACTION is, not which group it acts on. |
20519
20593
  | `scheduleUnfoldGroup` *required* | `string` | — | |
20520
20594
  | `scheduleLaneCount` *required* | `(count: number) => string` | — | How many lanes a group holds, beside its name in the header. |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umriss-ui/core",
3
- "version": "0.29.0",
3
+ "version": "0.31.0",
4
4
  "description": "React component library for data-dense dashboards and tools - forms, date pickers, overlays, a tree view and a command palette. Precise, quiet, professional.",
5
5
  "license": "MIT",
6
6
  "author": "Roman Händler",