UNPKG

@react-form-builder/core

Version:

React JSON Schema Form Builder to create complex, validated, reusable forms with no deep React knowledge required

15 lines (14 loc) 458 B
import { calculateExpressionProperty as t } from "../features/calculation/propertyCalculator.js"; import { isFunctionalProperty as i } from "../stores/ComponentStore.js"; function d(r, n) { if (!r.renderWhen) return !0; if (!i(r.renderWhen)) { const { value: e } = r.renderWhen; if (typeof e == "string" && e.trim() === "") return !0; } return t(r.renderWhen, n) === !0; } export { d as needRender }; //# sourceMappingURL=needRender.js.map