@magic-xpa/engine 4.1100.0-dev4110.98 → 4.1100.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +7 -7
- package/{esm2020 → esm2022}/index.mjs +188 -188
- package/{esm2020 → esm2022}/magic-xpa-engine.mjs +1 -1
- package/esm2022/src/AccessHelper.mjs +15 -0
- package/esm2022/src/ClientManager.mjs +421 -0
- package/esm2022/src/CommandsProcessorBase.mjs +56 -0
- package/{esm2020 → esm2022}/src/CommandsProcessorManager.mjs +25 -25
- package/esm2022/src/CommandsTable.mjs +162 -0
- package/esm2022/src/ConstInterface.mjs +517 -0
- package/{esm2020 → esm2022}/src/CurrentClientVersion.mjs +2 -2
- package/esm2022/src/FlowMonitorInterface.mjs +16 -0
- package/esm2022/src/GUIManager.mjs +62 -0
- package/esm2022/src/GlobalCommandsManager.mjs +34 -0
- package/esm2022/src/GuiEventsProcessor.mjs +156 -0
- package/{esm2020 → esm2022}/src/ICommandsTable.mjs +1 -1
- package/esm2022/src/ServerConfig.mjs +122 -0
- package/{esm2020 → esm2022}/src/bridge/IGuiEvent.mjs +19 -19
- package/esm2022/src/bridge/MagicBridge.mjs +41 -0
- package/esm2022/src/commands/ClientOriginatedCommandTaskTag.mjs +12 -0
- package/{esm2020 → esm2022}/src/commands/ClientToServer/AddUserLocateDataViewCommand.mjs +8 -8
- package/{esm2020 → esm2022}/src/commands/ClientToServer/AddUserRangeDataviewCommand.mjs +9 -9
- package/{esm2020 → esm2022}/src/commands/ClientToServer/AddUserSortDataViewCommand.mjs +9 -9
- package/esm2022/src/commands/ClientToServer/BrowserEscEventCommand.mjs +26 -0
- package/{esm2020 → esm2022}/src/commands/ClientToServer/ClientOriginatedCommand.mjs +14 -14
- package/{esm2020 → esm2022}/src/commands/ClientToServer/ClientOriginatedCommandSerializer.mjs +59 -59
- package/esm2022/src/commands/ClientToServer/ColumnSortEventCommand.mjs +29 -0
- package/esm2022/src/commands/ClientToServer/CommandFactory.mjs +261 -0
- package/esm2022/src/commands/ClientToServer/CommandSerializationHelper.mjs +67 -0
- package/esm2022/src/commands/ClientToServer/ComputeEventCommand.mjs +26 -0
- package/{esm2020 → esm2022}/src/commands/ClientToServer/ContextTerminationEventCommand.mjs +24 -21
- package/{esm2020 → esm2022}/src/commands/ClientToServer/ContextTimeoutResetCommand.mjs +23 -20
- package/{esm2020 → esm2022}/src/commands/ClientToServer/ControlItemsRefreshCommand.mjs +8 -8
- package/esm2022/src/commands/ClientToServer/DataViewOutputCommand.mjs +13 -0
- package/{esm2020 → esm2022}/src/commands/ClientToServer/DataviewCommand.mjs +44 -44
- package/esm2022/src/commands/ClientToServer/EvaluateCommand.mjs +40 -0
- package/{esm2020 → esm2022}/src/commands/ClientToServer/EventCommand.mjs +43 -40
- package/esm2022/src/commands/ClientToServer/ExecOperCommand.mjs +70 -0
- package/esm2022/src/commands/ClientToServer/FetchDataControlValuesEventCommand.mjs +25 -0
- package/{esm2020 → esm2022}/src/commands/ClientToServer/GlobalParamsQueryCommand.mjs +10 -10
- package/{esm2020 → esm2022}/src/commands/ClientToServer/ICommandTaskTag.mjs +1 -1
- package/esm2022/src/commands/ClientToServer/IndexChangeEventCommand.mjs +24 -0
- package/esm2022/src/commands/ClientToServer/IniputForceWriteCommand.mjs +26 -0
- package/{esm2020 → esm2022}/src/commands/ClientToServer/NonReversibleExitEventCommand.mjs +26 -23
- package/{esm2020 → esm2022}/src/commands/ClientToServer/QueryCommand.mjs +20 -20
- package/esm2022/src/commands/ClientToServer/RecomputeCommand.mjs +30 -0
- package/esm2022/src/commands/ClientToServer/RefreshEventCommand.mjs +30 -0
- package/esm2022/src/commands/ClientToServer/RefreshScreenEventCommand.mjs +27 -0
- package/esm2022/src/commands/ClientToServer/RollbackEventCommand.mjs +43 -0
- package/esm2022/src/commands/ClientToServer/SelectProgramCommand.mjs +19 -0
- package/{esm2020 → esm2022}/src/commands/ClientToServer/SetTransactionStateDataviewCommand.mjs +9 -9
- package/esm2022/src/commands/ClientToServer/SubformOpenEventCommand.mjs +24 -0
- package/esm2022/src/commands/ClientToServer/SubformRefreshEventCommand.mjs +27 -0
- package/esm2022/src/commands/ClientToServer/TransactionCommand.mjs +34 -0
- package/{esm2020 → esm2022}/src/commands/ClientToServer/UnloadCommand.mjs +18 -15
- package/esm2022/src/commands/ClientToServer/WriteMessageToServerLogCommand.mjs +18 -0
- package/esm2022/src/commands/DataViewCommandBase.mjs +8 -0
- package/{esm2020 → esm2022}/src/commands/IClientCommand.mjs +1 -1
- package/esm2022/src/commands/IClientTargetedCommand.mjs +13 -0
- package/{esm2020 → esm2022}/src/commands/IClientToServerCommandInfo.mjs +2 -2
- package/esm2022/src/commands/ServerToClient/AbortCommand.mjs +65 -0
- package/{esm2020 → esm2022}/src/commands/ServerToClient/AddLocateCommand.mjs +21 -21
- package/{esm2020 → esm2022}/src/commands/ServerToClient/AddRangeCommand.mjs +62 -62
- package/{esm2020 → esm2022}/src/commands/ServerToClient/AddSortCommand.mjs +33 -33
- package/esm2022/src/commands/ServerToClient/ClientRefreshCommand.mjs +25 -0
- package/esm2022/src/commands/ServerToClient/ClientTargetedCommandBase.mjs +24 -0
- package/esm2022/src/commands/ServerToClient/EnhancedVerifyCommand.mjs +45 -0
- package/esm2022/src/commands/ServerToClient/OpenURLCommand.mjs +221 -0
- package/{esm2020 → esm2022}/src/commands/ServerToClient/ResetLocateCommand.mjs +14 -14
- package/{esm2020 → esm2022}/src/commands/ServerToClient/ResetRangeCommand.mjs +14 -14
- package/{esm2020 → esm2022}/src/commands/ServerToClient/ResetSortCommand.mjs +14 -14
- package/esm2022/src/commands/ServerToClient/ResultCommand.mjs +37 -0
- package/esm2022/src/commands/ServerToClient/VerifyCommand.mjs +83 -0
- package/{esm2020 → esm2022}/src/commands/ServerToClient/XMLBasedCommandBuilder.mjs +132 -132
- package/{esm2020 → esm2022}/src/communications/IConnectionStateManager.mjs +1 -1
- package/esm2022/src/communications/InteractiveCommunicationsFailureHandler.mjs +15 -0
- package/{esm2020 → esm2022}/src/data/DataSourceIdKey.mjs +2 -2
- package/esm2022/src/data/DataView.mjs +1613 -0
- package/{esm2020 → esm2022}/src/data/DataViewBase.mjs +3 -3
- package/esm2022/src/data/DataviewManager.mjs +28 -0
- package/esm2022/src/data/DataviewManagerBase.mjs +15 -0
- package/esm2022/src/data/DvCache.mjs +67 -0
- package/esm2022/src/data/Field.mjs +646 -0
- package/esm2022/src/data/FieldBase.mjs +15 -0
- package/esm2022/src/data/FieldsTable.mjs +103 -0
- package/{esm2020 → esm2022}/src/data/IRecordsTable.mjs +1 -1
- package/{esm2020 → esm2022}/src/data/Key.mjs +88 -88
- package/esm2022/src/data/Record.mjs +880 -0
- package/{esm2020 → esm2022}/src/data/RecordOutOfDataViewException.mjs +15 -15
- package/esm2022/src/data/RecordsTable.mjs +267 -0
- package/{esm2020 → esm2022}/src/data/TaskTransactionManager.mjs +107 -103
- package/{esm2020 → esm2022}/src/data/XMLBasedDcValuesBuilder.mjs +74 -74
- package/{esm2020 → esm2022}/src/enums.mjs +23 -23
- package/esm2022/src/env/EnvVariablesTable.mjs +340 -0
- package/esm2022/src/env/Environment.mjs +487 -0
- package/{esm2020 → esm2022}/src/env/ILanguageData.mjs +1 -1
- package/esm2022/src/env/LanguageData.mjs +227 -0
- package/{esm2020 → esm2022}/src/env/MirrorString.mjs +65 -65
- package/esm2022/src/event/ActionManager.mjs +91 -0
- package/esm2022/src/event/Event.mjs +1333 -0
- package/esm2022/src/event/EventHandler.mjs +766 -0
- package/esm2022/src/event/EventHandlerPosition.mjs +204 -0
- package/esm2022/src/event/EventsManager.mjs +2988 -0
- package/{esm2020 → esm2022}/src/event/IEventsManager.mjs +6 -6
- package/esm2022/src/event/RunTimeEvent.mjs +399 -0
- package/{esm2020 → esm2022}/src/event/RunTimeEventBase.mjs +3 -3
- package/esm2022/src/event/UserEventsTable.mjs +47 -0
- package/esm2022/src/exp/ExpTable.mjs +57 -0
- package/esm2022/src/exp/Expression.mjs +200 -0
- package/esm2022/src/exp/ExpressionDict.mjs +727 -0
- package/esm2022/src/exp/ExpressionEvaluator.mjs +4206 -0
- package/esm2022/src/exp/ExpressionLocalJpn.mjs +314 -0
- package/{esm2020 → esm2022}/src/exp/GlobalParamsTable.mjs +85 -85
- package/esm2022/src/exp/YesNoExp.mjs +36 -0
- package/esm2022/src/gui/CreatedFormVector.mjs +23 -0
- package/esm2022/src/gui/FormsTable.mjs +66 -0
- package/esm2022/src/gui/MgControl.mjs +363 -0
- package/esm2022/src/gui/MgForm.mjs +1224 -0
- package/esm2022/src/http/HttpManager.mjs +97 -0
- package/esm2022/src/http/client/HttpClientAsync.mjs +68 -0
- package/{esm2020 → esm2022}/src/http/client/HttpClientBase.mjs +132 -132
- package/esm2022/src/http/client/HttpClientEvents.mjs +39 -0
- package/esm2022/src/http/client/HttpClientSync.mjs +42 -0
- package/esm2022/src/http/client/HttpUtility.mjs +84 -0
- package/{esm2020 → esm2022}/src/http/client/ICommunicationsFailureHandler.mjs +1 -1
- package/{esm2020 → esm2022}/src/remote/AddUserLocateRemoteDataViewCommand.mjs +18 -18
- package/{esm2020 → esm2022}/src/remote/AddUserRangeRemoteDataViewCommand.mjs +18 -18
- package/{esm2020 → esm2022}/src/remote/AddUserSortRemoteDataViewCommand.mjs +18 -18
- package/esm2022/src/remote/RemoteCommandsProcessor.mjs +883 -0
- package/{esm2020 → esm2022}/src/remote/RemoteControlItemsRefreshCommand.mjs +25 -25
- package/{esm2020 → esm2022}/src/remote/RemoteDataViewCommandBase.mjs +24 -24
- package/{esm2020 → esm2022}/src/remote/RemoteDataViewCommandFactory.mjs +60 -60
- package/{esm2020 → esm2022}/src/remote/RemoteDataViewCommandUpdateNonModifiable.mjs +15 -15
- package/{esm2020 → esm2022}/src/remote/RemoteDataviewManager.mjs +17 -17
- package/{esm2020 → esm2022}/src/remote/RemoteInitDataViewCommand.mjs +10 -10
- package/{esm2020 → esm2022}/src/remote/ResetUserLocateRemoteDataviewCommand.mjs +16 -16
- package/{esm2020 → esm2022}/src/remote/ResetUserRangeRemoteDataviewCommand.mjs +12 -12
- package/{esm2020 → esm2022}/src/remote/ResetUserSortRemoteDataviewCommand.mjs +15 -15
- package/esm2022/src/remote/ServerError.mjs +40 -0
- package/{esm2020 → esm2022}/src/remote/SetTransactionStateRemoteDataViewCommand.mjs +19 -19
- package/esm2022/src/rt/Argument.mjs +265 -0
- package/esm2022/src/rt/ArgumentsList.mjs +103 -0
- package/esm2022/src/rt/Boundary.mjs +152 -0
- package/esm2022/src/rt/CompMainPrgTable.mjs +63 -0
- package/esm2022/src/rt/DataviewHeaderBase.mjs +98 -0
- package/{esm2020 → esm2022}/src/rt/DataviewHeaderFactory.mjs +6 -6
- package/esm2022/src/rt/DataviewHeaders.mjs +53 -0
- package/{esm2020 → esm2022}/src/rt/DataviewHeadersSaxHandler.mjs +38 -38
- package/{esm2020 → esm2022}/src/rt/ExecutionStack.mjs +94 -94
- package/{esm2020 → esm2022}/src/rt/ExecutionStackEntry.mjs +17 -17
- package/{esm2020 → esm2022}/src/rt/HandlersTable.mjs +96 -96
- package/{esm2020 → esm2022}/src/rt/IDataSourceViewDefinition.mjs +1 -1
- package/{esm2020 → esm2022}/src/rt/IDataviewHeader.mjs +1 -1
- package/{esm2020 → esm2022}/src/rt/IResultValue.mjs +1 -1
- package/esm2022/src/rt/LastFocusedManager.mjs +65 -0
- package/esm2022/src/rt/Operation.mjs +735 -0
- package/esm2022/src/rt/OperationTable.mjs +67 -0
- package/esm2022/src/rt/Recompute.mjs +355 -0
- package/{esm2020 → esm2022}/src/rt/RecomputeTable.mjs +62 -62
- package/{esm2020 → esm2022}/src/rt/RemoteDataviewHeader.mjs +108 -108
- package/esm2022/src/rt/ResultValue.mjs +10 -0
- package/esm2022/src/rt/TableCache.mjs +177 -0
- package/esm2022/src/rt/TableCacheManager.mjs +67 -0
- package/esm2022/src/rt/Transaction.mjs +53 -0
- package/esm2022/src/security/UserDetails.mjs +71 -0
- package/{esm2020 → esm2022}/src/tasks/IMGDataCollection.mjs +1 -1
- package/esm2022/src/tasks/MGData.mjs +552 -0
- package/esm2022/src/tasks/MGDataCollection.mjs +252 -0
- package/esm2022/src/tasks/RCTimer.mjs +63 -0
- package/{esm2020 → esm2022}/src/tasks/RemoteTaskService.mjs +44 -44
- package/esm2022/src/tasks/Task.mjs +2499 -0
- package/esm2022/src/tasks/TaskBase.mjs +83 -0
- package/{esm2020 → esm2022}/src/tasks/TaskServiceBase.mjs +24 -24
- package/esm2022/src/tasks/TasksTable.mjs +80 -0
- package/esm2022/src/tasks/sort/Sort.mjs +5 -0
- package/{esm2020 → esm2022}/src/tasks/sort/SortCollection.mjs +67 -67
- package/{esm2020 → esm2022}/src/util/ConstUtils.mjs +13 -13
- package/esm2022/src/util/FlowMonitorQueue.mjs +451 -0
- package/{esm2020 → esm2022}/src/util/HeapSort.mjs +69 -69
- package/{esm2020 → esm2022}/src/util/IMirrorXML.mjs +1 -1
- package/{esm2020 → esm2022}/src/util/IServerConfig.mjs +1 -1
- package/{esm2020 → esm2022}/src/util/MgBlockingQueue.mjs +1 -1
- package/esm2022/src/util/MgPriorityBlockingQueue.mjs +74 -0
- package/esm2022/src/util/MgPriorityQueue.mjs +66 -0
- package/{esm2020 → esm2022}/src/util/ParamParseResult.mjs +7 -7
- package/esm2022/src/util/PrmMap.mjs +152 -0
- package/esm2022/src/util/ReturnResult.mjs +46 -0
- package/esm2022/src/util/ReturnResultBase.mjs +18 -0
- package/esm2022/src/util/Scrambler.mjs +89 -0
- package/esm2022/src/util/UniqueIDUtils.mjs +13 -0
- package/{esm2020 → esm2022}/src/util/cookie.service.mjs +92 -92
- package/{fesm2020 → fesm2022}/magic-xpa-engine.mjs +29888 -29690
- package/fesm2022/magic-xpa-engine.mjs.map +1 -0
- package/index.d.ts +187 -187
- package/package.json +8 -14
- package/src/AccessHelper.d.ts +20 -20
- package/src/ClientManager.d.ts +35 -32
- package/src/CommandsProcessorBase.d.ts +23 -23
- package/src/CommandsProcessorManager.d.ts +6 -6
- package/src/CommandsTable.d.ts +22 -22
- package/src/ConstInterface.d.ts +516 -515
- package/src/CurrentClientVersion.d.ts +1 -1
- package/src/FlowMonitorInterface.d.ts +15 -15
- package/src/GUIManager.d.ts +17 -17
- package/src/GlobalCommandsManager.d.ts +17 -17
- package/src/GuiEventsProcessor.d.ts +24 -24
- package/src/ICommandsTable.d.ts +9 -9
- package/src/ServerConfig.d.ts +35 -34
- package/src/bridge/IGuiEvent.d.ts +19 -19
- package/src/bridge/MagicBridge.d.ts +16 -16
- package/src/commands/ClientOriginatedCommandTaskTag.d.ts +8 -8
- package/src/commands/ClientToServer/AddUserLocateDataViewCommand.d.ts +4 -4
- package/src/commands/ClientToServer/AddUserRangeDataviewCommand.d.ts +6 -6
- package/src/commands/ClientToServer/AddUserSortDataViewCommand.d.ts +6 -6
- package/src/commands/ClientToServer/BrowserEscEventCommand.d.ts +9 -8
- package/src/commands/ClientToServer/ClientOriginatedCommand.d.ts +8 -8
- package/src/commands/ClientToServer/ClientOriginatedCommandSerializer.d.ts +6 -6
- package/src/commands/ClientToServer/ColumnSortEventCommand.d.ts +11 -10
- package/src/commands/ClientToServer/CommandFactory.d.ts +64 -64
- package/src/commands/ClientToServer/CommandSerializationHelper.d.ts +20 -20
- package/src/commands/ClientToServer/ComputeEventCommand.d.ts +9 -8
- package/src/commands/ClientToServer/ContextTerminationEventCommand.d.ts +8 -7
- package/src/commands/ClientToServer/ContextTimeoutResetCommand.d.ts +8 -7
- package/src/commands/ClientToServer/ControlItemsRefreshCommand.d.ts +6 -6
- package/src/commands/ClientToServer/DataViewOutputCommand.d.ts +9 -9
- package/src/commands/ClientToServer/DataviewCommand.d.ts +32 -32
- package/src/commands/ClientToServer/EvaluateCommand.d.ts +16 -15
- package/src/commands/ClientToServer/EventCommand.d.ts +16 -15
- package/src/commands/ClientToServer/ExecOperCommand.d.ts +24 -23
- package/src/commands/ClientToServer/FetchDataControlValuesEventCommand.d.ts +9 -8
- package/src/commands/ClientToServer/GlobalParamsQueryCommand.d.ts +5 -5
- package/src/commands/ClientToServer/ICommandTaskTag.d.ts +3 -3
- package/src/commands/ClientToServer/IndexChangeEventCommand.d.ts +9 -8
- package/src/commands/ClientToServer/IniputForceWriteCommand.d.ts +11 -10
- package/src/commands/ClientToServer/NonReversibleExitEventCommand.d.ts +9 -8
- package/src/commands/ClientToServer/QueryCommand.d.ts +8 -8
- package/src/commands/ClientToServer/RecomputeCommand.d.ts +12 -11
- package/src/commands/ClientToServer/RefreshEventCommand.d.ts +13 -12
- package/src/commands/ClientToServer/RefreshScreenEventCommand.d.ts +11 -10
- package/src/commands/ClientToServer/RollbackEventCommand.d.ts +15 -14
- package/src/commands/ClientToServer/SelectProgramCommand.d.ts +7 -6
- package/src/commands/ClientToServer/SetTransactionStateDataviewCommand.d.ts +5 -5
- package/src/commands/ClientToServer/SubformOpenEventCommand.d.ts +9 -8
- package/src/commands/ClientToServer/SubformRefreshEventCommand.d.ts +10 -9
- package/src/commands/ClientToServer/TransactionCommand.d.ts +14 -12
- package/src/commands/ClientToServer/UnloadCommand.d.ts +8 -7
- package/src/commands/ClientToServer/WriteMessageToServerLogCommand.d.ts +6 -6
- package/src/commands/DataViewCommandBase.d.ts +6 -6
- package/src/commands/IClientCommand.d.ts +2 -2
- package/src/commands/IClientTargetedCommand.d.ts +12 -12
- package/src/commands/IClientToServerCommandInfo.d.ts +4 -3
- package/src/commands/ServerToClient/AbortCommand.d.ts +11 -11
- package/src/commands/ServerToClient/AddLocateCommand.d.ts +6 -6
- package/src/commands/ServerToClient/AddRangeCommand.d.ts +10 -10
- package/src/commands/ServerToClient/AddSortCommand.d.ts +9 -9
- package/src/commands/ServerToClient/ClientRefreshCommand.d.ts +7 -7
- package/src/commands/ServerToClient/ClientTargetedCommandBase.d.ts +12 -12
- package/src/commands/ServerToClient/EnhancedVerifyCommand.d.ts +13 -13
- package/src/commands/ServerToClient/OpenURLCommand.d.ts +21 -21
- package/src/commands/ServerToClient/ResetLocateCommand.d.ts +6 -6
- package/src/commands/ServerToClient/ResetRangeCommand.d.ts +6 -6
- package/src/commands/ServerToClient/ResetSortCommand.d.ts +6 -6
- package/src/commands/ServerToClient/ResultCommand.d.ts +10 -10
- package/src/commands/ServerToClient/VerifyCommand.d.ts +17 -17
- package/src/commands/ServerToClient/XMLBasedCommandBuilder.d.ts +11 -11
- package/src/communications/IConnectionStateManager.d.ts +4 -4
- package/src/communications/InteractiveCommunicationsFailureHandler.d.ts +6 -6
- package/src/data/DataSourceIdKey.d.ts +2 -2
- package/src/data/DataView.d.ts +162 -162
- package/src/data/DataViewBase.d.ts +12 -12
- package/src/data/DataviewManager.d.ts +14 -14
- package/src/data/DataviewManagerBase.d.ts +11 -11
- package/src/data/DvCache.d.ts +15 -15
- package/src/data/Field.d.ts +103 -103
- package/src/data/FieldBase.d.ts +23 -23
- package/src/data/FieldsTable.d.ts +27 -27
- package/src/data/IRecordsTable.d.ts +7 -7
- package/src/data/Key.d.ts +15 -15
- package/src/data/Record.d.ts +157 -156
- package/src/data/RecordOutOfDataViewException.d.ts +10 -10
- package/src/data/RecordsTable.d.ts +38 -38
- package/src/data/TaskTransactionManager.d.ts +17 -17
- package/src/data/XMLBasedDcValuesBuilder.d.ts +11 -11
- package/src/enums.d.ts +21 -21
- package/src/env/EnvVariablesTable.d.ts +17 -17
- package/src/env/Environment.d.ts +118 -118
- package/src/env/ILanguageData.d.ts +3 -3
- package/src/env/LanguageData.d.ts +20 -20
- package/src/env/MirrorString.d.ts +15 -15
- package/src/event/ActionManager.d.ts +14 -14
- package/src/event/Event.d.ts +79 -79
- package/src/event/EventHandler.d.ts +66 -66
- package/src/event/EventHandlerPosition.d.ts +25 -25
- package/src/event/EventsManager.d.ts +205 -204
- package/src/event/IEventsManager.d.ts +77 -77
- package/src/event/RunTimeEvent.d.ts +126 -123
- package/src/event/RunTimeEventBase.d.ts +5 -5
- package/src/event/UserEventsTable.d.ts +11 -11
- package/src/exp/ExpTable.d.ts +11 -11
- package/src/exp/Expression.d.ts +37 -37
- package/src/exp/ExpressionDict.d.ts +12 -12
- package/src/exp/ExpressionEvaluator.d.ts +198 -198
- package/src/exp/ExpressionLocalJpn.d.ts +18 -18
- package/src/exp/GlobalParamsTable.d.ts +19 -19
- package/src/exp/YesNoExp.d.ts +9 -9
- package/src/gui/CreatedFormVector.d.ts +10 -10
- package/src/gui/FormsTable.d.ts +15 -15
- package/src/gui/MgControl.d.ts +60 -60
- package/src/gui/MgForm.d.ts +96 -93
- package/src/http/HttpManager.d.ts +25 -25
- package/src/http/client/HttpClientAsync.d.ts +16 -16
- package/src/http/client/HttpClientBase.d.ts +30 -30
- package/src/http/client/HttpClientEvents.d.ts +18 -18
- package/src/http/client/HttpClientSync.d.ts +17 -17
- package/src/http/client/HttpUtility.d.ts +10 -10
- package/src/http/client/ICommunicationsFailureHandler.d.ts +5 -5
- package/src/remote/AddUserLocateRemoteDataViewCommand.d.ts +8 -8
- package/src/remote/AddUserRangeRemoteDataViewCommand.d.ts +8 -8
- package/src/remote/AddUserSortRemoteDataViewCommand.d.ts +8 -8
- package/src/remote/RemoteCommandsProcessor.d.ts +51 -51
- package/src/remote/RemoteControlItemsRefreshCommand.d.ts +8 -8
- package/src/remote/RemoteDataViewCommandBase.d.ts +10 -10
- package/src/remote/RemoteDataViewCommandFactory.d.ts +6 -6
- package/src/remote/RemoteDataViewCommandUpdateNonModifiable.d.ts +8 -8
- package/src/remote/RemoteDataviewManager.d.ts +9 -9
- package/src/remote/RemoteInitDataViewCommand.d.ts +7 -7
- package/src/remote/ResetUserLocateRemoteDataviewCommand.d.ts +7 -7
- package/src/remote/ResetUserRangeRemoteDataviewCommand.d.ts +7 -7
- package/src/remote/ResetUserSortRemoteDataviewCommand.d.ts +7 -7
- package/src/remote/ServerError.d.ts +16 -16
- package/src/remote/SetTransactionStateRemoteDataViewCommand.d.ts +8 -8
- package/src/rt/Argument.d.ts +36 -36
- package/src/rt/ArgumentsList.d.ts +24 -24
- package/src/rt/Boundary.d.ts +27 -27
- package/src/rt/CompMainPrgTable.d.ts +10 -10
- package/src/rt/DataviewHeaderBase.d.ts +34 -34
- package/src/rt/DataviewHeaderFactory.d.ts +5 -5
- package/src/rt/DataviewHeaders.d.ts +12 -12
- package/src/rt/DataviewHeadersSaxHandler.d.ts +10 -10
- package/src/rt/ExecutionStack.d.ts +22 -22
- package/src/rt/ExecutionStackEntry.d.ts +7 -7
- package/src/rt/HandlersTable.d.ts +19 -19
- package/src/rt/IDataSourceViewDefinition.d.ts +6 -6
- package/src/rt/IDataviewHeader.d.ts +10 -10
- package/src/rt/IResultValue.d.ts +4 -4
- package/src/rt/LastFocusedManager.d.ts +23 -23
- package/src/rt/Operation.d.ts +97 -97
- package/src/rt/OperationTable.d.ts +15 -15
- package/src/rt/Recompute.d.ts +41 -41
- package/src/rt/RecomputeTable.d.ts +9 -9
- package/src/rt/RemoteDataviewHeader.d.ts +14 -14
- package/src/rt/ResultValue.d.ts +7 -7
- package/src/rt/TableCache.d.ts +29 -29
- package/src/rt/TableCacheManager.d.ts +10 -10
- package/src/rt/Transaction.d.ts +23 -23
- package/src/security/UserDetails.d.ts +16 -16
- package/src/tasks/IMGDataCollection.d.ts +26 -26
- package/src/tasks/MGData.d.ts +63 -63
- package/src/tasks/MGDataCollection.d.ts +42 -42
- package/src/tasks/RCTimer.d.ts +13 -13
- package/src/tasks/RemoteTaskService.d.ts +16 -16
- package/src/tasks/Task.d.ts +312 -312
- package/src/tasks/TaskBase.d.ts +123 -123
- package/src/tasks/TaskServiceBase.d.ts +16 -16
- package/src/tasks/TasksTable.d.ts +21 -21
- package/src/tasks/sort/Sort.d.ts +4 -4
- package/src/tasks/sort/SortCollection.d.ts +11 -11
- package/src/util/ConstUtils.d.ts +3 -3
- package/src/util/FlowMonitorQueue.d.ts +70 -70
- package/src/util/HeapSort.d.ts +6 -6
- package/src/util/IMirrorXML.d.ts +6 -6
- package/src/util/IServerConfig.d.ts +11 -11
- package/src/util/MgBlockingQueue.d.ts +5 -5
- package/src/util/MgPriorityBlockingQueue.d.ts +17 -17
- package/src/util/MgPriorityQueue.d.ts +13 -13
- package/src/util/ParamParseResult.d.ts +6 -6
- package/src/util/PrmMap.d.ts +28 -28
- package/src/util/ReturnResult.d.ts +18 -18
- package/src/util/ReturnResultBase.d.ts +11 -11
- package/src/util/Scrambler.d.ts +10 -10
- package/src/util/UniqueIDUtils.d.ts +4 -4
- package/src/util/cookie.service.d.ts +8 -8
- package/esm2020/src/AccessHelper.mjs +0 -9
- package/esm2020/src/ClientManager.mjs +0 -399
- package/esm2020/src/CommandsProcessorBase.mjs +0 -58
- package/esm2020/src/CommandsTable.mjs +0 -162
- package/esm2020/src/ConstInterface.mjs +0 -516
- package/esm2020/src/FlowMonitorInterface.mjs +0 -16
- package/esm2020/src/GUIManager.mjs +0 -62
- package/esm2020/src/GlobalCommandsManager.mjs +0 -34
- package/esm2020/src/GuiEventsProcessor.mjs +0 -154
- package/esm2020/src/ServerConfig.mjs +0 -117
- package/esm2020/src/bridge/MagicBridge.mjs +0 -41
- package/esm2020/src/commands/ClientOriginatedCommandTaskTag.mjs +0 -11
- package/esm2020/src/commands/ClientToServer/BrowserEscEventCommand.mjs +0 -23
- package/esm2020/src/commands/ClientToServer/ColumnSortEventCommand.mjs +0 -26
- package/esm2020/src/commands/ClientToServer/CommandFactory.mjs +0 -260
- package/esm2020/src/commands/ClientToServer/CommandSerializationHelper.mjs +0 -69
- package/esm2020/src/commands/ClientToServer/ComputeEventCommand.mjs +0 -23
- package/esm2020/src/commands/ClientToServer/DataViewOutputCommand.mjs +0 -13
- package/esm2020/src/commands/ClientToServer/EvaluateCommand.mjs +0 -36
- package/esm2020/src/commands/ClientToServer/ExecOperCommand.mjs +0 -67
- package/esm2020/src/commands/ClientToServer/FetchDataControlValuesEventCommand.mjs +0 -22
- package/esm2020/src/commands/ClientToServer/IndexChangeEventCommand.mjs +0 -21
- package/esm2020/src/commands/ClientToServer/IniputForceWriteCommand.mjs +0 -23
- package/esm2020/src/commands/ClientToServer/RecomputeCommand.mjs +0 -27
- package/esm2020/src/commands/ClientToServer/RefreshEventCommand.mjs +0 -27
- package/esm2020/src/commands/ClientToServer/RefreshScreenEventCommand.mjs +0 -24
- package/esm2020/src/commands/ClientToServer/RollbackEventCommand.mjs +0 -39
- package/esm2020/src/commands/ClientToServer/SelectProgramCommand.mjs +0 -15
- package/esm2020/src/commands/ClientToServer/SubformOpenEventCommand.mjs +0 -21
- package/esm2020/src/commands/ClientToServer/SubformRefreshEventCommand.mjs +0 -24
- package/esm2020/src/commands/ClientToServer/TransactionCommand.mjs +0 -28
- package/esm2020/src/commands/ClientToServer/WriteMessageToServerLogCommand.mjs +0 -18
- package/esm2020/src/commands/DataViewCommandBase.mjs +0 -10
- package/esm2020/src/commands/IClientTargetedCommand.mjs +0 -9
- package/esm2020/src/commands/ServerToClient/AbortCommand.mjs +0 -65
- package/esm2020/src/commands/ServerToClient/ClientRefreshCommand.mjs +0 -25
- package/esm2020/src/commands/ServerToClient/ClientTargetedCommandBase.mjs +0 -27
- package/esm2020/src/commands/ServerToClient/EnhancedVerifyCommand.mjs +0 -45
- package/esm2020/src/commands/ServerToClient/OpenURLCommand.mjs +0 -221
- package/esm2020/src/commands/ServerToClient/ResultCommand.mjs +0 -37
- package/esm2020/src/commands/ServerToClient/VerifyCommand.mjs +0 -83
- package/esm2020/src/communications/InteractiveCommunicationsFailureHandler.mjs +0 -17
- package/esm2020/src/data/DataView.mjs +0 -1610
- package/esm2020/src/data/DataviewManager.mjs +0 -28
- package/esm2020/src/data/DataviewManagerBase.mjs +0 -15
- package/esm2020/src/data/DvCache.mjs +0 -67
- package/esm2020/src/data/Field.mjs +0 -646
- package/esm2020/src/data/FieldBase.mjs +0 -18
- package/esm2020/src/data/FieldsTable.mjs +0 -103
- package/esm2020/src/data/Record.mjs +0 -846
- package/esm2020/src/data/RecordsTable.mjs +0 -267
- package/esm2020/src/env/EnvVariablesTable.mjs +0 -340
- package/esm2020/src/env/Environment.mjs +0 -489
- package/esm2020/src/env/LanguageData.mjs +0 -226
- package/esm2020/src/event/ActionManager.mjs +0 -91
- package/esm2020/src/event/Event.mjs +0 -1333
- package/esm2020/src/event/EventHandler.mjs +0 -766
- package/esm2020/src/event/EventHandlerPosition.mjs +0 -204
- package/esm2020/src/event/EventsManager.mjs +0 -2975
- package/esm2020/src/event/RunTimeEvent.mjs +0 -392
- package/esm2020/src/event/UserEventsTable.mjs +0 -47
- package/esm2020/src/exp/ExpTable.mjs +0 -59
- package/esm2020/src/exp/Expression.mjs +0 -200
- package/esm2020/src/exp/ExpressionDict.mjs +0 -727
- package/esm2020/src/exp/ExpressionEvaluator.mjs +0 -4208
- package/esm2020/src/exp/ExpressionLocalJpn.mjs +0 -314
- package/esm2020/src/exp/YesNoExp.mjs +0 -36
- package/esm2020/src/gui/CreatedFormVector.mjs +0 -23
- package/esm2020/src/gui/FormsTable.mjs +0 -66
- package/esm2020/src/gui/MgControl.mjs +0 -353
- package/esm2020/src/gui/MgForm.mjs +0 -1181
- package/esm2020/src/http/HttpManager.mjs +0 -97
- package/esm2020/src/http/client/HttpClientAsync.mjs +0 -67
- package/esm2020/src/http/client/HttpClientEvents.mjs +0 -39
- package/esm2020/src/http/client/HttpClientSync.mjs +0 -42
- package/esm2020/src/http/client/HttpUtility.mjs +0 -84
- package/esm2020/src/remote/RemoteCommandsProcessor.mjs +0 -880
- package/esm2020/src/remote/ServerError.mjs +0 -40
- package/esm2020/src/rt/Argument.mjs +0 -265
- package/esm2020/src/rt/ArgumentsList.mjs +0 -103
- package/esm2020/src/rt/Boundary.mjs +0 -152
- package/esm2020/src/rt/CompMainPrgTable.mjs +0 -65
- package/esm2020/src/rt/DataviewHeaderBase.mjs +0 -96
- package/esm2020/src/rt/DataviewHeaders.mjs +0 -53
- package/esm2020/src/rt/LastFocusedManager.mjs +0 -67
- package/esm2020/src/rt/Operation.mjs +0 -735
- package/esm2020/src/rt/OperationTable.mjs +0 -67
- package/esm2020/src/rt/Recompute.mjs +0 -355
- package/esm2020/src/rt/ResultValue.mjs +0 -12
- package/esm2020/src/rt/TableCache.mjs +0 -177
- package/esm2020/src/rt/TableCacheManager.mjs +0 -67
- package/esm2020/src/rt/Transaction.mjs +0 -53
- package/esm2020/src/security/UserDetails.mjs +0 -71
- package/esm2020/src/tasks/MGData.mjs +0 -552
- package/esm2020/src/tasks/MGDataCollection.mjs +0 -252
- package/esm2020/src/tasks/RCTimer.mjs +0 -63
- package/esm2020/src/tasks/Task.mjs +0 -2496
- package/esm2020/src/tasks/TaskBase.mjs +0 -87
- package/esm2020/src/tasks/TasksTable.mjs +0 -80
- package/esm2020/src/tasks/sort/Sort.mjs +0 -7
- package/esm2020/src/util/FlowMonitorQueue.mjs +0 -453
- package/esm2020/src/util/MgPriorityBlockingQueue.mjs +0 -74
- package/esm2020/src/util/MgPriorityQueue.mjs +0 -66
- package/esm2020/src/util/PrmMap.mjs +0 -151
- package/esm2020/src/util/ReturnResult.mjs +0 -46
- package/esm2020/src/util/ReturnResultBase.mjs +0 -18
- package/esm2020/src/util/Scrambler.mjs +0 -89
- package/esm2020/src/util/UniqueIDUtils.mjs +0 -12
- package/fesm2015/magic-xpa-engine.mjs +0 -30837
- package/fesm2015/magic-xpa-engine.mjs.map +0 -1
- package/fesm2020/magic-xpa-engine.mjs.map +0 -1
@@ -0,0 +1,221 @@
|
|
1
|
+
import { Debug, Int32, List, NString } from "@magic-xpa/mscorelib";
|
2
|
+
import { InternalInterface, XMLConstants, XmlParser } from "@magic-xpa/utils";
|
3
|
+
import { ClientTargetedCommandBase } from "./ClientTargetedCommandBase";
|
4
|
+
import { ArgumentsList } from "../../rt/ArgumentsList";
|
5
|
+
import { MGData } from "../../tasks/MGData";
|
6
|
+
import { MgControl } from "../../gui/MgControl";
|
7
|
+
import { OpeningTaskDetails } from "../../tasks/TaskBase";
|
8
|
+
import { ConstInterface } from "../../ConstInterface";
|
9
|
+
import { LastFocusedManager } from "../../rt/LastFocusedManager";
|
10
|
+
import { RemoteCommandsProcessor } from "../../remote/RemoteCommandsProcessor";
|
11
|
+
import { Task } from "../../tasks/Task";
|
12
|
+
import { AccessHelper } from "../../AccessHelper";
|
13
|
+
import { MgControlType } from "@magic-xpa/utils";
|
14
|
+
import { RunTimeEvent } from '../../event/RunTimeEvent';
|
15
|
+
export class OpenURLCommand extends ClientTargetedCommandBase {
|
16
|
+
_callingTaskTag = null;
|
17
|
+
_pathParentTaskTag = null;
|
18
|
+
_subformCtrlName = null;
|
19
|
+
_ditIdx = Int32.MinValue;
|
20
|
+
_isModal = true;
|
21
|
+
_transOwner = null;
|
22
|
+
_newId = null;
|
23
|
+
_forceModal = false;
|
24
|
+
_key = null;
|
25
|
+
_varList = null;
|
26
|
+
_isRoute = false;
|
27
|
+
NewTaskXML = null;
|
28
|
+
static createNewCommandsTable = null;
|
29
|
+
constructor() {
|
30
|
+
super();
|
31
|
+
}
|
32
|
+
get IsBlocking() {
|
33
|
+
return this._isModal && this._subformCtrlName === null;
|
34
|
+
}
|
35
|
+
async Execute(res) {
|
36
|
+
let mgd = null;
|
37
|
+
let destinationSubformSucceeded = false;
|
38
|
+
let refreshWhenHidden = true;
|
39
|
+
let mgdID = 0;
|
40
|
+
let subformCtrl = null;
|
41
|
+
let oldTimers = new List(), newTimers = new List();
|
42
|
+
let moveToFirstControl = true;
|
43
|
+
let guiParentTask;
|
44
|
+
let guiParentMgData = null;
|
45
|
+
let callingTask = (this._callingTaskTag != null ? AccessHelper.mgDataTable.GetTaskByID(this._callingTaskTag) : null);
|
46
|
+
let pathParentTask = (this._pathParentTaskTag != null ? AccessHelper.mgDataTable.GetTaskByID(this._pathParentTaskTag) : null);
|
47
|
+
guiParentTask = callingTask = AccessHelper.mgDataTable.GetTaskByID(this._callingTaskTag);
|
48
|
+
if ((!NString.IsNullOrEmpty(this._subformCtrlName)) || (this._ditIdx !== Int32.MinValue) || this._isRoute) {
|
49
|
+
if (this._isRoute && NString.IsNullOrEmpty(this._subformCtrlName.trim())) {
|
50
|
+
subformCtrl = callingTask.getForm().DefaultRouterOutlet;
|
51
|
+
}
|
52
|
+
else {
|
53
|
+
if (!callingTask.IsInteractive) {
|
54
|
+
for (let parentTask = callingTask; parentTask.getForm() != null; parentTask = parentTask.getParent()) {
|
55
|
+
subformCtrl = parentTask.getForm().getCtrlByName(this._subformCtrlName, MgControlType.CTRL_TYPE_SUBFORM);
|
56
|
+
if (subformCtrl != null) {
|
57
|
+
callingTask = guiParentTask = parentTask;
|
58
|
+
break;
|
59
|
+
}
|
60
|
+
}
|
61
|
+
}
|
62
|
+
else
|
63
|
+
subformCtrl = (this._ditIdx !== Int32.MinValue ? callingTask.getForm().getCtrl(this._ditIdx) : callingTask.getForm().getSubFormCtrlByName(this._subformCtrlName));
|
64
|
+
}
|
65
|
+
}
|
66
|
+
if (callingTask != null)
|
67
|
+
mgd = callingTask.getMGData();
|
68
|
+
if (subformCtrl != null) {
|
69
|
+
let subformTask = subformCtrl.getSubformTask();
|
70
|
+
guiParentTask = subformCtrl.getForm().getTask();
|
71
|
+
mgdID = guiParentTask.getMgdID();
|
72
|
+
guiParentMgData = guiParentTask.getMGData();
|
73
|
+
if (guiParentMgData.getTimerHandlers() != null)
|
74
|
+
oldTimers = guiParentMgData.getTimerHandlers().getTimersVector();
|
75
|
+
if (this._ditIdx !== Int32.MinValue) {
|
76
|
+
refreshWhenHidden = false;
|
77
|
+
moveToFirstControl = false;
|
78
|
+
}
|
79
|
+
else {
|
80
|
+
destinationSubformSucceeded = true;
|
81
|
+
if (this._transOwner != null) {
|
82
|
+
let newTransOwnerTask = AccessHelper.mgDataTable.GetTaskByID(this._transOwner);
|
83
|
+
if (newTransOwnerTask != null)
|
84
|
+
newTransOwnerTask.setTransOwnerTask();
|
85
|
+
}
|
86
|
+
if (subformTask != null) {
|
87
|
+
subformTask.setDestinationSubform(true);
|
88
|
+
await subformTask.stop();
|
89
|
+
}
|
90
|
+
if (!MgControl.validReturnToCtrl())
|
91
|
+
MgControl.ReturnToCtrl = LastFocusedManager.getLastFocusedControl();
|
92
|
+
}
|
93
|
+
subformCtrl.setSubformTaskId(this._newId);
|
94
|
+
}
|
95
|
+
let parentMgData;
|
96
|
+
if (callingTask == null)
|
97
|
+
parentMgData = AccessHelper.mgDataTable.getMGData(0);
|
98
|
+
else
|
99
|
+
parentMgData = callingTask.getMGData();
|
100
|
+
if (!destinationSubformSucceeded && refreshWhenHidden) {
|
101
|
+
mgdID = AccessHelper.mgDataTable.getAvailableIdx();
|
102
|
+
Debug.Assert(mgdID > 0);
|
103
|
+
mgd = new MGData(OpenURLCommand.createNewCommandsTable(), OpenURLCommand.createNewCommandsTable(), mgdID, parentMgData, this._isModal, this._forceModal);
|
104
|
+
mgd.copyUnframedCmds();
|
105
|
+
await AccessHelper.mgDataTable.addMGData(mgd, mgdID, false);
|
106
|
+
AccessHelper.mgDataTable.currMgdID = mgdID;
|
107
|
+
}
|
108
|
+
this.Obj = this._key;
|
109
|
+
this._key = null;
|
110
|
+
try {
|
111
|
+
await RemoteCommandsProcessor.GetInstance().ProcessResponse(this.NewTaskXML, mgdID, new OpeningTaskDetails(callingTask, pathParentTask), null);
|
112
|
+
}
|
113
|
+
finally {
|
114
|
+
AccessHelper.eventsManager.setIgnoreUnknownAbort(false);
|
115
|
+
}
|
116
|
+
if (destinationSubformSucceeded || !refreshWhenHidden) {
|
117
|
+
subformCtrl.initSubformTask();
|
118
|
+
if (destinationSubformSucceeded) {
|
119
|
+
let subformTask = subformCtrl.getSubformTask();
|
120
|
+
moveToFirstControl = !callingTask.RetainFocus;
|
121
|
+
subformTask.setIsDestinationCall(true);
|
122
|
+
}
|
123
|
+
}
|
124
|
+
let isSubformModal = false;
|
125
|
+
let prevMgDataIsModal = mgd.IsModal;
|
126
|
+
if (subformCtrl != null) {
|
127
|
+
if (guiParentMgData.getTimerHandlers() != null)
|
128
|
+
newTimers = guiParentMgData.getTimerHandlers().getTimersVector();
|
129
|
+
guiParentMgData.changeTimers(oldTimers, newTimers);
|
130
|
+
if (subformCtrl.IsModal())
|
131
|
+
this._isModal = isSubformModal = mgd.IsModal = true;
|
132
|
+
}
|
133
|
+
let nonInteractiveTask = await Task.StartProgram(destinationSubformSucceeded, moveToFirstControl);
|
134
|
+
if (!isSubformModal)
|
135
|
+
this._isModal = mgd.IsModal;
|
136
|
+
if (nonInteractiveTask == null) {
|
137
|
+
if (callingTask != null && ((this._isModal && (isSubformModal || !destinationSubformSucceeded) && refreshWhenHidden) || (!callingTask.IsInteractive && (!callingTask.isMainProg() || callingTask.getForm() == null)))) {
|
138
|
+
if (this._isModal) {
|
139
|
+
AccessHelper.mgDataTable.startTasksIteration();
|
140
|
+
let task;
|
141
|
+
while ((task = AccessHelper.mgDataTable.getNextTask()) !== null) {
|
142
|
+
let dataViewWasRetrieved = task.DataViewWasRetrieved;
|
143
|
+
if (dataViewWasRetrieved) {
|
144
|
+
await task.RefreshDisplay();
|
145
|
+
}
|
146
|
+
}
|
147
|
+
}
|
148
|
+
await AccessHelper.eventsManager.EventsLoop(mgd);
|
149
|
+
if (isSubformModal) {
|
150
|
+
mgd.IsAborting = false;
|
151
|
+
mgd.IsModal = prevMgDataIsModal;
|
152
|
+
}
|
153
|
+
}
|
154
|
+
}
|
155
|
+
else
|
156
|
+
await AccessHelper.eventsManager.NonInteractiveEventsLoop(mgd, nonInteractiveTask);
|
157
|
+
if (AccessHelper.eventsManager.getPendingGuiEvent() != null && (isSubformModal || nonInteractiveTask != null)) {
|
158
|
+
let guiEvent = AccessHelper.eventsManager.getPendingGuiEvent();
|
159
|
+
if (guiEvent.getTask() != callingTask || this._callingTaskTag !== callingTask.getTaskTag()) {
|
160
|
+
callingTask = AccessHelper.mgDataTable.GetTaskByID(this._callingTaskTag);
|
161
|
+
if (callingTask.getIsDestinationCall()) {
|
162
|
+
let subformCtrl = callingTask.getForm().getSubFormCtrl();
|
163
|
+
await AccessHelper.eventsManager.performSubformClose(subformCtrl);
|
164
|
+
}
|
165
|
+
else {
|
166
|
+
let rtEvt = new RunTimeEvent(callingTask);
|
167
|
+
rtEvt.setInternal(InternalInterface.MG_ACT_CLOSE);
|
168
|
+
rtEvt.setCtrl(null);
|
169
|
+
rtEvt.setArgList(null);
|
170
|
+
AccessHelper.eventsManager.addToTail(rtEvt);
|
171
|
+
}
|
172
|
+
}
|
173
|
+
else {
|
174
|
+
AccessHelper.eventsManager.addToTail(guiEvent);
|
175
|
+
AccessHelper.eventsManager.setPendingGuiEvent(null);
|
176
|
+
}
|
177
|
+
}
|
178
|
+
}
|
179
|
+
HandleAttribute(attribute, value) {
|
180
|
+
switch (attribute) {
|
181
|
+
case ConstInterface.MG_ATTR_CALLINGTASK:
|
182
|
+
this._callingTaskTag = value;
|
183
|
+
break;
|
184
|
+
case ConstInterface.MG_ATTR_PATH_PARENT_TASK:
|
185
|
+
this._pathParentTaskTag = value;
|
186
|
+
break;
|
187
|
+
case ConstInterface.MG_ATTR_SUBFORM_CTRL:
|
188
|
+
this._subformCtrlName = value;
|
189
|
+
break;
|
190
|
+
case XMLConstants.MG_ATTR_DITIDX:
|
191
|
+
this._ditIdx = XmlParser.getInt(value);
|
192
|
+
break;
|
193
|
+
case ConstInterface.MG_ATTR_MODAL:
|
194
|
+
this._isModal = (value[0] === '1');
|
195
|
+
break;
|
196
|
+
case ConstInterface.MG_ATTR_TRANS_OWNER:
|
197
|
+
this._transOwner = value;
|
198
|
+
break;
|
199
|
+
case ConstInterface.MG_ATTR_NEWID:
|
200
|
+
this._newId = NString.TrimEnd(value);
|
201
|
+
break;
|
202
|
+
case ConstInterface.MG_ATTR_KEY:
|
203
|
+
this._key = value;
|
204
|
+
break;
|
205
|
+
case ConstInterface.MG_ATTR_ARGLIST:
|
206
|
+
this._varList = new ArgumentsList();
|
207
|
+
this._varList.fillList(value, AccessHelper.mgDataTable.GetTaskByID(this.TaskTag));
|
208
|
+
break;
|
209
|
+
case ConstInterface.MG_ATTR_OBJECT:
|
210
|
+
this.Obj = value;
|
211
|
+
break;
|
212
|
+
case ConstInterface.MG_ATTR_IS_ROUTE:
|
213
|
+
this._isRoute = (value[0] === '1');
|
214
|
+
break;
|
215
|
+
default:
|
216
|
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hcnNlci5nZXRJbnQodmFsdWUpO1xyXG4gICAgICAgIGJyZWFrO1xyXG4gICAgICBjYXNlIENvbnN0SW50ZXJmYWNlLk1HX0FUVFJfTU9EQUw6XHJcbiAgICAgICAgdGhpcy5faXNNb2RhbCA9ICh2YWx1ZVswXSA9PT0gJzEnKTtcclxuICAgICAgICBicmVhaztcclxuICAgICAgY2FzZSBDb25zdEludGVyZmFjZS5NR19BVFRSX1RSQU5TX09XTkVSOlxyXG4gICAgICAgIHRoaXMuX3RyYW5zT3duZXIgPSB2YWx1ZTtcclxuICAgICAgICBicmVhaztcclxuICAgICAgY2FzZSBDb25zdEludGVyZmFjZS5NR19BVFRSX05FV0lEOlxyXG4gICAgICAgIHRoaXMuX25ld0lkID0gTlN0cmluZy5UcmltRW5kKHZhbHVlKTtcclxuICAgICAgICBicmVhaztcclxuICAgICAgY2FzZSBDb25zdEludGVyZmFjZS5NR19BVFRSX0tFWTpcclxuICAgICAgICB0aGlzLl9rZXkgPSB2YWx1ZTtcclxuICAgICAgICBicmVhaztcclxuICAgICAgY2FzZSBDb25zdEludGVyZmFjZS5NR19BVFRSX0FSR0xJU1Q6XHJcbiAgICAgICAgdGhpcy5fdmFyTGlzdCA9IG5ldyBBcmd1bWVudHNMaXN0KCk7XHJcbiAgICAgICAgdGhpcy5fdmFyTGlzdC5maWxsTGlzdCh2YWx1ZSwgPFRhc2tCYXNlPkFjY2Vzc0hlbHBlci5tZ0RhdGFUYWJsZS5HZXRUYXNrQnlJRCh0aGlzLlRhc2tUYWcpKTtcclxuICAgICAgICBicmVhaztcclxuICAgICAgY2FzZSBDb25zdEludGVyZmFjZS5NR19BVFRSX09CSkVDVDpcclxuICAgICAgICB0aGlzLk9iaiA9IHZhbHVlO1xyXG4gICAgICAgIGJyZWFrO1xyXG4gICAgICBjYXNlIENvbnN0SW50ZXJmYWNlLk1HX0FUVFJfSVNfUk9VVEU6XHJcbiAgICAgICAgdGhpcy5faXNSb3V0ZSA9ICh2YWx1ZVswXSA9PT0gJzEnKTtcclxuICAgICAgICBicmVhaztcclxuICAgICAgZGVmYXVsdDpcclxuICAgICAgICBzdXBlci5IYW5kbGVBdHRyaWJ1dGUoYXR0cmlidXRlLCB2YWx1ZSk7XHJcbiAgICAgICAgYnJlYWs7XHJcbiAgICB9XHJcbiAgfVxyXG59XHJcbiJdfQ==
|
@@ -1,15 +1,15 @@
|
|
1
|
-
import { ClientTargetedCommandBase } from './ClientTargetedCommandBase';
|
2
|
-
import { DataViewCommandType } from '../ClientToServer/DataviewCommand';
|
3
|
-
import { CommandFactory } from '../ClientToServer/CommandFactory';
|
4
|
-
import { AccessHelper } from '../../AccessHelper';
|
5
|
-
export class ResetLocateCommand extends ClientTargetedCommandBase {
|
6
|
-
constructor() {
|
7
|
-
super();
|
8
|
-
}
|
9
|
-
async Execute(res) {
|
10
|
-
let task = AccessHelper.mgDataTable.GetTaskByID(this.TaskTag);
|
11
|
-
let command = CommandFactory.CreateDataViewCommand(this.TaskTag, DataViewCommandType.ResetUserLocate);
|
12
|
-
await task.DataviewManager.Execute(command);
|
13
|
-
}
|
14
|
-
}
|
1
|
+
import { ClientTargetedCommandBase } from './ClientTargetedCommandBase';
|
2
|
+
import { DataViewCommandType } from '../ClientToServer/DataviewCommand';
|
3
|
+
import { CommandFactory } from '../ClientToServer/CommandFactory';
|
4
|
+
import { AccessHelper } from '../../AccessHelper';
|
5
|
+
export class ResetLocateCommand extends ClientTargetedCommandBase {
|
6
|
+
constructor() {
|
7
|
+
super();
|
8
|
+
}
|
9
|
+
async Execute(res) {
|
10
|
+
let task = AccessHelper.mgDataTable.GetTaskByID(this.TaskTag);
|
11
|
+
let command = CommandFactory.CreateDataViewCommand(this.TaskTag, DataViewCommandType.ResetUserLocate);
|
12
|
+
await task.DataviewManager.Execute(command);
|
13
|
+
}
|
14
|
+
}
|
15
15
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUmVzZXRMb2NhdGVDb21tYW5kLmpz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WF0ZURhdGFWaWV3Q29tbWFuZCh0aGlzLlRhc2tUYWcsIERhdGFWaWV3Q29tbWFuZFR5cGUuUmVzZXRVc2VyTG9jYXRlKTtcclxuICAgIGF3YWl0IHRhc2suRGF0YXZpZXdNYW5hZ2VyLkV4ZWN1dGUoY29tbWFuZCk7XHJcbiAgfVxyXG59XHJcbiJdfQ==
|
@@ -1,15 +1,15 @@
|
|
1
|
-
import { ClientTargetedCommandBase } from './ClientTargetedCommandBase';
|
2
|
-
import { CommandFactory } from '../ClientToServer/CommandFactory';
|
3
|
-
import { DataViewCommandType } from '../ClientToServer/DataviewCommand';
|
4
|
-
import { AccessHelper } from '../../AccessHelper';
|
5
|
-
export class ResetRangeCommand extends ClientTargetedCommandBase {
|
6
|
-
constructor() {
|
7
|
-
super();
|
8
|
-
}
|
9
|
-
async Execute(res) {
|
10
|
-
let task = AccessHelper.mgDataTable.GetTaskByID(this.TaskTag);
|
11
|
-
let command = CommandFactory.CreateDataViewCommand(this.TaskTag, DataViewCommandType.ResetUserRange);
|
12
|
-
await task.DataviewManager.Execute(command);
|
13
|
-
}
|
14
|
-
}
|
1
|
+
import { ClientTargetedCommandBase } from './ClientTargetedCommandBase';
|
2
|
+
import { CommandFactory } from '../ClientToServer/CommandFactory';
|
3
|
+
import { DataViewCommandType } from '../ClientToServer/DataviewCommand';
|
4
|
+
import { AccessHelper } from '../../AccessHelper';
|
5
|
+
export class ResetRangeCommand extends ClientTargetedCommandBase {
|
6
|
+
constructor() {
|
7
|
+
super();
|
8
|
+
}
|
9
|
+
async Execute(res) {
|
10
|
+
let task = AccessHelper.mgDataTable.GetTaskByID(this.TaskTag);
|
11
|
+
let command = CommandFactory.CreateDataViewCommand(this.TaskTag, DataViewCommandType.ResetUserRange);
|
12
|
+
await task.DataviewManager.Execute(command);
|
13
|
+
}
|
14
|
+
}
|
15
15
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUmVzZXRSYW5nZUNvbW1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5kID0gQ29tbWFuZEZhY3RvcnkuQ3JlYXRlRGF0YVZpZXdDb21tYW5kKHRoaXMuVGFza1RhZywgRGF0YVZpZXdDb21tYW5kVHlwZS5SZXNldFVzZXJSYW5nZSk7XHJcbiAgICBhd2FpdCB0YXNrLkRhdGF2aWV3TWFuYWdlci5FeGVjdXRlKGNvbW1hbmQpO1xyXG4gIH1cclxufVxyXG4iXX0=
|
@@ -1,15 +1,15 @@
|
|
1
|
-
import { ClientTargetedCommandBase } from './ClientTargetedCommandBase';
|
2
|
-
import { CommandFactory } from '../ClientToServer/CommandFactory';
|
3
|
-
import { DataViewCommandType } from '../ClientToServer/DataviewCommand';
|
4
|
-
import { AccessHelper } from '../../AccessHelper';
|
5
|
-
export class ResetSortCommand extends ClientTargetedCommandBase {
|
6
|
-
constructor() {
|
7
|
-
super();
|
8
|
-
}
|
9
|
-
async Execute(res) {
|
10
|
-
let task = AccessHelper.mgDataTable.GetTaskByID(this.TaskTag);
|
11
|
-
let command = CommandFactory.CreateDataViewCommand(this.TaskTag, DataViewCommandType.ResetUserSort);
|
12
|
-
await task.DataviewManager.Execute(command);
|
13
|
-
}
|
14
|
-
}
|
1
|
+
import { ClientTargetedCommandBase } from './ClientTargetedCommandBase';
|
2
|
+
import { CommandFactory } from '../ClientToServer/CommandFactory';
|
3
|
+
import { DataViewCommandType } from '../ClientToServer/DataviewCommand';
|
4
|
+
import { AccessHelper } from '../../AccessHelper';
|
5
|
+
export class ResetSortCommand extends ClientTargetedCommandBase {
|
6
|
+
constructor() {
|
7
|
+
super();
|
8
|
+
}
|
9
|
+
async Execute(res) {
|
10
|
+
let task = AccessHelper.mgDataTable.GetTaskByID(this.TaskTag);
|
11
|
+
let command = CommandFactory.CreateDataViewCommand(this.TaskTag, DataViewCommandType.ResetUserSort);
|
12
|
+
await task.DataviewManager.Execute(command);
|
13
|
+
}
|
14
|
+
}
|
15
15
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjo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1,37 @@
|
|
1
|
+
import { ClientTargetedCommandBase } from "./ClientTargetedCommandBase";
|
2
|
+
import { StorageAttribute, XMLConstants, XmlParser } from "@magic-xpa/utils";
|
3
|
+
import { ConstInterface } from "../../ConstInterface";
|
4
|
+
export class ResultCommand extends ClientTargetedCommandBase {
|
5
|
+
_isNull = false;
|
6
|
+
_attr = StorageAttribute.NONE;
|
7
|
+
_val = null;
|
8
|
+
async Execute(res) {
|
9
|
+
if (this._isNull)
|
10
|
+
res.SetResultValue(null, StorageAttribute.NONE);
|
11
|
+
else {
|
12
|
+
if (this._val == null)
|
13
|
+
this._val = "";
|
14
|
+
res.SetResultValue(this._val, this._attr);
|
15
|
+
}
|
16
|
+
}
|
17
|
+
HandleAttribute(attribute, value) {
|
18
|
+
switch (attribute) {
|
19
|
+
case ConstInterface.MG_ATTR_NULL:
|
20
|
+
this._isNull = (XmlParser.getInt(value) === 1);
|
21
|
+
break;
|
22
|
+
case ConstInterface.MG_ATTR_PAR_ATTRS:
|
23
|
+
this._attr = value[0];
|
24
|
+
break;
|
25
|
+
case XMLConstants.MG_ATTR_VALUE:
|
26
|
+
this._val = XmlParser.unescape(value);
|
27
|
+
break;
|
28
|
+
default:
|
29
|
+
super.HandleAttribute(attribute, value);
|
30
|
+
break;
|
31
|
+
}
|
32
|
+
}
|
33
|
+
constructor() {
|
34
|
+
super();
|
35
|
+
}
|
36
|
+
}
|
37
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUmVzdWx0Q29tbWFuZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2VuZ2luZS9zcmMvY29tbWFuZHMvU2VydmVyVG9DbGllbnQvUmVzdWx0Q29tbWFuZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUMseUJBQXlCLEVBQUMsTUFBTSw2QkFBNk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ICAgYnJlYWs7XHJcblxyXG4gICAgICBjYXNlIFhNTENvbnN0YW50cy5NR19BVFRSX1ZBTFVFOlxyXG4gICAgICAgIHRoaXMuX3ZhbCA9IFhtbFBhcnNlci51bmVzY2FwZSh2YWx1ZSk7XHJcbiAgICAgICAgYnJlYWs7XHJcblxyXG4gICAgICBkZWZhdWx0OlxyXG4gICAgICAgIHN1cGVyLkhhbmRsZUF0dHJpYnV0ZShhdHRyaWJ1dGUsIHZhbHVlKTtcclxuICAgICAgICBicmVhaztcclxuICAgIH1cclxuICB9XHJcblxyXG4gIGNvbnN0cnVjdG9yKCkge1xyXG4gICAgc3VwZXIoKTtcclxuICB9XHJcbn1cclxuIl19
|
@@ -0,0 +1,83 @@
|
|
1
|
+
import { ClientTargetedCommandBase } from './ClientTargetedCommandBase';
|
2
|
+
import { NString, RefParam } from '@magic-xpa/mscorelib';
|
3
|
+
import { Styles } from '@magic-xpa/gui';
|
4
|
+
import { Logger, MsgInterface, StrUtil, XmlParser } from '@magic-xpa/utils';
|
5
|
+
import { ConstUtils } from '../../util/ConstUtils';
|
6
|
+
import { ConstInterface } from '../../ConstInterface';
|
7
|
+
import { LanguageData } from '../../env/LanguageData';
|
8
|
+
import { LastFocusedManager } from '../../rt/LastFocusedManager';
|
9
|
+
import { AccessHelper } from '../../AccessHelper';
|
10
|
+
import { GUIManager } from "../../GUIManager";
|
11
|
+
export class VerifyCommand extends ClientTargetedCommandBase {
|
12
|
+
_callingTaskTag = null;
|
13
|
+
_title = null;
|
14
|
+
_errLogAppend = false;
|
15
|
+
_text = null;
|
16
|
+
_display = '\0';
|
17
|
+
_mode = '\0';
|
18
|
+
constructor() {
|
19
|
+
super();
|
20
|
+
}
|
21
|
+
async Execute(res) {
|
22
|
+
let errForConsole = StrUtil.getConsoleErorString(this._text);
|
23
|
+
let task = (AccessHelper.mgDataTable.GetTaskByID(this.TaskTag) || AccessHelper.mgDataTable.GetTaskByID(this._callingTaskTag));
|
24
|
+
if (task === null)
|
25
|
+
task = LastFocusedManager.Instance.getLastFocusedTask();
|
26
|
+
let errLogAppend = this._errLogAppend;
|
27
|
+
if (errLogAppend)
|
28
|
+
Logger.Instance.WriteExceptionToLogWithMsg(errForConsole);
|
29
|
+
if (!NString.IsNullOrEmpty(this._text)) {
|
30
|
+
if (this._display === ConstInterface.DISPLAY_BOX) {
|
31
|
+
let style = new RefParam(0);
|
32
|
+
let errForMsgBox = StrUtil.getMsgBoxErorString(this._text);
|
33
|
+
let mlsTransText = LanguageData.Instance.translate(errForMsgBox);
|
34
|
+
let mlsTransTitle = new RefParam(NString.Empty);
|
35
|
+
this.PrepareMessageBoxForDisplay(task, mlsTransTitle, style);
|
36
|
+
let returnValue = await GUIManager.Instance.MessageBox(mlsTransTitle.value, mlsTransText, style.value);
|
37
|
+
await this.ProcessMessageBoxResponse(task, returnValue);
|
38
|
+
}
|
39
|
+
else if (this._display === ConstInterface.DISPLAY_STATUS && task != null) {
|
40
|
+
task.DisplayMessageToStatusBar(errForConsole);
|
41
|
+
}
|
42
|
+
}
|
43
|
+
}
|
44
|
+
PrepareMessageBoxForDisplay(task, mlsTransTitle, style) {
|
45
|
+
let options = LanguageData.Instance.getConstMessage(MsgInterface.BRKTAB_STOP_MODE_TITLE);
|
46
|
+
this._title = ConstUtils.getStringOfOption(options, "EW", this._mode);
|
47
|
+
mlsTransTitle.value = LanguageData.Instance.translate(this._title);
|
48
|
+
style.value = Styles.MSGBOX_BUTTON_OK |
|
49
|
+
((this._mode === 'E')
|
50
|
+
? Styles.MSGBOX_ICON_ERROR
|
51
|
+
: Styles.MSGBOX_ICON_WARNING);
|
52
|
+
}
|
53
|
+
ProcessMessageBoxResponse(task, returnValue) {
|
54
|
+
}
|
55
|
+
HandleAttribute(attribute, value) {
|
56
|
+
switch (attribute) {
|
57
|
+
case ConstInterface.MG_ATTR_TITLE:
|
58
|
+
this._title = value;
|
59
|
+
break;
|
60
|
+
case ConstInterface.MG_ATTR_CALLINGTASK:
|
61
|
+
this._callingTaskTag = value;
|
62
|
+
break;
|
63
|
+
case ConstInterface.MG_ATTR_ERR_LOG_APPEND:
|
64
|
+
this._errLogAppend = XmlParser.getBoolean(value);
|
65
|
+
break;
|
66
|
+
case ConstInterface.MG_ATTR_TEXT:
|
67
|
+
this._text = XmlParser.unescape(value);
|
68
|
+
break;
|
69
|
+
case ConstInterface.MG_ATTR_DISPLAY:
|
70
|
+
this._display = value[0];
|
71
|
+
break;
|
72
|
+
case ConstInterface.MG_ATTR_MODE:
|
73
|
+
this._mode = value[0];
|
74
|
+
break;
|
75
|
+
case ConstInterface.MG_ATTR_ACK:
|
76
|
+
break;
|
77
|
+
default:
|
78
|
+
super.HandleAttribute(attribute, value);
|
79
|
+
break;
|
80
|
+
}
|
81
|
+
}
|
82
|
+
}
|
83
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiVmVyaWZ5Q29tbWFuZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2VuZ2luZS9zcmMvY29tbWFuZHMvU2VydmVyVG9DbGllbnQvVmVyaWZ5Q29tbWFuZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUseUJBQXlCLEVBQUUsTUFBTSw2QkFBNkIsQ0FBQztBQUV4RSxPQUFPLEVBQUUsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLHNCQUFzQixDQUFDO0FBRXpELE9BQU8sRUFBRSxNQUFNLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUN4QyxPQUFPLEVBQUUsTUFBTSxFQUFFLFlBQVksRUFBRSxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sa0JBQWtCLENBQUM7QUFDNUUsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLHVCQUF1QixDQUFDO0FBQ25ELE9BQU8sRUFBRSxjQUFjLEVBQU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