@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.
- package/.nyc_output/{d58d92d8-c0d6-479b-9f82-1f4da8e73ff3.json → 559608df-ab15-4969-acf0-5239dacd6111.json} +1 -1
- package/.nyc_output/processinfo/559608df-ab15-4969-acf0-5239dacd6111.json +1 -0
- package/.nyc_output/processinfo/index.json +1 -1
- package/coverage/index.html +153 -138
- package/coverage/src/automate/engine/index.html +1 -1
- package/coverage/src/automate/engine/utils.js.html +46 -46
- package/coverage/src/bak/index.html +15 -15
- package/coverage/src/bak/translator.js.html +153 -57
- package/coverage/src/breakpoint/generator/AfterStartNode.ts.html +1 -1
- package/coverage/src/breakpoint/generator/BeforeEndNode.ts.html +1 -1
- package/coverage/src/breakpoint/generator/BreakpointNode.ts.html +43 -7
- package/coverage/src/breakpoint/generator/CallbackNode.ts.html +59 -8
- package/coverage/src/breakpoint/generator/index.html +21 -21
- package/coverage/src/breakpoint/generator/index.ts.html +1 -1
- package/coverage/src/breakpoint/index.html +1 -1
- package/coverage/src/breakpoint/index.ts.html +1 -1
- package/coverage/src/breakpoint/shared/constants.ts.html +1 -1
- package/coverage/src/breakpoint/shared/index.html +1 -1
- package/coverage/src/breakpoint/shared/index.ts.html +1 -1
- package/coverage/src/breakpoint/shared/operations.ts.html +2 -2
- package/coverage/src/breakpoint/shared/socket.ts.html +1 -1
- package/coverage/src/breakpoint/shared/utils.ts.html +1 -1
- package/coverage/src/breakpoint/store/core.ts.html +3 -3
- package/coverage/src/breakpoint/store/dock.ts.html +1 -1
- package/coverage/src/breakpoint/store/index.html +1 -1
- package/coverage/src/breakpoint/store/index.ts.html +1 -1
- package/coverage/src/common/BaseNode.ts.html +609 -180
- package/coverage/src/common/Command.ts.html +2 -2
- package/coverage/src/common/EventEmitter.ts.html +6 -6
- package/coverage/src/common/Messager.ts.html +1 -1
- package/coverage/src/common/asyncFuncMap.ts.html +1 -1
- package/coverage/src/common/index.html +36 -21
- package/coverage/src/common/index.ts.html +7 -4
- package/coverage/src/common/utils.ts.html +136 -0
- package/coverage/src/concepts/Abort__.ts.html +39 -9
- package/coverage/src/concepts/AbstractInterface__.ts.html +280 -0
- package/coverage/src/concepts/Anchor__.ts.html +86 -29
- package/coverage/src/concepts/AnonymousFunction__.ts.html +262 -169
- package/coverage/src/concepts/App__.ts.html +1205 -152
- package/coverage/src/concepts/Argument__.ts.html +120 -51
- package/coverage/src/concepts/Assignee__.ts.html +124 -34
- package/coverage/src/concepts/AssignmentLine__.ts.html +48 -15
- package/coverage/src/concepts/Assignment__.ts.html +147 -69
- package/coverage/src/concepts/Attribute__.ts.html +41 -14
- package/coverage/src/concepts/AuthInterface__.ts.html +9 -6
- package/coverage/src/concepts/AuthLogicForCallInterface__.ts.html +108 -144
- package/coverage/src/concepts/AuthLogic__.ts.html +18 -6
- package/coverage/src/concepts/BackendVariable__.ts.html +135 -51
- package/coverage/src/concepts/Backend__.ts.html +106 -28
- package/coverage/src/concepts/BatchAssignment__.ts.html +274 -169
- package/coverage/src/concepts/BinaryExpression__.ts.html +188 -110
- package/coverage/src/concepts/BindAttribute__.ts.html +213 -93
- package/coverage/src/concepts/BindDirective__.ts.html +131 -26
- package/coverage/src/concepts/BindEvent__.ts.html +167 -71
- package/coverage/src/concepts/BindStyle__.ts.html +78 -21
- package/coverage/src/concepts/Block__.ts.html +910 -0
- package/coverage/src/concepts/BooleanLiteral__.ts.html +47 -20
- package/coverage/src/concepts/CallAuthInterface__.ts.html +105 -48
- package/coverage/src/concepts/CallConnector__.ts.html +62 -35
- package/coverage/src/concepts/CallFunction__.ts.html +328 -160
- package/coverage/src/concepts/CallInterface__.ts.html +93 -60
- package/coverage/src/concepts/CallLogic__.ts.html +544 -427
- package/coverage/src/concepts/CallQueryComponent__.ts.html +126 -93
- package/coverage/src/concepts/Comment__.ts.html +43 -10
- package/coverage/src/concepts/CompletionProperty__.ts.html +40 -13
- package/coverage/src/concepts/ConfigGroup__.ts.html +47 -20
- package/coverage/src/concepts/ConfigPropertyValue__.ts.html +22 -19
- package/coverage/src/concepts/ConfigProperty__.ts.html +97 -40
- package/coverage/src/concepts/Configuration__.ts.html +48 -21
- package/coverage/src/concepts/Connection__.ts.html +97 -22
- package/coverage/src/concepts/ConnectorTrigger__.ts.html +9 -6
- package/coverage/src/concepts/Connector__.ts.html +161 -38
- package/coverage/src/concepts/Constant__.ts.html +84 -24
- package/coverage/src/concepts/CountersignPolicy__.ts.html +316 -0
- package/coverage/src/concepts/DataSource__.ts.html +111 -57
- package/coverage/src/concepts/DatabaseTypeAnnotation__.ts.html +9 -6
- package/coverage/src/concepts/DefaultValue__.ts.html +1000 -0
- package/coverage/src/concepts/Destination__.ts.html +97 -55
- package/coverage/src/concepts/End__.ts.html +56 -26
- package/coverage/src/concepts/EntityIndex__.ts.html +40 -10
- package/coverage/src/concepts/EntityProperty__.ts.html +164 -56
- package/coverage/src/concepts/Entity__.ts.html +169 -91
- package/coverage/src/concepts/EnumItem__.ts.html +40 -10
- package/coverage/src/concepts/Enum__.ts.html +84 -24
- package/coverage/src/concepts/Event__.ts.html +41 -14
- package/coverage/src/concepts/ExternalDestination__.ts.html +75 -21
- package/coverage/src/concepts/ForEachStatement__.ts.html +143 -95
- package/coverage/src/concepts/FrontendLibrary__.ts.html +71 -20
- package/coverage/src/concepts/FrontendVariable__.ts.html +1 -1
- package/coverage/src/concepts/Frontend__.ts.html +213 -57
- package/coverage/src/concepts/Function__.ts.html +239 -86
- package/coverage/src/concepts/I18nInfo__.ts.html +436 -0
- package/coverage/src/concepts/Identifier__.ts.html +103 -73
- package/coverage/src/concepts/IfStatement__.ts.html +138 -75
- package/coverage/src/concepts/ImportedInterface__.ts.html +268 -0
- package/coverage/src/concepts/Integration__.ts.html +70 -19
- package/coverage/src/concepts/InterfaceParam__.ts.html +78 -21
- package/coverage/src/concepts/Interface__.ts.html +162 -60
- package/coverage/src/concepts/JSBlock__.ts.html +39 -9
- package/coverage/src/concepts/JavaLogic__.ts.html +42 -9
- package/coverage/src/concepts/LogicItem__.ts.html +56 -26
- package/coverage/src/concepts/Logic__.ts.html +409 -322
- package/coverage/src/concepts/MatchCase__.ts.html +181 -97
- package/coverage/src/concepts/Match__.ts.html +135 -63
- package/coverage/src/concepts/MemberExpression__.ts.html +185 -128
- package/coverage/src/concepts/MetadataType__.ts.html +2053 -0
- package/coverage/src/concepts/MicroApp__.ts.html +9 -6
- package/coverage/src/concepts/Module__.ts.html +690 -36
- package/coverage/src/concepts/MsgTriggerEvent__.ts.html +41 -14
- package/coverage/src/concepts/MsgTriggerLauncher__.ts.html +41 -14
- package/coverage/src/concepts/MultiApprovalPolicy__.ts.html +292 -0
- package/coverage/src/concepts/Namespace__.ts.html +359 -92
- package/coverage/src/concepts/NewComposite__.ts.html +326 -146
- package/coverage/src/concepts/NewList__.ts.html +195 -57
- package/coverage/src/concepts/NewMap__.ts.html +168 -63
- package/coverage/src/concepts/New__.ts.html +39 -9
- package/coverage/src/concepts/NullLiteral__.ts.html +36 -9
- package/coverage/src/concepts/NumericLiteral__.ts.html +86 -32
- package/coverage/src/concepts/OqlQueryComponent__.ts.html +161 -35
- package/coverage/src/concepts/OverriddenLogic__.ts.html +324 -201
- package/coverage/src/concepts/Param__.ts.html +155 -80
- package/coverage/src/concepts/Point__.ts.html +9 -6
- package/coverage/src/concepts/ProcessComponent__.ts.html +72 -21
- package/coverage/src/concepts/ProcessElement__.ts.html +524 -116
- package/coverage/src/concepts/ProcessOutcome__.ts.html +85 -13
- package/coverage/src/concepts/ProcessOutcomes__.ts.html +85 -13
- package/coverage/src/concepts/Process__.ts.html +217 -70
- package/coverage/src/concepts/QueryAggregateExpression__.ts.html +67 -16
- package/coverage/src/concepts/QueryFieldExpression__.ts.html +41 -11
- package/coverage/src/concepts/QueryFromExpression__.ts.html +81 -21
- package/coverage/src/concepts/QueryGroupByExpression__.ts.html +70 -19
- package/coverage/src/concepts/QueryJoinExpression__.ts.html +85 -25
- package/coverage/src/concepts/QueryLimitExpression__.ts.html +77 -20
- package/coverage/src/concepts/QueryOrderByExpression__.ts.html +80 -20
- package/coverage/src/concepts/QuerySelectExpression__.ts.html +42 -15
- package/coverage/src/concepts/Rect__.ts.html +9 -6
- package/coverage/src/concepts/Return__.ts.html +131 -50
- package/coverage/src/concepts/Role__.ts.html +45 -15
- package/coverage/src/concepts/SelectMembers__.ts.html +81 -24
- package/coverage/src/concepts/SequentialPolicy__.ts.html +259 -0
- package/coverage/src/concepts/Slot__.ts.html +40 -13
- package/coverage/src/concepts/SqlQueryComponent__.ts.html +84 -24
- package/coverage/src/concepts/Start__.ts.html +41 -14
- package/coverage/src/concepts/StaticString__.ts.html +403 -0
- package/coverage/src/concepts/StringInterpolation__.ts.html +127 -46
- package/coverage/src/concepts/StringLiteral__.ts.html +62 -32
- package/coverage/src/concepts/StructureProperty__.ts.html +86 -29
- package/coverage/src/concepts/Structure__.ts.html +122 -38
- package/coverage/src/concepts/SwitchCase__.ts.html +87 -36
- package/coverage/src/concepts/SwitchStatement__.ts.html +90 -33
- package/coverage/src/concepts/Theme__.ts.html +15 -12
- package/coverage/src/concepts/Transactional__.ts.html +9 -6
- package/coverage/src/concepts/TriggerEvent__.ts.html +41 -14
- package/coverage/src/concepts/TriggerLauncher__.ts.html +46 -13
- package/coverage/src/concepts/TypeAnnotation__.ts.html +348 -117
- package/coverage/src/concepts/TypeParam__.ts.html +42 -12
- package/coverage/src/concepts/UnaryExpression__.ts.html +105 -27
- package/coverage/src/concepts/Unparsed__.ts.html +36 -12
- package/coverage/src/concepts/UseComponent__.ts.html +9 -6
- package/coverage/src/concepts/ValidationRule__.ts.html +87 -48
- package/coverage/src/concepts/Variable__.ts.html +127 -46
- package/coverage/src/concepts/ViewBlock__.ts.html +9 -6
- package/coverage/src/concepts/ViewComponent__.ts.html +99 -24
- package/coverage/src/concepts/ViewElement__.ts.html +498 -288
- package/coverage/src/concepts/View__.ts.html +482 -170
- package/coverage/src/concepts/WhileStatement__.ts.html +118 -55
- package/coverage/src/concepts/basics/constants.ts.html +88 -0
- package/coverage/src/concepts/basics/index.html +116 -0
- package/coverage/src/concepts/basics/stdlib/index.html +1 -1
- package/coverage/src/concepts/basics/stdlib/index.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.auth.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.browser.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.collection.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.configuration.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.core.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.event.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.http.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.interface.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.io.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.logging.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.process.ts.html +2 -2
- package/coverage/src/concepts/basics/stdlib/nasl.ui.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.util.ts.html +4 -4
- package/coverage/src/concepts/basics/stdlib/nasl.validation.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/reference2TypeAnnotationList.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/timeZone.ts.html +1 -1
- package/coverage/src/concepts/basics/types/coreTypeList.ts.html +1 -1
- package/coverage/src/concepts/basics/types/index.html +1 -1
- package/coverage/src/concepts/basics/types/index.ts.html +1 -1
- package/coverage/src/concepts/index.html +1023 -963
- package/coverage/src/concepts/index.ts.html +1 -1
- package/coverage/src/concepts/index__.ts.html +16 -4
- package/coverage/src/concepts/utils/asserts.ts.html +27967 -0
- package/coverage/src/concepts/utils/index.html +116 -0
- package/coverage/src/config.ts.html +1 -1
- package/coverage/src/decorators/index.html +5 -5
- package/coverage/src/decorators/index.ts.html +32 -32
- package/coverage/src/decorators/promise.ts.html +10 -10
- package/coverage/src/eventBus.ts.html +1 -1
- package/coverage/src/generator/compileComponent.ts.html +1 -1
- package/coverage/src/generator/genBundleFiles.ts.html +17 -23
- package/coverage/src/generator/genHash.ts.html +1 -1
- package/coverage/src/generator/genMetaData.ts.html +103 -16
- package/coverage/src/generator/genReleaseBody.ts.html +43 -43
- package/coverage/src/generator/icestark.ts.html +10 -4
- package/coverage/src/generator/index.html +21 -21
- package/coverage/src/generator/index.ts.html +1 -1
- package/coverage/src/generator/microApp.ts.html +1 -1
- package/coverage/src/generator/permission.ts.html +92 -20
- package/coverage/src/generator/qiankun.ts.html +9 -3
- package/coverage/src/generator/styleReplacer.ts.html +1 -1
- package/coverage/src/index.html +7 -7
- package/coverage/src/index.ts.html +4 -4
- package/coverage/src/manager/diagnostic.ts.html +11 -14
- package/coverage/src/manager/index.html +13 -13
- package/coverage/src/manager/stepRecorder.ts.html +1 -1
- package/coverage/src/natural/genNaturalTS.ts.html +1 -1
- package/coverage/src/natural/index.html +15 -15
- package/coverage/src/natural/index.ts.html +1 -1
- package/coverage/src/natural/naslStdlibMap.ts.html +1 -1
- package/coverage/src/natural/transformTSCode.ts.html +78 -18
- package/coverage/src/sentry/index.html +14 -14
- package/coverage/src/sentry/index.ts.html +38 -32
- package/coverage/src/server/createUiTs.ts.html +15 -6
- package/coverage/src/server/entity2LogicNamespace.ts.html +9 -9
- package/coverage/src/server/event.js.html +1 -1
- package/coverage/src/server/extendBaseNode.ts.html +73 -43
- package/coverage/src/server/formatTsUtils.ts.html +31 -28
- package/coverage/src/server/getConnector.ts.html +1 -1
- package/coverage/src/server/getExtensionModules.ts.html +1 -1
- package/coverage/src/server/getFunctions.ts.html +1 -1
- package/coverage/src/server/getInterfaces.ts.html +1 -1
- package/coverage/src/server/getLogging.ts.html +1 -1
- package/coverage/src/server/getLogics.ts.html +20 -8
- package/coverage/src/server/getMemberIdentifier.ts.html +231 -120
- package/coverage/src/server/getProcessComponents.ts.html +1 -1
- package/coverage/src/server/getProcesses.ts.html +163 -13
- package/coverage/src/server/getValidates.ts.html +1 -1
- package/coverage/src/server/index.html +63 -63
- package/coverage/src/server/index.ts.html +6 -3
- package/coverage/src/server/naslServer.ts.html +1207 -949
- package/coverage/src/server/naslStdlibMap.ts.html +1 -1
- package/coverage/src/server/process2LogicNamespace.ts.html +1 -1
- package/coverage/src/server/translator.ts.html +59 -14
- package/coverage/src/service/creator/add.configs.js.html +27 -9
- package/coverage/src/service/creator/errHandles.js.html +28 -37
- package/coverage/src/service/creator/index.html +23 -23
- package/coverage/src/service/creator/index.js.html +1 -1
- package/coverage/src/service/datasource/api.js.html +1 -1
- package/coverage/src/service/datasource/index.html +1 -1
- package/coverage/src/service/datasource/index.js.html +1 -1
- package/coverage/src/service/logic/api.js.html +1 -1
- package/coverage/src/service/logic/index.html +1 -1
- package/coverage/src/service/logic/index.js.html +1 -1
- package/coverage/src/service/storage/api.js.html +1 -1
- package/coverage/src/service/storage/index.html +29 -29
- package/coverage/src/service/storage/index.ts.html +1 -1
- package/coverage/src/service/storage/init.ts.html +1533 -600
- package/coverage/src/service/storage/jsoner.ts.html +76 -13
- package/coverage/src/service/storage/map.ts.html +3 -3
- package/coverage/src/service/storage/service.ts.html +1 -1
- package/coverage/src/service/storage/storagePoint.ts.html +1 -1
- package/coverage/src/templator/genCallComponentLogic.ts.html +1 -1
- package/coverage/src/templator/genCreateBlock.ts.html +37 -58
- package/coverage/src/templator/genCurdEditMultipleKeyBlock.ts.html +19 -19
- package/coverage/src/templator/genCurdMultipleKeyBlock.ts.html +71 -89
- package/coverage/src/templator/genEditTableBlock.ts.html +76 -13
- package/coverage/src/templator/genEnumSelectBlock.ts.html +1 -1
- package/coverage/src/templator/genGetBlock.ts.html +1 -1
- package/coverage/src/templator/genGridViewBlock.ts.html +1 -1
- package/coverage/src/templator/genListViewBlock.ts.html +1 -1
- package/coverage/src/templator/genQueryComponent.ts.html +1 -1
- package/coverage/src/templator/genSelectBlock.ts.html +1 -1
- package/coverage/src/templator/genTableBlock.ts.html +66 -3
- package/coverage/src/templator/genUpdateBlock.ts.html +35 -32
- package/coverage/src/templator/index.html +38 -38
- package/coverage/src/templator/index.ts.html +1 -1
- package/coverage/src/templator/utils.ts.html +74 -11
- package/coverage/src/translator/constant.ts.html +1 -1
- package/coverage/src/translator/index.html +21 -21
- package/coverage/src/translator/index.ts.html +1 -1
- package/coverage/src/translator/utils.ts.html +389 -68
- package/coverage/src/utils/cookie.ts.html +4 -4
- package/coverage/src/utils/env.ts.html +1 -1
- package/coverage/src/utils/i18nInfo.ts.html +166 -0
- package/coverage/src/utils/index.html +34 -49
- package/coverage/src/utils/index.ts.html +115 -22
- package/coverage/src/utils/logger.ts.html +1 -1
- package/coverage/src/utils/sortTsString.ts.html +25 -10
- package/coverage/src/utils/string.ts.html +110 -8
- package/coverage/src/utils/time-slicing/constant.ts.html +196 -0
- package/coverage/src/utils/time-slicing/controller.ts.html +1144 -0
- package/coverage/src/utils/time-slicing/index.html +236 -0
- package/coverage/src/utils/time-slicing/index.ts.html +103 -0
- package/coverage/src/utils/time-slicing/page-state.ts.html +121 -0
- package/coverage/src/utils/time-slicing/performance.ts.html +253 -0
- package/coverage/src/utils/time-slicing/runner.ts.html +241 -0
- package/coverage/src/utils/time-slicing/tool.ts.html +220 -0
- package/coverage/src/utils/time-slicing/utils.ts.html +355 -0
- package/coverage/src/utils/time-slicing/wrapper.ts.html +259 -0
- package/coverage/src/utils/time-slicing.ts.html +1 -1
- package/coverage/src/utils/traverse.ts.html +1 -1
- package/coverage/src/utils/window.ts.html +1 -1
- package/out/common/BaseNode.js +10 -1
- package/out/common/BaseNode.js.map +1 -1
- package/out/concepts/Abort__.d.ts +7 -0
- package/out/concepts/Abort__.js +7 -0
- package/out/concepts/Abort__.js.map +1 -1
- package/out/concepts/AbstractInterface__.d.ts +7 -0
- package/out/concepts/AbstractInterface__.js +7 -0
- package/out/concepts/AbstractInterface__.js.map +1 -1
- package/out/concepts/Anchor__.d.ts +7 -0
- package/out/concepts/Anchor__.js +7 -0
- package/out/concepts/Anchor__.js.map +1 -1
- package/out/concepts/AnonymousFunction__.d.ts +7 -0
- package/out/concepts/AnonymousFunction__.js +7 -0
- package/out/concepts/AnonymousFunction__.js.map +1 -1
- package/out/concepts/App__.d.ts +7 -0
- package/out/concepts/App__.js +8 -1
- package/out/concepts/App__.js.map +1 -1
- package/out/concepts/Argument__.d.ts +7 -0
- package/out/concepts/Argument__.js +7 -0
- package/out/concepts/Argument__.js.map +1 -1
- package/out/concepts/Assignee__.d.ts +7 -0
- package/out/concepts/Assignee__.js +7 -0
- package/out/concepts/Assignee__.js.map +1 -1
- package/out/concepts/AssignmentLine__.d.ts +7 -0
- package/out/concepts/AssignmentLine__.js +7 -0
- package/out/concepts/AssignmentLine__.js.map +1 -1
- package/out/concepts/Assignment__.d.ts +7 -0
- package/out/concepts/Assignment__.js +7 -0
- package/out/concepts/Assignment__.js.map +1 -1
- package/out/concepts/Attribute__.d.ts +11 -13
- package/out/concepts/Attribute__.js +11 -14
- package/out/concepts/Attribute__.js.map +1 -1
- package/out/concepts/AuthInterface__.d.ts +7 -0
- package/out/concepts/AuthInterface__.js +7 -0
- package/out/concepts/AuthInterface__.js.map +1 -1
- package/out/concepts/AuthLogicForCallInterface__.d.ts +7 -0
- package/out/concepts/AuthLogicForCallInterface__.js +7 -0
- package/out/concepts/AuthLogicForCallInterface__.js.map +1 -1
- package/out/concepts/AuthLogic__.d.ts +7 -0
- package/out/concepts/AuthLogic__.js +7 -0
- package/out/concepts/AuthLogic__.js.map +1 -1
- package/out/concepts/BackendVariable__.d.ts +7 -0
- package/out/concepts/BackendVariable__.js +7 -0
- package/out/concepts/BackendVariable__.js.map +1 -1
- package/out/concepts/Backend__.d.ts +7 -0
- package/out/concepts/Backend__.js +7 -0
- package/out/concepts/Backend__.js.map +1 -1
- package/out/concepts/BaseSetter__.d.ts +25 -0
- package/out/concepts/BaseSetter__.js +53 -0
- package/out/concepts/BaseSetter__.js.map +1 -0
- package/out/concepts/BatchAssignment__.d.ts +7 -0
- package/out/concepts/BatchAssignment__.js +7 -0
- package/out/concepts/BatchAssignment__.js.map +1 -1
- package/out/concepts/BinaryExpression__.d.ts +7 -0
- package/out/concepts/BinaryExpression__.js +7 -0
- package/out/concepts/BinaryExpression__.js.map +1 -1
- package/out/concepts/BindAttribute__.d.ts +7 -0
- package/out/concepts/BindAttribute__.js +7 -0
- package/out/concepts/BindAttribute__.js.map +1 -1
- package/out/concepts/BindDirective__.d.ts +7 -0
- package/out/concepts/BindDirective__.js +7 -0
- package/out/concepts/BindDirective__.js.map +1 -1
- package/out/concepts/BindEvent__.d.ts +7 -0
- package/out/concepts/BindEvent__.js +7 -0
- package/out/concepts/BindEvent__.js.map +1 -1
- package/out/concepts/BindStyle__.d.ts +7 -0
- package/out/concepts/BindStyle__.js +7 -0
- package/out/concepts/BindStyle__.js.map +1 -1
- package/out/concepts/Block__.d.ts +7 -0
- package/out/concepts/Block__.js +7 -0
- package/out/concepts/Block__.js.map +1 -1
- package/out/concepts/BooleanLiteral__.d.ts +7 -0
- package/out/concepts/BooleanLiteral__.js +7 -0
- package/out/concepts/BooleanLiteral__.js.map +1 -1
- package/out/concepts/BusinessComponent__.d.ts +7 -0
- package/out/concepts/BusinessComponent__.js +8 -1
- package/out/concepts/BusinessComponent__.js.map +1 -1
- package/out/concepts/BusinessLogic__.d.ts +7 -0
- package/out/concepts/BusinessLogic__.js +7 -0
- package/out/concepts/BusinessLogic__.js.map +1 -1
- package/out/concepts/CallAuthInterface__.d.ts +7 -0
- package/out/concepts/CallAuthInterface__.js +7 -0
- package/out/concepts/CallAuthInterface__.js.map +1 -1
- package/out/concepts/CallConnector__.d.ts +7 -0
- package/out/concepts/CallConnector__.js +7 -0
- package/out/concepts/CallConnector__.js.map +1 -1
- package/out/concepts/CallEvent__.d.ts +7 -0
- package/out/concepts/CallEvent__.js +7 -0
- package/out/concepts/CallEvent__.js.map +1 -1
- package/out/concepts/CallFunction__.d.ts +17 -0
- package/out/concepts/CallFunction__.js +73 -2
- package/out/concepts/CallFunction__.js.map +1 -1
- package/out/concepts/CallInterface__.d.ts +7 -0
- package/out/concepts/CallInterface__.js +7 -0
- package/out/concepts/CallInterface__.js.map +1 -1
- package/out/concepts/CallLogic__.d.ts +7 -0
- package/out/concepts/CallLogic__.js +17 -9
- package/out/concepts/CallLogic__.js.map +1 -1
- package/out/concepts/CallQueryComponent__.d.ts +7 -0
- package/out/concepts/CallQueryComponent__.js +7 -0
- package/out/concepts/CallQueryComponent__.js.map +1 -1
- package/out/concepts/CapsulesSetter__.d.ts +109 -0
- package/out/concepts/CapsulesSetter__.js +163 -0
- package/out/concepts/CapsulesSetter__.js.map +1 -0
- package/out/concepts/Comment__.d.ts +7 -0
- package/out/concepts/Comment__.js +7 -0
- package/out/concepts/Comment__.js.map +1 -1
- package/out/concepts/CompletionProperty__.d.ts +7 -8
- package/out/concepts/CompletionProperty__.js +7 -16
- package/out/concepts/CompletionProperty__.js.map +1 -1
- package/out/concepts/ConfigGroup__.d.ts +7 -0
- package/out/concepts/ConfigGroup__.js +7 -0
- package/out/concepts/ConfigGroup__.js.map +1 -1
- package/out/concepts/ConfigPropertyValue__.d.ts +7 -0
- package/out/concepts/ConfigPropertyValue__.js +7 -0
- package/out/concepts/ConfigPropertyValue__.js.map +1 -1
- package/out/concepts/ConfigProperty__.d.ts +7 -0
- package/out/concepts/ConfigProperty__.js +7 -0
- package/out/concepts/ConfigProperty__.js.map +1 -1
- package/out/concepts/Configuration__.d.ts +7 -0
- package/out/concepts/Configuration__.js +7 -0
- package/out/concepts/Configuration__.js.map +1 -1
- package/out/concepts/Connection__.d.ts +7 -0
- package/out/concepts/Connection__.js +7 -0
- package/out/concepts/Connection__.js.map +1 -1
- package/out/concepts/ConnectorTrigger__.d.ts +7 -0
- package/out/concepts/ConnectorTrigger__.js +7 -0
- package/out/concepts/ConnectorTrigger__.js.map +1 -1
- package/out/concepts/Connector__.d.ts +7 -0
- package/out/concepts/Connector__.js +7 -0
- package/out/concepts/Connector__.js.map +1 -1
- package/out/concepts/Constant__.d.ts +7 -0
- package/out/concepts/Constant__.js +7 -0
- package/out/concepts/Constant__.js.map +1 -1
- package/out/concepts/CountersignPolicy__.d.ts +7 -0
- package/out/concepts/CountersignPolicy__.js +7 -0
- package/out/concepts/CountersignPolicy__.js.map +1 -1
- package/out/concepts/DataSource__.d.ts +7 -0
- package/out/concepts/DataSource__.js +7 -0
- package/out/concepts/DataSource__.js.map +1 -1
- package/out/concepts/DatabaseTypeAnnotation__.d.ts +7 -0
- package/out/concepts/DatabaseTypeAnnotation__.js +7 -0
- package/out/concepts/DatabaseTypeAnnotation__.js.map +1 -1
- package/out/concepts/DefaultValue__.d.ts +7 -0
- package/out/concepts/DefaultValue__.js +7 -0
- package/out/concepts/DefaultValue__.js.map +1 -1
- package/out/concepts/Destination__.d.ts +7 -0
- package/out/concepts/Destination__.js +7 -0
- package/out/concepts/Destination__.js.map +1 -1
- package/out/concepts/End__.d.ts +7 -0
- package/out/concepts/End__.js +7 -0
- package/out/concepts/End__.js.map +1 -1
- package/out/concepts/EntityIndex__.d.ts +7 -0
- package/out/concepts/EntityIndex__.js +7 -0
- package/out/concepts/EntityIndex__.js.map +1 -1
- package/out/concepts/EntityProperty__.d.ts +7 -0
- package/out/concepts/EntityProperty__.js +14 -8
- package/out/concepts/EntityProperty__.js.map +1 -1
- package/out/concepts/Entity__.d.ts +7 -0
- package/out/concepts/Entity__.js +7 -0
- package/out/concepts/Entity__.js.map +1 -1
- package/out/concepts/EnumItem__.d.ts +7 -0
- package/out/concepts/EnumItem__.js +7 -0
- package/out/concepts/EnumItem__.js.map +1 -1
- package/out/concepts/EnumSelectSetter__.d.ts +109 -0
- package/out/concepts/EnumSelectSetter__.js +163 -0
- package/out/concepts/EnumSelectSetter__.js.map +1 -0
- package/out/concepts/Enum__.d.ts +12 -0
- package/out/concepts/Enum__.js +33 -4
- package/out/concepts/Enum__.js.map +1 -1
- package/out/concepts/EventDeclaration__.d.ts +41 -0
- package/out/concepts/EventDeclaration__.js +81 -0
- package/out/concepts/EventDeclaration__.js.map +1 -0
- package/out/concepts/Event__.d.ts +10 -3
- package/out/concepts/Event__.js +9 -2
- package/out/concepts/Event__.js.map +1 -1
- package/out/concepts/ExternalDestination__.d.ts +7 -0
- package/out/concepts/ExternalDestination__.js +7 -0
- package/out/concepts/ExternalDestination__.js.map +1 -1
- package/out/concepts/ForEachStatement__.d.ts +7 -0
- package/out/concepts/ForEachStatement__.js +7 -0
- package/out/concepts/ForEachStatement__.js.map +1 -1
- package/out/concepts/FrontendLibrary__.d.ts +34 -27
- package/out/concepts/FrontendLibrary__.js +39 -32
- package/out/concepts/FrontendLibrary__.js.map +1 -1
- package/out/concepts/FrontendType__.d.ts +7 -0
- package/out/concepts/FrontendType__.js +7 -0
- package/out/concepts/FrontendType__.js.map +1 -1
- package/out/concepts/FrontendVariable__.d.ts +7 -0
- package/out/concepts/FrontendVariable__.js +7 -0
- package/out/concepts/FrontendVariable__.js.map +1 -1
- package/out/concepts/Frontend__.d.ts +7 -0
- package/out/concepts/Frontend__.js +7 -0
- package/out/concepts/Frontend__.js.map +1 -1
- package/out/concepts/Function__.d.ts +7 -0
- package/out/concepts/Function__.js +7 -0
- package/out/concepts/Function__.js.map +1 -1
- package/out/concepts/I18nInfo__.d.ts +7 -0
- package/out/concepts/I18nInfo__.js +7 -0
- package/out/concepts/I18nInfo__.js.map +1 -1
- package/out/concepts/IconSetter__.d.ts +29 -0
- package/out/concepts/IconSetter__.js +62 -0
- package/out/concepts/IconSetter__.js.map +1 -0
- package/out/concepts/Identifier__.d.ts +7 -0
- package/out/concepts/Identifier__.js +7 -0
- package/out/concepts/Identifier__.js.map +1 -1
- package/out/concepts/IfStatement__.d.ts +7 -0
- package/out/concepts/IfStatement__.js +7 -0
- package/out/concepts/IfStatement__.js.map +1 -1
- package/out/concepts/ImageSetter__.d.ts +25 -0
- package/out/concepts/ImageSetter__.js +53 -0
- package/out/concepts/ImageSetter__.js.map +1 -0
- package/out/concepts/ImportedInterface__.d.ts +7 -0
- package/out/concepts/ImportedInterface__.js +7 -0
- package/out/concepts/ImportedInterface__.js.map +1 -1
- package/out/concepts/InputSetter__.d.ts +29 -0
- package/out/concepts/InputSetter__.js +62 -0
- package/out/concepts/InputSetter__.js.map +1 -0
- package/out/concepts/Integration__.d.ts +7 -0
- package/out/concepts/Integration__.js +7 -0
- package/out/concepts/Integration__.js.map +1 -1
- package/out/concepts/InterfaceParam__.d.ts +7 -0
- package/out/concepts/InterfaceParam__.js +7 -0
- package/out/concepts/InterfaceParam__.js.map +1 -1
- package/out/concepts/Interface__.d.ts +7 -0
- package/out/concepts/Interface__.js +7 -0
- package/out/concepts/Interface__.js.map +1 -1
- package/out/concepts/JSBlock__.d.ts +7 -0
- package/out/concepts/JSBlock__.js +7 -0
- package/out/concepts/JSBlock__.js.map +1 -1
- package/out/concepts/JavaLogic__.d.ts +7 -0
- package/out/concepts/JavaLogic__.js +7 -0
- package/out/concepts/JavaLogic__.js.map +1 -1
- package/out/concepts/LogicDeclaration__.d.ts +289 -0
- package/out/concepts/LogicDeclaration__.js +352 -0
- package/out/concepts/LogicDeclaration__.js.map +1 -0
- package/out/concepts/LogicItem__.d.ts +7 -0
- package/out/concepts/LogicItem__.js +7 -0
- package/out/concepts/LogicItem__.js.map +1 -1
- package/out/concepts/Logic__.d.ts +17 -7
- package/out/concepts/Logic__.js +89 -8
- package/out/concepts/Logic__.js.map +1 -1
- package/out/concepts/MatchCase__.d.ts +7 -0
- package/out/concepts/MatchCase__.js +7 -0
- package/out/concepts/MatchCase__.js.map +1 -1
- package/out/concepts/Match__.d.ts +7 -0
- package/out/concepts/Match__.js +7 -0
- package/out/concepts/Match__.js.map +1 -1
- package/out/concepts/MemberExpression__.d.ts +7 -0
- package/out/concepts/MemberExpression__.js +7 -0
- package/out/concepts/MemberExpression__.js.map +1 -1
- package/out/concepts/MetadataType__.d.ts +7 -0
- package/out/concepts/MetadataType__.js +7 -0
- package/out/concepts/MetadataType__.js.map +1 -1
- package/out/concepts/MicroApp__.d.ts +7 -0
- package/out/concepts/MicroApp__.js +7 -0
- package/out/concepts/MicroApp__.js.map +1 -1
- package/out/concepts/Module__.d.ts +7 -0
- package/out/concepts/Module__.js +7 -0
- package/out/concepts/Module__.js.map +1 -1
- package/out/concepts/MsgTriggerEvent__.d.ts +7 -0
- package/out/concepts/MsgTriggerEvent__.js +7 -0
- package/out/concepts/MsgTriggerEvent__.js.map +1 -1
- package/out/concepts/MsgTriggerLauncher__.d.ts +7 -0
- package/out/concepts/MsgTriggerLauncher__.js +7 -0
- package/out/concepts/MsgTriggerLauncher__.js.map +1 -1
- package/out/concepts/MultiApprovalPolicy__.d.ts +7 -0
- package/out/concepts/MultiApprovalPolicy__.js +7 -0
- package/out/concepts/MultiApprovalPolicy__.js.map +1 -1
- package/out/concepts/Namespace__.d.ts +34 -27
- package/out/concepts/Namespace__.js +39 -32
- package/out/concepts/Namespace__.js.map +1 -1
- package/out/concepts/NewComposite__.d.ts +7 -0
- package/out/concepts/NewComposite__.js +7 -0
- package/out/concepts/NewComposite__.js.map +1 -1
- package/out/concepts/NewList__.d.ts +7 -0
- package/out/concepts/NewList__.js +7 -0
- package/out/concepts/NewList__.js.map +1 -1
- package/out/concepts/NewMap__.d.ts +7 -0
- package/out/concepts/NewMap__.js +7 -0
- package/out/concepts/NewMap__.js.map +1 -1
- package/out/concepts/New__.d.ts +7 -0
- package/out/concepts/New__.js +7 -0
- package/out/concepts/New__.js.map +1 -1
- package/out/concepts/NullLiteral__.d.ts +7 -0
- package/out/concepts/NullLiteral__.js +7 -0
- package/out/concepts/NullLiteral__.js.map +1 -1
- package/out/concepts/NumberInputSetter__.d.ts +45 -0
- package/out/concepts/NumberInputSetter__.js +98 -0
- package/out/concepts/NumberInputSetter__.js.map +1 -0
- package/out/concepts/NumericLiteral__.d.ts +7 -0
- package/out/concepts/NumericLiteral__.js +7 -0
- package/out/concepts/NumericLiteral__.js.map +1 -1
- package/out/concepts/OqlQueryComponent__.d.ts +7 -0
- package/out/concepts/OqlQueryComponent__.js +7 -0
- package/out/concepts/OqlQueryComponent__.js.map +1 -1
- package/out/concepts/OverriddenLogic__.d.ts +7 -0
- package/out/concepts/OverriddenLogic__.js +7 -0
- package/out/concepts/OverriddenLogic__.js.map +1 -1
- package/out/concepts/Paginate__.d.ts +7 -0
- package/out/concepts/Paginate__.js +7 -0
- package/out/concepts/Paginate__.js.map +1 -1
- package/out/concepts/ParamWithGroup__.d.ts +7 -0
- package/out/concepts/ParamWithGroup__.js +7 -0
- package/out/concepts/ParamWithGroup__.js.map +1 -1
- package/out/concepts/Param__.d.ts +9 -9
- package/out/concepts/Param__.js +17 -19
- package/out/concepts/Param__.js.map +1 -1
- package/out/concepts/Point__.d.ts +7 -0
- package/out/concepts/Point__.js +7 -0
- package/out/concepts/Point__.js.map +1 -1
- package/out/concepts/ProcessComponent__.d.ts +7 -0
- package/out/concepts/ProcessComponent__.js +7 -0
- package/out/concepts/ProcessComponent__.js.map +1 -1
- package/out/concepts/ProcessElement__.d.ts +7 -0
- package/out/concepts/ProcessElement__.js +7 -0
- package/out/concepts/ProcessElement__.js.map +1 -1
- package/out/concepts/ProcessOutcome__.d.ts +7 -0
- package/out/concepts/ProcessOutcome__.js +7 -0
- package/out/concepts/ProcessOutcome__.js.map +1 -1
- package/out/concepts/ProcessOutcomes__.d.ts +7 -0
- package/out/concepts/ProcessOutcomes__.js +7 -0
- package/out/concepts/ProcessOutcomes__.js.map +1 -1
- package/out/concepts/Process__.d.ts +7 -0
- package/out/concepts/Process__.js +7 -0
- package/out/concepts/Process__.js.map +1 -1
- package/out/concepts/PropDeclaration__.d.ts +99 -0
- package/out/concepts/PropDeclaration__.js +183 -0
- package/out/concepts/PropDeclaration__.js.map +1 -0
- package/out/concepts/PropertySelectSetter__.d.ts +25 -0
- package/out/concepts/PropertySelectSetter__.js +53 -0
- package/out/concepts/PropertySelectSetter__.js.map +1 -0
- package/out/concepts/QueryAggregateExpression__.d.ts +7 -0
- package/out/concepts/QueryAggregateExpression__.js +7 -0
- package/out/concepts/QueryAggregateExpression__.js.map +1 -1
- package/out/concepts/QueryFieldExpression__.d.ts +7 -0
- package/out/concepts/QueryFieldExpression__.js +7 -0
- package/out/concepts/QueryFieldExpression__.js.map +1 -1
- package/out/concepts/QueryFromExpression__.d.ts +7 -0
- package/out/concepts/QueryFromExpression__.js +7 -0
- package/out/concepts/QueryFromExpression__.js.map +1 -1
- package/out/concepts/QueryGroupByExpression__.d.ts +7 -0
- package/out/concepts/QueryGroupByExpression__.js +7 -0
- package/out/concepts/QueryGroupByExpression__.js.map +1 -1
- package/out/concepts/QueryJoinExpression__.d.ts +7 -0
- package/out/concepts/QueryJoinExpression__.js +7 -0
- package/out/concepts/QueryJoinExpression__.js.map +1 -1
- package/out/concepts/QueryLimitExpression__.d.ts +7 -0
- package/out/concepts/QueryLimitExpression__.js +7 -0
- package/out/concepts/QueryLimitExpression__.js.map +1 -1
- package/out/concepts/QueryOrderByExpression__.d.ts +7 -0
- package/out/concepts/QueryOrderByExpression__.js +7 -0
- package/out/concepts/QueryOrderByExpression__.js.map +1 -1
- package/out/concepts/QuerySelectExpression__.d.ts +7 -0
- package/out/concepts/QuerySelectExpression__.js +7 -0
- package/out/concepts/QuerySelectExpression__.js.map +1 -1
- package/out/concepts/Rect__.d.ts +7 -0
- package/out/concepts/Rect__.js +7 -0
- package/out/concepts/Rect__.js.map +1 -1
- package/out/concepts/Return__.d.ts +8 -1
- package/out/concepts/Return__.js +11 -0
- package/out/concepts/Return__.js.map +1 -1
- package/out/concepts/Role__.d.ts +7 -0
- package/out/concepts/Role__.js +7 -0
- package/out/concepts/Role__.js.map +1 -1
- package/out/concepts/SelectMembers__.d.ts +7 -0
- package/out/concepts/SelectMembers__.js +7 -0
- package/out/concepts/SelectMembers__.js.map +1 -1
- package/out/concepts/SequentialPolicy__.d.ts +7 -0
- package/out/concepts/SequentialPolicy__.js +7 -0
- package/out/concepts/SequentialPolicy__.js.map +1 -1
- package/out/concepts/SetterOption__.d.ts +49 -0
- package/out/concepts/SetterOption__.js +99 -0
- package/out/concepts/SetterOption__.js.map +1 -0
- package/out/concepts/SlotDeclaration__.d.ts +213 -0
- package/out/concepts/SlotDeclaration__.js +287 -0
- package/out/concepts/SlotDeclaration__.js.map +1 -0
- package/out/concepts/Slot__.d.ts +2 -2
- package/out/concepts/Slot__.js +1 -1
- package/out/concepts/Slot__.js.map +1 -1
- package/out/concepts/SqlQueryComponent__.d.ts +7 -0
- package/out/concepts/SqlQueryComponent__.js +7 -0
- package/out/concepts/SqlQueryComponent__.js.map +1 -1
- package/out/concepts/Start__.d.ts +7 -0
- package/out/concepts/Start__.js +7 -0
- package/out/concepts/Start__.js.map +1 -1
- package/out/concepts/StaticString__.d.ts +7 -0
- package/out/concepts/StaticString__.js +7 -0
- package/out/concepts/StaticString__.js.map +1 -1
- package/out/concepts/StringInterpolation__.d.ts +7 -0
- package/out/concepts/StringInterpolation__.js +8 -1
- package/out/concepts/StringInterpolation__.js.map +1 -1
- package/out/concepts/StringLiteral__.d.ts +7 -0
- package/out/concepts/StringLiteral__.js +7 -0
- package/out/concepts/StringLiteral__.js.map +1 -1
- package/out/concepts/StructureProperty__.d.ts +7 -8
- package/out/concepts/StructureProperty__.js +7 -16
- package/out/concepts/StructureProperty__.js.map +1 -1
- package/out/concepts/Structure__.d.ts +7 -0
- package/out/concepts/Structure__.js +7 -0
- package/out/concepts/Structure__.js.map +1 -1
- package/out/concepts/SwitchCase__.d.ts +7 -0
- package/out/concepts/SwitchCase__.js +7 -0
- package/out/concepts/SwitchCase__.js.map +1 -1
- package/out/concepts/SwitchSetter__.d.ts +25 -0
- package/out/concepts/SwitchSetter__.js +53 -0
- package/out/concepts/SwitchSetter__.js.map +1 -0
- package/out/concepts/SwitchStatement__.d.ts +7 -0
- package/out/concepts/SwitchStatement__.js +7 -0
- package/out/concepts/SwitchStatement__.js.map +1 -1
- package/out/concepts/ThemeVariable__.d.ts +29 -0
- package/out/concepts/ThemeVariable__.js +58 -0
- package/out/concepts/ThemeVariable__.js.map +1 -0
- package/out/concepts/Theme__.d.ts +7 -0
- package/out/concepts/Theme__.js +7 -0
- package/out/concepts/Theme__.js.map +1 -1
- package/out/concepts/Transactional__.d.ts +7 -0
- package/out/concepts/Transactional__.js +7 -0
- package/out/concepts/Transactional__.js.map +1 -1
- package/out/concepts/TriggerEvent__.d.ts +9 -81
- package/out/concepts/TriggerEvent__.js +10 -107
- package/out/concepts/TriggerEvent__.js.map +1 -1
- package/out/concepts/TriggerLauncher__.d.ts +7 -0
- package/out/concepts/TriggerLauncher__.js +7 -0
- package/out/concepts/TriggerLauncher__.js.map +1 -1
- package/out/concepts/TypeAnnotation__.d.ts +7 -0
- package/out/concepts/TypeAnnotation__.js +27 -11
- package/out/concepts/TypeAnnotation__.js.map +1 -1
- package/out/concepts/TypeParam__.d.ts +7 -0
- package/out/concepts/TypeParam__.js +7 -0
- package/out/concepts/TypeParam__.js.map +1 -1
- package/out/concepts/UnaryExpression__.d.ts +7 -0
- package/out/concepts/UnaryExpression__.js +7 -0
- package/out/concepts/UnaryExpression__.js.map +1 -1
- package/out/concepts/Unparsed__.d.ts +7 -0
- package/out/concepts/Unparsed__.js +7 -0
- package/out/concepts/Unparsed__.js.map +1 -1
- package/out/concepts/UseComponent__.d.ts +7 -0
- package/out/concepts/UseComponent__.js +7 -0
- package/out/concepts/UseComponent__.js.map +1 -1
- package/out/concepts/ValidationRule__.d.ts +7 -0
- package/out/concepts/ValidationRule__.js +8 -1
- package/out/concepts/ValidationRule__.js.map +1 -1
- package/out/concepts/Variable__.d.ts +8 -1
- package/out/concepts/Variable__.js +11 -0
- package/out/concepts/Variable__.js.map +1 -1
- package/out/concepts/ViewBlockWithImage__.d.ts +33 -0
- package/out/concepts/ViewBlockWithImage__.js +63 -0
- package/out/concepts/ViewBlockWithImage__.js.map +1 -0
- package/out/concepts/ViewBlock__.d.ts +12 -5
- package/out/concepts/ViewBlock__.js +16 -5
- package/out/concepts/ViewBlock__.js.map +1 -1
- package/out/concepts/ViewComponentDeclaration__.d.ts +721 -0
- package/out/concepts/ViewComponentDeclaration__.js +808 -0
- package/out/concepts/ViewComponentDeclaration__.js.map +1 -0
- package/out/concepts/ViewElement__.d.ts +7 -0
- package/out/concepts/ViewElement__.js +8 -6
- package/out/concepts/ViewElement__.js.map +1 -1
- package/out/concepts/View__.d.ts +9 -1
- package/out/concepts/View__.js +66 -5
- package/out/concepts/View__.js.map +1 -1
- package/out/concepts/WhileStatement__.d.ts +7 -0
- package/out/concepts/WhileStatement__.js +7 -0
- package/out/concepts/WhileStatement__.js.map +1 -1
- package/out/concepts/basics/stdlib/nasl.process.js +101 -3
- package/out/concepts/basics/stdlib/nasl.process.js.map +1 -1
- package/out/concepts/basics/stdlib/nasl.util.js +1 -1
- package/out/concepts/basics/stdlib/nasl.util.js.map +1 -1
- package/out/concepts/index__.d.ts +17 -2
- package/out/concepts/index__.js +17 -2
- package/out/concepts/index__.js.map +1 -1
- package/out/concepts/utils/asserts.d.ts +781 -41
- package/out/concepts/utils/asserts.js +1117 -133
- package/out/concepts/utils/asserts.js.map +1 -1
- package/out/concepts/utils/types.d.ts +56 -7
- package/out/generator/genMetaData.js +6 -0
- package/out/generator/genMetaData.js.map +1 -1
- package/out/index.d.ts +1 -0
- package/out/index.js +3 -1
- package/out/index.js.map +1 -1
- package/out/server/createUiTs.js +0 -1
- package/out/server/createUiTs.js.map +1 -1
- package/out/server/entity2LogicNamespace.js +1 -15
- package/out/server/entity2LogicNamespace.js.map +1 -1
- package/out/server/getConnector.d.ts +1 -0
- package/out/server/getConnector.js +35 -32
- package/out/server/getConnector.js.map +1 -1
- package/out/server/getLogics.js +1 -1
- package/out/server/getLogics.js.map +1 -1
- package/out/server/getMemberIdentifier.js +3 -3
- package/out/server/getMemberIdentifier.js.map +1 -1
- package/out/templator/genEditTableBlock.js +1 -1
- package/out/templator/genEditTableBlock.js.map +1 -1
- package/out/templator/genGridViewBlock.js +1 -1
- package/out/templator/genGridViewBlock.js.map +1 -1
- package/out/templator/genTableBlock.js +2 -2
- package/out/templator/genTableBlock.js.map +1 -1
- package/package.json +1 -1
- package/sandbox/stdlib/nasl.collection.ts +5 -3
- package/sandbox/stdlib/nasl.core.ts +2 -1
- package/sandbox/stdlib/nasl.process.ts +18 -0
- package/sandbox/stdlib/nasl.util.ts +5 -3
- package/src/common/BaseNode.ts +10 -1
- package/src/concepts/Abort__.ts +7 -0
- package/src/concepts/AbstractInterface__.ts +7 -0
- package/src/concepts/Anchor__.ts +7 -0
- package/src/concepts/AnonymousFunction__.ts +7 -0
- package/src/concepts/App__.ts +8 -1
- package/src/concepts/Argument__.ts +7 -0
- package/src/concepts/Assignee__.ts +7 -0
- package/src/concepts/AssignmentLine__.ts +7 -0
- package/src/concepts/Assignment__.ts +7 -0
- package/src/concepts/Attribute__.ts +12 -22
- package/src/concepts/AuthInterface__.ts +7 -0
- package/src/concepts/AuthLogicForCallInterface__.ts +7 -0
- package/src/concepts/AuthLogic__.ts +7 -0
- package/src/concepts/BackendVariable__.ts +7 -0
- package/src/concepts/Backend__.ts +7 -0
- package/src/concepts/BaseSetter__.ts +72 -0
- package/src/concepts/BatchAssignment__.ts +7 -0
- package/src/concepts/BinaryExpression__.ts +7 -0
- package/src/concepts/BindAttribute__.ts +8 -1
- package/src/concepts/BindDirective__.ts +7 -0
- package/src/concepts/BindEvent__.ts +7 -0
- package/src/concepts/BindStyle__.ts +7 -0
- package/src/concepts/Block__.ts +7 -0
- package/src/concepts/BooleanLiteral__.ts +7 -0
- package/src/concepts/BusinessComponent__.ts +20 -10
- package/src/concepts/BusinessLogic__.ts +7 -0
- package/src/concepts/CallAuthInterface__.ts +7 -0
- package/src/concepts/CallConnector__.ts +7 -0
- package/src/concepts/CallEvent__.ts +7 -0
- package/src/concepts/CallFunction__.ts +84 -2
- package/src/concepts/CallInterface__.ts +7 -0
- package/src/concepts/CallLogic__.ts +25 -16
- package/src/concepts/CallQueryComponent__.ts +16 -9
- package/src/concepts/CapsulesSetter__.ts +254 -0
- package/src/concepts/Comment__.ts +7 -0
- package/src/concepts/CompletionProperty__.ts +7 -20
- package/src/concepts/ConfigGroup__.ts +7 -0
- package/src/concepts/ConfigPropertyValue__.ts +7 -0
- package/src/concepts/ConfigProperty__.ts +7 -0
- package/src/concepts/Configuration__.ts +7 -0
- package/src/concepts/Connection__.ts +7 -0
- package/src/concepts/ConnectorTrigger__.ts +7 -0
- package/src/concepts/Connector__.ts +7 -0
- package/src/concepts/Constant__.ts +7 -0
- package/src/concepts/CountersignPolicy__.ts +7 -0
- package/src/concepts/DataSource__.ts +7 -0
- package/src/concepts/DatabaseTypeAnnotation__.ts +7 -0
- package/src/concepts/DefaultValue__.ts +7 -0
- package/src/concepts/Destination__.ts +7 -0
- package/src/concepts/End__.ts +7 -0
- package/src/concepts/EntityIndex__.ts +7 -0
- package/src/concepts/EntityProperty__.ts +14 -8
- package/src/concepts/Entity__.ts +7 -0
- package/src/concepts/EnumItem__.ts +7 -0
- package/src/concepts/EnumSelectSetter__.ts +254 -0
- package/src/concepts/Enum__.ts +38 -5
- package/src/concepts/EventDeclaration__.ts +95 -0
- package/src/concepts/Event__.ts +10 -3
- package/src/concepts/ExternalDestination__.ts +7 -0
- package/src/concepts/ForEachStatement__.ts +7 -0
- package/src/concepts/FrontendLibrary__.ts +93 -62
- package/src/concepts/FrontendType__.ts +7 -0
- package/src/concepts/FrontendVariable__.ts +7 -0
- package/src/concepts/Frontend__.ts +7 -0
- package/src/concepts/Function__.ts +7 -0
- package/src/concepts/I18nInfo__.ts +7 -0
- package/src/concepts/IconSetter__.ts +72 -0
- package/src/concepts/Identifier__.ts +7 -0
- package/src/concepts/IfStatement__.ts +7 -0
- package/src/concepts/ImageSetter__.ts +65 -0
- package/src/concepts/ImportedInterface__.ts +7 -0
- package/src/concepts/InputSetter__.ts +72 -0
- package/src/concepts/Integration__.ts +7 -0
- package/src/concepts/InterfaceParam__.ts +7 -0
- package/src/concepts/Interface__.ts +7 -0
- package/src/concepts/JSBlock__.ts +7 -0
- package/src/concepts/JavaLogic__.ts +7 -0
- package/src/concepts/LogicDeclaration__.ts +657 -0
- package/src/concepts/LogicItem__.ts +7 -0
- package/src/concepts/Logic__.ts +122 -34
- package/src/concepts/MatchCase__.ts +10 -3
- package/src/concepts/Match__.ts +9 -2
- package/src/concepts/MemberExpression__.ts +7 -0
- package/src/concepts/MetadataType__.ts +7 -0
- package/src/concepts/MicroApp__.ts +7 -0
- package/src/concepts/Module__.ts +7 -0
- package/src/concepts/MsgTriggerEvent__.ts +7 -0
- package/src/concepts/MsgTriggerLauncher__.ts +7 -0
- package/src/concepts/MultiApprovalPolicy__.ts +7 -0
- package/src/concepts/Namespace__.ts +91 -60
- package/src/concepts/NewComposite__.ts +7 -0
- package/src/concepts/NewList__.ts +7 -0
- package/src/concepts/NewMap__.ts +7 -0
- package/src/concepts/New__.ts +7 -0
- package/src/concepts/NullLiteral__.ts +7 -0
- package/src/concepts/NumberInputSetter__.ts +104 -0
- package/src/concepts/NumericLiteral__.ts +7 -0
- package/src/concepts/OqlQueryComponent__.ts +7 -0
- package/src/concepts/OverriddenLogic__.ts +7 -0
- package/src/concepts/Paginate__.ts +7 -0
- package/src/concepts/ParamWithGroup__.ts +7 -0
- package/src/concepts/Param__.ts +14 -24
- package/src/concepts/Point__.ts +7 -0
- package/src/concepts/ProcessComponent__.ts +7 -0
- package/src/concepts/ProcessElement__.ts +7 -0
- package/src/concepts/ProcessOutcome__.ts +7 -0
- package/src/concepts/ProcessOutcomes__.ts +7 -0
- package/src/concepts/Process__.ts +7 -0
- package/src/concepts/PropDeclaration__.ts +209 -0
- package/src/concepts/PropertySelectSetter__.ts +65 -0
- package/src/concepts/QueryAggregateExpression__.ts +7 -0
- package/src/concepts/QueryFieldExpression__.ts +7 -0
- package/src/concepts/QueryFromExpression__.ts +7 -0
- package/src/concepts/QueryGroupByExpression__.ts +7 -0
- package/src/concepts/QueryJoinExpression__.ts +7 -0
- package/src/concepts/QueryLimitExpression__.ts +7 -0
- package/src/concepts/QueryOrderByExpression__.ts +7 -0
- package/src/concepts/QuerySelectExpression__.ts +7 -0
- package/src/concepts/Rect__.ts +7 -0
- package/src/concepts/Return__.ts +8 -1
- package/src/concepts/Role__.ts +7 -0
- package/src/concepts/SelectMembers__.ts +7 -0
- package/src/concepts/SequentialPolicy__.ts +7 -0
- package/src/concepts/SetterOption__.ts +111 -0
- package/src/concepts/SlotDeclaration__.ts +488 -0
- package/src/concepts/Slot__.ts +2 -2
- package/src/concepts/SqlQueryComponent__.ts +7 -0
- package/src/concepts/Start__.ts +7 -0
- package/src/concepts/StaticString__.ts +7 -0
- package/src/concepts/StringInterpolation__.ts +8 -1
- package/src/concepts/StringLiteral__.ts +7 -0
- package/src/concepts/StructureProperty__.ts +7 -20
- package/src/concepts/Structure__.ts +7 -0
- package/src/concepts/SwitchCase__.ts +7 -0
- package/src/concepts/SwitchSetter__.ts +65 -0
- package/src/concepts/SwitchStatement__.ts +7 -0
- package/src/concepts/ThemeVariable__.ts +71 -0
- package/src/concepts/Theme__.ts +7 -0
- package/src/concepts/Transactional__.ts +7 -0
- package/src/concepts/TriggerEvent__.ts +12 -185
- package/src/concepts/TriggerLauncher__.ts +7 -0
- package/src/concepts/TypeAnnotation__.ts +29 -12
- package/src/concepts/TypeParam__.ts +7 -0
- package/src/concepts/UnaryExpression__.ts +7 -0
- package/src/concepts/Unparsed__.ts +7 -0
- package/src/concepts/UseComponent__.ts +7 -0
- package/src/concepts/ValidationRule__.ts +8 -1
- package/src/concepts/Variable__.ts +8 -1
- package/src/concepts/ViewBlockWithImage__.ts +80 -0
- package/src/concepts/ViewBlock__.ts +16 -9
- package/src/concepts/ViewComponentDeclaration__.ts +1670 -0
- package/src/concepts/ViewElement__.ts +9 -7
- package/src/concepts/View__.ts +91 -25
- package/src/concepts/WhileStatement__.ts +7 -0
- package/src/concepts/basics/stdlib/nasl.process.ts +103 -7
- package/src/concepts/basics/stdlib/nasl.util.ts +1 -1
- package/src/concepts/index__.ts +17 -2
- package/src/concepts/utils/asserts.ts +1223 -166
- package/src/concepts/utils/types.ts +85 -8
- package/src/generator/genMetaData.ts +7 -1
- package/src/index.ts +1 -0
- package/src/server/createUiTs.ts +0 -1
- package/src/server/entity2LogicNamespace.ts +1 -16
- package/src/server/getConnector.ts +40 -32
- package/src/server/getLogics.ts +1 -1
- package/src/server/getMemberIdentifier.ts +3 -3
- package/src/templator/genEditTableBlock.ts +1 -1
- package/src/templator/genGridViewBlock.ts +1 -1
- package/src/templator/genTableBlock.ts +2 -2
- package/test/concepts/entity/__snapshots__/toEmbeddedTS.spec.ts.snap +2 -2
- package/.nyc_output/processinfo/d58d92d8-c0d6-479b-9f82-1f4da8e73ff3.json +0 -1
- package/out/concepts/ViewComponent__.d.ts +0 -549
- package/out/concepts/ViewComponent__.js +0 -620
- package/out/concepts/ViewComponent__.js.map +0 -1
- package/src/concepts/ViewComponent__.ts +0 -1245
|
@@ -0,0 +1,352 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
19
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
20
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
21
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
22
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
23
|
+
};
|
|
24
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
25
|
+
if (mod && mod.__esModule) return mod;
|
|
26
|
+
var result = {};
|
|
27
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
28
|
+
__setModuleDefault(result, mod);
|
|
29
|
+
return result;
|
|
30
|
+
};
|
|
31
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
32
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
33
|
+
};
|
|
34
|
+
var LogicDeclaration_1;
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.LogicDeclaration = void 0;
|
|
37
|
+
const decorators_1 = require("../decorators");
|
|
38
|
+
const utils = __importStar(require("../utils"));
|
|
39
|
+
const asserts = __importStar(require("./utils/asserts"));
|
|
40
|
+
const BaseNode_1 = __importDefault(require("../common/BaseNode"));
|
|
41
|
+
/**
|
|
42
|
+
* 逻辑声明
|
|
43
|
+
*/
|
|
44
|
+
let LogicDeclaration = LogicDeclaration_1 = class LogicDeclaration extends BaseNode_1.default {
|
|
45
|
+
/**
|
|
46
|
+
* @param source 需要合并的部分参数
|
|
47
|
+
*/
|
|
48
|
+
constructor(source) {
|
|
49
|
+
source = Object.assign({}, LogicDeclaration_1.getDefaultOptions(), source);
|
|
50
|
+
super(source);
|
|
51
|
+
/**
|
|
52
|
+
* 逻辑名称
|
|
53
|
+
*/
|
|
54
|
+
this.name = '';
|
|
55
|
+
/**
|
|
56
|
+
* 类型参数列表
|
|
57
|
+
*/
|
|
58
|
+
this.typeParams = null;
|
|
59
|
+
/**
|
|
60
|
+
* 输入参数列表
|
|
61
|
+
*/
|
|
62
|
+
this.params = [];
|
|
63
|
+
/**
|
|
64
|
+
* 输出参数列表
|
|
65
|
+
*/
|
|
66
|
+
this.returns = [];
|
|
67
|
+
super.subConstructor(source);
|
|
68
|
+
}
|
|
69
|
+
static from(source, parentNode, parentKey) {
|
|
70
|
+
return super.from(source, parentNode, parentKey);
|
|
71
|
+
}
|
|
72
|
+
getTypeParamExistingNames(excludedList = []) {
|
|
73
|
+
const excludedSet = new Set(excludedList);
|
|
74
|
+
return (this.typeParams || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
|
|
75
|
+
}
|
|
76
|
+
getTypeParamUniqueName(name = 'typeParam1') {
|
|
77
|
+
return utils.unique(name, this.getTypeParamExistingNames(), undefined, false);
|
|
78
|
+
}
|
|
79
|
+
_insertTypeParamAt(options, index) {
|
|
80
|
+
const typeParamOptions = {};
|
|
81
|
+
const relationOptions = { parentNode: this, parentKey: 'typeParams' };
|
|
82
|
+
const TypeParam = (0, decorators_1.getConceptConstructor)('TypeParam');
|
|
83
|
+
let typeParam;
|
|
84
|
+
if (!options) {
|
|
85
|
+
typeParam = TypeParam.from({
|
|
86
|
+
...typeParamOptions,
|
|
87
|
+
name: this.getTypeParamUniqueName(),
|
|
88
|
+
}, this, 'typeParams');
|
|
89
|
+
}
|
|
90
|
+
else if (typeof options === 'string') {
|
|
91
|
+
typeParam = TypeParam.from({
|
|
92
|
+
...typeParamOptions,
|
|
93
|
+
name: options,
|
|
94
|
+
}, this, 'typeParams');
|
|
95
|
+
}
|
|
96
|
+
else if (asserts.isTypeParam(options)) {
|
|
97
|
+
options.ensureDelete(); // 同一实例不支持多处存在
|
|
98
|
+
typeParam = options;
|
|
99
|
+
Object.assign(typeParam, relationOptions);
|
|
100
|
+
}
|
|
101
|
+
else {
|
|
102
|
+
typeParam = TypeParam.from({
|
|
103
|
+
...typeParamOptions,
|
|
104
|
+
...options,
|
|
105
|
+
}, this, 'typeParams');
|
|
106
|
+
}
|
|
107
|
+
this.typeParams.splice(index, 0, typeParam);
|
|
108
|
+
return typeParam;
|
|
109
|
+
}
|
|
110
|
+
insertTypeParamAt(options, index) {
|
|
111
|
+
const node = this._insertTypeParamAt(options, index);
|
|
112
|
+
node.create({
|
|
113
|
+
index,
|
|
114
|
+
parentNode: this,
|
|
115
|
+
parentKey: 'typeParams',
|
|
116
|
+
});
|
|
117
|
+
return node;
|
|
118
|
+
}
|
|
119
|
+
_addTypeParam(options) {
|
|
120
|
+
const index = this.typeParams.length;
|
|
121
|
+
return this._insertTypeParamAt(options, index);
|
|
122
|
+
}
|
|
123
|
+
addTypeParam(options) {
|
|
124
|
+
const node = this._addTypeParam(options);
|
|
125
|
+
const index = this.typeParams.indexOf(node);
|
|
126
|
+
node.create({
|
|
127
|
+
index,
|
|
128
|
+
parentNode: this,
|
|
129
|
+
parentKey: 'typeParams',
|
|
130
|
+
});
|
|
131
|
+
return node;
|
|
132
|
+
}
|
|
133
|
+
getParamExistingNames(excludedList = []) {
|
|
134
|
+
const excludedSet = new Set(excludedList);
|
|
135
|
+
return (this.params || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
|
|
136
|
+
}
|
|
137
|
+
getParamUniqueName(name = 'param1') {
|
|
138
|
+
return utils.unique(name, this.getParamExistingNames(), undefined, false);
|
|
139
|
+
}
|
|
140
|
+
_insertParamAt(options, index) {
|
|
141
|
+
const paramOptions = {};
|
|
142
|
+
const relationOptions = { parentNode: this, parentKey: 'params' };
|
|
143
|
+
const Param = (0, decorators_1.getConceptConstructor)('Param');
|
|
144
|
+
let param;
|
|
145
|
+
if (!options) {
|
|
146
|
+
param = Param.from({
|
|
147
|
+
...paramOptions,
|
|
148
|
+
name: this.getParamUniqueName(),
|
|
149
|
+
}, this, 'params');
|
|
150
|
+
}
|
|
151
|
+
else if (typeof options === 'string') {
|
|
152
|
+
param = Param.from({
|
|
153
|
+
...paramOptions,
|
|
154
|
+
name: options,
|
|
155
|
+
}, this, 'params');
|
|
156
|
+
}
|
|
157
|
+
else if (asserts.isParam(options)) {
|
|
158
|
+
options.ensureDelete(); // 同一实例不支持多处存在
|
|
159
|
+
param = options;
|
|
160
|
+
Object.assign(param, relationOptions);
|
|
161
|
+
}
|
|
162
|
+
else {
|
|
163
|
+
param = Param.from({
|
|
164
|
+
...paramOptions,
|
|
165
|
+
...options,
|
|
166
|
+
}, this, 'params');
|
|
167
|
+
}
|
|
168
|
+
this.params.splice(index, 0, param);
|
|
169
|
+
return param;
|
|
170
|
+
}
|
|
171
|
+
insertParamAt(options, index) {
|
|
172
|
+
const node = this._insertParamAt(options, index);
|
|
173
|
+
node.create({
|
|
174
|
+
index,
|
|
175
|
+
parentNode: this,
|
|
176
|
+
parentKey: 'params',
|
|
177
|
+
});
|
|
178
|
+
return node;
|
|
179
|
+
}
|
|
180
|
+
_addParam(options) {
|
|
181
|
+
const index = this.params.length;
|
|
182
|
+
return this._insertParamAt(options, index);
|
|
183
|
+
}
|
|
184
|
+
addParam(options) {
|
|
185
|
+
const node = this._addParam(options);
|
|
186
|
+
const index = this.params.indexOf(node);
|
|
187
|
+
node.create({
|
|
188
|
+
index,
|
|
189
|
+
parentNode: this,
|
|
190
|
+
parentKey: 'params',
|
|
191
|
+
});
|
|
192
|
+
return node;
|
|
193
|
+
}
|
|
194
|
+
getReturnExistingNames(excludedList = []) {
|
|
195
|
+
const excludedSet = new Set(excludedList);
|
|
196
|
+
return (this.returns || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
|
|
197
|
+
}
|
|
198
|
+
getReturnUniqueName(name = 'ret1') {
|
|
199
|
+
return utils.unique(name, this.getReturnExistingNames(), undefined, false);
|
|
200
|
+
}
|
|
201
|
+
_insertReturnAt(options, index) {
|
|
202
|
+
const retOptions = {};
|
|
203
|
+
const relationOptions = { parentNode: this, parentKey: 'returns' };
|
|
204
|
+
const Return = (0, decorators_1.getConceptConstructor)('Return');
|
|
205
|
+
let ret;
|
|
206
|
+
if (!options) {
|
|
207
|
+
ret = Return.from({
|
|
208
|
+
...retOptions,
|
|
209
|
+
name: this.getReturnUniqueName(),
|
|
210
|
+
}, this, 'returns');
|
|
211
|
+
}
|
|
212
|
+
else if (typeof options === 'string') {
|
|
213
|
+
ret = Return.from({
|
|
214
|
+
...retOptions,
|
|
215
|
+
name: options,
|
|
216
|
+
}, this, 'returns');
|
|
217
|
+
}
|
|
218
|
+
else if (asserts.isReturn(options)) {
|
|
219
|
+
options.ensureDelete(); // 同一实例不支持多处存在
|
|
220
|
+
ret = options;
|
|
221
|
+
Object.assign(ret, relationOptions);
|
|
222
|
+
}
|
|
223
|
+
else {
|
|
224
|
+
ret = Return.from({
|
|
225
|
+
...retOptions,
|
|
226
|
+
...options,
|
|
227
|
+
}, this, 'returns');
|
|
228
|
+
}
|
|
229
|
+
this.returns.splice(index, 0, ret);
|
|
230
|
+
return ret;
|
|
231
|
+
}
|
|
232
|
+
insertReturnAt(options, index) {
|
|
233
|
+
const node = this._insertReturnAt(options, index);
|
|
234
|
+
node.create({
|
|
235
|
+
index,
|
|
236
|
+
parentNode: this,
|
|
237
|
+
parentKey: 'returns',
|
|
238
|
+
});
|
|
239
|
+
return node;
|
|
240
|
+
}
|
|
241
|
+
_addReturn(options) {
|
|
242
|
+
const index = this.returns.length;
|
|
243
|
+
return this._insertReturnAt(options, index);
|
|
244
|
+
}
|
|
245
|
+
addReturn(options) {
|
|
246
|
+
const node = this._addReturn(options);
|
|
247
|
+
const index = this.returns.indexOf(node);
|
|
248
|
+
node.create({
|
|
249
|
+
index,
|
|
250
|
+
parentNode: this,
|
|
251
|
+
parentKey: 'returns',
|
|
252
|
+
});
|
|
253
|
+
return node;
|
|
254
|
+
}
|
|
255
|
+
removeTypeParam(options) {
|
|
256
|
+
let typeParam;
|
|
257
|
+
if (typeof options === 'string') {
|
|
258
|
+
typeParam = this.typeParams.find((item) => item.name === options);
|
|
259
|
+
if (!typeParam) {
|
|
260
|
+
throw new Error('找不到类型参数 ' + options);
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
else {
|
|
264
|
+
typeParam = options;
|
|
265
|
+
}
|
|
266
|
+
return typeParam.delete();
|
|
267
|
+
}
|
|
268
|
+
removeParam(options) {
|
|
269
|
+
let param;
|
|
270
|
+
if (typeof options === 'string') {
|
|
271
|
+
param = this.params.find((item) => item.name === options);
|
|
272
|
+
if (!param) {
|
|
273
|
+
throw new Error('找不到输入参数 ' + options);
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
else {
|
|
277
|
+
param = options;
|
|
278
|
+
}
|
|
279
|
+
return param.delete();
|
|
280
|
+
}
|
|
281
|
+
removeReturn(options) {
|
|
282
|
+
let ret;
|
|
283
|
+
if (typeof options === 'string') {
|
|
284
|
+
ret = this.returns.find((item) => item.name === options);
|
|
285
|
+
if (!ret) {
|
|
286
|
+
throw new Error('找不到输出参数 ' + options);
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
else {
|
|
290
|
+
ret = options;
|
|
291
|
+
}
|
|
292
|
+
return ret.delete();
|
|
293
|
+
}
|
|
294
|
+
};
|
|
295
|
+
/** 类名 */
|
|
296
|
+
LogicDeclaration.ConceptName = 'LogicDeclaration';
|
|
297
|
+
/**
|
|
298
|
+
* 是否为抽象类
|
|
299
|
+
* 抽象类不能产生 concept: string
|
|
300
|
+
*/
|
|
301
|
+
LogicDeclaration.isAbstract = false;
|
|
302
|
+
/** 继承链 */
|
|
303
|
+
LogicDeclaration.inheritanceChain = ['BaseNode'];
|
|
304
|
+
__decorate([
|
|
305
|
+
(0, decorators_1.property)('concept')
|
|
306
|
+
], LogicDeclaration.prototype, "concept", void 0);
|
|
307
|
+
__decorate([
|
|
308
|
+
(0, decorators_1.property)({
|
|
309
|
+
objectRef: '',
|
|
310
|
+
})
|
|
311
|
+
], LogicDeclaration.prototype, "name", void 0);
|
|
312
|
+
__decorate([
|
|
313
|
+
(0, decorators_1.property)({
|
|
314
|
+
objectRef: '',
|
|
315
|
+
})
|
|
316
|
+
], LogicDeclaration.prototype, "title", void 0);
|
|
317
|
+
__decorate([
|
|
318
|
+
(0, decorators_1.property)({
|
|
319
|
+
objectRef: '',
|
|
320
|
+
})
|
|
321
|
+
], LogicDeclaration.prototype, "description", void 0);
|
|
322
|
+
__decorate([
|
|
323
|
+
(0, decorators_1.property)({
|
|
324
|
+
objectRef: 'TypeParam',
|
|
325
|
+
isArray: true,
|
|
326
|
+
defaultValue: null,
|
|
327
|
+
})
|
|
328
|
+
], LogicDeclaration.prototype, "typeParams", void 0);
|
|
329
|
+
__decorate([
|
|
330
|
+
(0, decorators_1.property)({
|
|
331
|
+
objectRef: 'Param',
|
|
332
|
+
isArray: true,
|
|
333
|
+
defaultValue: [],
|
|
334
|
+
})
|
|
335
|
+
], LogicDeclaration.prototype, "params", void 0);
|
|
336
|
+
__decorate([
|
|
337
|
+
(0, decorators_1.property)({
|
|
338
|
+
objectRef: 'Return',
|
|
339
|
+
isArray: true,
|
|
340
|
+
defaultValue: [],
|
|
341
|
+
})
|
|
342
|
+
], LogicDeclaration.prototype, "returns", void 0);
|
|
343
|
+
LogicDeclaration = LogicDeclaration_1 = __decorate([
|
|
344
|
+
(0, decorators_1.concept)('逻辑声明')
|
|
345
|
+
], LogicDeclaration);
|
|
346
|
+
exports.LogicDeclaration = LogicDeclaration;
|
|
347
|
+
exports.default = LogicDeclaration;
|
|
348
|
+
//================================================================================
|
|
349
|
+
// ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑
|
|
350
|
+
// 自动生成的代码已结束。下面可以手动编写。
|
|
351
|
+
//================================================================================
|
|
352
|
+
//# sourceMappingURL=LogicDeclaration__.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1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e,gBAAgB,CAAC;AAChC,kFAAkF;AAClF,gEAAgE;AAChE,uBAAuB;AACvB,kFAAkF"}
|
|
@@ -17,6 +17,13 @@ import BaseNode from '../common/BaseNode';
|
|
|
17
17
|
export declare abstract class LogicItem extends BaseNode {
|
|
18
18
|
/** 类名 */
|
|
19
19
|
static readonly ConceptName: string;
|
|
20
|
+
/**
|
|
21
|
+
* 是否为抽象类
|
|
22
|
+
* 抽象类不能产生 concept: string
|
|
23
|
+
*/
|
|
24
|
+
static isAbstract: boolean;
|
|
25
|
+
/** 继承链 */
|
|
26
|
+
static readonly inheritanceChain: string[];
|
|
20
27
|
/**
|
|
21
28
|
* 产品概念
|
|
22
29
|
*/
|
|
@@ -248,6 +248,13 @@ let LogicItem = LogicItem_1 = class LogicItem extends BaseNode_1.default {
|
|
|
248
248
|
};
|
|
249
249
|
/** 类名 */
|
|
250
250
|
LogicItem.ConceptName = 'LogicItem';
|
|
251
|
+
/**
|
|
252
|
+
* 是否为抽象类
|
|
253
|
+
* 抽象类不能产生 concept: string
|
|
254
|
+
*/
|
|
255
|
+
LogicItem.isAbstract = true;
|
|
256
|
+
/** 继承链 */
|
|
257
|
+
LogicItem.inheritanceChain = ['BaseNode'];
|
|
251
258
|
__decorate([
|
|
252
259
|
(0, decorators_1.property)('concept')
|
|
253
260
|
], LogicItem.prototype, "concept", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LogicItem__.js","sourceRoot":"","sources":["../../src/concepts/LogicItem__.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,wDAAoE;AACpE,8CAMuB;AAoBvB,8CAAyF;AAMzF,kEAA0C;AAE1C;;GAEG;AAEH,IAAsB,SAAS,iBAA/B,MAAsB,SAAU,SAAQ,kBAAQ;
|
|
1
|
+
{"version":3,"file":"LogicItem__.js","sourceRoot":"","sources":["../../src/concepts/LogicItem__.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,wDAAoE;AACpE,8CAMuB;AAoBv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AC;wCACoB;AAQtB;IAHC,IAAA,qBAAQ,EAAC;QACR,SAAS,EAAE,EAAE;KACd,CAAC;8CAC0B;AAQ5B;IAHC,IAAA,qBAAQ,EAAC;QACR,SAAS,EAAE,EAAE;KACd,CAAC;yCACuB;AAQzB;IAHC,IAAA,qBAAQ,EAAC;QACR,SAAS,EAAE,EAAE;KACd,CAAC;0CACsB;AAQxB;IAHC,IAAA,qBAAQ,EAAC;QACR,SAAS,EAAE,EAAE;KACd,CAAC;0CACsB;AAkLxB;IADC,0BAAa;6CAIb;AArSmB,SAAS;IAD9B,IAAA,oBAAO,EAAC,KAAK,CAAC;GACO,SAAS,CAkV9B;AAlVqB,8BAAS;AAoV/B,kBAAe,SAAS,CAAC;AACzB,kFAAkF;AAClF,gEAAgE;AAChE,uBAAuB;AACvB,kFAAkF"}
|
|
@@ -5,12 +5,14 @@ import type Assignment from './Assignment__';
|
|
|
5
5
|
import type BatchAssignment from './BatchAssignment__';
|
|
6
6
|
import type MatchCase from './MatchCase__';
|
|
7
7
|
import type BusinessComponent from './BusinessComponent__';
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
8
|
+
import type AnonymousFunction from './AnonymousFunction__';
|
|
9
|
+
import type Module from './Module__';
|
|
10
|
+
import type Connector from './Connector__';
|
|
11
|
+
import type View from './View__';
|
|
12
|
+
import type Frontend from './Frontend__';
|
|
13
|
+
import type ProcessElement from './ProcessElement__';
|
|
14
|
+
import type Process from './Process__';
|
|
15
|
+
import type CallFunction from './CallFunction__';
|
|
14
16
|
import { EventPayload } from '../common/EventEmitter';
|
|
15
17
|
import * as types from './utils/types';
|
|
16
18
|
import BaseNode from '../common/BaseNode';
|
|
@@ -26,6 +28,13 @@ import LogicItem from './LogicItem__';
|
|
|
26
28
|
export declare class Logic extends BaseNode {
|
|
27
29
|
/** 类名 */
|
|
28
30
|
static readonly ConceptName: string;
|
|
31
|
+
/**
|
|
32
|
+
* 是否为抽象类
|
|
33
|
+
* 抽象类不能产生 concept: string
|
|
34
|
+
*/
|
|
35
|
+
static isAbstract: boolean;
|
|
36
|
+
/** 继承链 */
|
|
37
|
+
static readonly inheritanceChain: string[];
|
|
29
38
|
/**
|
|
30
39
|
* 产品概念
|
|
31
40
|
*/
|
|
@@ -585,9 +594,10 @@ export declare class Logic extends BaseNode {
|
|
|
585
594
|
get tsName(): string;
|
|
586
595
|
toEmbeddedTS(state?: TranslatorState, prefix?: string, hideDefaultValue?: boolean): TranslatorGenerator;
|
|
587
596
|
toNaturalTS(state?: TranslatorState, prefix?: string, logicName?: string, currentNode?: BaseNode): string;
|
|
588
|
-
getRightCode(code: string, assignment: Assignment | BatchAssignment, rightNode: any): Generator<any, string, any>;
|
|
597
|
+
getRightCode(code: string, assignment: Assignment | BatchAssignment | CallFunction, rightNode: any): Generator<any, string, any>;
|
|
589
598
|
handleReplaceCode(code: string, variable: string, replaceCode: string): string;
|
|
590
599
|
handleForEachCode(code: string, forEachStatement: ForEachStatement): Generator<any, string, any>;
|
|
600
|
+
handleCollectionCode(code: string, anonymousFunction: AnonymousFunction, callFunction: CallFunction): Generator<any, string, any>;
|
|
591
601
|
handleMatchCaseCode(code: string, matchCase: MatchCase): Generator<any, string, any>;
|
|
592
602
|
getNamespace(): string;
|
|
593
603
|
getTsNamespace(): string;
|
package/out/concepts/Logic__.js
CHANGED
|
@@ -940,16 +940,30 @@ let Logic = Logic_1 = class Logic extends BaseNode_1.default {
|
|
|
940
940
|
const advanceMap = new Map();
|
|
941
941
|
// const needGetSourceMapOqlList: Promise<any>[] = [];
|
|
942
942
|
yield* self.traverseChildrenGenerator(function* traverseChildrenGenerator(el) {
|
|
943
|
-
if (el && (
|
|
944
|
-
|
|
945
|
-
|
|
943
|
+
if (el && (
|
|
944
|
+
// 批量赋值
|
|
945
|
+
asserts.isBatchAssignment(el)
|
|
946
|
+
// 赋值
|
|
947
|
+
|| (asserts.isAssignment(el) && el.left?.name)
|
|
948
|
+
// 内置函数对集合类型的推导
|
|
949
|
+
|| (asserts.isCallFunction(el) && el.derivablecollection?.name))) {
|
|
950
|
+
if (asserts.isAssignment(el) || asserts.isCallFunction(el)) {
|
|
951
|
+
let expression;
|
|
952
|
+
if (asserts.isAssignment(el)) {
|
|
953
|
+
// 需要被推导的赋值左侧
|
|
954
|
+
expression = el.left;
|
|
955
|
+
}
|
|
956
|
+
else if (asserts.isCallFunction(el)) {
|
|
957
|
+
// 需要被推导的集合
|
|
958
|
+
expression = el.derivablecollection;
|
|
959
|
+
}
|
|
960
|
+
// 宽泛意义上的变量(变量+出参)
|
|
961
|
+
const advanceVar = [...(self.variables || []), ...(self.returns || [])].find((variable) => {
|
|
962
|
+
return !variable.typeAnnotation && expression?.name === variable.name;
|
|
963
|
+
});
|
|
946
964
|
if (advanceVar && !advanceMap.get(advanceVar)) {
|
|
947
965
|
advanceMap.set(advanceVar, el);
|
|
948
966
|
}
|
|
949
|
-
const advanceRn = self.returns?.find((ret) => !ret.typeAnnotation && el.left?.name === ret.name);
|
|
950
|
-
if (advanceRn && !advanceMap.get(advanceRn)) {
|
|
951
|
-
advanceMap.set(advanceRn, el);
|
|
952
|
-
}
|
|
953
967
|
}
|
|
954
968
|
else if (asserts.isBatchAssignment(el)) {
|
|
955
969
|
yield* (0, time_slicing_1.wrapForEachToGenerator)(el.assignmentLines, function* warpForEachGenerator({ leftIndex }) {
|
|
@@ -1014,6 +1028,26 @@ let Logic = Logic_1 = class Logic extends BaseNode_1.default {
|
|
|
1014
1028
|
return;
|
|
1015
1029
|
}
|
|
1016
1030
|
code += `${(0, translator_1.indent)((state?.tabSize || 0) + 1)}// @ts-ignore\n`;
|
|
1031
|
+
if (asserts.isCallFunction(assignment)) {
|
|
1032
|
+
yield* (0, time_slicing_1.wrapForEachToGenerator)([
|
|
1033
|
+
{
|
|
1034
|
+
key: 'key',
|
|
1035
|
+
node: assignment.keyOfCollection
|
|
1036
|
+
},
|
|
1037
|
+
{
|
|
1038
|
+
key: 'item',
|
|
1039
|
+
node: assignment.itemOfCollection
|
|
1040
|
+
}
|
|
1041
|
+
], function* warpForEachGenerator({ key, node: itemNode }) {
|
|
1042
|
+
if (itemNode) {
|
|
1043
|
+
code += `const __${key}_${node?.name} = `;
|
|
1044
|
+
const itemCode = yield* itemNode?.toEmbeddedTS((0, translator_1.shiftState)(state, code, { inline: true })) ??
|
|
1045
|
+
(0, time_slicing_1.returnOrigin)('');
|
|
1046
|
+
code += yield* self.getRightCode(itemCode, assignment, itemNode);
|
|
1047
|
+
code += ';\n';
|
|
1048
|
+
}
|
|
1049
|
+
});
|
|
1050
|
+
}
|
|
1017
1051
|
code += `${(0, translator_1.indent)((state?.tabSize || 0) + 1)}let `;
|
|
1018
1052
|
code += yield* node.toEmbeddedTS((0, translator_1.shiftState)(state, code, { inline: true }));
|
|
1019
1053
|
if (asserts.isBatchAssignment(assignment)) {
|
|
@@ -1069,6 +1103,17 @@ let Logic = Logic_1 = class Logic extends BaseNode_1.default {
|
|
|
1069
1103
|
code += ' = ';
|
|
1070
1104
|
code += yield* rightNode.getNewCompositeCode((0, translator_1.shiftState)(state, code, { inline: true }));
|
|
1071
1105
|
}
|
|
1106
|
+
else if (asserts.isCallFunction(assignment)) {
|
|
1107
|
+
const nodeName = node?.name;
|
|
1108
|
+
const keyNode = assignment.keyOfCollection;
|
|
1109
|
+
const itemNode = assignment.itemOfCollection;
|
|
1110
|
+
if (assignment.isDerivableMap && keyNode && itemNode) {
|
|
1111
|
+
code += `: nasl.collection.Map<typeof __key_${nodeName}, typeof __item_${nodeName}>`;
|
|
1112
|
+
}
|
|
1113
|
+
else if (assignment.isDerivableList && itemNode) {
|
|
1114
|
+
code += `: nasl.collection.List<typeof __item_${nodeName}>;`;
|
|
1115
|
+
}
|
|
1116
|
+
}
|
|
1072
1117
|
else {
|
|
1073
1118
|
const rightNode = assignment.right;
|
|
1074
1119
|
// 当右边有明确类型时,直接使用其类型。旧版本数据查询不能直接使用其 typeAnnotation
|
|
@@ -1268,8 +1313,11 @@ ${(0, translator_1.indent)(state.tabSize)} */\n`;
|
|
|
1268
1313
|
}
|
|
1269
1314
|
*getRightCode(code, assignment, rightNode) {
|
|
1270
1315
|
code = code.replaceAll('\n', ' ');
|
|
1271
|
-
|
|
1316
|
+
// 赋值语句的右侧或者集合内置函数的参数
|
|
1317
|
+
if ((asserts.isAssignment(assignment) && !assignment.right)
|
|
1318
|
+
|| (asserts.isCallFunction(assignment) && ((assignment.isDerivableList && !assignment.itemOfCollection) || (assignment.isDerivableMap && !(assignment.keyOfCollection && assignment.itemOfCollection))))) {
|
|
1272
1319
|
return code;
|
|
1320
|
+
}
|
|
1273
1321
|
// 调用接口,参数替换成 null
|
|
1274
1322
|
if (asserts.isCallInterface(rightNode)) {
|
|
1275
1323
|
const { _interface } = rightNode.getModuleInterface();
|
|
@@ -1288,6 +1336,12 @@ ${(0, translator_1.indent)(state.tabSize)} */\n`;
|
|
|
1288
1336
|
if (forEachStatement) {
|
|
1289
1337
|
code = yield* this.handleForEachCode(code, forEachStatement);
|
|
1290
1338
|
}
|
|
1339
|
+
// 可迭代的集合
|
|
1340
|
+
const callFunction = assignment.getAncestor('CallFunction');
|
|
1341
|
+
if (callFunction && callFunction.isLoopCollection) {
|
|
1342
|
+
const anonymousFunction = assignment.getAncestor('AnonymousFunction');
|
|
1343
|
+
code = yield* this.handleCollectionCode(code, anonymousFunction, callFunction);
|
|
1344
|
+
}
|
|
1291
1345
|
// Match 需要针对分支缩小类型范围
|
|
1292
1346
|
const matchCase = assignment.getAncestor('MatchCase');
|
|
1293
1347
|
if (matchCase) {
|
|
@@ -1338,6 +1392,26 @@ ${(0, translator_1.indent)(state.tabSize)} */\n`;
|
|
|
1338
1392
|
}
|
|
1339
1393
|
return code;
|
|
1340
1394
|
}
|
|
1395
|
+
*handleCollectionCode(code, anonymousFunction, callFunction) {
|
|
1396
|
+
const { collection } = callFunction;
|
|
1397
|
+
const self = this;
|
|
1398
|
+
yield* (0, time_slicing_1.wrapForEachToGenerator)(anonymousFunction.params, function* warpForEachGenerator(param, index) {
|
|
1399
|
+
if (code.includes(param?.name)) {
|
|
1400
|
+
const collectionTSCode = collection ? yield* collection.toEmbeddedTS() : '__IDENTIFIER__';
|
|
1401
|
+
code = self.handleReplaceCode(code, param.name, collectionTSCode === '__IDENTIFIER__' ? collectionTSCode : callFunction.isLoopMap && index === 0 ? `${collectionTSCode}.__getKey(0)` : `${collectionTSCode}.__get(0)`);
|
|
1402
|
+
}
|
|
1403
|
+
});
|
|
1404
|
+
const parentForEachStatement = callFunction.getAncestor('ForEachStatement');
|
|
1405
|
+
if (parentForEachStatement) {
|
|
1406
|
+
code = yield* this.handleForEachCode(code, parentForEachStatement);
|
|
1407
|
+
}
|
|
1408
|
+
const parentCallFunction = callFunction.getAncestor('CallFunction');
|
|
1409
|
+
if (parentCallFunction?.isLoopCollection) {
|
|
1410
|
+
const parentAnonymousFunction = callFunction.getAncestor('AnonymousFunction');
|
|
1411
|
+
code = yield* this.handleCollectionCode(code, parentAnonymousFunction, parentCallFunction);
|
|
1412
|
+
}
|
|
1413
|
+
return code;
|
|
1414
|
+
}
|
|
1341
1415
|
*handleMatchCaseCode(code, matchCase) {
|
|
1342
1416
|
const match = matchCase.getAncestor('Match');
|
|
1343
1417
|
const expressionTsCode = yield* match.expression.toEmbeddedTS();
|
|
@@ -1636,6 +1710,13 @@ ${(0, translator_1.indent)(state.tabSize)} */\n`;
|
|
|
1636
1710
|
};
|
|
1637
1711
|
/** 类名 */
|
|
1638
1712
|
Logic.ConceptName = 'Logic';
|
|
1713
|
+
/**
|
|
1714
|
+
* 是否为抽象类
|
|
1715
|
+
* 抽象类不能产生 concept: string
|
|
1716
|
+
*/
|
|
1717
|
+
Logic.isAbstract = false;
|
|
1718
|
+
/** 继承链 */
|
|
1719
|
+
Logic.inheritanceChain = ['BaseNode'];
|
|
1639
1720
|
__decorate([
|
|
1640
1721
|
(0, decorators_1.property)('concept')
|
|
1641
1722
|
], Logic.prototype, "concept", void 0);
|