@magic-xpa/engine 4.800.0-dev480.216 → 4.800.0-dev480.220
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/bundles/magic-xpa-engine.umd.js +53 -8
- package/bundles/magic-xpa-engine.umd.js.map +1 -1
- package/bundles/magic-xpa-engine.umd.min.js +1 -1
- package/bundles/magic-xpa-engine.umd.min.js.map +1 -1
- package/esm2015/index.js +2 -1
- package/esm2015/src/CurrentClientVersion.js +2 -2
- package/esm2015/src/commands/ClientToServer/CommandFactory.js +15 -1
- package/esm2015/src/commands/ClientToServer/ExecOperCommand.js +4 -1
- package/esm2015/src/commands/ClientToServer/SelectProgramCommand.js +15 -0
- package/esm2015/src/event/EventsManager.js +2 -2
- package/esm2015/src/gui/MgForm.js +16 -6
- package/esm2015/src/remote/RemoteCommandsProcessor.js +2 -2
- package/fesm2015/magic-xpa-engine.js +48 -9
- package/fesm2015/magic-xpa-engine.js.map +1 -1
- package/index.d.ts +1 -0
- package/package.json +4 -4
- package/src/commands/ClientToServer/CommandFactory.d.ts +1 -0
- package/src/commands/ClientToServer/ExecOperCommand.d.ts +2 -1
- package/src/commands/ClientToServer/SelectProgramCommand.d.ts +6 -0
- package/src/gui/MgForm.d.ts +1 -0
|
@@ -5222,6 +5222,9 @@
|
|
|
5222
5222
|
' in ' + '[' + this.Operation.getEventHandler().getEventHandlerInfo() + ']' +
|
|
5223
5223
|
' on ' + '[' + this.Operation.Task.getTaskInfo() + ']';
|
|
5224
5224
|
};
|
|
5225
|
+
ExecOperCommand.prototype.getTask = function () {
|
|
5226
|
+
return this.Operation.Task;
|
|
5227
|
+
};
|
|
5225
5228
|
return ExecOperCommand;
|
|
5226
5229
|
}(ClientOriginatedCommandTaskTag));
|
|
5227
5230
|
|
|
@@ -6725,7 +6728,7 @@
|
|
|
6725
6728
|
if (cmdsToServer.getCmd(i) instanceof ExecOperCommand) {
|
|
6726
6729
|
operCmd = currMGData.CmdsToServer.getCmd(i);
|
|
6727
6730
|
this._requestInfo.serverCallAt = operCmd.getCommandInfo();
|
|
6728
|
-
this._requestInfo.runtimeTaskTree = this.GetTaskTree(operCmd.
|
|
6731
|
+
this._requestInfo.runtimeTaskTree = this.GetTaskTree(operCmd.getTask());
|
|
6729
6732
|
operExecution = true;
|
|
6730
6733
|
break;
|
|
6731
6734
|
}
|
|
@@ -9751,6 +9754,24 @@
|
|
|
9751
9754
|
return ContextTimeoutResetCommand;
|
|
9752
9755
|
}(EventCommand));
|
|
9753
9756
|
|
|
9757
|
+
var SelectProgramCommand = /** @class */ (function (_super) {
|
|
9758
|
+
__extends(SelectProgramCommand, _super);
|
|
9759
|
+
function SelectProgramCommand() {
|
|
9760
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
9761
|
+
}
|
|
9762
|
+
SelectProgramCommand.prototype.getCommandInfo = function () {
|
|
9763
|
+
var eventsManager = AccessHelper.eventsManager;
|
|
9764
|
+
var rtEvt = eventsManager.getLastRtEvent();
|
|
9765
|
+
return 'Select Program ' + 'on Control ' + rtEvt.Control.Name;
|
|
9766
|
+
};
|
|
9767
|
+
SelectProgramCommand.prototype.getTask = function () {
|
|
9768
|
+
var eventsManager = AccessHelper.eventsManager;
|
|
9769
|
+
var rtEvt = eventsManager.getLastRtEvent();
|
|
9770
|
+
return rtEvt.getTask();
|
|
9771
|
+
};
|
|
9772
|
+
return SelectProgramCommand;
|
|
9773
|
+
}(ExecOperCommand));
|
|
9774
|
+
|
|
9754
9775
|
var CommandFactory = /** @class */ (function () {
|
|
9755
9776
|
function CommandFactory() {
|
|
9756
9777
|
}
|
|
@@ -9998,6 +10019,19 @@
|
|
|
9998
10019
|
cmd.Val = value;
|
|
9999
10020
|
return cmd;
|
|
10000
10021
|
};
|
|
10022
|
+
CommandFactory.CreateSelectProgramCommand = function (taskTag, handlerId, operIdx, ditIdx, value) {
|
|
10023
|
+
var execOperCommand = new SelectProgramCommand();
|
|
10024
|
+
execOperCommand.OperIdx = operIdx;
|
|
10025
|
+
execOperCommand.TaskTag = taskTag;
|
|
10026
|
+
execOperCommand.HandlerId = handlerId;
|
|
10027
|
+
execOperCommand.DitIdx = ditIdx;
|
|
10028
|
+
var cmd = execOperCommand;
|
|
10029
|
+
if (value !== null && value.length === 0)
|
|
10030
|
+
cmd.Val = " ";
|
|
10031
|
+
else
|
|
10032
|
+
cmd.Val = value;
|
|
10033
|
+
return cmd;
|
|
10034
|
+
};
|
|
10001
10035
|
CommandFactory.CreateEvaluateCommand = function (taskTag, expType, expIdx, expValLen, mprgCreator) {
|
|
10002
10036
|
var evaluateCommand = new EvaluateCommand();
|
|
10003
10037
|
evaluateCommand.TaskTag = taskTag;
|
|
@@ -23351,6 +23385,7 @@
|
|
|
23351
23385
|
var _this = _super_1.call(this) || this;
|
|
23352
23386
|
_this.IsMovingInView = false;
|
|
23353
23387
|
_this.PrevDisplayLine = 0;
|
|
23388
|
+
_this.RefreshAllRows = false;
|
|
23354
23389
|
_this.IgnoreFirstRecordCycle = false;
|
|
23355
23390
|
_this.MovedToFirstControl = false;
|
|
23356
23391
|
_this._suffixDone = false;
|
|
@@ -23832,8 +23867,10 @@
|
|
|
23832
23867
|
currLine = -1;
|
|
23833
23868
|
if (!this._task.DataView.isEmptyDataview())
|
|
23834
23869
|
currLine = this.getVisibleLine();
|
|
23835
|
-
if (this.isTableWithAbsoluteScrollbar())
|
|
23870
|
+
if (this.isTableWithAbsoluteScrollbar()) {
|
|
23836
23871
|
this.GetDataview().TotalRecordsCount += 1;
|
|
23872
|
+
this.RefreshAllRows = true;
|
|
23873
|
+
}
|
|
23837
23874
|
return [4 /*yield*/, this.GetDataview().addRecord(doSuffix, false, isCrelineAbove)];
|
|
23838
23875
|
case 1:
|
|
23839
23876
|
newRecIdx = _a.sent();
|
|
@@ -23877,8 +23914,10 @@
|
|
|
23877
23914
|
_a.label = 7;
|
|
23878
23915
|
case 7: return [3 /*break*/, 9];
|
|
23879
23916
|
case 8:
|
|
23880
|
-
if (this.isTableWithAbsoluteScrollbar())
|
|
23917
|
+
if (this.isTableWithAbsoluteScrollbar()) {
|
|
23881
23918
|
this.GetDataview().TotalRecordsCount -= 1;
|
|
23919
|
+
this.RefreshAllRows = false;
|
|
23920
|
+
}
|
|
23882
23921
|
_a.label = 9;
|
|
23883
23922
|
case 9: return [2 /*return*/];
|
|
23884
23923
|
}
|
|
@@ -23925,8 +23964,10 @@
|
|
|
23925
23964
|
this.GetDataview().setTopRecIdx(this.GetDataview().getCurrRecIdx());
|
|
23926
23965
|
if (!_super.isLineMode.call(this)) return [3 /*break*/, 13];
|
|
23927
23966
|
if (!_super.HasTable.call(this)) return [3 /*break*/, 10];
|
|
23928
|
-
if (this.isTableWithAbsoluteScrollbar())
|
|
23967
|
+
if (this.isTableWithAbsoluteScrollbar()) {
|
|
23929
23968
|
this.GetDataview().TotalRecordsCount--;
|
|
23969
|
+
this.RefreshAllRows = true;
|
|
23970
|
+
}
|
|
23930
23971
|
this.removeRecordsAfterIdx(this.GetDataview().getCurrRecIdx());
|
|
23931
23972
|
return [4 /*yield*/, this.RefreshDisplay(utils.Constants.TASK_REFRESH_FORM)];
|
|
23932
23973
|
case 9:
|
|
@@ -24023,8 +24064,10 @@
|
|
|
24023
24064
|
return [3 /*break*/, 9];
|
|
24024
24065
|
case 9:
|
|
24025
24066
|
if (_super.HasTable.call(this)) {
|
|
24026
|
-
if (this.isTableWithAbsoluteScrollbar() && recRemoved)
|
|
24067
|
+
if (this.isTableWithAbsoluteScrollbar() && recRemoved) {
|
|
24027
24068
|
this.GetDataview().TotalRecordsCount--;
|
|
24069
|
+
this.RefreshAllRows = true;
|
|
24070
|
+
}
|
|
24028
24071
|
this.removeRecordsAfterIdx(this.GetDataview().getCurrRecIdx());
|
|
24029
24072
|
}
|
|
24030
24073
|
return [3 /*break*/, 13];
|
|
@@ -24369,7 +24412,7 @@
|
|
|
24369
24412
|
case 2:
|
|
24370
24413
|
_a.trys.push([2, 7, 8, 9]);
|
|
24371
24414
|
index = idx + diffRef.value;
|
|
24372
|
-
if (!(!this.isRowValidated(idx) || sendAll)) return [3 /*break*/, 6];
|
|
24415
|
+
if (!(!this.isRowValidated(idx) || sendAll || this.RefreshAllRows)) return [3 /*break*/, 6];
|
|
24373
24416
|
if (index >= 0)
|
|
24374
24417
|
_super.checkAndCreateRow.call(this, index);
|
|
24375
24418
|
if (!(saveRowIdx + diffRef.value !== index)) return [3 /*break*/, 5];
|
|
@@ -24405,6 +24448,7 @@
|
|
|
24405
24448
|
return [3 /*break*/, 1];
|
|
24406
24449
|
case 10:
|
|
24407
24450
|
this.RefreshUI();
|
|
24451
|
+
this.RefreshAllRows = false;
|
|
24408
24452
|
return [2 /*return*/, updated];
|
|
24409
24453
|
}
|
|
24410
24454
|
});
|
|
@@ -33706,7 +33750,7 @@
|
|
|
33706
33750
|
mgVal = _a.sent();
|
|
33707
33751
|
rec = task.DataView.getCurrRec();
|
|
33708
33752
|
encodedVal = rec.getXMLForValue(ctrl.getField().getId(), mgVal);
|
|
33709
|
-
cmd = CommandFactory.
|
|
33753
|
+
cmd = CommandFactory.CreateSelectProgramCommand(task.getTaskTag(), null, mscorelib.Int32.MinValue, ctrl.getDitIdx(), encodedVal);
|
|
33710
33754
|
task.getMGData().CmdsToServer.Add(cmd);
|
|
33711
33755
|
commandsProcessorServer = CommandsProcessorManager.GetCommandsProcessor();
|
|
33712
33756
|
return [4 /*yield*/, commandsProcessorServer.Execute(exports.CommandsProcessorBase_SendingInstruction.TASKS_AND_COMMANDS)];
|
|
@@ -37284,7 +37328,7 @@
|
|
|
37284
37328
|
return CommandsTable;
|
|
37285
37329
|
}());
|
|
37286
37330
|
|
|
37287
|
-
var CurrentClientVersion = '4.800.0-dev480.
|
|
37331
|
+
var CurrentClientVersion = '4.800.0-dev480.220';
|
|
37288
37332
|
|
|
37289
37333
|
var ClientManager = /** @class */ (function () {
|
|
37290
37334
|
function ClientManager() {
|
|
@@ -37986,6 +38030,7 @@
|
|
|
37986
38030
|
exports.RunTimeEventBase = RunTimeEventBase;
|
|
37987
38031
|
exports.SET_DISPLAYLINE_BY_DV = SET_DISPLAYLINE_BY_DV;
|
|
37988
38032
|
exports.Scrambler = Scrambler;
|
|
38033
|
+
exports.SelectProgramCommand = SelectProgramCommand;
|
|
37989
38034
|
exports.ServerConfig = ServerConfig;
|
|
37990
38035
|
exports.ServerError = ServerError;
|
|
37991
38036
|
exports.SetTransactionStateDataviewCommand = SetTransactionStateDataviewCommand;
|