@ai-matrx/records 0.81.2 → 0.82.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 +30 -0
- package/dist/app-table/index.cjs +1 -1
- package/dist/app-table/index.cjs.map +1 -1
- package/dist/app-table/index.d.cts +3 -3
- package/dist/app-table/index.d.ts +3 -3
- package/dist/app-table/index.js +1 -1
- package/dist/app-table/index.js.map +1 -1
- package/dist/{client-DLIKeBWF.d.cts → client-CesQciPd.d.cts} +1 -1
- package/dist/{client-D1LTezMZ.d.ts → client-TU-nvgcF.d.ts} +1 -1
- package/dist/core/index.cjs +3 -3
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +4 -4
- package/dist/core/index.d.ts +4 -4
- package/dist/core/index.js +3 -3
- package/dist/core/index.js.map +1 -1
- package/dist/data/index.cjs +1 -1
- package/dist/data/index.cjs.map +1 -1
- package/dist/data/index.d.cts +2 -2
- package/dist/data/index.d.ts +2 -2
- package/dist/data/index.js +1 -1
- package/dist/data/index.js.map +1 -1
- package/dist/{declareTable-02uao-5n.d.cts → declareTable-B9sr2E0h.d.cts} +2 -2
- package/dist/{declareTable-C5FlIS0z.d.ts → declareTable-COXYIOiT.d.ts} +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/react/index.cjs +3 -3
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +3 -19
- package/dist/react/index.d.ts +3 -19
- package/dist/react/index.js +3 -3
- package/dist/react/index.js.map +1 -1
- package/dist/{table-kind-LodkBhCZ.d.cts → table-kind-B4vIKJVM.d.cts} +3 -19
- package/dist/{table-kind-COmkYYkc.d.ts → table-kind-C5T-DOdc.d.ts} +3 -19
- package/dist/templates/index.cjs +147 -4
- package/dist/templates/index.cjs.map +1 -1
- package/dist/templates/index.js +147 -4
- package/dist/templates/index.js.map +1 -1
- package/package.json +4 -4
package/dist/react/index.d.cts
CHANGED
|
@@ -9260,8 +9260,8 @@ interface DrillFinding {
|
|
|
9260
9260
|
* The records behind a DEFINER definition's numbers: a registry relation carrying the fact's column
|
|
9261
9261
|
* names (e.g. `bucket`), read by the door definer with the SAME filter compiler and the SAME lane
|
|
9262
9262
|
* rule as the number, for a window (required), and never past the number's `as_of` (rows created
|
|
9263
|
-
* after it are not listed). The number and its records are
|
|
9264
|
-
*
|
|
9263
|
+
* after it are not listed). The number and its records are the SAME counted rows, equal as of the
|
|
9264
|
+
* count (`as_of`); a value that changes afterwards reaches both at the next count.
|
|
9265
9265
|
*
|
|
9266
9266
|
* An INVOKER definition may declare records too (lane DRILL-GAPS): they are its own rows (`fact` is
|
|
9267
9267
|
* the definition's own fact), read as the person through the table's row security, among the columns
|
|
@@ -9358,25 +9358,9 @@ interface DrillRowsPage {
|
|
|
9358
9358
|
as_of: string | null;
|
|
9359
9359
|
/**
|
|
9360
9360
|
* A definer definition's records, first page only: every Measure that adds up (sum, count, ratio)
|
|
9361
|
-
* summed over the SAME filter — what these records add up to
|
|
9361
|
+
* summed over the SAME filter — what these records add up to, which is the number they open.
|
|
9362
9362
|
*/
|
|
9363
9363
|
measures?: Record<string, number | string | null>;
|
|
9364
|
-
/**
|
|
9365
|
-
* First page only: the NUMBER's own sums for the same filter, as counted at `as_of` (the summary).
|
|
9366
|
-
* The number and its records are equal as of the count; a cost that lands on a counted row after
|
|
9367
|
-
* it makes `measures` differ from `counted`, and the page then carries `settling` and says so.
|
|
9368
|
-
*/
|
|
9369
|
-
counted?: Record<string, number | string | null>;
|
|
9370
|
-
/**
|
|
9371
|
-
* Present only when the records and the number differ: per Measure, what was counted, what the
|
|
9372
|
-
* ledger holds now, and the difference — with `says` in words ("$1.23 more has landed since the
|
|
9373
|
-
* count at 06:40 UTC. …"). The next recount (every 10 minutes) brings them back equal.
|
|
9374
|
-
*/
|
|
9375
|
-
settling?: Record<string, {
|
|
9376
|
-
counted: number | string | null;
|
|
9377
|
-
now: number | string | null;
|
|
9378
|
-
difference: number;
|
|
9379
|
-
}>;
|
|
9380
9364
|
}
|
|
9381
9365
|
/**
|
|
9382
9366
|
* A DECLARED drill definition (a `*.drill.ts` file): an override of one standard table (its key
|
package/dist/react/index.d.ts
CHANGED
|
@@ -9260,8 +9260,8 @@ interface DrillFinding {
|
|
|
9260
9260
|
* The records behind a DEFINER definition's numbers: a registry relation carrying the fact's column
|
|
9261
9261
|
* names (e.g. `bucket`), read by the door definer with the SAME filter compiler and the SAME lane
|
|
9262
9262
|
* rule as the number, for a window (required), and never past the number's `as_of` (rows created
|
|
9263
|
-
* after it are not listed). The number and its records are
|
|
9264
|
-
*
|
|
9263
|
+
* after it are not listed). The number and its records are the SAME counted rows, equal as of the
|
|
9264
|
+
* count (`as_of`); a value that changes afterwards reaches both at the next count.
|
|
9265
9265
|
*
|
|
9266
9266
|
* An INVOKER definition may declare records too (lane DRILL-GAPS): they are its own rows (`fact` is
|
|
9267
9267
|
* the definition's own fact), read as the person through the table's row security, among the columns
|
|
@@ -9358,25 +9358,9 @@ interface DrillRowsPage {
|
|
|
9358
9358
|
as_of: string | null;
|
|
9359
9359
|
/**
|
|
9360
9360
|
* A definer definition's records, first page only: every Measure that adds up (sum, count, ratio)
|
|
9361
|
-
* summed over the SAME filter — what these records add up to
|
|
9361
|
+
* summed over the SAME filter — what these records add up to, which is the number they open.
|
|
9362
9362
|
*/
|
|
9363
9363
|
measures?: Record<string, number | string | null>;
|
|
9364
|
-
/**
|
|
9365
|
-
* First page only: the NUMBER's own sums for the same filter, as counted at `as_of` (the summary).
|
|
9366
|
-
* The number and its records are equal as of the count; a cost that lands on a counted row after
|
|
9367
|
-
* it makes `measures` differ from `counted`, and the page then carries `settling` and says so.
|
|
9368
|
-
*/
|
|
9369
|
-
counted?: Record<string, number | string | null>;
|
|
9370
|
-
/**
|
|
9371
|
-
* Present only when the records and the number differ: per Measure, what was counted, what the
|
|
9372
|
-
* ledger holds now, and the difference — with `says` in words ("$1.23 more has landed since the
|
|
9373
|
-
* count at 06:40 UTC. …"). The next recount (every 10 minutes) brings them back equal.
|
|
9374
|
-
*/
|
|
9375
|
-
settling?: Record<string, {
|
|
9376
|
-
counted: number | string | null;
|
|
9377
|
-
now: number | string | null;
|
|
9378
|
-
difference: number;
|
|
9379
|
-
}>;
|
|
9380
9364
|
}
|
|
9381
9365
|
/**
|
|
9382
9366
|
* A DECLARED drill definition (a `*.drill.ts` file): an override of one standard table (its key
|
package/dist/react/index.js
CHANGED
|
@@ -831,7 +831,7 @@ function exportCellText(value) {
|
|
|
831
831
|
return JSON.stringify(value);
|
|
832
832
|
}
|
|
833
833
|
async function exportPageXlsx(page2, labels = {}, sheetLabel = "Records") {
|
|
834
|
-
const { writeWorkbookBytes } = await import("@ai-matrx/
|
|
834
|
+
const { writeWorkbookBytes } = await import("@ai-matrx/print/xlsx");
|
|
835
835
|
const header = page2.columns.map((c) => labels[c] ?? c);
|
|
836
836
|
const body = page2.rows.map((row) => page2.columns.map((c) => exportCellText(row[c])));
|
|
837
837
|
const name = sheetLabel.replace(/[\\/?*[\]:]/g, " ").trim().slice(0, 31) || "Records";
|
|
@@ -7928,9 +7928,9 @@ function useAsync(run, key, live) {
|
|
|
7928
7928
|
entry.run = run;
|
|
7929
7929
|
entry.client = client;
|
|
7930
7930
|
const seed = useSeedStore();
|
|
7931
|
-
if (seed
|
|
7931
|
+
if (seed) {
|
|
7932
7932
|
const outcome = use(seed.run(`${identityOf(client)}|${key}`, run, client.config));
|
|
7933
|
-
if (outcome.seeded) seedEntry(entry, outcome.data, outcome.stale);
|
|
7933
|
+
if (outcome.seeded && entry.snapshot.data === null && !entry.snapshot.error) seedEntry(entry, outcome.data, outcome.stale);
|
|
7934
7934
|
}
|
|
7935
7935
|
const snapshot = useSyncExternalStore(entry.subscribe, entry.getSnapshot, entry.getSnapshot);
|
|
7936
7936
|
useEffect3(() => {
|