indicator-ui 0.1.57 → 0.1.59

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.js CHANGED
@@ -55090,9 +55090,14 @@ function processBaseValidators(config, options) {
55090
55090
  var required = processConfigField(config.required);
55091
55091
  var equalsTo = processConfigField(config.equalsTo);
55092
55092
  var customValidator = getExtendsCustomValidator(config.custom);
55093
- if (customValidator.fun) {
55093
+ var customFun = customValidator.fun;
55094
+ if (customFun) {
55094
55095
  resValidators.push({
55095
- fun: customValidator.fun,
55096
+ fun: function fun(value) {
55097
+ return customFun(value, {
55098
+ getField: form.getField
55099
+ });
55100
+ },
55096
55101
  priory: customValidator.priory
55097
55102
  });
55098
55103
  }
@@ -55115,7 +55120,7 @@ function processBaseValidators(config, options) {
55115
55120
  }
55116
55121
  return resValidators;
55117
55122
  }
55118
- function processAnotherValidators(config, _) {
55123
+ function processAnotherValidators(config, options) {
55119
55124
  var required = getValidatorRequired(config);
55120
55125
  var resValidators = [];
55121
55126
  var validatorsNameList = Object.keys(_validateFunctions__WEBPACK_IMPORTED_MODULE_0__.ValidatorsConfig);
@@ -55949,7 +55954,7 @@ function useForm() {
55949
55954
  case 1:
55950
55955
  validForm = _context7.v;
55951
55956
  if (validForm !== null) {
55952
- _onSubmit === null || _onSubmit === void 0 || _onSubmit(validForm);
55957
+ _onSubmit === null || _onSubmit === void 0 || _onSubmit(validForm, event);
55953
55958
  } else {
55954
55959
  highlightFormErrors();
55955
55960
  }