tuain-ng-forms-lib 15.0.13 → 15.0.14
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/esm2020/lib/classes/forms/element.mjs +2 -2
- package/esm2020/lib/classes/forms/field.mjs +2 -1
- package/esm2020/lib/classes/forms/piece-propagate.mjs +2 -2
- package/fesm2015/tuain-ng-forms-lib.mjs +3 -2
- package/fesm2015/tuain-ng-forms-lib.mjs.map +1 -1
- package/fesm2020/tuain-ng-forms-lib.mjs +3 -2
- package/fesm2020/tuain-ng-forms-lib.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -659,7 +659,7 @@ class FormPiecePropagate extends FormPiece {
|
|
|
659
659
|
super.setCustomAttribute(name, value);
|
|
660
660
|
if (this.propagationCustomAttributes?.includes(name)) {
|
|
661
661
|
const fullName = `customAttributes.${name}`;
|
|
662
|
-
console.log(`La
|
|
662
|
+
console.log(`La propagación se origina en setCustomAttribute ${name} ${value}`);
|
|
663
663
|
this.propagateAttribute(fullName, value);
|
|
664
664
|
}
|
|
665
665
|
}
|
|
@@ -689,7 +689,7 @@ class FormElement extends FormPiecePropagate {
|
|
|
689
689
|
setAttr(attr, value) {
|
|
690
690
|
const { name: attrName, propagate: name } = attr;
|
|
691
691
|
this[attrName] = value;
|
|
692
|
-
console.log(`La propagacioón se origina en setAttr ${
|
|
692
|
+
console.log(`La propagacioón se origina en setAttr ${attrName} ${value} (propaga ${name})`);
|
|
693
693
|
name && this.propagateAttribute(name, value);
|
|
694
694
|
}
|
|
695
695
|
isField() { return this.elementType === elementTypes.field; }
|
|
@@ -975,6 +975,7 @@ class FieldDescriptor extends FormElement {
|
|
|
975
975
|
if (this._value) {
|
|
976
976
|
if (this._fieldType === this._formConfig.fieldTypes.array && Array.isArray(this._value)) {
|
|
977
977
|
const fieldValue = this._value?.filter(item => this.fieldOptions?.find(opt => opt.fieldOptionId === item));
|
|
978
|
+
console.log('SetAttr de valor....');
|
|
978
979
|
this.setAttr(attrs$1._value, fieldValue);
|
|
979
980
|
}
|
|
980
981
|
else {
|