@magic-xpa/engine 4.1300.0-dev4130.215 → 4.1300.0-dev4130.219

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.
@@ -9788,6 +9788,8 @@ class ExpressionDict {
9788
9788
  null,
9789
9789
  new ExpDesc('B', 0, 4, 4, 'TDVV', false), /* 723- LocalToUTC */
9790
9790
  new ExpDesc('B', 0, 4, 4, 'TDVV', false), /* 724- UTCToLocal */
9791
+ new ExpDesc('U', 0, 1, 1, 'N', false), /* 725- RouteParamGet */
9792
+ new ExpDesc('N', 0, 0, 0, '', false), /* 726- RouteParamCountGet */
9791
9793
  ];
9792
9794
  }
9793
9795
 
@@ -15660,6 +15662,12 @@ class ExpressionEvaluator extends GuiExpressionEvaluator {
15660
15662
  val1 = valStack.pop(); // UTC time
15661
15663
  await this.eval_op_utcToLocal(resVal, val1, val2, val3, val4);
15662
15664
  break;
15665
+ case ExpressionInterface.EXP_OP_ROUTEPARAMCOUNTGET:
15666
+ this.eval_op_route_param_count_get(resVal);
15667
+ break;
15668
+ case ExpressionInterface.EXP_OP_ROUTEPARAMGET:
15669
+ this.eval_op_route_param_get(valStack.pop(), resVal);
15670
+ break;
15663
15671
  default:
15664
15672
  return;
15665
15673
  }
@@ -18884,6 +18892,31 @@ class ExpressionEvaluator extends GuiExpressionEvaluator {
18884
18892
  resVal.IsNull = false;
18885
18893
  resVal.StrVal = Commands.getLastRoute();
18886
18894
  }
18895
+ eval_op_route_param_count_get(resVal) {
18896
+ resVal.Attr = StorageAttribute.NUMERIC;
18897
+ resVal.IsNull = false;
18898
+ resVal.MgNumVal = new NUM_TYPE();
18899
+ let rtEvnt = AccessHelper.eventsManager.getLastRtEvent();
18900
+ if (rtEvnt !== null && rtEvnt.getInternalCode() === InternalInterface.MG_ACT_WEBCLIENT_ROUTE) {
18901
+ let params = rtEvnt.getRouteParamList();
18902
+ resVal.MgNumVal.NUM_4_LONG(params.length);
18903
+ }
18904
+ }
18905
+ eval_op_route_param_get(val1, resVal) {
18906
+ resVal.Attr = StorageAttribute.UNICODE;
18907
+ resVal.IsNull = false;
18908
+ resVal.StrVal = '';
18909
+ if (val1.MgNumVal === null)
18910
+ return;
18911
+ let index = val1.MgNumVal.NUM_2_LONG();
18912
+ let rtEvnt = AccessHelper.eventsManager.getLastRtEvent();
18913
+ if (rtEvnt !== null && rtEvnt.getInternalCode() === InternalInterface.MG_ACT_WEBCLIENT_ROUTE) {
18914
+ let params = rtEvnt.getRouteParamList();
18915
+ if (params !== null && index > 0 && index <= params.length) {
18916
+ resVal.StrVal = params.get_Item(index - 1);
18917
+ }
18918
+ }
18919
+ }
18887
18920
  params2arguments(Exp_params, startAt, count) {
18888
18921
  let NULL_STR = '';
18889
18922
  let attr = new Array();
@@ -40106,7 +40139,7 @@ class CommandsTable {
40106
40139
  }
40107
40140
  }
40108
40141
 
40109
- let CurrentClientVersion = '4.1300.0-dev4130.215';
40142
+ let CurrentClientVersion = '4.1300.0-dev4130.219';
40110
40143
 
40111
40144
  // @dynamic
40112
40145
  class ClientManager {