@magic-xpa/engine 4.1100.0-dev4110.25 → 4.1100.0-dev4110.252
Sign up to get free protection for your applications and to get access to all the features.
- 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 +416 -0
- package/esm2022/src/CommandsProcessorBase.mjs +56 -0
- package/esm2022/src/CommandsProcessorManager.mjs +26 -0
- 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/esm2022/src/commands/ClientToServer/ClientOriginatedCommandSerializer.mjs +60 -0
- 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/esm2022/src/commands/ServerToClient/AddRangeCommand.mjs +62 -0
- package/esm2022/src/commands/ServerToClient/AddSortCommand.mjs +33 -0
- 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/esm2022/src/commands/ServerToClient/XMLBasedCommandBuilder.mjs +132 -0
- 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/esm2022/src/data/Key.mjs +88 -0
- 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/esm2022/src/data/TaskTransactionManager.mjs +107 -0
- package/esm2022/src/data/XMLBasedDcValuesBuilder.mjs +74 -0
- 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/esm2022/src/env/MirrorString.mjs +65 -0
- 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/esm2022/src/exp/GlobalParamsTable.mjs +85 -0
- 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/esm2022/src/http/client/HttpClientBase.mjs +132 -0
- 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/esm2022/src/remote/AddUserLocateRemoteDataViewCommand.mjs +18 -0
- package/esm2022/src/remote/AddUserRangeRemoteDataViewCommand.mjs +18 -0
- package/esm2022/src/remote/AddUserSortRemoteDataViewCommand.mjs +18 -0
- package/esm2022/src/remote/RemoteCommandsProcessor.mjs +883 -0
- package/esm2022/src/remote/RemoteControlItemsRefreshCommand.mjs +25 -0
- package/esm2022/src/remote/RemoteDataViewCommandBase.mjs +24 -0
- package/esm2022/src/remote/RemoteDataViewCommandFactory.mjs +61 -0
- 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/esm2022/src/remote/ResetUserLocateRemoteDataviewCommand.mjs +17 -0
- package/{esm2020 → esm2022}/src/remote/ResetUserRangeRemoteDataviewCommand.mjs +12 -12
- package/esm2022/src/remote/ResetUserSortRemoteDataviewCommand.mjs +16 -0
- package/esm2022/src/remote/ServerError.mjs +40 -0
- package/esm2022/src/remote/SetTransactionStateRemoteDataViewCommand.mjs +20 -0
- 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/{esm2020 → esm2022}/src/rt/DataviewHeaderBase.mjs +98 -96
- package/{esm2020 → esm2022}/src/rt/DataviewHeaderFactory.mjs +6 -6
- package/esm2022/src/rt/DataviewHeaders.mjs +53 -0
- package/esm2022/src/rt/DataviewHeadersSaxHandler.mjs +38 -0
- package/esm2022/src/rt/ExecutionStack.mjs +94 -0
- package/{esm2020 → esm2022}/src/rt/ExecutionStackEntry.mjs +17 -17
- package/esm2022/src/rt/HandlersTable.mjs +96 -0
- 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/esm2022/src/rt/RecomputeTable.mjs +63 -0
- package/esm2022/src/rt/RemoteDataviewHeader.mjs +108 -0
- 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/esm2022/src/tasks/RemoteTaskService.mjs +45 -0
- package/esm2022/src/tasks/Task.mjs +2499 -0
- package/esm2022/src/tasks/TaskBase.mjs +83 -0
- package/esm2022/src/tasks/TaskServiceBase.mjs +25 -0
- package/esm2022/src/tasks/TasksTable.mjs +80 -0
- package/esm2022/src/tasks/sort/Sort.mjs +5 -0
- package/esm2022/src/tasks/sort/SortCollection.mjs +67 -0
- package/esm2022/src/util/ConstUtils.mjs +14 -0
- package/esm2022/src/util/FlowMonitorQueue.mjs +451 -0
- package/esm2022/src/util/HeapSort.mjs +70 -0
- 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/esm2022/src/util/cookie.service.mjs +92 -0
- package/{fesm2020 → fesm2022}/magic-xpa-engine.mjs +29883 -29693
- 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/CommandsProcessorManager.mjs +0 -26
- 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/ClientOriginatedCommandSerializer.mjs +0 -60
- 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/AddRangeCommand.mjs +0 -62
- package/esm2020/src/commands/ServerToClient/AddSortCommand.mjs +0 -33
- 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/commands/ServerToClient/XMLBasedCommandBuilder.mjs +0 -132
- 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/Key.mjs +0 -88
- package/esm2020/src/data/Record.mjs +0 -846
- package/esm2020/src/data/RecordsTable.mjs +0 -267
- package/esm2020/src/data/TaskTransactionManager.mjs +0 -103
- package/esm2020/src/data/XMLBasedDcValuesBuilder.mjs +0 -74
- 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/env/MirrorString.mjs +0 -65
- 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 -4212
- package/esm2020/src/exp/ExpressionLocalJpn.mjs +0 -314
- package/esm2020/src/exp/GlobalParamsTable.mjs +0 -85
- 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/HttpClientBase.mjs +0 -132
- 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/AddUserLocateRemoteDataViewCommand.mjs +0 -18
- package/esm2020/src/remote/AddUserRangeRemoteDataViewCommand.mjs +0 -18
- package/esm2020/src/remote/AddUserSortRemoteDataViewCommand.mjs +0 -18
- package/esm2020/src/remote/RemoteCommandsProcessor.mjs +0 -880
- package/esm2020/src/remote/RemoteControlItemsRefreshCommand.mjs +0 -25
- package/esm2020/src/remote/RemoteDataViewCommandBase.mjs +0 -24
- package/esm2020/src/remote/RemoteDataViewCommandFactory.mjs +0 -61
- package/esm2020/src/remote/ResetUserLocateRemoteDataviewCommand.mjs +0 -17
- package/esm2020/src/remote/ResetUserSortRemoteDataviewCommand.mjs +0 -16
- package/esm2020/src/remote/ServerError.mjs +0 -40
- package/esm2020/src/remote/SetTransactionStateRemoteDataViewCommand.mjs +0 -20
- 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/DataviewHeaders.mjs +0 -53
- package/esm2020/src/rt/DataviewHeadersSaxHandler.mjs +0 -38
- package/esm2020/src/rt/ExecutionStack.mjs +0 -94
- package/esm2020/src/rt/HandlersTable.mjs +0 -96
- 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/RecomputeTable.mjs +0 -63
- package/esm2020/src/rt/RemoteDataviewHeader.mjs +0 -108
- 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/RemoteTaskService.mjs +0 -45
- package/esm2020/src/tasks/Task.mjs +0 -2495
- package/esm2020/src/tasks/TaskBase.mjs +0 -87
- package/esm2020/src/tasks/TaskServiceBase.mjs +0 -25
- package/esm2020/src/tasks/TasksTable.mjs +0 -80
- package/esm2020/src/tasks/sort/Sort.mjs +0 -7
- package/esm2020/src/tasks/sort/SortCollection.mjs +0 -67
- package/esm2020/src/util/ConstUtils.mjs +0 -14
- package/esm2020/src/util/FlowMonitorQueue.mjs +0 -453
- package/esm2020/src/util/HeapSort.mjs +0 -70
- 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/esm2020/src/util/cookie.service.mjs +0 -92
- package/fesm2015/magic-xpa-engine.mjs +0 -30835
- package/fesm2015/magic-xpa-engine.mjs.map +0 -1
- package/fesm2020/magic-xpa-engine.mjs.map +0 -1
@@ -1,62 +0,0 @@
|
|
1
|
-
import { XmlParser } from "@magic-xpa/utils";
|
2
|
-
import { RefParam } from "@magic-xpa/mscorelib";
|
3
|
-
import { RecordUtils } from "@magic-xpa/gui";
|
4
|
-
import { ClientTargetedCommandBase } from "./ClientTargetedCommandBase";
|
5
|
-
import { CommandFactory } from "../ClientToServer/CommandFactory";
|
6
|
-
import { UserRange } from "../../tasks/TaskBase";
|
7
|
-
import { ConstInterface } from "../../ConstInterface";
|
8
|
-
import { AccessHelper } from "../../AccessHelper";
|
9
|
-
export class AddRangeCommand extends ClientTargetedCommandBase {
|
10
|
-
constructor() {
|
11
|
-
super();
|
12
|
-
this.UserRange = null;
|
13
|
-
}
|
14
|
-
get ShouldExecute() {
|
15
|
-
let task = AccessHelper.mgDataTable.GetTaskByID(this.TaskTag);
|
16
|
-
return task.isStarted();
|
17
|
-
}
|
18
|
-
async Execute(res) {
|
19
|
-
let task = AccessHelper.mgDataTable.GetTaskByID(this.TaskTag);
|
20
|
-
let fieldDef = task.DataView.getField(this.UserRange.veeIdx - 1);
|
21
|
-
let parsedLen = new RefParam(0);
|
22
|
-
let command = CommandFactory.CreateAddUserRangeDataviewCommand(this.TaskTag, this.UserRange);
|
23
|
-
if (!this.UserRange.nullMin)
|
24
|
-
command.Range.min = RecordUtils.deSerializeItemVal(this.UserRange.min, fieldDef.getType(), fieldDef.getSize(), true, fieldDef.getType(), parsedLen);
|
25
|
-
if (!this.UserRange.nullMax)
|
26
|
-
command.Range.max = RecordUtils.deSerializeItemVal(this.UserRange.max, fieldDef.getType(), fieldDef.getSize(), true, fieldDef.getType(), parsedLen);
|
27
|
-
await task.DataviewManager.Execute(command);
|
28
|
-
}
|
29
|
-
HandleAttribute(attribute, value) {
|
30
|
-
switch (attribute) {
|
31
|
-
case ConstInterface.MG_ATTR_FIELD_INDEX:
|
32
|
-
if (this.UserRange == null) {
|
33
|
-
this.UserRange = new UserRange();
|
34
|
-
this.UserRange.nullMin = this.UserRange.nullMax = this.UserRange.discardMin = this.UserRange.discardMax = true;
|
35
|
-
}
|
36
|
-
this.UserRange.veeIdx = XmlParser.getInt(value);
|
37
|
-
break;
|
38
|
-
case ConstInterface.MG_ATTR_MIN_VALUE:
|
39
|
-
this.UserRange.min = value;
|
40
|
-
this.UserRange.nullMin = false;
|
41
|
-
this.UserRange.discardMin = false;
|
42
|
-
break;
|
43
|
-
case ConstInterface.MG_ATTR_NULL_MIN_VALUE:
|
44
|
-
this.UserRange.nullMin = true;
|
45
|
-
this.UserRange.discardMin = false;
|
46
|
-
break;
|
47
|
-
case ConstInterface.MG_ATTR_NULL_MAX_VALUE:
|
48
|
-
this.UserRange.nullMax = true;
|
49
|
-
this.UserRange.discardMax = false;
|
50
|
-
break;
|
51
|
-
case ConstInterface.MG_ATTR_MAX_VALUE:
|
52
|
-
this.UserRange.max = value;
|
53
|
-
this.UserRange.discardMax = false;
|
54
|
-
this.UserRange.nullMax = false;
|
55
|
-
break;
|
56
|
-
default:
|
57
|
-
super.HandleAttribute(attribute, value);
|
58
|
-
break;
|
59
|
-
}
|
60
|
-
}
|
61
|
-
}
|
62
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQWRkUmFuZ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U7XHJcbiAgICAgICAgYnJlYWs7XHJcblxyXG4gICAgICBjYXNlIENvbnN0SW50ZXJmYWNlLk1HX0FUVFJfTlVMTF9NSU5fVkFMVUU6XHJcbiAgICAgICAgdGhpcy5Vc2VyUmFuZ2UubnVsbE1pbiA9IHRydWU7XHJcbiAgICAgICAgdGhpcy5Vc2VyUmFuZ2UuZGlzY2FyZE1pbiA9IGZhbHNlO1xyXG4gICAgICAgIGJyZWFrO1xyXG5cclxuICAgICAgY2FzZSBDb25zdEludGVyZmFjZS5NR19BVFRSX05VTExfTUFYX1ZBTFVFOlxyXG4gICAgICAgIHRoaXMuVXNlclJhbmdlLm51bGxNYXggPSB0cnVlO1xyXG4gICAgICAgIHRoaXMuVXNlclJhbmdlLmRpc2NhcmRNYXggPSBmYWxzZTtcclxuICAgICAgICBicmVhaztcclxuXHJcbiAgICAgIGNhc2UgQ29uc3RJbnRlcmZhY2UuTUdfQVRUUl9NQVhfVkFMVUU6XHJcbiAgICAgICAgdGhpcy5Vc2VyUmFuZ2UubWF4ID0gdmFsdWU7XHJcbiAgICAgICAgdGhpcy5Vc2VyUmFuZ2UuZGlzY2FyZE1heCA9IGZhbHNlO1xyXG4gICAgICAgIHRoaXMuVXNlclJhbmdlLm51bGxNYXggPSBmYWxzZTtcclxuICAgICAgICBicmVhaztcclxuXHJcbiAgICAgIGRlZmF1bHQ6XHJcbiAgICAgICAgc3VwZXIuSGFuZGxlQXR0cmlidXRlKGF0dHJpYnV0ZSwgdmFsdWUpO1xyXG4gICAgICAgIGJyZWFrO1xyXG4gICAgfVxyXG4gIH1cclxufVxyXG4iXX0=
|
@@ -1,33 +0,0 @@
|
|
1
|
-
import { ClientTargetedCommandBase } from "./ClientTargetedCommandBase";
|
2
|
-
import { Sort } from "../../tasks/sort/Sort";
|
3
|
-
import { CommandFactory } from "../ClientToServer/CommandFactory";
|
4
|
-
import { XmlParser } from "@magic-xpa/utils";
|
5
|
-
import { ConstInterface } from "../../ConstInterface";
|
6
|
-
import { AccessHelper } from "../../AccessHelper";
|
7
|
-
export class AddSortCommand extends ClientTargetedCommandBase {
|
8
|
-
constructor() {
|
9
|
-
super();
|
10
|
-
this.UserSort = null;
|
11
|
-
}
|
12
|
-
async Execute(res) {
|
13
|
-
let task = AccessHelper.mgDataTable.GetTaskByID(this.TaskTag);
|
14
|
-
let command = CommandFactory.CreateAddUserSortDataviewCommand(this.TaskTag, this.UserSort);
|
15
|
-
await task.DataviewManager.Execute(command);
|
16
|
-
}
|
17
|
-
HandleAttribute(attribute, value) {
|
18
|
-
switch (attribute) {
|
19
|
-
case ConstInterface.MG_ATTR_FIELD_INDEX:
|
20
|
-
if (this.UserSort == null)
|
21
|
-
this.UserSort = new Sort();
|
22
|
-
this.UserSort.fldIdx = XmlParser.getInt(value);
|
23
|
-
break;
|
24
|
-
case ConstInterface.MG_ATTR_DIR:
|
25
|
-
this.UserSort.dir = XmlParser.getInt(value) === 1 ? true : false;
|
26
|
-
break;
|
27
|
-
default:
|
28
|
-
super.HandleAttribute(attribute, value);
|
29
|
-
break;
|
30
|
-
}
|
31
|
-
}
|
32
|
-
}
|
33
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQWRkU29ydENvbW1hbmQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9lbmdpbmUvc3JjL2NvbW1hbmRzL1NlcnZlclRvQ2xpZW50L0FkZFNvcnRDb21tYW5kLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyx5QkFBeUIsRUFBQyxNQUFNLDZCQUE2QixDQUFDO0FBQ3RFLE9BQU8sRUFBQyxJQUFJLEVBQUMsTUFBTSx1QkFBdUIsQ0FBQztBQUkzQyxPQUFPLEVBQUMsY0FBYyxFQUFDLE1BQU0sa0NBQWtDLENBQUM7QUFDaEUsT0FBTyxFQUFDLFNBQVMs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1dGUoYXR0cmlidXRlOiBzdHJpbmcsIHZhbHVlOiBzdHJpbmcpOiB2b2lkIHtcclxuICAgIHN3aXRjaCAoYXR0cmlidXRlKSB7XHJcbiAgICAgIGNhc2UgQ29uc3RJbnRlcmZhY2UuTUdfQVRUUl9GSUVMRF9JTkRFWDpcclxuICAgICAgICBpZiAodGhpcy5Vc2VyU29ydCA9PSBudWxsKVxyXG4gICAgICAgICAgdGhpcy5Vc2VyU29ydCA9IG5ldyBTb3J0KCk7XHJcbiAgICAgICAgdGhpcy5Vc2VyU29ydC5mbGRJZHggPSBYbWxQYXJzZXIuZ2V0SW50KHZhbHVlKTtcclxuICAgICAgICBicmVhaztcclxuICAgICAgY2FzZSBDb25zdEludGVyZmFjZS5NR19BVFRSX0RJUjpcclxuICAgICAgICB0aGlzLlVzZXJTb3J0LmRpciA9IFhtbFBhcnNlci5nZXRJbnQodmFsdWUpID09PSAxID8gdHJ1ZSA6IGZhbHNlO1xyXG4gICAgICAgIGJyZWFrO1xyXG4gICAgICBkZWZhdWx0OlxyXG4gICAgICAgIHN1cGVyLkhhbmRsZUF0dHJpYnV0ZShhdHRyaWJ1dGUsIHZhbHVlKTtcclxuICAgICAgICBicmVhaztcclxuICAgIH1cclxuICB9XHJcbn1cclxuIl19
|
@@ -1,25 +0,0 @@
|
|
1
|
-
import { ClientTargetedCommandBase } from "./ClientTargetedCommandBase";
|
2
|
-
import { Debug } from "@magic-xpa/mscorelib";
|
3
|
-
import { AccessHelper } from "../../AccessHelper";
|
4
|
-
export class ClientRefreshCommand extends ClientTargetedCommandBase {
|
5
|
-
constructor() {
|
6
|
-
super();
|
7
|
-
}
|
8
|
-
async Execute(res) {
|
9
|
-
let task = AccessHelper.mgDataTable.GetTaskByID(this.TaskTag);
|
10
|
-
Debug.Assert(task.IsSubForm);
|
11
|
-
if (ClientRefreshCommand.ClientIsInRollbackCommand)
|
12
|
-
return;
|
13
|
-
if (task.AfterFirstRecordPrefix && !task.InEndTask) {
|
14
|
-
if ((task.DataView.getCurrRec()).InRecompute)
|
15
|
-
task.ExecuteClientSubformRefresh = true;
|
16
|
-
else {
|
17
|
-
task.PerformParentRecordPrefix = false;
|
18
|
-
await task.getParent().SubformRefresh(task, true);
|
19
|
-
task.PerformParentRecordPrefix = true;
|
20
|
-
}
|
21
|
-
}
|
22
|
-
}
|
23
|
-
}
|
24
|
-
ClientRefreshCommand.ClientIsInRollbackCommand = false;
|
25
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ2xpZW50UmVmcmVzaENvbW1hbmQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9lbmdpbmUvc3JjL2NvbW1hbmRzL1NlcnZlclRvQ2xpZW50L0NsaWVudFJlZnJlc2hDb21tYW5kLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyx5QkFBeUIsRUFBQyxNQUFNLDZCQUE2QixDQUFDO0FBR3RFLE9BQU8sRUFBQyxLQUFLLEVBQUMsTUFBTSxzQkFBc0IsQ0FBQztBQUUzQyxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0sb0JBQW9CLENBQUM7QUFFbEQsTUFBTSxPQUFPLG9CQUFxQixTQUFRLHlCQUF5QjtJQUdqRTtRQUNFLEtBQUssRUFBRSxDQUFDO0lBQ1YsQ0FBQztJQU1ELEtBQUssQ0FBQyxPQUFPLENBQUMsR0FBaUI7UUFFN0IsSUFBSSxJQUFJLEdBQWUsWUFBWSxDQUFDLFdBQVcsQ0FBQyxXQUFXLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQyxDQUFDO1FBQzFFLEtBQUssQ0FBQyxNQUFNLENBQUMsSUFBSSxDQUFDLFNBQVMsQ0FBQyxDQUFDO1FBTTdCLElBQUksb0JBQW9CLENBQUMseUJBQXlCO1lBQ2hELE9BQU87UUFFVCxJQUF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UUNSICMyODQ3ODkuIFdoZW4gdGhlIHN1YmZvcm0gZXhlY3V0ZSBpdCdzIHJlY29tcHV0ZSwgd2UgZG8gbm90IG5lZWRlZCB0byBleGVjdXRlIGl0J3MgdmlldyByZWZyZXNoLFxyXG4gICAgICAvLyB3ZSBuZWVkIGV4ZWN1dGUgb25seSBpdCdzIHN1YmZvcm1zIHJlZnJlc2guIEl0IHdpbGwgYmUgZG9uZSBpbiByZWNvbXB1dGUuXHJcbiAgICAgIGlmICgoKDxEYXRhVmlldz50YXNrLkRhdGFWaWV3KS5nZXRDdXJyUmVjKCkpLkluUmVjb21wdXRlKVxyXG4gICAgICAgIHRhc2suRXhlY3V0ZUNsaWVudFN1YmZvcm1SZWZyZXNoID0gdHJ1ZTtcclxuICAgICAgZWxzZSB7XHJcbiAgICAgICAgLy8gRG8gbm90IGV4ZWN1dGUgUlAgJiBSUyBvZiB0aGUgcGFyZW50LCBiZWNhdXNlIGl0IHdhcyBkb25lIGFscmVhZHkuXHJcbiAgICAgICAgdGFzay5QZXJmb3JtUGFyZW50UmVjb3JkUHJlZml4ID0gZmFsc2U7XHJcbiAgICAgICAgYXdhaXQgdGFzay5nZXRQYXJlbnQoKS5TdWJmb3JtUmVmcmVzaCh0YXNrLCB0cnVlKTtcclxuICAgICAgICB0YXNrLlBlcmZvcm1QYXJlbnRSZWNvcmRQcmVmaXggPSB0cnVlO1xyXG4gICAgICB9XHJcbiAgICB9XHJcbiAgfVxyXG59XHJcbiJdfQ==
|
@@ -1,27 +0,0 @@
|
|
1
|
-
import { IClientTargetedCommand } from "../IClientTargetedCommand";
|
2
|
-
import { XMLConstants } from "@magic-xpa/utils";
|
3
|
-
export class ClientTargetedCommandBase extends IClientTargetedCommand {
|
4
|
-
constructor() {
|
5
|
-
super(...arguments);
|
6
|
-
this.Frame = 0;
|
7
|
-
this.TaskTag = null;
|
8
|
-
this.Obj = null;
|
9
|
-
}
|
10
|
-
get IsBlocking() {
|
11
|
-
return false;
|
12
|
-
}
|
13
|
-
get ShouldExecute() {
|
14
|
-
return true;
|
15
|
-
}
|
16
|
-
async Execute(res) {
|
17
|
-
return Promise.resolve();
|
18
|
-
}
|
19
|
-
HandleAttribute(attribute, value) {
|
20
|
-
switch (attribute) {
|
21
|
-
case XMLConstants.MG_ATTR_TASKID:
|
22
|
-
this.TaskTag = value;
|
23
|
-
break;
|
24
|
-
}
|
25
|
-
}
|
26
|
-
}
|
27
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ2xpZW50VGFyZ2V0ZWRDb21tYW5kQmFzZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2VuZ2luZS9zcmMvY29tbWFuZHMvU2VydmVyVG9DbGllbnQvQ2xpZW50VGFyZ2V0ZWRDb21tYW5kQmFzZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUMsc0JBQXNCLEVBQUMsTUFBTSwyQkFBMkIsQ0FBQztBQUdqRSxPQUFPLEVBQUMsWUFBWSxFQUFDLE1BQU0sa0JBQWtCLENBQUM7QUFPOUMsTUFBTSxPQUFnQix5QkFBMEIsU0FBUSxzQkFBc0I7SUFBOUU7O1FBTUUsVUFBSyxHQUFXLENBQUMsQ0FBQztRQUVsQixZQUFPLEdBQVcsSUFBSSxDQUFDO1FBRXZCLFFBQUcsR0FBVyxJQUFJLENBQUM7SUFpQnJCLENBQUM7SUF6QkMsSUFBSSxVQUFVO1FBQ1osT0FBTyxLQUFLLENBQUM7SUFDZixDQUFDO0lBUUQsSUFBSSxhQUFhO1FBQ2YsT0FBTyxJQUFJLENBQUM7SUFDZCxDQUFDO0lBRUQsS0FBSyxDQUFDLE9BQU8sQ0FBQyxHQUFpQjtRQUM3QixPQUFPLE9BQU8sQ0FBQyxPQUFPLEVBQUUsQ0FBQztJQUMzQixDQUFDO0lBRUQsZUF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c2tUYWc6IHN0cmluZyA9IG51bGw7XHJcblxyXG4gIE9iajogc3RyaW5nID0gbnVsbDtcclxuXHJcbiAgZ2V0IFNob3VsZEV4ZWN1dGUoKTogYm9vbGVhbiB7XHJcbiAgICByZXR1cm4gdHJ1ZTtcclxuICB9XHJcblxyXG4gIGFzeW5jIEV4ZWN1dGUocmVzOiBJUmVzdWx0VmFsdWUpOiBQcm9taXNlPHZvaWQ+IHtcclxuICAgIHJldHVybiBQcm9taXNlLnJlc29sdmUoKTtcclxuICB9XHJcblxyXG4gIEhhbmRsZUF0dHJpYnV0ZShhdHRyaWJ1dGU6IHN0cmluZywgdmFsdWU6IHN0cmluZyk6IHZvaWQge1xyXG4gICAgc3dpdGNoIChhdHRyaWJ1dGUpIHtcclxuICAgICAgY2FzZSBYTUxDb25zdGFudHMuTUdfQVRUUl9UQVNLSUQ6XHJcbiAgICAgICAgdGhpcy5UYXNrVGFnID0gdmFsdWU7XHJcbiAgICAgICAgYnJlYWs7XHJcbiAgICB9XHJcbiAgfVxyXG59XHJcbiJdfQ==
|
@@ -1,45 +0,0 @@
|
|
1
|
-
import { VerifyCommand } from "./VerifyCommand";
|
2
|
-
import { Operation } from "../../rt/Operation";
|
3
|
-
import { Task } from "../../tasks/Task";
|
4
|
-
import { ConstInterface } from "../../ConstInterface";
|
5
|
-
import { LanguageData } from "../../env/LanguageData";
|
6
|
-
export class EnhancedVerifyCommand extends VerifyCommand {
|
7
|
-
async ProcessMessageBoxResponse(task, returnValue) {
|
8
|
-
if (task !== null)
|
9
|
-
await Operation.setoperVerifyReturnValue(returnValue, this._returnVal);
|
10
|
-
}
|
11
|
-
PrepareMessageBoxForDisplay(task, mlsTransTitle, style) {
|
12
|
-
mlsTransTitle.value = LanguageData.Instance.translate(this._title);
|
13
|
-
style.value = Operation.getButtons(this._buttonsID);
|
14
|
-
style.value |= Operation.getImage(this._image);
|
15
|
-
if (task !== null) {
|
16
|
-
if (Task.isMainProgramField(this._returnValStr)) {
|
17
|
-
this._returnVal = Operation.InitField(this._returnValStr, task);
|
18
|
-
}
|
19
|
-
}
|
20
|
-
}
|
21
|
-
HandleAttribute(attribute, value) {
|
22
|
-
switch (attribute) {
|
23
|
-
case ConstInterface.MG_ATTR_IMAGE:
|
24
|
-
this._image = value[0];
|
25
|
-
break;
|
26
|
-
case ConstInterface.MG_ATTR_BUTTONS:
|
27
|
-
this._buttonsID = value[0];
|
28
|
-
break;
|
29
|
-
case ConstInterface.MG_ATTR_RETURN_VAL:
|
30
|
-
this._returnValStr = value;
|
31
|
-
break;
|
32
|
-
default:
|
33
|
-
super.HandleAttribute(attribute, value);
|
34
|
-
break;
|
35
|
-
}
|
36
|
-
}
|
37
|
-
constructor() {
|
38
|
-
super();
|
39
|
-
this._buttonsID = '\0';
|
40
|
-
this._image = '\0';
|
41
|
-
this._returnValStr = null;
|
42
|
-
this._returnVal = null;
|
43
|
-
}
|
44
|
-
}
|
45
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRW5oYW5jZWRWZXJpZnlDb21tYW5kLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZW5naW5lL3NyYy9jb21tYW5kcy9TZXJ2ZXJUb0NsaWVudC9FbmhhbmNlZFZlcmlmeUNvbW1hbmQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxFQUFDLGFBQWEsRUFBQyxNQUFNLGlCQUFpQixDQUFDO0FBQzlDLE9BQU8sRUFBQyxTQUFTLEVBQUMsTUFBTSxvQkFBb0IsQ0FBQztBQUM3QyxPQUFPLEVBQUMsSUFBSSxFQUFDLE1BQU0sa0JBQWtCLENBQUM7QUFDdEMsT0FBTyxFQUFDLGNBQWMsRUFBQyxNQUFNLHNCQUFzQixDQUFDO0FBRXBELE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSx3QkFBd0IsQ0F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BlcigpO1xyXG4gIH1cclxufVxyXG4iXX0=
|
@@ -1,221 +0,0 @@
|
|
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
|
-
constructor() {
|
17
|
-
super();
|
18
|
-
this._callingTaskTag = null;
|
19
|
-
this._pathParentTaskTag = null;
|
20
|
-
this._subformCtrlName = null;
|
21
|
-
this._ditIdx = Int32.MinValue;
|
22
|
-
this._isModal = true;
|
23
|
-
this._transOwner = null;
|
24
|
-
this._newId = null;
|
25
|
-
this._forceModal = false;
|
26
|
-
this._key = null;
|
27
|
-
this._varList = null;
|
28
|
-
this._isRoute = false;
|
29
|
-
this.NewTaskXML = null;
|
30
|
-
}
|
31
|
-
get IsBlocking() {
|
32
|
-
return this._isModal && this._subformCtrlName === null;
|
33
|
-
}
|
34
|
-
async Execute(res) {
|
35
|
-
let mgd = null;
|
36
|
-
let destinationSubformSucceeded = false;
|
37
|
-
let refreshWhenHidden = true;
|
38
|
-
let mgdID = 0;
|
39
|
-
let subformCtrl = null;
|
40
|
-
let oldTimers = new List(), newTimers = new List();
|
41
|
-
let moveToFirstControl = true;
|
42
|
-
let guiParentTask;
|
43
|
-
let guiParentMgData = null;
|
44
|
-
let callingTask = (this._callingTaskTag != null ? AccessHelper.mgDataTable.GetTaskByID(this._callingTaskTag) : null);
|
45
|
-
let pathParentTask = (this._pathParentTaskTag != null ? AccessHelper.mgDataTable.GetTaskByID(this._pathParentTaskTag) : null);
|
46
|
-
guiParentTask = callingTask = AccessHelper.mgDataTable.GetTaskByID(this._callingTaskTag);
|
47
|
-
if ((!NString.IsNullOrEmpty(this._subformCtrlName)) || (this._ditIdx !== Int32.MinValue) || this._isRoute) {
|
48
|
-
if (this._isRoute && NString.IsNullOrEmpty(this._subformCtrlName.trim())) {
|
49
|
-
subformCtrl = callingTask.getForm().DefaultRouterOutlet;
|
50
|
-
}
|
51
|
-
else {
|
52
|
-
if (!callingTask.IsInteractive) {
|
53
|
-
for (let parentTask = callingTask; parentTask.getForm() != null; parentTask = parentTask.getParent()) {
|
54
|
-
subformCtrl = parentTask.getForm().getCtrlByName(this._subformCtrlName, MgControlType.CTRL_TYPE_SUBFORM);
|
55
|
-
if (subformCtrl != null) {
|
56
|
-
callingTask = guiParentTask = parentTask;
|
57
|
-
break;
|
58
|
-
}
|
59
|
-
}
|
60
|
-
}
|
61
|
-
else
|
62
|
-
subformCtrl = (this._ditIdx !== Int32.MinValue ? callingTask.getForm().getCtrl(this._ditIdx) : callingTask.getForm().getSubFormCtrlByName(this._subformCtrlName));
|
63
|
-
}
|
64
|
-
}
|
65
|
-
if (callingTask != null)
|
66
|
-
mgd = callingTask.getMGData();
|
67
|
-
if (subformCtrl != null) {
|
68
|
-
let subformTask = subformCtrl.getSubformTask();
|
69
|
-
guiParentTask = subformCtrl.getForm().getTask();
|
70
|
-
mgdID = guiParentTask.getMgdID();
|
71
|
-
guiParentMgData = guiParentTask.getMGData();
|
72
|
-
if (guiParentMgData.getTimerHandlers() != null)
|
73
|
-
oldTimers = guiParentMgData.getTimerHandlers().getTimersVector();
|
74
|
-
if (this._ditIdx !== Int32.MinValue) {
|
75
|
-
refreshWhenHidden = false;
|
76
|
-
moveToFirstControl = false;
|
77
|
-
}
|
78
|
-
else {
|
79
|
-
destinationSubformSucceeded = true;
|
80
|
-
if (this._transOwner != null) {
|
81
|
-
let newTransOwnerTask = AccessHelper.mgDataTable.GetTaskByID(this._transOwner);
|
82
|
-
if (newTransOwnerTask != null)
|
83
|
-
newTransOwnerTask.setTransOwnerTask();
|
84
|
-
}
|
85
|
-
if (subformTask != null) {
|
86
|
-
subformTask.setDestinationSubform(true);
|
87
|
-
await subformTask.stop();
|
88
|
-
}
|
89
|
-
if (!MgControl.validReturnToCtrl())
|
90
|
-
MgControl.ReturnToCtrl = LastFocusedManager.getLastFocusedControl();
|
91
|
-
}
|
92
|
-
subformCtrl.setSubformTaskId(this._newId);
|
93
|
-
}
|
94
|
-
let parentMgData;
|
95
|
-
if (callingTask == null)
|
96
|
-
parentMgData = AccessHelper.mgDataTable.getMGData(0);
|
97
|
-
else
|
98
|
-
parentMgData = callingTask.getMGData();
|
99
|
-
if (!destinationSubformSucceeded && refreshWhenHidden) {
|
100
|
-
mgdID = AccessHelper.mgDataTable.getAvailableIdx();
|
101
|
-
Debug.Assert(mgdID > 0);
|
102
|
-
mgd = new MGData(OpenURLCommand.createNewCommandsTable(), OpenURLCommand.createNewCommandsTable(), mgdID, parentMgData, this._isModal, this._forceModal);
|
103
|
-
mgd.copyUnframedCmds();
|
104
|
-
await AccessHelper.mgDataTable.addMGData(mgd, mgdID, false);
|
105
|
-
AccessHelper.mgDataTable.currMgdID = mgdID;
|
106
|
-
}
|
107
|
-
this.Obj = this._key;
|
108
|
-
this._key = null;
|
109
|
-
try {
|
110
|
-
await RemoteCommandsProcessor.GetInstance().ProcessResponse(this.NewTaskXML, mgdID, new OpeningTaskDetails(callingTask, pathParentTask), null);
|
111
|
-
}
|
112
|
-
finally {
|
113
|
-
AccessHelper.eventsManager.setIgnoreUnknownAbort(false);
|
114
|
-
}
|
115
|
-
if (destinationSubformSucceeded || !refreshWhenHidden) {
|
116
|
-
subformCtrl.initSubformTask();
|
117
|
-
if (destinationSubformSucceeded) {
|
118
|
-
let subformTask = subformCtrl.getSubformTask();
|
119
|
-
moveToFirstControl = !callingTask.RetainFocus;
|
120
|
-
subformTask.setIsDestinationCall(true);
|
121
|
-
}
|
122
|
-
}
|
123
|
-
let isSubformModal = false;
|
124
|
-
let prevMgDataIsModal = mgd.IsModal;
|
125
|
-
if (subformCtrl != null) {
|
126
|
-
if (guiParentMgData.getTimerHandlers() != null)
|
127
|
-
newTimers = guiParentMgData.getTimerHandlers().getTimersVector();
|
128
|
-
guiParentMgData.changeTimers(oldTimers, newTimers);
|
129
|
-
if (subformCtrl.IsModal())
|
130
|
-
this._isModal = isSubformModal = mgd.IsModal = true;
|
131
|
-
}
|
132
|
-
let nonInteractiveTask = await Task.StartProgram(destinationSubformSucceeded, moveToFirstControl);
|
133
|
-
if (!isSubformModal)
|
134
|
-
this._isModal = mgd.IsModal;
|
135
|
-
if (nonInteractiveTask == null) {
|
136
|
-
if (callingTask != null && ((this._isModal && (isSubformModal || !destinationSubformSucceeded) && refreshWhenHidden) || (!callingTask.IsInteractive && (!callingTask.isMainProg() || callingTask.getForm() == null)))) {
|
137
|
-
if (this._isModal) {
|
138
|
-
AccessHelper.mgDataTable.startTasksIteration();
|
139
|
-
let task;
|
140
|
-
while ((task = AccessHelper.mgDataTable.getNextTask()) !== null) {
|
141
|
-
let dataViewWasRetrieved = task.DataViewWasRetrieved;
|
142
|
-
if (dataViewWasRetrieved) {
|
143
|
-
await task.RefreshDisplay();
|
144
|
-
}
|
145
|
-
}
|
146
|
-
}
|
147
|
-
await AccessHelper.eventsManager.EventsLoop(mgd);
|
148
|
-
if (isSubformModal) {
|
149
|
-
mgd.IsAborting = false;
|
150
|
-
mgd.IsModal = prevMgDataIsModal;
|
151
|
-
}
|
152
|
-
}
|
153
|
-
}
|
154
|
-
else
|
155
|
-
await AccessHelper.eventsManager.NonInteractiveEventsLoop(mgd, nonInteractiveTask);
|
156
|
-
if (AccessHelper.eventsManager.getPendingGuiEvent() != null && (isSubformModal || nonInteractiveTask != null)) {
|
157
|
-
let guiEvent = AccessHelper.eventsManager.getPendingGuiEvent();
|
158
|
-
if (guiEvent.getTask() != callingTask || this._callingTaskTag !== callingTask.getTaskTag()) {
|
159
|
-
callingTask = AccessHelper.mgDataTable.GetTaskByID(this._callingTaskTag);
|
160
|
-
if (callingTask.getIsDestinationCall()) {
|
161
|
-
let subformCtrl = callingTask.getForm().getSubFormCtrl();
|
162
|
-
await AccessHelper.eventsManager.performSubformClose(subformCtrl);
|
163
|
-
}
|
164
|
-
else {
|
165
|
-
let rtEvt = new RunTimeEvent(callingTask);
|
166
|
-
rtEvt.setInternal(InternalInterface.MG_ACT_CLOSE);
|
167
|
-
rtEvt.setCtrl(null);
|
168
|
-
rtEvt.setArgList(null);
|
169
|
-
AccessHelper.eventsManager.addToTail(rtEvt);
|
170
|
-
}
|
171
|
-
}
|
172
|
-
else {
|
173
|
-
AccessHelper.eventsManager.addToTail(guiEvent);
|
174
|
-
AccessHelper.eventsManager.setPendingGuiEvent(null);
|
175
|
-
}
|
176
|
-
}
|
177
|
-
}
|
178
|
-
HandleAttribute(attribute, value) {
|
179
|
-
switch (attribute) {
|
180
|
-
case ConstInterface.MG_ATTR_CALLINGTASK:
|
181
|
-
this._callingTaskTag = value;
|
182
|
-
break;
|
183
|
-
case ConstInterface.MG_ATTR_PATH_PARENT_TASK:
|
184
|
-
this._pathParentTaskTag = value;
|
185
|
-
break;
|
186
|
-
case ConstInterface.MG_ATTR_SUBFORM_CTRL:
|
187
|
-
this._subformCtrlName = value;
|
188
|
-
break;
|
189
|
-
case XMLConstants.MG_ATTR_DITIDX:
|
190
|
-
this._ditIdx = XmlParser.getInt(value);
|
191
|
-
break;
|
192
|
-
case ConstInterface.MG_ATTR_MODAL:
|
193
|
-
this._isModal = (value[0] === '1');
|
194
|
-
break;
|
195
|
-
case ConstInterface.MG_ATTR_TRANS_OWNER:
|
196
|
-
this._transOwner = value;
|
197
|
-
break;
|
198
|
-
case ConstInterface.MG_ATTR_NEWID:
|
199
|
-
this._newId = NString.TrimEnd(value);
|
200
|
-
break;
|
201
|
-
case ConstInterface.MG_ATTR_KEY:
|
202
|
-
this._key = value;
|
203
|
-
break;
|
204
|
-
case ConstInterface.MG_ATTR_ARGLIST:
|
205
|
-
this._varList = new ArgumentsList();
|
206
|
-
this._varList.fillList(value, AccessHelper.mgDataTable.GetTaskByID(this.TaskTag));
|
207
|
-
break;
|
208
|
-
case ConstInterface.MG_ATTR_OBJECT:
|
209
|
-
this.Obj = value;
|
210
|
-
break;
|
211
|
-
case ConstInterface.MG_ATTR_IS_ROUTE:
|
212
|
-
this._isRoute = (value[0] === '1');
|
213
|
-
break;
|
214
|
-
default:
|
215
|
-
super.HandleAttribute(attribute, value);
|
216
|
-
break;
|
217
|
-
}
|
218
|
-
}
|
219
|
-
}
|
220
|
-
OpenURLCommand.createNewCommandsTable = null;
|
221
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiT3BlblVSTENvbW1hbmQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9lbmdpbmUvc3JjL2NvbW1hbmRzL1NlcnZlclRvQ2xpZW50L09wZW5VUkxDb21tYW5kLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxLQUFLLEVBQUUsS0FBSyxFQUFFLElBQUksRUFBRSxPQUFPLEVBQUMsTUFBTSxzQkFBc0IsQ0FBQztBQUNqRSxPQUFPLEVBQUMsaUJBQWlCLEVBQUUsWUFBWSxFQUFFLFNBQVMsRUFBQyxNQUFNLGtCQUFrQixDQUFDO0FBQzVFLE9BQU8sRUFBQyx5QkFBeUIsRUFBQyxNQUFNLDZCQUE2QixDQUFDO0FBQ3RFLE9BQU8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VyZmFjZS5NR19BVFRSX0FSR0xJU1Q6XHJcbiAgICAgICAgdGhpcy5fdmFyTGlzdCA9IG5ldyBBcmd1bWVudHNMaXN0KCk7XHJcbiAgICAgICAgdGhpcy5fdmFyTGlzdC5maWxsTGlzdCh2YWx1ZSwgPFRhc2tCYXNlPkFjY2Vzc0hlbHBlci5tZ0RhdGFUYWJsZS5HZXRUYXNrQnlJRCh0aGlzLlRhc2tUYWcpKTtcclxuICAgICAgICBicmVhaztcclxuICAgICAgY2FzZSBDb25zdEludGVyZmFjZS5NR19BVFRSX09CSkVDVDpcclxuICAgICAgICB0aGlzLk9iaiA9IHZhbHVlO1xyXG4gICAgICAgIGJyZWFrO1xyXG4gICAgICBjYXNlIENvbnN0SW50ZXJmYWNlLk1HX0FUVFJfSVNfUk9VVEU6XHJcbiAgICAgICAgdGhpcy5faXNSb3V0ZSA9ICh2YWx1ZVswXSA9PT0gJzEnKTtcclxuICAgICAgICBicmVhaztcclxuICAgICAgZGVmYXVsdDpcclxuICAgICAgICBzdXBlci5IYW5kbGVBdHRyaWJ1dGUoYXR0cmlidXRlLCB2YWx1ZSk7XHJcbiAgICAgICAgYnJlYWs7XHJcbiAgICB9XHJcbiAgfVxyXG59XHJcbiJdfQ==
|
@@ -1,37 +0,0 @@
|
|
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
|
-
async Execute(res) {
|
6
|
-
if (this._isNull)
|
7
|
-
res.SetResultValue(null, StorageAttribute.NONE);
|
8
|
-
else {
|
9
|
-
if (this._val == null)
|
10
|
-
this._val = "";
|
11
|
-
res.SetResultValue(this._val, this._attr);
|
12
|
-
}
|
13
|
-
}
|
14
|
-
HandleAttribute(attribute, value) {
|
15
|
-
switch (attribute) {
|
16
|
-
case ConstInterface.MG_ATTR_NULL:
|
17
|
-
this._isNull = (XmlParser.getInt(value) === 1);
|
18
|
-
break;
|
19
|
-
case ConstInterface.MG_ATTR_PAR_ATTRS:
|
20
|
-
this._attr = value[0];
|
21
|
-
break;
|
22
|
-
case XMLConstants.MG_ATTR_VALUE:
|
23
|
-
this._val = XmlParser.unescape(value);
|
24
|
-
break;
|
25
|
-
default:
|
26
|
-
super.HandleAttribute(attribute, value);
|
27
|
-
break;
|
28
|
-
}
|
29
|
-
}
|
30
|
-
constructor() {
|
31
|
-
super();
|
32
|
-
this._isNull = false;
|
33
|
-
this._attr = StorageAttribute.NONE;
|
34
|
-
this._val = null;
|
35
|
-
}
|
36
|
-
}
|
37
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUmVzdWx0Q29tbWFuZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2VuZ2luZS9zcmMvY29tbWFuZHMvU2VydmVyVG9DbGllbnQvUmVzdWx0Q29tbWFuZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUMseUJBQXlCLEVBQUMsTUFBTSw2QkFBNkIsQ0FBQztBQUN0RSxPQUFPLEVBQUMsZ0JBQWdCLEVBQUUsWUFBWSxFQUFFLFNBQVMsRUFBQyxNQUFNLGtCQUFrQixDQUFDO0FBRTNFLE9BQU8sRUFBQyxjQUFjLEVBQUMsTUFBTSxzQkFBc0IsQ0FBQztBQUVwRCxNQUFNLE9BQU8sYUFBYyxTQUFRLHlCQUF5QjtJQVMxRCxLQUFLLENBQUMsT0FBTyxDQUFDLEdBQWlCO1FBRTdCLElBQUksSUFBSSxDQUFDLE9BQU87WUFDZCxHQUFHLENBQUMsY0FBYyxDQUFDLElBQUksRUFBRSxnQkFBZ0IsQ0FBQyxJQUFJLENBQUMsQ0FBQzthQUM3QztZQUNILElBQUksS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