@umriss-ui/core 0.38.0 → 0.40.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
@@ -477,6 +477,67 @@ declare interface Wording {
477
477
  }) => string;
478
478
  /** The keys that walk the plot, select and edit - read after the summary. */
479
479
  scheduleKeyHelp: string;
480
+ /** The editing bar's buttons and the label that says the mode is on. */
481
+ dashboardEdit: string;
482
+ dashboardEditing: string;
483
+ dashboardCancel: string;
484
+ dashboardDone: string;
485
+ dashboardUndo: string;
486
+ dashboardRedo: string;
487
+ dashboardReset: string;
488
+ /** The name of a widget's menu button: the widget's title is the thing. */
489
+ dashboardMenu: (title: string) => string;
490
+ /** At the top of the menu, and in the name of a head the arrow keys move. */
491
+ dashboardPlace: (place: number, of: number) => string;
492
+ dashboardHead: (title: string, place: number, of: number) => string;
493
+ dashboardMoveStart: string;
494
+ dashboardMoveEarlier: string;
495
+ dashboardMoveLater: string;
496
+ dashboardMoveEnd: string;
497
+ dashboardRemove: string;
498
+ /** The closed set of size names, worded once for every widget type. */
499
+ dashboardSizes: {
500
+ small: string;
501
+ medium: string;
502
+ wide: string;
503
+ tall: string;
504
+ large: string;
505
+ full: string;
506
+ };
507
+ /** A size's entry in a widget's menu: its name and its share of the width
508
+ (`share` is "¼" or "5/12", empty for the whole width); `current` marks the size the widget stands at. */
509
+ dashboardSizeEntry: (size: string, share: string, current: boolean) => string;
510
+ /** The built-in heading type: its name, its sentence in the catalogue, the
511
+ text a new heading starts with and the label of its text field. */
512
+ dashboardHeadingLabel: string;
513
+ dashboardHeadingSentence: string;
514
+ dashboardHeadingText: string;
515
+ dashboardHeadingField: string;
516
+ /** Said when "Done" leaves the mode and nothing was changed. */
517
+ dashboardLeft: string;
518
+ /** What is spoken after a change. */
519
+ dashboardMoved: (title: string, from: number, to: number, of: number) => string;
520
+ dashboardDragCancelled: (title: string) => string;
521
+ dashboardResized: (title: string, size: string) => string;
522
+ dashboardRemoved: (title: string) => string;
523
+ dashboardKept: string;
524
+ dashboardCancelled: string;
525
+ /** The catalogue and the options. */
526
+ dashboardAddWidget: string;
527
+ dashboardCatalogue: string;
528
+ dashboardCatalogueSentence: string;
529
+ dashboardAdd: string;
530
+ dashboardAddType: (label: string) => string;
531
+ dashboardFootprint: (columns: number, rows: number) => string;
532
+ dashboardAdded: (title: string, place: number, of: number) => string;
533
+ dashboardOptions: string;
534
+ dashboardOptionsChanged: (title: string) => string;
535
+ dashboardEmpty: string;
536
+ dashboardEmptyEditing: string;
537
+ dashboardFailed: string;
538
+ dashboardUndone: string;
539
+ dashboardRedone: string;
540
+ dashboardResetDone: string;
480
541
  /** The four operators as symbols in a formula line. */
481
542
  calculationSumSymbol: string;
482
543
  calculationDifferenceSymbol: string;
package/dist/index.d.ts CHANGED
@@ -2140,8 +2140,10 @@ export declare interface ToastConfig {
2140
2140
  stand in different places are not read as one.
2141
2141
  @default "bottom-end" */
2142
2142
  position?: ToastPosition;
2143
- /** How many toasts stand at once; the oldest gives way to a new one, as if
2144
- it had been closed.
2143
+ /** How many toasts that leave by themselves stand at once; the oldest of
2144
+ them gives way to a new one, as if it had been closed. A toast that
2145
+ stays (`duration: 0`) or is still at work (`loading`) neither counts nor
2146
+ gives way.
2145
2147
  @default 3 */
2146
2148
  limit?: number;
2147
2149
  }
