@astroapps/forms-core 1.2.0 → 1.2.2
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/lib/index.cjs +4 -4
- package/lib/index.cjs.map +1 -1
- package/lib/index.js +4 -4
- package/lib/index.js.map +1 -1
- package/lib/validators.d.ts +1 -1
- package/package.json +1 -1
- package/src/formState.ts +2 -1
- package/src/validators.ts +7 -2
package/lib/index.cjs
CHANGED
|
@@ -1466,9 +1466,9 @@ function createValidators(def, context) {
|
|
|
1466
1466
|
});
|
|
1467
1467
|
}
|
|
1468
1468
|
}
|
|
1469
|
-
function setupValidation(controlImpl, definition, dataNode, schemaInterface, parent, formNode, runAsync) {
|
|
1469
|
+
function setupValidation(controlImpl, definition, dataNode, schemaInterface, parent, formNode, hidden, runAsync) {
|
|
1470
1470
|
var validationEnabled = createScopedComputed(controlImpl, function () {
|
|
1471
|
-
return !
|
|
1471
|
+
return !hidden.value;
|
|
1472
1472
|
});
|
|
1473
1473
|
var validatorsScope = controls.createCleanupScope();
|
|
1474
1474
|
controls.createEffect(function () {
|
|
@@ -1646,7 +1646,7 @@ function createFormState(schemaInterface, evaluators) {
|
|
|
1646
1646
|
return !!cf.readonly.value || isControlReadonly(definition);
|
|
1647
1647
|
});
|
|
1648
1648
|
controls.updateComputedValue(disabled, function () {
|
|
1649
|
-
return !!cf.disabled.value ||
|
|
1649
|
+
return !!cf.disabled.value || of.disabled.value;
|
|
1650
1650
|
});
|
|
1651
1651
|
controls.updateComputedValue(variables, function () {
|
|
1652
1652
|
var _controlImpl$fields$v2;
|
|
@@ -1669,7 +1669,7 @@ function createFormState(schemaInterface, evaluators) {
|
|
|
1669
1669
|
}
|
|
1670
1670
|
}
|
|
1671
1671
|
}, displayOverrides);
|
|
1672
|
-
setupValidation(controlImpl, definition, dataNode, schemaInterface, parent, formNode, runAsync);
|
|
1672
|
+
setupValidation(controlImpl, definition, dataNode, schemaInterface, parent, formNode, hidden, runAsync);
|
|
1673
1673
|
controls.createSyncEffect(function () {
|
|
1674
1674
|
var _dataNode$value;
|
|
1675
1675
|
var dn = (_dataNode$value = dataNode.value) == null ? void 0 : _dataNode$value.control;
|