@umriss-ui/core 0.43.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/CHANGELOG.md +52 -0
- package/README.md +49 -11
- package/dist/core.css +1 -1
- package/dist/core.js +4593 -4139
- package/dist/de.d.ts +42 -0
- package/dist/formats-Bo0qM01D.js +97 -0
- package/dist/index.d.ts +197 -51
- package/dist/wording/de.js +18 -2
- package/docs/llms-full.md +1238 -303
- package/package.json +1 -1
- package/dist/formats-BccAYWgq.js +0 -80
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
|
-
|
|
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
|
|
|
@@ -489,7 +514,7 @@ export declare interface ConfirmDialogProps extends Omit<DialogHTMLAttributes<HT
|
|
|
489
514
|
* popover does the placing, the dismissal and the portal. The focus goes to
|
|
490
515
|
* the first entry and, on closing, back to where it was when the menu opened.
|
|
491
516
|
*/
|
|
492
|
-
export declare function ContextMenu({ open, onOpenChange, position,
|
|
517
|
+
export declare function ContextMenu({ open, onOpenChange, position, "aria-label": name, children }: ContextMenuProps): JSX.Element;
|
|
493
518
|
|
|
494
519
|
declare interface ContextMenuBase {
|
|
495
520
|
/** Accessible name of the menu: what it acts on. A context menu has no
|
|
@@ -509,21 +534,16 @@ declare interface ContextMenuBase {
|
|
|
509
534
|
x: number;
|
|
510
535
|
y: number;
|
|
511
536
|
};
|
|
512
|
-
/** The old spelling of `aria-label`; both work for one further minor.
|
|
513
|
-
@deprecated since 0.43 - use `aria-label`. */
|
|
514
|
-
ariaLabel?: string;
|
|
515
537
|
/** The entries – `MenuItem` and `MenuSeparator`, as in `Menu`. */
|
|
516
538
|
children: ReactNode;
|
|
517
539
|
}
|
|
518
540
|
|
|
519
541
|
/** The props of `ContextMenu`. The menu is named by what it acts on - it has
|
|
520
|
-
no trigger whose label could name it: `aria-label` is required
|
|
521
|
-
|
|
522
|
-
|
|
542
|
+
no trigger whose label could name it: `aria-label` is required. */
|
|
543
|
+
export declare type ContextMenuProps = ContextMenuBase & {
|
|
544
|
+
/** Accessible name of the menu: what it acts on. */
|
|
523
545
|
"aria-label": string;
|
|
524
|
-
}
|
|
525
|
-
ariaLabel: string;
|
|
526
|
-
});
|
|
546
|
+
};
|
|
527
547
|
|
|
528
548
|
/** What `useContextMenuTrigger` returns: spread it on the target. */
|
|
529
549
|
export declare interface ContextMenuTriggerProps extends LongPressHandlers {
|
|
@@ -565,20 +585,22 @@ export declare function createLongPress(onPress: (at: PressPoint) => void, onEnd
|
|
|
565
585
|
dialog, a toast or an alert - one drawing at the size of its place. */
|
|
566
586
|
export declare function CrossGlyph({ ref, size, ...rest }: GlyphProps): JSX.Element;
|
|
567
587
|
|
|
568
|
-
/** A date selection with a calendar panel; weeks begin on Monday.
|
|
569
|
-
|
|
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;
|
|
570
591
|
|
|
571
592
|
/**
|
|
572
|
-
* The value contract: every way - the grid, "Today", clearing - hands out
|
|
573
|
-
* midnight
|
|
574
|
-
*
|
|
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.
|
|
575
597
|
*/
|
|
576
598
|
export declare interface DatePickerProps extends Omit<HTMLAttributes<HTMLButtonElement>, "onChange" | "defaultValue">, RefProp<HTMLButtonElement> {
|
|
577
|
-
/** The day, as a `Date` on
|
|
599
|
+
/** The day, as a `Date` on midnight in the formats' zone (the reader's, unless the application names one); `null` means none. */
|
|
578
600
|
value: Date | null;
|
|
579
601
|
/** Runs as soon as a day is settled - on a click in the grid, on "Today" and
|
|
580
602
|
on clearing (`null`). Every one of these ways hands out
|
|
581
|
-
|
|
603
|
+
midnight in the formats' zone; there is none that delivers a time along with it. */
|
|
582
604
|
onChange: (date: Date | null) => void;
|
|
583
605
|
/** What stands in the empty field. */
|
|
584
606
|
placeholder?: string;
|
|
@@ -597,8 +619,13 @@ export declare interface DatePickerProps extends Omit<HTMLAttributes<HTMLButtonE
|
|
|
597
619
|
as its longest value in the formats in use, so a date never truncates. */
|
|
598
620
|
chars?: number;
|
|
599
621
|
/** Shows a cross where a value is set, which fades in on hover/focus and
|
|
600
|
-
clears the value.
|
|
622
|
+
clears the value, and the open panel offers Clear. Without it
|
|
623
|
+
no way to empty the value is offered. */
|
|
601
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;
|
|
602
629
|
}
|
|
603
630
|
|
|
604
631
|
/** A span between two dates, both ends included - the value of
|
|
@@ -624,15 +651,15 @@ export declare interface DateRange {
|
|
|
624
651
|
* - Two chained months: paging on the outside, no day appears twice.
|
|
625
652
|
* - The same day clicked twice = a one-day time span.
|
|
626
653
|
*/
|
|
627
|
-
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;
|
|
628
655
|
|
|
629
656
|
/**
|
|
630
|
-
* The value contract: both ends on
|
|
657
|
+
* The value contract: both ends on midnight in the formats' zone (resolution "day"), and `from`
|
|
631
658
|
* never lies after `to` - a range dragged backwards is silently turned around.
|
|
632
659
|
* Both ends count inclusively. There is no error state.
|
|
633
660
|
*/
|
|
634
661
|
export declare interface DateRangePickerProps extends Omit<HTMLAttributes<HTMLButtonElement>, "onChange" | "defaultValue">, RefProp<HTMLButtonElement> {
|
|
635
|
-
/** The time span, both ends on
|
|
662
|
+
/** The time span, both ends on midnight in the formats' zone (the reader's, unless the application names one) and both inclusive; `null`
|
|
636
663
|
means none. */
|
|
637
664
|
value: DateRange | null;
|
|
638
665
|
/** Runs as soon as both ends are settled - after the second click, on a
|
|
@@ -656,7 +683,8 @@ export declare interface DateRangePickerProps extends Omit<HTMLAttributes<HTMLBu
|
|
|
656
683
|
as its longest value in the formats in use, so a date never truncates. */
|
|
657
684
|
chars?: number;
|
|
658
685
|
/** Shows a cross where a value is set, which fades in on hover/focus and
|
|
659
|
-
clears the value.
|
|
686
|
+
clears the value, and the open panel offers Clear. Without it
|
|
687
|
+
no way to empty the value is offered. */
|
|
660
688
|
clearable?: boolean;
|
|
661
689
|
/**
|
|
662
690
|
* The quick-select column in the panel. An empty array hides the column.
|
|
@@ -664,13 +692,17 @@ export declare interface DateRangePickerProps extends Omit<HTMLAttributes<HTMLBu
|
|
|
664
692
|
* @default `DEFAULT_PRESETS`, in the wording's labels
|
|
665
693
|
*/
|
|
666
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;
|
|
667
699
|
}
|
|
668
700
|
|
|
669
701
|
/** A date and a time of day in one field, with a calendar panel. The value is
|
|
670
702
|
an exact instant and is reported only on "Apply", "Now" or "Clear"; the
|
|
671
703
|
missing and doubled hours of a daylight-saving change are asked about, not
|
|
672
704
|
guessed. */
|
|
673
|
-
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;
|
|
674
706
|
|
|
675
707
|
/**
|
|
676
708
|
* The value contract: an exact instant (resolution "instant"), with seconds
|
|
@@ -681,7 +713,8 @@ export declare function DateTimePicker({ ref, value, onChange, withSeconds, plac
|
|
|
681
713
|
* with "Apply", "Now" or "Clear", not already on the click on a day.
|
|
682
714
|
*/
|
|
683
715
|
export declare interface DateTimePickerProps extends Omit<HTMLAttributes<HTMLButtonElement>, "onChange" | "defaultValue">, RefProp<HTMLButtonElement> {
|
|
684
|
-
/** 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). */
|
|
685
718
|
value: Date | null;
|
|
686
719
|
/** Runs only on completion - "Apply", "Now" or "Clear" - and not already on
|
|
687
720
|
the click on a day: a day without a time would be a half-set value here,
|
|
@@ -706,8 +739,13 @@ export declare interface DateTimePickerProps extends Omit<HTMLAttributes<HTMLBut
|
|
|
706
739
|
carries an `error` - by hand only necessary without `FormField`. */
|
|
707
740
|
invalid?: boolean;
|
|
708
741
|
/** Shows a cross where a value is set, which fades in on hover/focus and
|
|
709
|
-
clears the value.
|
|
742
|
+
clears the value, and the open panel offers Clear. Without it
|
|
743
|
+
no way to empty the value is offered. */
|
|
710
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;
|
|
711
749
|
}
|
|
712
750
|
|
|
713
751
|
/**
|
|
@@ -726,7 +764,7 @@ export declare interface DateTimePickerProps extends Omit<HTMLAttributes<HTMLBut
|
|
|
726
764
|
* - Missing and doubled hours of the daylight-saving change are recognised per
|
|
727
765
|
* end and treated honestly, as in the DateTimePicker.
|
|
728
766
|
*/
|
|
729
|
-
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;
|
|
730
768
|
|
|
731
769
|
/**
|
|
732
770
|
* The props resemble the union of DateRangePickerProps and DateTimePickerProps -
|
|
@@ -740,7 +778,9 @@ export declare function DateTimeRangePicker({ ref, value, onChange, withSeconds,
|
|
|
740
778
|
* DateTimePicker, separately per end of the range.
|
|
741
779
|
*/
|
|
742
780
|
export declare interface DateTimeRangePickerProps extends Omit<HTMLAttributes<HTMLButtonElement>, "onChange" | "defaultValue">, RefProp<HTMLButtonElement> {
|
|
743
|
-
/** 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). */
|
|
744
784
|
value: DateRange | null;
|
|
745
785
|
/** Runs only on "Apply" and on clearing (`null`), never between the two
|
|
746
786
|
clicks. If the end lies before the start, both swap on applying - there is
|
|
@@ -765,7 +805,8 @@ export declare interface DateTimeRangePickerProps extends Omit<HTMLAttributes<HT
|
|
|
765
805
|
as its longest value in the formats in use, so a date never truncates. */
|
|
766
806
|
chars?: number;
|
|
767
807
|
/** Shows a cross where a value is set, which fades in on hover/focus and
|
|
768
|
-
clears the value.
|
|
808
|
+
clears the value, and the open panel offers Clear. Without it
|
|
809
|
+
no way to empty the value is offered. */
|
|
769
810
|
clearable?: boolean;
|
|
770
811
|
/**
|
|
771
812
|
* The quick-select column in the panel; presets apply for the whole day and
|
|
@@ -774,6 +815,10 @@ export declare interface DateTimeRangePickerProps extends Omit<HTMLAttributes<HT
|
|
|
774
815
|
* @default `DEFAULT_PRESETS`, in the wording's labels
|
|
775
816
|
*/
|
|
776
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;
|
|
777
822
|
}
|
|
778
823
|
|
|
779
824
|
/** The instance shipped by default: English notation on a 24-hour clock
|
|
@@ -906,12 +951,22 @@ export declare interface FlatteningEntry<K, S extends Key = string> {
|
|
|
906
951
|
|
|
907
952
|
/** Everything the library knows about formatting. */
|
|
908
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;
|
|
909
962
|
/** Date as displayed: 17/03/2026 */
|
|
910
963
|
date: (d: Date) => string;
|
|
911
964
|
/** Short form without the year, in the range footer: 17/03 */
|
|
912
965
|
dateShort: (d: Date) => string;
|
|
913
966
|
/** The calendar's month header: March 2026 */
|
|
914
967
|
month: (d: Date) => string;
|
|
968
|
+
/** The month alone, in the calendar head's month list: March */
|
|
969
|
+
monthName: (d: Date) => string;
|
|
915
970
|
/** Accessible name of a calendar cell: Tuesday, 17 March 2026 */
|
|
916
971
|
dateLong: (d: Date) => string;
|
|
917
972
|
/** Time of day, optionally with seconds: 09:05 or 09:05:03 */
|
|
@@ -952,7 +1007,7 @@ export declare interface Formats {
|
|
|
952
1007
|
/** A label, a hint or error and the control they belong to. The control
|
|
953
1008
|
inside takes the field's id, description, required and invalid state by
|
|
954
1009
|
itself - no wiring by hand. */
|
|
955
|
-
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;
|
|
956
1011
|
|
|
957
1012
|
/**
|
|
958
1013
|
* Resets the FormField context. For the innards of panels (search field,
|
|
@@ -999,9 +1054,15 @@ export declare interface FormFieldProps extends HTMLAttributes<HTMLDivElement>,
|
|
|
999
1054
|
/** Optional: a fixed id for the input element (instead of a generated
|
|
1000
1055
|
one). */
|
|
1001
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";
|
|
1002
1063
|
}
|
|
1003
1064
|
|
|
1004
|
-
/** How
|
|
1065
|
+
/** How old a value is right now - independently of how it is judged and how far its source vouches for it. */
|
|
1005
1066
|
export declare type Freshness = "fresh" | "stale" | "lost";
|
|
1006
1067
|
|
|
1007
1068
|
/**
|
|
@@ -1369,6 +1430,10 @@ export declare interface ModalProps extends Omit<DialogHTMLAttributes<HTMLDialog
|
|
|
1369
1430
|
/** The width of a `Modal`. */
|
|
1370
1431
|
export declare type ModalSize = "sm" | "md" | "lg";
|
|
1371
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
|
+
|
|
1372
1437
|
/**
|
|
1373
1438
|
* Multiple selection. The trigger always stays on one line and measures the
|
|
1374
1439
|
* room: as many chips as fit, the rest as a "+N" counter. Chips are removed by
|
|
@@ -1537,7 +1602,7 @@ export declare function PlusGlyph({ ref, size, ...rest }: GlyphProps): JSX.Eleme
|
|
|
1537
1602
|
* elements in the panel inherit the field id of the trigger, and a click on
|
|
1538
1603
|
* their label closes the panel.
|
|
1539
1604
|
*/
|
|
1540
|
-
export declare function Popover({ open, onOpenChange, anchorRef, focusRef, insideRefs, align, offset, width, minWidth, restoreFocus, hideOnScroll, role,
|
|
1605
|
+
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;
|
|
1541
1606
|
|
|
1542
1607
|
/** The props of `Popover`. */
|
|
1543
1608
|
export declare interface PopoverProps {
|
|
@@ -1575,9 +1640,6 @@ export declare interface PopoverProps {
|
|
|
1575
1640
|
/** Accessible name of the surface. Needed as soon as it carries a `role`:
|
|
1576
1641
|
a named role without a name is a riddle for a screen reader. */
|
|
1577
1642
|
"aria-label"?: string;
|
|
1578
|
-
/** The old spelling of `aria-label`; both work for one further minor.
|
|
1579
|
-
@deprecated since 0.43 - use `aria-label`. */
|
|
1580
|
-
ariaLabel?: string;
|
|
1581
1643
|
/** Fixed id of the surface – for `aria-controls` on the trigger. */
|
|
1582
1644
|
id?: string;
|
|
1583
1645
|
/** Additional class on the surface. */
|
|
@@ -1632,6 +1694,10 @@ export declare interface ProgressBarProps extends HTMLAttributes<HTMLDivElement>
|
|
|
1632
1694
|
showLabel?: boolean;
|
|
1633
1695
|
}
|
|
1634
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
|
+
|
|
1635
1701
|
/** One choice out of a few possibilities, all of them visible. Controlled
|
|
1636
1702
|
through `value` and `onChange`, or uncontrolled from `defaultValue`; the
|
|
1637
1703
|
arrow keys move between the possibilities. */
|
|
@@ -1999,7 +2065,7 @@ export declare interface StackProps extends HTMLAttributes<HTMLDivElement>, RefP
|
|
|
1999
2065
|
}
|
|
2000
2066
|
|
|
2001
2067
|
/** Metric tile: one value, read against its limits. */
|
|
2002
|
-
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;
|
|
2003
2069
|
|
|
2004
2070
|
/** The props of `Stat`. */
|
|
2005
2071
|
export declare interface StatProps extends Omit<HTMLAttributes<HTMLDivElement>, "children">, RefProp<HTMLDivElement> {
|
|
@@ -2023,6 +2089,10 @@ export declare interface StatProps extends Omit<HTMLAttributes<HTMLDivElement>,
|
|
|
2023
2089
|
asOf?: Date | number | null;
|
|
2024
2090
|
/** Without ages there is no freshness display and no cadence. */
|
|
2025
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;
|
|
2026
2096
|
}
|
|
2027
2097
|
|
|
2028
2098
|
/** Where a procedure stands: its steps in order, done, current, upcoming or
|
|
@@ -2461,7 +2531,7 @@ export declare interface TreeSnapshot<S extends Key = string> {
|
|
|
2461
2531
|
/** The tree as a control: draws the nodes of a `Tree` from `useTree` as a
|
|
2462
2532
|
`tree` with keyboard navigation, typeahead and, with `checkable`, ticks.
|
|
2463
2533
|
What a node says is yours - `children` renders it. */
|
|
2464
|
-
export declare function TreeView<K, S extends Key = string>({ ref, tree,
|
|
2534
|
+
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;
|
|
2465
2535
|
|
|
2466
2536
|
declare interface TreeViewBase<K, S extends Key = string> extends Omit<HTMLAttributes<HTMLDivElement>, "children">, RefProp<HTMLDivElement> {
|
|
2467
2537
|
/** The tree from `useTree`. It is the whole state: flattening, active node,
|
|
@@ -2472,18 +2542,14 @@ declare interface TreeViewBase<K, S extends Key = string> extends Omit<HTMLAttri
|
|
|
2472
2542
|
checkable?: boolean;
|
|
2473
2543
|
/** What the node says. */
|
|
2474
2544
|
children: (entry: FlatteningEntry<K, S>) => ReactNode;
|
|
2475
|
-
/** The old spelling of `aria-label`; both work for one further minor.
|
|
2476
|
-
@deprecated since 0.43 - use `aria-label`. */
|
|
2477
|
-
ariaLabel?: string;
|
|
2478
2545
|
}
|
|
2479
2546
|
|
|
2480
2547
|
/** The props of `TreeView`. The tree is a structure of its own and needs a
|
|
2481
|
-
name: `aria-label` is required
|
|
2482
|
-
export declare type TreeViewProps<K, S extends Key = string> = TreeViewBase<K, S> &
|
|
2548
|
+
name: `aria-label` is required. */
|
|
2549
|
+
export declare type TreeViewProps<K, S extends Key = string> = TreeViewBase<K, S> & {
|
|
2550
|
+
/** Accessible name of the tree. */
|
|
2483
2551
|
"aria-label": string;
|
|
2484
|
-
}
|
|
2485
|
-
ariaLabel: string;
|
|
2486
|
-
});
|
|
2552
|
+
};
|
|
2487
2553
|
|
|
2488
2554
|
/** The settings of `UmrissProvider` as the components read them, every value
|
|
2489
2555
|
filled in. */
|
|
@@ -2536,12 +2602,12 @@ export declare interface UmrissProviderProps {
|
|
|
2536
2602
|
}
|
|
2537
2603
|
|
|
2538
2604
|
/**
|
|
2539
|
-
* 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.
|
|
2540
2606
|
*
|
|
2541
|
-
* `onOpen` may be new on every render: the hook remembers the
|
|
2542
|
-
* 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.
|
|
2543
2609
|
*/
|
|
2544
|
-
export declare function useCommandPaletteShortcut(onOpen: () => void): void;
|
|
2610
|
+
export declare function useCommandPaletteShortcut(onOpen: () => void, options?: CommandPaletteShortcutOptions): void;
|
|
2545
2611
|
|
|
2546
2612
|
/**
|
|
2547
2613
|
* Opens a `ContextMenu` the same way on every device: on a right-click (at the
|
|
@@ -2569,7 +2635,9 @@ export declare const useDensity: () => Density;
|
|
|
2569
2635
|
*/
|
|
2570
2636
|
export declare function useDensityFor(own: "regular" | "compact" | undefined, fallback: "regular" | "compact"): "regular" | "compact";
|
|
2571
2637
|
|
|
2572
|
-
/** Only the formatting.
|
|
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. */
|
|
2573
2641
|
export declare function useFormats(): Formats;
|
|
2574
2642
|
|
|
2575
2643
|
/** Used by Input, Select and Checkbox to wire up id and aria automatically. */
|
|
@@ -2599,6 +2667,14 @@ export declare const useLanguage: () => Language;
|
|
|
2599
2667
|
*/
|
|
2600
2668
|
export declare function usePortalTarget(): () => HTMLElement | null;
|
|
2601
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
|
+
|
|
2602
2678
|
/** Access to `toast()`, `update()` and `dismiss()`; requires a ToastProvider. */
|
|
2603
2679
|
export declare function useToast(): ToastContextValue;
|
|
2604
2680
|
|
|
@@ -2797,6 +2873,12 @@ export declare interface Wording {
|
|
|
2797
2873
|
the dialog. */
|
|
2798
2874
|
datePanel: string;
|
|
2799
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;
|
|
2800
2882
|
dateTimePlaceholder: string;
|
|
2801
2883
|
dateTimePanel: string;
|
|
2802
2884
|
dateTimeClear: string;
|
|
@@ -2810,6 +2892,10 @@ export declare interface Wording {
|
|
|
2810
2892
|
dateTimeRangeClear: string;
|
|
2811
2893
|
previousMonth: string;
|
|
2812
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;
|
|
2813
2899
|
/** Group name of the preset column. */
|
|
2814
2900
|
quickSelect: string;
|
|
2815
2901
|
today: string;
|
|
@@ -2910,8 +2996,14 @@ export declare interface Wording {
|
|
|
2910
2996
|
exportLabel: string;
|
|
2911
2997
|
/** The export button of a table in server mode, which holds and writes one page. */
|
|
2912
2998
|
exportPageLabel: string;
|
|
2999
|
+
/** The status while the application prepares an export of every match. */
|
|
3000
|
+
exporting: string;
|
|
3001
|
+
/** The alert beside the export button when preparing the export failed without a message. */
|
|
3002
|
+
exportFailed: string;
|
|
2913
3003
|
/** The export's file name, where the application names none. */
|
|
2914
3004
|
exportFileName: string;
|
|
3005
|
+
/** The name of the sheet an XLSX export holds. */
|
|
3006
|
+
exportSheetName: string;
|
|
2915
3007
|
/** Placeholder and accessible name of the search field. */
|
|
2916
3008
|
tableSearchPlaceholder: string;
|
|
2917
3009
|
tableSearchLabel: string;
|
|
@@ -2991,6 +3083,8 @@ export declare interface Wording {
|
|
|
2991
3083
|
pathRow: string;
|
|
2992
3084
|
/** The footer of a tree: it sums the top level, since a parent holds its children. */
|
|
2993
3085
|
footerTopLevel: string;
|
|
3086
|
+
/** The footer of a server-mode table: its sums come from the server and cover every match, not the page. Read out only. */
|
|
3087
|
+
footerOfMatches: string;
|
|
2994
3088
|
/** The box that selects every row of a group. */
|
|
2995
3089
|
selectGroup: (name: string) => string;
|
|
2996
3090
|
/** A group of the week key: "Week 42, 2026". */
|
|
@@ -2999,6 +3093,12 @@ export declare interface Wording {
|
|
|
2999
3093
|
entries: (count: number, formatted: string) => string;
|
|
3000
3094
|
/** "3 selected" in the pagination bar and the table toolbar. */
|
|
3001
3095
|
selectedCount: (count: number, formatted: string) => string;
|
|
3096
|
+
/** The first sentence of the offer in a server-mode table, once the page is ticked: "All 50 on this page are selected." */
|
|
3097
|
+
selectedOnPage: (count: number, formatted: string) => string;
|
|
3098
|
+
/** The button after it, for the rows the server holds: "Select all 12,400 that match". */
|
|
3099
|
+
selectAllMatching: (count: number, formatted: string) => string;
|
|
3100
|
+
/** The line once they are selected: "All 12,400 that match are selected." */
|
|
3101
|
+
allMatchingSelected: (count: number, formatted: string) => string;
|
|
3002
3102
|
/** Said to a screen reader after Ctrl+C copied rows: "3 rows copied". */
|
|
3003
3103
|
copiedRows: (count: number, formatted: string) => string;
|
|
3004
3104
|
/** Said after Ctrl+C copied the active cell of a grid. */
|
|
@@ -3030,6 +3130,8 @@ export declare interface Wording {
|
|
|
3030
3130
|
rangeInvalid: string;
|
|
3031
3131
|
/** Clears search and conditions - in the table toolbar and in the empty body. */
|
|
3032
3132
|
resetAll: string;
|
|
3133
|
+
/** The button under a server-mode table's error that sends the request once more. */
|
|
3134
|
+
tryAgain: string;
|
|
3033
3135
|
/** "43 of 1.204" - the numbers come from the formats. */
|
|
3034
3136
|
filteredOfTotal: (matches: string, total: string) => string;
|
|
3035
3137
|
/** The four outcomes of an assessment, as a word beside the value. Colour
|
|
@@ -3052,6 +3154,12 @@ export declare interface Wording {
|
|
|
3052
3154
|
freshnessFresh: string;
|
|
3053
3155
|
freshnessStale: string;
|
|
3054
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;
|
|
3055
3163
|
/** "As of: 3 minutes ago", where the duration comes from the formats. */
|
|
3056
3164
|
asOfAgo: (duration: string) => string;
|
|
3057
3165
|
close: string;
|
|
@@ -3264,4 +3372,42 @@ export declare interface Wording {
|
|
|
3264
3372
|
*/
|
|
3265
3373
|
export declare function writeNumber(formats: Formats, n: number, format?: NumberFormat): string;
|
|
3266
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
|
+
|
|
3267
3413
|
export { }
|
package/dist/wording/de.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { f as d } from "../formats-
|
|
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",
|
|
@@ -120,7 +125,10 @@ const u = d("de-DE"), h = {
|
|
|
120
125
|
unpinHint: "Fixierung lösen",
|
|
121
126
|
exportLabel: "Exportieren",
|
|
122
127
|
exportPageLabel: "Seite exportieren",
|
|
128
|
+
exporting: "Export wird vorbereitet",
|
|
129
|
+
exportFailed: "Der Export ist fehlgeschlagen",
|
|
123
130
|
exportFileName: "tabelle.csv",
|
|
131
|
+
exportSheetName: "Tabelle",
|
|
124
132
|
tableSearchPlaceholder: "Suchen …",
|
|
125
133
|
tableSearchLabel: "Tabelle durchsuchen",
|
|
126
134
|
filterColumn: (e) => `${e} filtern`,
|
|
@@ -168,10 +176,14 @@ const u = d("de-DE"), h = {
|
|
|
168
176
|
levelColumn: "Ebene",
|
|
169
177
|
pathRow: "auf dem Weg zu einem Treffer",
|
|
170
178
|
footerTopLevel: "Nur oberste Ebene",
|
|
179
|
+
footerOfMatches: "Alle Treffer",
|
|
171
180
|
selectGroup: (e) => `${e} auswählen`,
|
|
172
181
|
calendarWeek: (e, n) => `KW ${e}/${n}`,
|
|
173
182
|
entries: (e, n) => e === 1 ? "1 Eintrag" : `${n} Einträge`,
|
|
174
183
|
selectedCount: (e, n) => `${n} ausgewählt`,
|
|
184
|
+
selectedOnPage: (e, n) => e === 1 ? "Die 1 Zeile dieser Seite ist ausgewählt." : `Alle ${n} Zeilen dieser Seite sind ausgewählt.`,
|
|
185
|
+
selectAllMatching: (e, n) => `Alle ${n} Treffer auswählen`,
|
|
186
|
+
allMatchingSelected: (e, n) => `Alle ${n} Treffer sind ausgewählt.`,
|
|
175
187
|
copiedRows: (e, n) => e === 1 ? "1 Zeile kopiert" : `${n} Zeilen kopiert`,
|
|
176
188
|
copiedCell: "Zelle kopiert",
|
|
177
189
|
copyFailed: "Kopieren nicht möglich",
|
|
@@ -190,6 +202,7 @@ const u = d("de-DE"), h = {
|
|
|
190
202
|
rangeTo: (e) => `bis ${e}`,
|
|
191
203
|
rangeInvalid: "„Von“ liegt hinter „Bis“.",
|
|
192
204
|
resetAll: "Zurücksetzen",
|
|
205
|
+
tryAgain: "Erneut versuchen",
|
|
193
206
|
filteredOfTotal: (e, n) => `${e} von ${n}`,
|
|
194
207
|
verdictOk: "In Ordnung",
|
|
195
208
|
verdictWarning: "Warngrenze überschritten",
|
|
@@ -203,6 +216,9 @@ const u = d("de-DE"), h = {
|
|
|
203
216
|
freshnessFresh: "Aktuell",
|
|
204
217
|
freshnessStale: "Veraltet",
|
|
205
218
|
freshnessDisconnected: "Keine Verbindung",
|
|
219
|
+
qualityGood: "Qualität gut",
|
|
220
|
+
qualityUncertain: "Qualität unsicher",
|
|
221
|
+
qualityBad: "Qualität schlecht",
|
|
206
222
|
asOfAgo: (e) => `Stand: ${e}`,
|
|
207
223
|
close: "Schließen",
|
|
208
224
|
closeToast: "Meldung schließen",
|