@ai-matrx/records-ui 0.116.72 → 0.116.74
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 +19 -0
- package/dist/{SaveToTable-3NMVA3VY.js → SaveToTable-M532U7TS.js} +2 -2
- package/dist/{chunk-3OD52U5S.js → chunk-K5RXFZYC.js} +33 -2
- package/dist/chunk-K5RXFZYC.js.map +1 -0
- package/dist/{chunk-DWYBPID4.js → chunk-XLHEYH5J.js} +6 -2
- package/dist/chunk-XLHEYH5J.js.map +1 -0
- package/dist/index.cjs +4967 -4512
- 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 +4325 -3907
- package/dist/index.js.map +1 -1
- package/dist/pickers.cjs +31 -0
- package/dist/pickers.cjs.map +1 -1
- package/dist/pickers.js +1 -1
- package/package.json +3 -3
- package/dist/chunk-3OD52U5S.js.map +0 -1
- package/dist/chunk-DWYBPID4.js.map +0 -1
- /package/dist/{SaveToTable-3NMVA3VY.js.map → SaveToTable-M532U7TS.js.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,29 @@
|
|
|
1
1
|
# Changelog — @ai-matrx/records-ui
|
|
2
2
|
|
|
3
|
+
## 0.116.74
|
|
4
|
+
|
|
5
|
+
- **Table settings: "Lives in" with "Also lives in…", and "Links to other organizations" (lane CLOSE-LINK, CD-LINK-10/11, 2026-10-22).** New `TableHomes` (every Home the table lives in, named, and "Also lives in…" through `MoveUnderDialog`'s new `purpose="home"`, which calls `client.homeAdd` and says "People shared on “X” will see “Risks” and its records there") and `TableOtherOrganizationsSwitch` (`cross_organization_relations` on the Table record, the table's half of the organization wall's one opening; both organizations also turn on "Links to other organizations"). Both drawn in `TableSettings`. Guard: `a-table-lives-in-two-homes-and-may-link-to-other-organizations.test.tsx` (red before: no such section). Needs `@ai-matrx/records` with `tableHomes`/`homeAdd`. Consumer action: none.
|
|
6
|
+
- **A link can carry access, and two records can link each other (lane CLOSE-LINK, CD-LINK-08/09, 2026-10-21).** `FieldEditor` on an existing link column gains "Whoever sees a linked record sees this one" (`carries`) with "Up to view" / "Up to edit" (`carries_max`), and, on a link to its own table, "Two records can link each other" (`loops`); with both on it says the consequence ("Sharing one record shares the records it links to, and back again, view only."). Each is sent only when it changed. Guard: a case in `FieldEditor.test.tsx` (red before: no such control). Needs `@ai-matrx/records` with `FieldPatch.carries`. Consumer action: none.
|
|
7
|
+
|
|
8
|
+
## 0.116.73
|
|
9
|
+
|
|
10
|
+
- **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.
|
|
11
|
+
|
|
12
|
+
- **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.
|
|
13
|
+
- **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.
|
|
14
|
+
|
|
15
|
+
- **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.
|
|
16
|
+
- **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.
|
|
17
|
+
|
|
3
18
|
## 0.116.72
|
|
4
19
|
|
|
5
20
|
- **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.
|
|
6
21
|
- **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
22
|
|
|
23
|
+
## 0.116.71
|
|
24
|
+
|
|
25
|
+
- **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.
|
|
26
|
+
|
|
8
27
|
## 0.116.70
|
|
9
28
|
|
|
10
29
|
- **Agents can edit, per table; an agent's proposed column waits in the table's own Settings (lane CLOSE-AGENT, CD-AGENT-04/05, 2026-10-21).** `TableSettings` draws "Agents can edit" (new `TableAgentWrites.tsx`: `TableAgentWritesSwitch`, `agentsMayChangeTable`), on by default; off writes `agent_writable: false` on the Table document through `record_update`, and the store then refuses every agent change to that table in one sentence naming it (matrx-frontend migration `20261021170000_closeagent_a`). With no `proposals` handed in, the "Proposed" section now reads this table's own proposals from the one queue (`custom.work_inbox`, new `tableProposals.ts`: `useTableProposals`, `proposalsForTable`) and Accept / Reject decide them through `custom.work_approval_decide`, the Inbox's own door, which applies the column on yes. Guard: `TableSettings.agent-writes.test.tsx` (red before: no switch; no proposal listed). Consumer action: none.
|
|
@@ -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) {
|
|
@@ -8562,6 +8562,12 @@ function FieldEditor(props) {
|
|
|
8562
8562
|
const [limitView, setLimitView] = useState27(limitViewStart);
|
|
8563
8563
|
const bindingStart = start?.config?.["binding"] === "snapshot" ? "snapshot" : "live";
|
|
8564
8564
|
const [binding, setBinding] = useState27(bindingStart);
|
|
8565
|
+
const carriesStart = start?.config?.["carries"] === true;
|
|
8566
|
+
const [carries, setCarries] = useState27(carriesStart);
|
|
8567
|
+
const carriesMaxStart = start?.config?.["carries_max"] === "editor" ? "editor" : "viewer";
|
|
8568
|
+
const [carriesMax, setCarriesMax] = useState27(carriesMaxStart);
|
|
8569
|
+
const loopsStart = start?.config?.["loops"] === true;
|
|
8570
|
+
const [loops, setLoops] = useState27(loopsStart);
|
|
8565
8571
|
const [targetViews, setTargetViews] = useState27(null);
|
|
8566
8572
|
const limitTarget = field2?.type === "relation" && field2.relation_target && !onEntity ? String(field2.relation_target) : null;
|
|
8567
8573
|
useEffect19(() => {
|
|
@@ -8768,6 +8774,9 @@ function FieldEditor(props) {
|
|
|
8768
8774
|
...field2.type === "relation" && dependency !== dependencyStart ? { dependency } : {},
|
|
8769
8775
|
...field2.type === "relation" && limitView !== limitViewStart ? { limit_to_view: limitView === "" ? null : limitView } : {},
|
|
8770
8776
|
...field2.type === "relation" && binding !== bindingStart ? { binding } : {},
|
|
8777
|
+
...field2.type === "relation" && carries !== carriesStart ? { carries } : {},
|
|
8778
|
+
...field2.type === "relation" && carries && carriesMax !== carriesMaxStart ? { carries_max: carriesMax } : {},
|
|
8779
|
+
...field2.type === "relation" && loops !== loopsStart ? { loops } : {},
|
|
8771
8780
|
...type === "modified_time" ? watchedFieldsPatch(watchStart, watchFields) : {},
|
|
8772
8781
|
...type === "autonumber" && numberPrefix.trim() !== prefixStart ? { display_format: { id: "autonumber", options: numberPrefix.trim() === "" ? {} : { prefix: numberPrefix.trim() } } } : {},
|
|
8773
8782
|
// THE CHOICES, ONE ROW EACH, IN ORDER (CHOICE-COLUMN-EDIT): `{id, words}` re-words a
|
|
@@ -9119,6 +9128,28 @@ function FieldEditor(props) {
|
|
|
9119
9128
|
] })
|
|
9120
9129
|
] })
|
|
9121
9130
|
] }) : null,
|
|
9131
|
+
editing && field2?.type === "relation" ? /* @__PURE__ */ jsxs33("div", { className: "flex flex-col gap-1.5", "data-records-link-carries": "", children: [
|
|
9132
|
+
/* @__PURE__ */ jsxs33("label", { className: "flex items-center gap-1.5 text-sm", title: "Whoever can see a linked record can also see this one", children: [
|
|
9133
|
+
/* @__PURE__ */ jsx37(Checkbox4, { checked: carries, "aria-label": "Carries access", onCheckedChange: (v) => setCarries(v === true) }),
|
|
9134
|
+
/* @__PURE__ */ jsx37("span", { children: "Whoever sees a linked record sees this one" })
|
|
9135
|
+
] }),
|
|
9136
|
+
carries ? /* @__PURE__ */ jsxs33(Select5, { value: carriesMax, onValueChange: (next) => setCarriesMax(next === "editor" ? "editor" : "viewer"), children: [
|
|
9137
|
+
/* @__PURE__ */ jsx37(SelectTrigger5, { size: "sm", "aria-label": "Carried access level", children: /* @__PURE__ */ jsx37(SelectValue5, {}) }),
|
|
9138
|
+
/* @__PURE__ */ jsxs33(SelectContent5, { children: [
|
|
9139
|
+
/* @__PURE__ */ jsx37(SelectItem5, { value: "viewer", children: "Up to view" }),
|
|
9140
|
+
/* @__PURE__ */ jsx37(SelectItem5, { value: "editor", children: "Up to edit" })
|
|
9141
|
+
] })
|
|
9142
|
+
] }) : null,
|
|
9143
|
+
field2.relation_target && field2.relation_target === field2.entity_definition_id ? /* @__PURE__ */ jsxs33("label", { className: "flex items-center gap-1.5 text-sm", title: "Two records may point at each other along this link", children: [
|
|
9144
|
+
/* @__PURE__ */ jsx37(Checkbox4, { checked: loops, "aria-label": "Two records can link each other", onCheckedChange: (v) => setLoops(v === true) }),
|
|
9145
|
+
/* @__PURE__ */ jsx37("span", { children: "Two records can link each other" })
|
|
9146
|
+
] }) : null,
|
|
9147
|
+
carries && loops ? /* @__PURE__ */ jsxs33("p", { className: "text-xs text-muted-foreground", "data-records-loop-consequence": "", children: [
|
|
9148
|
+
"Sharing one record shares the records it links to, and back again, ",
|
|
9149
|
+
carriesMax === "editor" ? "up to edit" : "view only",
|
|
9150
|
+
"."
|
|
9151
|
+
] }) : null
|
|
9152
|
+
] }) : null,
|
|
9122
9153
|
personColumn ? /* @__PURE__ */ jsxs33("label", { className: "flex items-center gap-1.5 text-sm", title: "Each person added to this column gets a notice", children: [
|
|
9123
9154
|
/* @__PURE__ */ jsx37(
|
|
9124
9155
|
Checkbox4,
|
|
@@ -12575,4 +12606,4 @@ export {
|
|
|
12575
12606
|
RecordNameText,
|
|
12576
12607
|
HeldChangeDecision
|
|
12577
12608
|
};
|
|
12578
|
-
//# sourceMappingURL=chunk-
|
|
12609
|
+
//# sourceMappingURL=chunk-K5RXFZYC.js.map
|