@magic-xpa/engine 4.900.0 → 4.901.0-ang15

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.
Files changed (38) hide show
  1. package/esm2020/src/ClientManager.mjs +47 -11
  2. package/esm2020/src/CurrentClientVersion.mjs +2 -2
  3. package/esm2020/src/commands/ClientToServer/DataviewCommand.mjs +6 -6
  4. package/esm2020/src/commands/ClientToServer/EvaluateCommand.mjs +4 -4
  5. package/esm2020/src/commands/ClientToServer/EventCommand.mjs +8 -8
  6. package/esm2020/src/commands/ClientToServer/ExecOperCommand.mjs +4 -4
  7. package/esm2020/src/commands/ClientToServer/IniputForceWriteCommand.mjs +5 -5
  8. package/esm2020/src/commands/ClientToServer/RecomputeCommand.mjs +7 -7
  9. package/esm2020/src/commands/ClientToServer/TransactionCommand.mjs +6 -6
  10. package/esm2020/src/commands/ServerToClient/EnhancedVerifyCommand.mjs +8 -8
  11. package/esm2020/src/commands/ServerToClient/ResultCommand.mjs +7 -7
  12. package/esm2020/src/data/DataView.mjs +34 -34
  13. package/esm2020/src/data/DataviewManager.mjs +7 -7
  14. package/esm2020/src/data/Record.mjs +10 -10
  15. package/esm2020/src/data/TaskTransactionManager.mjs +4 -4
  16. package/esm2020/src/data/XMLBasedDcValuesBuilder.mjs +5 -5
  17. package/esm2020/src/env/Environment.mjs +7 -7
  18. package/esm2020/src/event/RunTimeEvent.mjs +16 -16
  19. package/esm2020/src/gui/FormsTable.mjs +8 -8
  20. package/esm2020/src/gui/MgControl.mjs +10 -10
  21. package/esm2020/src/gui/MgForm.mjs +4 -22
  22. package/esm2020/src/http/HttpManager.mjs +8 -8
  23. package/esm2020/src/remote/RemoteCommandsProcessor.mjs +22 -22
  24. package/esm2020/src/rt/DataviewHeaderBase.mjs +16 -16
  25. package/esm2020/src/security/UserDetails.mjs +12 -12
  26. package/esm2020/src/tasks/MGData.mjs +4 -4
  27. package/esm2020/src/tasks/RCTimer.mjs +10 -10
  28. package/esm2020/src/tasks/Task.mjs +42 -42
  29. package/esm2020/src/util/PrmMap.mjs +5 -5
  30. package/esm2020/src/util/ReturnResult.mjs +7 -7
  31. package/fesm2015/magic-xpa-engine.mjs +304 -290
  32. package/fesm2015/magic-xpa-engine.mjs.map +1 -1
  33. package/fesm2020/magic-xpa-engine.mjs +304 -286
  34. package/fesm2020/magic-xpa-engine.mjs.map +1 -1
  35. package/package.json +6 -6
  36. package/src/ClientManager.d.ts +1 -0
  37. package/src/gui/MgForm.d.ts +1 -3
  38. package/magic-xpa-engine.d.ts +0 -2
@@ -642,13 +642,6 @@ class CommandSerializationHelper {
642
642
  }
643
643
 
