@lcap/nasl 3.3.3-beta.2 → 3.3.3-beta.3

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 (564) hide show
  1. package/out/automate/template/myProcess.d.ts +1 -1
  2. package/out/automate/template/myProcess.js +3 -2
  3. package/out/automate/template/myProcess.js.map +1 -1
  4. package/out/common/BaseNode.d.ts +4 -5
  5. package/out/common/BaseNode.js +15 -11
  6. package/out/common/BaseNode.js.map +1 -1
  7. package/out/concepts/Anchor__.js +2 -1
  8. package/out/concepts/Anchor__.js.map +1 -1
  9. package/out/concepts/AnonymousFunction__.js +6 -3
  10. package/out/concepts/AnonymousFunction__.js.map +1 -1
  11. package/out/concepts/Argument__.js +4 -3
  12. package/out/concepts/Argument__.js.map +1 -1
  13. package/out/concepts/Assignment__.js +3 -2
  14. package/out/concepts/Assignment__.js.map +1 -1
  15. package/out/concepts/Attribute__.js +2 -1
  16. package/out/concepts/Attribute__.js.map +1 -1
  17. package/out/concepts/AuthLogicForCallInterface__.js +3 -2
  18. package/out/concepts/AuthLogicForCallInterface__.js.map +1 -1
  19. package/out/concepts/BackendVariable__.js +4 -3
  20. package/out/concepts/BackendVariable__.js.map +1 -1
  21. package/out/concepts/BatchAssignment__.js +7 -5
  22. package/out/concepts/BatchAssignment__.js.map +1 -1
  23. package/out/concepts/BinaryExpression__.js +7 -7
  24. package/out/concepts/BinaryExpression__.js.map +1 -1
  25. package/out/concepts/BindAttribute__.js +9 -14
  26. package/out/concepts/BindAttribute__.js.map +1 -1
  27. package/out/concepts/BindDirective__.js +2 -1
  28. package/out/concepts/BindDirective__.js.map +1 -1
  29. package/out/concepts/BindEvent__.js +5 -3
  30. package/out/concepts/BindEvent__.js.map +1 -1
  31. package/out/concepts/BindStyle__.js +2 -1
  32. package/out/concepts/BindStyle__.js.map +1 -1
  33. package/out/concepts/CallAuthInterface__.js +5 -2
  34. package/out/concepts/CallAuthInterface__.js.map +1 -1
  35. package/out/concepts/CallFunction__.js +6 -2
  36. package/out/concepts/CallFunction__.js.map +1 -1
  37. package/out/concepts/CallInterface__.js +2 -1
  38. package/out/concepts/CallInterface__.js.map +1 -1
  39. package/out/concepts/CallLogic__.js +10 -5
  40. package/out/concepts/CallLogic__.js.map +1 -1
  41. package/out/concepts/CallQueryComponent__.js +4 -2
  42. package/out/concepts/CallQueryComponent__.js.map +1 -1
  43. package/out/concepts/CompletionProperty__.js +2 -1
  44. package/out/concepts/CompletionProperty__.js.map +1 -1
  45. package/out/concepts/ConfigGroup__.js +3 -2
  46. package/out/concepts/ConfigGroup__.js.map +1 -1
  47. package/out/concepts/ConfigProperty__.js +3 -2
  48. package/out/concepts/ConfigProperty__.js.map +1 -1
  49. package/out/concepts/Configuration__.js +3 -2
  50. package/out/concepts/Configuration__.js.map +1 -1
  51. package/out/concepts/Connection__.js +3 -2
  52. package/out/concepts/Connection__.js.map +1 -1
  53. package/out/concepts/Connector__.js +15 -10
  54. package/out/concepts/Connector__.js.map +1 -1
  55. package/out/concepts/Constant__.js +2 -1
  56. package/out/concepts/Constant__.js.map +1 -1
  57. package/out/concepts/DataSource__.js +3 -2
  58. package/out/concepts/DataSource__.js.map +1 -1
  59. package/out/concepts/Destination__.js +2 -1
  60. package/out/concepts/Destination__.js.map +1 -1
  61. package/out/concepts/EntityProperty__.js +6 -3
  62. package/out/concepts/EntityProperty__.js.map +1 -1
  63. package/out/concepts/Entity__.js +6 -4
  64. package/out/concepts/Entity__.js.map +1 -1
  65. package/out/concepts/Enum__.js +2 -1
  66. package/out/concepts/Enum__.js.map +1 -1
  67. package/out/concepts/Event__.js +3 -2
  68. package/out/concepts/Event__.js.map +1 -1
  69. package/out/concepts/ExternalDestination__.js +2 -1
  70. package/out/concepts/ExternalDestination__.js.map +1 -1
  71. package/out/concepts/ForEachStatement__.js +4 -2
  72. package/out/concepts/ForEachStatement__.js.map +1 -1
  73. package/out/concepts/Frontend__.js +14 -9
  74. package/out/concepts/Frontend__.js.map +1 -1
  75. package/out/concepts/Function__.js +11 -6
  76. package/out/concepts/Function__.js.map +1 -1
  77. package/out/concepts/Identifier__.js +3 -0
  78. package/out/concepts/Identifier__.js.map +1 -1
  79. package/out/concepts/IfStatement__.js +2 -1
  80. package/out/concepts/IfStatement__.js.map +1 -1
  81. package/out/concepts/InterfaceParam__.js +2 -1
  82. package/out/concepts/InterfaceParam__.js.map +1 -1
  83. package/out/concepts/Interface__.js +6 -3
  84. package/out/concepts/Interface__.js.map +1 -1
  85. package/out/concepts/JSBlock__.js +5 -5
  86. package/out/concepts/JSBlock__.js.map +1 -1
  87. package/out/concepts/Logic__.js +25 -19
  88. package/out/concepts/Logic__.js.map +1 -1
  89. package/out/concepts/MatchCase__.js +6 -4
  90. package/out/concepts/MatchCase__.js.map +1 -1
  91. package/out/concepts/Match__.js +2 -1
  92. package/out/concepts/Match__.js.map +1 -1
  93. package/out/concepts/MemberExpression__.js +2 -1
  94. package/out/concepts/MemberExpression__.js.map +1 -1
  95. package/out/concepts/MetadataType__.d.ts +1 -1
  96. package/out/concepts/MetadataType__.js +8 -6
  97. package/out/concepts/MetadataType__.js.map +1 -1
  98. package/out/concepts/MsgTriggerEvent__.js +3 -2
  99. package/out/concepts/MsgTriggerEvent__.js.map +1 -1
  100. package/out/concepts/MsgTriggerLauncher__.js +3 -2
  101. package/out/concepts/MsgTriggerLauncher__.js.map +1 -1
  102. package/out/concepts/Namespace__.js +33 -22
  103. package/out/concepts/Namespace__.js.map +1 -1
  104. package/out/concepts/NewComposite__.js +24 -13
  105. package/out/concepts/NewComposite__.js.map +1 -1
  106. package/out/concepts/NewList__.js +5 -3
  107. package/out/concepts/NewList__.js.map +1 -1
  108. package/out/concepts/NewMap__.js +5 -3
  109. package/out/concepts/NewMap__.js.map +1 -1
  110. package/out/concepts/NumericLiteral__.js +2 -1
  111. package/out/concepts/NumericLiteral__.js.map +1 -1
  112. package/out/concepts/OqlQueryComponent__.js +4 -3
  113. package/out/concepts/OqlQueryComponent__.js.map +1 -1
  114. package/out/concepts/OverriddenLogic__.js +13 -7
  115. package/out/concepts/OverriddenLogic__.js.map +1 -1
  116. package/out/concepts/Param__.js +4 -3
  117. package/out/concepts/Param__.js.map +1 -1
  118. package/out/concepts/ProcessComponent__.js +6 -4
  119. package/out/concepts/ProcessComponent__.js.map +1 -1
  120. package/out/concepts/ProcessElement__.js +22 -14
  121. package/out/concepts/ProcessElement__.js.map +1 -1
  122. package/out/concepts/ProcessOutcome__.d.ts +1 -2
  123. package/out/concepts/ProcessOutcome__.js +16 -1
  124. package/out/concepts/ProcessOutcome__.js.map +1 -1
  125. package/out/concepts/ProcessOutcomes__.d.ts +1 -2
  126. package/out/concepts/ProcessOutcomes__.js +16 -1
  127. package/out/concepts/ProcessOutcomes__.js.map +1 -1
  128. package/out/concepts/Process__.js +15 -10
  129. package/out/concepts/Process__.js.map +1 -1
  130. package/out/concepts/QueryAggregateExpression__.js +2 -1
  131. package/out/concepts/QueryAggregateExpression__.js.map +1 -1
  132. package/out/concepts/QueryFromExpression__.js +2 -1
  133. package/out/concepts/QueryFromExpression__.js.map +1 -1
  134. package/out/concepts/QueryGroupByExpression__.js +2 -1
  135. package/out/concepts/QueryGroupByExpression__.js.map +1 -1
  136. package/out/concepts/QueryJoinExpression__.js +3 -2
  137. package/out/concepts/QueryJoinExpression__.js.map +1 -1
  138. package/out/concepts/QueryLimitExpression__.js +2 -1
  139. package/out/concepts/QueryLimitExpression__.js.map +1 -1
  140. package/out/concepts/QueryOrderByExpression__.js +2 -1
  141. package/out/concepts/QueryOrderByExpression__.js.map +1 -1
  142. package/out/concepts/QuerySelectExpression__.js +3 -2
  143. package/out/concepts/QuerySelectExpression__.js.map +1 -1
  144. package/out/concepts/Return__.js +4 -3
  145. package/out/concepts/Return__.js.map +1 -1
  146. package/out/concepts/SelectMembers__.js +3 -2
  147. package/out/concepts/SelectMembers__.js.map +1 -1
  148. package/out/concepts/Slot__.js +2 -1
  149. package/out/concepts/Slot__.js.map +1 -1
  150. package/out/concepts/SqlQueryComponent__.js +2 -1
  151. package/out/concepts/SqlQueryComponent__.js.map +1 -1
  152. package/out/concepts/StringInterpolation__.js +5 -2
  153. package/out/concepts/StringInterpolation__.js.map +1 -1
  154. package/out/concepts/StructureProperty__.js +2 -1
  155. package/out/concepts/StructureProperty__.js.map +1 -1
  156. package/out/concepts/Structure__.js +6 -4
  157. package/out/concepts/Structure__.js.map +1 -1
  158. package/out/concepts/SwitchCase__.js +2 -1
  159. package/out/concepts/SwitchCase__.js.map +1 -1
  160. package/out/concepts/SwitchStatement__.js +2 -1
  161. package/out/concepts/SwitchStatement__.js.map +1 -1
  162. package/out/concepts/TriggerEvent__.js +3 -2
  163. package/out/concepts/TriggerEvent__.js.map +1 -1
  164. package/out/concepts/TypeAnnotation__.js +9 -4
  165. package/out/concepts/TypeAnnotation__.js.map +1 -1
  166. package/out/concepts/UnaryExpression__.js +2 -1
  167. package/out/concepts/UnaryExpression__.js.map +1 -1
  168. package/out/concepts/ValidationRule__.js +2 -1
  169. package/out/concepts/ValidationRule__.js.map +1 -1
  170. package/out/concepts/Variable__.js +4 -3
  171. package/out/concepts/Variable__.js.map +1 -1
  172. package/out/concepts/ViewElement__.js +26 -5
  173. package/out/concepts/ViewElement__.js.map +1 -1
  174. package/out/concepts/WhileStatement__.js +2 -1
  175. package/out/concepts/WhileStatement__.js.map +1 -1
  176. package/out/generator/genBundleFiles.js +4 -4
  177. package/out/generator/icestark.d.ts +1 -1
  178. package/out/generator/icestark.js +4 -2
  179. package/out/generator/icestark.js.map +1 -1
  180. package/out/generator/qiankun.d.ts +1 -1
  181. package/out/generator/qiankun.js +3 -1
  182. package/out/generator/qiankun.js.map +1 -1
  183. package/out/server/translator.js +11 -0
  184. package/out/server/translator.js.map +1 -1
  185. package/out/service/storage/jsoner.js +20 -1
  186. package/out/service/storage/jsoner.js.map +1 -1
  187. package/out/translator/utils.d.ts +1 -0
  188. package/out/translator/utils.js +16 -2
  189. package/out/translator/utils.js.map +1 -1
  190. package/package.json +1 -1
  191. package/sandbox/stdlib/nasl.oql.ts +6 -1
  192. package/src/automate/template/myProcess.js +3 -2
  193. package/src/common/BaseNode.ts +19 -10
  194. package/src/concepts/Anchor__.ts +2 -1
  195. package/src/concepts/AnonymousFunction__.ts +6 -3
  196. package/src/concepts/Argument__.ts +7 -6
  197. package/src/concepts/Assignment__.ts +17 -17
  198. package/src/concepts/Attribute__.ts +2 -1
  199. package/src/concepts/AuthLogicForCallInterface__.ts +3 -2
  200. package/src/concepts/BackendVariable__.ts +7 -6
  201. package/src/concepts/BatchAssignment__.ts +7 -5
  202. package/src/concepts/BinaryExpression__.ts +10 -12
  203. package/src/concepts/BindAttribute__.ts +18 -15
  204. package/src/concepts/BindDirective__.ts +15 -14
  205. package/src/concepts/BindEvent__.ts +5 -3
  206. package/src/concepts/BindStyle__.ts +2 -1
  207. package/src/concepts/CallAuthInterface__.ts +5 -2
  208. package/src/concepts/CallFunction__.ts +17 -5
  209. package/src/concepts/CallInterface__.ts +2 -1
  210. package/src/concepts/CallLogic__.ts +22 -9
  211. package/src/concepts/CallQueryComponent__.ts +4 -2
  212. package/src/concepts/CompletionProperty__.ts +2 -1
  213. package/src/concepts/ConfigGroup__.ts +3 -2
  214. package/src/concepts/ConfigProperty__.ts +3 -2
  215. package/src/concepts/Configuration__.ts +3 -2
  216. package/src/concepts/Connection__.ts +3 -2
  217. package/src/concepts/Connector__.ts +15 -10
  218. package/src/concepts/Constant__.ts +2 -1
  219. package/src/concepts/DataSource__.ts +3 -2
  220. package/src/concepts/Destination__.ts +2 -1
  221. package/src/concepts/EntityProperty__.ts +7 -3
  222. package/src/concepts/Entity__.ts +6 -4
  223. package/src/concepts/Enum__.ts +2 -1
  224. package/src/concepts/Event__.ts +3 -2
  225. package/src/concepts/ExternalDestination__.ts +2 -1
  226. package/src/concepts/ForEachStatement__.ts +4 -2
  227. package/src/concepts/Frontend__.ts +14 -9
  228. package/src/concepts/Function__.ts +11 -6
  229. package/src/concepts/Identifier__.ts +7 -4
  230. package/src/concepts/IfStatement__.ts +2 -1
  231. package/src/concepts/InterfaceParam__.ts +2 -1
  232. package/src/concepts/Interface__.ts +6 -3
  233. package/src/concepts/JSBlock__.ts +24 -25
  234. package/src/concepts/Logic__.ts +26 -20
  235. package/src/concepts/MatchCase__.ts +6 -4
  236. package/src/concepts/Match__.ts +2 -1
  237. package/src/concepts/MemberExpression__.ts +2 -1
  238. package/src/concepts/MetadataType__.ts +18 -17
  239. package/src/concepts/MsgTriggerEvent__.ts +3 -2
  240. package/src/concepts/MsgTriggerLauncher__.ts +3 -2
  241. package/src/concepts/Namespace__.ts +33 -22
  242. package/src/concepts/NewComposite__.ts +23 -13
  243. package/src/concepts/NewList__.ts +13 -11
  244. package/src/concepts/NewMap__.ts +11 -9
  245. package/src/concepts/NumericLiteral__.ts +2 -1
  246. package/src/concepts/OqlQueryComponent__.ts +9 -8
  247. package/src/concepts/OverriddenLogic__.ts +13 -7
  248. package/src/concepts/Param__.ts +15 -14
  249. package/src/concepts/ProcessComponent__.ts +6 -4
  250. package/src/concepts/ProcessElement__.ts +22 -14
  251. package/src/concepts/ProcessOutcome__.ts +17 -2
  252. package/src/concepts/ProcessOutcomes__.ts +17 -2
  253. package/src/concepts/Process__.ts +15 -10
  254. package/src/concepts/QueryAggregateExpression__.ts +2 -1
  255. package/src/concepts/QueryFromExpression__.ts +2 -1
  256. package/src/concepts/QueryGroupByExpression__.ts +2 -1
  257. package/src/concepts/QueryJoinExpression__.ts +3 -2
  258. package/src/concepts/QueryLimitExpression__.ts +2 -1
  259. package/src/concepts/QueryOrderByExpression__.ts +2 -1
  260. package/src/concepts/QuerySelectExpression__.ts +3 -2
  261. package/src/concepts/Return__.ts +7 -6
  262. package/src/concepts/SelectMembers__.ts +3 -2
  263. package/src/concepts/Slot__.ts +2 -1
  264. package/src/concepts/SqlQueryComponent__.ts +2 -1
  265. package/src/concepts/StringInterpolation__.ts +13 -3
  266. package/src/concepts/StructureProperty__.ts +2 -1
  267. package/src/concepts/Structure__.ts +6 -4
  268. package/src/concepts/SwitchCase__.ts +2 -1
  269. package/src/concepts/SwitchStatement__.ts +2 -1
  270. package/src/concepts/TriggerEvent__.ts +3 -2
  271. package/src/concepts/TypeAnnotation__.ts +35 -28
  272. package/src/concepts/UnaryExpression__.ts +2 -1
  273. package/src/concepts/ValidationRule__.ts +2 -1
  274. package/src/concepts/Variable__.ts +7 -6
  275. package/src/concepts/ViewElement__.ts +27 -8
  276. package/src/concepts/WhileStatement__.ts +2 -1
  277. package/src/generator/genBundleFiles.ts +4 -4
  278. package/src/generator/icestark.ts +4 -2
  279. package/src/generator/qiankun.ts +3 -1
  280. package/src/server/translator.ts +10 -1
  281. package/src/service/storage/jsoner.ts +24 -3
  282. package/src/translator/utils.ts +15 -1
  283. package/coverage/base.css +0 -224
  284. package/coverage/block-navigation.js +0 -87
  285. package/coverage/favicon.png +0 -0
  286. package/coverage/index.html +0 -461
  287. package/coverage/prettify.css +0 -1
  288. package/coverage/prettify.js +0 -2
  289. package/coverage/sort-arrow-sprite.png +0 -0
  290. package/coverage/sorter.js +0 -196
  291. package/coverage/src/automate/engine/index.html +0 -116
  292. package/coverage/src/automate/engine/utils.js.html +0 -1414
  293. package/coverage/src/bak/index.html +0 -116
  294. package/coverage/src/bak/translator.js.html +0 -745
  295. package/coverage/src/breakpoint/generator/AfterStartNode.ts.html +0 -175
  296. package/coverage/src/breakpoint/generator/BeforeEndNode.ts.html +0 -169
  297. package/coverage/src/breakpoint/generator/BreakpointNode.ts.html +0 -1246
  298. package/coverage/src/breakpoint/generator/CallbackNode.ts.html +0 -145
  299. package/coverage/src/breakpoint/generator/index.html +0 -176
  300. package/coverage/src/breakpoint/generator/index.ts.html +0 -508
  301. package/coverage/src/breakpoint/index.html +0 -116
  302. package/coverage/src/breakpoint/index.ts.html +0 -94
  303. package/coverage/src/breakpoint/shared/constants.ts.html +0 -436
  304. package/coverage/src/breakpoint/shared/index.html +0 -176
  305. package/coverage/src/breakpoint/shared/index.ts.html +0 -94
  306. package/coverage/src/breakpoint/shared/operations.ts.html +0 -160
  307. package/coverage/src/breakpoint/shared/socket.ts.html +0 -1297
  308. package/coverage/src/breakpoint/shared/utils.ts.html +0 -1087
  309. package/coverage/src/breakpoint/store/core.ts.html +0 -1600
  310. package/coverage/src/breakpoint/store/dock.ts.html +0 -733
  311. package/coverage/src/breakpoint/store/index.html +0 -146
  312. package/coverage/src/breakpoint/store/index.ts.html +0 -91
  313. package/coverage/src/common/BaseNode.ts.html +0 -3904
  314. package/coverage/src/common/Command.ts.html +0 -310
  315. package/coverage/src/common/EventEmitter.ts.html +0 -370
  316. package/coverage/src/common/Messager.ts.html +0 -820
  317. package/coverage/src/common/asyncFuncMap.ts.html +0 -127
  318. package/coverage/src/common/index.html +0 -191
  319. package/coverage/src/common/index.ts.html +0 -94
  320. package/coverage/src/concepts/Abort__.ts.html +0 -331
  321. package/coverage/src/concepts/Anchor__.ts.html +0 -661
  322. package/coverage/src/concepts/AnonymousFunction__.ts.html +0 -2071
  323. package/coverage/src/concepts/App__.ts.html +0 -14095
  324. package/coverage/src/concepts/Argument__.ts.html +0 -979
  325. package/coverage/src/concepts/Assignee__.ts.html +0 -2263
  326. package/coverage/src/concepts/AssignmentLine__.ts.html +0 -412
  327. package/coverage/src/concepts/Assignment__.ts.html +0 -1162
  328. package/coverage/src/concepts/Attribute__.ts.html +0 -748
  329. package/coverage/src/concepts/AuthInterface__.ts.html +0 -370
  330. package/coverage/src/concepts/AuthLogicForCallInterface__.ts.html +0 -1999
  331. package/coverage/src/concepts/AuthLogic__.ts.html +0 -793
  332. package/coverage/src/concepts/BackendVariable__.ts.html +0 -1498
  333. package/coverage/src/concepts/Backend__.ts.html +0 -1180
  334. package/coverage/src/concepts/BatchAssignment__.ts.html +0 -3346
  335. package/coverage/src/concepts/BinaryExpression__.ts.html +0 -1543
  336. package/coverage/src/concepts/BindAttribute__.ts.html +0 -3928
  337. package/coverage/src/concepts/BindDirective__.ts.html +0 -1984
  338. package/coverage/src/concepts/BindEvent__.ts.html +0 -3463
  339. package/coverage/src/concepts/BindStyle__.ts.html +0 -1627
  340. package/coverage/src/concepts/BooleanLiteral__.ts.html +0 -421
  341. package/coverage/src/concepts/CallAuthInterface__.ts.html +0 -1630
  342. package/coverage/src/concepts/CallConnector__.ts.html +0 -925
  343. package/coverage/src/concepts/CallFunction__.ts.html +0 -2140
  344. package/coverage/src/concepts/CallInterface__.ts.html +0 -2764
  345. package/coverage/src/concepts/CallLogic__.ts.html +0 -4738
  346. package/coverage/src/concepts/CallQueryComponent__.ts.html +0 -5335
  347. package/coverage/src/concepts/Comment__.ts.html +0 -397
  348. package/coverage/src/concepts/CompletionProperty__.ts.html +0 -940
  349. package/coverage/src/concepts/ConfigGroup__.ts.html +0 -1120
  350. package/coverage/src/concepts/ConfigPropertyValue__.ts.html +0 -427
  351. package/coverage/src/concepts/ConfigProperty__.ts.html +0 -1363
  352. package/coverage/src/concepts/Configuration__.ts.html +0 -1042
  353. package/coverage/src/concepts/Connection__.ts.html +0 -1375
  354. package/coverage/src/concepts/ConnectorTrigger__.ts.html +0 -598
  355. package/coverage/src/concepts/Connector__.ts.html +0 -4318
  356. package/coverage/src/concepts/Constant__.ts.html +0 -928
  357. package/coverage/src/concepts/DataSource__.ts.html +0 -1786
  358. package/coverage/src/concepts/DatabaseTypeAnnotation__.ts.html +0 -334
  359. package/coverage/src/concepts/Destination__.ts.html +0 -2743
  360. package/coverage/src/concepts/End__.ts.html +0 -436
  361. package/coverage/src/concepts/EntityIndex__.ts.html +0 -790
  362. package/coverage/src/concepts/EntityProperty__.ts.html +0 -2716
  363. package/coverage/src/concepts/Entity__.ts.html +0 -2977
  364. package/coverage/src/concepts/EnumItem__.ts.html +0 -553
  365. package/coverage/src/concepts/Enum__.ts.html +0 -1246
  366. package/coverage/src/concepts/Event__.ts.html +0 -1099
  367. package/coverage/src/concepts/ExternalDestination__.ts.html +0 -1048
  368. package/coverage/src/concepts/ForEachStatement__.ts.html +0 -1978
  369. package/coverage/src/concepts/FrontendLibrary__.ts.html +0 -1738
  370. package/coverage/src/concepts/FrontendVariable__.ts.html +0 -292
  371. package/coverage/src/concepts/Frontend__.ts.html +0 -4024
  372. package/coverage/src/concepts/Function__.ts.html +0 -3664
  373. package/coverage/src/concepts/Identifier__.ts.html +0 -1060
  374. package/coverage/src/concepts/IfStatement__.ts.html +0 -1621
  375. package/coverage/src/concepts/Integration__.ts.html +0 -1255
  376. package/coverage/src/concepts/InterfaceParam__.ts.html +0 -1102
  377. package/coverage/src/concepts/Interface__.ts.html +0 -3433
  378. package/coverage/src/concepts/JSBlock__.ts.html +0 -601
  379. package/coverage/src/concepts/JavaLogic__.ts.html +0 -463
  380. package/coverage/src/concepts/LogicItem__.ts.html +0 -1174
  381. package/coverage/src/concepts/Logic__.ts.html +0 -7444
  382. package/coverage/src/concepts/MatchCase__.ts.html +0 -2968
  383. package/coverage/src/concepts/Match__.ts.html +0 -2476
  384. package/coverage/src/concepts/MemberExpression__.ts.html +0 -1732
  385. package/coverage/src/concepts/MetadataType__.ts.html +0 -1996
  386. package/coverage/src/concepts/MicroApp__.ts.html +0 -439
  387. package/coverage/src/concepts/Module__.ts.html +0 -9874
  388. package/coverage/src/concepts/MsgTriggerEvent__.ts.html +0 -1060
  389. package/coverage/src/concepts/MsgTriggerLauncher__.ts.html +0 -1033
  390. package/coverage/src/concepts/Namespace__.ts.html +0 -8077
  391. package/coverage/src/concepts/NewComposite__.ts.html +0 -4795
  392. package/coverage/src/concepts/NewList__.ts.html +0 -1648
  393. package/coverage/src/concepts/NewMap__.ts.html +0 -2356
  394. package/coverage/src/concepts/New__.ts.html +0 -289
  395. package/coverage/src/concepts/NullLiteral__.ts.html +0 -352
  396. package/coverage/src/concepts/NumericLiteral__.ts.html +0 -691
  397. package/coverage/src/concepts/OqlQueryComponent__.ts.html +0 -1231
  398. package/coverage/src/concepts/OverriddenLogic__.ts.html +0 -6892
  399. package/coverage/src/concepts/Param__.ts.html +0 -1735
  400. package/coverage/src/concepts/Point__.ts.html +0 -334
  401. package/coverage/src/concepts/ProcessComponent__.ts.html +0 -1693
  402. package/coverage/src/concepts/ProcessElement__.ts.html +0 -5983
  403. package/coverage/src/concepts/ProcessOutcome__.ts.html +0 -355
  404. package/coverage/src/concepts/ProcessOutcomes__.ts.html +0 -346
  405. package/coverage/src/concepts/Process__.ts.html +0 -4831
  406. package/coverage/src/concepts/QueryAggregateExpression__.ts.html +0 -583
  407. package/coverage/src/concepts/QueryFieldExpression__.ts.html +0 -586
  408. package/coverage/src/concepts/QueryFromExpression__.ts.html +0 -925
  409. package/coverage/src/concepts/QueryGroupByExpression__.ts.html +0 -574
  410. package/coverage/src/concepts/QueryJoinExpression__.ts.html +0 -1582
  411. package/coverage/src/concepts/QueryLimitExpression__.ts.html +0 -652
  412. package/coverage/src/concepts/QueryOrderByExpression__.ts.html +0 -694
  413. package/coverage/src/concepts/QuerySelectExpression__.ts.html +0 -1729
  414. package/coverage/src/concepts/Rect__.ts.html +0 -376
  415. package/coverage/src/concepts/Return__.ts.html +0 -1327
  416. package/coverage/src/concepts/Role__.ts.html +0 -604
  417. package/coverage/src/concepts/SelectMembers__.ts.html +0 -1261
  418. package/coverage/src/concepts/Slot__.ts.html +0 -643
  419. package/coverage/src/concepts/SqlQueryComponent__.ts.html +0 -997
  420. package/coverage/src/concepts/Start__.ts.html +0 -307
  421. package/coverage/src/concepts/StringInterpolation__.ts.html +0 -1150
  422. package/coverage/src/concepts/StringLiteral__.ts.html +0 -508
  423. package/coverage/src/concepts/StructureProperty__.ts.html +0 -1147
  424. package/coverage/src/concepts/Structure__.ts.html +0 -2119
  425. package/coverage/src/concepts/SwitchCase__.ts.html +0 -1189
  426. package/coverage/src/concepts/SwitchStatement__.ts.html +0 -892
  427. package/coverage/src/concepts/Theme__.ts.html +0 -361
  428. package/coverage/src/concepts/Transactional__.ts.html +0 -631
  429. package/coverage/src/concepts/TriggerEvent__.ts.html +0 -1027
  430. package/coverage/src/concepts/TriggerLauncher__.ts.html +0 -778
  431. package/coverage/src/concepts/TypeAnnotation__.ts.html +0 -3880
  432. package/coverage/src/concepts/TypeParam__.ts.html +0 -322
  433. package/coverage/src/concepts/UnaryExpression__.ts.html +0 -724
  434. package/coverage/src/concepts/Unparsed__.ts.html +0 -397
  435. package/coverage/src/concepts/UseComponent__.ts.html +0 -334
  436. package/coverage/src/concepts/ValidationRule__.ts.html +0 -1855
  437. package/coverage/src/concepts/Variable__.ts.html +0 -1534
  438. package/coverage/src/concepts/ViewBlock__.ts.html +0 -355
  439. package/coverage/src/concepts/ViewComponent__.ts.html +0 -4255
  440. package/coverage/src/concepts/ViewElement__.ts.html +0 -8956
  441. package/coverage/src/concepts/View__.ts.html +0 -8875
  442. package/coverage/src/concepts/WhileStatement__.ts.html +0 -1096
  443. package/coverage/src/concepts/basics/stdlib/index.html +0 -356
  444. package/coverage/src/concepts/basics/stdlib/index.ts.html +0 -208
  445. package/coverage/src/concepts/basics/stdlib/nasl.auth.ts.html +0 -565
  446. package/coverage/src/concepts/basics/stdlib/nasl.browser.ts.html +0 -517
  447. package/coverage/src/concepts/basics/stdlib/nasl.collection.ts.html +0 -226
  448. package/coverage/src/concepts/basics/stdlib/nasl.configuration.ts.html +0 -172
  449. package/coverage/src/concepts/basics/stdlib/nasl.core.ts.html +0 -214
  450. package/coverage/src/concepts/basics/stdlib/nasl.event.ts.html +0 -145
  451. package/coverage/src/concepts/basics/stdlib/nasl.http.ts.html +0 -589
  452. package/coverage/src/concepts/basics/stdlib/nasl.interface.ts.html +0 -214
  453. package/coverage/src/concepts/basics/stdlib/nasl.io.ts.html +0 -229
  454. package/coverage/src/concepts/basics/stdlib/nasl.logging.ts.html +0 -268
  455. package/coverage/src/concepts/basics/stdlib/nasl.process.ts.html +0 -1999
  456. package/coverage/src/concepts/basics/stdlib/nasl.ui.ts.html +0 -3259
  457. package/coverage/src/concepts/basics/stdlib/nasl.util.ts.html +0 -6844
  458. package/coverage/src/concepts/basics/stdlib/nasl.validation.ts.html +0 -1768
  459. package/coverage/src/concepts/basics/stdlib/reference2TypeAnnotationList.ts.html +0 -163
  460. package/coverage/src/concepts/basics/stdlib/timeZone.ts.html +0 -664
  461. package/coverage/src/concepts/basics/types/coreTypeList.ts.html +0 -121
  462. package/coverage/src/concepts/basics/types/index.html +0 -131
  463. package/coverage/src/concepts/basics/types/index.ts.html +0 -160
  464. package/coverage/src/concepts/index.html +0 -1976
  465. package/coverage/src/concepts/index.ts.html +0 -103
  466. package/coverage/src/concepts/index__.ts.html +0 -454
  467. package/coverage/src/config.ts.html +0 -325
  468. package/coverage/src/decorators/index.html +0 -131
  469. package/coverage/src/decorators/index.ts.html +0 -574
  470. package/coverage/src/decorators/promise.ts.html +0 -169
  471. package/coverage/src/eventBus.ts.html +0 -100
  472. package/coverage/src/generator/compileComponent.ts.html +0 -142
  473. package/coverage/src/generator/genBundleFiles.ts.html +0 -1822
  474. package/coverage/src/generator/genHash.ts.html +0 -124
  475. package/coverage/src/generator/genMetaData.ts.html +0 -1129
  476. package/coverage/src/generator/genReleaseBody.ts.html +0 -1282
  477. package/coverage/src/generator/icestark.ts.html +0 -220
  478. package/coverage/src/generator/index.html +0 -266
  479. package/coverage/src/generator/index.ts.html +0 -106
  480. package/coverage/src/generator/microApp.ts.html +0 -172
  481. package/coverage/src/generator/permission.ts.html +0 -1036
  482. package/coverage/src/generator/qiankun.ts.html +0 -232
  483. package/coverage/src/generator/styleReplacer.ts.html +0 -199
  484. package/coverage/src/index.html +0 -146
  485. package/coverage/src/index.ts.html +0 -121
  486. package/coverage/src/manager/diagnostic.ts.html +0 -442
  487. package/coverage/src/manager/index.html +0 -131
  488. package/coverage/src/manager/stepRecorder.ts.html +0 -457
  489. package/coverage/src/natural/genNaturalTS.ts.html +0 -355
  490. package/coverage/src/natural/index.html +0 -161
  491. package/coverage/src/natural/index.ts.html +0 -91
  492. package/coverage/src/natural/naslStdlibMap.ts.html +0 -157
  493. package/coverage/src/natural/transformTSCode.ts.html +0 -2707
  494. package/coverage/src/sentry/index.html +0 -116
  495. package/coverage/src/sentry/index.ts.html +0 -676
  496. package/coverage/src/server/createUiTs.ts.html +0 -919
  497. package/coverage/src/server/entity2LogicNamespace.ts.html +0 -1294
  498. package/coverage/src/server/event.js.html +0 -526
  499. package/coverage/src/server/extendBaseNode.ts.html +0 -1765
  500. package/coverage/src/server/formatTsUtils.ts.html +0 -2689
  501. package/coverage/src/server/getConnector.ts.html +0 -316
  502. package/coverage/src/server/getExtensionModules.ts.html +0 -178
  503. package/coverage/src/server/getFunctions.ts.html +0 -133
  504. package/coverage/src/server/getInterfaces.ts.html +0 -229
  505. package/coverage/src/server/getLogging.ts.html +0 -100
  506. package/coverage/src/server/getLogics.ts.html +0 -1363
  507. package/coverage/src/server/getMemberIdentifier.ts.html +0 -1609
  508. package/coverage/src/server/getProcessComponents.ts.html +0 -112
  509. package/coverage/src/server/getProcesses.ts.html +0 -2023
  510. package/coverage/src/server/getValidates.ts.html +0 -115
  511. package/coverage/src/server/index.html +0 -401
  512. package/coverage/src/server/index.ts.html +0 -229
  513. package/coverage/src/server/naslServer.ts.html +0 -14812
  514. package/coverage/src/server/naslStdlibMap.ts.html +0 -241
  515. package/coverage/src/server/process2LogicNamespace.ts.html +0 -454
  516. package/coverage/src/server/translator.ts.html +0 -2566
  517. package/coverage/src/service/creator/add.configs.js.html +0 -397
  518. package/coverage/src/service/creator/errHandles.js.html +0 -304
  519. package/coverage/src/service/creator/index.html +0 -146
  520. package/coverage/src/service/creator/index.js.html +0 -352
  521. package/coverage/src/service/datasource/api.js.html +0 -118
  522. package/coverage/src/service/datasource/index.html +0 -131
  523. package/coverage/src/service/datasource/index.js.html +0 -103
  524. package/coverage/src/service/logic/api.js.html +0 -109
  525. package/coverage/src/service/logic/index.html +0 -131
  526. package/coverage/src/service/logic/index.js.html +0 -103
  527. package/coverage/src/service/storage/api.js.html +0 -202
  528. package/coverage/src/service/storage/index.html +0 -206
  529. package/coverage/src/service/storage/index.ts.html +0 -103
  530. package/coverage/src/service/storage/init.ts.html +0 -3661
  531. package/coverage/src/service/storage/jsoner.ts.html +0 -502
  532. package/coverage/src/service/storage/map.ts.html +0 -256
  533. package/coverage/src/service/storage/service.ts.html +0 -331
  534. package/coverage/src/service/storage/storagePoint.ts.html +0 -304
  535. package/coverage/src/templator/genCallComponentLogic.ts.html +0 -163
  536. package/coverage/src/templator/genCreateBlock.ts.html +0 -1084
  537. package/coverage/src/templator/genCurdEditMultipleKeyBlock.ts.html +0 -1627
  538. package/coverage/src/templator/genCurdMultipleKeyBlock.ts.html +0 -2242
  539. package/coverage/src/templator/genEditTableBlock.ts.html +0 -1024
  540. package/coverage/src/templator/genEnumSelectBlock.ts.html +0 -178
  541. package/coverage/src/templator/genGetBlock.ts.html +0 -451
  542. package/coverage/src/templator/genGridViewBlock.ts.html +0 -1114
  543. package/coverage/src/templator/genListViewBlock.ts.html +0 -475
  544. package/coverage/src/templator/genQueryComponent.ts.html +0 -1207
  545. package/coverage/src/templator/genSelectBlock.ts.html +0 -1243
  546. package/coverage/src/templator/genTableBlock.ts.html +0 -973
  547. package/coverage/src/templator/genUpdateBlock.ts.html +0 -1204
  548. package/coverage/src/templator/index.html +0 -326
  549. package/coverage/src/templator/index.ts.html +0 -154
  550. package/coverage/src/templator/utils.ts.html +0 -1927
  551. package/coverage/src/translator/constant.ts.html +0 -106
  552. package/coverage/src/translator/index.html +0 -146
  553. package/coverage/src/translator/index.ts.html +0 -94
  554. package/coverage/src/translator/utils.ts.html +0 -493
  555. package/coverage/src/utils/cookie.ts.html +0 -265
  556. package/coverage/src/utils/env.ts.html +0 -91
  557. package/coverage/src/utils/index.html +0 -236
  558. package/coverage/src/utils/index.ts.html +0 -748
  559. package/coverage/src/utils/logger.ts.html +0 -145
  560. package/coverage/src/utils/sortTsString.ts.html +0 -187
  561. package/coverage/src/utils/string.ts.html +0 -502
  562. package/coverage/src/utils/time-slicing.ts.html +0 -418
  563. package/coverage/src/utils/traverse.ts.html +0 -568
  564. package/coverage/src/utils/window.ts.html +0 -112
