onekijs-ui 0.19.0 → 0.19.1

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
@@ -9911,11 +9911,11 @@ const FormTableComponent = React.memo(({ addLabel = 'add', controller, value, on
9911
9911
  const field = form.fields[name];
9912
9912
  if (field) {
9913
9913
  const validators = field.validators;
9914
- const minlengthValidator = validators.minLength;
9914
+ const minlengthValidator = (validators.minLength || validators.min);
9915
9915
  if (minlengthValidator) {
9916
9916
  minLength = minlengthValidator.length;
9917
9917
  }
9918
- const maxlengthValidator = validators.maxLength;
9918
+ const maxlengthValidator = (validators.maxLength || validators.max);
9919
9919
  if (maxlengthValidator) {
9920
9920
  maxLength = maxlengthValidator.length;
9921
9921
  }
@@ -9990,7 +9990,7 @@ const FormTableComponent = React.memo(({ addLabel = 'add', controller, value, on
9990
9990
  if (!mounted)
9991
9991
  return null;
9992
9992
  return (React.createElement(DefaultFormTableContext.Provider, { value: formTableContext.current },
9993
- React.createElement(ControllerTableComponent, { controller: controller, className: addClassname('o-form-table', className), FooterComponent: tableService.dataSource ? undefined : FooterComponent, footer: tableService.dataSource || !showAddButton ? false : true, NotFoundComponent: null, ...props })));
9993
+ React.createElement(ControllerTableComponent, { controller: controller, className: addClassname('o-form-table', className), FooterComponent: tableService.dataSource ? undefined : FooterComponent, footer: tableService.dataSource || !showAddButton || props.disabled ? false : true, NotFoundComponent: null, ...props })));
9994
9994
  });
9995
9995
  FormTableComponent.displayName = 'FormTable';
9996
9996