@magic-xpa/engine 4.1100.0-dev4110.24 → 4.1100.0-dev4110.241

Sign up to get free protection for your applications and to get access to all the features.
Files changed (516) 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 +416 -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 +156 -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/esm2022/src/bridge/MagicBridge.mjs +41 -0
  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 +1224 -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 +880 -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 +2499 -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 +29797 -29693
  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 +35 -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 +96 -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/bridge/MagicBridge.mjs +0 -41
  393. package/esm2020/src/commands/ClientOriginatedCommandTaskTag.mjs +0 -11
  394. package/esm2020/src/commands/ClientToServer/ClientOriginatedCommandSerializer.mjs +0 -60
  395. package/esm2020/src/commands/ClientToServer/CommandFactory.mjs +0 -260
  396. package/esm2020/src/commands/ClientToServer/CommandSerializationHelper.mjs +0 -69
  397. package/esm2020/src/commands/ClientToServer/DataViewOutputCommand.mjs +0 -13
  398. package/esm2020/src/commands/ClientToServer/EvaluateCommand.mjs +0 -36
  399. package/esm2020/src/commands/ClientToServer/EventCommand.mjs +0 -40
  400. package/esm2020/src/commands/ClientToServer/ExecOperCommand.mjs +0 -67
  401. package/esm2020/src/commands/ClientToServer/FetchDataControlValuesEventCommand.mjs +0 -22
  402. package/esm2020/src/commands/ClientToServer/IniputForceWriteCommand.mjs +0 -23
  403. package/esm2020/src/commands/ClientToServer/RecomputeCommand.mjs +0 -27
  404. package/esm2020/src/commands/ClientToServer/RefreshEventCommand.mjs +0 -27
  405. package/esm2020/src/commands/ClientToServer/RefreshScreenEventCommand.mjs +0 -24
  406. package/esm2020/src/commands/ClientToServer/RollbackEventCommand.mjs +0 -39
  407. package/esm2020/src/commands/ClientToServer/SubformRefreshEventCommand.mjs +0 -24
  408. package/esm2020/src/commands/ClientToServer/TransactionCommand.mjs +0 -28
  409. package/esm2020/src/commands/ClientToServer/WriteMessageToServerLogCommand.mjs +0 -18
  410. package/esm2020/src/commands/DataViewCommandBase.mjs +0 -10
  411. package/esm2020/src/commands/IClientTargetedCommand.mjs +0 -9
  412. package/esm2020/src/commands/ServerToClient/AbortCommand.mjs +0 -65
  413. package/esm2020/src/commands/ServerToClient/AddRangeCommand.mjs +0 -62
  414. package/esm2020/src/commands/ServerToClient/AddSortCommand.mjs +0 -33
  415. package/esm2020/src/commands/ServerToClient/ClientRefreshCommand.mjs +0 -25
  416. package/esm2020/src/commands/ServerToClient/ClientTargetedCommandBase.mjs +0 -27
  417. package/esm2020/src/commands/ServerToClient/EnhancedVerifyCommand.mjs +0 -45
  418. package/esm2020/src/commands/ServerToClient/OpenURLCommand.mjs +0 -221
  419. package/esm2020/src/commands/ServerToClient/ResultCommand.mjs +0 -37
  420. package/esm2020/src/commands/ServerToClient/VerifyCommand.mjs +0 -83
  421. package/esm2020/src/commands/ServerToClient/XMLBasedCommandBuilder.mjs +0 -132
  422. package/esm2020/src/communications/InteractiveCommunicationsFailureHandler.mjs +0 -17
  423. package/esm2020/src/data/DataView.mjs +0 -1610
  424. package/esm2020/src/data/DataviewManager.mjs +0 -28
  425. package/esm2020/src/data/DataviewManagerBase.mjs +0 -15
  426. package/esm2020/src/data/DvCache.mjs +0 -67
  427. package/esm2020/src/data/Field.mjs +0 -646
  428. package/esm2020/src/data/FieldBase.mjs +0 -18
  429. package/esm2020/src/data/FieldsTable.mjs +0 -103
  430. package/esm2020/src/data/Key.mjs +0 -88
  431. package/esm2020/src/data/Record.mjs +0 -846
  432. package/esm2020/src/data/RecordsTable.mjs +0 -267
  433. package/esm2020/src/data/TaskTransactionManager.mjs +0 -103
  434. package/esm2020/src/data/XMLBasedDcValuesBuilder.mjs +0 -74
  435. package/esm2020/src/env/EnvVariablesTable.mjs +0 -340
  436. package/esm2020/src/env/Environment.mjs +0 -489
  437. package/esm2020/src/env/LanguageData.mjs +0 -226
  438. package/esm2020/src/env/MirrorString.mjs +0 -65
  439. package/esm2020/src/event/ActionManager.mjs +0 -91
  440. package/esm2020/src/event/Event.mjs +0 -1333
  441. package/esm2020/src/event/EventHandler.mjs +0 -766
  442. package/esm2020/src/event/EventHandlerPosition.mjs +0 -204
  443. package/esm2020/src/event/EventsManager.mjs +0 -2975
  444. package/esm2020/src/event/RunTimeEvent.mjs +0 -392
  445. package/esm2020/src/event/UserEventsTable.mjs +0 -47
  446. package/esm2020/src/exp/ExpTable.mjs +0 -59
  447. package/esm2020/src/exp/Expression.mjs +0 -200
  448. package/esm2020/src/exp/ExpressionDict.mjs +0 -727
  449. package/esm2020/src/exp/ExpressionEvaluator.mjs +0 -4212
  450. package/esm2020/src/exp/ExpressionLocalJpn.mjs +0 -314
  451. package/esm2020/src/exp/GlobalParamsTable.mjs +0 -85
  452. package/esm2020/src/exp/YesNoExp.mjs +0 -36
  453. package/esm2020/src/gui/CreatedFormVector.mjs +0 -23
  454. package/esm2020/src/gui/FormsTable.mjs +0 -66
  455. package/esm2020/src/gui/MgControl.mjs +0 -353
  456. package/esm2020/src/gui/MgForm.mjs +0 -1181
  457. package/esm2020/src/http/HttpManager.mjs +0 -97
  458. package/esm2020/src/http/client/HttpClientAsync.mjs +0 -67
  459. package/esm2020/src/http/client/HttpClientBase.mjs +0 -132
  460. package/esm2020/src/http/client/HttpClientEvents.mjs +0 -39
  461. package/esm2020/src/http/client/HttpClientSync.mjs +0 -42
  462. package/esm2020/src/http/client/HttpUtility.mjs +0 -84
  463. package/esm2020/src/remote/AddUserLocateRemoteDataViewCommand.mjs +0 -18
  464. package/esm2020/src/remote/AddUserRangeRemoteDataViewCommand.mjs +0 -18
  465. package/esm2020/src/remote/AddUserSortRemoteDataViewCommand.mjs +0 -18
  466. package/esm2020/src/remote/RemoteCommandsProcessor.mjs +0 -880
  467. package/esm2020/src/remote/RemoteControlItemsRefreshCommand.mjs +0 -25
  468. package/esm2020/src/remote/RemoteDataViewCommandBase.mjs +0 -24
  469. package/esm2020/src/remote/RemoteDataViewCommandFactory.mjs +0 -61
  470. package/esm2020/src/remote/ResetUserLocateRemoteDataviewCommand.mjs +0 -17
  471. package/esm2020/src/remote/ResetUserSortRemoteDataviewCommand.mjs +0 -16
  472. package/esm2020/src/remote/ServerError.mjs +0 -40
  473. package/esm2020/src/remote/SetTransactionStateRemoteDataViewCommand.mjs +0 -20
  474. package/esm2020/src/rt/Argument.mjs +0 -265
  475. package/esm2020/src/rt/ArgumentsList.mjs +0 -103
  476. package/esm2020/src/rt/Boundary.mjs +0 -152
  477. package/esm2020/src/rt/CompMainPrgTable.mjs +0 -65
  478. package/esm2020/src/rt/DataviewHeaders.mjs +0 -53
  479. package/esm2020/src/rt/DataviewHeadersSaxHandler.mjs +0 -38
  480. package/esm2020/src/rt/ExecutionStack.mjs +0 -94
  481. package/esm2020/src/rt/HandlersTable.mjs +0 -96
  482. package/esm2020/src/rt/LastFocusedManager.mjs +0 -67
  483. package/esm2020/src/rt/Operation.mjs +0 -735
  484. package/esm2020/src/rt/OperationTable.mjs +0 -67
  485. package/esm2020/src/rt/Recompute.mjs +0 -355
  486. package/esm2020/src/rt/RecomputeTable.mjs +0 -63
  487. package/esm2020/src/rt/RemoteDataviewHeader.mjs +0 -108
  488. package/esm2020/src/rt/ResultValue.mjs +0 -12
  489. package/esm2020/src/rt/TableCache.mjs +0 -177
  490. package/esm2020/src/rt/TableCacheManager.mjs +0 -67
  491. package/esm2020/src/rt/Transaction.mjs +0 -53
  492. package/esm2020/src/security/UserDetails.mjs +0 -71
  493. package/esm2020/src/tasks/MGData.mjs +0 -552
  494. package/esm2020/src/tasks/MGDataCollection.mjs +0 -252
  495. package/esm2020/src/tasks/RCTimer.mjs +0 -63
  496. package/esm2020/src/tasks/RemoteTaskService.mjs +0 -45
  497. package/esm2020/src/tasks/Task.mjs +0 -2495
  498. package/esm2020/src/tasks/TaskBase.mjs +0 -87
  499. package/esm2020/src/tasks/TaskServiceBase.mjs +0 -25
  500. package/esm2020/src/tasks/TasksTable.mjs +0 -80
  501. package/esm2020/src/tasks/sort/Sort.mjs +0 -7
  502. package/esm2020/src/tasks/sort/SortCollection.mjs +0 -67
  503. package/esm2020/src/util/ConstUtils.mjs +0 -14
  504. package/esm2020/src/util/FlowMonitorQueue.mjs +0 -453
  505. package/esm2020/src/util/HeapSort.mjs +0 -70
  506. package/esm2020/src/util/MgPriorityBlockingQueue.mjs +0 -74
  507. package/esm2020/src/util/MgPriorityQueue.mjs +0 -66
  508. package/esm2020/src/util/PrmMap.mjs +0 -151
  509. package/esm2020/src/util/ReturnResult.mjs +0 -46
  510. package/esm2020/src/util/ReturnResultBase.mjs +0 -18
  511. package/esm2020/src/util/Scrambler.mjs +0 -89
  512. package/esm2020/src/util/UniqueIDUtils.mjs +0 -12
  513. package/esm2020/src/util/cookie.service.mjs +0 -92
  514. package/fesm2015/magic-xpa-engine.mjs +0 -30835
  515. package/fesm2015/magic-xpa-engine.mjs.map +0 -1
  516. package/fesm2020/magic-xpa-engine.mjs.map +0 -1
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ2xpZW50T3JpZ2luYXRlZENvbW1hbmRTZXJpYWxpemVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZW5naW5lL3NyYy9jb21tYW5kcy9DbGllbnRUb1NlcnZlci9DbGllbnRPcmlnaW5hdGVkQ29tbWFuZFNlcmlhbGl6ZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLE1BQU0sRUFBRSxZQUFZLEVBQUMsTUFBTSxrQkFBa0IsQ0FBQztBQUN0RCxPQUFPLEVBQUMsU0FBUyxFQUFFLFFBQVEsRUFBRSxhQUFhLEVBQUMsTUFBTSxzQkFBc0IsQ0FBQztBQUd4RSxPQUFPLEVBQUMsY0FBYyxFQUFDLE1BQU0sc0JBQXNCLENBQUM7QUFHcEQsT0FBTyxFQUFDLGtCQUFrQixFQUFDLE1BQU0sNkJBQTZCLENBQUM7QUFFL0QsTUFBTSxPQUFPLGlDQUFpQztJQU1yQyxNQUFNLENBQUMsU0FBUyxDQUFDLEdBQTRCLEVBQUUsVUFBa0I7UUFDcEUsSUFBSSxDQUFDLEdBQUcsQ0FBQyxlQUFlO1lBQ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oY3VyckZvY3VzZWRUYXNrICE9PSBudWxsIC8qJiYgIWN1cnJGb2N1c2VkVGFzay5Jc09mZmxpbmUqLylcclxuICAgICAgICBtZXNzYWdlLkFwcGVuZChcIiBcIiArIENvbnN0SW50ZXJmYWNlLk1HX0FUVFJfRk9DVVNUQVNLICsgXCI9XFxcIlwiICsgY3VyckZvY3VzZWRUYXNrLmdldFRhc2tUYWcoKSArIFwiXFxcIlwiKTtcclxuICAgIH1cclxuICAgIGNhdGNoIChleCkge1xyXG4gICAgICBpZiAoZXggaW5zdGFuY2VvZiBFeGNlcHRpb24pIHtcclxuICAgICAgICBMb2dnZXIuSW5zdGFuY2UuV3JpdGVFeGNlcHRpb25Ub0xvZyhleCk7XHJcbiAgICAgIH1cclxuICAgICAgZWxzZVxyXG4gICAgICAgIHRocm93IGV4O1xyXG4gICAgfVxyXG4gICAgcmV0dXJuIG1lc3NhZ2UuVG9TdHJpbmcoKTtcclxuICB9XHJcbn1cclxuIl19
@@ -1,260 +0,0 @@
1
- import { NUM_TYPE } from '@magic-xpa/gui';
2
- import { InternalInterface, StorageAttribute, ViewRefreshMode } from '@magic-xpa/utils';
3
- import { EventCommand } from './EventCommand';
4
- import { RollbackEventCommand } from './RollbackEventCommand';
5
- import { DataviewCommand, DataViewCommandType } from './DataviewCommand';
6
- import { AddUserRangeDataviewCommand } from './AddUserRangeDataviewCommand';
7
- import { AddUserSortDataViewCommand } from './AddUserSortDataViewCommand';
8
- import { AddUserLocateDataViewCommand } from './AddUserLocateDataViewCommand';
9
- import { SetTransactionStateDataviewCommand } from './SetTransactionStateDataviewCommand';
10
- import { RefreshEventCommand } from './RefreshEventCommand';
11
- import { FetchDataControlValuesEventCommand } from './FetchDataControlValuesEventCommand';
12
- import { SubformRefreshEventCommand } from './SubformRefreshEventCommand';
13
- import { BrowserEscEventCommand } from './BrowserEscEventCommand';
14
- import { IndexChangeEventCommand } from './IndexChangeEventCommand';
15
- import { ColumnSortEventCommand } from './ColumnSortEventCommand';
16
- import { RefreshScreenEventCommand } from './RefreshScreenEventCommand';
17
- import { SubformOpenEventCommand } from './SubformOpenEventCommand';
18
- import { ComputeEventCommand } from './ComputeEventCommand';
19
- import { NonReversibleExitEventCommand } from './NonReversibleExitEventCommand';
20
- import { RecomputeCommand } from './RecomputeCommand';
21
- import { TransactionCommand } from './TransactionCommand';
22
- import { UnloadCommand } from './UnloadCommand';
23
- import { ExecOperCommand } from './ExecOperCommand';
24
- import { EvaluateCommand } from './EvaluateCommand';
25
- import { GlobalParamsQueryCommand } from './GlobalParamsQueryCommand';
26
- import { IniputForceWriteCommand } from './IniputForceWriteCommand';
27
- import { ContextTerminationEventCommand } from './ContextTerminationEventCommand';
28
- import { ContextTimeoutResetCommand } from './ContextTimeoutResetCommand';
29
- import { SelectProgramCommand } from './SelectProgramCommand';
30
- import { ControlItemsRefreshCommand } from './ControlItemsRefreshCommand';
31
- export class CommandFactory {
32
- static CreateEventCommand(taskTag, magicEvent) {
33
- let eventCommand = new EventCommand(magicEvent);
34
- eventCommand.TaskTag = taskTag;
35
- return eventCommand;
36
- }
37
- static CreateRollbackEventCommand(taskTag, rollbackType) {
38
- let cmd = new RollbackEventCommand();
39
- cmd.TaskTag = taskTag;
40
- cmd.Rollback = rollbackType;
41
- return cmd;
42
- }
43
- static CreateDataViewCommand(taskId, commandType) {
44
- let dataviewCommand = new DataviewCommand();
45
- dataviewCommand.CommandType = commandType;
46
- dataviewCommand.TaskTag = taskId;
47
- return dataviewCommand;
48
- }
49
- static CreateControlItemsRefreshCommand(taskId, control) {
50
- let command = new ControlItemsRefreshCommand();
51
- command.CommandType = DataViewCommandType.ControlItemsRefresh;
52
- command.TaskTag = taskId;
53
- command.Control = control;
54
- return command;
55
- }
56
- static CreateAddUserRangeDataviewCommand(taskId, userRange) {
57
- let addUserRangeDataviewCommand = new AddUserRangeDataviewCommand();
58
- addUserRangeDataviewCommand.TaskTag = taskId;
59
- addUserRangeDataviewCommand.Range = userRange;
60
- return addUserRangeDataviewCommand;
61
- }
62
- static CreateAddUserSortDataviewCommand(taskId, sort) {
63
- let addUserSortDataViewCommand = new AddUserSortDataViewCommand();
64
- addUserSortDataViewCommand.TaskTag = taskId;
65
- addUserSortDataViewCommand.Sort = sort;
66
- return addUserSortDataViewCommand;
67
- }
68
- static CreateAddUserLocateDataviewCommand(taskId, userRange) {
69
- let addUserLocateDataViewCommand = new AddUserLocateDataViewCommand();
70
- addUserLocateDataViewCommand.TaskTag = taskId;
71
- addUserLocateDataViewCommand.Range = userRange;
72
- return addUserLocateDataViewCommand;
73
- }
74
- static CreateSetTransactionStateDataviewCommand(taskId, transactionIsOpened) {
75
- let setTransactionStateDataviewCommand = new SetTransactionStateDataviewCommand();
76
- setTransactionStateDataviewCommand.TaskTag = taskId;
77
- setTransactionStateDataviewCommand.TransactionIsOpen = transactionIsOpened;
78
- return setTransactionStateDataviewCommand;
79
- }
80
- static CreateInternalRefreshCommand(taskId, magicEvent, currentRecId, currentRow) {
81
- let refreshEventCommand = new RefreshEventCommand(magicEvent);
82
- refreshEventCommand.TaskTag = taskId;
83
- refreshEventCommand.RefreshMode = ViewRefreshMode.CurrentLocation;
84
- refreshEventCommand.ClientRecId = currentRecId;
85
- refreshEventCommand.IsInternalRefresh = true;
86
- refreshEventCommand.CurrentRecordRow = currentRow;
87
- return refreshEventCommand;
88
- }
89
- static async CreateRealRefreshCommand(taskId, magicEvent, currentRow, argList, currentRecId) {
90
- let refreshEventCommand = new RefreshEventCommand(magicEvent);
91
- refreshEventCommand.TaskTag = taskId;
92
- refreshEventCommand.RefreshMode = ViewRefreshMode.CurrentLocation;
93
- refreshEventCommand.KeepUserSort = false;
94
- refreshEventCommand.ClientRecId = currentRecId;
95
- refreshEventCommand.CurrentRecordRow = currentRow;
96
- let cmd = refreshEventCommand;
97
- if (magicEvent !== InternalInterface.MG_ACT_RT_REFRESH_RECORD && argList !== null && argList.getSize() !== 0) {
98
- try {
99
- let refreshMode = new NUM_TYPE(await argList.getArgValue(0, StorageAttribute.NUMERIC, 0));
100
- cmd.RefreshMode = refreshMode.NUM_2_LONG() + 1;
101
- }
102
- catch (e) {
103
- cmd.RefreshMode = ViewRefreshMode.CurrentLocation;
104
- }
105
- if (argList.getSize() > 1) {
106
- try {
107
- cmd.KeepUserSort = (await argList.getArgValue(1, StorageAttribute.BOOLEAN, 0) === '1');
108
- }
109
- catch (e) {
110
- cmd.KeepUserSort = false;
111
- }
112
- }
113
- }
114
- return cmd;
115
- }
116
- static CreatecFetchDataControlValuesCommand(taskTag, controlName) {
117
- let fetchDataControlValuesEventCommand = new FetchDataControlValuesEventCommand();
118
- fetchDataControlValuesEventCommand.TaskTag = taskTag;
119
- fetchDataControlValuesEventCommand.ControlName = controlName;
120
- return fetchDataControlValuesEventCommand;
121
- }
122
- static CreateSubformRefreshCommand(taskTag, subformTaskTag, explicitSubformRefresh) {
123
- let subformRefreshEventCommand = new SubformRefreshEventCommand();
124
- subformRefreshEventCommand.TaskTag = taskTag;
125
- subformRefreshEventCommand.SubformTaskTag = subformTaskTag;
126
- subformRefreshEventCommand.ExplicitSubformRefresh = explicitSubformRefresh;
127
- subformRefreshEventCommand.RefreshMode = ViewRefreshMode.UseTaskLocate;
128
- return subformRefreshEventCommand;
129
- }
130
- static CreateSubformOpenCommand(taskTag, subformDitIdx) {
131
- let subformOpenEventCommand = new SubformOpenEventCommand();
132
- subformOpenEventCommand.TaskTag = taskTag;
133
- subformOpenEventCommand.DitIdx = subformDitIdx;
134
- return subformOpenEventCommand;
135
- }
136
- static CreateScreenRefreshCommand(taskTag, topRecIdx, clientRecId) {
137
- let refreshScreenEventCommand = new RefreshScreenEventCommand();
138
- refreshScreenEventCommand.TaskTag = taskTag;
139
- refreshScreenEventCommand.TopRecIdx = topRecIdx;
140
- refreshScreenEventCommand.RefreshMode = ViewRefreshMode.CurrentLocation;
141
- refreshScreenEventCommand.ClientRecId = clientRecId;
142
- return refreshScreenEventCommand;
143
- }
144
- static CreateColumnSortCommand(taskTag, direction, ditIdx, fieldId, recId) {
145
- let columnSortEventCommand = new ColumnSortEventCommand();
146
- columnSortEventCommand.TaskTag = taskTag;
147
- columnSortEventCommand.DitIdx = ditIdx;
148
- columnSortEventCommand.FldId = fieldId + 1;
149
- columnSortEventCommand.ClientRecId = recId;
150
- columnSortEventCommand.Direction = direction;
151
- return columnSortEventCommand;
152
- }
153
- static async CreateIndexChangeCommand(taskTag, recId, argList) {
154
- let indexChangeEventCommand = new IndexChangeEventCommand();
155
- indexChangeEventCommand.TaskTag = taskTag;
156
- indexChangeEventCommand.ClientRecId = recId;
157
- let cmd = indexChangeEventCommand;
158
- if (argList !== null && argList.getSize() !== 0) {
159
- try {
160
- let keyIndex = new NUM_TYPE(await argList.getArgValue(0, StorageAttribute.NUMERIC, 0));
161
- cmd.KeyIndex = keyIndex.NUM_2_LONG();
162
- }
163
- catch (e) {
164
- cmd.KeyIndex = 0;
165
- }
166
- }
167
- return cmd;
168
- }
169
- static CreateBrowserEscEventCommand(taskTag, closeSubformOnly) {
170
- let browserEscEventCommand = new BrowserEscEventCommand();
171
- browserEscEventCommand.TaskTag = taskTag;
172
- browserEscEventCommand.CloseSubformOnly = closeSubformOnly;
173
- return browserEscEventCommand;
174
- }
175
- static CreateComputeEventCommand(taskTag, subforms, clientRecId) {
176
- let computeEventCommand = new ComputeEventCommand();
177
- computeEventCommand.TaskTag = taskTag;
178
- computeEventCommand.Subforms = subforms;
179
- computeEventCommand.ClientRecId = clientRecId;
180
- return computeEventCommand;
181
- }
182
- static CreateContextTerminationEventCommand(taskTag) {
183
- let contextTerminationEventCommand = new ContextTerminationEventCommand();
184
- contextTerminationEventCommand.TaskTag = taskTag;
185
- return contextTerminationEventCommand;
186
- }
187
- static CreateContextTimeoutResetEventCommand() {
188
- let contextTimeoutResetCommand = new ContextTimeoutResetCommand();
189
- return contextTimeoutResetCommand;
190
- }
191
- static CreateNonReversibleExitCommand(taskTag, closeSubformOnly) {
192
- let nonReversibleExitEventCommand = new NonReversibleExitEventCommand();
193
- nonReversibleExitEventCommand.TaskTag = taskTag;
194
- nonReversibleExitEventCommand.CloseSubformOnly = closeSubformOnly;
195
- return nonReversibleExitEventCommand;
196
- }
197
- static CreateRecomputeCommand(taskTag, fieldId, ignoreSubformRecompute) {
198
- let recomputeCommand = new RecomputeCommand();
199
- recomputeCommand.TaskTag = taskTag;
200
- recomputeCommand.FldId = fieldId;
201
- recomputeCommand.IgnoreSubformRecompute = ignoreSubformRecompute;
202
- return recomputeCommand;
203
- }
204
- static CreateTransactionCommand(oper, taskTag, cReversibleExit, level) {
205
- let transactionCommand = new TransactionCommand();
206
- transactionCommand.TaskTag = taskTag;
207
- transactionCommand.Oper = oper;
208
- transactionCommand.ReversibleExit = cReversibleExit;
209
- transactionCommand.Level = level;
210
- return transactionCommand;
211
- }
212
- static CreateUnloadCommand() {
213
- return new UnloadCommand();
214
- }
215
- static CreateExecOperCommand(taskTag, handlerId, operIdx, ditIdx, value) {
216
- let execOperCommand = new ExecOperCommand();
217
- execOperCommand.OperIdx = operIdx;
218
- execOperCommand.TaskTag = taskTag;
219
- execOperCommand.HandlerId = handlerId;
220
- execOperCommand.DitIdx = ditIdx;
221
- let cmd = execOperCommand;
222
- if (value !== null && value.length === 0)
223
- cmd.Val = ' ';
224
- else
225
- cmd.Val = value;
226
- return cmd;
227
- }
228
- static CreateSelectProgramCommand(taskTag, handlerId, operIdx, ditIdx, value) {
229
- let execOperCommand = new SelectProgramCommand();
230
- execOperCommand.OperIdx = operIdx;
231
- execOperCommand.TaskTag = taskTag;
232
- execOperCommand.HandlerId = handlerId;
233
- execOperCommand.DitIdx = ditIdx;
234
- let cmd = execOperCommand;
235
- if (value !== null && value.length === 0)
236
- cmd.Val = ' ';
237
- else
238
- cmd.Val = value;
239
- return cmd;
240
- }
241
- static CreateEvaluateCommand(taskTag, expType, expIdx, expValLen, mprgCreator) {
242
- let evaluateCommand = new EvaluateCommand();
243
- evaluateCommand.TaskTag = taskTag;
244
- evaluateCommand.ExpIdx = expIdx;
245
- evaluateCommand.ExpType = expType;
246
- evaluateCommand.MprgCreator = mprgCreator;
247
- if (expValLen > 0)
248
- evaluateCommand.LengthExpVal = expValLen;
249
- return evaluateCommand;
250
- }
251
- static CreateQueryGlobalParamsCommand() {
252
- return new GlobalParamsQueryCommand();
253
- }
254
- static CreateIniputForceWriteCommand(param) {
255
- let iniputForceWriteCommand = new IniputForceWriteCommand();
256
- iniputForceWriteCommand.Text = param;
257
- return iniputForceWriteCommand;
258
- }
259
- }
260
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ29tbWFuZEZhY3RvcnkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9lbmdpbmUvc3JjL2NvbW1hbmRzL0NsaWVudFRvU2VydmVyL0NvbW1hbmRGYWN0b3J5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBZ0IsUUFBUSxFQUFDLE1BQU0sZ0JBQWdCLENBQUM7QUFDdkQsT0FBTyxFQUFDLGlCQUFpQixFQUFFLGdCQUFnQixFQUFFLGVBQWUsRUFBQyxNQUFNLGtCQUFrQixDQUFDO0FBQ3RGLE9BQU8sRUFBQyxZQUFZLEVBQUMsTUFBTSxnQkFBZ0IsQ0FBQztBQUM1QyxPQUFPLEVBQUMsb0JBQW9CLEVBQW9DLE1BQU0sd0JBQXdCLENBQUM7QUFDL0YsT0FBTyxFQUFDLGVBQWUsRUFBRSxtQkFBbUIsRUFBQyxNQUFNLG1CQUFtQixDQUFDO0FBR3ZFLE9BQU8sRUFBQywyQkFBMkIsRUFBQyxNQUFNLCtCQUErQixDQUFDO0FBRTFFLE9BQU8sRUFBQywwQkFBMEIsRUFBQyxNQUFNLDhCQUE4QixDQUFDO0FBQ3hFLE9BQU8sRUFBQyw0QkFBNEIsRUFBQyxNQUFNLGdDQUFnQyxDQUFDO0FBQzVFLE9BQU8sRUF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VDb21tYW5kLlRleHQgPSBwYXJhbTtcclxuICAgIHJldHVybiBpbmlwdXRGb3JjZVdyaXRlQ29tbWFuZDtcclxuICB9XHJcbn1cclxuIl19
@@ -1,69 +0,0 @@
1
- import { Int32, StringBuilder } from "@magic-xpa/mscorelib";
2
- import { StorageAttribute, ViewRefreshMode, XMLConstants } from "@magic-xpa/utils";
3
- import { ConstInterface } from "../../ConstInterface";
4
- import { RecordUtils } from "@magic-xpa/gui";
5
- import { AccessHelper } from "../../AccessHelper";
6
- export class CommandSerializationHelper {
7
- constructor() {
8
- this.message = new StringBuilder();
9
- }
10
- GetString() {
11
- return this.message.ToString();
12
- }
13
- SerializeTaskTag(taskTag) {
14
- let id = AccessHelper.mgDataTable.getTaskIdById(taskTag);
15
- this.SerializeAttribute(XMLConstants.MG_ATTR_TASKID, id);
16
- }
17
- SerializeFldId(fldId) {
18
- this.SerializeAttribute(ConstInterface.MG_ATTR_FIELDID, fldId);
19
- }
20
- SerializeDitIdx(ditIdx) {
21
- if (ditIdx > Int32.MinValue) {
22
- this.SerializeAttribute(XMLConstants.MG_ATTR_DITIDX, ditIdx);
23
- }
24
- }
25
- SerializeRouteParams(operation) {
26
- let routeParams = operation.getRouteParams();
27
- let routeValStr = '';
28
- for (let i = 0; i < routeParams.length; i++) {
29
- routeValStr = routeValStr.concat(RecordUtils.serializeItemVal(routeParams[i], StorageAttribute.UNICODE, StorageAttribute.SKIP, true));
30
- }
31
- this.SerializeAttribute(ConstInterface.MG_ATTR_ROUTE_PARAMS, routeValStr);
32
- }
33
- SerializeRefreshMode(refreshMode) {
34
- if (refreshMode !== ViewRefreshMode.None) {
35
- this.SerializeAttribute(ConstInterface.MG_ATTR_REALREFRESH, refreshMode);
36
- }
37
- }
38
- SerializeMagicEvent(magicEvent) {
39
- this.SerializeAttribute(ConstInterface.MG_ATTR_MAGICEVENT, magicEvent);
40
- }
41
- SerializeCloseSubformOnly(closeSubformOnly) {
42
- if (closeSubformOnly)
43
- this.SerializeAttribute(ConstInterface.MG_ATTR_CLOSE_SUBFORM_ONLY, "1");
44
- }
45
- SerializeKeyIndex(keyIndex) {
46
- this.SerializeAttribute(ConstInterface.MG_ATTR_KEY, keyIndex);
47
- }
48
- SerializeAttribute(attribute, value) {
49
- if (arguments.length === 2 && (attribute === null || attribute.constructor === String) && (value === null || value.constructor === String)) {
50
- this.SerializeAttribute_0(attribute, value);
51
- return;
52
- }
53
- if (arguments.length === 2 && (attribute === null || attribute.constructor === String) && (value === null || value.constructor === Number)) {
54
- this.SerializeAttribute_1(attribute, value);
55
- return;
56
- }
57
- this.SerializeAttribute_2(attribute, value);
58
- }
59
- SerializeAttribute_0(attribute, value) {
60
- this.message.Append(" " + attribute + "=\"" + value + "\"");
61
- }
62
- SerializeAttribute_1(attribute, value) {
63
- this.message.Append(" " + attribute + "=\"" + value + "\"");
64
- }
65
- SerializeAttribute_2(attribute, value) {
66
- this.message.Append(" " + attribute + "=\"" + value + "\"");
67
- }
68
- }
69
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ29tbWFuZFNlcmlhbGl6YXRpb25IZWxwZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9lbmdpbmUvc3JjL2NvbW1hbmRzL0NsaWVudFRvU2VydmVyL0NvbW1hbmRTZXJpYWxpemF0aW9uSGVscGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxLQUFLLEVBQUUsYUFBYSxFQUFPLE1BQU0sc0JBQXNCLENBQUM7QUFDaEUsT0FBTyxFQUFDLGdCQUFnQixFQUFFLGVBQWUsRUFBRSxZQUFZLEVBQUMsTUFBTSxrQkFBa0IsQ0FBQztBQUNqRixPQUFPLEVBQUMsY0FBYyxFQUFDLE1BQU0sc0JBQXNCLENBQUM7QUFDcEQsT0FBTyxFQUFDLFdBQVcsRUFBQy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TnVtYmVyKSkge1xyXG4gICAgICB0aGlzLlNlcmlhbGl6ZUF0dHJpYnV0ZV8xKGF0dHJpYnV0ZSwgdmFsdWUpO1xyXG4gICAgICByZXR1cm47XHJcbiAgICB9XHJcbiAgICB0aGlzLlNlcmlhbGl6ZUF0dHJpYnV0ZV8yKGF0dHJpYnV0ZSwgdmFsdWUpO1xyXG4gIH1cclxuXHJcbiAgcHJpdmF0ZSBTZXJpYWxpemVBdHRyaWJ1dGVfMChhdHRyaWJ1dGU6IHN0cmluZywgdmFsdWU6IHN0cmluZyk6IHZvaWQge1xyXG4gICAgdGhpcy5tZXNzYWdlLkFwcGVuZChcIiBcIiArIGF0dHJpYnV0ZSArIFwiPVxcXCJcIiArIHZhbHVlICsgXCJcXFwiXCIpO1xyXG4gIH1cclxuXHJcbiAgcHJpdmF0ZSBTZXJpYWxpemVBdHRyaWJ1dGVfMShhdHRyaWJ1dGU6IHN0cmluZywgdmFsdWU6IG51bWJlcik6IHZvaWQge1xyXG4gICAgdGhpcy5tZXNzYWdlLkFwcGVuZChcIiBcIiArIGF0dHJpYnV0ZSArIFwiPVxcXCJcIiArIHZhbHVlICsgXCJcXFwiXCIpO1xyXG4gIH1cclxuXHJcbiAgcHJpdmF0ZSBTZXJpYWxpemVBdHRyaWJ1dGVfMihhdHRyaWJ1dGU6IHN0cmluZywgdmFsdWU6IHN0cmluZyk6IHZvaWQge1xyXG4gICAgdGhpcy5tZXNzYWdlLkFwcGVuZChcIiBcIiArIGF0dHJpYnV0ZSArIFwiPVxcXCJcIiArIHZhbHVlICsgXCJcXFwiXCIpO1xyXG4gIH1cclxufVxyXG4iXX0=
@@ -1,13 +0,0 @@
1
- import { DataviewCommand } from "./DataviewCommand";
2
- export class DataViewOutputCommand extends DataviewCommand {
3
- constructor(OutputCommandType) {
4
- super();
5
- this.Generation = 0;
6
- this.TaskVarNames = null;
7
- this.DestinationDataSourceNumber = 0;
8
- this.DestinationDataSourceName = null;
9
- this.DestinationColumns = null;
10
- this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IEdlbmVyYXRpb246IG51bWJlciA9IDA7XHJcbiAgVGFza1Zhck5hbWVzOiBzdHJpbmcgPSBudWxsO1xyXG4gIERlc3RpbmF0aW9uRGF0YVNvdXJjZU51bWJlcjogbnVtYmVyID0gMDtcclxuICBEZXN0aW5hdGlvbkRhdGFTb3VyY2VOYW1lOiBzdHJpbmcgPSBudWxsO1xyXG4gIERlc3RpbmF0aW9uQ29sdW1uczogc3RyaW5nID0gbnVsbDtcclxuXHJcbiAgLy8vIDxzdW1tYXJ5PlxyXG4gIC8vLyBDVE9SXHJcbiAgLy8vIDwvc3VtbWFyeT5cclxuICBjb25zdHJ1Y3RvcihPdXRwdXRDb21tYW5kVHlwZTogRGF0YVZpZXdDb21tYW5kVHlwZSkge1xyXG4gICAgc3VwZXIoKTtcclxuICAgIHRoaXMuQ29tbWFuZFR5cGUgPSBPdXRwdXRDb21tYW5kVHlwZTtcclxuICB9XHJcbn1cclxuIl19
@@ -1,36 +0,0 @@
1
- import { Int32, NString } from '@magic-xpa/mscorelib';
2
- import { StorageAttribute } from '@magic-xpa/utils';
3
- import { CommandSerializationHelper } from './CommandSerializationHelper';
4
- import { ConstInterface } from '../../ConstInterface';
5
- import { ClientOriginatedCommandTaskTag } from '../ClientOriginatedCommandTaskTag';
6
- export class EvaluateCommand extends ClientOriginatedCommandTaskTag {
7
- get CommandTypeAttribute() {
8
- return ConstInterface.MG_ATTR_VAL_EVAL;
9
- }
10
- constructor() {
11
- super();
12
- this.TaskTag = null;
13
- this.ExpIdx = 0;
14
- this.LengthExpVal = 0;
15
- this.MprgCreator = null;
16
- this.LengthExpVal = Int32.MinValue;
17
- }
18
- SerializeCommandData() {
19
- let helper = new CommandSerializationHelper();
20
- helper.SerializeTaskTag(this.TaskTag);
21
- helper.SerializeAttribute(ConstInterface.MG_ATTR_EXP_IDX, this.ExpIdx);
22
- if (this.ExpType !== StorageAttribute.NONE) {
23
- let maxDigits = "";
24
- if (this.LengthExpVal > 0)
25
- maxDigits += this.LengthExpVal;
26
- helper.SerializeAttribute(ConstInterface.MG_ATTR_EXP_TYPE, this.ExpType + maxDigits);
27
- }
28
- if (this.MprgCreator !== null)
29
- helper.SerializeAttribute(ConstInterface.MG_ATTR_MPRG_SOURCE, this.MprgCreator.getTaskTag());
30
- return helper.GetString();
31
- }
32
- getCommandInfo() {
33
- return NString.Format('[{0} ExpID {1} in {2}]', this.CommandTypeAttribute.charAt(0).toUpperCase() + this.CommandTypeAttribute.substr(1, this.CommandTypeAttribute.length), this.ExpIdx, this.Task.getTaskInfo());
34
- }
35
- }
36
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRXZhbHVhdGVDb21tYW5kLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZW5naW5lL3NyYy9jb21tYW5kcy9DbGllbnRUb1NlcnZlci9FdmFsdWF0ZUNvbW1hbmQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLEtBQUssRUFBRSxPQUFPLEVBQUMsTUFBTSxzQkFBc0IsQ0FBQztBQUNwRCxPQUFPLEVBQUMsZ0JBQWdCLEVBQUMsTUFBTSxrQkFBa0IsQ0FBQztBQUNsRCxPQUFPLEVBQUMsMEJBQTBCLEVBQUMsTUFBTSw4QkFBOEIsQ0FBQztBQUV4RSxPQUFPLEVBQUMsY0FBYyxFQUFDLE1BQU0sc0JBQXNCLENBQUM7QUFDcEQsT0FBTyxFQUFDLDhCQUE4QixFQUFDLE1BQU0sbUNBQW1DLENBQUM7QUFHakYsTUFBTSxPQUFPLGVBQWdCLFNBQVEsOEJBQThCO0lBT2pFLElBQUksb0JBQW9CO1FBQ3RCLE9BQU8sY0FBYyxDQUFDLGdCQUFnQixDQUFDO0lBQ3pDLENBQUM7SUFLRDtRQUNFLEtBQUssRUFBRSxDQUFDO1FBZFYsWUFBTyxHQUFXLElBQUks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1heERpZ2l0cyArPSB0aGlzLkxlbmd0aEV4cFZhbDtcclxuXHJcbiAgICAgIGhlbHBlci5TZXJpYWxpemVBdHRyaWJ1dGUoQ29uc3RJbnRlcmZhY2UuTUdfQVRUUl9FWFBfVFlQRSwgPHN0cmluZz50aGlzLkV4cFR5cGUgKyBtYXhEaWdpdHMpO1xyXG4gICAgfVxyXG4gICAgaWYgKHRoaXMuTXByZ0NyZWF0b3IgIT09IG51bGwpXHJcbiAgICAgIGhlbHBlci5TZXJpYWxpemVBdHRyaWJ1dGUoQ29uc3RJbnRlcmZhY2UuTUdfQVRUUl9NUFJHX1NPVVJDRSwgdGhpcy5NcHJnQ3JlYXRvci5nZXRUYXNrVGFnKCkpO1xyXG5cclxuICAgIHJldHVybiBoZWxwZXIuR2V0U3RyaW5nKCk7XHJcbiAgfVxyXG5cclxuICBnZXRDb21tYW5kSW5mbygpOiBzdHJpbmcge1xyXG4gICAgcmV0dXJuIE5TdHJpbmcuRm9ybWF0KCdbezB9IEV4cElEIHsxfSBpbiB7Mn1dJ1xyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAsIHRoaXMuQ29tbWFuZFR5cGVBdHRyaWJ1dGUuY2hhckF0KDApLnRvVXBwZXJDYXNlKCkgKyB0aGlzLkNvbW1hbmRUeXBlQXR0cmlidXRlLnN1YnN0cigxLCB0aGlzLkNvbW1hbmRUeXBlQXR0cmlidXRlLmxlbmd0aClcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLCB0aGlzLkV4cElkeFxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAsIHRoaXMuVGFzay5nZXRUYXNrSW5mbygpKTtcclxuICB9XHJcbn1cclxuIl19
@@ -1,40 +0,0 @@
1
- import { NString } from "@magic-xpa/mscorelib";
2
- import { ConstInterface } from "../../ConstInterface";
3
- import { ClientOriginatedCommandTaskTag } from "../ClientOriginatedCommandTaskTag";
4
- import { CommandSerializationHelper } from "./CommandSerializationHelper";
5
- import { AccessHelper } from "../../AccessHelper";
6
- import { Event } from "../../..";
7
- export class EventCommand extends ClientOriginatedCommandTaskTag {
8
- get CommandTypeAttribute() {
9
- return ConstInterface.MG_ATTR_VAL_EVENT;
10
- }
11
- get EventDescription() {
12
- return Event.getInternalEvtDescription(this.MagicEvent);
13
- }
14
- get Task() {
15
- return AccessHelper.mgDataTable.getCurrMGData().getTask(this.TaskTag);
16
- }
17
- get ShouldSerialize() {
18
- if (this.TaskTag !== null && AccessHelper.mgDataTable.GetTaskByID(this.TaskTag) !== null &&
19
- !AccessHelper.mgDataTable.GetTaskByID(this.TaskTag).KnownToServer)
20
- return false;
21
- return true;
22
- }
23
- constructor(magicEvent) {
24
- super();
25
- this.TaskTag = null;
26
- this.MagicEvent = 0;
27
- this.ClientRecId = 0;
28
- this.MagicEvent = magicEvent;
29
- }
30
- SerializeCommandData() {
31
- let helper = new CommandSerializationHelper();
32
- helper.SerializeTaskTag(this.TaskTag);
33
- helper.SerializeMagicEvent(this.MagicEvent);
34
- return helper.GetString();
35
- }
36
- getCommandInfo() {
37
- return NString.Format('[{0} in {1}]', this.EventDescription, this.Task.getTaskInfo());
38
- }
39
- }
40
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRXZlbnRDb21tYW5kLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZW5naW5lL3NyYy9jb21tYW5kcy9DbGllbnRUb1NlcnZlci9FdmVudENvbW1hbmQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLE9BQU8sRUFBQyxNQUFNLHNCQUFzQixDQUFDO0FBRTdDLE9BQU8sRUFBQyxjQUFjLEVBQUMsTUFBTSxzQkFBc0IsQ0FBQztBQUNwRCxPQUFPLEVBQUMsOEJBQThCLEVBQUMsTUFBTSxtQ0FBbUMsQ0FB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