@magic-xpa/engine 4.1100.0-dev4110.253 → 4.1100.0-dev4110.256
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2022/src/ClientManager.mjs +1 -1
- package/esm2022/src/CommandsProcessorBase.mjs +1 -1
- package/esm2022/src/CommandsProcessorManager.mjs +1 -1
- package/esm2022/src/CommandsTable.mjs +1 -1
- package/esm2022/src/CurrentClientVersion.mjs +2 -2
- package/esm2022/src/GUIManager.mjs +1 -1
- package/esm2022/src/GuiEventsProcessor.mjs +1 -1
- package/esm2022/src/ServerConfig.mjs +1 -1
- package/esm2022/src/commands/ClientToServer/ClientOriginatedCommandSerializer.mjs +1 -1
- package/esm2022/src/commands/ClientToServer/CommandFactory.mjs +1 -1
- package/esm2022/src/commands/ClientToServer/CommandSerializationHelper.mjs +1 -1
- package/esm2022/src/commands/ClientToServer/EvaluateCommand.mjs +1 -1
- package/esm2022/src/commands/ClientToServer/ExecOperCommand.mjs +1 -1
- package/esm2022/src/commands/ClientToServer/RollbackEventCommand.mjs +1 -1
- package/esm2022/src/commands/ServerToClient/AbortCommand.mjs +1 -1
- package/esm2022/src/commands/ServerToClient/AddRangeCommand.mjs +1 -1
- package/esm2022/src/commands/ServerToClient/AddSortCommand.mjs +1 -1
- package/esm2022/src/commands/ServerToClient/ClientRefreshCommand.mjs +1 -1
- package/esm2022/src/commands/ServerToClient/ClientTargetedCommandBase.mjs +1 -1
- package/esm2022/src/commands/ServerToClient/EnhancedVerifyCommand.mjs +1 -1
- package/esm2022/src/commands/ServerToClient/OpenURLCommand.mjs +1 -1
- package/esm2022/src/commands/ServerToClient/ResultCommand.mjs +1 -1
- package/esm2022/src/commands/ServerToClient/VerifyCommand.mjs +1 -1
- package/esm2022/src/commands/ServerToClient/XMLBasedCommandBuilder.mjs +1 -1
- package/esm2022/src/data/DataView.mjs +1 -1
- package/esm2022/src/data/DvCache.mjs +1 -1
- package/esm2022/src/data/Field.mjs +1 -1
- package/esm2022/src/data/FieldsTable.mjs +1 -1
- package/esm2022/src/data/Key.mjs +1 -1
- package/esm2022/src/data/Record.mjs +2 -2
- package/esm2022/src/data/RecordsTable.mjs +1 -1
- package/esm2022/src/data/TaskTransactionManager.mjs +1 -1
- package/esm2022/src/data/XMLBasedDcValuesBuilder.mjs +1 -1
- package/esm2022/src/env/EnvVariablesTable.mjs +1 -1
- package/esm2022/src/env/Environment.mjs +1 -1
- package/esm2022/src/env/LanguageData.mjs +1 -1
- package/esm2022/src/env/MirrorString.mjs +1 -1
- package/esm2022/src/event/ActionManager.mjs +1 -1
- package/esm2022/src/event/Event.mjs +1 -1
- package/esm2022/src/event/EventHandler.mjs +1 -1
- package/esm2022/src/event/EventHandlerPosition.mjs +1 -1
- package/esm2022/src/event/EventsManager.mjs +1 -1
- package/esm2022/src/event/RunTimeEvent.mjs +1 -1
- package/esm2022/src/event/UserEventsTable.mjs +1 -1
- package/esm2022/src/exp/ExpTable.mjs +1 -1
- package/esm2022/src/exp/Expression.mjs +1 -1
- package/esm2022/src/exp/ExpressionEvaluator.mjs +1 -1
- package/esm2022/src/exp/ExpressionLocalJpn.mjs +1 -1
- package/esm2022/src/exp/GlobalParamsTable.mjs +1 -1
- package/esm2022/src/exp/YesNoExp.mjs +1 -1
- package/esm2022/src/gui/FormsTable.mjs +1 -1
- package/esm2022/src/gui/MgControl.mjs +1 -1
- package/esm2022/src/gui/MgForm.mjs +1 -1
- package/esm2022/src/http/HttpManager.mjs +1 -1
- package/esm2022/src/http/client/HttpClientAsync.mjs +1 -1
- package/esm2022/src/http/client/HttpClientBase.mjs +1 -1
- package/esm2022/src/http/client/HttpClientEvents.mjs +1 -1
- package/esm2022/src/http/client/HttpClientSync.mjs +1 -1
- package/esm2022/src/http/client/HttpUtility.mjs +1 -1
- package/esm2022/src/remote/AddUserLocateRemoteDataViewCommand.mjs +1 -1
- package/esm2022/src/remote/AddUserRangeRemoteDataViewCommand.mjs +1 -1
- package/esm2022/src/remote/AddUserSortRemoteDataViewCommand.mjs +1 -1
- package/esm2022/src/remote/RemoteCommandsProcessor.mjs +1 -1
- package/esm2022/src/remote/RemoteControlItemsRefreshCommand.mjs +1 -1
- package/esm2022/src/remote/RemoteDataViewCommandBase.mjs +1 -1
- package/esm2022/src/remote/RemoteDataViewCommandFactory.mjs +1 -1
- package/esm2022/src/remote/ResetUserLocateRemoteDataviewCommand.mjs +1 -1
- package/esm2022/src/remote/ResetUserSortRemoteDataviewCommand.mjs +1 -1
- package/esm2022/src/remote/ServerError.mjs +1 -1
- package/esm2022/src/remote/SetTransactionStateRemoteDataViewCommand.mjs +1 -1
- package/esm2022/src/rt/Argument.mjs +1 -1
- package/esm2022/src/rt/ArgumentsList.mjs +1 -1
- package/esm2022/src/rt/Boundary.mjs +1 -1
- package/esm2022/src/rt/CompMainPrgTable.mjs +1 -1
- package/esm2022/src/rt/DataviewHeaderBase.mjs +1 -1
- package/esm2022/src/rt/DataviewHeaders.mjs +1 -1
- package/esm2022/src/rt/DataviewHeadersSaxHandler.mjs +1 -1
- package/esm2022/src/rt/ExecutionStack.mjs +1 -1
- package/esm2022/src/rt/HandlersTable.mjs +1 -1
- package/esm2022/src/rt/LastFocusedManager.mjs +1 -1
- package/esm2022/src/rt/Operation.mjs +1 -1
- package/esm2022/src/rt/OperationTable.mjs +1 -1
- package/esm2022/src/rt/Recompute.mjs +1 -1
- package/esm2022/src/rt/RecomputeTable.mjs +1 -1
- package/esm2022/src/rt/RemoteDataviewHeader.mjs +1 -1
- package/esm2022/src/rt/TableCache.mjs +1 -1
- package/esm2022/src/rt/TableCacheManager.mjs +1 -1
- package/esm2022/src/rt/Transaction.mjs +1 -1
- package/esm2022/src/security/UserDetails.mjs +1 -1
- package/esm2022/src/tasks/MGData.mjs +1 -1
- package/esm2022/src/tasks/MGDataCollection.mjs +1 -1
- package/esm2022/src/tasks/RCTimer.mjs +1 -1
- package/esm2022/src/tasks/RemoteTaskService.mjs +1 -1
- package/esm2022/src/tasks/Task.mjs +1 -1
- package/esm2022/src/tasks/TaskBase.mjs +1 -1
- package/esm2022/src/tasks/TaskServiceBase.mjs +1 -1
- package/esm2022/src/tasks/TasksTable.mjs +1 -1
- package/esm2022/src/tasks/sort/SortCollection.mjs +1 -1
- package/esm2022/src/util/ConstUtils.mjs +1 -1
- package/esm2022/src/util/FlowMonitorQueue.mjs +1 -1
- package/esm2022/src/util/HeapSort.mjs +1 -1
- package/esm2022/src/util/MgPriorityBlockingQueue.mjs +1 -1
- package/esm2022/src/util/MgPriorityQueue.mjs +1 -1
- package/esm2022/src/util/PrmMap.mjs +1 -1
- package/esm2022/src/util/Scrambler.mjs +1 -1
- package/esm2022/src/util/UniqueIDUtils.mjs +1 -1
- package/esm2022/src/util/cookie.service.mjs +1 -1
- package/fesm2022/magic-xpa-engine.mjs +2 -2
- package/fesm2022/magic-xpa-engine.mjs.map +1 -1
- package/package.json +4 -4
@@ -64,4 +64,4 @@ export class DvCache {
|
|
64
64
|
return this._deletedList.Contains(dvPosVal);
|
65
65
|
}
|
66
66
|
}
|
67
|
-
//# sourceMappingURL=data:application/json;base64,
|
67
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRHZDYWNoZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2VuZ2luZS9zcmMvZGF0YS9EdkNhY2hlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxTQUFTLEVBQUUsSUFBSSxFQUFDLE1BQU0sc0JBQXNCLENBQUM7QUFRckQsTUFBTSxPQUFPLE9BQU87SUFDVixXQUFXLEdBQWdDLElBQUksQ0FBQztJQUNoRCxZQUFZLEdBQWlCLElBQUksQ0FBQztJQUNsQyxLQUFLLEdBQVMsSUFBSSxDQUFDO0lBTTNCLFlBQVksR0FBUztRQUVuQixJQUFJLENBQUMsS0FBSyxHQUFHLEdBQUcsQ0FBQztRQUNqQixJQUFJLENBQUMsV0FBVyx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bWJlciA9IDA7IGogPCBzdWJUYXNrcy5nZXRTaXplKCk7IGogPSBqICsgMSlcclxuICAgICAgICBzdWJUYXNrcy5nZXRUYXNrKGopLmdldFRhc2tDYWNoZSgpLmNsZWFyQ2FjaGUoKTtcclxuICAgIH1cclxuXHJcbiAgICAvLyBpbnZhbGlkYXRlIHRoZSBjdXJyZW50IGQudiBzbyBpdCB3aWxsIG5vdCBlbnRlciB0aGUgY2FjaGUgb24gcmV0dXJuIGZyb20gc2VydmVyXHJcbiAgICAoPERhdGFWaWV3PnRoaXMuX3Rhc2suRGF0YVZpZXcpLnNldENoYW5nZWQodHJ1ZSk7XHJcbiAgfVxyXG5cclxuICBpc0RlbGV0ZWQoZHZQb3NWYWw6IG51bWJlcik6IGJvb2xlYW4ge1xyXG4gICAgcmV0dXJuIHRoaXMuX2RlbGV0ZWRMaXN0LkNvbnRhaW5zKGR2UG9zVmFsKTtcclxuICB9XHJcbn1cclxuIl19
|
@@ -643,4 +643,4 @@ export class Field extends FieldBase {
|
|
643
643
|
return true;
|
644
644
|
}
|
645
645
|
}
|
646
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRmllbGQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9lbmdpbmUvc3JjL2RhdGEvRmllbGQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLG9CQUFvQixFQUFFLEtBQUssRUFBRSxJQUFJLEVBQUUsT0FBTyxFQUFFLE9BQU8sRUFBRSxRQUFRLEVBQUUsaUJBQWlCLEVBQUMsTUFBTSxzQkFBc0IsQ0FBQztBQUN0SCxPQUFPLEVBQ0wsU0FBUyxFQUNULGlCQUFpQixFQUNqQixNQUFNLEVBQ04sWUFBWSxFQUNaLFlBQVksRUFDWixnQkFBZ0IsRUFDaEIsT0FBTyxFQUNQLGVBQWUsRUF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ZhbHNlKTtcclxuICB9XHJcblxyXG4gIC8vLyA8c3VtbWFyeT5cclxuICAvLy8gdHJ1ZSwgaWYgcmFuZ2UgY29uZGl0aW9uIHNob3VsZCBiZSBhcHBsaWVkIHRvIHRoZSBpZWxkIGR1cmluZyBjb21wdXRlXHJcbiAgLy8vIDwvc3VtbWFyeT5cclxuICBnZXQgU2hvdWxkQ2hlY2tSYW5nZUluQ29tcHV0ZSgpOiBib29sZWFuIHtcclxuICAgIHJldHVybiB0aGlzLklzTGlua0ZpZWxkIHx8ICh0aGlzLklzVmlydHVhbCAmJiAoPERhdGFWaWV3PnRoaXMuX2RhdGF2aWV3KS5IYXNNYWluVGFibGUpO1xyXG4gIH1cclxuXHJcbiAgSXNGb3JBcmd1bWVudCh0YXNrSGFzUGFyYW1ldGVyczogYm9vbGVhbik6IGJvb2xlYW4ge1xyXG4gICAgLy8gSWYgd2UgbmVlZCBhIHBhcmFtZXRlciBhbmQgdGhlIGZpZWxkIGlzIG5vdCBvbmVcclxuICAgIGlmICh0YXNrSGFzUGFyYW1ldGVycykge1xyXG4gICAgICBpZiAoIXRoaXMuaXNQYXJhbSgpKSB7XHJcbiAgICAgICAgcmV0dXJuIGZhbHNlO1xyXG4gICAgICB9XHJcbiAgICB9XHJcbiAgICBlbHNlIHtcclxuICAgICAgaWYgKCF0aGlzLklzVmlydHVhbCkge1xyXG4gICAgICAgIHJldHVybiBmYWxzZTtcclxuICAgICAgfVxyXG4gICAgfVxyXG4gICAgcmV0dXJuIHRydWU7XHJcbiAgfVxyXG59XHJcbiJdfQ==
|
@@ -100,4 +100,4 @@ class FieldsTable extends FieldsTableBase {
|
|
100
100
|
}
|
101
101
|
}
|
102
102
|
export { FieldsTable as FieldsTableExt };
|
103
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRmllbGRzVGFibGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9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