@magic-xpa/gui 4.1100.0-dev4110.7 → 4.1100.0-dev4110.70
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/src/Commands.mjs +9 -3
- package/esm2020/src/gui/low/GuiInteractive.mjs +12 -1
- package/esm2020/src/management/gui/MgFormBase.mjs +8 -5
- package/esm2020/src/management/tasks/GuiTaskBase.mjs +2 -2
- package/fesm2015/magic-xpa-gui.mjs +116 -89
- package/fesm2015/magic-xpa-gui.mjs.map +1 -1
- package/fesm2020/magic-xpa-gui.mjs +94 -73
- package/fesm2020/magic-xpa-gui.mjs.map +1 -1
- package/package.json +2 -2
- package/src/Commands.d.ts +1 -0
- package/src/gui/low/GuiInteractive.d.ts +3 -1
- package/src/management/gui/MgFormBase.d.ts +2 -2
|
@@ -524,6 +524,7 @@ var InteractiveCommandType;
|
|
|
524
524
|
InteractiveCommandType[InteractiveCommandType["GET_MAX_ROWS_IN_PAGINATED_TABLE"] = 11] = "GET_MAX_ROWS_IN_PAGINATED_TABLE";
|
|
525
525
|
InteractiveCommandType[InteractiveCommandType["CALL_JS"] = 12] = "CALL_JS";
|
|
526
526
|
InteractiveCommandType[InteractiveCommandType["GET_LAST_ROUTE"] = 13] = "GET_LAST_ROUTE";
|
|
527
|
+
InteractiveCommandType[InteractiveCommandType["OPEN_FORM"] = 14] = "OPEN_FORM";
|
|
527
528
|
})(InteractiveCommandType || (InteractiveCommandType = {}));
|
|
528
529
|
class GuiInteractiveBase {
|
|
529
530
|
constructor() {
|
|
@@ -646,6 +647,16 @@ class GuiInteractiveBase {
|
|
|
646
647
|
this.Invoke();
|
|
647
648
|
return this.resultString;
|
|
648
649
|
}
|
|
650
|
+
ExecuteOpenOverlayForm(obj, formName, handlerTaskTag, calledTaskTag, inputControls, isDialog) {
|
|
651
|
+
this._commandType = InteractiveCommandType.OPEN_FORM;
|
|
652
|
+
this.controlName = formName;
|
|
653
|
+
this._str = handlerTaskTag;
|
|
654
|
+
this._mgValue = new MgValue();
|
|
655
|
+
this._mgValue.str = calledTaskTag;
|
|
656
|
+
this._mgValue.path = inputControls;
|
|
657
|
+
this._boolVal = isDialog;
|
|
658
|
+
this.Invoke();
|
|
659
|
+
}
|
|
649
660
|
Invoke() {
|
|
650
661
|
GuiCommandQueue.getInstance().invoke();
|
|
651
662
|
if (this._obj2 instanceof ControlBase) {
|
|
@@ -1154,73 +1165,6 @@ class GuiCommand {
|
|
|
1154
1165
|
}
|
|
1155
1166
|
}
|
|
1156
1167
|
|
|
1157
|
-
class GuiConstants {
|
|
1158
|
-
constructor() {
|
|
1159
|
-
}
|
|
1160
|
-
}
|
|
1161
|
-
GuiConstants.DEFAULT_LIST_VALUE = -1;
|
|
1162
|
-
GuiConstants.DEFAULT_VALUE_INT = -999999;
|
|
1163
|
-
GuiConstants.ALL_LINES = -1;
|
|
1164
|
-
GuiConstants.NO_ROW_SELECTED = Int32.MinValue;
|
|
1165
|
-
GuiConstants.RIA_MOBILE_UNSUPPORTED_CONTROL_ERROR = "control is not supported for mobile RIA deployment";
|
|
1166
|
-
GuiConstants.RIA_MOBILE_UNSUPPORTED_CONTROL_ERROR_WINDOW_6 = "control is not supported for mobile RIA deployment on Window 6 standard";
|
|
1167
|
-
GuiConstants.TOOL_HEIGHT = 17;
|
|
1168
|
-
GuiConstants.TOOL_WIDTH = 16;
|
|
1169
|
-
GuiConstants.STR_DISPLAY_MEMBER = "DisplayMember";
|
|
1170
|
-
GuiConstants.STR_VALUE_MEMBER = "ValueMember";
|
|
1171
|
-
GuiConstants.PARENT_TYPE_TASK = 'T';
|
|
1172
|
-
GuiConstants.PARENT_TYPE_FORM = 'F';
|
|
1173
|
-
GuiConstants.PARENT_TYPE_CONTROL = 'C';
|
|
1174
|
-
GuiConstants.GENERIC_PROPERTY_BASE_ID = 10000;
|
|
1175
|
-
GuiConstants.TABBING_CYCLE_REMAIN_IN_CURRENT_RECORD = 'R';
|
|
1176
|
-
GuiConstants.TABBING_CYCLE_MOVE_TO_NEXT_RECORD = 'N';
|
|
1177
|
-
GuiConstants.TABBING_CYCLE_MOVE_TO_PARENT_TASK = 'P';
|
|
1178
|
-
GuiConstants.BLOB_PREFIX_ELEMENTS_COUNT = 5;
|
|
1179
|
-
GuiConstants.KEY_DOWN = 40;
|
|
1180
|
-
GuiConstants.KEY_RIGHT = 39;
|
|
1181
|
-
GuiConstants.KEY_UP = 38;
|
|
1182
|
-
GuiConstants.KEY_LEFT = 37;
|
|
1183
|
-
GuiConstants.KEY_HOME = 36;
|
|
1184
|
-
GuiConstants.KEY_END = 35;
|
|
1185
|
-
GuiConstants.KEY_PG_DOWN = 34;
|
|
1186
|
-
GuiConstants.KEY_PG_UP = 33;
|
|
1187
|
-
GuiConstants.KEY_SPACE = 32;
|
|
1188
|
-
GuiConstants.KEY_F12 = 123;
|
|
1189
|
-
GuiConstants.KEY_F1 = 112;
|
|
1190
|
-
GuiConstants.KEY_9 = 57;
|
|
1191
|
-
GuiConstants.KEY_0 = 48;
|
|
1192
|
-
GuiConstants.KEY_Z = 90;
|
|
1193
|
-
GuiConstants.KEY_A = 65;
|
|
1194
|
-
GuiConstants.KEY_DELETE = 46;
|
|
1195
|
-
GuiConstants.KEY_INSERT = 45;
|
|
1196
|
-
GuiConstants.KEY_BACKSPACE = 8;
|
|
1197
|
-
GuiConstants.KEY_TAB = 9;
|
|
1198
|
-
GuiConstants.KEY_RETURN = 13;
|
|
1199
|
-
GuiConstants.KEY_ESC = 27;
|
|
1200
|
-
GuiConstants.KEY_CAPS_LOCK = 20;
|
|
1201
|
-
GuiConstants.KEY_POINT1 = 190;
|
|
1202
|
-
GuiConstants.KEY_POINT2 = 110;
|
|
1203
|
-
GuiConstants.KEY_COMMA = 188;
|
|
1204
|
-
GuiConstants.KEY_CTRL = 17;
|
|
1205
|
-
GuiConstants.KEY_ALT = 18;
|
|
1206
|
-
GuiConstants.LOGON_CAPTION = "Logon - ";
|
|
1207
|
-
GuiConstants.ENTER_UID_TTL = "Please enter your user ID and password.";
|
|
1208
|
-
GuiConstants.GROUP_BOX_TITLE_MAX_SIZE = 62;
|
|
1209
|
-
GuiConstants.MSG_CAPTION_MAX_SIZE = 56;
|
|
1210
|
-
GuiConstants.LABEL_CAPTION_MAX_SIZE = 9;
|
|
1211
|
-
GuiConstants.PASSWORD_CAPTION_MAX_SIZE = 19;
|
|
1212
|
-
GuiConstants.REPLACE_ALL_TEXT = -1;
|
|
1213
|
-
GuiConstants.STR_LOGON_RTL = "LogonRTL";
|
|
1214
|
-
GuiConstants.STR_LOGO_WIN_ICON_URL = "LogonWindowIconURL";
|
|
1215
|
-
GuiConstants.STR_LOGON_IMAGE_URL = "LogonImageURL";
|
|
1216
|
-
GuiConstants.STR_LOGON_WIN_TITLE = "LogonWindowTitle";
|
|
1217
|
-
GuiConstants.STR_LOGON_GROUP_TITLE = "LogonGroupTitle";
|
|
1218
|
-
GuiConstants.STR_LOGON_MSG_CAPTION = "LogonMessageCaption";
|
|
1219
|
-
GuiConstants.STR_LOGON_USER_ID_CAPTION = "LogonUserIDCaption";
|
|
1220
|
-
GuiConstants.STR_LOGON_PASS_CAPTION = "LogonPasswordCaption";
|
|
1221
|
-
GuiConstants.STR_LOGON_OK_CAPTION = "LogonOKCaption";
|
|
1222
|
-
GuiConstants.STR_LOGON_CANCEL_CAPTION = "LogonCancelCaption";
|
|
1223
|
-
|
|
1224
1168
|
class Commands {
|
|
1225
1169
|
static SetResolveCallback(resolveCallback) {
|
|
1226
1170
|
this.resolveCallback = resolveCallback;
|
|
@@ -1237,6 +1181,13 @@ class Commands {
|
|
|
1237
1181
|
}).then((res) => { returnValue = res; });
|
|
1238
1182
|
return returnValue;
|
|
1239
1183
|
}
|
|
1184
|
+
static async openOverlayForm(obj, formName, handlerTaskTag, calledTaskTag, inputControls, isDialog) {
|
|
1185
|
+
let guiInteractive = new GuiInteractive();
|
|
1186
|
+
await new Promise((resolve) => {
|
|
1187
|
+
this.SetResolveCallback(resolve);
|
|
1188
|
+
guiInteractive.ExecuteOpenOverlayForm(obj, formName, handlerTaskTag, calledTaskTag, inputControls, isDialog);
|
|
1189
|
+
}).then();
|
|
1190
|
+
}
|
|
1240
1191
|
static setTitle(topMostForm, title) {
|
|
1241
1192
|
let guiInteractive = new GuiInteractive();
|
|
1242
1193
|
guiInteractive.setTitle(topMostForm, title);
|
|
@@ -1310,7 +1261,7 @@ class Commands {
|
|
|
1310
1261
|
if (obj instanceof GuiMgControl && obj.isChoiceControl()) {
|
|
1311
1262
|
if (value < 0)
|
|
1312
1263
|
if (obj.isComboBox())
|
|
1313
|
-
guiCommand.value =
|
|
1264
|
+
guiCommand.value = undefined;
|
|
1314
1265
|
else
|
|
1315
1266
|
guiCommand.value = '';
|
|
1316
1267
|
}
|
|
@@ -1726,6 +1677,73 @@ Manager.DefaultServerName = null;
|
|
|
1726
1677
|
Manager.UtilImeJpn = (UtilStrByteMode.isLocaleDefLangJPN() ? new UtilImeJpn() : null);
|
|
1727
1678
|
Manager.EventsManager = null;
|
|
1728
1679
|
|
|
1680
|
+
class GuiConstants {
|
|
1681
|
+
constructor() {
|
|
1682
|
+
}
|
|
1683
|
+
}
|
|
1684
|
+
GuiConstants.DEFAULT_LIST_VALUE = -1;
|
|
1685
|
+
GuiConstants.DEFAULT_VALUE_INT = -999999;
|
|
1686
|
+
GuiConstants.ALL_LINES = -1;
|
|
1687
|
+
GuiConstants.NO_ROW_SELECTED = Int32.MinValue;
|
|
1688
|
+
GuiConstants.RIA_MOBILE_UNSUPPORTED_CONTROL_ERROR = "control is not supported for mobile RIA deployment";
|
|
1689
|
+
GuiConstants.RIA_MOBILE_UNSUPPORTED_CONTROL_ERROR_WINDOW_6 = "control is not supported for mobile RIA deployment on Window 6 standard";
|
|
1690
|
+
GuiConstants.TOOL_HEIGHT = 17;
|
|
1691
|
+
GuiConstants.TOOL_WIDTH = 16;
|
|
1692
|
+
GuiConstants.STR_DISPLAY_MEMBER = "DisplayMember";
|
|
1693
|
+
GuiConstants.STR_VALUE_MEMBER = "ValueMember";
|
|
1694
|
+
GuiConstants.PARENT_TYPE_TASK = 'T';
|
|
1695
|
+
GuiConstants.PARENT_TYPE_FORM = 'F';
|
|
1696
|
+
GuiConstants.PARENT_TYPE_CONTROL = 'C';
|
|
1697
|
+
GuiConstants.GENERIC_PROPERTY_BASE_ID = 10000;
|
|
1698
|
+
GuiConstants.TABBING_CYCLE_REMAIN_IN_CURRENT_RECORD = 'R';
|
|
1699
|
+
GuiConstants.TABBING_CYCLE_MOVE_TO_NEXT_RECORD = 'N';
|
|
1700
|
+
GuiConstants.TABBING_CYCLE_MOVE_TO_PARENT_TASK = 'P';
|
|
1701
|
+
GuiConstants.BLOB_PREFIX_ELEMENTS_COUNT = 5;
|
|
1702
|
+
GuiConstants.KEY_DOWN = 40;
|
|
1703
|
+
GuiConstants.KEY_RIGHT = 39;
|
|
1704
|
+
GuiConstants.KEY_UP = 38;
|
|
1705
|
+
GuiConstants.KEY_LEFT = 37;
|
|
1706
|
+
GuiConstants.KEY_HOME = 36;
|
|
1707
|
+
GuiConstants.KEY_END = 35;
|
|
1708
|
+
GuiConstants.KEY_PG_DOWN = 34;
|
|
1709
|
+
GuiConstants.KEY_PG_UP = 33;
|
|
1710
|
+
GuiConstants.KEY_SPACE = 32;
|
|
1711
|
+
GuiConstants.KEY_F12 = 123;
|
|
1712
|
+
GuiConstants.KEY_F1 = 112;
|
|
1713
|
+
GuiConstants.KEY_9 = 57;
|
|
1714
|
+
GuiConstants.KEY_0 = 48;
|
|
1715
|
+
GuiConstants.KEY_Z = 90;
|
|
1716
|
+
GuiConstants.KEY_A = 65;
|
|
1717
|
+
GuiConstants.KEY_DELETE = 46;
|
|
1718
|
+
GuiConstants.KEY_INSERT = 45;
|
|
1719
|
+
GuiConstants.KEY_BACKSPACE = 8;
|
|
1720
|
+
GuiConstants.KEY_TAB = 9;
|
|
1721
|
+
GuiConstants.KEY_RETURN = 13;
|
|
1722
|
+
GuiConstants.KEY_ESC = 27;
|
|
1723
|
+
GuiConstants.KEY_CAPS_LOCK = 20;
|
|
1724
|
+
GuiConstants.KEY_POINT1 = 190;
|
|
1725
|
+
GuiConstants.KEY_POINT2 = 110;
|
|
1726
|
+
GuiConstants.KEY_COMMA = 188;
|
|
1727
|
+
GuiConstants.KEY_CTRL = 17;
|
|
1728
|
+
GuiConstants.KEY_ALT = 18;
|
|
1729
|
+
GuiConstants.LOGON_CAPTION = "Logon - ";
|
|
1730
|
+
GuiConstants.ENTER_UID_TTL = "Please enter your user ID and password.";
|
|
1731
|
+
GuiConstants.GROUP_BOX_TITLE_MAX_SIZE = 62;
|
|
1732
|
+
GuiConstants.MSG_CAPTION_MAX_SIZE = 56;
|
|
1733
|
+
GuiConstants.LABEL_CAPTION_MAX_SIZE = 9;
|
|
1734
|
+
GuiConstants.PASSWORD_CAPTION_MAX_SIZE = 19;
|
|
1735
|
+
GuiConstants.REPLACE_ALL_TEXT = -1;
|
|
1736
|
+
GuiConstants.STR_LOGON_RTL = "LogonRTL";
|
|
1737
|
+
GuiConstants.STR_LOGO_WIN_ICON_URL = "LogonWindowIconURL";
|
|
1738
|
+
GuiConstants.STR_LOGON_IMAGE_URL = "LogonImageURL";
|
|
1739
|
+
GuiConstants.STR_LOGON_WIN_TITLE = "LogonWindowTitle";
|
|
1740
|
+
GuiConstants.STR_LOGON_GROUP_TITLE = "LogonGroupTitle";
|
|
1741
|
+
GuiConstants.STR_LOGON_MSG_CAPTION = "LogonMessageCaption";
|
|
1742
|
+
GuiConstants.STR_LOGON_USER_ID_CAPTION = "LogonUserIDCaption";
|
|
1743
|
+
GuiConstants.STR_LOGON_PASS_CAPTION = "LogonPasswordCaption";
|
|
1744
|
+
GuiConstants.STR_LOGON_OK_CAPTION = "LogonOKCaption";
|
|
1745
|
+
GuiConstants.STR_LOGON_CANCEL_CAPTION = "LogonCancelCaption";
|
|
1746
|
+
|
|
1729
1747
|
class BlobType {
|
|
1730
1748
|
static getContentType(blob) {
|
|
1731
1749
|
try {
|
|
@@ -13711,14 +13729,14 @@ class MgFormBase extends GuiFormPropertyAdapter {
|
|
|
13711
13729
|
while (this.initInnerObjects(parser.getNextTag())) {
|
|
13712
13730
|
}
|
|
13713
13731
|
}
|
|
13714
|
-
init() {
|
|
13732
|
+
async init() {
|
|
13715
13733
|
for (let i = 0; i < this.CtrlTab.getSize(); i = i + 1) {
|
|
13716
13734
|
let ctrl = this.CtrlTab.getCtrl(i);
|
|
13717
13735
|
ctrl.Init();
|
|
13718
13736
|
}
|
|
13719
13737
|
this.buildLinkedControlsLists();
|
|
13720
13738
|
this.buildTableColumnsList();
|
|
13721
|
-
this.createForm();
|
|
13739
|
+
await this.createForm();
|
|
13722
13740
|
this._task.setKeyboardMappingState(Constants.ACT_STT_TBL_SCREEN_MODE, this.isScreenMode());
|
|
13723
13741
|
this._task.setKeyboardMappingState(Constants.ACT_STT_TBL_LEFT_TO_RIGHT, !this.GetComputedProperty(PropInterface.PROP_TYPE_HEBREW).GetComputedValueBoolean());
|
|
13724
13742
|
}
|
|
@@ -13764,11 +13782,14 @@ class MgFormBase extends GuiFormPropertyAdapter {
|
|
|
13764
13782
|
}
|
|
13765
13783
|
Events.WriteExceptionToLog('in Form.FillName() out of bounds');
|
|
13766
13784
|
}
|
|
13767
|
-
createForm() {
|
|
13785
|
+
async createForm() {
|
|
13768
13786
|
let inputControls = this.GetListOfInputControls();
|
|
13769
13787
|
let formName = this.buildFormName();
|
|
13770
13788
|
if (!this.isSubForm()) {
|
|
13771
|
-
|
|
13789
|
+
if (this.isDialog())
|
|
13790
|
+
await Commands.openOverlayForm(this, formName, '0', this.getTask().getTaskTag(), inputControls, this.isDialog());
|
|
13791
|
+
else
|
|
13792
|
+
Commands.addOpenForm(this, formName, '0', this.getTask().getTaskTag(), inputControls, this.isDialog());
|
|
13772
13793
|
}
|
|
13773
13794
|
else {
|
|
13774
13795
|
Commands.addOpensubform(CommandType.CREATE_SUB_FORM, this.getSubFormCtrl(), this.getTask().getTaskTag(), this.getSubFormCtrl().getName(), formName, inputControls, this.getTask().RouterPath, this.getTask().GetRouterParams(), this.getTask().InDefaultRouterOutlet);
|
|
@@ -15871,7 +15892,7 @@ class GuiTaskBase {
|
|
|
15871
15892
|
async InitForm() {
|
|
15872
15893
|
if (this.Form !== null && this.isOpenWin()) {
|
|
15873
15894
|
this.Form.InInitForm = true;
|
|
15874
|
-
this.Form.init();
|
|
15895
|
+
await this.Form.init();
|
|
15875
15896
|
this.SetRefreshType(Constants.TASK_REFRESH_FORM);
|
|
15876
15897
|
await this.RefreshDisplay();
|
|
15877
15898
|
Commands.beginInvoke();
|