@magic-xpa/engine 4.1200.0-dev4120.180 → 4.1200.0-dev4120.182
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.
@@ -12589,12 +12589,14 @@ class Operation {
|
|
12589
12589
|
let rtEvnt = AccessHelper.eventsManager.getLastRtEvent();
|
12590
12590
|
if (rtEvnt !== null) {
|
12591
12591
|
// If we are here for default route path, set the routeParams as null because those are relevant only for the original route.
|
12592
|
-
if (
|
12592
|
+
if (!this._evtHandler.isExecutingDefaultRoute()) {
|
12593
12593
|
desiredRouteName = (await rtEvnt.getArgList().getArg(0).getValue(StorageAttribute.ALPHA, 0)).trim();
|
12594
12594
|
this._routeParams = rtEvnt.getRouteParamList();
|
12595
12595
|
}
|
12596
|
-
else
|
12596
|
+
else {
|
12597
|
+
desiredRouteName = this._evtHandler.getDefaultRouteName();
|
12597
12598
|
this._routeParams = null;
|
12599
|
+
}
|
12598
12600
|
if (desiredRouteName === this._routerPath &&
|
12599
12601
|
((rtEvnt.getArgList().getArg(1).skipArg() && destSubForm === this._task.getForm().DefaultRouterOutlet) ||
|
12600
12602
|
(!rtEvnt.getArgList().getArg(1).skipArg() && (await rtEvnt.getArgList().getArg(1).getValue(StorageAttribute.ALPHA, 0)).trim() === this._originalRouterOutletName)))
|
@@ -13103,7 +13105,18 @@ class Operation {
|
|
13103
13105
|
/// </summary>
|
13104
13106
|
/// <returns></returns>
|
13105
13107
|
async canExecute() {
|
13106
|
-
return await this.getCondVal();
|
13108
|
+
return (this.isOperationAllowedWhileExecutingDefaultRoute() && await this.getCondVal());
|
13109
|
+
}
|
13110
|
+
isOperationAllowedWhileExecutingDefaultRoute() {
|
13111
|
+
let isAllowed = true;
|
13112
|
+
if (this._evtHandler.isExecutingDefaultRoute()) {
|
13113
|
+
if (this._type == ConstInterface.MG_OPER_BLOCK || this._type == ConstInterface.MG_OPER_ELSE ||
|
13114
|
+
(this._type == ConstInterface.MG_OPER_CALL && this._isRoute))
|
13115
|
+
return true;
|
13116
|
+
else
|
13117
|
+
return false;
|
13118
|
+
}
|
13119
|
+
return isAllowed;
|
13107
13120
|
}
|
13108
13121
|
/// <summary>
|
13109
13122
|
/// </summary>
|
@@ -28118,6 +28131,7 @@ class EventHandler {
|
|
28118
28131
|
_task = null;
|
28119
28132
|
_taskMgdID = -1;
|
28120
28133
|
_defRouteName = null;
|
28134
|
+
_isExecutingDefaultRoute = false;
|
28121
28135
|
/// <summary>
|
28122
28136
|
/// CTOR
|
28123
28137
|
/// </summary>
|
@@ -28480,8 +28494,10 @@ class EventHandler {
|
|
28480
28494
|
if (this._operationTab.getSize() > 0) {
|
28481
28495
|
retVals = await this.executeOperations(0, this._operationTab.getSize() - 1, taskEnd, mgdID, depth, isChangedCurrWndRef, false, false, -1);
|
28482
28496
|
if (retVals == null && this.isRouteHandler() && this.getDefaultRouteName() != null) {
|
28497
|
+
this._isExecutingDefaultRoute = true;
|
28483
28498
|
// call again with an additional param Default Route Name
|
28484
|
-
retVals = await this.executeOperations(0, this._operationTab.getSize() - 1, taskEnd, mgdID, depth, isChangedCurrWndRef, false, false, -1
|
28499
|
+
retVals = await this.executeOperations(0, this._operationTab.getSize() - 1, taskEnd, mgdID, depth, isChangedCurrWndRef, false, false, -1);
|
28500
|
+
this._isExecutingDefaultRoute = false;
|
28485
28501
|
}
|
28486
28502
|
}
|
28487
28503
|
isChangedCurrWnd = isChangedCurrWndRef.value;
|
@@ -28563,10 +28579,13 @@ class EventHandler {
|
|
28563
28579
|
}
|
28564
28580
|
return new RetVals(retVal, true);
|
28565
28581
|
}
|
28582
|
+
isExecutingDefaultRoute() {
|
28583
|
+
return this._isExecutingDefaultRoute;
|
28584
|
+
}
|
28566
28585
|
/// <summary>
|
28567
28586
|
/// execute the operations starting from fromIdx and ending at endIdx.
|
28568
28587
|
/// </summary>
|
28569
|
-
async executeOperations(fromIdx, toIdx, taskEnd, mgdID, depth, isChangedCurrWndRef, inBlockIf, inReturnedFromServer, inNextOperIdx
|
28588
|
+
async executeOperations(fromIdx, toIdx, taskEnd, mgdID, depth, isChangedCurrWndRef, inBlockIf, inReturnedFromServer, inNextOperIdx) {
|
28570
28589
|
let oper;
|
28571
28590
|
let operType;
|
28572
28591
|
let nextOperIdx = -1;
|
@@ -28747,7 +28766,7 @@ class EventHandler {
|
|
28747
28766
|
case ConstInterface.MG_OPER_CALL:
|
28748
28767
|
this._task.setUseLoopStack(depth > 0);
|
28749
28768
|
// if false is returned, it means that a route operation was executed.
|
28750
|
-
routeOperationExecuted = await oper.execute(returnedFromServer
|
28769
|
+
routeOperationExecuted = await oper.execute(returnedFromServer);
|
28751
28770
|
break;
|
28752
28771
|
default:
|
28753
28772
|
// the rest of the operations (those that do not affect the flow)
|
@@ -39609,7 +39628,7 @@ class CommandsTable {
|
|
39609
39628
|
}
|
39610
39629
|
}
|
39611
39630
|
|
39612
|
-
let CurrentClientVersion = '4.1200.0-dev4120.
|
39631
|
+
let CurrentClientVersion = '4.1200.0-dev4120.182';
|
39613
39632
|
|
39614
39633
|
// @dynamic
|
39615
39634
|
class ClientManager {
|