@lcap/nasl 0.3.14 → 1.0.0-alpha.1

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