@ai-matrx/records-ui 0.116.62 → 0.116.64

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/dist/index.cjs CHANGED
@@ -8978,17 +8978,39 @@ var import_first_page = require("@ai-matrx/records/first-page");
8978
8978
  var import_first_page2 = require("@ai-matrx/records/first-page");
8979
8979
  var import_data = require("@ai-matrx/records/data");
8980
8980
  function sortRefusal(f) {
8981
+ if (isWithheld(f)) return `${fieldName(f)} is withheld from you, so rows cannot be sorted by it.`;
8981
8982
  if (!computedOnRead(f)) return null;
8982
8983
  return `${fieldName(f)} is worked out each time it is read, so the whole table cannot be sorted by it. Sort by a column it is worked out from.`;
8983
8984
  }
8984
8985
  function sortAndFilterRefusal(f) {
8985
8986
  if (sortRefusal(f) === null) return null;
8987
+ if (isWithheld(f)) return `${fieldName(f)} is withheld from you, so it can be neither sorted nor filtered.`;
8986
8988
  return `${fieldName(f)} is worked out each time it is read, so it can be neither sorted nor filtered. Use a column it is worked out from.`;
8987
8989
  }
8988
8990
  function filterRefusal(f) {
8991
+ if (isWithheld(f)) return `${fieldName(f)} is withheld from you, so rows cannot be filtered by it.`;
8989
8992
  if (!computedOnRead(f)) return null;
8990
8993
  return `${fieldName(f)} is worked out each time it is read, so the whole table cannot be filtered by it. Filter by a column it is worked out from.`;
8991
8994
  }
8995
+ var isWithheld = (f) => f.withheld === true;
8996
+ function withheldKeysOf(rows) {
8997
+ const out = /* @__PURE__ */ new Set();
8998
+ const [first, ...rest] = rows;
8999
+ if (!first?.hidden) return out;
9000
+ for (const key of Object.keys(first.hidden)) {
9001
+ const note = first.hidden[key];
9002
+ if (note && typeof note === "object" && rest.every((row) => row.hidden?.[key] && typeof row.hidden[key] === "object")) out.add(key);
9003
+ }
9004
+ return out;
9005
+ }
9006
+ function markWithheld(fields, keys) {
9007
+ if (keys.size === 0) return fields;
9008
+ return fields.map((f) => keys.has(f.key) ? { ...f, withheld: true } : f);
9009
+ }
9010
+ function skipWhenWithheld(filter) {
9011
+ if (!filter || !(0, import_records.isRuleFilter)(filter)) return filter;
9012
+ return { op: "and", args: [filter], skip_withheld: true };
9013
+ }
8992
9014
  function computedOnRead(f) {
8993
9015
  const kind2 = String(editorKindFor(f));
8994
9016
  return (f.type === "formula" || kind2 === "formula" || kind2 === "lookup" || kind2 === "rollup") && String(f.compute_on ?? "read") === "read";
@@ -11149,6 +11171,9 @@ function toRows(fields, records, labels) {
11149
11171
  });
11150
11172
  }
11151
11173
 
11174
+ // src/gridLook.ts
11175
+ var import_transfer_json = require("@ai-matrx/kit/transfer-json");
11176
+
11152
11177
  // src/tableJson.ts
11153
11178
  var import_core2 = require("@ai-matrx/records/core");
11154
11179
  var import_delimited = require("@ai-matrx/kit/delimited");
