@magic-xpa/gui 4.801.0-dev481.310 → 4.801.0-dev481.313

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 (43) hide show
  1. package/esm2020/index.mjs +1 -3
  2. package/esm2020/src/Manager.mjs +2 -103
  3. package/esm2020/src/env/IEnvironment.mjs +1 -1
  4. package/esm2020/src/gui/GuiMgControl.mjs +2 -116
  5. package/esm2020/src/gui/low/DialogHandler.mjs +1 -6
  6. package/esm2020/src/gui/low/GuiInteractive.mjs +15 -148
  7. package/esm2020/src/gui/low/Style.mjs +1 -28
  8. package/esm2020/src/management/RuntimeContextBase.mjs +2 -11
  9. package/esm2020/src/management/data/DcValuesBuilderBase.mjs +1 -2
  10. package/esm2020/src/management/data/NUM_TYPE.mjs +1 -18
  11. package/esm2020/src/management/data/RecordUtils.mjs +1 -1
  12. package/esm2020/src/management/data/VectorTypeBase.mjs +1 -2
  13. package/esm2020/src/management/exp/GuiExpressionEvaluator.mjs +1 -1
  14. package/esm2020/src/management/gui/ControlTable.mjs +1 -4
  15. package/esm2020/src/management/gui/DisplayConvertor.mjs +1 -4
  16. package/esm2020/src/management/gui/FieldValidator.mjs +1 -5
  17. package/esm2020/src/management/gui/GuiControlPropertyAdapter.mjs +1 -1
  18. package/esm2020/src/management/gui/MgControlBase.mjs +2 -7
  19. package/esm2020/src/management/gui/Property.mjs +2 -28
  20. package/esm2020/src/management/tasks/GuiTaskBase.mjs +1 -5
  21. package/fesm2015/magic-xpa-gui.mjs +22 -535
  22. package/fesm2015/magic-xpa-gui.mjs.map +1 -1
  23. package/fesm2020/magic-xpa-gui.mjs +21 -533
  24. package/fesm2020/magic-xpa-gui.mjs.map +1 -1
  25. package/index.d.ts +0 -2
  26. package/package.json +2 -2
  27. package/src/Manager.d.ts +2 -27
  28. package/src/env/IEnvironment.d.ts +0 -14
  29. package/src/gui/GuiMgControl.d.ts +1 -13
  30. package/src/gui/low/DialogHandler.d.ts +0 -1
  31. package/src/gui/low/GuiInteractive.d.ts +14 -86
  32. package/src/gui/low/Style.d.ts +0 -27
  33. package/src/management/RuntimeContextBase.d.ts +0 -3
  34. package/src/management/data/NUM_TYPE.d.ts +0 -2
  35. package/src/management/gui/ControlTable.d.ts +0 -1
  36. package/src/management/gui/FieldValidator.d.ts +0 -2
  37. package/src/management/gui/GuiControlPropertyAdapter.d.ts +0 -1
  38. package/src/management/gui/MgControlBase.d.ts +0 -3
  39. package/src/management/gui/Property.d.ts +0 -5
  40. package/esm2020/src/util/AuthenticationDialogHandler.mjs +0 -34
  41. package/esm2020/src/util/ProcessLauncher.mjs +0 -32
  42. package/src/util/AuthenticationDialogHandler.d.ts +0 -14
  43. package/src/util/ProcessLauncher.d.ts +0 -5
