@magic-xpa/engine 4.1100.0-dev4110.2 → 4.1100.0-dev4110.202

Sign up to get free protection for your applications and to get access to all the features.
Files changed (515) hide show
  1. package/{esm2020 → esm2022}/index.mjs +188 -188
  2. package/{esm2020 → esm2022}/magic-xpa-engine.mjs +1 -1
  3. package/esm2022/src/AccessHelper.mjs +15 -0
  4. package/esm2022/src/ClientManager.mjs +409 -0
  5. package/esm2022/src/CommandsProcessorBase.mjs +56 -0
  6. package/esm2022/src/CommandsProcessorManager.mjs +26 -0
  7. package/esm2022/src/CommandsTable.mjs +162 -0
  8. package/esm2022/src/ConstInterface.mjs +517 -0
  9. package/{esm2020 → esm2022}/src/CurrentClientVersion.mjs +2 -2
  10. package/esm2022/src/FlowMonitorInterface.mjs +16 -0
  11. package/esm2022/src/GUIManager.mjs +62 -0
  12. package/esm2022/src/GlobalCommandsManager.mjs +34 -0
  13. package/esm2022/src/GuiEventsProcessor.mjs +157 -0
  14. package/{esm2020 → esm2022}/src/ICommandsTable.mjs +1 -1
  15. package/esm2022/src/ServerConfig.mjs +122 -0
  16. package/{esm2020 → esm2022}/src/bridge/IGuiEvent.mjs +19 -19
  17. package/{esm2020 → esm2022}/src/bridge/MagicBridge.mjs +40 -40
  18. package/esm2022/src/commands/ClientOriginatedCommandTaskTag.mjs +12 -0
  19. package/{esm2020 → esm2022}/src/commands/ClientToServer/AddUserLocateDataViewCommand.mjs +8 -8
  20. package/{esm2020 → esm2022}/src/commands/ClientToServer/AddUserRangeDataviewCommand.mjs +9 -9
  21. package/{esm2020 → esm2022}/src/commands/ClientToServer/AddUserSortDataViewCommand.mjs +9 -9
  22. package/{esm2020 → esm2022}/src/commands/ClientToServer/BrowserEscEventCommand.mjs +23 -23
  23. package/{esm2020 → esm2022}/src/commands/ClientToServer/ClientOriginatedCommand.mjs +14 -14
  24. package/esm2022/src/commands/ClientToServer/ClientOriginatedCommandSerializer.mjs +60 -0
  25. package/{esm2020 → esm2022}/src/commands/ClientToServer/ColumnSortEventCommand.mjs +26 -26
  26. package/esm2022/src/commands/ClientToServer/CommandFactory.mjs +260 -0
  27. package/esm2022/src/commands/ClientToServer/CommandSerializationHelper.mjs +67 -0
  28. package/{esm2020 → esm2022}/src/commands/ClientToServer/ComputeEventCommand.mjs +23 -23
  29. package/{esm2020 → esm2022}/src/commands/ClientToServer/ContextTerminationEventCommand.mjs +20 -20
  30. package/{esm2020 → esm2022}/src/commands/ClientToServer/ContextTimeoutResetCommand.mjs +19 -19
  31. package/{esm2020 → esm2022}/src/commands/ClientToServer/ControlItemsRefreshCommand.mjs +8 -8
  32. package/esm2022/src/commands/ClientToServer/DataViewOutputCommand.mjs +13 -0
  33. package/{esm2020 → esm2022}/src/commands/ClientToServer/DataviewCommand.mjs +44 -44
  34. package/esm2022/src/commands/ClientToServer/EvaluateCommand.mjs +37 -0
  35. package/esm2022/src/commands/ClientToServer/EventCommand.mjs +40 -0
  36. package/esm2022/src/commands/ClientToServer/ExecOperCommand.mjs +67 -0
  37. package/esm2022/src/commands/ClientToServer/FetchDataControlValuesEventCommand.mjs +22 -0
  38. package/{esm2020 → esm2022}/src/commands/ClientToServer/GlobalParamsQueryCommand.mjs +10 -10
  39. package/{esm2020 → esm2022}/src/commands/ClientToServer/ICommandTaskTag.mjs +1 -1
  40. package/{esm2020 → esm2022}/src/commands/ClientToServer/IndexChangeEventCommand.mjs +21 -21
  41. package/esm2022/src/commands/ClientToServer/IniputForceWriteCommand.mjs +23 -0
  42. package/{esm2020 → esm2022}/src/commands/ClientToServer/NonReversibleExitEventCommand.mjs +23 -23
  43. package/{esm2020 → esm2022}/src/commands/ClientToServer/QueryCommand.mjs +20 -20
  44. package/esm2022/src/commands/ClientToServer/RecomputeCommand.mjs +27 -0
  45. package/esm2022/src/commands/ClientToServer/RefreshEventCommand.mjs +27 -0
  46. package/esm2022/src/commands/ClientToServer/RefreshScreenEventCommand.mjs +24 -0
  47. package/esm2022/src/commands/ClientToServer/RollbackEventCommand.mjs +40 -0
  48. package/{esm2020 → esm2022}/src/commands/ClientToServer/SelectProgramCommand.mjs +14 -14
  49. package/{esm2020 → esm2022}/src/commands/ClientToServer/SetTransactionStateDataviewCommand.mjs +9 -9
  50. package/{esm2020 → esm2022}/src/commands/ClientToServer/SubformOpenEventCommand.mjs +21 -21
  51. package/esm2022/src/commands/ClientToServer/SubformRefreshEventCommand.mjs +24 -0
  52. package/esm2022/src/commands/ClientToServer/TransactionCommand.mjs +30 -0
  53. package/{esm2020 → esm2022}/src/commands/ClientToServer/UnloadCommand.mjs +14 -14
  54. package/esm2022/src/commands/ClientToServer/WriteMessageToServerLogCommand.mjs +18 -0
  55. package/esm2022/src/commands/DataViewCommandBase.mjs +8 -0
  56. package/{esm2020 → esm2022}/src/commands/IClientCommand.mjs +1 -1
  57. package/esm2022/src/commands/IClientTargetedCommand.mjs +13 -0
  58. package/{esm2020 → esm2022}/src/commands/IClientToServerCommandInfo.mjs +1 -1
  59. package/esm2022/src/commands/ServerToClient/AbortCommand.mjs +65 -0
  60. package/{esm2020 → esm2022}/src/commands/ServerToClient/AddLocateCommand.mjs +21 -21
  61. package/esm2022/src/commands/ServerToClient/AddRangeCommand.mjs +62 -0
  62. package/esm2022/src/commands/ServerToClient/AddSortCommand.mjs +33 -0
  63. package/esm2022/src/commands/ServerToClient/ClientRefreshCommand.mjs +25 -0
  64. package/esm2022/src/commands/ServerToClient/ClientTargetedCommandBase.mjs +24 -0
  65. package/esm2022/src/commands/ServerToClient/EnhancedVerifyCommand.mjs +45 -0
  66. package/esm2022/src/commands/ServerToClient/OpenURLCommand.mjs +221 -0
  67. package/{esm2020 → esm2022}/src/commands/ServerToClient/ResetLocateCommand.mjs +14 -14
  68. package/{esm2020 → esm2022}/src/commands/ServerToClient/ResetRangeCommand.mjs +14 -14
  69. package/{esm2020 → esm2022}/src/commands/ServerToClient/ResetSortCommand.mjs +14 -14
  70. package/esm2022/src/commands/ServerToClient/ResultCommand.mjs +37 -0
  71. package/esm2022/src/commands/ServerToClient/VerifyCommand.mjs +83 -0
  72. package/esm2022/src/commands/ServerToClient/XMLBasedCommandBuilder.mjs +132 -0
  73. package/{esm2020 → esm2022}/src/communications/IConnectionStateManager.mjs +1 -1
  74. package/esm2022/src/communications/InteractiveCommunicationsFailureHandler.mjs +15 -0
  75. package/{esm2020 → esm2022}/src/data/DataSourceIdKey.mjs +2 -2
  76. package/esm2022/src/data/DataView.mjs +1613 -0
  77. package/{esm2020 → esm2022}/src/data/DataViewBase.mjs +3 -3
  78. package/esm2022/src/data/DataviewManager.mjs +28 -0
  79. package/esm2022/src/data/DataviewManagerBase.mjs +15 -0
  80. package/esm2022/src/data/DvCache.mjs +67 -0
  81. package/esm2022/src/data/Field.mjs +646 -0
  82. package/esm2022/src/data/FieldBase.mjs +15 -0
  83. package/esm2022/src/data/FieldsTable.mjs +103 -0
  84. package/{esm2020 → esm2022}/src/data/IRecordsTable.mjs +1 -1
  85. package/esm2022/src/data/Key.mjs +88 -0
  86. package/esm2022/src/data/Record.mjs +866 -0
  87. package/{esm2020 → esm2022}/src/data/RecordOutOfDataViewException.mjs +15 -15
  88. package/esm2022/src/data/RecordsTable.mjs +267 -0
  89. package/esm2022/src/data/TaskTransactionManager.mjs +103 -0
  90. package/esm2022/src/data/XMLBasedDcValuesBuilder.mjs +74 -0
  91. package/{esm2020 → esm2022}/src/enums.mjs +23 -23
  92. package/esm2022/src/env/EnvVariablesTable.mjs +340 -0
  93. package/esm2022/src/env/Environment.mjs +487 -0
  94. package/{esm2020 → esm2022}/src/env/ILanguageData.mjs +1 -1
  95. package/esm2022/src/env/LanguageData.mjs +227 -0
  96. package/esm2022/src/env/MirrorString.mjs +65 -0
  97. package/esm2022/src/event/ActionManager.mjs +91 -0
  98. package/esm2022/src/event/Event.mjs +1333 -0
  99. package/esm2022/src/event/EventHandler.mjs +766 -0
  100. package/esm2022/src/event/EventHandlerPosition.mjs +204 -0
  101. package/esm2022/src/event/EventsManager.mjs +2988 -0
  102. package/{esm2020 → esm2022}/src/event/IEventsManager.mjs +6 -6
  103. package/esm2022/src/event/RunTimeEvent.mjs +399 -0
  104. package/{esm2020 → esm2022}/src/event/RunTimeEventBase.mjs +3 -3
  105. package/esm2022/src/event/UserEventsTable.mjs +47 -0
  106. package/esm2022/src/exp/ExpTable.mjs +57 -0
  107. package/esm2022/src/exp/Expression.mjs +200 -0
  108. package/esm2022/src/exp/ExpressionDict.mjs +727 -0
  109. package/esm2022/src/exp/ExpressionEvaluator.mjs +4206 -0
  110. package/esm2022/src/exp/ExpressionLocalJpn.mjs +314 -0
  111. package/esm2022/src/exp/GlobalParamsTable.mjs +85 -0
  112. package/esm2022/src/exp/YesNoExp.mjs +36 -0
  113. package/esm2022/src/gui/CreatedFormVector.mjs +23 -0
  114. package/esm2022/src/gui/FormsTable.mjs +66 -0
  115. package/esm2022/src/gui/MgControl.mjs +363 -0
  116. package/esm2022/src/gui/MgForm.mjs +1181 -0
  117. package/esm2022/src/http/HttpManager.mjs +97 -0
  118. package/esm2022/src/http/client/HttpClientAsync.mjs +68 -0
  119. package/esm2022/src/http/client/HttpClientBase.mjs +132 -0
  120. package/esm2022/src/http/client/HttpClientEvents.mjs +39 -0
  121. package/esm2022/src/http/client/HttpClientSync.mjs +42 -0
  122. package/esm2022/src/http/client/HttpUtility.mjs +84 -0
  123. package/{esm2020 → esm2022}/src/http/client/ICommunicationsFailureHandler.mjs +1 -1
  124. package/esm2022/src/remote/AddUserLocateRemoteDataViewCommand.mjs +18 -0
  125. package/esm2022/src/remote/AddUserRangeRemoteDataViewCommand.mjs +18 -0
  126. package/esm2022/src/remote/AddUserSortRemoteDataViewCommand.mjs +18 -0
  127. package/esm2022/src/remote/RemoteCommandsProcessor.mjs +882 -0
  128. package/esm2022/src/remote/RemoteControlItemsRefreshCommand.mjs +25 -0
  129. package/esm2022/src/remote/RemoteDataViewCommandBase.mjs +24 -0
  130. package/esm2022/src/remote/RemoteDataViewCommandFactory.mjs +61 -0
  131. package/{esm2020 → esm2022}/src/remote/RemoteDataViewCommandUpdateNonModifiable.mjs +15 -15
  132. package/{esm2020 → esm2022}/src/remote/RemoteDataviewManager.mjs +17 -17
  133. package/{esm2020 → esm2022}/src/remote/RemoteInitDataViewCommand.mjs +10 -10
  134. package/esm2022/src/remote/ResetUserLocateRemoteDataviewCommand.mjs +17 -0
  135. package/{esm2020 → esm2022}/src/remote/ResetUserRangeRemoteDataviewCommand.mjs +12 -12
  136. package/esm2022/src/remote/ResetUserSortRemoteDataviewCommand.mjs +16 -0
  137. package/esm2022/src/remote/ServerError.mjs +40 -0
  138. package/esm2022/src/remote/SetTransactionStateRemoteDataViewCommand.mjs +20 -0
  139. package/esm2022/src/rt/Argument.mjs +265 -0
  140. package/esm2022/src/rt/ArgumentsList.mjs +103 -0
  141. package/esm2022/src/rt/Boundary.mjs +152 -0
  142. package/esm2022/src/rt/CompMainPrgTable.mjs +63 -0
  143. package/{esm2020 → esm2022}/src/rt/DataviewHeaderBase.mjs +98 -96
  144. package/{esm2020 → esm2022}/src/rt/DataviewHeaderFactory.mjs +6 -6
  145. package/esm2022/src/rt/DataviewHeaders.mjs +53 -0
  146. package/esm2022/src/rt/DataviewHeadersSaxHandler.mjs +38 -0
  147. package/esm2022/src/rt/ExecutionStack.mjs +94 -0
  148. package/{esm2020 → esm2022}/src/rt/ExecutionStackEntry.mjs +17 -17
  149. package/esm2022/src/rt/HandlersTable.mjs +96 -0
  150. package/{esm2020 → esm2022}/src/rt/IDataSourceViewDefinition.mjs +1 -1
  151. package/{esm2020 → esm2022}/src/rt/IDataviewHeader.mjs +1 -1
  152. package/{esm2020 → esm2022}/src/rt/IResultValue.mjs +1 -1
  153. package/esm2022/src/rt/LastFocusedManager.mjs +65 -0
  154. package/esm2022/src/rt/Operation.mjs +735 -0
  155. package/esm2022/src/rt/OperationTable.mjs +67 -0
  156. package/esm2022/src/rt/Recompute.mjs +355 -0
  157. package/esm2022/src/rt/RecomputeTable.mjs +63 -0
  158. package/esm2022/src/rt/RemoteDataviewHeader.mjs +108 -0
  159. package/esm2022/src/rt/ResultValue.mjs +10 -0
  160. package/esm2022/src/rt/TableCache.mjs +177 -0
  161. package/esm2022/src/rt/TableCacheManager.mjs +67 -0
  162. package/esm2022/src/rt/Transaction.mjs +53 -0
  163. package/esm2022/src/security/UserDetails.mjs +71 -0
  164. package/{esm2020 → esm2022}/src/tasks/IMGDataCollection.mjs +1 -1
  165. package/esm2022/src/tasks/MGData.mjs +552 -0
  166. package/esm2022/src/tasks/MGDataCollection.mjs +252 -0
  167. package/esm2022/src/tasks/RCTimer.mjs +63 -0
  168. package/esm2022/src/tasks/RemoteTaskService.mjs +45 -0
  169. package/esm2022/src/tasks/Task.mjs +2498 -0
  170. package/esm2022/src/tasks/TaskBase.mjs +83 -0
  171. package/esm2022/src/tasks/TaskServiceBase.mjs +25 -0
  172. package/esm2022/src/tasks/TasksTable.mjs +80 -0
  173. package/esm2022/src/tasks/sort/Sort.mjs +5 -0
  174. package/esm2022/src/tasks/sort/SortCollection.mjs +67 -0
  175. package/esm2022/src/util/ConstUtils.mjs +14 -0
  176. package/esm2022/src/util/FlowMonitorQueue.mjs +451 -0
  177. package/esm2022/src/util/HeapSort.mjs +70 -0
  178. package/{esm2020 → esm2022}/src/util/IMirrorXML.mjs +1 -1
  179. package/{esm2020 → esm2022}/src/util/IServerConfig.mjs +1 -1
  180. package/{esm2020 → esm2022}/src/util/MgBlockingQueue.mjs +1 -1
  181. package/esm2022/src/util/MgPriorityBlockingQueue.mjs +74 -0
  182. package/esm2022/src/util/MgPriorityQueue.mjs +66 -0
  183. package/{esm2020 → esm2022}/src/util/ParamParseResult.mjs +7 -7
  184. package/esm2022/src/util/PrmMap.mjs +152 -0
  185. package/esm2022/src/util/ReturnResult.mjs +46 -0
  186. package/esm2022/src/util/ReturnResultBase.mjs +18 -0
  187. package/esm2022/src/util/Scrambler.mjs +89 -0
  188. package/esm2022/src/util/UniqueIDUtils.mjs +13 -0
  189. package/esm2022/src/util/cookie.service.mjs +92 -0
  190. package/{fesm2020 → fesm2022}/magic-xpa-engine.mjs +29750 -29694
  191. package/fesm2022/magic-xpa-engine.mjs.map +1 -0
  192. package/index.d.ts +187 -187
  193. package/package.json +8 -14
  194. package/src/AccessHelper.d.ts +20 -20
  195. package/src/ClientManager.d.ts +34 -32
  196. package/src/CommandsProcessorBase.d.ts +23 -23
  197. package/src/CommandsProcessorManager.d.ts +6 -6
  198. package/src/CommandsTable.d.ts +22 -22
  199. package/src/ConstInterface.d.ts +516 -515
  200. package/src/CurrentClientVersion.d.ts +1 -1
  201. package/src/FlowMonitorInterface.d.ts +15 -15
  202. package/src/GUIManager.d.ts +17 -17
  203. package/src/GlobalCommandsManager.d.ts +17 -17
  204. package/src/GuiEventsProcessor.d.ts +24 -24
  205. package/src/ICommandsTable.d.ts +9 -9
  206. package/src/ServerConfig.d.ts +35 -34
  207. package/src/bridge/IGuiEvent.d.ts +19 -19
  208. package/src/bridge/MagicBridge.d.ts +16 -16
  209. package/src/commands/ClientOriginatedCommandTaskTag.d.ts +8 -8
  210. package/src/commands/ClientToServer/AddUserLocateDataViewCommand.d.ts +4 -4
  211. package/src/commands/ClientToServer/AddUserRangeDataviewCommand.d.ts +6 -6
  212. package/src/commands/ClientToServer/AddUserSortDataViewCommand.d.ts +6 -6
  213. package/src/commands/ClientToServer/BrowserEscEventCommand.d.ts +8 -8
  214. package/src/commands/ClientToServer/ClientOriginatedCommand.d.ts +8 -8
  215. package/src/commands/ClientToServer/ClientOriginatedCommandSerializer.d.ts +6 -6
  216. package/src/commands/ClientToServer/ColumnSortEventCommand.d.ts +10 -10
  217. package/src/commands/ClientToServer/CommandFactory.d.ts +64 -64
  218. package/src/commands/ClientToServer/CommandSerializationHelper.d.ts +20 -20
  219. package/src/commands/ClientToServer/ComputeEventCommand.d.ts +8 -8
  220. package/src/commands/ClientToServer/ContextTerminationEventCommand.d.ts +7 -7
  221. package/src/commands/ClientToServer/ContextTimeoutResetCommand.d.ts +7 -7
  222. package/src/commands/ClientToServer/ControlItemsRefreshCommand.d.ts +6 -6
  223. package/src/commands/ClientToServer/DataViewOutputCommand.d.ts +9 -9
  224. package/src/commands/ClientToServer/DataviewCommand.d.ts +32 -32
  225. package/src/commands/ClientToServer/EvaluateCommand.d.ts +15 -15
  226. package/src/commands/ClientToServer/EventCommand.d.ts +15 -15
  227. package/src/commands/ClientToServer/ExecOperCommand.d.ts +23 -23
  228. package/src/commands/ClientToServer/FetchDataControlValuesEventCommand.d.ts +8 -8
  229. package/src/commands/ClientToServer/GlobalParamsQueryCommand.d.ts +5 -5
  230. package/src/commands/ClientToServer/ICommandTaskTag.d.ts +3 -3
  231. package/src/commands/ClientToServer/IndexChangeEventCommand.d.ts +8 -8
  232. package/src/commands/ClientToServer/IniputForceWriteCommand.d.ts +10 -10
  233. package/src/commands/ClientToServer/NonReversibleExitEventCommand.d.ts +8 -8
  234. package/src/commands/ClientToServer/QueryCommand.d.ts +8 -8
  235. package/src/commands/ClientToServer/RecomputeCommand.d.ts +11 -11
  236. package/src/commands/ClientToServer/RefreshEventCommand.d.ts +12 -12
  237. package/src/commands/ClientToServer/RefreshScreenEventCommand.d.ts +10 -10
  238. package/src/commands/ClientToServer/RollbackEventCommand.d.ts +14 -14
  239. package/src/commands/ClientToServer/SelectProgramCommand.d.ts +6 -6
  240. package/src/commands/ClientToServer/SetTransactionStateDataviewCommand.d.ts +5 -5
  241. package/src/commands/ClientToServer/SubformOpenEventCommand.d.ts +8 -8
  242. package/src/commands/ClientToServer/SubformRefreshEventCommand.d.ts +9 -9
  243. package/src/commands/ClientToServer/TransactionCommand.d.ts +12 -12
  244. package/src/commands/ClientToServer/UnloadCommand.d.ts +7 -7
  245. package/src/commands/ClientToServer/WriteMessageToServerLogCommand.d.ts +6 -6
  246. package/src/commands/DataViewCommandBase.d.ts +6 -6
  247. package/src/commands/IClientCommand.d.ts +2 -2
  248. package/src/commands/IClientTargetedCommand.d.ts +12 -12
  249. package/src/commands/IClientToServerCommandInfo.d.ts +3 -3
  250. package/src/commands/ServerToClient/AbortCommand.d.ts +11 -11
  251. package/src/commands/ServerToClient/AddLocateCommand.d.ts +6 -6
  252. package/src/commands/ServerToClient/AddRangeCommand.d.ts +10 -10
  253. package/src/commands/ServerToClient/AddSortCommand.d.ts +9 -9
  254. package/src/commands/ServerToClient/ClientRefreshCommand.d.ts +7 -7
  255. package/src/commands/ServerToClient/ClientTargetedCommandBase.d.ts +12 -12
  256. package/src/commands/ServerToClient/EnhancedVerifyCommand.d.ts +13 -13
  257. package/src/commands/ServerToClient/OpenURLCommand.d.ts +21 -21
  258. package/src/commands/ServerToClient/ResetLocateCommand.d.ts +6 -6
  259. package/src/commands/ServerToClient/ResetRangeCommand.d.ts +6 -6
  260. package/src/commands/ServerToClient/ResetSortCommand.d.ts +6 -6
  261. package/src/commands/ServerToClient/ResultCommand.d.ts +10 -10
  262. package/src/commands/ServerToClient/VerifyCommand.d.ts +17 -17
  263. package/src/commands/ServerToClient/XMLBasedCommandBuilder.d.ts +11 -11
  264. package/src/communications/IConnectionStateManager.d.ts +4 -4
  265. package/src/communications/InteractiveCommunicationsFailureHandler.d.ts +6 -6
  266. package/src/data/DataSourceIdKey.d.ts +2 -2
  267. package/src/data/DataView.d.ts +162 -162
  268. package/src/data/DataViewBase.d.ts +12 -12
  269. package/src/data/DataviewManager.d.ts +14 -14
  270. package/src/data/DataviewManagerBase.d.ts +11 -11
  271. package/src/data/DvCache.d.ts +15 -15
  272. package/src/data/Field.d.ts +103 -103
  273. package/src/data/FieldBase.d.ts +23 -23
  274. package/src/data/FieldsTable.d.ts +27 -27
  275. package/src/data/IRecordsTable.d.ts +7 -7
  276. package/src/data/Key.d.ts +15 -15
  277. package/src/data/Record.d.ts +156 -156
  278. package/src/data/RecordOutOfDataViewException.d.ts +10 -10
  279. package/src/data/RecordsTable.d.ts +38 -38
  280. package/src/data/TaskTransactionManager.d.ts +17 -17
  281. package/src/data/XMLBasedDcValuesBuilder.d.ts +11 -11
  282. package/src/enums.d.ts +21 -21
  283. package/src/env/EnvVariablesTable.d.ts +17 -17
  284. package/src/env/Environment.d.ts +118 -118
  285. package/src/env/ILanguageData.d.ts +3 -3
  286. package/src/env/LanguageData.d.ts +20 -20
  287. package/src/env/MirrorString.d.ts +15 -15
  288. package/src/event/ActionManager.d.ts +14 -14
  289. package/src/event/Event.d.ts +79 -79
  290. package/src/event/EventHandler.d.ts +66 -66
  291. package/src/event/EventHandlerPosition.d.ts +25 -25
  292. package/src/event/EventsManager.d.ts +205 -204
  293. package/src/event/IEventsManager.d.ts +77 -77
  294. package/src/event/RunTimeEvent.d.ts +126 -123
  295. package/src/event/RunTimeEventBase.d.ts +5 -5
  296. package/src/event/UserEventsTable.d.ts +11 -11
  297. package/src/exp/ExpTable.d.ts +11 -11
  298. package/src/exp/Expression.d.ts +37 -37
  299. package/src/exp/ExpressionDict.d.ts +12 -12
  300. package/src/exp/ExpressionEvaluator.d.ts +198 -198
  301. package/src/exp/ExpressionLocalJpn.d.ts +18 -18
  302. package/src/exp/GlobalParamsTable.d.ts +19 -19
  303. package/src/exp/YesNoExp.d.ts +9 -9
  304. package/src/gui/CreatedFormVector.d.ts +10 -10
  305. package/src/gui/FormsTable.d.ts +15 -15
  306. package/src/gui/MgControl.d.ts +60 -60
  307. package/src/gui/MgForm.d.ts +93 -93
  308. package/src/http/HttpManager.d.ts +25 -25
  309. package/src/http/client/HttpClientAsync.d.ts +16 -16
  310. package/src/http/client/HttpClientBase.d.ts +30 -30
  311. package/src/http/client/HttpClientEvents.d.ts +18 -18
  312. package/src/http/client/HttpClientSync.d.ts +17 -17
  313. package/src/http/client/HttpUtility.d.ts +10 -10
  314. package/src/http/client/ICommunicationsFailureHandler.d.ts +5 -5
  315. package/src/remote/AddUserLocateRemoteDataViewCommand.d.ts +8 -8
  316. package/src/remote/AddUserRangeRemoteDataViewCommand.d.ts +8 -8
  317. package/src/remote/AddUserSortRemoteDataViewCommand.d.ts +8 -8
  318. package/src/remote/RemoteCommandsProcessor.d.ts +51 -51
  319. package/src/remote/RemoteControlItemsRefreshCommand.d.ts +8 -8
  320. package/src/remote/RemoteDataViewCommandBase.d.ts +10 -10
  321. package/src/remote/RemoteDataViewCommandFactory.d.ts +6 -6
  322. package/src/remote/RemoteDataViewCommandUpdateNonModifiable.d.ts +8 -8
  323. package/src/remote/RemoteDataviewManager.d.ts +9 -9
  324. package/src/remote/RemoteInitDataViewCommand.d.ts +7 -7
  325. package/src/remote/ResetUserLocateRemoteDataviewCommand.d.ts +7 -7
  326. package/src/remote/ResetUserRangeRemoteDataviewCommand.d.ts +7 -7
  327. package/src/remote/ResetUserSortRemoteDataviewCommand.d.ts +7 -7
  328. package/src/remote/ServerError.d.ts +16 -16
  329. package/src/remote/SetTransactionStateRemoteDataViewCommand.d.ts +8 -8
  330. package/src/rt/Argument.d.ts +36 -36
  331. package/src/rt/ArgumentsList.d.ts +24 -24
  332. package/src/rt/Boundary.d.ts +27 -27
  333. package/src/rt/CompMainPrgTable.d.ts +10 -10
  334. package/src/rt/DataviewHeaderBase.d.ts +34 -34
  335. package/src/rt/DataviewHeaderFactory.d.ts +5 -5
  336. package/src/rt/DataviewHeaders.d.ts +12 -12
  337. package/src/rt/DataviewHeadersSaxHandler.d.ts +10 -10
  338. package/src/rt/ExecutionStack.d.ts +22 -22
  339. package/src/rt/ExecutionStackEntry.d.ts +7 -7
  340. package/src/rt/HandlersTable.d.ts +19 -19
  341. package/src/rt/IDataSourceViewDefinition.d.ts +6 -6
  342. package/src/rt/IDataviewHeader.d.ts +10 -10
  343. package/src/rt/IResultValue.d.ts +4 -4
  344. package/src/rt/LastFocusedManager.d.ts +23 -23
  345. package/src/rt/Operation.d.ts +97 -97
  346. package/src/rt/OperationTable.d.ts +15 -15
  347. package/src/rt/Recompute.d.ts +41 -41
  348. package/src/rt/RecomputeTable.d.ts +9 -9
  349. package/src/rt/RemoteDataviewHeader.d.ts +14 -14
  350. package/src/rt/ResultValue.d.ts +7 -7
  351. package/src/rt/TableCache.d.ts +29 -29
  352. package/src/rt/TableCacheManager.d.ts +10 -10
  353. package/src/rt/Transaction.d.ts +23 -23
  354. package/src/security/UserDetails.d.ts +16 -16
  355. package/src/tasks/IMGDataCollection.d.ts +26 -26
  356. package/src/tasks/MGData.d.ts +63 -63
  357. package/src/tasks/MGDataCollection.d.ts +42 -42
  358. package/src/tasks/RCTimer.d.ts +13 -13
  359. package/src/tasks/RemoteTaskService.d.ts +16 -16
  360. package/src/tasks/Task.d.ts +312 -312
  361. package/src/tasks/TaskBase.d.ts +123 -123
  362. package/src/tasks/TaskServiceBase.d.ts +16 -16
  363. package/src/tasks/TasksTable.d.ts +21 -21
  364. package/src/tasks/sort/Sort.d.ts +4 -4
  365. package/src/tasks/sort/SortCollection.d.ts +11 -11
  366. package/src/util/ConstUtils.d.ts +3 -3
  367. package/src/util/FlowMonitorQueue.d.ts +70 -70
  368. package/src/util/HeapSort.d.ts +6 -6
  369. package/src/util/IMirrorXML.d.ts +6 -6
  370. package/src/util/IServerConfig.d.ts +11 -11
  371. package/src/util/MgBlockingQueue.d.ts +5 -5
  372. package/src/util/MgPriorityBlockingQueue.d.ts +17 -17
  373. package/src/util/MgPriorityQueue.d.ts +13 -13
  374. package/src/util/ParamParseResult.d.ts +6 -6
  375. package/src/util/PrmMap.d.ts +28 -28
  376. package/src/util/ReturnResult.d.ts +18 -18
  377. package/src/util/ReturnResultBase.d.ts +11 -11
  378. package/src/util/Scrambler.d.ts +10 -10
  379. package/src/util/UniqueIDUtils.d.ts +4 -4
  380. package/src/util/cookie.service.d.ts +8 -8
  381. package/esm2020/src/AccessHelper.mjs +0 -9
  382. package/esm2020/src/ClientManager.mjs +0 -399
  383. package/esm2020/src/CommandsProcessorBase.mjs +0 -58
  384. package/esm2020/src/CommandsProcessorManager.mjs +0 -26
  385. package/esm2020/src/CommandsTable.mjs +0 -162
  386. package/esm2020/src/ConstInterface.mjs +0 -516
  387. package/esm2020/src/FlowMonitorInterface.mjs +0 -16
  388. package/esm2020/src/GUIManager.mjs +0 -62
  389. package/esm2020/src/GlobalCommandsManager.mjs +0 -34
  390. package/esm2020/src/GuiEventsProcessor.mjs +0 -154
  391. package/esm2020/src/ServerConfig.mjs +0 -117
  392. package/esm2020/src/commands/ClientOriginatedCommandTaskTag.mjs +0 -11
  393. package/esm2020/src/commands/ClientToServer/ClientOriginatedCommandSerializer.mjs +0 -60
  394. package/esm2020/src/commands/ClientToServer/CommandFactory.mjs +0 -260
  395. package/esm2020/src/commands/ClientToServer/CommandSerializationHelper.mjs +0 -69
  396. package/esm2020/src/commands/ClientToServer/DataViewOutputCommand.mjs +0 -13
  397. package/esm2020/src/commands/ClientToServer/EvaluateCommand.mjs +0 -36
  398. package/esm2020/src/commands/ClientToServer/EventCommand.mjs +0 -40
  399. package/esm2020/src/commands/ClientToServer/ExecOperCommand.mjs +0 -67
  400. package/esm2020/src/commands/ClientToServer/FetchDataControlValuesEventCommand.mjs +0 -22
  401. package/esm2020/src/commands/ClientToServer/IniputForceWriteCommand.mjs +0 -23
  402. package/esm2020/src/commands/ClientToServer/RecomputeCommand.mjs +0 -27
  403. package/esm2020/src/commands/ClientToServer/RefreshEventCommand.mjs +0 -27
  404. package/esm2020/src/commands/ClientToServer/RefreshScreenEventCommand.mjs +0 -24
  405. package/esm2020/src/commands/ClientToServer/RollbackEventCommand.mjs +0 -39
  406. package/esm2020/src/commands/ClientToServer/SubformRefreshEventCommand.mjs +0 -24
  407. package/esm2020/src/commands/ClientToServer/TransactionCommand.mjs +0 -28
  408. package/esm2020/src/commands/ClientToServer/WriteMessageToServerLogCommand.mjs +0 -18
  409. package/esm2020/src/commands/DataViewCommandBase.mjs +0 -10
  410. package/esm2020/src/commands/IClientTargetedCommand.mjs +0 -9
  411. package/esm2020/src/commands/ServerToClient/AbortCommand.mjs +0 -65
  412. package/esm2020/src/commands/ServerToClient/AddRangeCommand.mjs +0 -62
  413. package/esm2020/src/commands/ServerToClient/AddSortCommand.mjs +0 -33
  414. package/esm2020/src/commands/ServerToClient/ClientRefreshCommand.mjs +0 -25
  415. package/esm2020/src/commands/ServerToClient/ClientTargetedCommandBase.mjs +0 -27
  416. package/esm2020/src/commands/ServerToClient/EnhancedVerifyCommand.mjs +0 -45
  417. package/esm2020/src/commands/ServerToClient/OpenURLCommand.mjs +0 -221
  418. package/esm2020/src/commands/ServerToClient/ResultCommand.mjs +0 -37
  419. package/esm2020/src/commands/ServerToClient/VerifyCommand.mjs +0 -83
  420. package/esm2020/src/commands/ServerToClient/XMLBasedCommandBuilder.mjs +0 -132
  421. package/esm2020/src/communications/InteractiveCommunicationsFailureHandler.mjs +0 -17
  422. package/esm2020/src/data/DataView.mjs +0 -1610
  423. package/esm2020/src/data/DataviewManager.mjs +0 -28
  424. package/esm2020/src/data/DataviewManagerBase.mjs +0 -15
  425. package/esm2020/src/data/DvCache.mjs +0 -67
  426. package/esm2020/src/data/Field.mjs +0 -646
  427. package/esm2020/src/data/FieldBase.mjs +0 -18
  428. package/esm2020/src/data/FieldsTable.mjs +0 -103
  429. package/esm2020/src/data/Key.mjs +0 -88
  430. package/esm2020/src/data/Record.mjs +0 -846
  431. package/esm2020/src/data/RecordsTable.mjs +0 -267
  432. package/esm2020/src/data/TaskTransactionManager.mjs +0 -103
  433. package/esm2020/src/data/XMLBasedDcValuesBuilder.mjs +0 -74
  434. package/esm2020/src/env/EnvVariablesTable.mjs +0 -340
  435. package/esm2020/src/env/Environment.mjs +0 -489
  436. package/esm2020/src/env/LanguageData.mjs +0 -226
  437. package/esm2020/src/env/MirrorString.mjs +0 -65
  438. package/esm2020/src/event/ActionManager.mjs +0 -91
  439. package/esm2020/src/event/Event.mjs +0 -1333
  440. package/esm2020/src/event/EventHandler.mjs +0 -766
  441. package/esm2020/src/event/EventHandlerPosition.mjs +0 -204
  442. package/esm2020/src/event/EventsManager.mjs +0 -2975
  443. package/esm2020/src/event/RunTimeEvent.mjs +0 -392
  444. package/esm2020/src/event/UserEventsTable.mjs +0 -47
  445. package/esm2020/src/exp/ExpTable.mjs +0 -59
  446. package/esm2020/src/exp/Expression.mjs +0 -200
  447. package/esm2020/src/exp/ExpressionDict.mjs +0 -727
  448. package/esm2020/src/exp/ExpressionEvaluator.mjs +0 -4212
  449. package/esm2020/src/exp/ExpressionLocalJpn.mjs +0 -314
  450. package/esm2020/src/exp/GlobalParamsTable.mjs +0 -85
  451. package/esm2020/src/exp/YesNoExp.mjs +0 -36
  452. package/esm2020/src/gui/CreatedFormVector.mjs +0 -23
  453. package/esm2020/src/gui/FormsTable.mjs +0 -66
  454. package/esm2020/src/gui/MgControl.mjs +0 -353
  455. package/esm2020/src/gui/MgForm.mjs +0 -1181
  456. package/esm2020/src/http/HttpManager.mjs +0 -97
  457. package/esm2020/src/http/client/HttpClientAsync.mjs +0 -67
  458. package/esm2020/src/http/client/HttpClientBase.mjs +0 -132
  459. package/esm2020/src/http/client/HttpClientEvents.mjs +0 -39
  460. package/esm2020/src/http/client/HttpClientSync.mjs +0 -42
  461. package/esm2020/src/http/client/HttpUtility.mjs +0 -84
  462. package/esm2020/src/remote/AddUserLocateRemoteDataViewCommand.mjs +0 -18
  463. package/esm2020/src/remote/AddUserRangeRemoteDataViewCommand.mjs +0 -18
  464. package/esm2020/src/remote/AddUserSortRemoteDataViewCommand.mjs +0 -18
  465. package/esm2020/src/remote/RemoteCommandsProcessor.mjs +0 -880
  466. package/esm2020/src/remote/RemoteControlItemsRefreshCommand.mjs +0 -25
  467. package/esm2020/src/remote/RemoteDataViewCommandBase.mjs +0 -24
  468. package/esm2020/src/remote/RemoteDataViewCommandFactory.mjs +0 -61
  469. package/esm2020/src/remote/ResetUserLocateRemoteDataviewCommand.mjs +0 -17
  470. package/esm2020/src/remote/ResetUserSortRemoteDataviewCommand.mjs +0 -16
  471. package/esm2020/src/remote/ServerError.mjs +0 -40
  472. package/esm2020/src/remote/SetTransactionStateRemoteDataViewCommand.mjs +0 -20
  473. package/esm2020/src/rt/Argument.mjs +0 -265
  474. package/esm2020/src/rt/ArgumentsList.mjs +0 -103
  475. package/esm2020/src/rt/Boundary.mjs +0 -152
  476. package/esm2020/src/rt/CompMainPrgTable.mjs +0 -65
  477. package/esm2020/src/rt/DataviewHeaders.mjs +0 -53
  478. package/esm2020/src/rt/DataviewHeadersSaxHandler.mjs +0 -38
  479. package/esm2020/src/rt/ExecutionStack.mjs +0 -94
  480. package/esm2020/src/rt/HandlersTable.mjs +0 -96
  481. package/esm2020/src/rt/LastFocusedManager.mjs +0 -67
  482. package/esm2020/src/rt/Operation.mjs +0 -735
  483. package/esm2020/src/rt/OperationTable.mjs +0 -67
  484. package/esm2020/src/rt/Recompute.mjs +0 -355
  485. package/esm2020/src/rt/RecomputeTable.mjs +0 -63
  486. package/esm2020/src/rt/RemoteDataviewHeader.mjs +0 -108
  487. package/esm2020/src/rt/ResultValue.mjs +0 -12
  488. package/esm2020/src/rt/TableCache.mjs +0 -177
  489. package/esm2020/src/rt/TableCacheManager.mjs +0 -67
  490. package/esm2020/src/rt/Transaction.mjs +0 -53
  491. package/esm2020/src/security/UserDetails.mjs +0 -71
  492. package/esm2020/src/tasks/MGData.mjs +0 -552
  493. package/esm2020/src/tasks/MGDataCollection.mjs +0 -252
  494. package/esm2020/src/tasks/RCTimer.mjs +0 -63
  495. package/esm2020/src/tasks/RemoteTaskService.mjs +0 -45
  496. package/esm2020/src/tasks/Task.mjs +0 -2496
  497. package/esm2020/src/tasks/TaskBase.mjs +0 -87
  498. package/esm2020/src/tasks/TaskServiceBase.mjs +0 -25
  499. package/esm2020/src/tasks/TasksTable.mjs +0 -80
  500. package/esm2020/src/tasks/sort/Sort.mjs +0 -7
  501. package/esm2020/src/tasks/sort/SortCollection.mjs +0 -67
  502. package/esm2020/src/util/ConstUtils.mjs +0 -14
  503. package/esm2020/src/util/FlowMonitorQueue.mjs +0 -453
  504. package/esm2020/src/util/HeapSort.mjs +0 -70
  505. package/esm2020/src/util/MgPriorityBlockingQueue.mjs +0 -74
  506. package/esm2020/src/util/MgPriorityQueue.mjs +0 -66
  507. package/esm2020/src/util/PrmMap.mjs +0 -151
  508. package/esm2020/src/util/ReturnResult.mjs +0 -46
  509. package/esm2020/src/util/ReturnResultBase.mjs +0 -18
  510. package/esm2020/src/util/Scrambler.mjs +0 -89
  511. package/esm2020/src/util/UniqueIDUtils.mjs +0 -12
  512. package/esm2020/src/util/cookie.service.mjs +0 -92
  513. package/fesm2015/magic-xpa-engine.mjs +0 -30836
  514. package/fesm2015/magic-xpa-engine.mjs.map +0 -1
  515. package/fesm2020/magic-xpa-engine.mjs.map +0 -1
