@lcap/nasl 0.3.15 → 1.0.0-alpha.10

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 (1675) hide show
  1. package/DEVELOPMENT.md +39 -55
  2. package/README.md +78 -5
  3. package/bin/naslc +3 -0
  4. package/docs/.nojekyll +1 -0
  5. package/docs/assets/custom.css +3 -0
  6. package/docs/assets/highlight.css +78 -0
  7. package/docs/assets/icons.css +1043 -0
  8. package/docs/assets/icons.png +0 -0
  9. package/docs/assets/icons@2x.png +0 -0
  10. package/docs/assets/main.js +52 -0
  11. package/docs/assets/search.js +1 -0
  12. package/docs/assets/style.css +1414 -0
  13. package/docs/assets/widgets.png +0 -0
  14. package/docs/assets/widgets@2x.png +0 -0
  15. package/docs/classes/App.html +509 -0
  16. package/docs/classes/Argument.html +191 -0
  17. package/docs/classes/Assignment.html +195 -0
  18. package/docs/classes/Attribute.html +169 -0
  19. package/docs/classes/BaseNode.html +128 -0
  20. package/docs/classes/BinaryExpression.html +199 -0
  21. package/docs/classes/BindAttribute.html +209 -0
  22. package/docs/classes/BindDirective.html +161 -0
  23. package/docs/classes/BindEvent.html +173 -0
  24. package/docs/classes/BooleanLiteral.html +177 -0
  25. package/docs/classes/CallFunction.html +201 -0
  26. package/docs/classes/CallInterface.html +201 -0
  27. package/docs/classes/CallLogic.html +207 -0
  28. package/docs/classes/CallQueryComponent.html +301 -0
  29. package/docs/classes/Comment.html +175 -0
  30. package/docs/classes/CompletionProperty.html +167 -0
  31. package/docs/classes/Constant.html +161 -0
  32. package/docs/classes/DataElement.html +143 -0
  33. package/docs/classes/Destination.html +205 -0
  34. package/docs/classes/End.html +173 -0
  35. package/docs/classes/Entity.html +2833 -0
  36. package/docs/classes/EntityIndex.html +153 -0
  37. package/docs/classes/EntityProperty.html +211 -0
  38. package/docs/classes/Enum.html +171 -0
  39. package/docs/classes/EnumItem.html +143 -0
  40. package/docs/classes/Event.html +173 -0
  41. package/docs/classes/ForEachStatement.html +253 -0
  42. package/docs/classes/Function.html +259 -0
  43. package/docs/classes/Identifier.html +181 -0
  44. package/docs/classes/IfStatement.html +229 -0
  45. package/docs/classes/Interface.html +211 -0
  46. package/docs/classes/InterfaceParam.html +171 -0
  47. package/docs/classes/JSBlock.html +179 -0
  48. package/docs/classes/Logic.html +327 -0
  49. package/docs/classes/LogicItem.html +175 -0
  50. package/docs/classes/MemberExpression.html +196 -0
  51. package/docs/classes/Module.html +386 -0
  52. package/docs/classes/Namespace.html +497 -0
  53. package/docs/classes/NullLiteral.html +175 -0
  54. package/docs/classes/NumericLiteral.html +187 -0
  55. package/docs/classes/Param.html +173 -0
  56. package/docs/classes/Point.html +131 -0
  57. package/docs/classes/Process.html +261 -0
  58. package/docs/classes/ProcessComponent.html +199 -0
  59. package/docs/classes/ProcessElement.html +333 -0
  60. package/docs/classes/ProcessOutcome.html +179 -0
  61. package/docs/classes/QueryAggregateExpression.html +185 -0
  62. package/docs/classes/QueryFieldExpression.html +185 -0
  63. package/docs/classes/QueryFromExpression.html +205 -0
  64. package/docs/classes/QueryGroupByExpression.html +187 -0
  65. package/docs/classes/QueryJoinExpression.html +237 -0
  66. package/docs/classes/QueryLimitExpression.html +199 -0
  67. package/docs/classes/QueryOrderByExpression.html +197 -0
  68. package/docs/classes/QuerySelectExpression.html +213 -0
  69. package/docs/classes/Rect.html +135 -0
  70. package/docs/classes/Return.html +169 -0
  71. package/docs/classes/Role.html +139 -0
  72. package/docs/classes/Slot.html +143 -0
  73. package/docs/classes/SqlQueryComponent.html +191 -0
  74. package/docs/classes/Start.html +173 -0
  75. package/docs/classes/StringLiteral.html +177 -0
  76. package/docs/classes/Structure.html +203 -0
  77. package/docs/classes/StructureProperty.html +171 -0
  78. package/docs/classes/SwitchCase.html +207 -0
  79. package/docs/classes/SwitchStatement.html +193 -0
  80. package/docs/classes/Theme.html +133 -0
  81. package/docs/classes/Transactional.html +151 -0
  82. package/docs/classes/TypeAnnotation.html +163 -0
  83. package/docs/classes/TypeParam.html +129 -0
  84. package/docs/classes/UnaryExpression.html +187 -0
  85. package/docs/classes/Unparsed.html +177 -0
  86. package/docs/classes/UseComponent.html +131 -0
  87. package/docs/classes/ValidationRule.html +201 -0
  88. package/docs/classes/Variable.html +167 -0
  89. package/docs/classes/View.html +4568 -0
  90. package/docs/classes/ViewComponent.html +289 -0
  91. package/docs/classes/ViewElement.html +296 -0
  92. package/docs/classes/WhileStatement.html +207 -0
  93. package/docs/index.html +69 -313
  94. package/docs/modules.html +31 -377
  95. package/docs-theme/LICENSE +21 -0
  96. package/docs-theme/README.md +9 -0
  97. package/docs-theme/package.json +81 -0
  98. package/docs-theme/src/assets/common.js +2 -0
  99. package/docs-theme/src/assets/common.js.LICENSE.txt +61 -0
  100. package/docs-theme/src/assets/css/main.css +1 -0
  101. package/docs-theme/src/assets/images/icons.png +0 -0
  102. package/docs-theme/src/assets/images/icons@2x.png +0 -0
  103. package/docs-theme/src/config.json +25 -0
  104. package/docs-theme/src/index.js +45 -0
  105. package/docs-theme/src/layouts/default.js +88 -0
  106. package/docs-theme/src/partials/analytics.js +22 -0
  107. package/docs-theme/src/partials/breadcrumb.js +9 -0
  108. package/docs-theme/src/partials/footer.js +96 -0
  109. package/docs-theme/src/partials/header.js +25 -0
  110. package/docs-theme/src/partials/infrafoot.js +113 -0
  111. package/docs-theme/src/partials/infranav.js +187 -0
  112. package/docs-theme/src/partials/navigation.js +39 -0
  113. package/docs-theme/src/templates/index.js +7 -0
  114. package/docs-theme/src/templates/reflection.js +41 -0
  115. package/docs-theme/src/utils/lib.js +109 -0
  116. package/out/automate/engine/index.d.ts +3 -0
  117. package/out/automate/engine/index.js +436 -0
  118. package/out/automate/engine/index.js.map +1 -0
  119. package/out/automate/engine/utils.d.ts +19 -0
  120. package/out/automate/engine/utils.js +333 -0
  121. package/out/automate/engine/utils.js.map +1 -0
  122. package/out/bak/translator.d.ts +1 -0
  123. package/out/bak/translator.js +111 -0
  124. package/out/bak/translator.js.map +1 -0
  125. package/out/common/BaseNode.d.ts +235 -0
  126. package/out/common/BaseNode.js +726 -0
  127. package/out/common/BaseNode.js.map +1 -0
  128. package/out/common/Command.d.ts +8 -0
  129. package/out/common/Command.js +32 -0
  130. package/out/common/Command.js.map +1 -0
  131. package/out/{types/common → common}/ComponentAPI.d.ts +0 -0
  132. package/out/{types/common → common}/ComponentAPI.js +0 -0
  133. package/out/common/ComponentAPI.js.map +1 -0
  134. package/out/common/EventEmitter.d.ts +58 -0
  135. package/out/common/EventEmitter.js +68 -0
  136. package/out/common/EventEmitter.js.map +1 -0
  137. package/out/common/Messager.d.ts +86 -0
  138. package/out/common/Messager.js +187 -0
  139. package/out/common/Messager.js.map +1 -0
  140. package/out/common/classMap.d.ts +4 -0
  141. package/out/common/classMap.js +5 -0
  142. package/out/common/classMap.js.map +1 -0
  143. package/out/common/index.d.ts +4 -0
  144. package/out/common/index.js +21 -0
  145. package/out/common/index.js.map +1 -0
  146. package/out/concepts/App__.d.ts +1099 -0
  147. package/out/concepts/App__.js +1515 -0
  148. package/out/concepts/App__.js.map +1 -0
  149. package/out/concepts/Argument__.d.ts +54 -0
  150. package/out/concepts/Argument__.js +180 -0
  151. package/out/concepts/Argument__.js.map +1 -0
  152. package/out/concepts/Assignment__.d.ts +70 -0
  153. package/out/concepts/Assignment__.js +196 -0
  154. package/out/concepts/Assignment__.js.map +1 -0
  155. package/out/concepts/Attribute__.d.ts +101 -0
  156. package/out/concepts/Attribute__.js +221 -0
  157. package/out/concepts/Attribute__.js.map +1 -0
  158. package/out/concepts/BinaryExpression__.d.ts +64 -0
  159. package/out/concepts/BinaryExpression__.js +251 -0
  160. package/out/concepts/BinaryExpression__.js.map +1 -0
  161. package/out/concepts/BindAttribute__.d.ts +212 -0
  162. package/out/concepts/BindAttribute__.js +405 -0
  163. package/out/concepts/BindAttribute__.js.map +1 -0
  164. package/out/concepts/BindDirective__.d.ts +93 -0
  165. package/out/concepts/BindDirective__.js +224 -0
  166. package/out/concepts/BindDirective__.js.map +1 -0
  167. package/out/concepts/BindEvent__.d.ts +138 -0
  168. package/out/concepts/BindEvent__.js +315 -0
  169. package/out/concepts/BindEvent__.js.map +1 -0
  170. package/out/concepts/BooleanLiteral__.d.ts +25 -0
  171. package/out/concepts/BooleanLiteral__.js +70 -0
  172. package/out/concepts/BooleanLiteral__.js.map +1 -0
  173. package/out/concepts/CallFunction__.d.ts +153 -0
  174. package/out/concepts/CallFunction__.js +342 -0
  175. package/out/concepts/CallFunction__.js.map +1 -0
  176. package/out/concepts/CallInterface__.d.ts +98 -0
  177. package/out/concepts/CallInterface__.js +234 -0
  178. package/out/concepts/CallInterface__.js.map +1 -0
  179. package/out/concepts/CallLogic__.d.ts +170 -0
  180. package/out/concepts/CallLogic__.js +529 -0
  181. package/out/concepts/CallLogic__.js.map +1 -0
  182. package/out/concepts/CallQueryComponent__.d.ts +310 -0
  183. package/out/concepts/CallQueryComponent__.js +753 -0
  184. package/out/concepts/CallQueryComponent__.js.map +1 -0
  185. package/out/concepts/Comment__.d.ts +30 -0
  186. package/out/concepts/Comment__.js +89 -0
  187. package/out/concepts/Comment__.js.map +1 -0
  188. package/out/concepts/CompletionProperty__.d.ts +99 -0
  189. package/out/concepts/CompletionProperty__.js +235 -0
  190. package/out/concepts/CompletionProperty__.js.map +1 -0
  191. package/out/concepts/ConfigGroup__.d.ts +120 -0
  192. package/out/concepts/ConfigGroup__.js +214 -0
  193. package/out/concepts/ConfigGroup__.js.map +1 -0
  194. package/out/concepts/ConfigPropertyValue__.d.ts +43 -0
  195. package/out/concepts/ConfigPropertyValue__.js +103 -0
  196. package/out/concepts/ConfigPropertyValue__.js.map +1 -0
  197. package/out/concepts/ConfigProperty__.d.ts +128 -0
  198. package/out/concepts/ConfigProperty__.js +236 -0
  199. package/out/concepts/ConfigProperty__.js.map +1 -0
  200. package/out/concepts/Configuration__.d.ts +120 -0
  201. package/out/concepts/Configuration__.js +210 -0
  202. package/out/concepts/Configuration__.js.map +1 -0
  203. package/out/concepts/Constant__.d.ts +98 -0
  204. package/out/concepts/Constant__.js +223 -0
  205. package/out/concepts/Constant__.js.map +1 -0
  206. package/out/concepts/DataElement__.d.ts +45 -0
  207. package/out/concepts/DataElement__.js +114 -0
  208. package/out/concepts/DataElement__.js.map +1 -0
  209. package/out/concepts/Destination__.d.ts +107 -0
  210. package/out/concepts/Destination__.js +328 -0
  211. package/out/concepts/Destination__.js.map +1 -0
  212. package/out/concepts/End__.d.ts +23 -0
  213. package/out/concepts/End__.js +76 -0
  214. package/out/concepts/End__.js.map +1 -0
  215. package/out/concepts/EntityIndex__.d.ts +89 -0
  216. package/out/concepts/EntityIndex__.js +207 -0
  217. package/out/concepts/EntityIndex__.js.map +1 -0
  218. package/out/concepts/EntityProperty__.d.ts +215 -0
  219. package/out/concepts/EntityProperty__.js +495 -0
  220. package/out/concepts/EntityProperty__.js.map +1 -0
  221. package/out/concepts/Entity__.d.ts +291 -0
  222. package/out/concepts/Entity__.js +546 -0
  223. package/out/concepts/Entity__.js.map +1 -0
  224. package/out/concepts/EnumItem__.d.ts +60 -0
  225. package/out/concepts/EnumItem__.js +136 -0
  226. package/out/concepts/EnumItem__.js.map +1 -0
  227. package/out/concepts/Enum__.d.ts +130 -0
  228. package/out/concepts/Enum__.js +275 -0
  229. package/out/concepts/Enum__.js.map +1 -0
  230. package/out/concepts/Event__.d.ts +142 -0
  231. package/out/concepts/Event__.js +242 -0
  232. package/out/concepts/Event__.js.map +1 -0
  233. package/out/concepts/ForEachStatement__.d.ts +191 -0
  234. package/out/concepts/ForEachStatement__.js +445 -0
  235. package/out/concepts/ForEachStatement__.js.map +1 -0
  236. package/out/concepts/Function__.d.ts +388 -0
  237. package/out/concepts/Function__.js +562 -0
  238. package/out/concepts/Function__.js.map +1 -0
  239. package/out/concepts/Identifier__.d.ts +42 -0
  240. package/out/concepts/Identifier__.js +164 -0
  241. package/out/concepts/Identifier__.js.map +1 -0
  242. package/out/concepts/IfStatement__.d.ts +148 -0
  243. package/out/concepts/IfStatement__.js +280 -0
  244. package/out/concepts/IfStatement__.js.map +1 -0
  245. package/out/concepts/InterfaceParam__.d.ts +110 -0
  246. package/out/concepts/InterfaceParam__.js +265 -0
  247. package/out/concepts/InterfaceParam__.js.map +1 -0
  248. package/out/concepts/Interface__.d.ts +256 -0
  249. package/out/concepts/Interface__.js +475 -0
  250. package/out/concepts/Interface__.js.map +1 -0
  251. package/out/concepts/JSBlock__.d.ts +30 -0
  252. package/out/concepts/JSBlock__.js +89 -0
  253. package/out/concepts/JSBlock__.js.map +1 -0
  254. package/out/concepts/LogicItem__.d.ts +116 -0
  255. package/out/concepts/LogicItem__.js +219 -0
  256. package/out/concepts/LogicItem__.js.map +1 -0
  257. package/out/concepts/Logic__.d.ts +592 -0
  258. package/out/concepts/Logic__.js +1056 -0
  259. package/out/concepts/Logic__.js.map +1 -0
  260. package/out/concepts/MemberExpression__.d.ts +63 -0
  261. package/out/concepts/MemberExpression__.js +201 -0
  262. package/out/concepts/MemberExpression__.js.map +1 -0
  263. package/out/concepts/Module__.d.ts +747 -0
  264. package/out/concepts/Module__.js +987 -0
  265. package/out/concepts/Module__.js.map +1 -0
  266. package/out/concepts/Namespace__.d.ts +1068 -0
  267. package/out/concepts/Namespace__.js +1397 -0
  268. package/out/concepts/Namespace__.js.map +1 -0
  269. package/out/concepts/NullLiteral__.d.ts +20 -0
  270. package/out/concepts/NullLiteral__.js +63 -0
  271. package/out/concepts/NullLiteral__.js.map +1 -0
  272. package/out/concepts/NumericLiteral__.d.ts +53 -0
  273. package/out/concepts/NumericLiteral__.js +161 -0
  274. package/out/concepts/NumericLiteral__.js.map +1 -0
  275. package/out/concepts/Param__.d.ts +142 -0
  276. package/out/concepts/Param__.js +315 -0
  277. package/out/concepts/Param__.js.map +1 -0
  278. package/out/concepts/Point__.d.ts +30 -0
  279. package/out/concepts/Point__.js +75 -0
  280. package/out/concepts/Point__.js.map +1 -0
  281. package/out/concepts/ProcessComponent__.d.ts +218 -0
  282. package/out/concepts/ProcessComponent__.js +333 -0
  283. package/out/concepts/ProcessComponent__.js.map +1 -0
  284. package/out/concepts/ProcessElement__.d.ts +558 -0
  285. package/out/concepts/ProcessElement__.js +909 -0
  286. package/out/concepts/ProcessElement__.js.map +1 -0
  287. package/out/concepts/ProcessOutcome__.d.ts +30 -0
  288. package/out/concepts/ProcessOutcome__.js +87 -0
  289. package/out/concepts/ProcessOutcome__.js.map +1 -0
  290. package/out/concepts/Process__.d.ts +445 -0
  291. package/out/concepts/Process__.js +770 -0
  292. package/out/concepts/Process__.js.map +1 -0
  293. package/out/concepts/QueryAggregateExpression__.d.ts +50 -0
  294. package/out/concepts/QueryAggregateExpression__.js +144 -0
  295. package/out/concepts/QueryAggregateExpression__.js.map +1 -0
  296. package/out/concepts/QueryFieldExpression__.d.ts +47 -0
  297. package/out/concepts/QueryFieldExpression__.js +122 -0
  298. package/out/concepts/QueryFieldExpression__.js.map +1 -0
  299. package/out/concepts/QueryFromExpression__.d.ts +91 -0
  300. package/out/concepts/QueryFromExpression__.js +181 -0
  301. package/out/concepts/QueryFromExpression__.js.map +1 -0
  302. package/out/concepts/QueryGroupByExpression__.d.ts +42 -0
  303. package/out/concepts/QueryGroupByExpression__.js +119 -0
  304. package/out/concepts/QueryGroupByExpression__.js.map +1 -0
  305. package/out/concepts/QueryJoinExpression__.d.ts +178 -0
  306. package/out/concepts/QueryJoinExpression__.js +301 -0
  307. package/out/concepts/QueryJoinExpression__.js.map +1 -0
  308. package/out/concepts/QueryLimitExpression__.d.ts +56 -0
  309. package/out/concepts/QueryLimitExpression__.js +156 -0
  310. package/out/concepts/QueryLimitExpression__.js.map +1 -0
  311. package/out/concepts/QueryOrderByExpression__.d.ts +67 -0
  312. package/out/concepts/QueryOrderByExpression__.js +169 -0
  313. package/out/concepts/QueryOrderByExpression__.js.map +1 -0
  314. package/out/concepts/QuerySelectExpression__.d.ts +114 -0
  315. package/out/concepts/QuerySelectExpression__.js +203 -0
  316. package/out/concepts/QuerySelectExpression__.js.map +1 -0
  317. package/out/concepts/Rect__.d.ts +38 -0
  318. package/out/concepts/Rect__.js +89 -0
  319. package/out/concepts/Rect__.js.map +1 -0
  320. package/out/concepts/Return__.d.ts +128 -0
  321. package/out/concepts/Return__.js +281 -0
  322. package/out/concepts/Return__.js.map +1 -0
  323. package/out/concepts/Role__.d.ts +61 -0
  324. package/out/concepts/Role__.js +155 -0
  325. package/out/concepts/Role__.js.map +1 -0
  326. package/out/concepts/Slot__.d.ts +57 -0
  327. package/out/concepts/Slot__.js +114 -0
  328. package/out/concepts/Slot__.js.map +1 -0
  329. package/out/concepts/SqlQueryComponent__.d.ts +47 -0
  330. package/out/concepts/SqlQueryComponent__.js +134 -0
  331. package/out/concepts/SqlQueryComponent__.js.map +1 -0
  332. package/out/concepts/Start__.d.ts +23 -0
  333. package/out/concepts/Start__.js +71 -0
  334. package/out/concepts/Start__.js.map +1 -0
  335. package/out/concepts/StringLiteral__.d.ts +35 -0
  336. package/out/concepts/StringLiteral__.js +142 -0
  337. package/out/concepts/StringLiteral__.js.map +1 -0
  338. package/out/concepts/StructureProperty__.d.ts +123 -0
  339. package/out/concepts/StructureProperty__.js +286 -0
  340. package/out/concepts/StructureProperty__.js.map +1 -0
  341. package/out/concepts/Structure__.d.ts +245 -0
  342. package/out/concepts/Structure__.js +408 -0
  343. package/out/concepts/Structure__.js.map +1 -0
  344. package/out/concepts/SwitchCase__.d.ts +92 -0
  345. package/out/concepts/SwitchCase__.js +231 -0
  346. package/out/concepts/SwitchCase__.js.map +1 -0
  347. package/out/concepts/SwitchStatement__.d.ts +82 -0
  348. package/out/concepts/SwitchStatement__.js +180 -0
  349. package/out/concepts/SwitchStatement__.js.map +1 -0
  350. package/out/concepts/Theme__.d.ts +36 -0
  351. package/out/concepts/Theme__.js +86 -0
  352. package/out/concepts/Theme__.js.map +1 -0
  353. package/out/concepts/Transactional__.d.ts +76 -0
  354. package/out/concepts/Transactional__.js +151 -0
  355. package/out/concepts/Transactional__.js.map +1 -0
  356. package/out/concepts/TypeAnnotation__.d.ts +126 -0
  357. package/out/concepts/TypeAnnotation__.js +317 -0
  358. package/out/concepts/TypeAnnotation__.js.map +1 -0
  359. package/out/concepts/TypeParam__.d.ts +20 -0
  360. package/out/concepts/TypeParam__.js +57 -0
  361. package/out/concepts/TypeParam__.js.map +1 -0
  362. package/out/concepts/UnaryExpression__.d.ts +46 -0
  363. package/out/concepts/UnaryExpression__.js +164 -0
  364. package/out/concepts/UnaryExpression__.js.map +1 -0
  365. package/out/concepts/Unparsed__.d.ts +29 -0
  366. package/out/concepts/Unparsed__.js +88 -0
  367. package/out/concepts/Unparsed__.js.map +1 -0
  368. package/out/concepts/UseComponent__.d.ts +30 -0
  369. package/out/concepts/UseComponent__.js +75 -0
  370. package/out/concepts/UseComponent__.js.map +1 -0
  371. package/out/concepts/ValidationRule__.d.ts +93 -0
  372. package/out/concepts/ValidationRule__.js +219 -0
  373. package/out/concepts/ValidationRule__.js.map +1 -0
  374. package/out/concepts/Variable__.d.ts +127 -0
  375. package/out/concepts/Variable__.js +279 -0
  376. package/out/concepts/Variable__.js.map +1 -0
  377. package/out/concepts/ViewComponent__.d.ts +472 -0
  378. package/out/concepts/ViewComponent__.js +644 -0
  379. package/out/concepts/ViewComponent__.js.map +1 -0
  380. package/out/concepts/ViewElement__.d.ts +475 -0
  381. package/out/concepts/ViewElement__.js +1285 -0
  382. package/out/concepts/ViewElement__.js.map +1 -0
  383. package/out/concepts/View__.d.ts +674 -0
  384. package/out/concepts/View__.js +1280 -0
  385. package/out/concepts/View__.js.map +1 -0
  386. package/out/concepts/WhileStatement__.d.ts +95 -0
  387. package/out/concepts/WhileStatement__.js +208 -0
  388. package/out/concepts/WhileStatement__.js.map +1 -0
  389. package/out/concepts/basics/stdlib/index.d.ts +4 -0
  390. package/out/concepts/basics/stdlib/index.js +23 -0
  391. package/out/concepts/basics/stdlib/index.js.map +1 -0
  392. package/out/concepts/basics/stdlib/nasl.collection.d.ts +7 -0
  393. package/out/concepts/basics/stdlib/nasl.collection.js +83 -0
  394. package/out/concepts/basics/stdlib/nasl.collection.js.map +1 -0
  395. package/out/concepts/basics/stdlib/nasl.core.d.ts +3 -0
  396. package/out/concepts/basics/stdlib/nasl.core.js +15 -0
  397. package/out/concepts/basics/stdlib/nasl.core.js.map +1 -0
  398. package/out/concepts/basics/stdlib/nasl.interface.d.ts +5 -0
  399. package/out/concepts/basics/stdlib/nasl.interface.js +43 -0
  400. package/out/concepts/basics/stdlib/nasl.interface.js.map +1 -0
  401. package/out/concepts/basics/stdlib/nasl.process.d.ts +3 -0
  402. package/out/concepts/basics/stdlib/nasl.process.js +43 -0
  403. package/out/concepts/basics/stdlib/nasl.process.js.map +1 -0
  404. package/out/concepts/basics/stdlib/nasl.ui.d.ts +7 -0
  405. package/out/concepts/basics/stdlib/nasl.ui.js +814 -0
  406. package/out/concepts/basics/stdlib/nasl.ui.js.map +1 -0
  407. package/out/concepts/basics/stdlib/nasl.util.d.ts +3 -0
  408. package/out/concepts/basics/stdlib/nasl.util.js +632 -0
  409. package/out/concepts/basics/stdlib/nasl.util.js.map +1 -0
  410. package/out/concepts/basics/stdlib/nasl.validation.d.ts +3 -0
  411. package/out/concepts/basics/stdlib/nasl.validation.js +527 -0
  412. package/out/concepts/basics/stdlib/nasl.validation.js.map +1 -0
  413. package/out/concepts/basics/stdlib/reference2TypeAnnotationList.d.ts +5 -0
  414. package/out/concepts/basics/stdlib/reference2TypeAnnotationList.js +26 -0
  415. package/out/concepts/basics/stdlib/reference2TypeAnnotationList.js.map +1 -0
  416. package/out/concepts/basics/types/coreTypeList.d.ts +2 -0
  417. package/out/concepts/basics/types/coreTypeList.js +18 -0
  418. package/out/concepts/basics/types/coreTypeList.js.map +1 -0
  419. package/out/concepts/basics/types/index.d.ts +11 -0
  420. package/out/concepts/basics/types/index.js +22 -0
  421. package/out/concepts/basics/types/index.js.map +1 -0
  422. package/out/concepts/index.d.ts +5 -0
  423. package/out/concepts/index.js +24 -0
  424. package/out/concepts/index.js.map +1 -0
  425. package/out/concepts/index__.d.ts +81 -0
  426. package/out/concepts/index__.js +98 -0
  427. package/out/concepts/index__.js.map +1 -0
  428. package/out/config.d.ts +43 -0
  429. package/out/config.js +72 -0
  430. package/out/config.js.map +1 -0
  431. package/out/decorators/index.d.ts +54 -0
  432. package/out/decorators/index.js +149 -0
  433. package/out/decorators/index.js.map +1 -0
  434. package/out/generator/compileComponent.d.ts +11 -0
  435. package/out/generator/compileComponent.js +12 -0
  436. package/out/generator/compileComponent.js.map +1 -0
  437. package/out/generator/genBundleFiles.d.ts +37 -0
  438. package/out/generator/genBundleFiles.js +231 -0
  439. package/out/generator/genBundleFiles.js.map +1 -0
  440. package/out/generator/genHash.d.ts +7 -0
  441. package/out/generator/genHash.js +39 -0
  442. package/out/generator/genHash.js.map +1 -0
  443. package/out/generator/genMetaData.d.ts +35 -0
  444. package/out/generator/genMetaData.js +78 -0
  445. package/out/generator/genMetaData.js.map +1 -0
  446. package/out/generator/index.d.ts +5 -0
  447. package/out/generator/index.js +22 -0
  448. package/out/generator/index.js.map +1 -0
  449. package/out/generator/styleReplacer.d.ts +3 -0
  450. package/out/generator/styleReplacer.js +71 -0
  451. package/out/generator/styleReplacer.js.map +1 -0
  452. package/out/index.d.ts +10 -0
  453. package/out/index.js +51 -0
  454. package/out/index.js.map +1 -0
  455. package/out/manager/diagnostic.d.ts +38 -0
  456. package/out/manager/diagnostic.js +84 -0
  457. package/out/manager/diagnostic.js.map +1 -0
  458. package/{analysis/mergeBlock/raw1.json → out/manager/history.d.ts} +0 -0
  459. package/out/manager/history.js +1 -0
  460. package/out/manager/history.js.map +1 -0
  461. package/out/manager/problem.d.ts +0 -0
  462. package/out/manager/problem.js +1 -0
  463. package/out/manager/problem.js.map +1 -0
  464. package/out/server/createUiTs.d.ts +7 -0
  465. package/out/server/createUiTs.js +163 -0
  466. package/out/server/createUiTs.js.map +1 -0
  467. package/out/server/entity2LogicNamespace.d.ts +10 -0
  468. package/out/server/entity2LogicNamespace.js +202 -0
  469. package/out/server/entity2LogicNamespace.js.map +1 -0
  470. package/out/server/getExtensionModules.d.ts +3 -0
  471. package/out/server/getExtensionModules.js +18 -0
  472. package/out/server/getExtensionModules.js.map +1 -0
  473. package/out/server/getFunctions.d.ts +2 -0
  474. package/out/server/getFunctions.js +14 -0
  475. package/out/server/getFunctions.js.map +1 -0
  476. package/out/server/getInterfaces.d.ts +2 -0
  477. package/out/server/getInterfaces.js +48 -0
  478. package/out/server/getInterfaces.js.map +1 -0
  479. package/out/server/getLogics.d.ts +3 -0
  480. package/out/server/getLogics.js +118 -0
  481. package/out/server/getLogics.js.map +1 -0
  482. package/out/server/getMemberIdentifier.d.ts +7 -0
  483. package/out/server/getMemberIdentifier.js +230 -0
  484. package/out/server/getMemberIdentifier.js.map +1 -0
  485. package/out/server/getProcessComponents.d.ts +2 -0
  486. package/out/server/getProcessComponents.js +13 -0
  487. package/out/server/getProcessComponents.js.map +1 -0
  488. package/out/server/getProcesses.d.ts +22 -0
  489. package/out/server/getProcesses.js +115 -0
  490. package/out/server/getProcesses.js.map +1 -0
  491. package/out/server/getValidates.d.ts +3 -0
  492. package/out/server/getValidates.js +14 -0
  493. package/out/server/getValidates.js.map +1 -0
  494. package/out/server/index.d.ts +2 -0
  495. package/out/server/index.js +28 -0
  496. package/out/server/index.js.map +1 -0
  497. package/out/server/naslServer.d.ts +156 -0
  498. package/out/server/naslServer.js +1465 -0
  499. package/out/server/naslServer.js.map +1 -0
  500. package/out/server/process2LogicNamespace.d.ts +16 -0
  501. package/out/server/process2LogicNamespace.js +60 -0
  502. package/out/server/process2LogicNamespace.js.map +1 -0
  503. package/out/server/translator.d.ts +5 -0
  504. package/out/server/translator.js +178 -0
  505. package/out/server/translator.js.map +1 -0
  506. package/out/service/storage/index.d.ts +2 -0
  507. package/out/service/storage/index.js +10 -0
  508. package/out/service/storage/index.js.map +1 -0
  509. package/out/service/storage/init.d.ts +12 -0
  510. package/out/service/storage/init.js +278 -0
  511. package/out/service/storage/init.js.map +1 -0
  512. package/out/service/storage/jsoner.d.ts +29 -0
  513. package/out/service/storage/jsoner.js +130 -0
  514. package/out/service/storage/jsoner.js.map +1 -0
  515. package/out/service/storage/map.d.ts +4 -0
  516. package/out/service/storage/map.js +54 -0
  517. package/out/service/storage/map.js.map +1 -0
  518. package/out/service/storage/storagePoint.d.ts +30 -0
  519. package/out/service/storage/storagePoint.js +76 -0
  520. package/out/service/storage/storagePoint.js.map +1 -0
  521. package/out/templator/genCallComponentLogic.d.ts +17 -0
  522. package/out/templator/genCallComponentLogic.js +30 -0
  523. package/out/templator/genCallComponentLogic.js.map +1 -0
  524. package/out/templator/genCreateBlock.d.ts +10 -0
  525. package/out/templator/genCreateBlock.js +317 -0
  526. package/out/templator/genCreateBlock.js.map +1 -0
  527. package/out/templator/genCurdEditMultipleKeyBlock.d.ts +2 -0
  528. package/out/templator/genCurdEditMultipleKeyBlock.js +469 -0
  529. package/out/templator/genCurdEditMultipleKeyBlock.js.map +1 -0
  530. package/out/templator/genCurdMultipleKeyBlock.d.ts +3 -0
  531. package/out/templator/genCurdMultipleKeyBlock.js +656 -0
  532. package/out/templator/genCurdMultipleKeyBlock.js.map +1 -0
  533. package/out/templator/genEditTableBlock.d.ts +51 -0
  534. package/out/templator/genEditTableBlock.js +301 -0
  535. package/out/templator/genEditTableBlock.js.map +1 -0
  536. package/out/templator/genEnumSelectBlock.d.ts +10 -0
  537. package/out/templator/genEnumSelectBlock.js +23 -0
  538. package/out/templator/genEnumSelectBlock.js.map +1 -0
  539. package/out/templator/genGetBlock.d.ts +6 -0
  540. package/out/templator/genGetBlock.js +133 -0
  541. package/out/templator/genGetBlock.js.map +1 -0
  542. package/out/templator/genGridViewBlock.d.ts +53 -0
  543. package/out/templator/genGridViewBlock.js +308 -0
  544. package/out/templator/genGridViewBlock.js.map +1 -0
  545. package/out/templator/genListViewBlock.d.ts +19 -0
  546. package/out/templator/genListViewBlock.js +139 -0
  547. package/out/templator/genListViewBlock.js.map +1 -0
  548. package/out/templator/genQueryComponent.d.ts +32 -0
  549. package/out/templator/genQueryComponent.js +307 -0
  550. package/out/templator/genQueryComponent.js.map +1 -0
  551. package/out/templator/genSelectBlock.d.ts +34 -0
  552. package/out/templator/genSelectBlock.js +152 -0
  553. package/out/templator/genSelectBlock.js.map +1 -0
  554. package/out/templator/genTableBlock.d.ts +53 -0
  555. package/out/templator/genTableBlock.js +296 -0
  556. package/out/templator/genTableBlock.js.map +1 -0
  557. package/out/templator/genUpdateBlock.d.ts +6 -0
  558. package/out/templator/genUpdateBlock.js +359 -0
  559. package/out/templator/genUpdateBlock.js.map +1 -0
  560. package/out/templator/index.d.ts +16 -0
  561. package/out/templator/index.js +34 -0
  562. package/out/templator/index.js.map +1 -0
  563. package/out/templator/utils.d.ts +634 -0
  564. package/out/templator/utils.js +421 -0
  565. package/out/templator/utils.js.map +1 -0
  566. package/out/terms/LEVEL_NAME_MAP.d.ts +26 -0
  567. package/out/terms/LEVEL_NAME_MAP.js +30 -0
  568. package/out/terms/LEVEL_NAME_MAP.js.map +1 -0
  569. package/out/test/fixtures/env.d.ts +1 -1
  570. package/out/test/fixtures/env.js +7 -7
  571. package/out/test/fixtures/env.js.map +1 -1
  572. package/out/test/{units/app/App.spec.d.ts → integration/connect-create-file.d.ts} +0 -0
  573. package/out/test/integration/connect-create-file.js +39 -0
  574. package/out/test/integration/connect-create-file.js.map +1 -0
  575. package/out/test/{units/app/Service.spec.d.ts → integration/connect-file.d.ts} +0 -0
  576. package/out/test/integration/connect-file.js +49 -0
  577. package/out/test/integration/connect-file.js.map +1 -0
  578. package/out/{types/eventBus.d.ts → test/units/baseTypes/Assignment.spec.d.ts} +0 -0
  579. package/out/test/units/baseTypes/Assignment.spec.js +43 -0
  580. package/out/test/units/baseTypes/Assignment.spec.js.map +1 -0
  581. package/out/{types/logic/CallInterface.d.ts → test/units/baseTypes/CallLogic.spec.d.ts} +0 -0
  582. package/out/test/units/baseTypes/CallLogic.spec.js +44 -0
  583. package/out/test/units/baseTypes/CallLogic.spec.js.map +1 -0
  584. package/out/test/units/baseTypes/StringLiteral.spec.d.ts +1 -0
  585. package/out/test/units/baseTypes/StringLiteral.spec.js +75 -0
  586. package/out/test/units/baseTypes/StringLiteral.spec.js.map +1 -0
  587. package/out/test/units/baseTypes/new.spec.d.ts +1 -0
  588. package/out/test/units/baseTypes/new.spec.js +37 -0
  589. package/out/test/units/baseTypes/new.spec.js.map +1 -0
  590. package/out/test/units/common/Vertex.spec.js +16 -38
  591. package/out/test/units/common/Vertex.spec.js.map +1 -1
  592. package/out/test/units/data/Entity.spec.js +3 -3
  593. package/out/test/units/data/Entity.spec.js.map +1 -1
  594. package/out/test/units/login.spec.js +4 -4
  595. package/out/test/units/login.spec.js.map +1 -1
  596. package/out/test/units/page/Block.spec.d.ts +0 -1
  597. package/out/test/units/page/Block.spec.js +12 -33
  598. package/out/test/units/page/Block.spec.js.map +1 -1
  599. package/out/test/units/page/Element.spec.js +14 -14
  600. package/out/test/units/page/Element.spec.js.map +1 -1
  601. package/out/test/units/temp/temp.spec.js +2 -2
  602. package/out/test/units/temp/temp.spec.js.map +1 -1
  603. package/out/translator/index.d.ts +47 -0
  604. package/out/translator/index.js +108 -0
  605. package/out/translator/index.js.map +1 -0
  606. package/out/translator/lsp.d.ts +45 -0
  607. package/out/translator/lsp.js +6 -0
  608. package/out/translator/lsp.js.map +1 -0
  609. package/out/translator/tsp.d.ts +12 -0
  610. package/out/translator/tsp.js +3 -0
  611. package/out/translator/tsp.js.map +1 -0
  612. package/out/utils/index.d.ts +26 -0
  613. package/out/utils/index.js +52 -0
  614. package/out/utils/index.js.map +1 -0
  615. package/out/{types/utils → utils}/logger.d.ts +0 -0
  616. package/out/utils/logger.js +11 -0
  617. package/out/utils/logger.js.map +1 -0
  618. package/out/utils/string.d.ts +38 -0
  619. package/out/utils/string.js +66 -0
  620. package/out/utils/string.js.map +1 -0
  621. package/out/utils/traverse.d.ts +36 -0
  622. package/out/utils/traverse.js +132 -0
  623. package/out/utils/traverse.js.map +1 -0
  624. package/package.json +16 -14
  625. package/src/automate/engine/index.js +454 -0
  626. package/src/automate/engine/utils.js +335 -0
  627. package/src/bak/translator.js +124 -0
  628. package/src/common/BaseNode.ts +677 -0
  629. package/src/common/Command.ts +27 -0
  630. package/src/common/ComponentAPI.ts +103 -0
  631. package/src/common/EventEmitter.ts +90 -0
  632. package/src/common/Messager.ts +225 -0
  633. package/src/common/classMap.ts +3 -0
  634. package/src/common/index.ts +4 -0
  635. package/src/concepts/App__.ts +2568 -0
  636. package/src/concepts/Argument__.ts +197 -0
  637. package/src/concepts/Assignment__.ts +236 -0
  638. package/src/concepts/Attribute__.ts +252 -0
  639. package/src/concepts/BinaryExpression__.ts +288 -0
  640. package/src/concepts/BindAttribute__.ts +508 -0
  641. package/src/concepts/BindDirective__.ts +242 -0
  642. package/src/concepts/BindEvent__.ts +400 -0
  643. package/src/concepts/BooleanLiteral__.ts +82 -0
  644. package/src/concepts/CallFunction__.ts +496 -0
  645. package/src/concepts/CallInterface__.ts +314 -0
  646. package/src/concepts/CallLogic__.ts +685 -0
  647. package/src/concepts/CallQueryComponent__.ts +1023 -0
  648. package/src/concepts/Comment__.ts +96 -0
  649. package/src/concepts/CompletionProperty__.ts +250 -0
  650. package/src/concepts/ConfigGroup__.ts +290 -0
  651. package/src/concepts/ConfigPropertyValue__.ts +112 -0
  652. package/src/concepts/ConfigProperty__.ts +306 -0
  653. package/src/concepts/Configuration__.ts +286 -0
  654. package/src/concepts/Constant__.ts +249 -0
  655. package/src/concepts/DataElement__.ts +135 -0
  656. package/src/concepts/Destination__.ts +386 -0
  657. package/src/concepts/End__.ts +84 -0
  658. package/src/concepts/EntityIndex__.ts +216 -0
  659. package/src/concepts/EntityProperty__.ts +520 -0
  660. package/src/concepts/Entity__.ts +719 -0
  661. package/src/concepts/EnumItem__.ts +140 -0
  662. package/src/concepts/Enum__.ts +354 -0
  663. package/src/concepts/Event__.ts +317 -0
  664. package/src/concepts/ForEachStatement__.ts +575 -0
  665. package/src/concepts/Function__.ts +922 -0
  666. package/src/concepts/Identifier__.ts +181 -0
  667. package/src/concepts/IfStatement__.ts +446 -0
  668. package/src/concepts/InterfaceParam__.ts +300 -0
  669. package/src/concepts/Interface__.ts +648 -0
  670. package/src/concepts/JSBlock__.ts +97 -0
  671. package/src/concepts/LogicItem__.ts +238 -0
  672. package/src/concepts/Logic__.ts +1591 -0
  673. package/src/concepts/MemberExpression__.ts +244 -0
  674. package/src/concepts/Module__.ts +1725 -0
  675. package/src/concepts/Namespace__.ts +2518 -0
  676. package/src/concepts/NullLiteral__.ts +77 -0
  677. package/src/concepts/NumericLiteral__.ts +184 -0
  678. package/src/concepts/Param__.ts +353 -0
  679. package/src/concepts/Point__.ts +85 -0
  680. package/src/concepts/ProcessComponent__.ts +503 -0
  681. package/src/concepts/ProcessElement__.ts +1393 -0
  682. package/src/concepts/ProcessOutcome__.ts +92 -0
  683. package/src/concepts/Process__.ts +1154 -0
  684. package/src/concepts/QueryAggregateExpression__.ts +164 -0
  685. package/src/concepts/QueryFieldExpression__.ts +128 -0
  686. package/src/concepts/QueryFromExpression__.ts +256 -0
  687. package/src/concepts/QueryGroupByExpression__.ts +139 -0
  688. package/src/concepts/QueryJoinExpression__.ts +443 -0
  689. package/src/concepts/QueryLimitExpression__.ts +188 -0
  690. package/src/concepts/QueryOrderByExpression__.ts +202 -0
  691. package/src/concepts/QuerySelectExpression__.ts +280 -0
  692. package/src/concepts/Rect__.ts +97 -0
  693. package/src/concepts/Return__.ts +324 -0
  694. package/src/concepts/Role__.ts +162 -0
  695. package/src/concepts/Slot__.ts +122 -0
  696. package/src/concepts/SqlQueryComponent__.ts +149 -0
  697. package/src/concepts/Start__.ts +79 -0
  698. package/src/concepts/StringLiteral__.ts +151 -0
  699. package/src/concepts/StructureProperty__.ts +321 -0
  700. package/src/concepts/Structure__.ts +581 -0
  701. package/src/concepts/SwitchCase__.ts +325 -0
  702. package/src/concepts/SwitchStatement__.ts +256 -0
  703. package/src/concepts/Theme__.ts +95 -0
  704. package/src/concepts/Transactional__.ts +165 -0
  705. package/src/concepts/TypeAnnotation__.ts +387 -0
  706. package/src/concepts/TypeParam__.ts +69 -0
  707. package/src/concepts/UnaryExpression__.ts +182 -0
  708. package/src/concepts/Unparsed__.ts +98 -0
  709. package/src/concepts/UseComponent__.ts +85 -0
  710. package/src/concepts/ValidationRule__.ts +302 -0
  711. package/src/concepts/Variable__.ts +316 -0
  712. package/src/concepts/ViewComponent__.ts +1099 -0
  713. package/src/concepts/ViewElement__.ts +1686 -0
  714. package/src/concepts/View__.ts +1856 -0
  715. package/src/concepts/WhileStatement__.ts +301 -0
  716. package/src/concepts/basics/stdlib/index.ts +20 -0
  717. package/src/concepts/basics/stdlib/nasl.collection.ts +78 -0
  718. package/src/concepts/basics/stdlib/nasl.core.ts +12 -0
  719. package/src/concepts/basics/stdlib/nasl.interface.ts +43 -0
  720. package/src/concepts/basics/stdlib/nasl.process.ts +47 -0
  721. package/src/concepts/basics/stdlib/nasl.ui.ts +810 -0
  722. package/src/concepts/basics/stdlib/nasl.util.ts +630 -0
  723. package/src/concepts/basics/stdlib/nasl.validation.ts +523 -0
  724. package/src/concepts/basics/stdlib/reference2TypeAnnotationList.ts +26 -0
  725. package/src/concepts/basics/types/coreTypeList.ts +15 -0
  726. package/src/concepts/basics/types/index.ts +20 -0
  727. package/src/concepts/index.ts +5 -0
  728. package/src/concepts/index__.ts +81 -0
  729. package/src/config.ts +80 -0
  730. package/src/decorators/index.ts +156 -0
  731. package/src/generator/compileComponent.ts +19 -0
  732. package/src/generator/genBundleFiles.ts +281 -0
  733. package/src/generator/genHash.ts +13 -0
  734. package/src/generator/genMetaData.ts +111 -0
  735. package/src/generator/index.ts +5 -0
  736. package/src/generator/styleReplacer.ts +41 -0
  737. package/src/index.ts +11 -0
  738. package/src/manager/diagnostic.ts +129 -0
  739. package/src/manager/history.ts +0 -0
  740. package/src/manager/problem.ts +0 -0
  741. package/src/server/createUiTs.ts +159 -0
  742. package/src/server/entity2LogicNamespace.ts +204 -0
  743. package/src/server/getExtensionModules.ts +13 -0
  744. package/src/server/getFunctions.ts +10 -0
  745. package/src/server/getInterfaces.ts +47 -0
  746. package/src/server/getLogics.ts +124 -0
  747. package/src/server/getMemberIdentifier.ts +251 -0
  748. package/src/server/getProcessComponents.ts +9 -0
  749. package/src/server/getProcesses.ts +136 -0
  750. package/src/server/getValidates.ts +10 -0
  751. package/src/server/index.ts +23 -0
  752. package/src/server/naslServer.ts +1545 -0
  753. package/src/server/process2LogicNamespace.ts +70 -0
  754. package/src/server/translator.ts +172 -0
  755. package/src/service/app/index.js +1 -1
  756. package/src/service/assets/index.js +1 -1
  757. package/src/service/{create → creator}/add.configs.js +0 -0
  758. package/src/service/{create → creator}/errHandles.js +0 -0
  759. package/src/service/creator/index.js +80 -0
  760. package/src/service/storage/index.ts +6 -0
  761. package/src/service/storage/init.ts +253 -0
  762. package/src/service/storage/jsoner.ts +139 -0
  763. package/src/service/storage/map.ts +57 -0
  764. package/src/service/storage/storagePoint.ts +73 -0
  765. package/src/service/video/BaseService.js +68 -0
  766. package/src/service/video/MainCallbackService.js +207 -0
  767. package/src/service/video/VideoTranscribe.js +102 -0
  768. package/src/service/video/publishService.js +61 -0
  769. package/src/templator/builtInFunctions.json +1 -0
  770. package/src/templator/genCallComponentLogic.ts +27 -0
  771. package/src/templator/genCreateBlock.ts +291 -0
  772. package/src/templator/genCurdEditMultipleKeyBlock.ts +452 -0
  773. package/src/templator/genCurdMultipleKeyBlock.ts +645 -0
  774. package/src/templator/genEditTableBlock.ts +284 -0
  775. package/src/templator/genEnumSelectBlock.ts +22 -0
  776. package/src/templator/genGetBlock.ts +121 -0
  777. package/src/templator/genGridViewBlock.ts +306 -0
  778. package/src/templator/genListViewBlock.ts +124 -0
  779. package/src/templator/genQueryComponent.ts +287 -0
  780. package/src/templator/genSelectBlock.ts +135 -0
  781. package/src/templator/genTableBlock.ts +296 -0
  782. package/src/templator/genUpdateBlock.ts +338 -0
  783. package/src/templator/index.ts +19 -0
  784. package/src/templator/utils.ts +523 -0
  785. package/src/terms/LEVEL_NAME_MAP.ts +31 -0
  786. package/src/test/examples/app1.json +17 -0
  787. package/src/test/fixtures/env.ts +4 -4
  788. package/src/test/integration/connect-create-file.ts +14 -0
  789. package/src/test/integration/connect-file.ts +24 -0
  790. package/src/test/units/baseTypes/Assignment.spec.ts +20 -0
  791. package/src/test/units/baseTypes/CallLogic.spec.ts +22 -0
  792. package/src/test/units/baseTypes/StringLiteral.spec.ts +60 -0
  793. package/src/test/units/baseTypes/new.spec.ts +13 -0
  794. package/src/test/units/common/Vertex.spec.ts +17 -19
  795. package/src/test/units/data/Entity.spec.ts +1 -1
  796. package/src/test/units/login.spec.ts +3 -3
  797. package/src/test/units/page/Block.spec.ts +12 -12
  798. package/src/test/units/page/Element.spec.ts +11 -11
  799. package/src/test/units/temp/temp.spec.ts +2 -2
  800. package/src/translator/index.ts +131 -0
  801. package/src/translator/lsp.ts +50 -0
  802. package/src/translator/tsp.ts +14 -0
  803. package/src/utils/index.ts +52 -0
  804. package/src/utils/logger.ts +8 -0
  805. package/src/utils/string.ts +60 -0
  806. package/src/utils/traverse.ts +158 -0
  807. package/tsconfig.json +5 -12
  808. package/analysis/mergeBlock/README.md +0 -14
  809. package/analysis/mergeBlock/raw2.json +0 -2522
  810. package/analysis/mergeBlock/raw3.json +0 -505
  811. package/analysis/mergeBlock/req2.json +0 -2219
  812. package/analysis/mergeBlock/req3.json +0 -462
  813. package/analysis/mergeBlock/script.js +0 -159
  814. package/docs/assets/css/main.css +0 -2638
  815. package/docs/assets/js/main.js +0 -248
  816. package/docs/assets/js/search.js +0 -1
  817. package/docs/classes/app_app.app.html +0 -1359
  818. package/docs/classes/app_service.microservice.html +0 -1572
  819. package/docs/classes/app_service.service.html +0 -1233
  820. package/docs/classes/app_service.webservice.html +0 -1635
  821. package/docs/classes/common_eventemitter.eventemitter.html +0 -387
  822. package/docs/classes/common_vertex.vertex.html +0 -1086
  823. package/docs/classes/data_datanode.datanode.html +0 -1157
  824. package/docs/classes/data_entity.entity.html +0 -1656
  825. package/docs/classes/data_entityproperty.entityproperty.html +0 -1903
  826. package/docs/classes/data_enum.enum.html +0 -1402
  827. package/docs/classes/data_enumitem.enumitem.html +0 -1252
  828. package/docs/classes/data_interface.interface.html +0 -1673
  829. package/docs/classes/data_structure.structure.html +0 -1427
  830. package/docs/classes/data_structureproperty.structureproperty.html +0 -1656
  831. package/docs/classes/logic_basevariable.basevariable.html +0 -1261
  832. package/docs/classes/logic_logic.logic.html +0 -1639
  833. package/docs/classes/logic_logicitem.expressionnode.html +0 -1982
  834. package/docs/classes/logic_logicitem.logicitem.html +0 -1828
  835. package/docs/classes/logic_logicitem.logicnode.html +0 -2229
  836. package/docs/classes/logic_param.param.html +0 -1707
  837. package/docs/classes/logic_return.return.html +0 -1605
  838. package/docs/classes/logic_variable.variable.html +0 -1631
  839. package/docs/classes/nuims_nuims.nuims.html +0 -596
  840. package/docs/classes/page_attr.attr.html +0 -1335
  841. package/docs/classes/page_block.block.html +0 -1272
  842. package/docs/classes/page_directive.directive.html +0 -1350
  843. package/docs/classes/page_element.element.html +0 -2118
  844. package/docs/classes/page_event.event.html +0 -1284
  845. package/docs/classes/page_lifecycle.lifecycle.html +0 -1286
  846. package/docs/classes/page_page.page.html +0 -1389
  847. package/docs/classes/page_view.view.html +0 -2299
  848. package/docs/classes/page_viewparam.viewparam.html +0 -1727
  849. package/docs/classes/page_viewvariable.viewvariable.html +0 -1668
  850. package/docs/classes/process_process.process.html +0 -1532
  851. package/docs/classes/process_processcomponent.processcomponent.html +0 -1589
  852. package/docs/classes/process_processcomponentattribute.processcomponentattribute.html +0 -1236
  853. package/docs/classes/process_processcomponentproperty.processcomponentproperty.html +0 -1727
  854. package/docs/classes/process_processcomponentreturn.processcomponentreturn.html +0 -1704
  855. package/docs/classes/process_processcomponentvariable.processcomponentvariable.html +0 -1679
  856. package/docs/classes/process_processinterface.processinterface.html +0 -1462
  857. package/docs/classes/process_processparam.processparam.html +0 -1778
  858. package/docs/classes/process_processproperty.processproperty.html +0 -1727
  859. package/docs/classes/process_processreturn.processreturn.html +0 -1678
  860. package/docs/enums/app_service.service_type.html +0 -186
  861. package/docs/enums/data_basictypes.basic_type.html +0 -312
  862. package/docs/enums/index.level_enum.html +0 -655
  863. package/docs/enums/logic_logicitem.logic_type.html +0 -441
  864. package/docs/interfaces/app_service.assetsinfo.html +0 -209
  865. package/docs/interfaces/common_packagejson.default.html +0 -431
  866. package/docs/interfaces/data_entity.resolver.html +0 -228
  867. package/docs/interfaces/data_entityproperty.display.html +0 -214
  868. package/docs/interfaces/data_schema.arrayschema.html +0 -306
  869. package/docs/interfaces/data_schema.baseschema.html +0 -361
  870. package/docs/interfaces/data_schema.basicrefschema.html +0 -362
  871. package/docs/interfaces/data_schema.basicschema.html +0 -334
  872. package/docs/interfaces/data_schema.booleanschema.html +0 -306
  873. package/docs/interfaces/data_schema.enumitemschema.html +0 -225
  874. package/docs/interfaces/data_schema.enumschema.html +0 -306
  875. package/docs/interfaces/data_schema.integerschema.html +0 -334
  876. package/docs/interfaces/data_schema.mapschema.html +0 -320
  877. package/docs/interfaces/data_schema.numberschema.html +0 -334
  878. package/docs/interfaces/data_schema.objectschema.html +0 -313
  879. package/docs/interfaces/data_schema.refschema.html +0 -332
  880. package/docs/interfaces/data_schema.schema.html +0 -511
  881. package/docs/interfaces/data_schema.setschema.html +0 -306
  882. package/docs/interfaces/data_schema.stringschema.html +0 -334
  883. package/docs/interfaces/history.historyrecord.html +0 -183
  884. package/docs/interfaces/index.arrayschema.html +0 -261
  885. package/docs/interfaces/index.baseschema.html +0 -236
  886. package/docs/interfaces/index.basicrefschema.html +0 -317
  887. package/docs/interfaces/index.basicschema.html +0 -289
  888. package/docs/interfaces/index.booleanschema.html +0 -261
  889. package/docs/interfaces/index.enumitemschema.html +0 -180
  890. package/docs/interfaces/index.enumschema.html +0 -261
  891. package/docs/interfaces/index.integerschema.html +0 -289
  892. package/docs/interfaces/index.mapschema.html +0 -275
  893. package/docs/interfaces/index.numberschema.html +0 -289
  894. package/docs/interfaces/index.objectschema.html +0 -261
  895. package/docs/interfaces/index.refschema.html +0 -287
  896. package/docs/interfaces/index.schema.html +0 -459
  897. package/docs/interfaces/index.setschema.html +0 -261
  898. package/docs/interfaces/index.stringschema.html +0 -289
  899. package/docs/interfaces/page_element.elementtovueoptions.html +0 -283
  900. package/docs/interfaces/typecheck.typecheckrecord.html +0 -211
  901. package/docs/interfaces/utils.inode.html +0 -212
  902. package/docs/interfaces/utils.inodeinfo.html +0 -295
  903. package/docs/interfaces/utils_traverse.inode.html +0 -191
  904. package/docs/interfaces/utils_traverse.inodeinfo.html +0 -274
  905. package/docs/modules/app_app.html +0 -149
  906. package/docs/modules/app_service.html +0 -175
  907. package/docs/modules/cachedata.html +0 -198
  908. package/docs/modules/common_eventemitter.html +0 -192
  909. package/docs/modules/common_packagejson.html +0 -132
  910. package/docs/modules/common_vertex.html +0 -149
  911. package/docs/modules/config.html +0 -168
  912. package/docs/modules/data_basictypes.html +0 -271
  913. package/docs/modules/data_datanode.html +0 -149
  914. package/docs/modules/data_datatypes.html +0 -196
  915. package/docs/modules/data_datatypeutils.html +0 -430
  916. package/docs/modules/data_entity.html +0 -158
  917. package/docs/modules/data_entityproperty.html +0 -158
  918. package/docs/modules/data_entityutils.html +0 -342
  919. package/docs/modules/data_enum.html +0 -149
  920. package/docs/modules/data_enumitem.html +0 -149
  921. package/docs/modules/data_interface.html +0 -149
  922. package/docs/modules/data_schema.html +0 -205
  923. package/docs/modules/data_structure.html +0 -149
  924. package/docs/modules/data_structureproperty.html +0 -149
  925. package/docs/modules/data_systemtypes.html +0 -167
  926. package/docs/modules/decorators.html +0 -333
  927. package/docs/modules/eventbus.html +0 -116
  928. package/docs/modules/generator.html +0 -749
  929. package/docs/modules/generator_data.html +0 -495
  930. package/docs/modules/generator_hotreload.html +0 -200
  931. package/docs/modules/generator_load.html +0 -247
  932. package/docs/modules/generator_page.html +0 -200
  933. package/docs/modules/history.html +0 -200
  934. package/docs/modules/index.html +0 -1163
  935. package/docs/modules/logic_basevariable.html +0 -238
  936. package/docs/modules/logic_callinterface.html +0 -116
  937. package/docs/modules/logic_logic.html +0 -149
  938. package/docs/modules/logic_logicitem.html +0 -220
  939. package/docs/modules/logic_param.html +0 -149
  940. package/docs/modules/logic_return.html +0 -149
  941. package/docs/modules/logic_tools.html +0 -326
  942. package/docs/modules/logic_translator.html +0 -158
  943. package/docs/modules/logic_variable.html +0 -149
  944. package/docs/modules/nuims_nuims.html +0 -149
  945. package/docs/modules/page_attr.html +0 -149
  946. package/docs/modules/page_block.html +0 -149
  947. package/docs/modules/page_directive.html +0 -149
  948. package/docs/modules/page_element.html +0 -158
  949. package/docs/modules/page_event.html +0 -149
  950. package/docs/modules/page_lifecycle.html +0 -149
  951. package/docs/modules/page_page.html +0 -149
  952. package/docs/modules/page_view.html +0 -149
  953. package/docs/modules/page_viewparam.html +0 -149
  954. package/docs/modules/page_viewvariable.html +0 -149
  955. package/docs/modules/process_process.html +0 -149
  956. package/docs/modules/process_processcomponent.html +0 -149
  957. package/docs/modules/process_processcomponentattribute.html +0 -149
  958. package/docs/modules/process_processcomponentproperty.html +0 -149
  959. package/docs/modules/process_processcomponentreturn.html +0 -149
  960. package/docs/modules/process_processcomponentvariable.html +0 -149
  961. package/docs/modules/process_processinterface.html +0 -149
  962. package/docs/modules/process_processparam.html +0 -149
  963. package/docs/modules/process_processproperty.html +0 -149
  964. package/docs/modules/process_processreturn.html +0 -149
  965. package/docs/modules/typecheck.html +0 -269
  966. package/docs/modules/utils.html +0 -536
  967. package/docs/modules/utils_logger.html +0 -172
  968. package/docs/modules/utils_string.html +0 -347
  969. package/docs/modules/utils_traverse.html +0 -248
  970. package/index.js +0 -12
  971. package/module/base.js +0 -11
  972. package/out/service/app/api.d.ts +0 -75
  973. package/out/service/app/api.js +0 -87
  974. package/out/service/app/api.js.map +0 -1
  975. package/out/service/app/index.d.ts +0 -2
  976. package/out/service/app/index.js +0 -10
  977. package/out/service/app/index.js.map +0 -1
  978. package/out/service/assets/asset.d.ts +0 -104
  979. package/out/service/assets/asset.js +0 -78
  980. package/out/service/assets/asset.js.map +0 -1
  981. package/out/service/assets/block.d.ts +0 -9
  982. package/out/service/assets/block.js +0 -11
  983. package/out/service/assets/block.js.map +0 -1
  984. package/out/service/assets/index.d.ts +0 -2
  985. package/out/service/assets/index.js +0 -12
  986. package/out/service/assets/index.js.map +0 -1
  987. package/out/service/common/findUsage.d.ts +0 -9
  988. package/out/service/common/findUsage.js +0 -11
  989. package/out/service/common/findUsage.js.map +0 -1
  990. package/out/service/common/index.d.ts +0 -2
  991. package/out/service/common/index.js +0 -12
  992. package/out/service/common/index.js.map +0 -1
  993. package/out/service/common/preprocess.d.ts +0 -14
  994. package/out/service/common/preprocess.js +0 -75
  995. package/out/service/common/preprocess.js.map +0 -1
  996. package/out/service/common/schema.d.ts +0 -9
  997. package/out/service/common/schema.js +0 -12
  998. package/out/service/common/schema.js.map +0 -1
  999. package/out/service/create/add.configs.d.ts +0 -1
  1000. package/out/service/create/add.configs.js +0 -68
  1001. package/out/service/create/add.configs.js.map +0 -1
  1002. package/out/service/create/errHandles.d.ts +0 -18
  1003. package/out/service/create/errHandles.js +0 -57
  1004. package/out/service/create/errHandles.js.map +0 -1
  1005. package/out/service/create/index.d.ts +0 -1
  1006. package/out/service/create/index.js +0 -77
  1007. package/out/service/create/index.js.map +0 -1
  1008. package/out/service/data/api.d.ts +0 -36
  1009. package/out/service/data/api.js +0 -36
  1010. package/out/service/data/api.js.map +0 -1
  1011. package/out/service/data/entity.d.ts +0 -135
  1012. package/out/service/data/entity.js +0 -103
  1013. package/out/service/data/entity.js.map +0 -1
  1014. package/out/service/data/enum.d.ts +0 -63
  1015. package/out/service/data/enum.js +0 -55
  1016. package/out/service/data/enum.js.map +0 -1
  1017. package/out/service/data/enumProperty.d.ts +0 -28
  1018. package/out/service/data/enumProperty.js +0 -23
  1019. package/out/service/data/enumProperty.js.map +0 -1
  1020. package/out/service/data/generic.d.ts +0 -9
  1021. package/out/service/data/generic.js +0 -11
  1022. package/out/service/data/generic.js.map +0 -1
  1023. package/out/service/data/index.d.ts +0 -8
  1024. package/out/service/data/index.js +0 -23
  1025. package/out/service/data/index.js.map +0 -1
  1026. package/out/service/data/interface.d.ts +0 -67
  1027. package/out/service/data/interface.js +0 -58
  1028. package/out/service/data/interface.js.map +0 -1
  1029. package/out/service/data/structure.d.ts +0 -92
  1030. package/out/service/data/structure.js +0 -77
  1031. package/out/service/data/structure.js.map +0 -1
  1032. package/out/service/logic/checktypeSocket.d.ts +0 -5
  1033. package/out/service/logic/checktypeSocket.js +0 -55
  1034. package/out/service/logic/checktypeSocket.js.map +0 -1
  1035. package/out/service/logic/index.d.ts +0 -5
  1036. package/out/service/logic/index.js +0 -17
  1037. package/out/service/logic/index.js.map +0 -1
  1038. package/out/service/logic/logic.d.ts +0 -166
  1039. package/out/service/logic/logic.js +0 -123
  1040. package/out/service/logic/logic.js.map +0 -1
  1041. package/out/service/logic/param.d.ts +0 -37
  1042. package/out/service/logic/param.js +0 -29
  1043. package/out/service/logic/param.js.map +0 -1
  1044. package/out/service/nuims/api.d.ts +0 -264
  1045. package/out/service/nuims/api.js +0 -194
  1046. package/out/service/nuims/api.js.map +0 -1
  1047. package/out/service/nuims/index.d.ts +0 -2
  1048. package/out/service/nuims/index.js +0 -17
  1049. package/out/service/nuims/index.js.map +0 -1
  1050. package/out/service/page/api.d.ts +0 -186
  1051. package/out/service/page/api.js +0 -1376
  1052. package/out/service/page/api.js.map +0 -1
  1053. package/out/service/page/attribute.d.ts +0 -28
  1054. package/out/service/page/attribute.js +0 -23
  1055. package/out/service/page/attribute.js.map +0 -1
  1056. package/out/service/page/directive.d.ts +0 -28
  1057. package/out/service/page/directive.js +0 -23
  1058. package/out/service/page/directive.js.map +0 -1
  1059. package/out/service/page/element.d.ts +0 -45
  1060. package/out/service/page/element.js +0 -42
  1061. package/out/service/page/element.js.map +0 -1
  1062. package/out/service/page/event.d.ts +0 -28
  1063. package/out/service/page/event.js +0 -23
  1064. package/out/service/page/event.js.map +0 -1
  1065. package/out/service/page/index.d.ts +0 -8
  1066. package/out/service/page/index.js +0 -23
  1067. package/out/service/page/index.js.map +0 -1
  1068. package/out/service/page/lifecycle.d.ts +0 -28
  1069. package/out/service/page/lifecycle.js +0 -23
  1070. package/out/service/page/lifecycle.js.map +0 -1
  1071. package/out/service/page/templates.d.ts +0 -14
  1072. package/out/service/page/templates.js +0 -70
  1073. package/out/service/page/templates.js.map +0 -1
  1074. package/out/service/page/view.d.ts +0 -130
  1075. package/out/service/page/view.js +0 -116
  1076. package/out/service/page/view.js.map +0 -1
  1077. package/out/service/permission/api.d.ts +0 -57
  1078. package/out/service/permission/api.js +0 -41
  1079. package/out/service/permission/api.js.map +0 -1
  1080. package/out/service/permission/index.d.ts +0 -2
  1081. package/out/service/permission/index.js +0 -17
  1082. package/out/service/permission/index.js.map +0 -1
  1083. package/out/service/process/api.d.ts +0 -136
  1084. package/out/service/process/api.js +0 -95
  1085. package/out/service/process/api.js.map +0 -1
  1086. package/out/service/process/index.d.ts +0 -2
  1087. package/out/service/process/index.js +0 -10
  1088. package/out/service/process/index.js.map +0 -1
  1089. package/out/service/undoredo/api.d.ts +0 -36
  1090. package/out/service/undoredo/api.js +0 -29
  1091. package/out/service/undoredo/api.js.map +0 -1
  1092. package/out/service/undoredo/index.d.ts +0 -2
  1093. package/out/service/undoredo/index.js +0 -10
  1094. package/out/service/undoredo/index.js.map +0 -1
  1095. package/out/service/webFile/api.d.ts +0 -45
  1096. package/out/service/webFile/api.js +0 -35
  1097. package/out/service/webFile/api.js.map +0 -1
  1098. package/out/service/webFile/index.d.ts +0 -3
  1099. package/out/service/webFile/index.js +0 -32
  1100. package/out/service/webFile/index.js.map +0 -1
  1101. package/out/service/webFile/loadCache.d.ts +0 -18
  1102. package/out/service/webFile/loadCache.js +0 -17
  1103. package/out/service/webFile/loadCache.js.map +0 -1
  1104. package/out/test/units/app/App.spec.js +0 -17
  1105. package/out/test/units/app/App.spec.js.map +0 -1
  1106. package/out/test/units/app/Service.spec.js +0 -24
  1107. package/out/test/units/app/Service.spec.js.map +0 -1
  1108. package/out/types/app/App.d.ts +0 -151
  1109. package/out/types/app/App.js +0 -385
  1110. package/out/types/app/App.js.map +0 -1
  1111. package/out/types/app/History.d.ts +0 -36
  1112. package/out/types/app/History.js +0 -366
  1113. package/out/types/app/History.js.map +0 -1
  1114. package/out/types/app/Service.d.ts +0 -251
  1115. package/out/types/app/Service.js +0 -955
  1116. package/out/types/app/Service.js.map +0 -1
  1117. package/out/types/cache.d.ts +0 -6
  1118. package/out/types/cache.js +0 -54
  1119. package/out/types/cache.js.map +0 -1
  1120. package/out/types/cacheData.d.ts +0 -4
  1121. package/out/types/cacheData.js +0 -34
  1122. package/out/types/cacheData.js.map +0 -1
  1123. package/out/types/common/ComponentAPI.js.map +0 -1
  1124. package/out/types/common/EventEmitter.d.ts +0 -29
  1125. package/out/types/common/EventEmitter.js +0 -66
  1126. package/out/types/common/EventEmitter.js.map +0 -1
  1127. package/out/types/common/PackageJSON.d.ts +0 -32
  1128. package/out/types/common/PackageJSON.js +0 -3
  1129. package/out/types/common/PackageJSON.js.map +0 -1
  1130. package/out/types/common/Vertex.d.ts +0 -150
  1131. package/out/types/common/Vertex.js +0 -324
  1132. package/out/types/common/Vertex.js.map +0 -1
  1133. package/out/types/config.d.ts +0 -25
  1134. package/out/types/config.js +0 -23
  1135. package/out/types/config.js.map +0 -1
  1136. package/out/types/data/DataNode.d.ts +0 -24
  1137. package/out/types/data/DataNode.js +0 -52
  1138. package/out/types/data/DataNode.js.map +0 -1
  1139. package/out/types/data/Entity.d.ts +0 -143
  1140. package/out/types/data/Entity.js +0 -582
  1141. package/out/types/data/Entity.js.map +0 -1
  1142. package/out/types/data/EntityIndex.d.ts +0 -87
  1143. package/out/types/data/EntityIndex.js +0 -262
  1144. package/out/types/data/EntityIndex.js.map +0 -1
  1145. package/out/types/data/EntityProperty.d.ts +0 -200
  1146. package/out/types/data/EntityProperty.js +0 -591
  1147. package/out/types/data/EntityProperty.js.map +0 -1
  1148. package/out/types/data/Enum.d.ts +0 -101
  1149. package/out/types/data/Enum.js +0 -274
  1150. package/out/types/data/Enum.js.map +0 -1
  1151. package/out/types/data/EnumItem.d.ts +0 -57
  1152. package/out/types/data/EnumItem.js +0 -170
  1153. package/out/types/data/EnumItem.js.map +0 -1
  1154. package/out/types/data/GlobalLogicNode.d.ts +0 -44
  1155. package/out/types/data/GlobalLogicNode.js +0 -201
  1156. package/out/types/data/GlobalLogicNode.js.map +0 -1
  1157. package/out/types/data/Interface.d.ts +0 -153
  1158. package/out/types/data/Interface.js +0 -483
  1159. package/out/types/data/Interface.js.map +0 -1
  1160. package/out/types/data/Module.d.ts +0 -34
  1161. package/out/types/data/Module.js +0 -53
  1162. package/out/types/data/Module.js.map +0 -1
  1163. package/out/types/data/Schema.d.ts +0 -121
  1164. package/out/types/data/Schema.js +0 -3
  1165. package/out/types/data/Schema.js.map +0 -1
  1166. package/out/types/data/Structure.d.ts +0 -112
  1167. package/out/types/data/Structure.js +0 -338
  1168. package/out/types/data/Structure.js.map +0 -1
  1169. package/out/types/data/StructureProperty.d.ts +0 -134
  1170. package/out/types/data/StructureProperty.js +0 -380
  1171. package/out/types/data/StructureProperty.js.map +0 -1
  1172. package/out/types/data/basicTypes.d.ts +0 -25
  1173. package/out/types/data/basicTypes.js +0 -77
  1174. package/out/types/data/basicTypes.js.map +0 -1
  1175. package/out/types/data/dataTypeUtils.d.ts +0 -94
  1176. package/out/types/data/dataTypeUtils.js +0 -441
  1177. package/out/types/data/dataTypeUtils.js.map +0 -1
  1178. package/out/types/data/dataTypes.d.ts +0 -21
  1179. package/out/types/data/dataTypes.js +0 -81
  1180. package/out/types/data/dataTypes.js.map +0 -1
  1181. package/out/types/data/entityUtils.d.ts +0 -164
  1182. package/out/types/data/entityUtils.js +0 -632
  1183. package/out/types/data/entityUtils.js.map +0 -1
  1184. package/out/types/data/genBlock/builtInFunctions.json +0 -560
  1185. package/out/types/data/genBlock/genCallComponentLogic.d.ts +0 -20
  1186. package/out/types/data/genBlock/genCallComponentLogic.js +0 -32
  1187. package/out/types/data/genBlock/genCallComponentLogic.js.map +0 -1
  1188. package/out/types/data/genBlock/genCallInterface.d.ts +0 -41
  1189. package/out/types/data/genBlock/genCallInterface.js +0 -86
  1190. package/out/types/data/genBlock/genCallInterface.js.map +0 -1
  1191. package/out/types/data/genBlock/genCreateBlock.d.ts +0 -10
  1192. package/out/types/data/genBlock/genCreateBlock.js +0 -312
  1193. package/out/types/data/genBlock/genCreateBlock.js.map +0 -1
  1194. package/out/types/data/genBlock/genCurdBlock.d.ts +0 -4
  1195. package/out/types/data/genBlock/genCurdBlock.js +0 -648
  1196. package/out/types/data/genBlock/genCurdBlock.js.map +0 -1
  1197. package/out/types/data/genBlock/genCurdEditMultipleKeyBlock.d.ts +0 -7
  1198. package/out/types/data/genBlock/genCurdEditMultipleKeyBlock.js +0 -470
  1199. package/out/types/data/genBlock/genCurdEditMultipleKeyBlock.js.map +0 -1
  1200. package/out/types/data/genBlock/genCurdEditTableBlock.d.ts +0 -3
  1201. package/out/types/data/genBlock/genCurdEditTableBlock.js +0 -578
  1202. package/out/types/data/genBlock/genCurdEditTableBlock.js.map +0 -1
  1203. package/out/types/data/genBlock/genCurdMultipleKeyBlock.d.ts +0 -9
  1204. package/out/types/data/genBlock/genCurdMultipleKeyBlock.js +0 -662
  1205. package/out/types/data/genBlock/genCurdMultipleKeyBlock.js.map +0 -1
  1206. package/out/types/data/genBlock/genEditTableBlock.d.ts +0 -234
  1207. package/out/types/data/genBlock/genEditTableBlock.js +0 -419
  1208. package/out/types/data/genBlock/genEditTableBlock.js.map +0 -1
  1209. package/out/types/data/genBlock/genEnumSelectBlock.d.ts +0 -10
  1210. package/out/types/data/genBlock/genEnumSelectBlock.js +0 -23
  1211. package/out/types/data/genBlock/genEnumSelectBlock.js.map +0 -1
  1212. package/out/types/data/genBlock/genGetBlock.d.ts +0 -6
  1213. package/out/types/data/genBlock/genGetBlock.js +0 -151
  1214. package/out/types/data/genBlock/genGetBlock.js.map +0 -1
  1215. package/out/types/data/genBlock/genGridViewBlock.d.ts +0 -139
  1216. package/out/types/data/genBlock/genGridViewBlock.js +0 -367
  1217. package/out/types/data/genBlock/genGridViewBlock.js.map +0 -1
  1218. package/out/types/data/genBlock/genListViewBlock.d.ts +0 -63
  1219. package/out/types/data/genBlock/genListViewBlock.js +0 -110
  1220. package/out/types/data/genBlock/genListViewBlock.js.map +0 -1
  1221. package/out/types/data/genBlock/genQueryComponent.d.ts +0 -336
  1222. package/out/types/data/genBlock/genQueryComponent.js +0 -526
  1223. package/out/types/data/genBlock/genQueryComponent.js.map +0 -1
  1224. package/out/types/data/genBlock/genSelectBlock.d.ts +0 -63
  1225. package/out/types/data/genBlock/genSelectBlock.js +0 -107
  1226. package/out/types/data/genBlock/genSelectBlock.js.map +0 -1
  1227. package/out/types/data/genBlock/genTableBlock.d.ts +0 -136
  1228. package/out/types/data/genBlock/genTableBlock.js +0 -270
  1229. package/out/types/data/genBlock/genTableBlock.js.map +0 -1
  1230. package/out/types/data/genBlock/genUpdateBlock.d.ts +0 -6
  1231. package/out/types/data/genBlock/genUpdateBlock.js +0 -383
  1232. package/out/types/data/genBlock/genUpdateBlock.js.map +0 -1
  1233. package/out/types/data/genBlock/index.d.ts +0 -17
  1234. package/out/types/data/genBlock/index.js +0 -31
  1235. package/out/types/data/genBlock/index.js.map +0 -1
  1236. package/out/types/data/genBlock/utils.d.ts +0 -99
  1237. package/out/types/data/genBlock/utils.js +0 -224
  1238. package/out/types/data/genBlock/utils.js.map +0 -1
  1239. package/out/types/data/genericTypes.d.ts +0 -40
  1240. package/out/types/data/genericTypes.js +0 -149
  1241. package/out/types/data/genericTypes.js.map +0 -1
  1242. package/out/types/data/systemTypes.d.ts +0 -9
  1243. package/out/types/data/systemTypes.js +0 -1636
  1244. package/out/types/data/systemTypes.js.map +0 -1
  1245. package/out/types/decorators/index.d.ts +0 -25
  1246. package/out/types/decorators/index.js +0 -57
  1247. package/out/types/decorators/index.js.map +0 -1
  1248. package/out/types/enum.d.ts +0 -6
  1249. package/out/types/enum.js +0 -11
  1250. package/out/types/enum.js.map +0 -1
  1251. package/out/types/eventBus.js +0 -5
  1252. package/out/types/eventBus.js.map +0 -1
  1253. package/out/types/generator/data.d.ts +0 -36
  1254. package/out/types/generator/data.js +0 -201
  1255. package/out/types/generator/data.js.map +0 -1
  1256. package/out/types/generator/hotReload.d.ts +0 -14
  1257. package/out/types/generator/hotReload.js +0 -50
  1258. package/out/types/generator/hotReload.js.map +0 -1
  1259. package/out/types/generator/index.d.ts +0 -4
  1260. package/out/types/generator/index.js +0 -17
  1261. package/out/types/generator/index.js.map +0 -1
  1262. package/out/types/generator/load.d.ts +0 -8
  1263. package/out/types/generator/load.js +0 -92
  1264. package/out/types/generator/load.js.map +0 -1
  1265. package/out/types/generator/page.d.ts +0 -11
  1266. package/out/types/generator/page.js +0 -42
  1267. package/out/types/generator/page.js.map +0 -1
  1268. package/out/types/history.d.ts +0 -10
  1269. package/out/types/history.js +0 -13
  1270. package/out/types/history.js.map +0 -1
  1271. package/out/types/index.d.ts +0 -148
  1272. package/out/types/index.js +0 -230
  1273. package/out/types/index.js.map +0 -1
  1274. package/out/types/logic/BaseVariable.d.ts +0 -75
  1275. package/out/types/logic/BaseVariable.js +0 -159
  1276. package/out/types/logic/BaseVariable.js.map +0 -1
  1277. package/out/types/logic/CallInterface.js +0 -9
  1278. package/out/types/logic/CallInterface.js.map +0 -1
  1279. package/out/types/logic/Logic.d.ts +0 -204
  1280. package/out/types/logic/Logic.js +0 -643
  1281. package/out/types/logic/Logic.js.map +0 -1
  1282. package/out/types/logic/LogicItem.d.ts +0 -321
  1283. package/out/types/logic/LogicItem.js +0 -1360
  1284. package/out/types/logic/LogicItem.js.map +0 -1
  1285. package/out/types/logic/Param.d.ts +0 -86
  1286. package/out/types/logic/Param.js +0 -367
  1287. package/out/types/logic/Param.js.map +0 -1
  1288. package/out/types/logic/Return.d.ts +0 -73
  1289. package/out/types/logic/Return.js +0 -313
  1290. package/out/types/logic/Return.js.map +0 -1
  1291. package/out/types/logic/Variable.d.ts +0 -72
  1292. package/out/types/logic/Variable.js +0 -309
  1293. package/out/types/logic/Variable.js.map +0 -1
  1294. package/out/types/logic/expressions/BinaryExpression.d.ts +0 -27
  1295. package/out/types/logic/expressions/BinaryExpression.js +0 -56
  1296. package/out/types/logic/expressions/BinaryExpression.js.map +0 -1
  1297. package/out/types/logic/expressions/BooleanLiteral.d.ts +0 -19
  1298. package/out/types/logic/expressions/BooleanLiteral.js +0 -42
  1299. package/out/types/logic/expressions/BooleanLiteral.js.map +0 -1
  1300. package/out/types/logic/expressions/Identifier.d.ts +0 -28
  1301. package/out/types/logic/expressions/Identifier.js +0 -57
  1302. package/out/types/logic/expressions/Identifier.js.map +0 -1
  1303. package/out/types/logic/expressions/LogicalExpression.d.ts +0 -27
  1304. package/out/types/logic/expressions/LogicalExpression.js +0 -56
  1305. package/out/types/logic/expressions/LogicalExpression.js.map +0 -1
  1306. package/out/types/logic/expressions/MemberExpression.d.ts +0 -23
  1307. package/out/types/logic/expressions/MemberExpression.js +0 -52
  1308. package/out/types/logic/expressions/MemberExpression.js.map +0 -1
  1309. package/out/types/logic/expressions/NullLiteral.d.ts +0 -15
  1310. package/out/types/logic/expressions/NullLiteral.js +0 -35
  1311. package/out/types/logic/expressions/NullLiteral.js.map +0 -1
  1312. package/out/types/logic/expressions/NumericLiteral.d.ts +0 -19
  1313. package/out/types/logic/expressions/NumericLiteral.js +0 -42
  1314. package/out/types/logic/expressions/NumericLiteral.js.map +0 -1
  1315. package/out/types/logic/expressions/StringLiteral.d.ts +0 -19
  1316. package/out/types/logic/expressions/StringLiteral.js +0 -42
  1317. package/out/types/logic/expressions/StringLiteral.js.map +0 -1
  1318. package/out/types/logic/expressions/UnaryExpression.d.ts +0 -23
  1319. package/out/types/logic/expressions/UnaryExpression.js +0 -49
  1320. package/out/types/logic/expressions/UnaryExpression.js.map +0 -1
  1321. package/out/types/logic/expressions/Unparsed.d.ts +0 -19
  1322. package/out/types/logic/expressions/Unparsed.js +0 -42
  1323. package/out/types/logic/expressions/Unparsed.js.map +0 -1
  1324. package/out/types/logic/nodes/AssignmentExpression.d.ts +0 -23
  1325. package/out/types/logic/nodes/AssignmentExpression.js +0 -49
  1326. package/out/types/logic/nodes/AssignmentExpression.js.map +0 -1
  1327. package/out/types/logic/nodes/BuiltInFuncParam.d.ts +0 -27
  1328. package/out/types/logic/nodes/BuiltInFuncParam.js +0 -56
  1329. package/out/types/logic/nodes/BuiltInFuncParam.js.map +0 -1
  1330. package/out/types/logic/nodes/BuiltInFunction.d.ts +0 -24
  1331. package/out/types/logic/nodes/BuiltInFunction.js +0 -55
  1332. package/out/types/logic/nodes/BuiltInFunction.js.map +0 -1
  1333. package/out/types/logic/nodes/CallConsoleLog.d.ts +0 -19
  1334. package/out/types/logic/nodes/CallConsoleLog.js +0 -42
  1335. package/out/types/logic/nodes/CallConsoleLog.js.map +0 -1
  1336. package/out/types/logic/nodes/CallGraphQL.d.ts +0 -28
  1337. package/out/types/logic/nodes/CallGraphQL.js +0 -56
  1338. package/out/types/logic/nodes/CallGraphQL.js.map +0 -1
  1339. package/out/types/logic/nodes/CallInterParam.d.ts +0 -23
  1340. package/out/types/logic/nodes/CallInterParam.js +0 -49
  1341. package/out/types/logic/nodes/CallInterParam.js.map +0 -1
  1342. package/out/types/logic/nodes/CallInterface.d.ts +0 -24
  1343. package/out/types/logic/nodes/CallInterface.js +0 -49
  1344. package/out/types/logic/nodes/CallInterface.js.map +0 -1
  1345. package/out/types/logic/nodes/CallLogic.d.ts +0 -24
  1346. package/out/types/logic/nodes/CallLogic.js +0 -55
  1347. package/out/types/logic/nodes/CallLogic.js.map +0 -1
  1348. package/out/types/logic/nodes/CallMessageShow.d.ts +0 -27
  1349. package/out/types/logic/nodes/CallMessageShow.js +0 -56
  1350. package/out/types/logic/nodes/CallMessageShow.js.map +0 -1
  1351. package/out/types/logic/nodes/Comment.d.ts +0 -19
  1352. package/out/types/logic/nodes/Comment.js +0 -42
  1353. package/out/types/logic/nodes/Comment.js.map +0 -1
  1354. package/out/types/logic/nodes/CronJob.d.ts +0 -19
  1355. package/out/types/logic/nodes/CronJob.js +0 -42
  1356. package/out/types/logic/nodes/CronJob.js.map +0 -1
  1357. package/out/types/logic/nodes/DBQuery.d.ts +0 -19
  1358. package/out/types/logic/nodes/DBQuery.js +0 -42
  1359. package/out/types/logic/nodes/DBQuery.js.map +0 -1
  1360. package/out/types/logic/nodes/Destination.d.ts +0 -32
  1361. package/out/types/logic/nodes/Destination.js +0 -73
  1362. package/out/types/logic/nodes/Destination.js.map +0 -1
  1363. package/out/types/logic/nodes/DestinationParam.d.ts +0 -24
  1364. package/out/types/logic/nodes/DestinationParam.js +0 -49
  1365. package/out/types/logic/nodes/DestinationParam.js.map +0 -1
  1366. package/out/types/logic/nodes/End.d.ts +0 -15
  1367. package/out/types/logic/nodes/End.js +0 -36
  1368. package/out/types/logic/nodes/End.js.map +0 -1
  1369. package/out/types/logic/nodes/ForEachStatement.d.ts +0 -40
  1370. package/out/types/logic/nodes/ForEachStatement.js +0 -77
  1371. package/out/types/logic/nodes/ForEachStatement.js.map +0 -1
  1372. package/out/types/logic/nodes/IfStatement.d.ts +0 -27
  1373. package/out/types/logic/nodes/IfStatement.js +0 -56
  1374. package/out/types/logic/nodes/IfStatement.js.map +0 -1
  1375. package/out/types/logic/nodes/JSBlock.d.ts +0 -19
  1376. package/out/types/logic/nodes/JSBlock.js +0 -46
  1377. package/out/types/logic/nodes/JSBlock.js.map +0 -1
  1378. package/out/types/logic/nodes/JSONDeserialize.d.ts +0 -19
  1379. package/out/types/logic/nodes/JSONDeserialize.js +0 -42
  1380. package/out/types/logic/nodes/JSONDeserialize.js.map +0 -1
  1381. package/out/types/logic/nodes/JSONSerialize.d.ts +0 -19
  1382. package/out/types/logic/nodes/JSONSerialize.js +0 -42
  1383. package/out/types/logic/nodes/JSONSerialize.js.map +0 -1
  1384. package/out/types/logic/nodes/ProcessOutcome.d.ts +0 -27
  1385. package/out/types/logic/nodes/ProcessOutcome.js +0 -56
  1386. package/out/types/logic/nodes/ProcessOutcome.js.map +0 -1
  1387. package/out/types/logic/nodes/Start.d.ts +0 -15
  1388. package/out/types/logic/nodes/Start.js +0 -35
  1389. package/out/types/logic/nodes/Start.js.map +0 -1
  1390. package/out/types/logic/nodes/SwitchCase.d.ts +0 -23
  1391. package/out/types/logic/nodes/SwitchCase.js +0 -49
  1392. package/out/types/logic/nodes/SwitchCase.js.map +0 -1
  1393. package/out/types/logic/nodes/SwitchStatement.d.ts +0 -20
  1394. package/out/types/logic/nodes/SwitchStatement.js +0 -42
  1395. package/out/types/logic/nodes/SwitchStatement.js.map +0 -1
  1396. package/out/types/logic/nodes/TypeNote.d.ts +0 -19
  1397. package/out/types/logic/nodes/TypeNote.js +0 -42
  1398. package/out/types/logic/nodes/TypeNote.js.map +0 -1
  1399. package/out/types/logic/nodes/WhileStatement.d.ts +0 -23
  1400. package/out/types/logic/nodes/WhileStatement.js +0 -49
  1401. package/out/types/logic/nodes/WhileStatement.js.map +0 -1
  1402. package/out/types/logic/tools.d.ts +0 -15
  1403. package/out/types/logic/tools.js +0 -164
  1404. package/out/types/logic/tools.js.map +0 -1
  1405. package/out/types/logic/translator.d.ts +0 -1
  1406. package/out/types/logic/translator.js +0 -647
  1407. package/out/types/logic/translator.js.map +0 -1
  1408. package/out/types/login.d.ts +0 -7
  1409. package/out/types/login.js +0 -39
  1410. package/out/types/login.js.map +0 -1
  1411. package/out/types/nuims/Nuims.d.ts +0 -128
  1412. package/out/types/nuims/Nuims.js +0 -446
  1413. package/out/types/nuims/Nuims.js.map +0 -1
  1414. package/out/types/page/Attr.d.ts +0 -79
  1415. package/out/types/page/Attr.js +0 -217
  1416. package/out/types/page/Attr.js.map +0 -1
  1417. package/out/types/page/Block.d.ts +0 -65
  1418. package/out/types/page/Block.js +0 -82
  1419. package/out/types/page/Block.js.map +0 -1
  1420. package/out/types/page/Directive.d.ts +0 -78
  1421. package/out/types/page/Directive.js +0 -202
  1422. package/out/types/page/Directive.js.map +0 -1
  1423. package/out/types/page/Element.d.ts +0 -266
  1424. package/out/types/page/Element.js +0 -1430
  1425. package/out/types/page/Element.js.map +0 -1
  1426. package/out/types/page/Event.d.ts +0 -63
  1427. package/out/types/page/Event.js +0 -212
  1428. package/out/types/page/Event.js.map +0 -1
  1429. package/out/types/page/Lifecycle.d.ts +0 -58
  1430. package/out/types/page/Lifecycle.js +0 -192
  1431. package/out/types/page/Lifecycle.js.map +0 -1
  1432. package/out/types/page/Page.d.ts +0 -95
  1433. package/out/types/page/Page.js +0 -428
  1434. package/out/types/page/Page.js.map +0 -1
  1435. package/out/types/page/View.d.ts +0 -257
  1436. package/out/types/page/View.js +0 -1218
  1437. package/out/types/page/View.js.map +0 -1
  1438. package/out/types/page/ViewParam.d.ts +0 -73
  1439. package/out/types/page/ViewParam.js +0 -296
  1440. package/out/types/page/ViewParam.js.map +0 -1
  1441. package/out/types/page/ViewVariable.d.ts +0 -73
  1442. package/out/types/page/ViewVariable.js +0 -276
  1443. package/out/types/page/ViewVariable.js.map +0 -1
  1444. package/out/types/permission/Permission.d.ts +0 -41
  1445. package/out/types/permission/Permission.js +0 -122
  1446. package/out/types/permission/Permission.js.map +0 -1
  1447. package/out/types/process/Process.d.ts +0 -118
  1448. package/out/types/process/Process.js +0 -357
  1449. package/out/types/process/Process.js.map +0 -1
  1450. package/out/types/process/ProcessComponent.d.ts +0 -133
  1451. package/out/types/process/ProcessComponent.js +0 -339
  1452. package/out/types/process/ProcessComponent.js.map +0 -1
  1453. package/out/types/process/ProcessComponentAttribute.d.ts +0 -63
  1454. package/out/types/process/ProcessComponentAttribute.js +0 -163
  1455. package/out/types/process/ProcessComponentAttribute.js.map +0 -1
  1456. package/out/types/process/ProcessComponentProperty.d.ts +0 -37
  1457. package/out/types/process/ProcessComponentProperty.js +0 -81
  1458. package/out/types/process/ProcessComponentProperty.js.map +0 -1
  1459. package/out/types/process/ProcessComponentReturn.d.ts +0 -77
  1460. package/out/types/process/ProcessComponentReturn.js +0 -260
  1461. package/out/types/process/ProcessComponentReturn.js.map +0 -1
  1462. package/out/types/process/ProcessComponentVariable.d.ts +0 -78
  1463. package/out/types/process/ProcessComponentVariable.js +0 -252
  1464. package/out/types/process/ProcessComponentVariable.js.map +0 -1
  1465. package/out/types/process/ProcessInterface.d.ts +0 -112
  1466. package/out/types/process/ProcessInterface.js +0 -227
  1467. package/out/types/process/ProcessInterface.js.map +0 -1
  1468. package/out/types/process/ProcessParam.d.ts +0 -77
  1469. package/out/types/process/ProcessParam.js +0 -261
  1470. package/out/types/process/ProcessParam.js.map +0 -1
  1471. package/out/types/process/ProcessProperty.d.ts +0 -37
  1472. package/out/types/process/ProcessProperty.js +0 -81
  1473. package/out/types/process/ProcessProperty.js.map +0 -1
  1474. package/out/types/process/ProcessReturn.d.ts +0 -73
  1475. package/out/types/process/ProcessReturn.js +0 -237
  1476. package/out/types/process/ProcessReturn.js.map +0 -1
  1477. package/out/types/typeCheck.d.ts +0 -30
  1478. package/out/types/typeCheck.js +0 -91
  1479. package/out/types/typeCheck.js.map +0 -1
  1480. package/out/types/utils/index.d.ts +0 -26
  1481. package/out/types/utils/index.js +0 -90
  1482. package/out/types/utils/index.js.map +0 -1
  1483. package/out/types/utils/logger.js +0 -14
  1484. package/out/types/utils/logger.js.map +0 -1
  1485. package/out/types/utils/string.d.ts +0 -34
  1486. package/out/types/utils/string.js +0 -62
  1487. package/out/types/utils/string.js.map +0 -1
  1488. package/out/types/utils/traverse.d.ts +0 -35
  1489. package/out/types/utils/traverse.js +0 -126
  1490. package/out/types/utils/traverse.js.map +0 -1
  1491. package/spec/conceptMap.json +0 -3310
  1492. package/spec/spec.yaml +0 -416
  1493. package/spec-build/index.ts +0 -98
  1494. package/src/routes.map.js +0 -5
  1495. package/src/service/common/findUsage.js +0 -8
  1496. package/src/service/common/index.js +0 -6
  1497. package/src/service/common/preprocess.js +0 -54
  1498. package/src/service/common/schema.js +0 -9
  1499. package/src/service/create/index.js +0 -80
  1500. package/src/service/data/api.js +0 -33
  1501. package/src/service/data/entity.js +0 -101
  1502. package/src/service/data/enum.js +0 -53
  1503. package/src/service/data/enumProperty.js +0 -20
  1504. package/src/service/data/generic.js +0 -8
  1505. package/src/service/data/index.js +0 -18
  1506. package/src/service/data/interface.js +0 -56
  1507. package/src/service/data/structure.js +0 -75
  1508. package/src/service/developPermission/api.js +0 -37
  1509. package/src/service/developPermission/index.js +0 -13
  1510. package/src/service/logic/index.js +0 -14
  1511. package/src/service/logic/logic.js +0 -121
  1512. package/src/service/logic/param.js +0 -26
  1513. package/src/service/nuims/api.js +0 -192
  1514. package/src/service/nuims/index.js +0 -13
  1515. package/src/service/page/api.js +0 -1374
  1516. package/src/service/page/attribute.js +0 -20
  1517. package/src/service/page/directive.js +0 -20
  1518. package/src/service/page/element.js +0 -40
  1519. package/src/service/page/event.js +0 -20
  1520. package/src/service/page/index.js +0 -19
  1521. package/src/service/page/lifecycle.js +0 -20
  1522. package/src/service/page/templates.ts +0 -72
  1523. package/src/service/page/view.js +0 -116
  1524. package/src/service/permission/api.js +0 -38
  1525. package/src/service/permission/index.js +0 -13
  1526. package/src/service/process/api.js +0 -92
  1527. package/src/service/process/index.js +0 -6
  1528. package/src/service/undoredo/api.js +0 -26
  1529. package/src/service/undoredo/index.js +0 -6
  1530. package/src/service/webFile/api.js +0 -32
  1531. package/src/service/webFile/index.d.tmp +0 -62
  1532. package/src/service/webFile/index.js +0 -28
  1533. package/src/service/webFile/loadCache.js +0 -14
  1534. package/src/test/units/app/App.spec.ts +0 -16
  1535. package/src/test/units/app/Service.spec.ts +0 -31
  1536. package/src/types/app/App.ts +0 -349
  1537. package/src/types/app/History.ts +0 -389
  1538. package/src/types/app/Service.ts +0 -1036
  1539. package/src/types/cache.ts +0 -50
  1540. package/src/types/cacheData.ts +0 -33
  1541. package/src/types/common/ComponentAPI.ts +0 -103
  1542. package/src/types/common/EventEmitter.ts +0 -56
  1543. package/src/types/common/PackageJSON.ts +0 -22
  1544. package/src/types/common/Vertex.ts +0 -296
  1545. package/src/types/config.ts +0 -23
  1546. package/src/types/data/DataNode.ts +0 -37
  1547. package/src/types/data/Entity.ts +0 -563
  1548. package/src/types/data/EntityIndex.ts +0 -238
  1549. package/src/types/data/EntityProperty.ts +0 -524
  1550. package/src/types/data/Enum.ts +0 -245
  1551. package/src/types/data/EnumItem.ts +0 -156
  1552. package/src/types/data/GlobalLogicNode.ts +0 -208
  1553. package/src/types/data/Interface.ts +0 -438
  1554. package/src/types/data/Module.ts +0 -51
  1555. package/src/types/data/Schema.ts +0 -133
  1556. package/src/types/data/Structure.ts +0 -315
  1557. package/src/types/data/StructureProperty.ts +0 -332
  1558. package/src/types/data/basicTypes.ts +0 -76
  1559. package/src/types/data/dataTypeUtils.ts +0 -426
  1560. package/src/types/data/dataTypes.ts +0 -88
  1561. package/src/types/data/entityUtils.ts +0 -681
  1562. package/src/types/data/genBlock/builtInFunctions.json +0 -560
  1563. package/src/types/data/genBlock/genCallComponentLogic.ts +0 -28
  1564. package/src/types/data/genBlock/genCallInterface.ts +0 -87
  1565. package/src/types/data/genBlock/genCreateBlock.ts +0 -305
  1566. package/src/types/data/genBlock/genCurdEditMultipleKeyBlock.ts +0 -468
  1567. package/src/types/data/genBlock/genCurdMultipleKeyBlock.ts +0 -665
  1568. package/src/types/data/genBlock/genEditTableBlock.ts +0 -470
  1569. package/src/types/data/genBlock/genEnumSelectBlock.ts +0 -21
  1570. package/src/types/data/genBlock/genGetBlock.ts +0 -160
  1571. package/src/types/data/genBlock/genGridViewBlock.ts +0 -410
  1572. package/src/types/data/genBlock/genListViewBlock.ts +0 -130
  1573. package/src/types/data/genBlock/genQueryComponent.ts +0 -548
  1574. package/src/types/data/genBlock/genSelectBlock.ts +0 -124
  1575. package/src/types/data/genBlock/genTableBlock.ts +0 -315
  1576. package/src/types/data/genBlock/genUpdateBlock.ts +0 -389
  1577. package/src/types/data/genBlock/index.ts +0 -20
  1578. package/src/types/data/genBlock/utils.ts +0 -252
  1579. package/src/types/data/genericTypes.ts +0 -151
  1580. package/src/types/data/systemTypes.ts +0 -1635
  1581. package/src/types/decorators/index.ts +0 -52
  1582. package/src/types/enum.ts +0 -6
  1583. package/src/types/generator/data.ts +0 -210
  1584. package/src/types/generator/hotReload.ts +0 -41
  1585. package/src/types/generator/index.ts +0 -4
  1586. package/src/types/generator/load.ts +0 -97
  1587. package/src/types/generator/page.ts +0 -37
  1588. package/src/types/history.ts +0 -14
  1589. package/src/types/index.ts +0 -167
  1590. package/src/types/logic/BaseVariable.ts +0 -130
  1591. package/src/types/logic/Logic.ts +0 -597
  1592. package/src/types/logic/LogicItem.ts +0 -1371
  1593. package/src/types/logic/Param.ts +0 -336
  1594. package/src/types/logic/Return.ts +0 -292
  1595. package/src/types/logic/Variable.ts +0 -288
  1596. package/src/types/logic/expressions/BinaryExpression.ts +0 -35
  1597. package/src/types/logic/expressions/BooleanLiteral.ts +0 -25
  1598. package/src/types/logic/expressions/Identifier.ts +0 -36
  1599. package/src/types/logic/expressions/LogicalExpression.ts +0 -35
  1600. package/src/types/logic/expressions/MemberExpression.ts +0 -33
  1601. package/src/types/logic/expressions/NullLiteral.ts +0 -20
  1602. package/src/types/logic/expressions/NumericLiteral.ts +0 -25
  1603. package/src/types/logic/expressions/StringLiteral.ts +0 -25
  1604. package/src/types/logic/expressions/UnaryExpression.ts +0 -30
  1605. package/src/types/logic/expressions/Unparsed.ts +0 -25
  1606. package/src/types/logic/nodes/AssignmentExpression.ts +0 -30
  1607. package/src/types/logic/nodes/BuiltInFuncParam.ts +0 -35
  1608. package/src/types/logic/nodes/BuiltInFunction.ts +0 -39
  1609. package/src/types/logic/nodes/CallConsoleLog.ts +0 -25
  1610. package/src/types/logic/nodes/CallGraphQL.ts +0 -36
  1611. package/src/types/logic/nodes/CallInterParam.ts +0 -30
  1612. package/src/types/logic/nodes/CallInterface.ts +0 -31
  1613. package/src/types/logic/nodes/CallLogic.ts +0 -39
  1614. package/src/types/logic/nodes/CallMessageShow.ts +0 -35
  1615. package/src/types/logic/nodes/Comment.ts +0 -25
  1616. package/src/types/logic/nodes/CronJob.ts +0 -25
  1617. package/src/types/logic/nodes/DBQuery.ts +0 -25
  1618. package/src/types/logic/nodes/Destination.ts +0 -52
  1619. package/src/types/logic/nodes/DestinationParam.ts +0 -31
  1620. package/src/types/logic/nodes/End.ts +0 -21
  1621. package/src/types/logic/nodes/ForEachStatement.ts +0 -52
  1622. package/src/types/logic/nodes/IfStatement.ts +0 -35
  1623. package/src/types/logic/nodes/JSBlock.ts +0 -29
  1624. package/src/types/logic/nodes/JSONDeserialize.ts +0 -25
  1625. package/src/types/logic/nodes/JSONSerialize.ts +0 -25
  1626. package/src/types/logic/nodes/ProcessOutcome.ts +0 -35
  1627. package/src/types/logic/nodes/Start.ts +0 -20
  1628. package/src/types/logic/nodes/SwitchCase.ts +0 -30
  1629. package/src/types/logic/nodes/SwitchStatement.ts +0 -26
  1630. package/src/types/logic/nodes/TypeNote.ts +0 -25
  1631. package/src/types/logic/nodes/WhileStatement.ts +0 -30
  1632. package/src/types/logic/tools.js +0 -170
  1633. package/src/types/logic/translator.js +0 -684
  1634. package/src/types/logic/translator_backup.js +0 -632
  1635. package/src/types/login.ts +0 -36
  1636. package/src/types/nuims/Nuims.ts +0 -499
  1637. package/src/types/page/Attr.ts +0 -217
  1638. package/src/types/page/Block.ts +0 -103
  1639. package/src/types/page/Directive.ts +0 -208
  1640. package/src/types/page/Element.ts +0 -1444
  1641. package/src/types/page/Event.ts +0 -188
  1642. package/src/types/page/Lifecycle.ts +0 -172
  1643. package/src/types/page/Page.ts +0 -417
  1644. package/src/types/page/View.ts +0 -1250
  1645. package/src/types/page/ViewParam.ts +0 -284
  1646. package/src/types/page/ViewVariable.ts +0 -264
  1647. package/src/types/page/dist/View.js +0 -727
  1648. package/src/types/permission/Permission.ts +0 -112
  1649. package/src/types/process/Process.ts +0 -306
  1650. package/src/types/process/ProcessComponent.ts +0 -276
  1651. package/src/types/process/ProcessComponentAttribute.ts +0 -131
  1652. package/src/types/process/ProcessComponentProperty.ts +0 -68
  1653. package/src/types/process/ProcessComponentReturn.ts +0 -235
  1654. package/src/types/process/ProcessComponentVariable.ts +0 -225
  1655. package/src/types/process/ProcessInterface.ts +0 -175
  1656. package/src/types/process/ProcessParam.ts +0 -237
  1657. package/src/types/process/ProcessProperty.ts +0 -69
  1658. package/src/types/process/ProcessReturn.ts +0 -210
  1659. package/src/types/typeCheck.ts +0 -120
  1660. package/src/types/utils/index.ts +0 -91
  1661. package/src/types/utils/logger.ts +0 -8
  1662. package/src/types/utils/string.ts +0 -56
  1663. package/src/types/utils/traverse.ts +0 -160
  1664. package/src/views/components/lcap-json-view/README.md +0 -80
  1665. package/src/views/components/lcap-json-view/index.js +0 -9
  1666. package/src/views/components/lcap-json-view/index.vue +0 -61
  1667. package/src/views/components/lcap-json-view/node.vue +0 -328
  1668. package/src/views/components/lcap-json-view/utils.js +0 -41
  1669. package/src/views/examples/index.vue +0 -44
  1670. package/src/views/examples/logic.json +0 -1576
  1671. package/src/views/index.vue +0 -28
  1672. package/src/views/specification/README.md +0 -10
  1673. package/src/views/specification/conceptTree.js +0 -1179
  1674. package/src/views/specification/index.vue +0 -255
  1675. package/src/views/theme.css +0 -138
