tuain-ng-forms-lib 15.2.9 → 15.2.10

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.
@@ -158,7 +158,12 @@ class FieldComponent extends ElementComponent {
158
158
  // Subscripción a cambios en atributos
159
159
  this.field?.attributeChange.subscribe(event => {
160
160
  const { name: componentAttr, value = null } = event ?? {};
161
- console.log(`attributeChange ${componentAttr} ${value}`);
161
+ if (componentAttr === 'placeholder') {
162
+ console.log(`------ attributeChange ${componentAttr} ${value}`);
163
+ }
164
+ else {
165
+ console.log(`attributeChange ${componentAttr} ${value}`);
166
+ }
162
167
  if (componentAttr) {
163
168
  this.defaultProcessAttributeChange(componentAttr, value);
164
169
  this.customProcessAttributeChange(componentAttr, value);
@@ -664,6 +669,7 @@ class FormPiecePropagate extends FormPiece {
664
669
  }
665
670
  get attributeChange() { return this._attributeChange; }
666
671
  propagateAttribute(name, value) {
672
+ console.log(`propagateAttribute ${name} ${value}`);
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];