@mistriwork/kit 1.0.0-rc.20 → 1.0.0-rc.21
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.
|
@@ -65,6 +65,11 @@ function resourceOf(table) {
|
|
|
65
65
|
function fileOf(table) {
|
|
66
66
|
return resourceOf(table)?.file;
|
|
67
67
|
}
|
|
68
|
+
/* The reference an upload binds to, whole: a single column as itself (the wire it always was), a composite one as all of
|
|
69
|
+
its columns, since two references to the parent can share the first. */
|
|
70
|
+
function linkOf(bindings) {
|
|
71
|
+
return bindings.length === 1 ? bindings[0].column : bindings.map((b) => b.column);
|
|
72
|
+
}
|
|
68
73
|
/**
|
|
69
74
|
* How many rows each of an inferred page's related lists holds, by its question (recordReads.ts,
|
|
70
75
|
* relatedCountQuestion): one request for a strip of tabs, or for a list alone, built as the server built it for the
|
|
@@ -635,7 +640,7 @@ function RelatedList({ section, plan, base, recordKey, onEdit, collapsed, counte
|
|
|
635
640
|
values: { ...creation.defaults, ...defaults },
|
|
636
641
|
/* The record this list is drawn on, said once: the server reads it as this reader and writes the link itself,
|
|
637
642
|
so the link above is only what the list believes. A tenant lease's upload says no parent yet. */
|
|
638
|
-
...(lease ? {} : { parent: { table: base.id, key: recordKey, link: creation.bindings
|
|
643
|
+
...(lease ? {} : { parent: { table: base.id, key: recordKey, link: linkOf(creation.bindings) } }),
|
|
639
644
|
...ownedBy(connection),
|
|
640
645
|
file: { name: picked.name, type: picked.type, data: await fileToBase64(picked) },
|
|
641
646
|
}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mistriwork/kit",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.21",
|
|
4
4
|
"description": "The shared React client both shells are drawn with: the walk and the address, Grid, Value, the record page, lists, filters and charts.",
|
|
5
5
|
"homepage": "https://mistriwork.dev",
|
|
6
6
|
"bugs": {
|
|
@@ -83,8 +83,8 @@
|
|
|
83
83
|
"./package.json": "./package.json"
|
|
84
84
|
},
|
|
85
85
|
"dependencies": {
|
|
86
|
-
"@mistriwork/engine": "1.0.0-rc.
|
|
87
|
-
"@mistriwork/ui": "1.0.0-rc.
|
|
86
|
+
"@mistriwork/engine": "1.0.0-rc.21",
|
|
87
|
+
"@mistriwork/ui": "1.0.0-rc.21",
|
|
88
88
|
"intl-messageformat": "12.1.2",
|
|
89
89
|
"qrcode-generator": "^2.0.4"
|
|
90
90
|
},
|