tuain-ng-forms-lib 17.1.23 → 17.1.25

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.
@@ -217,7 +217,12 @@ class FieldComponent extends ElementComponent {
217
217
  this.start();
218
218
  }
219
219
  updateValue() {
220
- this.value.set(this.field?.value);
220
+ try {
221
+ this.value.set(this.field?.value);
222
+ }
223
+ catch (e) {
224
+ console.log(`Excepción en componente de campo ${e}`);
225
+ }
221
226
  }
222
227
  onInputChange() { setTimeout(() => this.field?.notifyEditionPartial(), 50); }
223
228
  onChangeContent() { setTimeout(() => this.field?.notifyEditionFinish(), 50); }
@@ -3095,7 +3100,7 @@ class BasicFormComponent extends FormStructureAndData {
3095
3100
  errorDetail = '';
3096
3101
  // Control de estado
3097
3102
  visible = false;
3098
- busy = false;
3103
+ busy = signal(false);
3099
3104
  constructor(formManagerService, _eventManager, fileMgmtServices) {
3100
3105
  super();
3101
3106
  this.formManagerService = formManagerService;
@@ -3119,7 +3124,7 @@ class BasicFormComponent extends FormStructureAndData {
3119
3124
  this._definitionObtained = false;
3120
3125
  // Se limpian los manejadores de eventos
3121
3126
  this.visible = false;
3122
- this.busy = false;
3127
+ this.busy.set(false);
3123
3128
  this._formChangeState = [];
3124
3129
  this._formSectionsCanDeactivate = {};
3125
3130
  this._formSectionsActivate = {};
@@ -3281,9 +3286,9 @@ class BasicFormComponent extends FormStructureAndData {
3281
3286
  return;
3282
3287
  }
3283
3288
  if (forceReload || !this._definitionObtained) {
3284
- this.busy = true;
3289
+ this.busy.set(true);
3285
3290
  const formDefinition = await this.formManagerService.getFormDefinition(this.name);
3286
- this.busy = false;
3291
+ this.busy.set(false);
3287
3292
  this.loadDefinition(formDefinition);
3288
3293
  this._definitionObtained = true;
3289
3294
  }
@@ -3360,12 +3365,12 @@ class BasicFormComponent extends FormStructureAndData {
3360
3365
  this.errorName = '';
3361
3366
  this.errorMessage = '';
3362
3367
  this.errorDetail = '';
3363
- this.busy = true;
3368
+ this.busy.set(true);
3364
3369
  const formActionResponse = await this.formManagerService.execServerAction(actionDetail);
3365
3370
  if (!formActionResponse) {
3366
3371
  return null;
3367
3372
  }
3368
- this.busy = false;
3373
+ this.busy.set(false);
3369
3374
  if (formActionResponse.hasError()) {
3370
3375
  const error = formActionResponse.error;
3371
3376
  this.errorCode = error.errorCode;
@@ -4255,9 +4260,9 @@ class BasicFormComponent extends FormStructureAndData {
4255
4260
  */
4256
4261
  set formCode(name) { this.name = name; }
4257
4262
  /**
4258
- * @deprecated Use busy
4263
+ * @deprecated Use busy signal
4259
4264
  */
4260
- get inServerProcess() { return this.busy; }
4265
+ get inServerProcess() { return this.busy(); }
4261
4266
  /**
4262
4267
  * @deprecated Use state
4263
4268
  */