tuain-ng-forms-lib 14.5.34 → 14.5.36

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.
@@ -136,6 +136,7 @@ class FieldComponent extends ElementComponent {
136
136
  if (componentAttr) {
137
137
  const value = this.field?.[fieldAttr];
138
138
  this.defaultProcessAttributeChange(componentAttr, value);
139
+ console.log(`1. customProcessAttributeChange ${componentAttr} ${value}`);
139
140
  this.customProcessAttributeChange(componentAttr, value);
140
141
  }
141
142
  }
@@ -147,6 +148,7 @@ class FieldComponent extends ElementComponent {
147
148
  const fullName = `customAttributes.${customAttribute}`;
148
149
  if (value) {
149
150
  this.defaultProcessAttributeChange(fullName, value);
151
+ console.log(`2. customProcessAttributeChange ${fullName} ${value}`);
150
152
  this.customProcessAttributeChange(fullName, value);
151
153
  }
152
154
  }
@@ -155,6 +157,7 @@ class FieldComponent extends ElementComponent {
155
157
  this.field?.attributeChange.subscribe(event => {
156
158
  const { name: componentAttr, value } = event;
157
159
  this.defaultProcessAttributeChange(componentAttr, value);
160
+ console.log(`3. customProcessAttributeChange ${componentAttr} ${value}`);
158
161
  this.customProcessAttributeChange(componentAttr, value);
159
162
  });
160
163
  this.start();
@@ -675,6 +678,7 @@ class FormElement extends FormPiecePropagate {
675
678
  setAttr(attr, value) {
676
679
  const { name: attrName, propagate: name } = attr;
677
680
  this[attrName] = value;
681
+ console.log(`Propagamos ${name} con valor ${value}`);
678
682
  name && this.propagateAttribute(name, value);
679
683
  }
680
684
  isField() { return this.elementType === elementTypes.field; }
@@ -868,7 +872,10 @@ class FieldDescriptor extends FormElement {
868
872
  set alignment(alignment) { this.setAttr(attrs$1._fieldAlignment, alignment); }
869
873
  get backend() { return this._validateOnServer; }
870
874
  get captureType() { return this._captureType; }
871
- set captureType(captureType) { this.setAttr(attrs$1._captureType, captureType); }
875
+ set captureType(captureType) {
876
+ console.log(`field: Asignamos captureType de ${this.fieldCode} con ${captureType}`);
877
+ this.setAttr(attrs$1._captureType, captureType);
878
+ }
872
879
  get code() { return this.fieldCode; }
873
880
  get defaultValue() { return this._defaultValue; }
874
881
  set defaultValue(defaultValue) { this.setAttr(attrs$1._defaultValue, defaultValue); }