@lcap/nasl 3.6.0-beta.1 → 3.7.0-beta.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 (981) hide show
  1. package/.nyc_output/{d58d92d8-c0d6-479b-9f82-1f4da8e73ff3.json → 559608df-ab15-4969-acf0-5239dacd6111.json} +1 -1
  2. package/.nyc_output/processinfo/559608df-ab15-4969-acf0-5239dacd6111.json +1 -0
  3. package/.nyc_output/processinfo/index.json +1 -1
  4. package/coverage/index.html +153 -138
  5. package/coverage/src/automate/engine/index.html +1 -1
  6. package/coverage/src/automate/engine/utils.js.html +46 -46
  7. package/coverage/src/bak/index.html +15 -15
  8. package/coverage/src/bak/translator.js.html +153 -57
  9. package/coverage/src/breakpoint/generator/AfterStartNode.ts.html +1 -1
  10. package/coverage/src/breakpoint/generator/BeforeEndNode.ts.html +1 -1
  11. package/coverage/src/breakpoint/generator/BreakpointNode.ts.html +43 -7
  12. package/coverage/src/breakpoint/generator/CallbackNode.ts.html +59 -8
  13. package/coverage/src/breakpoint/generator/index.html +21 -21
  14. package/coverage/src/breakpoint/generator/index.ts.html +1 -1
  15. package/coverage/src/breakpoint/index.html +1 -1
  16. package/coverage/src/breakpoint/index.ts.html +1 -1
  17. package/coverage/src/breakpoint/shared/constants.ts.html +1 -1
  18. package/coverage/src/breakpoint/shared/index.html +1 -1
  19. package/coverage/src/breakpoint/shared/index.ts.html +1 -1
  20. package/coverage/src/breakpoint/shared/operations.ts.html +2 -2
  21. package/coverage/src/breakpoint/shared/socket.ts.html +1 -1
  22. package/coverage/src/breakpoint/shared/utils.ts.html +1 -1
  23. package/coverage/src/breakpoint/store/core.ts.html +3 -3
  24. package/coverage/src/breakpoint/store/dock.ts.html +1 -1
  25. package/coverage/src/breakpoint/store/index.html +1 -1
  26. package/coverage/src/breakpoint/store/index.ts.html +1 -1
  27. package/coverage/src/common/BaseNode.ts.html +609 -180
  28. package/coverage/src/common/Command.ts.html +2 -2
  29. package/coverage/src/common/EventEmitter.ts.html +6 -6
  30. package/coverage/src/common/Messager.ts.html +1 -1
  31. package/coverage/src/common/asyncFuncMap.ts.html +1 -1
  32. package/coverage/src/common/index.html +36 -21
  33. package/coverage/src/common/index.ts.html +7 -4
  34. package/coverage/src/common/utils.ts.html +136 -0
  35. package/coverage/src/concepts/Abort__.ts.html +39 -9
  36. package/coverage/src/concepts/AbstractInterface__.ts.html +280 -0
  37. package/coverage/src/concepts/Anchor__.ts.html +86 -29
  38. package/coverage/src/concepts/AnonymousFunction__.ts.html +262 -169
  39. package/coverage/src/concepts/App__.ts.html +1205 -152
  40. package/coverage/src/concepts/Argument__.ts.html +120 -51
  41. package/coverage/src/concepts/Assignee__.ts.html +124 -34
  42. package/coverage/src/concepts/AssignmentLine__.ts.html +48 -15
  43. package/coverage/src/concepts/Assignment__.ts.html +147 -69
  44. package/coverage/src/concepts/Attribute__.ts.html +41 -14
  45. package/coverage/src/concepts/AuthInterface__.ts.html +9 -6
  46. package/coverage/src/concepts/AuthLogicForCallInterface__.ts.html +108 -144
  47. package/coverage/src/concepts/AuthLogic__.ts.html +18 -6
  48. package/coverage/src/concepts/BackendVariable__.ts.html +135 -51
  49. package/coverage/src/concepts/Backend__.ts.html +106 -28
  50. package/coverage/src/concepts/BatchAssignment__.ts.html +274 -169
  51. package/coverage/src/concepts/BinaryExpression__.ts.html +188 -110
  52. package/coverage/src/concepts/BindAttribute__.ts.html +213 -93
  53. package/coverage/src/concepts/BindDirective__.ts.html +131 -26
  54. package/coverage/src/concepts/BindEvent__.ts.html +167 -71
  55. package/coverage/src/concepts/BindStyle__.ts.html +78 -21
  56. package/coverage/src/concepts/Block__.ts.html +910 -0
  57. package/coverage/src/concepts/BooleanLiteral__.ts.html +47 -20
  58. package/coverage/src/concepts/CallAuthInterface__.ts.html +105 -48
  59. package/coverage/src/concepts/CallConnector__.ts.html +62 -35
  60. package/coverage/src/concepts/CallFunction__.ts.html +328 -160
  61. package/coverage/src/concepts/CallInterface__.ts.html +93 -60
  62. package/coverage/src/concepts/CallLogic__.ts.html +544 -427
  63. package/coverage/src/concepts/CallQueryComponent__.ts.html +126 -93
  64. package/coverage/src/concepts/Comment__.ts.html +43 -10
  65. package/coverage/src/concepts/CompletionProperty__.ts.html +40 -13
  66. package/coverage/src/concepts/ConfigGroup__.ts.html +47 -20
  67. package/coverage/src/concepts/ConfigPropertyValue__.ts.html +22 -19
  68. package/coverage/src/concepts/ConfigProperty__.ts.html +97 -40
  69. package/coverage/src/concepts/Configuration__.ts.html +48 -21
  70. package/coverage/src/concepts/Connection__.ts.html +97 -22
  71. package/coverage/src/concepts/ConnectorTrigger__.ts.html +9 -6
  72. package/coverage/src/concepts/Connector__.ts.html +161 -38
  73. package/coverage/src/concepts/Constant__.ts.html +84 -24
  74. package/coverage/src/concepts/CountersignPolicy__.ts.html +316 -0
  75. package/coverage/src/concepts/DataSource__.ts.html +111 -57
  76. package/coverage/src/concepts/DatabaseTypeAnnotation__.ts.html +9 -6
  77. package/coverage/src/concepts/DefaultValue__.ts.html +1000 -0
  78. package/coverage/src/concepts/Destination__.ts.html +97 -55
  79. package/coverage/src/concepts/End__.ts.html +56 -26
  80. package/coverage/src/concepts/EntityIndex__.ts.html +40 -10
  81. package/coverage/src/concepts/EntityProperty__.ts.html +164 -56
  82. package/coverage/src/concepts/Entity__.ts.html +169 -91
  83. package/coverage/src/concepts/EnumItem__.ts.html +40 -10
  84. package/coverage/src/concepts/Enum__.ts.html +84 -24
  85. package/coverage/src/concepts/Event__.ts.html +41 -14
  86. package/coverage/src/concepts/ExternalDestination__.ts.html +75 -21
  87. package/coverage/src/concepts/ForEachStatement__.ts.html +143 -95
  88. package/coverage/src/concepts/FrontendLibrary__.ts.html +71 -20
  89. package/coverage/src/concepts/FrontendVariable__.ts.html +1 -1
  90. package/coverage/src/concepts/Frontend__.ts.html +213 -57
  91. package/coverage/src/concepts/Function__.ts.html +239 -86
  92. package/coverage/src/concepts/I18nInfo__.ts.html +436 -0
  93. package/coverage/src/concepts/Identifier__.ts.html +103 -73
  94. package/coverage/src/concepts/IfStatement__.ts.html +138 -75
  95. package/coverage/src/concepts/ImportedInterface__.ts.html +268 -0
  96. package/coverage/src/concepts/Integration__.ts.html +70 -19
  97. package/coverage/src/concepts/InterfaceParam__.ts.html +78 -21
  98. package/coverage/src/concepts/Interface__.ts.html +162 -60
  99. package/coverage/src/concepts/JSBlock__.ts.html +39 -9
  100. package/coverage/src/concepts/JavaLogic__.ts.html +42 -9
  101. package/coverage/src/concepts/LogicItem__.ts.html +56 -26
  102. package/coverage/src/concepts/Logic__.ts.html +409 -322
  103. package/coverage/src/concepts/MatchCase__.ts.html +181 -97
  104. package/coverage/src/concepts/Match__.ts.html +135 -63
  105. package/coverage/src/concepts/MemberExpression__.ts.html +185 -128
  106. package/coverage/src/concepts/MetadataType__.ts.html +2053 -0
  107. package/coverage/src/concepts/MicroApp__.ts.html +9 -6
  108. package/coverage/src/concepts/Module__.ts.html +690 -36
  109. package/coverage/src/concepts/MsgTriggerEvent__.ts.html +41 -14
  110. package/coverage/src/concepts/MsgTriggerLauncher__.ts.html +41 -14
  111. package/coverage/src/concepts/MultiApprovalPolicy__.ts.html +292 -0
  112. package/coverage/src/concepts/Namespace__.ts.html +359 -92
  113. package/coverage/src/concepts/NewComposite__.ts.html +326 -146
  114. package/coverage/src/concepts/NewList__.ts.html +195 -57
  115. package/coverage/src/concepts/NewMap__.ts.html +168 -63
  116. package/coverage/src/concepts/New__.ts.html +39 -9
  117. package/coverage/src/concepts/NullLiteral__.ts.html +36 -9
  118. package/coverage/src/concepts/NumericLiteral__.ts.html +86 -32
  119. package/coverage/src/concepts/OqlQueryComponent__.ts.html +161 -35
  120. package/coverage/src/concepts/OverriddenLogic__.ts.html +324 -201
  121. package/coverage/src/concepts/Param__.ts.html +155 -80
  122. package/coverage/src/concepts/Point__.ts.html +9 -6
  123. package/coverage/src/concepts/ProcessComponent__.ts.html +72 -21
  124. package/coverage/src/concepts/ProcessElement__.ts.html +524 -116
  125. package/coverage/src/concepts/ProcessOutcome__.ts.html +85 -13
  126. package/coverage/src/concepts/ProcessOutcomes__.ts.html +85 -13
  127. package/coverage/src/concepts/Process__.ts.html +217 -70
  128. package/coverage/src/concepts/QueryAggregateExpression__.ts.html +67 -16
  129. package/coverage/src/concepts/QueryFieldExpression__.ts.html +41 -11
  130. package/coverage/src/concepts/QueryFromExpression__.ts.html +81 -21
  131. package/coverage/src/concepts/QueryGroupByExpression__.ts.html +70 -19
  132. package/coverage/src/concepts/QueryJoinExpression__.ts.html +85 -25
  133. package/coverage/src/concepts/QueryLimitExpression__.ts.html +77 -20
  134. package/coverage/src/concepts/QueryOrderByExpression__.ts.html +80 -20
  135. package/coverage/src/concepts/QuerySelectExpression__.ts.html +42 -15
  136. package/coverage/src/concepts/Rect__.ts.html +9 -6
  137. package/coverage/src/concepts/Return__.ts.html +131 -50
  138. package/coverage/src/concepts/Role__.ts.html +45 -15
  139. package/coverage/src/concepts/SelectMembers__.ts.html +81 -24
  140. package/coverage/src/concepts/SequentialPolicy__.ts.html +259 -0
  141. package/coverage/src/concepts/Slot__.ts.html +40 -13
  142. package/coverage/src/concepts/SqlQueryComponent__.ts.html +84 -24
  143. package/coverage/src/concepts/Start__.ts.html +41 -14
  144. package/coverage/src/concepts/StaticString__.ts.html +403 -0
  145. package/coverage/src/concepts/StringInterpolation__.ts.html +127 -46
  146. package/coverage/src/concepts/StringLiteral__.ts.html +62 -32
  147. package/coverage/src/concepts/StructureProperty__.ts.html +86 -29
  148. package/coverage/src/concepts/Structure__.ts.html +122 -38
  149. package/coverage/src/concepts/SwitchCase__.ts.html +87 -36
  150. package/coverage/src/concepts/SwitchStatement__.ts.html +90 -33
  151. package/coverage/src/concepts/Theme__.ts.html +15 -12
  152. package/coverage/src/concepts/Transactional__.ts.html +9 -6
  153. package/coverage/src/concepts/TriggerEvent__.ts.html +41 -14
  154. package/coverage/src/concepts/TriggerLauncher__.ts.html +46 -13
  155. package/coverage/src/concepts/TypeAnnotation__.ts.html +348 -117
  156. package/coverage/src/concepts/TypeParam__.ts.html +42 -12
  157. package/coverage/src/concepts/UnaryExpression__.ts.html +105 -27
  158. package/coverage/src/concepts/Unparsed__.ts.html +36 -12
  159. package/coverage/src/concepts/UseComponent__.ts.html +9 -6
  160. package/coverage/src/concepts/ValidationRule__.ts.html +87 -48
  161. package/coverage/src/concepts/Variable__.ts.html +127 -46
  162. package/coverage/src/concepts/ViewBlock__.ts.html +9 -6
  163. package/coverage/src/concepts/ViewComponent__.ts.html +99 -24
  164. package/coverage/src/concepts/ViewElement__.ts.html +498 -288
  165. package/coverage/src/concepts/View__.ts.html +482 -170
  166. package/coverage/src/concepts/WhileStatement__.ts.html +118 -55
  167. package/coverage/src/concepts/basics/constants.ts.html +88 -0
  168. package/coverage/src/concepts/basics/index.html +116 -0
  169. package/coverage/src/concepts/basics/stdlib/index.html +1 -1
  170. package/coverage/src/concepts/basics/stdlib/index.ts.html +1 -1
  171. package/coverage/src/concepts/basics/stdlib/nasl.auth.ts.html +1 -1
  172. package/coverage/src/concepts/basics/stdlib/nasl.browser.ts.html +1 -1
  173. package/coverage/src/concepts/basics/stdlib/nasl.collection.ts.html +1 -1
  174. package/coverage/src/concepts/basics/stdlib/nasl.configuration.ts.html +1 -1
  175. package/coverage/src/concepts/basics/stdlib/nasl.core.ts.html +1 -1
  176. package/coverage/src/concepts/basics/stdlib/nasl.event.ts.html +1 -1
  177. package/coverage/src/concepts/basics/stdlib/nasl.http.ts.html +1 -1
  178. package/coverage/src/concepts/basics/stdlib/nasl.interface.ts.html +1 -1
  179. package/coverage/src/concepts/basics/stdlib/nasl.io.ts.html +1 -1
  180. package/coverage/src/concepts/basics/stdlib/nasl.logging.ts.html +1 -1
  181. package/coverage/src/concepts/basics/stdlib/nasl.process.ts.html +2 -2
  182. package/coverage/src/concepts/basics/stdlib/nasl.ui.ts.html +1 -1
  183. package/coverage/src/concepts/basics/stdlib/nasl.util.ts.html +4 -4
  184. package/coverage/src/concepts/basics/stdlib/nasl.validation.ts.html +1 -1
  185. package/coverage/src/concepts/basics/stdlib/reference2TypeAnnotationList.ts.html +1 -1
  186. package/coverage/src/concepts/basics/stdlib/timeZone.ts.html +1 -1
  187. package/coverage/src/concepts/basics/types/coreTypeList.ts.html +1 -1
  188. package/coverage/src/concepts/basics/types/index.html +1 -1
  189. package/coverage/src/concepts/basics/types/index.ts.html +1 -1
  190. package/coverage/src/concepts/index.html +1023 -963
  191. package/coverage/src/concepts/index.ts.html +1 -1
  192. package/coverage/src/concepts/index__.ts.html +16 -4
  193. package/coverage/src/concepts/utils/asserts.ts.html +27967 -0
  194. package/coverage/src/concepts/utils/index.html +116 -0
  195. package/coverage/src/config.ts.html +1 -1
  196. package/coverage/src/decorators/index.html +5 -5
  197. package/coverage/src/decorators/index.ts.html +32 -32
  198. package/coverage/src/decorators/promise.ts.html +10 -10
  199. package/coverage/src/eventBus.ts.html +1 -1
  200. package/coverage/src/generator/compileComponent.ts.html +1 -1
  201. package/coverage/src/generator/genBundleFiles.ts.html +17 -23
  202. package/coverage/src/generator/genHash.ts.html +1 -1
  203. package/coverage/src/generator/genMetaData.ts.html +103 -16
  204. package/coverage/src/generator/genReleaseBody.ts.html +43 -43
  205. package/coverage/src/generator/icestark.ts.html +10 -4
  206. package/coverage/src/generator/index.html +21 -21
  207. package/coverage/src/generator/index.ts.html +1 -1
  208. package/coverage/src/generator/microApp.ts.html +1 -1
  209. package/coverage/src/generator/permission.ts.html +92 -20
  210. package/coverage/src/generator/qiankun.ts.html +9 -3
  211. package/coverage/src/generator/styleReplacer.ts.html +1 -1
  212. package/coverage/src/index.html +7 -7
  213. package/coverage/src/index.ts.html +4 -4
  214. package/coverage/src/manager/diagnostic.ts.html +11 -14
  215. package/coverage/src/manager/index.html +13 -13
  216. package/coverage/src/manager/stepRecorder.ts.html +1 -1
  217. package/coverage/src/natural/genNaturalTS.ts.html +1 -1
  218. package/coverage/src/natural/index.html +15 -15
  219. package/coverage/src/natural/index.ts.html +1 -1
  220. package/coverage/src/natural/naslStdlibMap.ts.html +1 -1
  221. package/coverage/src/natural/transformTSCode.ts.html +78 -18
  222. package/coverage/src/sentry/index.html +14 -14
  223. package/coverage/src/sentry/index.ts.html +38 -32
  224. package/coverage/src/server/createUiTs.ts.html +15 -6
  225. package/coverage/src/server/entity2LogicNamespace.ts.html +9 -9
  226. package/coverage/src/server/event.js.html +1 -1
  227. package/coverage/src/server/extendBaseNode.ts.html +73 -43
  228. package/coverage/src/server/formatTsUtils.ts.html +31 -28
  229. package/coverage/src/server/getConnector.ts.html +1 -1
  230. package/coverage/src/server/getExtensionModules.ts.html +1 -1
  231. package/coverage/src/server/getFunctions.ts.html +1 -1
  232. package/coverage/src/server/getInterfaces.ts.html +1 -1
  233. package/coverage/src/server/getLogging.ts.html +1 -1
  234. package/coverage/src/server/getLogics.ts.html +20 -8
  235. package/coverage/src/server/getMemberIdentifier.ts.html +231 -120
  236. package/coverage/src/server/getProcessComponents.ts.html +1 -1
  237. package/coverage/src/server/getProcesses.ts.html +163 -13
  238. package/coverage/src/server/getValidates.ts.html +1 -1
  239. package/coverage/src/server/index.html +63 -63
  240. package/coverage/src/server/index.ts.html +6 -3
  241. package/coverage/src/server/naslServer.ts.html +1207 -949
  242. package/coverage/src/server/naslStdlibMap.ts.html +1 -1
  243. package/coverage/src/server/process2LogicNamespace.ts.html +1 -1
  244. package/coverage/src/server/translator.ts.html +59 -14
  245. package/coverage/src/service/creator/add.configs.js.html +27 -9
  246. package/coverage/src/service/creator/errHandles.js.html +28 -37
  247. package/coverage/src/service/creator/index.html +23 -23
  248. package/coverage/src/service/creator/index.js.html +1 -1
  249. package/coverage/src/service/datasource/api.js.html +1 -1
  250. package/coverage/src/service/datasource/index.html +1 -1
  251. package/coverage/src/service/datasource/index.js.html +1 -1
  252. package/coverage/src/service/logic/api.js.html +1 -1
  253. package/coverage/src/service/logic/index.html +1 -1
  254. package/coverage/src/service/logic/index.js.html +1 -1
  255. package/coverage/src/service/storage/api.js.html +1 -1
  256. package/coverage/src/service/storage/index.html +29 -29
  257. package/coverage/src/service/storage/index.ts.html +1 -1
  258. package/coverage/src/service/storage/init.ts.html +1533 -600
  259. package/coverage/src/service/storage/jsoner.ts.html +76 -13
  260. package/coverage/src/service/storage/map.ts.html +3 -3
  261. package/coverage/src/service/storage/service.ts.html +1 -1
  262. package/coverage/src/service/storage/storagePoint.ts.html +1 -1
  263. package/coverage/src/templator/genCallComponentLogic.ts.html +1 -1
  264. package/coverage/src/templator/genCreateBlock.ts.html +37 -58
  265. package/coverage/src/templator/genCurdEditMultipleKeyBlock.ts.html +19 -19
  266. package/coverage/src/templator/genCurdMultipleKeyBlock.ts.html +71 -89
  267. package/coverage/src/templator/genEditTableBlock.ts.html +76 -13
  268. package/coverage/src/templator/genEnumSelectBlock.ts.html +1 -1
  269. package/coverage/src/templator/genGetBlock.ts.html +1 -1
  270. package/coverage/src/templator/genGridViewBlock.ts.html +1 -1
  271. package/coverage/src/templator/genListViewBlock.ts.html +1 -1
  272. package/coverage/src/templator/genQueryComponent.ts.html +1 -1
  273. package/coverage/src/templator/genSelectBlock.ts.html +1 -1
  274. package/coverage/src/templator/genTableBlock.ts.html +66 -3
  275. package/coverage/src/templator/genUpdateBlock.ts.html +35 -32
  276. package/coverage/src/templator/index.html +38 -38
  277. package/coverage/src/templator/index.ts.html +1 -1
  278. package/coverage/src/templator/utils.ts.html +74 -11
  279. package/coverage/src/translator/constant.ts.html +1 -1
  280. package/coverage/src/translator/index.html +21 -21
  281. package/coverage/src/translator/index.ts.html +1 -1
  282. package/coverage/src/translator/utils.ts.html +389 -68
  283. package/coverage/src/utils/cookie.ts.html +4 -4
  284. package/coverage/src/utils/env.ts.html +1 -1
  285. package/coverage/src/utils/i18nInfo.ts.html +166 -0
  286. package/coverage/src/utils/index.html +34 -49
  287. package/coverage/src/utils/index.ts.html +115 -22
  288. package/coverage/src/utils/logger.ts.html +1 -1
  289. package/coverage/src/utils/sortTsString.ts.html +25 -10
  290. package/coverage/src/utils/string.ts.html +110 -8
  291. package/coverage/src/utils/time-slicing/constant.ts.html +196 -0
  292. package/coverage/src/utils/time-slicing/controller.ts.html +1144 -0
  293. package/coverage/src/utils/time-slicing/index.html +236 -0
  294. package/coverage/src/utils/time-slicing/index.ts.html +103 -0
  295. package/coverage/src/utils/time-slicing/page-state.ts.html +121 -0
  296. package/coverage/src/utils/time-slicing/performance.ts.html +253 -0
  297. package/coverage/src/utils/time-slicing/runner.ts.html +241 -0
  298. package/coverage/src/utils/time-slicing/tool.ts.html +220 -0
  299. package/coverage/src/utils/time-slicing/utils.ts.html +355 -0
  300. package/coverage/src/utils/time-slicing/wrapper.ts.html +259 -0
  301. package/coverage/src/utils/time-slicing.ts.html +1 -1
  302. package/coverage/src/utils/traverse.ts.html +1 -1
  303. package/coverage/src/utils/window.ts.html +1 -1
  304. package/out/common/BaseNode.js +10 -1
  305. package/out/common/BaseNode.js.map +1 -1
  306. package/out/concepts/Abort__.d.ts +7 -0
  307. package/out/concepts/Abort__.js +7 -0
  308. package/out/concepts/Abort__.js.map +1 -1
  309. package/out/concepts/AbstractInterface__.d.ts +7 -0
  310. package/out/concepts/AbstractInterface__.js +7 -0
  311. package/out/concepts/AbstractInterface__.js.map +1 -1
  312. package/out/concepts/Anchor__.d.ts +7 -0
  313. package/out/concepts/Anchor__.js +7 -0
  314. package/out/concepts/Anchor__.js.map +1 -1
  315. package/out/concepts/AnonymousFunction__.d.ts +7 -0
  316. package/out/concepts/AnonymousFunction__.js +7 -0
  317. package/out/concepts/AnonymousFunction__.js.map +1 -1
  318. package/out/concepts/App__.d.ts +7 -0
  319. package/out/concepts/App__.js +8 -1
  320. package/out/concepts/App__.js.map +1 -1
  321. package/out/concepts/Argument__.d.ts +7 -0
  322. package/out/concepts/Argument__.js +7 -0
  323. package/out/concepts/Argument__.js.map +1 -1
  324. package/out/concepts/Assignee__.d.ts +7 -0
  325. package/out/concepts/Assignee__.js +7 -0
  326. package/out/concepts/Assignee__.js.map +1 -1
  327. package/out/concepts/AssignmentLine__.d.ts +7 -0
  328. package/out/concepts/AssignmentLine__.js +7 -0
  329. package/out/concepts/AssignmentLine__.js.map +1 -1
  330. package/out/concepts/Assignment__.d.ts +7 -0
  331. package/out/concepts/Assignment__.js +7 -0
  332. package/out/concepts/Assignment__.js.map +1 -1
  333. package/out/concepts/Attribute__.d.ts +11 -13
  334. package/out/concepts/Attribute__.js +11 -14
  335. package/out/concepts/Attribute__.js.map +1 -1
  336. package/out/concepts/AuthInterface__.d.ts +7 -0
  337. package/out/concepts/AuthInterface__.js +7 -0
  338. package/out/concepts/AuthInterface__.js.map +1 -1
  339. package/out/concepts/AuthLogicForCallInterface__.d.ts +7 -0
  340. package/out/concepts/AuthLogicForCallInterface__.js +7 -0
  341. package/out/concepts/AuthLogicForCallInterface__.js.map +1 -1
  342. package/out/concepts/AuthLogic__.d.ts +7 -0
  343. package/out/concepts/AuthLogic__.js +7 -0
  344. package/out/concepts/AuthLogic__.js.map +1 -1
  345. package/out/concepts/BackendVariable__.d.ts +7 -0
  346. package/out/concepts/BackendVariable__.js +7 -0
  347. package/out/concepts/BackendVariable__.js.map +1 -1
  348. package/out/concepts/Backend__.d.ts +7 -0
  349. package/out/concepts/Backend__.js +7 -0
  350. package/out/concepts/Backend__.js.map +1 -1
  351. package/out/concepts/BaseSetter__.d.ts +25 -0
  352. package/out/concepts/BaseSetter__.js +53 -0
  353. package/out/concepts/BaseSetter__.js.map +1 -0
  354. package/out/concepts/BatchAssignment__.d.ts +7 -0
  355. package/out/concepts/BatchAssignment__.js +7 -0
  356. package/out/concepts/BatchAssignment__.js.map +1 -1
  357. package/out/concepts/BinaryExpression__.d.ts +7 -0
  358. package/out/concepts/BinaryExpression__.js +7 -0
  359. package/out/concepts/BinaryExpression__.js.map +1 -1
  360. package/out/concepts/BindAttribute__.d.ts +7 -0
  361. package/out/concepts/BindAttribute__.js +7 -0
  362. package/out/concepts/BindAttribute__.js.map +1 -1
  363. package/out/concepts/BindDirective__.d.ts +7 -0
  364. package/out/concepts/BindDirective__.js +7 -0
  365. package/out/concepts/BindDirective__.js.map +1 -1
  366. package/out/concepts/BindEvent__.d.ts +7 -0
  367. package/out/concepts/BindEvent__.js +7 -0
  368. package/out/concepts/BindEvent__.js.map +1 -1
  369. package/out/concepts/BindStyle__.d.ts +7 -0
  370. package/out/concepts/BindStyle__.js +7 -0
  371. package/out/concepts/BindStyle__.js.map +1 -1
  372. package/out/concepts/Block__.d.ts +7 -0
  373. package/out/concepts/Block__.js +7 -0
  374. package/out/concepts/Block__.js.map +1 -1
  375. package/out/concepts/BooleanLiteral__.d.ts +7 -0
  376. package/out/concepts/BooleanLiteral__.js +7 -0
  377. package/out/concepts/BooleanLiteral__.js.map +1 -1
  378. package/out/concepts/BusinessComponent__.d.ts +7 -0
  379. package/out/concepts/BusinessComponent__.js +8 -1
  380. package/out/concepts/BusinessComponent__.js.map +1 -1
  381. package/out/concepts/BusinessLogic__.d.ts +7 -0
  382. package/out/concepts/BusinessLogic__.js +7 -0
  383. package/out/concepts/BusinessLogic__.js.map +1 -1
  384. package/out/concepts/CallAuthInterface__.d.ts +7 -0
  385. package/out/concepts/CallAuthInterface__.js +7 -0
  386. package/out/concepts/CallAuthInterface__.js.map +1 -1
  387. package/out/concepts/CallConnector__.d.ts +7 -0
  388. package/out/concepts/CallConnector__.js +7 -0
  389. package/out/concepts/CallConnector__.js.map +1 -1
  390. package/out/concepts/CallEvent__.d.ts +7 -0
  391. package/out/concepts/CallEvent__.js +7 -0
  392. package/out/concepts/CallEvent__.js.map +1 -1
  393. package/out/concepts/CallFunction__.d.ts +17 -0
  394. package/out/concepts/CallFunction__.js +73 -2
  395. package/out/concepts/CallFunction__.js.map +1 -1
  396. package/out/concepts/CallInterface__.d.ts +7 -0
  397. package/out/concepts/CallInterface__.js +7 -0
  398. package/out/concepts/CallInterface__.js.map +1 -1
  399. package/out/concepts/CallLogic__.d.ts +7 -0
  400. package/out/concepts/CallLogic__.js +17 -9
  401. package/out/concepts/CallLogic__.js.map +1 -1
  402. package/out/concepts/CallQueryComponent__.d.ts +7 -0
  403. package/out/concepts/CallQueryComponent__.js +7 -0
  404. package/out/concepts/CallQueryComponent__.js.map +1 -1
  405. package/out/concepts/CapsulesSetter__.d.ts +109 -0
  406. package/out/concepts/CapsulesSetter__.js +163 -0
  407. package/out/concepts/CapsulesSetter__.js.map +1 -0
  408. package/out/concepts/Comment__.d.ts +7 -0
  409. package/out/concepts/Comment__.js +7 -0
  410. package/out/concepts/Comment__.js.map +1 -1
  411. package/out/concepts/CompletionProperty__.d.ts +7 -8
  412. package/out/concepts/CompletionProperty__.js +7 -16
  413. package/out/concepts/CompletionProperty__.js.map +1 -1
  414. package/out/concepts/ConfigGroup__.d.ts +7 -0
  415. package/out/concepts/ConfigGroup__.js +7 -0
  416. package/out/concepts/ConfigGroup__.js.map +1 -1
  417. package/out/concepts/ConfigPropertyValue__.d.ts +7 -0
  418. package/out/concepts/ConfigPropertyValue__.js +7 -0
  419. package/out/concepts/ConfigPropertyValue__.js.map +1 -1
  420. package/out/concepts/ConfigProperty__.d.ts +7 -0
  421. package/out/concepts/ConfigProperty__.js +7 -0
  422. package/out/concepts/ConfigProperty__.js.map +1 -1
  423. package/out/concepts/Configuration__.d.ts +7 -0
  424. package/out/concepts/Configuration__.js +7 -0
  425. package/out/concepts/Configuration__.js.map +1 -1
  426. package/out/concepts/Connection__.d.ts +7 -0
  427. package/out/concepts/Connection__.js +7 -0
  428. package/out/concepts/Connection__.js.map +1 -1
  429. package/out/concepts/ConnectorTrigger__.d.ts +7 -0
  430. package/out/concepts/ConnectorTrigger__.js +7 -0
  431. package/out/concepts/ConnectorTrigger__.js.map +1 -1
  432. package/out/concepts/Connector__.d.ts +7 -0
  433. package/out/concepts/Connector__.js +7 -0
  434. package/out/concepts/Connector__.js.map +1 -1
  435. package/out/concepts/Constant__.d.ts +7 -0
  436. package/out/concepts/Constant__.js +7 -0
  437. package/out/concepts/Constant__.js.map +1 -1
  438. package/out/concepts/CountersignPolicy__.d.ts +7 -0
  439. package/out/concepts/CountersignPolicy__.js +7 -0
  440. package/out/concepts/CountersignPolicy__.js.map +1 -1
  441. package/out/concepts/DataSource__.d.ts +7 -0
  442. package/out/concepts/DataSource__.js +7 -0
  443. package/out/concepts/DataSource__.js.map +1 -1
  444. package/out/concepts/DatabaseTypeAnnotation__.d.ts +7 -0
  445. package/out/concepts/DatabaseTypeAnnotation__.js +7 -0
  446. package/out/concepts/DatabaseTypeAnnotation__.js.map +1 -1
  447. package/out/concepts/DefaultValue__.d.ts +7 -0
  448. package/out/concepts/DefaultValue__.js +7 -0
  449. package/out/concepts/DefaultValue__.js.map +1 -1
  450. package/out/concepts/Destination__.d.ts +7 -0
  451. package/out/concepts/Destination__.js +7 -0
  452. package/out/concepts/Destination__.js.map +1 -1
  453. package/out/concepts/End__.d.ts +7 -0
  454. package/out/concepts/End__.js +7 -0
  455. package/out/concepts/End__.js.map +1 -1
  456. package/out/concepts/EntityIndex__.d.ts +7 -0
  457. package/out/concepts/EntityIndex__.js +7 -0
  458. package/out/concepts/EntityIndex__.js.map +1 -1
  459. package/out/concepts/EntityProperty__.d.ts +7 -0
  460. package/out/concepts/EntityProperty__.js +14 -8
  461. package/out/concepts/EntityProperty__.js.map +1 -1
  462. package/out/concepts/Entity__.d.ts +7 -0
  463. package/out/concepts/Entity__.js +7 -0
  464. package/out/concepts/Entity__.js.map +1 -1
  465. package/out/concepts/EnumItem__.d.ts +7 -0
  466. package/out/concepts/EnumItem__.js +7 -0
  467. package/out/concepts/EnumItem__.js.map +1 -1
  468. package/out/concepts/EnumSelectSetter__.d.ts +109 -0
  469. package/out/concepts/EnumSelectSetter__.js +163 -0
  470. package/out/concepts/EnumSelectSetter__.js.map +1 -0
  471. package/out/concepts/Enum__.d.ts +12 -0
  472. package/out/concepts/Enum__.js +33 -4
  473. package/out/concepts/Enum__.js.map +1 -1
  474. package/out/concepts/EventDeclaration__.d.ts +41 -0
  475. package/out/concepts/EventDeclaration__.js +81 -0
  476. package/out/concepts/EventDeclaration__.js.map +1 -0
  477. package/out/concepts/Event__.d.ts +10 -3
  478. package/out/concepts/Event__.js +9 -2
  479. package/out/concepts/Event__.js.map +1 -1
  480. package/out/concepts/ExternalDestination__.d.ts +7 -0
  481. package/out/concepts/ExternalDestination__.js +7 -0
  482. package/out/concepts/ExternalDestination__.js.map +1 -1
  483. package/out/concepts/ForEachStatement__.d.ts +7 -0
  484. package/out/concepts/ForEachStatement__.js +7 -0
  485. package/out/concepts/ForEachStatement__.js.map +1 -1
  486. package/out/concepts/FrontendLibrary__.d.ts +34 -27
  487. package/out/concepts/FrontendLibrary__.js +39 -32
  488. package/out/concepts/FrontendLibrary__.js.map +1 -1
  489. package/out/concepts/FrontendType__.d.ts +7 -0
  490. package/out/concepts/FrontendType__.js +7 -0
  491. package/out/concepts/FrontendType__.js.map +1 -1
  492. package/out/concepts/FrontendVariable__.d.ts +7 -0
  493. package/out/concepts/FrontendVariable__.js +7 -0
  494. package/out/concepts/FrontendVariable__.js.map +1 -1
  495. package/out/concepts/Frontend__.d.ts +7 -0
  496. package/out/concepts/Frontend__.js +7 -0
  497. package/out/concepts/Frontend__.js.map +1 -1
  498. package/out/concepts/Function__.d.ts +7 -0
  499. package/out/concepts/Function__.js +7 -0
  500. package/out/concepts/Function__.js.map +1 -1
  501. package/out/concepts/I18nInfo__.d.ts +7 -0
  502. package/out/concepts/I18nInfo__.js +7 -0
  503. package/out/concepts/I18nInfo__.js.map +1 -1
  504. package/out/concepts/IconSetter__.d.ts +29 -0
  505. package/out/concepts/IconSetter__.js +62 -0
  506. package/out/concepts/IconSetter__.js.map +1 -0
  507. package/out/concepts/Identifier__.d.ts +7 -0
  508. package/out/concepts/Identifier__.js +7 -0
  509. package/out/concepts/Identifier__.js.map +1 -1
  510. package/out/concepts/IfStatement__.d.ts +7 -0
  511. package/out/concepts/IfStatement__.js +7 -0
  512. package/out/concepts/IfStatement__.js.map +1 -1
  513. package/out/concepts/ImageSetter__.d.ts +25 -0
  514. package/out/concepts/ImageSetter__.js +53 -0
  515. package/out/concepts/ImageSetter__.js.map +1 -0
  516. package/out/concepts/ImportedInterface__.d.ts +7 -0
  517. package/out/concepts/ImportedInterface__.js +7 -0
  518. package/out/concepts/ImportedInterface__.js.map +1 -1
  519. package/out/concepts/InputSetter__.d.ts +29 -0
  520. package/out/concepts/InputSetter__.js +62 -0
  521. package/out/concepts/InputSetter__.js.map +1 -0
  522. package/out/concepts/Integration__.d.ts +7 -0
  523. package/out/concepts/Integration__.js +7 -0
  524. package/out/concepts/Integration__.js.map +1 -1
  525. package/out/concepts/InterfaceParam__.d.ts +7 -0
  526. package/out/concepts/InterfaceParam__.js +7 -0
  527. package/out/concepts/InterfaceParam__.js.map +1 -1
  528. package/out/concepts/Interface__.d.ts +7 -0
  529. package/out/concepts/Interface__.js +7 -0
  530. package/out/concepts/Interface__.js.map +1 -1
  531. package/out/concepts/JSBlock__.d.ts +7 -0
  532. package/out/concepts/JSBlock__.js +7 -0
  533. package/out/concepts/JSBlock__.js.map +1 -1
  534. package/out/concepts/JavaLogic__.d.ts +7 -0
  535. package/out/concepts/JavaLogic__.js +7 -0
  536. package/out/concepts/JavaLogic__.js.map +1 -1
  537. package/out/concepts/LogicDeclaration__.d.ts +289 -0
  538. package/out/concepts/LogicDeclaration__.js +352 -0
  539. package/out/concepts/LogicDeclaration__.js.map +1 -0
  540. package/out/concepts/LogicItem__.d.ts +7 -0
  541. package/out/concepts/LogicItem__.js +7 -0
  542. package/out/concepts/LogicItem__.js.map +1 -1
  543. package/out/concepts/Logic__.d.ts +17 -7
  544. package/out/concepts/Logic__.js +89 -8
  545. package/out/concepts/Logic__.js.map +1 -1
  546. package/out/concepts/MatchCase__.d.ts +7 -0
  547. package/out/concepts/MatchCase__.js +7 -0
  548. package/out/concepts/MatchCase__.js.map +1 -1
  549. package/out/concepts/Match__.d.ts +7 -0
  550. package/out/concepts/Match__.js +7 -0
  551. package/out/concepts/Match__.js.map +1 -1
  552. package/out/concepts/MemberExpression__.d.ts +7 -0
  553. package/out/concepts/MemberExpression__.js +7 -0
  554. package/out/concepts/MemberExpression__.js.map +1 -1
  555. package/out/concepts/MetadataType__.d.ts +7 -0
  556. package/out/concepts/MetadataType__.js +7 -0
  557. package/out/concepts/MetadataType__.js.map +1 -1
  558. package/out/concepts/MicroApp__.d.ts +7 -0
  559. package/out/concepts/MicroApp__.js +7 -0
  560. package/out/concepts/MicroApp__.js.map +1 -1
  561. package/out/concepts/Module__.d.ts +7 -0
  562. package/out/concepts/Module__.js +7 -0
  563. package/out/concepts/Module__.js.map +1 -1
  564. package/out/concepts/MsgTriggerEvent__.d.ts +7 -0
  565. package/out/concepts/MsgTriggerEvent__.js +7 -0
  566. package/out/concepts/MsgTriggerEvent__.js.map +1 -1
  567. package/out/concepts/MsgTriggerLauncher__.d.ts +7 -0
  568. package/out/concepts/MsgTriggerLauncher__.js +7 -0
  569. package/out/concepts/MsgTriggerLauncher__.js.map +1 -1
  570. package/out/concepts/MultiApprovalPolicy__.d.ts +7 -0
  571. package/out/concepts/MultiApprovalPolicy__.js +7 -0
  572. package/out/concepts/MultiApprovalPolicy__.js.map +1 -1
  573. package/out/concepts/Namespace__.d.ts +34 -27
  574. package/out/concepts/Namespace__.js +39 -32
  575. package/out/concepts/Namespace__.js.map +1 -1
  576. package/out/concepts/NewComposite__.d.ts +7 -0
  577. package/out/concepts/NewComposite__.js +7 -0
  578. package/out/concepts/NewComposite__.js.map +1 -1
  579. package/out/concepts/NewList__.d.ts +7 -0
  580. package/out/concepts/NewList__.js +7 -0
  581. package/out/concepts/NewList__.js.map +1 -1
  582. package/out/concepts/NewMap__.d.ts +7 -0
  583. package/out/concepts/NewMap__.js +7 -0
  584. package/out/concepts/NewMap__.js.map +1 -1
  585. package/out/concepts/New__.d.ts +7 -0
  586. package/out/concepts/New__.js +7 -0
  587. package/out/concepts/New__.js.map +1 -1
  588. package/out/concepts/NullLiteral__.d.ts +7 -0
  589. package/out/concepts/NullLiteral__.js +7 -0
  590. package/out/concepts/NullLiteral__.js.map +1 -1
  591. package/out/concepts/NumberInputSetter__.d.ts +45 -0
  592. package/out/concepts/NumberInputSetter__.js +98 -0
  593. package/out/concepts/NumberInputSetter__.js.map +1 -0
  594. package/out/concepts/NumericLiteral__.d.ts +7 -0
  595. package/out/concepts/NumericLiteral__.js +7 -0
  596. package/out/concepts/NumericLiteral__.js.map +1 -1
  597. package/out/concepts/OqlQueryComponent__.d.ts +7 -0
  598. package/out/concepts/OqlQueryComponent__.js +7 -0
  599. package/out/concepts/OqlQueryComponent__.js.map +1 -1
  600. package/out/concepts/OverriddenLogic__.d.ts +7 -0
  601. package/out/concepts/OverriddenLogic__.js +7 -0
  602. package/out/concepts/OverriddenLogic__.js.map +1 -1
  603. package/out/concepts/Paginate__.d.ts +7 -0
  604. package/out/concepts/Paginate__.js +7 -0
  605. package/out/concepts/Paginate__.js.map +1 -1
  606. package/out/concepts/ParamWithGroup__.d.ts +7 -0
  607. package/out/concepts/ParamWithGroup__.js +7 -0
  608. package/out/concepts/ParamWithGroup__.js.map +1 -1
  609. package/out/concepts/Param__.d.ts +9 -9
  610. package/out/concepts/Param__.js +17 -19
  611. package/out/concepts/Param__.js.map +1 -1
  612. package/out/concepts/Point__.d.ts +7 -0
  613. package/out/concepts/Point__.js +7 -0
  614. package/out/concepts/Point__.js.map +1 -1
  615. package/out/concepts/ProcessComponent__.d.ts +7 -0
  616. package/out/concepts/ProcessComponent__.js +7 -0
  617. package/out/concepts/ProcessComponent__.js.map +1 -1
  618. package/out/concepts/ProcessElement__.d.ts +7 -0
  619. package/out/concepts/ProcessElement__.js +7 -0
  620. package/out/concepts/ProcessElement__.js.map +1 -1
  621. package/out/concepts/ProcessOutcome__.d.ts +7 -0
  622. package/out/concepts/ProcessOutcome__.js +7 -0
  623. package/out/concepts/ProcessOutcome__.js.map +1 -1
  624. package/out/concepts/ProcessOutcomes__.d.ts +7 -0
  625. package/out/concepts/ProcessOutcomes__.js +7 -0
  626. package/out/concepts/ProcessOutcomes__.js.map +1 -1
  627. package/out/concepts/Process__.d.ts +7 -0
  628. package/out/concepts/Process__.js +7 -0
  629. package/out/concepts/Process__.js.map +1 -1
  630. package/out/concepts/PropDeclaration__.d.ts +99 -0
  631. package/out/concepts/PropDeclaration__.js +183 -0
  632. package/out/concepts/PropDeclaration__.js.map +1 -0
  633. package/out/concepts/PropertySelectSetter__.d.ts +25 -0
  634. package/out/concepts/PropertySelectSetter__.js +53 -0
  635. package/out/concepts/PropertySelectSetter__.js.map +1 -0
  636. package/out/concepts/QueryAggregateExpression__.d.ts +7 -0
  637. package/out/concepts/QueryAggregateExpression__.js +7 -0
  638. package/out/concepts/QueryAggregateExpression__.js.map +1 -1
  639. package/out/concepts/QueryFieldExpression__.d.ts +7 -0
  640. package/out/concepts/QueryFieldExpression__.js +7 -0
  641. package/out/concepts/QueryFieldExpression__.js.map +1 -1
  642. package/out/concepts/QueryFromExpression__.d.ts +7 -0
  643. package/out/concepts/QueryFromExpression__.js +7 -0
  644. package/out/concepts/QueryFromExpression__.js.map +1 -1
  645. package/out/concepts/QueryGroupByExpression__.d.ts +7 -0
  646. package/out/concepts/QueryGroupByExpression__.js +7 -0
  647. package/out/concepts/QueryGroupByExpression__.js.map +1 -1
  648. package/out/concepts/QueryJoinExpression__.d.ts +7 -0
  649. package/out/concepts/QueryJoinExpression__.js +7 -0
  650. package/out/concepts/QueryJoinExpression__.js.map +1 -1
  651. package/out/concepts/QueryLimitExpression__.d.ts +7 -0
  652. package/out/concepts/QueryLimitExpression__.js +7 -0
  653. package/out/concepts/QueryLimitExpression__.js.map +1 -1
  654. package/out/concepts/QueryOrderByExpression__.d.ts +7 -0
  655. package/out/concepts/QueryOrderByExpression__.js +7 -0
  656. package/out/concepts/QueryOrderByExpression__.js.map +1 -1
  657. package/out/concepts/QuerySelectExpression__.d.ts +7 -0
  658. package/out/concepts/QuerySelectExpression__.js +7 -0
  659. package/out/concepts/QuerySelectExpression__.js.map +1 -1
  660. package/out/concepts/Rect__.d.ts +7 -0
  661. package/out/concepts/Rect__.js +7 -0
  662. package/out/concepts/Rect__.js.map +1 -1
  663. package/out/concepts/Return__.d.ts +8 -1
  664. package/out/concepts/Return__.js +11 -0
  665. package/out/concepts/Return__.js.map +1 -1
  666. package/out/concepts/Role__.d.ts +7 -0
  667. package/out/concepts/Role__.js +7 -0
  668. package/out/concepts/Role__.js.map +1 -1
  669. package/out/concepts/SelectMembers__.d.ts +7 -0
  670. package/out/concepts/SelectMembers__.js +7 -0
  671. package/out/concepts/SelectMembers__.js.map +1 -1
  672. package/out/concepts/SequentialPolicy__.d.ts +7 -0
  673. package/out/concepts/SequentialPolicy__.js +7 -0
  674. package/out/concepts/SequentialPolicy__.js.map +1 -1
  675. package/out/concepts/SetterOption__.d.ts +49 -0
  676. package/out/concepts/SetterOption__.js +99 -0
  677. package/out/concepts/SetterOption__.js.map +1 -0
  678. package/out/concepts/SlotDeclaration__.d.ts +213 -0
  679. package/out/concepts/SlotDeclaration__.js +287 -0
  680. package/out/concepts/SlotDeclaration__.js.map +1 -0
  681. package/out/concepts/Slot__.d.ts +2 -2
  682. package/out/concepts/Slot__.js +1 -1
  683. package/out/concepts/Slot__.js.map +1 -1
  684. package/out/concepts/SqlQueryComponent__.d.ts +7 -0
  685. package/out/concepts/SqlQueryComponent__.js +7 -0
  686. package/out/concepts/SqlQueryComponent__.js.map +1 -1
  687. package/out/concepts/Start__.d.ts +7 -0
  688. package/out/concepts/Start__.js +7 -0
  689. package/out/concepts/Start__.js.map +1 -1
  690. package/out/concepts/StaticString__.d.ts +7 -0
  691. package/out/concepts/StaticString__.js +7 -0
  692. package/out/concepts/StaticString__.js.map +1 -1
  693. package/out/concepts/StringInterpolation__.d.ts +7 -0
  694. package/out/concepts/StringInterpolation__.js +8 -1
  695. package/out/concepts/StringInterpolation__.js.map +1 -1
  696. package/out/concepts/StringLiteral__.d.ts +7 -0
  697. package/out/concepts/StringLiteral__.js +7 -0
  698. package/out/concepts/StringLiteral__.js.map +1 -1
  699. package/out/concepts/StructureProperty__.d.ts +7 -8
  700. package/out/concepts/StructureProperty__.js +7 -16
  701. package/out/concepts/StructureProperty__.js.map +1 -1
  702. package/out/concepts/Structure__.d.ts +7 -0
  703. package/out/concepts/Structure__.js +7 -0
  704. package/out/concepts/Structure__.js.map +1 -1
  705. package/out/concepts/SwitchCase__.d.ts +7 -0
  706. package/out/concepts/SwitchCase__.js +7 -0
  707. package/out/concepts/SwitchCase__.js.map +1 -1
  708. package/out/concepts/SwitchSetter__.d.ts +25 -0
  709. package/out/concepts/SwitchSetter__.js +53 -0
  710. package/out/concepts/SwitchSetter__.js.map +1 -0
  711. package/out/concepts/SwitchStatement__.d.ts +7 -0
  712. package/out/concepts/SwitchStatement__.js +7 -0
  713. package/out/concepts/SwitchStatement__.js.map +1 -1
  714. package/out/concepts/ThemeVariable__.d.ts +29 -0
  715. package/out/concepts/ThemeVariable__.js +58 -0
  716. package/out/concepts/ThemeVariable__.js.map +1 -0
  717. package/out/concepts/Theme__.d.ts +7 -0
  718. package/out/concepts/Theme__.js +7 -0
  719. package/out/concepts/Theme__.js.map +1 -1
  720. package/out/concepts/Transactional__.d.ts +7 -0
  721. package/out/concepts/Transactional__.js +7 -0
  722. package/out/concepts/Transactional__.js.map +1 -1
  723. package/out/concepts/TriggerEvent__.d.ts +9 -81
  724. package/out/concepts/TriggerEvent__.js +10 -107
  725. package/out/concepts/TriggerEvent__.js.map +1 -1
  726. package/out/concepts/TriggerLauncher__.d.ts +7 -0
  727. package/out/concepts/TriggerLauncher__.js +7 -0
  728. package/out/concepts/TriggerLauncher__.js.map +1 -1
  729. package/out/concepts/TypeAnnotation__.d.ts +7 -0
  730. package/out/concepts/TypeAnnotation__.js +27 -11
  731. package/out/concepts/TypeAnnotation__.js.map +1 -1
  732. package/out/concepts/TypeParam__.d.ts +7 -0
  733. package/out/concepts/TypeParam__.js +7 -0
  734. package/out/concepts/TypeParam__.js.map +1 -1
  735. package/out/concepts/UnaryExpression__.d.ts +7 -0
  736. package/out/concepts/UnaryExpression__.js +7 -0
  737. package/out/concepts/UnaryExpression__.js.map +1 -1
  738. package/out/concepts/Unparsed__.d.ts +7 -0
  739. package/out/concepts/Unparsed__.js +7 -0
  740. package/out/concepts/Unparsed__.js.map +1 -1
  741. package/out/concepts/UseComponent__.d.ts +7 -0
  742. package/out/concepts/UseComponent__.js +7 -0
  743. package/out/concepts/UseComponent__.js.map +1 -1
  744. package/out/concepts/ValidationRule__.d.ts +7 -0
  745. package/out/concepts/ValidationRule__.js +8 -1
  746. package/out/concepts/ValidationRule__.js.map +1 -1
  747. package/out/concepts/Variable__.d.ts +8 -1
  748. package/out/concepts/Variable__.js +11 -0
  749. package/out/concepts/Variable__.js.map +1 -1
  750. package/out/concepts/ViewBlockWithImage__.d.ts +33 -0
  751. package/out/concepts/ViewBlockWithImage__.js +63 -0
  752. package/out/concepts/ViewBlockWithImage__.js.map +1 -0
  753. package/out/concepts/ViewBlock__.d.ts +12 -5
  754. package/out/concepts/ViewBlock__.js +16 -5
  755. package/out/concepts/ViewBlock__.js.map +1 -1
  756. package/out/concepts/ViewComponentDeclaration__.d.ts +721 -0
  757. package/out/concepts/ViewComponentDeclaration__.js +808 -0
  758. package/out/concepts/ViewComponentDeclaration__.js.map +1 -0
  759. package/out/concepts/ViewElement__.d.ts +7 -0
  760. package/out/concepts/ViewElement__.js +8 -6
  761. package/out/concepts/ViewElement__.js.map +1 -1
  762. package/out/concepts/View__.d.ts +9 -1
  763. package/out/concepts/View__.js +66 -5
  764. package/out/concepts/View__.js.map +1 -1
  765. package/out/concepts/WhileStatement__.d.ts +7 -0
  766. package/out/concepts/WhileStatement__.js +7 -0
  767. package/out/concepts/WhileStatement__.js.map +1 -1
  768. package/out/concepts/basics/stdlib/nasl.process.js +101 -3
  769. package/out/concepts/basics/stdlib/nasl.process.js.map +1 -1
  770. package/out/concepts/basics/stdlib/nasl.util.js +1 -1
  771. package/out/concepts/basics/stdlib/nasl.util.js.map +1 -1
  772. package/out/concepts/index__.d.ts +17 -2
  773. package/out/concepts/index__.js +17 -2
  774. package/out/concepts/index__.js.map +1 -1
  775. package/out/concepts/utils/asserts.d.ts +781 -41
  776. package/out/concepts/utils/asserts.js +1117 -133
  777. package/out/concepts/utils/asserts.js.map +1 -1
  778. package/out/concepts/utils/types.d.ts +56 -7
  779. package/out/generator/genMetaData.js +6 -0
  780. package/out/generator/genMetaData.js.map +1 -1
  781. package/out/index.d.ts +1 -0
  782. package/out/index.js +3 -1
  783. package/out/index.js.map +1 -1
  784. package/out/server/createUiTs.js +0 -1
  785. package/out/server/createUiTs.js.map +1 -1
  786. package/out/server/entity2LogicNamespace.js +1 -15
  787. package/out/server/entity2LogicNamespace.js.map +1 -1
  788. package/out/server/getConnector.d.ts +1 -0
  789. package/out/server/getConnector.js +35 -32
  790. package/out/server/getConnector.js.map +1 -1
  791. package/out/server/getLogics.js +1 -1
  792. package/out/server/getLogics.js.map +1 -1
  793. package/out/server/getMemberIdentifier.js +3 -3
  794. package/out/server/getMemberIdentifier.js.map +1 -1
  795. package/out/templator/genEditTableBlock.js +1 -1
  796. package/out/templator/genEditTableBlock.js.map +1 -1
  797. package/out/templator/genGridViewBlock.js +1 -1
  798. package/out/templator/genGridViewBlock.js.map +1 -1
  799. package/out/templator/genTableBlock.js +2 -2
  800. package/out/templator/genTableBlock.js.map +1 -1
  801. package/package.json +1 -1
  802. package/sandbox/stdlib/nasl.collection.ts +5 -3
  803. package/sandbox/stdlib/nasl.core.ts +2 -1
  804. package/sandbox/stdlib/nasl.process.ts +18 -0
  805. package/sandbox/stdlib/nasl.util.ts +5 -3
  806. package/src/common/BaseNode.ts +10 -1
  807. package/src/concepts/Abort__.ts +7 -0
  808. package/src/concepts/AbstractInterface__.ts +7 -0
  809. package/src/concepts/Anchor__.ts +7 -0
  810. package/src/concepts/AnonymousFunction__.ts +7 -0
  811. package/src/concepts/App__.ts +8 -1
  812. package/src/concepts/Argument__.ts +7 -0
  813. package/src/concepts/Assignee__.ts +7 -0
  814. package/src/concepts/AssignmentLine__.ts +7 -0
  815. package/src/concepts/Assignment__.ts +7 -0
  816. package/src/concepts/Attribute__.ts +12 -22
  817. package/src/concepts/AuthInterface__.ts +7 -0
  818. package/src/concepts/AuthLogicForCallInterface__.ts +7 -0
  819. package/src/concepts/AuthLogic__.ts +7 -0
  820. package/src/concepts/BackendVariable__.ts +7 -0
  821. package/src/concepts/Backend__.ts +7 -0
  822. package/src/concepts/BaseSetter__.ts +72 -0
  823. package/src/concepts/BatchAssignment__.ts +7 -0
  824. package/src/concepts/BinaryExpression__.ts +7 -0
  825. package/src/concepts/BindAttribute__.ts +8 -1
  826. package/src/concepts/BindDirective__.ts +7 -0
  827. package/src/concepts/BindEvent__.ts +7 -0
  828. package/src/concepts/BindStyle__.ts +7 -0
  829. package/src/concepts/Block__.ts +7 -0
  830. package/src/concepts/BooleanLiteral__.ts +7 -0
  831. package/src/concepts/BusinessComponent__.ts +20 -10
  832. package/src/concepts/BusinessLogic__.ts +7 -0
  833. package/src/concepts/CallAuthInterface__.ts +7 -0
  834. package/src/concepts/CallConnector__.ts +7 -0
  835. package/src/concepts/CallEvent__.ts +7 -0
  836. package/src/concepts/CallFunction__.ts +84 -2
  837. package/src/concepts/CallInterface__.ts +7 -0
  838. package/src/concepts/CallLogic__.ts +25 -16
  839. package/src/concepts/CallQueryComponent__.ts +16 -9
  840. package/src/concepts/CapsulesSetter__.ts +254 -0
  841. package/src/concepts/Comment__.ts +7 -0
  842. package/src/concepts/CompletionProperty__.ts +7 -20
  843. package/src/concepts/ConfigGroup__.ts +7 -0
  844. package/src/concepts/ConfigPropertyValue__.ts +7 -0
  845. package/src/concepts/ConfigProperty__.ts +7 -0
  846. package/src/concepts/Configuration__.ts +7 -0
  847. package/src/concepts/Connection__.ts +7 -0
  848. package/src/concepts/ConnectorTrigger__.ts +7 -0
  849. package/src/concepts/Connector__.ts +7 -0
  850. package/src/concepts/Constant__.ts +7 -0
  851. package/src/concepts/CountersignPolicy__.ts +7 -0
  852. package/src/concepts/DataSource__.ts +7 -0
  853. package/src/concepts/DatabaseTypeAnnotation__.ts +7 -0
  854. package/src/concepts/DefaultValue__.ts +7 -0
  855. package/src/concepts/Destination__.ts +7 -0
  856. package/src/concepts/End__.ts +7 -0
  857. package/src/concepts/EntityIndex__.ts +7 -0
  858. package/src/concepts/EntityProperty__.ts +14 -8
  859. package/src/concepts/Entity__.ts +7 -0
  860. package/src/concepts/EnumItem__.ts +7 -0
  861. package/src/concepts/EnumSelectSetter__.ts +254 -0
  862. package/src/concepts/Enum__.ts +38 -5
  863. package/src/concepts/EventDeclaration__.ts +95 -0
  864. package/src/concepts/Event__.ts +10 -3
  865. package/src/concepts/ExternalDestination__.ts +7 -0
  866. package/src/concepts/ForEachStatement__.ts +7 -0
  867. package/src/concepts/FrontendLibrary__.ts +93 -62
  868. package/src/concepts/FrontendType__.ts +7 -0
  869. package/src/concepts/FrontendVariable__.ts +7 -0
  870. package/src/concepts/Frontend__.ts +7 -0
  871. package/src/concepts/Function__.ts +7 -0
  872. package/src/concepts/I18nInfo__.ts +7 -0
  873. package/src/concepts/IconSetter__.ts +72 -0
  874. package/src/concepts/Identifier__.ts +7 -0
  875. package/src/concepts/IfStatement__.ts +7 -0
  876. package/src/concepts/ImageSetter__.ts +65 -0
  877. package/src/concepts/ImportedInterface__.ts +7 -0
  878. package/src/concepts/InputSetter__.ts +72 -0
  879. package/src/concepts/Integration__.ts +7 -0
  880. package/src/concepts/InterfaceParam__.ts +7 -0
  881. package/src/concepts/Interface__.ts +7 -0
  882. package/src/concepts/JSBlock__.ts +7 -0
  883. package/src/concepts/JavaLogic__.ts +7 -0
  884. package/src/concepts/LogicDeclaration__.ts +657 -0
  885. package/src/concepts/LogicItem__.ts +7 -0
  886. package/src/concepts/Logic__.ts +122 -34
  887. package/src/concepts/MatchCase__.ts +10 -3
  888. package/src/concepts/Match__.ts +9 -2
  889. package/src/concepts/MemberExpression__.ts +7 -0
  890. package/src/concepts/MetadataType__.ts +7 -0
  891. package/src/concepts/MicroApp__.ts +7 -0
  892. package/src/concepts/Module__.ts +7 -0
  893. package/src/concepts/MsgTriggerEvent__.ts +7 -0
  894. package/src/concepts/MsgTriggerLauncher__.ts +7 -0
  895. package/src/concepts/MultiApprovalPolicy__.ts +7 -0
  896. package/src/concepts/Namespace__.ts +91 -60
  897. package/src/concepts/NewComposite__.ts +7 -0
  898. package/src/concepts/NewList__.ts +7 -0
  899. package/src/concepts/NewMap__.ts +7 -0
  900. package/src/concepts/New__.ts +7 -0
  901. package/src/concepts/NullLiteral__.ts +7 -0
  902. package/src/concepts/NumberInputSetter__.ts +104 -0
  903. package/src/concepts/NumericLiteral__.ts +7 -0
  904. package/src/concepts/OqlQueryComponent__.ts +7 -0
  905. package/src/concepts/OverriddenLogic__.ts +7 -0
  906. package/src/concepts/Paginate__.ts +7 -0
  907. package/src/concepts/ParamWithGroup__.ts +7 -0
  908. package/src/concepts/Param__.ts +14 -24
  909. package/src/concepts/Point__.ts +7 -0
  910. package/src/concepts/ProcessComponent__.ts +7 -0
  911. package/src/concepts/ProcessElement__.ts +7 -0
  912. package/src/concepts/ProcessOutcome__.ts +7 -0
  913. package/src/concepts/ProcessOutcomes__.ts +7 -0
  914. package/src/concepts/Process__.ts +7 -0
  915. package/src/concepts/PropDeclaration__.ts +209 -0
  916. package/src/concepts/PropertySelectSetter__.ts +65 -0
  917. package/src/concepts/QueryAggregateExpression__.ts +7 -0
  918. package/src/concepts/QueryFieldExpression__.ts +7 -0
  919. package/src/concepts/QueryFromExpression__.ts +7 -0
  920. package/src/concepts/QueryGroupByExpression__.ts +7 -0
  921. package/src/concepts/QueryJoinExpression__.ts +7 -0
  922. package/src/concepts/QueryLimitExpression__.ts +7 -0
  923. package/src/concepts/QueryOrderByExpression__.ts +7 -0
  924. package/src/concepts/QuerySelectExpression__.ts +7 -0
  925. package/src/concepts/Rect__.ts +7 -0
  926. package/src/concepts/Return__.ts +8 -1
  927. package/src/concepts/Role__.ts +7 -0
  928. package/src/concepts/SelectMembers__.ts +7 -0
  929. package/src/concepts/SequentialPolicy__.ts +7 -0
  930. package/src/concepts/SetterOption__.ts +111 -0
  931. package/src/concepts/SlotDeclaration__.ts +488 -0
  932. package/src/concepts/Slot__.ts +2 -2
  933. package/src/concepts/SqlQueryComponent__.ts +7 -0
  934. package/src/concepts/Start__.ts +7 -0
  935. package/src/concepts/StaticString__.ts +7 -0
  936. package/src/concepts/StringInterpolation__.ts +8 -1
  937. package/src/concepts/StringLiteral__.ts +7 -0
  938. package/src/concepts/StructureProperty__.ts +7 -20
  939. package/src/concepts/Structure__.ts +7 -0
  940. package/src/concepts/SwitchCase__.ts +7 -0
  941. package/src/concepts/SwitchSetter__.ts +65 -0
  942. package/src/concepts/SwitchStatement__.ts +7 -0
  943. package/src/concepts/ThemeVariable__.ts +71 -0
  944. package/src/concepts/Theme__.ts +7 -0
  945. package/src/concepts/Transactional__.ts +7 -0
  946. package/src/concepts/TriggerEvent__.ts +12 -185
  947. package/src/concepts/TriggerLauncher__.ts +7 -0
  948. package/src/concepts/TypeAnnotation__.ts +29 -12
  949. package/src/concepts/TypeParam__.ts +7 -0
  950. package/src/concepts/UnaryExpression__.ts +7 -0
  951. package/src/concepts/Unparsed__.ts +7 -0
  952. package/src/concepts/UseComponent__.ts +7 -0
  953. package/src/concepts/ValidationRule__.ts +8 -1
  954. package/src/concepts/Variable__.ts +8 -1
  955. package/src/concepts/ViewBlockWithImage__.ts +80 -0
  956. package/src/concepts/ViewBlock__.ts +16 -9
  957. package/src/concepts/ViewComponentDeclaration__.ts +1670 -0
  958. package/src/concepts/ViewElement__.ts +9 -7
  959. package/src/concepts/View__.ts +91 -25
  960. package/src/concepts/WhileStatement__.ts +7 -0
  961. package/src/concepts/basics/stdlib/nasl.process.ts +103 -7
  962. package/src/concepts/basics/stdlib/nasl.util.ts +1 -1
  963. package/src/concepts/index__.ts +17 -2
  964. package/src/concepts/utils/asserts.ts +1223 -166
  965. package/src/concepts/utils/types.ts +85 -8
  966. package/src/generator/genMetaData.ts +7 -1
  967. package/src/index.ts +1 -0
  968. package/src/server/createUiTs.ts +0 -1
  969. package/src/server/entity2LogicNamespace.ts +1 -16
  970. package/src/server/getConnector.ts +40 -32
  971. package/src/server/getLogics.ts +1 -1
  972. package/src/server/getMemberIdentifier.ts +3 -3
  973. package/src/templator/genEditTableBlock.ts +1 -1
  974. package/src/templator/genGridViewBlock.ts +1 -1
  975. package/src/templator/genTableBlock.ts +2 -2
  976. package/test/concepts/entity/__snapshots__/toEmbeddedTS.spec.ts.snap +2 -2
  977. package/.nyc_output/processinfo/d58d92d8-c0d6-479b-9f82-1f4da8e73ff3.json +0 -1
  978. package/out/concepts/ViewComponent__.d.ts +0 -549
  979. package/out/concepts/ViewComponent__.js +0 -620
  980. package/out/concepts/ViewComponent__.js.map +0 -1
  981. package/src/concepts/ViewComponent__.ts +0 -1245
