datasync-dynamic-form 1.1.26 → 1.2.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.
@@ -441,7 +441,7 @@ export class DsDynamicForm extends Component {
441
441
  case "captcha":
442
442
  return this._captcha_field(field);
443
443
  default:
444
- console.error("alert incorrect field type");
444
+ console.error(`${field.input_type.toLowerCase()} type is incorrect !!!`);
445
445
  return (_jsx(_Fragment, {}));
446
446
  }
447
447
  }
@@ -469,8 +469,10 @@ export class DsDynamicForm extends Component {
469
469
  }
470
470
  };
471
471
  this.render = () => {
472
- return (_jsxs(_Fragment, { children: [!this.state.form &&
473
- _jsx("div", { children: _jsx("h1", { children: "Form loading..." }) }), _jsx("form", { children: this.state.form &&
472
+ return (_jsxs(_Fragment, { children: [_jsx(_Fragment, { children: console.log('form->', this.props.form) }), !this.state.form &&
473
+ _jsxs("div", { children: [console.log('Pages->'), _jsx("h1", { children: "Form loading..." })] }), !(this.state.form &&
474
+ this.state.form.Pages) &&
475
+ _jsx("div", { children: _jsx("h1", { children: "Form Missing Pages !!!" }) }), _jsx("form", { children: this.state.form &&
474
476
  this.state.form.Pages &&
475
477
  this.state.form.Pages.map((page, pageIndex) => {
476
478
  console.log(`Rendering page ${pageIndex}:`, page);
@@ -501,8 +503,9 @@ export class DsDynamicForm extends Component {
501
503
  this.clearForm();
502
504
  }
503
505
  if (this.props.active_page != prevProps.active_page) {
506
+ console.log("active_page has changed !");
504
507
  try {
505
- this.updatePageDomElement(this.prevProps.active_page, false);
508
+ this.updatePageDomElement(prevProps.active_page, false);
506
509
  }
507
510
  catch (error) {
508
511
  this.updatePageDomElement(0, false);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "datasync-dynamic-form",
3
3
  "description": "Datasync Dynamic Form component",
4
- "version": "1.1.26",
4
+ "version": "1.2.1",
5
5
  "main": "dist/DsDynamicForm.js",
6
6
  "module": "dist/DsDynamicForm.js",
7
7
  "types": "dist/types/DsDynamicForm.d.ts",