tuain-ng-forms-lib 15.0.10 → 15.0.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.
@@ -161,6 +161,7 @@ class FieldComponent extends ElementComponent {
161
161
  }
162
162
  defaultProcessAttributeChange(attribute, value) {
163
163
  if (attribute === VALUE) {
164
+ console.log(`Llegó un update value de ${this.field?.fieldCode} por defaultProcessAttributeChange`);
164
165
  this.updateValue();
165
166
  }
166
167
  else if (attribute === FOCUS) {
@@ -171,12 +172,18 @@ class FieldComponent extends ElementComponent {
171
172
  }
172
173
  return true;
173
174
  }
174
- updateValue() { this.value = this.field?.value; }
175
+ updateValue() {
176
+ console.log(`Update value de ${this.field?.fieldCode}`);
177
+ this.value = this.field?.value;
178
+ }
175
179
  onInputChange() { setTimeout(() => this.field?.notifyEditionPartial(), 50); }
176
180
  onChangeContent() { setTimeout(() => this.field?.notifyEditionFinish(), 50); }
177
181
  onShowInfo(detail = null) { setTimeout(() => this.field?.notifyEditionDetailRequest(detail), 50); }
178
182
  focus() { }
179
- updateObject(widgetUpdate = true) { this.field?.setValue(this.value, widgetUpdate); }
183
+ updateObject(widgetUpdate = true) {
184
+ console.log(`updateObject ${this.field?.fieldCode} update ${widgetUpdate}`);
185
+ this.field?.setValue(this.value, widgetUpdate);
186
+ }
180
187
  inputChanged() {
181
188
  this.field?.setValue(this.value);
182
189
  this.onChangeContent();
@@ -1176,9 +1183,11 @@ class FieldDescriptor extends FormElement {
1176
1183
  if (this._value !== newFinalValue) {
1177
1184
  this.hasChanged = true;
1178
1185
  if (widgetUpdate) {
1186
+ console.log(`SetValue ${this.fieldCode} CON update`);
1179
1187
  this.setAttr(attrs$1._value, newFinalValue);
1180
1188
  }
1181
1189
  else {
1190
+ console.log(`SetValue ${this.fieldCode} sin update`);
1182
1191
  this._value = newFinalValue;
1183
1192
  }
1184
1193
  }