datasync-dynamic-form 1.3.0 → 1.3.2

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.
@@ -390,7 +390,7 @@ export class DsDynamicForm extends Component {
390
390
  };
391
391
  this._colRendering = (col) => {
392
392
  try {
393
- return (_jsx(ReactstrapCol, { id: `${col.Id ? col.Id : ''}`, children: col.Fields.map((field, ii) => {
393
+ return (_jsx(ReactstrapCol, { xs: "12", sm: "12", md: "6", lg: "4", id: `${col.Id ? col.Id : ''}`, children: col.Fields.map((field, ii) => {
394
394
  return this._fieldRendering(field, ii);
395
395
  }) }));
396
396
  }
@@ -469,7 +469,7 @@ export class DsDynamicForm extends Component {
469
469
  if (buttonIsHidden)
470
470
  return (_jsx(_Fragment, {}));
471
471
  else {
472
- return (_jsx(ReactstrapCol, { md: "4", sm: "4", children: _jsx(Button, { id: "dsdf_clear_button", block: true, className: "btn-round", color: "danger", outline: true, type: "reset", onClick: () => { this.clearForm(); }, children: buttonCaption }) }));
472
+ return (_jsx(ReactstrapCol, { xs: "12", sm: "12", md: "6", lg: "4", children: _jsx(Button, { id: "dsdf_clear_button", block: true, className: "btn-round", color: "danger", outline: true, type: "reset", onClick: () => { this.clearForm(); }, children: buttonCaption }) }));
473
473
  }
474
474
  };
475
475
  this._submitButton = () => {
@@ -478,7 +478,7 @@ export class DsDynamicForm extends Component {
478
478
  if (buttonIsHidden)
479
479
  return (_jsx(_Fragment, {}));
480
480
  else {
481
- return (_jsx(ReactstrapCol, { md: "4", sm: "4", children: _jsx(Button, { id: "dsdf_submit_button", block: true, className: "btn-round", color: "danger", outline: true, type: "submit", onClick: () => { this.onClickSubmitFormHandler(); }, children: buttonCaption }) }));
481
+ return (_jsx(ReactstrapCol, { xs: "12", sm: "12", md: "6", lg: "4", children: _jsx(Button, { id: "dsdf_submit_button", block: true, className: "btn-round", color: "danger", outline: true, type: "submit", onClick: () => { this.onClickSubmitFormHandler(); }, children: buttonCaption }) }));
482
482
  }
483
483
  };
484
484
  this.render = () => {
@@ -494,11 +494,11 @@ export class DsDynamicForm extends Component {
494
494
  return (_jsx("div", { children: this._rowRendering(row) }, rowIndex));
495
495
  }) }, pageIndex));
496
496
  }) }), _jsxs(ReactstrapRow, { id: "dsdf_buttons_container", className: "buttons-row", children: [this._cancelButton(), this._submitButton(), this.props.custom_button_caption &&
497
- _jsx(ReactstrapCol, { md: "4", sm: "4", children: _jsx(Button, { id: "dsdf_custom_button", block: true, className: "btn-round", color: "primary", type: "submit", onClick: (e) => { if (this.props.custom_button_handler)
497
+ _jsx(ReactstrapCol, { xs: "12", sm: "12", md: "6", lg: "4", children: _jsx(Button, { id: "dsdf_custom_button", block: true, className: "btn-round", color: "primary", type: "submit", onClick: (e) => { if (this.props.custom_button_handler)
498
498
  this.props.custom_button_handler(this.state.form);
499
499
  else
500
500
  console.error("custom_button_handler unset !"); }, children: this.props.custom_button_caption }) }), this.props.custom_button_caption2 &&
501
- _jsx(ReactstrapCol, { md: "4", sm: "4", children: _jsx(Button, { id: "dsdf_custom_button2", block: true, className: "btn-round", color: "primary", type: "submit", onClick: (e) => { if (this.props.custom_button_handler2)
501
+ _jsx(ReactstrapCol, { xs: "12", sm: "12", md: "6", lg: "4", children: _jsx(Button, { id: "dsdf_custom_button2", block: true, className: "btn-round", color: "primary", type: "submit", onClick: (e) => { if (this.props.custom_button_handler2)
502
502
  this.props.custom_button_handler2(this.state.form);
503
503
  else
504
504
  console.error("custom_button_handler2 unset !"); }, children: this.props.custom_button_caption2 }) })] })] }));
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.3.0",
4
+ "version": "1.3.2",
5
5
  "main": "dist/DsDynamicForm.js",
6
6
  "module": "dist/DsDynamicForm.js",
7
7
  "types": "dist/types/DsDynamicForm.d.ts",
@@ -35,7 +35,8 @@
35
35
  "license": "ISC",
36
36
  "dependencies": {
37
37
  "axios": "^1.7.2",
38
- "datasync-blob": "^1.1.7",
39
- "datasync-pdf": "^0.0.1"
38
+ "datasync-blob": "^1.1.10",
39
+ "datasync-pdf": "^0.0.1",
40
+ "runscripts": "^0.0.1"
40
41
  }
41
42
  }