@ai-matrx/records-ui 0.101.22 → 0.101.23

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.js CHANGED
@@ -12522,6 +12522,9 @@ function storedValueAgrees(field2, stored, written, options) {
12522
12522
  }
12523
12523
  return JSON.stringify(stored) === JSON.stringify(written);
12524
12524
  }
12525
+ function refusalsBeyondTheHeader(refusals, headerRowId) {
12526
+ return headerRowId === void 0 ? [...refusals] : refusals.filter((r) => r.rowId !== headerRowId);
12527
+ }
12525
12528
  function columnsTheGridTurnedAway(turnedAway, columnKeys, columnName, already) {
12526
12529
  const said = /* @__PURE__ */ new Map();
12527
12530
  for (const refused of turnedAway) {
@@ -21480,7 +21483,12 @@ function GridBody({
21480
21483
  ...headed ? { header: { unmatched: headed.unmatched } } : {}
21481
21484
  });
21482
21485
  built.refusals.push(
21483
- ...columnsTheGridTurnedAway(sheetPlan.refusals, columnKeys, (id) => columnLabel(fieldList, id), built.refusals)
21486
+ ...columnsTheGridTurnedAway(
21487
+ refusalsBeyondTheHeader(sheetPlan.refusals, headed ? touched[0] : void 0),
21488
+ columnKeys,
21489
+ (id) => columnLabel(fieldList, id),
21490
+ built.refusals
21491
+ )
21484
21492
  );
21485
21493
  if (merged && built.cells > 0 && built.creates === 0 && built.refusals.length === 0 && built.pastRightEdge === 0 && (built.header?.unmatched.length ?? 0) === 0 && built.unmatchedOptions.length === 0) {
21486
21494
  const outcome = await pasteAtOnce.current(built);