@magic-xpa/engine 4.900.0-dev490.46 → 4.900.0-dev490.49

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.
@@ -20988,8 +20988,10 @@ class RemoteTaskService extends TaskServiceBase {
20988
20988
  return OwnerTransactionTask;
20989
20989
  }
20990
20990
  static PreparePropMainDisplay(task) {
20991
- task.ComputeMainDisplay();
20992
- return task.FormIsLegal() ? ReturnResult.SuccessfulResult : new ReturnResult(MsgInterface.BRKTAB_STR_ERR_FORM);
20991
+ return __awaiter(this, void 0, void 0, function* () {
20992
+ yield task.ComputeMainDisplay();
20993
+ return task.FormIsLegal() ? ReturnResult.SuccessfulResult : new ReturnResult(MsgInterface.BRKTAB_STR_ERR_FORM);
20994
+ });
20993
20995
  }
20994
20996
  }
20995
20997
 
@@ -25323,16 +25325,18 @@ class Task extends TaskBase {
25323
25325
  }
25324
25326
  }
25325
25327
  ComputeMainDisplay() {
25326
- let propMainDisplay = this.getProp(PropInterface.PROP_TYPE_MAIN_DISPLAY);
25327
- let mainDisplayIndex = propMainDisplay.GetComputedValueInteger();
25328
- mainDisplayIndex = this.GetRealMainDisplayIndexOnCurrentTask(mainDisplayIndex);
25329
- this._forms.InitFormFromXmlString(mainDisplayIndex);
25330
- this.EnsureValidForm();
25328
+ return __awaiter(this, void 0, void 0, function* () {
25329
+ let propMainDisplay = this.getProp(PropInterface.PROP_TYPE_MAIN_DISPLAY);
25330
+ let mainDisplayIndex = yield propMainDisplay.getValueInt();
25331
+ mainDisplayIndex = this.GetRealMainDisplayIndexOnCurrentTask(mainDisplayIndex);
25332
+ this._forms.InitFormFromXmlString(mainDisplayIndex);
25333
+ this.EnsureValidForm();
25334
+ });
25331
25335
  }
25332
25336
  PrepareTaskForm() {
25333
25337
  return __awaiter(this, void 0, void 0, function* () {
25334
25338
  yield TaskServiceBase.PreparePropOpenTaskWindow(this);
25335
- return RemoteTaskService.PreparePropMainDisplay(this);
25339
+ return yield RemoteTaskService.PreparePropMainDisplay(this);
25336
25340
  });
25337
25341
  }
25338
25342
  FormIsLegal() {
@@ -27693,7 +27697,7 @@ class EventsManager {
27693
27697
  val = Manager.GetCtrlVal(ctrl);
27694
27698
  task.CurrentEditingControl = null;
27695
27699
  if (!task.cancelWasRaised() &&
27696
- (ctrl.Type !== MgControlType.CTRL_TYPE_BROWSER && (!isNullOrUndefined(ctrl._field) && ctrl._field.getType() === StorageAttribute.DATE || val !== null) && typeof val != 'undefined' &&
27700
+ (ctrl.Type !== MgControlType.CTRL_TYPE_BROWSER && (!isNullOrUndefined(ctrl._field) && (ctrl._field.getType() === StorageAttribute.DATE || ctrl._field.getType() == StorageAttribute.NUMERIC) || val !== null) && typeof val != 'undefined' &&
27697
27701
  !(yield ctrl.validateAndSetValue(val, true)))) {
27698
27702
  this.setStopExecution(true);
27699
27703
  return false;
@@ -30366,7 +30370,7 @@ class CommandsTable {
30366
30370
  }
30367
30371
  }
30368
30372
 
30369
- let CurrentClientVersion = '4.900.0-dev490.46';
30373
+ let CurrentClientVersion = '4.900.0-dev490.49';
30370
30374
 
30371
30375
  class ClientManager {
30372
30376
  constructor() {