tuain-ng-forms-lib 15.2.9 → 15.2.11

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.
@@ -28,7 +28,6 @@ class PieceComponent {
28
28
  }
29
29
  }
30
30
  else {
31
- console.log(`defaultProcessAttributeChange ${attribute} ${value}`);
32
31
  this[attribute] = value;
33
32
  }
34
33
  return true;
@@ -158,7 +157,11 @@ class FieldComponent extends ElementComponent {
158
157
  // Subscripción a cambios en atributos
159
158
  this.field?.attributeChange.subscribe(event => {
160
159
  const { name: componentAttr, value = null } = event ?? {};
161
- console.log(`attributeChange ${componentAttr} ${value}`);
160
+ if (componentAttr === 'placeholder') {
161
+ console.log(`------ attributeChange ${componentAttr} ${value}`);
162
+ // } else {
163
+ // console.log(`attributeChange ${componentAttr} ${value}`);
164
+ }
162
165
  if (componentAttr) {
163
166
  this.defaultProcessAttributeChange(componentAttr, value);
164
167
  this.customProcessAttributeChange(componentAttr, value);
@@ -664,6 +667,9 @@ class FormPiecePropagate extends FormPiece {
664
667
  }
665
668
  get attributeChange() { return this._attributeChange; }
666
669
  propagateAttribute(name, value) {
670
+ if (name === 'placeholder') {
671
+ console.log(`propagateAttribute ${name} ${value}`);
672
+ }
667
673
  this._attributeChange?.next({ name, value });
668
674
  }
669
675
  setCustomAttribute(name, value) {
@@ -1163,6 +1169,8 @@ class FieldDescriptor extends FormElement {
1163
1169
  this.setAttr(attrs$1._errorMessage, message ?? '');
1164
1170
  }
1165
1171
  updateFromServer(fld) {
1172
+ console.log('updateFromServer');
1173
+ console.log(fld);
1166
1174
  const fieldKeys = Object.keys(fld);
1167
1175
  for (let index = 0; index < fieldKeys.length; index++) {
1168
1176
  const attrName = fieldKeys[index];