@magic-xpa/gui 4.800.0 → 4.801.0-dev000.0

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 (128) hide show
  1. package/{esm2015/index.js → esm2020/index.mjs} +0 -0
  2. package/{esm2015/magic-xpa-gui.js → esm2020/magic-xpa-gui.mjs} +0 -0
  3. package/esm2020/src/Commands.mjs +186 -0
  4. package/esm2020/src/Events.mjs +420 -0
  5. package/esm2020/src/EventsProcessor.mjs +67 -0
  6. package/esm2020/src/FocusManager.mjs +34 -0
  7. package/{esm2015/src/GuiConstants.js → esm2020/src/GuiConstants.mjs} +0 -0
  8. package/{esm2015/src/GuiEnums.js → esm2020/src/GuiEnums.mjs} +0 -0
  9. package/{esm2015/src/GuiEnvironment.js → esm2020/src/GuiEnvironment.mjs} +0 -0
  10. package/{esm2015/src/IFlowMonitorQueue.js → esm2020/src/IFlowMonitorQueue.mjs} +2 -1
  11. package/esm2020/src/Manager.mjs +192 -0
  12. package/{esm2015/src/UIBridge.js → esm2020/src/UIBridge.mjs} +0 -0
  13. package/{esm2015/src/env/IEnvironment.js → esm2020/src/env/IEnvironment.mjs} +1 -0
  14. package/{esm2015/src/gui/ControlBase.js → esm2020/src/gui/ControlBase.mjs} +0 -0
  15. package/{esm2015/src/gui/GuiMgControl.js → esm2020/src/gui/GuiMgControl.mjs} +0 -0
  16. package/{esm2015/src/gui/GuiMgForm.js → esm2020/src/gui/GuiMgForm.mjs} +0 -0
  17. package/{esm2015/src/gui/KeyboardItem.js → esm2020/src/gui/KeyboardItem.mjs} +0 -0
  18. package/{esm2015/src/gui/LastFocusedVal.js → esm2020/src/gui/LastFocusedVal.mjs} +0 -0
  19. package/{esm2015/src/gui/MgValue.js → esm2020/src/gui/MgValue.mjs} +0 -0
  20. package/{esm2015/src/gui/PropParentInterface.js → esm2020/src/gui/PropParentInterface.mjs} +1 -0
  21. package/{esm2015/src/gui/low/DialogHandler.js → esm2020/src/gui/low/DialogHandler.mjs} +0 -0
  22. package/{esm2015/src/gui/low/GuiCommand.js → esm2020/src/gui/low/GuiCommand.mjs} +0 -0
  23. package/{esm2015/src/gui/low/GuiCommandQueue.js → esm2020/src/gui/low/GuiCommandQueue.mjs} +0 -0
  24. package/esm2020/src/gui/low/GuiInteractive.mjs +545 -0
  25. package/{esm2015/src/gui/low/Style.js → esm2020/src/gui/low/Style.mjs} +0 -0
  26. package/{esm2015/src/management/RuntimeContextBase.js → esm2020/src/management/RuntimeContextBase.mjs} +0 -0
  27. package/{esm2015/src/management/data/BlobType.js → esm2020/src/management/data/BlobType.mjs} +0 -0
  28. package/esm2020/src/management/data/DcValues.mjs +214 -0
  29. package/esm2020/src/management/data/DcValuesBuilderBase.mjs +97 -0
  30. package/{esm2015/src/management/data/FieldDef.js → esm2020/src/management/data/FieldDef.mjs} +0 -0
  31. package/{esm2015/src/management/data/FieldsTable.js → esm2020/src/management/data/FieldsTable.mjs} +0 -0
  32. package/esm2020/src/management/data/GuiDataViewBase.mjs +90 -0
  33. package/esm2020/src/management/data/GuiFieldBase.mjs +82 -0
  34. package/{esm2015/src/management/data/IRecord.js → esm2020/src/management/data/IRecord.mjs} +1 -0
  35. package/{esm2015/src/management/data/IReferencedObject.js → esm2020/src/management/data/IReferencedObject.mjs} +1 -0
  36. package/{esm2015/src/management/data/NUM_TYPE.js → esm2020/src/management/data/NUM_TYPE.mjs} +0 -0
  37. package/esm2020/src/management/data/ObjectReferenceBase.mjs +48 -0
  38. package/{esm2015/src/management/data/ObjectReferencesCollection.js → esm2020/src/management/data/ObjectReferencesCollection.mjs} +0 -0
  39. package/esm2020/src/management/data/RecordUtils.mjs +361 -0
  40. package/{esm2015/src/management/data/VectorType.js → esm2020/src/management/data/VectorType.mjs} +0 -0
  41. package/{esm2015/src/management/data/VectorTypeBase.js → esm2020/src/management/data/VectorTypeBase.mjs} +0 -0
  42. package/{esm2015/src/management/events/IActionManager.js → esm2020/src/management/events/IActionManager.mjs} +1 -0
  43. package/esm2020/src/management/events/IGuiEventsManager.mjs +2 -0
  44. package/{esm2015/src/management/exp/ExpressionInterface.js → esm2020/src/management/exp/ExpressionInterface.mjs} +0 -0
  45. package/esm2020/src/management/exp/GuiExpressionEvaluator.mjs +333 -0
  46. package/{esm2015/src/management/gui/ControlTable.js → esm2020/src/management/gui/ControlTable.mjs} +0 -0
  47. package/esm2020/src/management/gui/DisplayConvertor.mjs +1706 -0
  48. package/esm2020/src/management/gui/FieldValidator.mjs +1507 -0
  49. package/esm2020/src/management/gui/GuiControlPropertyAdapter.mjs +22 -0
  50. package/{esm2015/src/management/gui/GuiFormPropertyAdapter.js → esm2020/src/management/gui/GuiFormPropertyAdapter.mjs} +0 -0
  51. package/{esm2015/src/management/gui/HebrewDate.js → esm2020/src/management/gui/HebrewDate.mjs} +0 -0
  52. package/{esm2015/src/management/gui/Helps.js → esm2020/src/management/gui/Helps.mjs} +0 -0
  53. package/esm2020/src/management/gui/MgControlBase.mjs +1873 -0
  54. package/esm2020/src/management/gui/MgFormBase.mjs +748 -0
  55. package/{esm2015/src/management/gui/PIC.js → esm2020/src/management/gui/PIC.mjs} +0 -0
  56. package/esm2020/src/management/gui/PropDefaults.mjs +230 -0
  57. package/{esm2015/src/management/gui/PropInterface.js → esm2020/src/management/gui/PropInterface.mjs} +0 -0
  58. package/esm2020/src/management/gui/PropTable.mjs +221 -0
  59. package/esm2020/src/management/gui/Property.mjs +1382 -0
  60. package/{esm2015/src/management/gui/ValidationDetails.js → esm2020/src/management/gui/ValidationDetails.mjs} +0 -0
  61. package/{esm2015/src/management/gui/ValidationDetailsBase.js → esm2020/src/management/gui/ValidationDetailsBase.mjs} +0 -0
  62. package/{esm2015/src/management/gui/WrongFormatException.js → esm2020/src/management/gui/WrongFormatException.mjs} +0 -0
  63. package/{esm2015/src/management/tasks/GuiDataCollection.js → esm2020/src/management/tasks/GuiDataCollection.mjs} +0 -0
  64. package/esm2020/src/management/tasks/GuiTaskBase.mjs +502 -0
  65. package/{esm2015/src/management/tasks/IMGDataTable.js → esm2020/src/management/tasks/IMGDataTable.mjs} +1 -0
  66. package/{esm2015/src/management/tasks/ITask.js → esm2020/src/management/tasks/ITask.mjs} +1 -0
  67. package/esm2020/src/management/tasks/MgTimer.mjs +21 -0
  68. package/{esm2015/src/management/tasks/TaskDefinitionId.js → esm2020/src/management/tasks/TaskDefinitionId.mjs} +0 -0
  69. package/esm2020/src/management/tasks/TaskDefinitionIdTableSaxHandler.mjs +41 -0
  70. package/{esm2015/src/util/AuthenticationDialogHandler.js → esm2020/src/util/AuthenticationDialogHandler.mjs} +0 -0
  71. package/{esm2015/src/util/MemoryUtil.js → esm2020/src/util/MemoryUtil.mjs} +0 -0
  72. package/{esm2015/src/util/ObjectReference.js → esm2020/src/util/ObjectReference.mjs} +0 -0
  73. package/esm2020/src/util/ProcessLauncher.mjs +32 -0
  74. package/esm2020/src/util/UsernamePasswordCredentials.mjs +52 -0
  75. package/fesm2015/{magic-xpa-gui.js → magic-xpa-gui.mjs} +133 -175
  76. package/fesm2015/magic-xpa-gui.mjs.map +1 -0
  77. package/fesm2020/magic-xpa-gui.mjs +17805 -0
  78. package/fesm2020/magic-xpa-gui.mjs.map +1 -0
  79. package/package.json +27 -14
  80. package/src/Events.d.ts +2 -2
  81. package/src/EventsProcessor.d.ts +1 -1
  82. package/src/IFlowMonitorQueue.d.ts +1 -1
  83. package/src/Manager.d.ts +2 -3
  84. package/src/management/data/DcValues.d.ts +1 -1
  85. package/src/management/data/DcValuesBuilderBase.d.ts +1 -1
  86. package/src/management/data/RecordUtils.d.ts +0 -3
  87. package/src/management/events/IGuiEventsManager.d.ts +5 -5
  88. package/src/management/exp/GuiExpressionEvaluator.d.ts +2 -2
  89. package/src/management/gui/DisplayConvertor.d.ts +6 -6
  90. package/src/management/gui/GuiControlPropertyAdapter.d.ts +6 -6
  91. package/src/management/gui/MgControlBase.d.ts +2 -4
  92. package/src/management/gui/MgFormBase.d.ts +1 -1
  93. package/src/management/gui/PropTable.d.ts +1 -1
  94. package/src/management/gui/Property.d.ts +2 -2
  95. package/src/management/tasks/GuiTaskBase.d.ts +3 -3
  96. package/src/util/ProcessLauncher.d.ts +1 -3
  97. package/bundles/magic-xpa-gui.umd.js +0 -19431
  98. package/bundles/magic-xpa-gui.umd.js.map +0 -1
  99. package/bundles/magic-xpa-gui.umd.min.js +0 -16
  100. package/bundles/magic-xpa-gui.umd.min.js.map +0 -1
  101. package/esm2015/src/Commands.js +0 -189
  102. package/esm2015/src/Events.js +0 -420
  103. package/esm2015/src/EventsProcessor.js +0 -68
  104. package/esm2015/src/FocusManager.js +0 -41
  105. package/esm2015/src/Manager.js +0 -197
  106. package/esm2015/src/gui/low/GuiInteractive.js +0 -545
  107. package/esm2015/src/management/data/DcValues.js +0 -214
  108. package/esm2015/src/management/data/DcValuesBuilderBase.js +0 -97
  109. package/esm2015/src/management/data/GuiDataViewBase.js +0 -90
  110. package/esm2015/src/management/data/GuiFieldBase.js +0 -85
  111. package/esm2015/src/management/data/ObjectReferenceBase.js +0 -48
  112. package/esm2015/src/management/data/RecordUtils.js +0 -447
  113. package/esm2015/src/management/events/IGuiEventsManager.js +0 -1
  114. package/esm2015/src/management/exp/GuiExpressionEvaluator.js +0 -333
  115. package/esm2015/src/management/gui/DisplayConvertor.js +0 -1706
  116. package/esm2015/src/management/gui/FieldValidator.js +0 -1507
  117. package/esm2015/src/management/gui/GuiControlPropertyAdapter.js +0 -4
  118. package/esm2015/src/management/gui/MgControlBase.js +0 -1981
  119. package/esm2015/src/management/gui/MgFormBase.js +0 -763
  120. package/esm2015/src/management/gui/PropDefaults.js +0 -230
  121. package/esm2015/src/management/gui/PropTable.js +0 -224
  122. package/esm2015/src/management/gui/Property.js +0 -1402
  123. package/esm2015/src/management/tasks/GuiTaskBase.js +0 -506
  124. package/esm2015/src/management/tasks/MgTimer.js +0 -21
  125. package/esm2015/src/management/tasks/TaskDefinitionIdTableSaxHandler.js +0 -41
  126. package/esm2015/src/util/ProcessLauncher.js +0 -32
  127. package/esm2015/src/util/UsernamePasswordCredentials.js +0 -52
  128. package/fesm2015/magic-xpa-gui.js.map +0 -1
