@magic-xpa/engine 4.900.0-dev490.47 → 4.900.0-dev490.50
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.
- package/esm2020/src/CurrentClientVersion.mjs +2 -2
- package/esm2020/src/event/EventsManager.mjs +2 -2
- package/esm2020/src/tasks/RemoteTaskService.mjs +3 -3
- package/esm2020/src/tasks/Task.mjs +4 -4
- package/fesm2015/magic-xpa-engine.mjs +14 -10
- package/fesm2015/magic-xpa-engine.mjs.map +1 -1
- package/fesm2020/magic-xpa-engine.mjs +7 -7
- package/fesm2020/magic-xpa-engine.mjs.map +1 -1
- package/package.json +4 -4
- package/src/tasks/RemoteTaskService.d.ts +1 -1
- package/src/tasks/Task.d.ts +1 -1
|
@@ -20988,8 +20988,10 @@ class RemoteTaskService extends TaskServiceBase {
|
|
|
20988
20988
|
return OwnerTransactionTask;
|
|
20989
20989
|
}
|
|
20990
20990
|
static PreparePropMainDisplay(task) {
|
|
20991
|
-
|
|
20992
|
-
|
|
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
|
-
|
|
25327
|
-
|
|
25328
|
-
|
|
25329
|
-
|
|
25330
|
-
|
|
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.
|
|
30373
|
+
let CurrentClientVersion = '4.900.0-dev490.50';
|
|
30370
30374
|
|
|
30371
30375
|
class ClientManager {
|
|
30372
30376
|
constructor() {
|