@lcap/nasl 3.3.3-beta.5 → 3.3.3-beta.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (873) hide show
  1. package/out/bak/translator.js +73 -15
  2. package/out/bak/translator.js.map +1 -1
  3. package/out/common/BaseNode.d.ts +11 -0
  4. package/out/common/BaseNode.js +51 -0
  5. package/out/common/BaseNode.js.map +1 -1
  6. package/out/common/index.d.ts +1 -0
  7. package/out/common/index.js +1 -0
  8. package/out/common/index.js.map +1 -1
  9. package/out/common/utils.d.ts +2 -0
  10. package/out/common/utils.js +18 -0
  11. package/out/common/utils.js.map +1 -0
  12. package/out/concepts/Abort__.d.ts +2 -2
  13. package/out/concepts/Abort__.js +6 -2
  14. package/out/concepts/Abort__.js.map +1 -1
  15. package/out/concepts/Anchor__.d.ts +2 -2
  16. package/out/concepts/Anchor__.js +11 -7
  17. package/out/concepts/Anchor__.js.map +1 -1
  18. package/out/concepts/AnonymousFunction__.d.ts +3 -3
  19. package/out/concepts/AnonymousFunction__.js +37 -23
  20. package/out/concepts/AnonymousFunction__.js.map +1 -1
  21. package/out/concepts/App__.js +137 -69
  22. package/out/concepts/App__.js.map +1 -1
  23. package/out/concepts/Argument__.d.ts +2 -2
  24. package/out/concepts/Argument__.js +18 -13
  25. package/out/concepts/Argument__.js.map +1 -1
  26. package/out/concepts/Assignee__.d.ts +2 -2
  27. package/out/concepts/Assignee__.js +33 -22
  28. package/out/concepts/Assignee__.js.map +1 -1
  29. package/out/concepts/AssignmentLine__.d.ts +2 -2
  30. package/out/concepts/AssignmentLine__.js +3 -2
  31. package/out/concepts/AssignmentLine__.js.map +1 -1
  32. package/out/concepts/Assignment__.d.ts +2 -2
  33. package/out/concepts/Assignment__.js +16 -12
  34. package/out/concepts/Assignment__.js.map +1 -1
  35. package/out/concepts/Attribute__.js +6 -3
  36. package/out/concepts/Attribute__.js.map +1 -1
  37. package/out/concepts/AuthLogicForCallInterface__.d.ts +2 -2
  38. package/out/concepts/AuthLogicForCallInterface__.js +62 -78
  39. package/out/concepts/AuthLogicForCallInterface__.js.map +1 -1
  40. package/out/concepts/BackendVariable__.d.ts +5 -8
  41. package/out/concepts/BackendVariable__.js +23 -18
  42. package/out/concepts/BackendVariable__.js.map +1 -1
  43. package/out/concepts/Backend__.d.ts +4 -7
  44. package/out/concepts/Backend__.js +16 -11
  45. package/out/concepts/Backend__.js.map +1 -1
  46. package/out/concepts/BatchAssignment__.d.ts +2 -2
  47. package/out/concepts/BatchAssignment__.js +30 -22
  48. package/out/concepts/BatchAssignment__.js.map +1 -1
  49. package/out/concepts/BinaryExpression__.d.ts +2 -2
  50. package/out/concepts/BinaryExpression__.js +30 -18
  51. package/out/concepts/BinaryExpression__.js.map +1 -1
  52. package/out/concepts/BindAttribute__.d.ts +10 -4
  53. package/out/concepts/BindAttribute__.js +144 -43
  54. package/out/concepts/BindAttribute__.js.map +1 -1
  55. package/out/concepts/BindDirective__.d.ts +2 -2
  56. package/out/concepts/BindDirective__.js +16 -11
  57. package/out/concepts/BindDirective__.js.map +1 -1
  58. package/out/concepts/BindEvent__.d.ts +4 -7
  59. package/out/concepts/BindEvent__.js +32 -24
  60. package/out/concepts/BindEvent__.js.map +1 -1
  61. package/out/concepts/BindStyle__.d.ts +2 -2
  62. package/out/concepts/BindStyle__.js +15 -10
  63. package/out/concepts/BindStyle__.js.map +1 -1
  64. package/out/concepts/BooleanLiteral__.d.ts +2 -2
  65. package/out/concepts/BooleanLiteral__.js +2 -2
  66. package/out/concepts/BooleanLiteral__.js.map +1 -1
  67. package/out/concepts/CallAuthInterface__.d.ts +2 -2
  68. package/out/concepts/CallAuthInterface__.js +36 -31
  69. package/out/concepts/CallAuthInterface__.js.map +1 -1
  70. package/out/concepts/CallConnector__.d.ts +2 -2
  71. package/out/concepts/CallConnector__.js +25 -23
  72. package/out/concepts/CallConnector__.js.map +1 -1
  73. package/out/concepts/CallFunction__.d.ts +2 -2
  74. package/out/concepts/CallFunction__.js +31 -22
  75. package/out/concepts/CallFunction__.js.map +1 -1
  76. package/out/concepts/CallInterface__.d.ts +2 -2
  77. package/out/concepts/CallInterface__.js +16 -21
  78. package/out/concepts/CallInterface__.js.map +1 -1
  79. package/out/concepts/CallLogic__.d.ts +2 -3
  80. package/out/concepts/CallLogic__.js +47 -50
  81. package/out/concepts/CallLogic__.js.map +1 -1
  82. package/out/concepts/CallQueryComponent__.d.ts +4 -4
  83. package/out/concepts/CallQueryComponent__.js +50 -42
  84. package/out/concepts/CallQueryComponent__.js.map +1 -1
  85. package/out/concepts/Comment__.d.ts +2 -2
  86. package/out/concepts/Comment__.js +3 -2
  87. package/out/concepts/Comment__.js.map +1 -1
  88. package/out/concepts/CompletionProperty__.js +6 -3
  89. package/out/concepts/CompletionProperty__.js.map +1 -1
  90. package/out/concepts/ConfigGroup__.js +6 -3
  91. package/out/concepts/ConfigGroup__.js.map +1 -1
  92. package/out/concepts/ConfigProperty__.d.ts +4 -7
  93. package/out/concepts/ConfigProperty__.js +18 -13
  94. package/out/concepts/ConfigProperty__.js.map +1 -1
  95. package/out/concepts/Configuration__.js +6 -3
  96. package/out/concepts/Configuration__.js.map +1 -1
  97. package/out/concepts/Connection__.d.ts +4 -7
  98. package/out/concepts/Connection__.js +12 -8
  99. package/out/concepts/Connection__.js.map +1 -1
  100. package/out/concepts/Connector__.js +30 -15
  101. package/out/concepts/Connector__.js.map +1 -1
  102. package/out/concepts/Constant__.d.ts +3 -3
  103. package/out/concepts/Constant__.js +18 -13
  104. package/out/concepts/Constant__.js.map +1 -1
  105. package/out/concepts/DataSource__.d.ts +4 -7
  106. package/out/concepts/DataSource__.js +13 -9
  107. package/out/concepts/DataSource__.js.map +1 -1
  108. package/out/concepts/Destination__.d.ts +3 -3
  109. package/out/concepts/Destination__.js +35 -29
  110. package/out/concepts/Destination__.js.map +1 -1
  111. package/out/concepts/End__.d.ts +2 -2
  112. package/out/concepts/End__.js +17 -13
  113. package/out/concepts/End__.js.map +1 -1
  114. package/out/concepts/EntityIndex__.d.ts +2 -2
  115. package/out/concepts/EntityIndex__.js +4 -3
  116. package/out/concepts/EntityIndex__.js.map +1 -1
  117. package/out/concepts/EntityProperty__.d.ts +2 -2
  118. package/out/concepts/EntityProperty__.js +22 -15
  119. package/out/concepts/EntityProperty__.js.map +1 -1
  120. package/out/concepts/Entity__.d.ts +4 -7
  121. package/out/concepts/Entity__.js +29 -21
  122. package/out/concepts/Entity__.js.map +1 -1
  123. package/out/concepts/EnumItem__.d.ts +2 -2
  124. package/out/concepts/EnumItem__.js +4 -3
  125. package/out/concepts/EnumItem__.js.map +1 -1
  126. package/out/concepts/Enum__.d.ts +4 -7
  127. package/out/concepts/Enum__.js +16 -11
  128. package/out/concepts/Enum__.js.map +1 -1
  129. package/out/concepts/Event__.js +6 -3
  130. package/out/concepts/Event__.js.map +1 -1
  131. package/out/concepts/ExternalDestination__.d.ts +2 -2
  132. package/out/concepts/ExternalDestination__.js +13 -8
  133. package/out/concepts/ExternalDestination__.js.map +1 -1
  134. package/out/concepts/ForEachStatement__.d.ts +2 -2
  135. package/out/concepts/ForEachStatement__.js +26 -18
  136. package/out/concepts/ForEachStatement__.js.map +1 -1
  137. package/out/concepts/FrontendLibrary__.js +18 -10
  138. package/out/concepts/FrontendLibrary__.js.map +1 -1
  139. package/out/concepts/Frontend__.d.ts +4 -7
  140. package/out/concepts/Frontend__.js +37 -21
  141. package/out/concepts/Frontend__.js.map +1 -1
  142. package/out/concepts/Function__.d.ts +3 -3
  143. package/out/concepts/Function__.js +52 -33
  144. package/out/concepts/Function__.js.map +1 -1
  145. package/out/concepts/Identifier__.d.ts +2 -2
  146. package/out/concepts/Identifier__.js +23 -18
  147. package/out/concepts/Identifier__.js.map +1 -1
  148. package/out/concepts/IfStatement__.d.ts +2 -2
  149. package/out/concepts/IfStatement__.js +18 -13
  150. package/out/concepts/IfStatement__.js.map +1 -1
  151. package/out/concepts/Integration__.js +17 -9
  152. package/out/concepts/Integration__.js.map +1 -1
  153. package/out/concepts/InterfaceParam__.d.ts +2 -2
  154. package/out/concepts/InterfaceParam__.js +12 -8
  155. package/out/concepts/InterfaceParam__.js.map +1 -1
  156. package/out/concepts/Interface__.d.ts +4 -7
  157. package/out/concepts/Interface__.js +44 -33
  158. package/out/concepts/Interface__.js.map +1 -1
  159. package/out/concepts/JSBlock__.d.ts +2 -2
  160. package/out/concepts/JSBlock__.js +3 -2
  161. package/out/concepts/JSBlock__.js.map +1 -1
  162. package/out/concepts/JavaLogic__.d.ts +2 -2
  163. package/out/concepts/JavaLogic__.js +6 -2
  164. package/out/concepts/JavaLogic__.js.map +1 -1
  165. package/out/concepts/LogicItem__.d.ts +2 -2
  166. package/out/concepts/LogicItem__.js +7 -3
  167. package/out/concepts/LogicItem__.js.map +1 -1
  168. package/out/concepts/Logic__.d.ts +8 -11
  169. package/out/concepts/Logic__.js +141 -136
  170. package/out/concepts/Logic__.js.map +1 -1
  171. package/out/concepts/MatchCase__.d.ts +2 -2
  172. package/out/concepts/MatchCase__.js +35 -27
  173. package/out/concepts/MatchCase__.js.map +1 -1
  174. package/out/concepts/Match__.d.ts +2 -2
  175. package/out/concepts/Match__.js +29 -24
  176. package/out/concepts/Match__.js.map +1 -1
  177. package/out/concepts/MemberExpression__.d.ts +2 -2
  178. package/out/concepts/MemberExpression__.js +34 -27
  179. package/out/concepts/MemberExpression__.js.map +1 -1
  180. package/out/concepts/MetadataType__.d.ts +4 -7
  181. package/out/concepts/MetadataType__.js +23 -15
  182. package/out/concepts/MetadataType__.js.map +1 -1
  183. package/out/concepts/MsgTriggerEvent__.js +6 -3
  184. package/out/concepts/MsgTriggerEvent__.js.map +1 -1
  185. package/out/concepts/MsgTriggerLauncher__.js +6 -3
  186. package/out/concepts/MsgTriggerLauncher__.js.map +1 -1
  187. package/out/concepts/Namespace__.js +66 -33
  188. package/out/concepts/Namespace__.js.map +1 -1
  189. package/out/concepts/NewComposite__.d.ts +6 -6
  190. package/out/concepts/NewComposite__.js +95 -82
  191. package/out/concepts/NewComposite__.js.map +1 -1
  192. package/out/concepts/NewList__.d.ts +5 -5
  193. package/out/concepts/NewList__.js +42 -32
  194. package/out/concepts/NewList__.js.map +1 -1
  195. package/out/concepts/NewMap__.d.ts +4 -4
  196. package/out/concepts/NewMap__.js +51 -41
  197. package/out/concepts/NewMap__.js.map +1 -1
  198. package/out/concepts/New__.d.ts +2 -2
  199. package/out/concepts/New__.js +3 -2
  200. package/out/concepts/New__.js.map +1 -1
  201. package/out/concepts/NullLiteral__.d.ts +2 -2
  202. package/out/concepts/NullLiteral__.js +2 -2
  203. package/out/concepts/NullLiteral__.js.map +1 -1
  204. package/out/concepts/NumericLiteral__.d.ts +2 -2
  205. package/out/concepts/NumericLiteral__.js +12 -7
  206. package/out/concepts/NumericLiteral__.js.map +1 -1
  207. package/out/concepts/OqlQueryComponent__.d.ts +2 -2
  208. package/out/concepts/OqlQueryComponent__.js +22 -17
  209. package/out/concepts/OqlQueryComponent__.js.map +1 -1
  210. package/out/concepts/OverriddenLogic__.d.ts +8 -11
  211. package/out/concepts/OverriddenLogic__.js +135 -130
  212. package/out/concepts/OverriddenLogic__.js.map +1 -1
  213. package/out/concepts/Param__.d.ts +3 -3
  214. package/out/concepts/Param__.js +29 -24
  215. package/out/concepts/Param__.js.map +1 -1
  216. package/out/concepts/ProcessComponent__.js +12 -6
  217. package/out/concepts/ProcessComponent__.js.map +1 -1
  218. package/out/concepts/ProcessElement__.d.ts +2 -2
  219. package/out/concepts/ProcessElement__.js +92 -66
  220. package/out/concepts/ProcessElement__.js.map +1 -1
  221. package/out/concepts/ProcessOutcome__.d.ts +2 -1
  222. package/out/concepts/ProcessOutcome__.js +5 -4
  223. package/out/concepts/ProcessOutcome__.js.map +1 -1
  224. package/out/concepts/ProcessOutcomes__.d.ts +2 -1
  225. package/out/concepts/ProcessOutcomes__.js +6 -5
  226. package/out/concepts/ProcessOutcomes__.js.map +1 -1
  227. package/out/concepts/Process__.d.ts +4 -7
  228. package/out/concepts/Process__.js +51 -34
  229. package/out/concepts/Process__.js.map +1 -1
  230. package/out/concepts/QueryAggregateExpression__.d.ts +2 -2
  231. package/out/concepts/QueryAggregateExpression__.js +8 -5
  232. package/out/concepts/QueryAggregateExpression__.js.map +1 -1
  233. package/out/concepts/QueryFieldExpression__.d.ts +2 -2
  234. package/out/concepts/QueryFieldExpression__.js +5 -4
  235. package/out/concepts/QueryFieldExpression__.js.map +1 -1
  236. package/out/concepts/QueryFromExpression__.d.ts +2 -2
  237. package/out/concepts/QueryFromExpression__.js +14 -9
  238. package/out/concepts/QueryFromExpression__.js.map +1 -1
  239. package/out/concepts/QueryGroupByExpression__.d.ts +2 -1
  240. package/out/concepts/QueryGroupByExpression__.js +12 -8
  241. package/out/concepts/QueryGroupByExpression__.js.map +1 -1
  242. package/out/concepts/QueryJoinExpression__.d.ts +2 -2
  243. package/out/concepts/QueryJoinExpression__.js +18 -13
  244. package/out/concepts/QueryJoinExpression__.js.map +1 -1
  245. package/out/concepts/QueryLimitExpression__.d.ts +2 -2
  246. package/out/concepts/QueryLimitExpression__.js +12 -8
  247. package/out/concepts/QueryLimitExpression__.js.map +1 -1
  248. package/out/concepts/QueryOrderByExpression__.d.ts +2 -2
  249. package/out/concepts/QueryOrderByExpression__.js +12 -8
  250. package/out/concepts/QueryOrderByExpression__.js.map +1 -1
  251. package/out/concepts/QuerySelectExpression__.js +6 -3
  252. package/out/concepts/QuerySelectExpression__.js.map +1 -1
  253. package/out/concepts/Return__.d.ts +3 -3
  254. package/out/concepts/Return__.js +21 -16
  255. package/out/concepts/Return__.js.map +1 -1
  256. package/out/concepts/Role__.d.ts +4 -7
  257. package/out/concepts/Role__.js +7 -6
  258. package/out/concepts/Role__.js.map +1 -1
  259. package/out/concepts/SelectMembers__.d.ts +2 -2
  260. package/out/concepts/SelectMembers__.js +9 -5
  261. package/out/concepts/SelectMembers__.js.map +1 -1
  262. package/out/concepts/Slot__.js +6 -3
  263. package/out/concepts/Slot__.js.map +1 -1
  264. package/out/concepts/SqlQueryComponent__.d.ts +2 -2
  265. package/out/concepts/SqlQueryComponent__.js +18 -13
  266. package/out/concepts/SqlQueryComponent__.js.map +1 -1
  267. package/out/concepts/Start__.d.ts +2 -2
  268. package/out/concepts/Start__.js +2 -2
  269. package/out/concepts/Start__.js.map +1 -1
  270. package/out/concepts/StringInterpolation__.d.ts +2 -2
  271. package/out/concepts/StringInterpolation__.js +13 -8
  272. package/out/concepts/StringInterpolation__.js.map +1 -1
  273. package/out/concepts/StringLiteral__.d.ts +2 -2
  274. package/out/concepts/StringLiteral__.js +4 -3
  275. package/out/concepts/StringLiteral__.js.map +1 -1
  276. package/out/concepts/StructureProperty__.d.ts +2 -2
  277. package/out/concepts/StructureProperty__.js +14 -10
  278. package/out/concepts/StructureProperty__.js.map +1 -1
  279. package/out/concepts/Structure__.d.ts +4 -7
  280. package/out/concepts/Structure__.js +22 -14
  281. package/out/concepts/Structure__.js.map +1 -1
  282. package/out/concepts/SwitchCase__.d.ts +2 -2
  283. package/out/concepts/SwitchCase__.js +18 -13
  284. package/out/concepts/SwitchCase__.js.map +1 -1
  285. package/out/concepts/SwitchStatement__.d.ts +2 -2
  286. package/out/concepts/SwitchStatement__.js +14 -9
  287. package/out/concepts/SwitchStatement__.js.map +1 -1
  288. package/out/concepts/TriggerEvent__.js +6 -3
  289. package/out/concepts/TriggerEvent__.js.map +1 -1
  290. package/out/concepts/TriggerLauncher__.d.ts +4 -7
  291. package/out/concepts/TriggerLauncher__.js +7 -6
  292. package/out/concepts/TriggerLauncher__.js.map +1 -1
  293. package/out/concepts/TypeAnnotation__.d.ts +2 -2
  294. package/out/concepts/TypeAnnotation__.js +61 -29
  295. package/out/concepts/TypeAnnotation__.js.map +1 -1
  296. package/out/concepts/TypeParam__.d.ts +2 -2
  297. package/out/concepts/TypeParam__.js +4 -3
  298. package/out/concepts/TypeParam__.js.map +1 -1
  299. package/out/concepts/UnaryExpression__.d.ts +2 -2
  300. package/out/concepts/UnaryExpression__.js +18 -10
  301. package/out/concepts/UnaryExpression__.js.map +1 -1
  302. package/out/concepts/Unparsed__.d.ts +2 -1
  303. package/out/concepts/Unparsed__.js +2 -2
  304. package/out/concepts/Unparsed__.js.map +1 -1
  305. package/out/concepts/ValidationRule__.d.ts +2 -2
  306. package/out/concepts/ValidationRule__.js +17 -12
  307. package/out/concepts/ValidationRule__.js.map +1 -1
  308. package/out/concepts/Variable__.d.ts +5 -8
  309. package/out/concepts/Variable__.js +23 -18
  310. package/out/concepts/Variable__.js.map +1 -1
  311. package/out/concepts/ViewElement__.d.ts +7 -6
  312. package/out/concepts/ViewElement__.js +139 -101
  313. package/out/concepts/ViewElement__.js.map +1 -1
  314. package/out/concepts/View__.d.ts +8 -9
  315. package/out/concepts/View__.js +73 -62
  316. package/out/concepts/View__.js.map +1 -1
  317. package/out/concepts/WhileStatement__.d.ts +2 -2
  318. package/out/concepts/WhileStatement__.js +9 -7
  319. package/out/concepts/WhileStatement__.js.map +1 -1
  320. package/out/manager/diagnostic.d.ts +1 -1
  321. package/out/manager/diagnostic.js +2 -3
  322. package/out/manager/diagnostic.js.map +1 -1
  323. package/out/natural/transformTSCode.d.ts +2 -2
  324. package/out/server/naslServer.d.ts +46 -55
  325. package/out/server/naslServer.js +302 -449
  326. package/out/server/naslServer.js.map +1 -1
  327. package/out/server/translator.js +1 -1
  328. package/out/server/translator.js.map +1 -1
  329. package/out/templator/genCreateBlock.js +4 -4
  330. package/out/templator/genCreateBlock.js.map +1 -1
  331. package/out/templator/genCurdEditMultipleKeyBlock.js +6 -6
  332. package/out/templator/genCurdEditMultipleKeyBlock.js.map +1 -1
  333. package/out/templator/genCurdMultipleKeyBlock.js +4 -4
  334. package/out/templator/genCurdMultipleKeyBlock.js.map +1 -1
  335. package/out/templator/genEditTableBlock.js +2 -2
  336. package/out/templator/genEditTableBlock.js.map +1 -1
  337. package/out/templator/genUpdateBlock.js +4 -4
  338. package/out/templator/genUpdateBlock.js.map +1 -1
  339. package/out/translator/types.d.ts +16 -3
  340. package/out/translator/utils.d.ts +19 -1
  341. package/out/translator/utils.js +71 -2
  342. package/out/translator/utils.js.map +1 -1
  343. package/out/utils/time-slicing/constant.d.ts +35 -0
  344. package/out/utils/time-slicing/constant.js +40 -0
  345. package/out/utils/time-slicing/constant.js.map +1 -0
  346. package/out/utils/time-slicing/controller.d.ts +53 -0
  347. package/out/utils/time-slicing/controller.js +280 -0
  348. package/out/utils/time-slicing/controller.js.map +1 -0
  349. package/out/utils/time-slicing/index.d.ts +5 -0
  350. package/out/utils/time-slicing/index.js +26 -0
  351. package/out/utils/time-slicing/index.js.map +1 -0
  352. package/out/utils/time-slicing/page-state.d.ts +2 -0
  353. package/out/utils/time-slicing/page-state.js +14 -0
  354. package/out/utils/time-slicing/page-state.js.map +1 -0
  355. package/out/utils/time-slicing/performance.d.ts +11 -0
  356. package/out/utils/time-slicing/performance.js +51 -0
  357. package/out/utils/time-slicing/performance.js.map +1 -0
  358. package/out/utils/time-slicing/runner.d.ts +12 -0
  359. package/out/utils/time-slicing/runner.js +53 -0
  360. package/out/utils/time-slicing/runner.js.map +1 -0
  361. package/out/utils/time-slicing/tool.d.ts +24 -0
  362. package/out/utils/time-slicing/tool.js +47 -0
  363. package/out/utils/time-slicing/tool.js.map +1 -0
  364. package/out/utils/time-slicing/utils.d.ts +62 -0
  365. package/out/utils/time-slicing/utils.js +47 -0
  366. package/out/utils/time-slicing/utils.js.map +1 -0
  367. package/out/utils/time-slicing/wrapper.d.ts +18 -0
  368. package/out/utils/time-slicing/wrapper.js +55 -0
  369. package/out/utils/time-slicing/wrapper.js.map +1 -0
  370. package/out/utils/types.d.ts +7 -0
  371. package/package.json +1 -1
  372. package/src/bak/translator.js +75 -16
  373. package/src/common/BaseNode.ts +67 -6
  374. package/src/common/index.ts +1 -0
  375. package/src/common/utils.ts +17 -0
  376. package/src/concepts/Abort__.ts +12 -3
  377. package/src/concepts/Anchor__.ts +21 -8
  378. package/src/concepts/AnonymousFunction__.ts +45 -31
  379. package/src/concepts/App__.ts +137 -69
  380. package/src/concepts/Argument__.ts +31 -14
  381. package/src/concepts/Assignee__.ts +44 -23
  382. package/src/concepts/AssignmentLine__.ts +13 -3
  383. package/src/concepts/Assignment__.ts +26 -14
  384. package/src/concepts/Attribute__.ts +6 -3
  385. package/src/concepts/AuthLogicForCallInterface__.ts +69 -87
  386. package/src/concepts/BackendVariable__.ts +34 -19
  387. package/src/concepts/Backend__.ts +33 -12
  388. package/src/concepts/BatchAssignment__.ts +41 -23
  389. package/src/concepts/BinaryExpression__.ts +40 -20
  390. package/src/concepts/BindAttribute__.ts +151 -49
  391. package/src/concepts/BindDirective__.ts +25 -12
  392. package/src/concepts/BindEvent__.ts +43 -32
  393. package/src/concepts/BindStyle__.ts +24 -11
  394. package/src/concepts/BooleanLiteral__.ts +11 -3
  395. package/src/concepts/CallAuthInterface__.ts +45 -34
  396. package/src/concepts/CallConnector__.ts +34 -26
  397. package/src/concepts/CallFunction__.ts +34 -23
  398. package/src/concepts/CallInterface__.ts +25 -30
  399. package/src/concepts/CallLogic__.ts +60 -67
  400. package/src/concepts/CallQueryComponent__.ts +60 -52
  401. package/src/concepts/Comment__.ts +13 -3
  402. package/src/concepts/CompletionProperty__.ts +6 -3
  403. package/src/concepts/ConfigGroup__.ts +6 -3
  404. package/src/concepts/ConfigProperty__.ts +28 -15
  405. package/src/concepts/Configuration__.ts +6 -3
  406. package/src/concepts/Connection__.ts +28 -9
  407. package/src/concepts/Connector__.ts +30 -15
  408. package/src/concepts/Constant__.ts +28 -14
  409. package/src/concepts/DataSource__.ts +22 -10
  410. package/src/concepts/Destination__.ts +45 -36
  411. package/src/concepts/End__.ts +24 -15
  412. package/src/concepts/EntityIndex__.ts +13 -4
  413. package/src/concepts/EntityProperty__.ts +33 -17
  414. package/src/concepts/Entity__.ts +40 -25
  415. package/src/concepts/EnumItem__.ts +13 -4
  416. package/src/concepts/Enum__.ts +27 -13
  417. package/src/concepts/Event__.ts +6 -3
  418. package/src/concepts/ExternalDestination__.ts +22 -10
  419. package/src/concepts/ForEachStatement__.ts +36 -20
  420. package/src/concepts/FrontendLibrary__.ts +18 -10
  421. package/src/concepts/Frontend__.ts +48 -22
  422. package/src/concepts/Function__.ts +60 -36
  423. package/src/concepts/Identifier__.ts +32 -23
  424. package/src/concepts/IfStatement__.ts +28 -17
  425. package/src/concepts/Integration__.ts +17 -9
  426. package/src/concepts/InterfaceParam__.ts +22 -9
  427. package/src/concepts/Interface__.ts +55 -37
  428. package/src/concepts/JSBlock__.ts +12 -3
  429. package/src/concepts/JavaLogic__.ts +13 -3
  430. package/src/concepts/LogicItem__.ts +13 -4
  431. package/src/concepts/Logic__.ts +159 -149
  432. package/src/concepts/MatchCase__.ts +45 -32
  433. package/src/concepts/Match__.ts +39 -28
  434. package/src/concepts/MemberExpression__.ts +43 -28
  435. package/src/concepts/MetadataType__.ts +34 -16
  436. package/src/concepts/MsgTriggerEvent__.ts +6 -3
  437. package/src/concepts/MsgTriggerLauncher__.ts +6 -3
  438. package/src/concepts/Namespace__.ts +66 -33
  439. package/src/concepts/NewComposite__.ts +106 -87
  440. package/src/concepts/NewList__.ts +52 -38
  441. package/src/concepts/NewMap__.ts +61 -48
  442. package/src/concepts/New__.ts +13 -3
  443. package/src/concepts/NullLiteral__.ts +11 -3
  444. package/src/concepts/NumericLiteral__.ts +21 -8
  445. package/src/concepts/OqlQueryComponent__.ts +32 -21
  446. package/src/concepts/OverriddenLogic__.ts +153 -143
  447. package/src/concepts/Param__.ts +48 -34
  448. package/src/concepts/ProcessComponent__.ts +12 -6
  449. package/src/concepts/ProcessElement__.ts +102 -76
  450. package/src/concepts/ProcessOutcome__.ts +16 -8
  451. package/src/concepts/ProcessOutcomes__.ts +17 -9
  452. package/src/concepts/Process__.ts +62 -41
  453. package/src/concepts/QueryAggregateExpression__.ts +17 -6
  454. package/src/concepts/QueryFieldExpression__.ts +14 -5
  455. package/src/concepts/QueryFromExpression__.ts +24 -10
  456. package/src/concepts/QueryGroupByExpression__.ts +20 -9
  457. package/src/concepts/QueryJoinExpression__.ts +28 -14
  458. package/src/concepts/QueryLimitExpression__.ts +22 -9
  459. package/src/concepts/QueryOrderByExpression__.ts +23 -9
  460. package/src/concepts/QuerySelectExpression__.ts +6 -3
  461. package/src/concepts/Return__.ts +31 -17
  462. package/src/concepts/Role__.ts +17 -8
  463. package/src/concepts/SelectMembers__.ts +19 -6
  464. package/src/concepts/Slot__.ts +6 -3
  465. package/src/concepts/SqlQueryComponent__.ts +28 -14
  466. package/src/concepts/Start__.ts +11 -3
  467. package/src/concepts/StringInterpolation__.ts +16 -8
  468. package/src/concepts/StringLiteral__.ts +13 -4
  469. package/src/concepts/StructureProperty__.ts +24 -11
  470. package/src/concepts/Structure__.ts +33 -16
  471. package/src/concepts/SwitchCase__.ts +28 -17
  472. package/src/concepts/SwitchStatement__.ts +23 -10
  473. package/src/concepts/TriggerEvent__.ts +6 -3
  474. package/src/concepts/TriggerLauncher__.ts +17 -7
  475. package/src/concepts/TypeAnnotation__.ts +46 -30
  476. package/src/concepts/TypeParam__.ts +13 -4
  477. package/src/concepts/UnaryExpression__.ts +28 -12
  478. package/src/concepts/Unparsed__.ts +10 -3
  479. package/src/concepts/ValidationRule__.ts +27 -20
  480. package/src/concepts/Variable__.ts +34 -19
  481. package/src/concepts/ViewElement__.ts +165 -125
  482. package/src/concepts/View__.ts +108 -89
  483. package/src/concepts/WhileStatement__.ts +19 -10
  484. package/src/concepts/types__.ts +1 -1
  485. package/src/manager/diagnostic.ts +3 -4
  486. package/src/server/naslServer.ts +676 -729
  487. package/src/server/translator.ts +1 -1
  488. package/src/templator/genCreateBlock.ts +4 -4
  489. package/src/templator/genCurdEditMultipleKeyBlock.ts +6 -6
  490. package/src/templator/genCurdMultipleKeyBlock.ts +4 -4
  491. package/src/templator/genEditTableBlock.ts +2 -2
  492. package/src/templator/genUpdateBlock.ts +4 -4
  493. package/src/translator/types.ts +20 -5
  494. package/src/translator/utils.ts +78 -4
  495. package/src/utils/time-slicing/constant.ts +37 -0
  496. package/src/utils/time-slicing/controller.ts +342 -0
  497. package/src/utils/time-slicing/index.ts +6 -0
  498. package/src/utils/time-slicing/page-state.ts +12 -0
  499. package/src/utils/time-slicing/performance.ts +56 -0
  500. package/src/utils/time-slicing/runner.ts +54 -0
  501. package/src/utils/time-slicing/tool.ts +45 -0
  502. package/src/utils/time-slicing/utils.ts +90 -0
  503. package/src/utils/time-slicing/wrapper.ts +58 -0
  504. package/src/utils/types.ts +9 -0
  505. package/test/concepts/anonymous-function/__snapshots__/toEmbeddedTS.spec.ts.snap +8 -0
  506. package/test/concepts/anonymous-function/__snapshots__/toJS.spec.ts.snap +3 -0
  507. package/test/concepts/anonymous-function/__snapshots__/toVue.spec.ts.snap +6 -0
  508. package/test/concepts/anonymous-function/constant.ts +5 -0
  509. package/test/concepts/anonymous-function/fixtures/simple.json +85 -0
  510. package/test/concepts/anonymous-function/toEmbeddedTS.spec.ts +15 -0
  511. package/test/concepts/anonymous-function/toJS.spec.ts +14 -0
  512. package/test/concepts/anonymous-function/toVue.spec.ts +14 -0
  513. package/test/concepts/assignment/__snapshots__/toEmbeddedTS.spec.ts.snap +21 -0
  514. package/test/concepts/assignment/__snapshots__/toJS.spec.ts.snap +9 -0
  515. package/test/concepts/assignment/__snapshots__/toVue.spec.ts.snap +21 -0
  516. package/test/concepts/assignment/constant.ts +5 -0
  517. package/test/concepts/assignment/fixtures/both-space.json +4 -0
  518. package/test/concepts/assignment/fixtures/left-space.json +14 -0
  519. package/test/concepts/assignment/fixtures/right-space.json +8 -0
  520. package/test/concepts/assignment/fixtures/simple.json +12 -0
  521. package/test/concepts/assignment/toEmbeddedTS.spec.ts +15 -0
  522. package/test/concepts/assignment/toJS.spec.ts +14 -0
  523. package/test/concepts/assignment/toVue.spec.ts +14 -0
  524. package/test/concepts/batch-assignment/__snapshots__/toEmbeddedTS.spec.ts.snap +28 -0
  525. package/test/concepts/batch-assignment/__snapshots__/toJS.spec.ts.snap +13 -0
  526. package/test/concepts/batch-assignment/__snapshots__/toVue.spec.ts.snap +14 -0
  527. package/test/concepts/batch-assignment/constant.ts +5 -0
  528. package/test/concepts/batch-assignment/fixtures/muli-var-muli-value.json +144 -0
  529. package/test/concepts/batch-assignment/fixtures/simple-var-simple-value.json +36 -0
  530. package/test/concepts/batch-assignment/toEmbeddedTS.spec.ts +15 -0
  531. package/test/concepts/batch-assignment/toJS.spec.ts +14 -0
  532. package/test/concepts/batch-assignment/toVue.spec.ts +14 -0
  533. package/test/concepts/binary-expression/__snapshots__/toEmbeddedTS.spec.ts.snap +25 -0
  534. package/test/concepts/binary-expression/__snapshots__/toJS.spec.ts.snap +17 -0
  535. package/test/concepts/binary-expression/__snapshots__/toVue.spec.ts.snap +19 -0
  536. package/test/concepts/binary-expression/constant.ts +5 -0
  537. package/test/concepts/binary-expression/fixtures/constant-nested.json +36 -0
  538. package/test/concepts/binary-expression/fixtures/constant-simple.json +12 -0
  539. package/test/concepts/binary-expression/fixtures/variable-nested.json +69 -0
  540. package/test/concepts/binary-expression/toEmbeddedTS.spec.ts +15 -0
  541. package/test/concepts/binary-expression/toJS.spec.ts +14 -0
  542. package/test/concepts/binary-expression/toVue.spec.ts +14 -0
  543. package/test/concepts/boolean-literal/toEmbeddedTS.spec.ts +4 -3
  544. package/test/concepts/boolean-literal/toJS.spec.ts +2 -2
  545. package/test/concepts/boolean-literal/toVue.spec.ts +2 -2
  546. package/test/concepts/call-function/toEmbeddedTS.spec.ts +2 -1
  547. package/test/concepts/call-interface/__snapshots__/toEmbeddedTS.spec.ts.snap +6 -3
  548. package/test/concepts/call-interface/toEmbeddedTS.spec.ts +2 -1
  549. package/test/concepts/call-logic/__snapshots__/getQuickInfoOffset.spec.ts.snap +3 -3
  550. package/test/concepts/call-logic/__snapshots__/toEmbeddedTS.spec.ts.snap +3 -3
  551. package/test/concepts/call-logic/getQuickInfoOffset.spec.ts +2 -1
  552. package/test/concepts/call-logic/toEmbeddedTS.spec.ts +2 -1
  553. package/test/concepts/data-source/__snapshots__/toEmbeddedTS.spec.ts.snap +8 -0
  554. package/test/concepts/data-source/__snapshots__/toEmbeddedTSFile.spec.ts.snap +12 -0
  555. package/test/concepts/data-source/constant.ts +5 -0
  556. package/test/concepts/data-source/fixtures/normal.json +289 -0
  557. package/test/concepts/data-source/toEmbeddedTS.spec.ts +15 -0
  558. package/test/concepts/data-source/toEmbeddedTSFile.spec.ts +16 -0
  559. package/test/concepts/entity/__snapshots__/toEmbeddedTS.spec.ts.snap +74 -0
  560. package/test/concepts/entity/__snapshots__/toEmbeddedTSFile.spec.ts.snap +3 -0
  561. package/test/concepts/entity/constant.ts +5 -0
  562. package/test/concepts/entity/fixtures/normal.json +469 -0
  563. package/test/concepts/entity/toEmbeddedTS.spec.ts +15 -0
  564. package/test/concepts/entity/toEmbeddedTSFile.spec.ts +14 -0
  565. package/test/concepts/identifier/toEmbeddedTS.spec.ts +4 -3
  566. package/test/concepts/identifier/toJS.spec.ts +2 -2
  567. package/test/concepts/identifier/toVue.spec.ts +2 -2
  568. package/test/concepts/match/toEmbeddedTS.spec.ts +2 -1
  569. package/test/concepts/member-expression/toEmbeddedTS.spec.ts +2 -1
  570. package/test/concepts/member-expression/toVue.spec.ts +2 -2
  571. package/test/concepts/null-literal/toEmbeddedTS.spec.ts +4 -3
  572. package/test/concepts/null-literal/toJS.spec.ts +2 -2
  573. package/test/concepts/null-literal/toVue.spec.ts +2 -2
  574. package/test/concepts/numeric-literal/toEmbeddedTS.spec.ts +4 -3
  575. package/test/concepts/numeric-literal/toJS.spec.ts +2 -2
  576. package/test/concepts/numeric-literal/toVue.spec.ts +2 -2
  577. package/test/concepts/string-literal/toEmbeddedTS.spec.ts +4 -3
  578. package/test/concepts/string-literal/toJS.spec.ts +2 -2
  579. package/test/concepts/string-literal/toVue.spec.ts +2 -2
  580. package/test/concepts/validation-rule/toEmbeddedTS.spec.ts +2 -1
  581. package/test/concepts/validation-rule/validation-rule.spec.ts +2 -1
  582. package/test/concepts/view-element/__snapshots__/toVue.spec.ts.snap +0 -2
  583. package/test/concepts/view-element/toEmbeddedTS.spec.ts +2 -1
  584. package/test/time-slicing/runner.spec.ts +28 -0
  585. package/test/time-slicing/time-slicing-nodejs.spec.ts +27 -0
  586. package/test/time-slicing/utils.ts +7 -0
  587. package/test/time-slicing/wrapper.spec.ts +92 -0
  588. package/ts-worker/lib/tsserver.js +10 -1
  589. package/ts-worker/package.json +1 -0
  590. package/ts-worker/src/index.js +13 -12
  591. package/ts-worker/webpack.config.js +1 -1
  592. package/.nyc_output/f2d14ce8-876a-4dc0-9aaf-e51d08d081ca.json +0 -1
  593. package/.nyc_output/processinfo/f2d14ce8-876a-4dc0-9aaf-e51d08d081ca.json +0 -1
  594. package/.nyc_output/processinfo/index.json +0 -1
  595. package/coverage/base.css +0 -224
  596. package/coverage/block-navigation.js +0 -87
  597. package/coverage/favicon.png +0 -0
  598. package/coverage/index.html +0 -446
  599. package/coverage/prettify.css +0 -1
  600. package/coverage/prettify.js +0 -2
  601. package/coverage/sort-arrow-sprite.png +0 -0
  602. package/coverage/sorter.js +0 -196
  603. package/coverage/src/automate/engine/index.html +0 -116
  604. package/coverage/src/automate/engine/utils.js.html +0 -1414
  605. package/coverage/src/bak/index.html +0 -116
  606. package/coverage/src/bak/translator.js.html +0 -619
  607. package/coverage/src/breakpoint/generator/AfterStartNode.ts.html +0 -175
  608. package/coverage/src/breakpoint/generator/BeforeEndNode.ts.html +0 -169
  609. package/coverage/src/breakpoint/generator/BreakpointNode.ts.html +0 -1243
  610. package/coverage/src/breakpoint/generator/CallbackNode.ts.html +0 -145
  611. package/coverage/src/breakpoint/generator/index.html +0 -176
  612. package/coverage/src/breakpoint/generator/index.ts.html +0 -508
  613. package/coverage/src/breakpoint/index.html +0 -116
  614. package/coverage/src/breakpoint/index.ts.html +0 -94
  615. package/coverage/src/breakpoint/shared/constants.ts.html +0 -430
  616. package/coverage/src/breakpoint/shared/index.html +0 -176
  617. package/coverage/src/breakpoint/shared/index.ts.html +0 -94
  618. package/coverage/src/breakpoint/shared/operations.ts.html +0 -160
  619. package/coverage/src/breakpoint/shared/socket.ts.html +0 -1225
  620. package/coverage/src/breakpoint/shared/utils.ts.html +0 -961
  621. package/coverage/src/breakpoint/store/core.ts.html +0 -1600
  622. package/coverage/src/breakpoint/store/dock.ts.html +0 -583
  623. package/coverage/src/breakpoint/store/index.html +0 -146
  624. package/coverage/src/breakpoint/store/index.ts.html +0 -91
  625. package/coverage/src/common/BaseNode.ts.html +0 -3868
  626. package/coverage/src/common/Command.ts.html +0 -310
  627. package/coverage/src/common/EventEmitter.ts.html +0 -370
  628. package/coverage/src/common/Messager.ts.html +0 -820
  629. package/coverage/src/common/asyncFuncMap.ts.html +0 -127
  630. package/coverage/src/common/index.html +0 -191
  631. package/coverage/src/common/index.ts.html +0 -94
  632. package/coverage/src/concepts/Abort__.ts.html +0 -328
  633. package/coverage/src/concepts/Anchor__.ts.html +0 -604
  634. package/coverage/src/concepts/AnonymousFunction__.ts.html +0 -1951
  635. package/coverage/src/concepts/App__.ts.html +0 -13252
  636. package/coverage/src/concepts/Argument__.ts.html +0 -910
  637. package/coverage/src/concepts/Assignee__.ts.html +0 -2236
  638. package/coverage/src/concepts/AssignmentLine__.ts.html +0 -409
  639. package/coverage/src/concepts/Assignment__.ts.html +0 -1078
  640. package/coverage/src/concepts/Attribute__.ts.html +0 -733
  641. package/coverage/src/concepts/AuthInterface__.ts.html +0 -367
  642. package/coverage/src/concepts/AuthLogicForCallInterface__.ts.html +0 -1984
  643. package/coverage/src/concepts/AuthLogic__.ts.html +0 -781
  644. package/coverage/src/concepts/BackendVariable__.ts.html +0 -1483
  645. package/coverage/src/concepts/Backend__.ts.html +0 -1165
  646. package/coverage/src/concepts/BatchAssignment__.ts.html +0 -3250
  647. package/coverage/src/concepts/BinaryExpression__.ts.html +0 -1336
  648. package/coverage/src/concepts/BindAttribute__.ts.html +0 -3679
  649. package/coverage/src/concepts/BindDirective__.ts.html +0 -1921
  650. package/coverage/src/concepts/BindEvent__.ts.html +0 -3232
  651. package/coverage/src/concepts/BindStyle__.ts.html +0 -1612
  652. package/coverage/src/concepts/BooleanLiteral__.ts.html +0 -403
  653. package/coverage/src/concepts/CallAuthInterface__.ts.html +0 -1615
  654. package/coverage/src/concepts/CallConnector__.ts.html +0 -868
  655. package/coverage/src/concepts/CallFunction__.ts.html +0 -1966
  656. package/coverage/src/concepts/CallInterface__.ts.html +0 -2614
  657. package/coverage/src/concepts/CallLogic__.ts.html +0 -4420
  658. package/coverage/src/concepts/CallQueryComponent__.ts.html +0 -5308
  659. package/coverage/src/concepts/Comment__.ts.html +0 -376
  660. package/coverage/src/concepts/CompletionProperty__.ts.html +0 -925
  661. package/coverage/src/concepts/ConfigGroup__.ts.html +0 -1105
  662. package/coverage/src/concepts/ConfigPropertyValue__.ts.html +0 -424
  663. package/coverage/src/concepts/ConfigProperty__.ts.html +0 -1348
  664. package/coverage/src/concepts/Configuration__.ts.html +0 -1027
  665. package/coverage/src/concepts/Connection__.ts.html +0 -1360
  666. package/coverage/src/concepts/ConnectorTrigger__.ts.html +0 -595
  667. package/coverage/src/concepts/Connector__.ts.html +0 -4255
  668. package/coverage/src/concepts/Constant__.ts.html +0 -913
  669. package/coverage/src/concepts/DataSource__.ts.html +0 -1771
  670. package/coverage/src/concepts/DatabaseTypeAnnotation__.ts.html +0 -331
  671. package/coverage/src/concepts/Destination__.ts.html +0 -2563
  672. package/coverage/src/concepts/End__.ts.html +0 -433
  673. package/coverage/src/concepts/EntityIndex__.ts.html +0 -787
  674. package/coverage/src/concepts/EntityProperty__.ts.html +0 -2620
  675. package/coverage/src/concepts/Entity__.ts.html +0 -2872
  676. package/coverage/src/concepts/EnumItem__.ts.html +0 -535
  677. package/coverage/src/concepts/Enum__.ts.html +0 -1192
  678. package/coverage/src/concepts/Event__.ts.html +0 -1084
  679. package/coverage/src/concepts/ExternalDestination__.ts.html +0 -1033
  680. package/coverage/src/concepts/ForEachStatement__.ts.html +0 -1819
  681. package/coverage/src/concepts/FrontendLibrary__.ts.html +0 -1711
  682. package/coverage/src/concepts/FrontendVariable__.ts.html +0 -292
  683. package/coverage/src/concepts/Frontend__.ts.html +0 -3961
  684. package/coverage/src/concepts/Function__.ts.html +0 -3514
  685. package/coverage/src/concepts/Identifier__.ts.html +0 -1057
  686. package/coverage/src/concepts/IfStatement__.ts.html +0 -1486
  687. package/coverage/src/concepts/Integration__.ts.html +0 -1228
  688. package/coverage/src/concepts/InterfaceParam__.ts.html +0 -1087
  689. package/coverage/src/concepts/Interface__.ts.html +0 -3394
  690. package/coverage/src/concepts/JSBlock__.ts.html +0 -406
  691. package/coverage/src/concepts/JavaLogic__.ts.html +0 -460
  692. package/coverage/src/concepts/LogicItem__.ts.html +0 -1144
  693. package/coverage/src/concepts/Logic__.ts.html +0 -7078
  694. package/coverage/src/concepts/MatchCase__.ts.html +0 -2641
  695. package/coverage/src/concepts/Match__.ts.html +0 -2323
  696. package/coverage/src/concepts/MemberExpression__.ts.html +0 -1666
  697. package/coverage/src/concepts/MicroApp__.ts.html +0 -436
  698. package/coverage/src/concepts/Module__.ts.html +0 -9220
  699. package/coverage/src/concepts/MsgTriggerEvent__.ts.html +0 -1045
  700. package/coverage/src/concepts/MsgTriggerLauncher__.ts.html +0 -1018
  701. package/coverage/src/concepts/Namespace__.ts.html +0 -7942
  702. package/coverage/src/concepts/NewComposite__.ts.html +0 -4684
  703. package/coverage/src/concepts/NewList__.ts.html +0 -1567
  704. package/coverage/src/concepts/NewMap__.ts.html +0 -2275
  705. package/coverage/src/concepts/New__.ts.html +0 -289
  706. package/coverage/src/concepts/NullLiteral__.ts.html +0 -349
  707. package/coverage/src/concepts/NumericLiteral__.ts.html +0 -661
  708. package/coverage/src/concepts/OqlQueryComponent__.ts.html +0 -1123
  709. package/coverage/src/concepts/OverriddenLogic__.ts.html +0 -6817
  710. package/coverage/src/concepts/Param__.ts.html +0 -1609
  711. package/coverage/src/concepts/Point__.ts.html +0 -331
  712. package/coverage/src/concepts/ProcessComponent__.ts.html +0 -1666
  713. package/coverage/src/concepts/ProcessElement__.ts.html +0 -5884
  714. package/coverage/src/concepts/ProcessOutcome__.ts.html +0 -352
  715. package/coverage/src/concepts/ProcessOutcomes__.ts.html +0 -343
  716. package/coverage/src/concepts/Process__.ts.html +0 -4768
  717. package/coverage/src/concepts/QueryAggregateExpression__.ts.html +0 -568
  718. package/coverage/src/concepts/QueryFieldExpression__.ts.html +0 -583
  719. package/coverage/src/concepts/QueryFromExpression__.ts.html +0 -910
  720. package/coverage/src/concepts/QueryGroupByExpression__.ts.html +0 -559
  721. package/coverage/src/concepts/QueryJoinExpression__.ts.html +0 -1567
  722. package/coverage/src/concepts/QueryLimitExpression__.ts.html +0 -637
  723. package/coverage/src/concepts/QueryOrderByExpression__.ts.html +0 -679
  724. package/coverage/src/concepts/QuerySelectExpression__.ts.html +0 -1714
  725. package/coverage/src/concepts/Rect__.ts.html +0 -373
  726. package/coverage/src/concepts/Return__.ts.html +0 -1258
  727. package/coverage/src/concepts/Role__.ts.html +0 -601
  728. package/coverage/src/concepts/SelectMembers__.ts.html +0 -1246
  729. package/coverage/src/concepts/Slot__.ts.html +0 -628
  730. package/coverage/src/concepts/SqlQueryComponent__.ts.html +0 -964
  731. package/coverage/src/concepts/Start__.ts.html +0 -304
  732. package/coverage/src/concepts/StringInterpolation__.ts.html +0 -1078
  733. package/coverage/src/concepts/StringLiteral__.ts.html +0 -490
  734. package/coverage/src/concepts/StructureProperty__.ts.html +0 -1102
  735. package/coverage/src/concepts/Structure__.ts.html +0 -2053
  736. package/coverage/src/concepts/SwitchCase__.ts.html +0 -1063
  737. package/coverage/src/concepts/SwitchStatement__.ts.html +0 -826
  738. package/coverage/src/concepts/Theme__.ts.html +0 -358
  739. package/coverage/src/concepts/Transactional__.ts.html +0 -628
  740. package/coverage/src/concepts/TriggerEvent__.ts.html +0 -1012
  741. package/coverage/src/concepts/TriggerLauncher__.ts.html +0 -775
  742. package/coverage/src/concepts/TypeAnnotation__.ts.html +0 -3583
  743. package/coverage/src/concepts/TypeParam__.ts.html +0 -301
  744. package/coverage/src/concepts/UnaryExpression__.ts.html +0 -640
  745. package/coverage/src/concepts/Unparsed__.ts.html +0 -382
  746. package/coverage/src/concepts/UseComponent__.ts.html +0 -331
  747. package/coverage/src/concepts/ValidationRule__.ts.html +0 -1840
  748. package/coverage/src/concepts/Variable__.ts.html +0 -1435
  749. package/coverage/src/concepts/ViewBlock__.ts.html +0 -352
  750. package/coverage/src/concepts/ViewComponent__.ts.html +0 -4180
  751. package/coverage/src/concepts/ViewElement__.ts.html +0 -8557
  752. package/coverage/src/concepts/View__.ts.html +0 -8278
  753. package/coverage/src/concepts/WhileStatement__.ts.html +0 -991
  754. package/coverage/src/concepts/basics/stdlib/index.html +0 -341
  755. package/coverage/src/concepts/basics/stdlib/index.ts.html +0 -208
  756. package/coverage/src/concepts/basics/stdlib/nasl.auth.ts.html +0 -565
  757. package/coverage/src/concepts/basics/stdlib/nasl.browser.ts.html +0 -517
  758. package/coverage/src/concepts/basics/stdlib/nasl.collection.ts.html +0 -226
  759. package/coverage/src/concepts/basics/stdlib/nasl.configuration.ts.html +0 -172
  760. package/coverage/src/concepts/basics/stdlib/nasl.core.ts.html +0 -214
  761. package/coverage/src/concepts/basics/stdlib/nasl.event.ts.html +0 -145
  762. package/coverage/src/concepts/basics/stdlib/nasl.http.ts.html +0 -589
  763. package/coverage/src/concepts/basics/stdlib/nasl.interface.ts.html +0 -214
  764. package/coverage/src/concepts/basics/stdlib/nasl.io.ts.html +0 -229
  765. package/coverage/src/concepts/basics/stdlib/nasl.logging.ts.html +0 -268
  766. package/coverage/src/concepts/basics/stdlib/nasl.process.ts.html +0 -1999
  767. package/coverage/src/concepts/basics/stdlib/nasl.ui.ts.html +0 -3259
  768. package/coverage/src/concepts/basics/stdlib/nasl.util.ts.html +0 -6787
  769. package/coverage/src/concepts/basics/stdlib/nasl.validation.ts.html +0 -1768
  770. package/coverage/src/concepts/basics/stdlib/reference2TypeAnnotationList.ts.html +0 -163
  771. package/coverage/src/concepts/basics/types/coreTypeList.ts.html +0 -121
  772. package/coverage/src/concepts/basics/types/index.html +0 -131
  773. package/coverage/src/concepts/basics/types/index.ts.html +0 -160
  774. package/coverage/src/concepts/index.html +0 -1961
  775. package/coverage/src/concepts/index.ts.html +0 -103
  776. package/coverage/src/concepts/index__.ts.html +0 -451
  777. package/coverage/src/config.ts.html +0 -325
  778. package/coverage/src/decorators/index.html +0 -131
  779. package/coverage/src/decorators/index.ts.html +0 -574
  780. package/coverage/src/decorators/promise.ts.html +0 -169
  781. package/coverage/src/eventBus.ts.html +0 -100
  782. package/coverage/src/generator/compileComponent.ts.html +0 -142
  783. package/coverage/src/generator/genBundleFiles.ts.html +0 -1828
  784. package/coverage/src/generator/genHash.ts.html +0 -124
  785. package/coverage/src/generator/genMetaData.ts.html +0 -1042
  786. package/coverage/src/generator/genReleaseBody.ts.html +0 -1282
  787. package/coverage/src/generator/icestark.ts.html +0 -220
  788. package/coverage/src/generator/index.html +0 -266
  789. package/coverage/src/generator/index.ts.html +0 -106
  790. package/coverage/src/generator/microApp.ts.html +0 -172
  791. package/coverage/src/generator/permission.ts.html +0 -1036
  792. package/coverage/src/generator/qiankun.ts.html +0 -232
  793. package/coverage/src/generator/styleReplacer.ts.html +0 -199
  794. package/coverage/src/index.html +0 -146
  795. package/coverage/src/index.ts.html +0 -121
  796. package/coverage/src/manager/diagnostic.ts.html +0 -442
  797. package/coverage/src/manager/index.html +0 -131
  798. package/coverage/src/manager/stepRecorder.ts.html +0 -457
  799. package/coverage/src/sentry/index.html +0 -116
  800. package/coverage/src/sentry/index.ts.html +0 -676
  801. package/coverage/src/server/createUiTs.ts.html +0 -919
  802. package/coverage/src/server/entity2LogicNamespace.ts.html +0 -1294
  803. package/coverage/src/server/event.js.html +0 -526
  804. package/coverage/src/server/extendBaseNode.ts.html +0 -1762
  805. package/coverage/src/server/formatTsUtils.ts.html +0 -2689
  806. package/coverage/src/server/getConnector.ts.html +0 -316
  807. package/coverage/src/server/getExtensionModules.ts.html +0 -178
  808. package/coverage/src/server/getFunctions.ts.html +0 -133
  809. package/coverage/src/server/getInterfaces.ts.html +0 -229
  810. package/coverage/src/server/getLogging.ts.html +0 -100
  811. package/coverage/src/server/getLogics.ts.html +0 -1363
  812. package/coverage/src/server/getMemberIdentifier.ts.html +0 -1606
  813. package/coverage/src/server/getProcessComponents.ts.html +0 -112
  814. package/coverage/src/server/getProcesses.ts.html +0 -2023
  815. package/coverage/src/server/getValidates.ts.html +0 -115
  816. package/coverage/src/server/index.html +0 -401
  817. package/coverage/src/server/index.ts.html +0 -229
  818. package/coverage/src/server/naslServer.ts.html +0 -14290
  819. package/coverage/src/server/naslStdlibMap.ts.html +0 -241
  820. package/coverage/src/server/process2LogicNamespace.ts.html +0 -454
  821. package/coverage/src/server/translator.ts.html +0 -2566
  822. package/coverage/src/service/creator/add.configs.js.html +0 -379
  823. package/coverage/src/service/creator/errHandles.js.html +0 -322
  824. package/coverage/src/service/creator/index.html +0 -146
  825. package/coverage/src/service/creator/index.js.html +0 -352
  826. package/coverage/src/service/datasource/api.js.html +0 -118
  827. package/coverage/src/service/datasource/index.html +0 -131
  828. package/coverage/src/service/datasource/index.js.html +0 -103
  829. package/coverage/src/service/logic/api.js.html +0 -109
  830. package/coverage/src/service/logic/index.html +0 -131
  831. package/coverage/src/service/logic/index.js.html +0 -103
  832. package/coverage/src/service/storage/api.js.html +0 -202
  833. package/coverage/src/service/storage/index.html +0 -206
  834. package/coverage/src/service/storage/index.ts.html +0 -103
  835. package/coverage/src/service/storage/init.ts.html +0 -2710
  836. package/coverage/src/service/storage/jsoner.ts.html +0 -502
  837. package/coverage/src/service/storage/map.ts.html +0 -256
  838. package/coverage/src/service/storage/service.ts.html +0 -331
  839. package/coverage/src/service/storage/storagePoint.ts.html +0 -304
  840. package/coverage/src/templator/genCallComponentLogic.ts.html +0 -163
  841. package/coverage/src/templator/genCreateBlock.ts.html +0 -1093
  842. package/coverage/src/templator/genCurdEditMultipleKeyBlock.ts.html +0 -1609
  843. package/coverage/src/templator/genCurdMultipleKeyBlock.ts.html +0 -2254
  844. package/coverage/src/templator/genEditTableBlock.ts.html +0 -955
  845. package/coverage/src/templator/genEnumSelectBlock.ts.html +0 -178
  846. package/coverage/src/templator/genGetBlock.ts.html +0 -451
  847. package/coverage/src/templator/genGridViewBlock.ts.html +0 -1114
  848. package/coverage/src/templator/genListViewBlock.ts.html +0 -475
  849. package/coverage/src/templator/genQueryComponent.ts.html +0 -1207
  850. package/coverage/src/templator/genSelectBlock.ts.html +0 -1243
  851. package/coverage/src/templator/genTableBlock.ts.html +0 -910
  852. package/coverage/src/templator/genUpdateBlock.ts.html +0 -1192
  853. package/coverage/src/templator/index.html +0 -326
  854. package/coverage/src/templator/index.ts.html +0 -154
  855. package/coverage/src/templator/utils.ts.html +0 -1861
  856. package/coverage/src/translator/constant.ts.html +0 -106
  857. package/coverage/src/translator/index.html +0 -146
  858. package/coverage/src/translator/index.ts.html +0 -94
  859. package/coverage/src/translator/utils.ts.html +0 -397
  860. package/coverage/src/utils/cookie.ts.html +0 -265
  861. package/coverage/src/utils/env.ts.html +0 -91
  862. package/coverage/src/utils/index.html +0 -236
  863. package/coverage/src/utils/index.ts.html +0 -655
  864. package/coverage/src/utils/logger.ts.html +0 -145
  865. package/coverage/src/utils/sortTsString.ts.html +0 -187
  866. package/coverage/src/utils/string.ts.html +0 -400
  867. package/coverage/src/utils/time-slicing.ts.html +0 -412
  868. package/coverage/src/utils/traverse.ts.html +0 -568
  869. package/coverage/src/utils/window.ts.html +0 -112
  870. package/out/utils/time-slicing.d.ts +0 -41
  871. package/out/utils/time-slicing.js +0 -82
  872. package/out/utils/time-slicing.js.map +0 -1
  873. package/src/utils/time-slicing.ts +0 -111