@@ -1,7 +1,6 @@
1
1
  import { __awaiter } from 'tslib';
2
- import { Debug, StringBuilder, NString, Int32, List, StackFrame, ApplicationException, Encoding, ISO_8859_1_Encoding, NNumber, NumberStyles, RefParam, DateTime, Hashtable, Exception, NChar, NumberFormatInfo, Stack, Dictionary, StackTrace, NotImplementedException } from '@magic-xpa/mscorelib';
3
- import { OSEnvironment, MgControlType, CtrlButtonTypeGui, CheckboxMainStyle, RbAppearance, UtilStrByteMode, UtilImeJpn, StrUtil, Logger, StorageAttribute, PICInterface, MsgInterface, SEQ_2_HTML, HTML_2_STR, Constants, Randomizer, UtilDateJpn, DateUtil, Misc, Base64, XmlParser, StorageAttributeCheck, XMLConstants, JSON_Utils, ListboxSelectionMode, TransMode, Logger_LogLevels, MagicProperties, ChoiceUtils, SEQ_2_STR, InternalInterface, WindowType, TabbingOrderType, Rtf, HelpType } from '@magic-xpa/utils';
4
- import { isNullOrUndefined } from 'util';
2
+ import { Debug, StringBuilder, NString, Int32, List, StackFrame, ApplicationException, Encoding, ISO_8859_1_Encoding, NNumber, NumberStyles, RefParam, DateTime, isNullOrUndefined, Hashtable, Exception, NChar, NumberFormatInfo, Stack, Dictionary, StackTrace, NotImplementedException } from '@magic-xpa/mscorelib';
3
+ import { OSEnvironment, MgControlType, CtrlButtonTypeGui, CheckboxMainStyle, RbAppearance, UtilStrByteMode, UtilImeJpn, StrUtil, Logger, StorageAttribute, PICInterface, MsgInterface, SEQ_2_HTML, HTML_2_STR, Constants, Randomizer, UtilDateJpn, DateUtil, Base64, XmlParser, StorageAttributeCheck, XMLConstants, JSON_Utils, ListboxSelectionMode, TransMode, Logger_LogLevels, Misc, MagicProperties, ChoiceUtils, SEQ_2_STR, InternalInterface, WindowType, TabbingOrderType, Rtf, HelpType } from '@magic-xpa/utils';
5
4
  import { timer } from 'rxjs';
6
5
 
