@magic-xpa/engine 4.1100.0-dev4110.19 → 4.1100.0-dev4110.191

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 +399 -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 +516 -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 +154 -0
  14. package/{esm2020 → esm2022}/src/ICommandsTable.mjs +1 -1
  15. package/esm2022/src/ServerConfig.mjs +118 -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 +226 -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 +2975 -0
  102. package/{esm2020 → esm2022}/src/event/IEventsManager.mjs +6 -6
  103. package/esm2022/src/event/RunTimeEvent.mjs +392 -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 +2497 -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 +29713 -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 +32 -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 +515 -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 +34 -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 +204 -204
  293. package/src/event/IEventsManager.d.ts +77 -77
  294. package/src/event/RunTimeEvent.d.ts +123 -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 -2495
  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 -30835
  514. package/fesm2015/magic-xpa-engine.mjs.map +0 -1
  515. package/fesm2020/magic-xpa-engine.mjs.map +0 -1
@@ -0,0 +1,260 @@
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ29tbWFuZEZhY3RvcnkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9lbmdpbmUvc3JjL2NvbW1hbmRzL0NsaWVudFRvU2VydmVyL0NvbW1hbmRGYWN0b3J5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBZ0IsUUFBUSxFQUFDLE1BQU0sZ0JBQWdCLENBQUM7QUFDdkQsT0FBTyxFQUFDLGlCQUFpQixFQUFFLGdCQUFnQixFQUFFLGVBQWUsRUFBQyxNQUFNLGtCQUFrQixDQUFDO0FBQ3RGLE9BQU8sRUFBQyxZQUFZLEVBQUMsTUFBTSxnQkFBZ0IsQ0FBQztBQUM1QyxPQUFPLEVBQUMsb0JBQW9CLEVBQW9DLE1BQU0sd0JBQXdCLENBQUM7QUFDL0YsT0FBTyxFQUFDLGVBQWUsRUFBRSxtQkFBbUIsRUFBQyxNQUFNLG1CQUFtQixDQUFDO0FBR3ZFLE9BQU8sRUFBQywyQkFBMkIsRUFBQyxNQUFNLCtCQUErQixDQUFDO0FBRTFFLE9BQU8sRUFBQywwQkFBMEIsRUFBQyxNQUFNLDhCQUE4QixDQUFDO0FBQ3hFLE9BQU8sRUFBQyw0QkFBNEIsRUFBQyxNQUFNLGdDQUFnQyxDQUFDO0FBQzVFLE9BQU8sRUFBQyxrQ0FBa0MsRUFBQyxNQUFN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BuZXcgSW5pcHV0Rm9yY2VXcml0ZUNvbW1hbmQoKTtcclxuICAgIGluaXB1dEZvcmNlV3JpdGVDb21tYW5kLlRleHQgPSBwYXJhbTtcclxuICAgIHJldHVybiBpbmlwdXRGb3JjZVdyaXRlQ29tbWFuZDtcclxuICB9XHJcbn1cclxuIl19
@@ -0,0 +1,67 @@
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
+ message = new StringBuilder();
8
+ GetString() {
9
+ return this.message.ToString();
10
+ }
11
+ SerializeTaskTag(taskTag) {
12
+ let id = AccessHelper.mgDataTable.getTaskIdById(taskTag);
13
+ this.SerializeAttribute(XMLConstants.MG_ATTR_TASKID, id);
14
+ }
15
+ SerializeFldId(fldId) {
16
+ this.SerializeAttribute(ConstInterface.MG_ATTR_FIELDID, fldId);
17
+ }
18
+ SerializeDitIdx(ditIdx) {
19
+ if (ditIdx > Int32.MinValue) {
20
+ this.SerializeAttribute(XMLConstants.MG_ATTR_DITIDX, ditIdx);
21
+ }
22
+ }
23
+ SerializeRouteParams(operation) {
24
+ let routeParams = operation.getRouteParams();
25
+ let routeValStr = '';
26
+ for (let i = 0; i < routeParams.length; i++) {
27
+ routeValStr = routeValStr.concat(RecordUtils.serializeItemVal(routeParams[i], StorageAttribute.UNICODE, StorageAttribute.SKIP, true));
28
+ }
29
+ this.SerializeAttribute(ConstInterface.MG_ATTR_ROUTE_PARAMS, routeValStr);
30
+ }
31
+ SerializeRefreshMode(refreshMode) {
32
+ if (refreshMode !== ViewRefreshMode.None) {
33
+ this.SerializeAttribute(ConstInterface.MG_ATTR_REALREFRESH, refreshMode);
34
+ }
35
+ }
36
+ SerializeMagicEvent(magicEvent) {
37
+ this.SerializeAttribute(ConstInterface.MG_ATTR_MAGICEVENT, magicEvent);
38
+ }
39
+ SerializeCloseSubformOnly(closeSubformOnly) {
40
+ if (closeSubformOnly)
41
+ this.SerializeAttribute(ConstInterface.MG_ATTR_CLOSE_SUBFORM_ONLY, "1");
42
+ }
43
+ SerializeKeyIndex(keyIndex) {
44
+ this.SerializeAttribute(ConstInterface.MG_ATTR_KEY, keyIndex);
45
+ }
46
+ SerializeAttribute(attribute, value) {
47
+ if (arguments.length === 2 && (attribute === null || attribute.constructor === String) && (value === null || value.constructor === String)) {
48
+ this.SerializeAttribute_0(attribute, value);
49
+ return;
50
+ }
51
+ if (arguments.length === 2 && (attribute === null || attribute.constructor === String) && (value === null || value.constructor === Number)) {
52
+ this.SerializeAttribute_1(attribute, value);
53
+ return;
54
+ }
55
+ this.SerializeAttribute_2(attribute, value);
56
+ }
57
+ SerializeAttribute_0(attribute, value) {
58
+ this.message.Append(" " + attribute + "=\"" + value + "\"");
59
+ }
60
+ SerializeAttribute_1(attribute, value) {
61
+ this.message.Append(" " + attribute + "=\"" + value + "\"");
62
+ }
63
+ SerializeAttribute_2(attribute, value) {
64
+ this.message.Append(" " + attribute + "=\"" + value + "\"");
65
+ }
66
+ }
67
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ29tbWFuZFNlcmlhbGl6YXRpb25IZWxwZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9lbmdpbmUvc3JjL2NvbW1hbmRzL0NsaWVudFRvU2VydmVyL0NvbW1hbmRTZXJpYWxpemF0aW9uSGVscGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxLQUFLLEVBQUUsYUFBYSxFQUFPLE1BQU0sc0JBQXNCLENBQUM7QUFDaEUsT0FBTyxFQUFDLGdCQUFnQixFQUFFLGVBQWUsRUFBRSxZQUF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String } from "@magic-xpa/mscorelib";
2
- import { InternalInterface } from "@magic-xpa/utils";
3
- import { CommandSerializationHelper } from "./CommandSerializationHelper";
4
- import { EventCommand } from "./EventCommand";
5
- import { ConstInterface } from "../../ConstInterface";
6
- export class ComputeEventCommand extends EventCommand {
7
- constructor() {
8
- super(InternalInterface.MG_ACT_COMPUTE);
9
- this.Subforms = false;
10
- }
11
- SerializeCommandData() {
12
- let helper = new CommandSerializationHelper();
13
- helper.SerializeTaskTag(this.TaskTag);
14
- helper.SerializeMagicEvent(this.MagicEvent);
15
- if (this.Subforms)
16
- helper.SerializeAttribute(ConstInterface.MG_ATTR_OBJECT, "99999");
17
- return helper.GetString();
18
- }
19
- getCommandInfo() {
20
- return NString.Format('[{0} for {1} in {2}] ', this.EventDescription, this.Subforms ? 'Form and Subform' : 'Form', this.Task.getTaskInfo());
21
- }
22
- }
23
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ29tcHV0ZUV2ZW50Q29tbWFuZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2VuZ2luZS9zcmMvY29tbWFuZHMvQ2xpZW50VG9TZXJ2ZXIvQ29tcHV0ZUV2ZW50Q29tbWFuZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUMsT0FBTyxFQUFDLE1BQU0sc0JBQXNCLENBQUM7QUFDN0MsT0FBTyxFQUFDLGlCQUFpQixFQUFDLE1BQU0sa0JBQWtCLENBQUM7QUFDbkQsT0FBTyxFQUFDLDBCQUEwQixFQUFDLE1BQU0sOEJBQThCLENBQUM7QUFDeEUsT0FBTyxFQUFDLFlBQVksRUFBQyxNQUFNLGdCQUFnQixDQUFDO0FBQzVDLE9BQU8sRUFBQyxjQUFjLEVBQUMsTUFBTSxzQkFBc0IsQ0FBQztBQUlwRCxNQUFNLE9BQU8sb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XG4gICAgcmV0dXJuIGhlbHBlci5HZXRTdHJpbmcoKTtcclxuICB9XHJcblxyXG4gIGdldENvbW1hbmRJbmZvKCk6IHN0cmluZyB7XHJcbiAgICByZXR1cm4gTlN0cmluZy5Gb3JtYXQoJ1t7MH0gZm9yIHsxfSBpbiB7Mn1dICdcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLCB0aGlzLkV2ZW50RGVzY3JpcHRpb25cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLHRoaXMuU3ViZm9ybXMgPyAnRm9ybSBhbmQgU3ViZm9ybScgOiAnRm9ybSdcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLCB0aGlzLlRhc2suZ2V0VGFza0luZm8oKSk7XHJcbiAgfVxyXG59XHJcbiJdfQ==
1
+ import { NString } from "@magic-xpa/mscorelib";
2
+ import { InternalInterface } from "@magic-xpa/utils";
3
+ import { CommandSerializationHelper } from "./CommandSerializationHelper";
4
+ import { EventCommand } from "./EventCommand";
5
+ import { ConstInterface } from "../../ConstInterface";
6
+ export class ComputeEventCommand extends EventCommand {
7
+ Subforms = false;
8
+ constructor() {
9
+ super(InternalInterface.MG_ACT_COMPUTE);
10
+ }
11
+ SerializeCommandData() {
12
+ let helper = new CommandSerializationHelper();
13
+ helper.SerializeTaskTag(this.TaskTag);
14
+ helper.SerializeMagicEvent(this.MagicEvent);
15
+ if (this.Subforms)
16
+ helper.SerializeAttribute(ConstInterface.MG_ATTR_OBJECT, "99999");
17
+ return helper.GetString();
18
+ }
19
+ getCommandInfo() {
20
+ return NString.Format('[{0} for {1} in {2}] ', this.EventDescription, this.Subforms ? 'Form and Subform' : 'Form', this.Task.getTaskInfo());
21
+ }
22
+ }
23
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ29tcHV0ZUV2ZW50Q29tbWFuZC5q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XG4gICAgc3VwZXIoSW50ZXJuYWxJbnRlcmZhY2UuTUdfQUNUX0NPTVBVVEUpO1xyXG4gIH1cclxuXHJcbiAgU2VyaWFsaXplQ29tbWFuZERhdGEoKTogc3RyaW5nIHtcclxuICAgIGxldCBoZWxwZXI6IENvbW1hbmRTZXJpYWxpemF0aW9uSGVscGVyID0gbmV3IENvbW1hbmRTZXJpYWxpemF0aW9uSGVscGVyKCk7XHJcblxyXG4gICAgaGVscGVyLlNlcmlhbGl6ZVRhc2tUYWcodGhpcy5UYXNrVGFnKTtcclxuICAgIGhlbHBlci5TZXJpYWxpemVNYWdpY0V2ZW50KHRoaXMuTWFnaWNFdmVudCk7XHJcblxyXG4gICAgaWYgKHRoaXMuU3ViZm9ybXMpXHJcbiAgICAgIGhlbHBlci5TZXJpYWxpemVBdHRyaWJ1dGUoQ29uc3RJbnRlcmZhY2UuTUdfQVRUUl9PQkpFQ1QsIFwiOTk5OTlcIik7XHJcblxyXG4gICAgcmV0dXJuIGhlbHBlci5HZXRTdHJpbmcoKTtcclxuICB9XHJcblxyXG4gIGdldENvbW1hbmRJbmZvKCk6IHN0cmluZyB7XHJcbiAgICByZXR1cm4gTlN0cmluZy5Gb3JtYXQoJ1t7MH0gZm9yIHsxfSBpbiB7Mn1dICdcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLCB0aGlzLkV2ZW50RGVzY3JpcHRpb25cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLHRoaXMuU3ViZm9ybXMgPyAnRm9ybSBhbmQgU3ViZm9ybScgOiAnRm9ybSdcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLCB0aGlzLlRhc2suZ2V0VGFza0luZm8oKSk7XHJcbiAgfVxyXG59XHJcbiJdfQ==
@@ -1,21 +1,21 @@
1
- import { NString } from "@magic-xpa/mscorelib";
2
- import { InternalInterface } from "@magic-xpa/utils";
3
- import { EventCommand } from "./EventCommand";
4
- import { CommandSerializationHelper } from "./CommandSerializationHelper";
5
- import { ConstInterface } from "../../ConstInterface";
6
- export class ContextTerminationEventCommand extends EventCommand {
7
- constructor() {
8
- super(InternalInterface.MG_ACT_CONTEXT_TERMINATION);
9
- }
10
- SerializeCommandData() {
11
- let helper = new CommandSerializationHelper();
12
- helper.SerializeTaskTag(this.TaskTag);
13
- helper.SerializeMagicEvent(this.MagicEvent);
14
- helper.SerializeAttribute(ConstInterface.MG_ATTR_OBJECT, "1");
15
- return helper.GetString();
16
- }
17
- getCommandInfo() {
18
- return NString.Empty;
19
- }
20
- }
1
+ import { NString } from "@magic-xpa/mscorelib";
2
+ import { InternalInterface } from "@magic-xpa/utils";
3
+ import { EventCommand } from "./EventCommand";
4
+ import { CommandSerializationHelper } from "./CommandSerializationHelper";
5
+ import { ConstInterface } from "../../ConstInterface";
6
+ export class ContextTerminationEventCommand extends EventCommand {
7
+ constructor() {
8
+ super(InternalInterface.MG_ACT_CONTEXT_TERMINATION);
9
+ }
10
+ SerializeCommandData() {
11
+ let helper = new CommandSerializationHelper();
12
+ helper.SerializeTaskTag(this.TaskTag);
13
+ helper.SerializeMagicEvent(this.MagicEvent);
14
+ helper.SerializeAttribute(ConstInterface.MG_ATTR_OBJECT, "1");
15
+ return helper.GetString();
16
+ }
17
+ getCommandInfo() {
18
+ return NString.Empty;
19
+ }
20
+ }
21
21
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ29udGV4dFRlcm1pbmF0aW9uRXZlbnRDb21tYW5kLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZW5naW5lL3NyYy9jb21tYW5kcy9DbGllbnRUb1NlcnZlci9Db250ZXh0VGVybWluYXRpb25FdmVudENvbW1hbmQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEs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c3RyaW5nIHtcclxuXHJcbiAgICByZXR1cm4gTlN0cmluZy5FbXB0eTtcclxuICB9XHJcbn1cclxuIl19
@@ -1,20 +1,20 @@
1
- import { EventCommand } from './EventCommand';
2
- import { CommandSerializationHelper } from './CommandSerializationHelper';
3
- import { ConstInterface } from '../../ConstInterface';
4
- import { InternalInterface } from '@magic-xpa/utils';
5
- import { NString } from '@magic-xpa/mscorelib';
6
- export class ContextTimeoutResetCommand extends EventCommand {
7
- constructor() {
8
- super(InternalInterface.MG_ACT_CONTEXT_TIMEOUT_RESET);
9
- }
10
- SerializeCommandData() {
11
- let helper = new CommandSerializationHelper();
12
- helper.SerializeMagicEvent(this.MagicEvent);
13
- helper.SerializeAttribute(ConstInterface.MG_ATTR_OBJECT, '1');
14
- return helper.GetString();
15
- }
16
- getCommandInfo() {
17
- return NString.Empty;
18
- }
19
- }
1
+ import { EventCommand } from './EventCommand';
2
+ import { CommandSerializationHelper } from './CommandSerializationHelper';
3
+ import { ConstInterface } from '../../ConstInterface';
4
+ import { InternalInterface } from '@magic-xpa/utils';
5
+ import { NString } from '@magic-xpa/mscorelib';
6
+ export class ContextTimeoutResetCommand extends EventCommand {
7
+ constructor() {
8
+ super(InternalInterface.MG_ACT_CONTEXT_TIMEOUT_RESET);
9
+ }
10
+ SerializeCommandData() {
11
+ let helper = new CommandSerializationHelper();
12
+ helper.SerializeMagicEvent(this.MagicEvent);
13
+ helper.SerializeAttribute(ConstInterface.MG_ATTR_OBJECT, '1');
14
+ return helper.GetString();
15
+ }
16
+ getCommandInfo() {
17
+ return NString.Empty;
18
+ }
19
+ }
20
20
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ29udGV4dFRpbWVvdXRSZXNldENvbW1hbmQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9lbmdpbmUvc3JjL2NvbW1hbmRzL0NsaWVudFRv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Il19
@@ -1,8 +1,8 @@
1
- import { DataviewCommand } from "./DataviewCommand";
2
- export class ControlItemsRefreshCommand extends DataviewCommand {
3
- constructor() {
4
- super();
5
- this.Control = null;
6
- }
7
- }
8
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ29udHJvbEl0ZW1zUmVmcmVzaENvbW1hbmQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9lbmdpbmUvc3JjL2NvbW1hbmRzL0NsaWVudFRvU2VydmVyL0NvbnRyb2xJdGVtc1JlZnJlc2hDb21tYW5kLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxlQUFlLEVBQUMsTUFBTSxtQkFBbUIsQ0FBQztBQU1sRCxNQUFNLE9BQU8sMEJBQTJCLFNBQVEsZUFBZTtJQUc3RDtRQUNFLEtBQUssRUFBRSxDQUFDO1FBSFYsWUFBTyxHQUFrQixJQUFJLENBQUM7SUFJOUIsQ0FBQztDQUNGIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtEYXRhdmlld0NvbW1hbmR9IGZyb20gXCIuL0RhdGF2aWV3Q29tbWFuZFwiO1xyXG5pbXBvcnQge01nQ29udHJvbEJhc2V9IGZyb20gXCJAbWFnaWMteHBhL2d1aVwiO1xyXG5cclxuLy8vIDxzdW1tYXJ5PlxyXG4vLy8gQ29udHJvbEl0ZW1zUmVmcmVzaENvbW1hbmQgY2xhc3NcclxuLy8vIDwvc3VtbWFyeT5cclxuZXhwb3J0IGNsYXNzIENvbnRyb2xJdGVtc1JlZnJlc2hDb21tYW5kIGV4dGVuZHMgRGF0YXZpZXdDb21tYW5kIHtcclxuICBDb250cm9sOiBNZ0NvbnRyb2xCYXNlID0gbnVsbDtcclxuXHJcbiAgY29uc3RydWN0b3IoKSB7XHJcbiAgICBzdXBlcigpO1xyXG4gIH1cclxufVxyXG4iXX0=
1
+ import { DataviewCommand } from "./DataviewCommand";
2
+ export class ControlItemsRefreshCommand extends DataviewCommand {
3
+ Control = null;
4
+ constructor() {
5
+ super();
6
+ }
7
+ }
8
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ29udHJvbEl0ZW1zUmVmcmVzaENvbW1hbmQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9lbmdpbmUvc3JjL2NvbW1hbmRzL0NsaWVudFRvU2VydmVyL0NvbnRyb2xJdGVtc1JlZnJlc2hDb21tYW5kLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxlQUFlLEVBQUMsTUFBTSxtQkFBbUIsQ0FBQztBQU1sRCxNQUFNLE9BQU8sMEJBQTJCLFNBQVEsZUFBZTtJQUM3RCxPQUFPLEdBQWtCLElBQUksQ0FBQztJQUU5QjtRQUNFLEtBQUssRUFBRSxDQUFDO0lBQ1YsQ0FBQztDQUNGIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtEYXRhdmlld0NvbW1hbmR9IGZyb20gXCIuL0RhdGF2aWV3Q29tbWFuZFwiO1xyXG5pbXBvcnQge01nQ29udHJvbEJhc2V9IGZyb20gXCJAbWFnaWMteHBhL2d1aVwiO1xyXG5cclxuLy8vIDxzdW1tYXJ5PlxyXG4vLy8gQ29udHJvbEl0ZW1zUmVmcmVzaENvbW1hbmQgY2xhc3NcclxuLy8vIDwvc3VtbWFyeT5cclxuZXhwb3J0IGNsYXNzIENvbnRyb2xJdGVtc1JlZnJlc2hDb21tYW5kIGV4dGVuZHMgRGF0YXZpZXdDb21tYW5kIHtcclxuICBDb250cm9sOiBNZ0NvbnRyb2xCYXNlID0gbnVsbDtcclxuXHJcbiAgY29uc3RydWN0b3IoKSB7XHJcbiAgICBzdXBlcigpO1xyXG4gIH1cclxufVxyXG4iXX0=
@@ -0,0 +1,13 @@
1
+ import { DataviewCommand } from "./DataviewCommand";
2
+ export class DataViewOutputCommand extends DataviewCommand {
3
+ Generation = 0;
4
+ TaskVarNames = null;
5
+ DestinationDataSourceNumber = 0;
6
+ DestinationDataSourceName = null;
7
+ DestinationColumns = null;
8
+ constructor(OutputCommandType) {
9
+ super();
10
+ this.CommandType = OutputCommandType;
11
+ }
12
+ }
13
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRGF0YVZpZXdPdXRwdXRDb21tYW5kLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZW5naW5lL3NyYy9jb21tYW5kcy9DbGllbnRUb1NlcnZlci9EYXRhVmlld091dHB1dENvbW1hbmQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLGVBQWUsRUFBc0IsTUFBTSxtQkFBbUIsQ0FBQztBQUt2RSxNQUFNLE9BQU8scUJBQXNCLFNBQVEsZUFBZTtJQUN4RCxVQUFVLEdBQVcsQ0FBQyxDQUFDO0lBQ3ZCLFlBQVksR0FBVyxJQUFJLENBQUM7SUFDNUIsMkJBQTJCLEdBQVcsQ0FBQyxDQUFDO0lBQ3hDLHlCQUF5QixHQUFXLElBQUksQ0FBQztJQUN6QyxrQkFBa0IsR0FBVyxJQUFJLENBQUM7SUFLbEMsWUFBWSxpQkFBc0M7UUFDaEQsS0FBSyxFQUFFLENBQUM7UUFDUixJQUFJLENBQUMsV0FBVyxHQUFHLGlCQUFpQixDQUFDO0lBQ3ZDLENBQUM7Q0FDRiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7RGF0YXZpZXdDb21tYW5kLCBEYXRhVmlld0NvbW1hbmRUeXBlfSBmcm9tIFwiLi9EYXRhdmlld0NvbW1hbmRcIjtcclxuXHJcbi8vLyA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