@lcap/nasl 0.3.14-beta.0 → 1.0.0-alpha

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 (2078) hide show
  1. package/DEVELOPMENT.md +39 -55
  2. package/README.md +78 -5
  3. package/bak/basicTypes.ts +76 -0
  4. package/bak/dataTypeUtils.ts +429 -0
  5. package/bak/dataTypes.ts +51 -0
  6. package/bak/entityUtils.ts +660 -0
  7. package/bak/genericTypes.ts +131 -0
  8. package/bak/systemTypes.ts +1590 -0
  9. package/bak/tools.js +174 -0
  10. package/bak/translator.js +129 -0
  11. package/bak/translator_backup.js +601 -0
  12. package/bin/naslc +3 -0
  13. package/docs/.nojekyll +1 -0
  14. package/docs/assets/custom.css +3 -0
  15. package/docs/assets/highlight.css +78 -0
  16. package/docs/assets/icons.css +1043 -0
  17. package/docs/assets/icons.png +0 -0
  18. package/docs/assets/icons@2x.png +0 -0
  19. package/docs/assets/main.js +52 -0
  20. package/docs/assets/search.js +1 -0
  21. package/docs/assets/style.css +1414 -0
  22. package/docs/assets/widgets.png +0 -0
  23. package/docs/assets/widgets@2x.png +0 -0
  24. package/docs/classes/App.html +509 -0
  25. package/docs/classes/Argument.html +191 -0
  26. package/docs/classes/Assignment.html +195 -0
  27. package/docs/classes/Attribute.html +169 -0
  28. package/docs/classes/BaseNode.html +128 -0
  29. package/docs/classes/BinaryExpression.html +199 -0
  30. package/docs/classes/BindAttribute.html +209 -0
  31. package/docs/classes/BindDirective.html +161 -0
  32. package/docs/classes/BindEvent.html +173 -0
  33. package/docs/classes/BooleanLiteral.html +177 -0
  34. package/docs/classes/CallFunction.html +201 -0
  35. package/docs/classes/CallInterface.html +201 -0
  36. package/docs/classes/CallLogic.html +207 -0
  37. package/docs/classes/CallQueryComponent.html +301 -0
  38. package/docs/classes/Comment.html +175 -0
  39. package/docs/classes/CompletionProperty.html +165 -0
  40. package/docs/classes/Constant.html +161 -0
  41. package/docs/classes/DataElement.html +143 -0
  42. package/docs/classes/Destination.html +205 -0
  43. package/docs/classes/End.html +173 -0
  44. package/docs/classes/Entity.html +205 -0
  45. package/docs/classes/EntityIndex.html +153 -0
  46. package/docs/classes/EntityProperty.html +211 -0
  47. package/docs/classes/Enum.html +171 -0
  48. package/docs/classes/EnumItem.html +143 -0
  49. package/docs/classes/Event.html +173 -0
  50. package/docs/classes/ForEachStatement.html +253 -0
  51. package/docs/classes/Function.html +259 -0
  52. package/docs/classes/Identifier.html +181 -0
  53. package/docs/classes/IfStatement.html +229 -0
  54. package/docs/classes/Interface.html +211 -0
  55. package/docs/classes/InterfaceParam.html +171 -0
  56. package/docs/classes/JSBlock.html +179 -0
  57. package/docs/classes/Logic.html +327 -0
  58. package/docs/classes/LogicItem.html +175 -0
  59. package/docs/classes/MemberExpression.html +196 -0
  60. package/docs/classes/Module.html +386 -0
  61. package/docs/classes/Namespace.html +497 -0
  62. package/docs/classes/NullLiteral.html +175 -0
  63. package/docs/classes/NumericLiteral.html +187 -0
  64. package/docs/classes/Param.html +173 -0
  65. package/docs/classes/Point.html +131 -0
  66. package/docs/classes/Process.html +261 -0
  67. package/docs/classes/ProcessComponent.html +199 -0
  68. package/docs/classes/ProcessElement.html +333 -0
  69. package/docs/classes/ProcessOutcome.html +179 -0
  70. package/docs/classes/QueryAggregateExpression.html +185 -0
  71. package/docs/classes/QueryFieldExpression.html +185 -0
  72. package/docs/classes/QueryFromExpression.html +205 -0
  73. package/docs/classes/QueryGroupByExpression.html +187 -0
  74. package/docs/classes/QueryJoinExpression.html +237 -0
  75. package/docs/classes/QueryLimitExpression.html +199 -0
  76. package/docs/classes/QueryOrderByExpression.html +197 -0
  77. package/docs/classes/QuerySelectExpression.html +213 -0
  78. package/docs/classes/Rect.html +135 -0
  79. package/docs/classes/Return.html +169 -0
  80. package/docs/classes/Role.html +139 -0
  81. package/docs/classes/Slot.html +143 -0
  82. package/docs/classes/SqlQueryComponent.html +191 -0
  83. package/docs/classes/Start.html +173 -0
  84. package/docs/classes/StringLiteral.html +177 -0
  85. package/docs/classes/Structure.html +203 -0
  86. package/docs/classes/StructureProperty.html +171 -0
  87. package/docs/classes/SwitchCase.html +207 -0
  88. package/docs/classes/SwitchStatement.html +193 -0
  89. package/docs/classes/Theme.html +133 -0
  90. package/docs/classes/Transactional.html +151 -0
  91. package/docs/classes/TypeAnnotation.html +163 -0
  92. package/docs/classes/TypeParam.html +129 -0
  93. package/docs/classes/UnaryExpression.html +187 -0
  94. package/docs/classes/Unparsed.html +177 -0
  95. package/docs/classes/UseComponent.html +131 -0
  96. package/docs/classes/ValidationRule.html +201 -0
  97. package/docs/classes/Variable.html +167 -0
  98. package/docs/classes/View.html +366 -0
  99. package/docs/classes/ViewComponent.html +289 -0
  100. package/docs/classes/ViewElement.html +296 -0
  101. package/docs/classes/WhileStatement.html +207 -0
  102. package/docs/index.html +69 -313
  103. package/docs/modules.html +31 -377
  104. package/docs-theme/LICENSE +21 -0
  105. package/docs-theme/README.md +9 -0
  106. package/docs-theme/package.json +81 -0
  107. package/docs-theme/src/assets/common.js +2 -0
  108. package/docs-theme/src/assets/common.js.LICENSE.txt +61 -0
  109. package/docs-theme/src/assets/css/main.css +1 -0
  110. package/docs-theme/src/assets/images/icons.png +0 -0
  111. package/docs-theme/src/assets/images/icons@2x.png +0 -0
  112. package/docs-theme/src/config.json +25 -0
  113. package/docs-theme/src/index.js +45 -0
  114. package/docs-theme/src/layouts/default.js +88 -0
  115. package/docs-theme/src/partials/analytics.js +22 -0
  116. package/docs-theme/src/partials/breadcrumb.js +9 -0
  117. package/docs-theme/src/partials/footer.js +96 -0
  118. package/docs-theme/src/partials/header.js +25 -0
  119. package/docs-theme/src/partials/infrafoot.js +113 -0
  120. package/docs-theme/src/partials/infranav.js +187 -0
  121. package/docs-theme/src/partials/navigation.js +39 -0
  122. package/docs-theme/src/templates/index.js +7 -0
  123. package/docs-theme/src/templates/reflection.js +41 -0
  124. package/docs-theme/src/utils/lib.js +109 -0
  125. package/out/bak/translator.d.ts +1 -0
  126. package/out/bak/translator.js +117 -0
  127. package/out/bak/translator.js.map +1 -0
  128. package/out/baseService/index.d.ts +2 -0
  129. package/out/baseService/index.js +12 -0
  130. package/out/baseService/index.js.map +1 -0
  131. package/out/baseTypes/App__.d.ts +169 -0
  132. package/out/baseTypes/App__.js +344 -0
  133. package/out/baseTypes/App__.js.map +1 -0
  134. package/out/baseTypes/AssignmentExpression__.d.ts +42 -0
  135. package/out/baseTypes/AssignmentExpression__.js +112 -0
  136. package/out/baseTypes/AssignmentExpression__.js.map +1 -0
  137. package/out/baseTypes/Attr__.d.ts +96 -0
  138. package/out/baseTypes/Attr__.js +191 -0
  139. package/out/baseTypes/Attr__.js.map +1 -0
  140. package/out/baseTypes/BinaryExpression__.d.ts +40 -0
  141. package/out/baseTypes/BinaryExpression__.js +92 -0
  142. package/out/baseTypes/BinaryExpression__.js.map +1 -0
  143. package/out/baseTypes/BooleanLiteral__.d.ts +25 -0
  144. package/out/baseTypes/BooleanLiteral__.js +64 -0
  145. package/out/baseTypes/BooleanLiteral__.js.map +1 -0
  146. package/out/baseTypes/Comment__.d.ts +27 -0
  147. package/out/baseTypes/Comment__.js +60 -0
  148. package/out/baseTypes/Comment__.js.map +1 -0
  149. package/out/baseTypes/Directive__.d.ts +100 -0
  150. package/out/baseTypes/Directive__.js +198 -0
  151. package/out/baseTypes/Directive__.js.map +1 -0
  152. package/out/baseTypes/Element__.d.ts +303 -0
  153. package/out/baseTypes/Element__.js +555 -0
  154. package/out/baseTypes/Element__.js.map +1 -0
  155. package/out/baseTypes/End__.d.ts +24 -0
  156. package/out/baseTypes/End__.js +61 -0
  157. package/out/baseTypes/End__.js.map +1 -0
  158. package/out/baseTypes/EntityProperty__.d.ts +116 -0
  159. package/out/baseTypes/EntityProperty__.js +230 -0
  160. package/out/baseTypes/EntityProperty__.js.map +1 -0
  161. package/out/baseTypes/Entity__.d.ts +106 -0
  162. package/out/baseTypes/Entity__.js +222 -0
  163. package/out/baseTypes/Entity__.js.map +1 -0
  164. package/out/baseTypes/EnumItem__.d.ts +56 -0
  165. package/out/baseTypes/EnumItem__.js +125 -0
  166. package/out/baseTypes/EnumItem__.js.map +1 -0
  167. package/out/baseTypes/Enum__.d.ts +98 -0
  168. package/out/baseTypes/Enum__.js +211 -0
  169. package/out/baseTypes/Enum__.js.map +1 -0
  170. package/out/baseTypes/Event__.d.ts +93 -0
  171. package/out/baseTypes/Event__.js +181 -0
  172. package/out/baseTypes/Event__.js.map +1 -0
  173. package/out/baseTypes/ForEachStatement__.d.ts +89 -0
  174. package/out/baseTypes/ForEachStatement__.js +169 -0
  175. package/out/baseTypes/ForEachStatement__.js.map +1 -0
  176. package/out/baseTypes/Identifier__.d.ts +24 -0
  177. package/out/baseTypes/Identifier__.js +60 -0
  178. package/out/baseTypes/Identifier__.js.map +1 -0
  179. package/out/baseTypes/IfStatement__.d.ts +60 -0
  180. package/out/baseTypes/IfStatement__.js +109 -0
  181. package/out/baseTypes/IfStatement__.js.map +1 -0
  182. package/out/baseTypes/Lifecycle__.d.ts +89 -0
  183. package/out/baseTypes/Lifecycle__.js +175 -0
  184. package/out/baseTypes/Lifecycle__.js.map +1 -0
  185. package/out/baseTypes/LogicItem__.d.ts +103 -0
  186. package/out/baseTypes/LogicItem__.js +211 -0
  187. package/out/baseTypes/LogicItem__.js.map +1 -0
  188. package/out/baseTypes/Logic__.d.ts +280 -0
  189. package/out/baseTypes/Logic__.js +598 -0
  190. package/out/baseTypes/Logic__.js.map +1 -0
  191. package/out/baseTypes/Module__.d.ts +278 -0
  192. package/out/baseTypes/Module__.js +511 -0
  193. package/out/baseTypes/Module__.js.map +1 -0
  194. package/out/baseTypes/NullLiteral__.d.ts +20 -0
  195. package/out/baseTypes/NullLiteral__.js +53 -0
  196. package/out/baseTypes/NullLiteral__.js.map +1 -0
  197. package/out/baseTypes/Page__.d.ts +85 -0
  198. package/out/baseTypes/Page__.js +166 -0
  199. package/out/baseTypes/Page__.js.map +1 -0
  200. package/out/baseTypes/Param__.d.ts +88 -0
  201. package/out/baseTypes/Param__.js +194 -0
  202. package/out/baseTypes/Param__.js.map +1 -0
  203. package/out/baseTypes/ProcessComponent__.d.ts +67 -0
  204. package/out/baseTypes/ProcessComponent__.js +142 -0
  205. package/out/baseTypes/ProcessComponent__.js.map +1 -0
  206. package/out/baseTypes/Process__.d.ts +134 -0
  207. package/out/baseTypes/Process__.js +255 -0
  208. package/out/baseTypes/Process__.js.map +1 -0
  209. package/out/baseTypes/Return__.d.ts +88 -0
  210. package/out/baseTypes/Return__.js +194 -0
  211. package/out/baseTypes/Return__.js.map +1 -0
  212. package/out/baseTypes/Start__.d.ts +24 -0
  213. package/out/baseTypes/Start__.js +60 -0
  214. package/out/baseTypes/Start__.js.map +1 -0
  215. package/out/baseTypes/StringLiteral__.d.ts +25 -0
  216. package/out/baseTypes/StringLiteral__.js +73 -0
  217. package/out/baseTypes/StringLiteral__.js.map +1 -0
  218. package/out/baseTypes/StructureProperty__.d.ts +107 -0
  219. package/out/baseTypes/StructureProperty__.js +206 -0
  220. package/out/baseTypes/StructureProperty__.js.map +1 -0
  221. package/out/baseTypes/Structure__.d.ts +129 -0
  222. package/out/baseTypes/Structure__.js +296 -0
  223. package/out/baseTypes/Structure__.js.map +1 -0
  224. package/out/baseTypes/SwitchCase__.d.ts +56 -0
  225. package/out/baseTypes/SwitchCase__.js +105 -0
  226. package/out/baseTypes/SwitchCase__.js.map +1 -0
  227. package/out/baseTypes/SwitchStatement__.d.ts +49 -0
  228. package/out/baseTypes/SwitchStatement__.js +90 -0
  229. package/out/baseTypes/SwitchStatement__.js.map +1 -0
  230. package/out/baseTypes/TypeAnnotation__.d.ts +62 -0
  231. package/out/baseTypes/TypeAnnotation__.js +156 -0
  232. package/out/baseTypes/TypeAnnotation__.js.map +1 -0
  233. package/out/baseTypes/UnaryExpression__.d.ts +32 -0
  234. package/out/baseTypes/UnaryExpression__.js +76 -0
  235. package/out/baseTypes/UnaryExpression__.js.map +1 -0
  236. package/out/baseTypes/Variable__.d.ts +88 -0
  237. package/out/baseTypes/Variable__.js +194 -0
  238. package/out/baseTypes/Variable__.js.map +1 -0
  239. package/out/baseTypes/View__.d.ts +359 -0
  240. package/out/baseTypes/View__.js +644 -0
  241. package/out/baseTypes/View__.js.map +1 -0
  242. package/out/baseTypes/WhileStatement__.d.ts +56 -0
  243. package/out/baseTypes/WhileStatement__.js +105 -0
  244. package/out/baseTypes/WhileStatement__.js.map +1 -0
  245. package/out/baseTypes/basics/types/index.d.ts +8 -0
  246. package/out/baseTypes/basics/types/index.js +14 -0
  247. package/out/baseTypes/basics/types/index.js.map +1 -0
  248. package/out/baseTypes/basics/types/primitiveTypes.d.ts +2 -0
  249. package/out/baseTypes/basics/types/primitiveTypes.js +17 -0
  250. package/out/baseTypes/basics/types/primitiveTypes.js.map +1 -0
  251. package/out/baseTypes/basics/types/systemTypes.d.ts +2 -0
  252. package/out/baseTypes/basics/types/systemTypes.js +30 -0
  253. package/out/baseTypes/basics/types/systemTypes.js.map +1 -0
  254. package/out/baseTypes/index.d.ts +6 -0
  255. package/out/baseTypes/index.js +21 -0
  256. package/out/baseTypes/index.js.map +1 -0
  257. package/out/baseTypes/index__.d.ts +38 -0
  258. package/out/baseTypes/index__.js +51 -0
  259. package/out/baseTypes/index__.js.map +1 -0
  260. package/out/generator/debugInFileStorage.d.ts +3 -0
  261. package/out/generator/debugInFileStorage.js +15 -0
  262. package/out/generator/debugInFileStorage.js.map +1 -0
  263. package/out/generator/genAllEmbeddedTS.d.ts +7 -0
  264. package/out/generator/genAllEmbeddedTS.js +20 -0
  265. package/out/generator/genAllEmbeddedTS.js.map +1 -0
  266. package/out/generator/index.d.ts +2 -0
  267. package/out/generator/index.js +15 -0
  268. package/out/generator/index.js.map +1 -0
  269. package/out/index.d.ts +3 -0
  270. package/out/index.js +16 -0
  271. package/out/index.js.map +1 -0
  272. package/out/manager/diagnostic.d.ts +30 -0
  273. package/out/manager/diagnostic.js +82 -0
  274. package/out/manager/diagnostic.js.map +1 -0
  275. package/{analysis/mergeBlock/raw1.json → out/manager/history.d.ts} +0 -0
  276. package/out/manager/history.js +1 -0
  277. package/out/manager/history.js.map +1 -0
  278. package/out/manager/problem.d.ts +0 -0
  279. package/out/manager/problem.js +1 -0
  280. package/out/manager/problem.js.map +1 -0
  281. package/out/service/app/api.d.ts +1 -15
  282. package/out/service/app/api.js +1 -11
  283. package/out/service/app/api.js.map +1 -1
  284. package/out/service/create/index.js +2 -2
  285. package/out/service/create/index.js.map +1 -1
  286. package/out/service/debugger/debugger.d.ts +3 -0
  287. package/out/service/debugger/debugger.js +95 -0
  288. package/out/service/debugger/debugger.js.map +1 -0
  289. package/out/service/logic/index.d.ts +0 -3
  290. package/out/service/logic/index.js +1 -4
  291. package/out/service/logic/index.js.map +1 -1
  292. package/out/service/logic/logic.d.ts +0 -9
  293. package/out/service/logic/logic.js +0 -7
  294. package/out/service/logic/logic.js.map +1 -1
  295. package/out/service/page/api.d.ts +1 -1
  296. package/out/service/page/api.js +0 -15
  297. package/out/service/page/api.js.map +1 -1
  298. package/out/service/page/view.d.ts +1 -1
  299. package/out/service/page/view.js +0 -15
  300. package/out/service/page/view.js.map +1 -1
  301. package/out/src/bak/basicTypes.d.ts +25 -0
  302. package/out/src/bak/basicTypes.js +77 -0
  303. package/out/src/bak/basicTypes.js.map +1 -0
  304. package/out/src/bak/dataTypeUtils.d.ts +94 -0
  305. package/out/src/bak/dataTypeUtils.js +449 -0
  306. package/out/src/bak/dataTypeUtils.js.map +1 -0
  307. package/out/src/bak/dataTypes.d.ts +20 -0
  308. package/out/src/bak/dataTypes.js +47 -0
  309. package/out/src/bak/dataTypes.js.map +1 -0
  310. package/out/src/bak/entityUtils.d.ts +164 -0
  311. package/out/src/bak/entityUtils.js +621 -0
  312. package/out/src/bak/entityUtils.js.map +1 -0
  313. package/out/src/bak/genericTypes.d.ts +40 -0
  314. package/out/src/bak/genericTypes.js +134 -0
  315. package/out/src/bak/genericTypes.js.map +1 -0
  316. package/out/src/bak/systemTypes.d.ts +9 -0
  317. package/out/src/bak/systemTypes.js +1563 -0
  318. package/out/src/bak/systemTypes.js.map +1 -0
  319. package/out/src/baseService/index.d.ts +2 -0
  320. package/out/src/baseService/index.js +10 -0
  321. package/out/src/baseService/index.js.map +1 -0
  322. package/out/src/baseTypes/App__.d.ts +181 -0
  323. package/out/src/baseTypes/App__.js +381 -0
  324. package/out/src/baseTypes/App__.js.map +1 -0
  325. package/out/src/baseTypes/Argument__.d.ts +40 -0
  326. package/out/src/baseTypes/Argument__.js +147 -0
  327. package/out/src/baseTypes/Argument__.js.map +1 -0
  328. package/out/src/baseTypes/AssignmentExpression__.d.ts +45 -0
  329. package/out/src/baseTypes/AssignmentExpression__.js +172 -0
  330. package/out/src/baseTypes/AssignmentExpression__.js.map +1 -0
  331. package/out/src/baseTypes/Attr__.d.ts +79 -0
  332. package/out/src/baseTypes/Attr__.js +210 -0
  333. package/out/src/baseTypes/Attr__.js.map +1 -0
  334. package/out/src/baseTypes/BinaryExpression__.d.ts +43 -0
  335. package/out/src/baseTypes/BinaryExpression__.js +152 -0
  336. package/out/src/baseTypes/BinaryExpression__.js.map +1 -0
  337. package/out/src/baseTypes/BooleanLiteral__.d.ts +28 -0
  338. package/out/src/baseTypes/BooleanLiteral__.js +118 -0
  339. package/out/src/baseTypes/BooleanLiteral__.js.map +1 -0
  340. package/out/src/baseTypes/CallLogic__.d.ts +45 -0
  341. package/out/src/baseTypes/CallLogic__.js +162 -0
  342. package/out/src/baseTypes/CallLogic__.js.map +1 -0
  343. package/out/src/baseTypes/CallQueryComponent__.d.ts +83 -0
  344. package/out/src/baseTypes/CallQueryComponent__.js +235 -0
  345. package/out/src/baseTypes/CallQueryComponent__.js.map +1 -0
  346. package/out/src/baseTypes/Comment__.d.ts +30 -0
  347. package/out/src/baseTypes/Comment__.js +114 -0
  348. package/out/src/baseTypes/Comment__.js.map +1 -0
  349. package/out/src/baseTypes/Directive__.d.ts +83 -0
  350. package/out/src/baseTypes/Directive__.js +218 -0
  351. package/out/src/baseTypes/Directive__.js.map +1 -0
  352. package/out/src/baseTypes/Element__.d.ts +389 -0
  353. package/out/src/baseTypes/Element__.js +589 -0
  354. package/out/src/baseTypes/Element__.js.map +1 -0
  355. package/out/src/baseTypes/End__.d.ts +27 -0
  356. package/out/src/baseTypes/End__.js +115 -0
  357. package/out/src/baseTypes/End__.js.map +1 -0
  358. package/out/src/baseTypes/EntityProperty__.d.ts +99 -0
  359. package/out/src/baseTypes/EntityProperty__.js +254 -0
  360. package/out/src/baseTypes/EntityProperty__.js.map +1 -0
  361. package/out/src/baseTypes/Entity__.d.ts +121 -0
  362. package/out/src/baseTypes/Entity__.js +250 -0
  363. package/out/src/baseTypes/Entity__.js.map +1 -0
  364. package/out/src/baseTypes/EnumItem__.d.ts +131 -0
  365. package/out/src/baseTypes/EnumItem__.js +271 -0
  366. package/out/src/baseTypes/EnumItem__.js.map +1 -0
  367. package/out/src/baseTypes/Enum__.d.ts +114 -0
  368. package/out/src/baseTypes/Enum__.js +226 -0
  369. package/out/src/baseTypes/Enum__.js.map +1 -0
  370. package/out/src/baseTypes/Event__.d.ts +76 -0
  371. package/out/src/baseTypes/Event__.js +205 -0
  372. package/out/src/baseTypes/Event__.js.map +1 -0
  373. package/out/src/baseTypes/ForEachStatement__.d.ts +116 -0
  374. package/out/src/baseTypes/ForEachStatement__.js +242 -0
  375. package/out/src/baseTypes/ForEachStatement__.js.map +1 -0
  376. package/out/src/baseTypes/Identifier__.d.ts +29 -0
  377. package/out/src/baseTypes/Identifier__.js +121 -0
  378. package/out/src/baseTypes/Identifier__.js.map +1 -0
  379. package/out/src/baseTypes/IfStatement__.d.ts +87 -0
  380. package/out/src/baseTypes/IfStatement__.js +175 -0
  381. package/out/src/baseTypes/IfStatement__.js.map +1 -0
  382. package/out/src/baseTypes/Lifecycle__.d.ts +71 -0
  383. package/out/src/baseTypes/Lifecycle__.js +196 -0
  384. package/out/src/baseTypes/Lifecycle__.js.map +1 -0
  385. package/out/src/baseTypes/LogicItem__.d.ts +100 -0
  386. package/out/src/baseTypes/LogicItem__.js +265 -0
  387. package/out/src/baseTypes/LogicItem__.js.map +1 -0
  388. package/out/src/baseTypes/Logic__.d.ts +382 -0
  389. package/out/src/baseTypes/Logic__.js +622 -0
  390. package/out/src/baseTypes/Logic__.js.map +1 -0
  391. package/out/src/baseTypes/Module__.d.ts +521 -0
  392. package/out/src/baseTypes/Module__.js +728 -0
  393. package/out/src/baseTypes/Module__.js.map +1 -0
  394. package/out/src/baseTypes/NullLiteral__.d.ts +23 -0
  395. package/out/src/baseTypes/NullLiteral__.js +106 -0
  396. package/out/src/baseTypes/NullLiteral__.js.map +1 -0
  397. package/out/src/baseTypes/Page__.d.ts +65 -0
  398. package/out/src/baseTypes/Page__.js +186 -0
  399. package/out/src/baseTypes/Page__.js.map +1 -0
  400. package/out/src/baseTypes/Param__.d.ts +107 -0
  401. package/out/src/baseTypes/Param__.js +278 -0
  402. package/out/src/baseTypes/Param__.js.map +1 -0
  403. package/out/src/baseTypes/ProcessComponent__.d.ts +50 -0
  404. package/out/src/baseTypes/ProcessComponent__.js +153 -0
  405. package/out/src/baseTypes/ProcessComponent__.js.map +1 -0
  406. package/out/src/baseTypes/Process__.d.ts +285 -0
  407. package/out/src/baseTypes/Process__.js +450 -0
  408. package/out/src/baseTypes/Process__.js.map +1 -0
  409. package/out/src/baseTypes/QuerSelectExpression__.d.ts +39 -0
  410. package/out/src/baseTypes/QuerSelectExpression__.js +133 -0
  411. package/out/src/baseTypes/QuerSelectExpression__.js.map +1 -0
  412. package/out/src/baseTypes/QueryAggregateExpression__.d.ts +35 -0
  413. package/out/src/baseTypes/QueryAggregateExpression__.js +126 -0
  414. package/out/src/baseTypes/QueryAggregateExpression__.js.map +1 -0
  415. package/out/src/baseTypes/QueryFieldExpression__.d.ts +38 -0
  416. package/out/src/baseTypes/QueryFieldExpression__.js +131 -0
  417. package/out/src/baseTypes/QueryFieldExpression__.js.map +1 -0
  418. package/out/src/baseTypes/QueryFromExpression__.d.ts +40 -0
  419. package/out/src/baseTypes/QueryFromExpression__.js +136 -0
  420. package/out/src/baseTypes/QueryFromExpression__.js.map +1 -0
  421. package/out/src/baseTypes/QueryGroupByExpression__.d.ts +30 -0
  422. package/out/src/baseTypes/QueryGroupByExpression__.js +118 -0
  423. package/out/src/baseTypes/QueryGroupByExpression__.js.map +1 -0
  424. package/out/src/baseTypes/QueryJoinExpression__.d.ts +48 -0
  425. package/out/src/baseTypes/QueryJoinExpression__.js +155 -0
  426. package/out/src/baseTypes/QueryJoinExpression__.js.map +1 -0
  427. package/out/src/baseTypes/QueryLimitExpression__.d.ts +38 -0
  428. package/out/src/baseTypes/QueryLimitExpression__.js +137 -0
  429. package/out/src/baseTypes/QueryLimitExpression__.js.map +1 -0
  430. package/out/src/baseTypes/QueryOrderByExpression__.d.ts +38 -0
  431. package/out/src/baseTypes/QueryOrderByExpression__.js +137 -0
  432. package/out/src/baseTypes/QueryOrderByExpression__.js.map +1 -0
  433. package/out/src/baseTypes/Return__.d.ts +107 -0
  434. package/out/src/baseTypes/Return__.js +274 -0
  435. package/out/src/baseTypes/Return__.js.map +1 -0
  436. package/out/src/baseTypes/Start__.d.ts +27 -0
  437. package/out/src/baseTypes/Start__.js +114 -0
  438. package/out/src/baseTypes/Start__.js.map +1 -0
  439. package/out/src/baseTypes/StringLiteral__.d.ts +28 -0
  440. package/out/src/baseTypes/StringLiteral__.js +127 -0
  441. package/out/src/baseTypes/StringLiteral__.js.map +1 -0
  442. package/out/src/baseTypes/StructureProperty__.d.ts +97 -0
  443. package/out/src/baseTypes/StructureProperty__.js +253 -0
  444. package/out/src/baseTypes/StructureProperty__.js.map +1 -0
  445. package/out/src/baseTypes/Structure__.d.ts +153 -0
  446. package/out/src/baseTypes/Structure__.js +329 -0
  447. package/out/src/baseTypes/Structure__.js.map +1 -0
  448. package/out/src/baseTypes/SwitchCase__.d.ts +83 -0
  449. package/out/src/baseTypes/SwitchCase__.js +165 -0
  450. package/out/src/baseTypes/SwitchCase__.js.map +1 -0
  451. package/out/src/baseTypes/SwitchStatement__.d.ts +76 -0
  452. package/out/src/baseTypes/SwitchStatement__.js +147 -0
  453. package/out/src/baseTypes/SwitchStatement__.js.map +1 -0
  454. package/out/src/baseTypes/TypeAnnotation__.d.ts +60 -0
  455. package/out/src/baseTypes/TypeAnnotation__.js +201 -0
  456. package/out/src/baseTypes/TypeAnnotation__.js.map +1 -0
  457. package/out/src/baseTypes/UnaryExpression__.d.ts +35 -0
  458. package/out/src/baseTypes/UnaryExpression__.js +133 -0
  459. package/out/src/baseTypes/UnaryExpression__.js.map +1 -0
  460. package/out/src/baseTypes/Variable__.d.ts +107 -0
  461. package/out/src/baseTypes/Variable__.js +278 -0
  462. package/out/src/baseTypes/Variable__.js.map +1 -0
  463. package/out/src/baseTypes/View__.d.ts +472 -0
  464. package/out/src/baseTypes/View__.js +692 -0
  465. package/out/src/baseTypes/View__.js.map +1 -0
  466. package/out/src/baseTypes/WhileStatement__.d.ts +83 -0
  467. package/out/src/baseTypes/WhileStatement__.js +165 -0
  468. package/out/src/baseTypes/WhileStatement__.js.map +1 -0
  469. package/out/src/baseTypes/basics/types/collectionTypeList.d.ts +2 -0
  470. package/out/src/baseTypes/basics/types/collectionTypeList.js +30 -0
  471. package/out/src/baseTypes/basics/types/collectionTypeList.js.map +1 -0
  472. package/out/src/baseTypes/basics/types/coreTypes.d.ts +2 -0
  473. package/out/src/baseTypes/basics/types/coreTypes.js +17 -0
  474. package/out/src/baseTypes/basics/types/coreTypes.js.map +1 -0
  475. package/out/src/baseTypes/basics/types/index.d.ts +8 -0
  476. package/out/src/baseTypes/basics/types/index.js +14 -0
  477. package/out/src/baseTypes/basics/types/index.js.map +1 -0
  478. package/out/src/baseTypes/basics/types/stdlibModule.d.ts +7 -0
  479. package/out/src/baseTypes/basics/types/stdlibModule.js +48 -0
  480. package/out/src/baseTypes/basics/types/stdlibModule.js.map +1 -0
  481. package/out/src/baseTypes/index.d.ts +6 -0
  482. package/out/src/baseTypes/index.js +21 -0
  483. package/out/src/baseTypes/index.js.map +1 -0
  484. package/out/src/baseTypes/index__.d.ts +49 -0
  485. package/out/src/baseTypes/index__.js +62 -0
  486. package/out/src/baseTypes/index__.js.map +1 -0
  487. package/out/src/common/BaseNode.d.ts +231 -0
  488. package/out/src/common/BaseNode.js +683 -0
  489. package/out/src/common/BaseNode.js.map +1 -0
  490. package/out/src/common/Command.d.ts +8 -0
  491. package/out/src/common/Command.js +32 -0
  492. package/out/src/common/Command.js.map +1 -0
  493. package/out/src/common/ComponentAPI.d.ts +110 -0
  494. package/out/src/common/ComponentAPI.js +3 -0
  495. package/out/src/common/ComponentAPI.js.map +1 -0
  496. package/out/src/common/EventEmitter.d.ts +54 -0
  497. package/out/src/common/EventEmitter.js +68 -0
  498. package/out/src/common/EventEmitter.js.map +1 -0
  499. package/out/src/common/Messager.d.ts +86 -0
  500. package/out/src/common/Messager.js +187 -0
  501. package/out/src/common/Messager.js.map +1 -0
  502. package/out/src/common/classMap.d.ts +4 -0
  503. package/out/src/common/classMap.js +5 -0
  504. package/out/src/common/classMap.js.map +1 -0
  505. package/out/src/common/index.d.ts +4 -0
  506. package/out/src/common/index.js +21 -0
  507. package/out/src/common/index.js.map +1 -0
  508. package/out/src/concepts/App__.d.ts +1077 -0
  509. package/out/src/concepts/App__.js +1453 -0
  510. package/out/src/concepts/App__.js.map +1 -0
  511. package/out/src/concepts/Argument__.d.ts +56 -0
  512. package/out/src/concepts/Argument__.js +177 -0
  513. package/out/src/concepts/Argument__.js.map +1 -0
  514. package/out/src/concepts/Assignment__.d.ts +72 -0
  515. package/out/src/concepts/Assignment__.js +200 -0
  516. package/out/src/concepts/Assignment__.js.map +1 -0
  517. package/out/src/concepts/Attribute__.d.ts +101 -0
  518. package/out/src/concepts/Attribute__.js +221 -0
  519. package/out/src/concepts/Attribute__.js.map +1 -0
  520. package/out/src/concepts/BinaryExpression__.d.ts +66 -0
  521. package/out/src/concepts/BinaryExpression__.js +237 -0
  522. package/out/src/concepts/BinaryExpression__.js.map +1 -0
  523. package/out/src/concepts/BindAttribute__.d.ts +211 -0
  524. package/out/src/concepts/BindAttribute__.js +395 -0
  525. package/out/src/concepts/BindAttribute__.js.map +1 -0
  526. package/out/src/concepts/BindDirective__.d.ts +92 -0
  527. package/out/src/concepts/BindDirective__.js +221 -0
  528. package/out/src/concepts/BindDirective__.js.map +1 -0
  529. package/out/src/concepts/BindEvent__.d.ts +133 -0
  530. package/out/src/concepts/BindEvent__.js +258 -0
  531. package/out/src/concepts/BindEvent__.js.map +1 -0
  532. package/out/src/concepts/BooleanLiteral__.d.ts +27 -0
  533. package/out/src/concepts/BooleanLiteral__.js +74 -0
  534. package/out/src/concepts/BooleanLiteral__.js.map +1 -0
  535. package/out/src/concepts/CallFunction__.d.ts +100 -0
  536. package/out/src/concepts/CallFunction__.js +231 -0
  537. package/out/src/concepts/CallFunction__.js.map +1 -0
  538. package/out/src/concepts/CallInterface__.d.ts +100 -0
  539. package/out/src/concepts/CallInterface__.js +220 -0
  540. package/out/src/concepts/CallInterface__.js.map +1 -0
  541. package/out/src/concepts/CallLogic__.d.ts +116 -0
  542. package/out/src/concepts/CallLogic__.js +305 -0
  543. package/out/src/concepts/CallLogic__.js.map +1 -0
  544. package/out/src/concepts/CallQueryComponent__.d.ts +312 -0
  545. package/out/src/concepts/CallQueryComponent__.js +738 -0
  546. package/out/src/concepts/CallQueryComponent__.js.map +1 -0
  547. package/out/src/concepts/Comment__.d.ts +35 -0
  548. package/out/src/concepts/Comment__.js +99 -0
  549. package/out/src/concepts/Comment__.js.map +1 -0
  550. package/out/src/concepts/CompletionProperty__.d.ts +95 -0
  551. package/out/src/concepts/CompletionProperty__.js +231 -0
  552. package/out/src/concepts/CompletionProperty__.js.map +1 -0
  553. package/out/src/concepts/Constant__.d.ts +96 -0
  554. package/out/src/concepts/Constant__.js +220 -0
  555. package/out/src/concepts/Constant__.js.map +1 -0
  556. package/out/src/concepts/DataElement__.d.ts +45 -0
  557. package/out/src/concepts/DataElement__.js +114 -0
  558. package/out/src/concepts/DataElement__.js.map +1 -0
  559. package/out/src/concepts/Destination__.d.ts +106 -0
  560. package/out/src/concepts/Destination__.js +263 -0
  561. package/out/src/concepts/Destination__.js.map +1 -0
  562. package/out/src/concepts/End__.d.ts +28 -0
  563. package/out/src/concepts/End__.js +102 -0
  564. package/out/src/concepts/End__.js.map +1 -0
  565. package/out/src/concepts/EntityIndex__.d.ts +81 -0
  566. package/out/src/concepts/EntityIndex__.js +189 -0
  567. package/out/src/concepts/EntityIndex__.js.map +1 -0
  568. package/out/src/concepts/EntityProperty__.d.ts +207 -0
  569. package/out/src/concepts/EntityProperty__.js +472 -0
  570. package/out/src/concepts/EntityProperty__.js.map +1 -0
  571. package/out/src/concepts/Entity__.d.ts +282 -0
  572. package/out/src/concepts/Entity__.js +520 -0
  573. package/out/src/concepts/Entity__.js.map +1 -0
  574. package/out/src/concepts/EnumItem__.d.ts +60 -0
  575. package/out/src/concepts/EnumItem__.js +136 -0
  576. package/out/src/concepts/EnumItem__.js.map +1 -0
  577. package/out/src/concepts/Enum__.d.ts +130 -0
  578. package/out/src/concepts/Enum__.js +259 -0
  579. package/out/src/concepts/Enum__.js.map +1 -0
  580. package/out/src/concepts/Event__.d.ts +142 -0
  581. package/out/src/concepts/Event__.js +242 -0
  582. package/out/src/concepts/Event__.js.map +1 -0
  583. package/out/src/concepts/ForEachStatement__.d.ts +194 -0
  584. package/out/src/concepts/ForEachStatement__.js +410 -0
  585. package/out/src/concepts/ForEachStatement__.js.map +1 -0
  586. package/out/src/concepts/Function__.d.ts +387 -0
  587. package/out/src/concepts/Function__.js +557 -0
  588. package/out/src/concepts/Function__.js.map +1 -0
  589. package/out/src/concepts/Identifier__.d.ts +44 -0
  590. package/out/src/concepts/Identifier__.js +159 -0
  591. package/out/src/concepts/Identifier__.js.map +1 -0
  592. package/out/src/concepts/IfStatement__.d.ts +150 -0
  593. package/out/src/concepts/IfStatement__.js +310 -0
  594. package/out/src/concepts/IfStatement__.js.map +1 -0
  595. package/out/src/concepts/InterfaceParam__.d.ts +110 -0
  596. package/out/src/concepts/InterfaceParam__.js +273 -0
  597. package/out/src/concepts/InterfaceParam__.js.map +1 -0
  598. package/out/src/concepts/Interface__.d.ts +247 -0
  599. package/out/src/concepts/Interface__.js +441 -0
  600. package/out/src/concepts/Interface__.js.map +1 -0
  601. package/out/src/concepts/JSBlock__.d.ts +35 -0
  602. package/out/src/concepts/JSBlock__.js +106 -0
  603. package/out/src/concepts/JSBlock__.js.map +1 -0
  604. package/out/src/concepts/LogicItem__.d.ts +114 -0
  605. package/out/src/concepts/LogicItem__.js +216 -0
  606. package/out/src/concepts/LogicItem__.js.map +1 -0
  607. package/out/src/concepts/Logic__.d.ts +571 -0
  608. package/out/src/concepts/Logic__.js +951 -0
  609. package/out/src/concepts/Logic__.js.map +1 -0
  610. package/out/src/concepts/MemberExpression__.d.ts +69 -0
  611. package/out/src/concepts/MemberExpression__.js +204 -0
  612. package/out/src/concepts/MemberExpression__.js.map +1 -0
  613. package/out/src/concepts/Module__.d.ts +747 -0
  614. package/out/src/concepts/Module__.js +982 -0
  615. package/out/src/concepts/Module__.js.map +1 -0
  616. package/out/src/concepts/Namespace__.d.ts +1068 -0
  617. package/out/src/concepts/Namespace__.js +1397 -0
  618. package/out/src/concepts/Namespace__.js.map +1 -0
  619. package/out/src/concepts/NullLiteral__.d.ts +23 -0
  620. package/out/src/concepts/NullLiteral__.js +67 -0
  621. package/out/src/concepts/NullLiteral__.js.map +1 -0
  622. package/out/src/concepts/NumericLiteral__.d.ts +55 -0
  623. package/out/src/concepts/NumericLiteral__.js +164 -0
  624. package/out/src/concepts/NumericLiteral__.js.map +1 -0
  625. package/out/src/concepts/Param__.d.ts +143 -0
  626. package/out/src/concepts/Param__.js +327 -0
  627. package/out/src/concepts/Param__.js.map +1 -0
  628. package/out/src/concepts/Point__.d.ts +30 -0
  629. package/out/src/concepts/Point__.js +75 -0
  630. package/out/src/concepts/Point__.js.map +1 -0
  631. package/out/src/concepts/ProcessComponent__.d.ts +218 -0
  632. package/out/src/concepts/ProcessComponent__.js +333 -0
  633. package/out/src/concepts/ProcessComponent__.js.map +1 -0
  634. package/out/src/concepts/ProcessElement__.d.ts +557 -0
  635. package/out/src/concepts/ProcessElement__.js +889 -0
  636. package/out/src/concepts/ProcessElement__.js.map +1 -0
  637. package/out/src/concepts/ProcessOutcome__.d.ts +34 -0
  638. package/out/src/concepts/ProcessOutcome__.js +94 -0
  639. package/out/src/concepts/ProcessOutcome__.js.map +1 -0
  640. package/out/src/concepts/Process__.d.ts +425 -0
  641. package/out/src/concepts/Process__.js +736 -0
  642. package/out/src/concepts/Process__.js.map +1 -0
  643. package/out/src/concepts/QueryAggregateExpression__.d.ts +56 -0
  644. package/out/src/concepts/QueryAggregateExpression__.js +177 -0
  645. package/out/src/concepts/QueryAggregateExpression__.js.map +1 -0
  646. package/out/src/concepts/QueryFieldExpression__.d.ts +51 -0
  647. package/out/src/concepts/QueryFieldExpression__.js +129 -0
  648. package/out/src/concepts/QueryFieldExpression__.js.map +1 -0
  649. package/out/src/concepts/QueryFromExpression__.d.ts +95 -0
  650. package/out/src/concepts/QueryFromExpression__.js +188 -0
  651. package/out/src/concepts/QueryFromExpression__.js.map +1 -0
  652. package/out/src/concepts/QueryGroupByExpression__.d.ts +46 -0
  653. package/out/src/concepts/QueryGroupByExpression__.js +126 -0
  654. package/out/src/concepts/QueryGroupByExpression__.js.map +1 -0
  655. package/out/src/concepts/QueryJoinExpression__.d.ts +182 -0
  656. package/out/src/concepts/QueryJoinExpression__.js +308 -0
  657. package/out/src/concepts/QueryJoinExpression__.js.map +1 -0
  658. package/out/src/concepts/QueryLimitExpression__.d.ts +60 -0
  659. package/out/src/concepts/QueryLimitExpression__.js +163 -0
  660. package/out/src/concepts/QueryLimitExpression__.js.map +1 -0
  661. package/out/src/concepts/QueryOrderByExpression__.d.ts +71 -0
  662. package/out/src/concepts/QueryOrderByExpression__.js +176 -0
  663. package/out/src/concepts/QueryOrderByExpression__.js.map +1 -0
  664. package/out/src/concepts/QuerySelectExpression__.d.ts +118 -0
  665. package/out/src/concepts/QuerySelectExpression__.js +210 -0
  666. package/out/src/concepts/QuerySelectExpression__.js.map +1 -0
  667. package/out/src/concepts/Rect__.d.ts +38 -0
  668. package/out/src/concepts/Rect__.js +89 -0
  669. package/out/src/concepts/Rect__.js.map +1 -0
  670. package/out/src/concepts/Return__.d.ts +129 -0
  671. package/out/src/concepts/Return__.js +291 -0
  672. package/out/src/concepts/Return__.js.map +1 -0
  673. package/out/src/concepts/Role__.d.ts +52 -0
  674. package/out/src/concepts/Role__.js +131 -0
  675. package/out/src/concepts/Role__.js.map +1 -0
  676. package/out/src/concepts/Slot__.d.ts +57 -0
  677. package/out/src/concepts/Slot__.js +114 -0
  678. package/out/src/concepts/Slot__.js.map +1 -0
  679. package/out/src/concepts/SqlQueryComponent__.d.ts +49 -0
  680. package/out/src/concepts/SqlQueryComponent__.js +125 -0
  681. package/out/src/concepts/SqlQueryComponent__.js.map +1 -0
  682. package/out/src/concepts/Start__.d.ts +28 -0
  683. package/out/src/concepts/Start__.js +81 -0
  684. package/out/src/concepts/Start__.js.map +1 -0
  685. package/out/src/concepts/StringLiteral__.d.ts +37 -0
  686. package/out/src/concepts/StringLiteral__.js +135 -0
  687. package/out/src/concepts/StringLiteral__.js.map +1 -0
  688. package/out/src/concepts/StructureProperty__.d.ts +123 -0
  689. package/out/src/concepts/StructureProperty__.js +294 -0
  690. package/out/src/concepts/StructureProperty__.js.map +1 -0
  691. package/out/src/concepts/Structure__.d.ts +231 -0
  692. package/out/src/concepts/Structure__.js +386 -0
  693. package/out/src/concepts/Structure__.js.map +1 -0
  694. package/out/src/concepts/SwitchCase__.d.ts +97 -0
  695. package/out/src/concepts/SwitchCase__.js +270 -0
  696. package/out/src/concepts/SwitchCase__.js.map +1 -0
  697. package/out/src/concepts/SwitchStatement__.d.ts +86 -0
  698. package/out/src/concepts/SwitchStatement__.js +187 -0
  699. package/out/src/concepts/SwitchStatement__.js.map +1 -0
  700. package/out/src/concepts/Theme__.d.ts +36 -0
  701. package/out/src/concepts/Theme__.js +86 -0
  702. package/out/src/concepts/Theme__.js.map +1 -0
  703. package/out/src/concepts/Transactional__.d.ts +76 -0
  704. package/out/src/concepts/Transactional__.js +151 -0
  705. package/out/src/concepts/Transactional__.js.map +1 -0
  706. package/out/src/concepts/TypeAnnotation__.d.ts +125 -0
  707. package/out/src/concepts/TypeAnnotation__.js +305 -0
  708. package/out/src/concepts/TypeAnnotation__.js.map +1 -0
  709. package/out/src/concepts/TypeParam__.d.ts +20 -0
  710. package/out/src/concepts/TypeParam__.js +57 -0
  711. package/out/src/concepts/TypeParam__.js.map +1 -0
  712. package/out/src/concepts/UnaryExpression__.d.ts +48 -0
  713. package/out/src/concepts/UnaryExpression__.js +163 -0
  714. package/out/src/concepts/UnaryExpression__.js.map +1 -0
  715. package/out/src/concepts/Unparsed__.d.ts +32 -0
  716. package/out/src/concepts/Unparsed__.js +92 -0
  717. package/out/src/concepts/Unparsed__.js.map +1 -0
  718. package/out/src/concepts/UseComponent__.d.ts +30 -0
  719. package/out/src/concepts/UseComponent__.js +75 -0
  720. package/out/src/concepts/UseComponent__.js.map +1 -0
  721. package/out/src/concepts/ValidationRule__.d.ts +95 -0
  722. package/out/src/concepts/ValidationRule__.js +212 -0
  723. package/out/src/concepts/ValidationRule__.js.map +1 -0
  724. package/out/src/concepts/Variable__.d.ts +119 -0
  725. package/out/src/concepts/Variable__.js +277 -0
  726. package/out/src/concepts/Variable__.js.map +1 -0
  727. package/out/src/concepts/ViewComponent__.d.ts +472 -0
  728. package/out/src/concepts/ViewComponent__.js +644 -0
  729. package/out/src/concepts/ViewComponent__.js.map +1 -0
  730. package/out/src/concepts/ViewElement__.d.ts +483 -0
  731. package/out/src/concepts/ViewElement__.js +1167 -0
  732. package/out/src/concepts/ViewElement__.js.map +1 -0
  733. package/out/src/concepts/View__.d.ts +676 -0
  734. package/out/src/concepts/View__.js +1268 -0
  735. package/out/src/concepts/View__.js.map +1 -0
  736. package/out/src/concepts/WhileStatement__.d.ts +97 -0
  737. package/out/src/concepts/WhileStatement__.js +228 -0
  738. package/out/src/concepts/WhileStatement__.js.map +1 -0
  739. package/out/src/concepts/basics/stdlib/index.d.ts +4 -0
  740. package/out/src/concepts/basics/stdlib/index.js +23 -0
  741. package/out/src/concepts/basics/stdlib/index.js.map +1 -0
  742. package/out/src/concepts/basics/stdlib/nasl.collection.d.ts +5 -0
  743. package/out/src/concepts/basics/stdlib/nasl.collection.js +54 -0
  744. package/out/src/concepts/basics/stdlib/nasl.collection.js.map +1 -0
  745. package/out/src/concepts/basics/stdlib/nasl.core.d.ts +3 -0
  746. package/out/src/concepts/basics/stdlib/nasl.core.js +15 -0
  747. package/out/src/concepts/basics/stdlib/nasl.core.js.map +1 -0
  748. package/out/src/concepts/basics/stdlib/nasl.interface.d.ts +5 -0
  749. package/out/src/concepts/basics/stdlib/nasl.interface.js +43 -0
  750. package/out/src/concepts/basics/stdlib/nasl.interface.js.map +1 -0
  751. package/out/src/concepts/basics/stdlib/nasl.process.d.ts +3 -0
  752. package/out/src/concepts/basics/stdlib/nasl.process.js +43 -0
  753. package/out/src/concepts/basics/stdlib/nasl.process.js.map +1 -0
  754. package/out/src/concepts/basics/stdlib/nasl.ui.d.ts +5 -0
  755. package/out/src/concepts/basics/stdlib/nasl.ui.js +85 -0
  756. package/out/src/concepts/basics/stdlib/nasl.ui.js.map +1 -0
  757. package/out/src/concepts/basics/stdlib/nasl.util.d.ts +3 -0
  758. package/out/src/concepts/basics/stdlib/nasl.util.js +587 -0
  759. package/out/src/concepts/basics/stdlib/nasl.util.js.map +1 -0
  760. package/out/src/concepts/basics/stdlib/nasl.validate.d.ts +3 -0
  761. package/out/src/concepts/basics/stdlib/nasl.validate.js +527 -0
  762. package/out/src/concepts/basics/stdlib/nasl.validate.js.map +1 -0
  763. package/out/src/concepts/basics/stdlib/reference2TypeAnnotationList.d.ts +5 -0
  764. package/out/src/concepts/basics/stdlib/reference2TypeAnnotationList.js +26 -0
  765. package/out/src/concepts/basics/stdlib/reference2TypeAnnotationList.js.map +1 -0
  766. package/out/src/concepts/basics/types/coreTypeList.d.ts +2 -0
  767. package/out/src/concepts/basics/types/coreTypeList.js +17 -0
  768. package/out/src/concepts/basics/types/coreTypeList.js.map +1 -0
  769. package/out/src/concepts/basics/types/index.d.ts +11 -0
  770. package/out/src/concepts/basics/types/index.js +20 -0
  771. package/out/src/concepts/basics/types/index.js.map +1 -0
  772. package/out/src/concepts/index.d.ts +5 -0
  773. package/out/src/concepts/index.js +24 -0
  774. package/out/src/concepts/index.js.map +1 -0
  775. package/out/src/concepts/index__.d.ts +77 -0
  776. package/out/src/concepts/index__.js +94 -0
  777. package/out/src/concepts/index__.js.map +1 -0
  778. package/out/src/config.d.ts +43 -0
  779. package/out/src/config.js +72 -0
  780. package/out/src/config.js.map +1 -0
  781. package/out/src/decorators/index.d.ts +54 -0
  782. package/out/src/decorators/index.js +146 -0
  783. package/out/src/decorators/index.js.map +1 -0
  784. package/out/src/generator/compileComponent.d.ts +11 -0
  785. package/out/src/generator/compileComponent.js +12 -0
  786. package/out/src/generator/compileComponent.js.map +1 -0
  787. package/out/src/generator/debugInFileStorage.d.ts +3 -0
  788. package/out/src/generator/debugInFileStorage.js +15 -0
  789. package/out/src/generator/debugInFileStorage.js.map +1 -0
  790. package/out/src/generator/genAllEmbeddedTS.d.ts +7 -0
  791. package/out/src/generator/genAllEmbeddedTS.js +20 -0
  792. package/out/src/generator/genAllEmbeddedTS.js.map +1 -0
  793. package/out/src/generator/genBundleFiles.d.ts +38 -0
  794. package/out/src/generator/genBundleFiles.js +219 -0
  795. package/out/src/generator/genBundleFiles.js.map +1 -0
  796. package/out/src/generator/genHash.d.ts +7 -0
  797. package/out/src/generator/genHash.js +39 -0
  798. package/out/src/generator/genHash.js.map +1 -0
  799. package/out/src/generator/index.d.ts +4 -0
  800. package/out/src/generator/index.js +21 -0
  801. package/out/src/generator/index.js.map +1 -0
  802. package/out/src/generator/styleReplacer.d.ts +3 -0
  803. package/out/src/generator/styleReplacer.js +71 -0
  804. package/out/src/generator/styleReplacer.js.map +1 -0
  805. package/out/src/index.d.ts +9 -0
  806. package/out/src/index.js +48 -0
  807. package/out/src/index.js.map +1 -0
  808. package/out/src/init.d.ts +1 -0
  809. package/out/src/init.js +140 -0
  810. package/out/src/init.js.map +1 -0
  811. package/out/src/manager/diagnostic.d.ts +38 -0
  812. package/out/src/manager/diagnostic.js +84 -0
  813. package/out/src/manager/diagnostic.js.map +1 -0
  814. package/out/src/manager/history.d.ts +0 -0
  815. package/out/src/manager/history.js +1 -0
  816. package/out/src/manager/history.js.map +1 -0
  817. package/out/src/manager/problem.d.ts +0 -0
  818. package/out/src/manager/problem.js +1 -0
  819. package/out/src/manager/problem.js.map +1 -0
  820. package/out/src/map.d.ts +4 -0
  821. package/out/src/map.js +62 -0
  822. package/out/src/map.js.map +1 -0
  823. package/out/src/naslServer/index.d.ts +55 -0
  824. package/out/src/naslServer/index.js +296 -0
  825. package/out/src/naslServer/index.js.map +1 -0
  826. package/out/src/naslServer/translator.d.ts +3 -0
  827. package/out/src/naslServer/translator.js +78 -0
  828. package/out/src/naslServer/translator.js.map +1 -0
  829. package/out/src/server/entity2LogicNamespace.d.ts +2 -0
  830. package/out/src/server/entity2LogicNamespace.js +192 -0
  831. package/out/src/server/entity2LogicNamespace.js.map +1 -0
  832. package/out/src/server/getFunctions.d.ts +2 -0
  833. package/out/src/server/getFunctions.js +14 -0
  834. package/out/src/server/getFunctions.js.map +1 -0
  835. package/out/src/server/getInterfaces.d.ts +2 -0
  836. package/out/src/server/getInterfaces.js +48 -0
  837. package/out/src/server/getInterfaces.js.map +1 -0
  838. package/out/src/server/getLogics.d.ts +2 -0
  839. package/out/src/server/getLogics.js +83 -0
  840. package/out/src/server/getLogics.js.map +1 -0
  841. package/out/src/server/getMemberIdentifier.d.ts +5 -0
  842. package/out/src/server/getMemberIdentifier.js +102 -0
  843. package/out/src/server/getMemberIdentifier.js.map +1 -0
  844. package/out/src/server/getProcessComponents.d.ts +2 -0
  845. package/out/src/server/getProcessComponents.js +13 -0
  846. package/out/src/server/getProcessComponents.js.map +1 -0
  847. package/out/src/server/getProcesses.d.ts +19 -0
  848. package/out/src/server/getProcesses.js +106 -0
  849. package/out/src/server/getProcesses.js.map +1 -0
  850. package/out/src/server/getValidates.d.ts +3 -0
  851. package/out/src/server/getValidates.js +14 -0
  852. package/out/src/server/getValidates.js.map +1 -0
  853. package/out/src/server/index.d.ts +2 -0
  854. package/out/src/server/index.js +26 -0
  855. package/out/src/server/index.js.map +1 -0
  856. package/out/src/server/naslServer.d.ts +139 -0
  857. package/out/src/server/naslServer.js +1120 -0
  858. package/out/src/server/naslServer.js.map +1 -0
  859. package/out/src/server/process2LogicNamespace.d.ts +2 -0
  860. package/out/src/server/process2LogicNamespace.js +24 -0
  861. package/out/src/server/process2LogicNamespace.js.map +1 -0
  862. package/out/src/server/translator.d.ts +5 -0
  863. package/out/src/server/translator.js +150 -0
  864. package/out/src/server/translator.js.map +1 -0
  865. package/out/src/service/app/api.d.ts +61 -0
  866. package/out/src/service/app/api.js +77 -0
  867. package/out/src/service/app/api.js.map +1 -0
  868. package/out/src/service/app/index.d.ts +2 -0
  869. package/out/src/service/app/index.js +10 -0
  870. package/out/src/service/app/index.js.map +1 -0
  871. package/out/src/service/assets/asset.d.ts +104 -0
  872. package/out/src/service/assets/asset.js +78 -0
  873. package/out/src/service/assets/asset.js.map +1 -0
  874. package/out/src/service/assets/block.d.ts +9 -0
  875. package/out/src/service/assets/block.js +11 -0
  876. package/out/src/service/assets/block.js.map +1 -0
  877. package/out/src/service/assets/index.d.ts +2 -0
  878. package/out/src/service/assets/index.js +12 -0
  879. package/out/src/service/assets/index.js.map +1 -0
  880. package/out/src/service/common/findUsage.d.ts +9 -0
  881. package/out/src/service/common/findUsage.js +11 -0
  882. package/out/src/service/common/findUsage.js.map +1 -0
  883. package/out/src/service/common/index.d.ts +2 -0
  884. package/out/src/service/common/index.js +12 -0
  885. package/out/src/service/common/index.js.map +1 -0
  886. package/out/src/service/common/preprocess.d.ts +14 -0
  887. package/out/src/service/common/preprocess.js +75 -0
  888. package/out/src/service/common/preprocess.js.map +1 -0
  889. package/out/src/service/common/schema.d.ts +9 -0
  890. package/out/src/service/common/schema.js +12 -0
  891. package/out/src/service/common/schema.js.map +1 -0
  892. package/out/src/service/create/add.configs.d.ts +1 -0
  893. package/out/src/service/create/add.configs.js +68 -0
  894. package/out/src/service/create/add.configs.js.map +1 -0
  895. package/out/src/service/create/errHandles.d.ts +18 -0
  896. package/out/src/service/create/errHandles.js +57 -0
  897. package/out/src/service/create/errHandles.js.map +1 -0
  898. package/out/src/service/create/index.d.ts +1 -0
  899. package/out/src/service/create/index.js +77 -0
  900. package/out/src/service/create/index.js.map +1 -0
  901. package/out/src/service/data/api.d.ts +36 -0
  902. package/out/src/service/data/api.js +36 -0
  903. package/out/src/service/data/api.js.map +1 -0
  904. package/out/src/service/data/entity.d.ts +135 -0
  905. package/out/src/service/data/entity.js +103 -0
  906. package/out/src/service/data/entity.js.map +1 -0
  907. package/out/src/service/data/enum.d.ts +63 -0
  908. package/out/src/service/data/enum.js +55 -0
  909. package/out/src/service/data/enum.js.map +1 -0
  910. package/out/src/service/data/enumProperty.d.ts +28 -0
  911. package/out/src/service/data/enumProperty.js +23 -0
  912. package/out/src/service/data/enumProperty.js.map +1 -0
  913. package/out/src/service/data/generic.d.ts +9 -0
  914. package/out/src/service/data/generic.js +11 -0
  915. package/out/src/service/data/generic.js.map +1 -0
  916. package/out/src/service/data/index.d.ts +8 -0
  917. package/out/src/service/data/index.js +23 -0
  918. package/out/src/service/data/index.js.map +1 -0
  919. package/out/src/service/data/interface.d.ts +67 -0
  920. package/out/src/service/data/interface.js +58 -0
  921. package/out/src/service/data/interface.js.map +1 -0
  922. package/out/src/service/data/structure.d.ts +92 -0
  923. package/out/src/service/data/structure.js +77 -0
  924. package/out/src/service/data/structure.js.map +1 -0
  925. package/out/src/service/logic/index.d.ts +2 -0
  926. package/out/src/service/logic/index.js +14 -0
  927. package/out/src/service/logic/index.js.map +1 -0
  928. package/out/src/service/logic/logic.d.ts +157 -0
  929. package/out/src/service/logic/logic.js +116 -0
  930. package/out/src/service/logic/logic.js.map +1 -0
  931. package/out/src/service/logic/param.d.ts +37 -0
  932. package/out/src/service/logic/param.js +29 -0
  933. package/out/src/service/logic/param.js.map +1 -0
  934. package/out/src/service/nuims/api.d.ts +264 -0
  935. package/out/src/service/nuims/api.js +194 -0
  936. package/out/src/service/nuims/api.js.map +1 -0
  937. package/out/src/service/nuims/index.d.ts +2 -0
  938. package/out/src/service/nuims/index.js +17 -0
  939. package/out/src/service/nuims/index.js.map +1 -0
  940. package/out/src/service/page/api.d.ts +186 -0
  941. package/out/src/service/page/api.js +1361 -0
  942. package/out/src/service/page/api.js.map +1 -0
  943. package/out/src/service/page/attribute.d.ts +28 -0
  944. package/out/src/service/page/attribute.js +23 -0
  945. package/out/src/service/page/attribute.js.map +1 -0
  946. package/out/src/service/page/directive.d.ts +28 -0
  947. package/out/src/service/page/directive.js +23 -0
  948. package/out/src/service/page/directive.js.map +1 -0
  949. package/out/src/service/page/element.d.ts +45 -0
  950. package/out/src/service/page/element.js +42 -0
  951. package/out/src/service/page/element.js.map +1 -0
  952. package/out/src/service/page/event.d.ts +28 -0
  953. package/out/src/service/page/event.js +23 -0
  954. package/out/src/service/page/event.js.map +1 -0
  955. package/out/src/service/page/index.d.ts +8 -0
  956. package/out/src/service/page/index.js +23 -0
  957. package/out/src/service/page/index.js.map +1 -0
  958. package/out/src/service/page/lifecycle.d.ts +28 -0
  959. package/out/src/service/page/lifecycle.js +23 -0
  960. package/out/src/service/page/lifecycle.js.map +1 -0
  961. package/out/src/service/page/templates.d.ts +14 -0
  962. package/out/src/service/page/templates.js +70 -0
  963. package/out/src/service/page/templates.js.map +1 -0
  964. package/out/src/service/page/view.d.ts +130 -0
  965. package/out/src/service/page/view.js +101 -0
  966. package/out/src/service/page/view.js.map +1 -0
  967. package/out/src/service/permission/api.d.ts +57 -0
  968. package/out/src/service/permission/api.js +41 -0
  969. package/out/src/service/permission/api.js.map +1 -0
  970. package/out/src/service/permission/index.d.ts +2 -0
  971. package/out/src/service/permission/index.js +17 -0
  972. package/out/src/service/permission/index.js.map +1 -0
  973. package/out/src/service/process/api.d.ts +136 -0
  974. package/out/src/service/process/api.js +95 -0
  975. package/out/src/service/process/api.js.map +1 -0
  976. package/out/src/service/process/index.d.ts +2 -0
  977. package/out/src/service/process/index.js +10 -0
  978. package/out/src/service/process/index.js.map +1 -0
  979. package/out/src/service/storage/index.d.ts +2 -0
  980. package/out/src/service/storage/index.js +10 -0
  981. package/out/src/service/storage/index.js.map +1 -0
  982. package/out/src/service/storage/init.d.ts +7 -0
  983. package/out/src/service/storage/init.js +187 -0
  984. package/out/src/service/storage/init.js.map +1 -0
  985. package/out/src/service/storage/jsoner.d.ts +29 -0
  986. package/out/src/service/storage/jsoner.js +130 -0
  987. package/out/src/service/storage/jsoner.js.map +1 -0
  988. package/out/src/service/storage/map.d.ts +4 -0
  989. package/out/src/service/storage/map.js +54 -0
  990. package/out/src/service/storage/map.js.map +1 -0
  991. package/out/src/service/storage/storagePoint.d.ts +30 -0
  992. package/out/src/service/storage/storagePoint.js +76 -0
  993. package/out/src/service/storage/storagePoint.js.map +1 -0
  994. package/out/src/service/undoredo/api.d.ts +36 -0
  995. package/out/src/service/undoredo/api.js +29 -0
  996. package/out/src/service/undoredo/api.js.map +1 -0
  997. package/out/src/service/undoredo/index.d.ts +2 -0
  998. package/out/src/service/undoredo/index.js +10 -0
  999. package/out/src/service/undoredo/index.js.map +1 -0
  1000. package/out/src/service/webFile/api.d.ts +45 -0
  1001. package/out/src/service/webFile/api.js +35 -0
  1002. package/out/src/service/webFile/api.js.map +1 -0
  1003. package/out/src/service/webFile/index.d.ts +3 -0
  1004. package/out/src/service/webFile/index.js +32 -0
  1005. package/out/src/service/webFile/index.js.map +1 -0
  1006. package/out/src/service/webFile/loadCache.d.ts +18 -0
  1007. package/out/src/service/webFile/loadCache.js +17 -0
  1008. package/out/src/service/webFile/loadCache.js.map +1 -0
  1009. package/out/src/storagePoint.d.ts +16 -0
  1010. package/out/src/storagePoint.js +49 -0
  1011. package/out/src/storagePoint.js.map +1 -0
  1012. package/out/src/templator/genCallComponentLogic.d.ts +17 -0
  1013. package/out/src/templator/genCallComponentLogic.js +30 -0
  1014. package/out/src/templator/genCallComponentLogic.js.map +1 -0
  1015. package/out/src/templator/genCallInterface.d.ts +12 -0
  1016. package/out/src/templator/genCallInterface.js +20 -0
  1017. package/out/src/templator/genCallInterface.js.map +1 -0
  1018. package/out/src/templator/genCallLogic.d.ts +12 -0
  1019. package/out/src/templator/genCallLogic.js +26 -0
  1020. package/out/src/templator/genCallLogic.js.map +1 -0
  1021. package/out/src/templator/genCreateBlock.d.ts +10 -0
  1022. package/out/src/templator/genCreateBlock.js +304 -0
  1023. package/out/src/templator/genCreateBlock.js.map +1 -0
  1024. package/out/src/templator/genCurdEditMultipleKeyBlock.d.ts +2 -0
  1025. package/out/src/templator/genCurdEditMultipleKeyBlock.js +453 -0
  1026. package/out/src/templator/genCurdEditMultipleKeyBlock.js.map +1 -0
  1027. package/out/src/templator/genCurdMultipleKeyBlock.d.ts +3 -0
  1028. package/out/src/templator/genCurdMultipleKeyBlock.js +640 -0
  1029. package/out/src/templator/genCurdMultipleKeyBlock.js.map +1 -0
  1030. package/out/src/templator/genEditTableBlock.d.ts +51 -0
  1031. package/out/src/templator/genEditTableBlock.js +301 -0
  1032. package/out/src/templator/genEditTableBlock.js.map +1 -0
  1033. package/out/src/templator/genEnumSelectBlock.d.ts +10 -0
  1034. package/out/src/templator/genEnumSelectBlock.js +23 -0
  1035. package/out/src/templator/genEnumSelectBlock.js.map +1 -0
  1036. package/out/src/templator/genGetBlock.d.ts +6 -0
  1037. package/out/src/templator/genGetBlock.js +133 -0
  1038. package/out/src/templator/genGetBlock.js.map +1 -0
  1039. package/out/src/templator/genGridViewBlock.d.ts +53 -0
  1040. package/out/src/templator/genGridViewBlock.js +308 -0
  1041. package/out/src/templator/genGridViewBlock.js.map +1 -0
  1042. package/out/src/templator/genListViewBlock.d.ts +19 -0
  1043. package/out/src/templator/genListViewBlock.js +137 -0
  1044. package/out/src/templator/genListViewBlock.js.map +1 -0
  1045. package/out/src/templator/genQueryComponent.d.ts +32 -0
  1046. package/out/src/templator/genQueryComponent.js +307 -0
  1047. package/out/src/templator/genQueryComponent.js.map +1 -0
  1048. package/out/src/templator/genSelectBlock.d.ts +34 -0
  1049. package/out/src/templator/genSelectBlock.js +142 -0
  1050. package/out/src/templator/genSelectBlock.js.map +1 -0
  1051. package/out/src/templator/genTableBlock.d.ts +53 -0
  1052. package/out/src/templator/genTableBlock.js +295 -0
  1053. package/out/src/templator/genTableBlock.js.map +1 -0
  1054. package/out/src/templator/genUpdateBlock.d.ts +6 -0
  1055. package/out/src/templator/genUpdateBlock.js +347 -0
  1056. package/out/src/templator/genUpdateBlock.js.map +1 -0
  1057. package/out/src/templator/index.d.ts +15 -0
  1058. package/out/src/templator/index.js +33 -0
  1059. package/out/src/templator/index.js.map +1 -0
  1060. package/out/src/templator/utils.d.ts +634 -0
  1061. package/out/src/templator/utils.js +412 -0
  1062. package/out/src/templator/utils.js.map +1 -0
  1063. package/out/src/terms/LEVEL_NAME_MAP.d.ts +26 -0
  1064. package/out/src/terms/LEVEL_NAME_MAP.js +30 -0
  1065. package/out/src/terms/LEVEL_NAME_MAP.js.map +1 -0
  1066. package/out/src/test/fixtures/env.d.ts +5 -0
  1067. package/out/src/test/fixtures/env.js +21 -0
  1068. package/out/src/test/fixtures/env.js.map +1 -0
  1069. package/out/src/test/integration/connect-file.d.ts +1 -0
  1070. package/out/src/test/integration/connect-file.js +49 -0
  1071. package/out/src/test/integration/connect-file.js.map +1 -0
  1072. package/out/src/test/units/app/App.spec.d.ts +1 -0
  1073. package/out/src/test/units/app/App.spec.js +17 -0
  1074. package/out/src/test/units/app/App.spec.js.map +1 -0
  1075. package/out/src/test/units/app/Service.spec.d.ts +1 -0
  1076. package/out/src/test/units/app/Service.spec.js +24 -0
  1077. package/out/src/test/units/app/Service.spec.js.map +1 -0
  1078. package/out/src/test/units/baseTypes/Assignment.spec.d.ts +1 -0
  1079. package/out/src/test/units/baseTypes/Assignment.spec.js +43 -0
  1080. package/out/src/test/units/baseTypes/Assignment.spec.js.map +1 -0
  1081. package/out/src/test/units/baseTypes/AssignmentExpression.spec.d.ts +1 -0
  1082. package/out/src/test/units/baseTypes/AssignmentExpression.spec.js +39 -0
  1083. package/out/src/test/units/baseTypes/AssignmentExpression.spec.js.map +1 -0
  1084. package/out/src/test/units/baseTypes/CallLogic.spec.d.ts +1 -0
  1085. package/out/src/test/units/baseTypes/CallLogic.spec.js +44 -0
  1086. package/out/src/test/units/baseTypes/CallLogic.spec.js.map +1 -0
  1087. package/out/src/test/units/baseTypes/StringLiteral.spec.d.ts +1 -0
  1088. package/out/src/test/units/baseTypes/StringLiteral.spec.js +75 -0
  1089. package/out/src/test/units/baseTypes/StringLiteral.spec.js.map +1 -0
  1090. package/out/src/test/units/baseTypes/new.spec.d.ts +1 -0
  1091. package/out/src/test/units/baseTypes/new.spec.js +37 -0
  1092. package/out/src/test/units/baseTypes/new.spec.js.map +1 -0
  1093. package/out/src/test/units/common/Vertex.spec.d.ts +1 -0
  1094. package/out/src/test/units/common/Vertex.spec.js +22 -0
  1095. package/out/src/test/units/common/Vertex.spec.js.map +1 -0
  1096. package/out/src/test/units/data/Entity.spec.d.ts +1 -0
  1097. package/out/src/test/units/data/Entity.spec.js +12 -0
  1098. package/out/src/test/units/data/Entity.spec.js.map +1 -0
  1099. package/out/src/test/units/login.spec.d.ts +1 -0
  1100. package/out/src/test/units/login.spec.js +12 -0
  1101. package/out/src/test/units/login.spec.js.map +1 -0
  1102. package/out/src/test/units/page/Block.spec.d.ts +0 -0
  1103. package/out/src/test/units/page/Block.spec.js +13 -0
  1104. package/out/src/test/units/page/Block.spec.js.map +1 -0
  1105. package/out/src/test/units/page/Element.spec.d.ts +1 -0
  1106. package/out/src/test/units/page/Element.spec.js +44 -0
  1107. package/out/src/test/units/page/Element.spec.js.map +1 -0
  1108. package/out/src/test/units/temp/temp.spec.d.ts +1 -0
  1109. package/out/src/test/units/temp/temp.spec.js +68 -0
  1110. package/out/src/test/units/temp/temp.spec.js.map +1 -0
  1111. package/out/src/translator/index.d.ts +47 -0
  1112. package/out/src/translator/index.js +108 -0
  1113. package/out/src/translator/index.js.map +1 -0
  1114. package/out/src/translator/lsp.d.ts +45 -0
  1115. package/out/src/translator/lsp.js +6 -0
  1116. package/out/src/translator/lsp.js.map +1 -0
  1117. package/out/src/translator/tsp.d.ts +12 -0
  1118. package/out/src/translator/tsp.js +3 -0
  1119. package/out/src/translator/tsp.js.map +1 -0
  1120. package/out/src/types/app/App.d.ts +148 -0
  1121. package/out/src/types/app/App.js +358 -0
  1122. package/out/src/types/app/App.js.map +1 -0
  1123. package/out/src/types/app/History.d.ts +36 -0
  1124. package/out/src/types/app/History.js +366 -0
  1125. package/out/src/types/app/History.js.map +1 -0
  1126. package/out/src/types/app/Service.d.ts +220 -0
  1127. package/out/src/types/app/Service.js +831 -0
  1128. package/out/src/types/app/Service.js.map +1 -0
  1129. package/out/src/types/cache.d.ts +6 -0
  1130. package/out/src/types/cache.js +54 -0
  1131. package/out/src/types/cache.js.map +1 -0
  1132. package/out/src/types/cacheData.d.ts +4 -0
  1133. package/out/src/types/cacheData.js +34 -0
  1134. package/out/src/types/cacheData.js.map +1 -0
  1135. package/out/src/types/classMap.d.ts +4 -0
  1136. package/out/src/types/classMap.js +5 -0
  1137. package/out/src/types/classMap.js.map +1 -0
  1138. package/out/src/types/common/ComponentAPI.d.ts +110 -0
  1139. package/out/src/types/common/ComponentAPI.js +3 -0
  1140. package/out/src/types/common/ComponentAPI.js.map +1 -0
  1141. package/out/src/types/common/EventEmitter.d.ts +37 -0
  1142. package/out/src/types/common/EventEmitter.js +70 -0
  1143. package/out/src/types/common/EventEmitter.js.map +1 -0
  1144. package/out/src/types/common/PackageJSON.d.ts +32 -0
  1145. package/out/src/types/common/PackageJSON.js +3 -0
  1146. package/out/src/types/common/PackageJSON.js.map +1 -0
  1147. package/out/src/types/common/Vertex.d.ts +205 -0
  1148. package/out/src/types/common/Vertex.js +591 -0
  1149. package/out/src/types/common/Vertex.js.map +1 -0
  1150. package/out/src/types/config.d.ts +32 -0
  1151. package/out/src/types/config.js +30 -0
  1152. package/out/src/types/config.js.map +1 -0
  1153. package/out/src/types/data/DataNode.d.ts +24 -0
  1154. package/out/src/types/data/DataNode.js +52 -0
  1155. package/out/src/types/data/DataNode.js.map +1 -0
  1156. package/out/src/types/data/Entity.d.ts +124 -0
  1157. package/out/src/types/data/Entity.js +537 -0
  1158. package/out/src/types/data/Entity.js.map +1 -0
  1159. package/out/src/types/data/EntityIndex.d.ts +87 -0
  1160. package/out/src/types/data/EntityIndex.js +262 -0
  1161. package/out/src/types/data/EntityIndex.js.map +1 -0
  1162. package/out/src/types/data/EntityProperty.d.ts +196 -0
  1163. package/out/src/types/data/EntityProperty.js +584 -0
  1164. package/out/src/types/data/EntityProperty.js.map +1 -0
  1165. package/out/src/types/data/Enum.d.ts +97 -0
  1166. package/out/src/types/data/Enum.js +267 -0
  1167. package/out/src/types/data/Enum.js.map +1 -0
  1168. package/out/src/types/data/EnumItem.d.ts +57 -0
  1169. package/out/src/types/data/EnumItem.js +170 -0
  1170. package/out/src/types/data/EnumItem.js.map +1 -0
  1171. package/out/src/types/data/GlobalLogicNode.d.ts +44 -0
  1172. package/out/src/types/data/GlobalLogicNode.js +201 -0
  1173. package/out/src/types/data/GlobalLogicNode.js.map +1 -0
  1174. package/out/src/types/data/Interface.d.ts +153 -0
  1175. package/out/src/types/data/Interface.js +482 -0
  1176. package/out/src/types/data/Interface.js.map +1 -0
  1177. package/out/src/types/data/Schema.d.ts +121 -0
  1178. package/out/src/types/data/Schema.js +3 -0
  1179. package/out/src/types/data/Schema.js.map +1 -0
  1180. package/out/src/types/data/Structure.d.ts +104 -0
  1181. package/out/src/types/data/Structure.js +319 -0
  1182. package/out/src/types/data/Structure.js.map +1 -0
  1183. package/out/src/types/data/StructureProperty.d.ts +134 -0
  1184. package/out/src/types/data/StructureProperty.js +380 -0
  1185. package/out/src/types/data/StructureProperty.js.map +1 -0
  1186. package/out/src/types/data/basicTypes.d.ts +25 -0
  1187. package/out/src/types/data/basicTypes.js +77 -0
  1188. package/out/src/types/data/basicTypes.js.map +1 -0
  1189. package/out/src/types/data/dataTypeUtils.d.ts +94 -0
  1190. package/out/src/types/data/dataTypeUtils.js +441 -0
  1191. package/out/src/types/data/dataTypeUtils.js.map +1 -0
  1192. package/out/src/types/data/dataTypes.d.ts +20 -0
  1193. package/out/src/types/data/dataTypes.js +47 -0
  1194. package/out/src/types/data/dataTypes.js.map +1 -0
  1195. package/out/src/types/data/entityUtils.d.ts +164 -0
  1196. package/out/src/types/data/entityUtils.js +632 -0
  1197. package/out/src/types/data/entityUtils.js.map +1 -0
  1198. package/out/src/types/data/genBlock/builtInFunctions.json +545 -0
  1199. package/out/src/types/data/genBlock/genCallComponentLogic.d.ts +20 -0
  1200. package/out/src/types/data/genBlock/genCallComponentLogic.js +32 -0
  1201. package/out/src/types/data/genBlock/genCallComponentLogic.js.map +1 -0
  1202. package/out/src/types/data/genBlock/genCallInterface.d.ts +41 -0
  1203. package/out/src/types/data/genBlock/genCallInterface.js +86 -0
  1204. package/out/src/types/data/genBlock/genCallInterface.js.map +1 -0
  1205. package/out/src/types/data/genBlock/genCreateBlock.d.ts +10 -0
  1206. package/out/src/types/data/genBlock/genCreateBlock.js +313 -0
  1207. package/out/src/types/data/genBlock/genCreateBlock.js.map +1 -0
  1208. package/out/src/types/data/genBlock/genCurdBlock.d.ts +4 -0
  1209. package/out/src/types/data/genBlock/genCurdBlock.js +648 -0
  1210. package/out/src/types/data/genBlock/genCurdBlock.js.map +1 -0
  1211. package/out/src/types/data/genBlock/genCurdEditTableBlock.d.ts +3 -0
  1212. package/out/src/types/data/genBlock/genCurdEditTableBlock.js +578 -0
  1213. package/out/src/types/data/genBlock/genCurdEditTableBlock.js.map +1 -0
  1214. package/out/src/types/data/genBlock/genEditTableBlock.d.ts +234 -0
  1215. package/out/src/types/data/genBlock/genEditTableBlock.js +419 -0
  1216. package/out/src/types/data/genBlock/genEditTableBlock.js.map +1 -0
  1217. package/out/src/types/data/genBlock/genEnumSelectBlock.d.ts +10 -0
  1218. package/out/src/types/data/genBlock/genEnumSelectBlock.js +23 -0
  1219. package/out/src/types/data/genBlock/genEnumSelectBlock.js.map +1 -0
  1220. package/out/src/types/data/genBlock/genGetBlock.d.ts +6 -0
  1221. package/out/src/types/data/genBlock/genGetBlock.js +151 -0
  1222. package/out/src/types/data/genBlock/genGetBlock.js.map +1 -0
  1223. package/out/src/types/data/genBlock/genGridViewBlock.d.ts +136 -0
  1224. package/out/src/types/data/genBlock/genGridViewBlock.js +274 -0
  1225. package/out/src/types/data/genBlock/genGridViewBlock.js.map +1 -0
  1226. package/out/src/types/data/genBlock/genListViewBlock.d.ts +63 -0
  1227. package/out/src/types/data/genBlock/genListViewBlock.js +110 -0
  1228. package/out/src/types/data/genBlock/genListViewBlock.js.map +1 -0
  1229. package/out/src/types/data/genBlock/genQueryComponent.d.ts +336 -0
  1230. package/out/src/types/data/genBlock/genQueryComponent.js +526 -0
  1231. package/out/src/types/data/genBlock/genQueryComponent.js.map +1 -0
  1232. package/out/src/types/data/genBlock/genSelectBlock.d.ts +63 -0
  1233. package/out/src/types/data/genBlock/genSelectBlock.js +106 -0
  1234. package/out/src/types/data/genBlock/genSelectBlock.js.map +1 -0
  1235. package/out/src/types/data/genBlock/genTableBlock.d.ts +136 -0
  1236. package/out/src/types/data/genBlock/genTableBlock.js +270 -0
  1237. package/out/src/types/data/genBlock/genTableBlock.js.map +1 -0
  1238. package/out/src/types/data/genBlock/genUpdateBlock.d.ts +6 -0
  1239. package/out/src/types/data/genBlock/genUpdateBlock.js +384 -0
  1240. package/out/src/types/data/genBlock/genUpdateBlock.js.map +1 -0
  1241. package/out/src/types/data/genBlock/index.d.ts +17 -0
  1242. package/out/src/types/data/genBlock/index.js +31 -0
  1243. package/out/src/types/data/genBlock/index.js.map +1 -0
  1244. package/out/src/types/data/genBlock/utils.d.ts +99 -0
  1245. package/out/src/types/data/genBlock/utils.js +224 -0
  1246. package/out/src/types/data/genBlock/utils.js.map +1 -0
  1247. package/out/src/types/data/genericTypes.d.ts +40 -0
  1248. package/out/src/types/data/genericTypes.js +145 -0
  1249. package/out/src/types/data/genericTypes.js.map +1 -0
  1250. package/out/src/types/data/systemTypes.d.ts +9 -0
  1251. package/out/src/types/data/systemTypes.js +1563 -0
  1252. package/out/src/types/data/systemTypes.js.map +1 -0
  1253. package/out/src/types/decorators/index.d.ts +31 -0
  1254. package/out/src/types/decorators/index.js +121 -0
  1255. package/out/src/types/decorators/index.js.map +1 -0
  1256. package/out/src/types/enum.d.ts +6 -0
  1257. package/out/src/types/enum.js +11 -0
  1258. package/out/src/types/enum.js.map +1 -0
  1259. package/out/src/types/index.d.ts +145 -0
  1260. package/out/src/types/index.js +226 -0
  1261. package/out/src/types/index.js.map +1 -0
  1262. package/out/src/types/logic/BaseVariable.d.ts +75 -0
  1263. package/out/src/types/logic/BaseVariable.js +159 -0
  1264. package/out/src/types/logic/BaseVariable.js.map +1 -0
  1265. package/out/src/types/logic/Logic.d.ts +180 -0
  1266. package/out/src/types/logic/Logic.js +591 -0
  1267. package/out/src/types/logic/Logic.js.map +1 -0
  1268. package/out/src/types/logic/LogicItem.d.ts +320 -0
  1269. package/out/src/types/logic/LogicItem.js +1295 -0
  1270. package/out/src/types/logic/LogicItem.js.map +1 -0
  1271. package/out/src/types/logic/Param.d.ts +86 -0
  1272. package/out/src/types/logic/Param.js +367 -0
  1273. package/out/src/types/logic/Param.js.map +1 -0
  1274. package/out/src/types/logic/Return.d.ts +73 -0
  1275. package/out/src/types/logic/Return.js +313 -0
  1276. package/out/src/types/logic/Return.js.map +1 -0
  1277. package/out/src/types/logic/Variable.d.ts +72 -0
  1278. package/out/src/types/logic/Variable.js +309 -0
  1279. package/out/src/types/logic/Variable.js.map +1 -0
  1280. package/out/src/types/logic/expressions/MemberExpression.d.ts +23 -0
  1281. package/out/src/types/logic/expressions/MemberExpression.js +52 -0
  1282. package/out/src/types/logic/expressions/MemberExpression.js.map +1 -0
  1283. package/out/src/types/logic/expressions/NumericLiteral.d.ts +19 -0
  1284. package/out/src/types/logic/expressions/NumericLiteral.js +42 -0
  1285. package/out/src/types/logic/expressions/NumericLiteral.js.map +1 -0
  1286. package/out/src/types/logic/expressions/Unparsed.d.ts +19 -0
  1287. package/out/src/types/logic/expressions/Unparsed.js +42 -0
  1288. package/out/src/types/logic/expressions/Unparsed.js.map +1 -0
  1289. package/out/src/types/logic/nodes/BuiltInFuncParam.d.ts +27 -0
  1290. package/out/src/types/logic/nodes/BuiltInFuncParam.js +56 -0
  1291. package/out/src/types/logic/nodes/BuiltInFuncParam.js.map +1 -0
  1292. package/out/src/types/logic/nodes/BuiltInFunction.d.ts +24 -0
  1293. package/out/src/types/logic/nodes/BuiltInFunction.js +55 -0
  1294. package/out/src/types/logic/nodes/BuiltInFunction.js.map +1 -0
  1295. package/out/src/types/logic/nodes/CallConsoleLog.d.ts +19 -0
  1296. package/out/src/types/logic/nodes/CallConsoleLog.js +42 -0
  1297. package/out/src/types/logic/nodes/CallConsoleLog.js.map +1 -0
  1298. package/out/src/types/logic/nodes/CallInterParam.d.ts +23 -0
  1299. package/out/src/types/logic/nodes/CallInterParam.js +49 -0
  1300. package/out/src/types/logic/nodes/CallInterParam.js.map +1 -0
  1301. package/out/src/types/logic/nodes/CallInterface.d.ts +24 -0
  1302. package/out/src/types/logic/nodes/CallInterface.js +49 -0
  1303. package/out/src/types/logic/nodes/CallInterface.js.map +1 -0
  1304. package/out/src/types/logic/nodes/CallLogic.d.ts +24 -0
  1305. package/out/src/types/logic/nodes/CallLogic.js +55 -0
  1306. package/out/src/types/logic/nodes/CallLogic.js.map +1 -0
  1307. package/out/src/types/logic/nodes/CallMessageShow.d.ts +27 -0
  1308. package/out/src/types/logic/nodes/CallMessageShow.js +56 -0
  1309. package/out/src/types/logic/nodes/CallMessageShow.js.map +1 -0
  1310. package/out/src/types/logic/nodes/Destination.d.ts +32 -0
  1311. package/out/src/types/logic/nodes/Destination.js +73 -0
  1312. package/out/src/types/logic/nodes/Destination.js.map +1 -0
  1313. package/out/src/types/logic/nodes/DestinationParam.d.ts +24 -0
  1314. package/out/src/types/logic/nodes/DestinationParam.js +49 -0
  1315. package/out/src/types/logic/nodes/DestinationParam.js.map +1 -0
  1316. package/out/src/types/logic/nodes/JSBlock.d.ts +19 -0
  1317. package/out/src/types/logic/nodes/JSBlock.js +46 -0
  1318. package/out/src/types/logic/nodes/JSBlock.js.map +1 -0
  1319. package/out/src/types/logic/nodes/JSONDeserialize.d.ts +19 -0
  1320. package/out/src/types/logic/nodes/JSONDeserialize.js +42 -0
  1321. package/out/src/types/logic/nodes/JSONDeserialize.js.map +1 -0
  1322. package/out/src/types/logic/nodes/JSONSerialize.d.ts +19 -0
  1323. package/out/src/types/logic/nodes/JSONSerialize.js +42 -0
  1324. package/out/src/types/logic/nodes/JSONSerialize.js.map +1 -0
  1325. package/out/src/types/logic/nodes/ProcessOutcome.d.ts +27 -0
  1326. package/out/src/types/logic/nodes/ProcessOutcome.js +56 -0
  1327. package/out/src/types/logic/nodes/ProcessOutcome.js.map +1 -0
  1328. package/out/src/types/logic/tools.d.ts +15 -0
  1329. package/out/src/types/logic/tools.js +164 -0
  1330. package/out/src/types/logic/tools.js.map +1 -0
  1331. package/out/src/types/logic/translator.d.ts +1 -0
  1332. package/out/src/types/logic/translator.js +624 -0
  1333. package/out/src/types/logic/translator.js.map +1 -0
  1334. package/out/src/types/login.d.ts +7 -0
  1335. package/out/src/types/login.js +39 -0
  1336. package/out/src/types/login.js.map +1 -0
  1337. package/out/src/types/nuims/Nuims.d.ts +128 -0
  1338. package/out/src/types/nuims/Nuims.js +446 -0
  1339. package/out/src/types/nuims/Nuims.js.map +1 -0
  1340. package/out/src/types/page/Attr.d.ts +79 -0
  1341. package/out/src/types/page/Attr.js +217 -0
  1342. package/out/src/types/page/Attr.js.map +1 -0
  1343. package/out/src/types/page/Block.d.ts +65 -0
  1344. package/out/src/types/page/Block.js +82 -0
  1345. package/out/src/types/page/Block.js.map +1 -0
  1346. package/out/src/types/page/Directive.d.ts +78 -0
  1347. package/out/src/types/page/Directive.js +202 -0
  1348. package/out/src/types/page/Directive.js.map +1 -0
  1349. package/out/src/types/page/Element.d.ts +266 -0
  1350. package/out/src/types/page/Element.js +1418 -0
  1351. package/out/src/types/page/Element.js.map +1 -0
  1352. package/out/src/types/page/Event.d.ts +63 -0
  1353. package/out/src/types/page/Event.js +212 -0
  1354. package/out/src/types/page/Event.js.map +1 -0
  1355. package/out/src/types/page/Lifecycle.d.ts +58 -0
  1356. package/out/src/types/page/Lifecycle.js +192 -0
  1357. package/out/src/types/page/Lifecycle.js.map +1 -0
  1358. package/out/src/types/page/Page.d.ts +95 -0
  1359. package/out/src/types/page/Page.js +394 -0
  1360. package/out/src/types/page/Page.js.map +1 -0
  1361. package/out/src/types/page/View.d.ts +253 -0
  1362. package/out/src/types/page/View.js +1178 -0
  1363. package/out/src/types/page/View.js.map +1 -0
  1364. package/out/src/types/page/ViewParam.d.ts +73 -0
  1365. package/out/src/types/page/ViewParam.js +296 -0
  1366. package/out/src/types/page/ViewParam.js.map +1 -0
  1367. package/out/src/types/page/ViewVariable.d.ts +73 -0
  1368. package/out/src/types/page/ViewVariable.js +276 -0
  1369. package/out/src/types/page/ViewVariable.js.map +1 -0
  1370. package/out/src/types/permission/Permission.d.ts +41 -0
  1371. package/out/src/types/permission/Permission.js +122 -0
  1372. package/out/src/types/permission/Permission.js.map +1 -0
  1373. package/out/src/types/process/Process.d.ts +118 -0
  1374. package/out/src/types/process/Process.js +357 -0
  1375. package/out/src/types/process/Process.js.map +1 -0
  1376. package/out/src/types/process/ProcessComponent.d.ts +133 -0
  1377. package/out/src/types/process/ProcessComponent.js +339 -0
  1378. package/out/src/types/process/ProcessComponent.js.map +1 -0
  1379. package/out/src/types/process/ProcessComponentAttribute.d.ts +63 -0
  1380. package/out/src/types/process/ProcessComponentAttribute.js +163 -0
  1381. package/out/src/types/process/ProcessComponentAttribute.js.map +1 -0
  1382. package/out/src/types/process/ProcessComponentProperty.d.ts +37 -0
  1383. package/out/src/types/process/ProcessComponentProperty.js +81 -0
  1384. package/out/src/types/process/ProcessComponentProperty.js.map +1 -0
  1385. package/out/src/types/process/ProcessComponentReturn.d.ts +77 -0
  1386. package/out/src/types/process/ProcessComponentReturn.js +260 -0
  1387. package/out/src/types/process/ProcessComponentReturn.js.map +1 -0
  1388. package/out/src/types/process/ProcessComponentVariable.d.ts +78 -0
  1389. package/out/src/types/process/ProcessComponentVariable.js +252 -0
  1390. package/out/src/types/process/ProcessComponentVariable.js.map +1 -0
  1391. package/out/src/types/process/ProcessInterface.d.ts +112 -0
  1392. package/out/src/types/process/ProcessInterface.js +227 -0
  1393. package/out/src/types/process/ProcessInterface.js.map +1 -0
  1394. package/out/src/types/process/ProcessParam.d.ts +77 -0
  1395. package/out/src/types/process/ProcessParam.js +261 -0
  1396. package/out/src/types/process/ProcessParam.js.map +1 -0
  1397. package/out/src/types/process/ProcessProperty.d.ts +37 -0
  1398. package/out/src/types/process/ProcessProperty.js +81 -0
  1399. package/out/src/types/process/ProcessProperty.js.map +1 -0
  1400. package/out/src/types/process/ProcessReturn.d.ts +73 -0
  1401. package/out/src/types/process/ProcessReturn.js +237 -0
  1402. package/out/src/types/process/ProcessReturn.js.map +1 -0
  1403. package/out/src/types/utils/index.d.ts +26 -0
  1404. package/out/src/types/utils/index.js +90 -0
  1405. package/out/src/types/utils/index.js.map +1 -0
  1406. package/out/src/types/utils/logger.d.ts +3 -0
  1407. package/out/src/types/utils/logger.js +14 -0
  1408. package/out/src/types/utils/logger.js.map +1 -0
  1409. package/out/src/types/utils/string.d.ts +38 -0
  1410. package/out/src/types/utils/string.js +66 -0
  1411. package/out/src/types/utils/string.js.map +1 -0
  1412. package/out/src/types/utils/traverse.d.ts +35 -0
  1413. package/out/src/types/utils/traverse.js +126 -0
  1414. package/out/src/types/utils/traverse.js.map +1 -0
  1415. package/out/src/utils/index.d.ts +26 -0
  1416. package/out/src/utils/index.js +52 -0
  1417. package/out/src/utils/index.js.map +1 -0
  1418. package/out/src/utils/logger.d.ts +3 -0
  1419. package/out/src/utils/logger.js +11 -0
  1420. package/out/src/utils/logger.js.map +1 -0
  1421. package/out/src/utils/string.d.ts +38 -0
  1422. package/out/src/utils/string.js +66 -0
  1423. package/out/src/utils/string.js.map +1 -0
  1424. package/out/src/utils/traverse.d.ts +35 -0
  1425. package/out/src/utils/traverse.js +126 -0
  1426. package/out/src/utils/traverse.js.map +1 -0
  1427. package/out/test/units/baseTypes/StringLiteral.spec.d.ts +1 -0
  1428. package/out/test/units/baseTypes/StringLiteral.spec.js +71 -0
  1429. package/out/test/units/baseTypes/StringLiteral.spec.js.map +1 -0
  1430. package/out/test/units/baseTypes/new.spec.d.ts +1 -0
  1431. package/out/test/units/baseTypes/new.spec.js +33 -0
  1432. package/out/test/units/baseTypes/new.spec.js.map +1 -0
  1433. package/out/test/units/baseTypes/toEmbeddedTS.spec.d.ts +1 -0
  1434. package/out/test/units/baseTypes/toEmbeddedTS.spec.js +39 -0
  1435. package/out/test/units/baseTypes/toEmbeddedTS.spec.js.map +1 -0
  1436. package/out/test/units/config.spec.d.ts +1 -0
  1437. package/out/test/units/config.spec.js +12 -0
  1438. package/out/test/units/config.spec.js.map +1 -0
  1439. package/out/translator/index.d.ts +39 -0
  1440. package/out/translator/index.js +86 -0
  1441. package/out/translator/index.js.map +1 -0
  1442. package/out/translator/lsp.d.ts +45 -0
  1443. package/out/translator/lsp.js +6 -0
  1444. package/out/translator/lsp.js.map +1 -0
  1445. package/out/translator/tsp.d.ts +12 -0
  1446. package/out/translator/tsp.js +3 -0
  1447. package/out/translator/tsp.js.map +1 -0
  1448. package/out/types/app/App.d.ts +2 -5
  1449. package/out/types/app/App.js +2 -29
  1450. package/out/types/app/App.js.map +1 -1
  1451. package/out/types/app/Service.d.ts +0 -31
  1452. package/out/types/app/Service.js +4 -128
  1453. package/out/types/app/Service.js.map +1 -1
  1454. package/out/types/classMap.d.ts +4 -0
  1455. package/out/types/classMap.js +5 -0
  1456. package/out/types/classMap.js.map +1 -0
  1457. package/out/types/common/Vertex.d.ts +16 -34
  1458. package/out/types/common/Vertex.js +81 -63
  1459. package/out/types/common/Vertex.js.map +1 -1
  1460. package/out/types/config.d.ts +0 -1
  1461. package/out/types/config.js +0 -1
  1462. package/out/types/config.js.map +1 -1
  1463. package/out/types/data/Entity.d.ts +1 -19
  1464. package/out/types/data/Entity.js +2 -38
  1465. package/out/types/data/Entity.js.map +1 -1
  1466. package/out/types/data/EntityProperty.d.ts +0 -4
  1467. package/out/types/data/EntityProperty.js +0 -7
  1468. package/out/types/data/EntityProperty.js.map +1 -1
  1469. package/out/types/data/Enum.d.ts +0 -4
  1470. package/out/types/data/Enum.js +0 -7
  1471. package/out/types/data/Enum.js.map +1 -1
  1472. package/out/types/data/Interface.js +1 -2
  1473. package/out/types/data/Interface.js.map +1 -1
  1474. package/out/types/data/Structure.d.ts +0 -8
  1475. package/out/types/data/Structure.js +0 -19
  1476. package/out/types/data/Structure.js.map +1 -1
  1477. package/out/types/data/dataTypes.d.ts +1 -2
  1478. package/out/types/data/dataTypes.js +7 -41
  1479. package/out/types/data/dataTypes.js.map +1 -1
  1480. package/out/types/data/genBlock/builtInFunctions.json +0 -15
  1481. package/out/types/data/genBlock/genCreateBlock.js +5 -4
  1482. package/out/types/data/genBlock/genCreateBlock.js.map +1 -1
  1483. package/out/types/data/genBlock/genListViewBlock.js +1 -1
  1484. package/out/types/data/genBlock/genListViewBlock.js.map +1 -1
  1485. package/out/types/data/genBlock/genTableBlock.js +2 -2
  1486. package/out/types/data/genBlock/genTableBlock.js.map +1 -1
  1487. package/out/types/data/genBlock/genUpdateBlock.js +5 -4
  1488. package/out/types/data/genBlock/genUpdateBlock.js.map +1 -1
  1489. package/out/types/data/genBlock/index.d.ts +2 -2
  1490. package/out/types/data/genBlock/index.js +2 -2
  1491. package/out/types/data/genBlock/index.js.map +1 -1
  1492. package/out/types/data/genericTypes.d.ts +1 -1
  1493. package/out/types/data/genericTypes.js +2 -6
  1494. package/out/types/data/genericTypes.js.map +1 -1
  1495. package/out/types/data/systemTypes.js +0 -73
  1496. package/out/types/data/systemTypes.js.map +1 -1
  1497. package/out/types/decorators/index.d.ts +1 -1
  1498. package/out/types/decorators/index.js +7 -2
  1499. package/out/types/decorators/index.js.map +1 -1
  1500. package/out/types/index.d.ts +2 -5
  1501. package/out/types/index.js +5 -10
  1502. package/out/types/index.js.map +1 -1
  1503. package/out/types/logic/BreakPoint.d.ts +42 -0
  1504. package/out/types/logic/BreakPoint.js +155 -0
  1505. package/out/types/logic/BreakPoint.js.map +1 -0
  1506. package/out/types/logic/Debugger.d.ts +156 -0
  1507. package/out/types/logic/Debugger.js +912 -0
  1508. package/out/types/logic/Debugger.js.map +1 -0
  1509. package/out/types/logic/Logic.d.ts +0 -20
  1510. package/out/types/logic/Logic.js +1 -47
  1511. package/out/types/logic/Logic.js.map +1 -1
  1512. package/out/types/logic/LogicItem.d.ts +2 -2
  1513. package/out/types/logic/LogicItem.js +48 -112
  1514. package/out/types/logic/LogicItem.js.map +1 -1
  1515. package/out/types/logic/Param.js +1 -1
  1516. package/out/types/logic/Param.js.map +1 -1
  1517. package/out/types/logic/translator.js +51 -74
  1518. package/out/types/logic/translator.js.map +1 -1
  1519. package/out/types/page/Element.js +9 -21
  1520. package/out/types/page/Element.js.map +1 -1
  1521. package/out/types/page/Page.js +0 -7
  1522. package/out/types/page/Page.js.map +1 -1
  1523. package/out/types/page/View.d.ts +1 -1
  1524. package/out/types/page/View.js +1 -29
  1525. package/out/types/page/View.js.map +1 -1
  1526. package/out/types/process/Process.js +3 -3
  1527. package/out/types/process/Process.js.map +1 -1
  1528. package/out/types/process/ProcessComponent.js +1 -1
  1529. package/out/types/process/ProcessComponent.js.map +1 -1
  1530. package/out/types/process/ProcessParam.js +1 -1
  1531. package/out/types/process/ProcessParam.js.map +1 -1
  1532. package/out/types/typeCheck.js +2 -12
  1533. package/out/types/typeCheck.js.map +1 -1
  1534. package/out/types/utils/string.d.ts +4 -0
  1535. package/out/types/utils/string.js +4 -0
  1536. package/out/types/utils/string.js.map +1 -1
  1537. package/package.json +10 -14
  1538. package/src/automate/engine/index.js +308 -0
  1539. package/src/automate/engine/utils.js +312 -0
  1540. package/src/common/BaseNode.ts +635 -0
  1541. package/src/common/Command.ts +27 -0
  1542. package/src/common/ComponentAPI.ts +103 -0
  1543. package/src/common/EventEmitter.ts +86 -0
  1544. package/src/common/Messager.ts +225 -0
  1545. package/src/common/classMap.ts +3 -0
  1546. package/src/common/index.ts +4 -0
  1547. package/src/concepts/App__.ts +2492 -0
  1548. package/src/concepts/Argument__.ts +191 -0
  1549. package/src/concepts/Assignment__.ts +235 -0
  1550. package/src/concepts/Attribute__.ts +251 -0
  1551. package/src/concepts/BinaryExpression__.ts +270 -0
  1552. package/src/concepts/BindAttribute__.ts +500 -0
  1553. package/src/concepts/BindDirective__.ts +238 -0
  1554. package/src/concepts/BindEvent__.ts +339 -0
  1555. package/src/concepts/BooleanLiteral__.ts +82 -0
  1556. package/src/concepts/CallFunction__.ts +307 -0
  1557. package/src/concepts/CallInterface__.ts +295 -0
  1558. package/src/concepts/CallLogic__.ts +390 -0
  1559. package/src/concepts/CallQueryComponent__.ts +1006 -0
  1560. package/src/concepts/Comment__.ts +104 -0
  1561. package/src/concepts/CompletionProperty__.ts +244 -0
  1562. package/src/concepts/Constant__.ts +243 -0
  1563. package/src/concepts/DataElement__.ts +134 -0
  1564. package/src/concepts/Destination__.ts +316 -0
  1565. package/src/concepts/End__.ts +108 -0
  1566. package/src/concepts/EntityIndex__.ts +197 -0
  1567. package/src/concepts/EntityProperty__.ts +497 -0
  1568. package/src/concepts/Entity__.ts +695 -0
  1569. package/src/concepts/EnumItem__.ts +139 -0
  1570. package/src/concepts/Enum__.ts +337 -0
  1571. package/src/concepts/Event__.ts +316 -0
  1572. package/src/concepts/ForEachStatement__.ts +562 -0
  1573. package/src/concepts/Function__.ts +915 -0
  1574. package/src/concepts/Identifier__.ts +171 -0
  1575. package/src/concepts/IfStatement__.ts +478 -0
  1576. package/src/concepts/InterfaceParam__.ts +305 -0
  1577. package/src/concepts/Interface__.ts +610 -0
  1578. package/src/concepts/JSBlock__.ts +113 -0
  1579. package/src/concepts/LogicItem__.ts +232 -0
  1580. package/src/concepts/Logic__.ts +1487 -0
  1581. package/src/concepts/MemberExpression__.ts +240 -0
  1582. package/src/concepts/Module__.ts +1718 -0
  1583. package/src/concepts/Namespace__.ts +2517 -0
  1584. package/src/concepts/NullLiteral__.ts +78 -0
  1585. package/src/concepts/NumericLiteral__.ts +182 -0
  1586. package/src/concepts/Param__.ts +364 -0
  1587. package/src/concepts/Point__.ts +84 -0
  1588. package/src/concepts/ProcessComponent__.ts +502 -0
  1589. package/src/concepts/ProcessElement__.ts +1370 -0
  1590. package/src/concepts/ProcessOutcome__.ts +97 -0
  1591. package/src/concepts/Process__.ts +1113 -0
  1592. package/src/concepts/QueryAggregateExpression__.ts +197 -0
  1593. package/src/concepts/QueryFieldExpression__.ts +133 -0
  1594. package/src/concepts/QueryFromExpression__.ts +261 -0
  1595. package/src/concepts/QueryGroupByExpression__.ts +144 -0
  1596. package/src/concepts/QueryJoinExpression__.ts +448 -0
  1597. package/src/concepts/QueryLimitExpression__.ts +193 -0
  1598. package/src/concepts/QueryOrderByExpression__.ts +207 -0
  1599. package/src/concepts/QuerySelectExpression__.ts +285 -0
  1600. package/src/concepts/Rect__.ts +96 -0
  1601. package/src/concepts/Return__.ts +334 -0
  1602. package/src/concepts/Role__.ts +139 -0
  1603. package/src/concepts/Slot__.ts +121 -0
  1604. package/src/concepts/SqlQueryComponent__.ts +145 -0
  1605. package/src/concepts/Start__.ts +86 -0
  1606. package/src/concepts/StringLiteral__.ts +140 -0
  1607. package/src/concepts/StructureProperty__.ts +327 -0
  1608. package/src/concepts/Structure__.ts +559 -0
  1609. package/src/concepts/SwitchCase__.ts +363 -0
  1610. package/src/concepts/SwitchStatement__.ts +261 -0
  1611. package/src/concepts/Theme__.ts +94 -0
  1612. package/src/concepts/Transactional__.ts +164 -0
  1613. package/src/concepts/TypeAnnotation__.ts +373 -0
  1614. package/src/concepts/TypeParam__.ts +68 -0
  1615. package/src/concepts/UnaryExpression__.ts +177 -0
  1616. package/src/concepts/Unparsed__.ts +98 -0
  1617. package/src/concepts/UseComponent__.ts +84 -0
  1618. package/src/concepts/ValidationRule__.ts +292 -0
  1619. package/src/concepts/Variable__.ts +312 -0
  1620. package/src/concepts/ViewComponent__.ts +1098 -0
  1621. package/src/concepts/ViewElement__.ts +1562 -0
  1622. package/src/concepts/View__.ts +1842 -0
  1623. package/src/concepts/WhileStatement__.ts +323 -0
  1624. package/src/concepts/basics/stdlib/index.ts +20 -0
  1625. package/src/concepts/basics/stdlib/nasl.collection.ts +54 -0
  1626. package/src/concepts/basics/stdlib/nasl.core.ts +12 -0
  1627. package/src/concepts/basics/stdlib/nasl.interface.ts +43 -0
  1628. package/src/concepts/basics/stdlib/nasl.process.ts +47 -0
  1629. package/src/concepts/basics/stdlib/nasl.ui.ts +84 -0
  1630. package/src/concepts/basics/stdlib/nasl.util.ts +585 -0
  1631. package/src/concepts/basics/stdlib/nasl.validate.ts +523 -0
  1632. package/src/concepts/basics/stdlib/reference2TypeAnnotationList.ts +26 -0
  1633. package/src/concepts/basics/types/coreTypeList.ts +14 -0
  1634. package/src/concepts/basics/types/index.ts +20 -0
  1635. package/src/concepts/index.ts +5 -0
  1636. package/src/concepts/index__.ts +77 -0
  1637. package/src/config.ts +80 -0
  1638. package/src/decorators/index.ts +153 -0
  1639. package/src/generator/compileComponent.ts +19 -0
  1640. package/src/generator/genBundleFiles.ts +258 -0
  1641. package/src/generator/genHash.ts +13 -0
  1642. package/src/generator/index.ts +4 -0
  1643. package/src/generator/styleReplacer.ts +41 -0
  1644. package/src/index.ts +10 -0
  1645. package/src/manager/diagnostic.ts +129 -0
  1646. package/src/manager/history.ts +0 -0
  1647. package/src/manager/problem.ts +0 -0
  1648. package/src/server/entity2LogicNamespace.ts +188 -0
  1649. package/src/server/getFunctions.ts +10 -0
  1650. package/src/server/getInterfaces.ts +47 -0
  1651. package/src/server/getLogics.ts +94 -0
  1652. package/src/server/getMemberIdentifier.ts +110 -0
  1653. package/src/server/getProcessComponents.ts +9 -0
  1654. package/src/server/getProcesses.ts +129 -0
  1655. package/src/server/getValidates.ts +10 -0
  1656. package/src/server/index.ts +21 -0
  1657. package/src/server/naslServer.ts +1194 -0
  1658. package/src/server/process2LogicNamespace.ts +20 -0
  1659. package/src/server/translator.ts +148 -0
  1660. package/src/service/app/index.js +1 -1
  1661. package/src/service/assets/index.js +1 -1
  1662. package/src/service/{create → creator}/add.configs.js +0 -0
  1663. package/src/service/{create → creator}/errHandles.js +0 -0
  1664. package/src/service/creator/index.js +80 -0
  1665. package/src/service/storage/index.ts +6 -0
  1666. package/src/service/storage/init.ts +160 -0
  1667. package/src/service/storage/jsoner.ts +139 -0
  1668. package/src/service/storage/map.ts +57 -0
  1669. package/src/service/storage/storagePoint.ts +73 -0
  1670. package/src/service/video/BaseService.js +68 -0
  1671. package/src/service/video/MainCallbackService.js +207 -0
  1672. package/src/service/video/VideoTranscribe.js +102 -0
  1673. package/src/service/video/publishService.js +61 -0
  1674. package/src/templator/builtInFunctions.json +1 -0
  1675. package/src/templator/genCallComponentLogic.ts +27 -0
  1676. package/src/templator/genCreateBlock.ts +281 -0
  1677. package/src/templator/genCurdEditMultipleKeyBlock.ts +432 -0
  1678. package/src/templator/genCurdMultipleKeyBlock.ts +624 -0
  1679. package/src/templator/genEditTableBlock.ts +284 -0
  1680. package/src/templator/genEnumSelectBlock.ts +22 -0
  1681. package/src/templator/genGetBlock.ts +121 -0
  1682. package/src/templator/genGridViewBlock.ts +306 -0
  1683. package/src/templator/genListViewBlock.ts +122 -0
  1684. package/src/templator/genQueryComponent.ts +287 -0
  1685. package/src/templator/genSelectBlock.ts +125 -0
  1686. package/src/templator/genTableBlock.ts +295 -0
  1687. package/src/templator/genUpdateBlock.ts +324 -0
  1688. package/src/templator/index.ts +18 -0
  1689. package/src/templator/utils.ts +640 -0
  1690. package/src/terms/LEVEL_NAME_MAP.ts +31 -0
  1691. package/src/test/examples/app1.json +17 -0
  1692. package/src/test/fixtures/env.ts +4 -4
  1693. package/src/test/integration/connect-create-file.ts +14 -0
  1694. package/src/test/integration/connect-file.ts +24 -0
  1695. package/src/test/units/baseTypes/Assignment.spec.ts +20 -0
  1696. package/src/test/units/baseTypes/CallLogic.spec.ts +22 -0
  1697. package/src/test/units/baseTypes/StringLiteral.spec.ts +60 -0
  1698. package/src/test/units/baseTypes/new.spec.ts +13 -0
  1699. package/src/test/units/common/Vertex.spec.ts +17 -19
  1700. package/src/test/units/data/Entity.spec.ts +1 -1
  1701. package/src/test/units/login.spec.ts +3 -3
  1702. package/src/test/units/page/Block.spec.ts +12 -12
  1703. package/src/test/units/page/Element.spec.ts +11 -11
  1704. package/src/test/units/temp/temp.spec.ts +2 -2
  1705. package/src/translator/index.ts +131 -0
  1706. package/src/translator/lsp.ts +50 -0
  1707. package/src/translator/tsp.ts +14 -0
  1708. package/src/utils/index.ts +52 -0
  1709. package/src/utils/logger.ts +8 -0
  1710. package/src/utils/string.ts +60 -0
  1711. package/src/utils/traverse.ts +152 -0
  1712. package/tsconfig.json +6 -13
  1713. package/analysis/mergeBlock/README.md +0 -14
  1714. package/analysis/mergeBlock/raw2.json +0 -2522
  1715. package/analysis/mergeBlock/raw3.json +0 -505
  1716. package/analysis/mergeBlock/req2.json +0 -2219
  1717. package/analysis/mergeBlock/req3.json +0 -462
  1718. package/analysis/mergeBlock/script.js +0 -159
  1719. package/docs/assets/css/main.css +0 -2638
  1720. package/docs/assets/js/main.js +0 -248
  1721. package/docs/assets/js/search.js +0 -1
  1722. package/docs/classes/app_app.app.html +0 -1359
  1723. package/docs/classes/app_service.microservice.html +0 -1572
  1724. package/docs/classes/app_service.service.html +0 -1233
  1725. package/docs/classes/app_service.webservice.html +0 -1635
  1726. package/docs/classes/common_eventemitter.eventemitter.html +0 -387
  1727. package/docs/classes/common_vertex.vertex.html +0 -1086
  1728. package/docs/classes/data_datanode.datanode.html +0 -1157
  1729. package/docs/classes/data_entity.entity.html +0 -1656
  1730. package/docs/classes/data_entityproperty.entityproperty.html +0 -1903
  1731. package/docs/classes/data_enum.enum.html +0 -1402
  1732. package/docs/classes/data_enumitem.enumitem.html +0 -1252
  1733. package/docs/classes/data_interface.interface.html +0 -1673
  1734. package/docs/classes/data_structure.structure.html +0 -1427
  1735. package/docs/classes/data_structureproperty.structureproperty.html +0 -1656
  1736. package/docs/classes/logic_basevariable.basevariable.html +0 -1261
  1737. package/docs/classes/logic_logic.logic.html +0 -1639
  1738. package/docs/classes/logic_logicitem.expressionnode.html +0 -1982
  1739. package/docs/classes/logic_logicitem.logicitem.html +0 -1828
  1740. package/docs/classes/logic_logicitem.logicnode.html +0 -2229
  1741. package/docs/classes/logic_param.param.html +0 -1707
  1742. package/docs/classes/logic_return.return.html +0 -1605
  1743. package/docs/classes/logic_variable.variable.html +0 -1631
  1744. package/docs/classes/nuims_nuims.nuims.html +0 -596
  1745. package/docs/classes/page_attr.attr.html +0 -1335
  1746. package/docs/classes/page_block.block.html +0 -1272
  1747. package/docs/classes/page_directive.directive.html +0 -1350
  1748. package/docs/classes/page_element.element.html +0 -2118
  1749. package/docs/classes/page_event.event.html +0 -1284
  1750. package/docs/classes/page_lifecycle.lifecycle.html +0 -1286
  1751. package/docs/classes/page_page.page.html +0 -1389
  1752. package/docs/classes/page_view.view.html +0 -2299
  1753. package/docs/classes/page_viewparam.viewparam.html +0 -1727
  1754. package/docs/classes/page_viewvariable.viewvariable.html +0 -1668
  1755. package/docs/classes/process_process.process.html +0 -1532
  1756. package/docs/classes/process_processcomponent.processcomponent.html +0 -1589
  1757. package/docs/classes/process_processcomponentattribute.processcomponentattribute.html +0 -1236
  1758. package/docs/classes/process_processcomponentproperty.processcomponentproperty.html +0 -1727
  1759. package/docs/classes/process_processcomponentreturn.processcomponentreturn.html +0 -1704
  1760. package/docs/classes/process_processcomponentvariable.processcomponentvariable.html +0 -1679
  1761. package/docs/classes/process_processinterface.processinterface.html +0 -1462
  1762. package/docs/classes/process_processparam.processparam.html +0 -1778
  1763. package/docs/classes/process_processproperty.processproperty.html +0 -1727
  1764. package/docs/classes/process_processreturn.processreturn.html +0 -1678
  1765. package/docs/enums/app_service.service_type.html +0 -186
  1766. package/docs/enums/data_basictypes.basic_type.html +0 -312
  1767. package/docs/enums/index.level_enum.html +0 -655
  1768. package/docs/enums/logic_logicitem.logic_type.html +0 -441
  1769. package/docs/interfaces/app_service.assetsinfo.html +0 -209
  1770. package/docs/interfaces/common_packagejson.default.html +0 -431
  1771. package/docs/interfaces/data_entity.resolver.html +0 -228
  1772. package/docs/interfaces/data_entityproperty.display.html +0 -214
  1773. package/docs/interfaces/data_schema.arrayschema.html +0 -306
  1774. package/docs/interfaces/data_schema.baseschema.html +0 -361
  1775. package/docs/interfaces/data_schema.basicrefschema.html +0 -362
  1776. package/docs/interfaces/data_schema.basicschema.html +0 -334
  1777. package/docs/interfaces/data_schema.booleanschema.html +0 -306
  1778. package/docs/interfaces/data_schema.enumitemschema.html +0 -225
  1779. package/docs/interfaces/data_schema.enumschema.html +0 -306
  1780. package/docs/interfaces/data_schema.integerschema.html +0 -334
  1781. package/docs/interfaces/data_schema.mapschema.html +0 -320
  1782. package/docs/interfaces/data_schema.numberschema.html +0 -334
  1783. package/docs/interfaces/data_schema.objectschema.html +0 -313
  1784. package/docs/interfaces/data_schema.refschema.html +0 -332
  1785. package/docs/interfaces/data_schema.schema.html +0 -511
  1786. package/docs/interfaces/data_schema.setschema.html +0 -306
  1787. package/docs/interfaces/data_schema.stringschema.html +0 -334
  1788. package/docs/interfaces/history.historyrecord.html +0 -183
  1789. package/docs/interfaces/index.arrayschema.html +0 -261
  1790. package/docs/interfaces/index.baseschema.html +0 -236
  1791. package/docs/interfaces/index.basicrefschema.html +0 -317
  1792. package/docs/interfaces/index.basicschema.html +0 -289
  1793. package/docs/interfaces/index.booleanschema.html +0 -261
  1794. package/docs/interfaces/index.enumitemschema.html +0 -180
  1795. package/docs/interfaces/index.enumschema.html +0 -261
  1796. package/docs/interfaces/index.integerschema.html +0 -289
  1797. package/docs/interfaces/index.mapschema.html +0 -275
  1798. package/docs/interfaces/index.numberschema.html +0 -289
  1799. package/docs/interfaces/index.objectschema.html +0 -261
  1800. package/docs/interfaces/index.refschema.html +0 -287
  1801. package/docs/interfaces/index.schema.html +0 -459
  1802. package/docs/interfaces/index.setschema.html +0 -261
  1803. package/docs/interfaces/index.stringschema.html +0 -289
  1804. package/docs/interfaces/page_element.elementtovueoptions.html +0 -283
  1805. package/docs/interfaces/typecheck.typecheckrecord.html +0 -211
  1806. package/docs/interfaces/utils.inode.html +0 -212
  1807. package/docs/interfaces/utils.inodeinfo.html +0 -295
  1808. package/docs/interfaces/utils_traverse.inode.html +0 -191
  1809. package/docs/interfaces/utils_traverse.inodeinfo.html +0 -274
  1810. package/docs/modules/app_app.html +0 -149
  1811. package/docs/modules/app_service.html +0 -175
  1812. package/docs/modules/cachedata.html +0 -198
  1813. package/docs/modules/common_eventemitter.html +0 -192
  1814. package/docs/modules/common_packagejson.html +0 -132
  1815. package/docs/modules/common_vertex.html +0 -149
  1816. package/docs/modules/config.html +0 -168
  1817. package/docs/modules/data_basictypes.html +0 -271
  1818. package/docs/modules/data_datanode.html +0 -149
  1819. package/docs/modules/data_datatypes.html +0 -196
  1820. package/docs/modules/data_datatypeutils.html +0 -430
  1821. package/docs/modules/data_entity.html +0 -158
  1822. package/docs/modules/data_entityproperty.html +0 -158
  1823. package/docs/modules/data_entityutils.html +0 -342
  1824. package/docs/modules/data_enum.html +0 -149
  1825. package/docs/modules/data_enumitem.html +0 -149
  1826. package/docs/modules/data_interface.html +0 -149
  1827. package/docs/modules/data_schema.html +0 -205
  1828. package/docs/modules/data_structure.html +0 -149
  1829. package/docs/modules/data_structureproperty.html +0 -149
  1830. package/docs/modules/data_systemtypes.html +0 -167
  1831. package/docs/modules/decorators.html +0 -333
  1832. package/docs/modules/eventbus.html +0 -116
  1833. package/docs/modules/generator.html +0 -749
  1834. package/docs/modules/generator_data.html +0 -495
  1835. package/docs/modules/generator_hotreload.html +0 -200
  1836. package/docs/modules/generator_load.html +0 -247
  1837. package/docs/modules/generator_page.html +0 -200
  1838. package/docs/modules/history.html +0 -200
  1839. package/docs/modules/index.html +0 -1163
  1840. package/docs/modules/logic_basevariable.html +0 -238
  1841. package/docs/modules/logic_callinterface.html +0 -116
  1842. package/docs/modules/logic_logic.html +0 -149
  1843. package/docs/modules/logic_logicitem.html +0 -220
  1844. package/docs/modules/logic_param.html +0 -149
  1845. package/docs/modules/logic_return.html +0 -149
  1846. package/docs/modules/logic_tools.html +0 -326
  1847. package/docs/modules/logic_translator.html +0 -158
  1848. package/docs/modules/logic_variable.html +0 -149
  1849. package/docs/modules/nuims_nuims.html +0 -149
  1850. package/docs/modules/page_attr.html +0 -149
  1851. package/docs/modules/page_block.html +0 -149
  1852. package/docs/modules/page_directive.html +0 -149
  1853. package/docs/modules/page_element.html +0 -158
  1854. package/docs/modules/page_event.html +0 -149
  1855. package/docs/modules/page_lifecycle.html +0 -149
  1856. package/docs/modules/page_page.html +0 -149
  1857. package/docs/modules/page_view.html +0 -149
  1858. package/docs/modules/page_viewparam.html +0 -149
  1859. package/docs/modules/page_viewvariable.html +0 -149
  1860. package/docs/modules/process_process.html +0 -149
  1861. package/docs/modules/process_processcomponent.html +0 -149
  1862. package/docs/modules/process_processcomponentattribute.html +0 -149
  1863. package/docs/modules/process_processcomponentproperty.html +0 -149
  1864. package/docs/modules/process_processcomponentreturn.html +0 -149
  1865. package/docs/modules/process_processcomponentvariable.html +0 -149
  1866. package/docs/modules/process_processinterface.html +0 -149
  1867. package/docs/modules/process_processparam.html +0 -149
  1868. package/docs/modules/process_processproperty.html +0 -149
  1869. package/docs/modules/process_processreturn.html +0 -149
  1870. package/docs/modules/typecheck.html +0 -269
  1871. package/docs/modules/utils.html +0 -536
  1872. package/docs/modules/utils_logger.html +0 -172
  1873. package/docs/modules/utils_string.html +0 -347
  1874. package/docs/modules/utils_traverse.html +0 -248
  1875. package/index.js +0 -12
  1876. package/module/base.js +0 -11
  1877. package/out/service/logic/checktypeSocket.d.ts +0 -5
  1878. package/out/service/logic/checktypeSocket.js +0 -55
  1879. package/out/service/logic/checktypeSocket.js.map +0 -1
  1880. package/out/types/data/Module.d.ts +0 -34
  1881. package/out/types/data/Module.js +0 -53
  1882. package/out/types/data/Module.js.map +0 -1
  1883. package/out/types/data/genBlock/genCurdEditMultipleKeyBlock.d.ts +0 -7
  1884. package/out/types/data/genBlock/genCurdEditMultipleKeyBlock.js +0 -470
  1885. package/out/types/data/genBlock/genCurdEditMultipleKeyBlock.js.map +0 -1
  1886. package/out/types/data/genBlock/genCurdMultipleKeyBlock.d.ts +0 -9
  1887. package/out/types/data/genBlock/genCurdMultipleKeyBlock.js +0 -662
  1888. package/out/types/data/genBlock/genCurdMultipleKeyBlock.js.map +0 -1
  1889. package/spec/conceptMap.json +0 -3310
  1890. package/spec/spec.yaml +0 -416
  1891. package/spec-build/index.ts +0 -98
  1892. package/src/routes.map.js +0 -5
  1893. package/src/service/common/findUsage.js +0 -8
  1894. package/src/service/common/index.js +0 -6
  1895. package/src/service/common/preprocess.js +0 -54
  1896. package/src/service/common/schema.js +0 -9
  1897. package/src/service/config/api.js +0 -32
  1898. package/src/service/config/index.js +0 -6
  1899. package/src/service/create/index.js +0 -80
  1900. package/src/service/data/api.js +0 -33
  1901. package/src/service/data/entity.js +0 -101
  1902. package/src/service/data/enum.js +0 -53
  1903. package/src/service/data/enumProperty.js +0 -20
  1904. package/src/service/data/generic.js +0 -8
  1905. package/src/service/data/index.js +0 -18
  1906. package/src/service/data/interface.js +0 -56
  1907. package/src/service/data/structure.js +0 -75
  1908. package/src/service/developPermission/api.js +0 -37
  1909. package/src/service/developPermission/index.js +0 -13
  1910. package/src/service/logic/checktypeSocket.js +0 -49
  1911. package/src/service/logic/index.js +0 -14
  1912. package/src/service/logic/logic.js +0 -121
  1913. package/src/service/logic/param.js +0 -26
  1914. package/src/service/modules/api.js +0 -20
  1915. package/src/service/modules/index.js +0 -6
  1916. package/src/service/nuims/api.js +0 -192
  1917. package/src/service/nuims/index.js +0 -13
  1918. package/src/service/page/api.js +0 -1374
  1919. package/src/service/page/attribute.js +0 -20
  1920. package/src/service/page/directive.js +0 -20
  1921. package/src/service/page/element.js +0 -40
  1922. package/src/service/page/event.js +0 -20
  1923. package/src/service/page/index.js +0 -19
  1924. package/src/service/page/lifecycle.js +0 -20
  1925. package/src/service/page/templates.ts +0 -72
  1926. package/src/service/page/view.js +0 -116
  1927. package/src/service/permission/api.js +0 -38
  1928. package/src/service/permission/index.js +0 -13
  1929. package/src/service/process/api.js +0 -92
  1930. package/src/service/process/index.js +0 -6
  1931. package/src/service/undoredo/api.js +0 -26
  1932. package/src/service/undoredo/index.js +0 -6
  1933. package/src/service/webFile/api.js +0 -32
  1934. package/src/service/webFile/index.d.tmp +0 -62
  1935. package/src/service/webFile/index.js +0 -28
  1936. package/src/service/webFile/loadCache.js +0 -14
  1937. package/src/test/units/app/App.spec.ts +0 -16
  1938. package/src/test/units/app/Service.spec.ts +0 -31
  1939. package/src/types/app/App.ts +0 -349
  1940. package/src/types/app/History.ts +0 -389
  1941. package/src/types/app/Service.ts +0 -1036
  1942. package/src/types/cache.ts +0 -50
  1943. package/src/types/cacheData.ts +0 -33
  1944. package/src/types/common/ComponentAPI.ts +0 -103
  1945. package/src/types/common/EventEmitter.ts +0 -56
  1946. package/src/types/common/PackageJSON.ts +0 -22
  1947. package/src/types/common/Vertex.ts +0 -296
  1948. package/src/types/config.ts +0 -23
  1949. package/src/types/data/DataNode.ts +0 -37
  1950. package/src/types/data/Entity.ts +0 -556
  1951. package/src/types/data/EntityIndex.ts +0 -238
  1952. package/src/types/data/EntityProperty.ts +0 -524
  1953. package/src/types/data/Enum.ts +0 -245
  1954. package/src/types/data/EnumItem.ts +0 -156
  1955. package/src/types/data/GlobalLogicNode.ts +0 -208
  1956. package/src/types/data/Interface.ts +0 -438
  1957. package/src/types/data/Module.ts +0 -51
  1958. package/src/types/data/Schema.ts +0 -133
  1959. package/src/types/data/Structure.ts +0 -315
  1960. package/src/types/data/StructureProperty.ts +0 -332
  1961. package/src/types/data/basicTypes.ts +0 -76
  1962. package/src/types/data/dataTypeUtils.ts +0 -426
  1963. package/src/types/data/dataTypes.ts +0 -88
  1964. package/src/types/data/entityUtils.ts +0 -681
  1965. package/src/types/data/genBlock/builtInFunctions.json +0 -560
  1966. package/src/types/data/genBlock/genCallComponentLogic.ts +0 -28
  1967. package/src/types/data/genBlock/genCallInterface.ts +0 -87
  1968. package/src/types/data/genBlock/genCreateBlock.ts +0 -305
  1969. package/src/types/data/genBlock/genCurdEditMultipleKeyBlock.ts +0 -468
  1970. package/src/types/data/genBlock/genCurdMultipleKeyBlock.ts +0 -665
  1971. package/src/types/data/genBlock/genEditTableBlock.ts +0 -470
  1972. package/src/types/data/genBlock/genEnumSelectBlock.ts +0 -21
  1973. package/src/types/data/genBlock/genGetBlock.ts +0 -160
  1974. package/src/types/data/genBlock/genGridViewBlock.ts +0 -316
  1975. package/src/types/data/genBlock/genListViewBlock.ts +0 -130
  1976. package/src/types/data/genBlock/genQueryComponent.ts +0 -548
  1977. package/src/types/data/genBlock/genSelectBlock.ts +0 -123
  1978. package/src/types/data/genBlock/genTableBlock.ts +0 -315
  1979. package/src/types/data/genBlock/genUpdateBlock.ts +0 -389
  1980. package/src/types/data/genBlock/index.ts +0 -20
  1981. package/src/types/data/genBlock/utils.ts +0 -252
  1982. package/src/types/data/genericTypes.ts +0 -151
  1983. package/src/types/data/systemTypes.ts +0 -1635
  1984. package/src/types/decorators/index.ts +0 -52
  1985. package/src/types/enum.ts +0 -6
  1986. package/src/types/generator/data.ts +0 -206
  1987. package/src/types/generator/hotReload.ts +0 -41
  1988. package/src/types/generator/index.ts +0 -4
  1989. package/src/types/generator/load.ts +0 -97
  1990. package/src/types/generator/page.ts +0 -37
  1991. package/src/types/history.ts +0 -14
  1992. package/src/types/index.ts +0 -167
  1993. package/src/types/logic/BaseVariable.ts +0 -130
  1994. package/src/types/logic/Logic.ts +0 -591
  1995. package/src/types/logic/LogicItem.ts +0 -1370
  1996. package/src/types/logic/Param.ts +0 -336
  1997. package/src/types/logic/Return.ts +0 -292
  1998. package/src/types/logic/Variable.ts +0 -288
  1999. package/src/types/logic/expressions/BinaryExpression.ts +0 -35
  2000. package/src/types/logic/expressions/BooleanLiteral.ts +0 -25
  2001. package/src/types/logic/expressions/Identifier.ts +0 -36
  2002. package/src/types/logic/expressions/LogicalExpression.ts +0 -35
  2003. package/src/types/logic/expressions/MemberExpression.ts +0 -33
  2004. package/src/types/logic/expressions/NullLiteral.ts +0 -20
  2005. package/src/types/logic/expressions/NumericLiteral.ts +0 -25
  2006. package/src/types/logic/expressions/StringLiteral.ts +0 -25
  2007. package/src/types/logic/expressions/UnaryExpression.ts +0 -30
  2008. package/src/types/logic/expressions/Unparsed.ts +0 -25
  2009. package/src/types/logic/nodes/AssignmentExpression.ts +0 -30
  2010. package/src/types/logic/nodes/BuiltInFuncParam.ts +0 -35
  2011. package/src/types/logic/nodes/BuiltInFunction.ts +0 -39
  2012. package/src/types/logic/nodes/CallConsoleLog.ts +0 -25
  2013. package/src/types/logic/nodes/CallGraphQL.ts +0 -36
  2014. package/src/types/logic/nodes/CallInterParam.ts +0 -30
  2015. package/src/types/logic/nodes/CallInterface.ts +0 -31
  2016. package/src/types/logic/nodes/CallLogic.ts +0 -39
  2017. package/src/types/logic/nodes/CallMessageShow.ts +0 -35
  2018. package/src/types/logic/nodes/Comment.ts +0 -25
  2019. package/src/types/logic/nodes/CronJob.ts +0 -25
  2020. package/src/types/logic/nodes/DBQuery.ts +0 -25
  2021. package/src/types/logic/nodes/Destination.ts +0 -52
  2022. package/src/types/logic/nodes/DestinationParam.ts +0 -31
  2023. package/src/types/logic/nodes/End.ts +0 -21
  2024. package/src/types/logic/nodes/ForEachStatement.ts +0 -52
  2025. package/src/types/logic/nodes/IfStatement.ts +0 -35
  2026. package/src/types/logic/nodes/JSBlock.ts +0 -29
  2027. package/src/types/logic/nodes/JSONDeserialize.ts +0 -25
  2028. package/src/types/logic/nodes/JSONSerialize.ts +0 -25
  2029. package/src/types/logic/nodes/ProcessOutcome.ts +0 -35
  2030. package/src/types/logic/nodes/Start.ts +0 -20
  2031. package/src/types/logic/nodes/SwitchCase.ts +0 -30
  2032. package/src/types/logic/nodes/SwitchStatement.ts +0 -26
  2033. package/src/types/logic/nodes/TypeNote.ts +0 -25
  2034. package/src/types/logic/nodes/WhileStatement.ts +0 -30
  2035. package/src/types/logic/tools.js +0 -170
  2036. package/src/types/logic/translator.js +0 -684
  2037. package/src/types/logic/translator_backup.js +0 -632
  2038. package/src/types/login.ts +0 -36
  2039. package/src/types/nuims/Nuims.ts +0 -499
  2040. package/src/types/page/Attr.ts +0 -217
  2041. package/src/types/page/Block.ts +0 -103
  2042. package/src/types/page/Directive.ts +0 -208
  2043. package/src/types/page/Element.ts +0 -1444
  2044. package/src/types/page/Event.ts +0 -188
  2045. package/src/types/page/Lifecycle.ts +0 -172
  2046. package/src/types/page/Page.ts +0 -414
  2047. package/src/types/page/View.ts +0 -1236
  2048. package/src/types/page/ViewParam.ts +0 -284
  2049. package/src/types/page/ViewVariable.ts +0 -264
  2050. package/src/types/page/dist/View.js +0 -727
  2051. package/src/types/permission/Permission.ts +0 -112
  2052. package/src/types/process/Process.ts +0 -306
  2053. package/src/types/process/ProcessComponent.ts +0 -276
  2054. package/src/types/process/ProcessComponentAttribute.ts +0 -131
  2055. package/src/types/process/ProcessComponentProperty.ts +0 -68
  2056. package/src/types/process/ProcessComponentReturn.ts +0 -235
  2057. package/src/types/process/ProcessComponentVariable.ts +0 -225
  2058. package/src/types/process/ProcessInterface.ts +0 -175
  2059. package/src/types/process/ProcessParam.ts +0 -237
  2060. package/src/types/process/ProcessProperty.ts +0 -69
  2061. package/src/types/process/ProcessReturn.ts +0 -210
  2062. package/src/types/typeCheck.ts +0 -120
  2063. package/src/types/utils/index.ts +0 -91
  2064. package/src/types/utils/logger.ts +0 -8
  2065. package/src/types/utils/string.ts +0 -56
  2066. package/src/types/utils/traverse.ts +0 -160
  2067. package/src/views/components/lcap-json-view/README.md +0 -80
  2068. package/src/views/components/lcap-json-view/index.js +0 -9
  2069. package/src/views/components/lcap-json-view/index.vue +0 -61
  2070. package/src/views/components/lcap-json-view/node.vue +0 -328
  2071. package/src/views/components/lcap-json-view/utils.js +0 -41
  2072. package/src/views/examples/index.vue +0 -44
  2073. package/src/views/examples/logic.json +0 -1576
  2074. package/src/views/index.vue +0 -28
  2075. package/src/views/specification/README.md +0 -10
  2076. package/src/views/specification/conceptTree.js +0 -1179
  2077. package/src/views/specification/index.vue +0 -255
  2078. package/src/views/theme.css +0 -138
