@magic-xpa/engine 4.800.0-dev480.217 → 4.800.0-dev480.219
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 +38 -3
- 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/remote/RemoteCommandsProcessor.js +2 -2
- package/fesm2015/magic-xpa-engine.js +33 -4
- 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
|
@@ -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;
|
|
@@ -33716,7 +33750,7 @@
|
|
|
33716
33750
|
mgVal = _a.sent();
|
|
33717
33751
|
rec = task.DataView.getCurrRec();
|
|
33718
33752
|
encodedVal = rec.getXMLForValue(ctrl.getField().getId(), mgVal);
|
|
33719
|
-
cmd = CommandFactory.
|
|
33753
|
+
cmd = CommandFactory.CreateSelectProgramCommand(task.getTaskTag(), null, mscorelib.Int32.MinValue, ctrl.getDitIdx(), encodedVal);
|
|
33720
33754
|
task.getMGData().CmdsToServer.Add(cmd);
|
|
33721
33755
|
commandsProcessorServer = CommandsProcessorManager.GetCommandsProcessor();
|
|
33722
33756
|
return [4 /*yield*/, commandsProcessorServer.Execute(exports.CommandsProcessorBase_SendingInstruction.TASKS_AND_COMMANDS)];
|
|
@@ -37294,7 +37328,7 @@
|
|
|
37294
37328
|
return CommandsTable;
|
|
37295
37329
|
}());
|
|
37296
37330
|
|
|
37297
|
-
var CurrentClientVersion = '4.800.0-dev480.
|
|
37331
|
+
var CurrentClientVersion = '4.800.0-dev480.219';
|
|
37298
37332
|
|
|
37299
37333
|
var ClientManager = /** @class */ (function () {
|
|
37300
37334
|
function ClientManager() {
|
|
@@ -37996,6 +38030,7 @@
|
|
|
37996
38030
|
exports.RunTimeEventBase = RunTimeEventBase;
|
|
37997
38031
|
exports.SET_DISPLAYLINE_BY_DV = SET_DISPLAYLINE_BY_DV;
|
|
37998
38032
|
exports.Scrambler = Scrambler;
|
|
38033
|
+
exports.SelectProgramCommand = SelectProgramCommand;
|
|
37999
38034
|
exports.ServerConfig = ServerConfig;
|
|
38000
38035
|
exports.ServerError = ServerError;
|
|
38001
38036
|
exports.SetTransactionStateDataviewCommand = SetTransactionStateDataviewCommand;
|