@thecb/components 6.1.4-beta.5 → 6.1.5
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/index.cjs.js +0 -14
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +0 -14
- package/dist/index.esm.js.map +1 -1
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -35137,24 +35137,10 @@ const runValidator = (validator, value, form) => {
|
|
|
35137
35137
|
if (validatorFn === undefined) {
|
|
35138
35138
|
throw new Error(runValidatorErrorMessage(validator.type));
|
|
35139
35139
|
}
|
|
35140
|
-
console.log(
|
|
35141
|
-
"run validator (validator, value, form):",
|
|
35142
|
-
validator.type,
|
|
35143
|
-
validator.args,
|
|
35144
|
-
value,
|
|
35145
|
-
form
|
|
35146
|
-
);
|
|
35147
35140
|
return validatorFn(value, validator.args, form) ? null : validator.error;
|
|
35148
35141
|
};
|
|
35149
35142
|
|
|
35150
35143
|
const _computeErrors = (fieldName, form, validators) => {
|
|
35151
|
-
console.log("field name is", fieldName);
|
|
35152
|
-
console.log("form is", form);
|
|
35153
|
-
console.log("validators are", validators);
|
|
35154
|
-
const validatorsResult = validators.map(v =>
|
|
35155
|
-
runValidator(v, form[fieldName].rawValue, form)
|
|
35156
|
-
);
|
|
35157
|
-
console.log("validators result is", validatorsResult);
|
|
35158
35144
|
return validators
|
|
35159
35145
|
.map(v => runValidator(v, form[fieldName].rawValue, form))
|
|
35160
35146
|
.filter(x => x !== null);
|