@ai-matrx/records-ui 0.116.35 → 0.116.36

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
@@ -182,7 +182,7 @@ import {
182
182
  withoutAddition,
183
183
  withoutLeadingBlank,
184
184
  workedOutErrorFor
185
- } from "./chunk-IL66BADF.js";
185
+ } from "./chunk-HGPMJHRJ.js";
186
186
  import {
187
187
  CHART_PLOT_PX,
188
188
  EMBEDDED_ROW_PX,
package/dist/pickers.cjs CHANGED
@@ -10652,6 +10652,7 @@ var import_records20 = require("@ai-matrx/records");
10652
10652
  var import_react61 = require("@ai-matrx/records/react");
10653
10653
  init_Refusal();
10654
10654
  init_names();
10655
+ init_refusals();
10655
10656
  var import_jsx_runtime39 = require("react/jsx-runtime");
10656
10657
  var PREVIEW_GROUPS = 1e3;
10657
10658
  function ruleWords(rules) {
@@ -10690,6 +10691,9 @@ function FieldRulePreview({ field, tableId, rules }) {
10690
10691
  const numbers = holdsNumbers(field);
10691
10692
  const groups = answer.data.map((row) => ({ value: groupValue(row.groups[field.key] ?? null, numbers), count: row.row_count }));
10692
10693
  setPreview((0, import_records20.previewRuleChange)(latest.current, groups, answer.data.length >= PREVIEW_GROUPS));
10694
+ }).catch((thrown) => {
10695
+ if (cancelled) return;
10696
+ setRefusal((0, refusals_exports.refusalFromThrown)(thrown, `${name}'s values could not be counted.`, "The check still applies when you save."));
10693
10697
  });
10694
10698
  }, 300);
10695
10699
  return () => {