@@ -1,16 +0,0 @@
1
- export class FlowMonitorInterface {
2
- }
3
- FlowMonitorInterface.FLWMTR_START = 0;
4
- FlowMonitorInterface.FLWMTR_END = 1;
5
- FlowMonitorInterface.FLWMTR_PROPAGATE = 2;
6
- FlowMonitorInterface.FLWMTR_EVENT = 7;
7
- FlowMonitorInterface.FLWMTR_CHNG_MODE = 8;
8
- FlowMonitorInterface.FLWMTR_PREFIX = 15;
9
- FlowMonitorInterface.FLWMTR_SUFFIX = 16;
10
- FlowMonitorInterface.FLWMTR_CTRL_PREFIX = 18;
11
- FlowMonitorInterface.FLWMTR_CTRL_SUFFIX = 19;
12
- FlowMonitorInterface.FLWMTR_TSK_HANDLER = 20;
13
- FlowMonitorInterface.FLWMTR_RECOMP = 31;
14
- FlowMonitorInterface.FLWMTR_DATA_OPER = 41;
15
- FlowMonitorInterface.FLWMTR_VARCHG_VALUE = 119;
16
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRmxvd01vbml0b3JJbnRlcmZhY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9lbmdpbmUvc3JjL0Zsb3dNb25pdG9ySW50ZXJmYWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sT0FBTyxvQkFBb0I7O0FBQ3hCLGlDQUFZLEdBQVcsQ0FBQyxDQUFDO0FBQ3pCLCtCQUFVLEdBQVcsQ0FBQyxDQUFDO0FBQ3ZCLHFDQ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dGUgbWVzc2FnZXMgKi9cclxuICBzdGF0aWMgRkxXTVRSX1JFQ09NUDogbnVtYmVyID0gMzE7XHJcbiAgLyogT3BlcmF0aW9ucyBtZXNzYWdlcyAqL1xyXG4gIHN0YXRpYyBGTFdNVFJfREFUQV9PUEVSOiBudW1iZXIgPSA0MTtcclxuICAvKiBMT0cgbWVzc2FnZXMgKi9cclxuXHJcblxyXG4gIHN0YXRpYyBGTFdNVFJfVkFSQ0hHX1ZBTFVFOiBudW1iZXIgPSAxMTk7XHJcblxyXG59XHJcbiJdfQ==
@@ -1,62 +0,0 @@
1
- import { MsgInterface } from '@magic-xpa/utils';
2
- import { Commands, Manager, Styles } from '@magic-xpa/gui';
3
- import { RCTimer } from './tasks/RCTimer';
4
- import { LanguageData } from './env/LanguageData';
5
- import { AccessHelper } from './AccessHelper';
6
- export class GUIManager {
7
- static get Instance() {
8
- if (GUIManager._instance === null)
9
- GUIManager._instance = new GUIManager();
10
- return GUIManager._instance;
11
- }
12
- execGuiCommandQueue() {
13
- Commands.beginInvoke();
14
- }
15
- startTimer(mgData, seconds, isIdleTimer) {
16
- if (seconds > 0) {
17
- let objRCTimer = new RCTimer(mgData, seconds * 1000, isIdleTimer);
18
- (objRCTimer).Start();
19
- Commands.beginInvoke();
20
- }
21
- }
22
- stopTimer(mgData, seconds, isIdleTimer) {
23
- if (seconds > 0)
24
- RCTimer.StopTimer(mgData, seconds * 1000, isIdleTimer);
25
- }
26
- abort(form) {
27
- if (arguments.length === 1)
28
- this.abort_0(form);
29
- else
30
- this.abort_1();
31
- }
32
- abort_0(form) {
33
- if (form !== null) {
34
- Manager.Abort(form);
35
- }
36
- }
37
- abort_1() {
38
- for (let i = AccessHelper.mgDataTable.getSize(); i > 0; i--) {
39
- const task = AccessHelper.mgDataTable.getMGData(i - 1).getFirstTask();
40
- if (task !== null)
41
- this.abort(task.Form);
42
- }
43
- }
44
- async MessageBox(title, msg, style) {
45
- await AccessHelper.eventsManager.CheckAndShowSpinner(false);
46
- return await Commands.messageBox(title, msg, style);
47
- }
48
- async writeToMessageBox(titleId, msgId, style) {
49
- let title = LanguageData.Instance.getConstMessage(titleId);
50
- let msg = LanguageData.Instance.getConstMessage(msgId);
51
- return await this.MessageBox(title, msg, style);
52
- }
53
- async confirm(msgId, style) {
54
- return await this.writeToMessageBox(MsgInterface.CONFIRM_STR_WINDOW_TITLE, msgId, style);
55
- }
56
- async confirm_bool(msgId) {
57
- let retResult = await this.confirm(msgId, Styles.MSGBOX_BUTTON_OK_CANCEL);
58
- return retResult == Styles.MSGBOX_RESULT_OK;
59
- }
60
- }
61
- GUIManager._instance = null;
62
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiR1VJTWFuYWdlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2VuZ2luZS9zcmMvR1VJTWFuYWdlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUMsWUFBWSxFQUFDLE1BQU0sa0JBQWtCLENBQUM7QUFDOUMsT0FBTyxFQUFDLFFBQVEsRUFBRSxPQUFPLEVBQUUsTUFBTSxFQUFDLE1BQU0sZ0JBQWdCLENBQUM7QUFFekQsT0FBTyxFQUFDLE9BQU8sRUFBQyxNQUFNLGlCQUFpQixDQUFDO0FBR3hDLE9BQU8sRUFBQyxZQUFZLEVBQUMsTUFBTSxvQkFBb0IsQ0FBQztBQUNoRCxPQUFPLEVBQUMsWUFBWSxFQUFDLE1BQU0sZ0JBQWdCLENBQUM7QUFLNUMsTUFBTSxPQUFPLFVBQVU7SUFLckIsTUFBTSxLQUFLLFFBQVE7UUFDakIsSUFBSSxVQUFVLENBQUMsU0FBUyxLQUFLLElBQUk7WUFDL0IsVUFBVSxDQUFDLFNBQVMsR0FBRyxJQUFJLFVBQVUsRUFBRSxDQUFDO1FBQzFDLE9BQU8sVUFBVSxDQUFDLFN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GwgYmUgZGlzcGxheSBvbiB0aGUgY29udGVudCBvZiB0aGUgTWVzc2FnZSBCb3hcclxuICAvLy8gICByZXR1cm4gdHJ1ZSBpZiB0aGUgYnV0dG9uIFlFUyB3YXMgcHJlc3NlZFxyXG4gIC8vLyA8L3BhcmFtPlxyXG4gIHB1YmxpYyBhc3luYyBjb25maXJtX2Jvb2wobXNnSWQ6IHN0cmluZyk6IFByb21pc2U8Ym9vbGVhbj4ge1xyXG4gICAgbGV0IHJldFJlc3VsdDogbnVtYmVyID0gYXdhaXQgdGhpcy5jb25maXJtKG1zZ0lkLCBTdHlsZXMuTVNHQk9YX0JVVFRPTl9PS19DQU5DRUwpO1xyXG4gICAgcmV0dXJuIHJldFJlc3VsdCA9PSA8bnVtYmVyPlN0eWxlcy5NU0dCT1hfUkVTVUxUX09LO1xyXG4gIH1cclxufVxyXG4iXX0=
@@ -1,34 +0,0 @@
1
- import { List } from "@magic-xpa/mscorelib";
2
- export class GlobalCommandsManager {
3
- constructor() {
4
- this._CommandsExecutedAfterTaskStarted = null;
5
- this._cmdFrame = 0;
6
- this._unframedCmds = null;
7
- this._CommandsExecutedAfterTaskStarted = new List();
8
- this._cmdFrame = 0;
9
- this._unframedCmds = new List();
10
- }
11
- getCommandsExecutedAfterTaskStarted() {
12
- return this._CommandsExecutedAfterTaskStarted;
13
- }
14
- addCommandsExecutedAfterTaskStarted(cmd) {
15
- this._CommandsExecutedAfterTaskStarted.push(cmd);
16
- }
17
- removeCommandsExecutedAfterTaskStarted(cmd) {
18
- this._CommandsExecutedAfterTaskStarted.Remove(cmd);
19
- }
20
- add1toCmdFrame() {
21
- this._cmdFrame++;
22
- }
23
- getCmdFrame() {
24
- return this._cmdFrame;
25
- }
26
- addUnframedCmd(cmd) {
27
- this._unframedCmds.push(cmd);
28
- }
29
- getUnframedCmds() {
30
- return this._unframedCmds;
31
- }
32
- }
33
- GlobalCommandsManager.Instance = new GlobalCommandsManager();
34
- //# sourceMappingURL=data:application/json;base64,eyJ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kQWZ0ZXJUYXNrU3RhcnRlZChjbWQ6IElDbGllbnRUYXJnZXRlZENvbW1hbmQpOiB2b2lkIHtcclxuICAgIHRoaXMuX0NvbW1hbmRzRXhlY3V0ZWRBZnRlclRhc2tTdGFydGVkLlJlbW92ZShjbWQpO1xyXG4gIH1cclxuXHJcblxyXG4gIC8vLyA8c3VtbWFyeT4gYWRkIDEgdG8gY21kRnJhbWUgY291bnRlcjwvc3VtbWFyeT5cclxuICBhZGQxdG9DbWRGcmFtZSgpOiB2b2lkIHtcclxuICAgIHRoaXMuX2NtZEZyYW1lKys7XHJcbiAgfVxyXG5cclxuICAvLy8gPHN1bW1hcnk+IGdldCBjbWRGcmFtZSBjb3VudGVyPC9zdW1tYXJ5PlxyXG4gIGdldENtZEZyYW1lKCk6IG51bWJlciB7XHJcbiAgICByZXR1cm4gdGhpcy5fY21kRnJhbWU7XHJcbiAgfVxyXG5cclxuXHJcbiAgLy8vIDxzdW1tYXJ5PiBhZGRzIGEgY29tbWFuZCB0byB0aGUgbGlzdCBvZiBjb21tYW5kcyB3aGljaCBhcmUgbm90IGF0dGFjaGVkIHRvIGFueSB3aW5kb3cgeWV0PC9zdW1tYXJ5PlxyXG4gIGFkZFVuZnJhbWVkQ21kKGNtZDogSUNsaWVudENvbW1hbmQpOiB2b2lkIHtcclxuICAgIHRoaXMuX3VuZnJhbWVkQ21kcy5wdXNoKGNtZCk7XHJcbiAgfVxyXG5cclxuICAvLy8gPHN1bW1hcnk+IGdldCBjb21tYW5kcyB3aGljaCBhcmUgbm90IGluIGEgZnJhbWU8L3N1bW1hcnk+XHJcbiAgZ2V0VW5mcmFtZWRDbWRzKCk6IExpc3Q8SUNsaWVudENvbW1hbmQ+IHtcclxuICAgIHJldHVybiB0aGlzLl91bmZyYW1lZENtZHM7XHJcbiAgfVxyXG59XHJcbiJdfQ==
@@ -1,154 +0,0 @@
1
- import { CtrlButtonTypeGui, InternalInterface, Logger, MgControlType, Misc } from '@magic-xpa/utils';
2
- import { Events, EventsProcessor, RuntimeContextBase } from '@magic-xpa/gui';
3
- import { RunTimeEvent } from './event/RunTimeEvent';
4
- import { RCTimer } from './tasks/RCTimer';
5
- import { MGDataCollection } from './tasks/MGDataCollection';
6
- import { EventsManager } from './event/EventsManager';
7
- import { LanguageData } from './env/LanguageData';
8
- import { EnvParamsTable } from './env/EnvVariablesTable';
9
- import { LastFocusedManager } from './rt/LastFocusedManager';
10
- import { ServerConfig } from './ServerConfig';
11
- export class GuiEventsProcessor extends EventsProcessor {
12
- RegisterSubclassHandlers() {
13
- Events.FocusEvent = GuiEventsProcessor.processFocus;
14
- Events.FocusOnNonMagicControlEvent = GuiEventsProcessor.processFocusOnNonMagicControl;
15
- Events.MouseUpEvent = GuiEventsProcessor.processMouseUp;
16
- Events.SelectionEvent = GuiEventsProcessor.processSelection;
17
- Events.DisposeEvent = GuiEventsProcessor.processDispose;
18
- Events.TimerEvent = GuiEventsProcessor.ProcessTimer;
19
- Events.TableResizeEvent = GuiEventsProcessor.processTableResize;
20
- Events.GetRowsDataEvent = GuiEventsProcessor.processGetRowsData;
21
- Events.NonParkableLastParkedCtrlEvent = GuiEventsProcessor.OnNonParkableLastParkedCtrl;
22
- Events.ShowSessionStatisticsEvent = GuiEventsProcessor.ShowSessionStatistics;
23
- Events.WriteExceptionToLogEvent = Logger.Instance.WriteExceptionToLogWithMsg.bind(Logger.Instance);
24
- Events.WriteErrorToLogEvent = Logger.Instance.WriteErrorToLog.bind(Logger.Instance);
25
- Events.WriteWarningToLogEvent = Logger.Instance.WriteWarningToLogWithMsg.bind(Logger.Instance);
26
- Events.ShouldLogEvent = Logger.Instance.ShouldLog.bind(Logger.Instance);
27
- Events.WriteGuiToLogEvent = Logger.Instance.WriteGuiToLog.bind(Logger.Instance);
28
- Events.WriteDevToLogEvent = Logger.Instance.WriteDevToLog.bind(Logger.Instance);
29
- Events.TranslateEvent = LanguageData.Instance.translate.bind(LanguageData.Instance);
30
- Events.PeekEndOfWorkEvent = GuiEventsProcessor.peekEndOfWork;
31
- Events.TranslateLogicalNameEvent = EnvParamsTable.Instance.translate.bind(EnvParamsTable.Instance);
32
- Events.GetMainProgramEvent = GuiEventsProcessor.getMainProgram;
33
- Events.GetMessageStringEvent = LanguageData.Instance.getConstMessage.bind(LanguageData.Instance);
34
- Events.CtrlFocusEvent = GuiEventsProcessor.processCtrlFocus;
35
- Events.GetRuntimeContextEvent = GuiEventsProcessor.GetRuntimeContext;
36
- Events.SaveLastClickedCtrlEvent = GuiEventsProcessor.SaveLastClickedControlName;
37
- Events.SaveLastClickInfoEvent = GuiEventsProcessor.SaveLastClickInfo;
38
- Events.OnIsLogonRTLEvent = GuiEventsProcessor.IsLogonRTL;
39
- Events.ShouldAddEnterAsKeyEvent = GuiEventsProcessor.ShouldAddEnterAsKeyEvent;
40
- }
41
- constructor() {
42
- super();
43
- }
44
- static processCtrlFocus(iTask, mgControl) {
45
- LastFocusedManager.setLastFocusedControl(iTask, mgControl);
46
- }
47
- static processFocus(guiMgCtrl, line, isProduceClick, onMultiMark) {
48
- let mgControl = guiMgCtrl;
49
- EventsManager.Instance.addGuiTriggeredEventWithCtrlAndLineAndCodeAndIsProductClick(mgControl, InternalInterface.MG_ACT_CTRL_FOCUS, line, isProduceClick);
50
- }
51
- static processFocusOnNonMagicControl(guiMgCtrl) {
52
- let mgControl = guiMgCtrl;
53
- EventsManager.Instance.addGuiTriggeredEventWithCtrlAndCodeAndLine(mgControl, InternalInterface.MG_ACT_CTRL_FOCUS_ON_NON_MAGIC_CONTROL, mgControl.getDisplayLine(true));
54
- }
55
- static processMouseUp(guiMgCtrl, line) {
56
- let mgControl = guiMgCtrl;
57
- let rtEvt = new RunTimeEvent(mgControl, line, true);
58
- let produceClick = true;
59
- if (mgControl.Type === MgControlType.CTRL_TYPE_BUTTON && guiMgCtrl.ButtonStyle === CtrlButtonTypeGui.Hypertext)
60
- produceClick = false;
61
- rtEvt.setProduceClick(produceClick);
62
- rtEvt.setInternal(InternalInterface.MG_ACT_CTRL_MOUSEUP);
63
- EventsManager.Instance.addToTail(rtEvt);
64
- }
65
- static processDispose(guiMgForm) {
66
- let form = guiMgForm;
67
- let task = form.getTask();
68
- let mgd = task.getMGData();
69
- RCTimer.StopAll(mgd);
70
- if (mgd.IsAborting)
71
- MGDataCollection.Instance.deleteMGDataTree(mgd.GetId());
72
- }
73
- static ProcessTimer(mgTimer) {
74
- let mgd = mgTimer.GetMgdata();
75
- let task = mgd.getFirstTask();
76
- let seconds = Math.floor((mgTimer.TimerIntervalMiliSeconds) / 1000);
77
- let isIdle = mgTimer.IsIdleTimer;
78
- if (mgd.IsAborting)
79
- return;
80
- let rtEvt = new RunTimeEvent(task, true);
81
- rtEvt.setTimer(seconds, mgd.GetId(), isIdle);
82
- rtEvt.setMainPrgCreator(rtEvt.getTask());
83
- if (!isIdle)
84
- rtEvt.setCtrl(task.getLastParkedCtrl());
85
- rtEvt.setInternal(InternalInterface.MG_ACT_TIMER);
86
- EventsManager.Instance.addToTail(rtEvt);
87
- }
88
- static processTableResize(guiMgCtrl, newRowsInPage) {
89
- let mgControl = guiMgCtrl;
90
- if (mgControl != null) {
91
- let rtEvt = new RunTimeEvent(mgControl, newRowsInPage, true);
92
- rtEvt.setInternal(InternalInterface.MG_ACT_RESIZE);
93
- EventsManager.Instance.addToTail(rtEvt);
94
- }
95
- }
96
- static processGetRowsData(guiMgCtrl, desiredTopIndex, sendAll, lastFocusedVal) {
97
- let mgControl = guiMgCtrl;
98
- if (mgControl != null && mgControl.Type === MgControlType.CTRL_TYPE_TABLE) {
99
- let rtEvt = new RunTimeEvent(mgControl, desiredTopIndex, true);
100
- rtEvt.setInternal(InternalInterface.MG_ACT_ROW_DATA_CURR_PAGE);
101
- rtEvt.setSendAll(sendAll);
102
- rtEvt.LastFocusedVal = lastFocusedVal;
103
- EventsManager.Instance.addToTail(rtEvt);
104
- }
105
- }
106
- static OnNonParkableLastParkedCtrl(ctrl) {
107
- }
108
- static processSelection(val, guiMgCtrl, line, produceClick) {
109
- let mgControl = guiMgCtrl;
110
- if (mgControl.Type === MgControlType.CTRL_TYPE_BUTTON && mgControl.getForm().getTask().getLastParkedCtrl() !== mgControl)
111
- produceClick = true;
112
- if (guiMgCtrl.ConnectedControl) {
113
- let rtEvt = new RunTimeEvent(mgControl, +line, true);
114
- rtEvt.setInternal(InternalInterface.MG_ACT_ZOOM);
115
- rtEvt.setProduceClick(produceClick);
116
- EventsManager.Instance.addToTail(rtEvt);
117
- }
118
- else {
119
- let rtEvt = new RunTimeEvent(mgControl, +line, true);
120
- rtEvt.setInternal(InternalInterface.MG_ACT_SELECTION);
121
- rtEvt.setValue(val);
122
- rtEvt.setProduceClick(produceClick);
123
- EventsManager.Instance.addToTail(rtEvt);
124
- }
125
- }
126
- processKeyDown(guiMgForm, guiMgCtrl, modifier, keyCode, start, end, text, isActChar, suggestedValue, handled) {
127
- LastFocusedManager.Instance.LastActionTime = Misc.getSystemMilliseconds();
128
- return super.processKeyDown(guiMgForm, guiMgCtrl, modifier, keyCode, start, end, text, isActChar, suggestedValue, handled);
129
- }
130
- static peekEndOfWork() {
131
- return EventsManager.Instance.getEndOfWork();
132
- }
133
- static getMainProgram(contextID, ctlIdx) {
134
- return MGDataCollection.Instance.GetMainProgByCtlIdx(contextID, ctlIdx);
135
- }
136
- static GetRuntimeContext(contextID) {
137
- return RuntimeContextBase.Instance;
138
- }
139
- static SaveLastClickedControlName(ctrlName) {
140
- RuntimeContextBase.Instance.LastClickedCtrlName = ctrlName;
141
- }
142
- static SaveLastClickInfo(controlName, X, Y, offsetX, offsetY, LastClickCoordinatesAreInPixels) {
143
- RuntimeContextBase.Instance.SaveLastClickInfo(controlName, X, Y, offsetX, offsetY, LastClickCoordinatesAreInPixels);
144
- }
145
- static IsLogonRTL() {
146
- return ServerConfig.Instance.IsLogonRTL();
147
- }
148
- static ShowSessionStatistics() {
149
- }
150
- static ShouldAddEnterAsKeyEvent() {
151
- return false;
152
- }
153
- }
154
- //# sourceMappingURL=data:application/json;base64,eyJ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yQ29uZmlnLkluc3RhbmNlLklzTG9nb25SVEwoKTtcclxuICB9XHJcblxyXG4gIC8vLyA8c3VtbWFyeT5cclxuICAvLy8gPC9zdW1tYXJ5PlxyXG4gIHByaXZhdGUgc3RhdGljIFNob3dTZXNzaW9uU3RhdGlzdGljcygpOiB2b2lkIHtcclxuICB9XHJcblxyXG4gIC8vLyA8c3VtbWFyeT5cclxuICAvLy8gSW4gUklBLCBlbnRlciB3aWxsIGNhdXNlIGEga2V5Ym9hcmQgZXZlbnQgYWNjb3JkaW5nIHRvIHRoZSBPUy5cclxuICAvLy8gVGhpcyBpcyBtb3N0bHkgaW1wb3J0YW50IGZvciBkZWZhdWx0IGJ1dHRvbiwgd2hlcmUgRU5URVIgb24gYW55IGNvbnRyb2wgdHJpZ2dlcnMgY2xpY2sgZXZlbnQgb24gdGhlIGJ1dHRvbi5cclxuICAvLy8gPC9zdW1tYXJ5PlxyXG4gIC8vLyA8cmV0dXJucz48L3JldHVybnM+XHJcbiAgcHJpdmF0ZSBzdGF0aWMgU2hvdWxkQWRkRW50ZXJBc0tleUV2ZW50KCk6IGJvb2xlYW4ge1xyXG4gICAgcmV0dXJuIGZhbHNlO1xyXG4gIH1cclxuXHJcblxyXG59XHJcbiJdfQ==
@@ -1,117 +0,0 @@
1
- import { NString } from '@magic-xpa/mscorelib';
2
- import { GuiConstants } from '@magic-xpa/gui';
3
- import { ConstInterface } from './ConstInterface';
4
- import { HttpManager } from './http/HttpManager';
5
- export class ServerConfig {
6
- constructor() {
7
- this._protocol = null;
8
- this._server = null;
9
- this._httpReq = null;
10
- this._appName = null;
11
- this._serverUrl = null;
12
- }
13
- Init(obj) {
14
- this._executionProps = obj;
15
- }
16
- ShouldDisplayGenericError() {
17
- return this._executionProps.DisplayGenericError;
18
- }
19
- setUsername(username) {
20
- this._executionProps[ConstInterface.MG_TAG_USERNAME] = username;
21
- }
22
- setPassword(password) {
23
- this._executionProps[ConstInterface.MG_TAG_PASSWORD] = password;
24
- }
25
- setSkipAuthenticationDialog(value) {
26
- this._executionProps[ConstInterface.REQ_SKIP_AUTHENTICATION] = value.toString();
27
- }
28
- setGlobalParams(val) {
29
- if (val !== null)
30
- this._executionProps[ConstInterface.MG_TAG_GLOBALPARAMS] = val;
31
- else
32
- delete this._executionProps[ConstInterface.MG_TAG_GLOBALPARAMS];
33
- }
34
- getGlobalParams() {
35
- let ret = this._executionProps[ConstInterface.MG_TAG_GLOBALPARAMS];
36
- return typeof ret === "undefined" ? null : ret;
37
- }
38
- getProtocol() {
39
- if (this._protocol === null)
40
- this._protocol = this._executionProps.protocol;
41
- return this._protocol;
42
- }
43
- getServer() {
44
- if (this._server === null)
45
- this._server = this._executionProps.server;
46
- return this._server;
47
- }
48
- getHttpReq() {
49
- if (this._httpReq === null) {
50
- this._httpReq = this._executionProps.requester;
51
- if (this._httpReq !== null) {
52
- while (this._httpReq.startsWith("/"))
53
- this._httpReq = this._httpReq.substr(1);
54
- while (this._httpReq.endsWith("/"))
55
- this._httpReq = this._httpReq.substr(0, this._httpReq.length - 1);
56
- }
57
- }
58
- return this._httpReq;
59
- }
60
- getAppName() {
61
- if (this._appName === null)
62
- this._appName = this._executionProps.appname;
63
- return this._appName;
64
- }
65
- getInternalLogLevel() {
66
- return this._executionProps.InternalLogLevel;
67
- }
68
- setInternalLogLevel(value) {
69
- this._executionProps.InternalLogLevel = value;
70
- }
71
- getInternalLogSync() {
72
- return this._executionProps.InternalLogSync;
73
- }
74
- getUsername() {
75
- let ret = this._executionProps[ConstInterface.MG_TAG_USERNAME];
76
- return typeof ret === "undefined" ? null : ret;
77
- }
78
- getPassword() {
79
- let ret = this._executionProps[ConstInterface.MG_TAG_PASSWORD];
80
- return typeof ret === "undefined" ? null : ret;
81
- }
82
- getCtxGroup() {
83
- let ret = this._executionProps[ConstInterface.CTX_GROUP];
84
- return typeof ret === "undefined" ? null : ret;
85
- }
86
- setCtxGroup(CtxGroup) {
87
- this._executionProps[ConstInterface.CTX_GROUP] = CtxGroup;
88
- }
89
- getSkipAuthenticationDialog() {
90
- let property = this._executionProps[ConstInterface.REQ_SKIP_AUTHENTICATION];
91
- return !NString.IsNullOrEmpty(property) && property === true.toString();
92
- }
93
- GetFirstHttpRequestTimeout() {
94
- let firstHttpTimeout = this._executionProps.FirstHTTPRequestTimeout;
95
- return ((firstHttpTimeout > 0) ? (firstHttpTimeout * 1000) : HttpManager.DEFAULT_OFFLINE_HTTP_COMMUNICATION_TIMEOUT);
96
- }
97
- GetExecutionProperty(propName) {
98
- let ret = this._executionProps[propName];
99
- return typeof ret === "undefined" ? null : ret;
100
- }
101
- getServerURL() {
102
- if (this._serverUrl === null) {
103
- let httpReq = ServerConfig.Instance.getHttpReq();
104
- if (httpReq !== null && httpReq.toLowerCase().startsWith("http"))
105
- this._serverUrl = httpReq;
106
- else
107
- this._serverUrl = ServerConfig.Instance.getProtocol() + "://" + ServerConfig.Instance.getServer() + "/" + ServerConfig.Instance.getHttpReq();
108
- }
109
- return this._serverUrl;
110
- }
111
- IsLogonRTL() {
112
- let text = ServerConfig.Instance.GetExecutionProperty[GuiConstants.STR_LOGON_RTL];
113
- return text !== null && typeof text !== "undefined" && text === "Y";
114
- }
115
- }
116
- ServerConfig.Instance = new ServerConfig();
117
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU2VydmVyQ29uZmlnLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZW5naW5lL3NyYy9TZXJ2ZXJDb25maWcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLE9BQU8sRUFBRSxNQUFNLHNCQUFzQixDQUFDO0FBQy9DLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUU5QyxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0sa0JBQWtCLENBQUM7QUFDbEQsT0FBTyxFQUF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HBSZXEgIT09IG51bGwgJiYgaHR0cFJlcS50b0xvd2VyQ2FzZSgpLnN0YXJ0c1dpdGgoXCJodHRwXCIpKVxyXG4gICAgICAgIHRoaXMuX3NlcnZlclVybCA9IGh0dHBSZXE7XHJcbiAgICAgIGVsc2VcclxuICAgICAgICB0aGlzLl9zZXJ2ZXJVcmwgPSBTZXJ2ZXJDb25maWcuSW5zdGFuY2UuZ2V0UHJvdG9jb2woKSArIFwiOi8vXCIgKyBTZXJ2ZXJDb25maWcuSW5zdGFuY2UuZ2V0U2VydmVyKCkgKyBcIi9cIiArIFNlcnZlckNvbmZpZy5JbnN0YW5jZS5nZXRIdHRwUmVxKCk7XHJcbiAgICB9XHJcblxyXG4gICAgcmV0dXJuIHRoaXMuX3NlcnZlclVybDtcclxuICB9XHJcblxyXG4gIElzTG9nb25SVEwoKTogYm9vbGVhbiB7XHJcbiAgICBsZXQgdGV4dDogc3RyaW5nID0gU2VydmVyQ29uZmlnLkluc3RhbmNlLkdldEV4ZWN1dGlvblByb3BlcnR5W0d1aUNvbnN0YW50cy5TVFJfTE9HT05fUlRMXTtcclxuICAgIHJldHVybiB0ZXh0ICE9PSBudWxsICYmIHR5cGVvZiB0ZXh0ICE9PSBcInVuZGVmaW5lZFwiICYmIHRleHQgPT09IFwiWVwiO1xyXG4gIH1cclxufVxyXG4iXX0=
@@ -1,11 +0,0 @@
1
- import { ClientOriginatedCommand } from "./ClientToServer/ClientOriginatedCommand";
2
- import { AccessHelper } from "../AccessHelper";
3
- export class ClientOriginatedCommandTaskTag extends ClientOriginatedCommand {
4
- constructor() {
5
- super();
6
- }
7
- get Task() {
8
- return AccessHelper.mgDataTable.getCurrMGData().getTask(this.TaskTag);
9
- }
10
- }
11
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ2xpZW50T3JpZ2luYXRlZENvbW1hbmRUYXNrVGFnLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi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pXHJcbiAge1xyXG4gICAgc3VwZXIoKTtcclxuICB9XHJcblxyXG4gIGdldCBUYXNrKCk6IFRhc2sge1xyXG4gICAgcmV0dXJuIEFjY2Vzc0hlbHBlci5tZ0RhdGFUYWJsZS5nZXRDdXJyTUdEYXRhKCkuZ2V0VGFzayh0aGlzLlRhc2tUYWcpO1xyXG4gIH1cclxufVxyXG4iXX0=
@@ -1,60 +0,0 @@
1
- import { Logger, XMLConstants } from "@magic-xpa/utils";
2
- import { Exception, RefParam, StringBuilder } from "@magic-xpa/mscorelib";
3
- import { ConstInterface } from "../../ConstInterface";
4
- import { LastFocusedManager } from "../../rt/LastFocusedManager";
5
- export class ClientOriginatedCommandSerializer {
6
- static Serialize(cmd, currMGData) {
7
- if (!cmd.ShouldSerialize)
8
- return null;
9
- let message = new StringBuilder();
10
- let hasChildElements = false;
11
- message.Append(XMLConstants.START_TAG + ConstInterface.MG_TAG_COMMAND);
12
- message.Append(" " + XMLConstants.MG_ATTR_TYPE + "=\"" + cmd.CommandTypeAttribute + "\"");
13
- let refHasChildElements = new RefParam(hasChildElements);
14
- message.Append(cmd.SerializeCommandData());
15
- hasChildElements = refHasChildElements.value;
16
- if (cmd.ShouldSerializeRecords)
17
- message.Append(ClientOriginatedCommandSerializer.SerializeRecords(currMGData));
18
- if (hasChildElements)
19
- message.Append(XMLConstants.TAG_CLOSE);
20
- else
21
- message.Append(XMLConstants.TAG_TERM);
22
- message.Append(cmd.SerializeDataAfterCommand());
23
- return message.ToString();
24
- }
25
- static SerializeRecords(currMGData) {
26
- let message = new StringBuilder();
27
- try {
28
- let length = currMGData.getTasksCount();
29
- let titleExist = false;
30
- let currFocusedTask = LastFocusedManager.Instance.getLastFocusedTask();
31
- for (let i = 0; i < length; i++) {
32
- let task = currMGData.getTask(i);
33
- let ctrl = task.getLastParkedCtrl();
34
- if (ctrl !== null) {
35
- if (!titleExist) {
36
- message.Append(" " + ConstInterface.MG_ATTR_FOCUSLIST + "=\"");
37
- titleExist = true;
38
- }
39
- else
40
- message.Append('$');
41
- message.Append(task.getTaskTag() + ",");
42
- message.Append(task.getLastParkedCtrl().getDitIdx());
43
- }
44
- }
45
- if (titleExist)
46
- message.Append("\"");
47
- if (currFocusedTask !== null)
48
- message.Append(" " + ConstInterface.MG_ATTR_FOCUSTASK + "=\"" + currFocusedTask.getTaskTag() + "\"");
49
- }
50
- catch (ex) {
51
- if (ex instanceof Exception) {
52
- Logger.Instance.WriteExceptionToLog(ex);
53
- }
54
- else
55
- throw ex;
56
- }
57
- return message.ToString();
58
- }
59
- }
60
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ2xpZW50T3JpZ2luYXRlZENvbW1hbmRTZXJpYWxpemVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZW5naW5lL3NyYy9jb21tYW5kcy9DbGllbnRUb1NlcnZlci9DbGllbnRPcmlnaW5hdGVkQ29tbWFuZFNlcmlhbGl6ZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLE1BQU0sRUFBRSxZQUFZLEVBQUMsTUFBTSxrQkFBa0IsQ0FBQztBQUN0RCxPQUFPLEVBQUMsU0FBUyxFQUFFLFFBQVEsRUFBRSxhQUFhLEVBQUMsTUFBTSxzQkFBc0IsQ0FBQztBQUd4RSxPQUFPLEVBQUMsY0FBYyxFQUFDLE1BQU0sc0JBQXNCLENBQUM7QUFHcEQsT0FBTyxFQUFDLGtCQUFrQixFQUFDLE1BQU0sNkJBQTZCLENBQUM7QUFFL0QsTUFBTSxPQUFPLGlDQUFpQztJQU1yQyxNQUFNLENBQUMsU0FBUyxDQUFDLEdBQTRCLEVBQUUsVUFBa0I7UUFDcEUsSUFBSSxDQUFDLEdBQUcsQ0FBQyxlQUFlO1lBQ3RCLE9BQU8sSUFBSSxDQUFDO1FBRWQsSUFBSSxPQ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