@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.
- package/esm2020/index.mjs +1 -3
- package/esm2020/src/Manager.mjs +2 -103
- package/esm2020/src/env/IEnvironment.mjs +1 -1
- package/esm2020/src/gui/GuiMgControl.mjs +2 -116
- package/esm2020/src/gui/low/DialogHandler.mjs +1 -6
- package/esm2020/src/gui/low/GuiInteractive.mjs +15 -148
- package/esm2020/src/gui/low/Style.mjs +1 -28
- package/esm2020/src/management/RuntimeContextBase.mjs +2 -11
- package/esm2020/src/management/data/DcValuesBuilderBase.mjs +1 -2
- package/esm2020/src/management/data/NUM_TYPE.mjs +1 -18
- package/esm2020/src/management/data/RecordUtils.mjs +1 -1
- package/esm2020/src/management/data/VectorTypeBase.mjs +1 -2
- package/esm2020/src/management/exp/GuiExpressionEvaluator.mjs +1 -1
- package/esm2020/src/management/gui/ControlTable.mjs +1 -4
- package/esm2020/src/management/gui/DisplayConvertor.mjs +1 -4
- package/esm2020/src/management/gui/FieldValidator.mjs +1 -5
- package/esm2020/src/management/gui/GuiControlPropertyAdapter.mjs +1 -1
- package/esm2020/src/management/gui/MgControlBase.mjs +2 -7
- package/esm2020/src/management/gui/Property.mjs +2 -28
- package/esm2020/src/management/tasks/GuiTaskBase.mjs +1 -5
- package/fesm2015/magic-xpa-gui.mjs +22 -535
- package/fesm2015/magic-xpa-gui.mjs.map +1 -1
- package/fesm2020/magic-xpa-gui.mjs +21 -533
- package/fesm2020/magic-xpa-gui.mjs.map +1 -1
- package/index.d.ts +0 -2
- package/package.json +2 -2
- package/src/Manager.d.ts +2 -27
- package/src/env/IEnvironment.d.ts +0 -14
- package/src/gui/GuiMgControl.d.ts +1 -13
- package/src/gui/low/DialogHandler.d.ts +0 -1
- package/src/gui/low/GuiInteractive.d.ts +14 -86
- package/src/gui/low/Style.d.ts +0 -27
- package/src/management/RuntimeContextBase.d.ts +0 -3
- package/src/management/data/NUM_TYPE.d.ts +0 -2
- package/src/management/gui/ControlTable.d.ts +0 -1
- package/src/management/gui/FieldValidator.d.ts +0 -2
- package/src/management/gui/GuiControlPropertyAdapter.d.ts +0 -1
- package/src/management/gui/MgControlBase.d.ts +0 -3
- package/src/management/gui/Property.d.ts +0 -5
- package/esm2020/src/util/AuthenticationDialogHandler.mjs +0 -34
- package/esm2020/src/util/ProcessLauncher.mjs +0 -32
- package/src/util/AuthenticationDialogHandler.d.ts +0 -14
- package/src/util/ProcessLauncher.d.ts +0 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Debug, StringBuilder, NString, Int32, List,
|
|
2
|
-
import { OSEnvironment, MgControlType, CtrlButtonTypeGui,
|
|
1
|
+
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';
|
|
2
|
+
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';
|
|
3
3
|
import { timer } from 'rxjs';
|
|
4
4
|
|
|
5
5
|
class MgValue {
|
|
@@ -510,83 +510,26 @@ GuiCommandQueue._instance = null;
|
|
|
510
510
|
|
|
511
511
|
var InteractiveCommandType;
|
|
512
512
|
(function (InteractiveCommandType) {
|
|
513
|
-
InteractiveCommandType[InteractiveCommandType["
|
|
514
|
-
InteractiveCommandType[InteractiveCommandType["
|
|
515
|
-
InteractiveCommandType[InteractiveCommandType["
|
|
516
|
-
InteractiveCommandType[InteractiveCommandType["
|
|
517
|
-
InteractiveCommandType[InteractiveCommandType["
|
|
518
|
-
InteractiveCommandType[InteractiveCommandType["
|
|
519
|
-
InteractiveCommandType[InteractiveCommandType["
|
|
520
|
-
InteractiveCommandType[InteractiveCommandType["
|
|
521
|
-
InteractiveCommandType[InteractiveCommandType["
|
|
522
|
-
InteractiveCommandType[InteractiveCommandType["
|
|
523
|
-
InteractiveCommandType[InteractiveCommandType["
|
|
524
|
-
InteractiveCommandType[InteractiveCommandType["
|
|
525
|
-
InteractiveCommandType[InteractiveCommandType["
|
|
526
|
-
InteractiveCommandType[InteractiveCommandType["
|
|
527
|
-
InteractiveCommandType[InteractiveCommandType["SET_SELECTION"] = 14] = "SET_SELECTION";
|
|
528
|
-
InteractiveCommandType[InteractiveCommandType["GET_SELECTION"] = 15] = "GET_SELECTION";
|
|
529
|
-
InteractiveCommandType[InteractiveCommandType["GET_CARET_POS"] = 16] = "GET_CARET_POS";
|
|
530
|
-
InteractiveCommandType[InteractiveCommandType["REFRESH_PAGE"] = 17] = "REFRESH_PAGE";
|
|
531
|
-
InteractiveCommandType[InteractiveCommandType["GET_IS_TOP_OF_TEXTBOX"] = 18] = "GET_IS_TOP_OF_TEXTBOX";
|
|
532
|
-
InteractiveCommandType[InteractiveCommandType["GET_IS_END_OF_TEXTBOX"] = 19] = "GET_IS_END_OF_TEXTBOX";
|
|
533
|
-
InteractiveCommandType[InteractiveCommandType["CLIPBOARD_GET_CONTENT"] = 20] = "CLIPBOARD_GET_CONTENT";
|
|
534
|
-
InteractiveCommandType[InteractiveCommandType["CLIPBOARD_SET_CONTENT"] = 21] = "CLIPBOARD_SET_CONTENT";
|
|
535
|
-
InteractiveCommandType[InteractiveCommandType["CLIPBOARD_PASTE"] = 22] = "CLIPBOARD_PASTE";
|
|
536
|
-
InteractiveCommandType[InteractiveCommandType["POST_KEY_EVENT"] = 23] = "POST_KEY_EVENT";
|
|
537
|
-
InteractiveCommandType[InteractiveCommandType["POST_CHAR_EVENT"] = 24] = "POST_CHAR_EVENT";
|
|
538
|
-
InteractiveCommandType[InteractiveCommandType["SET_CURSOR"] = 25] = "SET_CURSOR";
|
|
539
|
-
InteractiveCommandType[InteractiveCommandType["DISPOSE_ALL_FORMS"] = 26] = "DISPOSE_ALL_FORMS";
|
|
540
|
-
InteractiveCommandType[InteractiveCommandType["GET_ROWS_IN_PAGE"] = 27] = "GET_ROWS_IN_PAGE";
|
|
541
|
-
InteractiveCommandType[InteractiveCommandType["GET_HIDDEN_ROWS_COUNT_IN_TABLE"] = 28] = "GET_HIDDEN_ROWS_COUNT_IN_TABLE";
|
|
542
|
-
InteractiveCommandType[InteractiveCommandType["FILE_OPEN_DIALOG_BOX"] = 29] = "FILE_OPEN_DIALOG_BOX";
|
|
543
|
-
InteractiveCommandType[InteractiveCommandType["FILE_SAVE_DIALOG_BOX"] = 30] = "FILE_SAVE_DIALOG_BOX";
|
|
544
|
-
InteractiveCommandType[InteractiveCommandType["CREATE_DIALOG"] = 31] = "CREATE_DIALOG";
|
|
545
|
-
InteractiveCommandType[InteractiveCommandType["OPEN_DIALOG"] = 32] = "OPEN_DIALOG";
|
|
546
|
-
InteractiveCommandType[InteractiveCommandType["CLOSE_DIALOG"] = 33] = "CLOSE_DIALOG";
|
|
547
|
-
InteractiveCommandType[InteractiveCommandType["SET_GET_SUGGESTED_VALUE_FOR_CHOICE_CONTROL_ON_TAGDATA"] = 34] = "SET_GET_SUGGESTED_VALUE_FOR_CHOICE_CONTROL_ON_TAGDATA";
|
|
548
|
-
InteractiveCommandType[InteractiveCommandType["REFLECTION_INVOKE"] = 35] = "REFLECTION_INVOKE";
|
|
549
|
-
InteractiveCommandType[InteractiveCommandType["REFLECTION_SET"] = 36] = "REFLECTION_SET";
|
|
550
|
-
InteractiveCommandType[InteractiveCommandType["GET_LAST_WINDOW_STATE"] = 37] = "GET_LAST_WINDOW_STATE";
|
|
551
|
-
InteractiveCommandType[InteractiveCommandType["GET_FRAMES_BOUNDS"] = 38] = "GET_FRAMES_BOUNDS";
|
|
552
|
-
InteractiveCommandType[InteractiveCommandType["GET_LINKED_PARENT_IDX"] = 39] = "GET_LINKED_PARENT_IDX";
|
|
553
|
-
InteractiveCommandType[InteractiveCommandType["GET_FORM_BOUNDS"] = 40] = "GET_FORM_BOUNDS";
|
|
554
|
-
InteractiveCommandType[InteractiveCommandType["GET_COLUMNS_STATE"] = 41] = "GET_COLUMNS_STATE";
|
|
555
|
-
InteractiveCommandType[InteractiveCommandType["GET_FORM_HANDLE"] = 42] = "GET_FORM_HANDLE";
|
|
556
|
-
InteractiveCommandType[InteractiveCommandType["GET_CTRL_HANDLE"] = 43] = "GET_CTRL_HANDLE";
|
|
557
|
-
InteractiveCommandType[InteractiveCommandType["IS_FORM_ACTIVE"] = 44] = "IS_FORM_ACTIVE";
|
|
558
|
-
InteractiveCommandType[InteractiveCommandType["SET_MARKED_TEXT_ON_RICH_EDIT"] = 45] = "SET_MARKED_TEXT_ON_RICH_EDIT";
|
|
559
|
-
InteractiveCommandType[InteractiveCommandType["SEND_IME_MSG"] = 46] = "SEND_IME_MSG";
|
|
560
|
-
InteractiveCommandType[InteractiveCommandType["CAN_FOCUS"] = 47] = "CAN_FOCUS";
|
|
561
|
-
InteractiveCommandType[InteractiveCommandType["INVOKE_OSCOMMAND"] = 48] = "INVOKE_OSCOMMAND";
|
|
562
|
-
InteractiveCommandType[InteractiveCommandType["GET_SELECTED_INDICE"] = 49] = "GET_SELECTED_INDICE";
|
|
563
|
-
InteractiveCommandType[InteractiveCommandType["SET_SUGGESTED_VALUE"] = 50] = "SET_SUGGESTED_VALUE";
|
|
564
|
-
InteractiveCommandType[InteractiveCommandType["MAP_WIDGET_TO_GUI_OBJECT"] = 51] = "MAP_WIDGET_TO_GUI_OBJECT";
|
|
565
|
-
InteractiveCommandType[InteractiveCommandType["REMOVE_DN_CONTROL_VALUE_CHANGED_HANDLER"] = 52] = "REMOVE_DN_CONTROL_VALUE_CHANGED_HANDLER";
|
|
566
|
-
InteractiveCommandType[InteractiveCommandType["ADD_DN_CONTROL_VALUE_CHANGED_HANDLER"] = 53] = "ADD_DN_CONTROL_VALUE_CHANGED_HANDLER";
|
|
567
|
-
InteractiveCommandType[InteractiveCommandType["GET_RTF_VALUE_BEFORE_ENTERING_CONTROL"] = 54] = "GET_RTF_VALUE_BEFORE_ENTERING_CONTROL";
|
|
568
|
-
InteractiveCommandType[InteractiveCommandType["ATTACH_DNKEY_TO_OBJECT"] = 55] = "ATTACH_DNKEY_TO_OBJECT";
|
|
569
|
-
InteractiveCommandType[InteractiveCommandType["GET_DVCONTROL_POSITION_ISN"] = 56] = "GET_DVCONTROL_POSITION_ISN";
|
|
570
|
-
InteractiveCommandType[InteractiveCommandType["CLEAR_DATA_TABLE"] = 57] = "CLEAR_DATA_TABLE";
|
|
571
|
-
InteractiveCommandType[InteractiveCommandType["SET_DATA_SOURCE_TO_DVCONTROL"] = 58] = "SET_DATA_SOURCE_TO_DVCONTROL";
|
|
572
|
-
InteractiveCommandType[InteractiveCommandType["ACTIVATE_FORM"] = 59] = "ACTIVATE_FORM";
|
|
573
|
-
InteractiveCommandType[InteractiveCommandType["IS_COMBO_DROPPED_DOWN"] = 60] = "IS_COMBO_DROPPED_DOWN";
|
|
574
|
-
InteractiveCommandType[InteractiveCommandType["OPEN_FORM_DESIGNER"] = 61] = "OPEN_FORM_DESIGNER";
|
|
575
|
-
InteractiveCommandType[InteractiveCommandType["INVOKE_UDPCOMMAND"] = 62] = "INVOKE_UDPCOMMAND";
|
|
576
|
-
InteractiveCommandType[InteractiveCommandType["GET_HASINDENT"] = 63] = "GET_HASINDENT";
|
|
577
|
-
InteractiveCommandType[InteractiveCommandType["GET_IS_ROW_EDITING"] = 64] = "GET_IS_ROW_EDITING";
|
|
578
|
-
InteractiveCommandType[InteractiveCommandType["GET_MAX_ROWS_IN_PAGINATED_TABLE"] = 65] = "GET_MAX_ROWS_IN_PAGINATED_TABLE";
|
|
579
|
-
InteractiveCommandType[InteractiveCommandType["CALL_JS"] = 66] = "CALL_JS";
|
|
580
|
-
InteractiveCommandType[InteractiveCommandType["GET_LAST_ROUTE"] = 67] = "GET_LAST_ROUTE";
|
|
513
|
+
InteractiveCommandType[InteractiveCommandType["GET_VALUE"] = 0] = "GET_VALUE";
|
|
514
|
+
InteractiveCommandType[InteractiveCommandType["GET_TOP_INDEX"] = 1] = "GET_TOP_INDEX";
|
|
515
|
+
InteractiveCommandType[InteractiveCommandType["MESSAGE_BOX"] = 2] = "MESSAGE_BOX";
|
|
516
|
+
InteractiveCommandType[InteractiveCommandType["SET_TITLE"] = 3] = "SET_TITLE";
|
|
517
|
+
InteractiveCommandType[InteractiveCommandType["SET_EDIT_TEXT"] = 4] = "SET_EDIT_TEXT";
|
|
518
|
+
InteractiveCommandType[InteractiveCommandType["INSERT_EDIT_TEXT"] = 5] = "INSERT_EDIT_TEXT";
|
|
519
|
+
InteractiveCommandType[InteractiveCommandType["GET_CARET_POS"] = 6] = "GET_CARET_POS";
|
|
520
|
+
InteractiveCommandType[InteractiveCommandType["REFRESH_PAGE"] = 7] = "REFRESH_PAGE";
|
|
521
|
+
InteractiveCommandType[InteractiveCommandType["GET_ROWS_IN_PAGE"] = 8] = "GET_ROWS_IN_PAGE";
|
|
522
|
+
InteractiveCommandType[InteractiveCommandType["SET_GET_SUGGESTED_VALUE_FOR_CHOICE_CONTROL_ON_TAGDATA"] = 9] = "SET_GET_SUGGESTED_VALUE_FOR_CHOICE_CONTROL_ON_TAGDATA";
|
|
523
|
+
InteractiveCommandType[InteractiveCommandType["GET_IS_ROW_EDITING"] = 10] = "GET_IS_ROW_EDITING";
|
|
524
|
+
InteractiveCommandType[InteractiveCommandType["GET_MAX_ROWS_IN_PAGINATED_TABLE"] = 11] = "GET_MAX_ROWS_IN_PAGINATED_TABLE";
|
|
525
|
+
InteractiveCommandType[InteractiveCommandType["CALL_JS"] = 12] = "CALL_JS";
|
|
526
|
+
InteractiveCommandType[InteractiveCommandType["GET_LAST_ROUTE"] = 13] = "GET_LAST_ROUTE";
|
|
581
527
|
})(InteractiveCommandType || (InteractiveCommandType = {}));
|
|
582
528
|
class GuiInteractiveBase {
|
|
583
529
|
constructor() {
|
|
584
530
|
this._commandType = 0;
|
|
585
531
|
this.TaskTag = null;
|
|
586
532
|
this.controlName = null;
|
|
587
|
-
this._x = 0;
|
|
588
|
-
this._y = 0;
|
|
589
|
-
this._char = null;
|
|
590
533
|
this._str = String.fromCharCode(0);
|
|
591
534
|
this._intVal1 = 0;
|
|
592
535
|
this._line = 0;
|
|
@@ -595,16 +538,8 @@ class GuiInteractiveBase {
|
|
|
595
538
|
this._boolVal = false;
|
|
596
539
|
this._obj2 = null;
|
|
597
540
|
this._mgValue = null;
|
|
598
|
-
this._setValue = false;
|
|
599
541
|
this.resultString = String.fromCharCode(0);
|
|
600
542
|
}
|
|
601
|
-
canFocus(guiMgControl) {
|
|
602
|
-
this._commandType = InteractiveCommandType.CAN_FOCUS;
|
|
603
|
-
this._obj1 = guiMgControl;
|
|
604
|
-
this._mgValue = new MgValue();
|
|
605
|
-
this.Invoke();
|
|
606
|
-
return this._mgValue.boolVal;
|
|
607
|
-
}
|
|
608
543
|
setGetSuggestedValueOfChoiceControlOnTagData(ctrl, line, retSuggestedValue) {
|
|
609
544
|
this._commandType = InteractiveCommandType.SET_GET_SUGGESTED_VALUE_FOR_CHOICE_CONTROL_ON_TAGDATA;
|
|
610
545
|
this._obj2 = ctrl;
|
|
@@ -651,12 +586,6 @@ class GuiInteractiveBase {
|
|
|
651
586
|
this._mgValue.title = ((title === null) ? '' : title);
|
|
652
587
|
this.Invoke();
|
|
653
588
|
}
|
|
654
|
-
createDialog(handle, parameters) {
|
|
655
|
-
this._commandType = InteractiveCommandType.CREATE_DIALOG;
|
|
656
|
-
this._parameters = parameters;
|
|
657
|
-
this._obj2 = handle;
|
|
658
|
-
this.Invoke();
|
|
659
|
-
}
|
|
660
589
|
setEditText(control, line, text) {
|
|
661
590
|
this._commandType = InteractiveCommandType.SET_EDIT_TEXT;
|
|
662
591
|
this._obj2 = control;
|
|
@@ -691,27 +620,6 @@ class GuiInteractiveBase {
|
|
|
691
620
|
this.Invoke();
|
|
692
621
|
return;
|
|
693
622
|
}
|
|
694
|
-
postKeyEvent(control, line, keys, PostChar, forceLogicalControlTextUpdate) {
|
|
695
|
-
this._commandType = InteractiveCommandType.POST_KEY_EVENT;
|
|
696
|
-
this._obj2 = control;
|
|
697
|
-
this._line = line;
|
|
698
|
-
this._mgValue = new MgValue();
|
|
699
|
-
this._mgValue.str = keys;
|
|
700
|
-
this._mgValue.bool1 = forceLogicalControlTextUpdate;
|
|
701
|
-
this._boolVal = PostChar;
|
|
702
|
-
this.Invoke();
|
|
703
|
-
}
|
|
704
|
-
postCharEvent(control, line, chr) {
|
|
705
|
-
this._commandType = InteractiveCommandType.POST_CHAR_EVENT;
|
|
706
|
-
this._obj2 = control;
|
|
707
|
-
this._line = line;
|
|
708
|
-
this._char = chr;
|
|
709
|
-
this.Invoke();
|
|
710
|
-
}
|
|
711
|
-
disposeAllForms() {
|
|
712
|
-
this._commandType = InteractiveCommandType.DISPOSE_ALL_FORMS;
|
|
713
|
-
this.Invoke();
|
|
714
|
-
}
|
|
715
623
|
getRowsInPage(control) {
|
|
716
624
|
this._commandType = InteractiveCommandType.GET_ROWS_IN_PAGE;
|
|
717
625
|
this._obj2 = control;
|
|
@@ -729,44 +637,6 @@ class GuiInteractiveBase {
|
|
|
729
637
|
this.Invoke();
|
|
730
638
|
return this.resultString;
|
|
731
639
|
}
|
|
732
|
-
GetHiddenRowsCountInTable(control) {
|
|
733
|
-
this._commandType = InteractiveCommandType.GET_HIDDEN_ROWS_COUNT_IN_TABLE;
|
|
734
|
-
this._obj2 = control;
|
|
735
|
-
this.Invoke();
|
|
736
|
-
return this._intVal1;
|
|
737
|
-
}
|
|
738
|
-
getColumnsState(tableCtrl) {
|
|
739
|
-
this._commandType = InteractiveCommandType.GET_COLUMNS_STATE;
|
|
740
|
-
this._obj2 = tableCtrl;
|
|
741
|
-
this._mgValue = new MgValue();
|
|
742
|
-
this.Invoke();
|
|
743
|
-
return this._mgValue.listOfIntArr;
|
|
744
|
-
}
|
|
745
|
-
ActivateForm(guiMgForm) {
|
|
746
|
-
this._commandType = InteractiveCommandType.ACTIVATE_FORM;
|
|
747
|
-
this._obj1 = guiMgForm;
|
|
748
|
-
this.Invoke();
|
|
749
|
-
}
|
|
750
|
-
ClearDatatable(dvControl, dataTable) {
|
|
751
|
-
this._commandType = InteractiveCommandType.CLEAR_DATA_TABLE;
|
|
752
|
-
this._obj1 = dvControl;
|
|
753
|
-
this._obj2 = dataTable;
|
|
754
|
-
this.Invoke();
|
|
755
|
-
}
|
|
756
|
-
SetDataSourceToDataViewControl(dvControl, dataTable, propertyName) {
|
|
757
|
-
this._commandType = InteractiveCommandType.SET_DATA_SOURCE_TO_DVCONTROL;
|
|
758
|
-
this._obj1 = dvControl;
|
|
759
|
-
this._obj2 = dataTable;
|
|
760
|
-
this._str = propertyName;
|
|
761
|
-
this.Invoke();
|
|
762
|
-
}
|
|
763
|
-
IsComboBoxInDroppedDownState(comboBox, line) {
|
|
764
|
-
this._commandType = InteractiveCommandType.IS_COMBO_DROPPED_DOWN;
|
|
765
|
-
this._obj1 = comboBox;
|
|
766
|
-
this._line = line;
|
|
767
|
-
this.Invoke();
|
|
768
|
-
return this._boolVal;
|
|
769
|
-
}
|
|
770
640
|
ExecuteCallJS(form, formName, functionName, args) {
|
|
771
641
|
this._commandType = InteractiveCommandType.CALL_JS;
|
|
772
642
|
this._obj2 = form;
|
|
@@ -795,22 +665,15 @@ class GuiInteractiveBase {
|
|
|
795
665
|
}
|
|
796
666
|
}
|
|
797
667
|
class GuiInteractive extends GuiInteractiveBase {
|
|
798
|
-
constructor() {
|
|
799
|
-
super();
|
|
800
|
-
}
|
|
801
668
|
}
|
|
802
669
|
|
|
803
670
|
class GuiMgControl extends ControlBase {
|
|
804
671
|
constructor() {
|
|
805
672
|
super(...arguments);
|
|
806
673
|
this._type = MgControlType.CTRL_TYPE_NONE;
|
|
807
|
-
this.ForceRefreshPropertyWidth = false;
|
|
808
|
-
this.ForceRefreshPropertyHight = false;
|
|
809
674
|
this.ButtonStyle = CtrlButtonTypeGui.None;
|
|
810
675
|
this.IsRepeatable = false;
|
|
811
676
|
this.Layer = 0;
|
|
812
|
-
this.CheckBoxMainStyle = CheckboxMainStyle.None;
|
|
813
|
-
this.RadioButtonAppearance = RbAppearance.None;
|
|
814
677
|
this.Name = null;
|
|
815
678
|
this.GuiMgForm = null;
|
|
816
679
|
}
|
|
@@ -862,9 +725,6 @@ class GuiMgControl extends ControlBase {
|
|
|
862
725
|
isTabControl() {
|
|
863
726
|
return this._type === MgControlType.CTRL_TYPE_TAB;
|
|
864
727
|
}
|
|
865
|
-
isLineControl() {
|
|
866
|
-
return this._type === MgControlType.CTRL_TYPE_LINE;
|
|
867
|
-
}
|
|
868
728
|
isTextControl() {
|
|
869
729
|
return this._type === MgControlType.CTRL_TYPE_TEXT;
|
|
870
730
|
}
|
|
@@ -895,9 +755,6 @@ class GuiMgControl extends ControlBase {
|
|
|
895
755
|
isSelectionCtrl() {
|
|
896
756
|
return this._type === MgControlType.CTRL_TYPE_COMBO || this._type === MgControlType.CTRL_TYPE_LIST;
|
|
897
757
|
}
|
|
898
|
-
isBrowserControl() {
|
|
899
|
-
return this._type === MgControlType.CTRL_TYPE_BROWSER;
|
|
900
|
-
}
|
|
901
758
|
isCheckBox() {
|
|
902
759
|
return this._type === MgControlType.CTRL_TYPE_CHECKBOX;
|
|
903
760
|
}
|
|
@@ -916,20 +773,6 @@ class GuiMgControl extends ControlBase {
|
|
|
916
773
|
}
|
|
917
774
|
return val;
|
|
918
775
|
}
|
|
919
|
-
isContainer() {
|
|
920
|
-
switch (this._type) {
|
|
921
|
-
case MgControlType.CTRL_TYPE_TAB:
|
|
922
|
-
case MgControlType.CTRL_TYPE_TABLE:
|
|
923
|
-
case MgControlType.CTRL_TYPE_GROUP:
|
|
924
|
-
case MgControlType.CTRL_TYPE_CONTAINER:
|
|
925
|
-
return true;
|
|
926
|
-
default:
|
|
927
|
-
return false;
|
|
928
|
-
}
|
|
929
|
-
}
|
|
930
|
-
SupportGradient() {
|
|
931
|
-
return this.isButton() || this.isLabel() || this.isTabControl() || this.isGroup() || this.IsCheckBoxMainStyleButton() || this.IsRadioAppearanceButton();
|
|
932
|
-
}
|
|
933
776
|
IsImageButton() {
|
|
934
777
|
let result = false;
|
|
935
778
|
if (this.isButton()) {
|
|
@@ -937,13 +780,6 @@ class GuiMgControl extends ControlBase {
|
|
|
937
780
|
}
|
|
938
781
|
return result;
|
|
939
782
|
}
|
|
940
|
-
IsButtonPushButton() {
|
|
941
|
-
let result = false;
|
|
942
|
-
if (this.isButton()) {
|
|
943
|
-
result = (this.ButtonStyle === CtrlButtonTypeGui.Push);
|
|
944
|
-
}
|
|
945
|
-
return result;
|
|
946
|
-
}
|
|
947
783
|
IsHyperTextButton() {
|
|
948
784
|
let result = false;
|
|
949
785
|
if (this.isButton()) {
|
|
@@ -951,89 +787,6 @@ class GuiMgControl extends ControlBase {
|
|
|
951
787
|
}
|
|
952
788
|
return result;
|
|
953
789
|
}
|
|
954
|
-
IsCheckBoxMainStyleButton() {
|
|
955
|
-
let result = false;
|
|
956
|
-
if (this.isCheckBox()) {
|
|
957
|
-
result = (this.CheckBoxMainStyle === CheckboxMainStyle.Button);
|
|
958
|
-
}
|
|
959
|
-
return result;
|
|
960
|
-
}
|
|
961
|
-
IsRadioAppearanceButton() {
|
|
962
|
-
let result = false;
|
|
963
|
-
if (this.isRadio()) {
|
|
964
|
-
result = (this.RadioButtonAppearance === RbAppearance.Button);
|
|
965
|
-
}
|
|
966
|
-
return result;
|
|
967
|
-
}
|
|
968
|
-
getControlTypeName() {
|
|
969
|
-
let result = null;
|
|
970
|
-
switch (this._type) {
|
|
971
|
-
case MgControlType.CTRL_TYPE_STATUS_BAR:
|
|
972
|
-
result = "Status bar";
|
|
973
|
-
break;
|
|
974
|
-
case MgControlType.CTRL_TYPE_SB_LABEL:
|
|
975
|
-
result = "Status bar label";
|
|
976
|
-
break;
|
|
977
|
-
case MgControlType.CTRL_TYPE_SB_IMAGE:
|
|
978
|
-
result = "Status bar image";
|
|
979
|
-
break;
|
|
980
|
-
case MgControlType.CTRL_TYPE_TABLE:
|
|
981
|
-
result = "Table";
|
|
982
|
-
break;
|
|
983
|
-
case MgControlType.CTRL_TYPE_BUTTON:
|
|
984
|
-
result = "Button";
|
|
985
|
-
break;
|
|
986
|
-
case MgControlType.CTRL_TYPE_CHECKBOX:
|
|
987
|
-
result = "Checkbox";
|
|
988
|
-
break;
|
|
989
|
-
case MgControlType.CTRL_TYPE_COMBO:
|
|
990
|
-
result = "Combo";
|
|
991
|
-
break;
|
|
992
|
-
case MgControlType.CTRL_TYPE_LIST:
|
|
993
|
-
result = "List";
|
|
994
|
-
break;
|
|
995
|
-
case MgControlType.CTRL_TYPE_SUBFORM:
|
|
996
|
-
result = "Subform";
|
|
997
|
-
break;
|
|
998
|
-
case MgControlType.CTRL_TYPE_GROUP:
|
|
999
|
-
result = "Groupbox";
|
|
1000
|
-
break;
|
|
1001
|
-
case MgControlType.CTRL_TYPE_IMAGE:
|
|
1002
|
-
result = "Image";
|
|
1003
|
-
break;
|
|
1004
|
-
case MgControlType.CTRL_TYPE_TAB:
|
|
1005
|
-
result = "Tab";
|
|
1006
|
-
break;
|
|
1007
|
-
case MgControlType.CTRL_TYPE_COLUMN:
|
|
1008
|
-
result = "Column";
|
|
1009
|
-
break;
|
|
1010
|
-
case MgControlType.CTRL_TYPE_LABEL:
|
|
1011
|
-
result = "Label";
|
|
1012
|
-
break;
|
|
1013
|
-
case MgControlType.CTRL_TYPE_FRAME_SET:
|
|
1014
|
-
result = "Frame set";
|
|
1015
|
-
break;
|
|
1016
|
-
case MgControlType.CTRL_TYPE_CONTAINER:
|
|
1017
|
-
result = "Container";
|
|
1018
|
-
break;
|
|
1019
|
-
case MgControlType.CTRL_TYPE_RADIO:
|
|
1020
|
-
result = "Radio";
|
|
1021
|
-
break;
|
|
1022
|
-
case MgControlType.CTRL_TYPE_TEXT:
|
|
1023
|
-
result = "Text";
|
|
1024
|
-
break;
|
|
1025
|
-
case MgControlType.CTRL_TYPE_FRAME_FORM:
|
|
1026
|
-
result = "Frame form";
|
|
1027
|
-
break;
|
|
1028
|
-
case MgControlType.CTRL_TYPE_BROWSER:
|
|
1029
|
-
result = "Browser";
|
|
1030
|
-
break;
|
|
1031
|
-
case MgControlType.CTRL_TYPE_LINE:
|
|
1032
|
-
result = "Line";
|
|
1033
|
-
break;
|
|
1034
|
-
}
|
|
1035
|
-
return result;
|
|
1036
|
-
}
|
|
1037
790
|
}
|
|
1038
791
|
|
|
1039
792
|
var DateElement;
|
|
@@ -1823,13 +1576,7 @@ class Manager {
|
|
|
1823
1576
|
static GetCurrentContextID() {
|
|
1824
1577
|
return Manager._currentContextID;
|
|
1825
1578
|
}
|
|
1826
|
-
static
|
|
1827
|
-
return Manager._delayWait;
|
|
1828
|
-
}
|
|
1829
|
-
static CanFocus() {
|
|
1830
|
-
return false;
|
|
1831
|
-
}
|
|
1832
|
-
static Init(startupImageFileName) {
|
|
1579
|
+
static Init() {
|
|
1833
1580
|
return;
|
|
1834
1581
|
}
|
|
1835
1582
|
static Abort(form) {
|
|
@@ -1877,19 +1624,6 @@ class Manager {
|
|
|
1877
1624
|
await mgForm.firstTableRefresh();
|
|
1878
1625
|
}
|
|
1879
1626
|
}
|
|
1880
|
-
static CaretPosGet(ctrl) {
|
|
1881
|
-
let caretPos = 0;
|
|
1882
|
-
if (ctrl.isTextControl())
|
|
1883
|
-
caretPos = Commands.caretPosGet(ctrl, ctrl.getDisplayLine(true));
|
|
1884
|
-
return caretPos;
|
|
1885
|
-
}
|
|
1886
|
-
static ClearStatusBar(task) {
|
|
1887
|
-
let currentParkedControl = task.getLastParkedCtrl();
|
|
1888
|
-
if (currentParkedControl !== null && !NString.IsNullOrEmpty(currentParkedControl.PromptHelp))
|
|
1889
|
-
task.WriteToMessagePane(currentParkedControl.PromptHelp);
|
|
1890
|
-
else
|
|
1891
|
-
Manager.CleanMessagePane(task);
|
|
1892
|
-
}
|
|
1893
1627
|
static CleanMessagePane(task) {
|
|
1894
1628
|
task.WriteToMessagePane(Manager.GetCurrentRuntimeContext().DefaultStatusMsg);
|
|
1895
1629
|
}
|
|
@@ -1906,98 +1640,19 @@ class Manager {
|
|
|
1906
1640
|
}
|
|
1907
1641
|
return msg;
|
|
1908
1642
|
}
|
|
1909
|
-
static SetEditText(ctrl, text) {
|
|
1910
|
-
Commands.setEditText(ctrl, ctrl.getDisplayLine(true), text);
|
|
1911
|
-
}
|
|
1912
|
-
static InsertEditText(ctrl, startPosition, textToInsert) {
|
|
1913
|
-
Commands.insertEditText(ctrl, ctrl.getDisplayLine(true), startPosition, textToInsert);
|
|
1914
|
-
}
|
|
1915
|
-
static GetTooltipTimeout() {
|
|
1916
|
-
return GuiEnvironment.Environment.GetTooltipTimeout();
|
|
1917
|
-
}
|
|
1918
|
-
static GetSpecialEditLeftAlign() {
|
|
1919
|
-
return GuiEnvironment.Environment.GetSpecialEditLeftAlign();
|
|
1920
|
-
}
|
|
1921
|
-
static GetDefaultDateFormat() {
|
|
1922
|
-
let dateFormat = "";
|
|
1923
|
-
let dateSeperator = GuiEnvironment.Environment.GetDate();
|
|
1924
|
-
switch (GuiEnvironment.Environment.GetDateMode(0)) {
|
|
1925
|
-
case 'S':
|
|
1926
|
-
dateFormat = "YYYY" + dateSeperator + "MM" + dateSeperator + "DD";
|
|
1927
|
-
break;
|
|
1928
|
-
case 'B':
|
|
1929
|
-
case 'E':
|
|
1930
|
-
dateFormat = "DD" + dateSeperator + "MM" + dateSeperator + "YYYY";
|
|
1931
|
-
break;
|
|
1932
|
-
case 'A':
|
|
1933
|
-
dateFormat = "MM" + dateSeperator + "DD" + dateSeperator + "YYYY";
|
|
1934
|
-
break;
|
|
1935
|
-
}
|
|
1936
|
-
return dateFormat;
|
|
1937
|
-
}
|
|
1938
|
-
static GetDefaultTimeFormat() {
|
|
1939
|
-
let timeSeperator = GuiEnvironment.Environment.GetTime();
|
|
1940
|
-
let timeFormat = "HH" + timeSeperator + "MM" + timeSeperator + "SS";
|
|
1941
|
-
return timeFormat;
|
|
1942
|
-
}
|
|
1943
1643
|
static GetCurrentRuntimeContext() {
|
|
1944
1644
|
return Events.GetRuntimeContext(Manager.GetCurrentContextID());
|
|
1945
1645
|
}
|
|
1946
|
-
static GetContextID(mgObject) {
|
|
1947
|
-
let guiMgForm = null;
|
|
1948
|
-
if (mgObject instanceof GuiMgControl)
|
|
1949
|
-
guiMgForm = mgObject.GuiMgForm;
|
|
1950
|
-
else if (mgObject instanceof GuiMgForm)
|
|
1951
|
-
guiMgForm = mgObject;
|
|
1952
|
-
return Events.GetContextID(guiMgForm);
|
|
1953
|
-
}
|
|
1954
|
-
static ShowWindowHelp(filePath, helpCmd, helpKey) {
|
|
1955
|
-
}
|
|
1956
1646
|
static GetSpecialValNewPolicy() {
|
|
1957
1647
|
return GuiEnvironment.Environment.GetSpecialValNewPolicy();
|
|
1958
1648
|
}
|
|
1959
1649
|
}
|
|
1960
1650
|
Manager.IsOverlayOpen = false;
|
|
1961
|
-
Manager._delayWait = new Object();
|
|
1962
|
-
Manager._clipboardData = "";
|
|
1963
1651
|
Manager._currentContextID = '\0';
|
|
1964
1652
|
Manager.DefaultProtocol = null;
|
|
1965
1653
|
Manager.DefaultServerName = null;
|
|
1966
1654
|
Manager.UtilImeJpn = (UtilStrByteMode.isLocaleDefLangJPN() ? new UtilImeJpn() : null);
|
|
1967
|
-
Manager.EventsManager = null;
|
|
1968
|
-
class ContextIDGuard {
|
|
1969
|
-
constructor(contextID) {
|
|
1970
|
-
this._prevContextID = '\0';
|
|
1971
|
-
this._fileName = null;
|
|
1972
|
-
if (arguments.length === 0) {
|
|
1973
|
-
this.constructor_0();
|
|
1974
|
-
return;
|
|
1975
|
-
}
|
|
1976
|
-
this.constructor_1(contextID);
|
|
1977
|
-
}
|
|
1978
|
-
constructor_0() {
|
|
1979
|
-
this._prevContextID = Manager.GetCurrentContextID();
|
|
1980
|
-
this.SaveFilename();
|
|
1981
|
-
}
|
|
1982
|
-
constructor_1(contextID) {
|
|
1983
|
-
this.SetCurrent(contextID);
|
|
1984
|
-
this.SaveFilename();
|
|
1985
|
-
}
|
|
1986
|
-
SetCurrent(contextID) {
|
|
1987
|
-
if (contextID !== this._prevContextID) {
|
|
1988
|
-
this._prevContextID = contextID;
|
|
1989
|
-
Manager.SetCurrentContextID(contextID);
|
|
1990
|
-
}
|
|
1991
|
-
}
|
|
1992
|
-
SaveFilename() {
|
|
1993
|
-
let stackFrame = new StackFrame(1);
|
|
1994
|
-
this._fileName = stackFrame.GetFileName();
|
|
1995
|
-
}
|
|
1996
|
-
Dispose() {
|
|
1997
|
-
if (this._prevContextID !== Manager.GetCurrentContextID())
|
|
1998
|
-
Manager.SetCurrentContextID(this._prevContextID);
|
|
1999
|
-
}
|
|
2000
|
-
}
|
|
1655
|
+
Manager.EventsManager = null;
|
|
2001
1656
|
|
|
2002
1657
|
class GuiConstants {
|
|
2003
1658
|
constructor() {
|
|
@@ -4553,7 +4208,6 @@ class NUM_TYPE {
|
|
|
4553
4208
|
return this._data[0] === NUM_TYPE.NUM_LONG_TYPE;
|
|
4554
4209
|
}
|
|
4555
4210
|
NUM_LONG() {
|
|
4556
|
-
let i;
|
|
4557
4211
|
if (this._data[1] === 0 && this._data[2] === 0 && this._data[3] === 0 && this._data[4] === -128)
|
|
4558
4212
|
return Int32.MinValue;
|
|
4559
4213
|
let dataview = new DataView(this._data.buffer);
|
|
@@ -5330,28 +4984,12 @@ class NUM_TYPE {
|
|
|
5330
4984
|
}
|
|
5331
4985
|
}
|
|
5332
4986
|
NUM_TYPE.INT_ZERO_HEX = "00000000";
|
|
5333
|
-
NUM_TYPE.BYTE_ZERO_BIT = "00000000";
|
|
5334
4987
|
NUM_TYPE.NO_ROOM = -1;
|
|
5335
4988
|
NUM_TYPE.ZERO_FILL = -2;
|
|
5336
4989
|
NUM_TYPE.NUM_SIZE = 20;
|
|
5337
4990
|
NUM_TYPE.NUM_LONG_TYPE = -1;
|
|
5338
4991
|
NUM_TYPE.EXP_BIAS = 64;
|
|
5339
4992
|
NUM_TYPE.SIGN_MASK = -128;
|
|
5340
|
-
NUM_TYPE._randtbl = [
|
|
5341
|
-
41, 179, 9, 40, 93, 224, 24, 94, 39, 110, 70, 85, 196, 129, 80, 11, 127, 42, 87,
|
|
5342
|
-
8, 243, 96, 174, 153, 61, 192, 17, 20, 235, 7, 47, 222, 53, 216, 101, 112, 44, 139, 109,
|
|
5343
|
-
233, 108, 57, 240, 229, 160, 219, 251, 15, 221, 245, 239, 104, 182, 33, 138, 59, 166, 247, 146,
|
|
5344
|
-
190, 31, 125, 188, 114, 97, 86, 157, 106, 3, 142, 66, 69, 152, 177, 116, 50, 149, 242, 144,
|
|
5345
|
-
28, 29, 95, 37, 2, 117, 246, 65, 183, 206, 241, 230, 131, 13, 145, 63, 98, 200, 176, 226,
|
|
5346
|
-
5, 158, 189, 49, 18, 54, 30, 120, 227, 68, 48, 91, 89, 252, 210, 185, 203, 140, 171, 155,
|
|
5347
|
-
56, 162, 249, 201, 134, 244, 67, 197, 148, 248, 82, 100, 34, 90, 236, 51, 167, 178, 207, 193,
|
|
5348
|
-
164, 225, 218, 147, 79, 71, 217, 151, 38, 198, 215, 212, 123, 156, 76, 121, 113, 253, 55, 255,
|
|
5349
|
-
23, 25, 231, 187, 21, 72, 209, 103, 81, 35, 12, 6, 122, 78, 32, 60, 92, 14, 202, 83,
|
|
5350
|
-
128, 195, 135, 223, 211, 181, 84, 0, 119, 173, 165, 234, 45, 208, 107, 136, 199, 126, 141, 163,
|
|
5351
|
-
180, 99, 172, 220, 75, 115, 232, 111, 228, 204, 237, 73, 254, 62, 105, 132, 22, 36, 118, 143,
|
|
5352
|
-
161, 133, 169, 10, 52, 186, 184, 170, 77, 205, 137, 124, 238, 16, 159, 250, 191, 74, 27, 130,
|
|
5353
|
-
4, 194, 1, 46, 58, 102, 64, 168, 150, 88, 214, 175, 213, 154, 26, 43, 19
|
|
5354
|
-
];
|
|
5355
4993
|
class OperData {
|
|
5356
4994
|
constructor() {
|
|
5357
4995
|
this.NUM_Diff_ = 0;
|
|
@@ -5984,7 +5622,6 @@ class DisplayConvertor {
|
|
|
5984
5622
|
fromMgDateToNativeDate(dataStr, compIdx) {
|
|
5985
5623
|
let date = new NUM_TYPE(dataStr).NUM_2_ULONG();
|
|
5986
5624
|
let breakParams;
|
|
5987
|
-
let outIdx = 0;
|
|
5988
5625
|
breakParams = new DateBreakParams();
|
|
5989
5626
|
this.date_break_datemode(breakParams, date, false, compIdx);
|
|
5990
5627
|
if (breakParams.month > 0)
|
|
@@ -5995,7 +5632,6 @@ class DisplayConvertor {
|
|
|
5995
5632
|
return nativeDt;
|
|
5996
5633
|
}
|
|
5997
5634
|
fromNativeDateToMgDateNumber(nativeDate, pic) {
|
|
5998
|
-
let mgNum = new NUM_TYPE();
|
|
5999
5635
|
let numVal;
|
|
6000
5636
|
let dateParams;
|
|
6001
5637
|
let millenium = 0;
|
|
@@ -7124,7 +6760,6 @@ class DisplayConvertor {
|
|
|
7124
6760
|
return newValue;
|
|
7125
6761
|
}
|
|
7126
6762
|
fillAlphaByDiscreteRangeValues(discreteRangeValues, newValue) {
|
|
7127
|
-
let result;
|
|
7128
6763
|
if (discreteRangeValues !== null) {
|
|
7129
6764
|
for (let i = 0; i < discreteRangeValues.length; i = i + 1) {
|
|
7130
6765
|
let discreteValue = discreteRangeValues.get_Item(i);
|
|
@@ -7300,7 +6935,6 @@ class VectorTypeBase {
|
|
|
7300
6935
|
return valid;
|
|
7301
6936
|
}
|
|
7302
6937
|
static adjustAlphaStringsInFlatData(srcBlob) {
|
|
7303
|
-
let result;
|
|
7304
6938
|
if (VectorTypeBase.validateBlobContents(srcBlob)) {
|
|
7305
6939
|
let destBuf = new StringBuilder();
|
|
7306
6940
|
let pos = BlobType.blobPrefixLength(srcBlob);
|
|
@@ -9263,7 +8897,6 @@ class Property {
|
|
|
9263
8897
|
}
|
|
9264
8898
|
SetFirstValueForCustomValidationProperties() {
|
|
9265
8899
|
for (let customProperty of this.customValidatorProperties.keys()) {
|
|
9266
|
-
let c = this.customValidatorProperties.get(customProperty);
|
|
9267
8900
|
this.customValidatorValues.set(customProperty, new CustomValidator(true, ""));
|
|
9268
8901
|
}
|
|
9269
8902
|
this._val = this.GetArrayValuesForCustomValidationProperties();
|
|
@@ -9285,9 +8918,6 @@ class Property {
|
|
|
9285
8918
|
this._val = this.GetArrayValuesForCustomProperties();
|
|
9286
8919
|
this._orgValue = this._val;
|
|
9287
8920
|
}
|
|
9288
|
-
ResetComputedOnceFlag() {
|
|
9289
|
-
this._expAlreadyComputedOnce = false;
|
|
9290
|
-
}
|
|
9291
8921
|
InitTaskDefinitionId(xmlBuffer) {
|
|
9292
8922
|
let taskDefinitionIdTableSaxHandler = new TaskDefinitionIdTableSaxHandler(this.SetTaskDefinitionId);
|
|
9293
8923
|
taskDefinitionIdTableSaxHandler.parse(xmlBuffer);
|
|
@@ -9537,12 +9167,6 @@ class Property {
|
|
|
9537
9167
|
break;
|
|
9538
9168
|
}
|
|
9539
9169
|
}
|
|
9540
|
-
getParentObj() {
|
|
9541
|
-
return this._parentObj;
|
|
9542
|
-
}
|
|
9543
|
-
getParentType() {
|
|
9544
|
-
return this._parentType;
|
|
9545
|
-
}
|
|
9546
9170
|
getID() {
|
|
9547
9171
|
return this._id;
|
|
9548
9172
|
}
|
|
@@ -9575,17 +9199,6 @@ class Property {
|
|
|
9575
9199
|
setOrgValue() {
|
|
9576
9200
|
this._orgValue = this._val;
|
|
9577
9201
|
}
|
|
9578
|
-
SetStudioValueAsOrgValue() {
|
|
9579
|
-
this._orgValue = this.StudioValue;
|
|
9580
|
-
}
|
|
9581
|
-
getForm() {
|
|
9582
|
-
let form = null;
|
|
9583
|
-
if (this._parentType === GuiConstants.PARENT_TYPE_FORM)
|
|
9584
|
-
form = this._parentObj;
|
|
9585
|
-
else if (this._parentType === GuiConstants.PARENT_TYPE_CONTROL)
|
|
9586
|
-
form = this._parentObj.getForm();
|
|
9587
|
-
return form;
|
|
9588
|
-
}
|
|
9589
9202
|
GetTaskByParentObject() {
|
|
9590
9203
|
let task = null;
|
|
9591
9204
|
if (this._parentType === GuiConstants.PARENT_TYPE_FORM)
|
|
@@ -10226,7 +9839,7 @@ class Property {
|
|
|
10226
9839
|
ctrl.resetPrevVal();
|
|
10227
9840
|
switch (ctrl.Type) {
|
|
10228
9841
|
case MgControlType.CTRL_TYPE_BUTTON:
|
|
10229
|
-
if (ctrl.getField() == null && !ctrl.expressionSetAsData() || ctrl.IsImageButton() || (this._parentObj.IsFirstRefreshOfProps()
|
|
9842
|
+
if (ctrl.getField() == null && !ctrl.expressionSetAsData() || ctrl.IsImageButton() || (this._parentObj.IsFirstRefreshOfProps()))
|
|
10230
9843
|
this.addCommandTypeText(this.getLine());
|
|
10231
9844
|
break;
|
|
10232
9845
|
case MgControlType.CTRL_TYPE_TEXT:
|
|
@@ -10322,8 +9935,6 @@ class Property {
|
|
|
10322
9935
|
}
|
|
10323
9936
|
async computeCustomPropertiesValues() {
|
|
10324
9937
|
for (let [customPropertyKey, customPropertyValue] of this.customProperties) {
|
|
10325
|
-
let len = 255;
|
|
10326
|
-
let wasEvaluated = new RefParam(false);
|
|
10327
9938
|
let expression = customPropertyValue;
|
|
10328
9939
|
let retExpressionValue = await this.GetRetrunValueForCustomPropertyExpression(expression);
|
|
10329
9940
|
this.customPropertiesValues.set(customPropertyKey, retExpressionValue);
|
|
@@ -10334,8 +9945,6 @@ class Property {
|
|
|
10334
9945
|
let evaluated = true;
|
|
10335
9946
|
if (mgControl.ModifiedByUser || mgControl.ValidateControl || this.GetTaskByParentObject().IsInRecompute()) {
|
|
10336
9947
|
for (let [customPropertyKey, customValidatorProperty] of this.customValidatorProperties) {
|
|
10337
|
-
let len = 255;
|
|
10338
|
-
let wasEvaluated = new RefParam(false);
|
|
10339
9948
|
let expression = customValidatorProperty._exp;
|
|
10340
9949
|
let isInValid = await this.GetRetrunValueForCustomPropertyExpression(expression);
|
|
10341
9950
|
let errString = "";
|
|
@@ -10700,9 +10309,7 @@ class FieldValidator {
|
|
|
10700
10309
|
this._pictureReal = null;
|
|
10701
10310
|
this._pictureEnable = null;
|
|
10702
10311
|
this._valDet = null;
|
|
10703
|
-
this._isPm = false;
|
|
10704
10312
|
this._picture = null;
|
|
10705
|
-
this.hebrew = false;
|
|
10706
10313
|
this._decimal = null;
|
|
10707
10314
|
this._environment = null;
|
|
10708
10315
|
this._environment = GuiEnvironment.Environment;
|
|
@@ -11352,7 +10959,6 @@ class FieldValidator {
|
|
|
11352
10959
|
init(validationDetails) {
|
|
11353
10960
|
this._valDet = validationDetails;
|
|
11354
10961
|
this._valDet.setNull(false);
|
|
11355
|
-
this._isPm = false;
|
|
11356
10962
|
let pIC = this._valDet.getPIC();
|
|
11357
10963
|
this._oldvalue = this._valDet.getOldValue();
|
|
11358
10964
|
this._newvalue = this._valDet.getDispValue();
|
|
@@ -11365,7 +10971,6 @@ class FieldValidator {
|
|
|
11365
10971
|
}
|
|
11366
10972
|
if (!(pIC === null || pIC.getAttr() === StorageAttribute.BLOB || pIC.getAttr() === StorageAttribute.BLOB_VECTOR)) {
|
|
11367
10973
|
this._picture = pIC.getMask();
|
|
11368
|
-
this.hebrew = pIC.isHebrew();
|
|
11369
10974
|
this._picture = this._picture.substr(0, pIC.getMaskSize());
|
|
11370
10975
|
}
|
|
11371
10976
|
}
|
|
@@ -11946,13 +11551,11 @@ class MgControlBase extends GuiControlPropertyAdapter {
|
|
|
11946
11551
|
this._propTab = null;
|
|
11947
11552
|
this._range = null;
|
|
11948
11553
|
this._rangeChanged = false;
|
|
11949
|
-
this._rtfVal = NString.Empty;
|
|
11950
11554
|
this._valExpId = 0;
|
|
11951
11555
|
this._vd = null;
|
|
11952
11556
|
this._dcValId = -2;
|
|
11953
11557
|
this.parent = 0;
|
|
11954
11558
|
this.veeIndx = 0;
|
|
11955
|
-
this.DNObjectReferenceField = null;
|
|
11956
11559
|
this.SourceTableReference = null;
|
|
11957
11560
|
this.ClipBoardDataExists = false;
|
|
11958
11561
|
this.DataType = StorageAttribute.NONE;
|
|
@@ -12681,9 +12284,7 @@ class MgControlBase extends GuiControlPropertyAdapter {
|
|
|
12681
12284
|
mgVal = await this.getLinkValue(dispVal, line);
|
|
12682
12285
|
}
|
|
12683
12286
|
if (mgVal === null) {
|
|
12684
|
-
let isNull = false;
|
|
12685
12287
|
let refMgVal = new RefParam(mgVal);
|
|
12686
|
-
let refIsNull = new RefParam(isNull);
|
|
12687
12288
|
if (this._field !== null) {
|
|
12688
12289
|
mgVal = refMgVal.value;
|
|
12689
12290
|
}
|
|
@@ -13650,7 +13251,6 @@ class MgControlBase extends GuiControlPropertyAdapter {
|
|
|
13650
13251
|
}
|
|
13651
13252
|
getControlNameForHandlerSearch() {
|
|
13652
13253
|
let childControl = this.getColumnChildControl();
|
|
13653
|
-
let name;
|
|
13654
13254
|
if (childControl !== null) {
|
|
13655
13255
|
return childControl.Name;
|
|
13656
13256
|
}
|
|
@@ -13695,7 +13295,7 @@ class MgControlBase extends GuiControlPropertyAdapter {
|
|
|
13695
13295
|
}
|
|
13696
13296
|
if (result) {
|
|
13697
13297
|
if (!super.isSubform()) {
|
|
13698
|
-
result = ((this._field !== null && this._field.getTask() === task) || this.isButton()
|
|
13298
|
+
result = ((this._field !== null && this._field.getTask() === task) || this.isButton());
|
|
13699
13299
|
}
|
|
13700
13300
|
if (result && checkEnabledAndVisible) {
|
|
13701
13301
|
result = (this.isEnabled() && this.isVisible());
|
|
@@ -13880,9 +13480,6 @@ class ControlTable {
|
|
|
13880
13480
|
}
|
|
13881
13481
|
return -1;
|
|
13882
13482
|
}
|
|
13883
|
-
static SelectDataControlPredicate(control) {
|
|
13884
|
-
return control.isDataCtrl();
|
|
13885
|
-
}
|
|
13886
13483
|
}
|
|
13887
13484
|
|
|
13888
13485
|
const delimiter = ', ';
|
|
@@ -14824,10 +14421,6 @@ class LastFocusedVal {
|
|
|
14824
14421
|
}
|
|
14825
14422
|
|
|
14826
14423
|
class DialogHandler {
|
|
14827
|
-
createDialog(parameters) {
|
|
14828
|
-
let guiInteractive = new GuiInteractive();
|
|
14829
|
-
guiInteractive.createDialog(this, parameters);
|
|
14830
|
-
}
|
|
14831
14424
|
closeDialog() {
|
|
14832
14425
|
}
|
|
14833
14426
|
constructor() {
|
|
@@ -14836,32 +14429,6 @@ class DialogHandler {
|
|
|
14836
14429
|
|
|
14837
14430
|
class Styles {
|
|
14838
14431
|
}
|
|
14839
|
-
Styles.PROP_STYLE_BUTTON_PUSH = 0x00000001;
|
|
14840
|
-
Styles.PROP_STYLE_BUTTON_IMAGE = 0x00000002;
|
|
14841
|
-
Styles.PROP_STYLE_BUTTON_HYPERTEXT = 0x00000004;
|
|
14842
|
-
Styles.PROP_STYLE_BUTTON_TEXT_ON_IMAGE = 0x00000008;
|
|
14843
|
-
Styles.PROP_STYLE_HOR_RIGHT = 0x00000010;
|
|
14844
|
-
Styles.PROP_STYLE_RIGHT_TO_LEFT = 0x00000020;
|
|
14845
|
-
Styles.PROP_STYLE_HORIZONTAL_SCROLL = 0x00000040;
|
|
14846
|
-
Styles.PROP_STYLE_VERTICAL_SCROLL = 0x00000080;
|
|
14847
|
-
Styles.PROP_STYLE_TITLE = 0x00000100;
|
|
14848
|
-
Styles.PROP_STYLE_CLOSE = 0x00000200;
|
|
14849
|
-
Styles.PROP_STYLE_MIN = 0x00000400;
|
|
14850
|
-
Styles.PROP_STYLE_MAX = 0x00000800;
|
|
14851
|
-
Styles.PROP_STYLE_BORDER = 0x00001000;
|
|
14852
|
-
Styles.PROP_STYLE_BORDER_STYLE_THIN = 0x00002000;
|
|
14853
|
-
Styles.PROP_STYLE_BORDER_STYLE_THICK = 0x00004000;
|
|
14854
|
-
Styles.PROP_STYLE_READ_ONLY = 0x00008000;
|
|
14855
|
-
Styles.PROP_STYLE_APPEARANCE_CHECK = 0x00010000;
|
|
14856
|
-
Styles.PROP_STYLE_APPEARANCE_BUTTON = 0x00020000;
|
|
14857
|
-
Styles.PROP_STYLE_WORD_WRAP = 0x00040000;
|
|
14858
|
-
Styles.PROP_STYLE_STYLE_FLAT = 0x00080000;
|
|
14859
|
-
Styles.PROP_STYLE_TAB_SIDE_TOP = 0x04000000;
|
|
14860
|
-
Styles.PROP_STYLE_TAB_SIDE_BOTTOM = 0x08000000;
|
|
14861
|
-
Styles.PROP_STYLE_NO_BACKGROUND = 0x10000000;
|
|
14862
|
-
Styles.PROP_STYLE_SHOW_LINES = 0x20000000;
|
|
14863
|
-
Styles.PROP_STYLE_HORIZONTAL = 0x40000000;
|
|
14864
|
-
Styles.PROP_STYLE_VERTICAL = 0x80000000;
|
|
14865
14432
|
Styles.MSGBOX_BUTTON_OK = 0x00000000;
|
|
14866
14433
|
Styles.MSGBOX_BUTTON_OK_CANCEL = 0x00000001;
|
|
14867
14434
|
Styles.MSGBOX_BUTTON_ABORT_RETRY_IGNORE = 0x00000002;
|
|
@@ -14877,7 +14444,6 @@ Styles.MSGBOX_RESULT_OK = 1;
|
|
|
14877
14444
|
Styles.MSGBOX_RESULT_CANCEL = 2;
|
|
14878
14445
|
Styles.MSGBOX_RESULT_ABORT = 3;
|
|
14879
14446
|
Styles.MSGBOX_RESULT_RETRY = 4;
|
|
14880
|
-
Styles.MSGBOX_RESULT_IGNORE = 5;
|
|
14881
14447
|
Styles.MSGBOX_RESULT_YES = 6;
|
|
14882
14448
|
Styles.MSGBOX_RESULT_NO = 7;
|
|
14883
14449
|
|
|
@@ -14889,7 +14455,6 @@ class RuntimeContextBase {
|
|
|
14889
14455
|
this.Parser = null;
|
|
14890
14456
|
this.FrameForm = null;
|
|
14891
14457
|
this.LastClickedCtrlName = null;
|
|
14892
|
-
this.LastClickedMenuUid = 0;
|
|
14893
14458
|
this.RemovedContextFromServer = false;
|
|
14894
14459
|
this.RemovingContextFromServer = false;
|
|
14895
14460
|
this.CurrentClickedCtrl = null;
|
|
@@ -14915,14 +14480,6 @@ class RuntimeContextBase {
|
|
|
14915
14480
|
this.LastClickedCtrlName = controlName;
|
|
14916
14481
|
}
|
|
14917
14482
|
}
|
|
14918
|
-
GetClickProp(index) {
|
|
14919
|
-
if (index >= 0 && index < 4)
|
|
14920
|
-
return this._lastCoordinates[index];
|
|
14921
|
-
throw new ApplicationException("in RuntimeContextBase.getClickProp() illegal index: " + index);
|
|
14922
|
-
}
|
|
14923
|
-
IsInsertMode() {
|
|
14924
|
-
return this._insertMode;
|
|
14925
|
-
}
|
|
14926
14483
|
ToggleInsertMode() {
|
|
14927
14484
|
this._insertMode = !this._insertMode;
|
|
14928
14485
|
}
|
|
@@ -14964,7 +14521,6 @@ class DcValuesBuilderBase {
|
|
|
14964
14521
|
let snumber;
|
|
14965
14522
|
let tmpValue = null;
|
|
14966
14523
|
let buffer = new List();
|
|
14967
|
-
let array;
|
|
14968
14524
|
let len;
|
|
14969
14525
|
let nextIdx;
|
|
14970
14526
|
let endIdx;
|
|
@@ -16160,10 +15716,8 @@ class GuiTaskBase {
|
|
|
16160
15716
|
return n1 << 16 | n2;
|
|
16161
15717
|
}
|
|
16162
15718
|
getHelpItem(idx) {
|
|
16163
|
-
let result;
|
|
16164
15719
|
if (this._helpTab !== null)
|
|
16165
15720
|
return this._helpTab.getHelp(idx);
|
|
16166
|
-
result = null;
|
|
16167
15721
|
}
|
|
16168
15722
|
setProp(propId, val) {
|
|
16169
15723
|
this._propTab.setProp(propId, val, this, 'T');
|
|
@@ -16274,8 +15828,6 @@ class GuiTaskBase {
|
|
|
16274
15828
|
}
|
|
16275
15829
|
GetLastParkedCtrlName(depth) {
|
|
16276
15830
|
let ancestor = this.GetTaskAncestor(depth);
|
|
16277
|
-
let flag = ancestor === null || ancestor._lastParkedCtrl === null;
|
|
16278
|
-
let result;
|
|
16279
15831
|
if (ancestor === null || ancestor._lastParkedCtrl === null)
|
|
16280
15832
|
return "";
|
|
16281
15833
|
return ancestor._lastParkedCtrl.Name;
|
|
@@ -16566,69 +16118,5 @@ class ChangePasswordCredentials extends UsernamePasswordCredentials {
|
|
|
16566
16118
|
}
|
|
16567
16119
|
}
|
|
16568
16120
|
|
|
16569
|
-
|
|
16570
|
-
constructor(username, windowTitle, groupTitle) {
|
|
16571
|
-
super();
|
|
16572
|
-
this._credentials = new UsernamePasswordCredentials();
|
|
16573
|
-
this.ChangePasswordRequested = false;
|
|
16574
|
-
if (arguments.length === 0)
|
|
16575
|
-
this.constructor_0();
|
|
16576
|
-
else if (arguments.length === 1)
|
|
16577
|
-
this.constructor_1(username);
|
|
16578
|
-
else
|
|
16579
|
-
this.constructor_2(username, windowTitle, groupTitle);
|
|
16580
|
-
}
|
|
16581
|
-
constructor_0() {
|
|
16582
|
-
this.constructor_2(null, null, null);
|
|
16583
|
-
}
|
|
16584
|
-
constructor_1(username) {
|
|
16585
|
-
this.constructor_2(username, null, null);
|
|
16586
|
-
}
|
|
16587
|
-
constructor_2(username, windowTitle, groupTitle) {
|
|
16588
|
-
}
|
|
16589
|
-
closeDialog() {
|
|
16590
|
-
super.closeDialog();
|
|
16591
|
-
}
|
|
16592
|
-
setCredentials(newCredentials) {
|
|
16593
|
-
this._credentials.Username = newCredentials.Username;
|
|
16594
|
-
this._credentials.Password = newCredentials.Password;
|
|
16595
|
-
}
|
|
16596
|
-
getCredentials() {
|
|
16597
|
-
return this._credentials;
|
|
16598
|
-
}
|
|
16599
|
-
}
|
|
16600
|
-
|
|
16601
|
-
class ProcessLauncher {
|
|
16602
|
-
static InvokeOS() {
|
|
16603
|
-
return -1;
|
|
16604
|
-
}
|
|
16605
|
-
static SeparateParams(cmd) {
|
|
16606
|
-
const DOUBLE_QUOTE = '"';
|
|
16607
|
-
const SPACE_CHAR = ' ';
|
|
16608
|
-
let parameters = new Array(2);
|
|
16609
|
-
let appName = null;
|
|
16610
|
-
let param = null;
|
|
16611
|
-
let startIdx = 0;
|
|
16612
|
-
let endIdx = -1;
|
|
16613
|
-
cmd = cmd.trim();
|
|
16614
|
-
if (cmd[startIdx] === DOUBLE_QUOTE) {
|
|
16615
|
-
endIdx = cmd.indexOf(DOUBLE_QUOTE, startIdx + 1);
|
|
16616
|
-
}
|
|
16617
|
-
if (endIdx === -1) {
|
|
16618
|
-
endIdx = cmd.indexOf(SPACE_CHAR, startIdx);
|
|
16619
|
-
}
|
|
16620
|
-
if (endIdx === -1) {
|
|
16621
|
-
endIdx = cmd.length - 1;
|
|
16622
|
-
}
|
|
16623
|
-
appName = cmd.substr(startIdx, endIdx + 1 - startIdx);
|
|
16624
|
-
parameters[0] = appName.trim();
|
|
16625
|
-
param = cmd.substr(endIdx + 1, cmd.length - (endIdx + 1));
|
|
16626
|
-
parameters[1] = param.trim();
|
|
16627
|
-
return parameters;
|
|
16628
|
-
}
|
|
16629
|
-
constructor() {
|
|
16630
|
-
}
|
|
16631
|
-
}
|
|
16632
|
-
|
|
16633
|
-
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 };
|
|
16121
|
+
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 };
|
|
16634
16122
|
//# sourceMappingURL=magic-xpa-gui.mjs.map
|