tuain-form-manager 1.5.3 → 1.5.4
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/lib/form.js +4 -0
- package/package.json +1 -1
package/lib/form.js
CHANGED
|
@@ -428,6 +428,10 @@ class Form {
|
|
|
428
428
|
Object.entries(attrObj ?? {}).forEach(([attr, value]) => {
|
|
429
429
|
if (FIELD_ASSIGN_ATTRIBUTES.includes(attr)) {
|
|
430
430
|
field[attr] = value;
|
|
431
|
+
} else if (attr === 'customAttributes' && typeof value === 'object' && Object.keys(value).length > 0) {
|
|
432
|
+
const customAttributes = field?.customAttributes ?? {};
|
|
433
|
+
Object.assign(customAttributes, value);
|
|
434
|
+
field.customAttributes = customAttributes;
|
|
431
435
|
}
|
|
432
436
|
});
|
|
433
437
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tuain-form-manager",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.4",
|
|
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": {
|