@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
|
@@ -4550,6 +4550,9 @@ class ExecOperCommand extends ClientOriginatedCommandTaskTag {
|
|
|
4550
4550
|
' in ' + '[' + this.Operation.getEventHandler().getEventHandlerInfo() + ']' +
|
|
4551
4551
|
' on ' + '[' + this.Operation.Task.getTaskInfo() + ']';
|
|
4552
4552
|
}
|
|
4553
|
+
getTask() {
|
|
4554
|
+
return this.Operation.Task;
|
|
4555
|
+
}
|
|
4553
4556
|
}
|
|
4554
4557
|
|
|
4555
4558
|
class Scrambler {
|
|
@@ -5814,7 +5817,7 @@ class RemoteCommandsProcessor extends CommandsProcessorBase {
|
|
|
5814
5817
|
if (cmdsToServer.getCmd(i) instanceof ExecOperCommand) {
|
|
5815
5818
|
let operCmd = currMGData.CmdsToServer.getCmd(i);
|
|
5816
5819
|
this._requestInfo.serverCallAt = operCmd.getCommandInfo();
|
|
5817
|
-
this._requestInfo.runtimeTaskTree = this.GetTaskTree(operCmd.
|
|
5820
|
+
this._requestInfo.runtimeTaskTree = this.GetTaskTree(operCmd.getTask());
|
|
5818
5821
|
operExecution = true;
|
|
5819
5822
|
break;
|
|
5820
5823
|
}
|
|
@@ -8475,6 +8478,19 @@ class ContextTimeoutResetCommand extends EventCommand {
|
|
|
8475
8478
|
}
|
|
8476
8479
|
}
|
|
8477
8480
|
|
|
8481
|
+
class SelectProgramCommand extends ExecOperCommand {
|
|
8482
|
+
getCommandInfo() {
|
|
8483
|
+
let eventsManager = AccessHelper.eventsManager;
|
|
8484
|
+
let rtEvt = eventsManager.getLastRtEvent();
|
|
8485
|
+
return 'Select Program ' + 'on Control ' + rtEvt.Control.Name;
|
|
8486
|
+
}
|
|
8487
|
+
getTask() {
|
|
8488
|
+
let eventsManager = AccessHelper.eventsManager;
|
|
8489
|
+
let rtEvt = eventsManager.getLastRtEvent();
|
|
8490
|
+
return rtEvt.getTask();
|
|
8491
|
+
}
|
|
8492
|
+
}
|
|
8493
|
+
|
|
8478
8494
|
class CommandFactory {
|
|
8479
8495
|
static CreateEventCommand(taskTag, magicEvent) {
|
|
8480
8496
|
let eventCommand = new EventCommand(magicEvent);
|
|
@@ -8692,6 +8708,19 @@ class CommandFactory {
|
|
|
8692
8708
|
cmd.Val = value;
|
|
8693
8709
|
return cmd;
|
|
8694
8710
|
}
|
|
8711
|
+
static CreateSelectProgramCommand(taskTag, handlerId, operIdx, ditIdx, value) {
|
|
8712
|
+
let execOperCommand = new SelectProgramCommand();
|
|
8713
|
+
execOperCommand.OperIdx = operIdx;
|
|
8714
|
+
execOperCommand.TaskTag = taskTag;
|
|
8715
|
+
execOperCommand.HandlerId = handlerId;
|
|
8716
|
+
execOperCommand.DitIdx = ditIdx;
|
|
8717
|
+
let cmd = execOperCommand;
|
|
8718
|
+
if (value !== null && value.length === 0)
|
|
8719
|
+
cmd.Val = " ";
|
|
8720
|
+
else
|
|
8721
|
+
cmd.Val = value;
|
|
8722
|
+
return cmd;
|
|
8723
|
+
}
|
|
8695
8724
|
static CreateEvaluateCommand(taskTag, expType, expIdx, expValLen, mprgCreator) {
|
|
8696
8725
|
let evaluateCommand = new EvaluateCommand();
|
|
8697
8726
|
evaluateCommand.TaskTag = taskTag;
|
|
@@ -20308,6 +20337,7 @@ class MgForm extends MgFormBase {
|
|
|
20308
20337
|
super();
|
|
20309
20338
|
this.IsMovingInView = false;
|
|
20310
20339
|
this.PrevDisplayLine = 0;
|
|
20340
|
+
this.RefreshAllRows = false;
|
|
20311
20341
|
this.IgnoreFirstRecordCycle = false;
|
|
20312
20342
|
this.MovedToFirstControl = false;
|
|
20313
20343
|
this._suffixDone = false;
|
|
@@ -20642,8 +20672,10 @@ class MgForm extends MgFormBase {
|
|
|
20642
20672
|
let currLine = -1;
|
|
20643
20673
|
if (!this._task.DataView.isEmptyDataview())
|
|
20644
20674
|
currLine = this.getVisibleLine();
|
|
20645
|
-
if (this.isTableWithAbsoluteScrollbar())
|
|
20675
|
+
if (this.isTableWithAbsoluteScrollbar()) {
|
|
20646
20676
|
this.GetDataview().TotalRecordsCount += 1;
|
|
20677
|
+
this.RefreshAllRows = true;
|
|
20678
|
+
}
|
|
20647
20679
|
let newRecIdx = yield this.GetDataview().addRecord(doSuffix, false, isCrelineAbove);
|
|
20648
20680
|
if (newRecIdx > -1) {
|
|
20649
20681
|
if (this.isLineMode()) {
|
|
@@ -20677,8 +20709,10 @@ class MgForm extends MgFormBase {
|
|
|
20677
20709
|
yield this.RefreshDisplay(Constants.TASK_REFRESH_TABLE);
|
|
20678
20710
|
}
|
|
20679
20711
|
}
|
|
20680
|
-
else if (this.isTableWithAbsoluteScrollbar())
|
|
20712
|
+
else if (this.isTableWithAbsoluteScrollbar()) {
|
|
20681
20713
|
this.GetDataview().TotalRecordsCount -= 1;
|
|
20714
|
+
this.RefreshAllRows = false;
|
|
20715
|
+
}
|
|
20682
20716
|
});
|
|
20683
20717
|
}
|
|
20684
20718
|
delCurrRec() {
|
|
@@ -20709,8 +20743,10 @@ class MgForm extends MgFormBase {
|
|
|
20709
20743
|
this.GetDataview().setTopRecIdx(this.GetDataview().getCurrRecIdx());
|
|
20710
20744
|
if (_super.isLineMode.call(this)) {
|
|
20711
20745
|
if (_super.HasTable.call(this)) {
|
|
20712
|
-
if (this.isTableWithAbsoluteScrollbar())
|
|
20746
|
+
if (this.isTableWithAbsoluteScrollbar()) {
|
|
20713
20747
|
this.GetDataview().TotalRecordsCount--;
|
|
20748
|
+
this.RefreshAllRows = true;
|
|
20749
|
+
}
|
|
20714
20750
|
this.removeRecordsAfterIdx(this.GetDataview().getCurrRecIdx());
|
|
20715
20751
|
yield this.RefreshDisplay(Constants.TASK_REFRESH_FORM);
|
|
20716
20752
|
}
|
|
@@ -20780,8 +20816,10 @@ class MgForm extends MgFormBase {
|
|
|
20780
20816
|
throw ex;
|
|
20781
20817
|
}
|
|
20782
20818
|
if (_super.HasTable.call(this)) {
|
|
20783
|
-
if (this.isTableWithAbsoluteScrollbar() && recRemoved)
|
|
20819
|
+
if (this.isTableWithAbsoluteScrollbar() && recRemoved) {
|
|
20784
20820
|
this.GetDataview().TotalRecordsCount--;
|
|
20821
|
+
this.RefreshAllRows = true;
|
|
20822
|
+
}
|
|
20785
20823
|
this.removeRecordsAfterIdx(this.GetDataview().getCurrRecIdx());
|
|
20786
20824
|
}
|
|
20787
20825
|
}
|
|
@@ -21047,7 +21085,7 @@ class MgForm extends MgFormBase {
|
|
|
21047
21085
|
let prevTopIdx = this.GetDataview().getTopRecIdx();
|
|
21048
21086
|
try {
|
|
21049
21087
|
index = idx + diffRef.value;
|
|
21050
|
-
if (!this.isRowValidated(idx) || sendAll) {
|
|
21088
|
+
if (!this.isRowValidated(idx) || sendAll || this.RefreshAllRows) {
|
|
21051
21089
|
if (index >= 0)
|
|
21052
21090
|
_super.checkAndCreateRow.call(this, index);
|
|
21053
21091
|
if (saveRowIdx + diffRef.value !== index) {
|
|
@@ -21074,6 +21112,7 @@ class MgForm extends MgFormBase {
|
|
|
21074
21112
|
}
|
|
21075
21113
|
}
|
|
21076
21114
|
this.RefreshUI();
|
|
21115
|
+
this.RefreshAllRows = false;
|
|
21077
21116
|
return updated;
|
|
21078
21117
|
});
|
|
21079
21118
|
}
|
|
@@ -28364,7 +28403,7 @@ class EventsManager {
|
|
|
28364
28403
|
mgVal = yield ctrl.getMgValue(value);
|
|
28365
28404
|
var rec = task.DataView.getCurrRec();
|
|
28366
28405
|
encodedVal = rec.getXMLForValue(ctrl.getField().getId(), mgVal);
|
|
28367
|
-
cmd = CommandFactory.
|
|
28406
|
+
cmd = CommandFactory.CreateSelectProgramCommand(task.getTaskTag(), null, Int32.MinValue, ctrl.getDitIdx(), encodedVal);
|
|
28368
28407
|
task.getMGData().CmdsToServer.Add(cmd);
|
|
28369
28408
|
let commandsProcessorServer = CommandsProcessorManager.GetCommandsProcessor();
|
|
28370
28409
|
yield commandsProcessorServer.Execute(CommandsProcessorBase_SendingInstruction.TASKS_AND_COMMANDS);
|
|
@@ -31039,7 +31078,7 @@ class CommandsTable {
|
|
|
31039
31078
|
}
|
|
31040
31079
|
}
|
|
31041
31080
|
|
|
31042
|
-
let CurrentClientVersion = '4.800.0-dev480.
|
|
31081
|
+
let CurrentClientVersion = '4.800.0-dev480.220';
|
|
31043
31082
|
|
|
31044
31083
|
class ClientManager {
|
|
31045
31084
|
constructor() {
|
|
@@ -31503,5 +31542,5 @@ class Process {
|
|
|
31503
31542
|
}
|
|
31504
31543
|
}
|
|
31505
31544
|
|
|
31506
|
-
export { AbortCommand, AccessHelper, ActionManager, AddLocateCommand, AddRangeCommand, AddSortCommand, AddUserLocateDataViewCommand, AddUserLocateRemoteDataViewCommand, AddUserRangeDataviewCommand, AddUserRangeRemoteDataViewCommand, AddUserSortDataViewCommand, AddUserSortRemoteDataViewCommand, Argument, ArgumentsList, Boundary, BrowserEscEventCommand, ClientManager, ClientOriginatedCommand, ClientOriginatedCommandSerializer, ClientOriginatedCommandTaskTag, ClientRefreshCommand, ClientTargetedCommandBase, ClientTargetedCommandType, ColumnSortEventCommand, CommandFactory, CommandSerializationHelper, CommandsProcessorBase, CommandsProcessorBase_SendingInstruction, CommandsProcessorBase_SessionStage, CommandsProcessorManager, CommandsTable, CompMainPrgTable, ComputeEventCommand, ConstInterface, ConstUtils, ContextTerminationEventCommand, ContextTimeoutResetCommand, ControlItemsRefreshCommand, CookieService, CreatedFormVector, CurrentClientVersion, DataSourceIdKey, DataView, DataViewBase, DataViewCommandBase, DataViewCommandType, DataViewOutputCommand, DataviewCommand, DataviewHeaderBase, DataviewHeaderFactory, DataviewHeaders, DataviewHeadersSaxHandler, DataviewManager, DataviewManagerBase, DcValuesReference, DummyDataViewCommand, DvCache, EnhancedVerifyCommand, EnvParamsTable, Environment, EnvironmentDetails, EvaluateCommand, Event, EventCommand, EventHandler, EventHandlerPosition, EventSubType, EventsAllowedType, EventsManager, ExecOperCommand, ExecutionStack, ExecutionStackEntry, ExpDesc, ExpStrTracker, ExpTable, Expression, ExpressionDict, ExpressionEvaluator, ExpressionLocalJpn, Expression_ReturnValue, FetchDataControlValuesEventCommand, Field, FieldBase, FieldsTable as FieldsTableExt, FlowMonitorInterface, FlowMonitorQueue, FormsTable, GUIManager, GlobalCommandsManager, GlobalParams, GlobalParamsQueryCommand, GuiEventsProcessor, HandlersTable, HeapSort, HttpClientAsync, HttpClientBase, HttpClientEvents, HttpClientSync, HttpManager, HttpUtility, IClientTargetedCommand, IndexChangeEventCommand, IniputForceWriteCommand, InteractiveCommunicationsFailureHandler, Key, LanguageData, LastFocusedManager, MGData, MGDataCollection, MagicBridge, MenusDeserializer, MgControl, MgForm, MgPriorityBlockingQueue, MgPriorityQueue, MirrorExpVal, MirrorPrmMap, MirrorString, NonReversibleExitEventCommand, NullValueException, OpenURLCommand, OpeningTaskDetails, Operation, OperationTable, ParamParseResult, PrmMap, Process, QueryCommand, RCTimer, Recompute, RecomputeCommand, RecomputeTable, Recompute_RcmpBy, Record, RecordOutOfDataViewException, RecordOutOfDataViewException_ExceptionType, RecordsTable, RefreshEventCommand, RefreshScreenEventCommand, RemoteCommandsProcessor, RemoteControlItemsRefreshCommand, RemoteDataViewCommandBase, RemoteDataViewCommandFactory, RemoteDataViewCommandUpdateNonModifiable, RemoteDataviewHeader, RemoteDataviewManager, RemoteTaskService, RequestMethod, ResetLocateCommand, ResetRangeCommand, ResetSortCommand, ResetUserLocateRemoteDataviewCommand, ResetUserRangeRemoteDataviewCommand, ResetUserSortRemoteDataviewCommand, ResultCommand, ResultValue, RetVals, ReturnResult, ReturnResultBase, RollbackEventCommand, RollbackEventCommand_RollbackType, RunTimeEvent, RunTimeEventBase, SET_DISPLAYLINE_BY_DV, Scrambler, ServerConfig, ServerError, SetTransactionStateDataviewCommand, SetTransactionStateRemoteDataViewCommand, Sort, SortCollection, SubformOpenEventCommand, SubformRefreshEventCommand, TableCache, TableCacheManager, Task, TaskBase, TaskServiceBase, TaskTransactionManager, Task_Direction, Task_Flow, Task_SubformExecModeEnum, TasksTable, Transaction, TransactionCommand, UniqueIDUtils, UnloadCommand, UserDetails, UserEventsTable, UserRange, VerifyCommand, WriteMessageToServerLogCommand, XMLBasedCommandBuilder, XMLBasedDcValuesBuilder, YesNoExp, getGuiEventObj };
|
|
31545
|
+
export { AbortCommand, AccessHelper, ActionManager, AddLocateCommand, AddRangeCommand, AddSortCommand, AddUserLocateDataViewCommand, AddUserLocateRemoteDataViewCommand, AddUserRangeDataviewCommand, AddUserRangeRemoteDataViewCommand, AddUserSortDataViewCommand, AddUserSortRemoteDataViewCommand, Argument, ArgumentsList, Boundary, BrowserEscEventCommand, ClientManager, ClientOriginatedCommand, ClientOriginatedCommandSerializer, ClientOriginatedCommandTaskTag, ClientRefreshCommand, ClientTargetedCommandBase, ClientTargetedCommandType, ColumnSortEventCommand, CommandFactory, CommandSerializationHelper, CommandsProcessorBase, CommandsProcessorBase_SendingInstruction, CommandsProcessorBase_SessionStage, CommandsProcessorManager, CommandsTable, CompMainPrgTable, ComputeEventCommand, ConstInterface, ConstUtils, ContextTerminationEventCommand, ContextTimeoutResetCommand, ControlItemsRefreshCommand, CookieService, CreatedFormVector, CurrentClientVersion, DataSourceIdKey, DataView, DataViewBase, DataViewCommandBase, DataViewCommandType, DataViewOutputCommand, DataviewCommand, DataviewHeaderBase, DataviewHeaderFactory, DataviewHeaders, DataviewHeadersSaxHandler, DataviewManager, DataviewManagerBase, DcValuesReference, DummyDataViewCommand, DvCache, EnhancedVerifyCommand, EnvParamsTable, Environment, EnvironmentDetails, EvaluateCommand, Event, EventCommand, EventHandler, EventHandlerPosition, EventSubType, EventsAllowedType, EventsManager, ExecOperCommand, ExecutionStack, ExecutionStackEntry, ExpDesc, ExpStrTracker, ExpTable, Expression, ExpressionDict, ExpressionEvaluator, ExpressionLocalJpn, Expression_ReturnValue, FetchDataControlValuesEventCommand, Field, FieldBase, FieldsTable as FieldsTableExt, FlowMonitorInterface, FlowMonitorQueue, FormsTable, GUIManager, GlobalCommandsManager, GlobalParams, GlobalParamsQueryCommand, GuiEventsProcessor, HandlersTable, HeapSort, HttpClientAsync, HttpClientBase, HttpClientEvents, HttpClientSync, HttpManager, HttpUtility, IClientTargetedCommand, IndexChangeEventCommand, IniputForceWriteCommand, InteractiveCommunicationsFailureHandler, Key, LanguageData, LastFocusedManager, MGData, MGDataCollection, MagicBridge, MenusDeserializer, MgControl, MgForm, MgPriorityBlockingQueue, MgPriorityQueue, MirrorExpVal, MirrorPrmMap, MirrorString, NonReversibleExitEventCommand, NullValueException, OpenURLCommand, OpeningTaskDetails, Operation, OperationTable, ParamParseResult, PrmMap, Process, QueryCommand, RCTimer, Recompute, RecomputeCommand, RecomputeTable, Recompute_RcmpBy, Record, RecordOutOfDataViewException, RecordOutOfDataViewException_ExceptionType, RecordsTable, RefreshEventCommand, RefreshScreenEventCommand, RemoteCommandsProcessor, RemoteControlItemsRefreshCommand, RemoteDataViewCommandBase, RemoteDataViewCommandFactory, RemoteDataViewCommandUpdateNonModifiable, RemoteDataviewHeader, RemoteDataviewManager, RemoteTaskService, RequestMethod, ResetLocateCommand, ResetRangeCommand, ResetSortCommand, ResetUserLocateRemoteDataviewCommand, ResetUserRangeRemoteDataviewCommand, ResetUserSortRemoteDataviewCommand, ResultCommand, ResultValue, RetVals, ReturnResult, ReturnResultBase, RollbackEventCommand, RollbackEventCommand_RollbackType, RunTimeEvent, RunTimeEventBase, SET_DISPLAYLINE_BY_DV, Scrambler, SelectProgramCommand, ServerConfig, ServerError, SetTransactionStateDataviewCommand, SetTransactionStateRemoteDataViewCommand, Sort, SortCollection, SubformOpenEventCommand, SubformRefreshEventCommand, TableCache, TableCacheManager, Task, TaskBase, TaskServiceBase, TaskTransactionManager, Task_Direction, Task_Flow, Task_SubformExecModeEnum, TasksTable, Transaction, TransactionCommand, UniqueIDUtils, UnloadCommand, UserDetails, UserEventsTable, UserRange, VerifyCommand, WriteMessageToServerLogCommand, XMLBasedCommandBuilder, XMLBasedDcValuesBuilder, YesNoExp, getGuiEventObj };
|
|
31507
31546
|
//# sourceMappingURL=magic-xpa-engine.js.map
|