@@ -0,0 +1 @@
1
+ {"version":3,"file":"controller.js","sourceRoot":"","sources":["../../../src/utils/time-slicing/controller.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAC5C,+CAA4C;AAC5C,mCAQiB;AACjB,yCAMoB;AAEpB,cAAc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AW;gBACX,KAAK,CAAC,KAAK,GAAG,MAAM,CAAC;YACvB,CAAC,CAAC;YAEF,8CAA8C;YAC9C,OAAO,CAAC,IAAI,CAAC,QAAQ,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC;YAChC,UAAU;YAEV,OAAO;YACP,QAAQ,EAAE,CAAC;QACb,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AAjUD,sDAiUC"}
@@ -0,0 +1,5 @@
1
+ export { delay, isGenerator, returnOrigin } from './utils';
2
+ export * from './runner';
3
+ export * from './wrapper';
4
+ export * from './tool';
5
+ export * from './controller';
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.returnOrigin = exports.isGenerator = exports.delay = void 0;
18
+ var utils_1 = require("./utils");
19
+ Object.defineProperty(exports, "delay", { enumerable: true, get: function () { return utils_1.delay; } });
20
+ Object.defineProperty(exports, "isGenerator", { enumerable: true, get: function () { return utils_1.isGenerator; } });
21
+ Object.defineProperty(exports, "returnOrigin", { enumerable: true, get: function () { return utils_1.returnOrigin; } });
22
+ __exportStar(require("./runner"), exports);
23
+ __exportStar(require("./wrapper"), exports);
24
+ __exportStar(require("./tool"), exports);
25
+ __exportStar(require("./controller"), exports);
26
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/time-slicing/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,iCAA2D;AAAlD,8FAAA,KAAK,OAAA;AAAE,oGAAA,WAAW,OAAA;AAAE,qGAAA,YAAY,OAAA;AAEzC,2CAAyB;AACzB,4CAA0B;AAC1B,yCAAuB;AACvB,+CAA6B"}
@@ -0,0 +1,2 @@
1
+ /** 页面活动状态 */
2
+ export declare let pageIsActive: boolean;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.pageIsActive = void 0;
4
+ const env_1 = require("../env");
5
+ /** 页面活动状态 */
6
+ exports.pageIsActive = false;
7
+ // 浏览器环境需要监听页面活动状态
8
+ if (!env_1.isNode) {
9
+ exports.pageIsActive = !(document?.hidden ?? true);
10
+ document?.addEventListener('visibilitychange', () => {
11
+ exports.pageIsActive = !document.hidden;
12
+ });
13
+ }
14
+ //# sourceMappingURL=page-state.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"page-state.js","sourceRoot":"","sources":["../../../src/utils/time-slicing/page-state.ts"],"names":[],"mappings":";;;AAAA,gCAAgC;AAEhC,aAAa;AACF,QAAA,YAAY,GAAG,KAAK,CAAC;AAEhC,kBAAkB;AAClB,IAAI,CAAC,YAAM,EAAE;IACX,oBAAY,GAAG,CAAC,CAAC,QAAQ,EAAE,MAAM,IAAI,IAAI,CAAC,CAAC;IAC3C,QAAQ,EAAE,gBAAgB,CAAC,kBAAkB,EAAE,GAAG,EAAE;QAClD,oBAAY,GAAG,CAAC,QAAQ,CAAC,MAAM,CAAC;IAClC,CAAC,CAAC,CAAC;CACJ"}
@@ -0,0 +1,11 @@
1
+ export declare class Performance {
2
+ private id;
3
+ constructor(id: number);
4
+ get prefix(): string;
5
+ private getPerformanceId;
6
+ private clearEntry;
7
+ mark(name: string): PerformanceMark;
8
+ measure(name: string, startMark: string, endMark: string): PerformanceMeasure;
9
+ clearByNames(...names: string[]): void;
10
+ clear(): void;
11
+ }
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Performance = void 0;
4
+ var EntryType;
5
+ (function (EntryType) {
6
+ EntryType["mark"] = "mark";
7
+ EntryType["measure"] = "measure";
8
+ })(EntryType || (EntryType = {}));
9
+ class Performance {
10
+ id;
11
+ constructor(id) {
12
+ this.id = id;
13
+ }
14
+ get prefix() {
15
+ return `[time-slicing]-${this.id}`;
16
+ }
17
+ getPerformanceId(name) {
18
+ return `${this.prefix}-${name}`;
19
+ }
20
+ clearEntry(entry) {
21
+ if (entry.entryType === EntryType.mark) {
22
+ performance.clearMarks(entry.name);
23
+ }
24
+ else if (entry.entryType === EntryType.measure) {
25
+ performance.clearMeasures(entry.name);
26
+ }
27
+ }
28
+ mark(name) {
29
+ return performance.mark(this.getPerformanceId(name));
30
+ }
31
+ measure(name, startMark, endMark) {
32
+ return performance.measure(this.getPerformanceId(name), this.getPerformanceId(startMark), this.getPerformanceId(endMark));
33
+ }
34
+ clearByNames(...names) {
35
+ for (const name of names) {
36
+ const entry = performance.getEntriesByName(this.getPerformanceId(name))[0];
37
+ if (entry) {
38
+ this.clearEntry(entry);
39
+ }
40
+ }
41
+ }
42
+ clear() {
43
+ const { prefix } = this;
44
+ performance.getEntries()
45
+ .filter((item) => item.entryType === EntryType.mark || item.entryType === EntryType.measure)
46
+ .filter((item) => item.name.startsWith(prefix))
47
+ .forEach((entry) => this.clearEntry(entry));
48
+ }
49
+ }
50
+ exports.Performance = Performance;
51
+ //# sourceMappingURL=performance.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"performance.js","sourceRoot":"","sources":["../../../src/utils/time-slicing/performance.ts"],"names":[],"mappings":";;;AAAA,IAAK,SAGJ;AAHD,WAAK,SAAS;IACZ,0BAAa,CAAA;IACb,gCAAmB,CAAA;AACrB,CAAC,EAHI,SAAS,KAAT,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KAAK;QACH,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;QAExB,WAAW,CAAC,UAAU,EAAE;aACrB,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,SAAS,KAAK,SAAS,CAAC,IAAI,IAAI,IAAI,CAAC,SAAS,KAAK,SAAS,CAAC,OAAO,CAAC;aAC3F,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;aAC9C,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC;IAChD,CAAC;CACF;AAlDD,kCAkDC"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * 运行生成器
3
+ *
4
+ * @description 同步模式
5
+ */
6
+ export declare function runGeneratorSync<T = void>(generator: Generator<any, T, any>): T;
7
+ /**
8
+ * 运行生成器
9
+ *
10
+ * @description 异步模式
11
+ */
12
+ export declare function runGeneratorAsync<T = void>(generator: Generator<any, T, any>): Promise<T>;
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.runGeneratorAsync = exports.runGeneratorSync = void 0;
4
+ /**
5
+ * 运行生成器
6
+ *
7
+ * @description 同步模式
8
+ */
9
+ function runGeneratorSync(generator) {
10
+ let result = generator.next();
11
+ while (!result.done) {
12
+ result = generator.next(result.value);
13
+ }
14
+ return result.value;
15
+ }
16
+ exports.runGeneratorSync = runGeneratorSync;
17
+ /**
18
+ * 运行生成器
19
+ *
20
+ * @description 异步模式
21
+ */
22
+ function runGeneratorAsync(generator) {
23
+ return new Promise((resolve) => {
24
+ let result = {
25
+ done: false,
26
+ value: undefined,
27
+ };
28
+ function isPromise(input) {
29
+ return input && input instanceof Promise;
30
+ }
31
+ function runAsync(param) {
32
+ result.value = param;
33
+ run();
34
+ }
35
+ function run() {
36
+ while (!result.done && !isPromise(result.value)) {
37
+ result = generator.next(result.value);
38
+ }
39
+ if (result.done) {
40
+ resolve(result.value);
41
+ return;
42
+ }
43
+ if (isPromise(result.value)) {
44
+ result.value
45
+ .then(runAsync)
46
+ .catch(error => generator.throw(error));
47
+ }
48
+ }
49
+ run();
50
+ });
51
+ }
52
+ exports.runGeneratorAsync = runGeneratorAsync;
53
+ //# sourceMappingURL=runner.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runner.js","sourceRoot":"","sources":["../../../src/utils/time-slicing/runner.ts"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACH,SAAgB,gBAAgB,CAAW,SAAiC;IAC1E,IAAI,MAAM,GAAG,SAAS,CAAC,IAAI,EAAE,CAAC;IAC9B,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE;QACnB,MAAM,GAAG,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;KACvC;IACD,OAAO,MAAM,CAAC,KAAK,CAAC;AACtB,CAAC;AAND,4CAMC;AAED;;;;GAIG;AACH,SAAgB,iBAAiB,CAAW,SAAiC;IAC3E,OAAO,IAAI,OAAO,CAAI,CAAC,OAAO,EAAE,EAAE;QAChC,IAAI,MAAM,GAA2B;YACnC,IAAI,EAAE,KAAK;YACX,KAAK,EAAE,SAAS;SACjB,CAAC;QAEF,SAAS,SAAS,CAAC,KAAc;YAC/B,OAAO,KAAK,IAAI,KAAK,YAAY,OAAO,CAAC;QAC3C,CAAC;QAED,SAAS,QAAQ,CAAC,KAAc;YAC9B,MAAM,CAAC,KAAK,GAAG,KAAK,CAAC;YACrB,GAAG,EAAE,CAAC;QACR,CAAC;QAED,SAAS,GAAG;YACV,OAAO,CAAC,MAAM,CAAC,IAAI,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE;gBAC/C,MAAM,GAAG,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;aACvC;YAED,IAAI,MAAM,CAAC,IAAI,EAAE;gBACf,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;gBACtB,OAAO;aACR;YAED,IAAI,SAAS,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE;gBAC3B,MAAM,CAAC,KAAK;qBACT,IAAI,CAAC,QAAQ,CAAC;qBACd,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;aAC3C;QACH,CAAC;QAED,GAAG,EAAE,CAAC;IACR,CAAC,CAAC,CAAC;AACL,CAAC;AAnCD,8CAmCC"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * 时间分片
3
+ *
4
+ * @description 大型任务分片执行,保证不阻塞主线程
5
+ * @description 数组回调必须是同步的,若是想要使用异步回调,请使用`timeSlicingWithGenerator`方法
6
+ * @param {T[]} list - 项目列表
7
+ * @param {(val: T, index: number) => void} cb - 每个项目的回调
8
+ */
9
+ export declare function timeSlicingWithList<T>(list: T[], cb: (val: T, index: number, arr: T[]) => void): Promise<void>;
10
+ /**
11
+ * 生成器时间分片
12
+ *
13
+ * @description 大型任务的分片执行保证不阻塞主线程
14
+ * @description 生成器中允许使用异步操作,使用`yield [promise]`语句即可
15
+ * @example
16
+ * ```
17
+ * timeSlicingWithGenerator((function test() {
18
+ * const result = yield axios.get('xxxxxx');
19
+ * console.log(result);
20
+ * })());
21
+ * ```
22
+ * @param {Generator<any, T, any>} generator - 生成器
23
+ */
24
+ export declare function timeSlicingWithGenerator<T = void>(generator: Generator<any, T, any>): Promise<T>;
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.timeSlicingWithGenerator = exports.timeSlicingWithList = void 0;
4
+ const env_1 = require("../env");
5
+ const controller_1 = require("./controller");
6
+ const runner_1 = require("./runner");
7
+ const wrapper_1 = require("./wrapper");
8
+ /**
9
+ * 时间分片
10
+ *
11
+ * @description 大型任务分片执行,保证不阻塞主线程
12
+ * @description 数组回调必须是同步的,若是想要使用异步回调,请使用`timeSlicingWithGenerator`方法
13
+ * @param {T[]} list - 项目列表
14
+ * @param {(val: T, index: number) => void} cb - 每个项目的回调
15
+ */
16
+ function timeSlicingWithList(list, cb) {
17
+ // node 环境不需要进行切片
18
+ if (env_1.isNode) {
19
+ list.forEach((item, i) => cb(item, i, list));
20
+ return Promise.resolve();
21
+ }
22
+ return new controller_1.TimeSlicingController().run((0, wrapper_1.wrapForEachToGenerator)(list, cb));
23
+ }
24
+ exports.timeSlicingWithList = timeSlicingWithList;
25
+ /**
26
+ * 生成器时间分片
27
+ *
28
+ * @description 大型任务的分片执行保证不阻塞主线程
29
+ * @description 生成器中允许使用异步操作,使用`yield [promise]`语句即可
30
+ * @example
31
+ * ```
32
+ * timeSlicingWithGenerator((function test() {
33
+ * const result = yield axios.get('xxxxxx');
34
+ * console.log(result);
35
+ * })());
36
+ * ```
37
+ * @param {Generator<any, T, any>} generator - 生成器
38
+ */
39
+ function timeSlicingWithGenerator(generator) {
40
+ // node 环境不需要进行切片
41
+ if (env_1.isNode) {
42
+ return (0, runner_1.runGeneratorAsync)(generator);
43
+ }
44
+ return new controller_1.TimeSlicingController().run(generator);
45
+ }
46
+ exports.timeSlicingWithGenerator = timeSlicingWithGenerator;
47
+ //# sourceMappingURL=tool.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tool.js","sourceRoot":"","sources":["../../../src/utils/time-slicing/tool.ts"],"names":[],"mappings":";;;AAAA,gCAAgC;AAChC,6CAAqD;AACrD,qCAAyD;AACzD,uCAAmD;AAEnD;;;;;;;GAOG;AACH,SAAgB,mBAAmB,CAAI,IAAS,EAAE,EAA6C;IAC7F,iBAAiB;IACjB,IAAI,YAAM,EAAE;QACV,IAAI,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC;QAC7C,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;KAC1B;IAED,OAAO,IAAI,kCAAqB,EAAE,CAAC,GAAG,CAAC,IAAA,gCAAsB,EAAC,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC;AAC3E,CAAC;AARD,kDAQC;AAED;;;;;;;;;;;;;GAaG;AACH,SAAgB,wBAAwB,CAAW,SAAiC;IAClF,iBAAiB;IACjB,IAAI,YAAM,EAAE;QACV,OAAO,IAAA,0BAAQ,EAAI,SAAS,CAAC,CAAC;KAC/B;IAED,OAAO,IAAI,kCAAqB,EAAE,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;AACpD,CAAC;AAPD,4DAOC"}
@@ -0,0 +1,62 @@
1
+ export interface TaskDataInDebug {
2
+ count: number;
3
+ time: number;
4
+ avg: number;
5
+ frameId: number;
6
+ }
7
+ export interface GroupData {
8
+ /** 任务组编号 */
9
+ id: number;
10
+ /** 所属帧编号 */
11
+ frameId: number;
12
+ /** 任务组耗时 */
13
+ time: number;
14
+ /** 任务组数量 */
15
+ limit: number;
16
+ /** 任务组标签 */
17
+ mark: ReturnType<typeof getGroupMark>;
18
+ }
19
+ export interface FrameData {
20
+ /** 帧编号 */
21
+ id: number;
22
+ /** 帧耗时 */
23
+ time: number;
24
+ /** 任务组在当前帧的耗时 */
25
+ groupTime: number;
26
+ /** 帧标签 */
27
+ mark: ReturnType<typeof getFrameMark>;
28
+ }
29
+ export interface AsyncData {
30
+ /** 异步等待编号 */
31
+ id: number;
32
+ /** 异步等待耗时 */
33
+ time: number;
34
+ /** 异步结果 */
35
+ result: any;
36
+ /** 异步标签 */
37
+ mark: ReturnType<typeof getAsyncMark>;
38
+ }
39
+ export declare function getId(): number;
40
+ /** 延迟 */
41
+ export declare function delay(time?: number): Promise<void>;
42
+ export declare function getAsyncMark(id: number): {
43
+ AsyncStart: string;
44
+ AsyncEnd: string;
45
+ AsyncMeasure: string;
46
+ };
47
+ export declare function getGroupMark(id: number): {
48
+ GroupStart: string;
49
+ GroupEnd: string;
50
+ GroupMeasure: string;
51
+ };
52
+ export declare function getFrameMark(id: number): {
53
+ FrameStart: string;
54
+ FrameEnd: string;
55
+ FrameMeasure: string;
56
+ };
57
+ export declare function isGenerator(value: unknown): value is Generator<any, any, any>;
58
+ /**
59
+ * 空生成器
60
+ */
61
+ export declare function returnOrigin(): Generator<any, void, any>;
62
+ export declare function returnOrigin<T>(defaultVal: T): Generator<any, T, any>;
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.returnOrigin = exports.isGenerator = exports.getFrameMark = exports.getGroupMark = exports.getAsyncMark = exports.delay = exports.getId = void 0;
4
+ /** 编号 */
5
+ let id = 0;
6
+ function getId() {
7
+ return id++;
8
+ }
9
+ exports.getId = getId;
10
+ /** 延迟 */
11
+ function delay(time = 10) {
12
+ return new Promise((resolve) => setTimeout(resolve, time));
13
+ }
14
+ exports.delay = delay;
15
+ function getAsyncMark(id) {
16
+ return {
17
+ AsyncStart: `AsyncStart-${id}`,
18
+ AsyncEnd: `AsyncEnd-${id}`,
19
+ AsyncMeasure: `AsyncMeasure-${id}`,
20
+ };
21
+ }
22
+ exports.getAsyncMark = getAsyncMark;
23
+ function getGroupMark(id) {
24
+ return {
25
+ GroupStart: `GroupStart-${id}`,
26
+ GroupEnd: `GroupEnd-${id}`,
27
+ GroupMeasure: `GroupMeasure-${id}`,
28
+ };
29
+ }
30
+ exports.getGroupMark = getGroupMark;
31
+ function getFrameMark(id) {
32
+ return {
33
+ FrameStart: `FrameStart-${id}`,
34
+ FrameEnd: `FrameEnd-${id}`,
35
+ FrameMeasure: `FrameMeasure-${id}`,
36
+ };
37
+ }
38
+ exports.getFrameMark = getFrameMark;
39
+ function isGenerator(value) {
40
+ return value && typeof value[Symbol.iterator] === 'function';
41
+ }
42
+ exports.isGenerator = isGenerator;
43
+ function* returnOrigin(defaultVal) {
44
+ return defaultVal;
45
+ }
46
+ exports.returnOrigin = returnOrigin;
47
+ //# source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0 +1,18 @@
1
+ /**
2
+ * 迭代器包装为生成器
3
+ *
4
+ * @description 回调中允许使用生成器
5
+ */
6
+ export declare function wrapIteratorToGenerator<T>(list: IterableIterator<T>, forEach: (item: T, index: number, arr: T[]) => (any | Generator<any, any, any>)): Generator<any, any, any>;
7
+ /**
8
+ * 数组 forEach 回调包装为生成器
9
+ *
10
+ * @description 回调中允许使用生成器
11
+ */
12
+ export declare function wrapForEachToGenerator<T>(list: T[], forEach: (item: T, index: number, arr: T[]) => (any | Generator<any, any, any>)): Generator<any, any, any>;
13
+ /**
14
+ * 数组 map 回调包装为生成器
15
+ *
16
+ * @description 回调中允许使用生成器
17
+ */
18
+ export declare function wrapMapToGenerator<T, U>(list: T[], map: (item: T, index: number, arr: T[]) => (U | Generator<any, U, any>)): Generator<any, U[], any>;
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.wrapMapToGenerator = exports.wrapForEachToGenerator = exports.wrapIteratorToGenerator = void 0;
4
+ const utils_1 = require("./utils");
5
+ /**
6
+ * 迭代器包装为生成器
7
+ *
8
+ * @description 回调中允许使用生成器
9
+ */
10
+ function wrapIteratorToGenerator(list, forEach) {
11
+ return wrapForEachToGenerator(Array.from(list), forEach);
12
+ }
13
+ exports.wrapIteratorToGenerator = wrapIteratorToGenerator;
14
+ /**
15
+ * 数组 forEach 回调包装为生成器
16
+ *
17
+ * @description 回调中允许使用生成器
18
+ */
19
+ function wrapForEachToGenerator(list, forEach) {
20
+ const len = list.length;
21
+ return (function* transformListToGenerator() {
22
+ for (let i = 0; i < len; i++) {
23
+ const result = forEach(list[i], i, list);
24
+ if ((0, utils_1.isGenerator)(result)) {
25
+ yield* result;
26
+ }
27
+ yield;
28
+ }
29
+ })();
30
+ }
31
+ exports.wrapForEachToGenerator = wrapForEachToGenerator;
32
+ /**
33
+ * 数组 map 回调包装为生成器
34
+ *
35
+ * @description 回调中允许使用生成器
36
+ */
37
+ function wrapMapToGenerator(list, map) {
38
+ const len = list.length;
39
+ const resultArr = Array(len);
40
+ return (function* transformListToGenerator() {
41
+ for (let i = 0; i < len; i++) {
42
+ const result = map(list[i], i, list);
43
+ if ((0, utils_1.isGenerator)(result)) {
44
+ resultArr[i] = yield* result;
45
+ }
46
+ else {
47
+ resultArr[i] = result;
48
+ }
49
+ yield;
50
+ }
51
+ return resultArr;
52
+ })();
53
+ }
54
+ exports.wrapMapToGenerator = wrapMapToGenerator;
55
+ //# sourceMappingURL=wrapper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wrapper.js","sourceRoot":"","sources":["../../../src/utils/time-slicing/wrapper.ts"],"names":[],"mappings":";;;AAAA,mCAAsC;AAEtC;;;;GAIG;AACH,SAAgB,uBAAuB,CAAI,IAAyB,EAAE,OAA+E;IACnJ,OAAO,sBAAsB,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC,CAAC;AAC3D,CAAC;AAFD,0DAEC;AAED;;;;GAIG;AACH,SAAgB,sBAAsB,CAAI,IAAS,EAAE,OAA+E;IAClI,MAAM,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC;IAExB,OAAO,CAAC,QAAQ,CAAC,CAAC,wBAAwB;QACxC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE,EAAE;YAC5B,MAAM,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,CAAC;YAEzC,IAAI,IAAA,mBAAW,EAAC,MAAM,CAAC,EAAE;gBACvB,KAAK,CAAC,CAAC,MAAM,CAAC;aACf;YAED,KAAK,CAAC;SACP;IACH,CAAC,CAAC,EAAE,CAAC;AACP,CAAC;AAdD,wDAcC;AAED;;;;GAIG;AACH,SAAgB,kBAAkB,CAAO,IAAS,EAAE,GAAuE;IACzH,MAAM,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC;IACxB,MAAM,SAAS,GAAQ,KAAK,CAAC,GAAG,CAAC,CAAC;IAElC,OAAO,CAAC,QAAQ,CAAC,CAAC,wBAAwB;QACxC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE,EAAE;YAC5B,MAAM,MAAM,GAAG,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,CAAC;YAErC,IAAI,IAAA,mBAAW,EAAC,MAAM,CAAC,EAAE;gBACvB,SAAS,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,MAAM,CAAC;aAC9B;iBACI;gBACH,SAAS,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC;aACvB;YAED,KAAK,CAAC;SACP;QAED,OAAO,SAAS,CAAC;IACnB,CAAC,CAAC,EAAE,CAAC;AACP,CAAC;AApBD,gDAoBC"}
@@ -1 +1,8 @@
1
+ import type { SourceMap } from '../translator';
1
2
  export declare type GetPromise<T> = T extends Promise<infer R> ? R : never;
3
+ export interface EmbeddedTSFileResult {
4
+ code: string;
5
+ filePath: string;
6
+ sourceMap: SourceMap;
7
+ }
8
+ export declare type EmbeddedTSFileGenerator = Generator<void, EmbeddedTSFileResult, string>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lcap/nasl",
3
3
  "description": "NetEase Application Specific Language",
4
- "version": "3.3.3-beta.5",
4
+ "version": "3.3.3-beta.7",
5
5
  "author": "Forrest <rainforest92@126.com>",
6
6
  "scripts": {
7
7
  "clear": "rimraf ./out",
@@ -107,20 +107,41 @@ export default function (definition, view) {
107
107
  */
108
108
  const viewComputedData = []
109
109
  const viewMethodData = []
110
- definition.elementsAll.forEach(el => {
111
- el.bindAttrs.forEach(attr => {
110
+ definition.elementsAll.forEach(element => {
111
+ element.bindAttrs.forEach(attr => {
112
112
  let variable = '';
113
113
  if (attr.expression) {
114
114
  variable += `${attr.expression?.toJS()}`
115
115
  } else if (attr.type === 'static') {
116
116
  variable = `${attr.value}`
117
117
  }
118
- if (attr.expression?.concept === 'CallLogic' && attr.name === 'data-source') {
119
- const codeLoad = `async '__${el.name}_dataSourceLoad'(params) {
120
- this['__${el.name}_params'] = {...params};
121
- return ${variable}
122
- }`
123
- viewMethodData.push(codeLoad)
118
+ if (
119
+ attr.name === 'data-source'
120
+ && (
121
+ attr.expression?.concept === 'CallLogic'
122
+ || attr.isExpressionViewLogicIdentifier
123
+ )
124
+ ) {
125
+ let codeLoad = `async '__${element.name}_dataSourceLoad'(params) {`;
126
+ if (attr.expression?.concept === 'CallLogic') {
127
+ if (attr.expression.calleeNamespace) {
128
+ codeLoad += `this['__${element.name}_params'] = {...params};`;
129
+ } else {
130
+ variable = `await this.${attr?.expression?.calleeName}(params)`;
131
+ }
132
+ } else {
133
+ variable = `await this.${attr?.expression?.name}(params)`;
134
+ }
135
+ if (attr.parentNode.tag !== 'u-table-view') {
136
+ codeLoad += `return this.$utils['RmWrapClass'](${variable});
137
+ }`;
138
+ } else {
139
+ codeLoad += `return ${variable};
140
+ }`;
141
+ }
142
+ // codeLoad += `return this.$utils['RmWrapClass'](${variable});
143
+ // }`;
144
+ viewMethodData.push(codeLoad);
124
145
  }
125
146
  })
126
147
  })
@@ -134,14 +155,9 @@ export default function (definition, view) {
134
155
  variable = `${attr.value}`
135
156
  // attrsData.push(code)
136
157
  }
137
- if (attr.expression?.concept === 'CallLogic' && attr.name === 'data-source') {
138
- const codeLoad = `async '__${element.name}_dataSourceLoad'(params) {
139
- this['__${element.name}_params'] = {...params};
140
- return ${variable}
141
- }`
142
- viewMethodData.push(codeLoad)
158
+ if (attr.expression?.concept === 'CallLogic' && attr.name === 'data-source' && attr.parentNode.tag !== "u-table-view") {
143
159
  const code = `async '__${element.name}_dataSource'(params) {
144
- return ${variable}
160
+ return this.$utils['RmWrapClass'](${variable});
145
161
  }`
146
162
  viewMethodData.push(code)
147
163
  } else {
@@ -206,6 +222,40 @@ export default function (definition, view) {
206
222
  tabSize: 1,
207
223
  })
208
224
  );
225
+ const syncAtrrWatchMap = {};
226
+ const syncAttrLogics = [];
227
+ // 双向绑定的属性对应的修改逻辑
228
+ (definition.viewBindSyncAttrs || []).forEach((bindSyncAttr) => {
229
+ const syncVariableName = bindSyncAttr?.syncVariableName;
230
+ const expressionName = bindSyncAttr?.expression?.toVue();
231
+ if (expressionName && syncVariableName) {
232
+ viewVariablesData.push(`['${syncVariableName}']: undefined`);
233
+ if (!syncAtrrWatchMap[expressionName]) {
234
+ syncAtrrWatchMap[expressionName] = [];
235
+ }
236
+ syncAtrrWatchMap[expressionName].push(bindSyncAttr);
237
+ }
238
+ syncAttrLogics.push(bindSyncAttr.toJS({
239
+ tabSize: 1,
240
+ }));
241
+ });
242
+ const syncAtrrWatchs = [];
243
+ for (let expressionName in syncAtrrWatchMap) {
244
+ const viewBindSyncAttrs = syncAtrrWatchMap[expressionName];
245
+ let code = `['${expressionName}']: {
246
+ handler(val, oldVal) {\n`;
247
+ if (Array.isArray(viewBindSyncAttrs)) {
248
+ viewBindSyncAttrs.forEach((bindSyncAttr) => {
249
+ const syncVariableName = bindSyncAttr?.syncVariableName;
250
+ code += `this.${syncVariableName} = this.$utils['RmWrapClass'](val, this.${syncVariableName}, val === oldVal);\n`;
251
+ });
252
+ code += `},
253
+ immediate: true,
254
+ deep: true,
255
+ }`;
256
+ }
257
+ syncAtrrWatchs.push(code);
258
+ }
209
259
 
210
260
  const output = `
211
261
  data() {
@@ -213,6 +263,9 @@ export default function (definition, view) {
213
263
  ${viewVariablesData.join(',\n').trim()}
214
264
  };
215
265
  },
266
+ watch: {
267
+ ${syncAtrrWatchs.join(',\n').trim()}
268
+ },
216
269
  computed: {
217
270
  ${viewComputedData.join(',\n').trim()}
218
271
  },
@@ -223,7 +276,13 @@ meta: {
223
276
  auth: ${JSON.stringify(definition.auth)},
224
277
  },
225
278
  methods: {
226
- ${[...(methods || []), ...(eventLogic || []), ...(viewExpressionMethods || []), ...(viewMethodData || [])].join(',\n\n')}
279
+ ${[
280
+ ...(methods || []),
281
+ ...(eventLogic || []),
282
+ ...(syncAttrLogics || []),
283
+ ...(viewExpressionMethods || []),
284
+ ...(viewMethodData || [])
285
+ ].join(',\n\n')}
227
286
  },
228
287
  ${events.join(',\n\n')}
229
288
  `;