tuain-ng-forms-lib 17.1.23 → 17.1.24

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.
@@ -3095,7 +3095,7 @@ class BasicFormComponent extends FormStructureAndData {
3095
3095
  errorDetail = '';
3096
3096
  // Control de estado
3097
3097
  visible = false;
3098
- busy = false;
3098
+ busy = signal(false);
3099
3099
  constructor(formManagerService, _eventManager, fileMgmtServices) {
3100
3100
  super();
3101
3101
  this.formManagerService = formManagerService;
@@ -3119,7 +3119,7 @@ class BasicFormComponent extends FormStructureAndData {
3119
3119
  this._definitionObtained = false;
3120
3120
  // Se limpian los manejadores de eventos
3121
3121
  this.visible = false;
3122
- this.busy = false;
3122
+ this.busy.set(false);
3123
3123
  this._formChangeState = [];
3124
3124
  this._formSectionsCanDeactivate = {};
3125
3125
  this._formSectionsActivate = {};
@@ -3281,9 +3281,9 @@ class BasicFormComponent extends FormStructureAndData {
3281
3281
  return;
3282
3282
  }
3283
3283
  if (forceReload || !this._definitionObtained) {
3284
- this.busy = true;
3284
+ this.busy.set(true);
3285
3285
  const formDefinition = await this.formManagerService.getFormDefinition(this.name);
3286
- this.busy = false;
3286
+ this.busy.set(false);
3287
3287
  this.loadDefinition(formDefinition);
3288
3288
  this._definitionObtained = true;
3289
3289
  }
@@ -3360,12 +3360,12 @@ class BasicFormComponent extends FormStructureAndData {
3360
3360
  this.errorName = '';
3361
3361
  this.errorMessage = '';
3362
3362
  this.errorDetail = '';
3363
- this.busy = true;
3363
+ this.busy.set(true);
3364
3364
  const formActionResponse = await this.formManagerService.execServerAction(actionDetail);
3365
3365
  if (!formActionResponse) {
3366
3366
  return null;
3367
3367
  }
3368
- this.busy = false;
3368
+ this.busy.set(false);
3369
3369
  if (formActionResponse.hasError()) {
3370
3370
  const error = formActionResponse.error;
3371
3371
  this.errorCode = error.errorCode;
@@ -4255,9 +4255,9 @@ class BasicFormComponent extends FormStructureAndData {
4255
4255
  */
4256
4256
  set formCode(name) { this.name = name; }
4257
4257
  /**
4258
- * @deprecated Use busy
4258
+ * @deprecated Use busy signal
4259
4259
  */
4260
- get inServerProcess() { return this.busy; }
4260
+ get inServerProcess() { return this.busy(); }
4261
4261
  /**
4262
4262
  * @deprecated Use state
4263
4263
  */