tuain-form-manager 1.5.1 → 1.5.3

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.
Files changed (2) hide show
  1. package/lib/form.js +10 -0
  2. package/package.json +1 -1
package/lib/form.js CHANGED
@@ -163,6 +163,7 @@ class Form {
163
163
 
164
164
  setFormRequestAttributes(formCode, state, formSubject, actionCode, actionSubject, requestVersion) {
165
165
  Object.assign(this._requestData, { formCode, state, formSubject, actionCode, actionSubject, requestVersion });
166
+ this.state = state;
166
167
  }
167
168
 
168
169
  setImmutableElement(name, value, inputSignature = null) {
@@ -432,6 +433,15 @@ class Form {
432
433
  }
433
434
  }
434
435
 
436
+ setFieldCustomAttributes(code, attrObj) {
437
+ const field = this.getField(code);
438
+ if (field) {
439
+ const customAttributes = field?.customAttributes ?? {};
440
+ Object.assign(customAttributes, attrObj);
441
+ field.customAttributes = customAttributes;
442
+ }
443
+ }
444
+
435
445
  setFieldAttribute(fieldCode, attr, value) {
436
446
  const fieldObject = this.getField(fieldCode);
437
447
  if (fieldObject) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tuain-form-manager",
3
- "version": "1.5.1",
3
+ "version": "1.5.3",
4
4
  "description": "Component library to perform operations on Tuain Development Framework forms to interchange information on web or mobile applications based on the data interchange of abstract forms making trnasformation on the data upon actions required on both sides (front and back)",
5
5
  "main": "index.js",
6
6
  "scripts": {