@lcap/nasl 3.3.0-alpha.3 → 3.3.0-beta.0
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/out/bak/translator.js +8 -5
- package/out/bak/translator.js.map +1 -1
- package/out/breakpoint/generator/AfterStartNode.js +2 -1
- package/out/breakpoint/generator/AfterStartNode.js.map +1 -1
- package/out/breakpoint/generator/BeforeEndNode.js +2 -1
- package/out/breakpoint/generator/BeforeEndNode.js.map +1 -1
- package/out/breakpoint/generator/BreakpointNode.js +30 -9
- package/out/breakpoint/generator/BreakpointNode.js.map +1 -1
- package/out/breakpoint/shared/constants.d.ts +1 -0
- package/out/breakpoint/shared/constants.js +7 -1
- package/out/breakpoint/shared/constants.js.map +1 -1
- package/out/breakpoint/shared/utils.d.ts +3 -1
- package/out/breakpoint/shared/utils.js +25 -4
- package/out/breakpoint/shared/utils.js.map +1 -1
- package/out/common/BaseNode.d.ts +21 -8
- package/out/common/BaseNode.js +115 -69
- package/out/common/BaseNode.js.map +1 -1
- package/out/common/Command.js +6 -1
- package/out/common/Command.js.map +1 -1
- package/out/common/EventEmitter.d.ts +1 -1
- package/out/common/EventEmitter.js +1 -3
- package/out/common/EventEmitter.js.map +1 -1
- package/out/common/index.d.ts +0 -1
- package/out/common/index.js +0 -1
- package/out/common/index.js.map +1 -1
- package/out/concepts/Abort__.d.ts +3 -2
- package/out/concepts/Abort__.js +15 -18
- package/out/concepts/Abort__.js.map +1 -1
- package/out/concepts/Anchor__.d.ts +3 -3
- package/out/concepts/Anchor__.js +18 -35
- package/out/concepts/Anchor__.js.map +1 -1
- package/out/concepts/AnonymousFunction__.d.ts +3 -3
- package/out/concepts/AnonymousFunction__.js +29 -53
- package/out/concepts/AnonymousFunction__.js.map +1 -1
- package/out/concepts/App__.d.ts +160 -157
- package/out/concepts/App__.js +106 -80
- package/out/concepts/App__.js.map +1 -1
- package/out/concepts/Argument__.d.ts +3 -3
- package/out/concepts/Argument__.js +22 -42
- package/out/concepts/Argument__.js.map +1 -1
- package/out/concepts/Assignee__.d.ts +3 -2
- package/out/concepts/Assignee__.js +19 -21
- package/out/concepts/Assignee__.js.map +1 -1
- package/out/concepts/AssignmentLine__.d.ts +3 -2
- package/out/concepts/AssignmentLine__.js +15 -17
- package/out/concepts/AssignmentLine__.js.map +1 -1
- package/out/concepts/Assignment__.d.ts +3 -3
- package/out/concepts/Assignment__.js +34 -42
- package/out/concepts/Assignment__.js.map +1 -1
- package/out/concepts/Attribute__.d.ts +3 -2
- package/out/concepts/Attribute__.js +36 -28
- package/out/concepts/Attribute__.js.map +1 -1
- package/out/concepts/AuthInterface__.d.ts +4 -3
- package/out/concepts/AuthInterface__.js +16 -17
- package/out/concepts/AuthInterface__.js.map +1 -1
- package/out/concepts/AuthLogicForCallInterface__.d.ts +4 -3
- package/out/concepts/AuthLogicForCallInterface__.js +37 -27
- package/out/concepts/AuthLogicForCallInterface__.js.map +1 -1
- package/out/concepts/AuthLogic__.d.ts +4 -3
- package/out/concepts/AuthLogic__.js +18 -19
- package/out/concepts/AuthLogic__.js.map +1 -1
- package/out/concepts/BackendVariable__.d.ts +8 -7
- package/out/concepts/BackendVariable__.js +39 -34
- package/out/concepts/BackendVariable__.js.map +1 -1
- package/out/concepts/Backend__.d.ts +32 -31
- package/out/concepts/Backend__.js +23 -22
- package/out/concepts/Backend__.js.map +1 -1
- package/out/concepts/BatchAssignment__.d.ts +3 -3
- package/out/concepts/BatchAssignment__.js +46 -54
- package/out/concepts/BatchAssignment__.js.map +1 -1
- package/out/concepts/BinaryExpression__.d.ts +3 -3
- package/out/concepts/BinaryExpression__.js +30 -62
- package/out/concepts/BinaryExpression__.js.map +1 -1
- package/out/concepts/BindAttribute__.d.ts +12 -9
- package/out/concepts/BindAttribute__.js +81 -102
- package/out/concepts/BindAttribute__.js.map +1 -1
- package/out/concepts/BindDirective__.d.ts +5 -3
- package/out/concepts/BindDirective__.js +34 -28
- package/out/concepts/BindDirective__.js.map +1 -1
- package/out/concepts/BindEvent__.d.ts +3 -3
- package/out/concepts/BindEvent__.js +51 -74
- package/out/concepts/BindEvent__.js.map +1 -1
- package/out/concepts/BindStyle__.d.ts +5 -3
- package/out/concepts/BindStyle__.js +24 -23
- package/out/concepts/BindStyle__.js.map +1 -1
- package/out/concepts/BooleanLiteral__.d.ts +3 -3
- package/out/concepts/BooleanLiteral__.js +17 -24
- package/out/concepts/BooleanLiteral__.js.map +1 -1
- package/out/concepts/CallAuthInterface__.d.ts +3 -2
- package/out/concepts/CallAuthInterface__.js +17 -19
- package/out/concepts/CallAuthInterface__.js.map +1 -1
- package/out/concepts/CallConnector__.d.ts +5 -4
- package/out/concepts/CallConnector__.js +41 -34
- package/out/concepts/CallConnector__.js.map +1 -1
- package/out/concepts/CallFunction__.d.ts +3 -3
- package/out/concepts/CallFunction__.js +33 -71
- package/out/concepts/CallFunction__.js.map +1 -1
- package/out/concepts/CallInterface__.d.ts +3 -3
- package/out/concepts/CallInterface__.js +26 -57
- package/out/concepts/CallInterface__.js.map +1 -1
- package/out/concepts/CallLogic__.d.ts +6 -6
- package/out/concepts/CallLogic__.js +135 -180
- package/out/concepts/CallLogic__.js.map +1 -1
- package/out/concepts/CallQueryComponent__.d.ts +3 -2
- package/out/concepts/CallQueryComponent__.js +57 -41
- package/out/concepts/CallQueryComponent__.js.map +1 -1
- package/out/concepts/Comment__.d.ts +3 -3
- package/out/concepts/Comment__.js +17 -24
- package/out/concepts/Comment__.js.map +1 -1
- package/out/concepts/CompletionProperty__.d.ts +3 -2
- package/out/concepts/CompletionProperty__.js +30 -25
- package/out/concepts/CompletionProperty__.js.map +1 -1
- package/out/concepts/ConfigGroup__.d.ts +3 -2
- package/out/concepts/ConfigGroup__.js +21 -20
- package/out/concepts/ConfigGroup__.js.map +1 -1
- package/out/concepts/ConfigPropertyValue__.d.ts +3 -2
- package/out/concepts/ConfigPropertyValue__.js +16 -16
- package/out/concepts/ConfigPropertyValue__.js.map +1 -1
- package/out/concepts/ConfigProperty__.d.ts +3 -2
- package/out/concepts/ConfigProperty__.js +26 -23
- package/out/concepts/ConfigProperty__.js.map +1 -1
- package/out/concepts/Configuration__.d.ts +3 -2
- package/out/concepts/Configuration__.js +16 -18
- package/out/concepts/Configuration__.js.map +1 -1
- package/out/concepts/Connection__.d.ts +4 -4
- package/out/concepts/Connection__.js +22 -18
- package/out/concepts/Connection__.js.map +1 -1
- package/out/concepts/ConnectorTrigger__.d.ts +7 -6
- package/out/concepts/ConnectorTrigger__.js +22 -21
- package/out/concepts/ConnectorTrigger__.js.map +1 -1
- package/out/concepts/Connector__.d.ts +139 -33
- package/out/concepts/Connector__.js +191 -34
- package/out/concepts/Connector__.js.map +1 -1
- package/out/concepts/Constant__.d.ts +3 -2
- package/out/concepts/Constant__.js +25 -23
- package/out/concepts/Constant__.js.map +1 -1
- package/out/concepts/DataSource__.d.ts +7 -2
- package/out/concepts/DataSource__.js +31 -23
- package/out/concepts/DataSource__.js.map +1 -1
- package/out/concepts/DatabaseTypeAnnotation__.d.ts +5 -4
- package/out/concepts/DatabaseTypeAnnotation__.js +18 -18
- package/out/concepts/DatabaseTypeAnnotation__.js.map +1 -1
- package/out/concepts/Destination__.d.ts +11 -11
- package/out/concepts/Destination__.js +39 -89
- package/out/concepts/Destination__.js.map +1 -1
- package/out/concepts/End__.d.ts +3 -2
- package/out/concepts/End__.js +15 -17
- package/out/concepts/End__.js.map +1 -1
- package/out/concepts/EntityIndex__.d.ts +4 -3
- package/out/concepts/EntityIndex__.js +23 -21
- package/out/concepts/EntityIndex__.js.map +1 -1
- package/out/concepts/EntityProperty__.d.ts +4 -4
- package/out/concepts/EntityProperty__.js +51 -67
- package/out/concepts/EntityProperty__.js.map +1 -1
- package/out/concepts/Entity__.d.ts +3 -3
- package/out/concepts/Entity__.js +32 -51
- package/out/concepts/Entity__.js.map +1 -1
- package/out/concepts/EnumItem__.d.ts +3 -3
- package/out/concepts/EnumItem__.js +19 -25
- package/out/concepts/EnumItem__.js.map +1 -1
- package/out/concepts/Enum__.d.ts +3 -3
- package/out/concepts/Enum__.js +23 -35
- package/out/concepts/Enum__.js.map +1 -1
- package/out/concepts/Event__.d.ts +3 -2
- package/out/concepts/Event__.js +24 -21
- package/out/concepts/Event__.js.map +1 -1
- package/out/concepts/ExternalDestination__.d.ts +6 -5
- package/out/concepts/ExternalDestination__.js +25 -25
- package/out/concepts/ExternalDestination__.js.map +1 -1
- package/out/concepts/ForEachStatement__.d.ts +3 -3
- package/out/concepts/ForEachStatement__.js +21 -60
- package/out/concepts/ForEachStatement__.js.map +1 -1
- package/out/concepts/FrontendLibrary__.d.ts +4 -3
- package/out/concepts/FrontendLibrary__.js +27 -25
- package/out/concepts/FrontendLibrary__.js.map +1 -1
- package/out/concepts/FrontendVariable__.d.ts +4 -3
- package/out/concepts/FrontendVariable__.js +12 -12
- package/out/concepts/FrontendVariable__.js.map +1 -1
- package/out/concepts/Frontend__.d.ts +8 -6
- package/out/concepts/Frontend__.js +47 -39
- package/out/concepts/Frontend__.js.map +1 -1
- package/out/concepts/Function__.d.ts +3 -3
- package/out/concepts/Function__.js +37 -60
- package/out/concepts/Function__.js.map +1 -1
- package/out/concepts/Identifier__.d.ts +4 -3
- package/out/concepts/Identifier__.js +30 -29
- package/out/concepts/Identifier__.js.map +1 -1
- package/out/concepts/IfStatement__.d.ts +3 -3
- package/out/concepts/IfStatement__.js +21 -51
- package/out/concepts/IfStatement__.js.map +1 -1
- package/out/concepts/Integration__.d.ts +93 -2
- package/out/concepts/Integration__.js +157 -19
- package/out/concepts/Integration__.js.map +1 -1
- package/out/concepts/InterfaceParam__.d.ts +30 -4
- package/out/concepts/InterfaceParam__.js +58 -24
- package/out/concepts/InterfaceParam__.js.map +1 -1
- package/out/concepts/Interface__.d.ts +31 -5
- package/out/concepts/Interface__.js +89 -34
- package/out/concepts/Interface__.js.map +1 -1
- package/out/concepts/JSBlock__.d.ts +3 -3
- package/out/concepts/JSBlock__.js +17 -24
- package/out/concepts/JSBlock__.js.map +1 -1
- package/out/concepts/JavaLogic__.d.ts +4 -3
- package/out/concepts/JavaLogic__.js +22 -21
- package/out/concepts/JavaLogic__.js.map +1 -1
- package/out/concepts/LogicItem__.d.ts +3 -8
- package/out/concepts/LogicItem__.js +23 -30
- package/out/concepts/LogicItem__.js.map +1 -1
- package/out/concepts/Logic__.d.ts +17 -18
- package/out/concepts/Logic__.js +113 -179
- package/out/concepts/Logic__.js.map +1 -1
- package/out/concepts/MatchCase__.d.ts +3 -3
- package/out/concepts/MatchCase__.js +23 -110
- package/out/concepts/MatchCase__.js.map +1 -1
- package/out/concepts/Match__.d.ts +3 -3
- package/out/concepts/Match__.js +20 -64
- package/out/concepts/Match__.js.map +1 -1
- package/out/concepts/MemberExpression__.d.ts +3 -3
- package/out/concepts/MemberExpression__.js +65 -59
- package/out/concepts/MemberExpression__.js.map +1 -1
- package/out/concepts/MicroApp__.d.ts +3 -2
- package/out/concepts/MicroApp__.js +26 -21
- package/out/concepts/MicroApp__.js.map +1 -1
- package/out/concepts/Module__.d.ts +219 -47
- package/out/concepts/Module__.js +232 -32
- package/out/concepts/Module__.js.map +1 -1
- package/out/concepts/MsgTriggerEvent__.d.ts +4 -3
- package/out/concepts/MsgTriggerEvent__.js +16 -18
- package/out/concepts/MsgTriggerEvent__.js.map +1 -1
- package/out/concepts/MsgTriggerLauncher__.d.ts +4 -3
- package/out/concepts/MsgTriggerLauncher__.js +18 -19
- package/out/concepts/MsgTriggerLauncher__.js.map +1 -1
- package/out/concepts/Namespace__.d.ts +4 -2
- package/out/concepts/Namespace__.js +64 -46
- package/out/concepts/Namespace__.js.map +1 -1
- package/out/concepts/NewComposite__.d.ts +4 -3
- package/out/concepts/NewComposite__.js +71 -133
- package/out/concepts/NewComposite__.js.map +1 -1
- package/out/concepts/NewList__.d.ts +5 -4
- package/out/concepts/NewList__.js +35 -41
- package/out/concepts/NewList__.js.map +1 -1
- package/out/concepts/NewMap__.d.ts +5 -4
- package/out/concepts/NewMap__.js +39 -38
- package/out/concepts/NewMap__.js.map +1 -1
- package/out/concepts/New__.d.ts +3 -2
- package/out/concepts/New__.js +15 -17
- package/out/concepts/New__.js.map +1 -1
- package/out/concepts/NullLiteral__.d.ts +3 -2
- package/out/concepts/NullLiteral__.js +15 -17
- package/out/concepts/NullLiteral__.js.map +1 -1
- package/out/concepts/NumericLiteral__.d.ts +3 -3
- package/out/concepts/NumericLiteral__.js +21 -27
- package/out/concepts/NumericLiteral__.js.map +1 -1
- package/out/concepts/OqlQueryComponent__.d.ts +3 -3
- package/out/concepts/OqlQueryComponent__.js +26 -30
- package/out/concepts/OqlQueryComponent__.js.map +1 -1
- package/out/concepts/OverriddenLogic__.d.ts +14 -22
- package/out/concepts/OverriddenLogic__.js +73 -62
- package/out/concepts/OverriddenLogic__.js.map +1 -1
- package/out/concepts/Param__.d.ts +3 -3
- package/out/concepts/Param__.js +34 -69
- package/out/concepts/Param__.js.map +1 -1
- package/out/concepts/Point__.d.ts +3 -2
- package/out/concepts/Point__.js +16 -16
- package/out/concepts/Point__.js.map +1 -1
- package/out/concepts/ProcessComponent__.d.ts +3 -2
- package/out/concepts/ProcessComponent__.js +24 -22
- package/out/concepts/ProcessComponent__.js.map +1 -1
- package/out/concepts/ProcessElement__.d.ts +3 -2
- package/out/concepts/ProcessElement__.js +61 -46
- package/out/concepts/ProcessElement__.js.map +1 -1
- package/out/concepts/ProcessOutcome__.d.ts +3 -2
- package/out/concepts/ProcessOutcome__.js +17 -18
- package/out/concepts/ProcessOutcome__.js.map +1 -1
- package/out/concepts/ProcessOutcomes__.d.ts +3 -2
- package/out/concepts/ProcessOutcomes__.js +15 -17
- package/out/concepts/ProcessOutcomes__.js.map +1 -1
- package/out/concepts/Process__.d.ts +5 -7
- package/out/concepts/Process__.js +46 -35
- package/out/concepts/Process__.js.map +1 -1
- package/out/concepts/QueryAggregateExpression__.d.ts +3 -2
- package/out/concepts/QueryAggregateExpression__.js +23 -22
- package/out/concepts/QueryAggregateExpression__.js.map +1 -1
- package/out/concepts/QueryFieldExpression__.d.ts +4 -3
- package/out/concepts/QueryFieldExpression__.js +21 -20
- package/out/concepts/QueryFieldExpression__.js.map +1 -1
- package/out/concepts/QueryFromExpression__.d.ts +4 -3
- package/out/concepts/QueryFromExpression__.js +23 -22
- package/out/concepts/QueryFromExpression__.js.map +1 -1
- package/out/concepts/QueryGroupByExpression__.d.ts +3 -2
- package/out/concepts/QueryGroupByExpression__.js +18 -19
- package/out/concepts/QueryGroupByExpression__.js.map +1 -1
- package/out/concepts/QueryJoinExpression__.d.ts +4 -3
- package/out/concepts/QueryJoinExpression__.js +29 -25
- package/out/concepts/QueryJoinExpression__.js.map +1 -1
- package/out/concepts/QueryLimitExpression__.d.ts +3 -2
- package/out/concepts/QueryLimitExpression__.js +22 -22
- package/out/concepts/QueryLimitExpression__.js.map +1 -1
- package/out/concepts/QueryOrderByExpression__.d.ts +3 -2
- package/out/concepts/QueryOrderByExpression__.js +22 -22
- package/out/concepts/QueryOrderByExpression__.js.map +1 -1
- package/out/concepts/QuerySelectExpression__.d.ts +3 -2
- package/out/concepts/QuerySelectExpression__.js +23 -21
- package/out/concepts/QuerySelectExpression__.js.map +1 -1
- package/out/concepts/Rect__.d.ts +3 -2
- package/out/concepts/Rect__.js +20 -18
- package/out/concepts/Rect__.js.map +1 -1
- package/out/concepts/Return__.d.ts +3 -3
- package/out/concepts/Return__.js +29 -45
- package/out/concepts/Return__.js.map +1 -1
- package/out/concepts/Role__.d.ts +3 -2
- package/out/concepts/Role__.js +22 -21
- package/out/concepts/Role__.js.map +1 -1
- package/out/concepts/SelectMembers__.d.ts +3 -2
- package/out/concepts/SelectMembers__.js +20 -21
- package/out/concepts/SelectMembers__.js.map +1 -1
- package/out/concepts/Slot__.d.ts +3 -2
- package/out/concepts/Slot__.js +26 -22
- package/out/concepts/Slot__.js.map +1 -1
- package/out/concepts/SqlQueryComponent__.d.ts +3 -3
- package/out/concepts/SqlQueryComponent__.js +28 -31
- package/out/concepts/SqlQueryComponent__.js.map +1 -1
- package/out/concepts/Start__.d.ts +3 -2
- package/out/concepts/Start__.js +15 -17
- package/out/concepts/Start__.js.map +1 -1
- package/out/concepts/StringInterpolation__.d.ts +3 -3
- package/out/concepts/StringInterpolation__.js +17 -37
- package/out/concepts/StringInterpolation__.js.map +1 -1
- package/out/concepts/StringLiteral__.d.ts +3 -3
- package/out/concepts/StringLiteral__.js +14 -22
- package/out/concepts/StringLiteral__.js.map +1 -1
- package/out/concepts/StructureProperty__.d.ts +5 -5
- package/out/concepts/StructureProperty__.js +33 -40
- package/out/concepts/StructureProperty__.js.map +1 -1
- package/out/concepts/Structure__.d.ts +3 -12
- package/out/concepts/Structure__.js +45 -46
- package/out/concepts/Structure__.js.map +1 -1
- package/out/concepts/SwitchCase__.d.ts +3 -3
- package/out/concepts/SwitchCase__.js +19 -54
- package/out/concepts/SwitchCase__.js.map +1 -1
- package/out/concepts/SwitchStatement__.d.ts +3 -3
- package/out/concepts/SwitchStatement__.js +23 -39
- package/out/concepts/SwitchStatement__.js.map +1 -1
- package/out/concepts/Theme__.d.ts +3 -2
- package/out/concepts/Theme__.js +12 -14
- package/out/concepts/Theme__.js.map +1 -1
- package/out/concepts/Transactional__.d.ts +3 -2
- package/out/concepts/Transactional__.js +18 -17
- package/out/concepts/Transactional__.js.map +1 -1
- package/out/concepts/TriggerEvent__.d.ts +3 -2
- package/out/concepts/TriggerEvent__.js +19 -18
- package/out/concepts/TriggerEvent__.js.map +1 -1
- package/out/concepts/TriggerLauncher__.d.ts +6 -17
- package/out/concepts/TriggerLauncher__.js +26 -63
- package/out/concepts/TriggerLauncher__.js.map +1 -1
- package/out/concepts/TypeAnnotation__.d.ts +8 -6
- package/out/concepts/TypeAnnotation__.js +56 -79
- package/out/concepts/TypeAnnotation__.js.map +1 -1
- package/out/concepts/TypeParam__.d.ts +3 -3
- package/out/concepts/TypeParam__.js +16 -23
- package/out/concepts/TypeParam__.js.map +1 -1
- package/out/concepts/UnaryExpression__.d.ts +3 -3
- package/out/concepts/UnaryExpression__.js +21 -39
- package/out/concepts/UnaryExpression__.js.map +1 -1
- package/out/concepts/Unparsed__.d.ts +3 -3
- package/out/concepts/Unparsed__.js +16 -23
- package/out/concepts/Unparsed__.js.map +1 -1
- package/out/concepts/UseComponent__.d.ts +3 -2
- package/out/concepts/UseComponent__.js +16 -16
- package/out/concepts/UseComponent__.js.map +1 -1
- package/out/concepts/ValidationRule__.d.ts +17 -16
- package/out/concepts/ValidationRule__.js +18 -15
- package/out/concepts/ValidationRule__.js.map +1 -1
- package/out/concepts/Variable__.d.ts +3 -3
- package/out/concepts/Variable__.js +29 -45
- package/out/concepts/Variable__.js.map +1 -1
- package/out/concepts/ViewBlock__.d.ts +4 -3
- package/out/concepts/ViewBlock__.js +20 -19
- package/out/concepts/ViewBlock__.js.map +1 -1
- package/out/concepts/ViewComponent__.d.ts +32 -31
- package/out/concepts/ViewComponent__.js +35 -32
- package/out/concepts/ViewComponent__.js.map +1 -1
- package/out/concepts/ViewElement__.d.ts +82 -81
- package/out/concepts/ViewElement__.js +259 -155
- package/out/concepts/ViewElement__.js.map +1 -1
- package/out/concepts/View__.d.ts +5 -4
- package/out/concepts/View__.js +138 -174
- package/out/concepts/View__.js.map +1 -1
- package/out/concepts/WhileStatement__.d.ts +3 -3
- package/out/concepts/WhileStatement__.js +20 -41
- package/out/concepts/WhileStatement__.js.map +1 -1
- package/out/concepts/index__.d.ts +0 -1
- package/out/concepts/index__.js +0 -1
- package/out/concepts/index__.js.map +1 -1
- package/out/concepts/types__.d.ts +2 -2
- package/out/decorators/index.d.ts +2 -0
- package/out/decorators/index.js +12 -8
- package/out/decorators/index.js.map +1 -1
- package/out/generator/genBundleFiles.d.ts +2 -2
- package/out/generator/genBundleFiles.js +11 -4
- package/out/generator/genBundleFiles.js.map +1 -1
- package/out/generator/genReleaseBody.d.ts +4 -2
- package/out/generator/genReleaseBody.js +192 -136
- package/out/generator/genReleaseBody.js.map +1 -1
- package/out/index.d.ts +0 -1
- package/out/index.js +0 -1
- package/out/index.js.map +1 -1
- package/out/sentry/index.js +2 -2
- package/out/sentry/index.js.map +1 -1
- package/out/server/createUiTs.js +34 -1
- package/out/server/createUiTs.js.map +1 -1
- package/out/server/extendBaseNode.js +17 -17
- package/out/server/extendBaseNode.js.map +1 -1
- package/out/server/formatTsUtils.js +0 -10
- package/out/server/formatTsUtils.js.map +1 -1
- package/out/server/getConnector.d.ts +3 -0
- package/out/server/getConnector.js +38 -1
- package/out/server/getConnector.js.map +1 -1
- package/out/server/getMemberIdentifier.js +1 -2
- package/out/server/getMemberIdentifier.js.map +1 -1
- package/out/server/index.js +2 -0
- package/out/server/index.js.map +1 -1
- package/out/server/naslServer.d.ts +14 -3
- package/out/server/naslServer.js +207 -117
- package/out/server/naslServer.js.map +1 -1
- package/out/server/translator.js +2 -4
- package/out/server/translator.js.map +1 -1
- package/out/service/creator/add.configs.js +26 -0
- package/out/service/creator/add.configs.js.map +1 -1
- package/out/service/creator/errHandles.js +5 -3
- package/out/service/creator/errHandles.js.map +1 -1
- package/out/service/creator/index.js +13 -0
- package/out/service/creator/index.js.map +1 -1
- package/out/service/storage/init.js +0 -16
- package/out/service/storage/init.js.map +1 -1
- package/out/service/storage/jsoner.js +1 -1
- package/out/service/storage/jsoner.js.map +1 -1
- package/out/templator/genCurdEditMultipleKeyBlock.js +3 -3
- package/out/templator/genCurdEditMultipleKeyBlock.js.map +1 -1
- package/out/templator/genCurdMultipleKeyBlock.js +3 -3
- package/out/templator/genCurdMultipleKeyBlock.js.map +1 -1
- package/out/templator/genTableBlock.js +1 -1
- package/out/templator/genTableBlock.js.map +1 -1
- package/out/translator/constant.d.ts +6 -0
- package/out/translator/constant.js +10 -0
- package/out/translator/constant.js.map +1 -0
- package/out/translator/index.d.ts +3 -48
- package/out/translator/index.js +17 -110
- package/out/translator/index.js.map +1 -1
- package/out/translator/types.d.ts +32 -0
- package/out/translator/{tsp.js → types.js} +1 -1
- package/out/translator/types.js.map +1 -0
- package/out/translator/utils.d.ts +17 -0
- package/out/translator/utils.js +102 -0
- package/out/translator/utils.js.map +1 -0
- package/out/utils/cookie.d.ts +9 -0
- package/out/utils/cookie.js +62 -0
- package/out/utils/cookie.js.map +1 -0
- package/out/utils/index.d.ts +2 -0
- package/out/utils/index.js +2 -0
- package/out/utils/index.js.map +1 -1
- package/out/utils/logger.d.ts +4 -0
- package/out/utils/logger.js +13 -1
- package/out/utils/logger.js.map +1 -1
- package/out/utils/types.d.ts +1 -0
- package/out/utils/types.js +3 -0
- package/out/utils/types.js.map +1 -0
- package/out/utils/window.d.ts +7 -0
- package/out/utils/window.js +14 -0
- package/out/utils/window.js.map +1 -0
- package/package.json +5 -11
- package/sandbox/stdlib/nasl.oql.ts +2 -0
- package/sandbox/stdlib/nasl.ui.definition.ts +2218 -1415
- package/src/bak/translator.js +8 -5
- package/src/breakpoint/generator/AfterStartNode.ts +2 -1
- package/src/breakpoint/generator/BeforeEndNode.ts +2 -1
- package/src/breakpoint/generator/BreakpointNode.ts +36 -9
- package/src/breakpoint/shared/constants.ts +7 -0
- package/src/breakpoint/shared/utils.ts +36 -3
- package/src/common/BaseNode.ts +140 -81
- package/src/common/Command.ts +6 -1
- package/src/common/EventEmitter.ts +2 -4
- package/src/common/index.ts +0 -1
- package/src/concepts/Abort__.ts +20 -22
- package/src/concepts/Anchor__.ts +23 -38
- package/src/concepts/AnonymousFunction__.ts +39 -63
- package/src/concepts/App__.ts +364 -314
- package/src/concepts/Argument__.ts +27 -44
- package/src/concepts/Assignee__.ts +41 -39
- package/src/concepts/AssignmentLine__.ts +20 -23
- package/src/concepts/Assignment__.ts +54 -58
- package/src/concepts/Attribute__.ts +40 -34
- package/src/concepts/AuthInterface__.ts +22 -24
- package/src/concepts/AuthLogicForCallInterface__.ts +71 -41
- package/src/concepts/AuthLogic__.ts +21 -30
- package/src/concepts/BackendVariable__.ts +55 -54
- package/src/concepts/Backend__.ts +58 -59
- package/src/concepts/BatchAssignment__.ts +88 -78
- package/src/concepts/BinaryExpression__.ts +72 -66
- package/src/concepts/BindAttribute__.ts +135 -155
- package/src/concepts/BindDirective__.ts +45 -41
- package/src/concepts/BindEvent__.ts +80 -89
- package/src/concepts/BindStyle__.ts +37 -36
- package/src/concepts/BooleanLiteral__.ts +22 -28
- package/src/concepts/CallAuthInterface__.ts +29 -32
- package/src/concepts/CallConnector__.ts +50 -41
- package/src/concepts/CallFunction__.ts +45 -77
- package/src/concepts/CallInterface__.ts +36 -68
- package/src/concepts/CallLogic__.ts +166 -213
- package/src/concepts/CallQueryComponent__.ts +156 -88
- package/src/concepts/Comment__.ts +22 -29
- package/src/concepts/CompletionProperty__.ts +34 -30
- package/src/concepts/ConfigGroup__.ts +28 -29
- package/src/concepts/ConfigPropertyValue__.ts +22 -23
- package/src/concepts/ConfigProperty__.ts +42 -36
- package/src/concepts/Configuration__.ts +23 -26
- package/src/concepts/Connection__.ts +26 -21
- package/src/concepts/ConnectorTrigger__.ts +30 -34
- package/src/concepts/Connector__.ts +342 -87
- package/src/concepts/Constant__.ts +30 -36
- package/src/concepts/DataSource__.ts +37 -33
- package/src/concepts/DatabaseTypeAnnotation__.ts +24 -24
- package/src/concepts/Destination__.ts +51 -104
- package/src/concepts/End__.ts +23 -25
- package/src/concepts/EntityIndex__.ts +36 -33
- package/src/concepts/EntityProperty__.ts +64 -84
- package/src/concepts/Entity__.ts +41 -67
- package/src/concepts/EnumItem__.ts +24 -32
- package/src/concepts/Enum__.ts +28 -42
- package/src/concepts/Event__.ts +33 -33
- package/src/concepts/ExternalDestination__.ts +29 -29
- package/src/concepts/ForEachStatement__.ts +34 -73
- package/src/concepts/FrontendLibrary__.ts +37 -38
- package/src/concepts/FrontendVariable__.ts +18 -20
- package/src/concepts/Frontend__.ts +66 -62
- package/src/concepts/Function__.ts +54 -80
- package/src/concepts/Identifier__.ts +37 -34
- package/src/concepts/IfStatement__.ts +40 -77
- package/src/concepts/Integration__.ts +244 -24
- package/src/concepts/InterfaceParam__.ts +69 -33
- package/src/concepts/Interface__.ts +104 -46
- package/src/concepts/JSBlock__.ts +22 -28
- package/src/concepts/JavaLogic__.ts +27 -26
- package/src/concepts/LogicItem__.ts +29 -47
- package/src/concepts/Logic__.ts +168 -214
- package/src/concepts/MatchCase__.ts +38 -128
- package/src/concepts/Match__.ts +28 -73
- package/src/concepts/MemberExpression__.ts +174 -139
- package/src/concepts/MicroApp__.ts +32 -27
- package/src/concepts/Module__.ts +527 -107
- package/src/concepts/MsgTriggerEvent__.ts +25 -33
- package/src/concepts/MsgTriggerLauncher__.ts +27 -30
- package/src/concepts/Namespace__.ts +109 -99
- package/src/concepts/NewComposite__.ts +130 -161
- package/src/concepts/NewList__.ts +45 -51
- package/src/concepts/NewMap__.ts +51 -48
- package/src/concepts/New__.ts +20 -22
- package/src/concepts/NullLiteral__.ts +20 -22
- package/src/concepts/NumericLiteral__.ts +26 -31
- package/src/concepts/OqlQueryComponent__.ts +33 -34
- package/src/concepts/OverriddenLogic__.ts +128 -94
- package/src/concepts/Param__.ts +51 -90
- package/src/concepts/Point__.ts +22 -22
- package/src/concepts/ProcessComponent__.ts +36 -37
- package/src/concepts/ProcessElement__.ts +114 -86
- package/src/concepts/ProcessOutcome__.ts +22 -23
- package/src/concepts/ProcessOutcomes__.ts +20 -22
- package/src/concepts/Process__.ts +69 -63
- package/src/concepts/QueryAggregateExpression__.ts +28 -27
- package/src/concepts/QueryFieldExpression__.ts +26 -25
- package/src/concepts/QueryFromExpression__.ts +29 -28
- package/src/concepts/QueryGroupByExpression__.ts +22 -23
- package/src/concepts/QueryJoinExpression__.ts +62 -41
- package/src/concepts/QueryLimitExpression__.ts +27 -27
- package/src/concepts/QueryOrderByExpression__.ts +27 -27
- package/src/concepts/QuerySelectExpression__.ts +105 -54
- package/src/concepts/Rect__.ts +26 -24
- package/src/concepts/Return__.ts +42 -67
- package/src/concepts/Role__.ts +25 -25
- package/src/concepts/SelectMembers__.ts +30 -32
- package/src/concepts/Slot__.ts +32 -30
- package/src/concepts/SqlQueryComponent__.ts +41 -37
- package/src/concepts/Start__.ts +20 -22
- package/src/concepts/StringInterpolation__.ts +25 -45
- package/src/concepts/StringLiteral__.ts +19 -26
- package/src/concepts/StructureProperty__.ts +38 -47
- package/src/concepts/Structure__.ts +55 -58
- package/src/concepts/SwitchCase__.ts +40 -74
- package/src/concepts/SwitchStatement__.ts +29 -44
- package/src/concepts/Theme__.ts +18 -21
- package/src/concepts/Transactional__.ts +24 -31
- package/src/concepts/TriggerEvent__.ts +28 -29
- package/src/concepts/TriggerLauncher__.ts +32 -82
- package/src/concepts/TypeAnnotation__.ts +92 -98
- package/src/concepts/TypeParam__.ts +21 -28
- package/src/concepts/UnaryExpression__.ts +26 -45
- package/src/concepts/Unparsed__.ts +20 -25
- package/src/concepts/UseComponent__.ts +22 -22
- package/src/concepts/ValidationRule__.ts +539 -555
- package/src/concepts/Variable__.ts +43 -67
- package/src/concepts/ViewBlock__.ts +26 -25
- package/src/concepts/ViewComponent__.ts +87 -91
- package/src/concepts/ViewElement__.ts +2696 -2437
- package/src/concepts/View__.ts +342 -369
- package/src/concepts/WhileStatement__.ts +36 -59
- package/src/concepts/index__.ts +0 -1
- package/src/concepts/types__.ts +124 -124
- package/src/decorators/index.ts +11 -7
- package/src/generator/genBundleFiles.ts +14 -4
- package/src/generator/genReleaseBody.ts +198 -182
- package/src/index.ts +0 -1
- package/src/sentry/index.ts +2 -2
- package/src/server/createUiTs.ts +30 -1
- package/src/server/extendBaseNode.ts +18 -18
- package/src/server/formatTsUtils.ts +0 -11
- package/src/server/getConnector.ts +63 -27
- package/src/server/getMemberIdentifier.ts +2 -3
- package/src/server/index.ts +4 -1
- package/src/server/naslServer.ts +212 -121
- package/src/server/translator.ts +1 -3
- package/src/service/creator/add.configs.js +26 -1
- package/src/service/creator/errHandles.js +5 -4
- package/src/service/creator/index.js +12 -0
- package/src/service/storage/init.ts +0 -17
- package/src/service/storage/jsoner.ts +1 -1
- package/src/templator/genCurdEditMultipleKeyBlock.ts +3 -3
- package/src/templator/genCurdMultipleKeyBlock.ts +3 -3
- package/src/templator/genTableBlock.ts +1 -1
- package/src/translator/constant.ts +7 -0
- package/src/translator/index.ts +3 -137
- package/src/translator/types.ts +40 -0
- package/src/translator/utils.ts +104 -0
- package/src/utils/cookie.ts +60 -0
- package/src/utils/index.ts +2 -0
- package/src/utils/logger.ts +13 -0
- package/src/utils/types.ts +1 -0
- package/src/utils/window.ts +9 -0
- package/test/concepts/boolean-literal/__snapshots__/toEmbeddedTS.spec.ts.snap +11 -0
- package/test/concepts/boolean-literal/__snapshots__/toJS.spec.ts.snap +11 -0
- package/test/concepts/boolean-literal/__snapshots__/toVue.spec.ts.snap +11 -0
- package/test/concepts/boolean-literal/constant.ts +5 -0
- package/test/concepts/boolean-literal/fixtures/false.json +4 -0
- package/test/concepts/boolean-literal/fixtures/true.json +4 -0
- package/test/concepts/boolean-literal/toEmbeddedTS.spec.ts +14 -0
- package/test/concepts/boolean-literal/toJS.spec.ts +14 -0
- package/test/concepts/boolean-literal/toVue.spec.ts +14 -0
- package/test/concepts/call-interface/toEmbeddedTS.spec.ts +6 -6
- package/test/concepts/call-interface/toJS.spec.ts +6 -6
- package/test/concepts/call-logic/__snapshots__/getQuickInfoOffset.spec.ts.snap +106 -0
- package/test/concepts/call-logic/__snapshots__/toEmbeddedTS.spec.ts.snap +45 -0
- package/test/concepts/call-logic/__snapshots__/toJS.spec.ts.snap +102 -0
- package/test/concepts/call-logic/fixtures/nested-call-logic.json +860 -0
- package/test/concepts/call-logic/getQuickInfoOffset.spec.ts +23 -0
- package/test/concepts/call-logic/toEmbeddedTS.spec.ts +6 -6
- package/test/concepts/call-logic/toJS.spec.ts +6 -6
- package/test/concepts/identifier/__snapshots__/toEmbeddedTS.spec.ts.snap +16 -0
- package/test/concepts/identifier/__snapshots__/toJS.spec.ts.snap +16 -0
- package/test/concepts/identifier/__snapshots__/toVue.spec.ts.snap +16 -0
- package/test/concepts/identifier/constant.ts +5 -0
- package/test/concepts/identifier/fixtures/data-source.json +5 -0
- package/test/concepts/identifier/fixtures/no-namespace.json +4 -0
- package/test/concepts/identifier/fixtures/view-variable.json +201 -0
- package/test/concepts/identifier/toEmbeddedTS.spec.ts +14 -0
- package/test/concepts/identifier/toJS.spec.ts +14 -0
- package/test/concepts/identifier/toVue.spec.ts +14 -0
- package/test/concepts/match/toEmbeddedTS.spec.ts +6 -6
- package/test/concepts/match/toJS.spec.ts +6 -6
- package/test/concepts/member-expression/__snapshots__/toEmbeddedTS.spec.ts.snap +21 -0
- package/test/concepts/member-expression/__snapshots__/toJS.spec.ts.snap +21 -0
- package/test/concepts/member-expression/__snapshots__/toVue.spec.ts.snap +21 -0
- package/test/concepts/member-expression/constant.ts +5 -0
- package/test/concepts/member-expression/fixtures/app.enums.UserStatusEnum.json +13 -0
- package/test/concepts/member-expression/fixtures/elements.table-view.data.json +13 -0
- package/test/concepts/member-expression/fixtures/entry.created-by.json +18 -0
- package/test/concepts/member-expression/fixtures/nasl.auth.userInfo.json +19 -0
- package/test/concepts/member-expression/toEmbeddedTS.spec.ts +14 -0
- package/test/concepts/member-expression/toJS.spec.ts +14 -0
- package/test/concepts/member-expression/toVue.spec.ts +14 -0
- package/test/concepts/null-literal/__snapshots__/toEmbeddedTS.spec.ts.snap +6 -0
- package/test/concepts/null-literal/__snapshots__/toJS.spec.ts.snap +6 -0
- package/test/concepts/null-literal/__snapshots__/toVue.spec.ts.snap +6 -0
- package/test/concepts/null-literal/constant.ts +5 -0
- package/test/concepts/null-literal/fixtures/null.json +3 -0
- package/test/concepts/null-literal/toEmbeddedTS.spec.ts +14 -0
- package/test/concepts/null-literal/toJS.spec.ts +14 -0
- package/test/concepts/null-literal/toVue.spec.ts +14 -0
- package/test/concepts/numeric-literal/__snapshots__/toEmbeddedTS.spec.ts.snap +6 -0
- package/test/concepts/numeric-literal/__snapshots__/toJS.spec.ts.snap +6 -0
- package/test/concepts/numeric-literal/__snapshots__/toVue.spec.ts.snap +6 -0
- package/test/concepts/numeric-literal/constant.ts +5 -0
- package/test/concepts/numeric-literal/fixtures/number.json +10 -0
- package/test/concepts/numeric-literal/toEmbeddedTS.spec.ts +14 -0
- package/test/concepts/numeric-literal/toJS.spec.ts +14 -0
- package/test/concepts/numeric-literal/toVue.spec.ts +14 -0
- package/test/concepts/string-literal/__snapshots__/toEmbeddedTS.spec.ts.snap +16 -0
- package/test/concepts/string-literal/__snapshots__/toJS.spec.ts.snap +16 -0
- package/test/concepts/string-literal/__snapshots__/toVue.spec.ts.snap +16 -0
- package/test/concepts/string-literal/constant.ts +5 -0
- package/test/concepts/string-literal/fixtures/escape.json +4 -0
- package/test/concepts/string-literal/fixtures/space.json +4 -0
- package/test/concepts/string-literal/fixtures/string.json +4 -0
- package/test/concepts/string-literal/toEmbeddedTS.spec.ts +14 -0
- package/test/concepts/string-literal/toJS.spec.ts +14 -0
- package/test/concepts/string-literal/toVue.spec.ts +14 -0
- package/test/concepts/utils.ts +46 -43
- package/test/concepts/validation-rule/toEmbeddedTS.spec.ts +6 -6
- package/test/concepts/validation-rule/toJS.spec.ts +6 -6
- package/test/concepts/validation-rule/validation-rule.spec.ts +8 -8
- package/test/concepts/view-element/__snapshots__/toEmbeddedTS.spec.ts.snap +592 -0
- package/test/concepts/view-element/__snapshots__/toVue.spec.ts.snap +308 -0
- package/test/concepts/view-element/fixtures/default-login.json +333 -0
- package/test/concepts/view-element/fixtures/default-not-found.json +313 -313
- package/test/concepts/view-element/fixtures/with-role-auth.json +148 -0
- package/test/concepts/view-element/fixtures/with-table.json +3473 -0
- package/test/concepts/view-element/toEmbeddedTS.spec.ts +6 -6
- package/test/concepts/view-element/toVue.spec.ts +6 -6
- package/ts-worker/package-lock.json +6663 -101
- package/ts-worker/webpack.config.js +1 -1
- package/out/common/classMap.d.ts +0 -4
- package/out/common/classMap.js +0 -5
- package/out/common/classMap.js.map +0 -1
- package/out/concepts/DataElement__.d.ts +0 -46
- package/out/concepts/DataElement__.js +0 -118
- package/out/concepts/DataElement__.js.map +0 -1
- package/out/natural/RequirementAnalyzer.d.ts +0 -22
- package/out/natural/RequirementAnalyzer.js +0 -196
- package/out/natural/RequirementAnalyzer.js.map +0 -1
- package/out/natural/RequirementExecutor.d.ts +0 -51
- package/out/natural/RequirementExecutor.js +0 -692
- package/out/natural/RequirementExecutor.js.map +0 -1
- package/out/natural/componentData.d.ts +0 -31
- package/out/natural/componentData.js +0 -85
- package/out/natural/componentData.js.map +0 -1
- package/out/natural/genNaturalTS.d.ts +0 -3
- package/out/natural/genNaturalTS.js +0 -80
- package/out/natural/genNaturalTS.js.map +0 -1
- package/out/natural/index.d.ts +0 -4
- package/out/natural/index.js +0 -21
- package/out/natural/index.js.map +0 -1
- package/out/natural/knowledgeMap.d.ts +0 -4
- package/out/natural/knowledgeMap.js +0 -40
- package/out/natural/knowledgeMap.js.map +0 -1
- package/out/natural/naslStdlibMap.d.ts +0 -2
- package/out/natural/naslStdlibMap.js +0 -26
- package/out/natural/naslStdlibMap.js.map +0 -1
- package/out/natural/transformTSCode.d.ts +0 -7
- package/out/natural/transformTSCode.js +0 -734
- package/out/natural/transformTSCode.js.map +0 -1
- package/out/translator/lsp.d.ts +0 -45
- package/out/translator/lsp.js +0 -6
- package/out/translator/lsp.js.map +0 -1
- package/out/translator/tsp.d.ts +0 -12
- package/out/translator/tsp.js.map +0 -1
- package/sandbox-natural/stdlib/nasl.core.ts +0 -36
- package/sandbox-natural/stdlib/nasl.oql.ts +0 -8
- package/sandbox-natural/stdlib/nasl.ui.ts +0 -56
- package/sandbox-natural/stdlib/nasl.util.ts +0 -85
- package/sandbox-natural/tsconfig.json +0 -12
- package/src/common/classMap.ts +0 -3
- package/src/concepts/DataElement__.ts +0 -131
- package/src/natural/RequirementAnalyzer.ts +0 -208
- package/src/natural/RequirementExecutor.ts +0 -685
- package/src/natural/componentData.ts +0 -81
- package/src/natural/genNaturalTS.ts +0 -81
- package/src/natural/index.ts +0 -4
- package/src/natural/knowledgeMap.ts +0 -39
- package/src/natural/naslStdlibMap.ts +0 -24
- package/src/natural/transformTSCode.ts +0 -680
- package/src/test/examples/app1.json +0 -1406
- package/src/test/fixtures/env.ts +0 -19
- package/src/test/integration/connect-create-file.ts +0 -14
- package/src/test/integration/connect-file.ts +0 -24
- package/src/test/integration/node-nasl-server.ts +0 -14
- package/src/test/units/baseTypes/Assignment.spec.ts +0 -20
- package/src/test/units/baseTypes/CallLogic.spec.ts +0 -22
- package/src/test/units/baseTypes/StringLiteral.spec.ts +0 -60
- package/src/test/units/baseTypes/new.spec.ts +0 -13
- package/src/test/units/common/Vertex.spec.ts +0 -23
- package/src/test/units/data/Entity.spec.ts +0 -10
- package/src/test/units/login.spec.ts +0 -10
- package/src/test/units/page/Block.spec.ts +0 -15
- package/src/test/units/page/Element.spec.ts +0 -45
- package/src/test/units/page/example.dashboard.html +0 -46
- package/src/test/units/page/example.view1.html +0 -63
- package/src/test/units/temp/temp.spec.ts +0 -66
- package/src/translator/lsp.ts +0 -50
- package/src/translator/tsp.ts +0 -14
|
@@ -36,17 +36,21 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
36
36
|
exports.MsgTriggerEvent = void 0;
|
|
37
37
|
const decorators_1 = require("../decorators");
|
|
38
38
|
const utils = __importStar(require("../utils"));
|
|
39
|
-
const classMap_1 = __importDefault(require("../common/classMap"));
|
|
40
39
|
const Param__1 = __importDefault(require("./Param__"));
|
|
41
40
|
const TriggerEvent__1 = __importDefault(require("./TriggerEvent__"));
|
|
42
41
|
/**
|
|
43
|
-
*
|
|
42
|
+
* 触发器事件消息
|
|
44
43
|
*/
|
|
45
|
-
let MsgTriggerEvent = MsgTriggerEvent_1 =
|
|
44
|
+
let MsgTriggerEvent = MsgTriggerEvent_1 =
|
|
45
|
+
// @ts-ignore
|
|
46
|
+
class MsgTriggerEvent extends TriggerEvent__1.default {
|
|
47
|
+
/** 类名 */
|
|
48
|
+
static ConceptName = 'MsgTriggerEvent';
|
|
46
49
|
/**
|
|
47
50
|
* 产品概念
|
|
48
51
|
*/
|
|
49
|
-
|
|
52
|
+
// @ts-ignore
|
|
53
|
+
concept;
|
|
50
54
|
/**
|
|
51
55
|
* 输入参数列表
|
|
52
56
|
*/
|
|
@@ -91,14 +95,10 @@ let MsgTriggerEvent = MsgTriggerEvent_1 = class MsgTriggerEvent extends TriggerE
|
|
|
91
95
|
* @param source 需要合并的部分参数
|
|
92
96
|
*/
|
|
93
97
|
constructor(source) {
|
|
94
|
-
|
|
95
|
-
source = { ...MsgTriggerEvent_1.getDefaultOptions(), ...source };
|
|
98
|
+
source = Object.assign({}, MsgTriggerEvent_1.getDefaultOptions(), source);
|
|
96
99
|
super(source);
|
|
97
100
|
super.subConstructor(source);
|
|
98
101
|
}
|
|
99
|
-
getClassName() {
|
|
100
|
-
return 'MsgTriggerEvent';
|
|
101
|
-
}
|
|
102
102
|
static from(source, parentNode, parentKey) {
|
|
103
103
|
return super.from(source, parentNode, parentKey);
|
|
104
104
|
}
|
|
@@ -178,7 +178,7 @@ let MsgTriggerEvent = MsgTriggerEvent_1 = class MsgTriggerEvent extends TriggerE
|
|
|
178
178
|
if (typeof options === 'string') {
|
|
179
179
|
param = this.properties.find((item) => item.name === options);
|
|
180
180
|
if (!param) {
|
|
181
|
-
throw new Error(
|
|
181
|
+
throw new Error('找不到输入参数 ' + options);
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
184
|
else {
|
|
@@ -187,7 +187,7 @@ let MsgTriggerEvent = MsgTriggerEvent_1 = class MsgTriggerEvent extends TriggerE
|
|
|
187
187
|
return param.delete();
|
|
188
188
|
}
|
|
189
189
|
__removeParam(param) {
|
|
190
|
-
const
|
|
190
|
+
const parentKey = param.parentKey;
|
|
191
191
|
const params = {
|
|
192
192
|
parentNode: this,
|
|
193
193
|
parentKey,
|
|
@@ -210,20 +210,18 @@ let MsgTriggerEvent = MsgTriggerEvent_1 = class MsgTriggerEvent extends TriggerE
|
|
|
210
210
|
return params;
|
|
211
211
|
}
|
|
212
212
|
};
|
|
213
|
-
__decorate([
|
|
214
|
-
(0, decorators_1.property)()
|
|
215
|
-
], MsgTriggerEvent.prototype, "concept", void 0);
|
|
216
213
|
__decorate([
|
|
217
214
|
(0, decorators_1.property)('Param')
|
|
218
215
|
], MsgTriggerEvent.prototype, "properties", void 0);
|
|
219
216
|
MsgTriggerEvent = MsgTriggerEvent_1 = __decorate([
|
|
220
|
-
|
|
217
|
+
decorators_1.className,
|
|
218
|
+
(0, decorators_1.concept)('触发器事件消息')
|
|
219
|
+
// @ts-ignore
|
|
221
220
|
], MsgTriggerEvent);
|
|
222
221
|
exports.MsgTriggerEvent = MsgTriggerEvent;
|
|
223
|
-
classMap_1.default.MsgTriggerEvent = MsgTriggerEvent;
|
|
224
222
|
exports.default = MsgTriggerEvent;
|
|
225
|
-
|
|
223
|
+
//================================================================================
|
|
226
224
|
// ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑
|
|
227
225
|
// 自动生成的代码已结束。下面可以手动编写。
|
|
228
|
-
|
|
226
|
+
//================================================================================
|
|
229
227
|
//# sourceMappingURL=MsgTriggerEvent__.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MsgTriggerEvent__.js","sourceRoot":"","sources":["../../src/concepts/MsgTriggerEvent__.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"MsgTriggerEvent__.js","sourceRoot":"","sources":["../../src/concepts/MsgTriggerEvent__.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,8CAA6E;AAE7E,gDAAkC;AAGlC,uDAA8B;AAO9B,qEAA4C;AAE5C;;GAEG;AAIH,IAAa,eAAe;AAD5B,aAAa;AACb,MAAa,eAAgB,SAAQ,uBAAY;IAC/C,SAAS;IACT,MAAM,CAAU,WAAW,GAAG,iBAAiB,CAAC;IAEhD;;OAEG;IACH,aAAa;IACJ,OAAO,CAAqB;IAErC;;OAEG;IAEH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
|
-
*
|
|
8
|
+
* 触发器启动器消息
|
|
9
9
|
*/
|
|
10
10
|
export declare class MsgTriggerLauncher extends TriggerLauncher {
|
|
11
|
+
/** 类名 */
|
|
12
|
+
static readonly ConceptName = "MsgTriggerLauncher";
|
|
11
13
|
/**
|
|
12
14
|
* 产品概念
|
|
13
15
|
*/
|
|
14
|
-
concept: 'MsgTriggerLauncher';
|
|
16
|
+
readonly concept: 'MsgTriggerLauncher';
|
|
15
17
|
/**
|
|
16
18
|
* 实际参数列表
|
|
17
19
|
*/
|
|
@@ -32,7 +34,6 @@ export declare class MsgTriggerLauncher extends TriggerLauncher {
|
|
|
32
34
|
* @param source 需要合并的部分参数
|
|
33
35
|
*/
|
|
34
36
|
constructor(source?: Partial<MsgTriggerLauncher>);
|
|
35
|
-
getClassName(): string;
|
|
36
37
|
static from(source: any, parentNode?: any, parentKey?: string): MsgTriggerLauncher;
|
|
37
38
|
/**
|
|
38
39
|
* 设置实际参数列表
|
|
@@ -36,17 +36,21 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
36
36
|
exports.MsgTriggerLauncher = void 0;
|
|
37
37
|
const decorators_1 = require("../decorators");
|
|
38
38
|
const utils = __importStar(require("../utils"));
|
|
39
|
-
const classMap_1 = __importDefault(require("../common/classMap"));
|
|
40
39
|
const Argument__1 = __importDefault(require("./Argument__"));
|
|
41
40
|
const TriggerLauncher__1 = __importDefault(require("./TriggerLauncher__"));
|
|
42
41
|
/**
|
|
43
|
-
*
|
|
42
|
+
* 触发器启动器消息
|
|
44
43
|
*/
|
|
45
|
-
let MsgTriggerLauncher = MsgTriggerLauncher_1 =
|
|
44
|
+
let MsgTriggerLauncher = MsgTriggerLauncher_1 =
|
|
45
|
+
// @ts-ignore
|
|
46
|
+
class MsgTriggerLauncher extends TriggerLauncher__1.default {
|
|
47
|
+
/** 类名 */
|
|
48
|
+
static ConceptName = 'MsgTriggerLauncher';
|
|
46
49
|
/**
|
|
47
50
|
* 产品概念
|
|
48
51
|
*/
|
|
49
|
-
|
|
52
|
+
// @ts-ignore
|
|
53
|
+
concept;
|
|
50
54
|
/**
|
|
51
55
|
* 实际参数列表
|
|
52
56
|
*/
|
|
@@ -54,7 +58,8 @@ let MsgTriggerLauncher = MsgTriggerLauncher_1 = class MsgTriggerLauncher extends
|
|
|
54
58
|
/**
|
|
55
59
|
* calleeConnectionName
|
|
56
60
|
*/
|
|
57
|
-
|
|
61
|
+
// @ts-ignore
|
|
62
|
+
calleeConnectionName;
|
|
58
63
|
/**
|
|
59
64
|
* 祖先 Module
|
|
60
65
|
*/
|
|
@@ -71,14 +76,10 @@ let MsgTriggerLauncher = MsgTriggerLauncher_1 = class MsgTriggerLauncher extends
|
|
|
71
76
|
* @param source 需要合并的部分参数
|
|
72
77
|
*/
|
|
73
78
|
constructor(source) {
|
|
74
|
-
|
|
75
|
-
source = { ...MsgTriggerLauncher_1.getDefaultOptions(), ...source };
|
|
79
|
+
source = Object.assign({}, MsgTriggerLauncher_1.getDefaultOptions(), source);
|
|
76
80
|
super(source);
|
|
77
81
|
super.subConstructor(source);
|
|
78
82
|
}
|
|
79
|
-
getClassName() {
|
|
80
|
-
return 'MsgTriggerLauncher';
|
|
81
|
-
}
|
|
82
83
|
static from(source, parentNode, parentKey) {
|
|
83
84
|
return super.from(source, parentNode, parentKey);
|
|
84
85
|
}
|
|
@@ -169,7 +170,7 @@ let MsgTriggerLauncher = MsgTriggerLauncher_1 = class MsgTriggerLauncher extends
|
|
|
169
170
|
if (typeof options === 'string') {
|
|
170
171
|
argument = this.properties.find((item) => item.name === options);
|
|
171
172
|
if (!argument) {
|
|
172
|
-
throw new Error(
|
|
173
|
+
throw new Error('找不到实际参数 ' + options);
|
|
173
174
|
}
|
|
174
175
|
}
|
|
175
176
|
else {
|
|
@@ -178,7 +179,7 @@ let MsgTriggerLauncher = MsgTriggerLauncher_1 = class MsgTriggerLauncher extends
|
|
|
178
179
|
return argument.delete();
|
|
179
180
|
}
|
|
180
181
|
__removeLogicItem(logicItem) {
|
|
181
|
-
const
|
|
182
|
+
const parentKey = logicItem.parentKey;
|
|
182
183
|
const params = {
|
|
183
184
|
parentNode: this,
|
|
184
185
|
parentKey,
|
|
@@ -201,9 +202,6 @@ let MsgTriggerLauncher = MsgTriggerLauncher_1 = class MsgTriggerLauncher extends
|
|
|
201
202
|
return params;
|
|
202
203
|
}
|
|
203
204
|
};
|
|
204
|
-
__decorate([
|
|
205
|
-
(0, decorators_1.property)()
|
|
206
|
-
], MsgTriggerLauncher.prototype, "concept", void 0);
|
|
207
205
|
__decorate([
|
|
208
206
|
(0, decorators_1.property)('Argument')
|
|
209
207
|
], MsgTriggerLauncher.prototype, "properties", void 0);
|
|
@@ -211,13 +209,14 @@ __decorate([
|
|
|
211
209
|
(0, decorators_1.property)()
|
|
212
210
|
], MsgTriggerLauncher.prototype, "calleeConnectionName", void 0);
|
|
213
211
|
MsgTriggerLauncher = MsgTriggerLauncher_1 = __decorate([
|
|
214
|
-
|
|
212
|
+
decorators_1.className,
|
|
213
|
+
(0, decorators_1.concept)('触发器启动器消息')
|
|
214
|
+
// @ts-ignore
|
|
215
215
|
], MsgTriggerLauncher);
|
|
216
216
|
exports.MsgTriggerLauncher = MsgTriggerLauncher;
|
|
217
|
-
classMap_1.default.MsgTriggerLauncher = MsgTriggerLauncher;
|
|
218
217
|
exports.default = MsgTriggerLauncher;
|
|
219
|
-
|
|
218
|
+
//================================================================================
|
|
220
219
|
// ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑
|
|
221
220
|
// 自动生成的代码已结束。下面可以手动编写。
|
|
222
|
-
|
|
221
|
+
//================================================================================
|
|
223
222
|
//# sourceMappingURL=MsgTriggerLauncher__.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MsgTriggerLauncher__.js","sourceRoot":"","sources":["../../src/concepts/MsgTriggerLauncher__.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;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,GAAE;gEAEmB;AArBnB,kBAAkB;IAH9B,sBAAS;IACT,IAAA,oBAAO,EAAC,UAAU,CAAC;IACpB,aAAa;GACA,kBAAkB,CA0R9B;AA1RY,gDAAkB;AA4R/B,kBAAe,kBAAkB,CAAC;AAClC,kFAAkF;AAClF,gEAAgE;AAChE,uBAAuB;AACvB,kFAAkF"}
|
|
@@ -14,10 +14,12 @@ import ProcessComponent from './ProcessComponent__';
|
|
|
14
14
|
* 命名空间
|
|
15
15
|
*/
|
|
16
16
|
export declare class Namespace extends BaseNode {
|
|
17
|
+
/** 类名 */
|
|
18
|
+
static readonly ConceptName = "Namespace";
|
|
17
19
|
/**
|
|
18
20
|
* 产品概念
|
|
19
21
|
*/
|
|
20
|
-
concept: 'Namespace';
|
|
22
|
+
readonly concept: 'Namespace';
|
|
21
23
|
/**
|
|
22
24
|
* 表示是从实体还是流程等概念产生的
|
|
23
25
|
*/
|
|
@@ -86,7 +88,6 @@ export declare class Namespace extends BaseNode {
|
|
|
86
88
|
* @param source 需要合并的部分参数
|
|
87
89
|
*/
|
|
88
90
|
constructor(source?: Partial<Namespace>);
|
|
89
|
-
getClassName(): string;
|
|
90
91
|
static from(source: any, parentNode?: any, parentKey?: string): Namespace;
|
|
91
92
|
/**
|
|
92
93
|
* 从父级删除该节点
|
|
@@ -1064,5 +1065,6 @@ export declare class Namespace extends BaseNode {
|
|
|
1064
1065
|
getTsNamespace(): string;
|
|
1065
1066
|
findChild(name: string): Namespace;
|
|
1066
1067
|
findLogic(name: string): Logic;
|
|
1068
|
+
getLogicExistingTitles(excludedList?: Array<Logic>): string[];
|
|
1067
1069
|
}
|
|
1068
1070
|
export default Namespace;
|
|
@@ -37,7 +37,6 @@ exports.Namespace = void 0;
|
|
|
37
37
|
const decorators_1 = require("../decorators");
|
|
38
38
|
const utils = __importStar(require("../utils"));
|
|
39
39
|
const BaseNode_1 = __importDefault(require("../common/BaseNode"));
|
|
40
|
-
const classMap_1 = __importDefault(require("../common/classMap"));
|
|
41
40
|
const Process__1 = __importDefault(require("./Process__"));
|
|
42
41
|
const Structure__1 = __importDefault(require("./Structure__"));
|
|
43
42
|
const Enum__1 = __importDefault(require("./Enum__"));
|
|
@@ -51,27 +50,36 @@ const ProcessComponent__1 = __importDefault(require("./ProcessComponent__"));
|
|
|
51
50
|
/**
|
|
52
51
|
* 命名空间
|
|
53
52
|
*/
|
|
54
|
-
let Namespace = Namespace_1 =
|
|
53
|
+
let Namespace = Namespace_1 =
|
|
54
|
+
// @ts-ignore
|
|
55
|
+
class Namespace extends BaseNode_1.default {
|
|
56
|
+
/** 类名 */
|
|
57
|
+
static ConceptName = 'Namespace';
|
|
55
58
|
/**
|
|
56
59
|
* 产品概念
|
|
57
60
|
*/
|
|
58
|
-
|
|
61
|
+
// @ts-ignore
|
|
62
|
+
concept;
|
|
59
63
|
/**
|
|
60
64
|
* 表示是从实体还是流程等概念产生的
|
|
61
65
|
*/
|
|
62
|
-
|
|
66
|
+
// @ts-ignore
|
|
67
|
+
originConcept;
|
|
63
68
|
/**
|
|
64
69
|
* 命名空间名称
|
|
65
70
|
*/
|
|
66
|
-
|
|
71
|
+
// @ts-ignore
|
|
72
|
+
name;
|
|
67
73
|
/**
|
|
68
74
|
* 命名空间标题
|
|
69
75
|
*/
|
|
70
|
-
|
|
76
|
+
// @ts-ignore
|
|
77
|
+
title;
|
|
71
78
|
/**
|
|
72
79
|
* 命名空间描述
|
|
73
80
|
*/
|
|
74
|
-
|
|
81
|
+
// @ts-ignore
|
|
82
|
+
description;
|
|
75
83
|
/**
|
|
76
84
|
* 命名空间列表
|
|
77
85
|
*/
|
|
@@ -124,14 +132,10 @@ let Namespace = Namespace_1 = class Namespace extends BaseNode_1.default {
|
|
|
124
132
|
* @param source 需要合并的部分参数
|
|
125
133
|
*/
|
|
126
134
|
constructor(source) {
|
|
127
|
-
|
|
128
|
-
source = { ...Namespace_1.getDefaultOptions(), ...source };
|
|
135
|
+
source = Object.assign({}, Namespace_1.getDefaultOptions(), source);
|
|
129
136
|
super(source);
|
|
130
137
|
super.subConstructor(source);
|
|
131
138
|
}
|
|
132
|
-
getClassName() {
|
|
133
|
-
return 'Namespace';
|
|
134
|
-
}
|
|
135
139
|
static from(source, parentNode, parentKey) {
|
|
136
140
|
return super.from(source, parentNode, parentKey);
|
|
137
141
|
}
|
|
@@ -628,7 +632,9 @@ let Namespace = Namespace_1 = class Namespace extends BaseNode_1.default {
|
|
|
628
632
|
}
|
|
629
633
|
getVarExistingNames(excludedList = []) {
|
|
630
634
|
const excludedSet = new Set(excludedList);
|
|
631
|
-
return (this.frontendVariables || [])
|
|
635
|
+
return (this.frontendVariables || [])
|
|
636
|
+
.filter((item) => !excludedSet.has(item))
|
|
637
|
+
.map((item) => item.name);
|
|
632
638
|
}
|
|
633
639
|
getVariableUniqueName(name = 'variable1') {
|
|
634
640
|
return utils.unique(name, this.getVarExistingNames(), undefined, true);
|
|
@@ -741,7 +747,9 @@ let Namespace = Namespace_1 = class Namespace extends BaseNode_1.default {
|
|
|
741
747
|
}
|
|
742
748
|
getViewComponentExistingNames(excludedList = []) {
|
|
743
749
|
const excludedSet = new Set(excludedList);
|
|
744
|
-
return (this.viewComponents || [])
|
|
750
|
+
return (this.viewComponents || [])
|
|
751
|
+
.filter((item) => !excludedSet.has(item))
|
|
752
|
+
.map((item) => item.name);
|
|
745
753
|
}
|
|
746
754
|
getViewComponentUniqueName(name = 'viewComponent1') {
|
|
747
755
|
return utils.unique(name, this.getViewComponentExistingNames(), undefined, false);
|
|
@@ -801,7 +809,9 @@ let Namespace = Namespace_1 = class Namespace extends BaseNode_1.default {
|
|
|
801
809
|
}
|
|
802
810
|
getProcessComponentExistingNames(excludedList = []) {
|
|
803
811
|
const excludedSet = new Set(excludedList);
|
|
804
|
-
return (this.processComponents || [])
|
|
812
|
+
return (this.processComponents || [])
|
|
813
|
+
.filter((item) => !excludedSet.has(item))
|
|
814
|
+
.map((item) => item.name);
|
|
805
815
|
}
|
|
806
816
|
getProcessComponentUniqueName(name = 'processComponent1') {
|
|
807
817
|
return utils.unique(name, this.getProcessComponentExistingNames(), undefined, false);
|
|
@@ -864,7 +874,7 @@ let Namespace = Namespace_1 = class Namespace extends BaseNode_1.default {
|
|
|
864
874
|
if (typeof options === 'string') {
|
|
865
875
|
namespace = this.children.find((item) => item.name === options);
|
|
866
876
|
if (!namespace) {
|
|
867
|
-
throw new Error(
|
|
877
|
+
throw new Error('找不到命名空间 ' + options);
|
|
868
878
|
}
|
|
869
879
|
}
|
|
870
880
|
else {
|
|
@@ -873,7 +883,7 @@ let Namespace = Namespace_1 = class Namespace extends BaseNode_1.default {
|
|
|
873
883
|
return namespace.delete();
|
|
874
884
|
}
|
|
875
885
|
__removeNamespace(namespace) {
|
|
876
|
-
const
|
|
886
|
+
const parentKey = namespace.parentKey;
|
|
877
887
|
const params = {
|
|
878
888
|
parentNode: this,
|
|
879
889
|
parentKey,
|
|
@@ -900,7 +910,7 @@ let Namespace = Namespace_1 = class Namespace extends BaseNode_1.default {
|
|
|
900
910
|
if (typeof options === 'string') {
|
|
901
911
|
process = this.processes.find((item) => item.name === options);
|
|
902
912
|
if (!process) {
|
|
903
|
-
throw new Error(
|
|
913
|
+
throw new Error('找不到流程 ' + options);
|
|
904
914
|
}
|
|
905
915
|
}
|
|
906
916
|
else {
|
|
@@ -909,7 +919,7 @@ let Namespace = Namespace_1 = class Namespace extends BaseNode_1.default {
|
|
|
909
919
|
return process.delete();
|
|
910
920
|
}
|
|
911
921
|
__removeProcess(process) {
|
|
912
|
-
const
|
|
922
|
+
const parentKey = process.parentKey;
|
|
913
923
|
const params = {
|
|
914
924
|
parentNode: this,
|
|
915
925
|
parentKey,
|
|
@@ -936,7 +946,7 @@ let Namespace = Namespace_1 = class Namespace extends BaseNode_1.default {
|
|
|
936
946
|
if (typeof options === 'string') {
|
|
937
947
|
structure = this.structures.find((item) => item.name === options);
|
|
938
948
|
if (!structure) {
|
|
939
|
-
throw new Error(
|
|
949
|
+
throw new Error('找不到数据结构 ' + options);
|
|
940
950
|
}
|
|
941
951
|
}
|
|
942
952
|
else {
|
|
@@ -945,7 +955,7 @@ let Namespace = Namespace_1 = class Namespace extends BaseNode_1.default {
|
|
|
945
955
|
return structure.delete();
|
|
946
956
|
}
|
|
947
957
|
__removeStructure(structure) {
|
|
948
|
-
const
|
|
958
|
+
const parentKey = structure.parentKey;
|
|
949
959
|
const params = {
|
|
950
960
|
parentNode: this,
|
|
951
961
|
parentKey,
|
|
@@ -972,7 +982,7 @@ let Namespace = Namespace_1 = class Namespace extends BaseNode_1.default {
|
|
|
972
982
|
if (typeof options === 'string') {
|
|
973
983
|
enumeration = this.enums.find((item) => item.name === options);
|
|
974
984
|
if (!enumeration) {
|
|
975
|
-
throw new Error(
|
|
985
|
+
throw new Error('找不到枚举 ' + options);
|
|
976
986
|
}
|
|
977
987
|
}
|
|
978
988
|
else {
|
|
@@ -981,7 +991,7 @@ let Namespace = Namespace_1 = class Namespace extends BaseNode_1.default {
|
|
|
981
991
|
return enumeration.delete();
|
|
982
992
|
}
|
|
983
993
|
__removeEnum(enumeration) {
|
|
984
|
-
const
|
|
994
|
+
const parentKey = enumeration.parentKey;
|
|
985
995
|
const params = {
|
|
986
996
|
parentNode: this,
|
|
987
997
|
parentKey,
|
|
@@ -1008,7 +1018,7 @@ let Namespace = Namespace_1 = class Namespace extends BaseNode_1.default {
|
|
|
1008
1018
|
if (typeof options === 'string') {
|
|
1009
1019
|
logic = this.logics.find((item) => item.name === options);
|
|
1010
1020
|
if (!logic) {
|
|
1011
|
-
throw new Error(
|
|
1021
|
+
throw new Error('找不到逻辑 ' + options);
|
|
1012
1022
|
}
|
|
1013
1023
|
}
|
|
1014
1024
|
else {
|
|
@@ -1017,7 +1027,7 @@ let Namespace = Namespace_1 = class Namespace extends BaseNode_1.default {
|
|
|
1017
1027
|
return logic.delete();
|
|
1018
1028
|
}
|
|
1019
1029
|
__removeLogic(logic) {
|
|
1020
|
-
const
|
|
1030
|
+
const parentKey = logic.parentKey;
|
|
1021
1031
|
const params = {
|
|
1022
1032
|
parentNode: this,
|
|
1023
1033
|
parentKey,
|
|
@@ -1044,7 +1054,7 @@ let Namespace = Namespace_1 = class Namespace extends BaseNode_1.default {
|
|
|
1044
1054
|
if (typeof options === 'string') {
|
|
1045
1055
|
func = this.functions.find((item) => item.name === options);
|
|
1046
1056
|
if (!func) {
|
|
1047
|
-
throw new Error(
|
|
1057
|
+
throw new Error('找不到函数 ' + options);
|
|
1048
1058
|
}
|
|
1049
1059
|
}
|
|
1050
1060
|
else {
|
|
@@ -1053,7 +1063,7 @@ let Namespace = Namespace_1 = class Namespace extends BaseNode_1.default {
|
|
|
1053
1063
|
return func.delete();
|
|
1054
1064
|
}
|
|
1055
1065
|
__removeFunction(func) {
|
|
1056
|
-
const
|
|
1066
|
+
const parentKey = func.parentKey;
|
|
1057
1067
|
const params = {
|
|
1058
1068
|
parentNode: this,
|
|
1059
1069
|
parentKey,
|
|
@@ -1080,7 +1090,7 @@ let Namespace = Namespace_1 = class Namespace extends BaseNode_1.default {
|
|
|
1080
1090
|
if (typeof options === 'string') {
|
|
1081
1091
|
itface = this.interfaces.find((item) => item.name === options);
|
|
1082
1092
|
if (!itface) {
|
|
1083
|
-
throw new Error(
|
|
1093
|
+
throw new Error('找不到接口 ' + options);
|
|
1084
1094
|
}
|
|
1085
1095
|
}
|
|
1086
1096
|
else {
|
|
@@ -1089,7 +1099,7 @@ let Namespace = Namespace_1 = class Namespace extends BaseNode_1.default {
|
|
|
1089
1099
|
return itface.delete();
|
|
1090
1100
|
}
|
|
1091
1101
|
__removeInterface(itface) {
|
|
1092
|
-
const
|
|
1102
|
+
const parentKey = itface.parentKey;
|
|
1093
1103
|
const params = {
|
|
1094
1104
|
parentNode: this,
|
|
1095
1105
|
parentKey,
|
|
@@ -1116,7 +1126,7 @@ let Namespace = Namespace_1 = class Namespace extends BaseNode_1.default {
|
|
|
1116
1126
|
if (typeof options === 'string') {
|
|
1117
1127
|
view = this.views.find((item) => item.name === options);
|
|
1118
1128
|
if (!view) {
|
|
1119
|
-
throw new Error(
|
|
1129
|
+
throw new Error('找不到页面 ' + options);
|
|
1120
1130
|
}
|
|
1121
1131
|
}
|
|
1122
1132
|
else {
|
|
@@ -1125,7 +1135,7 @@ let Namespace = Namespace_1 = class Namespace extends BaseNode_1.default {
|
|
|
1125
1135
|
return view.delete();
|
|
1126
1136
|
}
|
|
1127
1137
|
__removeView(view) {
|
|
1128
|
-
const
|
|
1138
|
+
const parentKey = view.parentKey;
|
|
1129
1139
|
const params = {
|
|
1130
1140
|
parentNode: this,
|
|
1131
1141
|
parentKey,
|
|
@@ -1152,7 +1162,7 @@ let Namespace = Namespace_1 = class Namespace extends BaseNode_1.default {
|
|
|
1152
1162
|
if (typeof options === 'string') {
|
|
1153
1163
|
variable = this.frontendVariables.find((item) => item.name === options);
|
|
1154
1164
|
if (!variable) {
|
|
1155
|
-
throw new Error(
|
|
1165
|
+
throw new Error('找不到变量 ' + options);
|
|
1156
1166
|
}
|
|
1157
1167
|
}
|
|
1158
1168
|
else {
|
|
@@ -1165,7 +1175,7 @@ let Namespace = Namespace_1 = class Namespace extends BaseNode_1.default {
|
|
|
1165
1175
|
if (typeof options === 'string') {
|
|
1166
1176
|
variable = this.variables.find((item) => item.name === options);
|
|
1167
1177
|
if (!variable) {
|
|
1168
|
-
throw new Error(
|
|
1178
|
+
throw new Error('找不到变量 ' + options);
|
|
1169
1179
|
}
|
|
1170
1180
|
}
|
|
1171
1181
|
else {
|
|
@@ -1174,7 +1184,7 @@ let Namespace = Namespace_1 = class Namespace extends BaseNode_1.default {
|
|
|
1174
1184
|
return variable.delete();
|
|
1175
1185
|
}
|
|
1176
1186
|
__removeVariable(variable) {
|
|
1177
|
-
const
|
|
1187
|
+
const parentKey = variable.parentKey;
|
|
1178
1188
|
const params = {
|
|
1179
1189
|
parentNode: this,
|
|
1180
1190
|
parentKey,
|
|
@@ -1201,7 +1211,7 @@ let Namespace = Namespace_1 = class Namespace extends BaseNode_1.default {
|
|
|
1201
1211
|
if (typeof options === 'string') {
|
|
1202
1212
|
viewComponent = this.viewComponents.find((item) => item.name === options);
|
|
1203
1213
|
if (!viewComponent) {
|
|
1204
|
-
throw new Error(
|
|
1214
|
+
throw new Error('找不到页面组件 ' + options);
|
|
1205
1215
|
}
|
|
1206
1216
|
}
|
|
1207
1217
|
else {
|
|
@@ -1210,7 +1220,7 @@ let Namespace = Namespace_1 = class Namespace extends BaseNode_1.default {
|
|
|
1210
1220
|
return viewComponent.delete();
|
|
1211
1221
|
}
|
|
1212
1222
|
__removeViewComponent(viewComponent) {
|
|
1213
|
-
const
|
|
1223
|
+
const parentKey = viewComponent.parentKey;
|
|
1214
1224
|
const params = {
|
|
1215
1225
|
parentNode: this,
|
|
1216
1226
|
parentKey,
|
|
@@ -1237,7 +1247,7 @@ let Namespace = Namespace_1 = class Namespace extends BaseNode_1.default {
|
|
|
1237
1247
|
if (typeof options === 'string') {
|
|
1238
1248
|
processComponent = this.processComponents.find((item) => item.name === options);
|
|
1239
1249
|
if (!processComponent) {
|
|
1240
|
-
throw new Error(
|
|
1250
|
+
throw new Error('找不到流程组件 ' + options);
|
|
1241
1251
|
}
|
|
1242
1252
|
}
|
|
1243
1253
|
else {
|
|
@@ -1246,7 +1256,7 @@ let Namespace = Namespace_1 = class Namespace extends BaseNode_1.default {
|
|
|
1246
1256
|
return processComponent.delete();
|
|
1247
1257
|
}
|
|
1248
1258
|
__removeProcessComponent(processComponent) {
|
|
1249
|
-
const
|
|
1259
|
+
const parentKey = processComponent.parentKey;
|
|
1250
1260
|
const params = {
|
|
1251
1261
|
parentNode: this,
|
|
1252
1262
|
parentKey,
|
|
@@ -1268,10 +1278,10 @@ let Namespace = Namespace_1 = class Namespace extends BaseNode_1.default {
|
|
|
1268
1278
|
}
|
|
1269
1279
|
return params;
|
|
1270
1280
|
}
|
|
1271
|
-
|
|
1281
|
+
//================================================================================
|
|
1272
1282
|
// ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑
|
|
1273
1283
|
// 自动生成的代码已结束。下面可以手动编写。
|
|
1274
|
-
|
|
1284
|
+
//================================================================================
|
|
1275
1285
|
findEnumByName(name) {
|
|
1276
1286
|
return this.enums.find((enumItem) => enumItem.name === name);
|
|
1277
1287
|
}
|
|
@@ -1288,6 +1298,9 @@ let Namespace = Namespace_1 = class Namespace extends BaseNode_1.default {
|
|
|
1288
1298
|
getNamespace() {
|
|
1289
1299
|
if (this.path)
|
|
1290
1300
|
return this.path;
|
|
1301
|
+
if (this.parentNode.concept === 'Connector') {
|
|
1302
|
+
return `${this.parentNode.getNamespace()}`;
|
|
1303
|
+
}
|
|
1291
1304
|
if (this.parentNode && this.parentNode.getNamespace)
|
|
1292
1305
|
return `${this.parentNode.getNamespace()}`;
|
|
1293
1306
|
throw new Error('无法获取命名空间,请设置 parentNode 或临时的 path!');
|
|
@@ -1298,6 +1311,9 @@ let Namespace = Namespace_1 = class Namespace extends BaseNode_1.default {
|
|
|
1298
1311
|
getTsNamespace() {
|
|
1299
1312
|
if (this.path)
|
|
1300
1313
|
return this.path;
|
|
1314
|
+
if (this.parentNode.concept === 'Connector') {
|
|
1315
|
+
return `${this.parentNode.getNamespace()}`;
|
|
1316
|
+
}
|
|
1301
1317
|
if (this.parentNode && this.parentNode.getNamespace)
|
|
1302
1318
|
return `${this.parentNode.getNamespace()}.${this.tsName}`;
|
|
1303
1319
|
throw new Error('无法获取命名空间,请设置 parentNode 或临时的 path!');
|
|
@@ -1308,10 +1324,11 @@ let Namespace = Namespace_1 = class Namespace extends BaseNode_1.default {
|
|
|
1308
1324
|
findLogic(name) {
|
|
1309
1325
|
return this.logics.find((logic) => logic.name === name);
|
|
1310
1326
|
}
|
|
1327
|
+
getLogicExistingTitles(excludedList = []) {
|
|
1328
|
+
const excludedSet = new Set(excludedList);
|
|
1329
|
+
return (this.logics || []).filter((item) => !excludedSet.has(item)).map((item) => item.title);
|
|
1330
|
+
}
|
|
1311
1331
|
};
|
|
1312
|
-
__decorate([
|
|
1313
|
-
(0, decorators_1.property)()
|
|
1314
|
-
], Namespace.prototype, "concept", void 0);
|
|
1315
1332
|
__decorate([
|
|
1316
1333
|
(0, decorators_1.property)()
|
|
1317
1334
|
], Namespace.prototype, "originConcept", void 0);
|
|
@@ -1364,13 +1381,14 @@ __decorate([
|
|
|
1364
1381
|
(0, decorators_1.property)()
|
|
1365
1382
|
], Namespace.prototype, "path", void 0);
|
|
1366
1383
|
Namespace = Namespace_1 = __decorate([
|
|
1384
|
+
decorators_1.className,
|
|
1367
1385
|
(0, decorators_1.concept)('命名空间')
|
|
1386
|
+
// @ts-ignore
|
|
1368
1387
|
], Namespace);
|
|
1369
1388
|
exports.Namespace = Namespace;
|
|
1370
|
-
classMap_1.default.Namespace = Namespace;
|
|
1371
1389
|
exports.default = Namespace;
|
|
1372
|
-
|
|
1390
|
+
//================================================================================
|
|
1373
1391
|
// ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑
|
|
1374
1392
|
// 自动生成的代码已结束。下面可以手动编写。
|
|
1375
|
-
|
|
1393
|
+
//================================================================================
|
|
1376
1394
|
//# sourceMappingURL=Namespace__.js.map
|