@magic-xpa/engine 4.1100.0-dev4110.98 → 4.1100.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +7 -7
- package/{esm2020 → esm2022}/index.mjs +188 -188
- package/{esm2020 → esm2022}/magic-xpa-engine.mjs +1 -1
- package/esm2022/src/AccessHelper.mjs +15 -0
- package/esm2022/src/ClientManager.mjs +421 -0
- package/esm2022/src/CommandsProcessorBase.mjs +56 -0
- package/{esm2020 → esm2022}/src/CommandsProcessorManager.mjs +25 -25
- package/esm2022/src/CommandsTable.mjs +162 -0
- package/esm2022/src/ConstInterface.mjs +517 -0
- package/{esm2020 → esm2022}/src/CurrentClientVersion.mjs +2 -2
- package/esm2022/src/FlowMonitorInterface.mjs +16 -0
- package/esm2022/src/GUIManager.mjs +62 -0
- package/esm2022/src/GlobalCommandsManager.mjs +34 -0
- package/esm2022/src/GuiEventsProcessor.mjs +156 -0
- package/{esm2020 → esm2022}/src/ICommandsTable.mjs +1 -1
- package/esm2022/src/ServerConfig.mjs +122 -0
- package/{esm2020 → esm2022}/src/bridge/IGuiEvent.mjs +19 -19
- package/esm2022/src/bridge/MagicBridge.mjs +41 -0
- package/esm2022/src/commands/ClientOriginatedCommandTaskTag.mjs +12 -0
- package/{esm2020 → esm2022}/src/commands/ClientToServer/AddUserLocateDataViewCommand.mjs +8 -8
- package/{esm2020 → esm2022}/src/commands/ClientToServer/AddUserRangeDataviewCommand.mjs +9 -9
- package/{esm2020 → esm2022}/src/commands/ClientToServer/AddUserSortDataViewCommand.mjs +9 -9
- package/esm2022/src/commands/ClientToServer/BrowserEscEventCommand.mjs +26 -0
- package/{esm2020 → esm2022}/src/commands/ClientToServer/ClientOriginatedCommand.mjs +14 -14
- package/{esm2020 → esm2022}/src/commands/ClientToServer/ClientOriginatedCommandSerializer.mjs +59 -59
- package/esm2022/src/commands/ClientToServer/ColumnSortEventCommand.mjs +29 -0
- package/esm2022/src/commands/ClientToServer/CommandFactory.mjs +261 -0
- package/esm2022/src/commands/ClientToServer/CommandSerializationHelper.mjs +67 -0
- package/esm2022/src/commands/ClientToServer/ComputeEventCommand.mjs +26 -0
- package/{esm2020 → esm2022}/src/commands/ClientToServer/ContextTerminationEventCommand.mjs +24 -21
- package/{esm2020 → esm2022}/src/commands/ClientToServer/ContextTimeoutResetCommand.mjs +23 -20
- package/{esm2020 → esm2022}/src/commands/ClientToServer/ControlItemsRefreshCommand.mjs +8 -8
- package/esm2022/src/commands/ClientToServer/DataViewOutputCommand.mjs +13 -0
- package/{esm2020 → esm2022}/src/commands/ClientToServer/DataviewCommand.mjs +44 -44
- package/esm2022/src/commands/ClientToServer/EvaluateCommand.mjs +40 -0
- package/{esm2020 → esm2022}/src/commands/ClientToServer/EventCommand.mjs +43 -40
- package/esm2022/src/commands/ClientToServer/ExecOperCommand.mjs +70 -0
- package/esm2022/src/commands/ClientToServer/FetchDataControlValuesEventCommand.mjs +25 -0
- package/{esm2020 → esm2022}/src/commands/ClientToServer/GlobalParamsQueryCommand.mjs +10 -10
- package/{esm2020 → esm2022}/src/commands/ClientToServer/ICommandTaskTag.mjs +1 -1
- package/esm2022/src/commands/ClientToServer/IndexChangeEventCommand.mjs +24 -0
- package/esm2022/src/commands/ClientToServer/IniputForceWriteCommand.mjs +26 -0
- package/{esm2020 → esm2022}/src/commands/ClientToServer/NonReversibleExitEventCommand.mjs +26 -23
- package/{esm2020 → esm2022}/src/commands/ClientToServer/QueryCommand.mjs +20 -20
- package/esm2022/src/commands/ClientToServer/RecomputeCommand.mjs +30 -0
- package/esm2022/src/commands/ClientToServer/RefreshEventCommand.mjs +30 -0
- package/esm2022/src/commands/ClientToServer/RefreshScreenEventCommand.mjs +27 -0
- package/esm2022/src/commands/ClientToServer/RollbackEventCommand.mjs +43 -0
- package/esm2022/src/commands/ClientToServer/SelectProgramCommand.mjs +19 -0
- package/{esm2020 → esm2022}/src/commands/ClientToServer/SetTransactionStateDataviewCommand.mjs +9 -9
- package/esm2022/src/commands/ClientToServer/SubformOpenEventCommand.mjs +24 -0
- package/esm2022/src/commands/ClientToServer/SubformRefreshEventCommand.mjs +27 -0
- package/esm2022/src/commands/ClientToServer/TransactionCommand.mjs +34 -0
- package/{esm2020 → esm2022}/src/commands/ClientToServer/UnloadCommand.mjs +18 -15
- package/esm2022/src/commands/ClientToServer/WriteMessageToServerLogCommand.mjs +18 -0
- package/esm2022/src/commands/DataViewCommandBase.mjs +8 -0
- package/{esm2020 → esm2022}/src/commands/IClientCommand.mjs +1 -1
- package/esm2022/src/commands/IClientTargetedCommand.mjs +13 -0
- package/{esm2020 → esm2022}/src/commands/IClientToServerCommandInfo.mjs +2 -2
- package/esm2022/src/commands/ServerToClient/AbortCommand.mjs +65 -0
- package/{esm2020 → esm2022}/src/commands/ServerToClient/AddLocateCommand.mjs +21 -21
- package/{esm2020 → esm2022}/src/commands/ServerToClient/AddRangeCommand.mjs +62 -62
- package/{esm2020 → esm2022}/src/commands/ServerToClient/AddSortCommand.mjs +33 -33
- package/esm2022/src/commands/ServerToClient/ClientRefreshCommand.mjs +25 -0
- package/esm2022/src/commands/ServerToClient/ClientTargetedCommandBase.mjs +24 -0
- package/esm2022/src/commands/ServerToClient/EnhancedVerifyCommand.mjs +45 -0
- package/esm2022/src/commands/ServerToClient/OpenURLCommand.mjs +221 -0
- package/{esm2020 → esm2022}/src/commands/ServerToClient/ResetLocateCommand.mjs +14 -14
- package/{esm2020 → esm2022}/src/commands/ServerToClient/ResetRangeCommand.mjs +14 -14
- package/{esm2020 → esm2022}/src/commands/ServerToClient/ResetSortCommand.mjs +14 -14
- package/esm2022/src/commands/ServerToClient/ResultCommand.mjs +37 -0
- package/esm2022/src/commands/ServerToClient/VerifyCommand.mjs +83 -0
- package/{esm2020 → esm2022}/src/commands/ServerToClient/XMLBasedCommandBuilder.mjs +132 -132
- package/{esm2020 → esm2022}/src/communications/IConnectionStateManager.mjs +1 -1
- package/esm2022/src/communications/InteractiveCommunicationsFailureHandler.mjs +15 -0
- package/{esm2020 → esm2022}/src/data/DataSourceIdKey.mjs +2 -2
- package/esm2022/src/data/DataView.mjs +1613 -0
- package/{esm2020 → esm2022}/src/data/DataViewBase.mjs +3 -3
- package/esm2022/src/data/DataviewManager.mjs +28 -0
- package/esm2022/src/data/DataviewManagerBase.mjs +15 -0
- package/esm2022/src/data/DvCache.mjs +67 -0
- package/esm2022/src/data/Field.mjs +646 -0
- package/esm2022/src/data/FieldBase.mjs +15 -0
- package/esm2022/src/data/FieldsTable.mjs +103 -0
- package/{esm2020 → esm2022}/src/data/IRecordsTable.mjs +1 -1
- package/{esm2020 → esm2022}/src/data/Key.mjs +88 -88
- package/esm2022/src/data/Record.mjs +880 -0
- package/{esm2020 → esm2022}/src/data/RecordOutOfDataViewException.mjs +15 -15
- package/esm2022/src/data/RecordsTable.mjs +267 -0
- package/{esm2020 → esm2022}/src/data/TaskTransactionManager.mjs +107 -103
- package/{esm2020 → esm2022}/src/data/XMLBasedDcValuesBuilder.mjs +74 -74
- package/{esm2020 → esm2022}/src/enums.mjs +23 -23
- package/esm2022/src/env/EnvVariablesTable.mjs +340 -0
- package/esm2022/src/env/Environment.mjs +487 -0
- package/{esm2020 → esm2022}/src/env/ILanguageData.mjs +1 -1
- package/esm2022/src/env/LanguageData.mjs +227 -0
- package/{esm2020 → esm2022}/src/env/MirrorString.mjs +65 -65
- package/esm2022/src/event/ActionManager.mjs +91 -0
- package/esm2022/src/event/Event.mjs +1333 -0
- package/esm2022/src/event/EventHandler.mjs +766 -0
- package/esm2022/src/event/EventHandlerPosition.mjs +204 -0
- package/esm2022/src/event/EventsManager.mjs +2988 -0
- package/{esm2020 → esm2022}/src/event/IEventsManager.mjs +6 -6
- package/esm2022/src/event/RunTimeEvent.mjs +399 -0
- package/{esm2020 → esm2022}/src/event/RunTimeEventBase.mjs +3 -3
- package/esm2022/src/event/UserEventsTable.mjs +47 -0
- package/esm2022/src/exp/ExpTable.mjs +57 -0
- package/esm2022/src/exp/Expression.mjs +200 -0
- package/esm2022/src/exp/ExpressionDict.mjs +727 -0
- package/esm2022/src/exp/ExpressionEvaluator.mjs +4206 -0
- package/esm2022/src/exp/ExpressionLocalJpn.mjs +314 -0
- package/{esm2020 → esm2022}/src/exp/GlobalParamsTable.mjs +85 -85
- package/esm2022/src/exp/YesNoExp.mjs +36 -0
- package/esm2022/src/gui/CreatedFormVector.mjs +23 -0
- package/esm2022/src/gui/FormsTable.mjs +66 -0
- package/esm2022/src/gui/MgControl.mjs +363 -0
- package/esm2022/src/gui/MgForm.mjs +1224 -0
- package/esm2022/src/http/HttpManager.mjs +97 -0
- package/esm2022/src/http/client/HttpClientAsync.mjs +68 -0
- package/{esm2020 → esm2022}/src/http/client/HttpClientBase.mjs +132 -132
- package/esm2022/src/http/client/HttpClientEvents.mjs +39 -0
- package/esm2022/src/http/client/HttpClientSync.mjs +42 -0
- package/esm2022/src/http/client/HttpUtility.mjs +84 -0
- package/{esm2020 → esm2022}/src/http/client/ICommunicationsFailureHandler.mjs +1 -1
- package/{esm2020 → esm2022}/src/remote/AddUserLocateRemoteDataViewCommand.mjs +18 -18
- package/{esm2020 → esm2022}/src/remote/AddUserRangeRemoteDataViewCommand.mjs +18 -18
- package/{esm2020 → esm2022}/src/remote/AddUserSortRemoteDataViewCommand.mjs +18 -18
- package/esm2022/src/remote/RemoteCommandsProcessor.mjs +883 -0
- package/{esm2020 → esm2022}/src/remote/RemoteControlItemsRefreshCommand.mjs +25 -25
- package/{esm2020 → esm2022}/src/remote/RemoteDataViewCommandBase.mjs +24 -24
- package/{esm2020 → esm2022}/src/remote/RemoteDataViewCommandFactory.mjs +60 -60
- package/{esm2020 → esm2022}/src/remote/RemoteDataViewCommandUpdateNonModifiable.mjs +15 -15
- package/{esm2020 → esm2022}/src/remote/RemoteDataviewManager.mjs +17 -17
- package/{esm2020 → esm2022}/src/remote/RemoteInitDataViewCommand.mjs +10 -10
- package/{esm2020 → esm2022}/src/remote/ResetUserLocateRemoteDataviewCommand.mjs +16 -16
- package/{esm2020 → esm2022}/src/remote/ResetUserRangeRemoteDataviewCommand.mjs +12 -12
- package/{esm2020 → esm2022}/src/remote/ResetUserSortRemoteDataviewCommand.mjs +15 -15
- package/esm2022/src/remote/ServerError.mjs +40 -0
- package/{esm2020 → esm2022}/src/remote/SetTransactionStateRemoteDataViewCommand.mjs +19 -19
- package/esm2022/src/rt/Argument.mjs +265 -0
- package/esm2022/src/rt/ArgumentsList.mjs +103 -0
- package/esm2022/src/rt/Boundary.mjs +152 -0
- package/esm2022/src/rt/CompMainPrgTable.mjs +63 -0
- package/esm2022/src/rt/DataviewHeaderBase.mjs +98 -0
- package/{esm2020 → esm2022}/src/rt/DataviewHeaderFactory.mjs +6 -6
- package/esm2022/src/rt/DataviewHeaders.mjs +53 -0
- package/{esm2020 → esm2022}/src/rt/DataviewHeadersSaxHandler.mjs +38 -38
- package/{esm2020 → esm2022}/src/rt/ExecutionStack.mjs +94 -94
- package/{esm2020 → esm2022}/src/rt/ExecutionStackEntry.mjs +17 -17
- package/{esm2020 → esm2022}/src/rt/HandlersTable.mjs +96 -96
- package/{esm2020 → esm2022}/src/rt/IDataSourceViewDefinition.mjs +1 -1
- package/{esm2020 → esm2022}/src/rt/IDataviewHeader.mjs +1 -1
- package/{esm2020 → esm2022}/src/rt/IResultValue.mjs +1 -1
- package/esm2022/src/rt/LastFocusedManager.mjs +65 -0
- package/esm2022/src/rt/Operation.mjs +735 -0
- package/esm2022/src/rt/OperationTable.mjs +67 -0
- package/esm2022/src/rt/Recompute.mjs +355 -0
- package/{esm2020 → esm2022}/src/rt/RecomputeTable.mjs +62 -62
- package/{esm2020 → esm2022}/src/rt/RemoteDataviewHeader.mjs +108 -108
- package/esm2022/src/rt/ResultValue.mjs +10 -0
- package/esm2022/src/rt/TableCache.mjs +177 -0
- package/esm2022/src/rt/TableCacheManager.mjs +67 -0
- package/esm2022/src/rt/Transaction.mjs +53 -0
- package/esm2022/src/security/UserDetails.mjs +71 -0
- package/{esm2020 → esm2022}/src/tasks/IMGDataCollection.mjs +1 -1
- package/esm2022/src/tasks/MGData.mjs +552 -0
- package/esm2022/src/tasks/MGDataCollection.mjs +252 -0
- package/esm2022/src/tasks/RCTimer.mjs +63 -0
- package/{esm2020 → esm2022}/src/tasks/RemoteTaskService.mjs +44 -44
- package/esm2022/src/tasks/Task.mjs +2499 -0
- package/esm2022/src/tasks/TaskBase.mjs +83 -0
- package/{esm2020 → esm2022}/src/tasks/TaskServiceBase.mjs +24 -24
- package/esm2022/src/tasks/TasksTable.mjs +80 -0
- package/esm2022/src/tasks/sort/Sort.mjs +5 -0
- package/{esm2020 → esm2022}/src/tasks/sort/SortCollection.mjs +67 -67
- package/{esm2020 → esm2022}/src/util/ConstUtils.mjs +13 -13
- package/esm2022/src/util/FlowMonitorQueue.mjs +451 -0
- package/{esm2020 → esm2022}/src/util/HeapSort.mjs +69 -69
- package/{esm2020 → esm2022}/src/util/IMirrorXML.mjs +1 -1
- package/{esm2020 → esm2022}/src/util/IServerConfig.mjs +1 -1
- package/{esm2020 → esm2022}/src/util/MgBlockingQueue.mjs +1 -1
- package/esm2022/src/util/MgPriorityBlockingQueue.mjs +74 -0
- package/esm2022/src/util/MgPriorityQueue.mjs +66 -0
- package/{esm2020 → esm2022}/src/util/ParamParseResult.mjs +7 -7
- package/esm2022/src/util/PrmMap.mjs +152 -0
- package/esm2022/src/util/ReturnResult.mjs +46 -0
- package/esm2022/src/util/ReturnResultBase.mjs +18 -0
- package/esm2022/src/util/Scrambler.mjs +89 -0
- package/esm2022/src/util/UniqueIDUtils.mjs +13 -0
- package/{esm2020 → esm2022}/src/util/cookie.service.mjs +92 -92
- package/{fesm2020 → fesm2022}/magic-xpa-engine.mjs +29888 -29690
- package/fesm2022/magic-xpa-engine.mjs.map +1 -0
- package/index.d.ts +187 -187
- package/package.json +8 -14
- package/src/AccessHelper.d.ts +20 -20
- package/src/ClientManager.d.ts +35 -32
- package/src/CommandsProcessorBase.d.ts +23 -23
- package/src/CommandsProcessorManager.d.ts +6 -6
- package/src/CommandsTable.d.ts +22 -22
- package/src/ConstInterface.d.ts +516 -515
- package/src/CurrentClientVersion.d.ts +1 -1
- package/src/FlowMonitorInterface.d.ts +15 -15
- package/src/GUIManager.d.ts +17 -17
- package/src/GlobalCommandsManager.d.ts +17 -17
- package/src/GuiEventsProcessor.d.ts +24 -24
- package/src/ICommandsTable.d.ts +9 -9
- package/src/ServerConfig.d.ts +35 -34
- package/src/bridge/IGuiEvent.d.ts +19 -19
- package/src/bridge/MagicBridge.d.ts +16 -16
- package/src/commands/ClientOriginatedCommandTaskTag.d.ts +8 -8
- package/src/commands/ClientToServer/AddUserLocateDataViewCommand.d.ts +4 -4
- package/src/commands/ClientToServer/AddUserRangeDataviewCommand.d.ts +6 -6
- package/src/commands/ClientToServer/AddUserSortDataViewCommand.d.ts +6 -6
- package/src/commands/ClientToServer/BrowserEscEventCommand.d.ts +9 -8
- package/src/commands/ClientToServer/ClientOriginatedCommand.d.ts +8 -8
- package/src/commands/ClientToServer/ClientOriginatedCommandSerializer.d.ts +6 -6
- package/src/commands/ClientToServer/ColumnSortEventCommand.d.ts +11 -10
- package/src/commands/ClientToServer/CommandFactory.d.ts +64 -64
- package/src/commands/ClientToServer/CommandSerializationHelper.d.ts +20 -20
- package/src/commands/ClientToServer/ComputeEventCommand.d.ts +9 -8
- package/src/commands/ClientToServer/ContextTerminationEventCommand.d.ts +8 -7
- package/src/commands/ClientToServer/ContextTimeoutResetCommand.d.ts +8 -7
- package/src/commands/ClientToServer/ControlItemsRefreshCommand.d.ts +6 -6
- package/src/commands/ClientToServer/DataViewOutputCommand.d.ts +9 -9
- package/src/commands/ClientToServer/DataviewCommand.d.ts +32 -32
- package/src/commands/ClientToServer/EvaluateCommand.d.ts +16 -15
- package/src/commands/ClientToServer/EventCommand.d.ts +16 -15
- package/src/commands/ClientToServer/ExecOperCommand.d.ts +24 -23
- package/src/commands/ClientToServer/FetchDataControlValuesEventCommand.d.ts +9 -8
- package/src/commands/ClientToServer/GlobalParamsQueryCommand.d.ts +5 -5
- package/src/commands/ClientToServer/ICommandTaskTag.d.ts +3 -3
- package/src/commands/ClientToServer/IndexChangeEventCommand.d.ts +9 -8
- package/src/commands/ClientToServer/IniputForceWriteCommand.d.ts +11 -10
- package/src/commands/ClientToServer/NonReversibleExitEventCommand.d.ts +9 -8
- package/src/commands/ClientToServer/QueryCommand.d.ts +8 -8
- package/src/commands/ClientToServer/RecomputeCommand.d.ts +12 -11
- package/src/commands/ClientToServer/RefreshEventCommand.d.ts +13 -12
- package/src/commands/ClientToServer/RefreshScreenEventCommand.d.ts +11 -10
- package/src/commands/ClientToServer/RollbackEventCommand.d.ts +15 -14
- package/src/commands/ClientToServer/SelectProgramCommand.d.ts +7 -6
- package/src/commands/ClientToServer/SetTransactionStateDataviewCommand.d.ts +5 -5
- package/src/commands/ClientToServer/SubformOpenEventCommand.d.ts +9 -8
- package/src/commands/ClientToServer/SubformRefreshEventCommand.d.ts +10 -9
- package/src/commands/ClientToServer/TransactionCommand.d.ts +14 -12
- package/src/commands/ClientToServer/UnloadCommand.d.ts +8 -7
- package/src/commands/ClientToServer/WriteMessageToServerLogCommand.d.ts +6 -6
- package/src/commands/DataViewCommandBase.d.ts +6 -6
- package/src/commands/IClientCommand.d.ts +2 -2
- package/src/commands/IClientTargetedCommand.d.ts +12 -12
- package/src/commands/IClientToServerCommandInfo.d.ts +4 -3
- package/src/commands/ServerToClient/AbortCommand.d.ts +11 -11
- package/src/commands/ServerToClient/AddLocateCommand.d.ts +6 -6
- package/src/commands/ServerToClient/AddRangeCommand.d.ts +10 -10
- package/src/commands/ServerToClient/AddSortCommand.d.ts +9 -9
- package/src/commands/ServerToClient/ClientRefreshCommand.d.ts +7 -7
- package/src/commands/ServerToClient/ClientTargetedCommandBase.d.ts +12 -12
- package/src/commands/ServerToClient/EnhancedVerifyCommand.d.ts +13 -13
- package/src/commands/ServerToClient/OpenURLCommand.d.ts +21 -21
- package/src/commands/ServerToClient/ResetLocateCommand.d.ts +6 -6
- package/src/commands/ServerToClient/ResetRangeCommand.d.ts +6 -6
- package/src/commands/ServerToClient/ResetSortCommand.d.ts +6 -6
- package/src/commands/ServerToClient/ResultCommand.d.ts +10 -10
- package/src/commands/ServerToClient/VerifyCommand.d.ts +17 -17
- package/src/commands/ServerToClient/XMLBasedCommandBuilder.d.ts +11 -11
- package/src/communications/IConnectionStateManager.d.ts +4 -4
- package/src/communications/InteractiveCommunicationsFailureHandler.d.ts +6 -6
- package/src/data/DataSourceIdKey.d.ts +2 -2
- package/src/data/DataView.d.ts +162 -162
- package/src/data/DataViewBase.d.ts +12 -12
- package/src/data/DataviewManager.d.ts +14 -14
- package/src/data/DataviewManagerBase.d.ts +11 -11
- package/src/data/DvCache.d.ts +15 -15
- package/src/data/Field.d.ts +103 -103
- package/src/data/FieldBase.d.ts +23 -23
- package/src/data/FieldsTable.d.ts +27 -27
- package/src/data/IRecordsTable.d.ts +7 -7
- package/src/data/Key.d.ts +15 -15
- package/src/data/Record.d.ts +157 -156
- package/src/data/RecordOutOfDataViewException.d.ts +10 -10
- package/src/data/RecordsTable.d.ts +38 -38
- package/src/data/TaskTransactionManager.d.ts +17 -17
- package/src/data/XMLBasedDcValuesBuilder.d.ts +11 -11
- package/src/enums.d.ts +21 -21
- package/src/env/EnvVariablesTable.d.ts +17 -17
- package/src/env/Environment.d.ts +118 -118
- package/src/env/ILanguageData.d.ts +3 -3
- package/src/env/LanguageData.d.ts +20 -20
- package/src/env/MirrorString.d.ts +15 -15
- package/src/event/ActionManager.d.ts +14 -14
- package/src/event/Event.d.ts +79 -79
- package/src/event/EventHandler.d.ts +66 -66
- package/src/event/EventHandlerPosition.d.ts +25 -25
- package/src/event/EventsManager.d.ts +205 -204
- package/src/event/IEventsManager.d.ts +77 -77
- package/src/event/RunTimeEvent.d.ts +126 -123
- package/src/event/RunTimeEventBase.d.ts +5 -5
- package/src/event/UserEventsTable.d.ts +11 -11
- package/src/exp/ExpTable.d.ts +11 -11
- package/src/exp/Expression.d.ts +37 -37
- package/src/exp/ExpressionDict.d.ts +12 -12
- package/src/exp/ExpressionEvaluator.d.ts +198 -198
- package/src/exp/ExpressionLocalJpn.d.ts +18 -18
- package/src/exp/GlobalParamsTable.d.ts +19 -19
- package/src/exp/YesNoExp.d.ts +9 -9
- package/src/gui/CreatedFormVector.d.ts +10 -10
- package/src/gui/FormsTable.d.ts +15 -15
- package/src/gui/MgControl.d.ts +60 -60
- package/src/gui/MgForm.d.ts +96 -93
- package/src/http/HttpManager.d.ts +25 -25
- package/src/http/client/HttpClientAsync.d.ts +16 -16
- package/src/http/client/HttpClientBase.d.ts +30 -30
- package/src/http/client/HttpClientEvents.d.ts +18 -18
- package/src/http/client/HttpClientSync.d.ts +17 -17
- package/src/http/client/HttpUtility.d.ts +10 -10
- package/src/http/client/ICommunicationsFailureHandler.d.ts +5 -5
- package/src/remote/AddUserLocateRemoteDataViewCommand.d.ts +8 -8
- package/src/remote/AddUserRangeRemoteDataViewCommand.d.ts +8 -8
- package/src/remote/AddUserSortRemoteDataViewCommand.d.ts +8 -8
- package/src/remote/RemoteCommandsProcessor.d.ts +51 -51
- package/src/remote/RemoteControlItemsRefreshCommand.d.ts +8 -8
- package/src/remote/RemoteDataViewCommandBase.d.ts +10 -10
- package/src/remote/RemoteDataViewCommandFactory.d.ts +6 -6
- package/src/remote/RemoteDataViewCommandUpdateNonModifiable.d.ts +8 -8
- package/src/remote/RemoteDataviewManager.d.ts +9 -9
- package/src/remote/RemoteInitDataViewCommand.d.ts +7 -7
- package/src/remote/ResetUserLocateRemoteDataviewCommand.d.ts +7 -7
- package/src/remote/ResetUserRangeRemoteDataviewCommand.d.ts +7 -7
- package/src/remote/ResetUserSortRemoteDataviewCommand.d.ts +7 -7
- package/src/remote/ServerError.d.ts +16 -16
- package/src/remote/SetTransactionStateRemoteDataViewCommand.d.ts +8 -8
- package/src/rt/Argument.d.ts +36 -36
- package/src/rt/ArgumentsList.d.ts +24 -24
- package/src/rt/Boundary.d.ts +27 -27
- package/src/rt/CompMainPrgTable.d.ts +10 -10
- package/src/rt/DataviewHeaderBase.d.ts +34 -34
- package/src/rt/DataviewHeaderFactory.d.ts +5 -5
- package/src/rt/DataviewHeaders.d.ts +12 -12
- package/src/rt/DataviewHeadersSaxHandler.d.ts +10 -10
- package/src/rt/ExecutionStack.d.ts +22 -22
- package/src/rt/ExecutionStackEntry.d.ts +7 -7
- package/src/rt/HandlersTable.d.ts +19 -19
- package/src/rt/IDataSourceViewDefinition.d.ts +6 -6
- package/src/rt/IDataviewHeader.d.ts +10 -10
- package/src/rt/IResultValue.d.ts +4 -4
- package/src/rt/LastFocusedManager.d.ts +23 -23
- package/src/rt/Operation.d.ts +97 -97
- package/src/rt/OperationTable.d.ts +15 -15
- package/src/rt/Recompute.d.ts +41 -41
- package/src/rt/RecomputeTable.d.ts +9 -9
- package/src/rt/RemoteDataviewHeader.d.ts +14 -14
- package/src/rt/ResultValue.d.ts +7 -7
- package/src/rt/TableCache.d.ts +29 -29
- package/src/rt/TableCacheManager.d.ts +10 -10
- package/src/rt/Transaction.d.ts +23 -23
- package/src/security/UserDetails.d.ts +16 -16
- package/src/tasks/IMGDataCollection.d.ts +26 -26
- package/src/tasks/MGData.d.ts +63 -63
- package/src/tasks/MGDataCollection.d.ts +42 -42
- package/src/tasks/RCTimer.d.ts +13 -13
- package/src/tasks/RemoteTaskService.d.ts +16 -16
- package/src/tasks/Task.d.ts +312 -312
- package/src/tasks/TaskBase.d.ts +123 -123
- package/src/tasks/TaskServiceBase.d.ts +16 -16
- package/src/tasks/TasksTable.d.ts +21 -21
- package/src/tasks/sort/Sort.d.ts +4 -4
- package/src/tasks/sort/SortCollection.d.ts +11 -11
- package/src/util/ConstUtils.d.ts +3 -3
- package/src/util/FlowMonitorQueue.d.ts +70 -70
- package/src/util/HeapSort.d.ts +6 -6
- package/src/util/IMirrorXML.d.ts +6 -6
- package/src/util/IServerConfig.d.ts +11 -11
- package/src/util/MgBlockingQueue.d.ts +5 -5
- package/src/util/MgPriorityBlockingQueue.d.ts +17 -17
- package/src/util/MgPriorityQueue.d.ts +13 -13
- package/src/util/ParamParseResult.d.ts +6 -6
- package/src/util/PrmMap.d.ts +28 -28
- package/src/util/ReturnResult.d.ts +18 -18
- package/src/util/ReturnResultBase.d.ts +11 -11
- package/src/util/Scrambler.d.ts +10 -10
- package/src/util/UniqueIDUtils.d.ts +4 -4
- package/src/util/cookie.service.d.ts +8 -8
- package/esm2020/src/AccessHelper.mjs +0 -9
- package/esm2020/src/ClientManager.mjs +0 -399
- package/esm2020/src/CommandsProcessorBase.mjs +0 -58
- package/esm2020/src/CommandsTable.mjs +0 -162
- package/esm2020/src/ConstInterface.mjs +0 -516
- package/esm2020/src/FlowMonitorInterface.mjs +0 -16
- package/esm2020/src/GUIManager.mjs +0 -62
- package/esm2020/src/GlobalCommandsManager.mjs +0 -34
- package/esm2020/src/GuiEventsProcessor.mjs +0 -154
- package/esm2020/src/ServerConfig.mjs +0 -117
- package/esm2020/src/bridge/MagicBridge.mjs +0 -41
- package/esm2020/src/commands/ClientOriginatedCommandTaskTag.mjs +0 -11
- package/esm2020/src/commands/ClientToServer/BrowserEscEventCommand.mjs +0 -23
- package/esm2020/src/commands/ClientToServer/ColumnSortEventCommand.mjs +0 -26
- package/esm2020/src/commands/ClientToServer/CommandFactory.mjs +0 -260
- package/esm2020/src/commands/ClientToServer/CommandSerializationHelper.mjs +0 -69
- package/esm2020/src/commands/ClientToServer/ComputeEventCommand.mjs +0 -23
- package/esm2020/src/commands/ClientToServer/DataViewOutputCommand.mjs +0 -13
- package/esm2020/src/commands/ClientToServer/EvaluateCommand.mjs +0 -36
- package/esm2020/src/commands/ClientToServer/ExecOperCommand.mjs +0 -67
- package/esm2020/src/commands/ClientToServer/FetchDataControlValuesEventCommand.mjs +0 -22
- package/esm2020/src/commands/ClientToServer/IndexChangeEventCommand.mjs +0 -21
- package/esm2020/src/commands/ClientToServer/IniputForceWriteCommand.mjs +0 -23
- package/esm2020/src/commands/ClientToServer/RecomputeCommand.mjs +0 -27
- package/esm2020/src/commands/ClientToServer/RefreshEventCommand.mjs +0 -27
- package/esm2020/src/commands/ClientToServer/RefreshScreenEventCommand.mjs +0 -24
- package/esm2020/src/commands/ClientToServer/RollbackEventCommand.mjs +0 -39
- package/esm2020/src/commands/ClientToServer/SelectProgramCommand.mjs +0 -15
- package/esm2020/src/commands/ClientToServer/SubformOpenEventCommand.mjs +0 -21
- package/esm2020/src/commands/ClientToServer/SubformRefreshEventCommand.mjs +0 -24
- package/esm2020/src/commands/ClientToServer/TransactionCommand.mjs +0 -28
- package/esm2020/src/commands/ClientToServer/WriteMessageToServerLogCommand.mjs +0 -18
- package/esm2020/src/commands/DataViewCommandBase.mjs +0 -10
- package/esm2020/src/commands/IClientTargetedCommand.mjs +0 -9
- package/esm2020/src/commands/ServerToClient/AbortCommand.mjs +0 -65
- package/esm2020/src/commands/ServerToClient/ClientRefreshCommand.mjs +0 -25
- package/esm2020/src/commands/ServerToClient/ClientTargetedCommandBase.mjs +0 -27
- package/esm2020/src/commands/ServerToClient/EnhancedVerifyCommand.mjs +0 -45
- package/esm2020/src/commands/ServerToClient/OpenURLCommand.mjs +0 -221
- package/esm2020/src/commands/ServerToClient/ResultCommand.mjs +0 -37
- package/esm2020/src/commands/ServerToClient/VerifyCommand.mjs +0 -83
- package/esm2020/src/communications/InteractiveCommunicationsFailureHandler.mjs +0 -17
- package/esm2020/src/data/DataView.mjs +0 -1610
- package/esm2020/src/data/DataviewManager.mjs +0 -28
- package/esm2020/src/data/DataviewManagerBase.mjs +0 -15
- package/esm2020/src/data/DvCache.mjs +0 -67
- package/esm2020/src/data/Field.mjs +0 -646
- package/esm2020/src/data/FieldBase.mjs +0 -18
- package/esm2020/src/data/FieldsTable.mjs +0 -103
- package/esm2020/src/data/Record.mjs +0 -846
- package/esm2020/src/data/RecordsTable.mjs +0 -267
- package/esm2020/src/env/EnvVariablesTable.mjs +0 -340
- package/esm2020/src/env/Environment.mjs +0 -489
- package/esm2020/src/env/LanguageData.mjs +0 -226
- package/esm2020/src/event/ActionManager.mjs +0 -91
- package/esm2020/src/event/Event.mjs +0 -1333
- package/esm2020/src/event/EventHandler.mjs +0 -766
- package/esm2020/src/event/EventHandlerPosition.mjs +0 -204
- package/esm2020/src/event/EventsManager.mjs +0 -2975
- package/esm2020/src/event/RunTimeEvent.mjs +0 -392
- package/esm2020/src/event/UserEventsTable.mjs +0 -47
- package/esm2020/src/exp/ExpTable.mjs +0 -59
- package/esm2020/src/exp/Expression.mjs +0 -200
- package/esm2020/src/exp/ExpressionDict.mjs +0 -727
- package/esm2020/src/exp/ExpressionEvaluator.mjs +0 -4208
- package/esm2020/src/exp/ExpressionLocalJpn.mjs +0 -314
- package/esm2020/src/exp/YesNoExp.mjs +0 -36
- package/esm2020/src/gui/CreatedFormVector.mjs +0 -23
- package/esm2020/src/gui/FormsTable.mjs +0 -66
- package/esm2020/src/gui/MgControl.mjs +0 -353
- package/esm2020/src/gui/MgForm.mjs +0 -1181
- package/esm2020/src/http/HttpManager.mjs +0 -97
- package/esm2020/src/http/client/HttpClientAsync.mjs +0 -67
- package/esm2020/src/http/client/HttpClientEvents.mjs +0 -39
- package/esm2020/src/http/client/HttpClientSync.mjs +0 -42
- package/esm2020/src/http/client/HttpUtility.mjs +0 -84
- package/esm2020/src/remote/RemoteCommandsProcessor.mjs +0 -880
- package/esm2020/src/remote/ServerError.mjs +0 -40
- package/esm2020/src/rt/Argument.mjs +0 -265
- package/esm2020/src/rt/ArgumentsList.mjs +0 -103
- package/esm2020/src/rt/Boundary.mjs +0 -152
- package/esm2020/src/rt/CompMainPrgTable.mjs +0 -65
- package/esm2020/src/rt/DataviewHeaderBase.mjs +0 -96
- package/esm2020/src/rt/DataviewHeaders.mjs +0 -53
- package/esm2020/src/rt/LastFocusedManager.mjs +0 -67
- package/esm2020/src/rt/Operation.mjs +0 -735
- package/esm2020/src/rt/OperationTable.mjs +0 -67
- package/esm2020/src/rt/Recompute.mjs +0 -355
- package/esm2020/src/rt/ResultValue.mjs +0 -12
- package/esm2020/src/rt/TableCache.mjs +0 -177
- package/esm2020/src/rt/TableCacheManager.mjs +0 -67
- package/esm2020/src/rt/Transaction.mjs +0 -53
- package/esm2020/src/security/UserDetails.mjs +0 -71
- package/esm2020/src/tasks/MGData.mjs +0 -552
- package/esm2020/src/tasks/MGDataCollection.mjs +0 -252
- package/esm2020/src/tasks/RCTimer.mjs +0 -63
- package/esm2020/src/tasks/Task.mjs +0 -2496
- package/esm2020/src/tasks/TaskBase.mjs +0 -87
- package/esm2020/src/tasks/TasksTable.mjs +0 -80
- package/esm2020/src/tasks/sort/Sort.mjs +0 -7
- package/esm2020/src/util/FlowMonitorQueue.mjs +0 -453
- package/esm2020/src/util/MgPriorityBlockingQueue.mjs +0 -74
- package/esm2020/src/util/MgPriorityQueue.mjs +0 -66
- package/esm2020/src/util/PrmMap.mjs +0 -151
- package/esm2020/src/util/ReturnResult.mjs +0 -46
- package/esm2020/src/util/ReturnResultBase.mjs +0 -18
- package/esm2020/src/util/Scrambler.mjs +0 -89
- package/esm2020/src/util/UniqueIDUtils.mjs +0 -12
- package/fesm2015/magic-xpa-engine.mjs +0 -30837
- package/fesm2015/magic-xpa-engine.mjs.map +0 -1
- package/fesm2020/magic-xpa-engine.mjs.map +0 -1
@@ -0,0 +1,83 @@
|
|
1
|
+
import { GuiTaskBase } from '@magic-xpa/gui';
|
2
|
+
export var Task_SubformExecModeEnum;
|
3
|
+
(function (Task_SubformExecModeEnum) {
|
4
|
+
Task_SubformExecModeEnum[Task_SubformExecModeEnum["NO_SUBFORM"] = -1] = "NO_SUBFORM";
|
5
|
+
Task_SubformExecModeEnum[Task_SubformExecModeEnum["SET_FOCUS"] = 0] = "SET_FOCUS";
|
6
|
+
Task_SubformExecModeEnum[Task_SubformExecModeEnum["FIRST_TIME"] = 1] = "FIRST_TIME";
|
7
|
+
Task_SubformExecModeEnum[Task_SubformExecModeEnum["REFRESH"] = 2] = "REFRESH";
|
8
|
+
})(Task_SubformExecModeEnum || (Task_SubformExecModeEnum = {}));
|
9
|
+
export class TaskBase extends GuiTaskBase {
|
10
|
+
IsTryingToStop = false;
|
11
|
+
DoSubformPrefixSuffix = false;
|
12
|
+
IsAfterRetryBeforeBuildXML = false;
|
13
|
+
TaskSuffixExecuted = false;
|
14
|
+
DataviewManager = null;
|
15
|
+
IsOffline = false;
|
16
|
+
ResetRange = false;
|
17
|
+
UserRngs = null;
|
18
|
+
ResetLocate = false;
|
19
|
+
UserLocs = null;
|
20
|
+
ResetSort = false;
|
21
|
+
UserSorts = null;
|
22
|
+
PreviouslyActiveTaskId;
|
23
|
+
_transactionFailed = false;
|
24
|
+
InEndTask = false;
|
25
|
+
InCtrlPrefix = false;
|
26
|
+
RetainFocus = false;
|
27
|
+
SubformExecMode = 0;
|
28
|
+
TransactionErrorHandlingsRetry = null;
|
29
|
+
ClosingFormUI = false;
|
30
|
+
AfterFirstRecordPrefix = false;
|
31
|
+
static ShouldNonInteractiveBeModal() {
|
32
|
+
return true;
|
33
|
+
}
|
34
|
+
async isCached() {
|
35
|
+
return Promise.resolve(true);
|
36
|
+
}
|
37
|
+
async prepareCache(ignoreCurr) {
|
38
|
+
return Promise.resolve(true);
|
39
|
+
}
|
40
|
+
async testAndSet(ignoreCurr) {
|
41
|
+
return Promise.resolve(true);
|
42
|
+
}
|
43
|
+
async SubformRefresh(subformTask, explicitSubformRefresh) {
|
44
|
+
return Promise.resolve();
|
45
|
+
}
|
46
|
+
async stop() {
|
47
|
+
return Promise.resolve();
|
48
|
+
}
|
49
|
+
async fillData(mgd, openingTaskDetails) {
|
50
|
+
return Promise.resolve();
|
51
|
+
}
|
52
|
+
async buildXML(message) {
|
53
|
+
return Promise.resolve();
|
54
|
+
}
|
55
|
+
}
|
56
|
+
export class UserRange {
|
57
|
+
veeIdx = 0;
|
58
|
+
min = null;
|
59
|
+
max = null;
|
60
|
+
nullMax = false;
|
61
|
+
nullMin = false;
|
62
|
+
discardMax = false;
|
63
|
+
discardMin = false;
|
64
|
+
}
|
65
|
+
export class OpeningTaskDetails {
|
66
|
+
CallingTask = null;
|
67
|
+
PathParentTask = null;
|
68
|
+
constructor(callingTask, pathParentTask) {
|
69
|
+
if (arguments.length === 0) {
|
70
|
+
this.constructor_0();
|
71
|
+
return;
|
72
|
+
}
|
73
|
+
this.constructor_1(callingTask, pathParentTask);
|
74
|
+
}
|
75
|
+
constructor_0() {
|
76
|
+
this.CallingTask = (this.PathParentTask = null);
|
77
|
+
}
|
78
|
+
constructor_1(callingTask, pathParentTask) {
|
79
|
+
this.CallingTask = callingTask;
|
80
|
+
this.PathParentTask = pathParentTask;
|
81
|
+
}
|
82
|
+
}
|
83
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiVGFza0Jhc2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9lbmdpbmUvc3JjL3Rhc2tzL1Rhc2tCYXNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUVBLE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQVk3QyxNQUFNLENBQU4sSUFBWSx3QkFLWDtBQUxELFdBQVksd0JBQXdCO0lBQ2xDLG9GQUFlLENBQUE7SUFDZixpRkFBUyxDQUFBO0lBQ1QsbUZBQVUsQ0FBQTtJQUNWLDZFQUFPLENBQUE7QUFDVCxDQUFDLEVBTFcsd0JBQXdCLEtBQXhCLHdCQUF3QixRQUtuQztBQUlELE1BQU0sT0FBZ0IsUUFBUyxTQUFRLFdBQVc7SUFDekMsY0FBYyxHQUFZLEtBQUssQ0FBQztJQUNoQyxxQkFBcUIsR0FBWSxLQUFLLENBQUM7SUFDdkMsMEJBQTBCLEdBQVksS0FBSyxDQUFDO0lBQzVDLGtCQUFrQixHQUFZLEtBQUssQ0FBQztJQUNwQyxlQUFlLEdBQW9CLElBQUksQ0FBQztJQUN4QyxTQUFTLEdBQVksS0FBSyxDQUFDO0lBQzNCL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FzZSwgcGF0aFBhcmVudFRhc2s6IFRhc2tCYXNlKTogdm9pZCB7XHJcbiAgICB0aGlzLkNhbGxpbmdUYXNrID0gY2FsbGluZ1Rhc2s7XHJcbiAgICB0aGlzLlBhdGhQYXJlbnRUYXNrID0gcGF0aFBhcmVudFRhc2s7XHJcbiAgfVxyXG59XHJcbiJdfQ==
|
@@ -1,25 +1,25 @@
|
|
1
|
-
import { ReturnResult } from "../util/ReturnResult";
|
2
|
-
import { PropInterface } from "@magic-xpa/gui";
|
3
|
-
export class TaskServiceBase {
|
4
|
-
static CreateFirstRecord(task) {
|
5
|
-
task.AfterFirstRecordPrefix = true;
|
6
|
-
}
|
7
|
-
PrepareTask(task) {
|
8
|
-
return ReturnResult.SuccessfulResult;
|
9
|
-
}
|
10
|
-
static async PreparePropOpenTaskWindow(task) {
|
11
|
-
let propOpenTaskWindow = task.getProp(PropInterface.PROP_TYPE_TASK_PROPERTIES_OPEN_TASK_WINDOW);
|
12
|
-
let propOpenTaskWindowValue = false;
|
13
|
-
if (!task.isMainProg() || task.getCtlIdx() === 0) {
|
14
|
-
propOpenTaskWindowValue = await propOpenTaskWindow.getValueBoolean();
|
15
|
-
}
|
16
|
-
task.SetOpenWin(propOpenTaskWindowValue);
|
17
|
-
}
|
18
|
-
static async Exit(task, reversibleExit, subformDestination) {
|
19
|
-
await task.Exit(reversibleExit, subformDestination);
|
20
|
-
}
|
21
|
-
GetOwnerTransactionTask(task) {
|
22
|
-
return null;
|
23
|
-
}
|
24
|
-
}
|
1
|
+
import { ReturnResult } from "../util/ReturnResult";
|
2
|
+
import { PropInterface } from "@magic-xpa/gui";
|
3
|
+
export class TaskServiceBase {
|
4
|
+
static CreateFirstRecord(task) {
|
5
|
+
task.AfterFirstRecordPrefix = true;
|
6
|
+
}
|
7
|
+
PrepareTask(task) {
|
8
|
+
return ReturnResult.SuccessfulResult;
|
9
|
+
}
|
10
|
+
static async PreparePropOpenTaskWindow(task) {
|
11
|
+
let propOpenTaskWindow = task.getProp(PropInterface.PROP_TYPE_TASK_PROPERTIES_OPEN_TASK_WINDOW);
|
12
|
+
let propOpenTaskWindowValue = false;
|
13
|
+
if (!task.isMainProg() || task.getCtlIdx() === 0) {
|
14
|
+
propOpenTaskWindowValue = await propOpenTaskWindow.getValueBoolean();
|
15
|
+
}
|
16
|
+
task.SetOpenWin(propOpenTaskWindowValue);
|
17
|
+
}
|
18
|
+
static async Exit(task, reversibleExit, subformDestination) {
|
19
|
+
await task.Exit(reversibleExit, subformDestination);
|
20
|
+
}
|
21
|
+
GetOwnerTransactionTask(task) {
|
22
|
+
return null;
|
23
|
+
}
|
24
|
+
}
|
25
25
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiVGFza1NlcnZpY2VCYXNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZW5naW5lL3NyYy90YXNrcy9UYXNrU2VydmljZUJhc2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxFQUFDLFlBQVksRUFBQyxNQUFNLHNCQUFzQixDQUFDO0FBQ2xELE9BQU8sRUFBVyxhQUFhLEVBQUMsTUFBTSxnQkFBZ0IsQ0FBQztBQUd2RCxNQUFNLE9BQWdCLGVBQWU7SUFXbkMsTUFBTSxDQUFDLGlCQUFpQixDQUFDLElBQVU7UUFFakMsSUFBSSxDQUFDLHNCQUFzQixHQUFHLElBQUksQ0FBQztJQUNyQyxDQUFDO0lBYUQsV0FBVyxDQUFDLElBQVU7UUFFcEIsT0FBTyxZQUFZLENBQUMsZ0JBQWdCLENBQUM7SUFDdkMsQ0FBQztJQU1ELE1BQU0sQ0FBQyxLQUFLLENBQUMseUJBQXlCLENBQUMsSUFBVTtRQUMvQyxJQUFJLGtCQUFrQixHQUFhLElBQUksQ0FBQyxPQUFPLENBQUMsYUFBYSxDQUFDLDBDQUEwQyxDQUFDLENB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IDxzdW1tYXJ5PlxyXG4gIC8vLyBXaGVuIHRoZSBzdWJmb3JtIGlzIGNsb3NlZCBiZWZvcmUgY2FsbCB3aXRoIGEgZGVzdGluYXRpb24sIHdlIG5lZWQgdG8gcmVtb3ZlIHBhcmVudCByZWNvbXB1dGVzLlxyXG4gIC8vLyA8L3N1bW1hcnk+XHJcbiAgLy8vIDxwYXJhbSBuYW1lPVwicGFyZW50VGFza1wiPjwvcGFyYW0+XHJcbiAgLy8vIDxwYXJhbSBuYW1lPVwic3ViZm9ybVRhc2tcIj48L3BhcmFtPlxyXG4gIGFic3RyYWN0IFJlbW92ZVJlY29tcHV0ZXMocGFyZW50VGFzazogVGFzayk6IHZvaWQgO1xyXG5cclxuICBHZXRPd25lclRyYW5zYWN0aW9uVGFzayh0YXNrOiBUYXNrKTogVGFzayB7XHJcbiAgICByZXR1cm4gbnVsbDtcclxuICB9XHJcbn1cclxuIl19
|
@@ -0,0 +1,80 @@
|
|
1
|
+
import { XMLConstants } from "@magic-xpa/utils";
|
2
|
+
import { List } from "@magic-xpa/mscorelib";
|
3
|
+
export class TasksTable {
|
4
|
+
_tasks = null;
|
5
|
+
static createNewtask = null;
|
6
|
+
constructor() {
|
7
|
+
this._tasks = new List();
|
8
|
+
}
|
9
|
+
async fillData(mgdata, openingTaskDetails, parser) {
|
10
|
+
while (await this.initInnerObjects(parser.getNextTag(), mgdata, openingTaskDetails)) {
|
11
|
+
}
|
12
|
+
}
|
13
|
+
async initInnerObjects(foundTagName, mgdata, openingTaskDetails) {
|
14
|
+
let result;
|
15
|
+
if (foundTagName === null) {
|
16
|
+
result = false;
|
17
|
+
}
|
18
|
+
else {
|
19
|
+
if (foundTagName === XMLConstants.MG_TAG_TASK) {
|
20
|
+
let task = TasksTable.createNewtask();
|
21
|
+
this._tasks.push(task);
|
22
|
+
await task.fillData(mgdata, openingTaskDetails);
|
23
|
+
result = true;
|
24
|
+
}
|
25
|
+
else {
|
26
|
+
result = false;
|
27
|
+
}
|
28
|
+
}
|
29
|
+
return result;
|
30
|
+
}
|
31
|
+
addTask(task) {
|
32
|
+
this._tasks.push(task);
|
33
|
+
}
|
34
|
+
removeTask(task) {
|
35
|
+
this._tasks.Remove(task);
|
36
|
+
}
|
37
|
+
getTask(tasktagOrIdx) {
|
38
|
+
if (arguments.length === 1 && (tasktagOrIdx === null || typeof tasktagOrIdx === "undefined" || tasktagOrIdx.constructor === String)) {
|
39
|
+
return this.getTask_0(tasktagOrIdx);
|
40
|
+
}
|
41
|
+
return this.getTask_1(tasktagOrIdx);
|
42
|
+
}
|
43
|
+
getTask_0(tasktag) {
|
44
|
+
let result;
|
45
|
+
for (let i = 0; i < this._tasks.length; i = i + 1) {
|
46
|
+
let task = this._tasks.get_Item(i);
|
47
|
+
if (tasktag === task.getTaskTag()) {
|
48
|
+
result = task;
|
49
|
+
return result;
|
50
|
+
}
|
51
|
+
}
|
52
|
+
result = null;
|
53
|
+
return result;
|
54
|
+
}
|
55
|
+
getTask_1(idx) {
|
56
|
+
let result;
|
57
|
+
if (idx >= 0 && idx < this._tasks.length) {
|
58
|
+
result = this._tasks.get_Item(idx);
|
59
|
+
}
|
60
|
+
else {
|
61
|
+
result = null;
|
62
|
+
}
|
63
|
+
return result;
|
64
|
+
}
|
65
|
+
getSize() {
|
66
|
+
return this._tasks.length;
|
67
|
+
}
|
68
|
+
async buildXML(message) {
|
69
|
+
for (let i = 0; i < this.getSize(); i = i + 1) {
|
70
|
+
await this.getTask(i).buildXML(message);
|
71
|
+
}
|
72
|
+
}
|
73
|
+
setTaskAt(task, index) {
|
74
|
+
if (this._tasks.length <= index) {
|
75
|
+
this._tasks.SetSize(index + 1);
|
76
|
+
}
|
77
|
+
this._tasks.set_Item(index, task);
|
78
|
+
}
|
79
|
+
}
|
80
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiVGFza3NUYWJsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4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iBudW1iZXIpOiB2b2lkIHtcclxuICAgIGlmICh0aGlzLl90YXNrcy5sZW5ndGggPD0gaW5kZXgpIHtcclxuICAgICAgdGhpcy5fdGFza3MuU2V0U2l6ZShpbmRleCArIDEpO1xyXG4gICAgfVxyXG4gICAgdGhpcy5fdGFza3Muc2V0X0l0ZW0oaW5kZXgsIHRhc2spO1xyXG4gIH1cclxufVxyXG4iXX0=
|
@@ -0,0 +1,5 @@
|
|
1
|
+
export class Sort {
|
2
|
+
fldIdx = 0;
|
3
|
+
dir = false;
|
4
|
+
}
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU29ydC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2VuZ2luZS9zcmMvdGFza3Mvc29ydC9Tb3J0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sT0FBTyxJQUFJO0lBQ2YsTUFBTSxHQUFXLENBQUMsQ0FBQztJQUVuQixHQUFHLEdBQVksS0FBSyxDQUFDO0NBQ3RCIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGNsYXNzIFNvcnQge1xyXG4gIGZsZElkeDogbnVtYmVyID0gMDsgLy8gc2VnbWVudCBmaWVsZFxyXG5cclxuICBkaXI6IGJvb2xlYW4gPSBmYWxzZTsgLy8gZGlyXHJcbn1cclxuIl19
|
@@ -1,67 +1,67 @@
|
|
1
|
-
import { List, NString } from '@magic-xpa/mscorelib';
|
2
|
-
import { Sort } from './Sort';
|
3
|
-
import { Logger, XMLConstants, XmlParser } from '@magic-xpa/utils';
|
4
|
-
import { ConstInterface } from '../../ConstInterface';
|
5
|
-
export class SortCollection {
|
6
|
-
|
7
|
-
|
8
|
-
this._sortTab = new List();
|
9
|
-
}
|
10
|
-
fillData(parser) {
|
11
|
-
while (this.initInnerObjects(parser, parser.getNextTag())) {
|
12
|
-
}
|
13
|
-
}
|
14
|
-
initInnerObjects(parser, foundTagName) {
|
15
|
-
if (foundTagName === null)
|
16
|
-
return false;
|
17
|
-
switch (foundTagName) {
|
18
|
-
case ConstInterface.MG_TAG_SORTS:
|
19
|
-
parser.setCurrIndex(parser.getXMLdata().indexOf(XMLConstants.TAG_CLOSE, parser.getCurrIndex()) + 1);
|
20
|
-
break;
|
21
|
-
case ConstInterface.MG_TAG_SORT:
|
22
|
-
{
|
23
|
-
let sort = new Sort();
|
24
|
-
this._sortTab.push(sort);
|
25
|
-
let endContext = parser.getXMLdata().indexOf(XMLConstants.TAG_TERM, parser.getCurrIndex());
|
26
|
-
if (endContext !== -1 && endContext < parser.getXMLdata().length) {
|
27
|
-
let tag = parser.getXMLsubstring(endContext);
|
28
|
-
parser.add2CurrIndex(tag.indexOf(ConstInterface.MG_TAG_SORT) + ConstInterface.MG_TAG_SORT.length);
|
29
|
-
let tokensVector = new List(XmlParser.getTokens(parser.getXMLsubstring(endContext), XMLConstants.XML_ATTR_DELIM).GetEnumerator());
|
30
|
-
this.InitElements(tokensVector, sort);
|
31
|
-
parser.setCurrIndex(endContext + XMLConstants.TAG_TERM.length);
|
32
|
-
}
|
33
|
-
}
|
34
|
-
break;
|
35
|
-
case ConstInterface.MG_TAG_SORTS_END:
|
36
|
-
parser.setCurrIndex2EndOfTag();
|
37
|
-
return false;
|
38
|
-
}
|
39
|
-
return true;
|
40
|
-
}
|
41
|
-
InitElements(tokensVector, sort) {
|
42
|
-
for (let j = 0; j < tokensVector.length; j += 2) {
|
43
|
-
let attribute = (tokensVector.get_Item(j));
|
44
|
-
let valueStr = (tokensVector.get_Item(j + 1));
|
45
|
-
switch (attribute) {
|
46
|
-
case XMLConstants.MG_ATTR_ID:
|
47
|
-
sort.fldIdx = XmlParser.getInt(valueStr);
|
48
|
-
break;
|
49
|
-
case ConstInterface.MG_ATTR_DIR:
|
50
|
-
sort.dir = valueStr === "A";
|
51
|
-
break;
|
52
|
-
default:
|
53
|
-
Logger.Instance.WriteExceptionToLogWithMsg(NString.Format("Unrecognized attribute: '{0}'", attribute));
|
54
|
-
break;
|
55
|
-
}
|
56
|
-
}
|
57
|
-
}
|
58
|
-
getSize() {
|
59
|
-
if (this._sortTab === null)
|
60
|
-
return 0;
|
61
|
-
return this._sortTab.length;
|
62
|
-
}
|
63
|
-
add(sort) {
|
64
|
-
this._sortTab.push(sort);
|
65
|
-
}
|
66
|
-
}
|
67
|
-
//# sourceMappingURL=data:application/json;base64,
|
1
|
+
import { List, NString } from '@magic-xpa/mscorelib';
|
2
|
+
import { Sort } from './Sort';
|
3
|
+
import { Logger, XMLConstants, XmlParser } from '@magic-xpa/utils';
|
4
|
+
import { ConstInterface } from '../../ConstInterface';
|
5
|
+
export class SortCollection {
|
6
|
+
_sortTab = null;
|
7
|
+
constructor() {
|
8
|
+
this._sortTab = new List();
|
9
|
+
}
|
10
|
+
fillData(parser) {
|
11
|
+
while (this.initInnerObjects(parser, parser.getNextTag())) {
|
12
|
+
}
|
13
|
+
}
|
14
|
+
initInnerObjects(parser, foundTagName) {
|
15
|
+
if (foundTagName === null)
|
16
|
+
return false;
|
17
|
+
switch (foundTagName) {
|
18
|
+
case ConstInterface.MG_TAG_SORTS:
|
19
|
+
parser.setCurrIndex(parser.getXMLdata().indexOf(XMLConstants.TAG_CLOSE, parser.getCurrIndex()) + 1);
|
20
|
+
break;
|
21
|
+
case ConstInterface.MG_TAG_SORT:
|
22
|
+
{
|
23
|
+
let sort = new Sort();
|
24
|
+
this._sortTab.push(sort);
|
25
|
+
let endContext = parser.getXMLdata().indexOf(XMLConstants.TAG_TERM, parser.getCurrIndex());
|
26
|
+
if (endContext !== -1 && endContext < parser.getXMLdata().length) {
|
27
|
+
let tag = parser.getXMLsubstring(endContext);
|
28
|
+
parser.add2CurrIndex(tag.indexOf(ConstInterface.MG_TAG_SORT) + ConstInterface.MG_TAG_SORT.length);
|
29
|
+
let tokensVector = new List(XmlParser.getTokens(parser.getXMLsubstring(endContext), XMLConstants.XML_ATTR_DELIM).GetEnumerator());
|
30
|
+
this.InitElements(tokensVector, sort);
|
31
|
+
parser.setCurrIndex(endContext + XMLConstants.TAG_TERM.length);
|
32
|
+
}
|
33
|
+
}
|
34
|
+
break;
|
35
|
+
case ConstInterface.MG_TAG_SORTS_END:
|
36
|
+
parser.setCurrIndex2EndOfTag();
|
37
|
+
return false;
|
38
|
+
}
|
39
|
+
return true;
|
40
|
+
}
|
41
|
+
InitElements(tokensVector, sort) {
|
42
|
+
for (let j = 0; j < tokensVector.length; j += 2) {
|
43
|
+
let attribute = (tokensVector.get_Item(j));
|
44
|
+
let valueStr = (tokensVector.get_Item(j + 1));
|
45
|
+
switch (attribute) {
|
46
|
+
case XMLConstants.MG_ATTR_ID:
|
47
|
+
sort.fldIdx = XmlParser.getInt(valueStr);
|
48
|
+
break;
|
49
|
+
case ConstInterface.MG_ATTR_DIR:
|
50
|
+
sort.dir = valueStr === "A";
|
51
|
+
break;
|
52
|
+
default:
|
53
|
+
Logger.Instance.WriteExceptionToLogWithMsg(NString.Format("Unrecognized attribute: '{0}'", attribute));
|
54
|
+
break;
|
55
|
+
}
|
56
|
+
}
|
57
|
+
}
|
58
|
+
getSize() {
|
59
|
+
if (this._sortTab === null)
|
60
|
+
return 0;
|
61
|
+
return this._sortTab.length;
|
62
|
+
}
|
63
|
+
add(sort) {
|
64
|
+
this._sortTab.push(sort);
|
65
|
+
}
|
66
|
+
}
|
67
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU29ydENvbGxlY3Rpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9lbmdpbmUvc3JjL3Rhc2tzL3NvcnQvU29ydENvbGxlY3Rpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLElBQUksRUFBRSxPQUFPLEVBQU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AgICAgICAgIGJyZWFrO1xyXG4gICAgICB9XHJcbiAgICB9XHJcbiAgfVxyXG5cclxuXHJcbiAgLy8vIDxzdW1tYXJ5PlxyXG4gIC8vLyAgIGdldCBzaXplIG9mIHRoZSBzb3J0IHRhYmxlXHJcbiAgLy8vIDwvc3VtbWFyeT5cclxuICBnZXRTaXplKCk6IG51bWJlciB7XHJcbiAgICBpZiAodGhpcy5fc29ydFRhYiA9PT0gbnVsbClcclxuICAgICAgcmV0dXJuIDA7XHJcbiAgICByZXR1cm4gdGhpcy5fc29ydFRhYi5sZW5ndGg7XHJcbiAgfVxyXG5cclxuICAvLy8gPHN1bW1hcnk+XHJcbiAgLy8vICAgYWRkIFNvcnQgdG8gIFNvcnQgY29sbGVjdGlvbi5cclxuICAvLy8gPC9zdW1tYXJ5PlxyXG4gIC8vLyA8cGFyYW0gbmFtZSA9IFwic29ydFwiPlNvcnQgdG8gYmUgYWRkZWQgPC9wYXJhbT5cclxuICBhZGQoc29ydDogU29ydCk6IHZvaWQge1xyXG4gICAgdGhpcy5fc29ydFRhYi5wdXNoKHNvcnQpO1xyXG4gIH1cclxufVxyXG4iXX0=
|
@@ -1,14 +1,14 @@
|
|
1
|
-
export class ConstUtils {
|
2
|
-
static getStringOfOption(strOptions, options, selectedOption) {
|
3
|
-
let strOption = "";
|
4
|
-
let indexOpt = options.indexOf(selectedOption);
|
5
|
-
if (indexOpt > -1) {
|
6
|
-
let tokens = strOptions.split(',');
|
7
|
-
if (indexOpt < tokens.length) {
|
8
|
-
strOption = tokens[indexOpt];
|
9
|
-
}
|
10
|
-
}
|
11
|
-
return strOption;
|
12
|
-
}
|
13
|
-
}
|
1
|
+
export class ConstUtils {
|
2
|
+
static getStringOfOption(strOptions, options, selectedOption) {
|
3
|
+
let strOption = "";
|
4
|
+
let indexOpt = options.indexOf(selectedOption);
|
5
|
+
if (indexOpt > -1) {
|
6
|
+
let tokens = strOptions.split(',');
|
7
|
+
if (indexOpt < tokens.length) {
|
8
|
+
str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