@magic-xpa/engine 4.901.0-dev491.317 → 4.901.0-dev491.321
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/ClientManager.mjs +37 -1
- package/esm2020/src/CurrentClientVersion.mjs +2 -2
- package/esm2020/src/gui/MgForm.mjs +6 -24
- package/esm2020/src/remote/RemoteCommandsProcessor.mjs +12 -2
- package/fesm2015/magic-xpa-engine.mjs +57 -28
- package/fesm2015/magic-xpa-engine.mjs.map +1 -1
- package/fesm2020/magic-xpa-engine.mjs +52 -24
- package/fesm2020/magic-xpa-engine.mjs.map +1 -1
- package/package.json +4 -4
- package/src/ClientManager.d.ts +1 -0
- package/src/gui/MgForm.d.ts +2 -4
- package/src/remote/RemoteCommandsProcessor.d.ts +1 -0
|
@@ -5688,12 +5688,22 @@ class RemoteCommandsProcessor extends CommandsProcessorBase {
|
|
|
5688
5688
|
}
|
|
5689
5689
|
}
|
|
5690
5690
|
}
|
|
5691
|
-
|
|
5691
|
+
this.clearLocalStorage();
|
|
5692
5692
|
throw ex;
|
|
5693
5693
|
}
|
|
5694
5694
|
return response;
|
|
5695
5695
|
});
|
|
5696
5696
|
}
|
|
5697
|
+
clearLocalStorage() {
|
|
5698
|
+
window.localStorage.removeItem(ConstInterface.LAST_ROUTE_EVENT);
|
|
5699
|
+
window.localStorage.removeItem(ConstInterface.LAST_ROUTE_EVENT_SRC_TSK);
|
|
5700
|
+
window.localStorage.removeItem(ConstInterface.LAST_ROUTE_EVENT_ARG_LIST);
|
|
5701
|
+
window.localStorage.removeItem(ConstInterface.IS_SESSION_REINITIALIZING);
|
|
5702
|
+
window.localStorage.removeItem(ConstInterface.MAIN_PROG_VIEW);
|
|
5703
|
+
window.localStorage.removeItem(ConstInterface.GLOBAL_PARAM_LIST);
|
|
5704
|
+
window.localStorage.removeItem(ConstInterface.LAST_EXCEPTION);
|
|
5705
|
+
window.localStorage.removeItem(ConstInterface.CTX_REMOVED_FROM_SRVR);
|
|
5706
|
+
}
|
|
5697
5707
|
HandleErrorResponse(response) {
|
|
5698
5708
|
try {
|
|
5699
5709
|
Logger.Instance.WriteServerMessagesToLog("MESSAGE FROM SERVER: " + response);
|
|
@@ -19724,23 +19734,9 @@ class MgForm extends MgFormBase {
|
|
|
19724
19734
|
dv = this._task.DataView;
|
|
19725
19735
|
return (dv);
|
|
19726
19736
|
}
|
|
19727
|
-
moveInView(unit, direction
|
|
19728
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
19729
|
-
if (isNullOrUndefined(returnToCtrl))
|
|
19730
|
-
yield this.moveInView_0(unit, direction);
|
|
19731
|
-
else
|
|
19732
|
-
yield this.moveInView_1(unit, direction, returnToCtrl);
|
|
19733
|
-
});
|
|
19734
|
-
}
|
|
19735
|
-
moveInView_0(unit, direction) {
|
|
19736
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
19737
|
-
yield this.moveInView(unit, direction, true);
|
|
19738
|
-
});
|
|
19739
|
-
}
|
|
19740
|
-
moveInView_1(unit, direction, returnToCtrl) {
|
|
19737
|
+
moveInView(unit, direction) {
|
|
19741
19738
|
return __awaiter(this, void 0, void 0, function* () {
|
|
19742
19739
|
let oldRecId = Int32.MinValue;
|
|
19743
|
-
let lastParkedCtrl;
|
|
19744
19740
|
let currRec = this.GetDataview().getCurrRec();
|
|
19745
19741
|
let oldTaskMode = ' ';
|
|
19746
19742
|
let returnToVisibleLine = false;
|
|
@@ -19871,6 +19867,7 @@ class MgForm extends MgFormBase {
|
|
|
19871
19867
|
try {
|
|
19872
19868
|
yield this.RefreshDisplay(Constants.TASK_REFRESH_FORM);
|
|
19873
19869
|
yield this.setCurrRowByDisplayLine(this.GetDataview().getTopRecIdx() + this.getLastValidRow(), false, true);
|
|
19870
|
+
visibleLine = this.getLastValidRow();
|
|
19874
19871
|
}
|
|
19875
19872
|
catch (Exception) {
|
|
19876
19873
|
}
|
|
@@ -19994,15 +19991,6 @@ class MgForm extends MgFormBase {
|
|
|
19994
19991
|
else
|
|
19995
19992
|
this.SetTableTopIndex();
|
|
19996
19993
|
yield AccessHelper.eventsManager.handleInternalEventWithTask(this._task, InternalInterface.MG_ACT_REC_PREFIX);
|
|
19997
|
-
if (returnToCtrl) {
|
|
19998
|
-
lastParkedCtrl = this._task.getLastParkedCtrl();
|
|
19999
|
-
if (lastParkedCtrl != null) {
|
|
20000
|
-
let cursorMoved = yield lastParkedCtrl.invoke();
|
|
20001
|
-
if (!cursorMoved) {
|
|
20002
|
-
yield AccessHelper.eventsManager.HandleNonParkableControls(this._task);
|
|
20003
|
-
}
|
|
20004
|
-
}
|
|
20005
|
-
}
|
|
20006
19994
|
}
|
|
20007
19995
|
catch (e) {
|
|
20008
19996
|
if (e instanceof RecordOutOfDataViewException) {
|
|
@@ -20869,8 +20857,13 @@ class MgForm extends MgFormBase {
|
|
|
20869
20857
|
}
|
|
20870
20858
|
}
|
|
20871
20859
|
createForm() {
|
|
20872
|
-
|
|
20873
|
-
|
|
20860
|
+
const _super = Object.create(null, {
|
|
20861
|
+
createForm: { get: () => super.createForm }
|
|
20862
|
+
});
|
|
20863
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
20864
|
+
yield _super.createForm.call(this);
|
|
20865
|
+
MgForm.CreatedForms.add(this);
|
|
20866
|
+
});
|
|
20874
20867
|
}
|
|
20875
20868
|
UpdateStatusBar() {
|
|
20876
20869
|
}
|
|
@@ -30388,7 +30381,7 @@ class CommandsTable {
|
|
|
30388
30381
|
}
|
|
30389
30382
|
}
|
|
30390
30383
|
|
|
30391
|
-
let CurrentClientVersion = '4.901.0-dev491.
|
|
30384
|
+
let CurrentClientVersion = '4.901.0-dev491.321';
|
|
30392
30385
|
|
|
30393
30386
|
class ClientManager {
|
|
30394
30387
|
constructor() {
|
|
@@ -30479,6 +30472,10 @@ class ClientManager {
|
|
|
30479
30472
|
EventsManager.Instance.addGuiTriggeredEventWithTaskAndCodeAndLine(task, InternalInterface.MG_ACT_REC_PREFIX, dvRowIdx);
|
|
30480
30473
|
}
|
|
30481
30474
|
break;
|
|
30475
|
+
case "navigateInTable":
|
|
30476
|
+
if (guiEvent.ControlName === "magicRow")
|
|
30477
|
+
this.handleNavigateInRowEvent(task, guiEvent.Value);
|
|
30478
|
+
break;
|
|
30482
30479
|
case "close":
|
|
30483
30480
|
if (task.IsRoute())
|
|
30484
30481
|
EventsManager.Instance.AddRouterClosedEvent(task);
|
|
@@ -30513,6 +30510,38 @@ class ClientManager {
|
|
|
30513
30510
|
break;
|
|
30514
30511
|
}
|
|
30515
30512
|
}
|
|
30513
|
+
handleNavigateInRowEvent(task, evt) {
|
|
30514
|
+
let internalEvt = InternalInterface.MG_ACT_NONE;
|
|
30515
|
+
evt = evt.toLowerCase();
|
|
30516
|
+
switch (evt) {
|
|
30517
|
+
case "begin-page":
|
|
30518
|
+
internalEvt = InternalInterface.MG_ACT_TBL_BEGPAGE;
|
|
30519
|
+
break;
|
|
30520
|
+
case "previous-page":
|
|
30521
|
+
internalEvt = InternalInterface.MG_ACT_TBL_PRVPAGE;
|
|
30522
|
+
break;
|
|
30523
|
+
case "end-page":
|
|
30524
|
+
internalEvt = InternalInterface.MG_ACT_TBL_ENDPAGE;
|
|
30525
|
+
break;
|
|
30526
|
+
case "next-page":
|
|
30527
|
+
internalEvt = InternalInterface.MG_ACT_TBL_NXTPAGE;
|
|
30528
|
+
break;
|
|
30529
|
+
case "previous-line":
|
|
30530
|
+
internalEvt = InternalInterface.MG_ACT_TBL_PRVLINE;
|
|
30531
|
+
break;
|
|
30532
|
+
case "next-line":
|
|
30533
|
+
internalEvt = InternalInterface.MG_ACT_TBL_NXTLINE;
|
|
30534
|
+
break;
|
|
30535
|
+
case "begin-table":
|
|
30536
|
+
internalEvt = InternalInterface.MG_ACT_TBL_BEGTBL;
|
|
30537
|
+
break;
|
|
30538
|
+
case "end-table":
|
|
30539
|
+
internalEvt = InternalInterface.MG_ACT_TBL_ENDTBL;
|
|
30540
|
+
break;
|
|
30541
|
+
}
|
|
30542
|
+
if (internalEvt != InternalInterface.MG_ACT_NONE)
|
|
30543
|
+
EventsManager.Instance.addGuiTriggeredEventWithTaskAndCode(task, internalEvt);
|
|
30544
|
+
}
|
|
30516
30545
|
ConfirmationClosed(res) {
|
|
30517
30546
|
Commands.ResolvePromise(res);
|
|
30518
30547
|
}
|