tuain-ng-forms-lib 15.0.11 → 15.0.13
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 -1
- package/esm2020/lib/classes/forms/piece-propagate.mjs +3 -1
- package/esm2020/lib/components/elements/field.component.mjs +3 -1
- package/fesm2015/tuain-ng-forms-lib.mjs +5 -0
- package/fesm2015/tuain-ng-forms-lib.mjs.map +1 -1
- package/fesm2020/tuain-ng-forms-lib.mjs +5 -0
- package/fesm2020/tuain-ng-forms-lib.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -154,6 +154,8 @@ class FieldComponent extends ElementComponent {
|
|
|
154
154
|
// Subscripción a cambios en atributos
|
|
155
155
|
this.field?.attributeChange.subscribe(event => {
|
|
156
156
|
const { name: componentAttr, value } = event;
|
|
157
|
+
console.log('El llamado defaultProcessAttributeChange es pos suscripción...');
|
|
158
|
+
console.log(event);
|
|
157
159
|
this.defaultProcessAttributeChange(componentAttr, value);
|
|
158
160
|
this.customProcessAttributeChange(componentAttr, value);
|
|
159
161
|
});
|
|
@@ -650,12 +652,14 @@ class FormPiecePropagate extends FormPiece {
|
|
|
650
652
|
}
|
|
651
653
|
get attributeChange() { return this._attributeChange; }
|
|
652
654
|
propagateAttribute(name, value) {
|
|
655
|
+
console.log('propagateAttribute...');
|
|
653
656
|
this._attributeChange?.next({ name, value });
|
|
654
657
|
}
|
|
655
658
|
setCustomAttribute(name, value) {
|
|
656
659
|
super.setCustomAttribute(name, value);
|
|
657
660
|
if (this.propagationCustomAttributes?.includes(name)) {
|
|
658
661
|
const fullName = `customAttributes.${name}`;
|
|
662
|
+
console.log(`La propagacioón se origina en setCustomAttribute ${name} ${value}`);
|
|
659
663
|
this.propagateAttribute(fullName, value);
|
|
660
664
|
}
|
|
661
665
|
}
|
|
@@ -685,6 +689,7 @@ class FormElement extends FormPiecePropagate {
|
|
|
685
689
|
setAttr(attr, value) {
|
|
686
690
|
const { name: attrName, propagate: name } = attr;
|
|
687
691
|
this[attrName] = value;
|
|
692
|
+
console.log(`La propagacioón se origina en setAttr ${attr} ${value}`);
|
|
688
693
|
name && this.propagateAttribute(name, value);
|
|
689
694
|
}
|
|
690
695
|
isField() { return this.elementType === elementTypes.field; }
|