@umriss-ui/core 0.42.0 → 0.44.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
@@ -21,6 +21,13 @@ declare interface Formats {
21
21
  * exactly that many places.
22
22
  */
23
23
  number: (n: number, decimals?: number) => string;
24
+ /**
25
+ * A number written with Intl's own options in the set's locale: a currency,
26
+ * a year without grouping, scientific notation. Pure Intl options - the
27
+ * `decimals` shorthand is expanded by `writeNumber` before it. Like the
28
+ * others it writes no negative zero unless the options set `signDisplay`.
29
+ */
30
+ numberWith: (n: number, options: Intl.NumberFormatOptions) => string;
24
31
  /**
25
32
  * A count. Kept apart from `number` because it makes a different promise: a
26
33
  * count is whole, and Intl's own rounding (at most three decimal places) is
@@ -235,8 +242,14 @@ declare interface Wording {
235
242
  exportLabel: string;
236
243
  /** The export button of a table in server mode, which holds and writes one page. */
237
244
  exportPageLabel: string;
245
+ /** The status while the application prepares an export of every match. */
246
+ exporting: string;
247
+ /** The alert beside the export button when preparing the export failed without a message. */
248
+ exportFailed: string;
238
249
  /** The export's file name, where the application names none. */
239
250
  exportFileName: string;
251
+ /** The name of the sheet an XLSX export holds. */
252
+ exportSheetName: string;
240
253
  /** Placeholder and accessible name of the search field. */
241
254
  tableSearchPlaceholder: string;
242
255
  tableSearchLabel: string;
@@ -316,6 +329,8 @@ declare interface Wording {
316
329
  pathRow: string;
317
330
  /** The footer of a tree: it sums the top level, since a parent holds its children. */
318
331
  footerTopLevel: string;
332
+ /** The footer of a server-mode table: its sums come from the server and cover every match, not the page. Read out only. */
333
+ footerOfMatches: string;
319
334
  /** The box that selects every row of a group. */
320
335
  selectGroup: (name: string) => string;
321
336
  /** A group of the week key: "Week 42, 2026". */
@@ -324,6 +339,12 @@ declare interface Wording {
324
339
  entries: (count: number, formatted: string) => string;
325
340
  /** "3 selected" in the pagination bar and the table toolbar. */
326
341
  selectedCount: (count: number, formatted: string) => string;
342
+ /** The first sentence of the offer in a server-mode table, once the page is ticked: "All 50 on this page are selected." */
343
+ selectedOnPage: (count: number, formatted: string) => string;
344
+ /** The button after it, for the rows the server holds: "Select all 12,400 that match". */
345
+ selectAllMatching: (count: number, formatted: string) => string;
346
+ /** The line once they are selected: "All 12,400 that match are selected." */
347
+ allMatchingSelected: (count: number, formatted: string) => string;
327
348
  /** Said to a screen reader after Ctrl+C copied rows: "3 rows copied". */
328
349
  copiedRows: (count: number, formatted: string) => string;
329
350
  /** Said after Ctrl+C copied the active cell of a grid. */
@@ -355,6 +376,8 @@ declare interface Wording {
355
376
  rangeInvalid: string;
356
377
  /** Clears search and conditions - in the table toolbar and in the empty body. */
357
378
  resetAll: string;
379
+ /** The button under a server-mode table's error that sends the request once more. */
380
+ tryAgain: string;
358
381
  /** "43 of 1.204" - the numbers come from the formats. */
359
382
  filteredOfTotal: (matches: string, total: string) => string;
360
383
  /** The four outcomes of an assessment, as a word beside the value. Colour
@@ -0,0 +1,80 @@
1
+ function l(n, i, o) {
2
+ if (o === "percent") return n.percent(i);
3
+ if (o === "count") return n.count(i);
4
+ if (o === void 0) return n.number(i);
5
+ const { decimals: a, ...u } = o;
6
+ return Object.keys(u).length === 0 ? n.number(i, a) : n.numberWith(
7
+ i,
8
+ a === void 0 ? u : { minimumFractionDigits: a, maximumFractionDigits: a, ...u }
9
+ );
10
+ }
11
+ const w = 10, b = [
12
+ ["day", 86400],
13
+ ["hour", 3600],
14
+ ["minute", 60]
15
+ ];
16
+ function N(n) {
17
+ const i = new Intl.DateTimeFormat(n, { day: "2-digit", month: "2-digit", year: "numeric" }), o = new Intl.DateTimeFormat(n, { day: "2-digit", month: "2-digit" }), a = new Intl.DateTimeFormat(n, { month: "long", year: "numeric" }), u = new Intl.DateTimeFormat(n, {
18
+ weekday: "long",
19
+ day: "numeric",
20
+ month: "long",
21
+ year: "numeric"
22
+ }), c = { hour: "2-digit", minute: "2-digit", hour12: !1, hourCycle: "h23" }, f = {
23
+ without: new Intl.DateTimeFormat(n, c),
24
+ with: new Intl.DateTimeFormat(n, { ...c, second: "2-digit" })
25
+ }, F = {
26
+ without: new Intl.DateTimeFormat(n, { day: "2-digit", month: "2-digit", year: "numeric", ...c }),
27
+ with: new Intl.DateTimeFormat(n, {
28
+ day: "2-digit",
29
+ month: "2-digit",
30
+ year: "numeric",
31
+ ...c,
32
+ second: "2-digit"
33
+ })
34
+ }, T = new Intl.DateTimeFormat(n, { timeZoneName: "shortOffset" }), d = /* @__PURE__ */ new Map(), s = { signDisplay: "negative" }, g = /* @__PURE__ */ new Map(), D = new Intl.NumberFormat(n, { ...s, notation: "scientific", maximumSignificantDigits: 10 }), y = new Intl.NumberFormat(n, s), I = new Intl.NumberFormat(n, { ...s, style: "percent", maximumFractionDigits: 0 }), p = new Intl.Collator(n), h = new Intl.RelativeTimeFormat(n, { numeric: "auto" });
35
+ return {
36
+ date: (t) => i.format(t),
37
+ dateShort: (t) => o.format(t),
38
+ month: (t) => a.format(t),
39
+ dateLong: (t) => u.format(t),
40
+ time: (t, e) => (e ? f.with : f.without).format(t),
41
+ dateTime: (t, e) => (e ? F.with : F.without).format(t),
42
+ offset: (t) => T.formatToParts(t).find((e) => e.type === "timeZoneName")?.value ?? "",
43
+ number: (t, e) => {
44
+ if (e === void 0 && t !== 0 && Math.abs(t) < 0.5 * 10 ** -w) return D.format(t);
45
+ let r = d.get(e);
46
+ return r || (r = new Intl.NumberFormat(n, {
47
+ ...s,
48
+ minimumFractionDigits: e,
49
+ maximumFractionDigits: e ?? w
50
+ }), d.set(e, r)), r.format(t);
51
+ },
52
+ numberWith: (t, e) => {
53
+ const r = JSON.stringify(e);
54
+ let m = g.get(r);
55
+ return m || (m = new Intl.NumberFormat(n, { ...s, ...e }), g.set(r, m)), m.format(t);
56
+ },
57
+ count: (t) => y.format(t),
58
+ percent: (t) => I.format(t),
59
+ compareText: (t, e) => p.compare(t, e),
60
+ relative: (t) => {
61
+ const e = Math.max(0, Math.round(t / 1e3));
62
+ for (const [r, m] of b)
63
+ if (e >= m) return h.format(-Math.floor(e / m), r);
64
+ return h.format(-e, "second");
65
+ }
66
+ };
67
+ }
68
+ const S = N("en-GB");
69
+ function v(n) {
70
+ const i = [...n.number(1234.5, 1).replace(/[\d-]/g, "")], o = i[i.length - 1] ?? ".";
71
+ return { group: i.length > 1 ? i[0] : "", decimal: o };
72
+ }
73
+ const A = v(S);
74
+ export {
75
+ S as D,
76
+ A as a,
77
+ N as f,
78
+ v as s,
79
+ l as w
80
+ };
package/dist/index.d.ts CHANGED
@@ -7,6 +7,9 @@ import { ElementType } from 'react';
7
7
  import { HTMLAttributes } from 'react';
8
8
  import { InputHTMLAttributes } from 'react';
9
9
  import { JSX } from 'react';
10
+ import { KeyboardEvent as KeyboardEvent_2 } from 'react';
11
+ import { MouseEvent as MouseEvent_2 } from 'react';
12
+ import { PointerEvent as PointerEvent_2 } from 'react';
10
13
  import { ReactElement } from 'react';
11
14
  import { ReactNode } from 'react';
12
15
  import { ReactPortal } from 'react';
@@ -319,7 +322,7 @@ export declare interface CheckboxProps extends Omit<InputHTMLAttributes<HTMLInpu
319
322
  export declare function ClockGlyph({ ref, size, ...rest }: GlyphProps): JSX.Element;
320
323
 
321
324
  /** A searchable select field (the combobox pattern with a listbox panel). */
322
- export declare function Combobox<T extends string = string>({ ref, options, value, onChange, placeholder, size: ownSize, chars, disabled, invalid, emptyText, clearable, className, style, onKeyDown, onKeyDownCapture, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy, ...rest }: ComboboxProps<T>): JSX.Element;
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;
323
326
 
324
327
  /** One possibility of a `Combobox`: the value it stands for and the label it
325
328
  is found by. */
@@ -334,7 +337,7 @@ export declare interface ComboboxOption<T extends string = string> {
334
337
  }
335
338
 
336
339
  /** The props of `Combobox`. */
337
- export declare interface ComboboxProps<T extends string = string> extends Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue">, RefProp<HTMLDivElement> {
340
+ export declare interface ComboboxProps<T extends string = string> extends Omit<HTMLAttributes<HTMLInputElement>, "onChange" | "defaultValue">, RefProp<HTMLInputElement> {
338
341
  /** The possibilities, in their natural order. Filtered while typing; never
339
342
  reordered. */
340
343
  options: readonly ComboboxOption<T>[];
@@ -478,36 +481,55 @@ export declare interface ConfirmDialogProps extends Omit<DialogHTMLAttributes<HT
478
481
 
479
482
  /**
480
483
  * A menu that opens at a point instead of under a trigger – for a right-click
481
- * on something that is not a button: a canvas, a row, a subtask.
484
+ * on something that is not a button: a canvas, a row, a subtask. Open it with
485
+ * `useContextMenuTrigger`, which also covers the context-menu key and a long
486
+ * press, the only way on iOS.
482
487
  *
483
488
  * It hangs from an invisible anchor that stands at the point, so the one
484
489
  * popover does the placing, the dismissal and the portal. The focus goes to
485
490
  * the first entry and, on closing, back to where it was when the menu opened.
486
491
  */
487
- export declare function ContextMenu({ open, onOpenChange, position, ariaLabel, children }: ContextMenuProps): JSX.Element;
492
+ export declare function ContextMenu({ open, onOpenChange, position, "aria-label": name, children }: ContextMenuProps): JSX.Element;
488
493
 
489
- /** The props of `ContextMenu`. */
490
- export declare interface ContextMenuProps {
494
+ declare interface ContextMenuBase {
495
+ /** Accessible name of the menu: what it acts on. A context menu has no
496
+ trigger whose label could name it. */
497
+ "aria-label"?: string;
491
498
  /** Whether the menu stands. Controlled, like `Popover`: a right-click
492
499
  opens it only because the caller says so. */
493
500
  open: boolean;
494
501
  /** Reports every wish to change the state – an entry chosen, Escape, an
495
502
  outside click. */
496
503
  onOpenChange: (open: boolean) => void;
497
- /** Where the menu opens, in client coordinates – typically `clientX` and
498
- `clientY` of the event that asked for it. At a window edge the panel
504
+ /** Where the menu opens, in client coordinates – the point that
505
+ `useContextMenuTrigger` hands to its callback (right-click, context-menu
506
+ key or long press), or any `clientX` and `clientY` of your own. At a window edge the panel
499
507
  flips and clamps as every popover does. */
500
508
  position: {
501
509
  x: number;
502
510
  y: number;
503
511
  };
504
- /** Accessible name of the menu: what it acts on. A context menu has no
505
- trigger whose label could name it. */
506
- ariaLabel: string;
507
512
  /** The entries – `MenuItem` and `MenuSeparator`, as in `Menu`. */
508
513
  children: ReactNode;
509
514
  }
510
515
 
516
+ /** The props of `ContextMenu`. The menu is named by what it acts on - it has
517
+ no trigger whose label could name it: `aria-label` is required. */
518
+ export declare type ContextMenuProps = ContextMenuBase & {
519
+ /** Accessible name of the menu: what it acts on. */
520
+ "aria-label": string;
521
+ };
522
+
523
+ /** What `useContextMenuTrigger` returns: spread it on the target. */
524
+ export declare interface ContextMenuTriggerProps extends LongPressHandlers {
525
+ /** Opens at the pointer on a right-click; a finger's own `contextmenu` is held back. */
526
+ onContextMenu: (event: MouseEvent_2<HTMLElement>) => void;
527
+ /** Opens at the target's box on the context-menu key or Shift+F10. */
528
+ onKeyDown: (event: KeyboardEvent_2<HTMLElement>) => void;
529
+ /** Keeps the system from selecting text or showing its callout under the held finger. */
530
+ style: CSSProperties;
531
+ }
532
+
511
533
  /** The two heights of a control: `sm` for a toolbar and dense forms, `md`
512
534
  otherwise. */
513
535
  export declare type ControlSize = "sm" | "md";
@@ -525,6 +547,15 @@ export declare interface ControlSizeProviderProps {
525
547
  children: ReactNode;
526
548
  }
527
549
 
550
+ /**
551
+ * The one long-press detector, a plain function over pointer events so that
552
+ * code outside React can use it. `onPress` fires once, with the finger's point
553
+ * in client coordinates, when a touch pointer has been held 500 ms within 10 px;
554
+ * `onEnd` fires when a press that has fired is lifted or cancelled. A move
555
+ * beyond 10 px, a lift and `pointercancel` before the hold cancel it silently.
556
+ */
557
+ export declare function createLongPress(onPress: (at: PressPoint) => void, onEnd?: () => void): LongPress;
558
+
528
559
  /** The cross that clears a field, removes a tag or a chip, and closes a
529
560
  dialog, a toast or an alert - one drawing at the size of its place. */
530
561
  export declare function CrossGlyph({ ref, size, ...rest }: GlyphProps): JSX.Element;
@@ -537,7 +568,7 @@ export declare function DatePicker({ ref, value, onChange, placeholder, disabled
537
568
  * midnight (resolution "day"). There is no path that delivers a time of day
538
569
  * along with it.
539
570
  */
540
- export declare interface DatePickerProps extends Omit<HTMLAttributes<HTMLSpanElement>, "onChange" | "defaultValue">, RefProp<HTMLSpanElement> {
571
+ export declare interface DatePickerProps extends Omit<HTMLAttributes<HTMLButtonElement>, "onChange" | "defaultValue">, RefProp<HTMLButtonElement> {
541
572
  /** The day, as a `Date` on local midnight; `null` means none. */
542
573
  value: Date | null;
543
574
  /** Runs as soon as a day is settled - on a click in the grid, on "Today" and
@@ -595,7 +626,7 @@ export declare function DateRangePicker({ ref, value, onChange, placeholder, dis
595
626
  * never lies after `to` - a range dragged backwards is silently turned around.
596
627
  * Both ends count inclusively. There is no error state.
597
628
  */
598
- export declare interface DateRangePickerProps extends Omit<HTMLAttributes<HTMLSpanElement>, "onChange" | "defaultValue">, RefProp<HTMLSpanElement> {
629
+ export declare interface DateRangePickerProps extends Omit<HTMLAttributes<HTMLButtonElement>, "onChange" | "defaultValue">, RefProp<HTMLButtonElement> {
599
630
  /** The time span, both ends on local midnight and both inclusive; `null`
600
631
  means none. */
601
632
  value: DateRange | null;
@@ -644,7 +675,7 @@ export declare function DateTimePicker({ ref, value, onChange, withSeconds, plac
644
675
  * panel applies (the default being the earlier one). A value is reported only
645
676
  * with "Apply", "Now" or "Clear", not already on the click on a day.
646
677
  */
647
- export declare interface DateTimePickerProps extends Omit<HTMLAttributes<HTMLSpanElement>, "onChange" | "defaultValue">, RefProp<HTMLSpanElement> {
678
+ export declare interface DateTimePickerProps extends Omit<HTMLAttributes<HTMLButtonElement>, "onChange" | "defaultValue">, RefProp<HTMLButtonElement> {
648
679
  /** The instant; `null` means none. */
649
680
  value: Date | null;
650
681
  /** Runs only on completion - "Apply", "Now" or "Clear" - and not already on
@@ -703,7 +734,7 @@ export declare function DateTimeRangePicker({ ref, value, onChange, withSeconds,
703
734
  * the daylight-saving change the same reservation holds as for the
704
735
  * DateTimePicker, separately per end of the range.
705
736
  */
706
- export declare interface DateTimeRangePickerProps extends Omit<HTMLAttributes<HTMLSpanElement>, "onChange" | "defaultValue">, RefProp<HTMLSpanElement> {
737
+ export declare interface DateTimeRangePickerProps extends Omit<HTMLAttributes<HTMLButtonElement>, "onChange" | "defaultValue">, RefProp<HTMLButtonElement> {
707
738
  /** The time span with times at both ends; `null` means none. */
708
739
  value: DateRange | null;
709
740
  /** Runs only on "Apply" and on clearing (`null`), never between the two
@@ -891,6 +922,13 @@ export declare interface Formats {
891
922
  * exactly that many places.
892
923
  */
893
924
  number: (n: number, decimals?: number) => string;
925
+ /**
926
+ * A number written with Intl's own options in the set's locale: a currency,
927
+ * a year without grouping, scientific notation. Pure Intl options - the
928
+ * `decimals` shorthand is expanded by `writeNumber` before it. Like the
929
+ * others it writes no negative zero unless the options set `signDisplay`.
930
+ */
931
+ numberWith: (n: number, options: Intl.NumberFormatOptions) => string;
894
932
  /**
895
933
  * A count. Kept apart from `number` because it makes a different promise: a
896
934
  * count is whole, and Intl's own rounding (at most three decimal places) is
@@ -1177,6 +1215,36 @@ export declare interface LinkProps extends AnchorHTMLAttributes<HTMLAnchorElemen
1177
1215
  external?: boolean;
1178
1216
  }
1179
1217
 
1218
+ /** A press detector over pointer events; see `createLongPress`. */
1219
+ export declare interface LongPress {
1220
+ /** Arms the press when the pointer is a finger; a mouse and a pen never press. */
1221
+ pointerDown(event: PressPointer): void;
1222
+ /** Cancels a press that is not yet held once the finger has left its 10 px. */
1223
+ pointerMove(event: PressPointer): void;
1224
+ /** Ends a press: a held one calls `onEnd`, and its click is then swallowed. */
1225
+ pointerUp(): void;
1226
+ /** As `pointerUp`, for `pointercancel`. */
1227
+ pointerCancel(): void;
1228
+ /** Whether this click belongs to a press and must not reach the target: true
1229
+ once for the click that ends a held press. Call `preventDefault` and
1230
+ `stopPropagation` on the event when it is. */
1231
+ swallows(): boolean;
1232
+ /** Whether the last pointer was a finger - the `contextmenu` of such a
1233
+ pointer is the press's, not a right-click. */
1234
+ touching(): boolean;
1235
+ /** Drops the timer. Call it when the target goes away. */
1236
+ dispose(): void;
1237
+ }
1238
+
1239
+ /** The handlers of a press, to spread on the pressed element. */
1240
+ declare interface LongPressHandlers {
1241
+ onPointerDown: (event: PointerEvent_2<HTMLElement>) => void;
1242
+ onPointerMove: (event: PointerEvent_2<HTMLElement>) => void;
1243
+ onPointerUp: (event: PointerEvent_2<HTMLElement>) => void;
1244
+ onPointerCancel: (event: PointerEvent_2<HTMLElement>) => void;
1245
+ onClickCapture: (event: MouseEvent_2<HTMLElement>) => void;
1246
+ }
1247
+
1180
1248
  /** Measuring: a line with two end marks. Not a ruler with a scale: the teeth
1181
1249
  would be a grey stripe at ten nominal units. */
1182
1250
  export declare function MeasureGlyph({ ref, size, ...rest }: GlyphProps): JSX.Element;
@@ -1309,7 +1377,7 @@ export declare type ModalSize = "sm" | "md" | "lg";
1309
1377
  * "selected" scope, rows that have been unticked stay visible until the scope
1310
1378
  * changes, so that nothing jumps away from under the mouse pointer.
1311
1379
  */
1312
- export declare function MultiSelect<T extends string = string>({ ref, options, value, onChange, placeholder, searchPlaceholder, emptyText, size: ownSize, chars, disabled, invalid, clearable, className, style, onClick, onKeyDown, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy, ...rest }: MultiSelectProps<T>): JSX.Element;
1380
+ export declare function MultiSelect<T extends string = string>({ ref, options, value, onChange, placeholder, searchPlaceholder, emptyText, size: ownSize, chars, disabled, invalid, clearable, className, style, id, onClick, ...rest }: MultiSelectProps<T>): JSX.Element;
1313
1381
 
1314
1382
  /** One possibility of a `MultiSelect`: the value it stands for and its label. */
1315
1383
  export declare interface MultiSelectOption<T extends string = string> {
@@ -1323,7 +1391,7 @@ export declare interface MultiSelectOption<T extends string = string> {
1323
1391
  }
1324
1392
 
1325
1393
  /** The props of `MultiSelect`. */
1326
- export declare interface MultiSelectProps<T extends string = string> extends Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue">, RefProp<HTMLDivElement> {
1394
+ export declare interface MultiSelectProps<T extends string = string> extends Omit<HTMLAttributes<HTMLButtonElement>, "onChange" | "defaultValue">, RefProp<HTMLButtonElement> {
1327
1395
  /** The possibilities, in their natural order. The list never re-sorts –
1328
1396
  not even in the "selected" scope. */
1329
1397
  options: readonly MultiSelectOption<T>[];
@@ -1381,6 +1449,9 @@ export declare interface NodeReader<K, S extends Key = string> {
1381
1449
  matches?: (node: K) => boolean;
1382
1450
  }
1383
1451
 
1452
+ /** How a number is written: a share, a count, or Intl's options. */
1453
+ export declare type NumberFormat = "percent" | "count" | NumberOptions;
1454
+
1384
1455
  /**
1385
1456
  * Number input in the notation of the formats (`useFormats`): its decimal and
1386
1457
  * group separators are read and written, the group separators set on leaving
@@ -1391,7 +1462,7 @@ export declare interface NodeReader<K, S extends Key = string> {
1391
1462
  * present on hover or focus. Holding one down repeats the step (a short
1392
1463
  * run-up, then briskly); min/max disable the respective button.
1393
1464
  */
1394
- export declare function NumberInput({ ref, value, onChange, min, max, step, decimals, prefix, suffix, size: ownSize, chars, invalid, disabled, className, style, id, onFocus, onBlur, onKeyDown, ...rest }: NumberInputProps): JSX.Element;
1465
+ export declare function NumberInput({ ref, value, onChange, min, max, step, decimals, grouping, prefix, suffix, size: ownSize, chars, invalid, disabled, className, style, id, onFocus, onBlur, onKeyDown, ...rest }: NumberInputProps): JSX.Element;
1395
1466
 
1396
1467
  /** The props of `NumberInput`: a native input's attributes, with the value a
1397
1468
  number or `null`. */
@@ -1415,6 +1486,10 @@ export declare interface NumberInputProps extends Omit<InputHTMLAttributes<HTMLI
1415
1486
  step?: number;
1416
1487
  /** Fixed decimal places; 0 = whole numbers, undefined = free. */
1417
1488
  decimals?: number;
1489
+ /** Group separators in the text: `false` writes none ("2024"), and the
1490
+ field still reads what it writes.
1491
+ @default true */
1492
+ grouping?: boolean;
1418
1493
  /** Adornment before the number, e.g. "±". */
1419
1494
  prefix?: ReactNode;
1420
1495
  /** Adornment after the number, e.g. "€" or "%". */
@@ -1433,6 +1508,12 @@ export declare interface NumberInputProps extends Omit<InputHTMLAttributes<HTMLI
1433
1508
  invalid?: boolean;
1434
1509
  }
1435
1510
 
1511
+ /** Intl's number options, plus `decimals`: the shorthand for the minimum and the
1512
+ maximum fraction digits. An Intl digit option given beside it wins. */
1513
+ export declare type NumberOptions = Intl.NumberFormatOptions & {
1514
+ decimals?: number;
1515
+ };
1516
+
1436
1517
  /** The plus of `NumberInput`'s step buttons. */
1437
1518
  export declare function PlusGlyph({ ref, size, ...rest }: GlyphProps): JSX.Element;
1438
1519
 
@@ -1451,7 +1532,7 @@ export declare function PlusGlyph({ ref, size, ...rest }: GlyphProps): JSX.Eleme
1451
1532
  * elements in the panel inherit the field id of the trigger, and a click on
1452
1533
  * their label closes the panel.
1453
1534
  */
1454
- export declare function Popover({ open, onOpenChange, anchorRef, focusRef, insideRefs, align, offset, width, minWidth, restoreFocus, hideOnScroll, role, ariaLabel, id, className, children, }: PopoverProps): ReactPortal | null;
1535
+ export declare function Popover({ open, onOpenChange, anchorRef, focusRef, insideRefs, align, offset, width, minWidth, restoreFocus, hideOnScroll, role, "aria-label": name, id, className, children, }: PopoverProps): ReactPortal | null;
1455
1536
 
1456
1537
  /** The props of `Popover`. */
1457
1538
  export declare interface PopoverProps {
@@ -1488,7 +1569,7 @@ export declare interface PopoverProps {
1488
1569
  role?: "dialog" | "listbox" | "menu" | "tooltip";
1489
1570
  /** Accessible name of the surface. Needed as soon as it carries a `role`:
1490
1571
  a named role without a name is a riddle for a screen reader. */
1491
- ariaLabel?: string;
1572
+ "aria-label"?: string;
1492
1573
  /** Fixed id of the surface – for `aria-controls` on the trigger. */
1493
1574
  id?: string;
1494
1575
  /** Additional class on the surface. */
@@ -1506,6 +1587,19 @@ export declare interface PopoverProps {
1506
1587
  */
1507
1588
  export declare type PortalTarget = HTMLElement | (() => HTMLElement | null) | null;
1508
1589
 
1590
+ /** Where the finger stands, in client coordinates. */
1591
+ export declare interface PressPoint {
1592
+ x: number;
1593
+ y: number;
1594
+ }
1595
+
1596
+ /** What the detector reads of a pointer event - a DOM or a React one fits. */
1597
+ export declare interface PressPointer {
1598
+ readonly pointerType: string;
1599
+ readonly clientX: number;
1600
+ readonly clientY: number;
1601
+ }
1602
+
1509
1603
  /** How far a task has come, from 0 to 1 - or, without a value, that it runs.
1510
1604
  It has no tone: a measured value judged against limits is a `Meter`. */
1511
1605
  export declare function ProgressBar({ ref, value, label, valueText, showLabel, className, ...rest }: ProgressBarProps): JSX.Element;
@@ -2359,15 +2453,12 @@ export declare interface TreeSnapshot<S extends Key = string> {
2359
2453
  /** The tree as a control: draws the nodes of a `Tree` from `useTree` as a
2360
2454
  `tree` with keyboard navigation, typeahead and, with `checkable`, ticks.
2361
2455
  What a node says is yours - `children` renders it. */
2362
- export declare function TreeView<K, S extends Key = string>({ ref, tree, ariaLabel, checkable, children, className, onKeyDown, onFocus, onBlur, onScroll, ...rest }: TreeViewProps<K, S>): JSX.Element;
2456
+ export declare function TreeView<K, S extends Key = string>({ ref, tree, "aria-label": name, checkable, children, className, onKeyDown, onFocus, onBlur, onScroll, ...rest }: TreeViewProps<K, S>): JSX.Element;
2363
2457
 
2364
- /** The props of `TreeView`. */
2365
- export declare interface TreeViewProps<K, S extends Key = string> extends Omit<HTMLAttributes<HTMLDivElement>, "children">, RefProp<HTMLDivElement> {
2458
+ declare interface TreeViewBase<K, S extends Key = string> extends Omit<HTMLAttributes<HTMLDivElement>, "children">, RefProp<HTMLDivElement> {
2366
2459
  /** The tree from `useTree`. It is the whole state: flattening, active node,
2367
2460
  checks, anchor. The view holds nothing beside it. */
2368
2461
  tree: Tree<K, S>;
2369
- /** Required: the tree is a structure of its own and needs a name. */
2370
- ariaLabel: string;
2371
2462
  /** Show ticks. Without them a tree remains that knows only an active node -
2372
2463
  and no space is kept free for them. */
2373
2464
  checkable?: boolean;
@@ -2375,6 +2466,13 @@ export declare interface TreeViewProps<K, S extends Key = string> extends Omit<H
2375
2466
  children: (entry: FlatteningEntry<K, S>) => ReactNode;
2376
2467
  }
2377
2468
 
2469
+ /** The props of `TreeView`. The tree is a structure of its own and needs a
2470
+ name: `aria-label` is required. */
2471
+ export declare type TreeViewProps<K, S extends Key = string> = TreeViewBase<K, S> & {
2472
+ /** Accessible name of the tree. */
2473
+ "aria-label": string;
2474
+ };
2475
+
2378
2476
  /** The settings of `UmrissProvider` as the components read them, every value
2379
2477
  filled in. */
2380
2478
  export declare interface UmrissConfig {
@@ -2433,6 +2531,21 @@ export declare interface UmrissProviderProps {
2433
2531
  */
2434
2532
  export declare function useCommandPaletteShortcut(onOpen: () => void): void;
2435
2533
 
2534
+ /**
2535
+ * Opens a `ContextMenu` the same way on every device: on a right-click (at the
2536
+ * pointer), on the context-menu key or Shift+F10 (at the target's box) and on
2537
+ * a long press with a finger (at the finger), which is the only way on iOS.
2538
+ * `open` receives the point to pass on as the menu's `position`.
2539
+ *
2540
+ * Spread the result on the target. It sets `style`, so a caller with a style
2541
+ * of their own merges it: `style={{ ...trigger.style, ...mine }}`. The click
2542
+ * and the `contextmenu` that end a long press do not reach the target.
2543
+ */
2544
+ export declare function useContextMenuTrigger(open: (position: {
2545
+ x: number;
2546
+ y: number;
2547
+ }) => void): ContextMenuTriggerProps;
2548
+
2436
2549
  /** The configured density; without a provider, "comfortable". */
2437
2550
  export declare const useDensity: () => Density;
2438
2551
 
@@ -2785,8 +2898,14 @@ export declare interface Wording {
2785
2898
  exportLabel: string;
2786
2899
  /** The export button of a table in server mode, which holds and writes one page. */
2787
2900
  exportPageLabel: string;
2901
+ /** The status while the application prepares an export of every match. */
2902
+ exporting: string;
2903
+ /** The alert beside the export button when preparing the export failed without a message. */
2904
+ exportFailed: string;
2788
2905
  /** The export's file name, where the application names none. */
2789
2906
  exportFileName: string;
2907
+ /** The name of the sheet an XLSX export holds. */
2908
+ exportSheetName: string;
2790
2909
  /** Placeholder and accessible name of the search field. */
2791
2910
  tableSearchPlaceholder: string;
2792
2911
  tableSearchLabel: string;
@@ -2866,6 +2985,8 @@ export declare interface Wording {
2866
2985
  pathRow: string;
2867
2986
  /** The footer of a tree: it sums the top level, since a parent holds its children. */
2868
2987
  footerTopLevel: string;
2988
+ /** The footer of a server-mode table: its sums come from the server and cover every match, not the page. Read out only. */
2989
+ footerOfMatches: string;
2869
2990
  /** The box that selects every row of a group. */
2870
2991
  selectGroup: (name: string) => string;
2871
2992
  /** A group of the week key: "Week 42, 2026". */
@@ -2874,6 +2995,12 @@ export declare interface Wording {
2874
2995
  entries: (count: number, formatted: string) => string;
2875
2996
  /** "3 selected" in the pagination bar and the table toolbar. */
2876
2997
  selectedCount: (count: number, formatted: string) => string;
2998
+ /** The first sentence of the offer in a server-mode table, once the page is ticked: "All 50 on this page are selected." */
2999
+ selectedOnPage: (count: number, formatted: string) => string;
3000
+ /** The button after it, for the rows the server holds: "Select all 12,400 that match". */
3001
+ selectAllMatching: (count: number, formatted: string) => string;
3002
+ /** The line once they are selected: "All 12,400 that match are selected." */
3003
+ allMatchingSelected: (count: number, formatted: string) => string;
2877
3004
  /** Said to a screen reader after Ctrl+C copied rows: "3 rows copied". */
2878
3005
  copiedRows: (count: number, formatted: string) => string;
2879
3006
  /** Said after Ctrl+C copied the active cell of a grid. */
@@ -2905,6 +3032,8 @@ export declare interface Wording {
2905
3032
  rangeInvalid: string;
2906
3033
  /** Clears search and conditions - in the table toolbar and in the empty body. */
2907
3034
  resetAll: string;
3035
+ /** The button under a server-mode table's error that sends the request once more. */
3036
+ tryAgain: string;
2908
3037
  /** "43 of 1.204" - the numbers come from the formats. */
2909
3038
  filteredOfTotal: (matches: string, total: string) => string;
2910
3039
  /** The four outcomes of an assessment, as a word beside the value. Colour
@@ -3131,4 +3260,12 @@ export declare interface Wording {
3131
3260
  calculationNoOperands: string;
3132
3261
  }
3133
3262
 
3263
+ /**
3264
+ * A number as its format says, through the set's own functions - so an
3265
+ * application's replaced `number`, `percent` or `count` is the one called.
3266
+ * No format, or an object with only `decimals`, is `number`; every other
3267
+ * object is `numberWith`.
3268
+ */
3269
+ export declare function writeNumber(formats: Formats, n: number, format?: NumberFormat): string;
3270
+
3134
3271
  export { }
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { f as d } from "../formats-BdlPZDzb.js";
2
+ import { f as d } from "../formats-BccAYWgq.js";
3
3
  const u = d("de-DE"), h = {
4
4
  clearInput: "Eingabe leeren",
5
5
  clearSelection: "Auswahl leeren",
@@ -120,7 +120,10 @@ const u = d("de-DE"), h = {
120
120
  unpinHint: "Fixierung lösen",
121
121
  exportLabel: "Exportieren",
122
122
  exportPageLabel: "Seite exportieren",
123
+ exporting: "Export wird vorbereitet",
124
+ exportFailed: "Der Export ist fehlgeschlagen",
123
125
  exportFileName: "tabelle.csv",
126
+ exportSheetName: "Tabelle",
124
127
  tableSearchPlaceholder: "Suchen …",
125
128
  tableSearchLabel: "Tabelle durchsuchen",
126
129
  filterColumn: (e) => `${e} filtern`,
@@ -168,10 +171,14 @@ const u = d("de-DE"), h = {
168
171
  levelColumn: "Ebene",
169
172
  pathRow: "auf dem Weg zu einem Treffer",
170
173
  footerTopLevel: "Nur oberste Ebene",
174
+ footerOfMatches: "Alle Treffer",
171
175
  selectGroup: (e) => `${e} auswählen`,
172
176
  calendarWeek: (e, n) => `KW ${e}/${n}`,
173
177
  entries: (e, n) => e === 1 ? "1 Eintrag" : `${n} Einträge`,
174
178
  selectedCount: (e, n) => `${n} ausgewählt`,
179
+ selectedOnPage: (e, n) => e === 1 ? "Die 1 Zeile dieser Seite ist ausgewählt." : `Alle ${n} Zeilen dieser Seite sind ausgewählt.`,
180
+ selectAllMatching: (e, n) => `Alle ${n} Treffer auswählen`,
181
+ allMatchingSelected: (e, n) => `Alle ${n} Treffer sind ausgewählt.`,
175
182
  copiedRows: (e, n) => e === 1 ? "1 Zeile kopiert" : `${n} Zeilen kopiert`,
176
183
  copiedCell: "Zelle kopiert",
177
184
  copyFailed: "Kopieren nicht möglich",
@@ -190,6 +197,7 @@ const u = d("de-DE"), h = {
190
197
  rangeTo: (e) => `bis ${e}`,
191
198
  rangeInvalid: "„Von“ liegt hinter „Bis“.",
192
199
  resetAll: "Zurücksetzen",
200
+ tryAgain: "Erneut versuchen",
193
201
  filteredOfTotal: (e, n) => `${e} von ${n}`,
194
202
  verdictOk: "In Ordnung",
195
203
  verdictWarning: "Warngrenze überschritten",