@@ -11371,10 +11396,25 @@ function gridCopyConfig(args) {
11371
11396
  return {
11372
11397
  // THE TOOLBAR'S OWN "Download" (CSV, TSV, Excel, Copy as table) writes the rows through the same
11373
11398
  // words the rail writes (`fileExport.ts`): the value as the grid SHOWS it, a date in her zone.
11374
- sheetColumns: () => fields.map((field2) => ({ id: field2.key, label: fieldName(field2) })),
11375
- sheetRows: () => displayRows(toRows([...fields], viewRows(), labels)).map(
11376
- (row) => Object.fromEntries(fields.map((field2) => [field2.key, row[field2.key]?.value ?? null]))
11377
- ),
11399
+ // A NUMBER OR A DATE IS A REAL SHEET CELL in the Excel workbook, as in the rail's: the hidden twin of its column carries
11400
+ // the typed cell (`SHEET_CELL_SUFFIX`); every text format reads the visible column, the words the grid shows.
11401
+ sheetColumns: () => [
11402
+ ...fields.map((field2) => ({ id: field2.key, label: fieldName(field2) })),
11403
+ ...fields.map((field2) => ({ id: field2.key + import_transfer_json.SHEET_CELL_SUFFIX, label: fieldName(field2) }))
11404
+ ],
11405
+ sheetRows: () => {
11406
+ const exported = toRows([...fields], viewRows(), labels);
11407
+ return displayRows(exported).map(
11408
+ (row, at) => Object.fromEntries([
11409
+ ...fields.map((field2) => [field2.key, row[field2.key]?.value ?? null]),
11410
+ ...fields.map((field2) => {
11411
+ const cell2 = exported[at]?.[field2.key];
11412
+ const typed2 = cell2 && !cell2.absent_reason ? cell2.typed : void 0;
11413
+ return [field2.key + import_transfer_json.SHEET_CELL_SUFFIX, typed2 ? { t: typed2.t, v: typed2.v, ...typed2.z ? { z: typed2.z } : {} } : null];
11414
+ })
11415
+ ])
11416
+ );
11417
+ },
11378
11418
  items: [
11379
11419
  { id: "csv-row-ids", label: "CSV with row IDs", build: () => ({ content: exportCsvWithRowIds(fields, stored(visible), ids(visible)), extension: "csv", mime: "text/csv;charset=utf-8", filename: `${tableName2} with row IDs` }) },
11380
11420
  { id: "table-json", label: "JSON with row IDs", build: () => ({ content: exportJson(fields, stored(visible), ids(visible)), extension: "json", mime: "application/json;charset=utf-8", filename: tableName2 }) },
@@ -16979,6 +17019,11 @@ function linkedOf(expr) {
16979
17019
  return { via: rel["field"], inner: a["field"], op: match === "any" ? "eq" : "ne", value: b["const"] };
16980
17020
  }
16981
17021
  var FilterTermsContext = (0, import_react80.createContext)(false);
17022
+ var WithheldConditionFieldsContext = (0, import_react80.createContext)([]);
17023
+ function withheldConditionFields(fields, withheldKeys) {
17024
+ const withheld = new Set(withheldKeys ?? []);
17025
+ return fields.filter((f) => withheld.has(f.key)).map((f) => ({ id: f.id, key: f.key, label: f.label || f.key }));
17026
+ }
16982
17027
  var RELATIVE_DAY_TERMS = [
16983
17028
  { kind: "today", label: "is today" },
16984
17029
  { kind: "tomorrow", label: "is tomorrow" },
@@ -17232,6 +17277,7 @@ function conditionValue(typed2) {
17232
17277
  function ConditionRow({ lead, expr, fields, onChange, emptyLabel = "always", className }) {
17233
17278
  const node = expr ?? null;
17234
17279
  const filterTerms = (0, import_react80.useContext)(FilterTermsContext);
17280
+ const withheldFields = (0, import_react80.useContext)(WithheldConditionFieldsContext);
17235
17281
  const choiceListTerms = (0, import_react80.useContext)(ChoiceListTermsContext) || filterTerms;
17236
17282
  const relative = relativeDayOf(expr);
17237
17283
  const reader = meOf(expr);
@@ -17297,7 +17343,18 @@ function ConditionRow({ lead, expr, fields, onChange, emptyLabel = "always", cla
17297
17343
  attrs: { "data-condition": "field" }
17298
17344
  }
17299
17345
  ),
17300
- onField && !fields.some((f) => f.id === onField) ? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
17346
+ onField && !fields.some((f) => f.id === onField) && withheldFields.some((f) => f.id === onField) ? /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
17347
+ "span",
17348
+ {
17349
+ className: "rounded bg-muted px-1.5 py-0.5 text-[11px] font-medium text-muted-foreground",
17350
+ title: "This column is withheld from you, so this condition is skipped.",
17351
+ "data-records-condition-withheld": "",
17352
+ children: [
17353
+ withheldFields.find((f) => f.id === onField).label,
17354
+ " (withheld)"
17355
+ ]
17356
+ }
17357
+ ) : onField && !fields.some((f) => f.id === onField) ? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
17301
17358
  "span",
17302
17359
  {
17303
17360
  className: "rounded bg-destructive px-1.5 py-0.5 text-[11px] font-medium text-destructive-foreground",
@@ -33340,6 +33397,7 @@ function GridBody({
33340
33397
  openRecordId = null,
33341
33398
  onCloseRecord,
33342
33399
  onRowsShown,
33400
+ onWithheldColumns,
33343
33401
  onAddField,
33344
33402
  onNewRecordForm,
33345
33403
  toolbarActions,
@@ -33773,12 +33831,19 @@ function GridBody({
33773
33831
  const lines = rowLines(look.rowHeight);
33774
33832
  const wrapColumnSet = (0, import_react183.useMemo)(() => new Set(presentation.wrapColumns ?? []), [presentation.wrapColumns]);
33775
33833
  const frozenKeys = (0, import_react183.useMemo)(() => new Set(frozenList), [frozenList]);
33834
+ const withheldKey = (0, import_react183.useMemo)(() => [...withheldKeysOf(rows)].sort().join(""), [rows]);
33835
+ const withheldKeys = (0, import_react183.useMemo)(() => new Set(withheldKey === "" ? [] : withheldKey.split("")), [withheldKey]);
33836
+ const onWithheldRef = (0, import_react183.useRef)(onWithheldColumns);
33837
+ onWithheldRef.current = onWithheldColumns;
33838
+ (0, import_react183.useEffect)(() => {
33839
+ onWithheldRef.current?.(withheldKey === "" ? [] : withheldKey.split(""));
33840
+ }, [withheldKey]);
33776
33841
  const ordered = (0, import_react183.useMemo)(() => {
33777
- const all = [...fields.data ?? []].sort(compareFieldOrder);
33842
+ const all = markWithheld([...fields.data ?? []].sort(compareFieldOrder), withheldKeys);
33778
33843
  if (frozenKeys.size === 0) return all;
33779
33844
  const pinned = frozenList.map((key) => all.find((f) => f.key === key)).filter((f) => f !== void 0);
33780
33845
  return [...pinned, ...all.filter((f) => !frozenKeys.has(f.key))];
33781
- }, [fields.data, frozenKeys, frozenList]);
33846
+ }, [fields.data, frozenKeys, frozenList, withheldKeys]);
33782
33847
  const tableActions2 = useTableActions(tableId, canWrite || Boolean(host.runAgentAction));
33783
33848
  const ownWord = (table.data?.label_singular ?? "").trim();
33784
33849
  const sameAsName = ownWord === "" || (table.data ? ownWord.toLowerCase() === tableName(table.data).toLowerCase() : true);
@@ -34935,8 +35000,8 @@ function GridBody({
34935
35000
  );
34936
35001
  const toolbarFields = fields.data;
34937
35002
  const sortableColumns = (0, import_react183.useMemo)(
34938
- () => (fields.data ?? []).filter((f) => sortRefusal(f) === null).map((f) => ({ key: f.key, label: columnLabel(fields.data ?? [], f.key) })),
34939
- [fields.data]
35003
+ () => markWithheld(fields.data ?? [], withheldKeys).filter((f) => sortRefusal(f) === null).map((f) => ({ key: f.key, label: columnLabel(fields.data ?? [], f.key) })),
35004
+ [fields.data, withheldKeys]
34940
35005
  );
34941
35006
  const hasSeveralRows = rows.length > 1;
34942
35007
  const editingBusy = editing.busy;
@@ -35282,7 +35347,8 @@ function GridBody({
35282
35347
  }
35283
35348
  ) : null,
35284
35349
  question.refused.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime112.jsx)("p", { role: "status", "data-records-filter-refused": "", className: "text-xs text-muted-foreground", children: question.refused.join(" ") }) : null,
35285
- storePaged && sortIgnoredOf(serverRead.data).length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime112.jsx)("p", { role: "status", "data-records-sort-ignored": sortIgnoredOf(serverRead.data).join(" "), className: "text-xs text-muted-foreground", children: "Sort skipped: column not available" }) : null,
35350
+ storePaged && sortIgnoredOf(serverRead.data).length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime112.jsx)("p", { role: "status", "data-records-sort-ignored": sortIgnoredOf(serverRead.data).join(" "), className: "text-xs text-muted-foreground", children: sortSkippedSentence(sortIgnoredOf(serverRead.data), fields.data ?? []) }) : null,
35351
+ storePaged && filterIgnoredOf(serverRead.data).length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime112.jsx)("p", { role: "status", "data-records-filter-ignored": filterIgnoredOf(serverRead.data).join(" "), className: "text-xs text-muted-foreground", children: filterSkippedSentence(filterIgnoredOf(serverRead.data), fields.data ?? []) }) : null,
35286
35352
  runner.outcome && !(merged && runner.outcome.kind === "ran" && runner.outcome.undo !== null) ? /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(ActionOutcomeNotice, { outcome: runner.outcome, onUndo: () => void runner.undo(), onDismiss: runner.dismiss }) : null,
35287
35353
  duplicated ? /* @__PURE__ */ (0, import_jsx_runtime112.jsxs)("p", { role: "status", "data-records-duplicated": "", className: "flex items-center gap-2 rounded border border-border bg-muted/40 px-2 py-1 text-xs", children: [
35288
35354
  /* @__PURE__ */ (0, import_jsx_runtime112.jsx)("span", { children: duplicated }),
@@ -35689,6 +35755,26 @@ function withoutGoneColumns(query, liveKeys, openingSort) {
35689
35755
  const fallback = openingSort && liveKeys.has(openingSort.id) ? openingSort : null;
35690
35756
  return { ...query, sort: sortGone ? fallback : query.sort, columnFilters, page: 1 };
35691
35757
  }
35758
+ function sortSkippedSentence(keys, fields) {
35759
+ const names2 = keys.map((key) => {
35760
+ const field2 = fields.find((f) => f.key === key);
35761
+ return field2 ? fieldName(field2) : null;
35762
+ });
35763
+ const named = names2.filter((n) => n !== null);
35764
+ if (named.length === 0) return "Sort skipped: that column is no longer there. The default order is shown.";
35765
+ return `Sort skipped: ${named.join(", ")} ${named.length === 1 ? "is" : "are"} withheld from you. The default order is shown.`;
35766
+ }
35767
+ function filterSkippedSentence(keys, fields) {
35768
+ const named = keys.map((key) => {
35769
+ const field2 = fields.find((f) => f.key === key);
35770
+ return field2 ? fieldName(field2) : null;
35771
+ }).filter((n) => n !== null);
35772
+ if (named.length === 0) return "Filter skipped: that column is no longer there.";
35773
+ return `Filter skipped: ${named.join(", ")} ${named.length === 1 ? "is" : "are"} withheld from you.`;
35774
+ }
35775
+ function filterIgnoredOf(answer) {
35776
+ return Array.isArray(answer?.filterIgnored) ? answer.filterIgnored : [];
35777
+ }
35692
35778
  function sortIgnoredOf(answer) {
35693
35779
  return Array.isArray(answer?.sortIgnored) ? answer.sortIgnored : [];
35694
35780
  }
@@ -47209,6 +47295,7 @@ function ViewSwitcherBody({
47209
47295
  openRecordId,
47210
47296
  onCloseRecord,
47211
47297
  onRowsShown,
47298
+ onWithheldColumns,
47212
47299
  onMoved,
47213
47300
  onNewRecordForm,
47214
47301
  onAskWhoChanged,
@@ -47287,6 +47374,7 @@ function ViewSwitcherBody({
47287
47374
  ...openRecordId ? { openRecordId } : {},
47288
47375
  ...onCloseRecord ? { onCloseRecord } : {},
47289
47376
  ...onRowsShown ? { onRowsShown } : {},
47377
+ ...onWithheldColumns ? { onWithheldColumns } : {},
47290
47378
  ...onNewRecordForm ? { onNewRecordForm } : {},
47291
47379
  ...onAskWhoChanged ? { onAskWhoChanged } : {},
47292
47380
  ...viewId ? {
@@ -52033,7 +52121,9 @@ function DigestScheduler({
52033
52121
  table_id: tableId,
52034
52122
  spec: {
52035
52123
  name: subjectName?.trim() ? subjectName.trim() : name.trim() || fallbackName,
52036
- filters: filters ?? {}
52124
+ filters: filters ?? {},
52125
+ // The summary's own view: it is read by id for what the summary sends, and is in no person's view list.
52126
+ definition: { system: true }
52037
52127
  }
52038
52128
  });
52039
52129
  if (!declared2.ok) {
@@ -60967,7 +61057,7 @@ function conditionCount(expr) {
60967
61057
  }
60968
61058
  return 1;
60969
61059
  }
60970
- function ViewFilter({ tableId, view, onApply, className }) {
61060
+ function ViewFilter({ tableId, view, onApply, withheldKeys, className }) {
60971
61061
  const fields = (0, import_react346.useFields)(tableId);
60972
61062
  const [open, setOpen] = (0, import_react345.useState)(false);
60973
61063
  const saved = view?.where ?? null;
@@ -60997,7 +61087,8 @@ function ViewFilter({ tableId, view, onApply, className }) {
60997
61087
  };
60998
61088
  }, [open, client, relations]);
60999
61089
  const conditionFields = (0, import_react345.useMemo)(() => {
61000
- const own3 = (fields.data ?? []).map((f) => ({ id: f.id, key: f.key, label: f.label || f.key, field: f }));
61090
+ const withheld = new Set(withheldKeys ?? []);
61091
+ const own3 = (fields.data ?? []).filter((f) => !withheld.has(f.key)).map((f) => ({ id: f.id, key: f.key, label: f.label || f.key, field: f }));
61001
61092
  const reached = relations.flatMap(
61002
61093
  (rel) => (linkedFields[rel.id] ?? []).filter((inner2) => inner2.type !== "relation").map((inner2) => ({
61003
61094
  id: `${rel.id}>${inner2.id}`,
@@ -61008,7 +61099,8 @@ function ViewFilter({ tableId, view, onApply, className }) {
61008
61099
  }))
61009
61100
  );
61010
61101
  return [...own3, ...reached];
61011
- }, [fields.data, relations, linkedFields]);
61102
+ }, [fields.data, relations, linkedFields, withheldKeys]);
61103
+ const withheldFields = (0, import_react345.useMemo)(() => withheldConditionFields(fields.data ?? [], withheldKeys), [fields.data, withheldKeys]);
61012
61104
  if (!view) return null;
61013
61105
  const count = conditionCount(saved);
61014
61106
  const changed2 = JSON.stringify(draft) !== savedKey;
@@ -61046,7 +61138,7 @@ function ViewFilter({ tableId, view, onApply, className }) {
61046
61138
  "This view asks: ",
61047
61139
  conditionInWords(saved, conditionFields),
61048
61140
  ". It cannot be drawn here; clear it to start a new filter."
61049
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime197.jsx)(FilterTermsContext.Provider, { value: true, children: /* @__PURE__ */ (0, import_jsx_runtime197.jsx)(
61141
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime197.jsx)(FilterTermsContext.Provider, { value: true, children: /* @__PURE__ */ (0, import_jsx_runtime197.jsx)(WithheldConditionFieldsContext.Provider, { value: withheldFields, children: /* @__PURE__ */ (0, import_jsx_runtime197.jsx)(
61050
61142
  ConditionGroup,
61051
61143
  {
61052
61144
  lead: "Show records where",
@@ -61055,7 +61147,7 @@ function ViewFilter({ tableId, view, onApply, className }) {
61055
61147
  fields: conditionFields,
61056
61148
  onChange: setDraft
61057
61149
  }
61058
- ) }),
61150
+ ) }) }),
61059
61151
  view.ruleId ? null : /* @__PURE__ */ (0, import_jsx_runtime197.jsxs)("div", { className: "flex items-center gap-1", children: [
61060
61152
  changed2 ? /* @__PURE__ */ (0, import_jsx_runtime197.jsx)(
61061
61153
  import_design_system175.Button,
@@ -61947,7 +62039,7 @@ function TablePage({
61947
62039
  const shareInMenu = phone || toolbarFold2 >= 4;
61948
62040
  const faceUnknown = !opened.layout && (views === void 0 || looks === void 0 || Array.isArray(views) && views.length > 0 && view === null);
61949
62041
  const shownLayout = layoutFromLink ?? shown5?.layout ?? "grid";
61950
- const shownFilter = filter ?? (shown5?.where ? shown5.where : null) ?? (shown5?.filters && Object.keys(shown5.filters).length > 0 ? shown5.filters : null);
62042
+ const shownFilter = filter ?? (shown5?.where ? skipWhenWithheld(shown5.where) : null) ?? (shown5?.filters && Object.keys(shown5.filters).length > 0 ? shown5.filters : null);
61951
62043
  const press = (pressed) => {
61952
62044
  const next = chooseSurface(surface, pressed);
61953
62045
  setSurface(next);
@@ -62004,6 +62096,7 @@ function TablePage({
62004
62096
  setSurface((now) => ({ ...now, rail: "record" }));
62005
62097
  }, [activeRecordId]);
62006
62098
  const [shownIds, setShownIdsRaw] = (0, import_react349.useState)([]);
62099
+ const [withheldKeys, setWithheldKeys] = (0, import_react349.useState)([]);
62007
62100
  const setShownIds = (0, import_react349.useCallback)(
62008
62101
  (next) => setShownIdsRaw((prev) => prev.length === next.length && prev.every((id, i) => id === next[i]) ? prev : next),
62009
62102
  []
@@ -62230,7 +62323,7 @@ function TablePage({
62230
62323
  }
62231
62324
  );
62232
62325
  const sheetExtras = controlsInSheet && main === "records" && shownLayout === "grid" ? /* @__PURE__ */ (0, import_jsx_runtime200.jsxs)(import_jsx_runtime200.Fragment, { children: [
62233
- /* @__PURE__ */ (0, import_jsx_runtime200.jsx)("div", { className: "flex items-center gap-2 text-xs", "data-table-sheet-filter": "", "data-matrx-table-tools-keep-open": "", children: /* @__PURE__ */ (0, import_jsx_runtime200.jsx)(ViewFilter, { tableId, view: shown5, onApply: (where) => void patchView({ where }) }) }),
62326
+ /* @__PURE__ */ (0, import_jsx_runtime200.jsx)("div", { className: "flex items-center gap-2 text-xs", "data-table-sheet-filter": "", "data-matrx-table-tools-keep-open": "", children: /* @__PURE__ */ (0, import_jsx_runtime200.jsx)(ViewFilter, { tableId, view: shown5, withheldKeys, onApply: (where) => void patchView({ where }) }) }),
62234
62327
  /* @__PURE__ */ (0, import_jsx_runtime200.jsx)("div", { role: "group", "aria-label": "Layout", className: "flex flex-wrap gap-1 pt-1", "data-table-sheet-layout": "", children: import_views2.VIEW_LAYOUTS.map((option) => /* @__PURE__ */ (0, import_jsx_runtime200.jsx)(
62235
62328
  import_design_system177.Button,
62236
62329
  {
@@ -62691,7 +62784,7 @@ function TablePage({
62691
62784
  ] })
62692
62785
  ] }) })
62693
62786
  ) : null,
62694
- main === "records" && !(controlsInSheet && shownLayout === "grid") ? /* @__PURE__ */ (0, import_jsx_runtime200.jsx)(ViewFilter, { tableId, view: shown5, onApply: (where) => void patchView({ where }) }) : null,
62787
+ main === "records" && !(controlsInSheet && shownLayout === "grid") ? /* @__PURE__ */ (0, import_jsx_runtime200.jsx)(ViewFilter, { tableId, view: shown5, withheldKeys, onApply: (where) => void patchView({ where }) }) : null,
62695
62788
  lookShowing && main === "records" && !namingLook ? /* @__PURE__ */ (0, import_jsx_runtime200.jsxs)("span", { className: "flex shrink-0 items-center gap-1", "data-view-look": "", "data-view-look-folded": "", "data-toolbar-fit": "look", children: [
62696
62789
  /* @__PURE__ */ (0, import_jsx_runtime200.jsx)(
62697
62790
  import_design_system177.Button,
@@ -62935,6 +63028,7 @@ function TablePage({
62935
63028
  openRecordId: rail === "record" ? openRecord : null,
62936
63029
  onCloseRecord: () => setRail("none"),
62937
63030
  onRowsShown: setShownIds,
63031
+ onWithheldColumns: setWithheldKeys,
62938
63032
  onAskWhoChanged: (fieldKey, recordId) => {
62939
63033
  setAsking({ fieldKey, recordId });
62940
63034
  setRail("who-changed");