@umriss-ui/core 0.33.0 → 0.35.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 +54 -6
- package/README.md +20 -12
- package/dist/core.css +1 -1
- package/dist/core.js +4387 -4643
- package/dist/de.d.ts +0 -74
- package/dist/formats-D0YRBdnl.js +62 -0
- package/dist/index.d.ts +169 -454
- package/dist/wording/de.js +6 -47
- package/docs/llms-full.md +602 -990
- package/package.json +5 -4
- package/dist/formats-DrB9TuzO.js +0 -65
package/dist/de.d.ts
CHANGED
|
@@ -115,20 +115,6 @@ declare interface Wording {
|
|
|
115
115
|
therefore do not stand here; "Esc" is a word and is called something else
|
|
116
116
|
elsewhere. */
|
|
117
117
|
paletteKeyEsc: string;
|
|
118
|
-
/** Accessible name of a dock's tools. */
|
|
119
|
-
dockTools: string;
|
|
120
|
-
/** Accessible name of the grip - it says what it does, not what it is. */
|
|
121
|
-
dockGrip: string;
|
|
122
|
-
/** The four resting places, named. The keys are the `DockPlace` type's, and a
|
|
123
|
-
register translates them: the German one answers "oben" where the
|
|
124
|
-
English one answers "top". */
|
|
125
|
-
dockPlace: (place: "top" | "right" | "bottom" | "left") => string;
|
|
126
|
-
/** What the screen reader hears once the dock has taken a place. */
|
|
127
|
-
dockPlaced: (place: string) => string;
|
|
128
|
-
/** And what it hears when a place has refused. A refusal is not a fault: a
|
|
129
|
-
wide, flat host with no room for a standing dock is not a mistake anyone
|
|
130
|
-
made. */
|
|
131
|
-
dockNoPlace: (place: string) => string;
|
|
132
118
|
datePlaceholder: string;
|
|
133
119
|
/** Accessible name of the panel. Deliberately kept apart from the
|
|
134
120
|
placeholder: whoever labels the field differently does not thereby rename
|
|
@@ -392,66 +378,6 @@ declare interface Wording {
|
|
|
392
378
|
freshnessDisconnected: string;
|
|
393
379
|
/** "As of: 3 minutes ago", where the duration comes from the formats. */
|
|
394
380
|
asOfAgo: (duration: string) => string;
|
|
395
|
-
asOfUnknown: string;
|
|
396
|
-
alarms: string;
|
|
397
|
-
noAlarms: string;
|
|
398
|
-
/** Empty, but the line is down - that is something other than quiet. */
|
|
399
|
-
noAlarmsDisconnected: string;
|
|
400
|
-
acknowledgeAlarm: string;
|
|
401
|
-
/** Bulk acknowledgement; the number stands in the text on purpose. */
|
|
402
|
-
acknowledgeAlarms: (count: number) => string;
|
|
403
|
-
/** The alarm list's snooze menu, beside "Acknowledge": the word on its
|
|
404
|
-
button, and the sentence with the number of alarms it acts on. */
|
|
405
|
-
snoozeAlarm: string;
|
|
406
|
-
snoozeAlarms: (count: number) => string;
|
|
407
|
-
/** The labels in the panel that opens with `snoozeReason`: the duration to
|
|
408
|
-
choose and the reason to give. The panel's own button is `snoozeAlarm`. */
|
|
409
|
-
snoozeDuration: string;
|
|
410
|
-
snoozeReason: string;
|
|
411
|
-
/** Ends the snooze of the ticked alarms before its time. */
|
|
412
|
-
unsnoozeAlarm: string;
|
|
413
|
-
unsnoozeAlarms: (count: number) => string;
|
|
414
|
-
priorityHigh: string;
|
|
415
|
-
priorityMedium: string;
|
|
416
|
-
priorityLow: string;
|
|
417
|
-
/** The four lifecycle states, written out. */
|
|
418
|
-
lifecycleActiveUnacknowledged: string;
|
|
419
|
-
lifecycleActiveAcknowledged: string;
|
|
420
|
-
lifecycleResolvedUnacknowledged: string;
|
|
421
|
-
lifecycleResolvedAcknowledged: string;
|
|
422
|
-
/** "Alarm flood: 12 in quick succession" - a flood is marked, never
|
|
423
|
-
suppressed. */
|
|
424
|
-
floodHint: (count: number) => string;
|
|
425
|
-
/** "40×" on a chattering alarm type. */
|
|
426
|
-
chatterHint: (count: number) => string;
|
|
427
|
-
/** The text of the live region: the number of active unacknowledged alarms. */
|
|
428
|
-
activeUnacknowledged: (count: number) => string;
|
|
429
|
-
columnAlarm: string;
|
|
430
|
-
columnLifecycleState: string;
|
|
431
|
-
columnPriority: string;
|
|
432
|
-
columnRaised: string;
|
|
433
|
-
columnDuration: string;
|
|
434
|
-
columnFrequency: string;
|
|
435
|
-
/** The two columns of the alarm model the list does not show, but which do
|
|
436
|
-
land in the column menu and the CSV header (`alarmColumns`). */
|
|
437
|
-
columnAcknowledgement: string;
|
|
438
|
-
columnAge: string;
|
|
439
|
-
/** The availability of an alarm (ISA-18.2's special states), written out.
|
|
440
|
-
A snooze names its end and who snoozed it - a snooze is tracked, not
|
|
441
|
-
anonymous; the time comes from the formats. The reason, when the snooze
|
|
442
|
-
has one, comes last and is optional: a wording of two parameters fits. */
|
|
443
|
-
availabilitySnoozed: (until: string, by: string, reason?: string) => string;
|
|
444
|
-
/** A snooze as one word - the alarm list's badge; the sentence above stands
|
|
445
|
-
in its tooltip and in what is spoken. */
|
|
446
|
-
availabilitySnoozedShort: string;
|
|
447
|
-
availabilitySuppressed: string;
|
|
448
|
-
availabilityDisabled: string;
|
|
449
|
-
/** "Hidden: 3" - the count of the view of snoozed, suppressed and disabled
|
|
450
|
-
alarms, and its name where the list offers the view as a switch. */
|
|
451
|
-
hiddenAlarms: (count: number) => string;
|
|
452
|
-
/** The availability column of the alarm model: the column menu and the CSV
|
|
453
|
-
header, like the two above. */
|
|
454
|
-
columnAvailability: string;
|
|
455
381
|
close: string;
|
|
456
382
|
closeToast: string;
|
|
457
383
|
/** The count on the front toast of a closed deck; pressing it shows them all. */
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
const y = [
|
|
2
|
+
["day", 86400],
|
|
3
|
+
["hour", 3600],
|
|
4
|
+
["minute", 60]
|
|
5
|
+
];
|
|
6
|
+
function D(n) {
|
|
7
|
+
const o = new Intl.DateTimeFormat(n, { day: "2-digit", month: "2-digit", year: "numeric" }), a = new Intl.DateTimeFormat(n, { day: "2-digit", month: "2-digit" }), f = new Intl.DateTimeFormat(n, { month: "long", year: "numeric" }), F = new Intl.DateTimeFormat(n, {
|
|
8
|
+
weekday: "long",
|
|
9
|
+
day: "numeric",
|
|
10
|
+
month: "long",
|
|
11
|
+
year: "numeric"
|
|
12
|
+
}), m = { hour: "2-digit", minute: "2-digit", hour12: !1, hourCycle: "h23" }, i = {
|
|
13
|
+
without: new Intl.DateTimeFormat(n, m),
|
|
14
|
+
with: new Intl.DateTimeFormat(n, { ...m, second: "2-digit" })
|
|
15
|
+
}, s = {
|
|
16
|
+
without: new Intl.DateTimeFormat(n, { day: "2-digit", month: "2-digit", year: "numeric", ...m }),
|
|
17
|
+
with: new Intl.DateTimeFormat(n, {
|
|
18
|
+
day: "2-digit",
|
|
19
|
+
month: "2-digit",
|
|
20
|
+
year: "numeric",
|
|
21
|
+
...m,
|
|
22
|
+
second: "2-digit"
|
|
23
|
+
})
|
|
24
|
+
}, h = new Intl.DateTimeFormat(n, { timeZoneName: "shortOffset" }), u = /* @__PURE__ */ new Map(), g = new Intl.NumberFormat(n), w = new Intl.NumberFormat(n, { style: "percent", maximumFractionDigits: 0 }), T = new Intl.Collator(n), c = new Intl.RelativeTimeFormat(n, { numeric: "auto" });
|
|
25
|
+
return {
|
|
26
|
+
date: (t) => o.format(t),
|
|
27
|
+
dateShort: (t) => a.format(t),
|
|
28
|
+
month: (t) => f.format(t),
|
|
29
|
+
dateLong: (t) => F.format(t),
|
|
30
|
+
time: (t, e) => (e ? i.with : i.without).format(t),
|
|
31
|
+
dateTime: (t, e) => (e ? s.with : s.without).format(t),
|
|
32
|
+
offset: (t) => h.formatToParts(t).find((e) => e.type === "timeZoneName")?.value ?? "",
|
|
33
|
+
number: (t, e) => {
|
|
34
|
+
let r = u.get(e);
|
|
35
|
+
return r || (r = new Intl.NumberFormat(n, {
|
|
36
|
+
minimumFractionDigits: e,
|
|
37
|
+
maximumFractionDigits: e ?? 10
|
|
38
|
+
}), u.set(e, r)), r.format(t);
|
|
39
|
+
},
|
|
40
|
+
count: (t) => g.format(t),
|
|
41
|
+
percent: (t) => w.format(t),
|
|
42
|
+
compareText: (t, e) => T.compare(t, e),
|
|
43
|
+
relative: (t) => {
|
|
44
|
+
const e = Math.max(0, Math.round(t / 1e3));
|
|
45
|
+
for (const [r, d] of y)
|
|
46
|
+
if (e >= d) return c.format(-Math.floor(e / d), r);
|
|
47
|
+
return c.format(-e, "second");
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
const I = D("en-GB");
|
|
52
|
+
function p(n) {
|
|
53
|
+
const o = [...n.number(1234.5, 1).replace(/[\d-]/g, "")], a = o[o.length - 1] ?? ".";
|
|
54
|
+
return { group: o.length > 1 ? o[0] : "", decimal: a };
|
|
55
|
+
}
|
|
56
|
+
const S = p(I);
|
|
57
|
+
export {
|
|
58
|
+
I as D,
|
|
59
|
+
S as a,
|
|
60
|
+
D as f,
|
|
61
|
+
p as s
|
|
62
|
+
};
|