@umriss-ui/core 0.44.0 → 0.45.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
@@ -1,11 +1,21 @@
1
1
  /** Everything the library knows about formatting. */
2
2
  declare interface Formats {
3
+ /** The language tag the set was built in: "en-GB". */
4
+ locale: string;
5
+ /** The IANA name of the time zone instants are written in, or `undefined`
6
+ for the reader's own. */
7
+ timeZone: string | undefined;
8
+ /** The zone's generic name in the set's locale: "Central European Time".
9
+ Empty until the page has hydrated where no zone is named. */
10
+ timeZoneName: (d: Date) => string;
3
11
  /** Date as displayed: 17/03/2026 */
4
12
  date: (d: Date) => string;
5
13
  /** Short form without the year, in the range footer: 17/03 */
6
14
  dateShort: (d: Date) => string;
7
15
  /** The calendar's month header: March 2026 */
8
16
  month: (d: Date) => string;
17
+ /** The month alone, in the calendar head's month list: March */
18
+ monthName: (d: Date) => string;
9
19
  /** Accessible name of a calendar cell: Tuesday, 17 March 2026 */
10
20
  dateLong: (d: Date) => string;
11
21
  /** Time of day, optionally with seconds: 09:05 or 09:05:03 */
@@ -129,6 +139,12 @@ declare interface Wording {
129
139
  the dialog. */
130
140
  datePanel: string;
131
141
  dateClear: string;
142
+ /** The name of the DatePicker panel's typed field. */
143
+ typeDate: string;
144
+ /** Announced when the typed text is no date. */
145
+ notADate: string;
146
+ /** Announced when the typed date lies outside `min` and `max`; each bound is written in the formats in use, `null` where there is none. */
147
+ dateOutOfRange: (min: string | null, max: string | null) => string;
132
148
  dateTimePlaceholder: string;
133
149
  dateTimePanel: string;
134
150
  dateTimeClear: string;
@@ -142,6 +158,10 @@ declare interface Wording {
142
158
  dateTimeRangeClear: string;
143
159
  previousMonth: string;
144
160
  nextMonth: string;
161
+ /** Name of the calendar head's month list. */
162
+ monthSelect: string;
163
+ /** Name of the calendar head's year list. */
164
+ yearSelect: string;
145
165
  /** Group name of the preset column. */
146
166
  quickSelect: string;
147
167
  today: string;
@@ -400,6 +420,12 @@ declare interface Wording {
400
420
  freshnessFresh: string;
401
421
  freshnessStale: string;
402
422
  freshnessDisconnected: string;
423
+ /** The three quality levels (ADR-0077) - the THIRD axis, beside the verdict
424
+ and the freshness: how far the value's source vouches for it. A bad value
425
+ keeps its verdict and its age. */
426
+ qualityGood: string;
427
+ qualityUncertain: string;
428
+ qualityBad: string;
403
429
  /** "As of: 3 minutes ago", where the duration comes from the formats. */
404
430
  asOfAgo: (duration: string) => string;
405
431
  close: string;
@@ -0,0 +1,97 @@
1
+ function O(n, e, i) {
2
+ if (i === "percent") return n.percent(e);
3
+ if (i === "count") return n.count(e);
4
+ if (i === void 0) return n.number(e);
5
+ const { decimals: r, ...a } = i;
6
+ return Object.keys(a).length === 0 ? n.number(e, r) : n.numberWith(
7
+ e,
8
+ r === void 0 ? a : { minimumFractionDigits: r, maximumFractionDigits: r, ...a }
9
+ );
10
+ }
11
+ const w = 10, E = [
12
+ ["day", 86400],
13
+ ["hour", 3600],
14
+ ["minute", 60]
15
+ ];
16
+ function A(n, e) {
17
+ const i = `${n}|${e ?? ""}`;
18
+ let r = T.get(i);
19
+ if (!r) {
20
+ r = l(n, e), T.set(i, r);
21
+ for (const a of M) L.add(r[a]);
22
+ }
23
+ return r;
24
+ }
25
+ const T = /* @__PURE__ */ new Map(), L = /* @__PURE__ */ new WeakSet(), M = ["date", "dateShort", "month", "dateLong", "time", "dateTime", "offset", "timeZoneName"];
26
+ function l(n, e) {
27
+ const i = new Intl.DateTimeFormat(n, { timeZone: e, day: "2-digit", month: "2-digit", year: "numeric" }), r = new Intl.DateTimeFormat(n, { timeZone: e, day: "2-digit", month: "2-digit" }), a = new Intl.DateTimeFormat(n, { timeZone: e, month: "long", year: "numeric" }), I = new Intl.DateTimeFormat(n, { month: "long" }), D = new Intl.DateTimeFormat(n, {
28
+ timeZone: e,
29
+ weekday: "long",
30
+ day: "numeric",
31
+ month: "long",
32
+ year: "numeric"
33
+ }), c = { timeZone: e, hour: "2-digit", minute: "2-digit", hour12: !1, hourCycle: "h23" }, f = {
34
+ without: new Intl.DateTimeFormat(n, c),
35
+ with: new Intl.DateTimeFormat(n, { ...c, second: "2-digit" })
36
+ }, d = {
37
+ without: new Intl.DateTimeFormat(n, { day: "2-digit", month: "2-digit", year: "numeric", ...c }),
38
+ with: new Intl.DateTimeFormat(n, {
39
+ day: "2-digit",
40
+ month: "2-digit",
41
+ year: "numeric",
42
+ ...c,
43
+ second: "2-digit"
44
+ })
45
+ }, y = new Intl.DateTimeFormat(n, { timeZone: e, timeZoneName: "shortOffset" }), N = new Intl.DateTimeFormat(n, { timeZone: e, timeZoneName: "shortGeneric" }), F = /* @__PURE__ */ new Map(), u = { signDisplay: "negative" }, h = /* @__PURE__ */ new Map(), b = new Intl.NumberFormat(n, { ...u, notation: "scientific", maximumSignificantDigits: 10 }), p = new Intl.NumberFormat(n, u), S = new Intl.NumberFormat(n, { ...u, style: "percent", maximumFractionDigits: 0 }), v = new Intl.Collator(n), g = new Intl.RelativeTimeFormat(n, { numeric: "auto" });
46
+ return {
47
+ locale: n,
48
+ timeZone: e,
49
+ timeZoneName: (t) => N.formatToParts(t).find((o) => o.type === "timeZoneName")?.value ?? "",
50
+ date: (t) => i.format(t),
51
+ dateShort: (t) => r.format(t),
52
+ month: (t) => a.format(t),
53
+ monthName: (t) => I.format(t),
54
+ dateLong: (t) => D.format(t),
55
+ time: (t, o) => (o ? f.with : f.without).format(t),
56
+ dateTime: (t, o) => (o ? d.with : d.without).format(t),
57
+ offset: (t) => y.formatToParts(t).find((o) => o.type === "timeZoneName")?.value ?? "",
58
+ number: (t, o) => {
59
+ if (o === void 0 && t !== 0 && Math.abs(t) < 0.5 * 10 ** -w) return b.format(t);
60
+ let m = F.get(o);
61
+ return m || (m = new Intl.NumberFormat(n, {
62
+ ...u,
63
+ minimumFractionDigits: o,
64
+ maximumFractionDigits: o ?? w
65
+ }), F.set(o, m)), m.format(t);
66
+ },
67
+ numberWith: (t, o) => {
68
+ const m = JSON.stringify(o);
69
+ let s = h.get(m);
70
+ return s || (s = new Intl.NumberFormat(n, { ...u, ...o }), h.set(m, s)), s.format(t);
71
+ },
72
+ count: (t) => p.format(t),
73
+ percent: (t) => S.format(t),
74
+ compareText: (t, o) => v.compare(t, o),
75
+ relative: (t) => {
76
+ const o = Math.max(0, Math.round(t / 1e3));
77
+ for (const [m, s] of E)
78
+ if (o >= s) return g.format(-Math.floor(o / s), m);
79
+ return g.format(-o, "second");
80
+ }
81
+ };
82
+ }
83
+ const x = /* @__PURE__ */ A("en-GB");
84
+ function k(n) {
85
+ const e = [...n.number(1234.5, 1).replace(/[\d-]/g, "")], i = e[e.length - 1] ?? ".";
86
+ return { group: e.length > 1 ? e[0] : "", decimal: i };
87
+ }
88
+ const R = /* @__PURE__ */ k(x);
89
+ export {
90
+ x as D,
91
+ M as I,
92
+ R as a,
93
+ L as b,
94
+ A as f,
95
+ k as s,
96
+ O as w
97
+ };
package/dist/index.d.ts CHANGED
@@ -321,8 +321,11 @@ export declare interface CheckboxProps extends Omit<InputHTMLAttributes<HTMLInpu
321
321
  /** A clock face at a quarter past - the time pickers' character. */
322
322
  export declare function ClockGlyph({ ref, size, ...rest }: GlyphProps): JSX.Element;
323
323
 
324
- /** A searchable select field (the combobox pattern with a listbox panel). */
325
- export declare function Combobox<T extends string = string>({ ref, options, value, onChange, placeholder, size: ownSize, chars, disabled, invalid, emptyText, clearable, className, style, id, onKeyDown, onClick, onBlur, ...rest }: ComboboxProps<T>): JSX.Element;
324
+ /** A searchable select field (the combobox pattern with a listbox panel).
325
+ The label of the chosen `value` is kept from the last `options` that held
326
+ it, so a search that replaces the options does not empty the field - an
327
+ initial `value` must stand among the first `options`. */
328
+ export declare function Combobox<T extends string = string>({ ref, options, value, onChange, placeholder, size: ownSize, chars, disabled, invalid, emptyText, clearable, onSearch, filter, loading, className, style, id, onKeyDown, onClick, onBlur, ...rest }: ComboboxProps<T>): JSX.Element;
326
329
 
327
330
  /** One possibility of a `Combobox`: the value it stands for and the label it
328
331
  is found by. */
@@ -368,6 +371,19 @@ export declare interface ComboboxProps<T extends string = string> extends Omit<H
368
371
  emptyText?: string;
369
372
  /** Shows a cross on selection or input that clears field and selection. */
370
373
  clearable?: boolean;
374
+ /** Runs on every change of the typed text - the clearing cross's too, with
375
+ `""` - and not on opening or closing. For an application that fetches the
376
+ matches itself: debounce and cancelling stale requests are yours. */
377
+ onSearch?: (text: string) => void;
378
+ /** With `false` the field filters nothing: `options` are shown as given, in
379
+ their order - the server's ranking. The active option returns to the first
380
+ when they change while the panel is open.
381
+ @default true */
382
+ filter?: boolean;
383
+ /** Results are on their way: the list shows the wording's "Loading" line
384
+ where it would show the empty text, below any `options` given, and is
385
+ `aria-busy`. */
386
+ loading?: boolean;
371
387
  }
372
388
 
373
389
  /** A window above the application in which one types and finds: it searches
@@ -449,6 +465,15 @@ export declare interface CommandPaletteProps extends Omit<DialogHTMLAttributes<H
449
465
  maxFinds?: number;
450
466
  }
451
467
 
468
+ /** Options of `useCommandPaletteShortcut`. */
469
+ export declare interface CommandPaletteShortcutOptions {
470
+ /**
471
+ * Whether "/" opens the palette (WCAG 2.1.4: offer the user a way to turn a single-key shortcut off). Cmd+K / Ctrl+K is unaffected.
472
+ * @default true
473
+ */
474
+ slash?: boolean;
475
+ }
476
+
452
477
  /** Compact confirmation dialog on the basis of Modal. */
453
478
  export declare function ConfirmDialog({ ref, open, onClose, onConfirm, title, description, confirmLabel, cancelLabel, tone, loading, ...rest }: ConfirmDialogProps): JSX.Element;
454
479
 
@@ -560,20 +585,22 @@ export declare function createLongPress(onPress: (at: PressPoint) => void, onEnd
560
585
  dialog, a toast or an alert - one drawing at the size of its place. */
561
586
  export declare function CrossGlyph({ ref, size, ...rest }: GlyphProps): JSX.Element;
562
587
 
563
- /** A date selection with a calendar panel; weeks begin on Monday. */
564
- export declare function DatePicker({ ref, value, onChange, placeholder, disabled, invalid, size: ownSize, chars, clearable, className, ...rest }: DatePickerProps): JSX.Element;
588
+ /** A date selection with a calendar panel; weeks begin on Monday. The panel's
589
+ foot takes a typed date, read in the order the formats in use write one. */
590
+ export declare function DatePicker({ ref, value, onChange, placeholder, disabled, invalid, size: ownSize, chars, clearable, min, max, className, ...rest }: DatePickerProps): JSX.Element;
565
591
 
566
592
  /**
567
- * The value contract: every way - the grid, "Today", clearing - hands out local
568
- * midnight (resolution "day"). There is no path that delivers a time of day
569
- * along with it.
593
+ * The value contract: every way - the grid, "Today", clearing - hands out
594
+ * midnight in the formats' zone (the reader's, unless the application names
595
+ * one; resolution "day"). There is no path that delivers a time of day along
596
+ * with it.
570
597
  */
571
598
  export declare interface DatePickerProps extends Omit<HTMLAttributes<HTMLButtonElement>, "onChange" | "defaultValue">, RefProp<HTMLButtonElement> {
572
- /** The day, as a `Date` on local midnight; `null` means none. */
599
+ /** The day, as a `Date` on midnight in the formats' zone (the reader's, unless the application names one); `null` means none. */
573
600
  value: Date | null;
574
601
  /** Runs as soon as a day is settled - on a click in the grid, on "Today" and
575
602
  on clearing (`null`). Every one of these ways hands out
576
- local midnight; there is none that delivers a time along with it. */
603
+ midnight in the formats' zone; there is none that delivers a time along with it. */
577
604
  onChange: (date: Date | null) => void;
578
605
  /** What stands in the empty field. */
579
606
  placeholder?: string;
@@ -592,8 +619,13 @@ export declare interface DatePickerProps extends Omit<HTMLAttributes<HTMLButtonE
592
619
  as its longest value in the formats in use, so a date never truncates. */
593
620
  chars?: number;
594
621
  /** Shows a cross where a value is set, which fades in on hover/focus and
595
- clears the value. */
622
+ clears the value, and the open panel offers Clear. Without it
623
+ no way to empty the value is offered. */
596
624
  clearable?: boolean;
625
+ /** The earliest day the picker offers, inclusive. Only its calendar day counts - in the formats' zone, when one is named - not its time of day. A value given outside is shown as given. */
626
+ min?: Date;
627
+ /** The latest day the picker offers, inclusive; read as `min` is. */
628
+ max?: Date;
597
629
  }
598
630
 
599
631
  /** A span between two dates, both ends included - the value of
@@ -619,15 +651,15 @@ export declare interface DateRange {
619
651
  * - Two chained months: paging on the outside, no day appears twice.
620
652
  * - The same day clicked twice = a one-day time span.
621
653
  */
622
- export declare function DateRangePicker({ ref, value, onChange, placeholder, disabled, invalid, size: ownSize, chars, clearable, presets, className, ...rest }: DateRangePickerProps): JSX.Element;
654
+ export declare function DateRangePicker({ ref, value, onChange, placeholder, disabled, invalid, size: ownSize, chars, clearable, presets, min, max, className, ...rest }: DateRangePickerProps): JSX.Element;
623
655
 
624
656
  /**
625
- * The value contract: both ends on local midnight (resolution "day"), and `from`
657
+ * The value contract: both ends on midnight in the formats' zone (resolution "day"), and `from`
626
658
  * never lies after `to` - a range dragged backwards is silently turned around.
627
659
  * Both ends count inclusively. There is no error state.
628
660
  */
629
661
  export declare interface DateRangePickerProps extends Omit<HTMLAttributes<HTMLButtonElement>, "onChange" | "defaultValue">, RefProp<HTMLButtonElement> {
630
- /** The time span, both ends on local midnight and both inclusive; `null`
662
+ /** The time span, both ends on midnight in the formats' zone (the reader's, unless the application names one) and both inclusive; `null`
631
663
  means none. */
632
664
  value: DateRange | null;
633
665
  /** Runs as soon as both ends are settled - after the second click, on a
@@ -651,7 +683,8 @@ export declare interface DateRangePickerProps extends Omit<HTMLAttributes<HTMLBu
651
683
  as its longest value in the formats in use, so a date never truncates. */
652
684
  chars?: number;
653
685
  /** Shows a cross where a value is set, which fades in on hover/focus and
654
- clears the value. */
686
+ clears the value, and the open panel offers Clear. Without it
687
+ no way to empty the value is offered. */
655
688
  clearable?: boolean;
656
689
  /**
657
690
  * The quick-select column in the panel. An empty array hides the column.
@@ -659,13 +692,17 @@ export declare interface DateRangePickerProps extends Omit<HTMLAttributes<HTMLBu
659
692
  * @default `DEFAULT_PRESETS`, in the wording's labels
660
693
  */
661
694
  presets?: RangePreset[];
695
+ /** The earliest day the picker offers, inclusive. Only its calendar day counts - in the formats' zone, when one is named - not its time of day. A value given outside is shown as given. */
696
+ min?: Date;
697
+ /** The latest day the picker offers, inclusive; read as `min` is. */
698
+ max?: Date;
662
699
  }
663
700
 
664
701
  /** A date and a time of day in one field, with a calendar panel. The value is
665
702
  an exact instant and is reported only on "Apply", "Now" or "Clear"; the
666
703
  missing and doubled hours of a daylight-saving change are asked about, not
667
704
  guessed. */
668
- export declare function DateTimePicker({ ref, value, onChange, withSeconds, placeholder, disabled, size: ownSize, chars, invalid, clearable, className, ...rest }: DateTimePickerProps): JSX.Element;
705
+ export declare function DateTimePicker({ ref, value, onChange, withSeconds, placeholder, disabled, size: ownSize, chars, invalid, clearable, min, max, className, ...rest }: DateTimePickerProps): JSX.Element;
669
706
 
670
707
  /**
671
708
  * The value contract: an exact instant (resolution "instant"), with seconds
@@ -676,7 +713,8 @@ export declare function DateTimePicker({ ref, value, onChange, withSeconds, plac
676
713
  * with "Apply", "Now" or "Clear", not already on the click on a day.
677
714
  */
678
715
  export declare interface DateTimePickerProps extends Omit<HTMLAttributes<HTMLButtonElement>, "onChange" | "defaultValue">, RefProp<HTMLButtonElement> {
679
- /** The instant; `null` means none. */
716
+ /** The instant; `null` means none. The panel reads and sets its day and
717
+ wall clock in the formats' zone (the reader's, unless the application names one). */
680
718
  value: Date | null;
681
719
  /** Runs only on completion - "Apply", "Now" or "Clear" - and not already on
682
720
  the click on a day: a day without a time would be a half-set value here,
@@ -701,8 +739,13 @@ export declare interface DateTimePickerProps extends Omit<HTMLAttributes<HTMLBut
701
739
  carries an `error` - by hand only necessary without `FormField`. */
702
740
  invalid?: boolean;
703
741
  /** Shows a cross where a value is set, which fades in on hover/focus and
704
- clears the value. */
742
+ clears the value, and the open panel offers Clear. Without it
743
+ no way to empty the value is offered. */
705
744
  clearable?: boolean;
745
+ /** The earliest day the picker offers, inclusive. Only its calendar day counts - in the formats' zone, when one is named - not its time of day. A value given outside is shown as given. */
746
+ min?: Date;
747
+ /** The latest day the picker offers, inclusive; read as `min` is. */
748
+ max?: Date;
706
749
  }
707
750
 
708
751
  /**
@@ -721,7 +764,7 @@ export declare interface DateTimePickerProps extends Omit<HTMLAttributes<HTMLBut
721
764
  * - Missing and doubled hours of the daylight-saving change are recognised per
722
765
  * end and treated honestly, as in the DateTimePicker.
723
766
  */
724
- export declare function DateTimeRangePicker({ ref, value, onChange, withSeconds, placeholder, disabled, invalid, size: ownSize, chars, clearable, presets, className, ...rest }: DateTimeRangePickerProps): JSX.Element;
767
+ export declare function DateTimeRangePicker({ ref, value, onChange, withSeconds, placeholder, disabled, invalid, size: ownSize, chars, clearable, presets, min, max, className, ...rest }: DateTimeRangePickerProps): JSX.Element;
725
768
 
726
769
  /**
727
770
  * The props resemble the union of DateRangePickerProps and DateTimePickerProps -
@@ -735,7 +778,9 @@ export declare function DateTimeRangePicker({ ref, value, onChange, withSeconds,
735
778
  * DateTimePicker, separately per end of the range.
736
779
  */
737
780
  export declare interface DateTimeRangePickerProps extends Omit<HTMLAttributes<HTMLButtonElement>, "onChange" | "defaultValue">, RefProp<HTMLButtonElement> {
738
- /** The time span with times at both ends; `null` means none. */
781
+ /** The time span with times at both ends; `null` means none. The panel reads
782
+ and sets days and wall clocks in the formats' zone (the reader's, unless
783
+ the application names one). */
739
784
  value: DateRange | null;
740
785
  /** Runs only on "Apply" and on clearing (`null`), never between the two
741
786
  clicks. If the end lies before the start, both swap on applying - there is
@@ -760,7 +805,8 @@ export declare interface DateTimeRangePickerProps extends Omit<HTMLAttributes<HT
760
805
  as its longest value in the formats in use, so a date never truncates. */
761
806
  chars?: number;
762
807
  /** Shows a cross where a value is set, which fades in on hover/focus and
763
- clears the value. */
808
+ clears the value, and the open panel offers Clear. Without it
809
+ no way to empty the value is offered. */
764
810
  clearable?: boolean;
765
811
  /**
766
812
  * The quick-select column in the panel; presets apply for the whole day and
@@ -769,6 +815,10 @@ export declare interface DateTimeRangePickerProps extends Omit<HTMLAttributes<HT
769
815
  * @default `DEFAULT_PRESETS`, in the wording's labels
770
816
  */
771
817
  presets?: RangePreset[];
818
+ /** The earliest day the picker offers, inclusive. Only its calendar day counts - in the formats' zone, when one is named - not its time of day. A value given outside is shown as given. */
819
+ min?: Date;
820
+ /** The latest day the picker offers, inclusive; read as `min` is. */
821
+ max?: Date;
772
822
  }
773
823
 
774
824
  /** The instance shipped by default: English notation on a 24-hour clock
@@ -901,12 +951,22 @@ export declare interface FlatteningEntry<K, S extends Key = string> {
901
951
 
902
952
  /** Everything the library knows about formatting. */
903
953
  export declare interface Formats {
954
+ /** The language tag the set was built in: "en-GB". */
955
+ locale: string;
956
+ /** The IANA name of the time zone instants are written in, or `undefined`
957
+ for the reader's own. */
958
+ timeZone: string | undefined;
959
+ /** The zone's generic name in the set's locale: "Central European Time".
960
+ Empty until the page has hydrated where no zone is named. */
961
+ timeZoneName: (d: Date) => string;
904
962
  /** Date as displayed: 17/03/2026 */
905
963
  date: (d: Date) => string;
906
964
  /** Short form without the year, in the range footer: 17/03 */
907
965
  dateShort: (d: Date) => string;
908
966
  /** The calendar's month header: March 2026 */
909
967
  month: (d: Date) => string;
968
+ /** The month alone, in the calendar head's month list: March */
969
+ monthName: (d: Date) => string;
910
970
  /** Accessible name of a calendar cell: Tuesday, 17 March 2026 */
911
971
  dateLong: (d: Date) => string;
912
972
  /** Time of day, optionally with seconds: 09:05 or 09:05:03 */
@@ -947,7 +1007,7 @@ export declare interface Formats {
947
1007
  /** A label, a hint or error and the control they belong to. The control
948
1008
  inside takes the field's id, description, required and invalid state by
949
1009
  itself - no wiring by hand. */
950
- export declare function FormField({ ref, label, hint, error, required, fieldId, className, children, ...rest }: FormFieldProps): JSX.Element;
1010
+ export declare function FormField({ ref, label, hint, error, required, fieldId, labelPlacement, className, children, ...rest }: FormFieldProps): JSX.Element;
951
1011
 
952
1012
  /**
953
1013
  * Resets the FormField context. For the innards of panels (search field,
@@ -994,9 +1054,15 @@ export declare interface FormFieldProps extends HTMLAttributes<HTMLDivElement>,
994
1054
  /** Optional: a fixed id for the input element (instead of a generated
995
1055
  one). */
996
1056
  fieldId?: string;
1057
+ /** Where the label stands: `"top"` above the field (the default) or
1058
+ `"start"` beside it, in a column as wide as `--u-label-width`, level on
1059
+ the first baseline. `"start"` is for a column of fields and fills its
1060
+ place; where the row cannot hold the label and 12rem of field, the
1061
+ field wraps under the label. A `Grid` of fields keeps `"top"`. */
1062
+ labelPlacement?: "top" | "start";
997
1063
  }
998
1064
 
999
- /** How much a value can be relied on right now - independently of how it is judged. */
1065
+ /** How old a value is right now - independently of how it is judged and how far its source vouches for it. */
1000
1066
  export declare type Freshness = "fresh" | "stale" | "lost";
1001
1067
 
1002
1068
  /**
@@ -1364,6 +1430,10 @@ export declare interface ModalProps extends Omit<DialogHTMLAttributes<HTMLDialog
1364
1430
  /** The width of a `Modal`. */
1365
1431
  export declare type ModalSize = "sm" | "md" | "lg";
1366
1432
 
1433
+ /** The "more" of a menu trigger: three dots. Each is a zero-length stroke, which
1434
+ a round cap draws as a dot. */
1435
+ export declare function MoreGlyph({ ref, size, ...rest }: GlyphProps): JSX.Element;
1436
+
1367
1437
  /**
1368
1438
  * Multiple selection. The trigger always stays on one line and measures the
1369
1439
  * room: as many chips as fit, the rest as a "+N" counter. Chips are removed by
@@ -1624,6 +1694,10 @@ export declare interface ProgressBarProps extends HTMLAttributes<HTMLDivElement>
1624
1694
  showLabel?: boolean;
1625
1695
  }
1626
1696
 
1697
+ /** How far a value's source vouches for it - independently of how the value is judged and how old it is.
1698
+ The levels are the severities of an OPC UA status code; mapping a code (or another protocol's quality) to a level is the application's. */
1699
+ export declare type Quality = "good" | "uncertain" | "bad";
1700
+
1627
1701
  /** One choice out of a few possibilities, all of them visible. Controlled
1628
1702
  through `value` and `onChange`, or uncontrolled from `defaultValue`; the
1629
1703
  arrow keys move between the possibilities. */
@@ -1991,7 +2065,7 @@ export declare interface StackProps extends HTMLAttributes<HTMLDivElement>, RefP
1991
2065
  }
1992
2066
 
1993
2067
  /** Metric tile: one value, read against its limits. */
1994
- export declare function Stat({ ref, label, value, unit, decimals, limits, history, asOf, ages, className, ...rest }: StatProps): JSX.Element;
2068
+ export declare function Stat({ ref, label, value, unit, decimals, limits, history, asOf, ages, quality, className, ...rest }: StatProps): JSX.Element;
1995
2069
 
1996
2070
  /** The props of `Stat`. */
1997
2071
  export declare interface StatProps extends Omit<HTMLAttributes<HTMLDivElement>, "children">, RefProp<HTMLDivElement> {
@@ -2015,6 +2089,10 @@ export declare interface StatProps extends Omit<HTMLAttributes<HTMLDivElement>,
2015
2089
  asOf?: Date | number | null;
2016
2090
  /** Without ages there is no freshness display and no cadence. */
2017
2091
  ages?: FreshnessAges;
2092
+ /** How far the value's source vouches for it. Absent and `good` show
2093
+ nothing; `uncertain` and `bad` say so in a word, in the tile's name and
2094
+ in a line under the figure. The verdict and the freshness stay. */
2095
+ quality?: Quality;
2018
2096
  }
2019
2097
 
2020
2098
  /** Where a procedure stands: its steps in order, done, current, upcoming or
@@ -2524,12 +2602,12 @@ export declare interface UmrissProviderProps {
2524
2602
  }
2525
2603
 
2526
2604
  /**
2527
- * Binds Cmd+K/Ctrl+K and "/" to the opening of a palette.
2605
+ * Binds Cmd+K/Ctrl+K and "/" to the opening of a palette. To remap a key, call the same `onOpen` from your own listener.
2528
2606
  *
2529
- * `onOpen` may be new on every render: the hook remembers the current version
2530
- * rather than unsubscribing and resubscribing the listener each time.
2607
+ * `onOpen` and `options` may be new on every render: the hook remembers the
2608
+ * current version rather than unsubscribing and resubscribing the listener each time.
2531
2609
  */
2532
- export declare function useCommandPaletteShortcut(onOpen: () => void): void;
2610
+ export declare function useCommandPaletteShortcut(onOpen: () => void, options?: CommandPaletteShortcutOptions): void;
2533
2611
 
2534
2612
  /**
2535
2613
  * Opens a `ContextMenu` the same way on every device: on a right-click (at the
@@ -2557,7 +2635,9 @@ export declare const useDensity: () => Density;
2557
2635
  */
2558
2636
  export declare function useDensityFor(own: "regular" | "compact" | undefined, fallback: "regular" | "compact"): "regular" | "compact";
2559
2637
 
2560
- /** Only the formatting. Dates and times are empty until the page has hydrated. */
2638
+ /** Only the formatting. Without a named zone, dates and times are empty until
2639
+ the page has hydrated. A named zone does not depend on the reader, so the
2640
+ server writes every instant with it. */
2561
2641
  export declare function useFormats(): Formats;
2562
2642
 
2563
2643
  /** Used by Input, Select and Checkbox to wire up id and aria automatically. */
@@ -2587,6 +2667,14 @@ export declare const useLanguage: () => Language;
2587
2667
  */
2588
2668
  export declare function usePortalTarget(): () => HTMLElement | null;
2589
2669
 
2670
+ /**
2671
+ * The name of the formats' time zone, for a view that shows instants: set when
2672
+ * the formats name a zone, the page has hydrated, and the reader's own zone is
2673
+ * another; `null` otherwise. The reader's zone is known only in the browser,
2674
+ * so the server never writes it.
2675
+ */
2676
+ export declare function useTimeZoneLabel(): string | null;
2677
+
2590
2678
  /** Access to `toast()`, `update()` and `dismiss()`; requires a ToastProvider. */
2591
2679
  export declare function useToast(): ToastContextValue;
2592
2680
 
@@ -2785,6 +2873,12 @@ export declare interface Wording {
2785
2873
  the dialog. */
2786
2874
  datePanel: string;
2787
2875
  dateClear: string;
2876
+ /** The name of the DatePicker panel's typed field. */
2877
+ typeDate: string;
2878
+ /** Announced when the typed text is no date. */
2879
+ notADate: string;
2880
+ /** Announced when the typed date lies outside `min` and `max`; each bound is written in the formats in use, `null` where there is none. */
2881
+ dateOutOfRange: (min: string | null, max: string | null) => string;
2788
2882
  dateTimePlaceholder: string;
2789
2883
  dateTimePanel: string;
2790
2884
  dateTimeClear: string;
@@ -2798,6 +2892,10 @@ export declare interface Wording {
2798
2892
  dateTimeRangeClear: string;
2799
2893
  previousMonth: string;
2800
2894
  nextMonth: string;
2895
+ /** Name of the calendar head's month list. */
2896
+ monthSelect: string;
2897
+ /** Name of the calendar head's year list. */
2898
+ yearSelect: string;
2801
2899
  /** Group name of the preset column. */
2802
2900
  quickSelect: string;
2803
2901
  today: string;
@@ -3056,6 +3154,12 @@ export declare interface Wording {
3056
3154
  freshnessFresh: string;
3057
3155
  freshnessStale: string;
3058
3156
  freshnessDisconnected: string;
3157
+ /** The three quality levels (ADR-0077) - the THIRD axis, beside the verdict
3158
+ and the freshness: how far the value's source vouches for it. A bad value
3159
+ keeps its verdict and its age. */
3160
+ qualityGood: string;
3161
+ qualityUncertain: string;
3162
+ qualityBad: string;
3059
3163
  /** "As of: 3 minutes ago", where the duration comes from the formats. */
3060
3164
  asOfAgo: (duration: string) => string;
3061
3165
  close: string;
@@ -3268,4 +3372,42 @@ export declare interface Wording {
3268
3372
  */
3269
3373
  export declare function writeNumber(formats: Formats, n: number, format?: NumberFormat): string;
3270
3374
 
3375
+ /** The fields a wall clock shows. Time of day defaults to midnight; a field
3376
+ out of range carries over, as `new Date(y, m, d)` does. */
3377
+ export declare interface ZoneClock {
3378
+ year: number;
3379
+ month: number;
3380
+ day: number;
3381
+ hours?: number;
3382
+ minutes?: number;
3383
+ seconds?: number;
3384
+ milliseconds?: number;
3385
+ }
3386
+
3387
+ /** The instant at which the zone's day containing `instant` begins; `undefined`
3388
+ is the reader's zone. */
3389
+ export declare function zoneDayStart(instant: Date | number, timeZone: string | undefined): Date;
3390
+
3391
+ /** The wall-clock fields of an instant. `month` counts from 0 and `weekday`
3392
+ from Sunday = 0, as the Date's own getters do. */
3393
+ export declare interface ZoneFields {
3394
+ year: number;
3395
+ month: number;
3396
+ day: number;
3397
+ hours: number;
3398
+ minutes: number;
3399
+ seconds: number;
3400
+ weekday: number;
3401
+ }
3402
+
3403
+ /** The wall-clock fields of an instant in a zone; `undefined` is the reader's. */
3404
+ export declare function zoneFields(instant: Date | number, timeZone: string | undefined): ZoneFields;
3405
+
3406
+ /**
3407
+ * The instant at which a zone's clock shows the given fields; `undefined` is
3408
+ * the reader's zone. A time the clock skips moves forward, as the Date does,
3409
+ * and a doubled one takes the earlier occurrence.
3410
+ */
3411
+ export declare function zoneInstant(clock: ZoneClock, timeZone: string | undefined): Date;
3412
+
3271
3413
  export { }
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- import { f as d } from "../formats-BccAYWgq.js";
3
- const u = d("de-DE"), h = {
2
+ import { f as d } from "../formats-Bo0qM01D.js";
3
+ const u = /* @__PURE__ */ d("de-DE"), h = {
4
4
  clearInput: "Eingabe leeren",
5
5
  clearSelection: "Auswahl leeren",
6
6
  decreaseValue: "Wert verringern",
@@ -39,6 +39,9 @@ const u = d("de-DE"), h = {
39
39
  datePlaceholder: "Datum wählen",
40
40
  datePanel: "Datum wählen",
41
41
  dateClear: "Datum leeren",
42
+ typeDate: "Datum eingeben",
43
+ notADate: "Kein gültiges Datum",
44
+ dateOutOfRange: (e, n) => e && n ? `Nicht zwischen ${e} und ${n}` : e ? `Nicht vor ${e}` : `Nicht nach ${n}`,
42
45
  dateTimePlaceholder: "Datum und Zeit wählen",
43
46
  dateTimePanel: "Datum und Zeit wählen",
44
47
  dateTimeClear: "Datum und Zeit leeren",
@@ -49,6 +52,8 @@ const u = d("de-DE"), h = {
49
52
  dateTimeRangeClear: "Zeitraum mit Uhrzeit leeren",
50
53
  previousMonth: "Voriger Monat",
51
54
  nextMonth: "Nächster Monat",
55
+ monthSelect: "Monat",
56
+ yearSelect: "Jahr",
52
57
  quickSelect: "Schnellwahl",
53
58
  today: "Heute",
54
59
  now: "Jetzt",
@@ -211,6 +216,9 @@ const u = d("de-DE"), h = {
211
216
  freshnessFresh: "Aktuell",
212
217
  freshnessStale: "Veraltet",
213
218
  freshnessDisconnected: "Keine Verbindung",
219
+ qualityGood: "Qualität gut",
220
+ qualityUncertain: "Qualität unsicher",
221
+ qualityBad: "Qualität schlecht",
214
222
  asOfAgo: (e) => `Stand: ${e}`,
215
223
  close: "Schließen",
216
224
  closeToast: "Meldung schließen",