@magic-xpa/gui 4.901.0-dev491.323 → 4.901.0-dev491.324

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.
@@ -524,7 +524,6 @@ var InteractiveCommandType;
524
524
  InteractiveCommandType[InteractiveCommandType["GET_MAX_ROWS_IN_PAGINATED_TABLE"] = 11] = "GET_MAX_ROWS_IN_PAGINATED_TABLE";
525
525
  InteractiveCommandType[InteractiveCommandType["CALL_JS"] = 12] = "CALL_JS";
526
526
  InteractiveCommandType[InteractiveCommandType["GET_LAST_ROUTE"] = 13] = "GET_LAST_ROUTE";
527
- InteractiveCommandType[InteractiveCommandType["OPEN_FORM"] = 14] = "OPEN_FORM";
528
527
  })(InteractiveCommandType || (InteractiveCommandType = {}));
529
528
  class GuiInteractiveBase {
530
529
  constructor() {
@@ -647,16 +646,6 @@ class GuiInteractiveBase {
647
646
  this.Invoke();
648
647
  return this.resultString;
649
648
  }
650
- ExecuteOpenOverlayForm(obj, formName, handlerTaskTag, calledTaskTag, inputControls, isDialog) {
651
- this._commandType = InteractiveCommandType.OPEN_FORM;
652
- this.controlName = formName;
653
- this._str = handlerTaskTag;
654
- this._mgValue = new MgValue();
655
- this._mgValue.str = calledTaskTag;
656
- this._mgValue.path = inputControls;
657
- this._boolVal = isDialog;
658
- this.Invoke();
659
- }
660
649
  Invoke() {
661
650
  GuiCommandQueue.getInstance().invoke();
662
651
  if (this._obj2 instanceof ControlBase) {
@@ -1181,13 +1170,6 @@ class Commands {
1181
1170
  }).then((res) => { returnValue = res; });
1182
1171
  return returnValue;
1183
1172
  }
1184
- static async openOverlayForm(obj, formName, handlerTaskTag, calledTaskTag, inputControls, isDialog) {
1185
- let guiInteractive = new GuiInteractive();
1186
- await new Promise((resolve) => {
1187
- this.SetResolveCallback(resolve);
1188
- guiInteractive.ExecuteOpenOverlayForm(obj, formName, handlerTaskTag, calledTaskTag, inputControls, isDialog);
1189
- }).then();
1190
- }
1191
1173
  static setTitle(topMostForm, title) {
1192
1174
  let guiInteractive = new GuiInteractive();
1193
1175
  guiInteractive.setTitle(topMostForm, title);
@@ -13714,14 +13696,14 @@ class MgFormBase extends GuiFormPropertyAdapter {
13714
13696
  while (this.initInnerObjects(parser.getNextTag())) {
13715
13697
  }
13716
13698
  }
13717
- async init() {
13699
+ init() {
13718
13700
  for (let i = 0; i < this.CtrlTab.getSize(); i = i + 1) {
13719
13701
  let ctrl = this.CtrlTab.getCtrl(i);
13720
13702
  ctrl.Init();
13721
13703
  }
13722
13704
  this.buildLinkedControlsLists();
13723
13705
  this.buildTableColumnsList();
13724
- await this.createForm();
13706
+ this.createForm();
13725
13707
  this._task.setKeyboardMappingState(Constants.ACT_STT_TBL_SCREEN_MODE, this.isScreenMode());
13726
13708
  this._task.setKeyboardMappingState(Constants.ACT_STT_TBL_LEFT_TO_RIGHT, !this.GetComputedProperty(PropInterface.PROP_TYPE_HEBREW).GetComputedValueBoolean());
13727
13709
  }
@@ -13767,12 +13749,10 @@ class MgFormBase extends GuiFormPropertyAdapter {
13767
13749
  }
13768
13750
  Events.WriteExceptionToLog('in Form.FillName() out of bounds');
13769
13751
  }
13770
- async createForm() {
13752
+ createForm() {
13771
13753
  let inputControls = this.GetListOfInputControls();
13772
13754
  let formName = this.buildFormName();
13773
- if (this.isDialog())
13774
- await Commands.openOverlayForm(this, formName, '0', this.getTask().getTaskTag(), inputControls, this.isDialog());
13775
- else if (!this.isSubForm()) {
13755
+ if (!this.isSubForm()) {
13776
13756
  Commands.addOpenForm(this, formName, '0', this.getTask().getTaskTag(), inputControls, this.isDialog());
13777
13757
  }
13778
13758
  else {
@@ -15874,7 +15854,7 @@ class GuiTaskBase {
15874
15854
  async InitForm() {
15875
15855
  if (this.Form !== null && this.isOpenWin()) {
15876
15856
  this.Form.InInitForm = true;
15877
- await this.Form.init();
15857
+ this.Form.init();
15878
15858
  this.SetRefreshType(Constants.TASK_REFRESH_FORM);
15879
15859
  await this.RefreshDisplay();
15880
15860
  Commands.beginInvoke();