datasync-dynamic-form 1.5.0 → 1.5.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.
- package/dist/DsDynamicForm.js +7 -2
- package/package.json +2 -2
package/dist/DsDynamicForm.js
CHANGED
|
@@ -20,6 +20,7 @@ const globals = {
|
|
|
20
20
|
form_modified_version: 2
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
|
+
const l_guid = CGUID();
|
|
23
24
|
export class DsDynamicForm extends Component {
|
|
24
25
|
constructor(props) {
|
|
25
26
|
super(props);
|
|
@@ -443,7 +444,8 @@ export class DsDynamicForm extends Component {
|
|
|
443
444
|
};
|
|
444
445
|
this._colRendering = (col) => {
|
|
445
446
|
try {
|
|
446
|
-
|
|
447
|
+
const allHidden = !this.props.show_hidden && col.Fields.every(f => f.hidden);
|
|
448
|
+
return (_jsx(FlexCol, { id: `${col.Id ? col.Id : ''}`, style: allHidden ? { display: "none" } : undefined, children: col.Fields.map((field, ii) => {
|
|
447
449
|
return this._fieldRendering(field, ii);
|
|
448
450
|
}) }));
|
|
449
451
|
}
|
|
@@ -472,7 +474,10 @@ export class DsDynamicForm extends Component {
|
|
|
472
474
|
/*--- Cloud management ---*/
|
|
473
475
|
, {
|
|
474
476
|
/*--- Cloud management ---*/
|
|
475
|
-
cloud_storage: field.cloud ? field.cloud : false, cloud_url_prefix: `${this.props.datasync_url}/cloud/_${
|
|
477
|
+
cloud_storage: field.cloud ? field.cloud : false, cloud_url_prefix: `${this.props.datasync_url}/cloud/_${l_guid}.jpg`,
|
|
478
|
+
//cloud_url_prefix = {`${this.props.datasync_url}/cloud/_${CGUID()}.jpg`}
|
|
479
|
+
//cloud_url_prefix = {`${this.props.datasync_url}/cloud/${field.name}_${this.props.datasync_object?.data_guid || 'new'}.jpg`}
|
|
480
|
+
item_id: field.name, readOnly: this.props.read_only ? this.props.read_only : false, Caption: `${this.getFieldPrompt(field)} ...`, data: this.getFieldData(field.name), uploadPicture: (UploadFile) => { this.setFieldData(field.name, UploadFile.data); this.checkValidation(field); }, pictureStyle: "pic", buttonStyle: "btn btn-secondary", width: field.width ? field.width : undefined, height: field.height ? field.height : undefined, maxWidth: field.max_width ? field.max_width : undefined, maxHeight: field.max_height ? field.max_height : undefined, maxKBytes: field.max_kbytes ? field.max_kbytes : undefined, reduceImage: field.reduceImage ? field.reduceImage : undefined, onErrorHandler: (errorObject) => { this.onBlobErrorLocalHandler(errorObject); }, debugging: this.debugging }), this._error_label(field)] })] }));
|
|
476
481
|
case "pdf":
|
|
477
482
|
return (_jsxs(_Fragment, { children: [this.getFieldLabelTitle(field), _jsxs("div", { className: "col-md-10", children: [_jsx(DsPdf, { item_id: field.name, readOnly: this.props.read_only ? this.props.read_only : false, Caption: `${this.getFieldPrompt(field)} ...`, data: this.getFieldData(field.name), uploadPdf: (UploadFile) => { this.setFieldData(field.name, UploadFile.data); this.checkValidation(field); }, pictureStyle: "pic", buttonStyle: "btn btn-secondary" }), this._error_label(field)] })] }));
|
|
478
483
|
case "email":
|
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.5.
|
|
4
|
+
"version": "1.5.2",
|
|
5
5
|
"main": "dist/DsDynamicForm.js",
|
|
6
6
|
"module": "dist/DsDynamicForm.js",
|
|
7
7
|
"types": "dist/types/DsDynamicForm.d.ts",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"license": "ISC",
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"axios": "^1.7.2",
|
|
40
|
-
"datasync-blob": "^1.1.
|
|
40
|
+
"datasync-blob": "^1.1.32",
|
|
41
41
|
"datasync-pdf": "^0.0.1",
|
|
42
42
|
"runscripts": "^0.0.1"
|
|
43
43
|
}
|