@lcap/nasl 3.7.1-beta.1 → 3.7.1-beta.3
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/common/BaseNode.js +3 -1
- package/out/common/BaseNode.js.map +1 -1
- package/out/concepts/AnonymousFunction__.d.ts +1 -1
- package/out/concepts/AnonymousFunction__.js.map +1 -1
- package/out/concepts/App__.js +9 -27
- package/out/concepts/App__.js.map +1 -1
- package/out/concepts/Argument__.d.ts +1 -1
- package/out/concepts/Argument__.js +2 -6
- package/out/concepts/Argument__.js.map +1 -1
- package/out/concepts/AssigneeV2__.js +0 -2
- package/out/concepts/AssigneeV2__.js.map +1 -1
- package/out/concepts/Assignee__.js +0 -2
- package/out/concepts/Assignee__.js.map +1 -1
- package/out/concepts/AssignmentLine__.js +0 -2
- package/out/concepts/AssignmentLine__.js.map +1 -1
- package/out/concepts/Assignment__.js +2 -4
- package/out/concepts/Assignment__.js.map +1 -1
- package/out/concepts/Attribute__.d.ts +1 -1
- package/out/concepts/Attribute__.js +7 -23
- package/out/concepts/Attribute__.js.map +1 -1
- package/out/concepts/AuthInterface__.js +1 -3
- package/out/concepts/AuthInterface__.js.map +1 -1
- package/out/concepts/AuthLogicForCallInterface__.js +7 -7
- package/out/concepts/AuthLogicForCallInterface__.js.map +1 -1
- package/out/concepts/AuthLogic__.js +1 -3
- package/out/concepts/AuthLogic__.js.map +1 -1
- package/out/concepts/BackendVariable__.d.ts +2 -2
- package/out/concepts/BackendVariable__.js +3 -9
- package/out/concepts/BackendVariable__.js.map +1 -1
- package/out/concepts/Backend__.js +1 -3
- package/out/concepts/Backend__.js.map +1 -1
- package/out/concepts/BatchAssignment__.js +1 -3
- package/out/concepts/BatchAssignment__.js.map +1 -1
- package/out/concepts/BinaryExpression__.js +4 -4
- package/out/concepts/BinaryExpression__.js.map +1 -1
- package/out/concepts/BindAttribute__.js +6 -58
- package/out/concepts/BindAttribute__.js.map +1 -1
- package/out/concepts/BindDirective__.d.ts +6 -6
- package/out/concepts/BindDirective__.js +7 -21
- package/out/concepts/BindDirective__.js.map +1 -1
- package/out/concepts/BindEvent__.d.ts +3 -3
- package/out/concepts/BindEvent__.js +3 -13
- package/out/concepts/BindEvent__.js.map +1 -1
- package/out/concepts/BindStyle__.js +1 -3
- package/out/concepts/BindStyle__.js.map +1 -1
- package/out/concepts/BooleanLiteral__.js +1 -3
- package/out/concepts/BooleanLiteral__.js.map +1 -1
- package/out/concepts/BusinessComponent__.js +11 -19
- package/out/concepts/BusinessComponent__.js.map +1 -1
- package/out/concepts/BusinessLogic__.js +8 -10
- package/out/concepts/BusinessLogic__.js.map +1 -1
- package/out/concepts/CallConnector__.js +2 -6
- package/out/concepts/CallConnector__.js.map +1 -1
- package/out/concepts/CallEvent__.js +2 -6
- package/out/concepts/CallEvent__.js.map +1 -1
- package/out/concepts/CallFunction__.d.ts +1 -1
- package/out/concepts/CallFunction__.js +3 -13
- package/out/concepts/CallFunction__.js.map +1 -1
- package/out/concepts/CallInterface__.d.ts +1 -1
- package/out/concepts/CallInterface__.js +3 -9
- package/out/concepts/CallInterface__.js.map +1 -1
- package/out/concepts/CallLogic__.d.ts +4 -4
- package/out/concepts/CallLogic__.js +8 -23
- package/out/concepts/CallLogic__.js.map +1 -1
- package/out/concepts/CallQueryComponent__.d.ts +2 -2
- package/out/concepts/CallQueryComponent__.js +2 -13
- package/out/concepts/CallQueryComponent__.js.map +1 -1
- package/out/concepts/Comment__.js +1 -3
- package/out/concepts/Comment__.js.map +1 -1
- package/out/concepts/CompletionProperty__.js +5 -15
- package/out/concepts/CompletionProperty__.js.map +1 -1
- package/out/concepts/ConfigGroup__.js +1 -3
- package/out/concepts/ConfigGroup__.js.map +1 -1
- package/out/concepts/ConfigPropertyValue__.d.ts +0 -1
- package/out/concepts/ConfigPropertyValue__.js +2 -13
- package/out/concepts/ConfigPropertyValue__.js.map +1 -1
- package/out/concepts/ConfigProperty__.js +3 -9
- package/out/concepts/ConfigProperty__.js.map +1 -1
- package/out/concepts/Configuration__.js.map +1 -1
- package/out/concepts/Connection__.js +3 -9
- package/out/concepts/Connection__.js.map +1 -1
- package/out/concepts/ConnectorLogic__.js +1 -3
- package/out/concepts/ConnectorLogic__.js.map +1 -1
- package/out/concepts/ConnectorTriggerLauncher__.js +6 -9
- package/out/concepts/ConnectorTriggerLauncher__.js.map +1 -1
- package/out/concepts/ConnectorTrigger__.js +2 -6
- package/out/concepts/ConnectorTrigger__.js.map +1 -1
- package/out/concepts/Connector__.js +3 -9
- package/out/concepts/Connector__.js.map +1 -1
- package/out/concepts/Constant__.js +2 -6
- package/out/concepts/Constant__.js.map +1 -1
- package/out/concepts/CountersignPolicyV2__.js +1 -3
- package/out/concepts/CountersignPolicyV2__.js.map +1 -1
- package/out/concepts/CountersignPolicy__.js +1 -3
- package/out/concepts/CountersignPolicy__.js.map +1 -1
- package/out/concepts/DataSource__.js +6 -12
- package/out/concepts/DataSource__.js.map +1 -1
- package/out/concepts/DatabaseTypeAnnotation__.js +6 -6
- package/out/concepts/DatabaseTypeAnnotation__.js.map +1 -1
- package/out/concepts/Destination__.js +3 -9
- package/out/concepts/Destination__.js.map +1 -1
- package/out/concepts/EntityIndex__.d.ts +2 -2
- package/out/concepts/EntityIndex__.js +4 -13
- package/out/concepts/EntityIndex__.js.map +1 -1
- package/out/concepts/EntityProperty__.d.ts +10 -12
- package/out/concepts/EntityProperty__.js +25 -44
- package/out/concepts/EntityProperty__.js.map +1 -1
- package/out/concepts/Entity__.d.ts +2 -2
- package/out/concepts/Entity__.js +7 -17
- package/out/concepts/Entity__.js.map +1 -1
- package/out/concepts/EnumItem__.d.ts +1 -1
- package/out/concepts/EnumItem__.js +1 -7
- package/out/concepts/EnumItem__.js.map +1 -1
- package/out/concepts/Enum__.js +3 -9
- package/out/concepts/Enum__.js.map +1 -1
- package/out/concepts/EventDeclaration__.js +4 -16
- package/out/concepts/EventDeclaration__.js.map +1 -1
- package/out/concepts/Event__.js +5 -15
- package/out/concepts/Event__.js.map +1 -1
- package/out/concepts/ExternalDestination__.d.ts +1 -1
- package/out/concepts/ExternalDestination__.js +1 -3
- package/out/concepts/ExternalDestination__.js.map +1 -1
- package/out/concepts/FieldPermissionV2__.js +2 -6
- package/out/concepts/FieldPermissionV2__.js.map +1 -1
- package/out/concepts/FlowConditionV2__.js +1 -3
- package/out/concepts/FlowConditionV2__.js.map +1 -1
- package/out/concepts/ForEachStatement__.d.ts +1 -1
- package/out/concepts/ForEachStatement__.js.map +1 -1
- package/out/concepts/FrontendLibrary__.js +2 -6
- package/out/concepts/FrontendLibrary__.js.map +1 -1
- package/out/concepts/FrontendType__.d.ts +0 -4
- package/out/concepts/FrontendType__.js +2 -15
- package/out/concepts/FrontendType__.js.map +1 -1
- package/out/concepts/FrontendVariable__.js +1 -3
- package/out/concepts/FrontendVariable__.js.map +1 -1
- package/out/concepts/Frontend__.d.ts +0 -2
- package/out/concepts/Frontend__.js +8 -31
- package/out/concepts/Frontend__.js.map +1 -1
- package/out/concepts/Function__.js +2 -6
- package/out/concepts/Function__.js.map +1 -1
- package/out/concepts/HistoryProcessV2__.js +4 -12
- package/out/concepts/HistoryProcessV2__.js.map +1 -1
- package/out/concepts/I18nInfo__.d.ts +1 -1
- package/out/concepts/I18nInfo__.js +5 -9
- package/out/concepts/I18nInfo__.js.map +1 -1
- package/out/concepts/IconSetter__.js +1 -7
- package/out/concepts/IconSetter__.js.map +1 -1
- package/out/concepts/Identifier__.js +7 -7
- package/out/concepts/Identifier__.js.map +1 -1
- package/out/concepts/ImportedInterface__.d.ts +1 -1
- package/out/concepts/ImportedInterface__.js +1 -3
- package/out/concepts/ImportedInterface__.js.map +1 -1
- package/out/concepts/InputSetter__.js +1 -7
- package/out/concepts/InputSetter__.js.map +1 -1
- package/out/concepts/Integration__.js.map +1 -1
- package/out/concepts/InterfaceParam__.js +4 -12
- package/out/concepts/InterfaceParam__.js.map +1 -1
- package/out/concepts/Interface__.js +8 -18
- package/out/concepts/Interface__.js.map +1 -1
- package/out/concepts/JSBlock__.js +1 -3
- package/out/concepts/JSBlock__.js.map +1 -1
- package/out/concepts/JavaLogic__.js +3 -9
- package/out/concepts/JavaLogic__.js.map +1 -1
- package/out/concepts/LogicDeclaration__.js +3 -13
- package/out/concepts/LogicDeclaration__.js.map +1 -1
- package/out/concepts/LogicItem__.js +5 -31
- package/out/concepts/LogicItem__.js.map +1 -1
- package/out/concepts/Logic__.d.ts +6 -6
- package/out/concepts/Logic__.js +25 -36
- package/out/concepts/Logic__.js.map +1 -1
- package/out/concepts/MatchCase__.d.ts +2 -2
- package/out/concepts/MatchCase__.js +11 -11
- package/out/concepts/MatchCase__.js.map +1 -1
- package/out/concepts/Match__.js +1 -3
- package/out/concepts/Match__.js.map +1 -1
- package/out/concepts/MemberExpression__.js +6 -2
- package/out/concepts/MemberExpression__.js.map +1 -1
- package/out/concepts/MetadataType__.d.ts +1 -1
- package/out/concepts/MetadataType__.js +4 -12
- package/out/concepts/MetadataType__.js.map +1 -1
- package/out/concepts/MicroApp__.js +7 -21
- package/out/concepts/MicroApp__.js.map +1 -1
- package/out/concepts/Module__.d.ts +2 -2
- package/out/concepts/Module__.js +8 -24
- package/out/concepts/Module__.js.map +1 -1
- package/out/concepts/Namespace__.js +4 -12
- package/out/concepts/Namespace__.js.map +1 -1
- package/out/concepts/NewComposite__.js +6 -10
- package/out/concepts/NewComposite__.js.map +1 -1
- package/out/concepts/NewList__.d.ts +1 -1
- package/out/concepts/NewList__.js.map +1 -1
- package/out/concepts/NewMap__.d.ts +1 -1
- package/out/concepts/NewMap__.js +5 -2
- package/out/concepts/NewMap__.js.map +1 -1
- package/out/concepts/NumberInputSetter__.js +5 -35
- package/out/concepts/NumberInputSetter__.js.map +1 -1
- package/out/concepts/NumericLiteral__.js +1 -3
- package/out/concepts/NumericLiteral__.js.map +1 -1
- package/out/concepts/OperatePermissionV2__.js +4 -12
- package/out/concepts/OperatePermissionV2__.js.map +1 -1
- package/out/concepts/OqlQueryComponent__.d.ts +1 -1
- package/out/concepts/OqlQueryComponent__.js +2 -6
- package/out/concepts/OqlQueryComponent__.js.map +1 -1
- package/out/concepts/OverriddenLogic__.js +12 -26
- package/out/concepts/OverriddenLogic__.js.map +1 -1
- package/out/concepts/ParamWithGroup__.js +2 -6
- package/out/concepts/ParamWithGroup__.js.map +1 -1
- package/out/concepts/Param__.d.ts +1 -1
- package/out/concepts/Param__.js +2 -14
- package/out/concepts/Param__.js.map +1 -1
- package/out/concepts/Point__.js +2 -6
- package/out/concepts/Point__.js.map +1 -1
- package/out/concepts/ProcessBindV2__.js +2 -6
- package/out/concepts/ProcessBindV2__.js.map +1 -1
- package/out/concepts/ProcessComponent__.js +4 -12
- package/out/concepts/ProcessComponent__.js.map +1 -1
- package/out/concepts/ProcessElementV2__.js +8 -24
- package/out/concepts/ProcessElementV2__.js.map +1 -1
- package/out/concepts/ProcessElement__.js +10 -22
- package/out/concepts/ProcessElement__.js.map +1 -1
- package/out/concepts/ProcessOutcome__.js +1 -3
- package/out/concepts/ProcessOutcome__.js.map +1 -1
- package/out/concepts/ProcessOutcomes__.js +0 -1
- package/out/concepts/ProcessOutcomes__.js.map +1 -1
- package/out/concepts/ProcessV2__.js +6 -18
- package/out/concepts/ProcessV2__.js.map +1 -1
- package/out/concepts/Process__.js +3 -9
- package/out/concepts/Process__.js.map +1 -1
- package/out/concepts/PropDeclaration__.d.ts +4 -0
- package/out/concepts/PropDeclaration__.js +19 -84
- package/out/concepts/PropDeclaration__.js.map +1 -1
- package/out/concepts/QueryAggregateExpression__.js +2 -6
- package/out/concepts/QueryAggregateExpression__.js.map +1 -1
- package/out/concepts/QueryFieldExpression__.js +4 -12
- package/out/concepts/QueryFieldExpression__.js.map +1 -1
- package/out/concepts/QueryFromExpression__.js +3 -9
- package/out/concepts/QueryFromExpression__.js.map +1 -1
- package/out/concepts/QueryJoinExpression__.js +4 -12
- package/out/concepts/QueryJoinExpression__.js.map +1 -1
- package/out/concepts/QueryLimitExpression__.js +12 -4
- package/out/concepts/QueryLimitExpression__.js.map +1 -1
- package/out/concepts/QueryOrderByExpression__.js +6 -2
- package/out/concepts/QueryOrderByExpression__.js.map +1 -1
- package/out/concepts/QuerySelectExpression__.js +5 -7
- package/out/concepts/QuerySelectExpression__.js.map +1 -1
- package/out/concepts/Rect__.js +4 -12
- package/out/concepts/Rect__.js.map +1 -1
- package/out/concepts/Return__.d.ts +1 -1
- package/out/concepts/Return__.js +2 -10
- package/out/concepts/Return__.js.map +1 -1
- package/out/concepts/Role__.d.ts +4 -4
- package/out/concepts/Role__.js +6 -14
- package/out/concepts/Role__.js.map +1 -1
- package/out/concepts/SelectMembers__.js +1 -3
- package/out/concepts/SelectMembers__.js.map +1 -1
- package/out/concepts/SetterOption__.js +6 -34
- package/out/concepts/SetterOption__.js.map +1 -1
- package/out/concepts/SlotDeclaration__.js +5 -23
- package/out/concepts/SlotDeclaration__.js.map +1 -1
- package/out/concepts/SqlQueryComponent__.js +4 -12
- package/out/concepts/SqlQueryComponent__.js.map +1 -1
- package/out/concepts/StaticString__.d.ts +1 -1
- package/out/concepts/StaticString__.js +6 -10
- package/out/concepts/StaticString__.js.map +1 -1
- package/out/concepts/StringLiteral__.d.ts +1 -1
- package/out/concepts/StringLiteral__.js +2 -6
- package/out/concepts/StringLiteral__.js.map +1 -1
- package/out/concepts/StructureProperty__.d.ts +5 -5
- package/out/concepts/StructureProperty__.js +5 -13
- package/out/concepts/StructureProperty__.js.map +1 -1
- package/out/concepts/Structure__.d.ts +0 -4
- package/out/concepts/Structure__.js +9 -18
- package/out/concepts/Structure__.js.map +1 -1
- package/out/concepts/SwitchCase__.d.ts +1 -1
- package/out/concepts/SwitchCase__.js.map +1 -1
- package/out/concepts/SwitchStatement__.js.map +1 -1
- package/out/concepts/ThemeVariable__.js +1 -3
- package/out/concepts/ThemeVariable__.js.map +1 -1
- package/out/concepts/Theme__.js +2 -6
- package/out/concepts/Theme__.js.map +1 -1
- package/out/concepts/Transactional__.d.ts +2 -2
- package/out/concepts/Transactional__.js +6 -12
- package/out/concepts/Transactional__.js.map +1 -1
- package/out/concepts/TriggerEvent__.js +1 -3
- package/out/concepts/TriggerEvent__.js.map +1 -1
- package/out/concepts/TriggerLauncher__.js +3 -9
- package/out/concepts/TriggerLauncher__.js.map +1 -1
- package/out/concepts/TypeAnnotation__.d.ts +2 -2
- package/out/concepts/TypeAnnotation__.js +24 -31
- package/out/concepts/TypeAnnotation__.js.map +1 -1
- package/out/concepts/TypeParam__.js +1 -3
- package/out/concepts/TypeParam__.js.map +1 -1
- package/out/concepts/UnaryExpression__.js +1 -3
- package/out/concepts/UnaryExpression__.js.map +1 -1
- package/out/concepts/Unparsed__.js +1 -3
- package/out/concepts/Unparsed__.js.map +1 -1
- package/out/concepts/UseComponent__.js +2 -6
- package/out/concepts/UseComponent__.js.map +1 -1
- package/out/concepts/ValidationRule__.js +3 -17
- package/out/concepts/ValidationRule__.js.map +1 -1
- package/out/concepts/Variable__.d.ts +1 -1
- package/out/concepts/Variable__.js +2 -10
- package/out/concepts/Variable__.js.map +1 -1
- package/out/concepts/ViewBlockWithImage__.js +2 -6
- package/out/concepts/ViewBlockWithImage__.js.map +1 -1
- package/out/concepts/ViewBlock__.js +3 -13
- package/out/concepts/ViewBlock__.js.map +1 -1
- package/out/concepts/ViewComponentDeclaration__.d.ts +1 -1
- package/out/concepts/ViewComponentDeclaration__.js +8 -36
- package/out/concepts/ViewComponentDeclaration__.js.map +1 -1
- package/out/concepts/ViewElement__.js +82 -72
- package/out/concepts/ViewElement__.js.map +1 -1
- package/out/concepts/View__.js +22 -40
- package/out/concepts/View__.js.map +1 -1
- package/out/generator/genBundleFiles.js +1 -0
- package/out/generator/genBundleFiles.js.map +1 -1
- package/out/generator/release-body/utils.js +2 -1
- package/out/generator/release-body/utils.js.map +1 -1
- package/out/natural/genNaturalTS.js +1 -0
- package/out/natural/genNaturalTS.js.map +1 -1
- package/out/server/naslServer.js +24 -10
- package/out/server/naslServer.js.map +1 -1
- package/out/server/translator.js +54 -0
- package/out/server/translator.js.map +1 -1
- package/out/utils/env.d.ts +2 -0
- package/out/utils/env.js +3 -1
- package/out/utils/env.js.map +1 -1
- package/package.json +1 -1
- package/src/common/BaseNode.ts +3 -1
- package/src/concepts/AnonymousFunction__.ts +1 -1
- package/src/concepts/App__.ts +9 -27
- package/src/concepts/Argument__.ts +3 -7
- package/src/concepts/AssigneeV2__.ts +0 -2
- package/src/concepts/Assignee__.ts +0 -2
- package/src/concepts/AssignmentLine__.ts +0 -2
- package/src/concepts/Assignment__.ts +2 -4
- package/src/concepts/Attribute__.ts +9 -21
- package/src/concepts/AuthInterface__.ts +1 -3
- package/src/concepts/AuthLogicForCallInterface__.ts +4 -5
- package/src/concepts/AuthLogic__.ts +1 -3
- package/src/concepts/BackendVariable__.ts +5 -11
- package/src/concepts/Backend__.ts +1 -3
- package/src/concepts/BatchAssignment__.ts +4 -4
- package/src/concepts/BinaryExpression__.ts +9 -7
- package/src/concepts/BindAttribute__.ts +26 -38
- package/src/concepts/BindDirective__.ts +13 -27
- package/src/concepts/BindEvent__.ts +7 -13
- package/src/concepts/BindStyle__.ts +1 -3
- package/src/concepts/BooleanLiteral__.ts +1 -3
- package/src/concepts/BusinessComponent__.ts +16 -20
- package/src/concepts/BusinessLogic__.ts +7 -10
- package/src/concepts/CallConnector__.ts +3 -7
- package/src/concepts/CallEvent__.ts +2 -6
- package/src/concepts/CallFunction__.ts +6 -13
- package/src/concepts/CallInterface__.ts +8 -15
- package/src/concepts/CallLogic__.ts +37 -44
- package/src/concepts/CallQueryComponent__.ts +9 -22
- package/src/concepts/Comment__.ts +1 -3
- package/src/concepts/CompletionProperty__.ts +5 -15
- package/src/concepts/ConfigGroup__.ts +2 -7
- package/src/concepts/ConfigPropertyValue__.ts +3 -15
- package/src/concepts/ConfigProperty__.ts +3 -9
- package/src/concepts/Configuration__.ts +1 -4
- package/src/concepts/Connection__.ts +3 -9
- package/src/concepts/ConnectorLogic__.ts +2 -4
- package/src/concepts/ConnectorTriggerLauncher__.ts +13 -11
- package/src/concepts/ConnectorTrigger__.ts +12 -12
- package/src/concepts/Connector__.ts +3 -9
- package/src/concepts/Constant__.ts +2 -6
- package/src/concepts/CountersignPolicyV2__.ts +1 -3
- package/src/concepts/CountersignPolicy__.ts +1 -3
- package/src/concepts/DataSource__.ts +16 -18
- package/src/concepts/DatabaseTypeAnnotation__.ts +6 -11
- package/src/concepts/Destination__.ts +3 -9
- package/src/concepts/EntityIndex__.ts +6 -15
- package/src/concepts/EntityProperty__.ts +35 -56
- package/src/concepts/Entity__.ts +7 -17
- package/src/concepts/EnumItem__.ts +7 -9
- package/src/concepts/Enum__.ts +3 -9
- package/src/concepts/EventDeclaration__.ts +5 -13
- package/src/concepts/Event__.ts +5 -15
- package/src/concepts/ExternalDestination__.ts +2 -4
- package/src/concepts/FieldPermissionV2__.ts +2 -6
- package/src/concepts/FlowConditionV2__.ts +1 -3
- package/src/concepts/ForEachStatement__.ts +1 -1
- package/src/concepts/FrontendLibrary__.ts +2 -6
- package/src/concepts/FrontendType__.ts +2 -14
- package/src/concepts/FrontendVariable__.ts +1 -3
- package/src/concepts/Frontend__.ts +11 -35
- package/src/concepts/Function__.ts +2 -6
- package/src/concepts/HistoryProcessV2__.ts +4 -12
- package/src/concepts/I18nInfo__.ts +8 -15
- package/src/concepts/IconSetter__.ts +2 -4
- package/src/concepts/Identifier__.ts +9 -10
- package/src/concepts/ImportedInterface__.ts +2 -4
- package/src/concepts/InputSetter__.ts +2 -4
- package/src/concepts/Integration__.ts +0 -1
- package/src/concepts/InterfaceParam__.ts +4 -12
- package/src/concepts/InterfaceTriggerEvent__.ts +1 -1
- package/src/concepts/Interface__.ts +10 -21
- package/src/concepts/JSBlock__.ts +1 -3
- package/src/concepts/JavaLogic__.ts +3 -9
- package/src/concepts/LogicDeclaration__.ts +4 -10
- package/src/concepts/LogicItem__.ts +9 -19
- package/src/concepts/Logic__.ts +43 -47
- package/src/concepts/MatchCase__.ts +12 -12
- package/src/concepts/Match__.ts +11 -8
- package/src/concepts/MemberExpression__.ts +8 -2
- package/src/concepts/MetadataType__.ts +9 -16
- package/src/concepts/MicroApp__.ts +7 -21
- package/src/concepts/Module__.ts +10 -26
- package/src/concepts/Namespace__.ts +4 -12
- package/src/concepts/NewComposite__.ts +18 -16
- package/src/concepts/NewList__.ts +1 -1
- package/src/concepts/NewMap__.ts +15 -6
- package/src/concepts/NumberInputSetter__.ts +10 -20
- package/src/concepts/NumericLiteral__.ts +1 -3
- package/src/concepts/OperatePermissionV2__.ts +4 -12
- package/src/concepts/OqlQueryComponent__.ts +3 -7
- package/src/concepts/OverriddenLogic__.ts +15 -25
- package/src/concepts/ParamWithGroup__.ts +2 -6
- package/src/concepts/Param__.ts +5 -9
- package/src/concepts/Point__.ts +2 -6
- package/src/concepts/ProcessBindV2__.ts +2 -6
- package/src/concepts/ProcessComponent__.ts +4 -12
- package/src/concepts/ProcessElementV2__.ts +11 -27
- package/src/concepts/ProcessElement__.ts +13 -23
- package/src/concepts/ProcessOutcome__.ts +1 -3
- package/src/concepts/ProcessOutcomes__.ts +0 -1
- package/src/concepts/ProcessV2__.ts +11 -19
- package/src/concepts/Process__.ts +3 -9
- package/src/concepts/PropDeclaration__.ts +31 -57
- package/src/concepts/QueryAggregateExpression__.ts +3 -8
- package/src/concepts/QueryFieldExpression__.ts +23 -30
- package/src/concepts/QueryFromExpression__.ts +3 -9
- package/src/concepts/QueryJoinExpression__.ts +5 -14
- package/src/concepts/QueryLimitExpression__.ts +16 -4
- package/src/concepts/QueryOrderByExpression__.ts +22 -13
- package/src/concepts/QuerySelectExpression__.ts +8 -13
- package/src/concepts/Rect__.ts +4 -12
- package/src/concepts/Return__.ts +4 -8
- package/src/concepts/Role__.ts +8 -16
- package/src/concepts/SelectMembers__.ts +1 -3
- package/src/concepts/SetterOption__.ts +10 -22
- package/src/concepts/SlotDeclaration__.ts +7 -17
- package/src/concepts/SqlQueryComponent__.ts +5 -13
- package/src/concepts/StaticString__.ts +9 -16
- package/src/concepts/StringLiteral__.ts +5 -11
- package/src/concepts/StructureProperty__.ts +10 -18
- package/src/concepts/Structure__.ts +10 -18
- package/src/concepts/SwitchCase__.ts +1 -1
- package/src/concepts/SwitchStatement__.ts +1 -1
- package/src/concepts/ThemeVariable__.ts +1 -3
- package/src/concepts/Theme__.ts +2 -6
- package/src/concepts/Transactional__.ts +10 -19
- package/src/concepts/TriggerEvent__.ts +1 -3
- package/src/concepts/TriggerLauncher__.ts +11 -15
- package/src/concepts/TypeAnnotation__.ts +50 -41
- package/src/concepts/TypeParam__.ts +1 -3
- package/src/concepts/UnaryExpression__.ts +1 -3
- package/src/concepts/Unparsed__.ts +1 -3
- package/src/concepts/UseComponent__.ts +2 -6
- package/src/concepts/ValidationRule__.ts +5 -11
- package/src/concepts/Variable__.ts +4 -8
- package/src/concepts/ViewBlockWithImage__.ts +2 -6
- package/src/concepts/ViewBlock__.ts +4 -10
- package/src/concepts/ViewComponentDeclaration__.ts +11 -27
- package/src/concepts/ViewElement__.ts +219 -146
- package/src/concepts/View__.ts +40 -54
- package/src/generator/genBundleFiles.ts +2 -1
- package/src/generator/release-body/utils.ts +2 -1
- package/src/natural/genNaturalTS.ts +1 -0
- package/src/server/naslServer.ts +24 -10
- package/src/server/translator.ts +56 -0
- package/src/utils/env.ts +2 -0
|
@@ -43,17 +43,13 @@ export class FrontendType extends BaseNode {
|
|
|
43
43
|
/**
|
|
44
44
|
* 名称与type保持一致
|
|
45
45
|
*/
|
|
46
|
-
@property(
|
|
47
|
-
objectRef: '',
|
|
48
|
-
})
|
|
46
|
+
@property()
|
|
49
47
|
name: 'pc' | 'h5';
|
|
50
48
|
|
|
51
49
|
/**
|
|
52
50
|
* PC/H5 端
|
|
53
51
|
*/
|
|
54
|
-
@property(
|
|
55
|
-
objectRef: '',
|
|
56
|
-
})
|
|
52
|
+
@property()
|
|
57
53
|
kind: 'pc' | 'h5';
|
|
58
54
|
|
|
59
55
|
/**
|
|
@@ -86,14 +82,6 @@ export class FrontendType extends BaseNode {
|
|
|
86
82
|
})
|
|
87
83
|
componentDependencies: Array<Module> = [];
|
|
88
84
|
|
|
89
|
-
/**
|
|
90
|
-
* 框架语言标识
|
|
91
|
-
*/
|
|
92
|
-
@property({
|
|
93
|
-
objectRef: '',
|
|
94
|
-
})
|
|
95
|
-
frameworkKind: 'vue2' | 'react' = 'vue2';
|
|
96
|
-
|
|
97
85
|
/**
|
|
98
86
|
* @param source 需要合并的部分参数
|
|
99
87
|
*/
|
|
@@ -56,49 +56,37 @@ export class Frontend extends BaseNode {
|
|
|
56
56
|
/**
|
|
57
57
|
* 前端标识
|
|
58
58
|
*/
|
|
59
|
-
@property(
|
|
60
|
-
objectRef: '',
|
|
61
|
-
})
|
|
59
|
+
@property()
|
|
62
60
|
name: string = '';
|
|
63
61
|
|
|
64
62
|
/**
|
|
65
63
|
* pc端
|
|
66
64
|
*/
|
|
67
|
-
@property(
|
|
68
|
-
objectRef: '',
|
|
69
|
-
})
|
|
65
|
+
@property()
|
|
70
66
|
title: string;
|
|
71
67
|
|
|
72
68
|
/**
|
|
73
69
|
* PC/H5 端
|
|
74
70
|
*/
|
|
75
|
-
@property(
|
|
76
|
-
objectRef: '',
|
|
77
|
-
})
|
|
71
|
+
@property()
|
|
78
72
|
type: 'pc' | 'h5';
|
|
79
73
|
|
|
80
74
|
/**
|
|
81
75
|
* 基础路径
|
|
82
76
|
*/
|
|
83
|
-
@property(
|
|
84
|
-
objectRef: '',
|
|
85
|
-
})
|
|
77
|
+
@property()
|
|
86
78
|
path: string;
|
|
87
79
|
|
|
88
80
|
/**
|
|
89
81
|
* 制品应用标题
|
|
90
82
|
*/
|
|
91
|
-
@property(
|
|
92
|
-
objectRef: '',
|
|
93
|
-
})
|
|
83
|
+
@property()
|
|
94
84
|
documentTitle: string;
|
|
95
85
|
|
|
96
86
|
/**
|
|
97
87
|
* 制品应用图标
|
|
98
88
|
*/
|
|
99
|
-
@property(
|
|
100
|
-
objectRef: '',
|
|
101
|
-
})
|
|
89
|
+
@property()
|
|
102
90
|
documentIcon: string;
|
|
103
91
|
|
|
104
92
|
/**
|
|
@@ -142,17 +130,13 @@ export class Frontend extends BaseNode {
|
|
|
142
130
|
/**
|
|
143
131
|
* 全局缩放开关
|
|
144
132
|
*/
|
|
145
|
-
@property(
|
|
146
|
-
objectRef: '',
|
|
147
|
-
})
|
|
133
|
+
@property()
|
|
148
134
|
globalScaleEnabled: boolean = false;
|
|
149
135
|
|
|
150
136
|
/**
|
|
151
137
|
* 画布宽度
|
|
152
138
|
*/
|
|
153
|
-
@property(
|
|
154
|
-
objectRef: '',
|
|
155
|
-
})
|
|
139
|
+
@property()
|
|
156
140
|
canvasWidth: number = 0;
|
|
157
141
|
|
|
158
142
|
/**
|
|
@@ -902,14 +886,6 @@ export class Frontend extends BaseNode {
|
|
|
902
886
|
};
|
|
903
887
|
}
|
|
904
888
|
|
|
905
|
-
get frameworkKind(): FrontendType['frameworkKind']{
|
|
906
|
-
const node = this.getAncestor('FrontendType');
|
|
907
|
-
if(asserts.isFrontendType(node)){
|
|
908
|
-
return node.frameworkKind ?? 'vue2';
|
|
909
|
-
}
|
|
910
|
-
return 'vue2';
|
|
911
|
-
}
|
|
912
|
-
|
|
913
889
|
getPath() {
|
|
914
890
|
const { path } = this;
|
|
915
891
|
const finalPath = path && path !== '/' ? path : '';
|
|
@@ -1080,8 +1056,8 @@ export class Frontend extends BaseNode {
|
|
|
1080
1056
|
i18nKey: createUUID(),
|
|
1081
1057
|
});
|
|
1082
1058
|
}
|
|
1083
|
-
})
|
|
1084
|
-
})
|
|
1059
|
+
});
|
|
1060
|
+
});
|
|
1085
1061
|
this.app?.emit('collect:end');
|
|
1086
1062
|
}
|
|
1087
1063
|
|
|
@@ -1111,7 +1087,7 @@ export class Frontend extends BaseNode {
|
|
|
1111
1087
|
const allEnums = [...this.app.enums];
|
|
1112
1088
|
this.app?.dependencies.forEach((item) => {
|
|
1113
1089
|
allEnums.push(...item.enums);
|
|
1114
|
-
})
|
|
1090
|
+
});
|
|
1115
1091
|
allEnums.forEach((item) => {
|
|
1116
1092
|
item.enumItems.forEach((item) => {
|
|
1117
1093
|
if (item?.label?.i18nKey) {
|
|
@@ -56,17 +56,13 @@ export class Function extends BaseNode {
|
|
|
56
56
|
/**
|
|
57
57
|
* 函数名称
|
|
58
58
|
*/
|
|
59
|
-
@property(
|
|
60
|
-
objectRef: '',
|
|
61
|
-
})
|
|
59
|
+
@property()
|
|
62
60
|
name: string = '';
|
|
63
61
|
|
|
64
62
|
/**
|
|
65
63
|
* 函数描述
|
|
66
64
|
*/
|
|
67
|
-
@property(
|
|
68
|
-
objectRef: '',
|
|
69
|
-
})
|
|
65
|
+
@property()
|
|
70
66
|
description: string;
|
|
71
67
|
|
|
72
68
|
/**
|
|
@@ -41,25 +41,19 @@ export class HistoryProcessV2 extends BaseNode {
|
|
|
41
41
|
/**
|
|
42
42
|
* 流程名称
|
|
43
43
|
*/
|
|
44
|
-
@property(
|
|
45
|
-
objectRef: '',
|
|
46
|
-
})
|
|
44
|
+
@property()
|
|
47
45
|
name: string = '';
|
|
48
46
|
|
|
49
47
|
/**
|
|
50
48
|
* 流程标题
|
|
51
49
|
*/
|
|
52
|
-
@property(
|
|
53
|
-
objectRef: '',
|
|
54
|
-
})
|
|
50
|
+
@property()
|
|
55
51
|
title: string;
|
|
56
52
|
|
|
57
53
|
/**
|
|
58
54
|
* 流程描述
|
|
59
55
|
*/
|
|
60
|
-
@property(
|
|
61
|
-
objectRef: '',
|
|
62
|
-
})
|
|
56
|
+
@property()
|
|
63
57
|
description: string;
|
|
64
58
|
|
|
65
59
|
/**
|
|
@@ -75,9 +69,7 @@ export class HistoryProcessV2 extends BaseNode {
|
|
|
75
69
|
/**
|
|
76
70
|
* 流程版本
|
|
77
71
|
*/
|
|
78
|
-
@property(
|
|
79
|
-
objectRef: '',
|
|
80
|
-
})
|
|
72
|
+
@property()
|
|
81
73
|
version: number;
|
|
82
74
|
|
|
83
75
|
/**
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
withSourceMap,
|
|
3
|
-
createCompilerState,
|
|
4
|
-
} from '../translator';
|
|
1
|
+
import { withSourceMap, createCompilerState } from '../translator';
|
|
5
2
|
//================================================================================
|
|
6
3
|
// 从这里开始到结尾注释之间的代码由 NASL Workbench 自动生成,请不手动修改!
|
|
7
4
|
// ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓
|
|
@@ -39,24 +36,20 @@ export class I18nInfo extends BaseNode {
|
|
|
39
36
|
/**
|
|
40
37
|
* 是否开启
|
|
41
38
|
*/
|
|
42
|
-
@property(
|
|
43
|
-
objectRef: '',
|
|
44
|
-
})
|
|
39
|
+
@property()
|
|
45
40
|
enabled: boolean;
|
|
46
41
|
|
|
47
42
|
/**
|
|
48
43
|
* locale
|
|
49
44
|
*/
|
|
50
|
-
@property(
|
|
51
|
-
objectRef: '',
|
|
52
|
-
})
|
|
45
|
+
@property()
|
|
53
46
|
locale: string;
|
|
54
47
|
|
|
55
48
|
/**
|
|
56
49
|
* 国际化配置列表
|
|
57
50
|
*/
|
|
58
51
|
@property()
|
|
59
|
-
messageMap
|
|
52
|
+
messageMap: Record<string, Record<string, string>>;
|
|
60
53
|
|
|
61
54
|
/**
|
|
62
55
|
* @param source 需要合并的部分参数
|
|
@@ -95,15 +88,15 @@ export class I18nInfo extends BaseNode {
|
|
|
95
88
|
});
|
|
96
89
|
}
|
|
97
90
|
|
|
91
|
+
//================================================================================
|
|
92
|
+
// ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑
|
|
93
|
+
// 自动生成的代码已结束。下面可以手动编写。
|
|
94
|
+
//================================================================================
|
|
98
95
|
@withSourceMap()
|
|
99
96
|
toNaturalTS(state = createCompilerState()): string {
|
|
100
97
|
return '';
|
|
101
98
|
}
|
|
102
99
|
|
|
103
|
-
//================================================================================
|
|
104
|
-
// ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑
|
|
105
|
-
// 自动生成的代码已结束。下面可以手动编写。
|
|
106
|
-
//================================================================================
|
|
107
100
|
get messagesLanguageList() {
|
|
108
101
|
return Object.keys(this.messageMap || {});
|
|
109
102
|
}
|
|
@@ -53,17 +53,13 @@ export class Identifier extends LogicItem {
|
|
|
53
53
|
/**
|
|
54
54
|
* 命名空间
|
|
55
55
|
*/
|
|
56
|
-
@property(
|
|
57
|
-
objectRef: '',
|
|
58
|
-
})
|
|
56
|
+
@property()
|
|
59
57
|
namespace: string;
|
|
60
58
|
|
|
61
59
|
/**
|
|
62
60
|
* 标识符名称
|
|
63
61
|
*/
|
|
64
|
-
@property(
|
|
65
|
-
objectRef: '',
|
|
66
|
-
})
|
|
62
|
+
@property()
|
|
67
63
|
name: string = '';
|
|
68
64
|
|
|
69
65
|
/**
|
|
@@ -282,7 +278,7 @@ export class Identifier extends LogicItem {
|
|
|
282
278
|
// 业务组件需要特殊处理
|
|
283
279
|
if (this.businessComponent && ['BusinessLogic'].includes(findLogic.concept)) {
|
|
284
280
|
if (state?.inElementsRefTree) {
|
|
285
|
-
code +=
|
|
281
|
+
code += `__${this.businessComponent.name}.__`;
|
|
286
282
|
} else {
|
|
287
283
|
code += `(this as ${this.businessComponent.name}).`;
|
|
288
284
|
}
|
|
@@ -330,12 +326,15 @@ export class Identifier extends LogicItem {
|
|
|
330
326
|
|
|
331
327
|
@withSourceMap()
|
|
332
328
|
toNaturalTS(state = createCompilerState()): string {
|
|
333
|
-
if (this.name === undefined)
|
|
334
|
-
console.log(this.toJSON(), this.parentNode.toJSON(), this.nodePath)
|
|
329
|
+
if (this.name === undefined) console.log(this.toJSON(), this.parentNode.toJSON(), this.nodePath);
|
|
335
330
|
|
|
336
331
|
if (this.namespace) {
|
|
337
332
|
const namespace = this.namespace.replace(/^app\.frontendTypes\.(.+?\.)variables\.$/, '$1');
|
|
338
|
-
const name = Number.isInteger(Number(this.name))
|
|
333
|
+
const name = Number.isInteger(Number(this.name))
|
|
334
|
+
? `[${this.name}]`
|
|
335
|
+
: this.name.includes('-')
|
|
336
|
+
? `['${this.name}']`
|
|
337
|
+
: `.${this.name}`;
|
|
339
338
|
return `${namespace}${name}`;
|
|
340
339
|
} else {
|
|
341
340
|
return this.name;
|
|
@@ -36,10 +36,8 @@ export abstract class ImportedInterface extends AbstractInterface {
|
|
|
36
36
|
/**
|
|
37
37
|
* exampleMap
|
|
38
38
|
*/
|
|
39
|
-
@property(
|
|
40
|
-
|
|
41
|
-
})
|
|
42
|
-
exampleMap: Map<'responseBody' | 'requestBody', string>;
|
|
39
|
+
@property()
|
|
40
|
+
exampleMap: Record<'responseBody' | 'requestBody', string>;
|
|
43
41
|
|
|
44
42
|
/**
|
|
45
43
|
* @param source 需要合并的部分参数
|
|
@@ -294,7 +294,6 @@ export class Integration extends BaseNode {
|
|
|
294
294
|
return ((this.connectors as Connector[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item.title);
|
|
295
295
|
}
|
|
296
296
|
|
|
297
|
-
|
|
298
297
|
//================================================================================
|
|
299
298
|
// 从这里开始到结尾注释之间的代码由 NASL Workbench 自动生成,请不手动修改!
|
|
300
299
|
// ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓
|
|
@@ -59,17 +59,13 @@ export class InterfaceParam extends BaseNode {
|
|
|
59
59
|
/**
|
|
60
60
|
* 接口参数名称
|
|
61
61
|
*/
|
|
62
|
-
@property(
|
|
63
|
-
objectRef: '',
|
|
64
|
-
})
|
|
62
|
+
@property()
|
|
65
63
|
name: string = '';
|
|
66
64
|
|
|
67
65
|
/**
|
|
68
66
|
* 接口参数描述
|
|
69
67
|
*/
|
|
70
|
-
@property(
|
|
71
|
-
objectRef: '',
|
|
72
|
-
})
|
|
68
|
+
@property()
|
|
73
69
|
description: string;
|
|
74
70
|
|
|
75
71
|
/**
|
|
@@ -83,17 +79,13 @@ export class InterfaceParam extends BaseNode {
|
|
|
83
79
|
/**
|
|
84
80
|
* 参数位置
|
|
85
81
|
*/
|
|
86
|
-
@property(
|
|
87
|
-
objectRef: '',
|
|
88
|
-
})
|
|
82
|
+
@property()
|
|
89
83
|
in: 'query' | 'path' | 'body' | 'header' | 'cookie';
|
|
90
84
|
|
|
91
85
|
/**
|
|
92
86
|
* 是否必填
|
|
93
87
|
*/
|
|
94
|
-
@property(
|
|
95
|
-
objectRef: '',
|
|
96
|
-
})
|
|
88
|
+
@property()
|
|
97
89
|
required: boolean;
|
|
98
90
|
|
|
99
91
|
/**
|
|
@@ -6,9 +6,9 @@ import { EventPayload, Params } from '../common/EventEmitter';
|
|
|
6
6
|
import { concept, excludedInJSON, property, getConceptConstructor } from '../decorators';
|
|
7
7
|
|
|
8
8
|
import * as utils from '../utils';
|
|
9
|
+
import { createUUID } from '../utils/create';
|
|
9
10
|
import * as types from './utils/types';
|
|
10
11
|
import * as asserts from './utils/asserts';
|
|
11
|
-
import { v4 as uuidv4 } from 'uuid';
|
|
12
12
|
|
|
13
13
|
import AbstractInterface from './AbstractInterface__';
|
|
14
14
|
import TriggerEvent from './TriggerEvent__';
|
|
@@ -62,41 +62,31 @@ export class Interface extends ImportedInterface {
|
|
|
62
62
|
/**
|
|
63
63
|
* 接口名称
|
|
64
64
|
*/
|
|
65
|
-
@property(
|
|
66
|
-
objectRef: '',
|
|
67
|
-
})
|
|
65
|
+
@property()
|
|
68
66
|
name: string = '';
|
|
69
67
|
|
|
70
68
|
/**
|
|
71
69
|
* 导出的来源
|
|
72
70
|
*/
|
|
73
|
-
@property(
|
|
74
|
-
objectRef: '',
|
|
75
|
-
})
|
|
71
|
+
@property()
|
|
76
72
|
originLogicName: string;
|
|
77
73
|
|
|
78
74
|
/**
|
|
79
75
|
* 接口路径
|
|
80
76
|
*/
|
|
81
|
-
@property(
|
|
82
|
-
objectRef: '',
|
|
83
|
-
})
|
|
77
|
+
@property()
|
|
84
78
|
path: string;
|
|
85
79
|
|
|
86
80
|
/**
|
|
87
81
|
* 接口方法
|
|
88
82
|
*/
|
|
89
|
-
@property(
|
|
90
|
-
objectRef: '',
|
|
91
|
-
})
|
|
83
|
+
@property()
|
|
92
84
|
method: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
|
|
93
85
|
|
|
94
86
|
/**
|
|
95
87
|
* 接口描述
|
|
96
88
|
*/
|
|
97
|
-
@property(
|
|
98
|
-
objectRef: '',
|
|
99
|
-
})
|
|
89
|
+
@property()
|
|
100
90
|
description: string;
|
|
101
91
|
|
|
102
92
|
/**
|
|
@@ -622,17 +612,17 @@ export class Interface extends ImportedInterface {
|
|
|
622
612
|
});
|
|
623
613
|
super.delete();
|
|
624
614
|
if (this.originLogicName) {
|
|
625
|
-
const logic = this.app.logics?.find((logic) => logic.name === this.originLogicName)
|
|
615
|
+
const logic = this.app.logics?.find((logic) => logic.name === this.originLogicName);
|
|
626
616
|
this.app.naslServer?.embeddedTSEmitter.emit('change', {
|
|
627
617
|
value: [
|
|
628
618
|
{
|
|
629
619
|
originEvent: {
|
|
630
620
|
action: 'update',
|
|
631
621
|
target: logic,
|
|
632
|
-
}
|
|
633
|
-
}
|
|
634
|
-
]
|
|
635
|
-
})
|
|
622
|
+
},
|
|
623
|
+
},
|
|
624
|
+
],
|
|
625
|
+
});
|
|
636
626
|
}
|
|
637
627
|
this.app?.emit('collect:end');
|
|
638
628
|
}
|
|
@@ -1006,7 +996,6 @@ export class Interface extends ImportedInterface {
|
|
|
1006
996
|
return code;
|
|
1007
997
|
}
|
|
1008
998
|
|
|
1009
|
-
|
|
1010
999
|
getNamespace(): string {
|
|
1011
1000
|
// 针对 Connector 下的 Interface 需要做额外的兼容处理
|
|
1012
1001
|
// 本来 Connector 对应的 Namespace 是 connector,走默认逻辑就成
|
|
@@ -45,25 +45,19 @@ export class JavaLogic extends LogicItem {
|
|
|
45
45
|
/**
|
|
46
46
|
* 包名
|
|
47
47
|
*/
|
|
48
|
-
@property(
|
|
49
|
-
objectRef: '',
|
|
50
|
-
})
|
|
48
|
+
@property()
|
|
51
49
|
packageName: string;
|
|
52
50
|
|
|
53
51
|
/**
|
|
54
52
|
* className
|
|
55
53
|
*/
|
|
56
|
-
@property(
|
|
57
|
-
objectRef: '',
|
|
58
|
-
})
|
|
54
|
+
@property()
|
|
59
55
|
className: string;
|
|
60
56
|
|
|
61
57
|
/**
|
|
62
58
|
* 代码内容
|
|
63
59
|
*/
|
|
64
|
-
@property(
|
|
65
|
-
objectRef: '',
|
|
66
|
-
})
|
|
60
|
+
@property()
|
|
67
61
|
code: string;
|
|
68
62
|
|
|
69
63
|
/**
|
|
@@ -38,25 +38,19 @@ export class LogicDeclaration extends BaseNode {
|
|
|
38
38
|
/**
|
|
39
39
|
* 逻辑名称
|
|
40
40
|
*/
|
|
41
|
-
@property(
|
|
42
|
-
objectRef: '',
|
|
43
|
-
})
|
|
41
|
+
@property()
|
|
44
42
|
name: string = '';
|
|
45
43
|
|
|
46
44
|
/**
|
|
47
45
|
* 逻辑标题
|
|
48
46
|
*/
|
|
49
|
-
@property(
|
|
50
|
-
objectRef: '',
|
|
51
|
-
})
|
|
47
|
+
@property()
|
|
52
48
|
title: string;
|
|
53
49
|
|
|
54
50
|
/**
|
|
55
51
|
* 逻辑描述
|
|
56
52
|
*/
|
|
57
|
-
@property(
|
|
58
|
-
objectRef: '',
|
|
59
|
-
})
|
|
53
|
+
@property()
|
|
60
54
|
description: string;
|
|
61
55
|
|
|
62
56
|
/**
|
|
@@ -67,7 +61,7 @@ export class LogicDeclaration extends BaseNode {
|
|
|
67
61
|
isArray: true,
|
|
68
62
|
defaultValue: null,
|
|
69
63
|
})
|
|
70
|
-
typeParams?: Array<TypeParam
|
|
64
|
+
typeParams?: Array<TypeParam>;
|
|
71
65
|
|
|
72
66
|
/**
|
|
73
67
|
* 输入参数列表
|
|
@@ -117,42 +117,32 @@ export abstract class LogicItem extends BaseNode {
|
|
|
117
117
|
/**
|
|
118
118
|
* 逻辑项标题
|
|
119
119
|
*/
|
|
120
|
-
@property(
|
|
121
|
-
|
|
122
|
-
})
|
|
123
|
-
label?: string = null;
|
|
120
|
+
@property()
|
|
121
|
+
label?: string;
|
|
124
122
|
|
|
125
123
|
/**
|
|
126
124
|
* 逻辑项描述
|
|
127
125
|
*/
|
|
128
|
-
@property(
|
|
129
|
-
|
|
130
|
-
})
|
|
131
|
-
description?: string = null;
|
|
126
|
+
@property()
|
|
127
|
+
description?: string;
|
|
132
128
|
|
|
133
129
|
/**
|
|
134
130
|
* 是否折叠
|
|
135
131
|
*/
|
|
136
|
-
@property(
|
|
137
|
-
objectRef: '',
|
|
138
|
-
})
|
|
132
|
+
@property()
|
|
139
133
|
folded?: boolean = false;
|
|
140
134
|
|
|
141
135
|
/**
|
|
142
136
|
* offsetX
|
|
143
137
|
*/
|
|
144
|
-
@property(
|
|
145
|
-
|
|
146
|
-
})
|
|
147
|
-
offsetX?: number = null;
|
|
138
|
+
@property()
|
|
139
|
+
offsetX?: number;
|
|
148
140
|
|
|
149
141
|
/**
|
|
150
142
|
* offsetY
|
|
151
143
|
*/
|
|
152
|
-
@property(
|
|
153
|
-
|
|
154
|
-
})
|
|
155
|
-
offsetY?: number = null;
|
|
144
|
+
@property()
|
|
145
|
+
offsetY?: number;
|
|
156
146
|
|
|
157
147
|
/**
|
|
158
148
|
* @param source 需要合并的部分参数
|