@magic-xpa/engine 4.1100.0-dev4110.23 → 4.1100.0-dev4110.236
Sign up to get free protection for your applications and to get access to all the features.
- package/{esm2020 → esm2022}/index.mjs +188 -188
- package/{esm2020 → esm2022}/magic-xpa-engine.mjs +1 -1
- package/esm2022/src/AccessHelper.mjs +15 -0
- package/esm2022/src/ClientManager.mjs +416 -0
- package/esm2022/src/CommandsProcessorBase.mjs +56 -0
- package/esm2022/src/CommandsProcessorManager.mjs +26 -0
- package/esm2022/src/CommandsTable.mjs +162 -0
- package/esm2022/src/ConstInterface.mjs +517 -0
- package/{esm2020 → esm2022}/src/CurrentClientVersion.mjs +2 -2
- package/esm2022/src/FlowMonitorInterface.mjs +16 -0
- package/esm2022/src/GUIManager.mjs +62 -0
- package/esm2022/src/GlobalCommandsManager.mjs +34 -0
- package/esm2022/src/GuiEventsProcessor.mjs +156 -0
- package/{esm2020 → esm2022}/src/ICommandsTable.mjs +1 -1
- package/esm2022/src/ServerConfig.mjs +122 -0
- package/{esm2020 → esm2022}/src/bridge/IGuiEvent.mjs +19 -19
- package/esm2022/src/bridge/MagicBridge.mjs +41 -0
- package/esm2022/src/commands/ClientOriginatedCommandTaskTag.mjs +12 -0
- package/{esm2020 → esm2022}/src/commands/ClientToServer/AddUserLocateDataViewCommand.mjs +8 -8
- package/{esm2020 → esm2022}/src/commands/ClientToServer/AddUserRangeDataviewCommand.mjs +9 -9
- package/{esm2020 → esm2022}/src/commands/ClientToServer/AddUserSortDataViewCommand.mjs +9 -9
- package/{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 +227 -0
- package/esm2022/src/env/MirrorString.mjs +65 -0
- package/esm2022/src/event/ActionManager.mjs +91 -0
- package/esm2022/src/event/Event.mjs +1333 -0
- package/esm2022/src/event/EventHandler.mjs +766 -0
- package/esm2022/src/event/EventHandlerPosition.mjs +204 -0
- package/esm2022/src/event/EventsManager.mjs +2988 -0
- package/{esm2020 → esm2022}/src/event/IEventsManager.mjs +6 -6
- package/esm2022/src/event/RunTimeEvent.mjs +399 -0
- package/{esm2020 → esm2022}/src/event/RunTimeEventBase.mjs +3 -3
- package/esm2022/src/event/UserEventsTable.mjs +47 -0
- package/esm2022/src/exp/ExpTable.mjs +57 -0
- package/esm2022/src/exp/Expression.mjs +200 -0
- package/esm2022/src/exp/ExpressionDict.mjs +727 -0
- package/esm2022/src/exp/ExpressionEvaluator.mjs +4206 -0
- package/esm2022/src/exp/ExpressionLocalJpn.mjs +314 -0
- package/esm2022/src/exp/GlobalParamsTable.mjs +85 -0
- package/esm2022/src/exp/YesNoExp.mjs +36 -0
- package/esm2022/src/gui/CreatedFormVector.mjs +23 -0
- package/esm2022/src/gui/FormsTable.mjs +66 -0
- package/esm2022/src/gui/MgControl.mjs +363 -0
- package/esm2022/src/gui/MgForm.mjs +1224 -0
- package/esm2022/src/http/HttpManager.mjs +97 -0
- package/esm2022/src/http/client/HttpClientAsync.mjs +68 -0
- package/esm2022/src/http/client/HttpClientBase.mjs +132 -0
- package/esm2022/src/http/client/HttpClientEvents.mjs +39 -0
- package/esm2022/src/http/client/HttpClientSync.mjs +42 -0
- package/esm2022/src/http/client/HttpUtility.mjs +84 -0
- package/{esm2020 → esm2022}/src/http/client/ICommunicationsFailureHandler.mjs +1 -1
- package/esm2022/src/remote/AddUserLocateRemoteDataViewCommand.mjs +18 -0
- package/esm2022/src/remote/AddUserRangeRemoteDataViewCommand.mjs +18 -0
- package/esm2022/src/remote/AddUserSortRemoteDataViewCommand.mjs +18 -0
- package/esm2022/src/remote/RemoteCommandsProcessor.mjs +880 -0
- package/esm2022/src/remote/RemoteControlItemsRefreshCommand.mjs +25 -0
- package/esm2022/src/remote/RemoteDataViewCommandBase.mjs +24 -0
- package/esm2022/src/remote/RemoteDataViewCommandFactory.mjs +61 -0
- package/{esm2020 → esm2022}/src/remote/RemoteDataViewCommandUpdateNonModifiable.mjs +15 -15
- package/{esm2020 → esm2022}/src/remote/RemoteDataviewManager.mjs +17 -17
- package/{esm2020 → esm2022}/src/remote/RemoteInitDataViewCommand.mjs +10 -10
- package/esm2022/src/remote/ResetUserLocateRemoteDataviewCommand.mjs +17 -0
- package/{esm2020 → esm2022}/src/remote/ResetUserRangeRemoteDataviewCommand.mjs +12 -12
- package/esm2022/src/remote/ResetUserSortRemoteDataviewCommand.mjs +16 -0
- package/esm2022/src/remote/ServerError.mjs +40 -0
- package/esm2022/src/remote/SetTransactionStateRemoteDataViewCommand.mjs +20 -0
- package/esm2022/src/rt/Argument.mjs +265 -0
- package/esm2022/src/rt/ArgumentsList.mjs +103 -0
- package/esm2022/src/rt/Boundary.mjs +152 -0
- package/esm2022/src/rt/CompMainPrgTable.mjs +63 -0
- package/{esm2020 → esm2022}/src/rt/DataviewHeaderBase.mjs +98 -96
- package/{esm2020 → esm2022}/src/rt/DataviewHeaderFactory.mjs +6 -6
- package/esm2022/src/rt/DataviewHeaders.mjs +53 -0
- package/esm2022/src/rt/DataviewHeadersSaxHandler.mjs +38 -0
- package/esm2022/src/rt/ExecutionStack.mjs +94 -0
- package/{esm2020 → esm2022}/src/rt/ExecutionStackEntry.mjs +17 -17
- package/esm2022/src/rt/HandlersTable.mjs +96 -0
- package/{esm2020 → esm2022}/src/rt/IDataSourceViewDefinition.mjs +1 -1
- package/{esm2020 → esm2022}/src/rt/IDataviewHeader.mjs +1 -1
- package/{esm2020 → esm2022}/src/rt/IResultValue.mjs +1 -1
- package/esm2022/src/rt/LastFocusedManager.mjs +65 -0
- package/esm2022/src/rt/Operation.mjs +735 -0
- package/esm2022/src/rt/OperationTable.mjs +67 -0
- package/esm2022/src/rt/Recompute.mjs +355 -0
- package/esm2022/src/rt/RecomputeTable.mjs +63 -0
- package/esm2022/src/rt/RemoteDataviewHeader.mjs +108 -0
- package/esm2022/src/rt/ResultValue.mjs +10 -0
- package/esm2022/src/rt/TableCache.mjs +177 -0
- package/esm2022/src/rt/TableCacheManager.mjs +67 -0
- package/esm2022/src/rt/Transaction.mjs +53 -0
- package/esm2022/src/security/UserDetails.mjs +71 -0
- package/{esm2020 → esm2022}/src/tasks/IMGDataCollection.mjs +1 -1
- package/esm2022/src/tasks/MGData.mjs +552 -0
- package/esm2022/src/tasks/MGDataCollection.mjs +252 -0
- package/esm2022/src/tasks/RCTimer.mjs +63 -0
- package/esm2022/src/tasks/RemoteTaskService.mjs +45 -0
- package/esm2022/src/tasks/Task.mjs +2499 -0
- package/esm2022/src/tasks/TaskBase.mjs +83 -0
- package/esm2022/src/tasks/TaskServiceBase.mjs +25 -0
- package/esm2022/src/tasks/TasksTable.mjs +80 -0
- package/esm2022/src/tasks/sort/Sort.mjs +5 -0
- package/esm2022/src/tasks/sort/SortCollection.mjs +67 -0
- package/esm2022/src/util/ConstUtils.mjs +14 -0
- package/esm2022/src/util/FlowMonitorQueue.mjs +451 -0
- package/esm2022/src/util/HeapSort.mjs +70 -0
- package/{esm2020 → esm2022}/src/util/IMirrorXML.mjs +1 -1
- package/{esm2020 → esm2022}/src/util/IServerConfig.mjs +1 -1
- package/{esm2020 → esm2022}/src/util/MgBlockingQueue.mjs +1 -1
- package/esm2022/src/util/MgPriorityBlockingQueue.mjs +74 -0
- package/esm2022/src/util/MgPriorityQueue.mjs +66 -0
- package/{esm2020 → esm2022}/src/util/ParamParseResult.mjs +7 -7
- package/esm2022/src/util/PrmMap.mjs +152 -0
- package/esm2022/src/util/ReturnResult.mjs +46 -0
- package/esm2022/src/util/ReturnResultBase.mjs +18 -0
- package/esm2022/src/util/Scrambler.mjs +89 -0
- package/esm2022/src/util/UniqueIDUtils.mjs +13 -0
- package/esm2022/src/util/cookie.service.mjs +92 -0
- package/{fesm2020 → fesm2022}/magic-xpa-engine.mjs +29797 -29693
- package/fesm2022/magic-xpa-engine.mjs.map +1 -0
- package/index.d.ts +187 -187
- package/package.json +8 -14
- package/src/AccessHelper.d.ts +20 -20
- package/src/ClientManager.d.ts +35 -32
- package/src/CommandsProcessorBase.d.ts +23 -23
- package/src/CommandsProcessorManager.d.ts +6 -6
- package/src/CommandsTable.d.ts +22 -22
- package/src/ConstInterface.d.ts +516 -515
- package/src/CurrentClientVersion.d.ts +1 -1
- package/src/FlowMonitorInterface.d.ts +15 -15
- package/src/GUIManager.d.ts +17 -17
- package/src/GlobalCommandsManager.d.ts +17 -17
- package/src/GuiEventsProcessor.d.ts +24 -24
- package/src/ICommandsTable.d.ts +9 -9
- package/src/ServerConfig.d.ts +35 -34
- package/src/bridge/IGuiEvent.d.ts +19 -19
- package/src/bridge/MagicBridge.d.ts +16 -16
- package/src/commands/ClientOriginatedCommandTaskTag.d.ts +8 -8
- package/src/commands/ClientToServer/AddUserLocateDataViewCommand.d.ts +4 -4
- package/src/commands/ClientToServer/AddUserRangeDataviewCommand.d.ts +6 -6
- package/src/commands/ClientToServer/AddUserSortDataViewCommand.d.ts +6 -6
- package/src/commands/ClientToServer/BrowserEscEventCommand.d.ts +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 +205 -204
- package/src/event/IEventsManager.d.ts +77 -77
- package/src/event/RunTimeEvent.d.ts +126 -123
- package/src/event/RunTimeEventBase.d.ts +5 -5
- package/src/event/UserEventsTable.d.ts +11 -11
- package/src/exp/ExpTable.d.ts +11 -11
- package/src/exp/Expression.d.ts +37 -37
- package/src/exp/ExpressionDict.d.ts +12 -12
- package/src/exp/ExpressionEvaluator.d.ts +198 -198
- package/src/exp/ExpressionLocalJpn.d.ts +18 -18
- package/src/exp/GlobalParamsTable.d.ts +19 -19
- package/src/exp/YesNoExp.d.ts +9 -9
- package/src/gui/CreatedFormVector.d.ts +10 -10
- package/src/gui/FormsTable.d.ts +15 -15
- package/src/gui/MgControl.d.ts +60 -60
- package/src/gui/MgForm.d.ts +96 -93
- package/src/http/HttpManager.d.ts +25 -25
- package/src/http/client/HttpClientAsync.d.ts +16 -16
- package/src/http/client/HttpClientBase.d.ts +30 -30
- package/src/http/client/HttpClientEvents.d.ts +18 -18
- package/src/http/client/HttpClientSync.d.ts +17 -17
- package/src/http/client/HttpUtility.d.ts +10 -10
- package/src/http/client/ICommunicationsFailureHandler.d.ts +5 -5
- package/src/remote/AddUserLocateRemoteDataViewCommand.d.ts +8 -8
- package/src/remote/AddUserRangeRemoteDataViewCommand.d.ts +8 -8
- package/src/remote/AddUserSortRemoteDataViewCommand.d.ts +8 -8
- package/src/remote/RemoteCommandsProcessor.d.ts +51 -51
- package/src/remote/RemoteControlItemsRefreshCommand.d.ts +8 -8
- package/src/remote/RemoteDataViewCommandBase.d.ts +10 -10
- package/src/remote/RemoteDataViewCommandFactory.d.ts +6 -6
- package/src/remote/RemoteDataViewCommandUpdateNonModifiable.d.ts +8 -8
- package/src/remote/RemoteDataviewManager.d.ts +9 -9
- package/src/remote/RemoteInitDataViewCommand.d.ts +7 -7
- package/src/remote/ResetUserLocateRemoteDataviewCommand.d.ts +7 -7
- package/src/remote/ResetUserRangeRemoteDataviewCommand.d.ts +7 -7
- package/src/remote/ResetUserSortRemoteDataviewCommand.d.ts +7 -7
- package/src/remote/ServerError.d.ts +16 -16
- package/src/remote/SetTransactionStateRemoteDataViewCommand.d.ts +8 -8
- package/src/rt/Argument.d.ts +36 -36
- package/src/rt/ArgumentsList.d.ts +24 -24
- package/src/rt/Boundary.d.ts +27 -27
- package/src/rt/CompMainPrgTable.d.ts +10 -10
- package/src/rt/DataviewHeaderBase.d.ts +34 -34
- package/src/rt/DataviewHeaderFactory.d.ts +5 -5
- package/src/rt/DataviewHeaders.d.ts +12 -12
- package/src/rt/DataviewHeadersSaxHandler.d.ts +10 -10
- package/src/rt/ExecutionStack.d.ts +22 -22
- package/src/rt/ExecutionStackEntry.d.ts +7 -7
- package/src/rt/HandlersTable.d.ts +19 -19
- package/src/rt/IDataSourceViewDefinition.d.ts +6 -6
- package/src/rt/IDataviewHeader.d.ts +10 -10
- package/src/rt/IResultValue.d.ts +4 -4
- package/src/rt/LastFocusedManager.d.ts +23 -23
- package/src/rt/Operation.d.ts +97 -97
- package/src/rt/OperationTable.d.ts +15 -15
- package/src/rt/Recompute.d.ts +41 -41
- package/src/rt/RecomputeTable.d.ts +9 -9
- package/src/rt/RemoteDataviewHeader.d.ts +14 -14
- package/src/rt/ResultValue.d.ts +7 -7
- package/src/rt/TableCache.d.ts +29 -29
- package/src/rt/TableCacheManager.d.ts +10 -10
- package/src/rt/Transaction.d.ts +23 -23
- package/src/security/UserDetails.d.ts +16 -16
- package/src/tasks/IMGDataCollection.d.ts +26 -26
- package/src/tasks/MGData.d.ts +63 -63
- package/src/tasks/MGDataCollection.d.ts +42 -42
- package/src/tasks/RCTimer.d.ts +13 -13
- package/src/tasks/RemoteTaskService.d.ts +16 -16
- package/src/tasks/Task.d.ts +312 -312
- package/src/tasks/TaskBase.d.ts +123 -123
- package/src/tasks/TaskServiceBase.d.ts +16 -16
- package/src/tasks/TasksTable.d.ts +21 -21
- package/src/tasks/sort/Sort.d.ts +4 -4
- package/src/tasks/sort/SortCollection.d.ts +11 -11
- package/src/util/ConstUtils.d.ts +3 -3
- package/src/util/FlowMonitorQueue.d.ts +70 -70
- package/src/util/HeapSort.d.ts +6 -6
- package/src/util/IMirrorXML.d.ts +6 -6
- package/src/util/IServerConfig.d.ts +11 -11
- package/src/util/MgBlockingQueue.d.ts +5 -5
- package/src/util/MgPriorityBlockingQueue.d.ts +17 -17
- package/src/util/MgPriorityQueue.d.ts +13 -13
- package/src/util/ParamParseResult.d.ts +6 -6
- package/src/util/PrmMap.d.ts +28 -28
- package/src/util/ReturnResult.d.ts +18 -18
- package/src/util/ReturnResultBase.d.ts +11 -11
- package/src/util/Scrambler.d.ts +10 -10
- package/src/util/UniqueIDUtils.d.ts +4 -4
- package/src/util/cookie.service.d.ts +8 -8
- package/esm2020/src/AccessHelper.mjs +0 -9
- package/esm2020/src/ClientManager.mjs +0 -399
- package/esm2020/src/CommandsProcessorBase.mjs +0 -58
- package/esm2020/src/CommandsProcessorManager.mjs +0 -26
- package/esm2020/src/CommandsTable.mjs +0 -162
- package/esm2020/src/ConstInterface.mjs +0 -516
- package/esm2020/src/FlowMonitorInterface.mjs +0 -16
- package/esm2020/src/GUIManager.mjs +0 -62
- package/esm2020/src/GlobalCommandsManager.mjs +0 -34
- package/esm2020/src/GuiEventsProcessor.mjs +0 -154
- package/esm2020/src/ServerConfig.mjs +0 -117
- package/esm2020/src/bridge/MagicBridge.mjs +0 -41
- package/esm2020/src/commands/ClientOriginatedCommandTaskTag.mjs +0 -11
- package/esm2020/src/commands/ClientToServer/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,226 +0,0 @@
|
|
1
|
-
import { Hashtable, NString, isUndefined } from "@magic-xpa/mscorelib";
|
2
|
-
import { JSON_Utils, Logger, Misc, MsgInterface, StrUtil, XMLConstants } from "@magic-xpa/utils";
|
3
|
-
import { ConstInterface } from "../ConstInterface";
|
4
|
-
import { CommandsProcessorManager } from "../CommandsProcessorManager";
|
5
|
-
const MLS_EOF_CHARS_TO_READ = 10;
|
6
|
-
const START_TAG = "<ErrorCodes>";
|
7
|
-
const END_TAG = "</ErrorCodes>";
|
8
|
-
export class LanguageData {
|
9
|
-
constructor() {
|
10
|
-
this._constMessages = null;
|
11
|
-
this._constMessagesContent = null;
|
12
|
-
this._constMessagesUrl = null;
|
13
|
-
this._mlsContent = null;
|
14
|
-
this._mlsFileUrl = null;
|
15
|
-
this._mlsStrings = null;
|
16
|
-
}
|
17
|
-
async fillData(parser) {
|
18
|
-
while (this.initInnerObjects(parser, parser.getNextTag())) {
|
19
|
-
}
|
20
|
-
await this.InitConstMessagesTable();
|
21
|
-
await this.fillMlsMessagesTable();
|
22
|
-
}
|
23
|
-
initInnerObjects(parser, foundTagName) {
|
24
|
-
if (foundTagName == null)
|
25
|
-
return false;
|
26
|
-
switch (foundTagName) {
|
27
|
-
case ConstInterface.MG_TAG_LANGUAGE:
|
28
|
-
parser.setCurrIndex(parser.getXMLdata().indexOf(XMLConstants.TAG_CLOSE, parser.getCurrIndex()) + 1);
|
29
|
-
break;
|
30
|
-
case ConstInterface.MG_TAG_CONSTMESSAGES: {
|
31
|
-
let endUrlValue;
|
32
|
-
parser.setCurrIndex(parser.getXMLdata().indexOf(XMLConstants.TAG_CLOSE, parser.getCurrIndex()) + 1);
|
33
|
-
endUrlValue = parser.getXMLdata().indexOf(XMLConstants.TAG_OPEN, parser.getCurrIndex());
|
34
|
-
this._constMessagesUrl = parser.getXMLsubstring(endUrlValue);
|
35
|
-
parser.setCurrIndex(endUrlValue);
|
36
|
-
break;
|
37
|
-
}
|
38
|
-
case ConstInterface.MG_TAG_CONSTMESSAGESCONTENT: {
|
39
|
-
let endUrlValue;
|
40
|
-
parser.setCurrIndex(parser.getXMLdata().indexOf(XMLConstants.TAG_CLOSE, parser.getCurrIndex()) + 1);
|
41
|
-
endUrlValue = parser.getXMLdata().indexOf(ConstInterface.MG_TAG_CONSTMESSAGESCONTENT, parser.getCurrIndex()) - 2;
|
42
|
-
this._constMessagesContent = parser.getXMLsubstring(endUrlValue);
|
43
|
-
parser.setCurrIndex(endUrlValue);
|
44
|
-
break;
|
45
|
-
}
|
46
|
-
case ConstInterface.MG_TAG_MLS_CONTENT: {
|
47
|
-
let endUrlValue;
|
48
|
-
parser.setCurrIndex(parser.getXMLdata().indexOf(XMLConstants.TAG_CLOSE, parser.getCurrIndex()) + 1);
|
49
|
-
endUrlValue = parser.getXMLdata().indexOf(ConstInterface.MG_TAG_MLS_CONTENT, parser.getCurrIndex()) - 2;
|
50
|
-
this._mlsContent = parser.getXMLsubstring(endUrlValue);
|
51
|
-
parser.setCurrIndex(endUrlValue);
|
52
|
-
if (!NString.IsNullOrEmpty(this._mlsContent)) {
|
53
|
-
if (this._mlsStrings != null) {
|
54
|
-
this._mlsStrings.Clear();
|
55
|
-
this._mlsStrings = null;
|
56
|
-
}
|
57
|
-
}
|
58
|
-
if (NString.IsNullOrEmpty(this._mlsContent) && this._mlsContent != null) {
|
59
|
-
this._mlsContent = null;
|
60
|
-
if (this._mlsStrings != null) {
|
61
|
-
this._mlsStrings.Clear();
|
62
|
-
this._mlsStrings = null;
|
63
|
-
}
|
64
|
-
}
|
65
|
-
break;
|
66
|
-
}
|
67
|
-
case ConstInterface.MG_TAG_MLS_FILE_URL: {
|
68
|
-
let endUrlValue;
|
69
|
-
parser.setCurrIndex(parser.getXMLdata().indexOf(XMLConstants.TAG_CLOSE, parser.getCurrIndex()) + 1);
|
70
|
-
endUrlValue = parser.getXMLdata().indexOf(XMLConstants.TAG_OPEN, parser.getCurrIndex());
|
71
|
-
this._mlsFileUrl = parser.getXMLsubstring(endUrlValue).trim();
|
72
|
-
if (!NString.IsNullOrEmpty(this._mlsFileUrl)) {
|
73
|
-
if (this._mlsStrings != null) {
|
74
|
-
this._mlsStrings.Clear();
|
75
|
-
this._mlsStrings = null;
|
76
|
-
}
|
77
|
-
}
|
78
|
-
else if (NString.IsNullOrEmpty(this._mlsFileUrl) && this._mlsFileUrl != null) {
|
79
|
-
this._mlsFileUrl = null;
|
80
|
-
if (this._mlsStrings != null) {
|
81
|
-
this._mlsStrings.Clear();
|
82
|
-
this._mlsStrings = null;
|
83
|
-
}
|
84
|
-
}
|
85
|
-
parser.setCurrIndex(endUrlValue);
|
86
|
-
break;
|
87
|
-
}
|
88
|
-
case ConstInterface.MG_TAG_CONSTMESSAGES_END:
|
89
|
-
case ConstInterface.MG_TAG_MLS_FILE_URL_END:
|
90
|
-
case ConstInterface.MG_TAG_CONSTMESSAGESCONTENT_END:
|
91
|
-
case ConstInterface.MG_TAG_MLS_CONTENT_END:
|
92
|
-
parser.setCurrIndex2EndOfTag();
|
93
|
-
break;
|
94
|
-
case ConstInterface.MG_TAG_LANGUAGE_END:
|
95
|
-
parser.setCurrIndex2EndOfTag();
|
96
|
-
return false;
|
97
|
-
default:
|
98
|
-
Logger.Instance.WriteExceptionToLogWithMsg("There is no such tag in LanguageData.initInnerObjects(): " + foundTagName);
|
99
|
-
return false;
|
100
|
-
}
|
101
|
-
return true;
|
102
|
-
}
|
103
|
-
getConstMessage(msgId) {
|
104
|
-
if (this._constMessages === null) {
|
105
|
-
this._constMessages = new Hashtable();
|
106
|
-
for (let i = 0; i <= MsgInterface.DefaultMessages.length - 1; i = i + 1) {
|
107
|
-
this._constMessages.set_Item(MsgInterface.DefaultMessages[i].MsgID, MsgInterface.DefaultMessages[i].MsgString);
|
108
|
-
}
|
109
|
-
}
|
110
|
-
return this._constMessages.get_Item(msgId);
|
111
|
-
}
|
112
|
-
async InitConstMessagesTable() {
|
113
|
-
try {
|
114
|
-
let msgsInCommentString = null;
|
115
|
-
if (this._constMessagesUrl != null || this._constMessagesContent != null) {
|
116
|
-
if (this._constMessagesUrl != null) {
|
117
|
-
try {
|
118
|
-
msgsInCommentString = await CommandsProcessorManager.GetContent(this._constMessagesUrl, true);
|
119
|
-
}
|
120
|
-
catch (err) {
|
121
|
-
Logger.Instance.WriteExceptionToLogWithMsg(NString.Format("Unknown message file: \"{0}\"", this._constMessagesUrl));
|
122
|
-
}
|
123
|
-
}
|
124
|
-
else {
|
125
|
-
msgsInCommentString = this._constMessagesContent;
|
126
|
-
}
|
127
|
-
if (msgsInCommentString != null) {
|
128
|
-
let startData = msgsInCommentString.indexOf(START_TAG);
|
129
|
-
let endData = msgsInCommentString.indexOf(END_TAG) + END_TAG.length;
|
130
|
-
let retrievedConstMessages = msgsInCommentString.substr(startData, (endData) - (startData));
|
131
|
-
this.fillConstMessagesTable(retrievedConstMessages);
|
132
|
-
}
|
133
|
-
}
|
134
|
-
else {
|
135
|
-
Logger.Instance.WriteDevToLog("'constMessagesUrl' and 'constMessagesContent' were not initialized.");
|
136
|
-
}
|
137
|
-
}
|
138
|
-
catch (ex) {
|
139
|
-
Logger.Instance.WriteExceptionToLog(ex);
|
140
|
-
}
|
141
|
-
}
|
142
|
-
fillConstMessagesTable(constMessages) {
|
143
|
-
try {
|
144
|
-
if (constMessages !== null) {
|
145
|
-
this._constMessages = new Hashtable();
|
146
|
-
JSON_Utils.JSONFromXML(constMessages, this.FillConstMessagesFromJSON.bind(this));
|
147
|
-
}
|
148
|
-
}
|
149
|
-
catch (ex) {
|
150
|
-
Logger.Instance.WriteExceptionToLog(ex);
|
151
|
-
}
|
152
|
-
}
|
153
|
-
FillConstMessagesFromJSON(error, result) {
|
154
|
-
if (error != null) {
|
155
|
-
throw error;
|
156
|
-
}
|
157
|
-
let errorMessages = result['ErrorCodes']['ErrorMessage'];
|
158
|
-
for (let i = 0; i < errorMessages.length; i++) {
|
159
|
-
let errorId = errorMessages[i]['$']['id'];
|
160
|
-
let errorMessage = errorMessages[i]['_'];
|
161
|
-
this._constMessages.set_Item(errorId, (isUndefined(errorMessage) ? "" : errorMessage.trim()));
|
162
|
-
}
|
163
|
-
}
|
164
|
-
translate(fromString) {
|
165
|
-
let toString = null;
|
166
|
-
if (this._mlsStrings == null)
|
167
|
-
return fromString;
|
168
|
-
try {
|
169
|
-
toString = this._mlsStrings.get_Item(fromString);
|
170
|
-
if (toString == null)
|
171
|
-
toString = fromString;
|
172
|
-
}
|
173
|
-
catch (e) {
|
174
|
-
console.log(e);
|
175
|
-
}
|
176
|
-
return toString;
|
177
|
-
}
|
178
|
-
async fillMlsMessagesTable() {
|
179
|
-
try {
|
180
|
-
if (this._mlsContent != null) {
|
181
|
-
if (this._mlsContent.length > 0) {
|
182
|
-
let linePairs = 0;
|
183
|
-
let srcLine = this._mlsContent + 3;
|
184
|
-
let transLine;
|
185
|
-
this._mlsStrings = new Hashtable();
|
186
|
-
let linesStr = this._mlsContent.substr(this._mlsContent.length - MLS_EOF_CHARS_TO_READ, 8);
|
187
|
-
linePairs = parseInt(linesStr.toString(), 16);
|
188
|
-
let tokens = StrUtil.tokenize(srcLine.toString(), "\n");
|
189
|
-
for (let pairNum = 0; pairNum < linePairs * 2; pairNum += 2) {
|
190
|
-
srcLine = tokens[pairNum].substr(0, tokens[pairNum].length - 1);
|
191
|
-
transLine = tokens[pairNum + 1].substr(0, tokens[pairNum + 1].length - 1);
|
192
|
-
if (this._mlsStrings.get_Item(srcLine.toString()) == null)
|
193
|
-
this._mlsStrings.set_Item(srcLine.toString(), transLine);
|
194
|
-
}
|
195
|
-
}
|
196
|
-
}
|
197
|
-
else if (this._mlsFileUrl != null) {
|
198
|
-
if (this._mlsFileUrl.startsWith("./"))
|
199
|
-
this._mlsFileUrl = NString.Replace(this._mlsFileUrl, './', './assets/cache/');
|
200
|
-
let contentStr = await CommandsProcessorManager.GetContent(this._mlsFileUrl, true);
|
201
|
-
let buffer = contentStr;
|
202
|
-
if (buffer != null && buffer.length > 0) {
|
203
|
-
let contentLen = buffer.length;
|
204
|
-
this._mlsStrings = new Hashtable();
|
205
|
-
let linesStr = buffer.substr(contentLen - MLS_EOF_CHARS_TO_READ, 8);
|
206
|
-
let linePairs = parseInt(linesStr, 16);
|
207
|
-
let srcLine;
|
208
|
-
let transLine;
|
209
|
-
let tokens = StrUtil.tokenize(buffer.toString(), "\n");
|
210
|
-
for (let pairNum = 0; pairNum < linePairs * 2; pairNum += 2) {
|
211
|
-
srcLine = tokens[pairNum].substr(0, tokens[pairNum].length - 1);
|
212
|
-
transLine = tokens[pairNum + 1].substr(0, tokens[pairNum + 1].length - 1);
|
213
|
-
if (this._mlsStrings.get_Item(srcLine) == null)
|
214
|
-
this._mlsStrings.set_Item(srcLine, transLine);
|
215
|
-
}
|
216
|
-
}
|
217
|
-
}
|
218
|
-
}
|
219
|
-
catch (e) {
|
220
|
-
Logger.Instance.WriteExceptionToLog(e);
|
221
|
-
Misc.WriteStackTrace(e);
|
222
|
-
}
|
223
|
-
}
|
224
|
-
}
|
225
|
-
LanguageData.Instance = new LanguageData();
|
226
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTGFuZ3VhZ2VEYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZW5naW5lL3NyYy9lbnYvTGFuZ3VhZ2VEYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxTQUFTLEVBQUUsT0FBTyxFQ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
|
1
|
-
import { ConstInterface } from "../ConstInterface";
|
2
|
-
import { ParamParseResult } from "../util/ParamParseResult";
|
3
|
-
import { XmlParser } from "@magic-xpa/utils";
|
4
|
-
import { Debug, NString } from "@magic-xpa/mscorelib";
|
5
|
-
export class MirrorString {
|
6
|
-
constructor(s) {
|
7
|
-
this._reserved = false;
|
8
|
-
this._value = null;
|
9
|
-
if (arguments.length === 0) {
|
10
|
-
this.constructor_0();
|
11
|
-
return;
|
12
|
-
}
|
13
|
-
this.constructor_1(s);
|
14
|
-
}
|
15
|
-
constructor_0() {
|
16
|
-
this._reserved = false;
|
17
|
-
}
|
18
|
-
constructor_1(s) {
|
19
|
-
this._value = s;
|
20
|
-
this._reserved = false;
|
21
|
-
}
|
22
|
-
mirrorToXML() {
|
23
|
-
return ConstInterface.MG_ATTR_ENV_VALUE + "=\"" + XmlParser.escape(this._value) + "\"";
|
24
|
-
}
|
25
|
-
init(name, xmlParser) {
|
26
|
-
let valueStart, valueEnd, reserveStart, paramEnd;
|
27
|
-
let xmlData = xmlParser.getXMLdata();
|
28
|
-
let valueAttr = ConstInterface.MG_ATTR_ENV_VALUE + "=\"";
|
29
|
-
paramEnd = xmlData.indexOf("/>", xmlParser.getCurrIndex());
|
30
|
-
valueStart = NString.IndexOf(xmlData, valueAttr, xmlParser.getCurrIndex(), paramEnd - xmlParser.getCurrIndex());
|
31
|
-
if (valueStart !== -1) {
|
32
|
-
valueStart += valueAttr.length;
|
33
|
-
reserveStart = NString.IndexOf(xmlData, ConstInterface.MG_ATTR_ENV_RESERVED + "=\"", xmlParser.getCurrIndex(), paramEnd - xmlParser.getCurrIndex());
|
34
|
-
valueEnd = reserveStart !== -1
|
35
|
-
? xmlData.indexOf(ConstInterface.MG_ATTR_ENV_RESERVED + "=\"", valueStart) - 2
|
36
|
-
: paramEnd - 1;
|
37
|
-
this._value = xmlData.substr(valueStart, valueEnd - valueStart).trim();
|
38
|
-
if (reserveStart !== -1) {
|
39
|
-
reserveStart += ConstInterface.MG_ATTR_ENV_RESERVED.length + 2;
|
40
|
-
this._reserved = (xmlData[reserveStart] === 'Y');
|
41
|
-
}
|
42
|
-
else
|
43
|
-
this._reserved = false;
|
44
|
-
xmlParser.setCurrIndex(valueEnd);
|
45
|
-
if (name.startsWith(ConstInterface.INI_SECTION_LOGICAL_NAMES_BRACKETS))
|
46
|
-
return ParamParseResult.OK;
|
47
|
-
else
|
48
|
-
return ParamParseResult.TOUPPER;
|
49
|
-
}
|
50
|
-
else if (NString.IndexOf(xmlData, ConstInterface.MG_ATTR_ENV_REMOVED, xmlParser.getCurrIndex(), paramEnd - xmlParser.getCurrIndex()) !== -1) {
|
51
|
-
return ParamParseResult.DELETE;
|
52
|
-
}
|
53
|
-
else {
|
54
|
-
Debug.Assert(false, "bad XML parsing");
|
55
|
-
return ParamParseResult.FAILED;
|
56
|
-
}
|
57
|
-
}
|
58
|
-
ToString() {
|
59
|
-
return this._value;
|
60
|
-
}
|
61
|
-
isReserved() {
|
62
|
-
return this._reserved;
|
63
|
-
}
|
64
|
-
}
|
65
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTWlycm9yU3RyaW5nLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZW5naW5lL3NyYy9lbnYvTWlycm9yU3RyaW5nLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNBLE9BQU8sRUFBQyxjQUFjLEVBQUMsTUFBTSxtQkFBbUIsQ0FBQztBQUNqRCxPQUFPLEVBQUMsZ0JBQWdCLEVBQUMsTUFBTSwwQkFBMEIsQ0FBQztBQUMxRCxPQUFPLEVBQUMsU0FBUyxFQUFDLE1BQU0sa0JBQWtCLENBQUM7QUFDM0MsT0FBTyxFQUFDLEtBQUssRUFBRSxPQUFPLEVBQUMsTUFBTSxzQkFBc0IsQ0FBQztBQUVwRCxNQUFNLE9BQU8sWU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YTUwgcGFyc2luZ1wiKTtcclxuICAgICAgcmV0dXJuIFBhcmFtUGFyc2VSZXN1bHQuRkFJTEVEO1xyXG4gICAgfVxyXG4gIH1cclxuXHJcbiAgLy8vIDxzdW1tYXJ5PlxyXG4gIC8vLyAgIHJldHVybiB0aGUgc3RyaW5nXHJcbiAgLy8vIDwvc3VtbWFyeT5cclxuICAvLy8gPHJldHVybnM+PC9yZXR1cm5zPlxyXG4gIFRvU3RyaW5nKCk6IHN0cmluZyB7XHJcbiAgICByZXR1cm4gdGhpcy5fdmFsdWU7XHJcbiAgfVxyXG5cclxuICAvLy8gPHN1bW1hcnk+XHJcbiAgLy8vICAgaXMgdGhlIHZhcmlhYmxlIHJlc2VydmVkP1xyXG4gIC8vLyA8L3N1bW1hcnk+XHJcbiAgLy8vIDxyZXR1cm5zPjwvcmV0dXJucz5cclxuICBpc1Jlc2VydmVkKCk6IGJvb2xlYW4ge1xyXG4gICAgcmV0dXJuIHRoaXMuX3Jlc2VydmVkO1xyXG4gIH1cclxufVxyXG4iXX0=
|
@@ -1,91 +0,0 @@
|
|
1
|
-
import { InternalInterface } from '@magic-xpa/utils';
|
2
|
-
export class ActionManager {
|
3
|
-
constructor() {
|
4
|
-
this._actCount = null;
|
5
|
-
this._actState = null;
|
6
|
-
this._numerator = 0;
|
7
|
-
this._numerator = 0;
|
8
|
-
this._actState = new Array(InternalInterface.MG_ACT_TOT_CNT);
|
9
|
-
for (let _ai = 0; _ai < this._actState.length; ++_ai)
|
10
|
-
this._actState[_ai] = false;
|
11
|
-
this._actCount = new Array(InternalInterface.MG_ACT_TOT_CNT);
|
12
|
-
for (let _ai = 0; _ai < this._actCount.length; ++_ai)
|
13
|
-
this._actCount[_ai] = 0;
|
14
|
-
}
|
15
|
-
enable(act, enable) {
|
16
|
-
this._actState[act] = enable;
|
17
|
-
if (enable) {
|
18
|
-
this._numerator++;
|
19
|
-
this._actCount[act] = this._numerator;
|
20
|
-
}
|
21
|
-
}
|
22
|
-
isEnabled(act) {
|
23
|
-
return this._actState[act];
|
24
|
-
}
|
25
|
-
getActCount(act) {
|
26
|
-
return this._actCount[act];
|
27
|
-
}
|
28
|
-
enableList(act, enable, onlyIfChanged) {
|
29
|
-
for (let i = 0; i < act.length; i = i + 1) {
|
30
|
-
let num = act[i];
|
31
|
-
let flag = !onlyIfChanged || this._actState[num] !== enable;
|
32
|
-
if (flag) {
|
33
|
-
this.enable(num, enable);
|
34
|
-
}
|
35
|
-
}
|
36
|
-
}
|
37
|
-
enableNavigationActions(enable) {
|
38
|
-
this.enableList(ActionManager.actNavigation, enable, false);
|
39
|
-
}
|
40
|
-
}
|
41
|
-
ActionManager.actEnabled = [
|
42
|
-
InternalInterface.MG_ACT_CLOSE, InternalInterface.MG_ACT_EXIT,
|
43
|
-
InternalInterface.MG_ACT_RTO_MODIFY,
|
44
|
-
InternalInterface.MG_ACT_RTO_CREATE,
|
45
|
-
InternalInterface.MG_ACT_RTO_QUERY, InternalInterface.MG_ACT_OK,
|
46
|
-
InternalInterface.MG_ACT_CANCEL,
|
47
|
-
InternalInterface.MG_ACT_TBL_PRVFLD,
|
48
|
-
InternalInterface.MG_ACT_TBL_NXTFLD,
|
49
|
-
InternalInterface.MG_ACT_TBL_BEGLINE,
|
50
|
-
InternalInterface.MG_ACT_TBL_ENDLINE,
|
51
|
-
InternalInterface.MG_ACT_TBL_BEGPAGE,
|
52
|
-
InternalInterface.MG_ACT_TAB_NEXT,
|
53
|
-
InternalInterface.MG_ACT_TAB_PREV,
|
54
|
-
InternalInterface.MG_ACT_TBL_ENDPAGE,
|
55
|
-
InternalInterface.MG_ACT_USING_HELP,
|
56
|
-
InternalInterface.MG_ACT_ABOUT,
|
57
|
-
InternalInterface.MG_ACT_CTRL_HIT, InternalInterface.MG_ACT_HIT,
|
58
|
-
InternalInterface.MG_ACT_WEB_ON_DBLICK,
|
59
|
-
InternalInterface.MG_ACT_WEB_CLICK,
|
60
|
-
InternalInterface.MG_ACT_RT_REFRESH_RECORD,
|
61
|
-
InternalInterface.MG_ACT_RT_REFRESH_SCREEN,
|
62
|
-
InternalInterface.MG_ACT_RT_REFRESH_VIEW,
|
63
|
-
InternalInterface.MG_ACT_RT_QUIT,
|
64
|
-
InternalInterface.MG_ACT_SERVER_TERMINATION,
|
65
|
-
InternalInterface.MG_ACT_SUBFORM_REFRESH,
|
66
|
-
InternalInterface.MG_ACT_SUBFORM_CLOSE,
|
67
|
-
InternalInterface.MG_ACT_EXIT_SYSTEM,
|
68
|
-
InternalInterface.MG_ACT_SUBFORM_OPEN,
|
69
|
-
InternalInterface.MG_ACT_COL_SORT,
|
70
|
-
InternalInterface.MG_ACT_CTRL_MODIFY,
|
71
|
-
InternalInterface.MG_ACT_ROLLBACK,
|
72
|
-
InternalInterface.MG_ACT_EXT_EVENT,
|
73
|
-
InternalInterface.MG_ACT_COL_CLICK,
|
74
|
-
InternalInterface.MG_ACT_PRESS,
|
75
|
-
InternalInterface.MG_ACT_ENABLE_EVENTS,
|
76
|
-
InternalInterface.MG_ACT_COL_FILTER,
|
77
|
-
InternalInterface.MG_ACT_INDEX_CHANGE,
|
78
|
-
InternalInterface.MG_ACT_WEBCLIENT_ROUTE,
|
79
|
-
InternalInterface.MG_ACT_SET_EXTERNAL_VALUE,
|
80
|
-
InternalInterface.MG_ACT_FETCH_RECORDS_AHEAD_FROM_SERVER,
|
81
|
-
InternalInterface.MG_ACT_CONTEXT_REMOVE
|
82
|
-
];
|
83
|
-
ActionManager.actNavigation = [
|
84
|
-
InternalInterface.MG_ACT_TBL_PRVLINE,
|
85
|
-
InternalInterface.MG_ACT_TBL_PRVPAGE,
|
86
|
-
InternalInterface.MG_ACT_TBL_BEGTBL,
|
87
|
-
InternalInterface.MG_ACT_TBL_NXTLINE,
|
88
|
-
InternalInterface.MG_ACT_TBL_NXTPAGE,
|
89
|
-
InternalInterface.MG_ACT_TBL_ENDTBL
|
90
|
-
];
|
91
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJma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