@@ -2151,8 +2153,10 @@ declare interface ToastContextValue {
2151
2153
  toast: (options: ToastOptions) => number;
2152
2154
  /** Changes a standing toast. A new tone or a new `duration` starts its time
2153
2155
  afresh - so a `loading` toast turned into `success` begins to count then.
2154
- An id that no longer stands is ignored: a toast that gave way to newer
2155
- ones - a `loading` one too - has said so through `onClose`. */
2156
+ An id that no longer stands is ignored: a timed toast that gave way
2157
+ to newer ones has said so through `onClose`. A `loading` toast turned into
2158
+ its outcome counts toward the limit from the next arrival on; `update`
2159
+ itself pushes nothing out. */
2156
2160
  update: (id: number, options: Partial<ToastOptions>) => void;
2157
2161
  /** Closes a toast, with the reason `dismiss`. */
2158
2162
  dismiss: (id: number) => void;
@@ -2190,8 +2194,9 @@ export declare interface ToastOptions {
2190
2194
  export declare type ToastPosition = "top-start" | "top-center" | "top-end" | "bottom-start" | "bottom-center" | "bottom-end";
2191
2195
 
2192
2196
  /** Holds the toasts and draws them; `useToast` works only below it. Put it
2193
- once at the root of the application. Duration, position and limit come from
2194
- `UmrissProvider`'s `toast` where one stands around it. */
2197
+ once at the root of the application: a second one draws a second deck at
2198
+ the same place, and the two lie on each other. Duration, position and limit
2199
+ come from `UmrissProvider`'s `toast` where one stands around it. */
2195
2200
  export declare function ToastProvider({ children, held }: ToastProviderProps): JSX.Element;
2196
2201
 
2197
2202
  /** The props of `ToastProvider`. */
@@ -3020,6 +3025,67 @@ export declare interface Wording {
3020
3025
  }) => string;
3021
3026
  /** The keys that walk the plot, select and edit - read after the summary. */
3022
3027
  scheduleKeyHelp: string;
3028
+ /** The editing bar's buttons and the label that says the mode is on. */
3029
+ dashboardEdit: string;
3030
+ dashboardEditing: string;
3031
+ dashboardCancel: string;
3032
+ dashboardDone: string;
3033
+ dashboardUndo: string;
3034
+ dashboardRedo: string;
3035
+ dashboardReset: string;
3036
+ /** The name of a widget's menu button: the widget's title is the thing. */
3037
+ dashboardMenu: (title: string) => string;
3038
+ /** At the top of the menu, and in the name of a head the arrow keys move. */
3039
+ dashboardPlace: (place: number, of: number) => string;
3040
+ dashboardHead: (title: string, place: number, of: number) => string;
3041
+ dashboardMoveStart: string;
3042
+ dashboardMoveEarlier: string;
3043
+ dashboardMoveLater: string;
3044
+ dashboardMoveEnd: string;
3045
+ dashboardRemove: string;
3046
+ /** The closed set of size names, worded once for every widget type. */
3047
+ dashboardSizes: {
3048
+ small: string;
3049
+ medium: string;
3050
+ wide: string;
3051
+ tall: string;
3052
+ large: string;
3053
+ full: string;
3054
+ };
3055
+ /** A size's entry in a widget's menu: its name and its share of the width
3056
+ (`share` is "¼" or "5/12", empty for the whole width); `current` marks the size the widget stands at. */
3057
+ dashboardSizeEntry: (size: string, share: string, current: boolean) => string;
3058
+ /** The built-in heading type: its name, its sentence in the catalogue, the
3059
+ text a new heading starts with and the label of its text field. */
3060
+ dashboardHeadingLabel: string;
3061
+ dashboardHeadingSentence: string;
3062
+ dashboardHeadingText: string;
3063
+ dashboardHeadingField: string;
3064
+ /** Said when "Done" leaves the mode and nothing was changed. */
3065
+ dashboardLeft: string;
3066
+ /** What is spoken after a change. */
3067
+ dashboardMoved: (title: string, from: number, to: number, of: number) => string;
3068
+ dashboardDragCancelled: (title: string) => string;
3069
+ dashboardResized: (title: string, size: string) => string;
3070
+ dashboardRemoved: (title: string) => string;
3071
+ dashboardKept: string;
3072
+ dashboardCancelled: string;
3073
+ /** The catalogue and the options. */
3074
+ dashboardAddWidget: string;
3075
+ dashboardCatalogue: string;
3076
+ dashboardCatalogueSentence: string;
3077
+ dashboardAdd: string;
3078
+ dashboardAddType: (label: string) => string;
3079
+ dashboardFootprint: (columns: number, rows: number) => string;
3080
+ dashboardAdded: (title: string, place: number, of: number) => string;
3081
+ dashboardOptions: string;
3082
+ dashboardOptionsChanged: (title: string) => string;
3083
+ dashboardEmpty: string;
3084
+ dashboardEmptyEditing: string;
3085
+ dashboardFailed: string;
3086
+ dashboardUndone: string;
3087
+ dashboardRedone: string;
3088
+ dashboardResetDone: string;
3023
3089
  /** The four operators as symbols in a formula line. */
3024
3090
  calculationSumSymbol: string;
3025
3091
  calculationDifferenceSymbol: string;
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- import { f as u } from "../formats-D0YRBdnl.js";
3
- const d = u("de-DE"), c = {
2
+ import { f as d } from "../formats-D0YRBdnl.js";
3
+ const u = d("de-DE"), h = {
4
4
  clearInput: "Eingabe leeren",
5
5
  clearSelection: "Auswahl leeren",
6
6
  decreaseValue: "Wert verringern",
@@ -247,8 +247,51 @@ const d = u("de-DE"), c = {
247
247
  scheduleUnfoldGroup: "Gruppe ausklappen",
248
248
  scheduleLaneCount: (e) => e === 1 ? "1 Bahn" : `${e} Bahnen`,
249
249
  scheduleRoleDescription: "Belegungsplan",
250
- scheduleSummary: ({ lanes: e, subtasks: n, from: t, to: i, overlaps: a, violated: o, blocked: r, milestones: l }) => `${e === 1 ? "1 Bahn" : `${e} Bahnen`}, ${n === 1 ? "1 Teilaufgabe" : `${n} Teilaufgaben`} im Blick von ${t} bis ${i}. ${a === 1 ? "1 Überschneidung" : `${a} Überschneidungen`}, ${o === 1 ? "1 verletzte Abhängigkeit" : `${o} verletzte Abhängigkeiten`}` + (r === 0 ? "." : `, ${r === 1 ? "1 Teilaufgabe in einer Sperrzeit" : `${r} Teilaufgaben in Sperrzeiten`}.`) + (l === 0 ? "" : ` ${l === 1 ? "1 Meilenstein" : `${l} Meilensteine`}.`),
250
+ scheduleSummary: ({ lanes: e, subtasks: n, from: t, to: i, overlaps: l, violated: o, blocked: a, milestones: r }) => `${e === 1 ? "1 Bahn" : `${e} Bahnen`}, ${n === 1 ? "1 Teilaufgabe" : `${n} Teilaufgaben`} im Blick von ${t} bis ${i}. ${l === 1 ? "1 Überschneidung" : `${l} Überschneidungen`}, ${o === 1 ? "1 verletzte Abhängigkeit" : `${o} verletzte Abhängigkeiten`}` + (a === 0 ? "." : `, ${a === 1 ? "1 Teilaufgabe in einer Sperrzeit" : `${a} Teilaufgaben in Sperrzeiten`}.`) + (r === 0 ? "" : ` ${r === 1 ? "1 Meilenstein" : `${r} Meilensteine`}.`),
251
251
  scheduleKeyHelp: "Pfeil links und rechts gehen die Bahn entlang, Pfeil hoch und runter wechseln die Bahn, Pos1 und Ende springen zur ersten und letzten Teilaufgabe, Bild auf und Bild ab springen ein Zehntel der Ansicht. Schließende eckige Klammer oder T folgt einer Abhängigkeit hinaus, öffnende eckige Klammer oder Umschalt und T geht zurück. Leertaste oder Eingabe wählt aus. Alt mit Pfeil links oder rechts schlägt eine Verschiebung vor, Alt und Umschalt ein neues Ende. Escape lässt die aktive Teilaufgabe los.",
252
+ dashboardEdit: "Bearbeiten",
253
+ dashboardEditing: "Dashboard wird bearbeitet",
254
+ dashboardCancel: "Abbrechen",
255
+ dashboardDone: "Fertig",
256
+ dashboardUndo: "Rückgängig",
257
+ dashboardRedo: "Wiederholen",
258
+ dashboardReset: "Zurücksetzen",
259
+ dashboardMenu: (e) => `Aktionen für ${e}`,
260
+ dashboardPlace: (e, n) => `Platz ${e} von ${n}`,
261
+ dashboardHead: (e, n, t) => `${e}, Platz ${n} von ${t}`,
262
+ dashboardMoveStart: "An den Anfang",
263
+ dashboardMoveEarlier: "Weiter nach vorn",
264
+ dashboardMoveLater: "Weiter nach hinten",
265
+ dashboardMoveEnd: "Ans Ende",
266
+ dashboardRemove: "Entfernen",
267
+ dashboardSizes: { small: "Klein", medium: "Mittel", wide: "Breit", tall: "Hoch", large: "Groß", full: "Volle Breite" },
268
+ dashboardSizeEntry: (e, n, t) => `${t ? "✓ " : ""}${e}${n ? `, ${n} breit` : ""}`,
269
+ dashboardHeadingLabel: "Überschrift",
270
+ dashboardHeadingSentence: "Ein Titel über die volle Breite.",
271
+ dashboardHeadingText: "Neuer Abschnitt",
272
+ dashboardHeadingField: "Text",
273
+ dashboardLeft: "Bearbeiten beendet",
274
+ dashboardMoved: (e, n, t, i) => `${e}: von Platz ${n} auf Platz ${t} von ${i} verschoben`,
275
+ dashboardDragCancelled: (e) => `${e}: Verschieben abgebrochen`,
276
+ dashboardResized: (e, n) => `${e}: Größe ${n}`,
277
+ dashboardRemoved: (e) => `${e} entfernt. „Rückgängig“ holt es zurück.`,
278
+ dashboardKept: "Änderungen übernommen",
279
+ dashboardCancelled: "Änderungen verworfen",
280
+ dashboardAddWidget: "Widget hinzufügen",
281
+ dashboardCatalogue: "Widget hinzufügen",
282
+ dashboardCatalogueSentence: "Jedes Widget wird am Ende eingefügt.",
283
+ dashboardAdd: "Hinzufügen",
284
+ dashboardAddType: (e) => `${e} hinzufügen`,
285
+ dashboardFootprint: (e, n) => `${e} von 12 Spalten, ${n} Zeilen`,
286
+ dashboardAdded: (e, n, t) => `${e} hinzugefügt, Platz ${n} von ${t}`,
287
+ dashboardOptions: "Optionen",
288
+ dashboardOptionsChanged: (e) => `${e}: Optionen geändert`,
289
+ dashboardEmpty: "Dieses Dashboard ist leer.",
290
+ dashboardEmptyEditing: "Dieses Dashboard ist leer. Wählen Sie „Widget hinzufügen“, um zu beginnen.",
291
+ dashboardFailed: "Dieses Widget kann nichts anzeigen.",
292
+ dashboardUndone: "Rückgängig gemacht",
293
+ dashboardRedone: "Wiederholt",
294
+ dashboardResetDone: "Auf die Vorgabe zurückgesetzt",
252
295
  calculationSumSymbol: "+",
253
296
  calculationDifferenceSymbol: "−",
254
297
  calculationProductSymbol: "×",
@@ -274,6 +317,6 @@ const d = u("de-DE"), c = {
274
317
  calculationNoOperands: "keine Einträge"
275
318
  };
276
319
  export {
277
- d as GERMAN_FORMATS,
278
- c as GERMAN_WORDING
320
+ u as GERMAN_FORMATS,
321
+ h as GERMAN_WORDING
279
322
  };