@@ -1,6 +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, 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';
2
+ import { Debug, StringBuilder, NString, Int32, List, 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, 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';
4
4
  import { timer } from 'rxjs';
5
5
 
6
6
  class MgValue {
@@ -511,83 +511,26 @@ GuiCommandQueue._instance = null;
511
511
 
512
512
  var InteractiveCommandType;
513
513
  (function (InteractiveCommandType) {
514
- InteractiveCommandType[InteractiveCommandType["GET_FONT_METRICS"] = 0] = "GET_FONT_METRICS";
515
- InteractiveCommandType[InteractiveCommandType["GET_RESOLUTION"] = 1] = "GET_RESOLUTION";
516
- InteractiveCommandType[InteractiveCommandType["GET_BOUNDS"] = 2] = "GET_BOUNDS";
517
- InteractiveCommandType[InteractiveCommandType["GET_VALUE"] = 3] = "GET_VALUE";
518
- InteractiveCommandType[InteractiveCommandType["SET_BROWSER_TEXT"] = 4] = "SET_BROWSER_TEXT";
519
- InteractiveCommandType[InteractiveCommandType["GET_BROWSER_TEXT"] = 5] = "GET_BROWSER_TEXT";
520
- InteractiveCommandType[InteractiveCommandType["BROWSER_EXECUTE"] = 6] = "BROWSER_EXECUTE";
521
- InteractiveCommandType[InteractiveCommandType["GET_TOP_INDEX"] = 7] = "GET_TOP_INDEX";
522
- InteractiveCommandType[InteractiveCommandType["MESSAGE_BOX"] = 8] = "MESSAGE_BOX";
523
- InteractiveCommandType[InteractiveCommandType["SET_TITLE"] = 9] = "SET_TITLE";
524
- InteractiveCommandType[InteractiveCommandType["DIRECTORY_DIALOG_BOX"] = 10] = "DIRECTORY_DIALOG_BOX";
525
- InteractiveCommandType[InteractiveCommandType["GET_CLIENT_BOUNDS"] = 11] = "GET_CLIENT_BOUNDS";
526
- InteractiveCommandType[InteractiveCommandType["SET_EDIT_TEXT"] = 12] = "SET_EDIT_TEXT";
527
- InteractiveCommandType[InteractiveCommandType["INSERT_EDIT_TEXT"] = 13] = "INSERT_EDIT_TEXT";
528
- InteractiveCommandType[InteractiveCommandType["SET_SELECTION"] = 14] = "SET_SELECTION";
529
- InteractiveCommandType[InteractiveCommandType["GET_SELECTION"] = 15] = "GET_SELECTION";
530
- InteractiveCommandType[InteractiveCommandType["GET_CARET_POS"] = 16] = "GET_CARET_POS";
531
- InteractiveCommandType[InteractiveCommandType["REFRESH_PAGE"] = 17] = "REFRESH_PAGE";
532
- InteractiveCommandType[InteractiveCommandType["GET_IS_TOP_OF_TEXTBOX"] = 18] = "GET_IS_TOP_OF_TEXTBOX";
533
- InteractiveCommandType[InteractiveCommandType["GET_IS_END_OF_TEXTBOX"] = 19] = "GET_IS_END_OF_TEXTBOX";
534
- InteractiveCommandType[InteractiveCommandType["CLIPBOARD_GET_CONTENT"] = 20] = "CLIPBOARD_GET_CONTENT";
535
- InteractiveCommandType[InteractiveCommandType["CLIPBOARD_SET_CONTENT"] = 21] = "CLIPBOARD_SET_CONTENT";
536
- InteractiveCommandType[InteractiveCommandType["CLIPBOARD_PASTE"] = 22] = "CLIPBOARD_PASTE";
537
- InteractiveCommandType[InteractiveCommandType["POST_KEY_EVENT"] = 23] = "POST_KEY_EVENT";
538
- InteractiveCommandType[InteractiveCommandType["POST_CHAR_EVENT"] = 24] = "POST_CHAR_EVENT";
539
- InteractiveCommandType[InteractiveCommandType["SET_CURSOR"] = 25] = "SET_CURSOR";
540
- InteractiveCommandType[InteractiveCommandType["DISPOSE_ALL_FORMS"] = 26] = "DISPOSE_ALL_FORMS";
541
- InteractiveCommandType[InteractiveCommandType["GET_ROWS_IN_PAGE"] = 27] = "GET_ROWS_IN_PAGE";
542
- InteractiveCommandType[InteractiveCommandType["GET_HIDDEN_ROWS_COUNT_IN_TABLE"] = 28] = "GET_HIDDEN_ROWS_COUNT_IN_TABLE";
543
- InteractiveCommandType[InteractiveCommandType["FILE_OPEN_DIALOG_BOX"] = 29] = "FILE_OPEN_DIALOG_BOX";
544
- InteractiveCommandType[InteractiveCommandType["FILE_SAVE_DIALOG_BOX"] = 30] = "FILE_SAVE_DIALOG_BOX";
545
- InteractiveCommandType[InteractiveCommandType["CREATE_DIALOG"] = 31] = "CREATE_DIALOG";
546
- InteractiveCommandType[InteractiveCommandType["OPEN_DIALOG"] = 32] = "OPEN_DIALOG";
547
- InteractiveCommandType[InteractiveCommandType["CLOSE_DIALOG"] = 33] = "CLOSE_DIALOG";
548
- InteractiveCommandType[InteractiveCommandType["SET_GET_SUGGESTED_VALUE_FOR_CHOICE_CONTROL_ON_TAGDATA"] = 34] = "SET_GET_SUGGESTED_VALUE_FOR_CHOICE_CONTROL_ON_TAGDATA";
549
- InteractiveCommandType[InteractiveCommandType["REFLECTION_INVOKE"] = 35] = "REFLECTION_INVOKE";
550
- InteractiveCommandType[InteractiveCommandType["REFLECTION_SET"] = 36] = "REFLECTION_SET";
551
- InteractiveCommandType[InteractiveCommandType["GET_LAST_WINDOW_STATE"] = 37] = "GET_LAST_WINDOW_STATE";
552
- InteractiveCommandType[InteractiveCommandType["GET_FRAMES_BOUNDS"] = 38] = "GET_FRAMES_BOUNDS";
553
- InteractiveCommandType[InteractiveCommandType["GET_LINKED_PARENT_IDX"] = 39] = "GET_LINKED_PARENT_IDX";
554
- InteractiveCommandType[InteractiveCommandType["GET_FORM_BOUNDS"] = 40] = "GET_FORM_BOUNDS";
555
- InteractiveCommandType[InteractiveCommandType["GET_COLUMNS_STATE"] = 41] = "GET_COLUMNS_STATE";
556
- InteractiveCommandType[InteractiveCommandType["GET_FORM_HANDLE"] = 42] = "GET_FORM_HANDLE";
557
- InteractiveCommandType[InteractiveCommandType["GET_CTRL_HANDLE"] = 43] = "GET_CTRL_HANDLE";
558
- InteractiveCommandType[InteractiveCommandType["IS_FORM_ACTIVE"] = 44] = "IS_FORM_ACTIVE";
559
- InteractiveCommandType[InteractiveCommandType["SET_MARKED_TEXT_ON_RICH_EDIT"] = 45] = "SET_MARKED_TEXT_ON_RICH_EDIT";
560
- InteractiveCommandType[InteractiveCommandType["SEND_IME_MSG"] = 46] = "SEND_IME_MSG";
561
- InteractiveCommandType[InteractiveCommandType["CAN_FOCUS"] = 47] = "CAN_FOCUS";
562
- InteractiveCommandType[InteractiveCommandType["INVOKE_OSCOMMAND"] = 48] = "INVOKE_OSCOMMAND";
563
- InteractiveCommandType[InteractiveCommandType["GET_SELECTED_INDICE"] = 49] = "GET_SELECTED_INDICE";
564
- InteractiveCommandType[InteractiveCommandType["SET_SUGGESTED_VALUE"] = 50] = "SET_SUGGESTED_VALUE";
565
- InteractiveCommandType[InteractiveCommandType["MAP_WIDGET_TO_GUI_OBJECT"] = 51] = "MAP_WIDGET_TO_GUI_OBJECT";
566
- InteractiveCommandType[InteractiveCommandType["REMOVE_DN_CONTROL_VALUE_CHANGED_HANDLER"] = 52] = "REMOVE_DN_CONTROL_VALUE_CHANGED_HANDLER";
567
- InteractiveCommandType[InteractiveCommandType["ADD_DN_CONTROL_VALUE_CHANGED_HANDLER"] = 53] = "ADD_DN_CONTROL_VALUE_CHANGED_HANDLER";
568
- InteractiveCommandType[InteractiveCommandType["GET_RTF_VALUE_BEFORE_ENTERING_CONTROL"] = 54] = "GET_RTF_VALUE_BEFORE_ENTERING_CONTROL";
569
- InteractiveCommandType[InteractiveCommandType["ATTACH_DNKEY_TO_OBJECT"] = 55] = "ATTACH_DNKEY_TO_OBJECT";
570
- InteractiveCommandType[InteractiveCommandType["GET_DVCONTROL_POSITION_ISN"] = 56] = "GET_DVCONTROL_POSITION_ISN";
571
- InteractiveCommandType[InteractiveCommandType["CLEAR_DATA_TABLE"] = 57] = "CLEAR_DATA_TABLE";
572
- InteractiveCommandType[InteractiveCommandType["SET_DATA_SOURCE_TO_DVCONTROL"] = 58] = "SET_DATA_SOURCE_TO_DVCONTROL";
573
- InteractiveCommandType[InteractiveCommandType["ACTIVATE_FORM"] = 59] = "ACTIVATE_FORM";
574
- InteractiveCommandType[InteractiveCommandType["IS_COMBO_DROPPED_DOWN"] = 60] = "IS_COMBO_DROPPED_DOWN";
575
- InteractiveCommandType[InteractiveCommandType["OPEN_FORM_DESIGNER"] = 61] = "OPEN_FORM_DESIGNER";
576
- InteractiveCommandType[InteractiveCommandType["INVOKE_UDPCOMMAND"] = 62] = "INVOKE_UDPCOMMAND";
577
- InteractiveCommandType[InteractiveCommandType["GET_HASINDENT"] = 63] = "GET_HASINDENT";
578
- InteractiveCommandType[InteractiveCommandType["GET_IS_ROW_EDITING"] = 64] = "GET_IS_ROW_EDITING";
579
- InteractiveCommandType[InteractiveCommandType["GET_MAX_ROWS_IN_PAGINATED_TABLE"] = 65] = "GET_MAX_ROWS_IN_PAGINATED_TABLE";
580
- InteractiveCommandType[InteractiveCommandType["CALL_JS"] = 66] = "CALL_JS";
581
- InteractiveCommandType[InteractiveCommandType["GET_LAST_ROUTE"] = 67] = "GET_LAST_ROUTE";
514
+ InteractiveCommandType[InteractiveCommandType["GET_VALUE"] = 0] = "GET_VALUE";
515
+ InteractiveCommandType[InteractiveCommandType["GET_TOP_INDEX"] = 1] = "GET_TOP_INDEX";
516
+ InteractiveCommandType[InteractiveCommandType["MESSAGE_BOX"] = 2] = "MESSAGE_BOX";
517
+ InteractiveCommandType[InteractiveCommandType["SET_TITLE"] = 3] = "SET_TITLE";
518
+ InteractiveCommandType[InteractiveCommandType["SET_EDIT_TEXT"] = 4] = "SET_EDIT_TEXT";
519
+ InteractiveCommandType[InteractiveCommandType["INSERT_EDIT_TEXT"] = 5] = "INSERT_EDIT_TEXT";
520
+ InteractiveCommandType[InteractiveCommandType["GET_CARET_POS"] = 6] = "GET_CARET_POS";
521
+ InteractiveCommandType[InteractiveCommandType["REFRESH_PAGE"] = 7] = "REFRESH_PAGE";
522
+ InteractiveCommandType[InteractiveCommandType["GET_ROWS_IN_PAGE"] = 8] = "GET_ROWS_IN_PAGE";
523
+ InteractiveCommandType[InteractiveCommandType["SET_GET_SUGGESTED_VALUE_FOR_CHOICE_CONTROL_ON_TAGDATA"] = 9] = "SET_GET_SUGGESTED_VALUE_FOR_CHOICE_CONTROL_ON_TAGDATA";
524
+ InteractiveCommandType[InteractiveCommandType["GET_IS_ROW_EDITING"] = 10] = "GET_IS_ROW_EDITING";
525
+ InteractiveCommandType[InteractiveCommandType["GET_MAX_ROWS_IN_PAGINATED_TABLE"] = 11] = "GET_MAX_ROWS_IN_PAGINATED_TABLE";
526
+ InteractiveCommandType[InteractiveCommandType["CALL_JS"] = 12] = "CALL_JS";
527
+ InteractiveCommandType[InteractiveCommandType["GET_LAST_ROUTE"] = 13] = "GET_LAST_ROUTE";
582
528
  })(InteractiveCommandType || (InteractiveCommandType = {}));
583
529
  class GuiInteractiveBase {
584
530
  constructor() {
585
531
  this._commandType = 0;
586
532
  this.TaskTag = null;
587
533
  this.controlName = null;
588
- this._x = 0;
589
- this._y = 0;
590
- this._char = null;
591
534
  this._str = String.fromCharCode(0);
592
535
  this._intVal1 = 0;
593
536
  this._line = 0;
@@ -596,16 +539,8 @@ class GuiInteractiveBase {
596
539
  this._boolVal = false;
597
540
  this._obj2 = null;
598
541
  this._mgValue = null;
599
- this._setValue = false;
600
542
  this.resultString = String.fromCharCode(0);
601
543
  }
602
- canFocus(guiMgControl) {
603
- this._commandType = InteractiveCommandType.CAN_FOCUS;
604
- this._obj1 = guiMgControl;
605
- this._mgValue = new MgValue();
606
- this.Invoke();
607
- return this._mgValue.boolVal;
608
- }
609
544
  setGetSuggestedValueOfChoiceControlOnTagData(ctrl, line, retSuggestedValue) {
610
545
  this._commandType = InteractiveCommandType.SET_GET_SUGGESTED_VALUE_FOR_CHOICE_CONTROL_ON_TAGDATA;
611
546
  this._obj2 = ctrl;
@@ -652,12 +587,6 @@ class GuiInteractiveBase {
652
587
  this._mgValue.title = ((title === null) ? '' : title);
653
588
  this.Invoke();
654
589
  }
655
- createDialog(handle, parameters) {
656
- this._commandType = InteractiveCommandType.CREATE_DIALOG;
657
- this._parameters = parameters;
658
- this._obj2 = handle;
659
- this.Invoke();
660
- }
661
590
  setEditText(control, line, text) {
662
591
  this._commandType = InteractiveCommandType.SET_EDIT_TEXT;
663
592
  this._obj2 = control;
@@ -692,27 +621,6 @@ class GuiInteractiveBase {
692
621
  this.Invoke();
693
622
  return;
694
623
  }
695
- postKeyEvent(control, line, keys, PostChar, forceLogicalControlTextUpdate) {
696
- this._commandType = InteractiveCommandType.POST_KEY_EVENT;
697
- this._obj2 = control;
698
- this._line = line;
699
- this._mgValue = new MgValue();
700
- this._mgValue.str = keys;
701
- this._mgValue.bool1 = forceLogicalControlTextUpdate;
702
- this._boolVal = PostChar;
703
- this.Invoke();
704
- }
705
- postCharEvent(control, line, chr) {
706
- this._commandType = InteractiveCommandType.POST_CHAR_EVENT;
707
- this._obj2 = control;
708
- this._line = line;
709
- this._char = chr;
710
- this.Invoke();
711
- }
712
- disposeAllForms() {
713
- this._commandType = InteractiveCommandType.DISPOSE_ALL_FORMS;
714
- this.Invoke();
715
- }
716
624
  getRowsInPage(control) {
717
625
  this._commandType = InteractiveCommandType.GET_ROWS_IN_PAGE;
718
626
  this._obj2 = control;
@@ -730,44 +638,6 @@ class GuiInteractiveBase {
730
638
  this.Invoke();
731
639
  return this.resultString;
732
640
  }
733
- GetHiddenRowsCountInTable(control) {
734
- this._commandType = InteractiveCommandType.GET_HIDDEN_ROWS_COUNT_IN_TABLE;
735
- this._obj2 = control;
736
- this.Invoke();
737
- return this._intVal1;
738
- }
739
- getColumnsState(tableCtrl) {
740
- this._commandType = InteractiveCommandType.GET_COLUMNS_STATE;
741
- this._obj2 = tableCtrl;
742
- this._mgValue = new MgValue();
743
- this.Invoke();
744
- return this._mgValue.listOfIntArr;
745
- }
746
- ActivateForm(guiMgForm) {
747
- this._commandType = InteractiveCommandType.ACTIVATE_FORM;
748
- this._obj1 = guiMgForm;
749
- this.Invoke();
750
- }
751
- ClearDatatable(dvControl, dataTable) {
752
- this._commandType = InteractiveCommandType.CLEAR_DATA_TABLE;
753
- this._obj1 = dvControl;
754
- this._obj2 = dataTable;
755
- this.Invoke();
756
- }
757
- SetDataSourceToDataViewControl(dvControl, dataTable, propertyName) {
758
- this._commandType = InteractiveCommandType.SET_DATA_SOURCE_TO_DVCONTROL;
759
- this._obj1 = dvControl;
760
- this._obj2 = dataTable;
761
- this._str = propertyName;
762
- this.Invoke();
763
- }
764
- IsComboBoxInDroppedDownState(comboBox, line) {
765
- this._commandType = InteractiveCommandType.IS_COMBO_DROPPED_DOWN;
766
- this._obj1 = comboBox;
767
- this._line = line;
768
- this.Invoke();
769
- return this._boolVal;
770
- }
771
641
  ExecuteCallJS(form, formName, functionName, args) {
772
642
  this._commandType = InteractiveCommandType.CALL_JS;
773
643
  this._obj2 = form;
@@ -796,22 +666,15 @@ class GuiInteractiveBase {
796
666
  }
797
667
  }
798
668
  class GuiInteractive extends GuiInteractiveBase {
799
- constructor() {
800
- super();
801
- }
802
669
  }
803
670
 
804
671
  class GuiMgControl extends ControlBase {
805
672
  constructor() {
806
673
  super(...arguments);
807
674
  this._type = MgControlType.CTRL_TYPE_NONE;
808
- this.ForceRefreshPropertyWidth = false;
809
- this.ForceRefreshPropertyHight = false;
810
675
  this.ButtonStyle = CtrlButtonTypeGui.None;
811
676
  this.IsRepeatable = false;
812
677
  this.Layer = 0;
813
- this.CheckBoxMainStyle = CheckboxMainStyle.None;
814
- this.RadioButtonAppearance = RbAppearance.None;
815
678
  this.Name = null;
816
679
  this.GuiMgForm = null;
817
680
  }
@@ -863,9 +726,6 @@ class GuiMgControl extends ControlBase {
863
726
  isTabControl() {
864
727
  return this._type === MgControlType.CTRL_TYPE_TAB;
865
728
  }
866
- isLineControl() {
867
- return this._type === MgControlType.CTRL_TYPE_LINE;
868
- }
869
729
  isTextControl() {
870
730
  return this._type === MgControlType.CTRL_TYPE_TEXT;
871
731
  }
@@ -896,9 +756,6 @@ class GuiMgControl extends ControlBase {
896
756
  isSelectionCtrl() {
897
757
  return this._type === MgControlType.CTRL_TYPE_COMBO || this._type === MgControlType.CTRL_TYPE_LIST;
898
758
  }
899
- isBrowserControl() {
900
- return this._type === MgControlType.CTRL_TYPE_BROWSER;
901
- }
902
759
  isCheckBox() {
903
760
  return this._type === MgControlType.CTRL_TYPE_CHECKBOX;
904
761
  }
@@ -917,20 +774,6 @@ class GuiMgControl extends ControlBase {
917
774
  }
918
775
  return val;
919
776
  }
920
- isContainer() {
921
- switch (this._type) {
922
- case MgControlType.CTRL_TYPE_TAB:
923
- case MgControlType.CTRL_TYPE_TABLE:
924
- case MgControlType.CTRL_TYPE_GROUP:
925
- case MgControlType.CTRL_TYPE_CONTAINER:
926
- return true;
927
- default:
928
- return false;
929
- }
930
- }
931
- SupportGradient() {
932
- return this.isButton() || this.isLabel() || this.isTabControl() || this.isGroup() || this.IsCheckBoxMainStyleButton() || this.IsRadioAppearanceButton();
933
- }
934
777
  IsImageButton() {
935
778
  let result = false;
936
779
  if (this.isButton()) {
@@ -938,13 +781,6 @@ class GuiMgControl extends ControlBase {
938
781
  }
939
782
  return result;
940
783
  }
941
- IsButtonPushButton() {
942
- let result = false;
943
- if (this.isButton()) {
944
- result = (this.ButtonStyle === CtrlButtonTypeGui.Push);
945
- }
946
- return result;
947
- }
948
784
  IsHyperTextButton() {
949
785
  let result = false;
950
786
  if (this.isButton()) {
@@ -952,89 +788,6 @@ class GuiMgControl extends ControlBase {
952
788
  }
953
789
  return result;
954
790
  }
955
- IsCheckBoxMainStyleButton() {
956
- let result = false;
957
- if (this.isCheckBox()) {
958
- result = (this.CheckBoxMainStyle === CheckboxMainStyle.Button);
959
- }
960
- return result;
961
- }
962
- IsRadioAppearanceButton() {
963
- let result = false;
964
- if (this.isRadio()) {
965
- result = (this.RadioButtonAppearance === RbAppearance.Button);
966
- }
967
- return result;
968
- }
969
- getControlTypeName() {
970
- let result = null;
971
- switch (this._type) {
972
- case MgControlType.CTRL_TYPE_STATUS_BAR:
973
- result = "Status bar";
974
- break;
975
- case MgControlType.CTRL_TYPE_SB_LABEL:
976
- result = "Status bar label";
977
- break;
978
- case MgControlType.CTRL_TYPE_SB_IMAGE:
979
- result = "Status bar image";
980
- break;
981
- case MgControlType.CTRL_TYPE_TABLE:
982
- result = "Table";
983
- break;
984
- case MgControlType.CTRL_TYPE_BUTTON:
985
- result = "Button";
986
- break;
987
- case MgControlType.CTRL_TYPE_CHECKBOX:
988
- result = "Checkbox";
989
- break;
990
- case MgControlType.CTRL_TYPE_COMBO:
991
- result = "Combo";
992
- break;
993
- case MgControlType.CTRL_TYPE_LIST:
994
- result = "List";
995
- break;
996
- case MgControlType.CTRL_TYPE_SUBFORM:
997
- result = "Subform";
998
- break;
999
- case MgControlType.CTRL_TYPE_GROUP:
1000
- result = "Groupbox";
1001
- break;
1002
- case MgControlType.CTRL_TYPE_IMAGE:
1003
- result = "Image";
1004
- break;
1005
- case MgControlType.CTRL_TYPE_TAB:
1006
- result = "Tab";
1007
- break;
1008
- case MgControlType.CTRL_TYPE_COLUMN:
1009
- result = "Column";
1010
- break;
1011
- case MgControlType.CTRL_TYPE_LABEL:
1012
- result = "Label";
1013
- break;
1014
- case MgControlType.CTRL_TYPE_FRAME_SET:
1015
- result = "Frame set";
1016
- break;
1017
- case MgControlType.CTRL_TYPE_CONTAINER:
1018
- result = "Container";
1019
- break;
1020
- case MgControlType.CTRL_TYPE_RADIO:
1021
- result = "Radio";
1022
- break;
1023
- case MgControlType.CTRL_TYPE_TEXT:
1024
- result = "Text";
1025
- break;
1026
- case MgControlType.CTRL_TYPE_FRAME_FORM:
1027
- result = "Frame form";
1028
- break;
1029
- case MgControlType.CTRL_TYPE_BROWSER:
1030
- result = "Browser";
1031
- break;
1032
- case MgControlType.CTRL_TYPE_LINE:
1033
- result = "Line";
1034
- break;
1035
- }
1036
- return result;
1037
- }
1038
791
  }
1039
792
 
1040
793
  var DateElement;
@@ -1826,13 +1579,7 @@ class Manager {
1826
1579
  static GetCurrentContextID() {
1827
1580
  return Manager._currentContextID;
1828
1581
  }
1829
- static GetDelayWait() {
1830
- return Manager._delayWait;
1831
- }
1832
- static CanFocus() {
1833
- return false;
1834
- }
1835
- static Init(startupImageFileName) {
1582
+ static Init() {
1836
1583
  return;
1837
1584
  }
1838
1585
  static Abort(form) {
@@ -1884,19 +1631,6 @@ class Manager {
1884
1631
  }
1885
1632
  });
1886
1633
  }
1887
- static CaretPosGet(ctrl) {
1888
- let caretPos = 0;
1889
- if (ctrl.isTextControl())
1890
- caretPos = Commands.caretPosGet(ctrl, ctrl.getDisplayLine(true));
1891
- return caretPos;
1892
- }
1893
- static ClearStatusBar(task) {
1894
- let currentParkedControl = task.getLastParkedCtrl();
1895
- if (currentParkedControl !== null && !NString.IsNullOrEmpty(currentParkedControl.PromptHelp))
1896
- task.WriteToMessagePane(currentParkedControl.PromptHelp);
1897
- else
1898
- Manager.CleanMessagePane(task);
1899
- }
1900
1634
  static CleanMessagePane(task) {
1901
1635
  task.WriteToMessagePane(Manager.GetCurrentRuntimeContext().DefaultStatusMsg);
1902
1636
  }
@@ -1913,98 +1647,19 @@ class Manager {
1913
1647
  }
1914
1648
  return msg;
1915
1649
  }
1916
- static SetEditText(ctrl, text) {
1917
- Commands.setEditText(ctrl, ctrl.getDisplayLine(true), text);
1918
- }
1919
- static InsertEditText(ctrl, startPosition, textToInsert) {
1920
- Commands.insertEditText(ctrl, ctrl.getDisplayLine(true), startPosition, textToInsert);
1921
- }
1922
- static GetTooltipTimeout() {
1923
- return GuiEnvironment.Environment.GetTooltipTimeout();
1924
- }
1925
- static GetSpecialEditLeftAlign() {
1926
- return GuiEnvironment.Environment.GetSpecialEditLeftAlign();
1927
- }
1928
- static GetDefaultDateFormat() {
1929
- let dateFormat = "";
1930
- let dateSeperator = GuiEnvironment.Environment.GetDate();
1931
- switch (GuiEnvironment.Environment.GetDateMode(0)) {
1932
- case 'S':
1933
- dateFormat = "YYYY" + dateSeperator + "MM" + dateSeperator + "DD";
1934
- break;
1935
- case 'B':
1936
- case 'E':
1937
- dateFormat = "DD" + dateSeperator + "MM" + dateSeperator + "YYYY";
1938
- break;
1939
- case 'A':
1940
- dateFormat = "MM" + dateSeperator + "DD" + dateSeperator + "YYYY";
1941
- break;
1942
- }
1943
- return dateFormat;
1944
- }
1945
- static GetDefaultTimeFormat() {
1946
- let timeSeperator = GuiEnvironment.Environment.GetTime();
1947
- let timeFormat = "HH" + timeSeperator + "MM" + timeSeperator + "SS";
1948
- return timeFormat;
1949
- }
1950
1650
  static GetCurrentRuntimeContext() {
1951
1651
  return Events.GetRuntimeContext(Manager.GetCurrentContextID());
1952
1652
  }
1953
- static GetContextID(mgObject) {
1954
- let guiMgForm = null;
1955
- if (mgObject instanceof GuiMgControl)
1956
- guiMgForm = mgObject.GuiMgForm;
1957
- else if (mgObject instanceof GuiMgForm)
1958
- guiMgForm = mgObject;
1959
- return Events.GetContextID(guiMgForm);
1960
- }
1961
- static ShowWindowHelp(filePath, helpCmd, helpKey) {
1962
- }
1963
1653
  static GetSpecialValNewPolicy() {
1964
1654
  return GuiEnvironment.Environment.GetSpecialValNewPolicy();
1965
1655
  }
1966
1656
  }
1967
1657
  Manager.IsOverlayOpen = false;
1968
- Manager._delayWait = new Object();
1969
- Manager._clipboardData = "";
1970
1658
  Manager._currentContextID = '\0';
1971
1659
  Manager.DefaultProtocol = null;
1972
1660
  Manager.DefaultServerName = null;
1973
1661
  Manager.UtilImeJpn = (UtilStrByteMode.isLocaleDefLangJPN() ? new UtilImeJpn() : null);
1974
- Manager.EventsManager = null;
1975
- class ContextIDGuard {
1976
- constructor(contextID) {
1977
- this._prevContextID = '\0';
1978
- this._fileName = null;
1979
- if (arguments.length === 0) {
1980
- this.constructor_0();
1981
- return;
1982
- }
1983
- this.constructor_1(contextID);
1984
- }
1985
- constructor_0() {
1986
- this._prevContextID = Manager.GetCurrentContextID();
1987
- this.SaveFilename();
1988
- }
1989
- constructor_1(contextID) {
1990
- this.SetCurrent(contextID);
1991
- this.SaveFilename();
1992
- }
1993
- SetCurrent(contextID) {
1994
- if (contextID !== this._prevContextID) {
1995
- this._prevContextID = contextID;
1996
- Manager.SetCurrentContextID(contextID);
1997
- }
1998
- }
1999
- SaveFilename() {
2000
- let stackFrame = new StackFrame(1);
2001
- this._fileName = stackFrame.GetFileName();
2002
- }
2003
- Dispose() {
2004
- if (this._prevContextID !== Manager.GetCurrentContextID())
2005
- Manager.SetCurrentContextID(this._prevContextID);
2006
- }
2007
- }
1662
+ Manager.EventsManager = null;
2008
1663
 
2009
1664
  class GuiConstants {
2010
1665
  constructor() {
@@ -4560,7 +4215,6 @@ class NUM_TYPE {
4560
4215
  return this._data[0] === NUM_TYPE.NUM_LONG_TYPE;
4561
4216
  }
4562
4217
  NUM_LONG() {
4563
- let i;
4564
4218
  if (this._data[1] === 0 && this._data[2] === 0 && this._data[3] === 0 && this._data[4] === -128)
4565
4219
  return Int32.MinValue;
4566
4220
  let dataview = new DataView(this._data.buffer);
@@ -5337,28 +4991,12 @@ class NUM_TYPE {
5337
4991
  }
5338
4992
  }
5339
4993
  NUM_TYPE.INT_ZERO_HEX = "00000000";
5340
- NUM_TYPE.BYTE_ZERO_BIT = "00000000";
5341
4994
  NUM_TYPE.NO_ROOM = -1;
5342
4995
  NUM_TYPE.ZERO_FILL = -2;
5343
4996
  NUM_TYPE.NUM_SIZE = 20;
5344
4997
  NUM_TYPE.NUM_LONG_TYPE = -1;
5345
4998
  NUM_TYPE.EXP_BIAS = 64;
5346
4999
  NUM_TYPE.SIGN_MASK = -128;
5347
- NUM_TYPE._randtbl = [
5348
- 41, 179, 9, 40, 93, 224, 24, 94, 39, 110, 70, 85, 196, 129, 80, 11, 127, 42, 87,
5349
- 8, 243, 96, 174, 153, 61, 192, 17, 20, 235, 7, 47, 222, 53, 216, 101, 112, 44, 139, 109,
5350
- 233, 108, 57, 240, 229, 160, 219, 251, 15, 221, 245, 239, 104, 182, 33, 138, 59, 166, 247, 146,
5351
- 190, 31, 125, 188, 114, 97, 86, 157, 106, 3, 142, 66, 69, 152, 177, 116, 50, 149, 242, 144,
5352
- 28, 29, 95, 37, 2, 117, 246, 65, 183, 206, 241, 230, 131, 13, 145, 63, 98, 200, 176, 226,
5353
- 5, 158, 189, 49, 18, 54, 30, 120, 227, 68, 48, 91, 89, 252, 210, 185, 203, 140, 171, 155,
5354
- 56, 162, 249, 201, 134, 244, 67, 197, 148, 248, 82, 100, 34, 90, 236, 51, 167, 178, 207, 193,
5355
- 164, 225, 218, 147, 79, 71, 217, 151, 38, 198, 215, 212, 123, 156, 76, 121, 113, 253, 55, 255,
5356
- 23, 25, 231, 187, 21, 72, 209, 103, 81, 35, 12, 6, 122, 78, 32, 60, 92, 14, 202, 83,
5357
- 128, 195, 135, 223, 211, 181, 84, 0, 119, 173, 165, 234, 45, 208, 107, 136, 199, 126, 141, 163,
5358
- 180, 99, 172, 220, 75, 115, 232, 111, 228, 204, 237, 73, 254, 62, 105, 132, 22, 36, 118, 143,
5359
- 161, 133, 169, 10, 52, 186, 184, 170, 77, 205, 137, 124, 238, 16, 159, 250, 191, 74, 27, 130,
5360
- 4, 194, 1, 46, 58, 102, 64, 168, 150, 88, 214, 175, 213, 154, 26, 43, 19
5361
- ];
5362
5000
  class OperData {
5363
5001
  constructor() {
5364
5002
  this.NUM_Diff_ = 0;
@@ -5991,7 +5629,6 @@ class DisplayConvertor {
5991
5629
  fromMgDateToNativeDate(dataStr, compIdx) {
5992
5630
  let date = new NUM_TYPE(dataStr).NUM_2_ULONG();
5993
5631
  let breakParams;
5994
- let outIdx = 0;
5995
5632
  breakParams = new DateBreakParams();
5996
5633
  this.date_break_datemode(breakParams, date, false, compIdx);
5997
5634
  if (breakParams.month > 0)
@@ -6002,7 +5639,6 @@ class DisplayConvertor {
6002
5639
  return nativeDt;
6003
5640
  }
6004
5641
  fromNativeDateToMgDateNumber(nativeDate, pic) {
6005
- let mgNum = new NUM_TYPE();
6006
5642
  let numVal;
6007
5643
  let dateParams;
6008
5644
  let millenium = 0;
@@ -7131,7 +6767,6 @@ class DisplayConvertor {
7131
6767
  return newValue;
7132
6768
  }
7133
6769
  fillAlphaByDiscreteRangeValues(discreteRangeValues, newValue) {
7134
- let result;
7135
6770
  if (discreteRangeValues !== null) {
7136
6771
  for (let i = 0; i < discreteRangeValues.length; i = i + 1) {
7137
6772
  let discreteValue = discreteRangeValues.get_Item(i);
@@ -7307,7 +6942,6 @@ class VectorTypeBase {
7307
6942
  return valid;
7308
6943
  }
7309
6944
  static adjustAlphaStringsInFlatData(srcBlob) {
7310
- let result;
7311
6945
  if (VectorTypeBase.validateBlobContents(srcBlob)) {
7312
6946
  let destBuf = new StringBuilder();
7313
6947
  let pos = BlobType.blobPrefixLength(srcBlob);
@@ -9284,7 +8918,6 @@ class Property {
9284
8918
  }
9285
8919
  SetFirstValueForCustomValidationProperties() {
9286
8920
  for (let customProperty of this.customValidatorProperties.keys()) {
9287
- let c = this.customValidatorProperties.get(customProperty);
9288
8921
  this.customValidatorValues.set(customProperty, new CustomValidator(true, ""));
9289
8922
  }
9290
8923
  this._val = this.GetArrayValuesForCustomValidationProperties();
@@ -9306,9 +8939,6 @@ class Property {
9306
8939
  this._val = this.GetArrayValuesForCustomProperties();
9307
8940
  this._orgValue = this._val;
9308
8941
  }
9309
- ResetComputedOnceFlag() {
9310
- this._expAlreadyComputedOnce = false;
9311
- }
9312
8942
  InitTaskDefinitionId(xmlBuffer) {
9313
8943
  let taskDefinitionIdTableSaxHandler = new TaskDefinitionIdTableSaxHandler(this.SetTaskDefinitionId);
9314
8944
  taskDefinitionIdTableSaxHandler.parse(xmlBuffer);
@@ -9558,12 +9188,6 @@ class Property {
9558
9188
  break;
9559
9189
  }
9560
9190
  }
9561
- getParentObj() {
9562
- return this._parentObj;
9563
- }
9564
- getParentType() {
9565
- return this._parentType;
9566
- }
9567
9191
  getID() {
9568
9192
  return this._id;
9569
9193
  }
@@ -9596,17 +9220,6 @@ class Property {
9596
9220
  setOrgValue() {
9597
9221
  this._orgValue = this._val;
9598
9222
  }
9599
- SetStudioValueAsOrgValue() {
9600
- this._orgValue = this.StudioValue;
9601
- }
9602
- getForm() {
9603
- let form = null;
9604
- if (this._parentType === GuiConstants.PARENT_TYPE_FORM)
9605
- form = this._parentObj;
9606
- else if (this._parentType === GuiConstants.PARENT_TYPE_CONTROL)
9607
- form = this._parentObj.getForm();
9608
- return form;
9609
- }
9610
9223
  GetTaskByParentObject() {
9611
9224
  let task = null;
9612
9225
  if (this._parentType === GuiConstants.PARENT_TYPE_FORM)
@@ -10269,7 +9882,7 @@ class Property {
10269
9882
  ctrl.resetPrevVal();
10270
9883
  switch (ctrl.Type) {
10271
9884
  case MgControlType.CTRL_TYPE_BUTTON:
10272
- if (ctrl.getField() == null && !ctrl.expressionSetAsData() || ctrl.IsImageButton() || (this._parentObj.IsFirstRefreshOfProps() && !GuiEnvironment.Environment.GetSpecialIgnoreButtonFormat()))
9885
+ if (ctrl.getField() == null && !ctrl.expressionSetAsData() || ctrl.IsImageButton() || (this._parentObj.IsFirstRefreshOfProps()))
10273
9886
  this.addCommandTypeText(this.getLine());
10274
9887
  break;
10275
9888
  case MgControlType.CTRL_TYPE_TEXT:
@@ -10368,8 +9981,6 @@ class Property {
10368
9981
  computeCustomPropertiesValues() {
10369
9982
  return __awaiter(this, void 0, void 0, function* () {
10370
9983
  for (let [customPropertyKey, customPropertyValue] of this.customProperties) {
10371
- let len = 255;
10372
- let wasEvaluated = new RefParam(false);
10373
9984
  let expression = customPropertyValue;
10374
9985
  let retExpressionValue = yield this.GetRetrunValueForCustomPropertyExpression(expression);
10375
9986
  this.customPropertiesValues.set(customPropertyKey, retExpressionValue);
@@ -10382,8 +9993,6 @@ class Property {
10382
9993
  let evaluated = true;
10383
9994
  if (mgControl.ModifiedByUser || mgControl.ValidateControl || this.GetTaskByParentObject().IsInRecompute()) {
10384
9995
  for (let [customPropertyKey, customValidatorProperty] of this.customValidatorProperties) {
10385
- let len = 255;
10386
- let wasEvaluated = new RefParam(false);
10387
9996
  let expression = customValidatorProperty._exp;
10388
9997
  let isInValid = yield this.GetRetrunValueForCustomPropertyExpression(expression);
10389
9998
  let errString = "";
@@ -10753,9 +10362,7 @@ class FieldValidator {
10753
10362
  this._pictureReal = null;
10754
10363
  this._pictureEnable = null;
10755
10364
  this._valDet = null;
10756
- this._isPm = false;
10757
10365
  this._picture = null;
10758
- this.hebrew = false;
10759
10366
  this._decimal = null;
10760
10367
  this._environment = null;
10761
10368
  this._environment = GuiEnvironment.Environment;
@@ -11405,7 +11012,6 @@ class FieldValidator {
11405
11012
  init(validationDetails) {
11406
11013
  this._valDet = validationDetails;
11407
11014
  this._valDet.setNull(false);
11408
- this._isPm = false;
11409
11015
  let pIC = this._valDet.getPIC();
11410
11016
  this._oldvalue = this._valDet.getOldValue();
11411
11017
  this._newvalue = this._valDet.getDispValue();
@@ -11418,7 +11024,6 @@ class FieldValidator {
11418
11024
  }
11419
11025
  if (!(pIC === null || pIC.getAttr() === StorageAttribute.BLOB || pIC.getAttr() === StorageAttribute.BLOB_VECTOR)) {
11420
11026
  this._picture = pIC.getMask();
11421
- this.hebrew = pIC.isHebrew();
11422
11027
  this._picture = this._picture.substr(0, pIC.getMaskSize());
11423
11028
  }
11424
11029
  }
@@ -12005,13 +11610,11 @@ class MgControlBase extends GuiControlPropertyAdapter {
12005
11610
  this._propTab = null;
12006
11611
  this._range = null;
12007
11612
  this._rangeChanged = false;
12008
- this._rtfVal = NString.Empty;
12009
11613
  this._valExpId = 0;
12010
11614
  this._vd = null;
12011
11615
  this._dcValId = -2;
12012
11616
  this.parent = 0;
12013
11617
  this.veeIndx = 0;
12014
- this.DNObjectReferenceField = null;
12015
11618
  this.SourceTableReference = null;
12016
11619
  this.ClipBoardDataExists = false;
12017
11620
  this.DataType = StorageAttribute.NONE;
@@ -12764,9 +12367,7 @@ class MgControlBase extends GuiControlPropertyAdapter {
12764
12367
  mgVal = yield this.getLinkValue(dispVal, line);
12765
12368
  }
12766
12369
  if (mgVal === null) {
12767
- let isNull = false;
12768
12370
  let refMgVal = new RefParam(mgVal);
12769
- let refIsNull = new RefParam(isNull);
12770
12371
  if (this._field !== null) {
12771
12372
  mgVal = refMgVal.value;
12772
12373
  }
@@ -13801,7 +13402,6 @@ class MgControlBase extends GuiControlPropertyAdapter {
13801
13402
  }
13802
13403
  getControlNameForHandlerSearch() {
13803
13404
  let childControl = this.getColumnChildControl();
13804
- let name;
13805
13405
  if (childControl !== null) {
13806
13406
  return childControl.Name;
13807
13407
  }
@@ -13840,8 +13440,7 @@ class MgControlBase extends GuiControlPropertyAdapter {
13840
13440
  const _super = Object.create(null, {
13841
13441
  isTableControl: { get: () => super.isTableControl },
13842
13442
  isColumnControl: { get: () => super.isColumnControl },
13843
- isSubform: { get: () => super.isSubform },
13844
- isBrowserControl: { get: () => super.isBrowserControl }
13443
+ isSubform: { get: () => super.isSubform }
13845
13444
  });
13846
13445
  return __awaiter(this, void 0, void 0, function* () {
13847
13446
  let result;
@@ -13855,7 +13454,7 @@ class MgControlBase extends GuiControlPropertyAdapter {
13855
13454
  }
13856
13455
  if (result) {
13857
13456
  if (!_super.isSubform.call(this)) {
13858
- result = ((this._field !== null && this._field.getTask() === task) || this.isButton() || _super.isBrowserControl.call(this));
13457
+ result = ((this._field !== null && this._field.getTask() === task) || this.isButton());
13859
13458
  }
13860
13459
  if (result && checkEnabledAndVisible) {
13861
13460
  result = (this.isEnabled() && this.isVisible());
@@ -14043,9 +13642,6 @@ class ControlTable {
14043
13642
  }
14044
13643
  return -1;
14045
13644
  }
14046
- static SelectDataControlPredicate(control) {
14047
- return control.isDataCtrl();
14048
- }
14049
13645
  }
14050
13646
 
14051
13647
  const delimiter = ', ';
@@ -15001,10 +14597,6 @@ class LastFocusedVal {
15001
14597
  }
15002
14598
 
15003
14599
  class DialogHandler {
15004
- createDialog(parameters) {
15005
- let guiInteractive = new GuiInteractive();
15006
- guiInteractive.createDialog(this, parameters);
15007
- }
15008
14600
  closeDialog() {
15009
14601
  }
15010
14602
  constructor() {
@@ -15013,32 +14605,6 @@ class DialogHandler {
15013
14605
 
15014
14606
  class Styles {
15015
14607
  }
15016
- Styles.PROP_STYLE_BUTTON_PUSH = 0x00000001;
15017
- Styles.PROP_STYLE_BUTTON_IMAGE = 0x00000002;
15018
- Styles.PROP_STYLE_BUTTON_HYPERTEXT = 0x00000004;
15019
- Styles.PROP_STYLE_BUTTON_TEXT_ON_IMAGE = 0x00000008;
15020
- Styles.PROP_STYLE_HOR_RIGHT = 0x00000010;
15021
- Styles.PROP_STYLE_RIGHT_TO_LEFT = 0x00000020;
15022
- Styles.PROP_STYLE_HORIZONTAL_SCROLL = 0x00000040;
15023
- Styles.PROP_STYLE_VERTICAL_SCROLL = 0x00000080;
15024
- Styles.PROP_STYLE_TITLE = 0x00000100;
15025
- Styles.PROP_STYLE_CLOSE = 0x00000200;
15026
- Styles.PROP_STYLE_MIN = 0x00000400;
15027
- Styles.PROP_STYLE_MAX = 0x00000800;
15028
- Styles.PROP_STYLE_BORDER = 0x00001000;
15029
- Styles.PROP_STYLE_BORDER_STYLE_THIN = 0x00002000;
15030
- Styles.PROP_STYLE_BORDER_STYLE_THICK = 0x00004000;
15031
- Styles.PROP_STYLE_READ_ONLY = 0x00008000;
15032
- Styles.PROP_STYLE_APPEARANCE_CHECK = 0x00010000;
15033
- Styles.PROP_STYLE_APPEARANCE_BUTTON = 0x00020000;
15034
- Styles.PROP_STYLE_WORD_WRAP = 0x00040000;
15035
- Styles.PROP_STYLE_STYLE_FLAT = 0x00080000;
15036
- Styles.PROP_STYLE_TAB_SIDE_TOP = 0x04000000;
15037
- Styles.PROP_STYLE_TAB_SIDE_BOTTOM = 0x08000000;
15038
- Styles.PROP_STYLE_NO_BACKGROUND = 0x10000000;
15039
- Styles.PROP_STYLE_SHOW_LINES = 0x20000000;
15040
- Styles.PROP_STYLE_HORIZONTAL = 0x40000000;
15041
- Styles.PROP_STYLE_VERTICAL = 0x80000000;
15042
14608
  Styles.MSGBOX_BUTTON_OK = 0x00000000;
15043
14609
  Styles.MSGBOX_BUTTON_OK_CANCEL = 0x00000001;
15044
14610
  Styles.MSGBOX_BUTTON_ABORT_RETRY_IGNORE = 0x00000002;
@@ -15054,7 +14620,6 @@ Styles.MSGBOX_RESULT_OK = 1;
15054
14620
  Styles.MSGBOX_RESULT_CANCEL = 2;
15055
14621
  Styles.MSGBOX_RESULT_ABORT = 3;
15056
14622
  Styles.MSGBOX_RESULT_RETRY = 4;
15057
- Styles.MSGBOX_RESULT_IGNORE = 5;
15058
14623
  Styles.MSGBOX_RESULT_YES = 6;
15059
14624
  Styles.MSGBOX_RESULT_NO = 7;
15060
14625
 
@@ -15066,7 +14631,6 @@ class RuntimeContextBase {
15066
14631
  this.Parser = null;
15067
14632
  this.FrameForm = null;
15068
14633
  this.LastClickedCtrlName = null;
15069
- this.LastClickedMenuUid = 0;
15070
14634
  this.RemovedContextFromServer = false;
15071
14635
  this.RemovingContextFromServer = false;
15072
14636
  this.CurrentClickedCtrl = null;
@@ -15092,14 +14656,6 @@ class RuntimeContextBase {
15092
14656
  this.LastClickedCtrlName = controlName;
15093
14657
  }
15094
14658
  }
15095
- GetClickProp(index) {
15096
- if (index >= 0 && index < 4)
15097
- return this._lastCoordinates[index];
15098
- throw new ApplicationException("in RuntimeContextBase.getClickProp() illegal index: " + index);
15099
- }
15100
- IsInsertMode() {
15101
- return this._insertMode;
15102
- }
15103
14659
  ToggleInsertMode() {
15104
14660
  this._insertMode = !this._insertMode;
15105
14661
  }
@@ -15141,7 +14697,6 @@ class DcValuesBuilderBase {
15141
14697
  let snumber;
15142
14698
  let tmpValue = null;
15143
14699
  let buffer = new List();
15144
- let array;
15145
14700
  let len;
15146
14701
  let nextIdx;
15147
14702
  let endIdx;
@@ -16339,10 +15894,8 @@ class GuiTaskBase {
16339
15894
  return n1 << 16 | n2;
16340
15895
  }
16341
15896
  getHelpItem(idx) {
16342
- let result;
16343
15897
  if (this._helpTab !== null)
16344
15898
  return this._helpTab.getHelp(idx);
16345
- result = null;
16346
15899
  }
16347
15900
  setProp(propId, val) {
16348
15901
  this._propTab.setProp(propId, val, this, 'T');
@@ -16455,8 +16008,6 @@ class GuiTaskBase {
16455
16008
  }
16456
16009
  GetLastParkedCtrlName(depth) {
16457
16010
  let ancestor = this.GetTaskAncestor(depth);
16458
- let flag = ancestor === null || ancestor._lastParkedCtrl === null;
16459
- let result;
16460
16011
  if (ancestor === null || ancestor._lastParkedCtrl === null)
16461
16012
  return "";
16462
16013
  return ancestor._lastParkedCtrl.Name;
@@ -16751,69 +16302,5 @@ class ChangePasswordCredentials extends UsernamePasswordCredentials {
16751
16302
  }
16752
16303
  }
16753
16304
 
16754
- class AuthenticationDialogHandler extends DialogHandler {
16755
- constructor(username, windowTitle, groupTitle) {
16756
- super();
16757
- this._credentials = new UsernamePasswordCredentials();
16758
- this.ChangePasswordRequested = false;
16759
- if (arguments.length === 0)
16760
- this.constructor_0();
16761
- else if (arguments.length === 1)
16762
- this.constructor_1(username);
16763
- else
16764
- this.constructor_2(username, windowTitle, groupTitle);
16765
- }
16766
- constructor_0() {
16767
- this.constructor_2(null, null, null);
16768
- }
16769
- constructor_1(username) {
16770
- this.constructor_2(username, null, null);
16771
- }
16772
- constructor_2(username, windowTitle, groupTitle) {
16773
- }
16774
- closeDialog() {
16775
- super.closeDialog();
16776
- }
16777
- setCredentials(newCredentials) {
16778
- this._credentials.Username = newCredentials.Username;
16779
- this._credentials.Password = newCredentials.Password;
16780
- }
16781
- getCredentials() {
16782
- return this._credentials;
16783
- }
16784
- }
16785
-
16786
- class ProcessLauncher {
16787
- static InvokeOS() {
16788
- return -1;
16789
- }
16790
- static SeparateParams(cmd) {
16791
- const DOUBLE_QUOTE = '"';
16792
- const SPACE_CHAR = ' ';
16793
- let parameters = new Array(2);
16794
- let appName = null;
16795
- let param = null;
16796
- let startIdx = 0;
16797
- let endIdx = -1;
16798
- cmd = cmd.trim();
16799
- if (cmd[startIdx] === DOUBLE_QUOTE) {
16800
- endIdx = cmd.indexOf(DOUBLE_QUOTE, startIdx + 1);
16801
- }
16802
- if (endIdx === -1) {
16803
- endIdx = cmd.indexOf(SPACE_CHAR, startIdx);
16804
- }
16805
- if (endIdx === -1) {
16806
- endIdx = cmd.length - 1;
16807
- }
16808
- appName = cmd.substr(startIdx, endIdx + 1 - startIdx);
16809
- parameters[0] = appName.trim();
16810
- param = cmd.substr(endIdx + 1, cmd.length - (endIdx + 1));
16811
- parameters[1] = param.trim();
16812
- return parameters;
16813
- }
16814
- constructor() {
16815
- }
16816
- }
16817
-
16818
- 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 };
16305
+ export { BlobType, CellElement, ChangePasswordCredentials, ClipFormats, CommandType, Commands, 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, PromptpHelp, PropDefaults, PropInterface, PropTable, Property, RaisedBy, RecordUtils, Row, RuntimeContextBase, Styles, TaskDefinitionId, TaskDefinitionIdTableSaxHandler, TimeBreakParams, ToolTipHelp, TraverseMode, UIBridge, URLHelp, UsernamePasswordCredentials, ValidationDetails, ValidationDetailsBase, VectorType, VectorTypeBase, WindowsHelp, WrongFormatException };
16819
16306
  //# sourceMappingURL=magic-xpa-gui.mjs.map