@umriss-ui/table 0.44.0 → 0.45.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/README.md +7 -2
- package/dist/index.d.ts +12 -1
- package/dist/table.css +1 -1
- package/dist/table.js +1872 -1848
- package/dist/xlsx.d.ts +11 -0
- package/dist/xlsx.js +90 -69
- package/docs/llms-full.md +46 -20
- package/package.json +3 -3
package/dist/xlsx.d.ts
CHANGED
|
@@ -9,6 +9,17 @@ declare type ExportCell = string | number | boolean | Date | undefined;
|
|
|
9
9
|
declare interface ExportContext {
|
|
10
10
|
formats: Formats;
|
|
11
11
|
wording: Wording;
|
|
12
|
+
/** The wall-clock fields of an instant in the table's time zone; absent
|
|
13
|
+
without one, where the writer reads the Date's own. A format that must
|
|
14
|
+
import nothing gets the zone this way, as data. */
|
|
15
|
+
wallClock?: (d: Date) => {
|
|
16
|
+
year: number;
|
|
17
|
+
month: number;
|
|
18
|
+
day: number;
|
|
19
|
+
hours: number;
|
|
20
|
+
minutes: number;
|
|
21
|
+
seconds: number;
|
|
22
|
+
};
|
|
12
23
|
}
|
|
13
24
|
|
|
14
25
|
/** A way to write the export: the file's extension and MIME type, and the
|
package/dist/xlsx.js
CHANGED
|
@@ -1,107 +1,128 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
const
|
|
3
|
-
`, y = "http://schemas.openxmlformats.org/",
|
|
4
|
-
function
|
|
5
|
-
return
|
|
2
|
+
const x = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
3
|
+
`, y = "http://schemas.openxmlformats.org/", I = `${y}spreadsheetml/2006/main`, w = `${y}package/2006/relationships`, g = `${y}officeDocument/2006/relationships`, D = (e) => e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """);
|
|
4
|
+
function E(e) {
|
|
5
|
+
return e.replace(/[[\]:*?/\\]/g, "").slice(0, 31) || "Sheet1";
|
|
6
6
|
}
|
|
7
|
-
function
|
|
7
|
+
function R(e, t) {
|
|
8
8
|
return [
|
|
9
9
|
{
|
|
10
10
|
name: "[Content_Types].xml",
|
|
11
|
-
text: `${
|
|
11
|
+
text: `${x}<Types xmlns="${y}package/2006/content-types"><Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/><Default Extension="xml" ContentType="application/xml"/><Override PartName="/xl/workbook.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"/><Override PartName="/xl/worksheets/sheet1.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"/><Override PartName="/xl/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"/></Types>`
|
|
12
12
|
},
|
|
13
13
|
{
|
|
14
14
|
name: "_rels/.rels",
|
|
15
|
-
text: `${
|
|
15
|
+
text: `${x}<Relationships xmlns="${w}"><Relationship Id="rId1" Type="${g}/officeDocument" Target="xl/workbook.xml"/></Relationships>`
|
|
16
16
|
},
|
|
17
17
|
{
|
|
18
18
|
name: "xl/workbook.xml",
|
|
19
|
-
text: `${
|
|
19
|
+
text: `${x}<workbook xmlns="${I}" xmlns:r="${g}"><sheets><sheet name="${D(E(e))}" sheetId="1" r:id="rId1"/></sheets></workbook>`
|
|
20
20
|
},
|
|
21
21
|
{
|
|
22
22
|
name: "xl/_rels/workbook.xml.rels",
|
|
23
|
-
text: `${
|
|
23
|
+
text: `${x}<Relationships xmlns="${w}"><Relationship Id="rId1" Type="${g}/worksheet" Target="worksheets/sheet1.xml"/><Relationship Id="rId2" Type="${g}/styles" Target="styles.xml"/></Relationships>`
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
26
|
/* Cell format 0 is general, 1 a date, 2 a date with time. */
|
|
27
27
|
name: "xl/styles.xml",
|
|
28
|
-
text: `${
|
|
28
|
+
text: `${x}<styleSheet xmlns="${I}"><numFmts count="2"><numFmt numFmtId="164" formatCode="yyyy-mm-dd"/><numFmt numFmtId="165" formatCode="yyyy-mm-dd hh:mm:ss"/></numFmts><fonts count="1"><font><sz val="11"/><name val="Calibri"/></font></fonts><fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills><borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders><cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs><cellXfs count="3"><xf numFmtId="0" fontId="0" fillId="0" borderId="0" xfId="0"/><xf numFmtId="164" fontId="0" fillId="0" borderId="0" xfId="0" applyNumberFormat="1"/><xf numFmtId="165" fontId="0" fillId="0" borderId="0" xfId="0" applyNumberFormat="1"/></cellXfs><cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles></styleSheet>`
|
|
29
29
|
},
|
|
30
|
-
{ name: "xl/worksheets/sheet1.xml", text:
|
|
30
|
+
{ name: "xl/worksheets/sheet1.xml", text: t }
|
|
31
31
|
];
|
|
32
32
|
}
|
|
33
|
-
const
|
|
34
|
-
|
|
33
|
+
const C = (e) => ({
|
|
34
|
+
year: e.getFullYear(),
|
|
35
|
+
month: e.getMonth(),
|
|
36
|
+
day: e.getDate(),
|
|
37
|
+
hours: e.getHours(),
|
|
38
|
+
minutes: e.getMinutes(),
|
|
39
|
+
seconds: e.getSeconds()
|
|
40
|
+
}), N = (e) => (e.getTime() % 1e3 + 1e3) % 1e3, A = (e, t) => {
|
|
41
|
+
for (const n of e)
|
|
42
|
+
if (n instanceof Date && !Number.isNaN(n.getTime())) {
|
|
43
|
+
const r = t(n);
|
|
44
|
+
if (r.hours + r.minutes + r.seconds + N(n) !== 0) return !1;
|
|
45
|
+
}
|
|
35
46
|
return !0;
|
|
36
|
-
},
|
|
37
|
-
function k(
|
|
38
|
-
let
|
|
39
|
-
for (
|
|
40
|
-
return
|
|
47
|
+
}, T = 1048576, b = 16384, F = 32767, O = 864e5, _ = Date.UTC(1899, 11, 30), X = 61, L = /[^\t\n\r --�\u{10000}-\u{10FFFF}]/gu;
|
|
48
|
+
function k(e) {
|
|
49
|
+
let t = "";
|
|
50
|
+
for (e += 1; e > 0; e = Math.floor((e - 1) / 26)) t = String.fromCharCode(65 + (e - 1) % 26) + t;
|
|
51
|
+
return t;
|
|
41
52
|
}
|
|
42
|
-
const
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
53
|
+
const M = (e, t) => {
|
|
54
|
+
const n = t(e);
|
|
55
|
+
return (Date.UTC(n.year, n.month, n.day, n.hours, n.minutes, n.seconds, N(e)) - _) / O;
|
|
56
|
+
};
|
|
57
|
+
function U(e) {
|
|
58
|
+
let t = e.replace(L, "");
|
|
59
|
+
return t.length > F && (t = t.slice(0, F), /[\uD800-\uDBFF]$/.test(t) && (t = t.slice(0, -1))), D(t);
|
|
46
60
|
}
|
|
47
|
-
const $ = (
|
|
48
|
-
function
|
|
49
|
-
const { columns:
|
|
50
|
-
if (
|
|
51
|
-
if (
|
|
52
|
-
const
|
|
53
|
-
const
|
|
54
|
-
let
|
|
55
|
-
for (let
|
|
56
|
-
const
|
|
57
|
-
|
|
61
|
+
const $ = (e, t) => `<c r="${e}" t="inlineStr"><is><t xml:space="preserve">${U(t)}</t></is></c>`;
|
|
62
|
+
function P(e, t = C) {
|
|
63
|
+
const { columns: n, rows: r } = e;
|
|
64
|
+
if (n.length > b) throw new RangeError(`A worksheet holds at most ${b.toLocaleString("en")} columns.`);
|
|
65
|
+
if (r.length + 1 > T) throw new RangeError(`A worksheet holds at most ${T.toLocaleString("en")} rows.`);
|
|
66
|
+
const p = n.map((l, m) => A(r.map((f) => f[m]), t) ? 1 : 2), u = n.map((l, m) => l.width === void 0 ? "" : `<col min="${m + 1}" max="${m + 1}" width="${l.width / 7 + 1}" customWidth="1"/>`).join(""), c = `<row r="1">${n.map((l, m) => $(`${k(m)}1`, l.label)).join("")}</row>`, s = r.map((l, m) => {
|
|
67
|
+
const f = m + 2;
|
|
68
|
+
let i = "";
|
|
69
|
+
for (let d = 0; d < l.length; d++) {
|
|
70
|
+
const a = l[d], o = `${k(d)}${f}`;
|
|
71
|
+
if (typeof a == "number")
|
|
72
|
+
Number.isFinite(a) && (i += `<c r="${o}"><v>${a}</v></c>`);
|
|
73
|
+
else if (typeof a == "boolean") i += `<c r="${o}" t="b"><v>${a ? 1 : 0}</v></c>`;
|
|
74
|
+
else if (typeof a == "string") i += $(o, a);
|
|
75
|
+
else if (a instanceof Date && !Number.isNaN(a.getTime())) {
|
|
76
|
+
const h = M(a, t);
|
|
77
|
+
h >= X ? i += `<c r="${o}" s="${p[d]}"><v>${h}</v></c>` : i += $(o, a.toISOString());
|
|
78
|
+
}
|
|
58
79
|
}
|
|
59
|
-
return
|
|
80
|
+
return i ? `<row r="${f}">${i}</row>` : `<row r="${f}"/>`;
|
|
60
81
|
});
|
|
61
82
|
return `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
62
|
-
<worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">` + (
|
|
83
|
+
<worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">` + (u ? `<cols>${u}</cols>` : "") + `<sheetData>${c}${s.join("")}</sheetData></worksheet>`;
|
|
63
84
|
}
|
|
64
|
-
const
|
|
65
|
-
let
|
|
66
|
-
for (let
|
|
67
|
-
return
|
|
85
|
+
const B = Array.from({ length: 256 }, (e, t) => {
|
|
86
|
+
let n = t;
|
|
87
|
+
for (let r = 0; r < 8; r++) n = n & 1 ? 3988292384 ^ n >>> 1 : n >>> 1;
|
|
88
|
+
return n >>> 0;
|
|
68
89
|
});
|
|
69
|
-
function
|
|
70
|
-
let
|
|
71
|
-
for (const
|
|
72
|
-
return (
|
|
90
|
+
function j(e) {
|
|
91
|
+
let t = 4294967295;
|
|
92
|
+
for (const n of e) t = B[(t ^ n) & 255] ^ t >>> 8;
|
|
93
|
+
return (t ^ 4294967295) >>> 0;
|
|
73
94
|
}
|
|
74
|
-
const
|
|
75
|
-
function
|
|
76
|
-
if (
|
|
77
|
-
const
|
|
78
|
-
let
|
|
79
|
-
for (const o of
|
|
80
|
-
if (
|
|
81
|
-
const p = new Uint8Array(
|
|
82
|
-
let
|
|
83
|
-
const
|
|
84
|
-
u.setUint16(
|
|
85
|
-
},
|
|
86
|
-
u.setUint32(
|
|
87
|
-
},
|
|
88
|
-
p.set(o,
|
|
89
|
-
},
|
|
90
|
-
|
|
91
|
-
|
|
95
|
+
const v = 33, S = 2048;
|
|
96
|
+
function z(e) {
|
|
97
|
+
if (e.length > 65535) throw new RangeError("A ZIP holds at most 65,535 parts.");
|
|
98
|
+
const t = new TextEncoder(), n = e.map((o) => ({ name: t.encode(o.name), data: t.encode(o.text) }));
|
|
99
|
+
let r = 22;
|
|
100
|
+
for (const o of n) r += 76 + 2 * o.name.length + o.data.length;
|
|
101
|
+
if (r > 4294967295) throw new RangeError("A ZIP without ZIP64 holds at most 4 GB.");
|
|
102
|
+
const p = new Uint8Array(r), u = new DataView(p.buffer);
|
|
103
|
+
let c = 0;
|
|
104
|
+
const s = (o) => {
|
|
105
|
+
u.setUint16(c, o, !0), c += 2;
|
|
106
|
+
}, l = (o) => {
|
|
107
|
+
u.setUint32(c, o, !0), c += 4;
|
|
108
|
+
}, m = (o) => {
|
|
109
|
+
p.set(o, c), c += o.length;
|
|
110
|
+
}, f = [], i = n.map((o) => j(o.data));
|
|
111
|
+
n.forEach((o, h) => {
|
|
112
|
+
f.push(c), l(67324752), s(20), s(S), s(0), s(0), s(v), l(i[h]), l(o.data.length), l(o.data.length), s(o.name.length), s(0), m(o.name), m(o.data);
|
|
92
113
|
});
|
|
93
|
-
const
|
|
94
|
-
|
|
95
|
-
|
|
114
|
+
const d = c;
|
|
115
|
+
n.forEach((o, h) => {
|
|
116
|
+
l(33639248), s(20), s(20), s(S), s(0), s(0), s(v), l(i[h]), l(o.data.length), l(o.data.length), s(o.name.length), s(0), s(0), s(0), s(0), l(0), l(f[h]), m(o.name);
|
|
96
117
|
});
|
|
97
|
-
const
|
|
98
|
-
return
|
|
118
|
+
const a = c;
|
|
119
|
+
return l(101010256), s(0), s(0), s(n.length), s(n.length), l(a - d), l(d), s(0), p;
|
|
99
120
|
}
|
|
100
|
-
const
|
|
121
|
+
const W = {
|
|
101
122
|
extension: "xlsx",
|
|
102
123
|
mime: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
103
|
-
write: (
|
|
124
|
+
write: (e, { wording: t, wallClock: n }) => z(R(t.exportSheetName, P(e, n)))
|
|
104
125
|
};
|
|
105
126
|
export {
|
|
106
|
-
|
|
127
|
+
W as xlsx
|
|
107
128
|
};
|
package/docs/llms-full.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @umriss-ui/table 0.
|
|
1
|
+
# @umriss-ui/table 0.45.0
|
|
2
2
|
|
|
3
3
|
> React data table for data-dense applications - sorting, filtering, grouping, aggregates, virtualisation. Declared the way it reads: columns as JSX, typed against their rows.
|
|
4
4
|
|
|
@@ -1556,10 +1556,10 @@ type Absent = null | undefined;
|
|
|
1556
1556
|
|
|
1557
1557
|
#### Known limits
|
|
1558
1558
|
|
|
1559
|
-
- No cell range selection and no undo: an edit is reported, never applied, and the application owns the rows ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.
|
|
1560
|
-
- No pivot: compute the pivoted rows and map one computed column per key from the data, as in [a matrix with row and column totals](#aggregate) ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.
|
|
1559
|
+
- No cell range selection and no undo: an edit is reported, never applied, and the application owns the rows ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.45.0/docs/adr/0032-what-umriss-is-not.md)).
|
|
1560
|
+
- No pivot: compute the pivoted rows and map one computed column per key from the data, as in [a matrix with row and column totals](#aggregate) ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.45.0/docs/adr/0032-what-umriss-is-not.md)).
|
|
1561
1561
|
|
|
1562
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.
|
|
1562
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.45.0/docs/adr/0032-what-umriss-is-not.md).
|
|
1563
1563
|
|
|
1564
1564
|
### Provider
|
|
1565
1565
|
|
|
@@ -3075,7 +3075,7 @@ From `ExportProps` — the full table stands on [Export](#export).
|
|
|
3075
3075
|
|
|
3076
3076
|
- In [server mode](#server-mode) the table sorts nothing itself; the sort goes to the server in the request.
|
|
3077
3077
|
|
|
3078
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.
|
|
3078
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.45.0/docs/adr/0032-what-umriss-is-not.md).
|
|
3079
3079
|
|
|
3080
3080
|
### Search
|
|
3081
3081
|
|
|
@@ -3299,7 +3299,7 @@ type TableRef = Omit<TableSnapshot<unknown>, "setFilter" | "conditionOf"> & {
|
|
|
3299
3299
|
|
|
3300
3300
|
- In [server mode](#server-mode) the table searches nothing itself; the term goes to the server in the request.
|
|
3301
3301
|
|
|
3302
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.
|
|
3302
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.45.0/docs/adr/0032-what-umriss-is-not.md).
|
|
3303
3303
|
|
|
3304
3304
|
### Filter
|
|
3305
3305
|
|
|
@@ -4326,7 +4326,7 @@ type Absent = null | undefined;
|
|
|
4326
4326
|
- No text filter per column: the search covers text.
|
|
4327
4327
|
- In [server mode](#server-mode) a list filter offers what the application names; the table cannot count values it does not hold.
|
|
4328
4328
|
|
|
4329
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.
|
|
4329
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.45.0/docs/adr/0032-what-umriss-is-not.md).
|
|
4330
4330
|
|
|
4331
4331
|
### Pre-filter
|
|
4332
4332
|
|
|
@@ -5608,11 +5608,11 @@ export default function GroupAndFoldFromControls() {
|
|
|
5608
5608
|
|
|
5609
5609
|
#### Known limits
|
|
5610
5610
|
|
|
5611
|
-
- No pivot and no more than three levels ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.
|
|
5611
|
+
- No pivot and no more than three levels ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.45.0/docs/adr/0032-what-umriss-is-not.md)).
|
|
5612
5612
|
- No bar to drag headers onto: grouping is chosen in the column menu.
|
|
5613
5613
|
- No groups in [server mode](#server-mode): they would be made of one page.
|
|
5614
5614
|
|
|
5615
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.
|
|
5615
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.45.0/docs/adr/0032-what-umriss-is-not.md).
|
|
5616
5616
|
|
|
5617
5617
|
### Tree rows
|
|
5618
5618
|
|
|
@@ -6210,7 +6210,7 @@ From `ToolbarProps` — the full table stands on [Toolbar](#toolbar).
|
|
|
6210
6210
|
- Not in [server mode](#server-mode), and no branches loaded on demand yet.
|
|
6211
6211
|
- One column set for every level; a level without a value shows it as absent.
|
|
6212
6212
|
|
|
6213
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.
|
|
6213
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.45.0/docs/adr/0032-what-umriss-is-not.md).
|
|
6214
6214
|
|
|
6215
6215
|
### Aggregate
|
|
6216
6216
|
|
|
@@ -6705,7 +6705,7 @@ type Displayable = string | number | boolean | Date;
|
|
|
6705
6705
|
|
|
6706
6706
|
- In [server mode](#server-mode) the footer shows the sums the server hands in as `totals`, and nothing without them: a sum over one page would misstate the server's set.
|
|
6707
6707
|
|
|
6708
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.
|
|
6708
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.45.0/docs/adr/0032-what-umriss-is-not.md).
|
|
6709
6709
|
|
|
6710
6710
|
## Rows
|
|
6711
6711
|
|
|
@@ -6934,7 +6934,7 @@ From `ToolbarProps` — the full table stands on [Toolbar](#toolbar).
|
|
|
6934
6934
|
|
|
6935
6935
|
- In [server mode](#server-mode) “select all” selects the page, and with the page ticked the table offers all that match: a state that a bulk action receives as `{ request, except }`, since the table holds no rows for it.
|
|
6936
6936
|
|
|
6937
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.
|
|
6937
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.45.0/docs/adr/0032-what-umriss-is-not.md).
|
|
6938
6938
|
|
|
6939
6939
|
### Row appearance
|
|
6940
6940
|
|
|
@@ -9143,6 +9143,7 @@ What the language in use hands a format.
|
|
|
9143
9143
|
|---|---|---|---|
|
|
9144
9144
|
| `formats` *required* | `Formats` | — | |
|
|
9145
9145
|
| `wording` *required* | `Wording` | — | |
|
|
9146
|
+
| `wallClock` | `(d: Date) => { year: number; month: number; day: number; hours: number; minutes: number; seconds: number }` | — | The wall-clock fields of an instant in the table's time zone; absent without one, where the writer reads the Date's own. A format that must import nothing gets the zone this way, as data. |
|
|
9146
9147
|
|
|
9147
9148
|
###### `ExportCell`
|
|
9148
9149
|
|
|
@@ -9161,9 +9162,13 @@ Everything the library knows about formatting.
|
|
|
9161
9162
|
|
|
9162
9163
|
| Prop | Type | Default | Description |
|
|
9163
9164
|
|---|---|---|---|
|
|
9165
|
+
| `locale` *required* | `string` | — | The language tag the set was built in: "en-GB". |
|
|
9166
|
+
| `timeZone` *required* | `string \| undefined` | — | The IANA name of the time zone instants are written in, or `undefined` for the reader's own. |
|
|
9167
|
+
| `timeZoneName` *required* | `(d: Date) => string` | — | The zone's generic name in the set's locale: "Central European Time". Empty until the page has hydrated where no zone is named. |
|
|
9164
9168
|
| `date` *required* | `(d: Date) => string` | — | Date as displayed: 17/03/2026<br>Shown in: [Set wording and formats once (Provider)](#provider) |
|
|
9165
9169
|
| `dateShort` *required* | `(d: Date) => string` | — | Short form without the year, in the range footer: 17/03 |
|
|
9166
9170
|
| `month` *required* | `(d: Date) => string` | — | The calendar's month header: March 2026 |
|
|
9171
|
+
| `monthName` *required* | `(d: Date) => string` | — | The month alone, in the calendar head's month list: March |
|
|
9167
9172
|
| `dateLong` *required* | `(d: Date) => string` | — | Accessible name of a calendar cell: Tuesday, 17 March 2026 |
|
|
9168
9173
|
| `time` *required* | `(d: Date, withSeconds: boolean) => string` | — | Time of day, optionally with seconds: 09:05 or 09:05:03<br>Shown in: [Work through the alerts (Scenarios)](#work-through-the-alerts), [Find a late shipment (Scenarios)](#find-a-late-shipment) |
|
|
9169
9174
|
| `dateTime` *required* | `(d: Date, withSeconds: boolean) => string` | — | Date and time together: 17/03/2026, 09:05 |
|
|
@@ -9221,6 +9226,9 @@ Everything the library puts out as text.
|
|
|
9221
9226
|
| `datePlaceholder` *required* | `string` | — | |
|
|
9222
9227
|
| `datePanel` *required* | `string` | — | Accessible name of the panel. Deliberately kept apart from the placeholder: whoever labels the field differently does not thereby rename the dialog. |
|
|
9223
9228
|
| `dateClear` *required* | `string` | — | |
|
|
9229
|
+
| `typeDate` *required* | `string` | — | The name of the DatePicker panel's typed field. |
|
|
9230
|
+
| `notADate` *required* | `string` | — | Announced when the typed text is no date. |
|
|
9231
|
+
| `dateOutOfRange` *required* | `(min: string \| null, max: string \| null) => string` | — | Announced when the typed date lies outside `min` and `max`; each bound is written in the formats in use, `null` where there is none. |
|
|
9224
9232
|
| `dateTimePlaceholder` *required* | `string` | — | |
|
|
9225
9233
|
| `dateTimePanel` *required* | `string` | — | |
|
|
9226
9234
|
| `dateTimeClear` *required* | `string` | — | |
|
|
@@ -9231,6 +9239,8 @@ Everything the library puts out as text.
|
|
|
9231
9239
|
| `dateTimeRangeClear` *required* | `string` | — | The clearing x of the range with time - kept apart from the range without, so that an application can call the two differently. |
|
|
9232
9240
|
| `previousMonth` *required* | `string` | — | |
|
|
9233
9241
|
| `nextMonth` *required* | `string` | — | |
|
|
9242
|
+
| `monthSelect` *required* | `string` | — | Name of the calendar head's month list. |
|
|
9243
|
+
| `yearSelect` *required* | `string` | — | Name of the calendar head's year list. |
|
|
9234
9244
|
| `quickSelect` *required* | `string` | — | Group name of the preset column. |
|
|
9235
9245
|
| `today` *required* | `string` | — | |
|
|
9236
9246
|
| `now` *required* | `string` | — | |
|
|
@@ -9381,6 +9391,9 @@ Everything the library puts out as text.
|
|
|
9381
9391
|
| `freshnessFresh` *required* | `string` | — | The three freshness states. They are a DIFFERENT axis from the verdict: a stale value keeps its verdict ([ADR-0010](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0010-a-stale-value-keeps-its-verdict.md)). |
|
|
9382
9392
|
| `freshnessStale` *required* | `string` | — | |
|
|
9383
9393
|
| `freshnessDisconnected` *required* | `string` | — | |
|
|
9394
|
+
| `qualityGood` *required* | `string` | — | The three quality levels ([ADR-0077](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0077-a-bad-value-keeps-its-verdict.md)) - the THIRD axis, beside the verdict and the freshness: how far the value's source vouches for it. A bad value keeps its verdict and its age. |
|
|
9395
|
+
| `qualityUncertain` *required* | `string` | — | |
|
|
9396
|
+
| `qualityBad` *required* | `string` | — | |
|
|
9384
9397
|
| `asOfAgo` *required* | `(duration: string) => string` | — | "As of: 3 minutes ago", where the duration comes from the formats. |
|
|
9385
9398
|
| `close` *required* | `string` | — | |
|
|
9386
9399
|
| `closeToast` *required* | `string` | — | |
|
|
@@ -9498,7 +9511,7 @@ Everything the library puts out as text.
|
|
|
9498
9511
|
|
|
9499
9512
|
- Two formats: CSV, and the Excel workbook from `@umriss-ui/table/xlsx` - one sheet, no styling, no formulas, no group rows, no compression; no PDF or print layout.
|
|
9500
9513
|
|
|
9501
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.
|
|
9514
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.45.0/docs/adr/0032-what-umriss-is-not.md).
|
|
9502
9515
|
|
|
9503
9516
|
### View
|
|
9504
9517
|
|
|
@@ -9911,7 +9924,7 @@ type TableRef = Omit<TableSnapshot<unknown>, "setFilter" | "conditionOf"> & {
|
|
|
9911
9924
|
|
|
9912
9925
|
- In [server mode](#server-mode) the page goes to the server in the request, and `rowCount` decides how many pages there are.
|
|
9913
9926
|
|
|
9914
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.
|
|
9927
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.45.0/docs/adr/0032-what-umriss-is-not.md).
|
|
9915
9928
|
|
|
9916
9929
|
### Virtualisation
|
|
9917
9930
|
|
|
@@ -10222,7 +10235,7 @@ From `ToolbarProps` — the full table stands on [Toolbar](#toolbar).
|
|
|
10222
10235
|
- Paging and virtualisation do not combine; one table does one or the other.
|
|
10223
10236
|
- No loading more rows while scrolling: a table on a server pages ([Server mode](#server-mode)).
|
|
10224
10237
|
|
|
10225
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.
|
|
10238
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.45.0/docs/adr/0032-what-umriss-is-not.md).
|
|
10226
10239
|
|
|
10227
10240
|
### Benchmark
|
|
10228
10241
|
|
|
@@ -11818,7 +11831,7 @@ From `ToolbarProps` — the full table stands on [Toolbar](#toolbar).
|
|
|
11818
11831
|
- A list filter offers what `filterOptions` names; the table cannot count values it does not hold.
|
|
11819
11832
|
- No loading more rows while scrolling: paging and virtualisation do not combine.
|
|
11820
11833
|
|
|
11821
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.
|
|
11834
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.45.0/docs/adr/0032-what-umriss-is-not.md).
|
|
11822
11835
|
|
|
11823
11836
|
## Editing
|
|
11824
11837
|
|
|
@@ -12405,9 +12418,9 @@ From `ToolbarProps` — the full table stands on [Toolbar](#toolbar).
|
|
|
12405
12418
|
|
|
12406
12419
|
#### Known limits
|
|
12407
12420
|
|
|
12408
|
-
- No cell range selection and no undo ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.
|
|
12421
|
+
- No cell range selection and no undo ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.45.0/docs/adr/0032-what-umriss-is-not.md)).
|
|
12409
12422
|
|
|
12410
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.
|
|
12423
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.45.0/docs/adr/0032-what-umriss-is-not.md).
|
|
12411
12424
|
|
|
12412
12425
|
## Limits and alarms
|
|
12413
12426
|
|
|
@@ -12748,7 +12761,7 @@ type Severity = "warning" | "alarm";
|
|
|
12748
12761
|
- No list filter: four verdicts are sorted, not filtered.
|
|
12749
12762
|
- It does not judge whether a value is stale; a stale value keeps its verdict ([ADR-0010](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0010-a-stale-value-keeps-its-verdict.md)).
|
|
12750
12763
|
|
|
12751
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.
|
|
12764
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/table-v0.45.0/docs/adr/0032-what-umriss-is-not.md).
|
|
12752
12765
|
|
|
12753
12766
|
## API index
|
|
12754
12767
|
|
|
@@ -12867,7 +12880,7 @@ Used on [Filter](#filter) and [Toolbar controls](#toolbar-controls).
|
|
|
12867
12880
|
|
|
12868
12881
|
##### `csv`
|
|
12869
12882
|
|
|
12870
|
-
The CSV: the language's conventions; a column of days as
|
|
12883
|
+
The CSV: the language's conventions; a column of days as the zone's day,
|
|
12871
12884
|
other points in time as ISO text.
|
|
12872
12885
|
|
|
12873
12886
|
```ts
|
|
@@ -13154,6 +13167,7 @@ What the language in use hands a format.
|
|
|
13154
13167
|
|---|---|---|---|
|
|
13155
13168
|
| `formats` *required* | `Formats` | — | |
|
|
13156
13169
|
| `wording` *required* | `Wording` | — | |
|
|
13170
|
+
| `wallClock` | `(d: Date) => { year: number; month: number; day: number; hours: number; minutes: number; seconds: number }` | — | The wall-clock fields of an instant in the table's time zone; absent without one, where the writer reads the Date's own. A format that must import nothing gets the zone this way, as data. |
|
|
13157
13171
|
|
|
13158
13172
|
##### `ExportFormat<R = string>`
|
|
13159
13173
|
|
|
@@ -13739,9 +13753,13 @@ Everything the library knows about formatting.
|
|
|
13739
13753
|
|
|
13740
13754
|
| Prop | Type | Default | Description |
|
|
13741
13755
|
|---|---|---|---|
|
|
13756
|
+
| `locale` *required* | `string` | — | The language tag the set was built in: "en-GB". |
|
|
13757
|
+
| `timeZone` *required* | `string \| undefined` | — | The IANA name of the time zone instants are written in, or `undefined` for the reader's own. |
|
|
13758
|
+
| `timeZoneName` *required* | `(d: Date) => string` | — | The zone's generic name in the set's locale: "Central European Time". Empty until the page has hydrated where no zone is named. |
|
|
13742
13759
|
| `date` *required* | `(d: Date) => string` | — | Date as displayed: 17/03/2026<br>Shown in: [Set wording and formats once (Provider)](#provider) |
|
|
13743
13760
|
| `dateShort` *required* | `(d: Date) => string` | — | Short form without the year, in the range footer: 17/03 |
|
|
13744
13761
|
| `month` *required* | `(d: Date) => string` | — | The calendar's month header: March 2026 |
|
|
13762
|
+
| `monthName` *required* | `(d: Date) => string` | — | The month alone, in the calendar head's month list: March |
|
|
13745
13763
|
| `dateLong` *required* | `(d: Date) => string` | — | Accessible name of a calendar cell: Tuesday, 17 March 2026 |
|
|
13746
13764
|
| `time` *required* | `(d: Date, withSeconds: boolean) => string` | — | Time of day, optionally with seconds: 09:05 or 09:05:03<br>Shown in: [Work through the alerts (Scenarios)](#work-through-the-alerts), [Find a late shipment (Scenarios)](#find-a-late-shipment) |
|
|
13747
13765
|
| `dateTime` *required* | `(d: Date, withSeconds: boolean) => string` | — | Date and time together: 17/03/2026, 09:05 |
|
|
@@ -13799,6 +13817,9 @@ Everything the library puts out as text.
|
|
|
13799
13817
|
| `datePlaceholder` *required* | `string` | — | |
|
|
13800
13818
|
| `datePanel` *required* | `string` | — | Accessible name of the panel. Deliberately kept apart from the placeholder: whoever labels the field differently does not thereby rename the dialog. |
|
|
13801
13819
|
| `dateClear` *required* | `string` | — | |
|
|
13820
|
+
| `typeDate` *required* | `string` | — | The name of the DatePicker panel's typed field. |
|
|
13821
|
+
| `notADate` *required* | `string` | — | Announced when the typed text is no date. |
|
|
13822
|
+
| `dateOutOfRange` *required* | `(min: string \| null, max: string \| null) => string` | — | Announced when the typed date lies outside `min` and `max`; each bound is written in the formats in use, `null` where there is none. |
|
|
13802
13823
|
| `dateTimePlaceholder` *required* | `string` | — | |
|
|
13803
13824
|
| `dateTimePanel` *required* | `string` | — | |
|
|
13804
13825
|
| `dateTimeClear` *required* | `string` | — | |
|
|
@@ -13809,6 +13830,8 @@ Everything the library puts out as text.
|
|
|
13809
13830
|
| `dateTimeRangeClear` *required* | `string` | — | The clearing x of the range with time - kept apart from the range without, so that an application can call the two differently. |
|
|
13810
13831
|
| `previousMonth` *required* | `string` | — | |
|
|
13811
13832
|
| `nextMonth` *required* | `string` | — | |
|
|
13833
|
+
| `monthSelect` *required* | `string` | — | Name of the calendar head's month list. |
|
|
13834
|
+
| `yearSelect` *required* | `string` | — | Name of the calendar head's year list. |
|
|
13812
13835
|
| `quickSelect` *required* | `string` | — | Group name of the preset column. |
|
|
13813
13836
|
| `today` *required* | `string` | — | |
|
|
13814
13837
|
| `now` *required* | `string` | — | |
|
|
@@ -13959,6 +13982,9 @@ Everything the library puts out as text.
|
|
|
13959
13982
|
| `freshnessFresh` *required* | `string` | — | The three freshness states. They are a DIFFERENT axis from the verdict: a stale value keeps its verdict ([ADR-0010](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0010-a-stale-value-keeps-its-verdict.md)). |
|
|
13960
13983
|
| `freshnessStale` *required* | `string` | — | |
|
|
13961
13984
|
| `freshnessDisconnected` *required* | `string` | — | |
|
|
13985
|
+
| `qualityGood` *required* | `string` | — | The three quality levels ([ADR-0077](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0077-a-bad-value-keeps-its-verdict.md)) - the THIRD axis, beside the verdict and the freshness: how far the value's source vouches for it. A bad value keeps its verdict and its age. |
|
|
13986
|
+
| `qualityUncertain` *required* | `string` | — | |
|
|
13987
|
+
| `qualityBad` *required* | `string` | — | |
|
|
13962
13988
|
| `asOfAgo` *required* | `(duration: string) => string` | — | "As of: 3 minutes ago", where the duration comes from the formats. |
|
|
13963
13989
|
| `close` *required* | `string` | — | |
|
|
13964
13990
|
| `closeToast` *required* | `string` | — | |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umriss-ui/table",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.45.0",
|
|
4
4
|
"description": "React data table for data-dense applications - sorting, filtering, grouping, aggregates, virtualisation. Declared the way it reads: columns as JSX, typed against their rows.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Roman Händler",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
}
|
|
69
69
|
},
|
|
70
70
|
"peerDependencies": {
|
|
71
|
-
"@umriss-ui/core": "^0.
|
|
71
|
+
"@umriss-ui/core": "^0.45.0",
|
|
72
72
|
"react": ">=19",
|
|
73
73
|
"react-dom": ">=19"
|
|
74
74
|
},
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"typescript": "^5.6.3",
|
|
86
86
|
"vite": "^6.0.0",
|
|
87
87
|
"vite-plugin-dts": "^4.3.0",
|
|
88
|
-
"@umriss-ui/core": "0.
|
|
88
|
+
"@umriss-ui/core": "0.45.0",
|
|
89
89
|
"@umriss-ui/demo": "0.0.0"
|
|
90
90
|
},
|
|
91
91
|
"scripts": {
|