@magic-xpa/engine 4.1100.0-dev4110.19 → 4.1100.0-dev4110.190
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 +399 -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 +516 -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 +154 -0
- package/{esm2020 → esm2022}/src/ICommandsTable.mjs +1 -1
- package/esm2022/src/ServerConfig.mjs +118 -0
- package/{esm2020 → esm2022}/src/bridge/IGuiEvent.mjs +19 -19
- package/{esm2020 → esm2022}/src/bridge/MagicBridge.mjs +40 -40
- 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/{esm2020 → esm2022}/src/commands/ClientToServer/BrowserEscEventCommand.mjs +23 -23
- package/{esm2020 → esm2022}/src/commands/ClientToServer/ClientOriginatedCommand.mjs +14 -14
- package/esm2022/src/commands/ClientToServer/ClientOriginatedCommandSerializer.mjs +60 -0
- package/{esm2020 → esm2022}/src/commands/ClientToServer/ColumnSortEventCommand.mjs +26 -26
- package/esm2022/src/commands/ClientToServer/CommandFactory.mjs +260 -0
- package/esm2022/src/commands/ClientToServer/CommandSerializationHelper.mjs +67 -0
- package/{esm2020 → esm2022}/src/commands/ClientToServer/ComputeEventCommand.mjs +23 -23
- package/{esm2020 → esm2022}/src/commands/ClientToServer/ContextTerminationEventCommand.mjs +20 -20
- package/{esm2020 → esm2022}/src/commands/ClientToServer/ContextTimeoutResetCommand.mjs +19 -19
- 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 +37 -0
- package/esm2022/src/commands/ClientToServer/EventCommand.mjs +40 -0
- package/esm2022/src/commands/ClientToServer/ExecOperCommand.mjs +67 -0
- package/esm2022/src/commands/ClientToServer/FetchDataControlValuesEventCommand.mjs +22 -0
- package/{esm2020 → esm2022}/src/commands/ClientToServer/GlobalParamsQueryCommand.mjs +10 -10
- package/{esm2020 → esm2022}/src/commands/ClientToServer/ICommandTaskTag.mjs +1 -1
- package/{esm2020 → esm2022}/src/commands/ClientToServer/IndexChangeEventCommand.mjs +21 -21
- package/esm2022/src/commands/ClientToServer/IniputForceWriteCommand.mjs +23 -0
- package/{esm2020 → esm2022}/src/commands/ClientToServer/NonReversibleExitEventCommand.mjs +23 -23
- package/{esm2020 → esm2022}/src/commands/ClientToServer/QueryCommand.mjs +20 -20
- package/esm2022/src/commands/ClientToServer/RecomputeCommand.mjs +27 -0
- package/esm2022/src/commands/ClientToServer/RefreshEventCommand.mjs +27 -0
- package/esm2022/src/commands/ClientToServer/RefreshScreenEventCommand.mjs +24 -0
- package/esm2022/src/commands/ClientToServer/RollbackEventCommand.mjs +40 -0
- package/{esm2020 → esm2022}/src/commands/ClientToServer/SelectProgramCommand.mjs +14 -14
- package/{esm2020 → esm2022}/src/commands/ClientToServer/SetTransactionStateDataviewCommand.mjs +9 -9
- package/{esm2020 → esm2022}/src/commands/ClientToServer/SubformOpenEventCommand.mjs +21 -21
- package/esm2022/src/commands/ClientToServer/SubformRefreshEventCommand.mjs +24 -0
- package/esm2022/src/commands/ClientToServer/TransactionCommand.mjs +30 -0
- package/{esm2020 → esm2022}/src/commands/ClientToServer/UnloadCommand.mjs +14 -14
- 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 +1 -1
- 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 +866 -0
- package/{esm2020 → esm2022}/src/data/RecordOutOfDataViewException.mjs +15 -15
- package/esm2022/src/data/RecordsTable.mjs +267 -0
- package/esm2022/src/data/TaskTransactionManager.mjs +103 -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 +226 -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 +2975 -0
- package/{esm2020 → esm2022}/src/event/IEventsManager.mjs +6 -6
- package/esm2022/src/event/RunTimeEvent.mjs +392 -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 +1181 -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 +882 -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 +2497 -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 +29713 -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 +32 -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 +515 -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 +34 -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 +8 -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 +10 -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 +8 -8
- package/src/commands/ClientToServer/ContextTerminationEventCommand.d.ts +7 -7
- package/src/commands/ClientToServer/ContextTimeoutResetCommand.d.ts +7 -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 +15 -15
- package/src/commands/ClientToServer/EventCommand.d.ts +15 -15
- package/src/commands/ClientToServer/ExecOperCommand.d.ts +23 -23
- package/src/commands/ClientToServer/FetchDataControlValuesEventCommand.d.ts +8 -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 +8 -8
- package/src/commands/ClientToServer/IniputForceWriteCommand.d.ts +10 -10
- package/src/commands/ClientToServer/NonReversibleExitEventCommand.d.ts +8 -8
- package/src/commands/ClientToServer/QueryCommand.d.ts +8 -8
- package/src/commands/ClientToServer/RecomputeCommand.d.ts +11 -11
- package/src/commands/ClientToServer/RefreshEventCommand.d.ts +12 -12
- package/src/commands/ClientToServer/RefreshScreenEventCommand.d.ts +10 -10
- package/src/commands/ClientToServer/RollbackEventCommand.d.ts +14 -14
- package/src/commands/ClientToServer/SelectProgramCommand.d.ts +6 -6
- package/src/commands/ClientToServer/SetTransactionStateDataviewCommand.d.ts +5 -5
- package/src/commands/ClientToServer/SubformOpenEventCommand.d.ts +8 -8
- package/src/commands/ClientToServer/SubformRefreshEventCommand.d.ts +9 -9
- package/src/commands/ClientToServer/TransactionCommand.d.ts +12 -12
- package/src/commands/ClientToServer/UnloadCommand.d.ts +7 -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 +3 -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 +156 -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 +204 -204
- package/src/event/IEventsManager.d.ts +77 -77
- package/src/event/RunTimeEvent.d.ts +123 -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 +93 -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/commands/ClientOriginatedCommandTaskTag.mjs +0 -11
- package/esm2020/src/commands/ClientToServer/ClientOriginatedCommandSerializer.mjs +0 -60
- package/esm2020/src/commands/ClientToServer/CommandFactory.mjs +0 -260
- package/esm2020/src/commands/ClientToServer/CommandSerializationHelper.mjs +0 -69
- package/esm2020/src/commands/ClientToServer/DataViewOutputCommand.mjs +0 -13
- package/esm2020/src/commands/ClientToServer/EvaluateCommand.mjs +0 -36
- package/esm2020/src/commands/ClientToServer/EventCommand.mjs +0 -40
- package/esm2020/src/commands/ClientToServer/ExecOperCommand.mjs +0 -67
- package/esm2020/src/commands/ClientToServer/FetchDataControlValuesEventCommand.mjs +0 -22
- 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/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,2 +1,2 @@
|
|
1
|
-
export let CurrentClientVersion = '4.1100.0-dev4110.
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
1
|
+
export let CurrentClientVersion = '4.1100.0-dev4110.190';
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ3VycmVudENsaWVudFZlcnNpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9lbmdpbmUvc3JjL0N1cnJlbnRDbGllbnRWZXJzaW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sQ0FBQyxJQUFJLG9CQUFvQixHQUFHLHNCQUFzQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGxldCBDdXJyZW50Q2xpZW50VmVyc2lvbiA9ICc0LjExMDAuMC1kZXY0MTEwLjE5MCc7Il19
|
@@ -0,0 +1,16 @@
|
|
1
|
+
export class FlowMonitorInterface {
|
2
|
+
static FLWMTR_START = 0;
|
3
|
+
static FLWMTR_END = 1;
|
4
|
+
static FLWMTR_PROPAGATE = 2;
|
5
|
+
static FLWMTR_EVENT = 7;
|
6
|
+
static FLWMTR_CHNG_MODE = 8;
|
7
|
+
static FLWMTR_PREFIX = 15;
|
8
|
+
static FLWMTR_SUFFIX = 16;
|
9
|
+
static FLWMTR_CTRL_PREFIX = 18;
|
10
|
+
static FLWMTR_CTRL_SUFFIX = 19;
|
11
|
+
static FLWMTR_TSK_HANDLER = 20;
|
12
|
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zcyBGbG93TW9uaXRvckludGVyZmFjZSB7XHJcbiAgc3RhdGljIEZMV01UUl9TVEFSVDogbnVtYmVyID0gMDtcclxuICBzdGF0aWMgRkxXTVRSX0VORDogbnVtYmVyID0gMTtcclxuICBzdGF0aWMgRkxXTVRSX1BST1BBR0FURTogbnVtYmVyID0gMjtcclxuXHJcblxyXG4gIHN0YXRpYyBGTFdNVFJfRVZFTlQ6IG51bWJlciA9IDc7XHJcbiAgc3RhdGljIEZMV01UUl9DSE5HX01PREU6IG51bWJlciA9IDg7XHJcblxyXG4gIHN0YXRpYyBGTFdNVFJfUFJFRklYOiBudW1iZXIgPSAxNTtcclxuICBzdGF0aWMgRkxXTVRSX1NVRkZJWDogbnVtYmVyID0gMTY7XHJcblxyXG4gIHN0YXRpYyBGTFdNVFJfQ1RSTF9QUkVGSVg6IG51bWJlciA9IDE4O1xyXG4gIHN0YXRpYyBGTFdNVFJfQ1RSTF9TVUZGSVg6IG51bWJlciA9IDE5O1xyXG4gIHN0YXRpYyBGTFdNVFJfVFNLX0hBTkRMRVI6IG51bWJlciA9IDIwO1xyXG5cclxuXHJcblxyXG5cclxuICAvKiBSZWNvbXB1dGUgbWVzc2FnZXMgKi9cclxuICBzdGF0aWMgRkxXTVRSX1JFQ09NUDogbnVtYmVyID0gMzE7XHJcbiAgLyogT3BlcmF0aW9ucyBtZXNzYWdlcyAqL1xyXG4gIHN0YXRpYyBGTFdNVFJfREFUQV9PUEVSOiBudW1iZXIgPSA0MTtcclxuICAvKiBMT0cgbWVzc2FnZXMgKi9cclxuXHJcblxyXG4gIHN0YXRpYyBGTFdNVFJfVkFSQ0hHX1ZBTFVFOiBudW1iZXIgPSAxMTk7XHJcblxyXG59XHJcbiJdfQ==
|
@@ -0,0 +1,62 @@
|
|
1
|
+
import { MsgInterface } from '@magic-xpa/utils';
|
2
|
+
import { Commands, Manager, Styles } from '@magic-xpa/gui';
|
3
|
+
import { RCTimer } from './tasks/RCTimer';
|
4
|
+
import { LanguageData } from './env/LanguageData';
|
5
|
+
import { AccessHelper } from './AccessHelper';
|
6
|
+
export class GUIManager {
|
7
|
+
static _instance = null;
|
8
|
+
static get Instance() {
|
9
|
+
if (GUIManager._instance === null)
|
10
|
+
GUIManager._instance = new GUIManager();
|
11
|
+
return GUIManager._instance;
|
12
|
+
}
|
13
|
+
execGuiCommandQueue() {
|
14
|
+
Commands.beginInvoke();
|
15
|
+
}
|
16
|
+
startTimer(mgData, seconds, isIdleTimer) {
|
17
|
+
if (seconds > 0) {
|
18
|
+
let objRCTimer = new RCTimer(mgData, seconds * 1000, isIdleTimer);
|
19
|
+
(objRCTimer).Start();
|
20
|
+
Commands.beginInvoke();
|
21
|
+
}
|
22
|
+
}
|
23
|
+
stopTimer(mgData, seconds, isIdleTimer) {
|
24
|
+
if (seconds > 0)
|
25
|
+
RCTimer.StopTimer(mgData, seconds * 1000, isIdleTimer);
|
26
|
+
}
|
27
|
+
abort(form) {
|
28
|
+
if (arguments.length === 1)
|
29
|
+
this.abort_0(form);
|
30
|
+
else
|
31
|
+
this.abort_1();
|
32
|
+
}
|
33
|
+
abort_0(form) {
|
34
|
+
if (form !== null) {
|
35
|
+
Manager.Abort(form);
|
36
|
+
}
|
37
|
+
}
|
38
|
+
abort_1() {
|
39
|
+
for (let i = AccessHelper.mgDataTable.getSize(); i > 0; i--) {
|
40
|
+
const task = AccessHelper.mgDataTable.getMGData(i - 1).getFirstTask();
|
41
|
+
if (task !== null)
|
42
|
+
this.abort(task.Form);
|
43
|
+
}
|
44
|
+
}
|
45
|
+
async MessageBox(title, msg, style) {
|
46
|
+
await AccessHelper.eventsManager.CheckAndShowSpinner(false);
|
47
|
+
return await Commands.messageBox(title, msg, style);
|
48
|
+
}
|
49
|
+
async writeToMessageBox(titleId, msgId, style) {
|
50
|
+
let title = LanguageData.Instance.getConstMessage(titleId);
|
51
|
+
let msg = LanguageData.Instance.getConstMessage(msgId);
|
52
|
+
return await this.MessageBox(title, msg, style);
|
53
|
+
}
|
54
|
+
async confirm(msgId, style) {
|
55
|
+
return await this.writeToMessageBox(MsgInterface.CONFIRM_STR_WINDOW_TITLE, msgId, style);
|
56
|
+
}
|
57
|
+
async confirm_bool(msgId) {
|
58
|
+
let retResult = await this.confirm(msgId, Styles.MSGBOX_BUTTON_OK_CANCEL);
|
59
|
+
return retResult == Styles.MSGBOX_RESULT_OK;
|
60
|
+
}
|
61
|
+
}
|
62
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiR1VJTWFuYWdlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2VuZ2luZS9zcmMvR1VJTWFuYWdlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUMsWUFBWSxFQUFDLE1BQU0sa0JBQWtCLENBQUM7QUFDOUMsT0FBTyxFQUFDLFFBQVEsRUFBRSxPQUFPLEVBQUUsTUFBTSxFQUFDLE1BQU0sZ0JBQWdCLENBQUM7QUFFekQsT0FBTyxFQUFDLE9BQU8sRUFBQyxNQUFNLGlCQUFpQixDQUFDO0FBR3hDLE9BQU8sRUFBQyxZQUFZLEVBQUMsTUFBTSxvQkFBb0IsQ0FBQztBQUNoRCxPQUFPLEVBQUMsWUFBWSxFQUFDLE1BQU0sZ0JBQWdCLENBQUM7QUFLNUMsTUFBTSxPQUFPLFVBQVU7SUFDYixNQUFNLENBQUMsU0FBUyxHQUFlLElBQUksQ0FBQztJQUk1QyxNQUFNLEtBQUssUUFBUTtRQUNqQixJQUFJLFVBQVUsQ0FBQyxTQUFTLEtBQUssSUFBSTtZQUMvQixVQUFVLENBQUMsU0FBUyxHQUFHLElBQUksVUFBVSxFQUFFLENBQUM7UUFDMUMsT0FBTyxVQUFVLENBQUMsU0FBUyxDQUFDO0lBQzlCLENBQUM7SUFNRCxtQkFBbUI7UUFDakIsUUFBUSxDQUFDLFdBQVcsRUFBRS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VybiB0cnVlIGlmIHRoZSBidXR0b24gWUVTIHdhcyBwcmVzc2VkXHJcbiAgLy8vIDwvcGFyYW0+XHJcbiAgcHVibGljIGFzeW5jIGNvbmZpcm1fYm9vbChtc2dJZDogc3RyaW5nKTogUHJvbWlzZTxib29sZWFuPiB7XHJcbiAgICBsZXQgcmV0UmVzdWx0OiBudW1iZXIgPSBhd2FpdCB0aGlzLmNvbmZpcm0obXNnSWQsIFN0eWxlcy5NU0dCT1hfQlVUVE9OX09LX0NBTkNFTCk7XHJcbiAgICByZXR1cm4gcmV0UmVzdWx0ID09IDxudW1iZXI+U3R5bGVzLk1TR0JPWF9SRVNVTFRfT0s7XHJcbiAgfVxyXG59XHJcbiJdfQ==
|
@@ -0,0 +1,34 @@
|
|
1
|
+
import { List } from "@magic-xpa/mscorelib";
|
2
|
+
export class GlobalCommandsManager {
|
3
|
+
static Instance = new GlobalCommandsManager();
|
4
|
+
constructor() {
|
5
|
+
this._CommandsExecutedAfterTaskStarted = new List();
|
6
|
+
this._cmdFrame = 0;
|
7
|
+
this._unframedCmds = new List();
|
8
|
+
}
|
9
|
+
_CommandsExecutedAfterTaskStarted = null;
|
10
|
+
_cmdFrame = 0;
|
11
|
+
_unframedCmds = null;
|
12
|
+
getCommandsExecutedAfterTaskStarted() {
|
13
|
+
return this._CommandsExecutedAfterTaskStarted;
|
14
|
+
}
|
15
|
+
addCommandsExecutedAfterTaskStarted(cmd) {
|
16
|
+
this._CommandsExecutedAfterTaskStarted.push(cmd);
|
17
|
+
}
|
18
|
+
removeCommandsExecutedAfterTaskStarted(cmd) {
|
19
|
+
this._CommandsExecutedAfterTaskStarted.Remove(cmd);
|
20
|
+
}
|
21
|
+
add1toCmdFrame() {
|
22
|
+
this._cmdFrame++;
|
23
|
+
}
|
24
|
+
getCmdFrame() {
|
25
|
+
return this._cmdFrame;
|
26
|
+
}
|
27
|
+
addUnframedCmd(cmd) {
|
28
|
+
this._unframedCmds.push(cmd);
|
29
|
+
}
|
30
|
+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bWRzO1xyXG4gIH1cclxufVxyXG4iXX0=
|
@@ -0,0 +1,154 @@
|
|
1
|
+
import { CtrlButtonTypeGui, InternalInterface, Logger, MgControlType, Misc } from '@magic-xpa/utils';
|
2
|
+
import { Events, EventsProcessor, RuntimeContextBase } from '@magic-xpa/gui';
|
3
|
+
import { RunTimeEvent } from './event/RunTimeEvent';
|
4
|
+
import { RCTimer } from './tasks/RCTimer';
|
5
|
+
import { MGDataCollection } from './tasks/MGDataCollection';
|
6
|
+
import { EventsManager } from './event/EventsManager';
|
7
|
+
import { LanguageData } from './env/LanguageData';
|
8
|
+
import { EnvParamsTable } from './env/EnvVariablesTable';
|
9
|
+
import { LastFocusedManager } from './rt/LastFocusedManager';
|
10
|
+
import { ServerConfig } from './ServerConfig';
|
11
|
+
export class GuiEventsProcessor extends EventsProcessor {
|
12
|
+
RegisterSubclassHandlers() {
|
13
|
+
Events.FocusEvent = GuiEventsProcessor.processFocus;
|
14
|
+
Events.FocusOnNonMagicControlEvent = GuiEventsProcessor.processFocusOnNonMagicControl;
|
15
|
+
Events.MouseUpEvent = GuiEventsProcessor.processMouseUp;
|
16
|
+
Events.SelectionEvent = GuiEventsProcessor.processSelection;
|
17
|
+
Events.DisposeEvent = GuiEventsProcessor.processDispose;
|
18
|
+
Events.TimerEvent = GuiEventsProcessor.ProcessTimer;
|
19
|
+
Events.TableResizeEvent = GuiEventsProcessor.processTableResize;
|
20
|
+
Events.GetRowsDataEvent = GuiEventsProcessor.processGetRowsData;
|
21
|
+
Events.NonParkableLastParkedCtrlEvent = GuiEventsProcessor.OnNonParkableLastParkedCtrl;
|
22
|
+
Events.ShowSessionStatisticsEvent = GuiEventsProcessor.ShowSessionStatistics;
|
23
|
+
Events.WriteExceptionToLogEvent = Logger.Instance.WriteExceptionToLogWithMsg.bind(Logger.Instance);
|
24
|
+
Events.WriteErrorToLogEvent = Logger.Instance.WriteErrorToLog.bind(Logger.Instance);
|
25
|
+
Events.WriteWarningToLogEvent = Logger.Instance.WriteWarningToLogWithMsg.bind(Logger.Instance);
|
26
|
+
Events.ShouldLogEvent = Logger.Instance.ShouldLog.bind(Logger.Instance);
|
27
|
+
Events.WriteGuiToLogEvent = Logger.Instance.WriteGuiToLog.bind(Logger.Instance);
|
28
|
+
Events.WriteDevToLogEvent = Logger.Instance.WriteDevToLog.bind(Logger.Instance);
|
29
|
+
Events.TranslateEvent = LanguageData.Instance.translate.bind(LanguageData.Instance);
|
30
|
+
Events.PeekEndOfWorkEvent = GuiEventsProcessor.peekEndOfWork;
|
31
|
+
Events.TranslateLogicalNameEvent = EnvParamsTable.Instance.translate.bind(EnvParamsTable.Instance);
|
32
|
+
Events.GetMainProgramEvent = GuiEventsProcessor.getMainProgram;
|
33
|
+
Events.GetMessageStringEvent = LanguageData.Instance.getConstMessage.bind(LanguageData.Instance);
|
34
|
+
Events.CtrlFocusEvent = GuiEventsProcessor.processCtrlFocus;
|
35
|
+
Events.GetRuntimeContextEvent = GuiEventsProcessor.GetRuntimeContext;
|
36
|
+
Events.SaveLastClickedCtrlEvent = GuiEventsProcessor.SaveLastClickedControlName;
|
37
|
+
Events.SaveLastClickInfoEvent = GuiEventsProcessor.SaveLastClickInfo;
|
38
|
+
Events.OnIsLogonRTLEvent = GuiEventsProcessor.IsLogonRTL;
|
39
|
+
Events.ShouldAddEnterAsKeyEvent = GuiEventsProcessor.ShouldAddEnterAsKeyEvent;
|
40
|
+
}
|
41
|
+
constructor() {
|
42
|
+
super();
|
43
|
+
}
|
44
|
+
static processCtrlFocus(iTask, mgControl) {
|
45
|
+
LastFocusedManager.setLastFocusedControl(iTask, mgControl);
|
46
|
+
}
|
47
|
+
static processFocus(guiMgCtrl, line, isProduceClick, onMultiMark) {
|
48
|
+
let mgControl = guiMgCtrl;
|
49
|
+
EventsManager.Instance.addGuiTriggeredEventWithCtrlAndLineAndCodeAndIsProductClick(mgControl, InternalInterface.MG_ACT_CTRL_FOCUS, line, isProduceClick);
|
50
|
+
}
|
51
|
+
static processFocusOnNonMagicControl(guiMgCtrl) {
|
52
|
+
let mgControl = guiMgCtrl;
|
53
|
+
EventsManager.Instance.addGuiTriggeredEventWithCtrlAndCodeAndLine(mgControl, InternalInterface.MG_ACT_CTRL_FOCUS_ON_NON_MAGIC_CONTROL, mgControl.getDisplayLine(true));
|
54
|
+
}
|
55
|
+
static processMouseUp(guiMgCtrl, line) {
|
56
|
+
let mgControl = guiMgCtrl;
|
57
|
+
let rtEvt = new RunTimeEvent(mgControl, line, true);
|
58
|
+
let produceClick = true;
|
59
|
+
if (mgControl.Type === MgControlType.CTRL_TYPE_BUTTON && guiMgCtrl.ButtonStyle === CtrlButtonTypeGui.Hypertext)
|
60
|
+
produceClick = false;
|
61
|
+
rtEvt.setProduceClick(produceClick);
|
62
|
+
rtEvt.setInternal(InternalInterface.MG_ACT_CTRL_MOUSEUP);
|
63
|
+
EventsManager.Instance.addToTail(rtEvt);
|
64
|
+
}
|
65
|
+
static processDispose(guiMgForm) {
|
66
|
+
let form = guiMgForm;
|
67
|
+
let task = form.getTask();
|
68
|
+
let mgd = task.getMGData();
|
69
|
+
RCTimer.StopAll(mgd);
|
70
|
+
if (mgd.IsAborting)
|
71
|
+
MGDataCollection.Instance.deleteMGDataTree(mgd.GetId());
|
72
|
+
}
|
73
|
+
static ProcessTimer(mgTimer) {
|
74
|
+
let mgd = mgTimer.GetMgdata();
|
75
|
+
let task = mgd.getFirstTask();
|
76
|
+
let seconds = Math.floor((mgTimer.TimerIntervalMiliSeconds) / 1000);
|
77
|
+
let isIdle = mgTimer.IsIdleTimer;
|
78
|
+
if (mgd.IsAborting)
|
79
|
+
return;
|
80
|
+
let rtEvt = new RunTimeEvent(task, true);
|
81
|
+
rtEvt.setTimer(seconds, mgd.GetId(), isIdle);
|
82
|
+
rtEvt.setMainPrgCreator(rtEvt.getTask());
|
83
|
+
if (!isIdle)
|
84
|
+
rtEvt.setCtrl(task.getLastParkedCtrl());
|
85
|
+
rtEvt.setInternal(InternalInterface.MG_ACT_TIMER);
|
86
|
+
EventsManager.Instance.addToTail(rtEvt);
|
87
|
+
}
|
88
|
+
static processTableResize(guiMgCtrl, newRowsInPage) {
|
89
|
+
let mgControl = guiMgCtrl;
|
90
|
+
if (mgControl != null) {
|
91
|
+
let rtEvt = new RunTimeEvent(mgControl, newRowsInPage, true);
|
92
|
+
rtEvt.setInternal(InternalInterface.MG_ACT_RESIZE);
|
93
|
+
EventsManager.Instance.addToTail(rtEvt);
|
94
|
+
}
|
95
|
+
}
|
96
|
+
static processGetRowsData(guiMgCtrl, desiredTopIndex, sendAll, lastFocusedVal) {
|
97
|
+
let mgControl = guiMgCtrl;
|
98
|
+
if (mgControl != null && mgControl.Type === MgControlType.CTRL_TYPE_TABLE) {
|
99
|
+
let rtEvt = new RunTimeEvent(mgControl, desiredTopIndex, true);
|
100
|
+
rtEvt.setInternal(InternalInterface.MG_ACT_ROW_DATA_CURR_PAGE);
|
101
|
+
rtEvt.setSendAll(sendAll);
|
102
|
+
rtEvt.LastFocusedVal = lastFocusedVal;
|
103
|
+
EventsManager.Instance.addToTail(rtEvt);
|
104
|
+
}
|
105
|
+
}
|
106
|
+
static OnNonParkableLastParkedCtrl(ctrl) {
|
107
|
+
}
|
108
|
+
static processSelection(val, guiMgCtrl, line, produceClick) {
|
109
|
+
let mgControl = guiMgCtrl;
|
110
|
+
if (mgControl.Type === MgControlType.CTRL_TYPE_BUTTON && mgControl.getForm().getTask().getLastParkedCtrl() !== mgControl)
|
111
|
+
produceClick = true;
|
112
|
+
if (guiMgCtrl.ConnectedControl) {
|
113
|
+
let rtEvt = new RunTimeEvent(mgControl, +line, true);
|
114
|
+
rtEvt.setInternal(InternalInterface.MG_ACT_ZOOM);
|
115
|
+
rtEvt.setProduceClick(produceClick);
|
116
|
+
EventsManager.Instance.addToTail(rtEvt);
|
117
|
+
}
|
118
|
+
else {
|
119
|
+
let rtEvt = new RunTimeEvent(mgControl, +line, true);
|
120
|
+
rtEvt.setInternal(InternalInterface.MG_ACT_SELECTION);
|
121
|
+
rtEvt.setValue(val);
|
122
|
+
rtEvt.setProduceClick(produceClick);
|
123
|
+
EventsManager.Instance.addToTail(rtEvt);
|
124
|
+
}
|
125
|
+
}
|
126
|
+
processKeyDown(guiMgForm, guiMgCtrl, modifier, keyCode, start, end, text, isActChar, suggestedValue, handled) {
|
127
|
+
LastFocusedManager.Instance.LastActionTime = Misc.getSystemMilliseconds();
|
128
|
+
return super.processKeyDown(guiMgForm, guiMgCtrl, modifier, keyCode, start, end, text, isActChar, suggestedValue, handled);
|
129
|
+
}
|
130
|
+
static peekEndOfWork() {
|
131
|
+
return EventsManager.Instance.getEndOfWork();
|
132
|
+
}
|
133
|
+
static getMainProgram(contextID, ctlIdx) {
|
134
|
+
return MGDataCollection.Instance.GetMainProgByCtlIdx(contextID, ctlIdx);
|
135
|
+
}
|
136
|
+
static GetRuntimeContext(contextID) {
|
137
|
+
return RuntimeContextBase.Instance;
|
138
|
+
}
|
139
|
+
static SaveLastClickedControlName(ctrlName) {
|
140
|
+
RuntimeContextBase.Instance.LastClickedCtrlName = ctrlName;
|
141
|
+
}
|
142
|
+
static SaveLastClickInfo(controlName, X, Y, offsetX, offsetY, LastClickCoordinatesAreInPixels) {
|
143
|
+
RuntimeContextBase.Instance.SaveLastClickInfo(controlName, X, Y, offsetX, offsetY, LastClickCoordinatesAreInPixels);
|
144
|
+
}
|
145
|
+
static IsLogonRTL() {
|
146
|
+
return ServerConfig.Instance.IsLogonRTL();
|
147
|
+
}
|
148
|
+
static ShowSessionStatistics() {
|
149
|
+
}
|
150
|
+
static ShouldAddEnterAsKeyEvent() {
|
151
|
+
return false;
|
152
|
+
}
|
153
|
+
}
|
154
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiR3VpRXZlbnRzUHJvY2Vzc29yLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZW5naW5lL3NyYy9HdWlFdmVudH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RpYyBTaG93U2Vzc2lvblN0YXRpc3RpY3MoKTogdm9pZCB7XHJcbiAgfVxyXG5cclxuICAvLy8gPHN1bW1hcnk+XHJcbiAgLy8vIEluIFJJQSwgZW50ZXIgd2lsbCBjYXVzZSBhIGtleWJvYXJkIGV2ZW50IGFjY29yZGluZyB0byB0aGUgT1MuXHJcbiAgLy8vIFRoaXMgaXMgbW9zdGx5IGltcG9ydGFudCBmb3IgZGVmYXVsdCBidXR0b24sIHdoZXJlIEVOVEVSIG9uIGFueSBjb250cm9sIHRyaWdnZXJzIGNsaWNrIGV2ZW50IG9uIHRoZSBidXR0b24uXHJcbiAgLy8vIDwvc3VtbWFyeT5cclxuICAvLy8gPHJldHVybnM+PC9yZXR1cm5zPlxyXG4gIHByaXZhdGUgc3RhdGljIFNob3VsZEFkZEVudGVyQXNLZXlFdmVudCgpOiBib29sZWFuIHtcclxuICAgIHJldHVybiBmYWxzZTtcclxuICB9XHJcblxyXG5cclxufVxyXG4iXX0=
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export {};
|
1
|
+
export {};
|
2
2
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiSUNvbW1hbmRzVGFibGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9lbmdpbmUvc3JjL0lDb21tYW5kc1RhYmxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBTdHJpbmdCdWlsZGVyIH0gZnJvbSBcIkBtYWdpYy14cGEvbXNjb3JlbGliXCI7XHJcbmltcG9ydCB7IFhtbFBhcnNlciB9IGZyb20gXCJAbWFnaWMteHBhL3V0aWxzXCI7XHJcbmltcG9ydCB7IElDbGllbnRDb21tYW5kIH0gZnJvbSBcIi4vY29tbWFuZHMvSUNsaWVudENvbW1hbmRcIjtcclxuXHJcbmV4cG9ydCBpbnRlcmZhY2UgSUNvbW1hbmRzVGFibGUge1xyXG4gIGZpbGxEYXRhKHBhcnNlcjogWG1sUGFyc2VyKTogdm9pZDtcclxuXHJcbiAgYnVpbGRYTUwobWVzc2FnZTogU3RyaW5nQnVpbGRlcik6IHZvaWQ7XHJcblxyXG4gIEFkZChjbWQ6IElDbGllbnRDb21tYW5kKTogdm9pZDtcclxuXHJcbiAgQ2xlYXIoKTogdm9pZDtcclxufVxyXG4iXX0=
|
@@ -0,0 +1,118 @@
|
|
1
|
+
import { NString } from '@magic-xpa/mscorelib';
|
2
|
+
import { GuiConstants } from '@magic-xpa/gui';
|
3
|
+
import { ConstInterface } from './ConstInterface';
|
4
|
+
import { HttpManager } from './http/HttpManager';
|
5
|
+
export class ServerConfig {
|
6
|
+
static Instance = new ServerConfig();
|
7
|
+
constructor() {
|
8
|
+
}
|
9
|
+
_executionProps;
|
10
|
+
_protocol = null;
|
11
|
+
_server = null;
|
12
|
+
_httpReq = null;
|
13
|
+
_appName = null;
|
14
|
+
_serverUrl = null;
|
15
|
+
Init(obj) {
|
16
|
+
this._executionProps = obj;
|
17
|
+
}
|
18
|
+
ShouldDisplayGenericError() {
|
19
|
+
return this._executionProps.DisplayGenericError;
|
20
|
+
}
|
21
|
+
setUsername(username) {
|
22
|
+
this._executionProps[ConstInterface.MG_TAG_USERNAME] = username;
|
23
|
+
}
|
24
|
+
setPassword(password) {
|
25
|
+
this._executionProps[ConstInterface.MG_TAG_PASSWORD] = password;
|
26
|
+
}
|
27
|
+
setSkipAuthenticationDialog(value) {
|
28
|
+
this._executionProps[ConstInterface.REQ_SKIP_AUTHENTICATION] = value.toString();
|
29
|
+
}
|
30
|
+
setGlobalParams(val) {
|
31
|
+
if (val !== null)
|
32
|
+
this._executionProps[ConstInterface.MG_TAG_GLOBALPARAMS] = val;
|
33
|
+
else
|
34
|
+
delete this._executionProps[ConstInterface.MG_TAG_GLOBALPARAMS];
|
35
|
+
}
|
36
|
+
getGlobalParams() {
|
37
|
+
let ret = this._executionProps[ConstInterface.MG_TAG_GLOBALPARAMS];
|
38
|
+
return typeof ret === "undefined" ? null : ret;
|
39
|
+
}
|
40
|
+
getProtocol() {
|
41
|
+
if (this._protocol === null)
|
42
|
+
this._protocol = this._executionProps.protocol;
|
43
|
+
return this._protocol;
|
44
|
+
}
|
45
|
+
getServer() {
|
46
|
+
if (this._server === null)
|
47
|
+
this._server = this._executionProps.server;
|
48
|
+
return this._server;
|
49
|
+
}
|
50
|
+
getHttpReq() {
|
51
|
+
if (this._httpReq === null) {
|
52
|
+
this._httpReq = this._executionProps.requester;
|
53
|
+
if (this._httpReq !== null) {
|
54
|
+
while (this._httpReq.startsWith("/"))
|
55
|
+
this._httpReq = this._httpReq.substr(1);
|
56
|
+
while (this._httpReq.endsWith("/"))
|
57
|
+
this._httpReq = this._httpReq.substr(0, this._httpReq.length - 1);
|
58
|
+
}
|
59
|
+
}
|
60
|
+
return this._httpReq;
|
61
|
+
}
|
62
|
+
getAppName() {
|
63
|
+
if (this._appName === null)
|
64
|
+
this._appName = this._executionProps.appname;
|
65
|
+
return this._appName;
|
66
|
+
}
|
67
|
+
getInternalLogLevel() {
|
68
|
+
return this._executionProps.InternalLogLevel;
|
69
|
+
}
|
70
|
+
setInternalLogLevel(value) {
|
71
|
+
this._executionProps.InternalLogLevel = value;
|
72
|
+
}
|
73
|
+
getInternalLogSync() {
|
74
|
+
return this._executionProps.InternalLogSync;
|
75
|
+
}
|
76
|
+
getUsername() {
|
77
|
+
let ret = this._executionProps[ConstInterface.MG_TAG_USERNAME];
|
78
|
+
return typeof ret === "undefined" ? null : ret;
|
79
|
+
}
|
80
|
+
getPassword() {
|
81
|
+
let ret = this._executionProps[ConstInterface.MG_TAG_PASSWORD];
|
82
|
+
return typeof ret === "undefined" ? null : ret;
|
83
|
+
}
|
84
|
+
getCtxGroup() {
|
85
|
+
let ret = this._executionProps[ConstInterface.CTX_GROUP];
|
86
|
+
return typeof ret === "undefined" ? null : ret;
|
87
|
+
}
|
88
|
+
setCtxGroup(CtxGroup) {
|
89
|
+
this._executionProps[ConstInterface.CTX_GROUP] = CtxGroup;
|
90
|
+
}
|
91
|
+
getSkipAuthenticationDialog() {
|
92
|
+
let property = this._executionProps[ConstInterface.REQ_SKIP_AUTHENTICATION];
|
93
|
+
return !NString.IsNullOrEmpty(property) && property === true.toString();
|
94
|
+
}
|
95
|
+
GetFirstHttpRequestTimeout() {
|
96
|
+
let firstHttpTimeout = this._executionProps.FirstHTTPRequestTimeout;
|
97
|
+
return ((firstHttpTimeout > 0) ? (firstHttpTimeout * 1000) : HttpManager.DEFAULT_OFFLINE_HTTP_COMMUNICATION_TIMEOUT);
|
98
|
+
}
|
99
|
+
GetExecutionProperty(propName) {
|
100
|
+
let ret = this._executionProps[propName];
|
101
|
+
return typeof ret === "undefined" ? null : ret;
|
102
|
+
}
|
103
|
+
getServerURL() {
|
104
|
+
if (this._serverUrl === null) {
|
105
|
+
let httpReq = ServerConfig.Instance.getHttpReq();
|
106
|
+
if (httpReq !== null && httpReq.toLowerCase().startsWith("http"))
|
107
|
+
this._serverUrl = httpReq;
|
108
|
+
else
|
109
|
+
this._serverUrl = ServerConfig.Instance.getProtocol() + "://" + ServerConfig.Instance.getServer() + "/" + ServerConfig.Instance.getHttpReq();
|
110
|
+
}
|
111
|
+
return this._serverUrl;
|
112
|
+
}
|
113
|
+
IsLogonRTL() {
|
114
|
+
let text = ServerConfig.Instance.GetExecutionProperty[GuiConstants.STR_LOGON_RTL];
|
115
|
+
return text !== null && typeof text !== "undefined" && text === "Y";
|
116
|
+
}
|
117
|
+
}
|
118
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU2VydmVyQ29uZmlnLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZW5naW5lL3NyYy9TZXJ2ZXJDb25maWcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5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import { Modifiers } from "@magic-xpa/gui";
|
2
|
-
export function getGuiEventObj(eventType, controlName, line, fromButton = false) {
|
3
|
-
return {
|
4
|
-
EventType: eventType,
|
5
|
-
TaskID: null,
|
6
|
-
ControlName: controlName,
|
7
|
-
Line: line,
|
8
|
-
PageSize: 0,
|
9
|
-
Value: null,
|
10
|
-
RouterPath: null,
|
11
|
-
RouterOutletName: null,
|
12
|
-
RouterParams: null,
|
13
|
-
modifiers: Modifiers.MODIFIER_NONE,
|
14
|
-
keyCode: 0,
|
15
|
-
externalValue: null,
|
16
|
-
param: null,
|
17
|
-
fromButton: fromButton
|
18
|
-
};
|
19
|
-
}
|
1
|
+
import { Modifiers } from "@magic-xpa/gui";
|
2
|
+
export function getGuiEventObj(eventType, controlName, line, fromButton = false) {
|
3
|
+
return {
|
4
|
+
EventType: eventType,
|
5
|
+
TaskID: null,
|
6
|
+
ControlName: controlName,
|
7
|
+
Line: line,
|
8
|
+
PageSize: 0,
|
9
|
+
Value: null,
|
10
|
+
RouterPath: null,
|
11
|
+
RouterOutletName: null,
|
12
|
+
RouterParams: null,
|
13
|
+
modifiers: Modifiers.MODIFIER_NONE,
|
14
|
+
keyCode: 0,
|
15
|
+
externalValue: null,
|
16
|
+
param: null,
|
17
|
+
fromButton: fromButton
|
18
|
+
};
|
19
|
+
}
|
20
20
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiSUd1aUV2ZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZW5naW5lL3NyYy9icmlkZ2UvSUd1aUV2ZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNBLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQW1CM0MsTUFBTSxVQUFVLGNBQWMsQ0FBQyxTQUFpQixFQUFFLFdBQW1CLEVBQUUsSUFBWSx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