datasync-dynamic-form 1.1.23 → 1.1.24
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/DsDynamicForm.js
CHANGED
|
@@ -364,7 +364,8 @@ export class DsDynamicForm extends Component {
|
|
|
364
364
|
};
|
|
365
365
|
this._colRendering = (col) => {
|
|
366
366
|
try {
|
|
367
|
-
|
|
367
|
+
console.log("col-->", col);
|
|
368
|
+
return (_jsx(ReactstrapCol, { id: `${col.Id ? col.Id : ''}`, children: col.Fields.map((field, ii) => {
|
|
368
369
|
return this._fieldRendering(field, ii);
|
|
369
370
|
}) }));
|
|
370
371
|
}
|
|
@@ -441,7 +442,7 @@ export class DsDynamicForm extends Component {
|
|
|
441
442
|
if (buttonIsHidden)
|
|
442
443
|
return (_jsx(_Fragment, {}));
|
|
443
444
|
else {
|
|
444
|
-
return (_jsx(ReactstrapCol, { md: "4", sm: "4", children: _jsx(Button, { block: true, className: "btn-round", color: "danger", outline: true, type: "reset", onClick: () => { this.clearForm(); }, children: buttonCaption }) }));
|
|
445
|
+
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 }) }));
|
|
445
446
|
}
|
|
446
447
|
};
|
|
447
448
|
this._submitButton = () => {
|
|
@@ -450,7 +451,7 @@ export class DsDynamicForm extends Component {
|
|
|
450
451
|
if (buttonIsHidden)
|
|
451
452
|
return (_jsx(_Fragment, {}));
|
|
452
453
|
else {
|
|
453
|
-
return (_jsx(ReactstrapCol, { md: "4", sm: "4", children: _jsx(Button, { block: true, className: "btn-round", color: "danger", outline: true, type: "submit", onClick: () => { this.onClickSubmitFormHandler(); }, children: buttonCaption }) }));
|
|
454
|
+
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 }) }));
|
|
454
455
|
}
|
|
455
456
|
};
|
|
456
457
|
this.render = () => {
|
|
@@ -459,12 +460,12 @@ export class DsDynamicForm extends Component {
|
|
|
459
460
|
this.state.form.Rows &&
|
|
460
461
|
this.state.form.Rows.map(row => {
|
|
461
462
|
return (this._rowRendering(row));
|
|
462
|
-
}) }), _jsxs(ReactstrapRow, { className: "buttons-row", children: [this._cancelButton(), this._submitButton(), this.props.custom_button_caption &&
|
|
463
|
-
_jsx(ReactstrapCol, { md: "4", sm: "4", children: _jsx(Button, { block: true, className: "btn-round", color: "primary", type: "submit", onClick: (e) => { if (this.props.custom_button_handler)
|
|
463
|
+
}) }), _jsxs(ReactstrapRow, { id: "dsdf_buttons_container", className: "buttons-row", children: [this._cancelButton(), this._submitButton(), this.props.custom_button_caption &&
|
|
464
|
+
_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)
|
|
464
465
|
this.props.custom_button_handler(this.state.form);
|
|
465
466
|
else
|
|
466
467
|
console.error("custom_button_handler unset !"); }, children: this.props.custom_button_caption }) }), this.props.custom_button_caption2 &&
|
|
467
|
-
_jsx(ReactstrapCol, { md: "4", sm: "4", children: _jsx(Button, { block: true, className: "btn-round", color: "primary", type: "submit", onClick: (e) => { if (this.props.custom_button_handler2)
|
|
468
|
+
_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)
|
|
468
469
|
this.props.custom_button_handler2(this.state.form);
|
|
469
470
|
else
|
|
470
471
|
console.error("custom_button_handler2 unset !"); }, children: this.props.custom_button_caption2 }) })] })] }));
|
package/package.json
CHANGED