@umriss-ui/core 0.18.0 → 0.19.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 +18 -0
- package/dist/core.js +7 -2
- package/dist/de.d.ts +10 -0
- package/dist/index.d.ts +14 -0
- package/dist/wording/de.js +5 -0
- package/docs/llms-full.md +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -29,6 +29,24 @@ package stood at `0.1.0` the whole time, because it had exactly one caller and t
|
|
|
29
29
|
caller lay in the same repository — and are grouped by unit of delivery, not by
|
|
30
30
|
commit.
|
|
31
31
|
|
|
32
|
+
## 0.19.0 – A tree model that takes a match (Oct. 2026)
|
|
33
|
+
|
|
34
|
+
### Added
|
|
35
|
+
|
|
36
|
+
- **`NodeReader.matches`** - an optional predicate for the tree model. Given,
|
|
37
|
+
a search runs and the predicate decides what matches; the search text is not
|
|
38
|
+
read. The path rule stays: a match shows with the nodes above it, and a
|
|
39
|
+
branch shown only for a descendant opens without its expanded state being
|
|
40
|
+
written. `@umriss-ui/table`'s tree rows filter by their columns and
|
|
41
|
+
conditions through it. Without it, nothing changes.
|
|
42
|
+
- **Wording for `@umriss-ui/table`'s tree rows:** `foldBranch` and
|
|
43
|
+
`unfoldBranch` ("Fold rows under {row}" / "Zeilen unter {row} zuklappen" -
|
|
44
|
+
apart from the row detail's expander), `levelColumn` ("Level" / "Ebene"),
|
|
45
|
+
`pathRow` ("on the path to a match" / "auf dem Weg zu einem Treffer") and
|
|
46
|
+
`footerTopLevel` ("Top level only" / "Nur oberste Ebene"). An application
|
|
47
|
+
that implements the whole `Wording` type adds the five keys; a partial
|
|
48
|
+
wording passed to the provider needs nothing.
|
|
49
|
+
|
|
32
50
|
## 0.18.0 – Buttons a step tighter (Sep. 2026)
|
|
33
51
|
|
|
34
52
|
### Added
|
package/dist/core.js
CHANGED
|
@@ -185,6 +185,11 @@ const zr = "_alert_1pgum_12 _text_ocaqi_23", Wr = "_content_1pgum_27", Gr = "_ti
|
|
|
185
185
|
groupContinued: "continued",
|
|
186
186
|
foldGroup: (t, e) => `Fold ${t}, ${e}`,
|
|
187
187
|
unfoldGroup: (t, e) => `Unfold ${t}, ${e}`,
|
|
188
|
+
foldBranch: (t) => `Fold rows under ${t}`,
|
|
189
|
+
unfoldBranch: (t) => `Unfold rows under ${t}`,
|
|
190
|
+
levelColumn: "Level",
|
|
191
|
+
pathRow: "on the path to a match",
|
|
192
|
+
footerTopLevel: "Top level only",
|
|
188
193
|
selectGroup: (t) => `Select ${t}`,
|
|
189
194
|
calendarWeek: (t, e) => `Week ${t}, ${e}`,
|
|
190
195
|
entries: (t, e) => t === 1 ? "1 entry" : `${e} entries`,
|
|
@@ -4531,7 +4536,7 @@ function Kd(t, e, n) {
|
|
|
4531
4536
|
};
|
|
4532
4537
|
function a(i) {
|
|
4533
4538
|
var g;
|
|
4534
|
-
const l = e.key(i), f = e.children(i), h = n.checked.has(l), _ = r === "" || e.label(i).toLowerCase().includes(r);
|
|
4539
|
+
const l = e.key(i), f = e.children(i), h = n.checked.has(l), _ = e.matches ? e.matches(i) : r === "" || e.label(i).toLowerCase().includes(r);
|
|
4535
4540
|
_ && o.matches.add(l);
|
|
4536
4541
|
let v = h, m = !1;
|
|
4537
4542
|
for (const b of f ?? []) {
|
|
@@ -4546,7 +4551,7 @@ function Kd(t, e, n) {
|
|
|
4546
4551
|
return o;
|
|
4547
4552
|
}
|
|
4548
4553
|
function Xd(t, e, n) {
|
|
4549
|
-
const r = n.search.trim() !== "", o = Kd(t, e, n), a = [];
|
|
4554
|
+
const r = e.matches !== void 0 || n.search.trim() !== "", o = Kd(t, e, n), a = [];
|
|
4550
4555
|
function i(l, f, h) {
|
|
4551
4556
|
const _ = h ? l : l.filter((v) => !r || o.survives.has(e.key(v)));
|
|
4552
4557
|
_.forEach((v, m) => {
|
package/dist/de.d.ts
CHANGED
|
@@ -317,6 +317,16 @@ declare interface Wording {
|
|
|
317
317
|
/** The fold of a group, with its value and its count. */
|
|
318
318
|
foldGroup: (name: string, count: string) => string;
|
|
319
319
|
unfoldGroup: (name: string, count: string) => string;
|
|
320
|
+
/** The fold of a branch in a table with tree rows, named after its row -
|
|
321
|
+
not `expandRowNamed`, which names the row detail's expander on the same row. */
|
|
322
|
+
foldBranch: (row: string) => string;
|
|
323
|
+
unfoldBranch: (row: string) => string;
|
|
324
|
+
/** The first column of a tree's export. */
|
|
325
|
+
levelColumn: string;
|
|
326
|
+
/** A row shown only because a descendant matches the search or a filter. */
|
|
327
|
+
pathRow: string;
|
|
328
|
+
/** The footer of a tree: it sums the top level, since a parent holds its children. */
|
|
329
|
+
footerTopLevel: string;
|
|
320
330
|
/** The box that selects every row of a group. */
|
|
321
331
|
selectGroup: (name: string) => string;
|
|
322
332
|
/** A group of the week key: "Week 42, 2026". */
|
package/dist/index.d.ts
CHANGED
|
@@ -1212,6 +1212,10 @@ export declare interface NodeReader<K, S extends Key = string> {
|
|
|
1212
1212
|
against `undefined` would be the kind of distinction that is got wrong
|
|
1213
1213
|
more often than right. */
|
|
1214
1214
|
unloaded?: (node: K) => boolean;
|
|
1215
|
+
/** Does this node match? Given, it filters instead of the search text,
|
|
1216
|
+
which is then not read - a table matches by its columns and filters,
|
|
1217
|
+
not by one label. The path rule stays the same. */
|
|
1218
|
+
matches?: (node: K) => boolean;
|
|
1215
1219
|
}
|
|
1216
1220
|
|
|
1217
1221
|
/**
|
|
@@ -2556,6 +2560,16 @@ export declare interface Wording {
|
|
|
2556
2560
|
/** The fold of a group, with its value and its count. */
|
|
2557
2561
|
foldGroup: (name: string, count: string) => string;
|
|
2558
2562
|
unfoldGroup: (name: string, count: string) => string;
|
|
2563
|
+
/** The fold of a branch in a table with tree rows, named after its row -
|
|
2564
|
+
not `expandRowNamed`, which names the row detail's expander on the same row. */
|
|
2565
|
+
foldBranch: (row: string) => string;
|
|
2566
|
+
unfoldBranch: (row: string) => string;
|
|
2567
|
+
/** The first column of a tree's export. */
|
|
2568
|
+
levelColumn: string;
|
|
2569
|
+
/** A row shown only because a descendant matches the search or a filter. */
|
|
2570
|
+
pathRow: string;
|
|
2571
|
+
/** The footer of a tree: it sums the top level, since a parent holds its children. */
|
|
2572
|
+
footerTopLevel: string;
|
|
2559
2573
|
/** The box that selects every row of a group. */
|
|
2560
2574
|
selectGroup: (name: string) => string;
|
|
2561
2575
|
/** A group of the week key: "Week 42, 2026". */
|
package/dist/wording/de.js
CHANGED
|
@@ -166,6 +166,11 @@ const c = o("de-DE"), s = {
|
|
|
166
166
|
groupContinued: "Fortsetzung",
|
|
167
167
|
foldGroup: (e, n) => `${e} zuklappen, ${n}`,
|
|
168
168
|
unfoldGroup: (e, n) => `${e} aufklappen, ${n}`,
|
|
169
|
+
foldBranch: (e) => `Zeilen unter ${e} zuklappen`,
|
|
170
|
+
unfoldBranch: (e) => `Zeilen unter ${e} aufklappen`,
|
|
171
|
+
levelColumn: "Ebene",
|
|
172
|
+
pathRow: "auf dem Weg zu einem Treffer",
|
|
173
|
+
footerTopLevel: "Nur oberste Ebene",
|
|
169
174
|
selectGroup: (e) => `${e} auswählen`,
|
|
170
175
|
calendarWeek: (e, n) => `KW ${e}/${n}`,
|
|
171
176
|
entries: (e, n) => e === 1 ? "1 Eintrag" : `${n} Einträge`,
|
package/docs/llms-full.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umriss-ui/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.0",
|
|
4
4
|
"description": "React component library for data-dense dashboards and tools - forms, date pickers, overlays, a tree view and a command palette. Precise, quiet, professional.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Roman Händler",
|