@ai-matrx/records-ui 0.116.72 → 0.116.73
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 +6 -1
- package/dist/{SaveToTable-3NMVA3VY.js → SaveToTable-M532U7TS.js} +2 -2
- package/dist/{chunk-3OD52U5S.js → chunk-GRDLRZSG.js} +2 -2
- package/dist/{chunk-DWYBPID4.js → chunk-XLHEYH5J.js} +6 -2
- package/dist/chunk-XLHEYH5J.js.map +1 -0
- package/dist/index.cjs +2469 -2154
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.js +2186 -1873
- package/dist/index.js.map +1 -1
- package/dist/pickers.js +1 -1
- package/package.json +3 -3
- package/dist/chunk-DWYBPID4.js.map +0 -1
- /package/dist/{SaveToTable-3NMVA3VY.js.map → SaveToTable-M532U7TS.js.map} +0 -0
- /package/dist/{chunk-3OD52U5S.js.map → chunk-GRDLRZSG.js.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
# Changelog — @ai-matrx/records-ui
|
|
2
2
|
|
|
3
|
-
## 0.116.
|
|
3
|
+
## 0.116.73
|
|
4
4
|
|
|
5
|
+
- **An imported table keeps its first column's name (CD-IO-03, 2026-10-21).** A pasted or imported block made a table whose first column was named "Title"; `NewTableStart` now declares the title column with the first header's name (`importTitleField`). Test: `an-imported-table-keeps-its-first-header-name.test.tsx`. Consumer action: none.
|
|
6
|
+
|
|
7
|
+
- **Insert row above / below works on a view nobody sorted (lane CLOSE-CORE, CD-CORE-04, 2026-10-22).** A new table's "All records" view has no hand order and opens in the table's own sort (the title column), so the row menu's Insert row above / below were greyed "This view is sorted" on every new table. A saved view with no sort of its own, showing at most the table's opening sort, now takes the new row beside the one right-clicked: the rows as the person sees them, the new one placed, through the same `view_record_order_set` Reorder → Save uses, and the view becomes hand-ordered ("Sort: Manual"). A view the person sorted, or a grid with no saved view, still says why. `GridControls`' `handOrder` gains `startOrder`. Guards: `insert-row-lands-beside-the-row-on-a-view-nobody-sorted.test.tsx` (red before: 2 of 4), `insert-column-right-lands-beside-its-column.test.tsx` (left / right placement coverage). Consumer action: none.
|
|
5
8
|
- **The toolbar's Markdown file writes each row the way the grid shows it (CD-IO-04, 2026-10-21).** `gridCopyConfig().humanRow` (the per-row blocks of the toolbar's Download > Markdown and a row's Copy) now reads the one file writer's words (`displayRows(toRows(...))`): Tags "Alpha, Beta" and a date in her zone, never `["Alpha","Beta"]` or the ISO instant. Test: `every-export-button-writes-one-file.test.tsx` "humanRow carries the rail's words". Consumer action: none.
|
|
9
|
+
|
|
10
|
+
- **Table settings: Keep value history for N days; a dated field's periods (lane BUILD-HIST, acceptance tests 6 and 14, 2026-10-21).** `TableHistoryRetention` in Table settings saves through `historyRetentionSet` (under the floor, the store's refusal shows as written). `ValuePeriods`: a calendar mark beside a dated field's label in the record panel lists From / Until / Value periods; Save through `setValuePeriods`; History's "True then" reads them. Guard: `src/history-retention-and-dated-values-on-screen.test.tsx`. Consumer action: update `@ai-matrx/records` with this package.
|
|
6
11
|
- **A link can keep the linked record as it was (lane CLOSE-LINK, CD-LINK-05, 2026-10-21).** `FieldEditor` gains "When a linked record changes" on an existing link column: "Show its changes" (live) or "Keep it as it was when linked" (snapshot, `binding`), sent only when it changed. An invoice's "Bill to" then keeps the March address after the client moves. Guard: two cases in `FieldEditor.test.tsx` (red before: no such control). Needs `@ai-matrx/records` with `FieldPatch.binding`. Consumer action: none.
|
|
7
12
|
|
|
8
13
|
## 0.116.70
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
SAVE_TO_TABLE_TYPES,
|
|
5
5
|
SaveToTable,
|
|
6
6
|
shapesOfSource
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-XLHEYH5J.js";
|
|
8
8
|
import "./chunk-ESNTHDQO.js";
|
|
9
9
|
import "./chunk-ZX4EFZSB.js";
|
|
10
10
|
import "./chunk-6Z537SLG.js";
|
|
@@ -17,4 +17,4 @@ export {
|
|
|
17
17
|
SaveToTable,
|
|
18
18
|
shapesOfSource
|
|
19
19
|
};
|
|
20
|
-
//# sourceMappingURL=SaveToTable-
|
|
20
|
+
//# sourceMappingURL=SaveToTable-M532U7TS.js.map
|
|
@@ -4788,7 +4788,7 @@ import { OutboundLink as OutboundLink5 } from "@ai-matrx/kit/outbound-react";
|
|
|
4788
4788
|
import { humanizeIdentifier } from "@ai-matrx/kit/text-case";
|
|
4789
4789
|
import { momentZoneOptions } from "@ai-matrx/design-system/field-formats";
|
|
4790
4790
|
import { jsx as jsx26, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
4791
|
-
var SaveToTable = lazy(() => import("./SaveToTable-
|
|
4791
|
+
var SaveToTable = lazy(() => import("./SaveToTable-M532U7TS.js").then((m) => ({ default: m.SaveToTable })));
|
|
4792
4792
|
var LONGEST_READ = 5e5;
|
|
4793
4793
|
var FENCE = /^```(?:json)?[ \t]*\r?\n([\s\S]*?)\r?\n?```$/;
|
|
4794
4794
|
function isPlainObject(v) {
|
|
@@ -12575,4 +12575,4 @@ export {
|
|
|
12575
12575
|
RecordNameText,
|
|
12576
12576
|
HeldChangeDecision
|
|
12577
12577
|
};
|
|
12578
|
-
//# sourceMappingURL=chunk-
|
|
12578
|
+
//# sourceMappingURL=chunk-GRDLRZSG.js.map
|
|
@@ -2400,6 +2400,10 @@ function tableNameFromFile(fileName) {
|
|
|
2400
2400
|
import { Fragment as Fragment2, jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
2401
2401
|
var NEW_TABLE = "__new__";
|
|
2402
2402
|
var PREVIEW_ROWS = 6;
|
|
2403
|
+
function importTitleField(headers) {
|
|
2404
|
+
const label = headers[0]?.trim() || "Title";
|
|
2405
|
+
return { key: "title", label, type: "text", sort: 10, required: false };
|
|
2406
|
+
}
|
|
2403
2407
|
function NewTableStart({
|
|
2404
2408
|
templatesHref,
|
|
2405
2409
|
describeHref,
|
|
@@ -2517,7 +2521,7 @@ function NewTableStart({
|
|
|
2517
2521
|
const trimmed = importName.trim();
|
|
2518
2522
|
setBusy(true);
|
|
2519
2523
|
setError(null);
|
|
2520
|
-
const result = await declareTable(client, { name: trimmed, slug: tokenFor(trimmed) });
|
|
2524
|
+
const result = await declareTable(client, { name: trimmed, slug: tokenFor(trimmed), fields: [importTitleField(parsed.headers)] });
|
|
2521
2525
|
setBusy(false);
|
|
2522
2526
|
if (!result.ok) {
|
|
2523
2527
|
setError(result.error);
|
|
@@ -5094,4 +5098,4 @@ export {
|
|
|
5094
5098
|
shapesOfSource,
|
|
5095
5099
|
SaveToTable
|
|
5096
5100
|
};
|
|
5097
|
-
//# sourceMappingURL=chunk-
|
|
5101
|
+
//# sourceMappingURL=chunk-XLHEYH5J.js.map
|