@@ -0,0 +1,1842 @@
1
+ import Namespace from './Namespace__';
2
+ import { TranslatorState, shiftState, withSourceMap, indent, createCompilerState } from '../translator';
3
+ import translator from '../../bak/translator';
4
+ import Role from './Role__';
5
+ import { ElementToVueOptions } from './ViewElement__';
6
+ import { Structure } from './Structure__';
7
+ //================================================================================
8
+ // 从这里开始到结尾注释之间的代码由 NASL Workbench 自动生成,请不手动修改!
9
+ // ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓
10
+ //================================================================================
11
+ import { EventPayload, Params } from '../common/EventEmitter';
12
+ import { concept, excludedInJSON, property } from '../decorators';
13
+
14
+ import * as utils from '../utils';
15
+ import BaseNode from '../common/BaseNode';
16
+ import classMap from '../common/classMap';
17
+ import ViewElement from './ViewElement__';
18
+ import Param from './Param__';
19
+ import Variable from './Variable__';
20
+ import BindEvent from './BindEvent__';
21
+ import Logic from './Logic__';
22
+ import Module from './Module__';
23
+ import App from './App__';
24
+
25
+ /**
26
+ * 页面
27
+ */
28
+ @concept
29
+ export class View extends BaseNode {
30
+ /**
31
+ * 产品概念
32
+ */
33
+ @property()
34
+ concept: 'View' = 'View';
35
+
36
+ /**
37
+ * 页面模板 Id
38
+ */
39
+ @property()
40
+ pageTemplateId: string = undefined;
41
+
42
+ /**
43
+ * 页面名称
44
+ */
45
+ @property()
46
+ name: string = undefined;
47
+
48
+ /**
49
+ * 前后端路径
50
+ */
51
+ @property()
52
+ tempPath: string = undefined;
53
+
54
+ /**
55
+ * 页面标题
56
+ */
57
+ @property()
58
+ title: string = undefined;
59
+
60
+ /**
61
+ * 面包屑
62
+ */
63
+ @property()
64
+ crumb: string = undefined;
65
+
66
+ /**
67
+ * 权限控制
68
+ */
69
+ @property()
70
+ auth: boolean = undefined;
71
+
72
+ /**
73
+ * 是否是默认跳转的页面
74
+ */
75
+ @property()
76
+ isIndex: boolean = undefined;
77
+
78
+ /**
79
+ * 未解析的模板代码
80
+ */
81
+ @property()
82
+ template: string = undefined;
83
+
84
+ /**
85
+ * 未解析的逻辑代码
86
+ */
87
+ @property()
88
+ script: string = undefined;
89
+
90
+ /**
91
+ * 未解析的样式代码
92
+ */
93
+ @property()
94
+ style: string = undefined;
95
+
96
+ /**
97
+ * 页面元素列表
98
+ */
99
+ @property('ViewElement')
100
+ elements: Array<ViewElement> = [];
101
+
102
+ /**
103
+ * 输入参数列表
104
+ */
105
+ @property('Param')
106
+ params: Array<Param> = [];
107
+
108
+ /**
109
+ * 局部变量列表
110
+ */
111
+ @property('Variable')
112
+ variables: Array<Variable> = [];
113
+
114
+ /**
115
+ * 元素绑定事件列表
116
+ */
117
+ @property('BindEvent')
118
+ events: Array<BindEvent> = [];
119
+
120
+ /**
121
+ * 逻辑列表
122
+ */
123
+ @property('Logic')
124
+ logics: Array<Logic> = [];
125
+
126
+ /**
127
+ * 绑定的角色
128
+ */
129
+ @property()
130
+ bindRoles: Array<string> = [];
131
+
132
+ /**
133
+ * 页面列表
134
+ */
135
+ @property('View')
136
+ children: Array<View> = [];
137
+
138
+ /**
139
+ * 祖先 Module
140
+ */
141
+ get module() {
142
+ return this.getAncestor('Module') as Module;
143
+ }
144
+ /**
145
+ * 祖先 App
146
+ */
147
+ get app() {
148
+ return this.getAncestor('App') as App;
149
+ }
150
+
151
+ /**
152
+ * @param source 需要合并的部分参数
153
+ */
154
+ constructor(source?: Partial<View>) {
155
+ source = Object.assign({}, View.getDefaultOptions(), source);
156
+ super(source);
157
+ super.subConstructor(source);
158
+ }
159
+
160
+ static from(source: any, parentNode?: any, parentKey?: string): View {
161
+ return super.from(source, parentNode, parentKey) as View;
162
+ }
163
+
164
+ /**
165
+ * 从父级删除该节点
166
+ * @internal
167
+ */
168
+ _delete() {
169
+ let params: Params = null;
170
+ if (this.parentNode) {
171
+ params = (this.parentNode as any)?.__removeView?.(this);
172
+ }
173
+ return params;
174
+ }
175
+ /**
176
+ * 设置页面名称
177
+ */
178
+ setName(name: string) {
179
+ const object = {
180
+ name,
181
+ };
182
+ this.update({
183
+ ...object,
184
+ field: 'name',
185
+ });
186
+ }
187
+
188
+ /**
189
+ * 设置页面标题
190
+ */
191
+ setTitle(title: string) {
192
+ const object = {
193
+ title,
194
+ };
195
+ this.update({
196
+ ...object,
197
+ });
198
+ }
199
+
200
+ /**
201
+ * 设置面包屑
202
+ */
203
+ setCrumb(crumb: string) {
204
+ const object = {
205
+ crumb,
206
+ };
207
+ this.update({
208
+ ...object,
209
+ });
210
+ }
211
+
212
+ /**
213
+ * 设置权限控制
214
+ */
215
+ setAuth(auth: boolean) {
216
+ const object = {
217
+ auth,
218
+ };
219
+ this.update({
220
+ ...object,
221
+ });
222
+ }
223
+
224
+ /**
225
+ * 设置是否是默认跳转的页面
226
+ */
227
+ setIsIndex(isIndex: boolean) {
228
+ const object = {
229
+ isIndex,
230
+ };
231
+ this.update({
232
+ ...object,
233
+ });
234
+ }
235
+
236
+ getViewElementUniqueName(name = 'viewElement1') {
237
+ return utils.unique(name, this.getViewElementExistingNames());
238
+ }
239
+
240
+ /**
241
+ * 插入页面元素
242
+ * @internal
243
+ * @param name 页面元素名称,如果不填会自动生成一个唯一名称
244
+ */
245
+ _insertViewElementAt(name: string, index: number): ViewElement;
246
+
247
+ /**
248
+ * 插入页面元素
249
+ * @internal
250
+ * @param viewElementOptions 页面元素参数
251
+ */
252
+ _insertViewElementAt(viewElementOptions: Partial<ViewElement>, index: number): ViewElement;
253
+
254
+ /**
255
+ * 插入页面元素
256
+ * @internal
257
+ * @param viewElement 已有的页面元素实例
258
+ */
259
+ _insertViewElementAt(viewElement: ViewElement, index: number): ViewElement;
260
+
261
+ _insertViewElementAt(options: string | Partial<ViewElement> | ViewElement, index: number) {
262
+ const viewElementOptions: any = {};
263
+ const relationOptions = { parentNode: this, parentKey: 'elements' };
264
+ let viewElement: ViewElement;
265
+ if (!options) {
266
+ viewElement = ViewElement.from({
267
+ ...viewElementOptions,
268
+ name: this.getViewElementUniqueName(),
269
+ }, this);
270
+ } else if (typeof options === 'string') {
271
+ viewElement = ViewElement.from({
272
+ ...viewElementOptions,
273
+ name: options,
274
+ }, this);
275
+ } else if (options instanceof ViewElement) {
276
+ options.delete(); // 同一实例不支持多处存在
277
+ viewElement = options;
278
+ } else {
279
+ viewElement = ViewElement.from({
280
+ ...viewElementOptions,
281
+ ...options,
282
+ }, this);
283
+ }
284
+ Object.assign(viewElement, relationOptions);
285
+ this.elements.splice(index, 0, viewElement);
286
+ return viewElement;
287
+ }
288
+
289
+ /**
290
+ * 插入页面元素
291
+ * @param name 页面元素名称,如果不填会自动生成一个唯一名称
292
+ */
293
+ insertViewElementAt(name: string, index: number): ViewElement;
294
+
295
+ /**
296
+ * 插入页面元素
297
+ * @param viewElementOptions 页面元素参数
298
+ */
299
+ insertViewElementAt(viewElementOptions: Partial<ViewElement>, index: number): ViewElement;
300
+
301
+ /**
302
+ * 插入页面元素
303
+ * @param viewElement 已有的页面元素实例
304
+ */
305
+ insertViewElementAt(viewElement: ViewElement, index: number): ViewElement;
306
+
307
+ insertViewElementAt(options: string | Partial<ViewElement> | ViewElement, index: number) {
308
+ const node = this._insertViewElementAt(options as any, index);
309
+ node.create({
310
+ index,
311
+ parentNode: this,
312
+ parentKey: 'elements',
313
+ });
314
+ return node;
315
+ }
316
+
317
+ /**
318
+ * 添加页面元素
319
+ * @internal
320
+ * @param name 页面元素名称,如果不填会自动生成一个唯一名称
321
+ */
322
+ _addViewElement(name?: string): ViewElement;
323
+
324
+ /**
325
+ * 添加页面元素
326
+ * @internal
327
+ * @param viewElementOptions 页面元素参数
328
+ */
329
+ _addViewElement(viewElementOptions: Partial<ViewElement>): ViewElement;
330
+
331
+ /**
332
+ * 添加页面元素
333
+ * @internal
334
+ * @param viewElement 已有的页面元素实例
335
+ */
336
+ _addViewElement(viewElement: ViewElement): ViewElement;
337
+
338
+ _addViewElement(options?: string | Partial<ViewElement> | ViewElement) {
339
+ const index = this.elements.length;
340
+ return this._insertViewElementAt(options as any, index);
341
+ }
342
+
343
+ /**
344
+ * 添加页面元素
345
+ * @internal
346
+ * @param name 页面元素名称,如果不填会自动生成一个唯一名称
347
+ */
348
+ addViewElement(name?: string): ViewElement;
349
+
350
+ /**
351
+ * 添加页面元素
352
+ * @param viewElementOptions 页面元素参数
353
+ */
354
+ addViewElement(viewElementOptions: Partial<ViewElement>): ViewElement;
355
+
356
+ /**
357
+ * 添加页面元素
358
+ * @param viewElement 已有的页面元素实例
359
+ */
360
+ addViewElement(viewElement: ViewElement): ViewElement;
361
+
362
+ addViewElement(options?: string | Partial<ViewElement> | ViewElement) {
363
+ const node = this._addViewElement(options as any);
364
+ const index = this.elements.length;
365
+ node.create({
366
+ index,
367
+ parentNode: this,
368
+ parentKey: 'elements',
369
+ });
370
+ return node;
371
+ }
372
+
373
+
374
+ getParamExistingNames(excludedList: Array<Param> = []) {
375
+ const excludedSet = new Set(excludedList);
376
+ return this.params.filter((item) => !excludedSet.has(item)).map((item) => item.name);
377
+ }
378
+ getParamUniqueName(name = 'param1') {
379
+ return utils.unique(name, this.getParamExistingNames());
380
+ }
381
+
382
+ /**
383
+ * 插入输入参数
384
+ * @internal
385
+ * @param name 输入参数名称,如果不填会自动生成一个唯一名称
386
+ */
387
+ _insertParamAt(name: string, index: number): Param;
388
+
389
+ /**
390
+ * 插入输入参数
391
+ * @internal
392
+ * @param paramOptions 输入参数参数
393
+ */
394
+ _insertParamAt(paramOptions: Partial<Param>, index: number): Param;
395
+
396
+ /**
397
+ * 插入输入参数
398
+ * @internal
399
+ * @param param 已有的输入参数实例
400
+ */
401
+ _insertParamAt(param: Param, index: number): Param;
402
+
403
+ _insertParamAt(options: string | Partial<Param> | Param, index: number) {
404
+ const paramOptions: any = {};
405
+ const relationOptions = { parentNode: this, parentKey: 'params' };
406
+ let param: Param;
407
+ if (!options) {
408
+ param = Param.from({
409
+ ...paramOptions,
410
+ name: this.getParamUniqueName(),
411
+ }, this);
412
+ } else if (typeof options === 'string') {
413
+ param = Param.from({
414
+ ...paramOptions,
415
+ name: options,
416
+ }, this);
417
+ } else if (options instanceof Param) {
418
+ options.delete(); // 同一实例不支持多处存在
419
+ param = options;
420
+ } else {
421
+ param = Param.from({
422
+ ...paramOptions,
423
+ ...options,
424
+ }, this);
425
+ }
426
+ Object.assign(param, relationOptions);
427
+ this.params.splice(index, 0, param);
428
+ return param;
429
+ }
430
+
431
+ /**
432
+ * 插入输入参数
433
+ * @param name 输入参数名称,如果不填会自动生成一个唯一名称
434
+ */
435
+ insertParamAt(name: string, index: number): Param;
436
+
437
+ /**
438
+ * 插入输入参数
439
+ * @param paramOptions 输入参数参数
440
+ */
441
+ insertParamAt(paramOptions: Partial<Param>, index: number): Param;
442
+
443
+ /**
444
+ * 插入输入参数
445
+ * @param param 已有的输入参数实例
446
+ */
447
+ insertParamAt(param: Param, index: number): Param;
448
+
449
+ insertParamAt(options: string | Partial<Param> | Param, index: number) {
450
+ const node = this._insertParamAt(options as any, index);
451
+ node.create({
452
+ index,
453
+ parentNode: this,
454
+ parentKey: 'params',
455
+ });
456
+ return node;
457
+ }
458
+
459
+ /**
460
+ * 添加输入参数
461
+ * @internal
462
+ * @param name 输入参数名称,如果不填会自动生成一个唯一名称
463
+ */
464
+ _addParam(name?: string): Param;
465
+
466
+ /**
467
+ * 添加输入参数
468
+ * @internal
469
+ * @param paramOptions 输入参数参数
470
+ */
471
+ _addParam(paramOptions: Partial<Param>): Param;
472
+
473
+ /**
474
+ * 添加输入参数
475
+ * @internal
476
+ * @param param 已有的输入参数实例
477
+ */
478
+ _addParam(param: Param): Param;
479
+
480
+ _addParam(options?: string | Partial<Param> | Param) {
481
+ const index = this.params.length;
482
+ return this._insertParamAt(options as any, index);
483
+ }
484
+
485
+ /**
486
+ * 添加输入参数
487
+ * @internal
488
+ * @param name 输入参数名称,如果不填会自动生成一个唯一名称
489
+ */
490
+ addParam(name?: string): Param;
491
+
492
+ /**
493
+ * 添加输入参数
494
+ * @param paramOptions 输入参数参数
495
+ */
496
+ addParam(paramOptions: Partial<Param>): Param;
497
+
498
+ /**
499
+ * 添加输入参数
500
+ * @param param 已有的输入参数实例
501
+ */
502
+ addParam(param: Param): Param;
503
+
504
+ addParam(options?: string | Partial<Param> | Param) {
505
+ const node = this._addParam(options as any);
506
+ const index = this.params.length;
507
+ node.create({
508
+ index,
509
+ parentNode: this,
510
+ parentKey: 'params',
511
+ });
512
+ return node;
513
+ }
514
+
515
+
516
+ getVariableExistingNames(excludedList: Array<Variable> = []) {
517
+ const excludedSet = new Set(excludedList);
518
+ return this.variables.filter((item) => !excludedSet.has(item)).map((item) => item.name);
519
+ }
520
+ getVariableUniqueName(name = 'variable1') {
521
+ return utils.unique(name, this.getVariableExistingNames());
522
+ }
523
+
524
+ /**
525
+ * 插入局部变量
526
+ * @internal
527
+ * @param name 局部变量名称,如果不填会自动生成一个唯一名称
528
+ */
529
+ _insertVariableAt(name: string, index: number): Variable;
530
+
531
+ /**
532
+ * 插入局部变量
533
+ * @internal
534
+ * @param variableOptions 局部变量参数
535
+ */
536
+ _insertVariableAt(variableOptions: Partial<Variable>, index: number): Variable;
537
+
538
+ /**
539
+ * 插入局部变量
540
+ * @internal
541
+ * @param variable 已有的局部变量实例
542
+ */
543
+ _insertVariableAt(variable: Variable, index: number): Variable;
544
+
545
+ _insertVariableAt(options: string | Partial<Variable> | Variable, index: number) {
546
+ const variableOptions: any = {};
547
+ const relationOptions = { parentNode: this, parentKey: 'variables' };
548
+ let variable: Variable;
549
+ if (!options) {
550
+ variable = Variable.from({
551
+ ...variableOptions,
552
+ name: this.getVariableUniqueName(),
553
+ }, this);
554
+ } else if (typeof options === 'string') {
555
+ variable = Variable.from({
556
+ ...variableOptions,
557
+ name: options,
558
+ }, this);
559
+ } else if (options instanceof Variable) {
560
+ options.delete(); // 同一实例不支持多处存在
561
+ variable = options;
562
+ } else {
563
+ variable = Variable.from({
564
+ ...variableOptions,
565
+ ...options,
566
+ }, this);
567
+ }
568
+ Object.assign(variable, relationOptions);
569
+ this.variables.splice(index, 0, variable);
570
+ return variable;
571
+ }
572
+
573
+ /**
574
+ * 插入局部变量
575
+ * @param name 局部变量名称,如果不填会自动生成一个唯一名称
576
+ */
577
+ insertVariableAt(name: string, index: number): Variable;
578
+
579
+ /**
580
+ * 插入局部变量
581
+ * @param variableOptions 局部变量参数
582
+ */
583
+ insertVariableAt(variableOptions: Partial<Variable>, index: number): Variable;
584
+
585
+ /**
586
+ * 插入局部变量
587
+ * @param variable 已有的局部变量实例
588
+ */
589
+ insertVariableAt(variable: Variable, index: number): Variable;
590
+
591
+ insertVariableAt(options: string | Partial<Variable> | Variable, index: number) {
592
+ const node = this._insertVariableAt(options as any, index);
593
+ node.create({
594
+ index,
595
+ parentNode: this,
596
+ parentKey: 'variables',
597
+ });
598
+ return node;
599
+ }
600
+
601
+ /**
602
+ * 添加局部变量
603
+ * @internal
604
+ * @param name 局部变量名称,如果不填会自动生成一个唯一名称
605
+ */
606
+ _addVariable(name?: string): Variable;
607
+
608
+ /**
609
+ * 添加局部变量
610
+ * @internal
611
+ * @param variableOptions 局部变量参数
612
+ */
613
+ _addVariable(variableOptions: Partial<Variable>): Variable;
614
+
615
+ /**
616
+ * 添加局部变量
617
+ * @internal
618
+ * @param variable 已有的局部变量实例
619
+ */
620
+ _addVariable(variable: Variable): Variable;
621
+
622
+ _addVariable(options?: string | Partial<Variable> | Variable) {
623
+ const index = this.variables.length;
624
+ return this._insertVariableAt(options as any, index);
625
+ }
626
+
627
+ /**
628
+ * 添加局部变量
629
+ * @internal
630
+ * @param name 局部变量名称,如果不填会自动生成一个唯一名称
631
+ */
632
+ addVariable(name?: string): Variable;
633
+
634
+ /**
635
+ * 添加局部变量
636
+ * @param variableOptions 局部变量参数
637
+ */
638
+ addVariable(variableOptions: Partial<Variable>): Variable;
639
+
640
+ /**
641
+ * 添加局部变量
642
+ * @param variable 已有的局部变量实例
643
+ */
644
+ addVariable(variable: Variable): Variable;
645
+
646
+ addVariable(options?: string | Partial<Variable> | Variable) {
647
+ const node = this._addVariable(options as any);
648
+ const index = this.variables.length;
649
+ node.create({
650
+ index,
651
+ parentNode: this,
652
+ parentKey: 'variables',
653
+ });
654
+ return node;
655
+ }
656
+
657
+
658
+ getBindEventExistingNames(excludedList: Array<BindEvent> = []) {
659
+ const excludedSet = new Set(excludedList);
660
+ return this.events.filter((item) => !excludedSet.has(item)).map((item) => item.name);
661
+ }
662
+ getBindEventUniqueName(name = 'bindEvent1') {
663
+ return utils.unique(name, this.getBindEventExistingNames());
664
+ }
665
+
666
+ /**
667
+ * 插入元素绑定事件
668
+ * @internal
669
+ * @param name 元素绑定事件名称,如果不填会自动生成一个唯一名称
670
+ */
671
+ _insertBindEventAt(name: string, index: number): BindEvent;
672
+
673
+ /**
674
+ * 插入元素绑定事件
675
+ * @internal
676
+ * @param bindEventOptions 元素绑定事件参数
677
+ */
678
+ _insertBindEventAt(bindEventOptions: Partial<BindEvent>, index: number): BindEvent;
679
+
680
+ /**
681
+ * 插入元素绑定事件
682
+ * @internal
683
+ * @param bindEvent 已有的元素绑定事件实例
684
+ */
685
+ _insertBindEventAt(bindEvent: BindEvent, index: number): BindEvent;
686
+
687
+ _insertBindEventAt(options: string | Partial<BindEvent> | BindEvent, index: number) {
688
+ const bindEventOptions: any = {};
689
+ const relationOptions = { parentNode: this, parentKey: 'events' };
690
+ let bindEvent: BindEvent;
691
+ if (!options) {
692
+ bindEvent = BindEvent.from({
693
+ ...bindEventOptions,
694
+ name: this.getBindEventUniqueName(),
695
+ }, this);
696
+ } else if (typeof options === 'string') {
697
+ bindEvent = BindEvent.from({
698
+ ...bindEventOptions,
699
+ name: options,
700
+ }, this);
701
+ } else if (options instanceof BindEvent) {
702
+ options.delete(); // 同一实例不支持多处存在
703
+ bindEvent = options;
704
+ } else {
705
+ bindEvent = BindEvent.from({
706
+ ...bindEventOptions,
707
+ ...options,
708
+ }, this);
709
+ }
710
+ Object.assign(bindEvent, relationOptions);
711
+ this.events.splice(index, 0, bindEvent);
712
+ return bindEvent;
713
+ }
714
+
715
+ /**
716
+ * 插入元素绑定事件
717
+ * @param name 元素绑定事件名称,如果不填会自动生成一个唯一名称
718
+ */
719
+ insertBindEventAt(name: string, index: number): BindEvent;
720
+
721
+ /**
722
+ * 插入元素绑定事件
723
+ * @param bindEventOptions 元素绑定事件参数
724
+ */
725
+ insertBindEventAt(bindEventOptions: Partial<BindEvent>, index: number): BindEvent;
726
+
727
+ /**
728
+ * 插入元素绑定事件
729
+ * @param bindEvent 已有的元素绑定事件实例
730
+ */
731
+ insertBindEventAt(bindEvent: BindEvent, index: number): BindEvent;
732
+
733
+ insertBindEventAt(options: string | Partial<BindEvent> | BindEvent, index: number) {
734
+ const node = this._insertBindEventAt(options as any, index);
735
+ node.create({
736
+ index,
737
+ parentNode: this,
738
+ parentKey: 'events',
739
+ });
740
+ return node;
741
+ }
742
+
743
+ /**
744
+ * 添加元素绑定事件
745
+ * @internal
746
+ * @param name 元素绑定事件名称,如果不填会自动生成一个唯一名称
747
+ */
748
+ _addBindEvent(name?: string): BindEvent;
749
+
750
+ /**
751
+ * 添加元素绑定事件
752
+ * @internal
753
+ * @param bindEventOptions 元素绑定事件参数
754
+ */
755
+ _addBindEvent(bindEventOptions: Partial<BindEvent>): BindEvent;
756
+
757
+ /**
758
+ * 添加元素绑定事件
759
+ * @internal
760
+ * @param bindEvent 已有的元素绑定事件实例
761
+ */
762
+ _addBindEvent(bindEvent: BindEvent): BindEvent;
763
+
764
+ _addBindEvent(options?: string | Partial<BindEvent> | BindEvent) {
765
+ const index = this.events.length;
766
+ return this._insertBindEventAt(options as any, index);
767
+ }
768
+
769
+ /**
770
+ * 添加元素绑定事件
771
+ * @internal
772
+ * @param name 元素绑定事件名称,如果不填会自动生成一个唯一名称
773
+ */
774
+ addBindEvent(name?: string): BindEvent;
775
+
776
+ /**
777
+ * 添加元素绑定事件
778
+ * @param bindEventOptions 元素绑定事件参数
779
+ */
780
+ addBindEvent(bindEventOptions: Partial<BindEvent>): BindEvent;
781
+
782
+ /**
783
+ * 添加元素绑定事件
784
+ * @param bindEvent 已有的元素绑定事件实例
785
+ */
786
+ addBindEvent(bindEvent: BindEvent): BindEvent;
787
+
788
+ addBindEvent(options?: string | Partial<BindEvent> | BindEvent) {
789
+ const node = this._addBindEvent(options as any);
790
+ const index = this.events.length;
791
+ node.create({
792
+ index,
793
+ parentNode: this,
794
+ parentKey: 'events',
795
+ });
796
+ return node;
797
+ }
798
+
799
+
800
+ getLogicExistingNames(excludedList: Array<Logic> = []) {
801
+ const excludedSet = new Set(excludedList);
802
+ return this.logics.filter((item) => !excludedSet.has(item)).map((item) => item.name);
803
+ }
804
+ getLogicUniqueName(name = 'logic1') {
805
+ return utils.unique(name, this.getLogicExistingNames());
806
+ }
807
+
808
+ /**
809
+ * 插入逻辑
810
+ * @internal
811
+ * @param name 逻辑名称,如果不填会自动生成一个唯一名称
812
+ */
813
+ _insertLogicAt(name: string, index: number): Logic;
814
+
815
+ /**
816
+ * 插入逻辑
817
+ * @internal
818
+ * @param logicOptions 逻辑参数
819
+ */
820
+ _insertLogicAt(logicOptions: Partial<Logic>, index: number): Logic;
821
+
822
+ /**
823
+ * 插入逻辑
824
+ * @internal
825
+ * @param logic 已有的逻辑实例
826
+ */
827
+ _insertLogicAt(logic: Logic, index: number): Logic;
828
+
829
+ _insertLogicAt(options: string | Partial<Logic> | Logic, index: number) {
830
+ const logicOptions: any = {};
831
+ const relationOptions = { parentNode: this, parentKey: 'logics' };
832
+ let logic: Logic;
833
+ if (!options) {
834
+ logic = Logic.from({
835
+ ...logicOptions,
836
+ name: this.getLogicUniqueName(),
837
+ }, this);
838
+ } else if (typeof options === 'string') {
839
+ logic = Logic.from({
840
+ ...logicOptions,
841
+ name: options,
842
+ }, this);
843
+ } else if (options instanceof Logic) {
844
+ options.delete(); // 同一实例不支持多处存在
845
+ logic = options;
846
+ } else {
847
+ logic = Logic.from({
848
+ ...logicOptions,
849
+ ...options,
850
+ }, this);
851
+ }
852
+ Object.assign(logic, relationOptions);
853
+ this.logics.splice(index, 0, logic);
854
+ return logic;
855
+ }
856
+
857
+ /**
858
+ * 插入逻辑
859
+ * @param name 逻辑名称,如果不填会自动生成一个唯一名称
860
+ */
861
+ insertLogicAt(name: string, index: number): Logic;
862
+
863
+ /**
864
+ * 插入逻辑
865
+ * @param logicOptions 逻辑参数
866
+ */
867
+ insertLogicAt(logicOptions: Partial<Logic>, index: number): Logic;
868
+
869
+ /**
870
+ * 插入逻辑
871
+ * @param logic 已有的逻辑实例
872
+ */
873
+ insertLogicAt(logic: Logic, index: number): Logic;
874
+
875
+ insertLogicAt(options: string | Partial<Logic> | Logic, index: number) {
876
+ const node = this._insertLogicAt(options as any, index);
877
+ node.create({
878
+ index,
879
+ parentNode: this,
880
+ parentKey: 'logics',
881
+ });
882
+ return node;
883
+ }
884
+
885
+ /**
886
+ * 添加逻辑
887
+ * @internal
888
+ * @param name 逻辑名称,如果不填会自动生成一个唯一名称
889
+ */
890
+ _addLogic(name?: string): Logic;
891
+
892
+ /**
893
+ * 添加逻辑
894
+ * @internal
895
+ * @param logicOptions 逻辑参数
896
+ */
897
+ _addLogic(logicOptions: Partial<Logic>): Logic;
898
+
899
+ /**
900
+ * 添加逻辑
901
+ * @internal
902
+ * @param logic 已有的逻辑实例
903
+ */
904
+ _addLogic(logic: Logic): Logic;
905
+
906
+ _addLogic(options?: string | Partial<Logic> | Logic) {
907
+ const index = this.logics.length;
908
+ return this._insertLogicAt(options as any, index);
909
+ }
910
+
911
+ /**
912
+ * 添加逻辑
913
+ * @internal
914
+ * @param name 逻辑名称,如果不填会自动生成一个唯一名称
915
+ */
916
+ addLogic(name?: string): Logic;
917
+
918
+ /**
919
+ * 添加逻辑
920
+ * @param logicOptions 逻辑参数
921
+ */
922
+ addLogic(logicOptions: Partial<Logic>): Logic;
923
+
924
+ /**
925
+ * 添加逻辑
926
+ * @param logic 已有的逻辑实例
927
+ */
928
+ addLogic(logic: Logic): Logic;
929
+
930
+ addLogic(options?: string | Partial<Logic> | Logic) {
931
+ const node = this._addLogic(options as any);
932
+ const index = this.logics.length;
933
+ node.create({
934
+ index,
935
+ parentNode: this,
936
+ parentKey: 'logics',
937
+ });
938
+ return node;
939
+ }
940
+
941
+
942
+
943
+
944
+ getViewExistingNames(excludedList: Array<View> = []) {
945
+ const excludedSet = new Set(excludedList);
946
+ return this.children.filter((item) => !excludedSet.has(item)).map((item) => item.name);
947
+ }
948
+ getViewUniqueName(name = 'view1') {
949
+ return utils.unique(name, this.getViewExistingNames());
950
+ }
951
+
952
+ /**
953
+ * 插入页面
954
+ * @internal
955
+ * @param name 页面名称,如果不填会自动生成一个唯一名称
956
+ */
957
+ _insertViewAt(name: string, index: number): View;
958
+
959
+ /**
960
+ * 插入页面
961
+ * @internal
962
+ * @param viewOptions 页面参数
963
+ */
964
+ _insertViewAt(viewOptions: Partial<View>, index: number): View;
965
+
966
+ /**
967
+ * 插入页面
968
+ * @internal
969
+ * @param view 已有的页面实例
970
+ */
971
+ _insertViewAt(view: View, index: number): View;
972
+
973
+ _insertViewAt(options: string | Partial<View> | View, index: number) {
974
+ const viewOptions: any = {};
975
+ const relationOptions = { parentNode: this, parentKey: 'children' };
976
+ let view: View;
977
+ if (!options) {
978
+ view = View.from({
979
+ ...viewOptions,
980
+ name: this.getViewUniqueName(),
981
+ }, this);
982
+ } else if (typeof options === 'string') {
983
+ view = View.from({
984
+ ...viewOptions,
985
+ name: options,
986
+ }, this);
987
+ } else if (options instanceof View) {
988
+ options.delete(); // 同一实例不支持多处存在
989
+ view = options;
990
+ } else {
991
+ view = View.from({
992
+ ...viewOptions,
993
+ ...options,
994
+ }, this);
995
+ }
996
+ Object.assign(view, relationOptions);
997
+ this.children.splice(index, 0, view);
998
+ return view;
999
+ }
1000
+
1001
+ /**
1002
+ * 插入页面
1003
+ * @param name 页面名称,如果不填会自动生成一个唯一名称
1004
+ */
1005
+ insertViewAt(name: string, index: number): View;
1006
+
1007
+ /**
1008
+ * 插入页面
1009
+ * @param viewOptions 页面参数
1010
+ */
1011
+ insertViewAt(viewOptions: Partial<View>, index: number): View;
1012
+
1013
+ /**
1014
+ * 插入页面
1015
+ * @param view 已有的页面实例
1016
+ */
1017
+ insertViewAt(view: View, index: number): View;
1018
+
1019
+ insertViewAt(options: string | Partial<View> | View, index: number) {
1020
+ const node = this._insertViewAt(options as any, index);
1021
+ node.create({
1022
+ index,
1023
+ parentNode: this,
1024
+ parentKey: 'children',
1025
+ });
1026
+ return node;
1027
+ }
1028
+
1029
+ /**
1030
+ * 添加页面
1031
+ * @internal
1032
+ * @param name 页面名称,如果不填会自动生成一个唯一名称
1033
+ */
1034
+ _addView(name?: string): View;
1035
+
1036
+ /**
1037
+ * 添加页面
1038
+ * @internal
1039
+ * @param viewOptions 页面参数
1040
+ */
1041
+ _addView(viewOptions: Partial<View>): View;
1042
+
1043
+ /**
1044
+ * 添加页面
1045
+ * @internal
1046
+ * @param view 已有的页面实例
1047
+ */
1048
+ _addView(view: View): View;
1049
+
1050
+ _addView(options?: string | Partial<View> | View) {
1051
+ const index = this.children.length;
1052
+ return this._insertViewAt(options as any, index);
1053
+ }
1054
+
1055
+ /**
1056
+ * 添加页面
1057
+ * @internal
1058
+ * @param name 页面名称,如果不填会自动生成一个唯一名称
1059
+ */
1060
+ addView(name?: string): View;
1061
+
1062
+ /**
1063
+ * 添加页面
1064
+ * @param viewOptions 页面参数
1065
+ */
1066
+ addView(viewOptions: Partial<View>): View;
1067
+
1068
+ /**
1069
+ * 添加页面
1070
+ * @param view 已有的页面实例
1071
+ */
1072
+ addView(view: View): View;
1073
+
1074
+ addView(options?: string | Partial<View> | View) {
1075
+ const node = this._addView(options as any);
1076
+ const index = this.children.length;
1077
+ node.create({
1078
+ index,
1079
+ parentNode: this,
1080
+ parentKey: 'children',
1081
+ });
1082
+ return node;
1083
+ }
1084
+
1085
+
1086
+
1087
+
1088
+ /**
1089
+ * 删除页面元素
1090
+ * @param name 页面元素名称
1091
+ */
1092
+ removeViewElement(name: string): void;
1093
+
1094
+ /**
1095
+ * 删除页面元素
1096
+ * @param viewElement 已有的页面元素实例
1097
+ */
1098
+ removeViewElement(viewElement: ViewElement): void;
1099
+
1100
+ removeViewElement(options: string | ViewElement) {
1101
+ let viewElement: ViewElement;
1102
+ if (typeof options === 'string') {
1103
+ viewElement = this.elements.find((item) => item.name === options);
1104
+ if (!viewElement) {
1105
+ throw new Error('找不到页面元素 ' + options);
1106
+ }
1107
+ } else {
1108
+ viewElement = options;
1109
+ }
1110
+ return viewElement.delete();
1111
+ }
1112
+
1113
+ __removeViewElement(viewElement: ViewElement) {
1114
+ const parentKey = viewElement.parentKey;
1115
+ const params: Params = {
1116
+ parentNode: this,
1117
+ parentKey,
1118
+ index: -1,
1119
+ object: null,
1120
+ oldObject: viewElement,
1121
+ };
1122
+ if (parentKey) {
1123
+ params.parentKey = parentKey;
1124
+ if (Array.isArray((this as any)[parentKey])) {
1125
+ const index = (this as any)[parentKey].indexOf(viewElement);
1126
+ ~index && (this as any)[parentKey].splice(index, 1);
1127
+ params.index = index;
1128
+ } else if ((this as any)[parentKey] === viewElement) {
1129
+ params.index = 0;
1130
+ (this as any)[parentKey] = undefined;
1131
+ }
1132
+ }
1133
+ return params;
1134
+ }
1135
+
1136
+
1137
+
1138
+ /**
1139
+ * 删除输入参数
1140
+ * @param name 输入参数名称
1141
+ */
1142
+ removeParam(name: string): void;
1143
+
1144
+ /**
1145
+ * 删除输入参数
1146
+ * @param param 已有的输入参数实例
1147
+ */
1148
+ removeParam(param: Param): void;
1149
+
1150
+ removeParam(options: string | Param) {
1151
+ let param: Param;
1152
+ if (typeof options === 'string') {
1153
+ param = this.params.find((item) => item.name === options);
1154
+ if (!param) {
1155
+ throw new Error('找不到输入参数 ' + options);
1156
+ }
1157
+ } else {
1158
+ param = options;
1159
+ }
1160
+ return param.delete();
1161
+ }
1162
+
1163
+ __removeParam(param: Param) {
1164
+ const parentKey = param.parentKey;
1165
+ const params: Params = {
1166
+ parentNode: this,
1167
+ parentKey,
1168
+ index: -1,
1169
+ object: null,
1170
+ oldObject: param,
1171
+ };
1172
+ if (parentKey) {
1173
+ params.parentKey = parentKey;
1174
+ if (Array.isArray((this as any)[parentKey])) {
1175
+ const index = (this as any)[parentKey].indexOf(param);
1176
+ ~index && (this as any)[parentKey].splice(index, 1);
1177
+ params.index = index;
1178
+ } else if ((this as any)[parentKey] === param) {
1179
+ params.index = 0;
1180
+ (this as any)[parentKey] = undefined;
1181
+ }
1182
+ }
1183
+ return params;
1184
+ }
1185
+
1186
+
1187
+
1188
+ /**
1189
+ * 删除局部变量
1190
+ * @param name 局部变量名称
1191
+ */
1192
+ removeVariable(name: string): void;
1193
+
1194
+ /**
1195
+ * 删除局部变量
1196
+ * @param variable 已有的局部变量实例
1197
+ */
1198
+ removeVariable(variable: Variable): void;
1199
+
1200
+ removeVariable(options: string | Variable) {
1201
+ let variable: Variable;
1202
+ if (typeof options === 'string') {
1203
+ variable = this.variables.find((item) => item.name === options);
1204
+ if (!variable) {
1205
+ throw new Error('找不到局部变量 ' + options);
1206
+ }
1207
+ } else {
1208
+ variable = options;
1209
+ }
1210
+ return variable.delete();
1211
+ }
1212
+
1213
+ __removeVariable(variable: Variable) {
1214
+ const parentKey = variable.parentKey;
1215
+ const params: Params = {
1216
+ parentNode: this,
1217
+ parentKey,
1218
+ index: -1,
1219
+ object: null,
1220
+ oldObject: variable,
1221
+ };
1222
+ if (parentKey) {
1223
+ params.parentKey = parentKey;
1224
+ if (Array.isArray((this as any)[parentKey])) {
1225
+ const index = (this as any)[parentKey].indexOf(variable);
1226
+ ~index && (this as any)[parentKey].splice(index, 1);
1227
+ params.index = index;
1228
+ } else if ((this as any)[parentKey] === variable) {
1229
+ params.index = 0;
1230
+ (this as any)[parentKey] = undefined;
1231
+ }
1232
+ }
1233
+ return params;
1234
+ }
1235
+
1236
+
1237
+
1238
+ /**
1239
+ * 删除元素绑定事件
1240
+ * @param name 元素绑定事件名称
1241
+ */
1242
+ removeBindEvent(name: string): void;
1243
+
1244
+ /**
1245
+ * 删除元素绑定事件
1246
+ * @param bindEvent 已有的元素绑定事件实例
1247
+ */
1248
+ removeBindEvent(bindEvent: BindEvent): void;
1249
+
1250
+ removeBindEvent(options: string | BindEvent) {
1251
+ let bindEvent: BindEvent;
1252
+ if (typeof options === 'string') {
1253
+ bindEvent = this.events.find((item) => item.name === options);
1254
+ if (!bindEvent) {
1255
+ throw new Error('找不到元素绑定事件 ' + options);
1256
+ }
1257
+ } else {
1258
+ bindEvent = options;
1259
+ }
1260
+ return bindEvent.delete();
1261
+ }
1262
+
1263
+ __removeBindEvent(bindEvent: BindEvent) {
1264
+ const parentKey = bindEvent.parentKey;
1265
+ const params: Params = {
1266
+ parentNode: this,
1267
+ parentKey,
1268
+ index: -1,
1269
+ object: null,
1270
+ oldObject: bindEvent,
1271
+ };
1272
+ if (parentKey) {
1273
+ params.parentKey = parentKey;
1274
+ if (Array.isArray((this as any)[parentKey])) {
1275
+ const index = (this as any)[parentKey].indexOf(bindEvent);
1276
+ ~index && (this as any)[parentKey].splice(index, 1);
1277
+ params.index = index;
1278
+ } else if ((this as any)[parentKey] === bindEvent) {
1279
+ params.index = 0;
1280
+ (this as any)[parentKey] = undefined;
1281
+ }
1282
+ }
1283
+ return params;
1284
+ }
1285
+
1286
+
1287
+
1288
+ /**
1289
+ * 删除逻辑
1290
+ * @param name 逻辑名称
1291
+ */
1292
+ removeLogic(name: string): void;
1293
+
1294
+ /**
1295
+ * 删除逻辑
1296
+ * @param logic 已有的逻辑实例
1297
+ */
1298
+ removeLogic(logic: Logic): void;
1299
+
1300
+ removeLogic(options: string | Logic) {
1301
+ let logic: Logic;
1302
+ if (typeof options === 'string') {
1303
+ logic = this.logics.find((item) => item.name === options);
1304
+ if (!logic) {
1305
+ throw new Error('找不到逻辑 ' + options);
1306
+ }
1307
+ } else {
1308
+ logic = options;
1309
+ }
1310
+ return logic.delete();
1311
+ }
1312
+
1313
+ __removeLogic(logic: Logic) {
1314
+ const parentKey = logic.parentKey;
1315
+ const params: Params = {
1316
+ parentNode: this,
1317
+ parentKey,
1318
+ index: -1,
1319
+ object: null,
1320
+ oldObject: logic,
1321
+ };
1322
+ if (parentKey) {
1323
+ params.parentKey = parentKey;
1324
+ if (Array.isArray((this as any)[parentKey])) {
1325
+ const index = (this as any)[parentKey].indexOf(logic);
1326
+ ~index && (this as any)[parentKey].splice(index, 1);
1327
+ params.index = index;
1328
+ } else if ((this as any)[parentKey] === logic) {
1329
+ params.index = 0;
1330
+ (this as any)[parentKey] = undefined;
1331
+ }
1332
+ }
1333
+ return params;
1334
+ }
1335
+
1336
+
1337
+
1338
+ /**
1339
+ * 删除页面
1340
+ * @param name 页面名称
1341
+ */
1342
+ removeView(name: string): void;
1343
+
1344
+ /**
1345
+ * 删除页面
1346
+ * @param view 已有的页面实例
1347
+ */
1348
+ removeView(view: View): void;
1349
+
1350
+ removeView(options: string | View) {
1351
+ let view: View;
1352
+ if (typeof options === 'string') {
1353
+ view = this.children.find((item) => item.name === options);
1354
+ if (!view) {
1355
+ throw new Error('找不到页面 ' + options);
1356
+ }
1357
+ } else {
1358
+ view = options;
1359
+ }
1360
+ return view.delete();
1361
+ }
1362
+
1363
+ __removeView(view: View) {
1364
+ const parentKey = view.parentKey;
1365
+ const params: Params = {
1366
+ parentNode: this,
1367
+ parentKey,
1368
+ index: -1,
1369
+ object: null,
1370
+ oldObject: view,
1371
+ };
1372
+ if (parentKey) {
1373
+ params.parentKey = parentKey;
1374
+ if (Array.isArray((this as any)[parentKey])) {
1375
+ const index = (this as any)[parentKey].indexOf(view);
1376
+ ~index && (this as any)[parentKey].splice(index, 1);
1377
+ params.index = index;
1378
+ } else if ((this as any)[parentKey] === view) {
1379
+ params.index = 0;
1380
+ (this as any)[parentKey] = undefined;
1381
+ }
1382
+ }
1383
+ return params;
1384
+ }
1385
+
1386
+ //================================================================================
1387
+ // ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑
1388
+ // 自动生成的代码已结束。下面可以手动编写。
1389
+ //================================================================================
1390
+
1391
+ /**
1392
+ * 设置页面权限
1393
+ */
1394
+ setBindRoles(bindRoles: string[]) {
1395
+ const object = {
1396
+ bindRoles,
1397
+ };
1398
+ this.update({
1399
+ ...object,
1400
+ });
1401
+ }
1402
+ findLogicByName(name: string) {
1403
+ return this.logics.find((logic) => logic.name === name);
1404
+ }
1405
+
1406
+ existingViewElement: Set<string> = new Set<string>();
1407
+
1408
+ // 收集已经存在的ViewElement
1409
+ collectExistingViewElementName(excludedList: Array<ViewElement> = []) {
1410
+ const excludedSet = new Set(excludedList);
1411
+ this.elements.forEach((element) => {
1412
+ utils.traverse(({ node }) => {
1413
+ if (!excludedSet.has(node)) {
1414
+ this.existingViewElement.add(node.name);
1415
+ }
1416
+ }, {
1417
+ node: element,
1418
+ });
1419
+ });
1420
+ }
1421
+
1422
+ getViewElementExistingNames(excludedList: Array<ViewElement> = []) {
1423
+ const excludedSet = new Set(excludedList);
1424
+ return Array.from(this.existingViewElement);
1425
+ }
1426
+
1427
+ // getViewElementUniqueName(name = 'viewElement1') {
1428
+ // this.collectExistingViewElementName();
1429
+ // const viewElementUniqueName = utils.unique(name, this.existingViewElement);
1430
+ // this.existingViewElement.add(viewElementUniqueName);
1431
+ // return viewElementUniqueName;
1432
+ // }
1433
+
1434
+ // 组件名是否有效
1435
+ isValidElementName(name: string): boolean {
1436
+ if (name) {
1437
+ return !this.getViewElementExistingNames().find((existingName) => existingName === name);
1438
+ }
1439
+ return false;
1440
+ }
1441
+
1442
+ public static readonly TAG_NAME_PREFIX_REG?: RegExp = /^([lieu]|van)[-_]/;
1443
+
1444
+ mergeBlock({ code, nodePath, position }: { code: string; nodePath: string; position: string }) {
1445
+ const template = utils.sliceTagContent(code, 'template');
1446
+ let targetNode = this.app.findNodeByPath(nodePath);
1447
+ let parentNode = position === 'append' ? targetNode : targetNode.parentNode;
1448
+ if (parentNode.concept === 'View') {
1449
+ parentNode = targetNode;
1450
+ if (position === 'insertBefore') {
1451
+ targetNode = parentNode.children[0];
1452
+ } else if (position === 'insertAfter') {
1453
+ const len = parentNode.children.length;
1454
+ targetNode = parentNode.children[len - 1];
1455
+ }
1456
+ }
1457
+ const definitionStr = utils.sliceTagContent(code, 'definition') || '{}';
1458
+ const definition: any = JSON.parse(definitionStr);
1459
+
1460
+ if (template) {
1461
+ const node = ViewElement.fromHTML(template, {
1462
+ view: this,
1463
+ });
1464
+ if (!parentNode) {
1465
+ return;
1466
+ }
1467
+ if (position === 'append') {
1468
+ parentNode.addViewElement(node);
1469
+ } else {
1470
+ const index = targetNode.getIndexOfParent();
1471
+ if (position === 'insertBefore') {
1472
+ parentNode.insertViewElementAt(node, index);
1473
+ } else if (position === 'insertAfter') {
1474
+ parentNode.insertViewElementAt(node, index + 1);
1475
+ }
1476
+ }
1477
+ }
1478
+ // 全局结构体
1479
+ if (Array.isArray(definition.structures)) {
1480
+ definition.structures.forEach((structureOption: any) => {
1481
+ const structure = Structure.from({
1482
+ ...structureOption,
1483
+ }, this.rootNode, 'structures');
1484
+ (this.rootNode as App).addStructure(structure);
1485
+ });
1486
+ }
1487
+
1488
+ // 全局逻辑
1489
+ if (Array.isArray(definition.logics)) {
1490
+ definition.logics.forEach((logicOption: any) => {
1491
+ const logic = Logic.from({
1492
+ ...logicOption,
1493
+ }, this.rootNode, 'logics');
1494
+ (this.rootNode as App).addLogic(logic);
1495
+ });
1496
+ }
1497
+
1498
+ // 页面入参
1499
+ if (Array.isArray(definition.viewParams)) {
1500
+ definition.viewParams.forEach((paramsOption: any) => {
1501
+ const param = Param.from({
1502
+ ...paramsOption,
1503
+ }, this, 'params');
1504
+ this.addParam(param);
1505
+ });
1506
+ }
1507
+ // 页面变量
1508
+ if (Array.isArray(definition.viewVariables)) {
1509
+ definition.viewVariables.forEach((variableOption: any) => {
1510
+ const variable = Variable.from({
1511
+ ...variableOption,
1512
+ }, this, 'variables');
1513
+ this.addVariable(variable);
1514
+ });
1515
+ }
1516
+
1517
+ // 页面逻辑
1518
+ if (Array.isArray(definition.viewLogics)) {
1519
+ definition.viewLogics.forEach((logicOption: any) => {
1520
+ const logic = Logic.from({
1521
+ ...logicOption,
1522
+ }, this, 'logics');
1523
+ this.addLogic(logic);
1524
+ });
1525
+ }
1526
+
1527
+ // 页面事件
1528
+ if (Array.isArray(definition.viewBindEvents)) {
1529
+ definition.viewBindEvents.forEach((eventOption: any) => {
1530
+ const event = BindEvent.from({
1531
+ ...eventOption,
1532
+ }, this, 'events');
1533
+ this.addBindEvent(event);
1534
+ });
1535
+ }
1536
+ }
1537
+
1538
+ onChange($event?: EventPayload): void {
1539
+ this.emit('change', $event);
1540
+ }
1541
+
1542
+ getVarExistingNames(excludedList: Array<Param | Variable> = []) {
1543
+ const excludedSet = new Set(excludedList);
1544
+ return [...this.params, ...this.variables].filter((item) => !excludedSet.has(item)).map((item) => item.name);
1545
+ }
1546
+
1547
+ /**
1548
+ * 角色
1549
+ */
1550
+ @property()
1551
+ roles: Array<{
1552
+ namespace: string;
1553
+ name: string;
1554
+ }> = [];
1555
+
1556
+ toggleRole(role: Role) {
1557
+ const index = this.roles.findIndex((roleItem) => roleItem.name === role.name);
1558
+ const roles = [...this.roles];
1559
+ if (index !== -1) {
1560
+ roles.splice(index, 1);
1561
+ this.roles = roles;
1562
+ } else {
1563
+ roles.push({
1564
+ namespace: role.getNamespace(),
1565
+ name: role.name,
1566
+ });
1567
+ }
1568
+ const object = {
1569
+ roles,
1570
+ };
1571
+
1572
+ this.update({
1573
+ ...object,
1574
+ });
1575
+ }
1576
+
1577
+ /**
1578
+ * 生成 Vue 中需要的 JS 代码
1579
+ * @TODO 这一版先做成 componentOptions 式的,后面再美化
1580
+ */
1581
+ genScript() {
1582
+ let componentOptions = 'const componentOptions = {};';
1583
+ if (this.script)
1584
+ componentOptions = this.script.trim().replace(/export default |module\.exports +=/, 'const componentOptions = ');
1585
+
1586
+ const definition = {
1587
+ params: this.params,
1588
+ variables: this.variables,
1589
+ logics: this.logics,
1590
+ events: this.events,
1591
+ title: this.title,
1592
+ crumb: this.crumb,
1593
+ first: this.isIndex,
1594
+ };
1595
+ return `${componentOptions}
1596
+ ${translator(definition)}
1597
+ export default componentOptions;
1598
+ `;
1599
+ }
1600
+ genVueTemplate(options?: ElementToVueOptions) {
1601
+ return this.elements.map((element) => element.toVue(options) + '\n').join('');
1602
+ }
1603
+ /**
1604
+ * 转换成 Vue 文件
1605
+ */
1606
+ toVue(options?: ElementToVueOptions) {
1607
+ let result = '';
1608
+ result += `<template>\n${this.genVueTemplate(options)}\n</template>\n`;
1609
+ result += `<script>\n${this.genScript()}\n</script>\n`;
1610
+ return result;
1611
+ }
1612
+ /**
1613
+ * 转换成设计器中使用的 Vue template 内容
1614
+ * @param options
1615
+ */
1616
+ genDesignerVueTemplate(options?: ElementToVueOptions) {
1617
+ return this.elements.map((element) => element.toDesignerVue(options) + '\n').join('');
1618
+ }
1619
+ /**
1620
+ * 转换成设计器中使用的 Vue 文件
1621
+ * 目前不需要 script 和 style
1622
+ * @param options
1623
+ */
1624
+ toDesignerVue(options?: ElementToVueOptions) {
1625
+ return `<template>\n${this.genDesignerVueTemplate(options)}</template>`;
1626
+ }
1627
+ /**
1628
+ * 转换成 VueOptions
1629
+ * @TODO 后面 template 可以优化成 render 函数
1630
+ */
1631
+ toVueOptions(options?: ElementToVueOptions) {
1632
+ return {
1633
+ template: this.genVueTemplate(options),
1634
+ script: this.genScript(),
1635
+ };
1636
+ }
1637
+ /**
1638
+ * 生成宿主语言的文件路径
1639
+ * @param name 一般不用传,用于 rename
1640
+ */
1641
+ getEmbeddedFilePath(name = this.name) {
1642
+ return `/embedded/${this.app.name}/views/${name}.ts`;
1643
+ }
1644
+
1645
+ getNamespace(): string {
1646
+ if (this.parentNode) {
1647
+ let parentNodeNamespace = (this.parentNode as Namespace).getNamespace();
1648
+ if (this.parentNode.concept === 'View') {
1649
+ parentNodeNamespace = `${(this.parentNode as View).getNamespace()}.${this.parentNode.name}`;
1650
+ }
1651
+ return `${parentNodeNamespace}.${this.parentNode.concept === this.concept ? 'children' : 'views'}`;
1652
+ } else
1653
+ throw new Error('无法获取命名空间,请设置 parentNode!');
1654
+ }
1655
+
1656
+ @withSourceMap()
1657
+ toEmbeddedTS(state?: TranslatorState, parentName?: string): string {
1658
+ const currentName = `${parentName ? parentName + '.children.' : ''}${this.name}`;
1659
+ let code = `export namespace ${currentName} {\n`;
1660
+ // 角色
1661
+ // if (this.auth && Array.isArray(this.roles) && this.roles.length) {
1662
+ // code += indent(state.tabSize + 1);
1663
+ // code += 'export let roles = [\n';
1664
+ // this.roles.forEach((role) => {
1665
+ // code += indent(state.tabSize + 1);
1666
+ // `${this.app.getNamespace()}.${role.name}`;
1667
+ // code += `${role.namespace}.${role.name},`;
1668
+ // code += '\n';
1669
+ // });
1670
+ // code += indent(state.tabSize + 1);
1671
+ // code += '];\n';
1672
+ // }
1673
+ if (this.auth && Array.isArray(this.bindRoles) && this.bindRoles.length) {
1674
+ code += indent(state.tabSize + 1);
1675
+ code += 'export let bindRoles = [\n';
1676
+ this.bindRoles.forEach((role) => {
1677
+ code += indent(state.tabSize + 1);
1678
+ code += `${this.app.getNamespace()}.roles.${role}.${role},`;
1679
+ code += '\n';
1680
+ });
1681
+ code += '\n';
1682
+ code += indent(state.tabSize + 1);
1683
+ code += '];\n';
1684
+ }
1685
+ if (Array.isArray(this.params)) {
1686
+ this.params.forEach((param) => {
1687
+ code += indent(state.tabSize + 1) + 'let ';
1688
+ code += param.toEmbeddedTS(shiftState(state, code, { inline: true }));
1689
+ code += ';\n';
1690
+ });
1691
+ }
1692
+ if (Array.isArray(this.variables)) {
1693
+ this.variables.forEach((variable) => {
1694
+ code += indent(state.tabSize + 1) + 'let ';
1695
+ code += variable.toEmbeddedTS(shiftState(state, code, { inline: true }));
1696
+ code += ';\n';
1697
+ });
1698
+ }
1699
+
1700
+ // elements类型声明定义
1701
+ code += indent(state.tabSize + 1) + `let __elements = {\n`;
1702
+ // 生成所有的name和类型定义
1703
+ this.elements.forEach((element) => {
1704
+ code += element.toEmbeddedTSDefinition(shiftState(state, code, {
1705
+ tabSize: state.tabSize + 1,
1706
+ }));
1707
+ });
1708
+ code += indent(state.tabSize + 1) + '}\n';
1709
+ // 逻辑
1710
+ if (Array.isArray(this.logics) && this.logics.length) {
1711
+ code += indent(state.tabSize + 1);
1712
+ code += `export namespace logics {\n`;
1713
+ this.logics.forEach((logic) => {
1714
+ code += logic.toEmbeddedTS(shiftState(state, code, {
1715
+ tabSize: state.tabSize + 2,
1716
+ }));
1717
+ code += '\n';
1718
+ });
1719
+ code += indent(state.tabSize + 1);
1720
+ code += '}\n';
1721
+ }
1722
+ // 事件
1723
+ if (Array.isArray(this.events) && this.events.length) {
1724
+ this.events.forEach((event) => {
1725
+ code += event.toEmbeddedTS(shiftState(state, code, {
1726
+ tabSize: state.tabSize,
1727
+ }));
1728
+ code += '\n';
1729
+ });
1730
+ }
1731
+
1732
+ // render函数
1733
+ code += '\n' + indent(state.tabSize + 1);
1734
+ code += `export function __render(`;
1735
+ code += `){\n`;
1736
+ code += indent(state.tabSize + 1);
1737
+
1738
+ // elements 元素
1739
+ // if (Array.isArray(this.elements)) {
1740
+ // // 生成嵌套式的内容
1741
+ // this.elements.forEach((element) => {
1742
+ // code += element.toEmbeddedTS(shiftState(state, code, {
1743
+ // tabSize: state.tabSize + 3,
1744
+ // }));
1745
+ // code += '\n';
1746
+ // });
1747
+ // }
1748
+
1749
+ code += '\n' + indent(state.tabSize + 1) + '}\n';
1750
+
1751
+ if (Array.isArray(this.params)) {
1752
+ code += indent(state.tabSize + 1) + `export function destination(`;
1753
+ this.params.forEach((param, index) => {
1754
+ code += `${param.toEmbeddedTS(shiftState(state, code, { inline: true }))}`;
1755
+ if (index !== this.params.length - 1)
1756
+ code += ', ';
1757
+ });
1758
+ code += '){}\n';
1759
+ }
1760
+ code += indent(state.tabSize) + '}\n';
1761
+ // 子页面
1762
+ if (Array.isArray(this.children)) {
1763
+ this.children.forEach((child) => {
1764
+ code += child.toEmbeddedTS(shiftState(state, code), currentName);
1765
+ code += '\n';
1766
+ });
1767
+ }
1768
+
1769
+ return code;
1770
+ }
1771
+
1772
+ toEmbeddedTSFile() {
1773
+ let code = `namespace ${this.getNamespace()} {\n`;
1774
+ const state = createCompilerState(code, {
1775
+ tabSize: 1,
1776
+ });
1777
+
1778
+ code += this.toEmbeddedTS(state);
1779
+
1780
+ code += '}\n';
1781
+
1782
+ return {
1783
+ code,
1784
+ filePath: this.getEmbeddedFilePath(),
1785
+ sourceMap: state.sourceMap,
1786
+ };
1787
+ }
1788
+
1789
+ get path() {
1790
+ const _path = [];
1791
+ let view: View = this;
1792
+ while (view.concept === 'View') {
1793
+ _path.push(view.name);
1794
+ view = view.parentNode as View;
1795
+ }
1796
+ let path = '/';
1797
+ if (_path.length) {
1798
+ path += `${_path.join('/')}`;
1799
+ }
1800
+ return path;
1801
+ }
1802
+
1803
+ _setAsIndexView(isIndex: boolean) {
1804
+ let views: View[] = [];
1805
+ if (this.parentNode.concept !== 'View') {
1806
+ views = (this.parentNode as App).views;
1807
+ } else if (this.parentNode.concept === 'View') {
1808
+ views = (this.parentNode as View).children;
1809
+ }
1810
+ if (views.length) {
1811
+ if (this.isIndex !== isIndex) {
1812
+ this.setIsIndex(isIndex);
1813
+ }
1814
+ // 设为默认跳转页时,将之前的默认跳转页取消设置
1815
+ if (isIndex) {
1816
+ views.forEach((view) => {
1817
+ if (view !== this && view.isIndex) {
1818
+ view.setIsIndex(false);
1819
+ }
1820
+ });
1821
+ }
1822
+ }
1823
+ }
1824
+
1825
+ setAsIndexView(isIndex: boolean) {
1826
+ this.rootNode.emit('collect:start');
1827
+ this._setAsIndexView(isIndex);
1828
+ this.rootNode.emit('collect:end');
1829
+ }
1830
+
1831
+ //================================================================================
1832
+ // 从这里开始到结尾注释之间的代码由 NASL Workbench 自动生成,请不手动修改!
1833
+ // ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓
1834
+ //================================================================================
1835
+ }
1836
+
1837
+ classMap['View'] = View;
1838
+ export default View;
1839
+ //================================================================================
1840
+ // ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑
1841
+ // 自动生成的代码已结束。下面可以手动编写。
1842
+ //================================================================================