644
644
  class EventCommand extends ClientOriginatedCommandTaskTag {
645
- constructor(magicEvent) {
646
- super();
647
- this.TaskTag = null;
648
- this.MagicEvent = 0;
649
- this.ClientRecId = 0;
650
- this.MagicEvent = magicEvent;
651
- }
652
645
  get CommandTypeAttribute() {
653
646
  return ConstInterface.MG_ATTR_VAL_EVENT;
654
647
  }
@@ -664,6 +657,13 @@ class EventCommand extends ClientOriginatedCommandTaskTag {
664
657
  return false;
665
658
  return true;
666
659
  }
660
+ constructor(magicEvent) {
661
+ super();
662
+ this.TaskTag = null;
663
+ this.MagicEvent = 0;
664
+ this.ClientRecId = 0;
665
+ this.MagicEvent = magicEvent;
666
+ }
667
667
  SerializeCommandData() {
668
668
  let helper = new CommandSerializationHelper();
669
669
  helper.SerializeTaskTag(this.TaskTag);
@@ -1203,15 +1203,6 @@ class OpeningTaskDetails {
1203
1203
  }
1204
1204
 
1205
1205
  class MgControl extends MgControlBase {
1206
- constructor(type, taskOrParentMgForm, parentControlOrParentControlIdx) {
1207
- if (arguments.length === 0)
1208
- super();
1209
- else if (arguments.length === 3 && (type === null || type.constructor === Number) && (taskOrParentMgForm === null || taskOrParentMgForm instanceof TaskBase) && (parentControlOrParentControlIdx === null || parentControlOrParentControlIdx.constructor === Number))
1210
- super(type, taskOrParentMgForm.getForm(), parentControlOrParentControlIdx);
1211
- else
1212
- super(type, taskOrParentMgForm, parentControlOrParentControlIdx);
1213
- this.initialize();
1214
- }
1215
1206
  initialize() {
1216
1207
  this._focusedStopExecution = false;
1217
1208
  this._inControlSuffix = false;
@@ -1224,6 +1215,15 @@ class MgControl extends MgControlBase {
1224
1215
  this.HasZoomHandler = false;
1225
1216
  this.ArgList = null;
1226
1217
  }
1218
+ constructor(type, taskOrParentMgForm, parentControlOrParentControlIdx) {
1219
+ if (arguments.length === 0)
1220
+ super();
1221
+ else if (arguments.length === 3 && (type === null || type.constructor === Number) && (taskOrParentMgForm === null || taskOrParentMgForm instanceof TaskBase) && (parentControlOrParentControlIdx === null || parentControlOrParentControlIdx.constructor === Number))
1222
+ super(type, taskOrParentMgForm.getForm(), parentControlOrParentControlIdx);
1223
+ else
1224
+ super(type, taskOrParentMgForm, parentControlOrParentControlIdx);
1225
+ this.initialize();
1226
+ }
1227
1227
  GetVarIndex() {
1228
1228
  return super.getForm().getTask().DataView.Dvcount + this.veeIndx;
1229
1229
  }
@@ -3233,6 +3233,21 @@ class MgPriorityBlockingQueue {
3233
3233
  }
3234
3234
 
3235
3235
  class RunTimeEvent extends RunTimeEventBase {
3236
+ set Control(value) {
3237
+ this._ctrl = value;
3238
+ }
3239
+ set DisplayLine(value) {
3240
+ this._displayLine = value;
3241
+ }
3242
+ get Control() {
3243
+ return this._ctrl;
3244
+ }
3245
+ get ControlsList() {
3246
+ return this._controlsList;
3247
+ }
3248
+ get Direction() {
3249
+ return this._direction;
3250
+ }
3236
3251
  constructor(taskRefOrCtrlRefOrTaskrefOrFldRefOrEvt, ctrlRefOrGuiTriggeredEventOrLineOrControlsListOrDirectionOrColumnHeaderOrRtEvtOrCurrentTask, ignoreSpecifiedControlOrGuiTriggeredEventOrLineOrXOrControlOrActivatedFromMDIFrame, yOrCtlIdx, width, height) {
3237
3252
  super();
3238
3253
  this._controlsList = null;
@@ -3294,21 +3309,6 @@ class RunTimeEvent extends RunTimeEventBase {
3294
3309
  else if (arguments.length === 1 && taskRefOrCtrlRefOrTaskrefOrFldRefOrEvt instanceof RunTimeEvent)
3295
3310
  Object.assign(this, taskRefOrCtrlRefOrTaskrefOrFldRefOrEvt);
3296
3311
  }
3297
- set Control(value) {
3298
- this._ctrl = value;
3299
- }
3300
- set DisplayLine(value) {
3301
- this._displayLine = value;
3302
- }
3303
- get Control() {
3304
- return this._ctrl;
3305
- }
3306
- get ControlsList() {
3307
- return this._controlsList;
3308
- }
3309
- get Direction() {
3310
- return this._direction;
3311
- }
3312
3312
  constructor_5(taskRef) {
3313
3313
  this.init(taskRef);
3314
3314
  }
@@ -3980,6 +3980,15 @@ class TimerObjectCollection {
3980
3980
  }
3981
3981
  TimerObjectCollection.MgDataToTimerObjList = new Dictionary();
3982
3982
  class RCTimer extends MgTimer {
3983
+ get TimerIntervalMiliSeconds() {
3984
+ return this._timerIntervalMilliSeconds;
3985
+ }
3986
+ set IsIdleTimer(value) {
3987
+ this._isIdle = value;
3988
+ }
3989
+ get IsIdleTimer() {
3990
+ return this._isIdle;
3991
+ }
3983
3992
  constructor(mgData, milliseconds, isIdle) {
3984
3993
  super(milliseconds);
3985
3994
  this._mgData = null;
@@ -3991,15 +4000,6 @@ class RCTimer extends MgTimer {
3991
4000
  TimerObjectCollection.MgDataToTimerObjList.Add(mgDataId, new List());
3992
4001
  TimerObjectCollection.MgDataToTimerObjList.get_Item(mgDataId).push(this);
3993
4002
  }
3994
- get TimerIntervalMiliSeconds() {
3995
- return this._timerIntervalMilliSeconds;
3996
- }
3997
- set IsIdleTimer(value) {
3998
- this._isIdle = value;
3999
- }
4000
- get IsIdleTimer() {
4001
- return this._isIdle;
4002
- }
4003
4003
  GetMgdata() {
4004
4004
  return this._mgData;
4005
4005
  }
@@ -4145,6 +4145,9 @@ class ExecutionStack {
4145
4145
  }
4146
4146
 
4147
4147
  class ExecOperCommand extends ClientOriginatedCommandTaskTag {
4148
+ get CommandTypeAttribute() {
4149
+ return ConstInterface.MG_ATTR_VAL_EXEC_OPER;
4150
+ }
4148
4151
  constructor() {
4149
4152
  super();
4150
4153
  this.ExecutionStack = null;
@@ -4158,9 +4161,6 @@ class ExecOperCommand extends ClientOriginatedCommandTaskTag {
4158
4161
  this.CheckOnly = false;
4159
4162
  this.DitIdx = Int32.MinValue;
4160
4163
  }
4161
- get CommandTypeAttribute() {
4162
- return ConstInterface.MG_ATTR_VAL_EXEC_OPER;
4163
- }
4164
4164
  SerializeCommandData() {
4165
4165
  let helper = new CommandSerializationHelper();
4166
4166
  let execStackExists = this.ExecutionStack !== null && !this.ExecutionStack.empty();
@@ -4641,13 +4641,6 @@ class HttpClientAsync extends HttpClientBase {
4641
4641
  }
4642
4642
 
4643
4643
  class HttpManager {
4644
- constructor() {
4645
- this._httpCommunicationTimeoutMS = HttpManager.DEFAULT_HTTP_COMMUNICATION_TIMEOUT;
4646
- this._httpClientAsync = null;
4647
- this._isAbortingMagicEngine = false;
4648
- this._httpClientAsync = new HttpClientAsync(HttpManager._nativeHttpClient);
4649
- this.RegisterBasicDelegates();
4650
- }
4651
4644
  getHttpClient() {
4652
4645
  if (this.IsAbortingMagicEngine)
4653
4646
  return new HttpClientSync();
@@ -4667,6 +4660,13 @@ class HttpManager {
4667
4660
  }
4668
4661
  get IsAbortingMagicEngine() { return this._isAbortingMagicEngine; }
4669
4662
  set IsAbortingMagicEngine(isAbortingMagicEngine) { this._isAbortingMagicEngine = isAbortingMagicEngine; }
4663
+ constructor() {
4664
+ this._httpCommunicationTimeoutMS = HttpManager.DEFAULT_HTTP_COMMUNICATION_TIMEOUT;
4665
+ this._httpClientAsync = null;
4666
+ this._isAbortingMagicEngine = false;
4667
+ this._httpClientAsync = new HttpClientAsync(HttpManager._nativeHttpClient);
4668
+ this.RegisterBasicDelegates();
4669
+ }
4670
4670
  RegisterBasicDelegates() {
4671
4671
  HttpClientEvents.GetHttpCommunicationTimeout_Event = this.GetHttpCommunicationTimeoutMS.bind(this);
4672
4672
  }
@@ -5224,6 +5224,12 @@ var RequestStatus;
5224
5224
  RequestStatus[RequestStatus["Abort"] = 2] = "Abort";
5225
5225
  })(RequestStatus || (RequestStatus = {}));
5226
5226
  class RemoteCommandsProcessor extends CommandsProcessorBase {
5227
+ static GetInstance() {
5228
+ if (RemoteCommandsProcessor._instance === null) {
5229
+ RemoteCommandsProcessor._instance = new RemoteCommandsProcessor();
5230
+ }
5231
+ return RemoteCommandsProcessor._instance;
5232
+ }
5227
5233
  constructor() {
5228
5234
  super();
5229
5235
  this._lastRequestTime = 0;
@@ -5234,12 +5240,6 @@ class RemoteCommandsProcessor extends CommandsProcessorBase {
5234
5240
  HttpManager.GetInstance();
5235
5241
  this.RegisterDelegates();
5236
5242
  }
5237
- static GetInstance() {
5238
- if (RemoteCommandsProcessor._instance === null) {
5239
- RemoteCommandsProcessor._instance = new RemoteCommandsProcessor();
5240
- }
5241
- return RemoteCommandsProcessor._instance;
5242
- }
5243
5243
  CheckAndSetSessionCounter(newSessionCounter) {
5244
5244
  if (newSessionCounter === ConstInterface.SESSION_COUNTER_CLOSE_CTX_INDICATION) {
5245
5245
  Debug.Assert(this.GetSessionCounter() === ConstInterface.SESSION_COUNTER_CLOSE_CTX_INDICATION);
@@ -5907,21 +5907,6 @@ RemoteCommandsProcessor.InitialUrl = null;
5907
5907
  RemoteCommandsProcessor.WEB_COMMUNICATION_PROTOCOL_VERSION = "14002";
5908
5908
  RemoteCommandsProcessor._shouldScrambleAndUnscrambleMessages = false;
5909
5909
  class HandshakeResponse {
5910
- constructor(responseXML) {
5911
- this._scrambleMessages = true;
5912
- this._contextId = null;
5913
- this._privateSessionId = null;
5914
- this._inputPassword = false;
5915
- this._httpTimeout = 0;
5916
- this._systemLogin = null;
5917
- this._maxInternalLogLevel = null;
5918
- try {
5919
- JSON_Utils.JSONFromXML(responseXML, this.FillFromJSON.bind(this));
5920
- }
5921
- catch (ex) {
5922
- Logger.Instance.WriteExceptionToLog(ex, responseXML);
5923
- }
5924
- }
5925
5910
  get ScrambleMessages() {
5926
5911
  return this._scrambleMessages;
5927
5912
  }
@@ -5943,6 +5928,21 @@ class HandshakeResponse {
5943
5928
  get MaxInternalLogLevel() {
5944
5929
  return this._maxInternalLogLevel;
5945
5930
  }
5931
+ constructor(responseXML) {
5932
+ this._scrambleMessages = true;
5933
+ this._contextId = null;
5934
+ this._privateSessionId = null;
5935
+ this._inputPassword = false;
5936
+ this._httpTimeout = 0;
5937
+ this._systemLogin = null;
5938
+ this._maxInternalLogLevel = null;
5939
+ try {
5940
+ JSON_Utils.JSONFromXML(responseXML, this.FillFromJSON.bind(this));
5941
+ }
5942
+ catch (ex) {
5943
+ Logger.Instance.WriteExceptionToLog(ex, responseXML);
5944
+ }
5945
+ }
5946
5946
  FillFromJSON(error, result) {
5947
5947
  if (error != null) {
5948
5948
  throw error;
@@ -7485,11 +7485,6 @@ var DataViewCommandType;
7485
7485
  DataViewCommandType[DataViewCommandType["SQLExecute"] = 20] = "SQLExecute";
7486
7486
  })(DataViewCommandType || (DataViewCommandType = {}));
7487
7487
  class DataviewCommand extends ClientOriginatedCommandTaskTag {
7488
- constructor() {
7489
- super();
7490
- this.CommandType = 0;
7491
- this.TaskTag = null;
7492
- }
7493
7488
  get CommandTypeAttribute() {
7494
7489
  throw new NotImplementedException();
7495
7490
  }
@@ -7500,6 +7495,11 @@ class DataviewCommand extends ClientOriginatedCommandTaskTag {
7500
7495
  get ShouldSerialize() {
7501
7496
  return false;
7502
7497
  }
7498
+ constructor() {
7499
+ super();
7500
+ this.CommandType = 0;
7501
+ this.TaskTag = null;
7502
+ }
7503
7503
  }
7504
7504
 
7505
7505
  class EventHandlerPosition {
@@ -7917,12 +7917,6 @@ class NonReversibleExitEventCommand extends EventCommand {
7917
7917
  }
7918
7918
 
7919
7919
  class RecomputeCommand extends ClientOriginatedCommandTaskTag {
7920
- constructor() {
7921
- super();
7922
- this.TaskTag = null;
7923
- this.FldId = 0;
7924
- this.IgnoreSubformRecompute = false;
7925
- }
7926
7920
  get CommandTypeAttribute() {
7927
7921
  return ConstInterface.MG_ATTR_VAL_RECOMP;
7928
7922
  }
@@ -7934,17 +7928,18 @@ class RecomputeCommand extends ClientOriginatedCommandTaskTag {
7934
7928
  helper.SerializeAttribute(ConstInterface.MG_ATTR_IGNORE_SUBFORM_RECOMPUTE, '1');
7935
7929
  return helper.GetString();
7936
7930
  }
7931
+ constructor() {
7932
+ super();
7933
+ this.TaskTag = null;
7934
+ this.FldId = 0;
7935
+ this.IgnoreSubformRecompute = false;
7936
+ }
7937
7937
  getCommandInfo() {
7938
7938
  return NString.Format('[{0} in {1} for Field {2}]', this.CommandTypeAttribute.charAt(0).toUpperCase() + this.CommandTypeAttribute.substr(1, this.CommandTypeAttribute.length), this.Task.getTaskInfo(), this.Task.getFieldDef(this.FldId).getName());
7939
7939
  }
7940
7940
  }
7941
7941
 
7942
7942
  class TransactionCommand extends ClientOriginatedCommandTaskTag {
7943
- constructor() {
7944
- super();
7945
- this.TaskTag = null;
7946
- this.ReversibleExit = false;
7947
- }
7948
7943
  get CommandTypeAttribute() {
7949
7944
  return ConstInterface.MG_ATTR_VAL_TRANS;
7950
7945
  }
@@ -7958,6 +7953,11 @@ class TransactionCommand extends ClientOriginatedCommandTaskTag {
7958
7953
  helper.SerializeAttribute(ConstInterface.MG_ATTR_TRANS_LEVEL, this.Level);
7959
7954
  return helper.GetString();
7960
7955
  }
7956
+ constructor() {
7957
+ super();
7958
+ this.TaskTag = null;
7959
+ this.ReversibleExit = false;
7960
+ }
7961
7961
  getCommandInfo() {
7962
7962
  return NString.Format('[{0} in {1}]', this.Oper === 'C' ? 'Commit Transaction' : 'Abort Transaction', this.Task.getTaskInfo());
7963
7963
  }
@@ -7976,6 +7976,9 @@ class UnloadCommand extends ClientOriginatedCommand {
7976
7976
  }
7977
7977
 
7978
7978
  class EvaluateCommand extends ClientOriginatedCommandTaskTag {
7979
+ get CommandTypeAttribute() {
7980
+ return ConstInterface.MG_ATTR_VAL_EVAL;
7981
+ }
7979
7982
  constructor() {
7980
7983
  super();
7981
7984
  this.TaskTag = null;
@@ -7984,9 +7987,6 @@ class EvaluateCommand extends ClientOriginatedCommandTaskTag {
7984
7987
  this.MprgCreator = null;
7985
7988
  this.LengthExpVal = Int32.MinValue;
7986
7989
  }
7987
- get CommandTypeAttribute() {
7988
- return ConstInterface.MG_ATTR_VAL_EVAL;
7989
- }
7990
7990
  SerializeCommandData() {
7991
7991
  let helper = new CommandSerializationHelper();
7992
7992
  helper.SerializeTaskTag(this.TaskTag);
@@ -8034,10 +8034,6 @@ class GlobalParamsQueryCommand extends QueryCommand {
8034
8034
  }
8035
8035
 
8036
8036
  class IniputForceWriteCommand extends ClientOriginatedCommand {
8037
- constructor() {
8038
- super();
8039
- this.Text = null;
8040
- }
8041
8037
  get CommandTypeAttribute() {
8042
8038
  return ConstInterface.MG_ATTR_VAL_INIPUT_FORCE_WRITE;
8043
8039
  }
@@ -8047,6 +8043,10 @@ class IniputForceWriteCommand extends ClientOriginatedCommand {
8047
8043
  SerializeCommandData() {
8048
8044
  return " " + ConstInterface.MG_ATTR_VAL_INIPUT_PARAM + "=\"" + XmlParser.escape(this.Text) + "\"";
8049
8045
  }
8046
+ constructor() {
8047
+ super();
8048
+ this.Text = null;
8049
+ }
8050
8050
  getCommandInfo() {
8051
8051
  return NString.Format('[{0} with {1}] ', this.CommandTypeAttribute, this.Text);
8052
8052
  }
@@ -8339,10 +8339,6 @@ var ParamParseResult;
8339
8339
  })(ParamParseResult || (ParamParseResult = {}));
8340
8340
 
8341
8341
  class PrmMap {
8342
- constructor() {
8343
- this.values = null;
8344
- this.values = new Dictionary();
8345
- }
8346
8342
  getvalue(s) {
8347
8343
  if (this.values.ContainsKey(s))
8348
8344
  return this.values.get_Item(s);
@@ -8355,6 +8351,10 @@ class PrmMap {
8355
8351
  remove(s) {
8356
8352
  this.values.Remove(s);
8357
8353
  }
8354
+ constructor() {
8355
+ this.values = null;
8356
+ this.values = new Dictionary();
8357
+ }
8358
8358
  }
8359
8359
  class MirrorPrmMap extends PrmMap {
8360
8360
  constructor(type) {
@@ -8938,6 +8938,12 @@ class Environment {
8938
8938
  }
8939
8939
  Environment.Instance = new Environment();
8940
8940
  class EnvironmentDetails {
8941
+ set UpdateInQueryMode(value) {
8942
+ this._updateInQueryMode = value;
8943
+ }
8944
+ set CreateInModifyMode(value) {
8945
+ this._createInModifyMode = value;
8946
+ }
8941
8947
  constructor() {
8942
8948
  this._createInModifyMode = false;
8943
8949
  this._updateInQueryMode = false;
@@ -8948,12 +8954,6 @@ class EnvironmentDetails {
8948
8954
  this.ProjDir = null;
8949
8955
  this.CompIdx = 0;
8950
8956
  }
8951
- set UpdateInQueryMode(value) {
8952
- this._updateInQueryMode = value;
8953
- }
8954
- set CreateInModifyMode(value) {
8955
- this._createInModifyMode = value;
8956
- }
8957
8957
  allowUpdateInQueryMode() {
8958
8958
  return this._updateInQueryMode;
8959
8959
  }
@@ -9041,17 +9041,6 @@ class GlobalParams extends MirrorPrmMap {
9041
9041
  GlobalParams.Instance = new GlobalParams();
9042
9042
 
9043
9043
  class UserDetails {
9044
- constructor() {
9045
- this.UserName = null;
9046
- this.UserID = null;
9047
- this.UserInfo = null;
9048
- this.Password = null;
9049
- this.IsLoggedIn = false;
9050
- this.UserName = NString.Empty;
9051
- this.UserInfo = NString.Empty;
9052
- this.IsLoggedIn = false;
9053
- this.setUserID(NString.Empty);
9054
- }
9055
9044
  setIsLoggedIn(value) {
9056
9045
  this.IsLoggedIn = value;
9057
9046
  }
@@ -9071,6 +9060,17 @@ class UserDetails {
9071
9060
  UserDetails._instance = new UserDetails();
9072
9061
  return UserDetails._instance;
9073
9062
  }
9063
+ constructor() {
9064
+ this.UserName = null;
9065
+ this.UserID = null;
9066
+ this.UserInfo = null;
9067
+ this.Password = null;
9068
+ this.IsLoggedIn = false;
9069
+ this.UserName = NString.Empty;
9070
+ this.UserInfo = NString.Empty;
9071
+ this.IsLoggedIn = false;
9072
+ this.setUserID(NString.Empty);
9073
+ }
9074
9074
  fillData(parser) {
9075
9075
  let tokensVector;
9076
9076
  let endContext = parser.getXMLdata().indexOf(XMLConstants.TAG_TERM, parser.getCurrIndex());
@@ -14784,6 +14784,12 @@ class DataViewBase extends GuiDataViewBase {
14784
14784
  }
14785
14785
 
14786
14786
  class Record {
14787
+ get InCompute() {
14788
+ return this._inCompute;
14789
+ }
14790
+ get InRecompute() {
14791
+ return this._inRecompute;
14792
+ }
14787
14793
  constructor(dvOrTableCacheOrCIdOrRecord, dataview) {
14788
14794
  this._id = Int32.MinValue;
14789
14795
  this.dbViewRowIdx = 0;
@@ -14801,12 +14807,6 @@ class Record {
14801
14807
  else
14802
14808
  this.constructor_1(dvOrTableCacheOrCIdOrRecord, dataview);
14803
14809
  }
14804
- get InCompute() {
14805
- return this._inCompute;
14806
- }
14807
- get InRecompute() {
14808
- return this._inRecompute;
14809
- }
14810
14810
  constructor_0(dvOrTableCache) {
14811
14811
  if (dvOrTableCache instanceof DataViewBase)
14812
14812
  this._dataview = dvOrTableCache;
@@ -15602,14 +15602,14 @@ Record.FLAG_MODIFIED_ATLEAST_ONCE = (0x40);
15602
15602
  Record.INCREASE = true;
15603
15603
  Record.DECREASE = false;
15604
15604
  class DcValuesReference extends ObjectReferenceBase {
15605
+ get DcValues() {
15606
+ return this.Referent;
15607
+ }
15605
15608
  constructor(controlId, referencedDcValues) {
15606
15609
  super(referencedDcValues);
15607
15610
  this.ditIdx = 0;
15608
15611
  this.ditIdx = controlId;
15609
15612
  }
15610
- get DcValues() {
15611
- return this.Referent;
15612
- }
15613
15613
  Clone() {
15614
15614
  return new DcValuesReference(this.ditIdx, this.Referent);
15615
15615
  }
@@ -15885,21 +15885,6 @@ class RecordsTable {
15885
15885
  RecordsTable.REC_NOT_FOUND = -1;
15886
15886
 
15887
15887
  class DataviewHeaderBase {
15888
- constructor(task) {
15889
- this._cond = null;
15890
- this._task = null;
15891
- this.Loc = null;
15892
- this._dir = '\0';
15893
- this._id = 0;
15894
- this._keyIdx = 0;
15895
- this._retVal = null;
15896
- this.returnfield = null;
15897
- this.LinkStartAfterField = 0;
15898
- this.KeyExpression = 0;
15899
- this._task = task;
15900
- this._keyIdx = -1;
15901
- this._cond = new YesNoExp(true);
15902
- }
15903
15888
  get ReturnField() {
15904
15889
  if (this.returnfield === null && this._retVal !== null)
15905
15890
  this.returnfield = this.Task.getFieldByValueStr(this._retVal);
@@ -15920,6 +15905,21 @@ class DataviewHeaderBase {
15920
15905
  get LinkEvaluateCondition() {
15921
15906
  return this._linkEvalCondition;
15922
15907
  }
15908
+ constructor(task) {
15909
+ this._cond = null;
15910
+ this._task = null;
15911
+ this.Loc = null;
15912
+ this._dir = '\0';
15913
+ this._id = 0;
15914
+ this._keyIdx = 0;
15915
+ this._retVal = null;
15916
+ this.returnfield = null;
15917
+ this.LinkStartAfterField = 0;
15918
+ this.KeyExpression = 0;
15919
+ this._task = task;
15920
+ this._keyIdx = -1;
15921
+ this._cond = new YesNoExp(true);
15922
+ }
15923
15923
  SetAttributes(attributes) {
15924
15924
  let keys = attributes.Keys;
15925
15925
  keys.forEach((text) => {
@@ -17257,16 +17257,16 @@ class RecordOutOfDataViewException extends ApplicationException {
17257
17257
  }
17258
17258
 
17259
17259
  class XMLBasedDcValuesBuilder extends DcValuesBuilderBase {
17260
+ set SerializedDCVals(value) {
17261
+ this.parser.setXMLdata(value);
17262
+ this.parser.setCurrIndex(0);
17263
+ }
17260
17264
  constructor() {
17261
17265
  super();
17262
17266
  this.dcv = null;
17263
17267
  this.parser = null;
17264
17268
  this.parser = new XmlParser();
17265
17269
  }
17266
- set SerializedDCVals(value) {
17267
- this.parser.setXMLdata(value);
17268
- this.parser.setCurrIndex(0);
17269
- }
17270
17270
  Build() {
17271
17271
  this.dcv = null;
17272
17272
  let endContext = this.parser.getXMLdata().indexOf(XMLConstants.TAG_TERM, this.parser.getCurrIndex());
@@ -17346,6 +17346,39 @@ const RECOVERY_ACT_NONE = 'N';
17346
17346
  const TRANS_STAT_CLOSED = 'C';
17347
17347
  const TRANS_STAT_OPENED = 'O';
17348
17348
  class DataView extends DataViewBase {
17349
+ set InsertAt(value) {
17350
+ this._insertAt = value;
17351
+ }
17352
+ get InsertAt() {
17353
+ return this._insertAt;
17354
+ }
17355
+ get CurrRec() {
17356
+ return this._currRec_DO_NOT_USE_DIRECTLY_USE_SETTER_GETTER;
17357
+ }
17358
+ set CurrRec(value) {
17359
+ if (this._currRec_DO_NOT_USE_DIRECTLY_USE_SETTER_GETTER !== null && value === null) {
17360
+ this._currRec_DO_NOT_USE_DIRECTLY_USE_SETTER_GETTER.resetDcValueId();
17361
+ }
17362
+ this._currRec_DO_NOT_USE_DIRECTLY_USE_SETTER_GETTER = value;
17363
+ if (this._currRec_DO_NOT_USE_DIRECTLY_USE_SETTER_GETTER !== null) {
17364
+ this._currRec_DO_NOT_USE_DIRECTLY_USE_SETTER_GETTER.SetDcValueId();
17365
+ }
17366
+ }
17367
+ get FlushUpdates() {
17368
+ return this._flushUpdates;
17369
+ }
17370
+ get HasMainTable() {
17371
+ return this._hasMainTable;
17372
+ }
17373
+ get CurrentRecId() {
17374
+ return this._currRecId;
17375
+ }
17376
+ get FirstRecord() {
17377
+ return this._recordsTab.getRecByIdx(0);
17378
+ }
17379
+ get LastRecord() {
17380
+ return this._recordsTab.getRecByIdx(this._recordsTab.getSize() - 1);
17381
+ }
17349
17382
  constructor(taskOrDataView) {
17350
17383
  super();
17351
17384
  this._cacheLruTimeStamp = 0;
@@ -17397,39 +17430,6 @@ class DataView extends DataViewBase {
17397
17430
  Object.assign(this, taskOrDataView);
17398
17431
  }
17399
17432
  }
17400
- set InsertAt(value) {
17401
- this._insertAt = value;
17402
- }
17403
- get InsertAt() {
17404
- return this._insertAt;
17405
- }
17406
- get CurrRec() {
17407
- return this._currRec_DO_NOT_USE_DIRECTLY_USE_SETTER_GETTER;
17408
- }
17409
- set CurrRec(value) {
17410
- if (this._currRec_DO_NOT_USE_DIRECTLY_USE_SETTER_GETTER !== null && value === null) {
17411
- this._currRec_DO_NOT_USE_DIRECTLY_USE_SETTER_GETTER.resetDcValueId();
17412
- }
17413
- this._currRec_DO_NOT_USE_DIRECTLY_USE_SETTER_GETTER = value;
17414
- if (this._currRec_DO_NOT_USE_DIRECTLY_USE_SETTER_GETTER !== null) {
17415
- this._currRec_DO_NOT_USE_DIRECTLY_USE_SETTER_GETTER.SetDcValueId();
17416
- }
17417
- }
17418
- get FlushUpdates() {
17419
- return this._flushUpdates;
17420
- }
17421
- get HasMainTable() {
17422
- return this._hasMainTable;
17423
- }
17424
- get CurrentRecId() {
17425
- return this._currRecId;
17426
- }
17427
- get FirstRecord() {
17428
- return this._recordsTab.getRecByIdx(0);
17429
- }
17430
- get LastRecord() {
17431
- return this._recordsTab.getRecByIdx(this._recordsTab.getSize() - 1);
17432
- }
17433
17433
  Init() {
17434
17434
  this.init();
17435
17435
  }
@@ -19059,6 +19059,12 @@ class ReturnResultBase {
19059
19059
  }
19060
19060
 
19061
19061
  class ReturnResult extends ReturnResultBase {
19062
+ get Success() {
19063
+ return this.success;
19064
+ }
19065
+ get ErrorDescription() {
19066
+ return this.errorDescription;
19067
+ }
19062
19068
  constructor(errorDescriptionCodeOrErrorDescriptionOrInnerResult, innerResult) {
19063
19069
  super();
19064
19070
  this.errorDescription = null;
@@ -19073,12 +19079,6 @@ class ReturnResult extends ReturnResultBase {
19073
19079
  else
19074
19080
  this.constructor_03(errorDescriptionCodeOrErrorDescriptionOrInnerResult);
19075
19081
  }
19076
- get Success() {
19077
- return this.success;
19078
- }
19079
- get ErrorDescription() {
19080
- return this.errorDescription;
19081
- }
19082
19082
  constructor_00(errorDescriptionCode) {
19083
19083
  this.success = false;
19084
19084
  this.ErrorId = errorDescriptionCode;
@@ -19182,13 +19182,13 @@ class Transaction {
19182
19182
  }
19183
19183
 
19184
19184
  class TaskTransactionManager {
19185
+ get isClosingTopmostTask() {
19186
+ return MGDataCollection.Instance.StartupMgData.getFirstTask().InEndTask;
19187
+ }
19185
19188
  constructor(task) {
19186
19189
  this.task = null;
19187
19190
  this.task = task;
19188
19191
  }
19189
- get isClosingTopmostTask() {
19190
- return MGDataCollection.Instance.StartupMgData.getFirstTask().InEndTask;
19191
- }
19192
19192
  AllowTransaction(transBegin, forLocal) {
19193
19193
  let result;
19194
19194
  if (forLocal)
@@ -19569,12 +19569,6 @@ class RemoteDataviewManager extends DataviewManagerBase {
19569
19569
  }
19570
19570
 
19571
19571
  class DataviewManager extends DataviewManagerBase {
19572
- constructor(task) {
19573
- super(task);
19574
- this.RemoteDataviewManager = null;
19575
- this.HasRemoteData = true;
19576
- this.RemoteDataviewManager = new RemoteDataviewManager(task);
19577
- }
19578
19572
  get TaskService() {
19579
19573
  return this.Task.TaskService;
19580
19574
  }
@@ -19589,6 +19583,12 @@ class DataviewManager extends DataviewManagerBase {
19589
19583
  get VirtualDataviewManager() {
19590
19584
  return this.TaskService.GetDataviewManagerForVirtuals(this.Task);
19591
19585
  }
19586
+ constructor(task) {
19587
+ super(task);
19588
+ this.RemoteDataviewManager = null;
19589
+ this.HasRemoteData = true;
19590
+ this.RemoteDataviewManager = new RemoteDataviewManager(task);
19591
+ }
19592
19592
  Execute(command) {
19593
19593
  return __awaiter(this, void 0, void 0, function* () {
19594
19594
  return yield this.CurrentDataviewManager.Execute(command);
@@ -19724,23 +19724,9 @@ class MgForm extends MgFormBase {
19724
19724
  dv = this._task.DataView;
19725
19725
  return (dv);
19726
19726
  }
19727
- moveInView(unit, direction, returnToCtrl) {
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) {
19727
+ moveInView(unit, direction) {
19741
19728
  return __awaiter(this, void 0, void 0, function* () {
19742
19729
  let oldRecId = Int32.MinValue;
19743
- let lastParkedCtrl;
19744
19730
  let currRec = this.GetDataview().getCurrRec();
19745
19731
  let oldTaskMode = ' ';
19746
19732
  let returnToVisibleLine = false;
@@ -19871,6 +19857,7 @@ class MgForm extends MgFormBase {
19871
19857
  try {
19872
19858
  yield this.RefreshDisplay(Constants.TASK_REFRESH_FORM);
19873
19859
  yield this.setCurrRowByDisplayLine(this.GetDataview().getTopRecIdx() + this.getLastValidRow(), false, true);
19860
+ visibleLine = this.getLastValidRow();
19874
19861
  }
19875
19862
  catch (Exception) {
19876
19863
  }
@@ -19994,15 +19981,6 @@ class MgForm extends MgFormBase {
19994
19981
  else
19995
19982
  this.SetTableTopIndex();
19996
19983
  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
19984
  }
20007
19985
  catch (e) {
20008
19986
  if (e instanceof RecordOutOfDataViewException) {
@@ -22862,13 +22840,6 @@ class UserEventsTable {
22862
22840
  }
22863
22841
 
22864
22842
  class FormsTable {
22865
- constructor(task, parentForm) {
22866
- this._task = null;
22867
- this._parentForm = null;
22868
- this._formsStringXml = null;
22869
- this._task = task;
22870
- this._parentForm = parentForm;
22871
- }
22872
22843
  get Count() {
22873
22844
  return this._formsStringXml.length;
22874
22845
  }
@@ -22877,6 +22848,13 @@ class FormsTable {
22877
22848
  return this._formsStringXml.get_Item(formDisplayIndex - 1);
22878
22849
  return null;
22879
22850
  }
22851
+ constructor(task, parentForm) {
22852
+ this._task = null;
22853
+ this._parentForm = null;
22854
+ this._formsStringXml = null;
22855
+ this._task = task;
22856
+ this._parentForm = parentForm;
22857
+ }
22880
22858
  fillData() {
22881
22859
  return __awaiter(this, void 0, void 0, function* () {
22882
22860
  this._formsStringXml = new List();
@@ -23072,6 +23050,47 @@ var Task_Direction;
23072
23050
  Task_Direction[Task_Direction["FORE"] = 1] = "FORE";
23073
23051
  })(Task_Direction || (Task_Direction = {}));
23074
23052
  class Task extends TaskBase {
23053
+ get ParentTask() {
23054
+ return this._parentTask;
23055
+ }
23056
+ set TryingToCommit(value) {
23057
+ this._tryingToCommit = value;
23058
+ }
23059
+ get TryingToCommit() {
23060
+ return this._tryingToCommit;
23061
+ }
23062
+ get TaskService() {
23063
+ if (this._taskService == null)
23064
+ this._taskService = new RemoteTaskService();
23065
+ return this._taskService;
23066
+ }
23067
+ static get CommandsProcessor() {
23068
+ return CommandsProcessorManager.GetCommandsProcessor();
23069
+ }
23070
+ get LogicalStudioParentTask() {
23071
+ if (this.StudioParentTask === null && !super.isMainProg()) {
23072
+ return GuiDataCollection.MGDataTable.GetMainProgByCtlIdx(this.ContextID, this._ctlIdx);
23073
+ }
23074
+ return this.StudioParentTask;
23075
+ }
23076
+ get KnownToServer() {
23077
+ return this._knownToServer;
23078
+ }
23079
+ set Transaction(value) {
23080
+ this.DataviewManager.CurrentDataviewManager.Transaction = value;
23081
+ }
23082
+ get Transaction() {
23083
+ return this.DataviewManager.CurrentDataviewManager.Transaction;
23084
+ }
23085
+ get TaskDefinitionId() {
23086
+ if (this.taskDefinitionId === null) {
23087
+ this.taskDefinitionId = new TaskDefinitionId(this._ctlIdx, this.ProgramIsn, this.TaskIsn, this._isPrg);
23088
+ }
23089
+ return this.taskDefinitionId;
23090
+ }
23091
+ static get IsBlockingBatch() {
23092
+ return false;
23093
+ }
23075
23094
  constructor(parent) {
23076
23095
  super();
23077
23096
  this._dvCache = null;
@@ -23140,47 +23159,6 @@ class Task extends TaskBase {
23140
23159
  }
23141
23160
  this.constructor_1(parent);
23142
23161
  }
23143
- get ParentTask() {
23144
- return this._parentTask;
23145
- }
23146
- set TryingToCommit(value) {
23147
- this._tryingToCommit = value;
23148
- }
23149
- get TryingToCommit() {
23150
- return this._tryingToCommit;
23151
- }
23152
- get TaskService() {
23153
- if (this._taskService == null)
23154
- this._taskService = new RemoteTaskService();
23155
- return this._taskService;
23156
- }
23157
- static get CommandsProcessor() {
23158
- return CommandsProcessorManager.GetCommandsProcessor();
23159
- }
23160
- get LogicalStudioParentTask() {
23161
- if (this.StudioParentTask === null && !super.isMainProg()) {
23162
- return GuiDataCollection.MGDataTable.GetMainProgByCtlIdx(this.ContextID, this._ctlIdx);
23163
- }
23164
- return this.StudioParentTask;
23165
- }
23166
- get KnownToServer() {
23167
- return this._knownToServer;
23168
- }
23169
- set Transaction(value) {
23170
- this.DataviewManager.CurrentDataviewManager.Transaction = value;
23171
- }
23172
- get Transaction() {
23173
- return this.DataviewManager.CurrentDataviewManager.Transaction;
23174
- }
23175
- get TaskDefinitionId() {
23176
- if (this.taskDefinitionId === null) {
23177
- this.taskDefinitionId = new TaskDefinitionId(this._ctlIdx, this.ProgramIsn, this.TaskIsn, this._isPrg);
23178
- }
23179
- return this.taskDefinitionId;
23180
- }
23181
- static get IsBlockingBatch() {
23182
- return false;
23183
- }
23184
23162
  constructor_0() {
23185
23163
  this.ActionManager = new ActionManager();
23186
23164
  this.DataView = new DataView(this);
@@ -25678,6 +25656,9 @@ class CompMainPrgTable {
25678
25656
  }
25679
25657
 
25680
25658
  class MGData {
25659
+ get ForceModal() {
25660
+ return this.forceModal;
25661
+ }
25681
25662
  constructor(toClient, toServer, id, parent, isModal, forceModal) {
25682
25663
  this._expHandlers = null;
25683
25664
  this._id = 0;
@@ -25698,9 +25679,6 @@ class MGData {
25698
25679
  else
25699
25680
  this.constructor_1(id, parent, isModal, forceModal);
25700
25681
  }
25701
- get ForceModal() {
25702
- return this.forceModal;
25703
- }
25704
25682
  constructor_0(id, parent, isModal) {
25705
25683
  this._timerHandlers = new HandlersTable();
25706
25684
  this._expHandlers = new HandlersTable();
@@ -29842,13 +29820,6 @@ class VerifyCommand extends ClientTargetedCommandBase {
29842
29820
  }
29843
29821
 
29844
29822
  class EnhancedVerifyCommand extends VerifyCommand {
29845
- constructor() {
29846
- super();
29847
- this._buttonsID = '\0';
29848
- this._image = '\0';
29849
- this._returnValStr = null;
29850
- this._returnVal = null;
29851
- }
29852
29823
  ProcessMessageBoxResponse(task, returnValue) {
29853
29824
  return __awaiter(this, void 0, void 0, function* () {
29854
29825
  if (task !== null)
@@ -29881,6 +29852,13 @@ class EnhancedVerifyCommand extends VerifyCommand {
29881
29852
  break;
29882
29853
  }
29883
29854
  }
29855
+ constructor() {
29856
+ super();
29857
+ this._buttonsID = '\0';
29858
+ this._image = '\0';
29859
+ this._returnValStr = null;
29860
+ this._returnVal = null;
29861
+ }
29884
29862
  }
29885
29863
 
29886
29864
  class ResetRangeCommand extends ClientTargetedCommandBase {
@@ -29985,12 +29963,6 @@ class ResetLocateCommand extends ClientTargetedCommandBase {
29985
29963
  }
29986
29964
 
29987
29965
  class ResultCommand extends ClientTargetedCommandBase {
29988
- constructor() {
29989
- super();
29990
- this._isNull = false;
29991
- this._attr = StorageAttribute.NONE;
29992
- this._val = null;
29993
- }
29994
29966
  Execute(res) {
29995
29967
  return __awaiter(this, void 0, void 0, function* () {
29996
29968
  if (this._isNull)
@@ -30018,6 +29990,12 @@ class ResultCommand extends ClientTargetedCommandBase {
30018
29990
  break;
30019
29991
  }
30020
29992
  }
29993
+ constructor() {
29994
+ super();
29995
+ this._isNull = false;
29996
+ this._attr = StorageAttribute.NONE;
29997
+ this._val = null;
29998
+ }
30021
29999
  }
30022
30000
 
30023
30001
  class AddSortCommand extends ClientTargetedCommandBase {
@@ -30388,19 +30366,9 @@ class CommandsTable {
30388
30366
  }
30389
30367
  }
30390
30368
 
30391
- let CurrentClientVersion = '4.900.0';
30369
+ let CurrentClientVersion = '4.901.0-ang15';
30392
30370
 
30393
30371
  class ClientManager {
30394
- constructor() {
30395
- this._globalUniqueSessionId = null;
30396
- this._buttonIsClicked = false;
30397
- RuntimeContextBase.Instance.Init(RemoteCommandsProcessor.RC_NO_CONTEXT_ID);
30398
- LastFocusedManager.Instance.Init(MGDataCollection.Instance);
30399
- LastFocusedManager.Instance.LastActionTime = Misc.getSystemMilliseconds();
30400
- RemoteCommandsProcessor.ShouldScrambleAndUnscrambleMessages = true;
30401
- this._globalUniqueSessionId = UniqueIDUtils.GetUniqueMachineID() + "_";
30402
- this.RegisterDelegates();
30403
- }
30404
30372
  static get Instance() {
30405
30373
  if (ClientManager._instance === null)
30406
30374
  ClientManager._instance = new ClientManager();
@@ -30479,6 +30447,10 @@ class ClientManager {
30479
30447
  EventsManager.Instance.addGuiTriggeredEventWithTaskAndCodeAndLine(task, InternalInterface.MG_ACT_REC_PREFIX, dvRowIdx);
30480
30448
  }
30481
30449
  break;
30450
+ case "navigateInTable":
30451
+ if (guiEvent.ControlName === "magicRow")
30452
+ this.handleNavigateInRowEvent(task, guiEvent.Value);
30453
+ break;
30482
30454
  case "close":
30483
30455
  if (task.IsRoute())
30484
30456
  EventsManager.Instance.AddRouterClosedEvent(task);
@@ -30513,6 +30485,38 @@ class ClientManager {
30513
30485
  break;
30514
30486
  }
30515
30487
  }
30488
+ handleNavigateInRowEvent(task, evt) {
30489
+ let internalEvt = InternalInterface.MG_ACT_NONE;
30490
+ evt = evt.toLowerCase();
30491
+ switch (evt) {
30492
+ case "begin-page":
30493
+ internalEvt = InternalInterface.MG_ACT_TBL_BEGPAGE;
30494
+ break;
30495
+ case "previous-page":
30496
+ internalEvt = InternalInterface.MG_ACT_TBL_PRVPAGE;
30497
+ break;
30498
+ case "end-page":
30499
+ internalEvt = InternalInterface.MG_ACT_TBL_ENDPAGE;
30500
+ break;
30501
+ case "next-page":
30502
+ internalEvt = InternalInterface.MG_ACT_TBL_NXTPAGE;
30503
+ break;
30504
+ case "previous-line":
30505
+ internalEvt = InternalInterface.MG_ACT_TBL_PRVLINE;
30506
+ break;
30507
+ case "next-line":
30508
+ internalEvt = InternalInterface.MG_ACT_TBL_NXTLINE;
30509
+ break;
30510
+ case "begin-table":
30511
+ internalEvt = InternalInterface.MG_ACT_TBL_BEGTBL;
30512
+ break;
30513
+ case "end-table":
30514
+ internalEvt = InternalInterface.MG_ACT_TBL_ENDTBL;
30515
+ break;
30516
+ }
30517
+ if (internalEvt != InternalInterface.MG_ACT_NONE)
30518
+ EventsManager.Instance.addGuiTriggeredEventWithTaskAndCode(task, internalEvt);
30519
+ }
30516
30520
  ConfirmationClosed(res) {
30517
30521
  Commands.ResolvePromise(res);
30518
30522
  }
@@ -30566,6 +30570,16 @@ class ClientManager {
30566
30570
  Logger.Instance.WriteToLog("-----------------------------------------------------------------------------", true);
30567
30571
  }
30568
30572
  }
30573
+ constructor() {
30574
+ this._globalUniqueSessionId = null;
30575
+ this._buttonIsClicked = false;
30576
+ RuntimeContextBase.Instance.Init(RemoteCommandsProcessor.RC_NO_CONTEXT_ID);
30577
+ LastFocusedManager.Instance.Init(MGDataCollection.Instance);
30578
+ LastFocusedManager.Instance.LastActionTime = Misc.getSystemMilliseconds();
30579
+ RemoteCommandsProcessor.ShouldScrambleAndUnscrambleMessages = true;
30580
+ this._globalUniqueSessionId = UniqueIDUtils.GetUniqueMachineID() + "_";
30581
+ this.RegisterDelegates();
30582
+ }
30569
30583
  InitGuiManager() {
30570
30584
  Manager.EventsManager = EventsManager.Instance;
30571
30585
  Manager.DefaultServerName = ServerConfig.Instance.getServer();