datasync-dynamic-form 1.0.23 → 1.0.25

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.
@@ -157,7 +157,7 @@ class DsDynamicForm extends _react.Component {
157
157
  this.local_data_blob.data_tier[pFieldObject.name] = value;
158
158
 
159
159
  //onFormChange handler return current form value to caller - PMAB onn 2025-02-03
160
- if (this.props.onFormChange) this.props.onFormChange(this.data_blob.data_tier);
160
+ if (this.props.onFormChange) this.props.onFormChange(this.local_data_blob.data_tier);
161
161
  if (globals.parameters.debugging) {
162
162
  console.log("01:setFieldData[", pFieldObject.name, "] value->", value);
163
163
  console.log("01:setFieldData[", pFieldObject.name, "] this.local_data_blob.data_tier ->", this.local_data_blob.data_tier);
@@ -624,7 +624,12 @@ class DsDynamicForm extends _react.Component {
624
624
  this.checkValidation(field);
625
625
  },
626
626
  pictureStyle: "pic",
627
- buttonStyle: "btn btn-secondary"
627
+ buttonStyle: "btn btn-secondary",
628
+ width: field.width ? field.width : null,
629
+ height: field.height ? field.height : null,
630
+ maxWidth: field.maxWidth ? field.maxWidth : null,
631
+ maxHeight: field.maxHeight ? field.maxHeight : null,
632
+ reduceImage: field.reduceImage ? field.reduceImage : null
628
633
  }), this._error_label(field)));
629
634
  case "email":
630
635
  return this._email_field(field);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datasync-dynamic-form",
3
- "version": "1.0.23",
3
+ "version": "1.0.25",
4
4
  "description": "Datasync Dynamic Form component",
5
5
  "main": "./dist/components/DsDynamicForm",
6
6
  "types": "./dist/components/DsDynamicForm",
@@ -42,7 +42,7 @@
42
42
  "license": "ISC",
43
43
  "dependencies": {
44
44
  "axios": "^1.7.2",
45
- "datasync-blob": "^1.0.1",
45
+ "datasync-blob": "^1.0.2",
46
46
  "datasync-common-library": "^1.0.5",
47
47
  "datasync-core": "^1.0.28"
48
48
  }