@overmap-ai/forms 1.0.32-react-flow-david-fixes.23 → 1.0.32-react-flow-david-fixes.24
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/forms.js +0 -3
- package/dist/forms.umd.cjs +0 -3
- package/package.json +1 -1
package/dist/forms.js
CHANGED
|
@@ -33020,7 +33020,6 @@ class BaseCondition extends Observable {
|
|
|
33020
33020
|
const conditionValue = this.getConditionValue();
|
|
33021
33021
|
if (conditionValue === void 0 || !modifier.isConditionValueValid(conditionValue)) return true;
|
|
33022
33022
|
if (!modifier.isValueValid(value)) return false;
|
|
33023
|
-
console.debug(this, value);
|
|
33024
33023
|
return modifier.modifier.modifierFn(value, conditionValue);
|
|
33025
33024
|
});
|
|
33026
33025
|
this.id = id;
|
|
@@ -34740,7 +34739,6 @@ const FieldSectionLayout = memo((props) => {
|
|
|
34740
34739
|
}, [fieldSections, section.identifier]);
|
|
34741
34740
|
const conditionMet = useMemo(() => {
|
|
34742
34741
|
if (conditionalSections.length === 0) return true;
|
|
34743
|
-
console.debug("apply conditions section layout", values);
|
|
34744
34742
|
return conditionalSections.some(
|
|
34745
34743
|
(conditionalSection) => applyConditions(conditionalSection.getConditions(section.identifier), values)
|
|
34746
34744
|
);
|
|
@@ -36139,7 +36137,6 @@ const validateFields = (fields, values) => {
|
|
|
36139
36137
|
for (const field of fields) {
|
|
36140
36138
|
if (field instanceof FieldSection) {
|
|
36141
36139
|
const conditionalSections = sectionElements.filter((section) => field.identifier in section.conditions);
|
|
36142
|
-
console.debug("apply conditions validate fields", values);
|
|
36143
36140
|
const conditionMet = conditionalSections.length > 0 ? conditionalSections.some(
|
|
36144
36141
|
(conditionalSection) => applyConditions(conditionalSection.getConditions(field.identifier), values)
|
|
36145
36142
|
) : true;
|
package/dist/forms.umd.cjs
CHANGED
|
@@ -33022,7 +33022,6 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
|
|
|
33022
33022
|
const conditionValue = this.getConditionValue();
|
|
33023
33023
|
if (conditionValue === void 0 || !modifier.isConditionValueValid(conditionValue)) return true;
|
|
33024
33024
|
if (!modifier.isValueValid(value)) return false;
|
|
33025
|
-
console.debug(this, value);
|
|
33026
33025
|
return modifier.modifier.modifierFn(value, conditionValue);
|
|
33027
33026
|
});
|
|
33028
33027
|
this.id = id;
|
|
@@ -34742,7 +34741,6 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
|
|
|
34742
34741
|
}, [fieldSections, section.identifier]);
|
|
34743
34742
|
const conditionMet = React.useMemo(() => {
|
|
34744
34743
|
if (conditionalSections.length === 0) return true;
|
|
34745
|
-
console.debug("apply conditions section layout", values);
|
|
34746
34744
|
return conditionalSections.some(
|
|
34747
34745
|
(conditionalSection) => applyConditions(conditionalSection.getConditions(section.identifier), values)
|
|
34748
34746
|
);
|
|
@@ -36141,7 +36139,6 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
|
|
|
36141
36139
|
for (const field of fields) {
|
|
36142
36140
|
if (field instanceof FieldSection) {
|
|
36143
36141
|
const conditionalSections = sectionElements.filter((section) => field.identifier in section.conditions);
|
|
36144
|
-
console.debug("apply conditions validate fields", values);
|
|
36145
36142
|
const conditionMet = conditionalSections.length > 0 ? conditionalSections.some(
|
|
36146
36143
|
(conditionalSection) => applyConditions(conditionalSection.getConditions(field.identifier), values)
|
|
36147
36144
|
) : true;
|