@ai-matrx/records-ui 0.110.8 → 0.110.10
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 +15 -0
- package/dist/first-page.cjs +10 -0
- package/dist/first-page.cjs.map +1 -1
- package/dist/first-page.js +10 -0
- package/dist/first-page.js.map +1 -1
- package/dist/index.cjs +34 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.js +34 -11
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/first-page.js
CHANGED
|
@@ -259,6 +259,7 @@ function choiceFieldKeys(fields) {
|
|
|
259
259
|
return kind === "select" || kind === "multi_select";
|
|
260
260
|
}).map((f) => f.key);
|
|
261
261
|
}
|
|
262
|
+
var REVERSE_CELL_CHIPS = 3;
|
|
262
263
|
var MIN_ROW_HEIGHT = 24;
|
|
263
264
|
var MAX_ROW_HEIGHT = 96;
|
|
264
265
|
var AGGREGATE_KINDS = [
|
|
@@ -1270,6 +1271,15 @@ async function askTablePageSeed(input) {
|
|
|
1270
1271
|
}
|
|
1271
1272
|
const unversioned = page.data.rows.filter((row) => ownVersion(row) === null).map((row) => row.id);
|
|
1272
1273
|
if (unversioned.length > 0) reads.push(client.recordHeaders({ ids: unversioned }));
|
|
1274
|
+
reads.push(
|
|
1275
|
+
client.reverseColumns({ table_id: input.tableId }).then(
|
|
1276
|
+
(columns) => columns.ok ? Promise.all(
|
|
1277
|
+
columns.data.map(
|
|
1278
|
+
(c) => client.reverseLinksMany({ table_id: input.tableId, source_field_id: c.source_field_id, record_ids: page.data.rows.map((row) => row.id), limit: REVERSE_CELL_CHIPS })
|
|
1279
|
+
)
|
|
1280
|
+
) : null
|
|
1281
|
+
)
|
|
1282
|
+
);
|
|
1273
1283
|
await Promise.all(reads.map((read) => read.catch(() => null)));
|
|
1274
1284
|
}
|
|
1275
1285
|
}
|