@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/CHANGELOG.md +11 -1
- package/dist/{chunk-IL66BADF.js → chunk-HGPMJHRJ.js} +4 -1
- package/dist/{chunk-IL66BADF.js.map → chunk-HGPMJHRJ.js.map} +1 -1
- package/dist/index.cjs +4 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/pickers.cjs +4 -0
- package/dist/pickers.cjs.map +1 -1
- package/dist/pickers.js +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
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 () => {
|