7
6
  class MgValue {
@@ -300,12 +299,12 @@ class Events {
300
299
  }
301
300
  static SaveLastClickedCtrlName(guiMgControl, controlName) {
302
301
  if (Events.SaveLastClickedCtrlEvent !== null) {
303
- Events.SaveLastClickedCtrlEvent(guiMgControl, controlName);
302
+ Events.SaveLastClickedCtrlEvent(controlName);
304
303
  }
305
304
  }
306
305
  static SaveLastClickInfo(guiMgForm, controlName, x, y, offsetX, offsetY, lastClickCoordinatesAreInPixels) {
307
306
  if (Events.SaveLastClickInfoEvent !== null) {
308
- Events.SaveLastClickInfoEvent(guiMgForm, controlName, x, y, offsetX, offsetY, lastClickCoordinatesAreInPixels);
307
+ Events.SaveLastClickInfoEvent(controlName, x, y, offsetX, offsetY, lastClickCoordinatesAreInPixels);
309
308
  }
310
309
  }
311
310
  static WriteErrorToLog(msg) {
@@ -875,13 +874,13 @@ class GuiInteractiveBase {
875
874
  this._obj1 = guiMgForm;
876
875
  this.Invoke();
877
876
  }
878
- isFormActive(guiMgForm) {
877
+ isFormActive() {
879
878
  if (arguments.length === 1)
880
- return this.isFormActive_0(guiMgForm);
879
+ return this.isFormActive_0();
881
880
  else
882
881
  this.isFormActive_1();
883
882
  }
884
- isFormActive_0(guiMgForm) {
883
+ isFormActive_0() {
885
884
  return this._boolVal;
886
885
  }
887
886
  GetRtfValueBeforeEnteringControl(guiMgControl, line) {
@@ -1661,7 +1660,7 @@ class Commands {
1661
1660
  return __awaiter(this, void 0, void 0, function* () {
1662
1661
  let guiInteractive = new GuiInteractive();
1663
1662
  let returnValue;
1664
- yield new Promise((resolve, reject) => {
1663
+ yield new Promise((resolve) => {
1665
1664
  this.SetResolveCallback(resolve);
1666
1665
  guiInteractive.messageBox(title, msg, style);
1667
1666
  }).then((res) => { returnValue = res; });
@@ -2089,13 +2088,13 @@ class Manager {
2089
2088
  static GetDelayWait() {
2090
2089
  return Manager._delayWait;
2091
2090
  }
2092
- static CanFocus(guiMgControl) {
2091
+ static CanFocus() {
2093
2092
  return false;
2094
2093
  }
2095
2094
  static Init(startupImageFileName) {
2096
2095
  return;
2097
2096
  }
2098
- static Abort(form, mainPrgTask) {
2097
+ static Abort(form) {
2099
2098
  if (form.getSubFormCtrl() === null && form.Opened) {
2100
2099
  if (form.isDialog()) {
2101
2100
  this.IsOverlayOpen = false;
@@ -2153,12 +2152,12 @@ class Manager {
2153
2152
  static ClearStatusBar(task) {
2154
2153
  let currentParkedControl = task.getLastParkedCtrl();
2155
2154
  if (currentParkedControl !== null && !NString.IsNullOrEmpty(currentParkedControl.PromptHelp))
2156
- task.WriteToMessagePane(currentParkedControl.PromptHelp, false);
2155
+ task.WriteToMessagePane(currentParkedControl.PromptHelp);
2157
2156
  else
2158
2157
  Manager.CleanMessagePane(task);
2159
2158
  }
2160
2159
  static CleanMessagePane(task) {
2161
- task.WriteToMessagePane(Manager.GetCurrentRuntimeContext().DefaultStatusMsg, false);
2160
+ task.WriteToMessagePane(Manager.GetCurrentRuntimeContext().DefaultStatusMsg);
2162
2161
  }
2163
2162
  static GetMessage(msg) {
2164
2163
  if (msg === null)
@@ -2257,7 +2256,7 @@ class ContextIDGuard {
2257
2256
  }
2258
2257
  }
2259
2258
  SaveFilename() {
2260
- let stackFrame = new StackFrame(1, true);
2259
+ let stackFrame = new StackFrame(1);
2261
2260
  this._fileName = stackFrame.GetFileName();
2262
2261
  }
2263
2262
  Dispose() {
@@ -6033,7 +6032,7 @@ class DisplayConvertor {
6033
6032
  case StorageAttribute.TIME: {
6034
6033
  if (useNative) {
6035
6034
  let dt;
6036
- dt = this.fromMgTimeToNativeTime(mgValue, pic, time_date_num_pic_Z_edt);
6035
+ dt = this.fromMgTimeToNativeTime(mgValue, pic);
6037
6036
  return dt;
6038
6037
  }
6039
6038
  else {
@@ -6055,7 +6054,7 @@ class DisplayConvertor {
6055
6054
  }
6056
6055
  return str;
6057
6056
  }
6058
- disp2mg(dispValue, rangeStr, pic, compIdx, blobContentType) {
6057
+ disp2mg(dispValue, pic, compIdx, blobContentType) {
6059
6058
  let str = "";
6060
6059
  switch (pic.getAttr()) {
6061
6060
  case StorageAttribute.ALPHA:
@@ -6092,7 +6091,7 @@ class DisplayConvertor {
6092
6091
  dt = new Date(dispValue);
6093
6092
  else
6094
6093
  dt = dispValue;
6095
- str = this.fromNativeDateToMgDate(dt, pic, compIdx);
6094
+ str = this.fromNativeDateToMgDate(dt, pic);
6096
6095
  }
6097
6096
  break;
6098
6097
  case StorageAttribute.TIME:
@@ -6109,7 +6108,7 @@ class DisplayConvertor {
6109
6108
  }
6110
6109
  else
6111
6110
  dt = dispValue;
6112
- str = this.fromNativeTimeToMgTime(dt, pic);
6111
+ str = this.fromNativeTimeToMgTime(dt);
6113
6112
  }
6114
6113
  break;
6115
6114
  case StorageAttribute.BOOLEAN:
@@ -6283,7 +6282,7 @@ class DisplayConvertor {
6283
6282
  let nativeDt = new Date(breakParams.year, breakParams.month, breakParams.day);
6284
6283
  return nativeDt;
6285
6284
  }
6286
- fromNativeDateToMgDateNumber(nativeDate, pic, compIdx) {
6285
+ fromNativeDateToMgDateNumber(nativeDate, pic) {
6287
6286
  let mgNum = new NUM_TYPE();
6288
6287
  let numVal;
6289
6288
  let dateParams;
@@ -6308,9 +6307,9 @@ class DisplayConvertor {
6308
6307
  }
6309
6308
  return numVal;
6310
6309
  }
6311
- fromNativeDateToMgDate(nativeDate, pic, compIdx) {
6310
+ fromNativeDateToMgDate(nativeDate, pic) {
6312
6311
  let mgNum = new NUM_TYPE();
6313
- let numVal = nativeDate == null ? 0 : this.fromNativeDateToMgDateNumber(nativeDate, pic, compIdx);
6312
+ let numVal = nativeDate == null ? 0 : this.fromNativeDateToMgDateNumber(nativeDate, pic);
6314
6313
  mgNum.NUM_4_LONG(numVal);
6315
6314
  return mgNum.toXMLrecord();
6316
6315
  }
@@ -6703,7 +6702,7 @@ class DisplayConvertor {
6703
6702
  outVal[outIdx] = ext[1];
6704
6703
  return (ret);
6705
6704
  }
6706
- fromMgTimeToNativeTime(dataStr, pic, time_date_pic_Z_edt) {
6705
+ fromMgTimeToNativeTime(dataStr, pic) {
6707
6706
  let mask = pic.getMask();
6708
6707
  let maskSize = pic.getMaskSize();
6709
6708
  let time = new NUM_TYPE(dataStr).NUM_2_ULONG();
@@ -7255,13 +7254,13 @@ class DisplayConvertor {
7255
7254
  }
7256
7255
  return num * 146097 + num2 * 36524 + num3 * 1461 + year * 365 + doy;
7257
7256
  }
7258
- fromNativeTimeToMgTime(dispValue, pic) {
7257
+ fromNativeTimeToMgTime(dispValue) {
7259
7258
  let mgNum = new NUM_TYPE();
7260
- let numVal = this.fromNativeTimeToMgTimeNumber(dispValue, pic);
7259
+ let numVal = this.fromNativeTimeToMgTimeNumber(dispValue);
7261
7260
  mgNum.NUM_4_LONG(numVal);
7262
7261
  return mgNum.toXMLrecord();
7263
7262
  }
7264
- fromNativeTimeToMgTimeNumber(dispValue, pic) {
7263
+ fromNativeTimeToMgTimeNumber(dispValue) {
7265
7264
  let numVal = this.time_2_int(dispValue.getHours(), dispValue.getMinutes(), dispValue.getSeconds());
7266
7265
  return numVal;
7267
7266
  }
@@ -7763,91 +7762,6 @@ class RecordUtils {
7763
7762
  return RecordUtils.byteStreamToString(new StringBuilder(stream));
7764
7763
  }
7765
7764
  static serializeItemVal(itemVal, itemAttr, cellAttr, toBase64) {
7766
- if (arguments.length === 2)
7767
- return RecordUtils.serializeItemVal_0(itemVal, itemAttr);
7768
- else
7769
- return RecordUtils.serializeItemVal_1(itemVal, itemAttr, cellAttr, toBase64);
7770
- }
7771
- static serializeItemVal_0(itemVal, itemAttr) {
7772
- Debug.Assert(itemVal !== null);
7773
- let valueSize;
7774
- let tmpBufLen = NString.Empty;
7775
- let tmpBuf = null;
7776
- let contentWithLength = null;
7777
- let pos = 0;
7778
- let fldValLen = 0;
7779
- let tempItemVal = NString.Empty;
7780
- let noOfPackets = 0;
7781
- let tmpNoOfPackets = null;
7782
- let tmpStrNoOfPackets = NString.Empty;
7783
- switch (itemAttr) {
7784
- case StorageAttribute.NUMERIC:
7785
- case StorageAttribute.DATE:
7786
- case StorageAttribute.TIME:
7787
- let numType = new NUM_TYPE(itemVal);
7788
- tmpBuf = Misc.ToByteArray(numType.Data);
7789
- break;
7790
- case StorageAttribute.BOOLEAN:
7791
- tmpBuf = GuiEnvironment.Environment.GetEncoding().GetBytes(itemVal);
7792
- break;
7793
- case StorageAttribute.ALPHA:
7794
- itemVal = StrUtil.rtrim(itemVal);
7795
- valueSize = UtilStrByteMode.lenB(itemVal).toString(16).toUpperCase();
7796
- for (let j = 0; j < 4 - valueSize.length; j++)
7797
- tmpBufLen += "0";
7798
- tmpBufLen += valueSize;
7799
- tmpBuf = new Uint8Array(GuiEnvironment.Environment.GetEncoding().GetBytes(tmpBufLen).length + GuiEnvironment.Environment.GetEncoding().GetBytes(itemVal).length);
7800
- tmpBuf.set(GuiEnvironment.Environment.GetEncoding().GetBytes(tmpBufLen), 0);
7801
- tmpBuf.set(GuiEnvironment.Environment.GetEncoding().GetBytes(itemVal), GuiEnvironment.Environment.GetEncoding().GetBytes(tmpBufLen).length);
7802
- break;
7803
- case StorageAttribute.UNICODE:
7804
- itemVal = StrUtil.rtrim(itemVal);
7805
- valueSize = (itemVal.length.toString(16)).toUpperCase();
7806
- for (let j = 0; j < 4 - valueSize.length; j++)
7807
- tmpBufLen += "0";
7808
- tmpBufLen += valueSize;
7809
- tmpBuf = new Uint8Array(GuiEnvironment.Environment.GetEncoding().GetBytes(tmpBufLen).length + GuiEnvironment.Environment.GetEncoding().GetBytes(itemVal).length);
7810
- tmpBuf.set(GuiEnvironment.Environment.GetEncoding().GetBytes(tmpBufLen), 0);
7811
- tmpBuf.set(GuiEnvironment.Environment.GetEncoding().GetBytes(itemVal), GuiEnvironment.Environment.GetEncoding().GetBytes(tmpBufLen).length);
7812
- break;
7813
- case StorageAttribute.BLOB:
7814
- pos = 0;
7815
- fldValLen = ISO_8859_1_Encoding.ISO_8859_1.GetByteCount(itemVal);
7816
- noOfPackets = Math.floor(fldValLen / 0xFFFF);
7817
- tmpBufLen = "FFFF";
7818
- tmpNoOfPackets = GuiEnvironment.Environment.GetEncoding().GetBytes(tmpBufLen);
7819
- for (let i = 0; i < noOfPackets; i++) {
7820
- tempItemVal = itemVal.substr(pos, 0xFFFF);
7821
- pos += 0xFFFF;
7822
- let tempItemValBytes = ISO_8859_1_Encoding.ISO_8859_1.GetBytes(tempItemVal);
7823
- contentWithLength = new Uint8Array(tmpNoOfPackets.length + tempItemValBytes.length);
7824
- contentWithLength.set(tmpNoOfPackets);
7825
- contentWithLength.set(tempItemValBytes, tmpNoOfPackets.length);
7826
- }
7827
- let lastPacketSize = fldValLen % 0xFFFF;
7828
- if (lastPacketSize > 0) {
7829
- tempItemVal = itemVal.substr(pos, (fldValLen) - (pos));
7830
- let tempItemValBytes = ISO_8859_1_Encoding.ISO_8859_1.GetBytes(tempItemVal);
7831
- tmpBufLen = NString.Format(String.fromCharCode(tempItemValBytes.length), "X4");
7832
- let tempContentWithLength = new Uint8Array(contentWithLength.length +
7833
- GuiEnvironment.Environment.GetEncoding().GetBytes(tmpBufLen).length +
7834
- ISO_8859_1_Encoding.ISO_8859_1.GetBytes(tempItemVal).length);
7835
- tempContentWithLength.set(contentWithLength);
7836
- tempContentWithLength.set(GuiEnvironment.Environment.GetEncoding().GetBytes(tmpBufLen), contentWithLength.length);
7837
- tempContentWithLength.set(ISO_8859_1_Encoding.ISO_8859_1.GetBytes(tempItemVal), contentWithLength.length + GuiEnvironment.Environment.GetEncoding().GetBytes(tmpBufLen).length);
7838
- contentWithLength = tempContentWithLength;
7839
- noOfPackets++;
7840
- }
7841
- tmpStrNoOfPackets = NString.Format(String.fromCharCode(noOfPackets), "D4");
7842
- tmpNoOfPackets = GuiEnvironment.Environment.GetEncoding().GetBytes(tmpStrNoOfPackets);
7843
- tmpBuf = new Uint8Array(contentWithLength.length + tmpNoOfPackets.length);
7844
- tmpBuf.set(tmpNoOfPackets);
7845
- tmpBuf.set(contentWithLength, tmpNoOfPackets.length);
7846
- break;
7847
- }
7848
- return tmpBuf;
7849
- }
7850
- static serializeItemVal_1(itemVal, itemAttr, cellAttr, toBase64) {
7851
7765
  Debug.Assert(itemVal != null);
7852
7766
  let significantNumSize = GuiEnvironment.Environment.GetSignificantNumSize() * 2;
7853
7767
  let valueSize;
@@ -9283,12 +9197,42 @@ class TaskDefinitionIdTableSaxHandler {
9283
9197
  }
9284
9198
 
9285
9199
  class GuiControlPropertyAdapter extends GuiMgControl {
9200
+ updatePropertyLogicNesting(propId, commandType, val, updateThis) {
9201
+ return __awaiter(this, void 0, void 0, function* () {
9202
+ return Promise.resolve();
9203
+ });
9204
+ }
9205
+ refreshAndSetItemsList(line, execComputeChoice) {
9206
+ return __awaiter(this, void 0, void 0, function* () {
9207
+ return Promise.resolve();
9208
+ });
9209
+ }
9210
+ refreshTabForLayerList(line) {
9211
+ return __awaiter(this, void 0, void 0, function* () {
9212
+ return Promise.resolve();
9213
+ });
9214
+ }
9215
+ ComputeAndRefreshDisplayValue(forceRefresh) {
9216
+ return __awaiter(this, void 0, void 0, function* () {
9217
+ return Promise.resolve();
9218
+ });
9219
+ }
9220
+ refreshDispRange(execComputeChoice) {
9221
+ return __awaiter(this, void 0, void 0, function* () {
9222
+ return Promise.resolve([]);
9223
+ });
9224
+ }
9225
+ isParkable(checkEnabledAndVisible) {
9226
+ return __awaiter(this, void 0, void 0, function* () {
9227
+ return Promise.resolve(true);
9228
+ });
9229
+ }
9286
9230
  }
9287
9231
 
9288
9232
  class PropDefaults {
9289
9233
  static getNumericMgValue(propParent, Value) {
9290
9234
  let pic = new PIC("3", StorageAttribute.NUMERIC, propParent.getCompIdx());
9291
- return DisplayConvertor.Instance.disp2mg(Value, "", pic, propParent.getCompIdx(), BlobType.CONTENT_TYPE_UNKNOWN);
9235
+ return DisplayConvertor.Instance.disp2mg(Value, pic, propParent.getCompIdx(), BlobType.CONTENT_TYPE_UNKNOWN);
9292
9236
  }
9293
9237
  static getDefaultValueForTask(propId, handled) {
9294
9238
  let val = null;
@@ -9498,7 +9442,7 @@ class PropDefaults {
9498
9442
  val = this.getNumericMgValue(propParent, "0");
9499
9443
  break;
9500
9444
  default:
9501
- Debug.Assert(false, "Undefined default value", NString.Format("No default value was defined for property {0} ({1}).", PropDefaults.GetPropertyName(propId), propId));
9445
+ Debug.Assert(false, "Undefined default value");
9502
9446
  break;
9503
9447
  }
9504
9448
  return val;
@@ -10310,7 +10254,7 @@ class Property {
10310
10254
  this.onHint();
10311
10255
  break;
10312
10256
  case PropInterface.PROP_TYPE_MODIFIABLE:
10313
- yield this.onModifiable(valChanged);
10257
+ yield this.onModifiable();
10314
10258
  break;
10315
10259
  case PropInterface.PROP_TYPE_TOOLTIP:
10316
10260
  this.onTooltip();
@@ -10396,9 +10340,11 @@ class Property {
10396
10340
  this.setValue(result);
10397
10341
  }
10398
10342
  if (this._id === PropInterface.PROP_TYPE_CUSTOM_VALIDATORS) {
10399
- yield this.computeCustomValidators();
10400
- result = this.GetArrayValuesForCustomValidationProperties();
10401
- this.setValue(result);
10343
+ let evaluated = yield this.computeCustomValidators();
10344
+ if (evaluated) {
10345
+ result = this.GetArrayValuesForCustomValidationProperties();
10346
+ this.setValue(result);
10347
+ }
10402
10348
  }
10403
10349
  else if (this._expId > 0) {
10404
10350
  if (this.ShouldBeComputedOnce() && this._expAlreadyComputedOnce)
@@ -10604,7 +10550,7 @@ class Property {
10604
10550
  onText(line) {
10605
10551
  this.addCommandTypeText(line);
10606
10552
  }
10607
- onModifiable(valChanged) {
10553
+ onModifiable() {
10608
10554
  return __awaiter(this, void 0, void 0, function* () {
10609
10555
  if (this._parentType === GuiConstants.PARENT_TYPE_CONTROL) {
10610
10556
  let ctrl = this._parentObj;
@@ -10730,7 +10676,7 @@ class Property {
10730
10676
  }
10731
10677
  return result;
10732
10678
  }
10733
- static isRepeatableInTable(propId) {
10679
+ static isRepeatableInTable() {
10734
10680
  return false;
10735
10681
  }
10736
10682
  getLine() {
@@ -10764,7 +10710,7 @@ class Property {
10764
10710
  let mgControlBase = this._parentObj;
10765
10711
  if (mgControlBase.IsRepeatable)
10766
10712
  size = mgControlBase.getForm().getTableItemsCount();
10767
- else if (mgControlBase.isTableControl() && Property.isRepeatableInTable(this._id))
10713
+ else if (mgControlBase.isTableControl() && Property.isRepeatableInTable())
10768
10714
  size = mgControlBase.getForm().getTableItemsCount();
10769
10715
  }
10770
10716
  this._prevValues.SetSize(size);
@@ -10790,6 +10736,7 @@ class Property {
10790
10736
  computeCustomValidators() {
10791
10737
  return __awaiter(this, void 0, void 0, function* () {
10792
10738
  let mgControl = this._parentObj;
10739
+ let evaluated = true;
10793
10740
  if (mgControl.ModifiedByUser || mgControl.ValidateControl || this.GetTaskByParentObject().IsInRecompute()) {
10794
10741
  for (let [customPropertyKey, customValidatorProperty] of this.customValidatorProperties) {
10795
10742
  let len = 255;
@@ -10805,9 +10752,17 @@ class Property {
10805
10752
  else
10806
10753
  errString = customValidatorProperty._errorMessage;
10807
10754
  }
10755
+ evaluated = true;
10808
10756
  this.customValidatorValues.set(customPropertyKey, new CustomValidator(!InValid, errString));
10809
10757
  }
10810
10758
  }
10759
+ else {
10760
+ if (mgControl.isRepeatable()) {
10761
+ this.customValidatorValues.clear();
10762
+ evaluated = false;
10763
+ }
10764
+ }
10765
+ return evaluated;
10811
10766
  });
10812
10767
  }
10813
10768
  onCustomProperties() {
@@ -10888,9 +10843,9 @@ class Property {
10888
10843
  prop = new Property(propId, propParent, parentType, mgVal);
10889
10844
  return prop;
10890
10845
  }
10891
- InsertPrevValueArray(idx, count) {
10846
+ InsertPrevValueArray(count) {
10892
10847
  if (!this.ShouldSkipRefresh())
10893
- this._prevValues.InsertRange(idx, new Array(count));
10848
+ this._prevValues.InsertRange(new Array(count));
10894
10849
  }
10895
10850
  }
10896
10851
  Property._numericPropertyPic = null;
@@ -11064,7 +11019,7 @@ class PropTable {
11064
11019
  for (i = 0; i < this.getSize(); i++) {
11065
11020
  prop = this.getProp(i);
11066
11021
  try {
11067
- if (onlyRepeatableProps && !Property.isRepeatableInTable(prop.getID()))
11022
+ if (onlyRepeatableProps && !Property.isRepeatableInTable())
11068
11023
  continue;
11069
11024
  if (prop.getID() === PropInterface.PROP_TYPE_VISIBLE)
11070
11025
  visibleProps.push(prop);
@@ -11113,10 +11068,10 @@ class PropTable {
11113
11068
  getCtrlRef() {
11114
11069
  return ((this._parent instanceof GuiControlPropertyAdapter) ? this._parent : null);
11115
11070
  }
11116
- InsertPrevValueArray(idx, count) {
11071
+ InsertPrevValueArray(count) {
11117
11072
  for (let i = 0; i < this._props.length; i++) {
11118
11073
  let prop = this._props[i];
11119
- prop.InsertPrevValueArray(idx, count);
11074
+ prop.InsertPrevValueArray(count);
11120
11075
  }
11121
11076
  }
11122
11077
  }
@@ -11517,14 +11472,14 @@ class FieldValidator {
11517
11472
  if (this._valDet.getIsNegative() && (this._newvalue.trim().startsWith("-") || (this._valDet.getNegativeSignPref().length !== 0 && this._newvalue.trim().startsWith(this._valDet.getNegativeSignPref())))) {
11518
11473
  evaluated = "-" + evaluated;
11519
11474
  }
11520
- evaluated = DisplayConvertor.Instance.disp2mg(this._newvalue, "", this._valDet.getPIC(), this._valDet.getControl().getForm().getTask().getCompIdx(), BlobType.CONTENT_TYPE_UNKNOWN);
11475
+ evaluated = DisplayConvertor.Instance.disp2mg(this._newvalue, this._valDet.getPIC(), this._valDet.getControl().getForm().getTask().getCompIdx(), BlobType.CONTENT_TYPE_UNKNOWN);
11521
11476
  evaluated = DisplayConvertor.Instance.mg2disp(evaluated, "", this._valDet.getPIC(), true, this._valDet.getControl().getForm().getTask().getCompIdx(), true);
11522
11477
  let tempDispVal = StrUtil.ltrim(evaluated);
11523
11478
  if (tempDispVal.length === 0 && this._valDet.getPIC().zeroFill() && this._valDet.getPIC().getZeroPad() === ' ')
11524
11479
  evaluated = "0";
11525
11480
  }
11526
11481
  else {
11527
- evaluated = DisplayConvertor.Instance.disp2mg(this._newvalue, "", this._valDet.getPIC(), this._valDet.getControl().getForm().getTask().getCompIdx(), BlobType.CONTENT_TYPE_UNKNOWN);
11482
+ evaluated = DisplayConvertor.Instance.disp2mg(this._newvalue, this._valDet.getPIC(), this._valDet.getControl().getForm().getTask().getCompIdx(), BlobType.CONTENT_TYPE_UNKNOWN);
11528
11483
  evaluated = DisplayConvertor.Instance.mg2disp(evaluated, "", this._valDet.getPIC(), true, this._valDet.getControl().getForm().getTask().getCompIdx(), true);
11529
11484
  }
11530
11485
  if (this._valDet.getContinuousRangeValues() != null || this._valDet.getDiscreteRangeValues() != null) {
@@ -12056,7 +12011,7 @@ class FieldValidator {
12056
12011
  let i;
12057
12012
  let downDate;
12058
12013
  let topDate;
12059
- let currDate = DisplayConvertor.Instance.fromNativeDateToMgDateNumber(buffer, pic, this._valDet.getControl().getForm().getTask().getCompIdx());
12014
+ let currDate = DisplayConvertor.Instance.fromNativeDateToMgDateNumber(buffer, pic);
12060
12015
  this.setValidationFailed(false);
12061
12016
  if (ContinuousRange != null) {
12062
12017
  for (i = 0; i < ContinuousRange.length - 1; i++) {
@@ -12495,7 +12450,7 @@ class FieldValidator {
12495
12450
  }
12496
12451
  fillTimeByRange(ContinuousRange, DiscreteRange, buffer) {
12497
12452
  let pic = this._valDet.getPIC();
12498
- let currTime = DisplayConvertor.Instance.fromNativeTimeToMgTimeNumber(buffer, pic);
12453
+ let currTime = DisplayConvertor.Instance.fromNativeTimeToMgTimeNumber(buffer);
12499
12454
  let downTime, topTime;
12500
12455
  let i;
12501
12456
  this.setValidationFailed(false);
@@ -12535,7 +12490,7 @@ class FieldValidator {
12535
12490
  ctrlType = this._valDet.getControl().Type;
12536
12491
  if (ctrlType !== MgControlType.CTRL_TYPE_BUTTON && ctrlType !== MgControlType.CTRL_TYPE_RADIO && !this._valDet.getControl().isSelectionCtrl()) {
12537
12492
  let msgString = message.ToString();
12538
- this._valDet.getControl().getForm().getTask().WriteToMessagePane(StrUtil.makePrintable2(msgString), true);
12493
+ this._valDet.getControl().getForm().getTask().WriteToMessagePane(StrUtil.makePrintable2(msgString));
12539
12494
  this._valDet.getControl().getForm().ErrorOccured = !NString.IsNullOrEmpty(msgString);
12540
12495
  this._valDet.ErrorMessage = message.ToString();
12541
12496
  }
@@ -12890,7 +12845,7 @@ class ValidationDetails extends ValidationDetailsBase {
12890
12845
  const EMPTY_DCREF = -2;
12891
12846
  const NOT_FOUND = GuiConstants.DEFAULT_VALUE_INT;
12892
12847
  class DcValues {
12893
- constructor(empty, isVector) {
12848
+ constructor(empty) {
12894
12849
  this._id = 0;
12895
12850
  this._type = StorageAttribute.NONE;
12896
12851
  this._refCount = 0;
@@ -13172,8 +13127,6 @@ class MgControlBase extends GuiControlPropertyAdapter {
13172
13127
  this._ditIdx = 0;
13173
13128
  this._linkedControls = null;
13174
13129
  this._field = null;
13175
- this._nodeIdField = null;
13176
- this._nodeParentIdField = null;
13177
13130
  this._picStr = null;
13178
13131
  this._choiceDisps = null;
13179
13132
  this._choiceLayerList = null;
@@ -13323,23 +13276,23 @@ class MgControlBase extends GuiControlPropertyAdapter {
13323
13276
  }
13324
13277
  }
13325
13278
  }
13326
- SetFocus(ctrl, line, refreshPrompt, activateForm) {
13279
+ SetFocus(ctrl, line, activateForm) {
13327
13280
  return __awaiter(this, void 0, void 0, function* () {
13328
13281
  yield FocusManager.SetFocus(ctrl.getForm().getTask(), ctrl, line, activateForm);
13329
13282
  });
13330
13283
  }
13331
13284
  InsertArrays(idx, count) {
13332
- this._prevValues.InsertRange(idx, new Array(count));
13333
- this._prevIsNulls.InsertRange(idx, new Array(count));
13334
- this._currReadOnly.InsertRange(idx, new Array(count));
13335
- this._choiceDisps.InsertRange(idx, new Array(count));
13336
- this._orgChoiceDisps.InsertRange(idx, new Array(count));
13337
- this._choiceLinks.InsertRange(idx, new Array(count));
13338
- this._choiceLayerList.InsertRange(idx, new Array(count));
13339
- this._choiceNums.InsertRange(idx, new Array(count));
13285
+ this._prevValues.InsertRange(new Array(count));
13286
+ this._prevIsNulls.InsertRange(new Array(count));
13287
+ this._currReadOnly.InsertRange(new Array(count));
13288
+ this._choiceDisps.InsertRange(new Array(count));
13289
+ this._orgChoiceDisps.InsertRange(new Array(count));
13290
+ this._choiceLinks.InsertRange(new Array(count));
13291
+ this._choiceLayerList.InsertRange(new Array(count));
13292
+ this._choiceNums.InsertRange(new Array(count));
13340
13293
  if (this.SupportsDataSource())
13341
- this._dcTableRefs.InsertRange(idx, new Array(count));
13342
- this._propTab.InsertPrevValueArray(idx, count);
13294
+ this._dcTableRefs.InsertRange(new Array(count));
13295
+ this._propTab.InsertPrevValueArray(count);
13343
13296
  }
13344
13297
  updateArrays(newSize) {
13345
13298
  this._prevValues.SetSize(newSize);
@@ -13897,7 +13850,7 @@ class MgControlBase extends GuiControlPropertyAdapter {
13897
13850
  case StorageAttribute.TIME:
13898
13851
  let picture = PIC.buildPicture(dataType, token, task.getCompIdx(), false);
13899
13852
  optionsValid = this.optionIsValid(token);
13900
- choiceLink[i] = DisplayConvertor.Instance.disp2mg(token.trim(), choiceLinkStr, picture, task.getCompIdx(), BlobType.CONTENT_TYPE_UNKNOWN);
13853
+ choiceLink[i] = DisplayConvertor.Instance.disp2mg(token.trim(), picture, task.getCompIdx(), BlobType.CONTENT_TYPE_UNKNOWN);
13901
13854
  ((this._choiceNums.get_Item(line)))[i] = new NUM_TYPE(choiceLink[i]);
13902
13855
  break;
13903
13856
  case StorageAttribute.BOOLEAN:
@@ -13967,7 +13920,7 @@ class MgControlBase extends GuiControlPropertyAdapter {
13967
13920
  }
13968
13921
  else {
13969
13922
  let blobContentType = (this._field !== null) ? this._field.getContentType() : BlobType.CONTENT_TYPE_UNKNOWN;
13970
- mgVal = DisplayConvertor.Instance.disp2mg(dispVal, this._range, this._pic, this.getForm().getTask().getCompIdx(), blobContentType);
13923
+ mgVal = DisplayConvertor.Instance.disp2mg(dispVal, this._pic, this.getForm().getTask().getCompIdx(), blobContentType);
13971
13924
  }
13972
13925
  }
13973
13926
  return mgVal;
@@ -14428,7 +14381,7 @@ class MgControlBase extends GuiControlPropertyAdapter {
14428
14381
  return true;
14429
14382
  }
14430
14383
  else {
14431
- return super.isTableControl() && Property.isRepeatableInTable(propId);
14384
+ return super.isTableControl() && Property.isRepeatableInTable();
14432
14385
  }
14433
14386
  }
14434
14387
  SetAndRefreshDisplayValue(mgVal, isNull) {
@@ -14814,7 +14767,7 @@ class MgControlBase extends GuiControlPropertyAdapter {
14814
14767
  refreshAndSetItemsListForRadioButton(line, execComputeChoice) {
14815
14768
  return __awaiter(this, void 0, void 0, function* () {
14816
14769
  let displayList = yield this.refreshDispRange(execComputeChoice);
14817
- let options = displayList.map((displayValue, counter, arr) => {
14770
+ let options = displayList.map((displayValue, counter) => {
14818
14771
  let index = counter.toString();
14819
14772
  return { index, displayValue };
14820
14773
  });
@@ -14833,7 +14786,7 @@ class MgControlBase extends GuiControlPropertyAdapter {
14833
14786
  }
14834
14787
  let optionsStrings = yield this.refreshDispRange(execComputeChoice);
14835
14788
  if (_super.isSelectionCtrl.call(this) || _super.isTabControl.call(this) || this.HasAutocomplete()) {
14836
- let options = optionsStrings.map((displayValue, index, arr) => {
14789
+ let options = optionsStrings.map((displayValue, index) => {
14837
14790
  return { index, displayValue };
14838
14791
  });
14839
14792
  Commands.addOperationWithLine(CommandType.SET_PROPERTY, this, line, HtmlProperties.ItemsList, options);
@@ -15015,7 +14968,7 @@ class MgControlBase extends GuiControlPropertyAdapter {
15015
14968
  setDcValId(dcValId) {
15016
14969
  this._dcValId = dcValId;
15017
14970
  }
15018
- SetKeyboardLanguage(restoreLang) {
14971
+ SetKeyboardLanguage() {
15019
14972
  Commands.beginInvoke();
15020
14973
  }
15021
14974
  Init() {
@@ -15819,8 +15772,8 @@ class MgFormBase extends GuiFormPropertyAdapter {
15819
15772
  }
15820
15773
  }
15821
15774
  GetListOfInputControls() {
15822
- let filterterList = this.CtrlTab.filter(((c, index, array) => this.IsInputType(c)));
15823
- let names = filterterList.reduce((pre, ctrl, i) => {
15775
+ let filterterList = this.CtrlTab.filter(((c) => this.IsInputType(c)));
15776
+ let names = filterterList.reduce((pre, ctrl) => {
15824
15777
  pre[ctrl.UniqueName] = ctrl.IsRepeatable ? '1' : '0';
15825
15778
  return pre;
15826
15779
  }, {});
@@ -15850,7 +15803,7 @@ class MgFormBase extends GuiFormPropertyAdapter {
15850
15803
  this.InitTableControl_0();
15851
15804
  return;
15852
15805
  }
15853
- this.InitTableControl_1(dvSize, tableItemsCount, removeAll);
15806
+ this.InitTableControl_1(dvSize, tableItemsCount);
15854
15807
  }
15855
15808
  UpdateTableChildrenArraysSize(size) {
15856
15809
  let children = this.TableChildren;
@@ -15866,7 +15819,7 @@ class MgFormBase extends GuiFormPropertyAdapter {
15866
15819
  toString() {
15867
15820
  return '{GuiMgForm' + ': Id=' + this._userStateId + '}';
15868
15821
  }
15869
- IncludeControlInTabbingOrder(control, includeControlChildOfFrameForm) {
15822
+ IncludeControlInTabbingOrder(control) {
15870
15823
  if (!control.PropertyExists(PropInterface.PROP_TYPE_TAB_ORDER))
15871
15824
  return false;
15872
15825
  return true;
@@ -15949,7 +15902,7 @@ class MgFormBase extends GuiFormPropertyAdapter {
15949
15902
  InitTableControl_0() {
15950
15903
  this.InitTableControl(1, 1, false);
15951
15904
  }
15952
- InitTableControl_1(dvSize, tableItemsCount, removeAll) {
15905
+ InitTableControl_1(dvSize, tableItemsCount) {
15953
15906
  if (this._tableMgControl != null) {
15954
15907
  Commands.addWithNumber(CommandType.SET_TABLE_ITEMS_COUNT, this._tableMgControl, tableItemsCount);
15955
15908
  this._tableItemsCount = tableItemsCount;
@@ -16001,7 +15954,7 @@ class EventsProcessor {
16001
15954
  Events.CloseFormEvent = this.processFormClose;
16002
15955
  Events.ColumnClickEvent = this.ProcessColumnClick;
16003
15956
  }
16004
- processKeyDown(guiMgForm, guiMgCtrl, modifier, keyCode, start, end, text, isActChar, suggestedValue, ComboIsDropDown, handled) {
15957
+ processKeyDown(guiMgForm, guiMgCtrl, modifier, keyCode, start, end, text, isActChar, suggestedValue, handled) {
16005
15958
  let eventHandled = handled;
16006
15959
  let mgControlBase = guiMgCtrl;
16007
15960
  let mgFormBase = guiMgForm;
@@ -16012,7 +15965,7 @@ class EventsProcessor {
16012
15965
  let clrHandledEvent = false;
16013
15966
  let mgFormBase = guiMgForm;
16014
15967
  if (MgFormBase.ShouldPutActOnFormClose())
16015
- Manager.EventsManager.addGuiTriggeredEventTaskAndCodeAndRaisedBy(mgFormBase.getTask(), InternalInterface.MG_ACT_HIT, RaisedBy.CLOSE_SYSTEM_MENU);
15968
+ Manager.EventsManager.addGuiTriggeredEventTaskAndCodeAndRaisedBy(mgFormBase.getTask(), InternalInterface.MG_ACT_HIT);
16016
15969
  Manager.EventsManager.addGuiTriggeredEventWithTaskAndCode(mgFormBase.getTask(), InternalInterface.MG_ACT_CLOSE);
16017
15970
  return clrHandledEvent;
16018
15971
  }
@@ -16020,7 +15973,7 @@ class EventsProcessor {
16020
15973
  let mgControl = guiMgCtrl;
16021
15974
  if (mgControl === null) {
16022
15975
  Debug.Assert(guiMgForm !== null);
16023
- Manager.EventsManager.addGuiTriggeredEventWithTaskAndCodeAndOnMultiMark(guiMgForm.getTask(), InternalInterface.MG_ACT_HIT, onMultiMark);
15976
+ Manager.EventsManager.addGuiTriggeredEventWithTaskAndCodeAndOnMultiMark(guiMgForm.getTask(), InternalInterface.MG_ACT_HIT);
16024
15977
  }
16025
15978
  else {
16026
15979
  if (mgControl.isSubform()) {
@@ -16301,8 +16254,8 @@ RuntimeContextBase.noContextId = null;
16301
16254
  RuntimeContextBase.Instance = new RuntimeContextBase();
16302
16255
 
16303
16256
  class DcValuesBuilderBase {
16304
- CreateDcValues(isVector) {
16305
- return new DcValues(false, isVector);
16257
+ CreateDcValues() {
16258
+ return new DcValues(false);
16306
16259
  }
16307
16260
  SetId(dcValues, newId) {
16308
16261
  dcValues.SetID(newId);
@@ -16448,8 +16401,8 @@ class GuiDataViewBase {
16448
16401
  this._emptyDataview = false;
16449
16402
  this._fieldsTab = null;
16450
16403
  this._task = null;
16451
- this._emptyChoice = new DcValues(true, false);
16452
- this._emptyChoiceForVectors = new DcValues(true, true);
16404
+ this._emptyChoice = new DcValues(true);
16405
+ this._emptyChoiceForVectors = new DcValues(true);
16453
16406
  }
16454
16407
  getField(id) {
16455
16408
  if (this._fieldsTab != null)
@@ -16544,13 +16497,13 @@ class ObjectReferenceBase {
16544
16497
  this.Dispose_0();
16545
16498
  return;
16546
16499
  }
16547
- this.Dispose_1(isDisposing);
16500
+ this.Dispose_1();
16548
16501
  }
16549
16502
  Dispose_0() {
16550
16503
  Logger.Instance.WriteDevToLog("Disposing " + this);
16551
16504
  this.Dispose(true);
16552
16505
  }
16553
- Dispose_1(isDisposing) {
16506
+ Dispose_1() {
16554
16507
  if (!this.isDisposed) {
16555
16508
  if (!this.Referent.HasReferences) {
16556
16509
  if (Logger.Instance.LogLevel >= Logger_LogLevels.Development) {
@@ -16863,12 +16816,12 @@ class GuiExpressionEvaluator {
16863
16816
  if (task.getForm() === null && Manager.GetCurrentRuntimeContext().FrameForm !== null) {
16864
16817
  task = Manager.GetCurrentRuntimeContext().FrameForm.getTask();
16865
16818
  }
16866
- task.WriteToMessagePane(text, false);
16819
+ task.WriteToMessagePane(text);
16867
16820
  Manager.GetCurrentRuntimeContext().DefaultStatusMsg = text;
16868
16821
  }
16869
16822
  }
16870
16823
  }
16871
- IsParallel(task) {
16824
+ IsParallel() {
16872
16825
  return false;
16873
16826
  }
16874
16827
  eval_op_browserExecute_DO(resVal, controlName, text, sync, language) {
@@ -17479,7 +17432,7 @@ class GuiTaskBase {
17479
17432
  if (this.getMode() !== val) {
17480
17433
  this.setProp(PropInterface.PROP_TYPE_TASK_MODE, val);
17481
17434
  if (this._flowMonitor !== null)
17482
- this._flowMonitor.addTaskCngMode(this.ContextID, val, this.GetTaskDetails());
17435
+ this._flowMonitor.addTaskCngMode(val, this.GetTaskDetails());
17483
17436
  }
17484
17437
  }
17485
17438
  getMode() {
@@ -17725,7 +17678,7 @@ class GuiTaskBase {
17725
17678
  let result = null;
17726
17679
  wasEvaluated.value = false;
17727
17680
  if (alwaysEvaluate || this.DataViewWasRetrieved) {
17728
- result = yield this.CalculateExpression(expId, resType, length, contentTypeUnicode, resCellType);
17681
+ result = yield this.CalculateExpression(expId, resType, length);
17729
17682
  wasEvaluated.value = true;
17730
17683
  }
17731
17684
  return result;
@@ -17734,6 +17687,11 @@ class GuiTaskBase {
17734
17687
  GetExpressionStorage(expId) {
17735
17688
  return this.GetExpressionStorage(expId);
17736
17689
  }
17690
+ CalculateExpression(expId, resType, length) {
17691
+ return __awaiter(this, void 0, void 0, function* () {
17692
+ return Promise.resolve('');
17693
+ });
17694
+ }
17737
17695
  isStarted() {
17738
17696
  return true;
17739
17697
  }
@@ -17883,13 +17841,13 @@ class GuiTaskBase {
17883
17841
  ShouldEvaluatePropertyLocally(propId) {
17884
17842
  return false;
17885
17843
  }
17886
- WriteToMessagePane(msg, soundBeep) {
17844
+ WriteToMessagePane(msg) {
17887
17845
  if (msg != null)
17888
17846
  console.log(msg);
17889
17847
  }
17890
- WriteToMessagePanebyMsgId(msgId, soundBeep) {
17848
+ WriteToMessagePanebyMsgId(msgId) {
17891
17849
  let msg = Events.GetMessageString(msgId);
17892
- this.WriteToMessagePane(msg, soundBeep);
17850
+ this.WriteToMessagePane(msg);
17893
17851
  }
17894
17852
  }
17895
17853
  GuiTaskBase.MAIN_PRG_PARENT_ID = 32768;
@@ -17905,7 +17863,7 @@ class MgTimer {
17905
17863
  }
17906
17864
  Start() {
17907
17865
  var timer1 = timer(this._timerIntervalMilliSeconds, this._timerIntervalMilliSeconds);
17908
- this._threadTimer = timer1.subscribe(state => MgTimer.Run(this));
17866
+ this._threadTimer = timer1.subscribe(() => MgTimer.Run(this));
17909
17867
  }
17910
17868
  Stop() {
17911
17869
  this._threadTimer.unsubscribe();
@@ -17946,11 +17904,11 @@ class ChangePasswordCredentials extends UsernamePasswordCredentials {
17946
17904
  this.constructor_2();
17947
17905
  return;
17948
17906
  }
17949
- this.constructor_3(oldUserName, newUserName, password);
17907
+ this.constructor_3(newUserName);
17950
17908
  }
17951
17909
  constructor_2() {
17952
17910
  }
17953
- constructor_3(oldUserName, newUserName, password) {
17911
+ constructor_3(newUserName) {
17954
17912
  this.NewUserName = newUserName;
17955
17913
  }
17956
17914
  ToString() {
@@ -17997,7 +17955,7 @@ class AuthenticationDialogHandler extends DialogHandler {
17997
17955
  }
17998
17956
 
17999
17957
  class ProcessLauncher {
18000
- static InvokeOS(command, wait, show, errMsg, exitCode) {
17958
+ static InvokeOS() {
18001
17959
  return -1;
18002
17960
  }
18003
17961
  static SeparateParams(cmd) {
@@ -18029,4 +17987,4 @@ class ProcessLauncher {
18029
17987
  }
18030
17988
 
18031
17989
  export { AuthenticationDialogHandler, BlobType, CellElement, ChangePasswordCredentials, ClipFormats, CommandType, Commands, ContextIDGuard, ControlBase, ControlTable, CustomValidator, CustomValidatorProp, DataModificationTypes, DateBreakParams, DateElement, DcValues, DcValuesBuilderBase, DialogHandler, DisplayConvertor, DockingStyle, EMPTY_DCREF, EditReturnCode, Events, EventsProcessor, ExpVal, ExpressionInterface, FieldDef, FieldValidator, FieldsTable, FocusManager, GuiCommand, GuiCommandQueue, GuiConstants, GuiControlPropertyAdapter, GuiDataCollection, GuiDataViewBase, GuiEnvironment, GuiExpressionEvaluator, GuiExpressionEvaluator_ControlsPersistencyClearOption, GuiFieldBase, GuiFormPropertyAdapter, GuiInteractive, GuiInteractiveBase, GuiMgControl, GuiMgForm, GuiTaskBase, HebrewDate, Helps, HtmlProperties, InteractiveCommandType, InternalHelp, KeyboardItem, LastFocusedVal, MagicHelp, Manager, MarkMode, MemoryUtil, MenuEntryProgram_SrcContext, MenuStyle, MgCheckState, MgControlBase, MgCursors, MgFormBase, MgTimer, MgValue, Modifiers, NOT_FOUND, NUM_TYPE, ObjectReference, ObjectReferenceBase, ObjectReferencesCollection, OperData, OverlayType, PIC, ProcessLauncher, PromptpHelp, PropDefaults, PropInterface, PropTable, Property, RaisedBy, RecordUtils, Row, RuntimeContextBase, Styles, TaskDefinitionId, TaskDefinitionIdTableSaxHandler, TimeBreakParams, ToolTipHelp, TraverseMode, UIBridge, URLHelp, UsernamePasswordCredentials, ValidationDetails, ValidationDetailsBase, VectorType, VectorTypeBase, WindowsHelp, WrongFormatException };
18032
- //# sourceMappingURL=magic-xpa-gui.js.map
17990
+ //# sourceMappingURL=magic-xpa-gui.mjs.map