@formio/js 5.0.0-dev.5717.a2aa09f → 5.0.0-dev.5718.37a9ce7

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.
@@ -1082,6 +1082,7 @@ class WebformBuilder extends Component_1.default {
1082
1082
  lodash_1.default.pull(newComp.validators, 'required');
1083
1083
  parentComponent.tabs[tabIndex].splice(index, 1, newComp);
1084
1084
  newComp.checkValidity = () => true;
1085
+ newComp.checkComponentValidity = () => true;
1085
1086
  newComp.build(defaultValueComponent.element);
1086
1087
  }
1087
1088
  }
@@ -211,12 +211,11 @@ export default class NestedComponent extends Field {
211
211
  calculateValue(data: any, flags: any, row: any): any;
212
212
  isLastPage(): boolean;
213
213
  isValid(data: any, dirty: any): any;
214
- validationProcessor({ scope, data, row, instance, component }: {
214
+ validationProcessor({ scope, data, row, instance }: {
215
215
  scope: any;
216
216
  data: any;
217
217
  row: any;
218
218
  instance: any;
219
- component: any;
220
219
  }, flags: any): void;
221
220
  /**
222
221
  * Perform a validation on all child components of this nested component.
@@ -681,11 +681,8 @@ class NestedComponent extends Field_1.default {
681
681
  isValid(data, dirty) {
682
682
  return this.getComponents().reduce((valid, comp) => comp.isValid(data, dirty) && valid, super.isValid(data, dirty));
683
683
  }
684
- validationProcessor({ scope, data, row, instance, component }, flags) {
684
+ validationProcessor({ scope, data, row, instance }, flags) {
685
685
  const { dirty } = flags;
686
- if (this.root.hasExtraPages && this.page !== this.root.page) {
687
- instance = this.getComponentById(component.id);
688
- }
689
686
  if (!instance) {
690
687
  return;
691
688
  }
@@ -1066,6 +1066,7 @@ export default class WebformBuilder extends Component {
1066
1066
  _.pull(newComp.validators, 'required');
1067
1067
  parentComponent.tabs[tabIndex].splice(index, 1, newComp);
1068
1068
  newComp.checkValidity = () => true;
1069
+ newComp.checkComponentValidity = () => true;
1069
1070
  newComp.build(defaultValueComponent.element);
1070
1071
  }
1071
1072
  }
@@ -211,12 +211,11 @@ export default class NestedComponent extends Field {
211
211
  calculateValue(data: any, flags: any, row: any): any;
212
212
  isLastPage(): boolean;
213
213
  isValid(data: any, dirty: any): any;
214
- validationProcessor({ scope, data, row, instance, component }: {
214
+ validationProcessor({ scope, data, row, instance }: {
215
215
  scope: any;
216
216
  data: any;
217
217
  row: any;
218
218
  instance: any;
219
- component: any;
220
219
  }, flags: any): void;
221
220
  /**
222
221
  * Perform a validation on all child components of this nested component.
@@ -677,11 +677,8 @@ export default class NestedComponent extends Field {
677
677
  isValid(data, dirty) {
678
678
  return this.getComponents().reduce((valid, comp) => comp.isValid(data, dirty) && valid, super.isValid(data, dirty));
679
679
  }
680
- validationProcessor({ scope, data, row, instance, component }, flags) {
680
+ validationProcessor({ scope, data, row, instance }, flags) {
681
681
  const { dirty } = flags;
682
- if (this.root.hasExtraPages && this.page !== this.root.page) {
683
- instance = this.getComponentById(component.id);
684
- }
685
682
  if (!instance) {
686
683
  return;
687
684
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formio/js",
3
- "version": "5.0.0-dev.5717.a2aa09f",
3
+ "version": "5.0.0-dev.5718.37a9ce7",
4
4
  "description": "JavaScript powered Forms with JSON Form Builder",
5
5
  "main": "lib/cjs/index.js",
6
6
  "exports": {