@@ -1,1245 +0,0 @@
1
- import Module from './Module__';
2
- //================================================================================
3
- // 从这里开始到结尾注释之间的代码由 NASL Workbench 自动生成,请不手动修改!
4
- // ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓
5
- //================================================================================
6
- import { EventPayload, Params } from '../common/EventEmitter';
7
- import { concept, excludedInJSON, property, getConceptConstructor } from '../decorators';
8
-
9
- import * as utils from '../utils';
10
- import * as types from './utils/types';
11
- import * as asserts from './utils/asserts';
12
- import { v4 as uuidv4 } from 'uuid';
13
- import BaseNode from '../common/BaseNode';
14
- import Attribute from './Attribute__';
15
- import Event from './Event__';
16
- import Slot from './Slot__';
17
- import Logic from './Logic__';
18
- import ViewBlock from './ViewBlock__';
19
-
20
- /**
21
- * 页面组件
22
- */
23
- @concept('页面组件')
24
- export class ViewComponent extends BaseNode {
25
- /** 类名 */
26
- static readonly ConceptName: string = 'ViewComponent';
27
-
28
- /**
29
- * 产品概念
30
- */
31
- @property('concept')
32
- // @ts-ignore
33
- readonly concept!: 'ViewComponent';
34
- /**
35
- * 页面组件名称
36
- */
37
- @property({
38
- objectRef: '',
39
- })
40
- name: string = '';
41
-
42
- /**
43
- * 页面组件标题
44
- */
45
- @property({
46
- objectRef: '',
47
- })
48
- title: string;
49
-
50
- /**
51
- * 页面组件描述
52
- */
53
- @property({
54
- objectRef: '',
55
- })
56
- description: string;
57
-
58
- /**
59
- * category
60
- */
61
- @property({
62
- objectRef: '',
63
- })
64
- category: string;
65
-
66
- /**
67
- * 组件属性列表
68
- */
69
- @property({
70
- objectRef: 'Attribute',
71
- isArray: true,
72
- defaultValue: [],
73
- })
74
- attrs: Array<Attribute> = [];
75
-
76
- /**
77
- * 组件事件列表
78
- */
79
- @property({
80
- objectRef: 'Event',
81
- isArray: true,
82
- defaultValue: [],
83
- })
84
- events: Array<Event> = [];
85
-
86
- /**
87
- * 插槽列表
88
- */
89
- @property({
90
- objectRef: 'Slot',
91
- isArray: true,
92
- defaultValue: [],
93
- })
94
- slots: Array<Slot> = [];
95
-
96
- /**
97
- * 逻辑列表
98
- */
99
- @property({
100
- objectRef: 'Logic',
101
- isArray: true,
102
- defaultValue: [],
103
- })
104
- methods: Array<Logic> = [];
105
-
106
- /**
107
- * 页面组件列表
108
- */
109
- @property({
110
- objectRef: 'ViewComponent',
111
- isArray: true,
112
- defaultValue: [],
113
- })
114
- children: Array<ViewComponent> = [];
115
-
116
- /**
117
- * 页面代码块列表
118
- */
119
- @property({
120
- objectRef: 'ViewBlock',
121
- isArray: true,
122
- defaultValue: [],
123
- })
124
- blocks: Array<ViewBlock> = [];
125
-
126
- /**
127
- * themes
128
- */
129
- @property({
130
- objectRef: '',
131
- })
132
- themes: Array<{
133
- name: string;
134
- type: string;
135
- }>;
136
-
137
- /**
138
- * @param source 需要合并的部分参数
139
- */
140
- constructor(source?: Partial<ViewComponent>) {
141
- source = Object.assign({}, ViewComponent.getDefaultOptions(), source);
142
- super(source);
143
- super.subConstructor(source);
144
- }
145
-
146
- static from(source: any, parentNode?: any, parentKey?: string): ViewComponent {
147
- return super.from(source, parentNode, parentKey) as ViewComponent;
148
- }
149
-
150
- getAttributeExistingNames(excludedList: Array<Attribute> = []) {
151
- const excludedSet = new Set(excludedList);
152
- return ((this.attrs as Attribute[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
153
- }
154
- getAttributeUniqueName(name = 'attribute1') {
155
- return utils.unique(name, this.getAttributeExistingNames(), undefined, false);
156
- }
157
-
158
- /**
159
- * 插入组件属性
160
- * @internal
161
- * @param name 组件属性名称,如果不填会自动生成一个唯一名称
162
- */
163
- _insertAttributeAt(name: string, index: number): Attribute;
164
-
165
- /**
166
- * 插入组件属性
167
- * @internal
168
- * @param attributeOptions 组件属性参数
169
- */
170
- _insertAttributeAt(attributeOptions: Partial<Attribute>, index: number): Attribute;
171
-
172
- /**
173
- * 插入组件属性
174
- * @internal
175
- * @param attribute 已有的组件属性实例
176
- */
177
- _insertAttributeAt(attribute: Attribute, index: number): Attribute;
178
-
179
- _insertAttributeAt(options: string | Partial<Attribute> | Attribute, index: number) {
180
- const attributeOptions: any = {};
181
- const relationOptions = { parentNode: this, parentKey: 'attrs' };
182
- const Attribute = getConceptConstructor('Attribute');
183
- let attribute: Attribute;
184
- if (!options) {
185
- attribute = Attribute.from(
186
- {
187
- ...attributeOptions,
188
- name: this.getAttributeUniqueName(),
189
- },
190
- this,
191
- 'attrs',
192
- );
193
- } else if (typeof options === 'string') {
194
- attribute = Attribute.from(
195
- {
196
- ...attributeOptions,
197
- name: options,
198
- },
199
- this,
200
- 'attrs',
201
- );
202
- } else if (asserts.isAttribute(options)) {
203
- options.ensureDelete(); // 同一实例不支持多处存在
204
- attribute = options;
205
- Object.assign(attribute, relationOptions);
206
- } else {
207
- attribute = Attribute.from(
208
- {
209
- ...attributeOptions,
210
- ...options,
211
- },
212
- this,
213
- 'attrs',
214
- );
215
- }
216
- this.attrs.splice(index, 0, attribute);
217
- return attribute;
218
- }
219
-
220
- /**
221
- * 插入组件属性
222
- * @param name 组件属性名称,如果不填会自动生成一个唯一名称
223
- */
224
- insertAttributeAt(name: string, index: number): Attribute;
225
-
226
- /**
227
- * 插入组件属性
228
- * @param attributeOptions 组件属性参数
229
- */
230
- insertAttributeAt(attributeOptions: Partial<Attribute>, index: number): Attribute;
231
-
232
- /**
233
- * 插入组件属性
234
- * @param attribute 已有的组件属性实例
235
- */
236
- insertAttributeAt(attribute: Attribute, index: number): Attribute;
237
-
238
- insertAttributeAt(options: string | Partial<Attribute> | Attribute, index: number) {
239
- const node = this._insertAttributeAt(options as any, index);
240
- node.create({
241
- index,
242
- parentNode: this,
243
- parentKey: 'attrs',
244
- });
245
- return node;
246
- }
247
-
248
- /**
249
- * 添加组件属性
250
- * @internal
251
- * @param name 组件属性名称,如果不填会自动生成一个唯一名称
252
- */
253
- _addAttribute(name?: string): Attribute;
254
-
255
- /**
256
- * 添加组件属性
257
- * @internal
258
- * @param attributeOptions 组件属性参数
259
- */
260
- _addAttribute(attributeOptions: Partial<Attribute>): Attribute;
261
-
262
- /**
263
- * 添加组件属性
264
- * @internal
265
- * @param attribute 已有的组件属性实例
266
- */
267
- _addAttribute(attribute: Attribute): Attribute;
268
-
269
- _addAttribute(options?: string | Partial<Attribute> | Attribute) {
270
- const index = this.attrs.length;
271
- return this._insertAttributeAt(options as any, index);
272
- }
273
-
274
- /**
275
- * 添加组件属性
276
- * @internal
277
- * @param name 组件属性名称,如果不填会自动生成一个唯一名称
278
- */
279
- addAttribute(name?: string): Attribute;
280
-
281
- /**
282
- * 添加组件属性
283
- * @param attributeOptions 组件属性参数
284
- */
285
- addAttribute(attributeOptions: Partial<Attribute>): Attribute;
286
-
287
- /**
288
- * 添加组件属性
289
- * @param attribute 已有的组件属性实例
290
- */
291
- addAttribute(attribute: Attribute): Attribute;
292
-
293
- addAttribute(options?: string | Partial<Attribute> | Attribute) {
294
- const node = this._addAttribute(options as any);
295
- const index = this.attrs.indexOf(node);
296
- node.create({
297
- index,
298
- parentNode: this,
299
- parentKey: 'attrs',
300
- });
301
- return node;
302
- }
303
-
304
- getEventExistingNames(excludedList: Array<Event> = []) {
305
- const excludedSet = new Set(excludedList);
306
- return ((this.events as Event[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
307
- }
308
- getEventUniqueName(name = 'event1') {
309
- return utils.unique(name, this.getEventExistingNames(), undefined, false);
310
- }
311
-
312
- /**
313
- * 插入组件事件
314
- * @internal
315
- * @param name 组件事件名称,如果不填会自动生成一个唯一名称
316
- */
317
- _insertEventAt(name: string, index: number): Event;
318
-
319
- /**
320
- * 插入组件事件
321
- * @internal
322
- * @param eventOptions 组件事件参数
323
- */
324
- _insertEventAt(eventOptions: Partial<Event>, index: number): Event;
325
-
326
- /**
327
- * 插入组件事件
328
- * @internal
329
- * @param event 已有的组件事件实例
330
- */
331
- _insertEventAt(event: Event, index: number): Event;
332
-
333
- _insertEventAt(options: string | Partial<Event> | Event, index: number) {
334
- const eventOptions: any = {};
335
- const relationOptions = { parentNode: this, parentKey: 'events' };
336
- const Event = getConceptConstructor('Event');
337
- let event: Event;
338
- if (!options) {
339
- event = Event.from(
340
- {
341
- ...eventOptions,
342
- name: this.getEventUniqueName(),
343
- },
344
- this,
345
- 'events',
346
- );
347
- } else if (typeof options === 'string') {
348
- event = Event.from(
349
- {
350
- ...eventOptions,
351
- name: options,
352
- },
353
- this,
354
- 'events',
355
- );
356
- } else if (asserts.isEvent(options)) {
357
- options.ensureDelete(); // 同一实例不支持多处存在
358
- event = options;
359
- Object.assign(event, relationOptions);
360
- } else {
361
- event = Event.from(
362
- {
363
- ...eventOptions,
364
- ...options,
365
- },
366
- this,
367
- 'events',
368
- );
369
- }
370
- this.events.splice(index, 0, event);
371
- return event;
372
- }
373
-
374
- /**
375
- * 插入组件事件
376
- * @param name 组件事件名称,如果不填会自动生成一个唯一名称
377
- */
378
- insertEventAt(name: string, index: number): Event;
379
-
380
- /**
381
- * 插入组件事件
382
- * @param eventOptions 组件事件参数
383
- */
384
- insertEventAt(eventOptions: Partial<Event>, index: number): Event;
385
-
386
- /**
387
- * 插入组件事件
388
- * @param event 已有的组件事件实例
389
- */
390
- insertEventAt(event: Event, index: number): Event;
391
-
392
- insertEventAt(options: string | Partial<Event> | Event, index: number) {
393
- const node = this._insertEventAt(options as any, index);
394
- node.create({
395
- index,
396
- parentNode: this,
397
- parentKey: 'events',
398
- });
399
- return node;
400
- }
401
-
402
- /**
403
- * 添加组件事件
404
- * @internal
405
- * @param name 组件事件名称,如果不填会自动生成一个唯一名称
406
- */
407
- _addEvent(name?: string): Event;
408
-
409
- /**
410
- * 添加组件事件
411
- * @internal
412
- * @param eventOptions 组件事件参数
413
- */
414
- _addEvent(eventOptions: Partial<Event>): Event;
415
-
416
- /**
417
- * 添加组件事件
418
- * @internal
419
- * @param event 已有的组件事件实例
420
- */
421
- _addEvent(event: Event): Event;
422
-
423
- _addEvent(options?: string | Partial<Event> | Event) {
424
- const index = this.events.length;
425
- return this._insertEventAt(options as any, index);
426
- }
427
-
428
- /**
429
- * 添加组件事件
430
- * @internal
431
- * @param name 组件事件名称,如果不填会自动生成一个唯一名称
432
- */
433
- addEvent(name?: string): Event;
434
-
435
- /**
436
- * 添加组件事件
437
- * @param eventOptions 组件事件参数
438
- */
439
- addEvent(eventOptions: Partial<Event>): Event;
440
-
441
- /**
442
- * 添加组件事件
443
- * @param event 已有的组件事件实例
444
- */
445
- addEvent(event: Event): Event;
446
-
447
- addEvent(options?: string | Partial<Event> | Event) {
448
- const node = this._addEvent(options as any);
449
- const index = this.events.indexOf(node);
450
- node.create({
451
- index,
452
- parentNode: this,
453
- parentKey: 'events',
454
- });
455
- return node;
456
- }
457
-
458
- getSlotExistingNames(excludedList: Array<Slot> = []) {
459
- const excludedSet = new Set(excludedList);
460
- return ((this.slots as Slot[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
461
- }
462
- getSlotUniqueName(name = 'slot1') {
463
- return utils.unique(name, this.getSlotExistingNames(), undefined, false);
464
- }
465
-
466
- /**
467
- * 插入插槽
468
- * @internal
469
- * @param name 插槽名称,如果不填会自动生成一个唯一名称
470
- */
471
- _insertSlotAt(name: string, index: number): Slot;
472
-
473
- /**
474
- * 插入插槽
475
- * @internal
476
- * @param slotOptions 插槽参数
477
- */
478
- _insertSlotAt(slotOptions: Partial<Slot>, index: number): Slot;
479
-
480
- /**
481
- * 插入插槽
482
- * @internal
483
- * @param slot 已有的插槽实例
484
- */
485
- _insertSlotAt(slot: Slot, index: number): Slot;
486
-
487
- _insertSlotAt(options: string | Partial<Slot> | Slot, index: number) {
488
- const slotOptions: any = {};
489
- const relationOptions = { parentNode: this, parentKey: 'slots' };
490
- const Slot = getConceptConstructor('Slot');
491
- let slot: Slot;
492
- if (!options) {
493
- slot = Slot.from(
494
- {
495
- ...slotOptions,
496
- name: this.getSlotUniqueName(),
497
- },
498
- this,
499
- 'slots',
500
- );
501
- } else if (typeof options === 'string') {
502
- slot = Slot.from(
503
- {
504
- ...slotOptions,
505
- name: options,
506
- },
507
- this,
508
- 'slots',
509
- );
510
- } else if (asserts.isSlot(options)) {
511
- options.ensureDelete(); // 同一实例不支持多处存在
512
- slot = options;
513
- Object.assign(slot, relationOptions);
514
- } else {
515
- slot = Slot.from(
516
- {
517
- ...slotOptions,
518
- ...options,
519
- },
520
- this,
521
- 'slots',
522
- );
523
- }
524
- this.slots.splice(index, 0, slot);
525
- return slot;
526
- }
527
-
528
- /**
529
- * 插入插槽
530
- * @param name 插槽名称,如果不填会自动生成一个唯一名称
531
- */
532
- insertSlotAt(name: string, index: number): Slot;
533
-
534
- /**
535
- * 插入插槽
536
- * @param slotOptions 插槽参数
537
- */
538
- insertSlotAt(slotOptions: Partial<Slot>, index: number): Slot;
539
-
540
- /**
541
- * 插入插槽
542
- * @param slot 已有的插槽实例
543
- */
544
- insertSlotAt(slot: Slot, index: number): Slot;
545
-
546
- insertSlotAt(options: string | Partial<Slot> | Slot, index: number) {
547
- const node = this._insertSlotAt(options as any, index);
548
- node.create({
549
- index,
550
- parentNode: this,
551
- parentKey: 'slots',
552
- });
553
- return node;
554
- }
555
-
556
- /**
557
- * 添加插槽
558
- * @internal
559
- * @param name 插槽名称,如果不填会自动生成一个唯一名称
560
- */
561
- _addSlot(name?: string): Slot;
562
-
563
- /**
564
- * 添加插槽
565
- * @internal
566
- * @param slotOptions 插槽参数
567
- */
568
- _addSlot(slotOptions: Partial<Slot>): Slot;
569
-
570
- /**
571
- * 添加插槽
572
- * @internal
573
- * @param slot 已有的插槽实例
574
- */
575
- _addSlot(slot: Slot): Slot;
576
-
577
- _addSlot(options?: string | Partial<Slot> | Slot) {
578
- const index = this.slots.length;
579
- return this._insertSlotAt(options as any, index);
580
- }
581
-
582
- /**
583
- * 添加插槽
584
- * @internal
585
- * @param name 插槽名称,如果不填会自动生成一个唯一名称
586
- */
587
- addSlot(name?: string): Slot;
588
-
589
- /**
590
- * 添加插槽
591
- * @param slotOptions 插槽参数
592
- */
593
- addSlot(slotOptions: Partial<Slot>): Slot;
594
-
595
- /**
596
- * 添加插槽
597
- * @param slot 已有的插槽实例
598
- */
599
- addSlot(slot: Slot): Slot;
600
-
601
- addSlot(options?: string | Partial<Slot> | Slot) {
602
- const node = this._addSlot(options as any);
603
- const index = this.slots.indexOf(node);
604
- node.create({
605
- index,
606
- parentNode: this,
607
- parentKey: 'slots',
608
- });
609
- return node;
610
- }
611
-
612
- getLogicExistingNames(excludedList: Array<Logic> = []) {
613
- const excludedSet = new Set(excludedList);
614
- return ((this.methods as Logic[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
615
- }
616
- getLogicUniqueName(name = 'logic1') {
617
- return utils.unique(name, this.getLogicExistingNames(), undefined, false);
618
- }
619
-
620
- /**
621
- * 插入逻辑
622
- * @internal
623
- * @param name 逻辑名称,如果不填会自动生成一个唯一名称
624
- */
625
- _insertLogicAt(name: string, index: number): Logic;
626
-
627
- /**
628
- * 插入逻辑
629
- * @internal
630
- * @param logicOptions 逻辑参数
631
- */
632
- _insertLogicAt(logicOptions: Partial<Logic>, index: number): Logic;
633
-
634
- /**
635
- * 插入逻辑
636
- * @internal
637
- * @param logic 已有的逻辑实例
638
- */
639
- _insertLogicAt(logic: Logic, index: number): Logic;
640
-
641
- _insertLogicAt(options: string | Partial<Logic> | Logic, index: number) {
642
- const logicOptions: any = {};
643
- const relationOptions = { parentNode: this, parentKey: 'methods' };
644
- const Logic = getConceptConstructor('Logic');
645
- let logic: Logic;
646
- if (!options) {
647
- logic = Logic.from(
648
- {
649
- ...logicOptions,
650
- name: this.getLogicUniqueName(),
651
- },
652
- this,
653
- 'methods',
654
- );
655
- } else if (typeof options === 'string') {
656
- logic = Logic.from(
657
- {
658
- ...logicOptions,
659
- name: options,
660
- },
661
- this,
662
- 'methods',
663
- );
664
- } else if (asserts.isLogic(options)) {
665
- options.ensureDelete(); // 同一实例不支持多处存在
666
- logic = options;
667
- Object.assign(logic, relationOptions);
668
- } else {
669
- logic = Logic.from(
670
- {
671
- ...logicOptions,
672
- ...options,
673
- },
674
- this,
675
- 'methods',
676
- );
677
- }
678
- this.methods.splice(index, 0, logic);
679
- return logic;
680
- }
681
-
682
- /**
683
- * 插入逻辑
684
- * @param name 逻辑名称,如果不填会自动生成一个唯一名称
685
- */
686
- insertLogicAt(name: string, index: number): Logic;
687
-
688
- /**
689
- * 插入逻辑
690
- * @param logicOptions 逻辑参数
691
- */
692
- insertLogicAt(logicOptions: Partial<Logic>, index: number): Logic;
693
-
694
- /**
695
- * 插入逻辑
696
- * @param logic 已有的逻辑实例
697
- */
698
- insertLogicAt(logic: Logic, index: number): Logic;
699
-
700
- insertLogicAt(options: string | Partial<Logic> | Logic, index: number) {
701
- const node = this._insertLogicAt(options as any, index);
702
- node.create({
703
- index,
704
- parentNode: this,
705
- parentKey: 'methods',
706
- });
707
- return node;
708
- }
709
-
710
- /**
711
- * 添加逻辑
712
- * @internal
713
- * @param name 逻辑名称,如果不填会自动生成一个唯一名称
714
- */
715
- _addLogic(name?: string): Logic;
716
-
717
- /**
718
- * 添加逻辑
719
- * @internal
720
- * @param logicOptions 逻辑参数
721
- */
722
- _addLogic(logicOptions: Partial<Logic>): Logic;
723
-
724
- /**
725
- * 添加逻辑
726
- * @internal
727
- * @param logic 已有的逻辑实例
728
- */
729
- _addLogic(logic: Logic): Logic;
730
-
731
- _addLogic(options?: string | Partial<Logic> | Logic) {
732
- const index = this.methods.length;
733
- return this._insertLogicAt(options as any, index);
734
- }
735
-
736
- /**
737
- * 添加逻辑
738
- * @internal
739
- * @param name 逻辑名称,如果不填会自动生成一个唯一名称
740
- */
741
- addLogic(name?: string): Logic;
742
-
743
- /**
744
- * 添加逻辑
745
- * @param logicOptions 逻辑参数
746
- */
747
- addLogic(logicOptions: Partial<Logic>): Logic;
748
-
749
- /**
750
- * 添加逻辑
751
- * @param logic 已有的逻辑实例
752
- */
753
- addLogic(logic: Logic): Logic;
754
-
755
- addLogic(options?: string | Partial<Logic> | Logic) {
756
- const node = this._addLogic(options as any);
757
- const index = this.methods.indexOf(node);
758
- node.create({
759
- index,
760
- parentNode: this,
761
- parentKey: 'methods',
762
- });
763
- return node;
764
- }
765
-
766
- getViewComponentExistingNames(excludedList: Array<ViewComponent> = []) {
767
- const excludedSet = new Set(excludedList);
768
- return ((this.children as ViewComponent[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
769
- }
770
- getViewComponentUniqueName(name = 'viewComponent1') {
771
- return utils.unique(name, this.getViewComponentExistingNames(), undefined, false);
772
- }
773
-
774
- /**
775
- * 插入页面组件
776
- * @internal
777
- * @param name 页面组件名称,如果不填会自动生成一个唯一名称
778
- */
779
- _insertViewComponentAt(name: string, index: number): ViewComponent;
780
-
781
- /**
782
- * 插入页面组件
783
- * @internal
784
- * @param viewComponentOptions 页面组件参数
785
- */
786
- _insertViewComponentAt(viewComponentOptions: Partial<ViewComponent>, index: number): ViewComponent;
787
-
788
- /**
789
- * 插入页面组件
790
- * @internal
791
- * @param viewComponent 已有的页面组件实例
792
- */
793
- _insertViewComponentAt(viewComponent: ViewComponent, index: number): ViewComponent;
794
-
795
- _insertViewComponentAt(options: string | Partial<ViewComponent> | ViewComponent, index: number) {
796
- const viewComponentOptions: any = {};
797
- const relationOptions = { parentNode: this, parentKey: 'children' };
798
- const ViewComponent = getConceptConstructor('ViewComponent');
799
- let viewComponent: ViewComponent;
800
- if (!options) {
801
- viewComponent = ViewComponent.from(
802
- {
803
- ...viewComponentOptions,
804
- name: this.getViewComponentUniqueName(),
805
- },
806
- this,
807
- 'children',
808
- );
809
- } else if (typeof options === 'string') {
810
- viewComponent = ViewComponent.from(
811
- {
812
- ...viewComponentOptions,
813
- name: options,
814
- },
815
- this,
816
- 'children',
817
- );
818
- } else if (asserts.isViewComponent(options)) {
819
- options.ensureDelete(); // 同一实例不支持多处存在
820
- viewComponent = options;
821
- Object.assign(viewComponent, relationOptions);
822
- } else {
823
- viewComponent = ViewComponent.from(
824
- {
825
- ...viewComponentOptions,
826
- ...options,
827
- },
828
- this,
829
- 'children',
830
- );
831
- }
832
- this.children.splice(index, 0, viewComponent);
833
- return viewComponent;
834
- }
835
-
836
- /**
837
- * 插入页面组件
838
- * @param name 页面组件名称,如果不填会自动生成一个唯一名称
839
- */
840
- insertViewComponentAt(name: string, index: number): ViewComponent;
841
-
842
- /**
843
- * 插入页面组件
844
- * @param viewComponentOptions 页面组件参数
845
- */
846
- insertViewComponentAt(viewComponentOptions: Partial<ViewComponent>, index: number): ViewComponent;
847
-
848
- /**
849
- * 插入页面组件
850
- * @param viewComponent 已有的页面组件实例
851
- */
852
- insertViewComponentAt(viewComponent: ViewComponent, index: number): ViewComponent;
853
-
854
- insertViewComponentAt(options: string | Partial<ViewComponent> | ViewComponent, index: number) {
855
- const node = this._insertViewComponentAt(options as any, index);
856
- node.create({
857
- index,
858
- parentNode: this,
859
- parentKey: 'children',
860
- });
861
- return node;
862
- }
863
-
864
- /**
865
- * 添加页面组件
866
- * @internal
867
- * @param name 页面组件名称,如果不填会自动生成一个唯一名称
868
- */
869
- _addViewComponent(name?: string): ViewComponent;
870
-
871
- /**
872
- * 添加页面组件
873
- * @internal
874
- * @param viewComponentOptions 页面组件参数
875
- */
876
- _addViewComponent(viewComponentOptions: Partial<ViewComponent>): ViewComponent;
877
-
878
- /**
879
- * 添加页面组件
880
- * @internal
881
- * @param viewComponent 已有的页面组件实例
882
- */
883
- _addViewComponent(viewComponent: ViewComponent): ViewComponent;
884
-
885
- _addViewComponent(options?: string | Partial<ViewComponent> | ViewComponent) {
886
- const index = this.children.length;
887
- return this._insertViewComponentAt(options as any, index);
888
- }
889
-
890
- /**
891
- * 添加页面组件
892
- * @internal
893
- * @param name 页面组件名称,如果不填会自动生成一个唯一名称
894
- */
895
- addViewComponent(name?: string): ViewComponent;
896
-
897
- /**
898
- * 添加页面组件
899
- * @param viewComponentOptions 页面组件参数
900
- */
901
- addViewComponent(viewComponentOptions: Partial<ViewComponent>): ViewComponent;
902
-
903
- /**
904
- * 添加页面组件
905
- * @param viewComponent 已有的页面组件实例
906
- */
907
- addViewComponent(viewComponent: ViewComponent): ViewComponent;
908
-
909
- addViewComponent(options?: string | Partial<ViewComponent> | ViewComponent) {
910
- const node = this._addViewComponent(options as any);
911
- const index = this.children.indexOf(node);
912
- node.create({
913
- index,
914
- parentNode: this,
915
- parentKey: 'children',
916
- });
917
- return node;
918
- }
919
-
920
- getViewBlockExistingNames(excludedList: Array<ViewBlock> = []) {
921
- const excludedSet = new Set(excludedList);
922
- return ((this.blocks as ViewBlock[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
923
- }
924
- getViewBlockUniqueName(name = 'viewBlock1') {
925
- return utils.unique(name, this.getViewBlockExistingNames(), undefined, false);
926
- }
927
-
928
- /**
929
- * 插入页面代码块
930
- * @internal
931
- * @param name 页面代码块名称,如果不填会自动生成一个唯一名称
932
- */
933
- _insertViewBlockAt(name: string, index: number): ViewBlock;
934
-
935
- /**
936
- * 插入页面代码块
937
- * @internal
938
- * @param viewBlockOptions 页面代码块参数
939
- */
940
- _insertViewBlockAt(viewBlockOptions: Partial<ViewBlock>, index: number): ViewBlock;
941
-
942
- /**
943
- * 插入页面代码块
944
- * @internal
945
- * @param viewBlock 已有的页面代码块实例
946
- */
947
- _insertViewBlockAt(viewBlock: ViewBlock, index: number): ViewBlock;
948
-
949
- _insertViewBlockAt(options: string | Partial<ViewBlock> | ViewBlock, index: number) {
950
- const viewBlockOptions: any = {};
951
- const relationOptions = { parentNode: this, parentKey: 'blocks' };
952
- const ViewBlock = getConceptConstructor('ViewBlock');
953
- let viewBlock: ViewBlock;
954
- if (!options) {
955
- viewBlock = ViewBlock.from(
956
- {
957
- ...viewBlockOptions,
958
- name: this.getViewBlockUniqueName(),
959
- },
960
- this,
961
- 'blocks',
962
- );
963
- } else if (typeof options === 'string') {
964
- viewBlock = ViewBlock.from(
965
- {
966
- ...viewBlockOptions,
967
- name: options,
968
- },
969
- this,
970
- 'blocks',
971
- );
972
- } else if (asserts.isViewBlock(options)) {
973
- options.ensureDelete(); // 同一实例不支持多处存在
974
- viewBlock = options;
975
- Object.assign(viewBlock, relationOptions);
976
- } else {
977
- viewBlock = ViewBlock.from(
978
- {
979
- ...viewBlockOptions,
980
- ...options,
981
- },
982
- this,
983
- 'blocks',
984
- );
985
- }
986
- this.blocks.splice(index, 0, viewBlock);
987
- return viewBlock;
988
- }
989
-
990
- /**
991
- * 插入页面代码块
992
- * @param name 页面代码块名称,如果不填会自动生成一个唯一名称
993
- */
994
- insertViewBlockAt(name: string, index: number): ViewBlock;
995
-
996
- /**
997
- * 插入页面代码块
998
- * @param viewBlockOptions 页面代码块参数
999
- */
1000
- insertViewBlockAt(viewBlockOptions: Partial<ViewBlock>, index: number): ViewBlock;
1001
-
1002
- /**
1003
- * 插入页面代码块
1004
- * @param viewBlock 已有的页面代码块实例
1005
- */
1006
- insertViewBlockAt(viewBlock: ViewBlock, index: number): ViewBlock;
1007
-
1008
- insertViewBlockAt(options: string | Partial<ViewBlock> | ViewBlock, index: number) {
1009
- const node = this._insertViewBlockAt(options as any, index);
1010
- node.create({
1011
- index,
1012
- parentNode: this,
1013
- parentKey: 'blocks',
1014
- });
1015
- return node;
1016
- }
1017
-
1018
- /**
1019
- * 添加页面代码块
1020
- * @internal
1021
- * @param name 页面代码块名称,如果不填会自动生成一个唯一名称
1022
- */
1023
- _addViewBlock(name?: string): ViewBlock;
1024
-
1025
- /**
1026
- * 添加页面代码块
1027
- * @internal
1028
- * @param viewBlockOptions 页面代码块参数
1029
- */
1030
- _addViewBlock(viewBlockOptions: Partial<ViewBlock>): ViewBlock;
1031
-
1032
- /**
1033
- * 添加页面代码块
1034
- * @internal
1035
- * @param viewBlock 已有的页面代码块实例
1036
- */
1037
- _addViewBlock(viewBlock: ViewBlock): ViewBlock;
1038
-
1039
- _addViewBlock(options?: string | Partial<ViewBlock> | ViewBlock) {
1040
- const index = this.blocks.length;
1041
- return this._insertViewBlockAt(options as any, index);
1042
- }
1043
-
1044
- /**
1045
- * 添加页面代码块
1046
- * @internal
1047
- * @param name 页面代码块名称,如果不填会自动生成一个唯一名称
1048
- */
1049
- addViewBlock(name?: string): ViewBlock;
1050
-
1051
- /**
1052
- * 添加页面代码块
1053
- * @param viewBlockOptions 页面代码块参数
1054
- */
1055
- addViewBlock(viewBlockOptions: Partial<ViewBlock>): ViewBlock;
1056
-
1057
- /**
1058
- * 添加页面代码块
1059
- * @param viewBlock 已有的页面代码块实例
1060
- */
1061
- addViewBlock(viewBlock: ViewBlock): ViewBlock;
1062
-
1063
- addViewBlock(options?: string | Partial<ViewBlock> | ViewBlock) {
1064
- const node = this._addViewBlock(options as any);
1065
- const index = this.blocks.indexOf(node);
1066
- node.create({
1067
- index,
1068
- parentNode: this,
1069
- parentKey: 'blocks',
1070
- });
1071
- return node;
1072
- }
1073
-
1074
- /**
1075
- * 删除组件属性
1076
- * @param name 组件属性名称
1077
- */
1078
- removeAttribute(name: string): void;
1079
-
1080
- /**
1081
- * 删除组件属性
1082
- * @param attribute 已有的组件属性实例
1083
- */
1084
- removeAttribute(attribute: Attribute): void;
1085
-
1086
- removeAttribute(options: string | Attribute) {
1087
- let attribute: Attribute;
1088
- if (typeof options === 'string') {
1089
- attribute = (this.attrs as Attribute[]).find((item) => item.name === options);
1090
- if (!attribute) {
1091
- throw new Error('找不到组件属性 ' + options);
1092
- }
1093
- } else {
1094
- attribute = options;
1095
- }
1096
- return attribute.delete();
1097
- }
1098
-
1099
- /**
1100
- * 删除组件事件
1101
- * @param name 组件事件名称
1102
- */
1103
- removeEvent(name: string): void;
1104
-
1105
- /**
1106
- * 删除组件事件
1107
- * @param event 已有的组件事件实例
1108
- */
1109
- removeEvent(event: Event): void;
1110
-
1111
- removeEvent(options: string | Event) {
1112
- let event: Event;
1113
- if (typeof options === 'string') {
1114
- event = (this.events as Event[]).find((item) => item.name === options);
1115
- if (!event) {
1116
- throw new Error('找不到组件事件 ' + options);
1117
- }
1118
- } else {
1119
- event = options;
1120
- }
1121
- return event.delete();
1122
- }
1123
-
1124
- /**
1125
- * 删除插槽
1126
- * @param name 插槽名称
1127
- */
1128
- removeSlot(name: string): void;
1129
-
1130
- /**
1131
- * 删除插槽
1132
- * @param slot 已有的插槽实例
1133
- */
1134
- removeSlot(slot: Slot): void;
1135
-
1136
- removeSlot(options: string | Slot) {
1137
- let slot: Slot;
1138
- if (typeof options === 'string') {
1139
- slot = (this.slots as Slot[]).find((item) => item.name === options);
1140
- if (!slot) {
1141
- throw new Error('找不到插槽 ' + options);
1142
- }
1143
- } else {
1144
- slot = options;
1145
- }
1146
- return slot.delete();
1147
- }
1148
-
1149
- /**
1150
- * 删除逻辑
1151
- * @param name 逻辑名称
1152
- */
1153
- removeLogic(name: string): void;
1154
-
1155
- /**
1156
- * 删除逻辑
1157
- * @param logic 已有的逻辑实例
1158
- */
1159
- removeLogic(logic: Logic): void;
1160
-
1161
- removeLogic(options: string | Logic) {
1162
- let logic: Logic;
1163
- if (typeof options === 'string') {
1164
- logic = (this.methods as Logic[]).find((item) => item.name === options);
1165
- if (!logic) {
1166
- throw new Error('找不到逻辑 ' + options);
1167
- }
1168
- } else {
1169
- logic = options;
1170
- }
1171
- return logic.delete();
1172
- }
1173
-
1174
- /**
1175
- * 删除页面组件
1176
- * @param name 页面组件名称
1177
- */
1178
- removeViewComponent(name: string): void;
1179
-
1180
- /**
1181
- * 删除页面组件
1182
- * @param viewComponent 已有的页面组件实例
1183
- */
1184
- removeViewComponent(viewComponent: ViewComponent): void;
1185
-
1186
- removeViewComponent(options: string | ViewComponent) {
1187
- let viewComponent: ViewComponent;
1188
- if (typeof options === 'string') {
1189
- viewComponent = (this.children as ViewComponent[]).find((item) => item.name === options);
1190
- if (!viewComponent) {
1191
- throw new Error('找不到页面组件 ' + options);
1192
- }
1193
- } else {
1194
- viewComponent = options;
1195
- }
1196
- return viewComponent.delete();
1197
- }
1198
-
1199
- /**
1200
- * 删除页面代码块
1201
- * @param name 页面代码块名称
1202
- */
1203
- removeViewBlock(name: string): void;
1204
-
1205
- /**
1206
- * 删除页面代码块
1207
- * @param viewBlock 已有的页面代码块实例
1208
- */
1209
- removeViewBlock(viewBlock: ViewBlock): void;
1210
-
1211
- removeViewBlock(options: string | ViewBlock) {
1212
- let viewBlock: ViewBlock;
1213
- if (typeof options === 'string') {
1214
- viewBlock = (this.blocks as ViewBlock[]).find((item) => item.name === options);
1215
- if (!viewBlock) {
1216
- throw new Error('找不到页面代码块 ' + options);
1217
- }
1218
- } else {
1219
- viewBlock = options;
1220
- }
1221
- return viewBlock.delete();
1222
- }
1223
-
1224
- //================================================================================
1225
- // ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑
1226
- // 自动生成的代码已结束。下面可以手动编写。
1227
- //================================================================================
1228
- /**
1229
- * 祖先 Module
1230
- */
1231
- get module() {
1232
- return this.getAncestor('Module') as Module;
1233
- }
1234
-
1235
- //================================================================================
1236
- // 从这里开始到结尾注释之间的代码由 NASL Workbench 自动生成,请不手动修改!
1237
- // ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓
1238
- //================================================================================
1239
- }
1240
-
1241
- export default ViewComponent;
1242
- //================================================================================
1243
- // ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑
1244
- // 自动生成的代码已结束。下面可以手动编写。
1245
- //================================================================================