@@ -305,7 +305,7 @@ export class Logic extends BaseNode {
305
305
 
306
306
  getTypeParamExistingNames(excludedList: Array<TypeParam> = []) {
307
307
  const excludedSet = new Set(excludedList);
308
- return ((this.typeParams as TypeParam[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
308
+ return ((this.typeParams as TypeParam[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item?.name);
309
309
  }
310
310
  getTypeParamUniqueName(name = 'typeParam1') {
311
311
  return utils.unique(name, this.getTypeParamExistingNames(), undefined, false);
@@ -1120,7 +1120,7 @@ export class Logic extends BaseNode {
1120
1120
  if (typeof options === 'string') {
1121
1121
  transactional = this.transactional;
1122
1122
  if (!transactional) {
1123
- throw new Error(`找不到事务 ${options}`);
1123
+ throw new Error('找不到事务 ' + options);
1124
1124
  }
1125
1125
  } else {
1126
1126
  transactional = options;
@@ -1129,7 +1129,7 @@ export class Logic extends BaseNode {
1129
1129
  }
1130
1130
 
1131
1131
  __removeTransactional(transactional: Transactional) {
1132
- const { parentKey } = transactional;
1132
+ const parentKey = transactional.parentKey;
1133
1133
  const params: Params = {
1134
1134
  parentNode: this,
1135
1135
  parentKey,
@@ -1144,7 +1144,8 @@ export class Logic extends BaseNode {
1144
1144
  // @ts-ignore
1145
1145
  const n = transactional.__v_raw || transactional;
1146
1146
  if (Array.isArray((t as any)[parentKey])) {
1147
- const index = (t as any)[parentKey].indexOf(n);
1147
+ // @ts-ignore
1148
+ const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
1148
1149
  ~index && (this as any)[parentKey].splice(index, 1);
1149
1150
  params.index = index;
1150
1151
  } else if ((t as any)[parentKey] === n) {
@@ -1172,7 +1173,7 @@ export class Logic extends BaseNode {
1172
1173
  if (typeof options === 'string') {
1173
1174
  typeParam = (this.typeParams as TypeParam[]).find((item) => item.name === options);
1174
1175
  if (!typeParam) {
1175
- throw new Error(`找不到类型参数 ${options}`);
1176
+ throw new Error('找不到类型参数 ' + options);
1176
1177
  }
1177
1178
  } else {
1178
1179
  typeParam = options;
@@ -1181,7 +1182,7 @@ export class Logic extends BaseNode {
1181
1182
  }
1182
1183
 
1183
1184
  __removeTypeParam(typeParam: TypeParam) {
1184
- const { parentKey } = typeParam;
1185
+ const parentKey = typeParam.parentKey;
1185
1186
  const params: Params = {
1186
1187
  parentNode: this,
1187
1188
  parentKey,
@@ -1196,7 +1197,8 @@ export class Logic extends BaseNode {
1196
1197
  // @ts-ignore
1197
1198
  const n = typeParam.__v_raw || typeParam;
1198
1199
  if (Array.isArray((t as any)[parentKey])) {
1199
- const index = (t as any)[parentKey].indexOf(n);
1200
+ // @ts-ignore
1201
+ const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
1200
1202
  ~index && (this as any)[parentKey].splice(index, 1);
1201
1203
  params.index = index;
1202
1204
  } else if ((t as any)[parentKey] === n) {
@@ -1224,7 +1226,7 @@ export class Logic extends BaseNode {
1224
1226
  if (typeof options === 'string') {
1225
1227
  param = (this.params as Param[]).find((item) => item.name === options);
1226
1228
  if (!param) {
1227
- throw new Error(`找不到输入参数 ${options}`);
1229
+ throw new Error('找不到输入参数 ' + options);
1228
1230
  }
1229
1231
  } else {
1230
1232
  param = options;
@@ -1233,7 +1235,7 @@ export class Logic extends BaseNode {
1233
1235
  }
1234
1236
 
1235
1237
  __removeParam(param: Param) {
1236
- const { parentKey } = param;
1238
+ const parentKey = param.parentKey;
1237
1239
  const params: Params = {
1238
1240
  parentNode: this,
1239
1241
  parentKey,
@@ -1248,7 +1250,8 @@ export class Logic extends BaseNode {
1248
1250
  // @ts-ignore
1249
1251
  const n = param.__v_raw || param;
1250
1252
  if (Array.isArray((t as any)[parentKey])) {
1251
- const index = (t as any)[parentKey].indexOf(n);
1253
+ // @ts-ignore
1254
+ const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
1252
1255
  ~index && (this as any)[parentKey].splice(index, 1);
1253
1256
  params.index = index;
1254
1257
  } else if ((t as any)[parentKey] === n) {
@@ -1276,7 +1279,7 @@ export class Logic extends BaseNode {
1276
1279
  if (typeof options === 'string') {
1277
1280
  ret = (this.returns as Return[]).find((item) => item.name === options);
1278
1281
  if (!ret) {
1279
- throw new Error(`找不到输出参数 ${options}`);
1282
+ throw new Error('找不到输出参数 ' + options);
1280
1283
  }
1281
1284
  } else {
1282
1285
  ret = options;
@@ -1285,7 +1288,7 @@ export class Logic extends BaseNode {
1285
1288
  }
1286
1289
 
1287
1290
  __removeReturn(ret: Return) {
1288
- const { parentKey } = ret;
1291
+ const parentKey = ret.parentKey;
1289
1292
  const params: Params = {
1290
1293
  parentNode: this,
1291
1294
  parentKey,
@@ -1300,7 +1303,8 @@ export class Logic extends BaseNode {
1300
1303
  // @ts-ignore
1301
1304
  const n = ret.__v_raw || ret;
1302
1305
  if (Array.isArray((t as any)[parentKey])) {
1303
- const index = (t as any)[parentKey].indexOf(n);
1306
+ // @ts-ignore
1307
+ const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
1304
1308
  ~index && (this as any)[parentKey].splice(index, 1);
1305
1309
  params.index = index;
1306
1310
  } else if ((t as any)[parentKey] === n) {
@@ -1328,7 +1332,7 @@ export class Logic extends BaseNode {
1328
1332
  if (typeof options === 'string') {
1329
1333
  variable = (this.variables as Variable[]).find((item) => item.name === options);
1330
1334
  if (!variable) {
1331
- throw new Error(`找不到变量 ${options}`);
1335
+ throw new Error('找不到变量 ' + options);
1332
1336
  }
1333
1337
  } else {
1334
1338
  variable = options;
@@ -1337,7 +1341,7 @@ export class Logic extends BaseNode {
1337
1341
  }
1338
1342
 
1339
1343
  __removeVariable(variable: Variable) {
1340
- const { parentKey } = variable;
1344
+ const parentKey = variable.parentKey;
1341
1345
  const params: Params = {
1342
1346
  parentNode: this,
1343
1347
  parentKey,
@@ -1352,7 +1356,8 @@ export class Logic extends BaseNode {
1352
1356
  // @ts-ignore
1353
1357
  const n = variable.__v_raw || variable;
1354
1358
  if (Array.isArray((t as any)[parentKey])) {
1355
- const index = (t as any)[parentKey].indexOf(n);
1359
+ // @ts-ignore
1360
+ const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
1356
1361
  ~index && (this as any)[parentKey].splice(index, 1);
1357
1362
  params.index = index;
1358
1363
  } else if ((t as any)[parentKey] === n) {
@@ -1386,7 +1391,7 @@ export class Logic extends BaseNode {
1386
1391
  }
1387
1392
 
1388
1393
  __removeLogicItem(logicItem: LogicItem) {
1389
- const { parentKey } = logicItem;
1394
+ const parentKey = logicItem.parentKey;
1390
1395
  const params: Params = {
1391
1396
  parentNode: this,
1392
1397
  parentKey,
@@ -1401,7 +1406,8 @@ export class Logic extends BaseNode {
1401
1406
  // @ts-ignore
1402
1407
  const n = logicItem.__v_raw || logicItem;
1403
1408
  if (Array.isArray((t as any)[parentKey])) {
1404
- const index = (t as any)[parentKey].indexOf(n);
1409
+ // @ts-ignore
1410
+ const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
1405
1411
  ~index && (this as any)[parentKey].splice(index, 1);
1406
1412
  params.index = index;
1407
1413
  } else if ((t as any)[parentKey] === n) {
@@ -1968,7 +1974,7 @@ ${indent(state.tabSize)} */\n`;
1968
1974
  if (parentNode?.concept === 'View') {
1969
1975
  logicName = `viewLogic_${name}`;
1970
1976
  } else if (parentNode?.concept === 'BindEvent') {
1971
- logicName = `on_${(parentNode?.parentNode)?.name}_${name}`;
1977
+ logicName = `on_${parentNode?.parentNode?.name}_${name}`;
1972
1978
  } else {
1973
1979
  logicName = this.name;
1974
1980
  }
@@ -2320,7 +2326,7 @@ ${indent(state.tabSize)} */\n`;
2320
2326
  delete() {
2321
2327
  let actionMsg = '删除逻辑项';
2322
2328
  if (this.name) actionMsg += `“${this.name}”`;
2323
- this.app?.emit('logicDeleted', { actionMsg: this.nodePath })
2329
+ this.app?.emit('logicDeleted', { actionMsg: this.nodePath });
2324
2330
  this.app?.emit('collect:start', {
2325
2331
  actionMsg,
2326
2332
  });
@@ -91,7 +91,7 @@ export class MatchCase extends LogicItem {
91
91
 
92
92
  getLogicItemExistingNames(excludedList: Array<LogicItem> = []) {
93
93
  const excludedSet = new Set(excludedList);
94
- return ((this.patterns as LogicItem[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
94
+ return ((this.patterns as LogicItem[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item?.name);
95
95
  }
96
96
  getLogicItemUniqueName(name = 'logicItem1') {
97
97
  return utils.unique(name, this.getLogicItemExistingNames(), undefined, false);
@@ -346,7 +346,7 @@ export class MatchCase extends LogicItem {
346
346
  const excludedSet = new Set(excludedList);
347
347
  return ((this.patterns as TypeAnnotation[]) || [])
348
348
  .filter((item) => !excludedSet.has(item))
349
- .map((item) => item.name);
349
+ .map((item) => item?.name);
350
350
  }
351
351
  getTypeAnnotationUniqueName(name = 'typeAnnotation1') {
352
352
  return utils.unique(name, this.getTypeAnnotationExistingNames(), undefined, false);
@@ -549,7 +549,8 @@ export class MatchCase extends LogicItem {
549
549
  // @ts-ignore
550
550
  const n = logicItem.__v_raw || logicItem;
551
551
  if (Array.isArray((t as any)[parentKey])) {
552
- const index = (t as any)[parentKey].indexOf(n);
552
+ // @ts-ignore
553
+ const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
553
554
  ~index && (this as any)[parentKey].splice(index, 1);
554
555
  params.index = index;
555
556
  } else if ((t as any)[parentKey] === n) {
@@ -601,7 +602,8 @@ export class MatchCase extends LogicItem {
601
602
  // @ts-ignore
602
603
  const n = typeAnnotation.__v_raw || typeAnnotation;
603
604
  if (Array.isArray((t as any)[parentKey])) {
604
- const index = (t as any)[parentKey].indexOf(n);
605
+ // @ts-ignore
606
+ const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
605
607
  ~index && (this as any)[parentKey].splice(index, 1);
606
608
  params.index = index;
607
609
  } else if ((t as any)[parentKey] === n) {
@@ -220,7 +220,8 @@ export class Match extends LogicItem {
220
220
  // @ts-ignore
221
221
  const n = logicItem.__v_raw || logicItem;
222
222
  if (Array.isArray((t as any)[parentKey])) {
223
- const index = (t as any)[parentKey].indexOf(n);
223
+ // @ts-ignore
224
+ const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
224
225
  ~index && (this as any)[parentKey].splice(index, 1);
225
226
  params.index = index;
226
227
  } else if ((t as any)[parentKey] === n) {
@@ -137,7 +137,8 @@ export class MemberExpression extends LogicItem {
137
137
  // @ts-ignore
138
138
  const n = logicItem.__v_raw || logicItem;
139
139
  if (Array.isArray((t as any)[parentKey])) {
140
- const index = (t as any)[parentKey].indexOf(n);
140
+ // @ts-ignore
141
+ const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
141
142
  ~index && (this as any)[parentKey].splice(index, 1);
142
143
  params.index = index;
143
144
  } else if ((t as any)[parentKey] === n) {
@@ -137,7 +137,7 @@ export class MetadataType extends BaseNode {
137
137
 
138
138
  getValidationRuleExistingNames(excludedList: Array<ValidationRule> = []) {
139
139
  const excludedSet = new Set(excludedList);
140
- return ((this.rules as ValidationRule[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
140
+ return ((this.rules as ValidationRule[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item?.name);
141
141
  }
142
142
  getValidationRuleUniqueName(name = 'validationRule1') {
143
143
  return utils.unique(name, this.getValidationRuleExistingNames(), undefined, false);
@@ -429,7 +429,8 @@ export class MetadataType extends BaseNode {
429
429
  // @ts-ignore
430
430
  const n = typeAnnotation.__v_raw || typeAnnotation;
431
431
  if (Array.isArray((t as any)[parentKey])) {
432
- const index = (t as any)[parentKey].indexOf(n);
432
+ // @ts-ignore
433
+ const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
433
434
  ~index && (this as any)[parentKey].splice(index, 1);
434
435
  params.index = index;
435
436
  } else if ((t as any)[parentKey] === n) {
@@ -492,7 +493,8 @@ export class MetadataType extends BaseNode {
492
493
  // @ts-ignore
493
494
  const n = logicItem.__v_raw || logicItem;
494
495
  if (Array.isArray((t as any)[parentKey])) {
495
- const index = (t as any)[parentKey].indexOf(n);
496
+ // @ts-ignore
497
+ const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
496
498
  ~index && (this as any)[parentKey].splice(index, 1);
497
499
  params.index = index;
498
500
  } else if ((t as any)[parentKey] === n) {
@@ -509,8 +511,8 @@ export class MetadataType extends BaseNode {
509
511
  //================================================================================
510
512
  /**
511
513
  * 是否可编辑
512
- *
513
- */
514
+ *
515
+ */
514
516
  get readonly() {
515
517
  return !!this.module;
516
518
  }
@@ -541,7 +543,7 @@ export class MetadataType extends BaseNode {
541
543
  label,
542
544
  };
543
545
  this.update({
544
- ...object,
546
+ ...object,
545
547
  });
546
548
  }
547
549
  /**
@@ -557,18 +559,18 @@ export class MetadataType extends BaseNode {
557
559
  }
558
560
  @withSourceMap()
559
561
  toEmbeddedTS(state?: TranslatorState): string {
560
- const {typeNamespace, typeName } = this.typeAnnotation || {};
562
+ const { typeNamespace, typeName } = this.typeAnnotation || {};
561
563
  let code = `export class ${this.tsName} extends ${typeNamespace}.${typeName} {\n`;
562
564
  code += indent((state?.tabSize || 0) + 2);
563
565
  if (this.rules.length) {
564
- code += 'function rule() {'
565
- this.rules.forEach(item => {
566
- code += item.toEmbeddedTS(shiftState(state, code));
567
- code += ';\n';
568
- })
566
+ code += 'function rule() {';
567
+ this.rules.forEach((item) => {
568
+ code += item.toEmbeddedTS(shiftState(state, code));
569
+ code += ';\n';
570
+ });
569
571
  code += '}\n';
570
572
  }
571
- code += indent((state?.tabSize || 0)) + '}\n';
573
+ code += indent(state?.tabSize || 0) + '}\n';
572
574
  return code;
573
575
  }
574
576
 
@@ -578,13 +580,12 @@ export class MetadataType extends BaseNode {
578
580
  const parentName = this.parentNode.name;
579
581
  const arr = [parentNamespace];
580
582
  if (this.parentNode.concept !== 'App' && parentName) {
581
- arr.push(parentName);
583
+ arr.push(parentName);
582
584
  }
583
585
  return `${arr.join('.')}.metadataTypes`;
584
- } else
585
- throw new Error('无法获取命名空间,请设置 parentNode!');
586
+ } else throw new Error('无法获取命名空间,请设置 parentNode!');
586
587
  }
587
-
588
+
588
589
  getTsNamespace() {
589
590
  if (this.parentNode && (this.parentNode as Namespace).getTsNamespace) {
590
591
  const parentNamespace = (this.parentNode as Namespace).getTsNamespace();
@@ -104,7 +104,7 @@ export class MsgTriggerEvent extends TriggerEvent {
104
104
 
105
105
  getParamExistingNames(excludedList: Array<Param> = []) {
106
106
  const excludedSet = new Set(excludedList);
107
- return ((this.properties as Param[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
107
+ return ((this.properties as Param[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item?.name);
108
108
  }
109
109
  getParamUniqueName(name = 'param1') {
110
110
  return utils.unique(name, this.getParamExistingNames(), undefined, false);
@@ -296,7 +296,8 @@ export class MsgTriggerEvent extends TriggerEvent {
296
296
  // @ts-ignore
297
297
  const n = param.__v_raw || param;
298
298
  if (Array.isArray((t as any)[parentKey])) {
299
- const index = (t as any)[parentKey].indexOf(n);
299
+ // @ts-ignore
300
+ const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
300
301
  ~index && (this as any)[parentKey].splice(index, 1);
301
302
  params.index = index;
302
303
  } else if ((t as any)[parentKey] === n) {
@@ -96,7 +96,7 @@ export class MsgTriggerLauncher extends TriggerLauncher {
96
96
 
97
97
  getArgumentExistingNames(excludedList: Array<Argument> = []) {
98
98
  const excludedSet = new Set(excludedList);
99
- return ((this.properties as Argument[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
99
+ return ((this.properties as Argument[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item?.name);
100
100
  }
101
101
  getArgumentUniqueName(name = 'argument1') {
102
102
  return utils.unique(name, this.getArgumentExistingNames(), undefined, false);
@@ -288,7 +288,8 @@ export class MsgTriggerLauncher extends TriggerLauncher {
288
288
  // @ts-ignore
289
289
  const n = logicItem.__v_raw || logicItem;
290
290
  if (Array.isArray((t as any)[parentKey])) {
291
- const index = (t as any)[parentKey].indexOf(n);
291
+ // @ts-ignore
292
+ const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
292
293
  ~index && (this as any)[parentKey].splice(index, 1);
293
294
  params.index = index;
294
295
  } else if ((t as any)[parentKey] === n) {
@@ -163,7 +163,7 @@ export class Namespace extends BaseNode {
163
163
 
164
164
  getNamespaceExistingNames(excludedList: Array<Namespace> = []) {
165
165
  const excludedSet = new Set(excludedList);
166
- return ((this.children as Namespace[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
166
+ return ((this.children as Namespace[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item?.name);
167
167
  }
168
168
  getNamespaceUniqueName(name = 'namespace1') {
169
169
  return utils.unique(name, this.getNamespaceExistingNames(), undefined, false);
@@ -316,7 +316,7 @@ export class Namespace extends BaseNode {
316
316
 
317
317
  getProcessExistingNames(excludedList: Array<Process> = []) {
318
318
  const excludedSet = new Set(excludedList);
319
- return ((this.processes as Process[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
319
+ return ((this.processes as Process[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item?.name);
320
320
  }
321
321
  getProcessUniqueName(name = 'Process1') {
322
322
  return utils.unique(name, this.getProcessExistingNames(), undefined, false);
@@ -469,7 +469,7 @@ export class Namespace extends BaseNode {
469
469
 
470
470
  getStructureExistingNames(excludedList: Array<Structure> = []) {
471
471
  const excludedSet = new Set(excludedList);
472
- return ((this.structures as Structure[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
472
+ return ((this.structures as Structure[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item?.name);
473
473
  }
474
474
  getStructureUniqueName(name = 'Structure1') {
475
475
  return utils.unique(name, this.getStructureExistingNames(), undefined, false);
@@ -622,7 +622,7 @@ export class Namespace extends BaseNode {
622
622
 
623
623
  getEnumExistingNames(excludedList: Array<Enum> = []) {
624
624
  const excludedSet = new Set(excludedList);
625
- return ((this.enums as Enum[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
625
+ return ((this.enums as Enum[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item?.name);
626
626
  }
627
627
  getEnumUniqueName(name = 'Enum1') {
628
628
  return utils.unique(name, this.getEnumExistingNames(), undefined, false);
@@ -775,7 +775,7 @@ export class Namespace extends BaseNode {
775
775
 
776
776
  getLogicExistingNames(excludedList: Array<Logic> = []) {
777
777
  const excludedSet = new Set(excludedList);
778
- return ((this.logics as Logic[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
778
+ return ((this.logics as Logic[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item?.name);
779
779
  }
780
780
  getLogicUniqueName(name = 'logic1') {
781
781
  return utils.unique(name, this.getLogicExistingNames(), undefined, false);
@@ -928,7 +928,7 @@ export class Namespace extends BaseNode {
928
928
 
929
929
  getFunctionExistingNames(excludedList: Array<Function> = []) {
930
930
  const excludedSet = new Set(excludedList);
931
- return ((this.functions as Function[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
931
+ return ((this.functions as Function[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item?.name);
932
932
  }
933
933
  getFunctionUniqueName(name = 'func1') {
934
934
  return utils.unique(name, this.getFunctionExistingNames(), undefined, false);
@@ -1081,7 +1081,7 @@ export class Namespace extends BaseNode {
1081
1081
 
1082
1082
  getInterfaceExistingNames(excludedList: Array<Interface> = []) {
1083
1083
  const excludedSet = new Set(excludedList);
1084
- return ((this.interfaces as Interface[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
1084
+ return ((this.interfaces as Interface[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item?.name);
1085
1085
  }
1086
1086
  getInterfaceUniqueName(name = 'Interface1') {
1087
1087
  return utils.unique(name, this.getInterfaceExistingNames(), undefined, false);
@@ -1234,7 +1234,7 @@ export class Namespace extends BaseNode {
1234
1234
 
1235
1235
  getViewExistingNames(excludedList: Array<View> = []) {
1236
1236
  const excludedSet = new Set(excludedList);
1237
- return ((this.views as View[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
1237
+ return ((this.views as View[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item?.name);
1238
1238
  }
1239
1239
  getViewUniqueName(name = 'view1') {
1240
1240
  return utils.unique(name, this.getViewExistingNames(), undefined, false);
@@ -1389,7 +1389,7 @@ export class Namespace extends BaseNode {
1389
1389
  const excludedSet = new Set(excludedList);
1390
1390
  return ((this.frontendVariables as Variable[]) || [])
1391
1391
  .filter((item) => !excludedSet.has(item))
1392
- .map((item) => item.name);
1392
+ .map((item) => item?.name);
1393
1393
  }
1394
1394
  getVariableUniqueName(name = 'variable1') {
1395
1395
  return utils.unique(name, this.getVarExistingNames(), undefined, true);
@@ -1689,7 +1689,7 @@ export class Namespace extends BaseNode {
1689
1689
  const excludedSet = new Set(excludedList);
1690
1690
  return ((this.viewComponents as ViewComponent[]) || [])
1691
1691
  .filter((item) => !excludedSet.has(item))
1692
- .map((item) => item.name);
1692
+ .map((item) => item?.name);
1693
1693
  }
1694
1694
  getViewComponentUniqueName(name = 'viewComponent1') {
1695
1695
  return utils.unique(name, this.getViewComponentExistingNames(), undefined, false);
@@ -1844,7 +1844,7 @@ export class Namespace extends BaseNode {
1844
1844
  const excludedSet = new Set(excludedList);
1845
1845
  return ((this.processComponents as ProcessComponent[]) || [])
1846
1846
  .filter((item) => !excludedSet.has(item))
1847
- .map((item) => item.name);
1847
+ .map((item) => item?.name);
1848
1848
  }
1849
1849
  getProcessComponentUniqueName(name = 'processComponent1') {
1850
1850
  return utils.unique(name, this.getProcessComponentExistingNames(), undefined, false);
@@ -2036,7 +2036,8 @@ export class Namespace extends BaseNode {
2036
2036
  // @ts-ignore
2037
2037
  const n = namespace.__v_raw || namespace;
2038
2038
  if (Array.isArray((t as any)[parentKey])) {
2039
- const index = (t as any)[parentKey].indexOf(n);
2039
+ // @ts-ignore
2040
+ const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
2040
2041
  ~index && (this as any)[parentKey].splice(index, 1);
2041
2042
  params.index = index;
2042
2043
  } else if ((t as any)[parentKey] === n) {
@@ -2088,7 +2089,8 @@ export class Namespace extends BaseNode {
2088
2089
  // @ts-ignore
2089
2090
  const n = process.__v_raw || process;
2090
2091
  if (Array.isArray((t as any)[parentKey])) {
2091
- const index = (t as any)[parentKey].indexOf(n);
2092
+ // @ts-ignore
2093
+ const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
2092
2094
  ~index && (this as any)[parentKey].splice(index, 1);
2093
2095
  params.index = index;
2094
2096
  } else if ((t as any)[parentKey] === n) {
@@ -2140,7 +2142,8 @@ export class Namespace extends BaseNode {
2140
2142
  // @ts-ignore
2141
2143
  const n = structure.__v_raw || structure;
2142
2144
  if (Array.isArray((t as any)[parentKey])) {
2143
- const index = (t as any)[parentKey].indexOf(n);
2145
+ // @ts-ignore
2146
+ const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
2144
2147
  ~index && (this as any)[parentKey].splice(index, 1);
2145
2148
  params.index = index;
2146
2149
  } else if ((t as any)[parentKey] === n) {
@@ -2192,7 +2195,8 @@ export class Namespace extends BaseNode {
2192
2195
  // @ts-ignore
2193
2196
  const n = enumeration.__v_raw || enumeration;
2194
2197
  if (Array.isArray((t as any)[parentKey])) {
2195
- const index = (t as any)[parentKey].indexOf(n);
2198
+ // @ts-ignore
2199
+ const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
2196
2200
  ~index && (this as any)[parentKey].splice(index, 1);
2197
2201
  params.index = index;
2198
2202
  } else if ((t as any)[parentKey] === n) {
@@ -2244,7 +2248,8 @@ export class Namespace extends BaseNode {
2244
2248
  // @ts-ignore
2245
2249
  const n = logic.__v_raw || logic;
2246
2250
  if (Array.isArray((t as any)[parentKey])) {
2247
- const index = (t as any)[parentKey].indexOf(n);
2251
+ // @ts-ignore
2252
+ const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
2248
2253
  ~index && (this as any)[parentKey].splice(index, 1);
2249
2254
  params.index = index;
2250
2255
  } else if ((t as any)[parentKey] === n) {
@@ -2296,7 +2301,8 @@ export class Namespace extends BaseNode {
2296
2301
  // @ts-ignore
2297
2302
  const n = func.__v_raw || func;
2298
2303
  if (Array.isArray((t as any)[parentKey])) {
2299
- const index = (t as any)[parentKey].indexOf(n);
2304
+ // @ts-ignore
2305
+ const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
2300
2306
  ~index && (this as any)[parentKey].splice(index, 1);
2301
2307
  params.index = index;
2302
2308
  } else if ((t as any)[parentKey] === n) {
@@ -2348,7 +2354,8 @@ export class Namespace extends BaseNode {
2348
2354
  // @ts-ignore
2349
2355
  const n = itface.__v_raw || itface;
2350
2356
  if (Array.isArray((t as any)[parentKey])) {
2351
- const index = (t as any)[parentKey].indexOf(n);
2357
+ // @ts-ignore
2358
+ const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
2352
2359
  ~index && (this as any)[parentKey].splice(index, 1);
2353
2360
  params.index = index;
2354
2361
  } else if ((t as any)[parentKey] === n) {
@@ -2400,7 +2407,8 @@ export class Namespace extends BaseNode {
2400
2407
  // @ts-ignore
2401
2408
  const n = view.__v_raw || view;
2402
2409
  if (Array.isArray((t as any)[parentKey])) {
2403
- const index = (t as any)[parentKey].indexOf(n);
2410
+ // @ts-ignore
2411
+ const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
2404
2412
  ~index && (this as any)[parentKey].splice(index, 1);
2405
2413
  params.index = index;
2406
2414
  } else if ((t as any)[parentKey] === n) {
@@ -2477,7 +2485,8 @@ export class Namespace extends BaseNode {
2477
2485
  // @ts-ignore
2478
2486
  const n = variable.__v_raw || variable;
2479
2487
  if (Array.isArray((t as any)[parentKey])) {
2480
- const index = (t as any)[parentKey].indexOf(n);
2488
+ // @ts-ignore
2489
+ const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
2481
2490
  ~index && (this as any)[parentKey].splice(index, 1);
2482
2491
  params.index = index;
2483
2492
  } else if ((t as any)[parentKey] === n) {
@@ -2529,7 +2538,8 @@ export class Namespace extends BaseNode {
2529
2538
  // @ts-ignore
2530
2539
  const n = viewComponent.__v_raw || viewComponent;
2531
2540
  if (Array.isArray((t as any)[parentKey])) {
2532
- const index = (t as any)[parentKey].indexOf(n);
2541
+ // @ts-ignore
2542
+ const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
2533
2543
  ~index && (this as any)[parentKey].splice(index, 1);
2534
2544
  params.index = index;
2535
2545
  } else if ((t as any)[parentKey] === n) {
@@ -2581,7 +2591,8 @@ export class Namespace extends BaseNode {
2581
2591
  // @ts-ignore
2582
2592
  const n = processComponent.__v_raw || processComponent;
2583
2593
  if (Array.isArray((t as any)[parentKey])) {
2584
- const index = (t as any)[parentKey].indexOf(n);
2594
+ // @ts-ignore
2595
+ const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
2585
2596
  ~index && (this as any)[parentKey].splice(index, 1);
2586
2597
  params.index = index;
2587
2598
  } else if ((t as any)[parentKey] === n) {