@magic-xpa/engine 4.1000.0-dev4100.108 → 4.1000.0-dev4100.113

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 (36) hide show
  1. package/esm2020/src/ClientManager.mjs +11 -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/http/HttpManager.mjs +8 -8
  22. package/esm2020/src/remote/RemoteCommandsProcessor.mjs +22 -22
  23. package/esm2020/src/rt/DataviewHeaderBase.mjs +16 -16
  24. package/esm2020/src/security/UserDetails.mjs +12 -12
  25. package/esm2020/src/tasks/MGData.mjs +4 -4
  26. package/esm2020/src/tasks/RCTimer.mjs +10 -10
  27. package/esm2020/src/tasks/Task.mjs +42 -42
  28. package/esm2020/src/util/FlowMonitorQueue.mjs +2 -2
  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 +267 -267
  32. package/fesm2015/magic-xpa-engine.mjs.map +1 -1
  33. package/fesm2020/magic-xpa-engine.mjs +267 -267
  34. package/fesm2020/magic-xpa-engine.mjs.map +1 -1
  35. package/package.json +6 -6
  36. 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);
@@ -1173,15 +1173,6 @@ class OpeningTaskDetails {
1173
1173
  }
1174
1174
 
1175
1175
  class MgControl extends MgControlBase {
1176
- constructor(type, taskOrParentMgForm, parentControlOrParentControlIdx) {
1177
- if (arguments.length === 0)
1178
- super();
1179
- else if (arguments.length === 3 && (type === null || type.constructor === Number) && (taskOrParentMgForm === null || taskOrParentMgForm instanceof TaskBase) && (parentControlOrParentControlIdx === null || parentControlOrParentControlIdx.constructor === Number))
1180
- super(type, taskOrParentMgForm.getForm(), parentControlOrParentControlIdx);
1181
- else
1182
- super(type, taskOrParentMgForm, parentControlOrParentControlIdx);
1183
- this.initialize();
1184
- }
1185
1176
  initialize() {
1186
1177
  this._focusedStopExecution = false;
1187
1178
  this._inControlSuffix = false;
@@ -1194,6 +1185,15 @@ class MgControl extends MgControlBase {
1194
1185
  this.HasZoomHandler = false;
1195
1186
  this.ArgList = null;
1196
1187
  }
1188
+ constructor(type, taskOrParentMgForm, parentControlOrParentControlIdx) {
1189
+ if (arguments.length === 0)
1190
+ super();
1191
+ else if (arguments.length === 3 && (type === null || type.constructor === Number) && (taskOrParentMgForm === null || taskOrParentMgForm instanceof TaskBase) && (parentControlOrParentControlIdx === null || parentControlOrParentControlIdx.constructor === Number))
1192
+ super(type, taskOrParentMgForm.getForm(), parentControlOrParentControlIdx);
1193
+ else
1194
+ super(type, taskOrParentMgForm, parentControlOrParentControlIdx);
1195
+ this.initialize();
1196
+ }
1197
1197
  GetVarIndex() {
1198
1198
  return super.getForm().getTask().DataView.Dvcount + this.veeIndx;
1199
1199
  }
@@ -3126,6 +3126,21 @@ class MgPriorityBlockingQueue {
3126
3126
  }
3127
3127
 
3128
3128
  class RunTimeEvent extends RunTimeEventBase {
3129
+ set Control(value) {
3130
+ this._ctrl = value;
3131
+ }
3132
+ set DisplayLine(value) {
3133
+ this._displayLine = value;
3134
+ }
3135
+ get Control() {
3136
+ return this._ctrl;
3137
+ }
3138
+ get ControlsList() {
3139
+ return this._controlsList;
3140
+ }
3141
+ get Direction() {
3142
+ return this._direction;
3143
+ }
3129
3144
  constructor(taskRefOrCtrlRefOrTaskrefOrFldRefOrEvt, ctrlRefOrGuiTriggeredEventOrLineOrControlsListOrDirectionOrColumnHeaderOrRtEvtOrCurrentTask, ignoreSpecifiedControlOrGuiTriggeredEventOrLineOrXOrControlOrActivatedFromMDIFrame, yOrCtlIdx, width, height) {
3130
3145
  super();
3131
3146
  this._controlsList = null;
@@ -3187,21 +3202,6 @@ class RunTimeEvent extends RunTimeEventBase {
3187
3202
  else if (arguments.length === 1 && taskRefOrCtrlRefOrTaskrefOrFldRefOrEvt instanceof RunTimeEvent)
3188
3203
  Object.assign(this, taskRefOrCtrlRefOrTaskrefOrFldRefOrEvt);
3189
3204
  }
3190
- set Control(value) {
3191
- this._ctrl = value;
3192
- }
3193
- set DisplayLine(value) {
3194
- this._displayLine = value;
3195
- }
3196
- get Control() {
3197
- return this._ctrl;
3198
- }
3199
- get ControlsList() {
3200
- return this._controlsList;
3201
- }
3202
- get Direction() {
3203
- return this._direction;
3204
- }
3205
3205
  constructor_5(taskRef) {
3206
3206
  this.init(taskRef);
3207
3207
  }
@@ -3746,7 +3746,7 @@ class FlowMonitorQueue {
3746
3746
  let paddedName = this.padRight(name, 34);
3747
3747
  let formatOfStringVirtual = `Virtual`;
3748
3748
  let formatOfStringParameter = `Parameter`;
3749
- str = (mode ? formatOfStringParameter : formatOfStringVirtual) + " : " + `${paddedName}` + " : " + `${valueContent}`;
3749
+ str = (mode ? formatOfStringParameter : formatOfStringVirtual) + " : " + `${paddedName}` + " : " + `${valueContent.trim()}`;
3750
3750
  return str;
3751
3751
  }
3752
3752
  addTaskFlowRec(id, state, taskInfo) {
@@ -3975,6 +3975,15 @@ class TimerObjectCollection {
3975
3975
  }
3976
3976
  TimerObjectCollection.MgDataToTimerObjList = new Dictionary();
3977
3977
  class RCTimer extends MgTimer {
3978
+ get TimerIntervalMiliSeconds() {
3979
+ return this._timerIntervalMilliSeconds;
3980
+ }
3981
+ set IsIdleTimer(value) {
3982
+ this._isIdle = value;
3983
+ }
3984
+ get IsIdleTimer() {
3985
+ return this._isIdle;
3986
+ }
3978
3987
  constructor(mgData, milliseconds, isIdle) {
3979
3988
  super(milliseconds);
3980
3989
  this._mgData = null;
@@ -3986,15 +3995,6 @@ class RCTimer extends MgTimer {
3986
3995
  TimerObjectCollection.MgDataToTimerObjList.Add(mgDataId, new List());
3987
3996
  TimerObjectCollection.MgDataToTimerObjList.get_Item(mgDataId).push(this);
3988
3997
  }
3989
- get TimerIntervalMiliSeconds() {
3990
- return this._timerIntervalMilliSeconds;
3991
- }
3992
- set IsIdleTimer(value) {
3993
- this._isIdle = value;
3994
- }
3995
- get IsIdleTimer() {
3996
- return this._isIdle;
3997
- }
3998
3998
  GetMgdata() {
3999
3999
  return this._mgData;
4000
4000
  }
@@ -4140,6 +4140,9 @@ class ExecutionStack {
4140
4140
  }
4141
4141
 
4142
4142
  class ExecOperCommand extends ClientOriginatedCommandTaskTag {
4143
+ get CommandTypeAttribute() {
4144
+ return ConstInterface.MG_ATTR_VAL_EXEC_OPER;
4145
+ }
4143
4146
  constructor() {
4144
4147
  super();
4145
4148
  this.ExecutionStack = null;
@@ -4153,9 +4156,6 @@ class ExecOperCommand extends ClientOriginatedCommandTaskTag {
4153
4156
  this.CheckOnly = false;
4154
4157
  this.DitIdx = Int32.MinValue;
4155
4158
  }
4156
- get CommandTypeAttribute() {
4157
- return ConstInterface.MG_ATTR_VAL_EXEC_OPER;
4158
- }
4159
4159
  SerializeCommandData() {
4160
4160
  let helper = new CommandSerializationHelper();
4161
4161
  let execStackExists = this.ExecutionStack !== null && !this.ExecutionStack.empty();
@@ -4610,13 +4610,6 @@ class HttpClientAsync extends HttpClientBase {
4610
4610
  }
4611
4611
 
4612
4612
  class HttpManager {
4613
- constructor() {
4614
- this._httpCommunicationTimeoutMS = HttpManager.DEFAULT_HTTP_COMMUNICATION_TIMEOUT;
4615
- this._httpClientAsync = null;
4616
- this._isAbortingMagicEngine = false;
4617
- this._httpClientAsync = new HttpClientAsync(HttpManager._nativeHttpClient);
4618
- this.RegisterBasicDelegates();
4619
- }
4620
4613
  getHttpClient() {
4621
4614
  if (this.IsAbortingMagicEngine)
4622
4615
  return new HttpClientSync();
@@ -4636,6 +4629,13 @@ class HttpManager {
4636
4629
  }
4637
4630
  get IsAbortingMagicEngine() { return this._isAbortingMagicEngine; }
4638
4631
  set IsAbortingMagicEngine(isAbortingMagicEngine) { this._isAbortingMagicEngine = isAbortingMagicEngine; }
4632
+ constructor() {
4633
+ this._httpCommunicationTimeoutMS = HttpManager.DEFAULT_HTTP_COMMUNICATION_TIMEOUT;
4634
+ this._httpClientAsync = null;
4635
+ this._isAbortingMagicEngine = false;
4636
+ this._httpClientAsync = new HttpClientAsync(HttpManager._nativeHttpClient);
4637
+ this.RegisterBasicDelegates();
4638
+ }
4639
4639
  RegisterBasicDelegates() {
4640
4640
  HttpClientEvents.GetHttpCommunicationTimeout_Event = this.GetHttpCommunicationTimeoutMS.bind(this);
4641
4641
  }
@@ -5181,6 +5181,12 @@ var RequestStatus;
5181
5181
  RequestStatus[RequestStatus["Abort"] = 2] = "Abort";
5182
5182
  })(RequestStatus || (RequestStatus = {}));
5183
5183
  class RemoteCommandsProcessor extends CommandsProcessorBase {
5184
+ static GetInstance() {
5185
+ if (RemoteCommandsProcessor._instance === null) {
5186
+ RemoteCommandsProcessor._instance = new RemoteCommandsProcessor();
5187
+ }
5188
+ return RemoteCommandsProcessor._instance;
5189
+ }
5184
5190
  constructor() {
5185
5191
  super();
5186
5192
  this._lastRequestTime = 0;
@@ -5191,12 +5197,6 @@ class RemoteCommandsProcessor extends CommandsProcessorBase {
5191
5197
  HttpManager.GetInstance();
5192
5198
  this.RegisterDelegates();
5193
5199
  }
5194
- static GetInstance() {
5195
- if (RemoteCommandsProcessor._instance === null) {
5196
- RemoteCommandsProcessor._instance = new RemoteCommandsProcessor();
5197
- }
5198
- return RemoteCommandsProcessor._instance;
5199
- }
5200
5200
  CheckAndSetSessionCounter(newSessionCounter) {
5201
5201
  if (newSessionCounter === ConstInterface.SESSION_COUNTER_CLOSE_CTX_INDICATION) {
5202
5202
  Debug.Assert(this.GetSessionCounter() === ConstInterface.SESSION_COUNTER_CLOSE_CTX_INDICATION);
@@ -5845,21 +5845,6 @@ RemoteCommandsProcessor.InitialUrl = null;
5845
5845
  RemoteCommandsProcessor.WEB_COMMUNICATION_PROTOCOL_VERSION = "14002";
5846
5846
  RemoteCommandsProcessor._shouldScrambleAndUnscrambleMessages = false;
5847
5847
  class HandshakeResponse {
5848
- constructor(responseXML) {
5849
- this._scrambleMessages = true;
5850
- this._contextId = null;
5851
- this._privateSessionId = null;
5852
- this._inputPassword = false;
5853
- this._httpTimeout = 0;
5854
- this._systemLogin = null;
5855
- this._maxInternalLogLevel = null;
5856
- try {
5857
- JSON_Utils.JSONFromXML(responseXML, this.FillFromJSON.bind(this));
5858
- }
5859
- catch (ex) {
5860
- Logger.Instance.WriteExceptionToLog(ex, responseXML);
5861
- }
5862
- }
5863
5848
  get ScrambleMessages() {
5864
5849
  return this._scrambleMessages;
5865
5850
  }
@@ -5881,6 +5866,21 @@ class HandshakeResponse {
5881
5866
  get MaxInternalLogLevel() {
5882
5867
  return this._maxInternalLogLevel;
5883
5868
  }
5869
+ constructor(responseXML) {
5870
+ this._scrambleMessages = true;
5871
+ this._contextId = null;
5872
+ this._privateSessionId = null;
5873
+ this._inputPassword = false;
5874
+ this._httpTimeout = 0;
5875
+ this._systemLogin = null;
5876
+ this._maxInternalLogLevel = null;
5877
+ try {
5878
+ JSON_Utils.JSONFromXML(responseXML, this.FillFromJSON.bind(this));
5879
+ }
5880
+ catch (ex) {
5881
+ Logger.Instance.WriteExceptionToLog(ex, responseXML);
5882
+ }
5883
+ }
5884
5884
  FillFromJSON(error, result) {
5885
5885
  if (error != null) {
5886
5886
  throw error;
@@ -7602,11 +7602,6 @@ var DataViewCommandType;
7602
7602
  DataViewCommandType[DataViewCommandType["SQLExecute"] = 20] = "SQLExecute";
7603
7603
  })(DataViewCommandType || (DataViewCommandType = {}));
7604
7604
  class DataviewCommand extends ClientOriginatedCommandTaskTag {
7605
- constructor() {
7606
- super();
7607
- this.CommandType = 0;
7608
- this.TaskTag = null;
7609
- }
7610
7605
  get CommandTypeAttribute() {
7611
7606
  throw new NotImplementedException();
7612
7607
  }
@@ -7617,6 +7612,11 @@ class DataviewCommand extends ClientOriginatedCommandTaskTag {
7617
7612
  get ShouldSerialize() {
7618
7613
  return false;
7619
7614
  }
7615
+ constructor() {
7616
+ super();
7617
+ this.CommandType = 0;
7618
+ this.TaskTag = null;
7619
+ }
7620
7620
  }
7621
7621
 
7622
7622
  class AddUserRangeDataviewCommand extends DataviewCommand {
@@ -7838,12 +7838,6 @@ class NonReversibleExitEventCommand extends EventCommand {
7838
7838
  }
7839
7839
 
7840
7840
  class RecomputeCommand extends ClientOriginatedCommandTaskTag {
7841
- constructor() {
7842
- super();
7843
- this.TaskTag = null;
7844
- this.FldId = 0;
7845
- this.IgnoreSubformRecompute = false;
7846
- }
7847
7841
  get CommandTypeAttribute() {
7848
7842
  return ConstInterface.MG_ATTR_VAL_RECOMP;
7849
7843
  }
@@ -7855,17 +7849,18 @@ class RecomputeCommand extends ClientOriginatedCommandTaskTag {
7855
7849
  helper.SerializeAttribute(ConstInterface.MG_ATTR_IGNORE_SUBFORM_RECOMPUTE, '1');
7856
7850
  return helper.GetString();
7857
7851
  }
7852
+ constructor() {
7853
+ super();
7854
+ this.TaskTag = null;
7855
+ this.FldId = 0;
7856
+ this.IgnoreSubformRecompute = false;
7857
+ }
7858
7858
  getCommandInfo() {
7859
7859
  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());
7860
7860
  }
7861
7861
  }
7862
7862
 
7863
7863
  class TransactionCommand extends ClientOriginatedCommandTaskTag {
7864
- constructor() {
7865
- super();
7866
- this.TaskTag = null;
7867
- this.ReversibleExit = false;
7868
- }
7869
7864
  get CommandTypeAttribute() {
7870
7865
  return ConstInterface.MG_ATTR_VAL_TRANS;
7871
7866
  }
@@ -7879,6 +7874,11 @@ class TransactionCommand extends ClientOriginatedCommandTaskTag {
7879
7874
  helper.SerializeAttribute(ConstInterface.MG_ATTR_TRANS_LEVEL, this.Level);
7880
7875
  return helper.GetString();
7881
7876
  }
7877
+ constructor() {
7878
+ super();
7879
+ this.TaskTag = null;
7880
+ this.ReversibleExit = false;
7881
+ }
7882
7882
  getCommandInfo() {
7883
7883
  return NString.Format('[{0} in {1}]', this.Oper === 'C' ? 'Commit Transaction' : 'Abort Transaction', this.Task.getTaskInfo());
7884
7884
  }
@@ -7897,6 +7897,9 @@ class UnloadCommand extends ClientOriginatedCommand {
7897
7897
  }
7898
7898
 
7899
7899
  class EvaluateCommand extends ClientOriginatedCommandTaskTag {
7900
+ get CommandTypeAttribute() {
7901
+ return ConstInterface.MG_ATTR_VAL_EVAL;
7902
+ }
7900
7903
  constructor() {
7901
7904
  super();
7902
7905
  this.TaskTag = null;
@@ -7905,9 +7908,6 @@ class EvaluateCommand extends ClientOriginatedCommandTaskTag {
7905
7908
  this.MprgCreator = null;
7906
7909
  this.LengthExpVal = Int32.MinValue;
7907
7910
  }
7908
- get CommandTypeAttribute() {
7909
- return ConstInterface.MG_ATTR_VAL_EVAL;
7910
- }
7911
7911
  SerializeCommandData() {
7912
7912
  let helper = new CommandSerializationHelper();
7913
7913
  helper.SerializeTaskTag(this.TaskTag);
@@ -7955,10 +7955,6 @@ class GlobalParamsQueryCommand extends QueryCommand {
7955
7955
  }
7956
7956
 
7957
7957
  class IniputForceWriteCommand extends ClientOriginatedCommand {
7958
- constructor() {
7959
- super();
7960
- this.Text = null;
7961
- }
7962
7958
  get CommandTypeAttribute() {
7963
7959
  return ConstInterface.MG_ATTR_VAL_INIPUT_FORCE_WRITE;
7964
7960
  }
@@ -7968,6 +7964,10 @@ class IniputForceWriteCommand extends ClientOriginatedCommand {
7968
7964
  SerializeCommandData() {
7969
7965
  return " " + ConstInterface.MG_ATTR_VAL_INIPUT_PARAM + "=\"" + XmlParser.escape(this.Text) + "\"";
7970
7966
  }
7967
+ constructor() {
7968
+ super();
7969
+ this.Text = null;
7970
+ }
7971
7971
  getCommandInfo() {
7972
7972
  return NString.Format('[{0} with {1}] ', this.CommandTypeAttribute, this.Text);
7973
7973
  }
@@ -8263,10 +8263,6 @@ var ParamParseResult;
8263
8263
  })(ParamParseResult || (ParamParseResult = {}));
8264
8264
 
8265
8265
  class PrmMap {
8266
- constructor() {
8267
- this.values = null;
8268
- this.values = new Dictionary();
8269
- }
8270
8266
  getvalue(s) {
8271
8267
  if (this.values.ContainsKey(s))
8272
8268
  return this.values.get_Item(s);
@@ -8279,6 +8275,10 @@ class PrmMap {
8279
8275
  remove(s) {
8280
8276
  this.values.Remove(s);
8281
8277
  }
8278
+ constructor() {
8279
+ this.values = null;
8280
+ this.values = new Dictionary();
8281
+ }
8282
8282
  }
8283
8283
  class MirrorPrmMap extends PrmMap {
8284
8284
  constructor(type) {
@@ -8867,6 +8867,12 @@ class Environment {
8867
8867
  }
8868
8868
  Environment.Instance = new Environment();
8869
8869
  class EnvironmentDetails {
8870
+ set UpdateInQueryMode(value) {
8871
+ this._updateInQueryMode = value;
8872
+ }
8873
+ set CreateInModifyMode(value) {
8874
+ this._createInModifyMode = value;
8875
+ }
8870
8876
  constructor() {
8871
8877
  this._createInModifyMode = false;
8872
8878
  this._updateInQueryMode = false;
@@ -8877,12 +8883,6 @@ class EnvironmentDetails {
8877
8883
  this.ProjDir = null;
8878
8884
  this.CompIdx = 0;
8879
8885
  }
8880
- set UpdateInQueryMode(value) {
8881
- this._updateInQueryMode = value;
8882
- }
8883
- set CreateInModifyMode(value) {
8884
- this._createInModifyMode = value;
8885
- }
8886
8886
  allowUpdateInQueryMode() {
8887
8887
  return this._updateInQueryMode;
8888
8888
  }
@@ -8970,17 +8970,6 @@ class GlobalParams extends MirrorPrmMap {
8970
8970
  GlobalParams.Instance = new GlobalParams();
8971
8971
 
8972
8972
  class UserDetails {
8973
- constructor() {
8974
- this.UserName = null;
8975
- this.UserID = null;
8976
- this.UserInfo = null;
8977
- this.Password = null;
8978
- this.IsLoggedIn = false;
8979
- this.UserName = NString.Empty;
8980
- this.UserInfo = NString.Empty;
8981
- this.IsLoggedIn = false;
8982
- this.setUserID(NString.Empty);
8983
- }
8984
8973
  setIsLoggedIn(value) {
8985
8974
  this.IsLoggedIn = value;
8986
8975
  }
@@ -9000,6 +8989,17 @@ class UserDetails {
9000
8989
  UserDetails._instance = new UserDetails();
9001
8990
  return UserDetails._instance;
9002
8991
  }
8992
+ constructor() {
8993
+ this.UserName = null;
8994
+ this.UserID = null;
8995
+ this.UserInfo = null;
8996
+ this.Password = null;
8997
+ this.IsLoggedIn = false;
8998
+ this.UserName = NString.Empty;
8999
+ this.UserInfo = NString.Empty;
9000
+ this.IsLoggedIn = false;
9001
+ this.setUserID(NString.Empty);
9002
+ }
9003
9003
  fillData(parser) {
9004
9004
  let tokensVector;
9005
9005
  let endContext = parser.getXMLdata().indexOf(XMLConstants.TAG_TERM, parser.getCurrIndex());
@@ -14462,6 +14462,12 @@ class DataViewBase extends GuiDataViewBase {
14462
14462
  }
14463
14463
 
14464
14464
  class Record {
14465
+ get InCompute() {
14466
+ return this._inCompute;
14467
+ }
14468
+ get InRecompute() {
14469
+ return this._inRecompute;
14470
+ }
14465
14471
  constructor(dvOrTableCacheOrCIdOrRecord, dataview) {
14466
14472
  this._id = Int32.MinValue;
14467
14473
  this.dbViewRowIdx = 0;
@@ -14479,12 +14485,6 @@ class Record {
14479
14485
  else
14480
14486
  this.constructor_1(dvOrTableCacheOrCIdOrRecord, dataview);
14481
14487
  }
14482
- get InCompute() {
14483
- return this._inCompute;
14484
- }
14485
- get InRecompute() {
14486
- return this._inRecompute;
14487
- }
14488
14488
  constructor_0(dvOrTableCache) {
14489
14489
  if (dvOrTableCache instanceof DataViewBase)
14490
14490
  this._dataview = dvOrTableCache;
@@ -15280,14 +15280,14 @@ Record.FLAG_MODIFIED_ATLEAST_ONCE = (0x40);
15280
15280
  Record.INCREASE = true;
15281
15281
  Record.DECREASE = false;
15282
15282
  class DcValuesReference extends ObjectReferenceBase {
15283
+ get DcValues() {
15284
+ return this.Referent;
15285
+ }
15283
15286
  constructor(controlId, referencedDcValues) {
15284
15287
  super(referencedDcValues);
15285
15288
  this.ditIdx = 0;
15286
15289
  this.ditIdx = controlId;
15287
15290
  }
15288
- get DcValues() {
15289
- return this.Referent;
15290
- }
15291
15291
  Clone() {
15292
15292
  return new DcValuesReference(this.ditIdx, this.Referent);
15293
15293
  }
@@ -15563,21 +15563,6 @@ class RecordsTable {
15563
15563
  RecordsTable.REC_NOT_FOUND = -1;
15564
15564
 
15565
15565
  class DataviewHeaderBase {
15566
- constructor(task) {
15567
- this._cond = null;
15568
- this._task = null;
15569
- this.Loc = null;
15570
- this._dir = '\0';
15571
- this._id = 0;
15572
- this._keyIdx = 0;
15573
- this._retVal = null;
15574
- this.returnfield = null;
15575
- this.LinkStartAfterField = 0;
15576
- this.KeyExpression = 0;
15577
- this._task = task;
15578
- this._keyIdx = -1;
15579
- this._cond = new YesNoExp(true);
15580
- }
15581
15566
  get ReturnField() {
15582
15567
  if (this.returnfield === null && this._retVal !== null)
15583
15568
  this.returnfield = this.Task.getFieldByValueStr(this._retVal);
@@ -15598,6 +15583,21 @@ class DataviewHeaderBase {
15598
15583
  get LinkEvaluateCondition() {
15599
15584
  return this._linkEvalCondition;
15600
15585
  }
15586
+ constructor(task) {
15587
+ this._cond = null;
15588
+ this._task = null;
15589
+ this.Loc = null;
15590
+ this._dir = '\0';
15591
+ this._id = 0;
15592
+ this._keyIdx = 0;
15593
+ this._retVal = null;
15594
+ this.returnfield = null;
15595
+ this.LinkStartAfterField = 0;
15596
+ this.KeyExpression = 0;
15597
+ this._task = task;
15598
+ this._keyIdx = -1;
15599
+ this._cond = new YesNoExp(true);
15600
+ }
15601
15601
  SetAttributes(attributes) {
15602
15602
  let keys = attributes.Keys;
15603
15603
  keys.forEach((text) => {
@@ -16888,16 +16888,16 @@ class RecordOutOfDataViewException extends ApplicationException {
16888
16888
  }
16889
16889
 
16890
16890
  class XMLBasedDcValuesBuilder extends DcValuesBuilderBase {
16891
+ set SerializedDCVals(value) {
16892
+ this.parser.setXMLdata(value);
16893
+ this.parser.setCurrIndex(0);
16894
+ }
16891
16895
  constructor() {
16892
16896
  super();
16893
16897
  this.dcv = null;
16894
16898
  this.parser = null;
16895
16899
  this.parser = new XmlParser();
16896
16900
  }
16897
- set SerializedDCVals(value) {
16898
- this.parser.setXMLdata(value);
16899
- this.parser.setCurrIndex(0);
16900
- }
16901
16901
  Build() {
16902
16902
  this.dcv = null;
16903
16903
  let endContext = this.parser.getXMLdata().indexOf(XMLConstants.TAG_TERM, this.parser.getCurrIndex());
@@ -16977,6 +16977,39 @@ const RECOVERY_ACT_NONE = 'N';
16977
16977
  const TRANS_STAT_CLOSED = 'C';
16978
16978
  const TRANS_STAT_OPENED = 'O';
16979
16979
  class DataView extends DataViewBase {
16980
+ set InsertAt(value) {
16981
+ this._insertAt = value;
16982
+ }
16983
+ get InsertAt() {
16984
+ return this._insertAt;
16985
+ }
16986
+ get CurrRec() {
16987
+ return this._currRec_DO_NOT_USE_DIRECTLY_USE_SETTER_GETTER;
16988
+ }
16989
+ set CurrRec(value) {
16990
+ if (this._currRec_DO_NOT_USE_DIRECTLY_USE_SETTER_GETTER !== null && value === null) {
16991
+ this._currRec_DO_NOT_USE_DIRECTLY_USE_SETTER_GETTER.resetDcValueId();
16992
+ }
16993
+ this._currRec_DO_NOT_USE_DIRECTLY_USE_SETTER_GETTER = value;
16994
+ if (this._currRec_DO_NOT_USE_DIRECTLY_USE_SETTER_GETTER !== null) {
16995
+ this._currRec_DO_NOT_USE_DIRECTLY_USE_SETTER_GETTER.SetDcValueId();
16996
+ }
16997
+ }
16998
+ get FlushUpdates() {
16999
+ return this._flushUpdates;
17000
+ }
17001
+ get HasMainTable() {
17002
+ return this._hasMainTable;
17003
+ }
17004
+ get CurrentRecId() {
17005
+ return this._currRecId;
17006
+ }
17007
+ get FirstRecord() {
17008
+ return this._recordsTab.getRecByIdx(0);
17009
+ }
17010
+ get LastRecord() {
17011
+ return this._recordsTab.getRecByIdx(this._recordsTab.getSize() - 1);
17012
+ }
16980
17013
  constructor(taskOrDataView) {
16981
17014
  super();
16982
17015
  this._cacheLruTimeStamp = 0;
@@ -17028,39 +17061,6 @@ class DataView extends DataViewBase {
17028
17061
  Object.assign(this, taskOrDataView);
17029
17062
  }
17030
17063
  }
17031
- set InsertAt(value) {
17032
- this._insertAt = value;
17033
- }
17034
- get InsertAt() {
17035
- return this._insertAt;
17036
- }
17037
- get CurrRec() {
17038
- return this._currRec_DO_NOT_USE_DIRECTLY_USE_SETTER_GETTER;
17039
- }
17040
- set CurrRec(value) {
17041
- if (this._currRec_DO_NOT_USE_DIRECTLY_USE_SETTER_GETTER !== null && value === null) {
17042
- this._currRec_DO_NOT_USE_DIRECTLY_USE_SETTER_GETTER.resetDcValueId();
17043
- }
17044
- this._currRec_DO_NOT_USE_DIRECTLY_USE_SETTER_GETTER = value;
17045
- if (this._currRec_DO_NOT_USE_DIRECTLY_USE_SETTER_GETTER !== null) {
17046
- this._currRec_DO_NOT_USE_DIRECTLY_USE_SETTER_GETTER.SetDcValueId();
17047
- }
17048
- }
17049
- get FlushUpdates() {
17050
- return this._flushUpdates;
17051
- }
17052
- get HasMainTable() {
17053
- return this._hasMainTable;
17054
- }
17055
- get CurrentRecId() {
17056
- return this._currRecId;
17057
- }
17058
- get FirstRecord() {
17059
- return this._recordsTab.getRecByIdx(0);
17060
- }
17061
- get LastRecord() {
17062
- return this._recordsTab.getRecByIdx(this._recordsTab.getSize() - 1);
17063
- }
17064
17064
  Init() {
17065
17065
  this.init();
17066
17066
  }
@@ -18633,6 +18633,12 @@ class ReturnResultBase {
18633
18633
  }
18634
18634
 
18635
18635
  class ReturnResult extends ReturnResultBase {
18636
+ get Success() {
18637
+ return this.success;
18638
+ }
18639
+ get ErrorDescription() {
18640
+ return this.errorDescription;
18641
+ }
18636
18642
  constructor(errorDescriptionCodeOrErrorDescriptionOrInnerResult, innerResult) {
18637
18643
  super();
18638
18644
  this.errorDescription = null;
@@ -18647,12 +18653,6 @@ class ReturnResult extends ReturnResultBase {
18647
18653
  else
18648
18654
  this.constructor_03(errorDescriptionCodeOrErrorDescriptionOrInnerResult);
18649
18655
  }
18650
- get Success() {
18651
- return this.success;
18652
- }
18653
- get ErrorDescription() {
18654
- return this.errorDescription;
18655
- }
18656
18656
  constructor_00(errorDescriptionCode) {
18657
18657
  this.success = false;
18658
18658
  this.ErrorId = errorDescriptionCode;
@@ -18752,13 +18752,13 @@ class Transaction {
18752
18752
  }
18753
18753
 
18754
18754
  class TaskTransactionManager {
18755
+ get isClosingTopmostTask() {
18756
+ return MGDataCollection.Instance.StartupMgData.getFirstTask().InEndTask;
18757
+ }
18755
18758
  constructor(task) {
18756
18759
  this.task = null;
18757
18760
  this.task = task;
18758
18761
  }
18759
- get isClosingTopmostTask() {
18760
- return MGDataCollection.Instance.StartupMgData.getFirstTask().InEndTask;
18761
- }
18762
18762
  AllowTransaction(transBegin, forLocal) {
18763
18763
  let result;
18764
18764
  if (forLocal)
@@ -19102,12 +19102,6 @@ class RemoteDataviewManager extends DataviewManagerBase {
19102
19102
  }
19103
19103
 
19104
19104
  class DataviewManager extends DataviewManagerBase {
19105
- constructor(task) {
19106
- super(task);
19107
- this.RemoteDataviewManager = null;
19108
- this.HasRemoteData = true;
19109
- this.RemoteDataviewManager = new RemoteDataviewManager(task);
19110
- }
19111
19105
  get TaskService() {
19112
19106
  return this.Task.TaskService;
19113
19107
  }
@@ -19122,6 +19116,12 @@ class DataviewManager extends DataviewManagerBase {
19122
19116
  get VirtualDataviewManager() {
19123
19117
  return this.TaskService.GetDataviewManagerForVirtuals(this.Task);
19124
19118
  }
19119
+ constructor(task) {
19120
+ super(task);
19121
+ this.RemoteDataviewManager = null;
19122
+ this.HasRemoteData = true;
19123
+ this.RemoteDataviewManager = new RemoteDataviewManager(task);
19124
+ }
19125
19125
  async Execute(command) {
19126
19126
  return await this.CurrentDataviewManager.Execute(command);
19127
19127
  }
@@ -22272,13 +22272,6 @@ class UserEventsTable {
22272
22272
  }
22273
22273
 
22274
22274
  class FormsTable {
22275
- constructor(task, parentForm) {
22276
- this._task = null;
22277
- this._parentForm = null;
22278
- this._formsStringXml = null;
22279
- this._task = task;
22280
- this._parentForm = parentForm;
22281
- }
22282
22275
  get Count() {
22283
22276
  return this._formsStringXml.length;
22284
22277
  }
@@ -22287,6 +22280,13 @@ class FormsTable {
22287
22280
  return this._formsStringXml.get_Item(formDisplayIndex - 1);
22288
22281
  return null;
22289
22282
  }
22283
+ constructor(task, parentForm) {
22284
+ this._task = null;
22285
+ this._parentForm = null;
22286
+ this._formsStringXml = null;
22287
+ this._task = task;
22288
+ this._parentForm = parentForm;
22289
+ }
22290
22290
  async fillData() {
22291
22291
  this._formsStringXml = new List();
22292
22292
  let parser = Manager.GetCurrentRuntimeContext().Parser;
@@ -22476,6 +22476,47 @@ var Task_Direction;
22476
22476
  Task_Direction[Task_Direction["FORE"] = 1] = "FORE";
22477
22477
  })(Task_Direction || (Task_Direction = {}));
22478
22478
  class Task extends TaskBase {
22479
+ get ParentTask() {
22480
+ return this._parentTask;
22481
+ }
22482
+ set TryingToCommit(value) {
22483
+ this._tryingToCommit = value;
22484
+ }
22485
+ get TryingToCommit() {
22486
+ return this._tryingToCommit;
22487
+ }
22488
+ get TaskService() {
22489
+ if (this._taskService == null)
22490
+ this._taskService = new RemoteTaskService();
22491
+ return this._taskService;
22492
+ }
22493
+ static get CommandsProcessor() {
22494
+ return CommandsProcessorManager.GetCommandsProcessor();
22495
+ }
22496
+ get LogicalStudioParentTask() {
22497
+ if (this.StudioParentTask === null && !super.isMainProg()) {
22498
+ return GuiDataCollection.MGDataTable.GetMainProgByCtlIdx(this.ContextID, this._ctlIdx);
22499
+ }
22500
+ return this.StudioParentTask;
22501
+ }
22502
+ get KnownToServer() {
22503
+ return this._knownToServer;
22504
+ }
22505
+ set Transaction(value) {
22506
+ this.DataviewManager.CurrentDataviewManager.Transaction = value;
22507
+ }
22508
+ get Transaction() {
22509
+ return this.DataviewManager.CurrentDataviewManager.Transaction;
22510
+ }
22511
+ get TaskDefinitionId() {
22512
+ if (this.taskDefinitionId === null) {
22513
+ this.taskDefinitionId = new TaskDefinitionId(this._ctlIdx, this.ProgramIsn, this.TaskIsn, this._isPrg);
22514
+ }
22515
+ return this.taskDefinitionId;
22516
+ }
22517
+ static get IsBlockingBatch() {
22518
+ return false;
22519
+ }
22479
22520
  constructor(parent) {
22480
22521
  super();
22481
22522
  this._dvCache = null;
@@ -22544,47 +22585,6 @@ class Task extends TaskBase {
22544
22585
  }
22545
22586
  this.constructor_1(parent);
22546
22587
  }
22547
- get ParentTask() {
22548
- return this._parentTask;
22549
- }
22550
- set TryingToCommit(value) {
22551
- this._tryingToCommit = value;
22552
- }
22553
- get TryingToCommit() {
22554
- return this._tryingToCommit;
22555
- }
22556
- get TaskService() {
22557
- if (this._taskService == null)
22558
- this._taskService = new RemoteTaskService();
22559
- return this._taskService;
22560
- }
22561
- static get CommandsProcessor() {
22562
- return CommandsProcessorManager.GetCommandsProcessor();
22563
- }
22564
- get LogicalStudioParentTask() {
22565
- if (this.StudioParentTask === null && !super.isMainProg()) {
22566
- return GuiDataCollection.MGDataTable.GetMainProgByCtlIdx(this.ContextID, this._ctlIdx);
22567
- }
22568
- return this.StudioParentTask;
22569
- }
22570
- get KnownToServer() {
22571
- return this._knownToServer;
22572
- }
22573
- set Transaction(value) {
22574
- this.DataviewManager.CurrentDataviewManager.Transaction = value;
22575
- }
22576
- get Transaction() {
22577
- return this.DataviewManager.CurrentDataviewManager.Transaction;
22578
- }
22579
- get TaskDefinitionId() {
22580
- if (this.taskDefinitionId === null) {
22581
- this.taskDefinitionId = new TaskDefinitionId(this._ctlIdx, this.ProgramIsn, this.TaskIsn, this._isPrg);
22582
- }
22583
- return this.taskDefinitionId;
22584
- }
22585
- static get IsBlockingBatch() {
22586
- return false;
22587
- }
22588
22588
  constructor_0() {
22589
22589
  this.ActionManager = new ActionManager();
22590
22590
  this.DataView = new DataView(this);
@@ -24981,6 +24981,9 @@ class CompMainPrgTable {
24981
24981
  }
24982
24982
 
24983
24983
  class MGData {
24984
+ get ForceModal() {
24985
+ return this.forceModal;
24986
+ }
24984
24987
  constructor(toClient, toServer, id, parent, isModal, forceModal) {
24985
24988
  this._expHandlers = null;
24986
24989
  this._id = 0;
@@ -25001,9 +25004,6 @@ class MGData {
25001
25004
  else
25002
25005
  this.constructor_1(id, parent, isModal, forceModal);
25003
25006
  }
25004
- get ForceModal() {
25005
- return this.forceModal;
25006
- }
25007
25007
  constructor_0(id, parent, isModal) {
25008
25008
  this._timerHandlers = new HandlersTable();
25009
25009
  this._expHandlers = new HandlersTable();
@@ -29005,13 +29005,6 @@ class VerifyCommand extends ClientTargetedCommandBase {
29005
29005
  }
29006
29006
 
29007
29007
  class EnhancedVerifyCommand extends VerifyCommand {
29008
- constructor() {
29009
- super();
29010
- this._buttonsID = '\0';
29011
- this._image = '\0';
29012
- this._returnValStr = null;
29013
- this._returnVal = null;
29014
- }
29015
29008
  async ProcessMessageBoxResponse(task, returnValue) {
29016
29009
  if (task !== null)
29017
29010
  await Operation.setoperVerifyReturnValue(returnValue, this._returnVal);
@@ -29042,6 +29035,13 @@ class EnhancedVerifyCommand extends VerifyCommand {
29042
29035
  break;
29043
29036
  }
29044
29037
  }
29038
+ constructor() {
29039
+ super();
29040
+ this._buttonsID = '\0';
29041
+ this._image = '\0';
29042
+ this._returnValStr = null;
29043
+ this._returnVal = null;
29044
+ }
29045
29045
  }
29046
29046
 
29047
29047
  class ResetRangeCommand extends ClientTargetedCommandBase {
@@ -29138,12 +29138,6 @@ class ResetLocateCommand extends ClientTargetedCommandBase {
29138
29138
  }
29139
29139
 
29140
29140
  class ResultCommand extends ClientTargetedCommandBase {
29141
- constructor() {
29142
- super();
29143
- this._isNull = false;
29144
- this._attr = StorageAttribute.NONE;
29145
- this._val = null;
29146
- }
29147
29141
  async Execute(res) {
29148
29142
  if (this._isNull)
29149
29143
  res.SetResultValue(null, StorageAttribute.NONE);
@@ -29169,6 +29163,12 @@ class ResultCommand extends ClientTargetedCommandBase {
29169
29163
  break;
29170
29164
  }
29171
29165
  }
29166
+ constructor() {
29167
+ super();
29168
+ this._isNull = false;
29169
+ this._attr = StorageAttribute.NONE;
29170
+ this._val = null;
29171
+ }
29172
29172
  }
29173
29173
 
29174
29174
  class AddSortCommand extends ClientTargetedCommandBase {
@@ -29533,19 +29533,9 @@ class CommandsTable {
29533
29533
  }
29534
29534
  }
29535
29535
 
29536
- let CurrentClientVersion = '4.1000.0-dev4100.108';
29536
+ let CurrentClientVersion = '4.1000.0-dev4100.113';
29537
29537
 
29538
29538
  class ClientManager {
29539
- constructor() {
29540
- this._globalUniqueSessionId = null;
29541
- this._buttonIsClicked = false;
29542
- RuntimeContextBase.Instance.Init(RemoteCommandsProcessor.RC_NO_CONTEXT_ID);
29543
- LastFocusedManager.Instance.Init(MGDataCollection.Instance);
29544
- LastFocusedManager.Instance.LastActionTime = Misc.getSystemMilliseconds();
29545
- RemoteCommandsProcessor.ShouldScrambleAndUnscrambleMessages = true;
29546
- this._globalUniqueSessionId = UniqueIDUtils.GetUniqueMachineID() + "_";
29547
- this.RegisterDelegates();
29548
- }
29549
29539
  static get Instance() {
29550
29540
  if (ClientManager._instance === null)
29551
29541
  ClientManager._instance = new ClientManager();
@@ -29745,6 +29735,16 @@ class ClientManager {
29745
29735
  Logger.Instance.WriteToLog("-----------------------------------------------------------------------------", true);
29746
29736
  }
29747
29737
  }
29738
+ constructor() {
29739
+ this._globalUniqueSessionId = null;
29740
+ this._buttonIsClicked = false;
29741
+ RuntimeContextBase.Instance.Init(RemoteCommandsProcessor.RC_NO_CONTEXT_ID);
29742
+ LastFocusedManager.Instance.Init(MGDataCollection.Instance);
29743
+ LastFocusedManager.Instance.LastActionTime = Misc.getSystemMilliseconds();
29744
+ RemoteCommandsProcessor.ShouldScrambleAndUnscrambleMessages = true;
29745
+ this._globalUniqueSessionId = UniqueIDUtils.GetUniqueMachineID() + "_";
29746
+ this.RegisterDelegates();
29747
+ }
29748
29748
  InitGuiManager() {
29749
29749
  Manager.EventsManager = EventsManager.Instance;
29750
29750
  Manager.DefaultServerName = ServerConfig.Instance.getServer();