@magic-xpa/gui 4.1000.0-dev4100.405 → 4.1000.0-dev4100.406
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/README.md +7 -7
- package/esm2020/src/Commands.mjs +1 -8
- package/esm2020/src/gui/low/GuiInteractive.mjs +1 -12
- package/esm2020/src/management/gui/MgFormBase.mjs +5 -8
- package/esm2020/src/management/tasks/GuiTaskBase.mjs +2 -2
- package/fesm2015/magic-xpa-gui.mjs +21 -48
- package/fesm2015/magic-xpa-gui.mjs.map +1 -1
- package/fesm2020/magic-xpa-gui.mjs +5 -26
- package/fesm2020/magic-xpa-gui.mjs.map +1 -1
- package/package.json +2 -2
- package/src/Commands.d.ts +0 -1
- package/src/gui/low/GuiInteractive.d.ts +1 -3
- package/src/management/gui/MgFormBase.d.ts +2 -2
|
@@ -524,7 +524,6 @@ var InteractiveCommandType;
|
|
|
524
524
|
InteractiveCommandType[InteractiveCommandType["GET_MAX_ROWS_IN_PAGINATED_TABLE"] = 11] = "GET_MAX_ROWS_IN_PAGINATED_TABLE";
|
|
525
525
|
InteractiveCommandType[InteractiveCommandType["CALL_JS"] = 12] = "CALL_JS";
|
|
526
526
|
InteractiveCommandType[InteractiveCommandType["GET_LAST_ROUTE"] = 13] = "GET_LAST_ROUTE";
|
|
527
|
-
InteractiveCommandType[InteractiveCommandType["OPEN_FORM"] = 14] = "OPEN_FORM";
|
|
528
527
|
})(InteractiveCommandType || (InteractiveCommandType = {}));
|
|
529
528
|
class GuiInteractiveBase {
|
|
530
529
|
constructor() {
|
|
@@ -648,16 +647,6 @@ class GuiInteractiveBase {
|
|
|
648
647
|
this.Invoke();
|
|
649
648
|
return this.resultString;
|
|
650
649
|
}
|
|
651
|
-
ExecuteOpenOverlayForm(obj, formName, handlerTaskTag, calledTaskTag, inputControls, isDialog) {
|
|
652
|
-
this._commandType = InteractiveCommandType.OPEN_FORM;
|
|
653
|
-
this.controlName = formName;
|
|
654
|
-
this._str = handlerTaskTag;
|
|
655
|
-
this._mgValue = new MgValue();
|
|
656
|
-
this._mgValue.str = calledTaskTag;
|
|
657
|
-
this._mgValue.path = inputControls;
|
|
658
|
-
this._boolVal = isDialog;
|
|
659
|
-
this.Invoke();
|
|
660
|
-
}
|
|
661
650
|
Invoke() {
|
|
662
651
|
GuiCommandQueue.getInstance().invoke();
|
|
663
652
|
if (this._obj2 instanceof ControlBase) {
|
|
@@ -1183,13 +1172,6 @@ class Commands {
|
|
|
1183
1172
|
}).then((res) => { returnValue = res; });
|
|
1184
1173
|
return returnValue;
|
|
1185
1174
|
}
|
|
1186
|
-
static async openOverlayForm(obj, formName, handlerTaskTag, calledTaskTag, inputControls, isDialog) {
|
|
1187
|
-
let guiInteractive = new GuiInteractive();
|
|
1188
|
-
await new Promise((resolve) => {
|
|
1189
|
-
this.SetResolveCallback(resolve);
|
|
1190
|
-
guiInteractive.ExecuteOpenOverlayForm(obj, formName, handlerTaskTag, calledTaskTag, inputControls, isDialog);
|
|
1191
|
-
}).then();
|
|
1192
|
-
}
|
|
1193
1175
|
static setTitle(topMostForm, title) {
|
|
1194
1176
|
let guiInteractive = new GuiInteractive();
|
|
1195
1177
|
guiInteractive.setTitle(topMostForm, title);
|
|
@@ -13741,14 +13723,14 @@ class MgFormBase extends GuiFormPropertyAdapter {
|
|
|
13741
13723
|
while (this.initInnerObjects(parser.getNextTag())) {
|
|
13742
13724
|
}
|
|
13743
13725
|
}
|
|
13744
|
-
|
|
13726
|
+
init() {
|
|
13745
13727
|
for (let i = 0; i < this.CtrlTab.getSize(); i = i + 1) {
|
|
13746
13728
|
let ctrl = this.CtrlTab.getCtrl(i);
|
|
13747
13729
|
ctrl.Init();
|
|
13748
13730
|
}
|
|
13749
13731
|
this.buildLinkedControlsLists();
|
|
13750
13732
|
this.buildTableColumnsList();
|
|
13751
|
-
|
|
13733
|
+
this.createForm();
|
|
13752
13734
|
this._task.setKeyboardMappingState(Constants.ACT_STT_TBL_SCREEN_MODE, this.isScreenMode());
|
|
13753
13735
|
this._task.setKeyboardMappingState(Constants.ACT_STT_TBL_LEFT_TO_RIGHT, !this.GetComputedProperty(PropInterface.PROP_TYPE_HEBREW).GetComputedValueBoolean());
|
|
13754
13736
|
}
|
|
@@ -13794,14 +13776,11 @@ class MgFormBase extends GuiFormPropertyAdapter {
|
|
|
13794
13776
|
}
|
|
13795
13777
|
Events.WriteExceptionToLog('in Form.FillName() out of bounds');
|
|
13796
13778
|
}
|
|
13797
|
-
|
|
13779
|
+
createForm() {
|
|
13798
13780
|
let inputControls = this.GetListOfInputControls();
|
|
13799
13781
|
let formName = this.buildFormName();
|
|
13800
13782
|
if (!this.isSubForm()) {
|
|
13801
|
-
|
|
13802
|
-
await Commands.openOverlayForm(this, formName, '0', this.getTask().getTaskTag(), inputControls, this.isDialog());
|
|
13803
|
-
else
|
|
13804
|
-
Commands.addOpenForm(this, formName, '0', this.getTask().getTaskTag(), inputControls, this.isDialog());
|
|
13783
|
+
Commands.addOpenForm(this, formName, '0', this.getTask().getTaskTag(), inputControls, this.isDialog());
|
|
13805
13784
|
}
|
|
13806
13785
|
else {
|
|
13807
13786
|
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);
|
|
@@ -15904,7 +15883,7 @@ class GuiTaskBase {
|
|
|
15904
15883
|
async InitForm() {
|
|
15905
15884
|
if (this.Form !== null && this.isOpenWin()) {
|
|
15906
15885
|
this.Form.InInitForm = true;
|
|
15907
|
-
|
|
15886
|
+
this.Form.init();
|
|
15908
15887
|
this.SetRefreshType(Constants.TASK_REFRESH_FORM);
|
|
15909
15888
|
await this.RefreshDisplay();
|
|
15910
15889
|
Commands.beginInvoke();
|