@ai-matrx/records-ui 0.109.6 → 0.110.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 +15 -0
- package/dist/first-page.cjs +9 -1
- package/dist/first-page.cjs.map +1 -1
- package/dist/first-page.d.cts +18 -3
- package/dist/first-page.d.ts +18 -3
- package/dist/first-page.js +9 -2
- package/dist/first-page.js.map +1 -1
- package/dist/index.cjs +1487 -1508
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -4
- package/dist/index.d.ts +1 -4
- package/dist/index.js +1124 -1145
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# Changelog — @ai-matrx/records-ui
|
|
2
2
|
|
|
3
|
+
## 0.110.0 — one formula function list (kit's)
|
|
4
|
+
|
|
5
|
+
- The formula editor's function list is `@ai-matrx/kit/formula`'s `FORMULA_FUNCTIONS` (architecture
|
|
6
|
+
D6), pinned to the store's generated vocabulary by a parity test. records-ui's own
|
|
7
|
+
`FORMULA_FUNCTIONS` export is removed (it was a diverged twin of kit's name).
|
|
8
|
+
|
|
9
|
+
Consumer action: import `FORMULA_FUNCTIONS` from `@ai-matrx/kit/formula` and use
|
|
10
|
+
`FORMULA_FUNCTIONS.map((fn) => fn.name)` where a list of names is wanted (matrx-frontend done).
|
|
11
|
+
|
|
12
|
+
## 0.109.7
|
|
13
|
+
|
|
14
|
+
Automatic changed-only republish (docs/metadata drift since the last tag — see
|
|
15
|
+
`git diff npm/records-ui/v0.109.6..npm/records-ui/v0.109.7 -- apps/shared/records-ui`).
|
|
16
|
+
No source changes intended and no consumer action required.
|
|
17
|
+
|
|
3
18
|
## 0.109.6
|
|
4
19
|
### lane SORT-REACTS (follow-up)
|
|
5
20
|
|
package/dist/first-page.cjs
CHANGED
|
@@ -394,6 +394,12 @@ async function firstGridPageRequest(client, tableId, options = {}) {
|
|
|
394
394
|
const shown = view ? applyLook(view, looks.data[view.id]) : null;
|
|
395
395
|
return firstGridPageArgs({ tableId, table: table.data, fields: fields.data, shown, ...options.pageSize ? { pageSize: options.pageSize } : {} });
|
|
396
396
|
}
|
|
397
|
+
function serverRowsOf(seed) {
|
|
398
|
+
const found = seed?.answers.find((a) => a.door === "server_rows");
|
|
399
|
+
const data = found?.data;
|
|
400
|
+
if (!data || typeof data !== "object") return null;
|
|
401
|
+
return { on: data.on === true, budgetMs: typeof data.budget_ms === "number" && data.budget_ms > 0 ? data.budget_ms : null };
|
|
402
|
+
}
|
|
397
403
|
async function askTablePageSeed(input) {
|
|
398
404
|
const recording = core.recordingDataSource(core.asRecordsDataSource(input.dataSource));
|
|
399
405
|
const client = core.createRecordsClient({
|
|
@@ -409,7 +415,8 @@ async function askTablePageSeed(input) {
|
|
|
409
415
|
try {
|
|
410
416
|
const pageSize = input.pageSize ?? (input.embedded ? EMBEDDED_PAGE_SIZE : TABLE_PAGE_SIZE);
|
|
411
417
|
const args = await firstGridPageRequest(client, input.tableId, { pageSize });
|
|
412
|
-
|
|
418
|
+
const wantRows = typeof input.rows === "function" ? input.rows(recording.seed()) : input.rows !== false;
|
|
419
|
+
if (args && wantRows) {
|
|
413
420
|
await client.listPage({
|
|
414
421
|
table_id: args.p_table_id,
|
|
415
422
|
filter: args.p_filter,
|
|
@@ -431,5 +438,6 @@ exports.TABLE_PAGE_SIZE = TABLE_PAGE_SIZE;
|
|
|
431
438
|
exports.askTablePageSeed = askTablePageSeed;
|
|
432
439
|
exports.firstGridPageArgs = firstGridPageArgs;
|
|
433
440
|
exports.firstGridPageRequest = firstGridPageRequest;
|
|
441
|
+
exports.serverRowsOf = serverRowsOf;
|
|
434
442
|
//# sourceMappingURL=first-page.cjs.map
|
|
435
443
|
//# sourceMappingURL=first-page.cjs.map
|