@@ -0,0 +1,2568 @@
1
+ export interface AssetsInfo {
2
+ js: Array<string>;
3
+ css: Array<string>;
4
+ names?: Array<string>;
5
+ }
6
+ //================================================================================
7
+ // 从这里开始到结尾注释之间的代码由 NASL Workbench 自动生成,请不手动修改!
8
+ // ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓
9
+ //================================================================================
10
+ import { EventPayload, Params } from '../common/EventEmitter';
11
+ import { concept, excludedInJSON, property } from '../decorators';
12
+
13
+ import * as utils from '../utils';
14
+ import { v4 as uuidv4 } from 'uuid';
15
+ import BaseNode from '../common/BaseNode';
16
+ import classMap from '../common/classMap';
17
+ import Entity from './Entity__';
18
+ import Structure from './Structure__';
19
+ import Enum from './Enum__';
20
+ import Logic from './Logic__';
21
+ import Interface from './Interface__';
22
+ import View from './View__';
23
+ import Process from './Process__';
24
+ import Role from './Role__';
25
+ import Theme from './Theme__';
26
+ import Configuration from './Configuration__';
27
+ import Module from './Module__';
28
+
29
+ /**
30
+ * 应用
31
+ */
32
+ @concept('应用')
33
+ export class App extends BaseNode {
34
+ /**
35
+ * 应用 Id
36
+ */
37
+ @property()
38
+ id: string = undefined;
39
+
40
+ /**
41
+ * 产品概念
42
+ */
43
+ @property()
44
+ concept: 'App' = 'App';
45
+
46
+ /**
47
+ * IDE 版本
48
+ */
49
+ @property()
50
+ ideVersion: string = undefined;
51
+
52
+ /**
53
+ * 应用标识
54
+ */
55
+ @property()
56
+ name: string = undefined;
57
+
58
+ /**
59
+ * 应用标题
60
+ */
61
+ @property()
62
+ title: string = undefined;
63
+
64
+ /**
65
+ * 应用图标
66
+ */
67
+ @property()
68
+ icon: string = undefined;
69
+
70
+ /**
71
+ * 应用描述
72
+ */
73
+ @property()
74
+ desc: string = undefined;
75
+
76
+ /**
77
+ * 域名
78
+ */
79
+ @property()
80
+ dnsAddr: string = undefined;
81
+
82
+ /**
83
+ * PC/H5 端
84
+ */
85
+ @property()
86
+ scope: 'pc' | 'h5' = undefined;
87
+
88
+ /**
89
+ * 是否有用户中心
90
+ */
91
+ @property()
92
+ hasUserCenter: boolean = undefined;
93
+
94
+ /**
95
+ * 是否有权限
96
+ */
97
+ @property()
98
+ hasAuth: boolean = undefined;
99
+
100
+ /**
101
+ * 实体列表
102
+ */
103
+ @property('Entity')
104
+ entities: Array<Entity> = [];
105
+
106
+ /**
107
+ * 数据结构列表
108
+ */
109
+ @property('Structure')
110
+ structures: Array<Structure> = [];
111
+
112
+ /**
113
+ * 枚举列表
114
+ */
115
+ @property('Enum')
116
+ enums: Array<Enum> = [];
117
+
118
+ /**
119
+ * 逻辑列表
120
+ */
121
+ @property('Logic')
122
+ logics: Array<Logic> = [];
123
+
124
+ /**
125
+ * 接口列表
126
+ */
127
+ @property('Interface')
128
+ interfaces: Array<Interface> = [];
129
+
130
+ /**
131
+ * 页面列表
132
+ */
133
+ @property('View')
134
+ views: Array<View> = [];
135
+
136
+ /**
137
+ * 流程列表
138
+ */
139
+ @property('Process')
140
+ processes: Array<Process> = [];
141
+
142
+ /**
143
+ * 角色列表
144
+ */
145
+ @property('Role')
146
+ roles: Array<Role> = [];
147
+
148
+ /**
149
+ * 主题配置
150
+ */
151
+ @property('Theme')
152
+ theme: Theme = new Theme();
153
+
154
+ /**
155
+ * 配置管理
156
+ */
157
+ @property('Configuration')
158
+ configuration: Configuration = new Configuration();
159
+
160
+ /**
161
+ * 扩展模块列表
162
+ */
163
+ @property('Module')
164
+ dependencies: Array<Module> = [];
165
+
166
+ /**
167
+ * 接口应用列表(兼容老版)
168
+ */
169
+ @property('Module')
170
+ interfaceDependencies: Array<Module> = [];
171
+
172
+ /**
173
+ * 扩展组件列表(兼容老版)
174
+ */
175
+ @property('Module')
176
+ componentDependencies: Array<Module> = [];
177
+
178
+
179
+
180
+ /**
181
+ * @param source 需要合并的部分参数
182
+ */
183
+ constructor(source?: Partial<App>) {
184
+ source = Object.assign({}, App.getDefaultOptions(), source);
185
+ super(source);
186
+ super.subConstructor(source);
187
+ }
188
+
189
+ static from(source: any, parentNode?: any, parentKey?: string): App {
190
+ return super.from(source, parentNode, parentKey) as App;
191
+ }
192
+
193
+ /**
194
+ * 从父级删除该节点
195
+ * @internal
196
+ */
197
+ _delete() {
198
+ let params: Params = null;
199
+ if (this.parentNode) {
200
+ params = (this.parentNode as any)?.__removeApp?.(this);
201
+ }
202
+ return params;
203
+ }
204
+
205
+
206
+ getEntityExistingNames(excludedList: Array<Entity> = []) {
207
+ const excludedSet = new Set(excludedList);
208
+ return (this.entities || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
209
+ }
210
+ getEntityUniqueName(name = 'Entity1') {
211
+ return utils.unique(name, this.getEntityExistingNames());
212
+ }
213
+
214
+ /**
215
+ * 插入实体
216
+ * @internal
217
+ * @param name 实体名称,如果不填会自动生成一个唯一名称
218
+ */
219
+ _insertEntityAt(name: string, index: number): Entity;
220
+
221
+ /**
222
+ * 插入实体
223
+ * @internal
224
+ * @param entityOptions 实体参数
225
+ */
226
+ _insertEntityAt(entityOptions: Partial<Entity>, index: number): Entity;
227
+
228
+ /**
229
+ * 插入实体
230
+ * @internal
231
+ * @param entity 已有的实体实例
232
+ */
233
+ _insertEntityAt(entity: Entity, index: number): Entity;
234
+
235
+ _insertEntityAt(options: string | Partial<Entity> | Entity, index: number) {
236
+ const entityOptions: any = {};
237
+ const relationOptions = { parentNode: this, parentKey: 'entities' };
238
+ let entity: Entity;
239
+ if (!options) {
240
+ entity = Entity.from({
241
+ ...entityOptions,
242
+ name: this.getEntityUniqueName(),
243
+ }, this, 'entities');
244
+ } else if (typeof options === 'string') {
245
+ entity = Entity.from({
246
+ ...entityOptions,
247
+ name: options,
248
+ }, this, 'entities');
249
+ } else if (options instanceof Entity) {
250
+ options.delete(); // 同一实例不支持多处存在
251
+ entity = options;
252
+ Object.assign(entity, relationOptions);
253
+ } else {
254
+ entity = Entity.from({
255
+ ...entityOptions,
256
+ ...options,
257
+ }, this, 'entities');
258
+ }
259
+ this.entities.splice(index, 0, entity);
260
+ return entity;
261
+ }
262
+
263
+ /**
264
+ * 插入实体
265
+ * @param name 实体名称,如果不填会自动生成一个唯一名称
266
+ */
267
+ insertEntityAt(name: string, index: number): Entity;
268
+
269
+ /**
270
+ * 插入实体
271
+ * @param entityOptions 实体参数
272
+ */
273
+ insertEntityAt(entityOptions: Partial<Entity>, index: number): Entity;
274
+
275
+ /**
276
+ * 插入实体
277
+ * @param entity 已有的实体实例
278
+ */
279
+ insertEntityAt(entity: Entity, index: number): Entity;
280
+
281
+ insertEntityAt(options: string | Partial<Entity> | Entity, index: number) {
282
+ const node = this._insertEntityAt(options as any, index);
283
+ node.create({
284
+ index,
285
+ parentNode: this,
286
+ parentKey: 'entities',
287
+ });
288
+ return node;
289
+ }
290
+
291
+ /**
292
+ * 添加实体
293
+ * @internal
294
+ * @param name 实体名称,如果不填会自动生成一个唯一名称
295
+ */
296
+ _addEntity(name?: string): Entity;
297
+
298
+ /**
299
+ * 添加实体
300
+ * @internal
301
+ * @param entityOptions 实体参数
302
+ */
303
+ _addEntity(entityOptions: Partial<Entity>): Entity;
304
+
305
+ /**
306
+ * 添加实体
307
+ * @internal
308
+ * @param entity 已有的实体实例
309
+ */
310
+ _addEntity(entity: Entity): Entity;
311
+
312
+ _addEntity(options?: string | Partial<Entity> | Entity) {
313
+ const index = 0;
314
+ return this._insertEntityAt(options as any, index);
315
+ }
316
+
317
+ /**
318
+ * 添加实体
319
+ * @internal
320
+ * @param name 实体名称,如果不填会自动生成一个唯一名称
321
+ */
322
+ addEntity(name?: string): Entity;
323
+
324
+ /**
325
+ * 添加实体
326
+ * @param entityOptions 实体参数
327
+ */
328
+ addEntity(entityOptions: Partial<Entity>): Entity;
329
+
330
+ /**
331
+ * 添加实体
332
+ * @param entity 已有的实体实例
333
+ */
334
+ addEntity(entity: Entity): Entity;
335
+
336
+ addEntity(options?: string | Partial<Entity> | Entity) {
337
+ const node = this._addEntity(options as any);
338
+ const index = 0;
339
+ node.create({
340
+ index,
341
+ parentNode: this,
342
+ parentKey: 'entities',
343
+ });
344
+ return node;
345
+ }
346
+
347
+
348
+ getStructureExistingNames(excludedList: Array<Structure> = []) {
349
+ const excludedSet = new Set(excludedList);
350
+ return (this.structures || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
351
+ }
352
+ getStructureUniqueName(name = 'Structure1') {
353
+ return utils.unique(name, this.getStructureExistingNames());
354
+ }
355
+
356
+ /**
357
+ * 插入数据结构
358
+ * @internal
359
+ * @param name 数据结构名称,如果不填会自动生成一个唯一名称
360
+ */
361
+ _insertStructureAt(name: string, index: number): Structure;
362
+
363
+ /**
364
+ * 插入数据结构
365
+ * @internal
366
+ * @param structureOptions 数据结构参数
367
+ */
368
+ _insertStructureAt(structureOptions: Partial<Structure>, index: number): Structure;
369
+
370
+ /**
371
+ * 插入数据结构
372
+ * @internal
373
+ * @param structure 已有的数据结构实例
374
+ */
375
+ _insertStructureAt(structure: Structure, index: number): Structure;
376
+
377
+ _insertStructureAt(options: string | Partial<Structure> | Structure, index: number) {
378
+ const structureOptions: any = {};
379
+ const relationOptions = { parentNode: this, parentKey: 'structures' };
380
+ let structure: Structure;
381
+ if (!options) {
382
+ structure = Structure.from({
383
+ ...structureOptions,
384
+ name: this.getStructureUniqueName(),
385
+ }, this, 'structures');
386
+ } else if (typeof options === 'string') {
387
+ structure = Structure.from({
388
+ ...structureOptions,
389
+ name: options,
390
+ }, this, 'structures');
391
+ } else if (options instanceof Structure) {
392
+ options.delete(); // 同一实例不支持多处存在
393
+ structure = options;
394
+ Object.assign(structure, relationOptions);
395
+ } else {
396
+ structure = Structure.from({
397
+ ...structureOptions,
398
+ ...options,
399
+ }, this, 'structures');
400
+ }
401
+ this.structures.splice(index, 0, structure);
402
+ return structure;
403
+ }
404
+
405
+ /**
406
+ * 插入数据结构
407
+ * @param name 数据结构名称,如果不填会自动生成一个唯一名称
408
+ */
409
+ insertStructureAt(name: string, index: number): Structure;
410
+
411
+ /**
412
+ * 插入数据结构
413
+ * @param structureOptions 数据结构参数
414
+ */
415
+ insertStructureAt(structureOptions: Partial<Structure>, index: number): Structure;
416
+
417
+ /**
418
+ * 插入数据结构
419
+ * @param structure 已有的数据结构实例
420
+ */
421
+ insertStructureAt(structure: Structure, index: number): Structure;
422
+
423
+ insertStructureAt(options: string | Partial<Structure> | Structure, index: number) {
424
+ const node = this._insertStructureAt(options as any, index);
425
+ node.create({
426
+ index,
427
+ parentNode: this,
428
+ parentKey: 'structures',
429
+ });
430
+ return node;
431
+ }
432
+
433
+ /**
434
+ * 添加数据结构
435
+ * @internal
436
+ * @param name 数据结构名称,如果不填会自动生成一个唯一名称
437
+ */
438
+ _addStructure(name?: string): Structure;
439
+
440
+ /**
441
+ * 添加数据结构
442
+ * @internal
443
+ * @param structureOptions 数据结构参数
444
+ */
445
+ _addStructure(structureOptions: Partial<Structure>): Structure;
446
+
447
+ /**
448
+ * 添加数据结构
449
+ * @internal
450
+ * @param structure 已有的数据结构实例
451
+ */
452
+ _addStructure(structure: Structure): Structure;
453
+
454
+ _addStructure(options?: string | Partial<Structure> | Structure) {
455
+ const index = 0;
456
+ return this._insertStructureAt(options as any, index);
457
+ }
458
+
459
+ /**
460
+ * 添加数据结构
461
+ * @internal
462
+ * @param name 数据结构名称,如果不填会自动生成一个唯一名称
463
+ */
464
+ addStructure(name?: string): Structure;
465
+
466
+ /**
467
+ * 添加数据结构
468
+ * @param structureOptions 数据结构参数
469
+ */
470
+ addStructure(structureOptions: Partial<Structure>): Structure;
471
+
472
+ /**
473
+ * 添加数据结构
474
+ * @param structure 已有的数据结构实例
475
+ */
476
+ addStructure(structure: Structure): Structure;
477
+
478
+ addStructure(options?: string | Partial<Structure> | Structure) {
479
+ const node = this._addStructure(options as any);
480
+ const index = 0;
481
+ node.create({
482
+ index,
483
+ parentNode: this,
484
+ parentKey: 'structures',
485
+ });
486
+ return node;
487
+ }
488
+
489
+
490
+ getEnumExistingNames(excludedList: Array<Enum> = []) {
491
+ const excludedSet = new Set(excludedList);
492
+ return (this.enums || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
493
+ }
494
+ getEnumUniqueName(name = 'Enum1') {
495
+ return utils.unique(name, this.getEnumExistingNames());
496
+ }
497
+
498
+ /**
499
+ * 插入枚举
500
+ * @internal
501
+ * @param name 枚举名称,如果不填会自动生成一个唯一名称
502
+ */
503
+ _insertEnumAt(name: string, index: number): Enum;
504
+
505
+ /**
506
+ * 插入枚举
507
+ * @internal
508
+ * @param enumerationOptions 枚举参数
509
+ */
510
+ _insertEnumAt(enumerationOptions: Partial<Enum>, index: number): Enum;
511
+
512
+ /**
513
+ * 插入枚举
514
+ * @internal
515
+ * @param enumeration 已有的枚举实例
516
+ */
517
+ _insertEnumAt(enumeration: Enum, index: number): Enum;
518
+
519
+ _insertEnumAt(options: string | Partial<Enum> | Enum, index: number) {
520
+ const enumerationOptions: any = {};
521
+ const relationOptions = { parentNode: this, parentKey: 'enums' };
522
+ let enumeration: Enum;
523
+ if (!options) {
524
+ enumeration = Enum.from({
525
+ ...enumerationOptions,
526
+ name: this.getEnumUniqueName(),
527
+ }, this, 'enums');
528
+ } else if (typeof options === 'string') {
529
+ enumeration = Enum.from({
530
+ ...enumerationOptions,
531
+ name: options,
532
+ }, this, 'enums');
533
+ } else if (options instanceof Enum) {
534
+ options.delete(); // 同一实例不支持多处存在
535
+ enumeration = options;
536
+ Object.assign(enumeration, relationOptions);
537
+ } else {
538
+ enumeration = Enum.from({
539
+ ...enumerationOptions,
540
+ ...options,
541
+ }, this, 'enums');
542
+ }
543
+ this.enums.splice(index, 0, enumeration);
544
+ return enumeration;
545
+ }
546
+
547
+ /**
548
+ * 插入枚举
549
+ * @param name 枚举名称,如果不填会自动生成一个唯一名称
550
+ */
551
+ insertEnumAt(name: string, index: number): Enum;
552
+
553
+ /**
554
+ * 插入枚举
555
+ * @param enumerationOptions 枚举参数
556
+ */
557
+ insertEnumAt(enumerationOptions: Partial<Enum>, index: number): Enum;
558
+
559
+ /**
560
+ * 插入枚举
561
+ * @param enumeration 已有的枚举实例
562
+ */
563
+ insertEnumAt(enumeration: Enum, index: number): Enum;
564
+
565
+ insertEnumAt(options: string | Partial<Enum> | Enum, index: number) {
566
+ const node = this._insertEnumAt(options as any, index);
567
+ node.create({
568
+ index,
569
+ parentNode: this,
570
+ parentKey: 'enums',
571
+ });
572
+ return node;
573
+ }
574
+
575
+ /**
576
+ * 添加枚举
577
+ * @internal
578
+ * @param name 枚举名称,如果不填会自动生成一个唯一名称
579
+ */
580
+ _addEnum(name?: string): Enum;
581
+
582
+ /**
583
+ * 添加枚举
584
+ * @internal
585
+ * @param enumerationOptions 枚举参数
586
+ */
587
+ _addEnum(enumerationOptions: Partial<Enum>): Enum;
588
+
589
+ /**
590
+ * 添加枚举
591
+ * @internal
592
+ * @param enumeration 已有的枚举实例
593
+ */
594
+ _addEnum(enumeration: Enum): Enum;
595
+
596
+ _addEnum(options?: string | Partial<Enum> | Enum) {
597
+ const index = 0;
598
+ return this._insertEnumAt(options as any, index);
599
+ }
600
+
601
+ /**
602
+ * 添加枚举
603
+ * @internal
604
+ * @param name 枚举名称,如果不填会自动生成一个唯一名称
605
+ */
606
+ addEnum(name?: string): Enum;
607
+
608
+ /**
609
+ * 添加枚举
610
+ * @param enumerationOptions 枚举参数
611
+ */
612
+ addEnum(enumerationOptions: Partial<Enum>): Enum;
613
+
614
+ /**
615
+ * 添加枚举
616
+ * @param enumeration 已有的枚举实例
617
+ */
618
+ addEnum(enumeration: Enum): Enum;
619
+
620
+ addEnum(options?: string | Partial<Enum> | Enum) {
621
+ const node = this._addEnum(options as any);
622
+ const index = 0;
623
+ node.create({
624
+ index,
625
+ parentNode: this,
626
+ parentKey: 'enums',
627
+ });
628
+ return node;
629
+ }
630
+
631
+
632
+ getLogicExistingNames(excludedList: Array<Logic> = []) {
633
+ const excludedSet = new Set(excludedList);
634
+ return (this.logics || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
635
+ }
636
+ getLogicUniqueName(name = 'logic1') {
637
+ return utils.unique(name, this.getLogicExistingNames());
638
+ }
639
+
640
+ /**
641
+ * 插入逻辑
642
+ * @internal
643
+ * @param name 逻辑名称,如果不填会自动生成一个唯一名称
644
+ */
645
+ _insertLogicAt(name: string, index: number): Logic;
646
+
647
+ /**
648
+ * 插入逻辑
649
+ * @internal
650
+ * @param logicOptions 逻辑参数
651
+ */
652
+ _insertLogicAt(logicOptions: Partial<Logic>, index: number): Logic;
653
+
654
+ /**
655
+ * 插入逻辑
656
+ * @internal
657
+ * @param logic 已有的逻辑实例
658
+ */
659
+ _insertLogicAt(logic: Logic, index: number): Logic;
660
+
661
+ _insertLogicAt(options: string | Partial<Logic> | Logic, index: number) {
662
+ const logicOptions: any = {};
663
+ const relationOptions = { parentNode: this, parentKey: 'logics' };
664
+ let logic: Logic;
665
+ if (!options) {
666
+ logic = Logic.from({
667
+ ...logicOptions,
668
+ name: this.getLogicUniqueName(),
669
+ }, this, 'logics');
670
+ } else if (typeof options === 'string') {
671
+ logic = Logic.from({
672
+ ...logicOptions,
673
+ name: options,
674
+ }, this, 'logics');
675
+ } else if (options instanceof Logic) {
676
+ options.delete(); // 同一实例不支持多处存在
677
+ logic = options;
678
+ Object.assign(logic, relationOptions);
679
+ } else {
680
+ logic = Logic.from({
681
+ ...logicOptions,
682
+ ...options,
683
+ }, this, 'logics');
684
+ }
685
+ this.logics.splice(index, 0, logic);
686
+ return logic;
687
+ }
688
+
689
+ /**
690
+ * 插入逻辑
691
+ * @param name 逻辑名称,如果不填会自动生成一个唯一名称
692
+ */
693
+ insertLogicAt(name: string, index: number): Logic;
694
+
695
+ /**
696
+ * 插入逻辑
697
+ * @param logicOptions 逻辑参数
698
+ */
699
+ insertLogicAt(logicOptions: Partial<Logic>, index: number): Logic;
700
+
701
+ /**
702
+ * 插入逻辑
703
+ * @param logic 已有的逻辑实例
704
+ */
705
+ insertLogicAt(logic: Logic, index: number): Logic;
706
+
707
+ insertLogicAt(options: string | Partial<Logic> | Logic, index: number) {
708
+ const node = this._insertLogicAt(options as any, index);
709
+ node.create({
710
+ index,
711
+ parentNode: this,
712
+ parentKey: 'logics',
713
+ });
714
+ return node;
715
+ }
716
+
717
+ /**
718
+ * 添加逻辑
719
+ * @internal
720
+ * @param name 逻辑名称,如果不填会自动生成一个唯一名称
721
+ */
722
+ _addLogic(name?: string): Logic;
723
+
724
+ /**
725
+ * 添加逻辑
726
+ * @internal
727
+ * @param logicOptions 逻辑参数
728
+ */
729
+ _addLogic(logicOptions: Partial<Logic>): Logic;
730
+
731
+ /**
732
+ * 添加逻辑
733
+ * @internal
734
+ * @param logic 已有的逻辑实例
735
+ */
736
+ _addLogic(logic: Logic): Logic;
737
+
738
+ _addLogic(options?: string | Partial<Logic> | Logic) {
739
+ const index = 0;
740
+ return this._insertLogicAt(options as any, index);
741
+ }
742
+
743
+ /**
744
+ * 添加逻辑
745
+ * @internal
746
+ * @param name 逻辑名称,如果不填会自动生成一个唯一名称
747
+ */
748
+ addLogic(name?: string): Logic;
749
+
750
+ /**
751
+ * 添加逻辑
752
+ * @param logicOptions 逻辑参数
753
+ */
754
+ addLogic(logicOptions: Partial<Logic>): Logic;
755
+
756
+ /**
757
+ * 添加逻辑
758
+ * @param logic 已有的逻辑实例
759
+ */
760
+ addLogic(logic: Logic): Logic;
761
+
762
+ addLogic(options?: string | Partial<Logic> | Logic) {
763
+ const node = this._addLogic(options as any);
764
+ const index = 0;
765
+ node.create({
766
+ index,
767
+ parentNode: this,
768
+ parentKey: 'logics',
769
+ });
770
+ return node;
771
+ }
772
+
773
+
774
+ getInterfaceExistingNames(excludedList: Array<Interface> = []) {
775
+ const excludedSet = new Set(excludedList);
776
+ return (this.interfaces || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
777
+ }
778
+ getInterfaceUniqueName(name = 'Interface1') {
779
+ return utils.unique(name, this.getInterfaceExistingNames());
780
+ }
781
+
782
+ /**
783
+ * 插入接口
784
+ * @internal
785
+ * @param name 接口名称,如果不填会自动生成一个唯一名称
786
+ */
787
+ _insertInterfaceAt(name: string, index: number): Interface;
788
+
789
+ /**
790
+ * 插入接口
791
+ * @internal
792
+ * @param itfaceOptions 接口参数
793
+ */
794
+ _insertInterfaceAt(itfaceOptions: Partial<Interface>, index: number): Interface;
795
+
796
+ /**
797
+ * 插入接口
798
+ * @internal
799
+ * @param itface 已有的接口实例
800
+ */
801
+ _insertInterfaceAt(itface: Interface, index: number): Interface;
802
+
803
+ _insertInterfaceAt(options: string | Partial<Interface> | Interface, index: number) {
804
+ const itfaceOptions: any = {};
805
+ const relationOptions = { parentNode: this, parentKey: 'interfaces' };
806
+ let itface: Interface;
807
+ if (!options) {
808
+ itface = Interface.from({
809
+ ...itfaceOptions,
810
+ name: this.getInterfaceUniqueName(),
811
+ }, this, 'interfaces');
812
+ } else if (typeof options === 'string') {
813
+ itface = Interface.from({
814
+ ...itfaceOptions,
815
+ name: options,
816
+ }, this, 'interfaces');
817
+ } else if (options instanceof Interface) {
818
+ options.delete(); // 同一实例不支持多处存在
819
+ itface = options;
820
+ Object.assign(itface, relationOptions);
821
+ } else {
822
+ itface = Interface.from({
823
+ ...itfaceOptions,
824
+ ...options,
825
+ }, this, 'interfaces');
826
+ }
827
+ this.interfaces.splice(index, 0, itface);
828
+ return itface;
829
+ }
830
+
831
+ /**
832
+ * 插入接口
833
+ * @param name 接口名称,如果不填会自动生成一个唯一名称
834
+ */
835
+ insertInterfaceAt(name: string, index: number): Interface;
836
+
837
+ /**
838
+ * 插入接口
839
+ * @param itfaceOptions 接口参数
840
+ */
841
+ insertInterfaceAt(itfaceOptions: Partial<Interface>, index: number): Interface;
842
+
843
+ /**
844
+ * 插入接口
845
+ * @param itface 已有的接口实例
846
+ */
847
+ insertInterfaceAt(itface: Interface, index: number): Interface;
848
+
849
+ insertInterfaceAt(options: string | Partial<Interface> | Interface, index: number) {
850
+ const node = this._insertInterfaceAt(options as any, index);
851
+ node.create({
852
+ index,
853
+ parentNode: this,
854
+ parentKey: 'interfaces',
855
+ });
856
+ return node;
857
+ }
858
+
859
+ /**
860
+ * 添加接口
861
+ * @internal
862
+ * @param name 接口名称,如果不填会自动生成一个唯一名称
863
+ */
864
+ _addInterface(name?: string): Interface;
865
+
866
+ /**
867
+ * 添加接口
868
+ * @internal
869
+ * @param itfaceOptions 接口参数
870
+ */
871
+ _addInterface(itfaceOptions: Partial<Interface>): Interface;
872
+
873
+ /**
874
+ * 添加接口
875
+ * @internal
876
+ * @param itface 已有的接口实例
877
+ */
878
+ _addInterface(itface: Interface): Interface;
879
+
880
+ _addInterface(options?: string | Partial<Interface> | Interface) {
881
+ const index = 0;
882
+ return this._insertInterfaceAt(options as any, index);
883
+ }
884
+
885
+ /**
886
+ * 添加接口
887
+ * @internal
888
+ * @param name 接口名称,如果不填会自动生成一个唯一名称
889
+ */
890
+ addInterface(name?: string): Interface;
891
+
892
+ /**
893
+ * 添加接口
894
+ * @param itfaceOptions 接口参数
895
+ */
896
+ addInterface(itfaceOptions: Partial<Interface>): Interface;
897
+
898
+ /**
899
+ * 添加接口
900
+ * @param itface 已有的接口实例
901
+ */
902
+ addInterface(itface: Interface): Interface;
903
+
904
+ addInterface(options?: string | Partial<Interface> | Interface) {
905
+ const node = this._addInterface(options as any);
906
+ const index = 0;
907
+ node.create({
908
+ index,
909
+ parentNode: this,
910
+ parentKey: 'interfaces',
911
+ });
912
+ return node;
913
+ }
914
+
915
+
916
+ getViewExistingNames(excludedList: Array<View> = []) {
917
+ const excludedSet = new Set(excludedList);
918
+ return (this.views || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
919
+ }
920
+ getViewUniqueName(name = 'view1') {
921
+ return utils.unique(name, this.getViewExistingNames());
922
+ }
923
+
924
+ /**
925
+ * 插入页面
926
+ * @internal
927
+ * @param name 页面名称,如果不填会自动生成一个唯一名称
928
+ */
929
+ _insertViewAt(name: string, index: number): View;
930
+
931
+ /**
932
+ * 插入页面
933
+ * @internal
934
+ * @param viewOptions 页面参数
935
+ */
936
+ _insertViewAt(viewOptions: Partial<View>, index: number): View;
937
+
938
+ /**
939
+ * 插入页面
940
+ * @internal
941
+ * @param view 已有的页面实例
942
+ */
943
+ _insertViewAt(view: View, index: number): View;
944
+
945
+ _insertViewAt(options: string | Partial<View> | View, index: number) {
946
+ const viewOptions: any = {};
947
+ const relationOptions = { parentNode: this, parentKey: 'views' };
948
+ let view: View;
949
+ if (!options) {
950
+ view = View.from({
951
+ ...viewOptions,
952
+ name: this.getViewUniqueName(),
953
+ }, this, 'views');
954
+ } else if (typeof options === 'string') {
955
+ view = View.from({
956
+ ...viewOptions,
957
+ name: options,
958
+ }, this, 'views');
959
+ } else if (options instanceof View) {
960
+ options.delete(); // 同一实例不支持多处存在
961
+ view = options;
962
+ Object.assign(view, relationOptions);
963
+ } else {
964
+ view = View.from({
965
+ ...viewOptions,
966
+ ...options,
967
+ }, this, 'views');
968
+ }
969
+ this.views.splice(index, 0, view);
970
+ return view;
971
+ }
972
+
973
+ /**
974
+ * 插入页面
975
+ * @param name 页面名称,如果不填会自动生成一个唯一名称
976
+ */
977
+ insertViewAt(name: string, index: number): View;
978
+
979
+ /**
980
+ * 插入页面
981
+ * @param viewOptions 页面参数
982
+ */
983
+ insertViewAt(viewOptions: Partial<View>, index: number): View;
984
+
985
+ /**
986
+ * 插入页面
987
+ * @param view 已有的页面实例
988
+ */
989
+ insertViewAt(view: View, index: number): View;
990
+
991
+ insertViewAt(options: string | Partial<View> | View, index: number) {
992
+ const node = this._insertViewAt(options as any, index);
993
+ node.create({
994
+ index,
995
+ parentNode: this,
996
+ parentKey: 'views',
997
+ });
998
+ return node;
999
+ }
1000
+
1001
+ /**
1002
+ * 添加页面
1003
+ * @internal
1004
+ * @param name 页面名称,如果不填会自动生成一个唯一名称
1005
+ */
1006
+ _addView(name?: string): View;
1007
+
1008
+ /**
1009
+ * 添加页面
1010
+ * @internal
1011
+ * @param viewOptions 页面参数
1012
+ */
1013
+ _addView(viewOptions: Partial<View>): View;
1014
+
1015
+ /**
1016
+ * 添加页面
1017
+ * @internal
1018
+ * @param view 已有的页面实例
1019
+ */
1020
+ _addView(view: View): View;
1021
+
1022
+ _addView(options?: string | Partial<View> | View) {
1023
+ const index = this.views.length;
1024
+ return this._insertViewAt(options as any, index);
1025
+ }
1026
+
1027
+ /**
1028
+ * 添加页面
1029
+ * @internal
1030
+ * @param name 页面名称,如果不填会自动生成一个唯一名称
1031
+ */
1032
+ addView(name?: string): View;
1033
+
1034
+ /**
1035
+ * 添加页面
1036
+ * @param viewOptions 页面参数
1037
+ */
1038
+ addView(viewOptions: Partial<View>): View;
1039
+
1040
+ /**
1041
+ * 添加页面
1042
+ * @param view 已有的页面实例
1043
+ */
1044
+ addView(view: View): View;
1045
+
1046
+ addView(options?: string | Partial<View> | View) {
1047
+ const node = this._addView(options as any);
1048
+ const index = this.views.length;
1049
+ node.create({
1050
+ index,
1051
+ parentNode: this,
1052
+ parentKey: 'views',
1053
+ });
1054
+ return node;
1055
+ }
1056
+
1057
+
1058
+ getProcessExistingNames(excludedList: Array<Process> = []) {
1059
+ const excludedSet = new Set(excludedList);
1060
+ return (this.processes || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
1061
+ }
1062
+ getProcessUniqueName(name = 'Process1') {
1063
+ return utils.unique(name, this.getProcessExistingNames());
1064
+ }
1065
+
1066
+ /**
1067
+ * 插入流程
1068
+ * @internal
1069
+ * @param name 流程名称,如果不填会自动生成一个唯一名称
1070
+ */
1071
+ _insertProcessAt(name: string, index: number): Process;
1072
+
1073
+ /**
1074
+ * 插入流程
1075
+ * @internal
1076
+ * @param processOptions 流程参数
1077
+ */
1078
+ _insertProcessAt(processOptions: Partial<Process>, index: number): Process;
1079
+
1080
+ /**
1081
+ * 插入流程
1082
+ * @internal
1083
+ * @param process 已有的流程实例
1084
+ */
1085
+ _insertProcessAt(process: Process, index: number): Process;
1086
+
1087
+ _insertProcessAt(options: string | Partial<Process> | Process, index: number) {
1088
+ const processOptions: any = {};
1089
+ const relationOptions = { parentNode: this, parentKey: 'processes' };
1090
+ let process: Process;
1091
+ if (!options) {
1092
+ process = Process.from({
1093
+ ...processOptions,
1094
+ name: this.getProcessUniqueName(),
1095
+ }, this, 'processes');
1096
+ } else if (typeof options === 'string') {
1097
+ process = Process.from({
1098
+ ...processOptions,
1099
+ name: options,
1100
+ }, this, 'processes');
1101
+ } else if (options instanceof Process) {
1102
+ options.delete(); // 同一实例不支持多处存在
1103
+ process = options;
1104
+ Object.assign(process, relationOptions);
1105
+ } else {
1106
+ process = Process.from({
1107
+ ...processOptions,
1108
+ ...options,
1109
+ }, this, 'processes');
1110
+ }
1111
+ this.processes.splice(index, 0, process);
1112
+ return process;
1113
+ }
1114
+
1115
+ /**
1116
+ * 插入流程
1117
+ * @param name 流程名称,如果不填会自动生成一个唯一名称
1118
+ */
1119
+ insertProcessAt(name: string, index: number): Process;
1120
+
1121
+ /**
1122
+ * 插入流程
1123
+ * @param processOptions 流程参数
1124
+ */
1125
+ insertProcessAt(processOptions: Partial<Process>, index: number): Process;
1126
+
1127
+ /**
1128
+ * 插入流程
1129
+ * @param process 已有的流程实例
1130
+ */
1131
+ insertProcessAt(process: Process, index: number): Process;
1132
+
1133
+ insertProcessAt(options: string | Partial<Process> | Process, index: number) {
1134
+ const node = this._insertProcessAt(options as any, index);
1135
+ node.create({
1136
+ index,
1137
+ parentNode: this,
1138
+ parentKey: 'processes',
1139
+ });
1140
+ return node;
1141
+ }
1142
+
1143
+ /**
1144
+ * 添加流程
1145
+ * @internal
1146
+ * @param name 流程名称,如果不填会自动生成一个唯一名称
1147
+ */
1148
+ _addProcess(name?: string): Process;
1149
+
1150
+ /**
1151
+ * 添加流程
1152
+ * @internal
1153
+ * @param processOptions 流程参数
1154
+ */
1155
+ _addProcess(processOptions: Partial<Process>): Process;
1156
+
1157
+ /**
1158
+ * 添加流程
1159
+ * @internal
1160
+ * @param process 已有的流程实例
1161
+ */
1162
+ _addProcess(process: Process): Process;
1163
+
1164
+ _addProcess(options?: string | Partial<Process> | Process) {
1165
+ const index = 0;
1166
+ return this._insertProcessAt(options as any, index);
1167
+ }
1168
+
1169
+ /**
1170
+ * 添加流程
1171
+ * @internal
1172
+ * @param name 流程名称,如果不填会自动生成一个唯一名称
1173
+ */
1174
+ addProcess(name?: string): Process;
1175
+
1176
+ /**
1177
+ * 添加流程
1178
+ * @param processOptions 流程参数
1179
+ */
1180
+ addProcess(processOptions: Partial<Process>): Process;
1181
+
1182
+ /**
1183
+ * 添加流程
1184
+ * @param process 已有的流程实例
1185
+ */
1186
+ addProcess(process: Process): Process;
1187
+
1188
+ addProcess(options?: string | Partial<Process> | Process) {
1189
+ const node = this._addProcess(options as any);
1190
+ const index = 0;
1191
+ node.create({
1192
+ index,
1193
+ parentNode: this,
1194
+ parentKey: 'processes',
1195
+ });
1196
+ return node;
1197
+ }
1198
+
1199
+
1200
+ getRoleExistingNames(excludedList: Array<Role> = []) {
1201
+ const excludedSet = new Set(excludedList);
1202
+ return (this.roles || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
1203
+ }
1204
+ getRoleUniqueName(name = 'role1') {
1205
+ return utils.unique(name, this.getRoleExistingNames());
1206
+ }
1207
+
1208
+ /**
1209
+ * 插入角色
1210
+ * @internal
1211
+ * @param name 角色名称,如果不填会自动生成一个唯一名称
1212
+ */
1213
+ _insertRoleAt(name: string, index: number): Role;
1214
+
1215
+ /**
1216
+ * 插入角色
1217
+ * @internal
1218
+ * @param roleOptions 角色参数
1219
+ */
1220
+ _insertRoleAt(roleOptions: Partial<Role>, index: number): Role;
1221
+
1222
+ /**
1223
+ * 插入角色
1224
+ * @internal
1225
+ * @param role 已有的角色实例
1226
+ */
1227
+ _insertRoleAt(role: Role, index: number): Role;
1228
+
1229
+ _insertRoleAt(options: string | Partial<Role> | Role, index: number) {
1230
+ const roleOptions: any = {};
1231
+ const relationOptions = { parentNode: this, parentKey: 'roles' };
1232
+ let role: Role;
1233
+ if (!options) {
1234
+ role = Role.from({
1235
+ ...roleOptions,
1236
+ name: this.getRoleUniqueName(),
1237
+ }, this, 'roles');
1238
+ } else if (typeof options === 'string') {
1239
+ role = Role.from({
1240
+ ...roleOptions,
1241
+ name: options,
1242
+ }, this, 'roles');
1243
+ } else if (options instanceof Role) {
1244
+ options.delete(); // 同一实例不支持多处存在
1245
+ role = options;
1246
+ Object.assign(role, relationOptions);
1247
+ } else {
1248
+ role = Role.from({
1249
+ ...roleOptions,
1250
+ ...options,
1251
+ }, this, 'roles');
1252
+ }
1253
+ this.roles.splice(index, 0, role);
1254
+ return role;
1255
+ }
1256
+
1257
+ /**
1258
+ * 插入角色
1259
+ * @param name 角色名称,如果不填会自动生成一个唯一名称
1260
+ */
1261
+ insertRoleAt(name: string, index: number): Role;
1262
+
1263
+ /**
1264
+ * 插入角色
1265
+ * @param roleOptions 角色参数
1266
+ */
1267
+ insertRoleAt(roleOptions: Partial<Role>, index: number): Role;
1268
+
1269
+ /**
1270
+ * 插入角色
1271
+ * @param role 已有的角色实例
1272
+ */
1273
+ insertRoleAt(role: Role, index: number): Role;
1274
+
1275
+ insertRoleAt(options: string | Partial<Role> | Role, index: number) {
1276
+ const node = this._insertRoleAt(options as any, index);
1277
+ node.create({
1278
+ index,
1279
+ parentNode: this,
1280
+ parentKey: 'roles',
1281
+ });
1282
+ return node;
1283
+ }
1284
+
1285
+ /**
1286
+ * 添加角色
1287
+ * @internal
1288
+ * @param name 角色名称,如果不填会自动生成一个唯一名称
1289
+ */
1290
+ _addRole(name?: string): Role;
1291
+
1292
+ /**
1293
+ * 添加角色
1294
+ * @internal
1295
+ * @param roleOptions 角色参数
1296
+ */
1297
+ _addRole(roleOptions: Partial<Role>): Role;
1298
+
1299
+ /**
1300
+ * 添加角色
1301
+ * @internal
1302
+ * @param role 已有的角色实例
1303
+ */
1304
+ _addRole(role: Role): Role;
1305
+
1306
+ _addRole(options?: string | Partial<Role> | Role) {
1307
+ const index = this.roles.length;
1308
+ return this._insertRoleAt(options as any, index);
1309
+ }
1310
+
1311
+ /**
1312
+ * 添加角色
1313
+ * @internal
1314
+ * @param name 角色名称,如果不填会自动生成一个唯一名称
1315
+ */
1316
+ addRole(name?: string): Role;
1317
+
1318
+ /**
1319
+ * 添加角色
1320
+ * @param roleOptions 角色参数
1321
+ */
1322
+ addRole(roleOptions: Partial<Role>): Role;
1323
+
1324
+ /**
1325
+ * 添加角色
1326
+ * @param role 已有的角色实例
1327
+ */
1328
+ addRole(role: Role): Role;
1329
+
1330
+ addRole(options?: string | Partial<Role> | Role) {
1331
+ const node = this._addRole(options as any);
1332
+ const index = this.roles.length;
1333
+ node.create({
1334
+ index,
1335
+ parentNode: this,
1336
+ parentKey: 'roles',
1337
+ });
1338
+ return node;
1339
+ }
1340
+
1341
+
1342
+ getModuleExistingNames(excludedList: Array<Module> = []) {
1343
+ const excludedSet = new Set(excludedList);
1344
+ return (this.dependencies || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
1345
+ }
1346
+ getModuleUniqueName(name = 'module1') {
1347
+ return utils.unique(name, this.getModuleExistingNames());
1348
+ }
1349
+
1350
+ /**
1351
+ * 插入模块
1352
+ * @internal
1353
+ * @param name 模块名称,如果不填会自动生成一个唯一名称
1354
+ */
1355
+ _insertModuleInDependenciesAt(name: string, index: number): Module;
1356
+
1357
+ /**
1358
+ * 插入模块
1359
+ * @internal
1360
+ * @param moduleOptions 模块参数
1361
+ */
1362
+ _insertModuleInDependenciesAt(moduleOptions: Partial<Module>, index: number): Module;
1363
+
1364
+ /**
1365
+ * 插入模块
1366
+ * @internal
1367
+ * @param module 已有的模块实例
1368
+ */
1369
+ _insertModuleInDependenciesAt(module: Module, index: number): Module;
1370
+
1371
+ _insertModuleInDependenciesAt(options: string | Partial<Module> | Module, index: number) {
1372
+ const moduleOptions: any = {};
1373
+ const relationOptions = { parentNode: this, parentKey: 'dependencies' };
1374
+ let module: Module;
1375
+ if (!options) {
1376
+ module = Module.from({
1377
+ ...moduleOptions,
1378
+ name: this.getModuleUniqueName(),
1379
+ }, this, 'dependencies');
1380
+ } else if (typeof options === 'string') {
1381
+ module = Module.from({
1382
+ ...moduleOptions,
1383
+ name: options,
1384
+ }, this, 'dependencies');
1385
+ } else if (options instanceof Module) {
1386
+ options.delete(); // 同一实例不支持多处存在
1387
+ module = options;
1388
+ Object.assign(module, relationOptions);
1389
+ } else {
1390
+ module = Module.from({
1391
+ ...moduleOptions,
1392
+ ...options,
1393
+ }, this, 'dependencies');
1394
+ }
1395
+ this.dependencies.splice(index, 0, module);
1396
+ return module;
1397
+ }
1398
+
1399
+ /**
1400
+ * 插入模块
1401
+ * @param name 模块名称,如果不填会自动生成一个唯一名称
1402
+ */
1403
+ insertModuleInDependenciesAt(name: string, index: number): Module;
1404
+
1405
+ /**
1406
+ * 插入模块
1407
+ * @param moduleOptions 模块参数
1408
+ */
1409
+ insertModuleInDependenciesAt(moduleOptions: Partial<Module>, index: number): Module;
1410
+
1411
+ /**
1412
+ * 插入模块
1413
+ * @param module 已有的模块实例
1414
+ */
1415
+ insertModuleInDependenciesAt(module: Module, index: number): Module;
1416
+
1417
+ insertModuleInDependenciesAt(options: string | Partial<Module> | Module, index: number) {
1418
+ const node = this._insertModuleInDependenciesAt(options as any, index);
1419
+ node.create({
1420
+ index,
1421
+ parentNode: this,
1422
+ parentKey: 'dependencies',
1423
+ });
1424
+ return node;
1425
+ }
1426
+
1427
+ /**
1428
+ * 添加模块
1429
+ * @internal
1430
+ * @param name 模块名称,如果不填会自动生成一个唯一名称
1431
+ */
1432
+ _addModuleInDependencies(name?: string): Module;
1433
+
1434
+ /**
1435
+ * 添加模块
1436
+ * @internal
1437
+ * @param moduleOptions 模块参数
1438
+ */
1439
+ _addModuleInDependencies(moduleOptions: Partial<Module>): Module;
1440
+
1441
+ /**
1442
+ * 添加模块
1443
+ * @internal
1444
+ * @param module 已有的模块实例
1445
+ */
1446
+ _addModuleInDependencies(module: Module): Module;
1447
+
1448
+ _addModuleInDependencies(options?: string | Partial<Module> | Module) {
1449
+ const index = this.dependencies.length;
1450
+ return this._insertModuleInDependenciesAt(options as any, index);
1451
+ }
1452
+
1453
+ /**
1454
+ * 添加模块
1455
+ * @internal
1456
+ * @param name 模块名称,如果不填会自动生成一个唯一名称
1457
+ */
1458
+ addModuleInDependencies(name?: string): Module;
1459
+
1460
+ /**
1461
+ * 添加模块
1462
+ * @param moduleOptions 模块参数
1463
+ */
1464
+ addModuleInDependencies(moduleOptions: Partial<Module>): Module;
1465
+
1466
+ /**
1467
+ * 添加模块
1468
+ * @param module 已有的模块实例
1469
+ */
1470
+ addModuleInDependencies(module: Module): Module;
1471
+
1472
+ addModuleInDependencies(options?: string | Partial<Module> | Module) {
1473
+ const node = this._addModuleInDependencies(options as any);
1474
+ const index = this.dependencies.length;
1475
+ node.create({
1476
+ index,
1477
+ parentNode: this,
1478
+ parentKey: 'dependencies',
1479
+ });
1480
+ return node;
1481
+ }
1482
+
1483
+ /**
1484
+ * 插入模块
1485
+ * @internal
1486
+ * @param name 模块名称,如果不填会自动生成一个唯一名称
1487
+ */
1488
+ _insertModuleInInterfaceDependenciesAt(name: string, index: number): Module;
1489
+
1490
+ /**
1491
+ * 插入模块
1492
+ * @internal
1493
+ * @param moduleOptions 模块参数
1494
+ */
1495
+ _insertModuleInInterfaceDependenciesAt(moduleOptions: Partial<Module>, index: number): Module;
1496
+
1497
+ /**
1498
+ * 插入模块
1499
+ * @internal
1500
+ * @param module 已有的模块实例
1501
+ */
1502
+ _insertModuleInInterfaceDependenciesAt(module: Module, index: number): Module;
1503
+
1504
+ _insertModuleInInterfaceDependenciesAt(options: string | Partial<Module> | Module, index: number) {
1505
+ const moduleOptions: any = {};
1506
+ const relationOptions = { parentNode: this, parentKey: 'interfaceDependencies' };
1507
+ let module: Module;
1508
+ if (!options) {
1509
+ module = Module.from({
1510
+ ...moduleOptions,
1511
+ name: this.getModuleUniqueName(),
1512
+ }, this, 'interfaceDependencies');
1513
+ } else if (typeof options === 'string') {
1514
+ module = Module.from({
1515
+ ...moduleOptions,
1516
+ name: options,
1517
+ }, this, 'interfaceDependencies');
1518
+ } else if (options instanceof Module) {
1519
+ options.delete(); // 同一实例不支持多处存在
1520
+ module = options;
1521
+ Object.assign(module, relationOptions);
1522
+ } else {
1523
+ module = Module.from({
1524
+ ...moduleOptions,
1525
+ ...options,
1526
+ }, this, 'interfaceDependencies');
1527
+ }
1528
+ this.interfaceDependencies.splice(index, 0, module);
1529
+ return module;
1530
+ }
1531
+
1532
+ /**
1533
+ * 插入模块
1534
+ * @param name 模块名称,如果不填会自动生成一个唯一名称
1535
+ */
1536
+ insertModuleInInterfaceDependenciesAt(name: string, index: number): Module;
1537
+
1538
+ /**
1539
+ * 插入模块
1540
+ * @param moduleOptions 模块参数
1541
+ */
1542
+ insertModuleInInterfaceDependenciesAt(moduleOptions: Partial<Module>, index: number): Module;
1543
+
1544
+ /**
1545
+ * 插入模块
1546
+ * @param module 已有的模块实例
1547
+ */
1548
+ insertModuleInInterfaceDependenciesAt(module: Module, index: number): Module;
1549
+
1550
+ insertModuleInInterfaceDependenciesAt(options: string | Partial<Module> | Module, index: number) {
1551
+ const node = this._insertModuleInInterfaceDependenciesAt(options as any, index);
1552
+ node.create({
1553
+ index,
1554
+ parentNode: this,
1555
+ parentKey: 'interfaceDependencies',
1556
+ });
1557
+ return node;
1558
+ }
1559
+
1560
+ /**
1561
+ * 添加模块
1562
+ * @internal
1563
+ * @param name 模块名称,如果不填会自动生成一个唯一名称
1564
+ */
1565
+ _addModuleInInterfaceDependencies(name?: string): Module;
1566
+
1567
+ /**
1568
+ * 添加模块
1569
+ * @internal
1570
+ * @param moduleOptions 模块参数
1571
+ */
1572
+ _addModuleInInterfaceDependencies(moduleOptions: Partial<Module>): Module;
1573
+
1574
+ /**
1575
+ * 添加模块
1576
+ * @internal
1577
+ * @param module 已有的模块实例
1578
+ */
1579
+ _addModuleInInterfaceDependencies(module: Module): Module;
1580
+
1581
+ _addModuleInInterfaceDependencies(options?: string | Partial<Module> | Module) {
1582
+ const index = this.interfaceDependencies.length;
1583
+ return this._insertModuleInInterfaceDependenciesAt(options as any, index);
1584
+ }
1585
+
1586
+ /**
1587
+ * 添加模块
1588
+ * @internal
1589
+ * @param name 模块名称,如果不填会自动生成一个唯一名称
1590
+ */
1591
+ addModuleInInterfaceDependencies(name?: string): Module;
1592
+
1593
+ /**
1594
+ * 添加模块
1595
+ * @param moduleOptions 模块参数
1596
+ */
1597
+ addModuleInInterfaceDependencies(moduleOptions: Partial<Module>): Module;
1598
+
1599
+ /**
1600
+ * 添加模块
1601
+ * @param module 已有的模块实例
1602
+ */
1603
+ addModuleInInterfaceDependencies(module: Module): Module;
1604
+
1605
+ addModuleInInterfaceDependencies(options?: string | Partial<Module> | Module) {
1606
+ const node = this._addModuleInInterfaceDependencies(options as any);
1607
+ const index = this.interfaceDependencies.length;
1608
+ node.create({
1609
+ index,
1610
+ parentNode: this,
1611
+ parentKey: 'interfaceDependencies',
1612
+ });
1613
+ return node;
1614
+ }
1615
+
1616
+ /**
1617
+ * 插入模块
1618
+ * @internal
1619
+ * @param name 模块名称,如果不填会自动生成一个唯一名称
1620
+ */
1621
+ _insertModuleInComponentDependenciesAt(name: string, index: number): Module;
1622
+
1623
+ /**
1624
+ * 插入模块
1625
+ * @internal
1626
+ * @param moduleOptions 模块参数
1627
+ */
1628
+ _insertModuleInComponentDependenciesAt(moduleOptions: Partial<Module>, index: number): Module;
1629
+
1630
+ /**
1631
+ * 插入模块
1632
+ * @internal
1633
+ * @param module 已有的模块实例
1634
+ */
1635
+ _insertModuleInComponentDependenciesAt(module: Module, index: number): Module;
1636
+
1637
+ _insertModuleInComponentDependenciesAt(options: string | Partial<Module> | Module, index: number) {
1638
+ const moduleOptions: any = {};
1639
+ const relationOptions = { parentNode: this, parentKey: 'componentDependencies' };
1640
+ let module: Module;
1641
+ if (!options) {
1642
+ module = Module.from({
1643
+ ...moduleOptions,
1644
+ name: this.getModuleUniqueName(),
1645
+ }, this, 'componentDependencies');
1646
+ } else if (typeof options === 'string') {
1647
+ module = Module.from({
1648
+ ...moduleOptions,
1649
+ name: options,
1650
+ }, this, 'componentDependencies');
1651
+ } else if (options instanceof Module) {
1652
+ options.delete(); // 同一实例不支持多处存在
1653
+ module = options;
1654
+ Object.assign(module, relationOptions);
1655
+ } else {
1656
+ module = Module.from({
1657
+ ...moduleOptions,
1658
+ ...options,
1659
+ }, this, 'componentDependencies');
1660
+ }
1661
+ this.componentDependencies.splice(index, 0, module);
1662
+ return module;
1663
+ }
1664
+
1665
+ /**
1666
+ * 插入模块
1667
+ * @param name 模块名称,如果不填会自动生成一个唯一名称
1668
+ */
1669
+ insertModuleInComponentDependenciesAt(name: string, index: number): Module;
1670
+
1671
+ /**
1672
+ * 插入模块
1673
+ * @param moduleOptions 模块参数
1674
+ */
1675
+ insertModuleInComponentDependenciesAt(moduleOptions: Partial<Module>, index: number): Module;
1676
+
1677
+ /**
1678
+ * 插入模块
1679
+ * @param module 已有的模块实例
1680
+ */
1681
+ insertModuleInComponentDependenciesAt(module: Module, index: number): Module;
1682
+
1683
+ insertModuleInComponentDependenciesAt(options: string | Partial<Module> | Module, index: number) {
1684
+ const node = this._insertModuleInComponentDependenciesAt(options as any, index);
1685
+ node.create({
1686
+ index,
1687
+ parentNode: this,
1688
+ parentKey: 'componentDependencies',
1689
+ });
1690
+ return node;
1691
+ }
1692
+
1693
+ /**
1694
+ * 添加模块
1695
+ * @internal
1696
+ * @param name 模块名称,如果不填会自动生成一个唯一名称
1697
+ */
1698
+ _addModuleInComponentDependencies(name?: string): Module;
1699
+
1700
+ /**
1701
+ * 添加模块
1702
+ * @internal
1703
+ * @param moduleOptions 模块参数
1704
+ */
1705
+ _addModuleInComponentDependencies(moduleOptions: Partial<Module>): Module;
1706
+
1707
+ /**
1708
+ * 添加模块
1709
+ * @internal
1710
+ * @param module 已有的模块实例
1711
+ */
1712
+ _addModuleInComponentDependencies(module: Module): Module;
1713
+
1714
+ _addModuleInComponentDependencies(options?: string | Partial<Module> | Module) {
1715
+ const index = this.componentDependencies.length;
1716
+ return this._insertModuleInComponentDependenciesAt(options as any, index);
1717
+ }
1718
+
1719
+ /**
1720
+ * 添加模块
1721
+ * @internal
1722
+ * @param name 模块名称,如果不填会自动生成一个唯一名称
1723
+ */
1724
+ addModuleInComponentDependencies(name?: string): Module;
1725
+
1726
+ /**
1727
+ * 添加模块
1728
+ * @param moduleOptions 模块参数
1729
+ */
1730
+ addModuleInComponentDependencies(moduleOptions: Partial<Module>): Module;
1731
+
1732
+ /**
1733
+ * 添加模块
1734
+ * @param module 已有的模块实例
1735
+ */
1736
+ addModuleInComponentDependencies(module: Module): Module;
1737
+
1738
+ addModuleInComponentDependencies(options?: string | Partial<Module> | Module) {
1739
+ const node = this._addModuleInComponentDependencies(options as any);
1740
+ const index = this.componentDependencies.length;
1741
+ node.create({
1742
+ index,
1743
+ parentNode: this,
1744
+ parentKey: 'componentDependencies',
1745
+ });
1746
+ return node;
1747
+ }
1748
+
1749
+
1750
+
1751
+
1752
+ /**
1753
+ * 删除实体
1754
+ * @param name 实体名称
1755
+ */
1756
+ removeEntity(name: string): void;
1757
+
1758
+ /**
1759
+ * 删除实体
1760
+ * @param entity 已有的实体实例
1761
+ */
1762
+ removeEntity(entity: Entity): void;
1763
+
1764
+ removeEntity(options: string | Entity) {
1765
+ let entity: Entity;
1766
+ if (typeof options === 'string') {
1767
+ entity = this.entities.find((item) => item.name === options);
1768
+ if (!entity) {
1769
+ throw new Error('找不到实体 ' + options);
1770
+ }
1771
+ } else {
1772
+ entity = options;
1773
+ }
1774
+ return entity.delete();
1775
+ }
1776
+
1777
+ __removeEntity(entity: Entity) {
1778
+ const parentKey = entity.parentKey;
1779
+ const params: Params = {
1780
+ parentNode: this,
1781
+ parentKey,
1782
+ index: -1,
1783
+ object: null,
1784
+ oldObject: entity,
1785
+ };
1786
+ if (parentKey) {
1787
+ params.parentKey = parentKey;
1788
+ if (Array.isArray((this as any)[parentKey])) {
1789
+ const index = (this as any)[parentKey].indexOf(entity);
1790
+ ~index && (this as any)[parentKey].splice(index, 1);
1791
+ params.index = index;
1792
+ } else if ((this as any)[parentKey] === entity) {
1793
+ params.index = 0;
1794
+ (this as any)[parentKey] = undefined;
1795
+ }
1796
+ }
1797
+ return params;
1798
+ }
1799
+
1800
+
1801
+
1802
+ /**
1803
+ * 删除数据结构
1804
+ * @param name 数据结构名称
1805
+ */
1806
+ removeStructure(name: string): void;
1807
+
1808
+ /**
1809
+ * 删除数据结构
1810
+ * @param structure 已有的数据结构实例
1811
+ */
1812
+ removeStructure(structure: Structure): void;
1813
+
1814
+ removeStructure(options: string | Structure) {
1815
+ let structure: Structure;
1816
+ if (typeof options === 'string') {
1817
+ structure = this.structures.find((item) => item.name === options);
1818
+ if (!structure) {
1819
+ throw new Error('找不到数据结构 ' + options);
1820
+ }
1821
+ } else {
1822
+ structure = options;
1823
+ }
1824
+ return structure.delete();
1825
+ }
1826
+
1827
+ __removeStructure(structure: Structure) {
1828
+ const parentKey = structure.parentKey;
1829
+ const params: Params = {
1830
+ parentNode: this,
1831
+ parentKey,
1832
+ index: -1,
1833
+ object: null,
1834
+ oldObject: structure,
1835
+ };
1836
+ if (parentKey) {
1837
+ params.parentKey = parentKey;
1838
+ if (Array.isArray((this as any)[parentKey])) {
1839
+ const index = (this as any)[parentKey].indexOf(structure);
1840
+ ~index && (this as any)[parentKey].splice(index, 1);
1841
+ params.index = index;
1842
+ } else if ((this as any)[parentKey] === structure) {
1843
+ params.index = 0;
1844
+ (this as any)[parentKey] = undefined;
1845
+ }
1846
+ }
1847
+ return params;
1848
+ }
1849
+
1850
+
1851
+
1852
+ /**
1853
+ * 删除枚举
1854
+ * @param name 枚举名称
1855
+ */
1856
+ removeEnum(name: string): void;
1857
+
1858
+ /**
1859
+ * 删除枚举
1860
+ * @param enumeration 已有的枚举实例
1861
+ */
1862
+ removeEnum(enumeration: Enum): void;
1863
+
1864
+ removeEnum(options: string | Enum) {
1865
+ let enumeration: Enum;
1866
+ if (typeof options === 'string') {
1867
+ enumeration = this.enums.find((item) => item.name === options);
1868
+ if (!enumeration) {
1869
+ throw new Error('找不到枚举 ' + options);
1870
+ }
1871
+ } else {
1872
+ enumeration = options;
1873
+ }
1874
+ return enumeration.delete();
1875
+ }
1876
+
1877
+ __removeEnum(enumeration: Enum) {
1878
+ const parentKey = enumeration.parentKey;
1879
+ const params: Params = {
1880
+ parentNode: this,
1881
+ parentKey,
1882
+ index: -1,
1883
+ object: null,
1884
+ oldObject: enumeration,
1885
+ };
1886
+ if (parentKey) {
1887
+ params.parentKey = parentKey;
1888
+ if (Array.isArray((this as any)[parentKey])) {
1889
+ const index = (this as any)[parentKey].indexOf(enumeration);
1890
+ ~index && (this as any)[parentKey].splice(index, 1);
1891
+ params.index = index;
1892
+ } else if ((this as any)[parentKey] === enumeration) {
1893
+ params.index = 0;
1894
+ (this as any)[parentKey] = undefined;
1895
+ }
1896
+ }
1897
+ return params;
1898
+ }
1899
+
1900
+
1901
+
1902
+ /**
1903
+ * 删除逻辑
1904
+ * @param name 逻辑名称
1905
+ */
1906
+ removeLogic(name: string): void;
1907
+
1908
+ /**
1909
+ * 删除逻辑
1910
+ * @param logic 已有的逻辑实例
1911
+ */
1912
+ removeLogic(logic: Logic): void;
1913
+
1914
+ removeLogic(options: string | Logic) {
1915
+ let logic: Logic;
1916
+ if (typeof options === 'string') {
1917
+ logic = this.logics.find((item) => item.name === options);
1918
+ if (!logic) {
1919
+ throw new Error('找不到逻辑 ' + options);
1920
+ }
1921
+ } else {
1922
+ logic = options;
1923
+ }
1924
+ return logic.delete();
1925
+ }
1926
+
1927
+ __removeLogic(logic: Logic) {
1928
+ const parentKey = logic.parentKey;
1929
+ const params: Params = {
1930
+ parentNode: this,
1931
+ parentKey,
1932
+ index: -1,
1933
+ object: null,
1934
+ oldObject: logic,
1935
+ };
1936
+ if (parentKey) {
1937
+ params.parentKey = parentKey;
1938
+ if (Array.isArray((this as any)[parentKey])) {
1939
+ const index = (this as any)[parentKey].indexOf(logic);
1940
+ ~index && (this as any)[parentKey].splice(index, 1);
1941
+ params.index = index;
1942
+ } else if ((this as any)[parentKey] === logic) {
1943
+ params.index = 0;
1944
+ (this as any)[parentKey] = undefined;
1945
+ }
1946
+ }
1947
+ return params;
1948
+ }
1949
+
1950
+
1951
+
1952
+ /**
1953
+ * 删除接口
1954
+ * @param name 接口名称
1955
+ */
1956
+ removeInterface(name: string): void;
1957
+
1958
+ /**
1959
+ * 删除接口
1960
+ * @param itface 已有的接口实例
1961
+ */
1962
+ removeInterface(itface: Interface): void;
1963
+
1964
+ removeInterface(options: string | Interface) {
1965
+ let itface: Interface;
1966
+ if (typeof options === 'string') {
1967
+ itface = this.interfaces.find((item) => item.name === options);
1968
+ if (!itface) {
1969
+ throw new Error('找不到接口 ' + options);
1970
+ }
1971
+ } else {
1972
+ itface = options;
1973
+ }
1974
+ return itface.delete();
1975
+ }
1976
+
1977
+ __removeInterface(itface: Interface) {
1978
+ const parentKey = itface.parentKey;
1979
+ const params: Params = {
1980
+ parentNode: this,
1981
+ parentKey,
1982
+ index: -1,
1983
+ object: null,
1984
+ oldObject: itface,
1985
+ };
1986
+ if (parentKey) {
1987
+ params.parentKey = parentKey;
1988
+ if (Array.isArray((this as any)[parentKey])) {
1989
+ const index = (this as any)[parentKey].indexOf(itface);
1990
+ ~index && (this as any)[parentKey].splice(index, 1);
1991
+ params.index = index;
1992
+ } else if ((this as any)[parentKey] === itface) {
1993
+ params.index = 0;
1994
+ (this as any)[parentKey] = undefined;
1995
+ }
1996
+ }
1997
+ return params;
1998
+ }
1999
+
2000
+
2001
+
2002
+ /**
2003
+ * 删除页面
2004
+ * @param name 页面名称
2005
+ */
2006
+ removeView(name: string): void;
2007
+
2008
+ /**
2009
+ * 删除页面
2010
+ * @param view 已有的页面实例
2011
+ */
2012
+ removeView(view: View): void;
2013
+
2014
+ removeView(options: string | View) {
2015
+ let view: View;
2016
+ if (typeof options === 'string') {
2017
+ view = this.views.find((item) => item.name === options);
2018
+ if (!view) {
2019
+ throw new Error('找不到页面 ' + options);
2020
+ }
2021
+ } else {
2022
+ view = options;
2023
+ }
2024
+ return view.delete();
2025
+ }
2026
+
2027
+ __removeView(view: View) {
2028
+ const parentKey = view.parentKey;
2029
+ const params: Params = {
2030
+ parentNode: this,
2031
+ parentKey,
2032
+ index: -1,
2033
+ object: null,
2034
+ oldObject: view,
2035
+ };
2036
+ if (parentKey) {
2037
+ params.parentKey = parentKey;
2038
+ if (Array.isArray((this as any)[parentKey])) {
2039
+ const index = (this as any)[parentKey].indexOf(view);
2040
+ ~index && (this as any)[parentKey].splice(index, 1);
2041
+ params.index = index;
2042
+ } else if ((this as any)[parentKey] === view) {
2043
+ params.index = 0;
2044
+ (this as any)[parentKey] = undefined;
2045
+ }
2046
+ }
2047
+ return params;
2048
+ }
2049
+
2050
+
2051
+
2052
+ /**
2053
+ * 删除流程
2054
+ * @param name 流程名称
2055
+ */
2056
+ removeProcess(name: string): void;
2057
+
2058
+ /**
2059
+ * 删除流程
2060
+ * @param process 已有的流程实例
2061
+ */
2062
+ removeProcess(process: Process): void;
2063
+
2064
+ removeProcess(options: string | Process) {
2065
+ let process: Process;
2066
+ if (typeof options === 'string') {
2067
+ process = this.processes.find((item) => item.name === options);
2068
+ if (!process) {
2069
+ throw new Error('找不到流程 ' + options);
2070
+ }
2071
+ } else {
2072
+ process = options;
2073
+ }
2074
+ return process.delete();
2075
+ }
2076
+
2077
+ __removeProcess(process: Process) {
2078
+ const parentKey = process.parentKey;
2079
+ const params: Params = {
2080
+ parentNode: this,
2081
+ parentKey,
2082
+ index: -1,
2083
+ object: null,
2084
+ oldObject: process,
2085
+ };
2086
+ if (parentKey) {
2087
+ params.parentKey = parentKey;
2088
+ if (Array.isArray((this as any)[parentKey])) {
2089
+ const index = (this as any)[parentKey].indexOf(process);
2090
+ ~index && (this as any)[parentKey].splice(index, 1);
2091
+ params.index = index;
2092
+ } else if ((this as any)[parentKey] === process) {
2093
+ params.index = 0;
2094
+ (this as any)[parentKey] = undefined;
2095
+ }
2096
+ }
2097
+ return params;
2098
+ }
2099
+
2100
+
2101
+
2102
+ /**
2103
+ * 删除角色
2104
+ * @param name 角色名称
2105
+ */
2106
+ removeRole(name: string): void;
2107
+
2108
+ /**
2109
+ * 删除角色
2110
+ * @param role 已有的角色实例
2111
+ */
2112
+ removeRole(role: Role): void;
2113
+
2114
+ removeRole(options: string | Role) {
2115
+ let role: Role;
2116
+ if (typeof options === 'string') {
2117
+ role = this.roles.find((item) => item.name === options);
2118
+ if (!role) {
2119
+ throw new Error('找不到角色 ' + options);
2120
+ }
2121
+ } else {
2122
+ role = options;
2123
+ }
2124
+ return role.delete();
2125
+ }
2126
+
2127
+ __removeRole(role: Role) {
2128
+ const parentKey = role.parentKey;
2129
+ const params: Params = {
2130
+ parentNode: this,
2131
+ parentKey,
2132
+ index: -1,
2133
+ object: null,
2134
+ oldObject: role,
2135
+ };
2136
+ if (parentKey) {
2137
+ params.parentKey = parentKey;
2138
+ if (Array.isArray((this as any)[parentKey])) {
2139
+ const index = (this as any)[parentKey].indexOf(role);
2140
+ ~index && (this as any)[parentKey].splice(index, 1);
2141
+ params.index = index;
2142
+ } else if ((this as any)[parentKey] === role) {
2143
+ params.index = 0;
2144
+ (this as any)[parentKey] = undefined;
2145
+ }
2146
+ }
2147
+ return params;
2148
+ }
2149
+
2150
+
2151
+
2152
+ /**
2153
+ * 删除主题
2154
+ * @param name 主题名称
2155
+ */
2156
+ removeTheme(name: string): void;
2157
+
2158
+ /**
2159
+ * 删除主题
2160
+ * @param theme 已有的主题实例
2161
+ */
2162
+ removeTheme(theme: Theme): void;
2163
+
2164
+ removeTheme(options: string | Theme) {
2165
+ let theme: Theme;
2166
+ if (typeof options === 'string') {
2167
+ theme = this.theme;
2168
+ if (!theme) {
2169
+ throw new Error('找不到主题 ' + options);
2170
+ }
2171
+ } else {
2172
+ theme = options;
2173
+ }
2174
+ return theme.delete();
2175
+ }
2176
+
2177
+ __removeTheme(theme: Theme) {
2178
+ const parentKey = theme.parentKey;
2179
+ const params: Params = {
2180
+ parentNode: this,
2181
+ parentKey,
2182
+ index: -1,
2183
+ object: null,
2184
+ oldObject: theme,
2185
+ };
2186
+ if (parentKey) {
2187
+ params.parentKey = parentKey;
2188
+ if (Array.isArray((this as any)[parentKey])) {
2189
+ const index = (this as any)[parentKey].indexOf(theme);
2190
+ ~index && (this as any)[parentKey].splice(index, 1);
2191
+ params.index = index;
2192
+ } else if ((this as any)[parentKey] === theme) {
2193
+ params.index = 0;
2194
+ (this as any)[parentKey] = undefined;
2195
+ }
2196
+ }
2197
+ return params;
2198
+ }
2199
+
2200
+
2201
+
2202
+ /**
2203
+ * 删除配置管理
2204
+ * @param name 配置管理名称
2205
+ */
2206
+ removeConfiguration(name: string): void;
2207
+
2208
+ /**
2209
+ * 删除配置管理
2210
+ * @param configuration 已有的配置管理实例
2211
+ */
2212
+ removeConfiguration(configuration: Configuration): void;
2213
+
2214
+ removeConfiguration(options: string | Configuration) {
2215
+ let configuration: Configuration;
2216
+ if (typeof options === 'string') {
2217
+ configuration = this.configuration;
2218
+ if (!configuration) {
2219
+ throw new Error('找不到配置管理 ' + options);
2220
+ }
2221
+ } else {
2222
+ configuration = options;
2223
+ }
2224
+ return configuration.delete();
2225
+ }
2226
+
2227
+ __removeConfiguration(configuration: Configuration) {
2228
+ const parentKey = configuration.parentKey;
2229
+ const params: Params = {
2230
+ parentNode: this,
2231
+ parentKey,
2232
+ index: -1,
2233
+ object: null,
2234
+ oldObject: configuration,
2235
+ };
2236
+ if (parentKey) {
2237
+ params.parentKey = parentKey;
2238
+ if (Array.isArray((this as any)[parentKey])) {
2239
+ const index = (this as any)[parentKey].indexOf(configuration);
2240
+ ~index && (this as any)[parentKey].splice(index, 1);
2241
+ params.index = index;
2242
+ } else if ((this as any)[parentKey] === configuration) {
2243
+ params.index = 0;
2244
+ (this as any)[parentKey] = undefined;
2245
+ }
2246
+ }
2247
+ return params;
2248
+ }
2249
+
2250
+
2251
+
2252
+ /**
2253
+ * 删除模块
2254
+ * @param name 模块名称
2255
+ */
2256
+ removeModuleInDependencies(name: string): void;
2257
+
2258
+ /**
2259
+ * 删除模块
2260
+ * @param module 已有的模块实例
2261
+ */
2262
+ removeModuleInDependencies(module: Module): void;
2263
+
2264
+ removeModuleInDependencies(options: string | Module) {
2265
+ let module: Module;
2266
+ if (typeof options === 'string') {
2267
+ module = this.dependencies.find((item) => item.name === options);
2268
+ if (!module) {
2269
+ throw new Error('找不到模块 ' + options);
2270
+ }
2271
+ } else {
2272
+ module = options;
2273
+ }
2274
+ return module.delete();
2275
+ }
2276
+
2277
+
2278
+
2279
+ /**
2280
+ * 删除模块
2281
+ * @param name 模块名称
2282
+ */
2283
+ removeModuleInInterfaceDependencies(name: string): void;
2284
+
2285
+ /**
2286
+ * 删除模块
2287
+ * @param module 已有的模块实例
2288
+ */
2289
+ removeModuleInInterfaceDependencies(module: Module): void;
2290
+
2291
+ removeModuleInInterfaceDependencies(options: string | Module) {
2292
+ let module: Module;
2293
+ if (typeof options === 'string') {
2294
+ module = this.interfaceDependencies.find((item) => item.name === options);
2295
+ if (!module) {
2296
+ throw new Error('找不到模块 ' + options);
2297
+ }
2298
+ } else {
2299
+ module = options;
2300
+ }
2301
+ return module.delete();
2302
+ }
2303
+
2304
+
2305
+
2306
+ /**
2307
+ * 删除模块
2308
+ * @param name 模块名称
2309
+ */
2310
+ removeModuleInComponentDependencies(name: string): void;
2311
+
2312
+ /**
2313
+ * 删除模块
2314
+ * @param module 已有的模块实例
2315
+ */
2316
+ removeModuleInComponentDependencies(module: Module): void;
2317
+
2318
+ removeModuleInComponentDependencies(options: string | Module) {
2319
+ let module: Module;
2320
+ if (typeof options === 'string') {
2321
+ module = this.componentDependencies.find((item) => item.name === options);
2322
+ if (!module) {
2323
+ throw new Error('找不到模块 ' + options);
2324
+ }
2325
+ } else {
2326
+ module = options;
2327
+ }
2328
+ return module.delete();
2329
+ }
2330
+
2331
+ __removeModule(module: Module) {
2332
+ const parentKey = module.parentKey;
2333
+ const params: Params = {
2334
+ parentNode: this,
2335
+ parentKey,
2336
+ index: -1,
2337
+ object: null,
2338
+ oldObject: module,
2339
+ };
2340
+ if (parentKey) {
2341
+ params.parentKey = parentKey;
2342
+ if (Array.isArray((this as any)[parentKey])) {
2343
+ const index = (this as any)[parentKey].indexOf(module);
2344
+ ~index && (this as any)[parentKey].splice(index, 1);
2345
+ params.index = index;
2346
+ } else if ((this as any)[parentKey] === module) {
2347
+ params.index = 0;
2348
+ (this as any)[parentKey] = undefined;
2349
+ }
2350
+ }
2351
+ return params;
2352
+ }
2353
+
2354
+ //================================================================================
2355
+ // ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑
2356
+ // 自动生成的代码已结束。下面可以手动编写。
2357
+ //================================================================================
2358
+ findComponentDependencyByName(name: string) {
2359
+ return this.componentDependencies.find((componentDependency) => componentDependency.name === name);
2360
+ }
2361
+
2362
+ findEntityByName(name: string) {
2363
+ return this.entities.find((entity) => entity.name === name);
2364
+ }
2365
+
2366
+ findEnumByName(name: string) {
2367
+ return this.enums.find((enumItem) => enumItem.name === name);
2368
+ }
2369
+
2370
+ findStructureByName(name: string) {
2371
+ return this.structures.find((item) => item.name === name);
2372
+ }
2373
+
2374
+ findLogicByName(name: string) {
2375
+ return this.logics.find((logic) => logic.name === name);
2376
+ }
2377
+
2378
+ /**
2379
+ * 是否为官方应用
2380
+ */
2381
+ @excludedInJSON()
2382
+ officialType: 'official' | 'nonofficial' = undefined;
2383
+
2384
+ /**
2385
+ * 轻舟项目 Id
2386
+ */
2387
+ @excludedInJSON()
2388
+ projectId: string = undefined;
2389
+
2390
+ /**
2391
+ * 租户 Id
2392
+ */
2393
+ @excludedInJSON()
2394
+ tenantId: string = undefined;
2395
+
2396
+ /**
2397
+ * 租户 Id
2398
+ */
2399
+ @excludedInJSON()
2400
+ userGroupId: string = undefined;
2401
+
2402
+ /**
2403
+ * 多环境
2404
+ */
2405
+ @excludedInJSON()
2406
+ envs: string = undefined;
2407
+
2408
+ /**
2409
+ * 多环境
2410
+ */
2411
+ @excludedInJSON()
2412
+ envList: Array<string> = ['dev', 'online'];
2413
+
2414
+ /**
2415
+ * 发布状态
2416
+ */
2417
+ @excludedInJSON()
2418
+ deploying: boolean = undefined;
2419
+
2420
+ /**
2421
+ * 发布 Id
2422
+ */
2423
+ @excludedInJSON()
2424
+ deploymentId: number = undefined;
2425
+
2426
+ /**
2427
+ * 从模板创建的模板 Id
2428
+ */
2429
+ @excludedInJSON()
2430
+ templateId: number = undefined;
2431
+
2432
+ /**
2433
+ * 获取命名空间
2434
+ */
2435
+ getNamespace() {
2436
+ return `app`;
2437
+ }
2438
+
2439
+ findNodeByPath(nodePath: string) {
2440
+ const pathArr = nodePath?.split('.') || [];
2441
+ let pathItem = pathArr.shift();
2442
+ let node: any = this;
2443
+ while (pathItem) {
2444
+ const matchArr = pathItem.match(/\[(.+?)\]/);
2445
+ const arrayPropertyKey = pathItem.split('[')[0];
2446
+ const arrOption = matchArr && matchArr[1] && matchArr[1].split('=');
2447
+ if (node && arrayPropertyKey && arrayPropertyKey !== 'app') {
2448
+ node = node[arrayPropertyKey];
2449
+ if (Array.isArray(arrOption) && arrOption.length && Array.isArray(node) && node.length) {
2450
+ if (arrOption.length === 2) {
2451
+ node = node.filter((nodeItem) => nodeItem[arrOption[0]] === arrOption[1])[0];
2452
+ } else {
2453
+ const index = +arrOption[0];
2454
+ node = node[index];
2455
+ }
2456
+ }
2457
+ }
2458
+ pathItem = pathArr.shift();
2459
+ }
2460
+ return node;
2461
+ }
2462
+
2463
+ /**
2464
+ * @param path 路径
2465
+ * path 为要查找路径:如 /dashboard/student/list、/dashboard/student/list
2466
+ */
2467
+ findViewByPath(path: string) {
2468
+ const arr = path.split('/');
2469
+ if (arr[0] === '')
2470
+ arr.shift();
2471
+
2472
+ if (!arr.length)
2473
+ throw Error('Cannot find View ' + path);
2474
+ const childName = arr.shift();
2475
+ const subView = this.views.find((child) => child.name === childName);
2476
+ return arr.length ? subView.findViewByPath(arr.join('/')) : subView;
2477
+ }
2478
+
2479
+ loadEnvList() {
2480
+ this.envList = ['dev', 'online'];
2481
+ }
2482
+
2483
+ public readonly packageInfo: {
2484
+ template: { name: string; version: string };
2485
+ ui: { name: string; version: string };
2486
+ } = {
2487
+ template: {
2488
+ name: 'lcap-pc-template',
2489
+ version: '0.4.13-beta',
2490
+ },
2491
+ ui: {
2492
+ name: 'cloud-ui.vusion',
2493
+ version: '0.14.8',
2494
+ },
2495
+ };
2496
+
2497
+ loadPackageInfo() {
2498
+ const dependencyMap = (window as any).globalData.ideVersionDetail.dependencies;
2499
+ this.packageInfo.template.name = this.scope === 'h5' ? '@lcap/mobile-template' : 'lcap-pc-template';
2500
+ this.packageInfo.template.version = this.scope === 'h5' ? dependencyMap.FrontendArchH5.version : dependencyMap.FrontendArchPC.version;
2501
+ this.packageInfo.ui.name = this.scope === 'h5' ? '@lcap/mobile-ui' : 'cloud-ui.vusion';
2502
+ this.packageInfo.ui.version = this.scope === 'h5' ? dependencyMap.FrontendComponentLibraryH5.version : dependencyMap.FrontendComponentLibraryPC.version;
2503
+ }
2504
+
2505
+ /**
2506
+ * 根据 packageInfo 的信息生成用于 load 的 assetsInfo
2507
+ * 在环境中需要 basic 和 custom 分开 load,否则容易报错
2508
+ * @param prefix
2509
+ */
2510
+ genAllAssetsInfo(prefix: string) {
2511
+ const packageInfo = this.packageInfo;
2512
+ const scope = this.scope;
2513
+ const result: {
2514
+ basic: AssetsInfo;
2515
+ custom?: AssetsInfo;
2516
+ } = {
2517
+ basic: {
2518
+ js: [
2519
+ `${prefix}/packages/vue@2/dist/vue.min.js`,
2520
+ // `${prefix}/packages/vue-router@3/dist/vue-router.min.js`,
2521
+
2522
+ scope === 'h5' ? `${prefix}/packages/@lcap/mobile-ui@${packageInfo.ui.version}/dist-theme/index.js` : `${prefix}/packages/cloud-ui.vusion@${packageInfo.ui.version}/dist-theme/index.js`,
2523
+
2524
+ scope === 'h5' ? `${prefix}/packages/@lcap/mobile-template@0.7.10-beta/cloudAdminDesigner.umd.min.js` : `${prefix}/packages/lcap-pc-template@0.4.13-beta/cloudAdminDesigner.umd.min.js`,
2525
+ ],
2526
+ css: [
2527
+ scope === 'h5' ? `${prefix}/packages/@lcap/mobile-ui@${packageInfo.ui.version}/dist-theme/index.css` : `${prefix}/packages/cloud-ui.vusion@${packageInfo.ui.version}/dist-theme/index.css`,
2528
+ scope === 'h5' ? `${prefix}/packages/@lcap/mobile-template@${packageInfo.template.version}/cloudAdminDesigner.css` : `${prefix}/packages/lcap-pc-template@${packageInfo.template.version}/cloudAdminDesigner.css`,
2529
+ ],
2530
+ },
2531
+ custom: {
2532
+ js: [],
2533
+ css: [],
2534
+ names: [],
2535
+ },
2536
+ };
2537
+ this.componentDependencies.forEach((dep) => {
2538
+ const { name, version } = dep;
2539
+ result.custom.js.push(`${prefix}/packages/${name}@${version}/dist-theme/index.js`);
2540
+ result.custom.css.push(`${prefix}/packages/${name}@${version}/dist-theme/index.css`);
2541
+ result.custom.names.push(name);
2542
+ });
2543
+ return result;
2544
+ }
2545
+
2546
+ genThemeCSS() {
2547
+ const keys = Object.keys(this.theme?.variableMap || {});
2548
+ if (!keys.length)
2549
+ return;
2550
+
2551
+ return `:root {
2552
+ ${keys.map((key) => ` ${key}: ${this.theme?.variableMap[key]};`).join('\n')}
2553
+ }
2554
+ `;
2555
+ }
2556
+
2557
+ //================================================================================
2558
+ // 从这里开始到结尾注释之间的代码由 NASL Workbench 自动生成,请不手动修改!
2559
+ // ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓
2560
+ //================================================================================
2561
+ }
2562
+
2563
+ classMap['App'] = App;
2564
+ export default App;
2565
+ //================================================================================
2566
+ // ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑
2567
+ // 自动生成的代码已结束。下面可以手动编写。
2568
+ //================================================================================