@stemy/ngx-dynamic-form 19.9.28 → 19.9.30
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.
|
@@ -458,11 +458,13 @@ function enumValidation($enum) {
|
|
|
458
458
|
return $enum.includes(v);
|
|
459
459
|
}, "enum");
|
|
460
460
|
}
|
|
461
|
-
function setFieldMinDate(field, min) {
|
|
462
|
-
setFieldDefault(field, min);
|
|
461
|
+
function setFieldMinDate(field, min, setValue = true) {
|
|
463
462
|
setFieldProp(field, "min", min);
|
|
464
|
-
setFieldValue(field, min);
|
|
465
463
|
addFieldValidators(field, [minValueValidation()]);
|
|
464
|
+
if (!setValue)
|
|
465
|
+
return;
|
|
466
|
+
setFieldDefault(field, min);
|
|
467
|
+
setFieldValue(field, min);
|
|
466
468
|
}
|
|
467
469
|
|
|
468
470
|
class ModelUtils {
|