@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.cjs CHANGED
@@ -17254,6 +17254,7 @@ var import_records28 = require("@ai-matrx/records");
17254
17254
  var import_react82 = require("@ai-matrx/records/react");
17255
17255
  init_Refusal();
17256
17256
  init_names();
17257
+ init_refusals();
17257
17258
  var import_jsx_runtime55 = require("react/jsx-runtime");
17258
17259
  var PREVIEW_GROUPS = 1e3;
17259
17260
  function ruleWords(rules) {
@@ -17292,6 +17293,9 @@ function FieldRulePreview({ field: field2, tableId, rules }) {
17292
17293
  const numbers = holdsNumbers3(field2);
17293
17294
  const groups = answer.data.map((row) => ({ value: groupValue(row.groups[field2.key] ?? null, numbers), count: row.row_count }));
17294
17295
  setPreview((0, import_records28.previewRuleChange)(latest.current, groups, answer.data.length >= PREVIEW_GROUPS));
17296
+ }).catch((thrown) => {
17297
+ if (cancelled) return;
17298
+ setRefusal((0, refusals_exports.refusalFromThrown)(thrown, `${name}'s values could not be counted.`, "The check still applies when you save."));
17295
17299
  });
17296
17300
  }, 300);
17297
17301
  return () => {