@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
package/src/concepts/NewMap__.ts
CHANGED
|
@@ -54,7 +54,7 @@ export class NewMap extends LogicItem {
|
|
|
54
54
|
@property({
|
|
55
55
|
objectRef: 'TypeAnnotation',
|
|
56
56
|
})
|
|
57
|
-
typeAnnotation
|
|
57
|
+
typeAnnotation?: TypeAnnotation;
|
|
58
58
|
|
|
59
59
|
/**
|
|
60
60
|
* 键
|
|
@@ -680,12 +680,17 @@ export class NewMap extends LogicItem {
|
|
|
680
680
|
toNaturalTS(state = createCompilerState()): string {
|
|
681
681
|
let code = '';
|
|
682
682
|
const typeAnnotation =
|
|
683
|
-
this?.typeAnnotation?.typeArguments
|
|
683
|
+
this?.typeAnnotation?.typeArguments
|
|
684
|
+
?.map((item) => item?.toNaturalTS(shiftState(state, code, { inline: true })))
|
|
685
|
+
?.join(', ') || '__IDENTIFIER__';
|
|
684
686
|
let params = '';
|
|
685
687
|
this?.keys?.forEach((item, index) => {
|
|
686
688
|
if (item) {
|
|
687
|
-
const key =
|
|
688
|
-
|
|
689
|
+
const key =
|
|
690
|
+
item?.toNaturalTS(shiftState(state, code, { inline: true, tabSize: state.tabSize + 1 })) || '__IDENTIFIER__';
|
|
691
|
+
params += `${item?.concept.endsWith('Literal') ? key : `[${key}]`}: ${this?.values?.[index]?.toNaturalTS(
|
|
692
|
+
shiftState(state, code, { inline: true }),
|
|
693
|
+
)}`;
|
|
689
694
|
if (index !== this.keys.length - 1) {
|
|
690
695
|
params += ', ';
|
|
691
696
|
}
|
|
@@ -702,8 +707,12 @@ export class NewMap extends LogicItem {
|
|
|
702
707
|
let paramStr = '';
|
|
703
708
|
this?.keys?.forEach((item, index) => {
|
|
704
709
|
if (item) {
|
|
705
|
-
const key =
|
|
706
|
-
|
|
710
|
+
const key =
|
|
711
|
+
item?.toTextualNASL(shiftState(state, code, { inline: true, tabSize: state.tabSize + 1 })) ||
|
|
712
|
+
'__IDENTIFIER__';
|
|
713
|
+
paramStr += `${item?.concept.endsWith('Literal') ? key : `[${key}]`} -> ${this?.values?.[index]?.toTextualNASL(
|
|
714
|
+
shiftState(state, code, { inline: true }),
|
|
715
|
+
)}`;
|
|
707
716
|
if (index !== this.keys.length - 1) {
|
|
708
717
|
paramStr += ', ';
|
|
709
718
|
}
|
|
@@ -36,42 +36,32 @@ export class NumberInputSetter extends BaseSetter {
|
|
|
36
36
|
/**
|
|
37
37
|
* 按钮位置
|
|
38
38
|
*/
|
|
39
|
-
@property(
|
|
40
|
-
|
|
41
|
-
})
|
|
42
|
-
placement?: string = null;
|
|
39
|
+
@property()
|
|
40
|
+
placement?: string;
|
|
43
41
|
|
|
44
42
|
/**
|
|
45
43
|
* 最小值
|
|
46
44
|
*/
|
|
47
|
-
@property(
|
|
48
|
-
|
|
49
|
-
})
|
|
50
|
-
min?: number = null;
|
|
45
|
+
@property()
|
|
46
|
+
min?: number;
|
|
51
47
|
|
|
52
48
|
/**
|
|
53
49
|
* 最大值
|
|
54
50
|
*/
|
|
55
|
-
@property(
|
|
56
|
-
|
|
57
|
-
})
|
|
58
|
-
max?: number = null;
|
|
51
|
+
@property()
|
|
52
|
+
max?: number;
|
|
59
53
|
|
|
60
54
|
/**
|
|
61
55
|
* 精度
|
|
62
56
|
*/
|
|
63
|
-
@property(
|
|
64
|
-
|
|
65
|
-
})
|
|
66
|
-
precision?: number = null;
|
|
57
|
+
@property()
|
|
58
|
+
precision?: number;
|
|
67
59
|
|
|
68
60
|
/**
|
|
69
61
|
* 占位文本
|
|
70
62
|
*/
|
|
71
|
-
@property(
|
|
72
|
-
|
|
73
|
-
})
|
|
74
|
-
placeholder?: string = null;
|
|
63
|
+
@property()
|
|
64
|
+
placeholder?: string;
|
|
75
65
|
|
|
76
66
|
/**
|
|
77
67
|
* @param source 需要合并的部分参数
|
|
@@ -44,33 +44,25 @@ export class OperatePermissionV2 extends BaseNode {
|
|
|
44
44
|
/**
|
|
45
45
|
* 字段名
|
|
46
46
|
*/
|
|
47
|
-
@property(
|
|
48
|
-
objectRef: '',
|
|
49
|
-
})
|
|
47
|
+
@property()
|
|
50
48
|
name: 'approve' | 'reject' | 'reassign' | 'revert' | 'submit' | 'withdraw';
|
|
51
49
|
|
|
52
50
|
/**
|
|
53
51
|
* 是否允许操作
|
|
54
52
|
*/
|
|
55
|
-
@property(
|
|
56
|
-
objectRef: '',
|
|
57
|
-
})
|
|
53
|
+
@property()
|
|
58
54
|
operationEnabled: boolean;
|
|
59
55
|
|
|
60
56
|
/**
|
|
61
57
|
* 操作显示文本
|
|
62
58
|
*/
|
|
63
|
-
@property(
|
|
64
|
-
objectRef: '',
|
|
65
|
-
})
|
|
59
|
+
@property()
|
|
66
60
|
displayText: string;
|
|
67
61
|
|
|
68
62
|
/**
|
|
69
63
|
* 意见是否必填
|
|
70
64
|
*/
|
|
71
|
-
@property(
|
|
72
|
-
objectRef: '',
|
|
73
|
-
})
|
|
65
|
+
@property()
|
|
74
66
|
commentRequired: boolean;
|
|
75
67
|
|
|
76
68
|
/**
|
|
@@ -56,9 +56,7 @@ export class OqlQueryComponent extends LogicItem {
|
|
|
56
56
|
/**
|
|
57
57
|
* SQL 查询
|
|
58
58
|
*/
|
|
59
|
-
@property(
|
|
60
|
-
objectRef: '',
|
|
61
|
-
})
|
|
59
|
+
@property()
|
|
62
60
|
code: string;
|
|
63
61
|
|
|
64
62
|
/**
|
|
@@ -67,14 +65,12 @@ export class OqlQueryComponent extends LogicItem {
|
|
|
67
65
|
@property({
|
|
68
66
|
objectRef: 'TypeAnnotation',
|
|
69
67
|
})
|
|
70
|
-
typeAnnotation
|
|
68
|
+
typeAnnotation?: TypeAnnotation;
|
|
71
69
|
|
|
72
70
|
/**
|
|
73
71
|
* 数据源
|
|
74
72
|
*/
|
|
75
|
-
@property(
|
|
76
|
-
objectRef: '',
|
|
77
|
-
})
|
|
73
|
+
@property()
|
|
78
74
|
dataSource: string;
|
|
79
75
|
|
|
80
76
|
/**
|
|
@@ -84,41 +84,31 @@ export class OverriddenLogic extends BaseNode {
|
|
|
84
84
|
/**
|
|
85
85
|
* 覆写的模块
|
|
86
86
|
*/
|
|
87
|
-
@property(
|
|
88
|
-
objectRef: '',
|
|
89
|
-
})
|
|
87
|
+
@property()
|
|
90
88
|
overriddenModule: string;
|
|
91
89
|
|
|
92
90
|
/**
|
|
93
91
|
* 覆写逻辑名称
|
|
94
92
|
*/
|
|
95
|
-
@property(
|
|
96
|
-
objectRef: '',
|
|
97
|
-
})
|
|
93
|
+
@property()
|
|
98
94
|
name: string = '';
|
|
99
95
|
|
|
100
96
|
/**
|
|
101
97
|
* 覆写逻辑描述
|
|
102
98
|
*/
|
|
103
|
-
@property(
|
|
104
|
-
objectRef: '',
|
|
105
|
-
})
|
|
99
|
+
@property()
|
|
106
100
|
description: string;
|
|
107
101
|
|
|
108
102
|
/**
|
|
109
103
|
* 触发方式
|
|
110
104
|
*/
|
|
111
|
-
@property(
|
|
112
|
-
objectRef: '',
|
|
113
|
-
})
|
|
105
|
+
@property()
|
|
114
106
|
triggerType: string;
|
|
115
107
|
|
|
116
108
|
/**
|
|
117
109
|
* 定时任务表达式
|
|
118
110
|
*/
|
|
119
|
-
@property(
|
|
120
|
-
objectRef: '',
|
|
121
|
-
})
|
|
111
|
+
@property()
|
|
122
112
|
cron: string;
|
|
123
113
|
|
|
124
114
|
/**
|
|
@@ -137,7 +127,7 @@ export class OverriddenLogic extends BaseNode {
|
|
|
137
127
|
isArray: true,
|
|
138
128
|
defaultValue: null,
|
|
139
129
|
})
|
|
140
|
-
typeParams?: Array<TypeParam
|
|
130
|
+
typeParams?: Array<TypeParam>;
|
|
141
131
|
|
|
142
132
|
/**
|
|
143
133
|
* 输入参数列表
|
|
@@ -1596,14 +1586,13 @@ export class OverriddenLogic extends BaseNode {
|
|
|
1596
1586
|
const callFunctionAdvanceMap: Map<Return | Variable, CallFunction> = new Map();
|
|
1597
1587
|
yield* self.traverseChildrenGenerator(function* traverseChildrenGenerator(el) {
|
|
1598
1588
|
if (
|
|
1599
|
-
el &&
|
|
1600
|
-
|
|
1601
|
-
|
|
1589
|
+
el &&
|
|
1590
|
+
// 批量赋值
|
|
1591
|
+
(asserts.isBatchAssignment(el) ||
|
|
1602
1592
|
// 赋值
|
|
1603
1593
|
(asserts.isAssignment(el) && el.left?.name) ||
|
|
1604
1594
|
// 内置函数对集合类型的推导
|
|
1605
|
-
(asserts.isCallFunction(el) && el.derivablecollection?.name)
|
|
1606
|
-
)
|
|
1595
|
+
(asserts.isCallFunction(el) && el.derivablecollection?.name))
|
|
1607
1596
|
) {
|
|
1608
1597
|
if (asserts.isAssignment(el)) {
|
|
1609
1598
|
const advanceVar = self.variables?.find(
|
|
@@ -1632,7 +1621,7 @@ export class OverriddenLogic extends BaseNode {
|
|
|
1632
1621
|
leftIndex.length === 1
|
|
1633
1622
|
? yield* el.left.expression.toEmbeddedTS(shiftState(state, code, { inline: true }))
|
|
1634
1623
|
: yield* el.left.members[leftIndex[1]]?.toEmbeddedTS(shiftState(state, code, { inline: true })) ??
|
|
1635
|
-
|
|
1624
|
+
returnOrigin('');
|
|
1636
1625
|
const advanceVar = self.variables?.find(
|
|
1637
1626
|
(variable) => !variable.typeAnnotation && leftCode === variable.name,
|
|
1638
1627
|
);
|
|
@@ -1690,7 +1679,7 @@ export class OverriddenLogic extends BaseNode {
|
|
|
1690
1679
|
leftIndex.length === 1
|
|
1691
1680
|
? yield* assignment.left.expression.toEmbeddedTS(shiftState(state, code, { inline: true }))
|
|
1692
1681
|
: yield* assignment.left.members[leftIndex[1]]?.toEmbeddedTS(shiftState(state, code, { inline: true })) ??
|
|
1693
|
-
|
|
1682
|
+
returnOrigin('');
|
|
1694
1683
|
if (leftCode === node.name) {
|
|
1695
1684
|
const rightNode: any =
|
|
1696
1685
|
rightIndex.length === 1
|
|
@@ -1885,7 +1874,8 @@ export class OverriddenLogic extends BaseNode {
|
|
|
1885
1874
|
});
|
|
1886
1875
|
|
|
1887
1876
|
if (!this.body.length || this.body.length === 2) {
|
|
1888
|
-
if (`${this.nodePath}.body[1]` === state.focusedNodePath)
|
|
1877
|
+
if (`${this.nodePath}.body[1]` === state.focusedNodePath)
|
|
1878
|
+
code += `${indent(state.tabSize + 1)}/* 当前位置 */\n`;
|
|
1889
1879
|
code += `${indent(state.tabSize + 1)}return ${this.returns[0].name};\n`;
|
|
1890
1880
|
} else {
|
|
1891
1881
|
this.body.forEach((item) => {
|
|
@@ -1934,7 +1924,7 @@ export class OverriddenLogic extends BaseNode {
|
|
|
1934
1924
|
});
|
|
1935
1925
|
code += ')';
|
|
1936
1926
|
|
|
1937
|
-
if(this.returns.length) {
|
|
1927
|
+
if (this.returns.length) {
|
|
1938
1928
|
code += ' => ';
|
|
1939
1929
|
this.returns.forEach((ret) => {
|
|
1940
1930
|
code += ret.toTextualNASL(shiftState(state, code, { inline: true }));
|
|
@@ -47,17 +47,13 @@ export class ParamWithGroup extends Param {
|
|
|
47
47
|
/**
|
|
48
48
|
* 标题
|
|
49
49
|
*/
|
|
50
|
-
@property(
|
|
51
|
-
objectRef: '',
|
|
52
|
-
})
|
|
50
|
+
@property()
|
|
53
51
|
title: string;
|
|
54
52
|
|
|
55
53
|
/**
|
|
56
54
|
* 分组
|
|
57
55
|
*/
|
|
58
|
-
@property(
|
|
59
|
-
objectRef: '',
|
|
60
|
-
})
|
|
56
|
+
@property()
|
|
61
57
|
group: string;
|
|
62
58
|
|
|
63
59
|
/**
|
package/src/concepts/Param__.ts
CHANGED
|
@@ -71,18 +71,14 @@ export class Param extends BaseNode {
|
|
|
71
71
|
/**
|
|
72
72
|
* 输入参数名称
|
|
73
73
|
*/
|
|
74
|
-
@property(
|
|
75
|
-
objectRef: '',
|
|
76
|
-
})
|
|
74
|
+
@property()
|
|
77
75
|
name: string = '';
|
|
78
76
|
|
|
79
77
|
/**
|
|
80
78
|
* 输入参数描述
|
|
81
79
|
*/
|
|
82
|
-
@property(
|
|
83
|
-
|
|
84
|
-
})
|
|
85
|
-
description?: string = null;
|
|
80
|
+
@property()
|
|
81
|
+
description?: string;
|
|
86
82
|
|
|
87
83
|
/**
|
|
88
84
|
* 类型
|
|
@@ -90,7 +86,7 @@ export class Param extends BaseNode {
|
|
|
90
86
|
@property({
|
|
91
87
|
objectRef: 'TypeAnnotation',
|
|
92
88
|
})
|
|
93
|
-
typeAnnotation
|
|
89
|
+
typeAnnotation?: TypeAnnotation;
|
|
94
90
|
|
|
95
91
|
/**
|
|
96
92
|
* 默认值
|
|
@@ -98,7 +94,7 @@ export class Param extends BaseNode {
|
|
|
98
94
|
@property({
|
|
99
95
|
objectRef: 'DefaultValue',
|
|
100
96
|
})
|
|
101
|
-
defaultValue?: DefaultValue
|
|
97
|
+
defaultValue?: DefaultValue;
|
|
102
98
|
|
|
103
99
|
/**
|
|
104
100
|
* @param source 需要合并的部分参数
|
package/src/concepts/Point__.ts
CHANGED
|
@@ -45,17 +45,13 @@ export class ProcessBindV2 extends BaseNode {
|
|
|
45
45
|
/**
|
|
46
46
|
* 引用数据结构或实体的命名空间
|
|
47
47
|
*/
|
|
48
|
-
@property(
|
|
49
|
-
objectRef: '',
|
|
50
|
-
})
|
|
48
|
+
@property()
|
|
51
49
|
refNamespace: string;
|
|
52
50
|
|
|
53
51
|
/**
|
|
54
52
|
* 引用数据结构或实体的名称
|
|
55
53
|
*/
|
|
56
|
-
@property(
|
|
57
|
-
objectRef: '',
|
|
58
|
-
})
|
|
54
|
+
@property()
|
|
59
55
|
refName: string;
|
|
60
56
|
|
|
61
57
|
/**
|
|
@@ -38,33 +38,25 @@ export class ProcessComponent 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
|
/**
|
|
63
57
|
* category
|
|
64
58
|
*/
|
|
65
|
-
@property(
|
|
66
|
-
objectRef: '',
|
|
67
|
-
})
|
|
59
|
+
@property()
|
|
68
60
|
category: string;
|
|
69
61
|
|
|
70
62
|
/**
|
|
@@ -68,33 +68,25 @@ export class ProcessElementV2 extends BaseNode {
|
|
|
68
68
|
/**
|
|
69
69
|
* 流程元素名称
|
|
70
70
|
*/
|
|
71
|
-
@property(
|
|
72
|
-
objectRef: '',
|
|
73
|
-
})
|
|
71
|
+
@property()
|
|
74
72
|
name: string = '';
|
|
75
73
|
|
|
76
74
|
/**
|
|
77
75
|
* 流程元素标题
|
|
78
76
|
*/
|
|
79
|
-
@property(
|
|
80
|
-
objectRef: '',
|
|
81
|
-
})
|
|
77
|
+
@property()
|
|
82
78
|
title: string;
|
|
83
79
|
|
|
84
80
|
/**
|
|
85
81
|
* 流程元素描述
|
|
86
82
|
*/
|
|
87
|
-
@property(
|
|
88
|
-
objectRef: '',
|
|
89
|
-
})
|
|
83
|
+
@property()
|
|
90
84
|
description: string;
|
|
91
85
|
|
|
92
86
|
/**
|
|
93
87
|
* type
|
|
94
88
|
*/
|
|
95
|
-
@property(
|
|
96
|
-
objectRef: '',
|
|
97
|
-
})
|
|
89
|
+
@property()
|
|
98
90
|
type:
|
|
99
91
|
| 'StartNoneEvent'
|
|
100
92
|
| 'EndNoneEvent'
|
|
@@ -110,17 +102,13 @@ export class ProcessElementV2 extends BaseNode {
|
|
|
110
102
|
/**
|
|
111
103
|
* 源节点
|
|
112
104
|
*/
|
|
113
|
-
@property(
|
|
114
|
-
objectRef: '',
|
|
115
|
-
})
|
|
105
|
+
@property()
|
|
116
106
|
sourceRef: string;
|
|
117
107
|
|
|
118
108
|
/**
|
|
119
109
|
* 目标节点
|
|
120
110
|
*/
|
|
121
|
-
@property(
|
|
122
|
-
objectRef: '',
|
|
123
|
-
})
|
|
111
|
+
@property()
|
|
124
112
|
targetRef: string;
|
|
125
113
|
|
|
126
114
|
/**
|
|
@@ -182,17 +170,13 @@ export class ProcessElementV2 extends BaseNode {
|
|
|
182
170
|
/**
|
|
183
171
|
* 条件流的优先级
|
|
184
172
|
*/
|
|
185
|
-
@property(
|
|
186
|
-
objectRef: '',
|
|
187
|
-
})
|
|
173
|
+
@property()
|
|
188
174
|
flowPriority: number;
|
|
189
175
|
|
|
190
176
|
/**
|
|
191
177
|
* 任务实例标题
|
|
192
178
|
*/
|
|
193
|
-
@property(
|
|
194
|
-
objectRef: '',
|
|
195
|
-
})
|
|
179
|
+
@property()
|
|
196
180
|
taskTitle: string;
|
|
197
181
|
|
|
198
182
|
/**
|
|
@@ -1503,7 +1487,7 @@ export class ProcessElementV2 extends BaseNode {
|
|
|
1503
1487
|
.concat(afterLinks)
|
|
1504
1488
|
.map((l) => `'${l.name}'`)
|
|
1505
1489
|
.join(',')})\n`;
|
|
1506
|
-
} else if(self.type === 'ExclusiveGateway') {
|
|
1490
|
+
} else if (self.type === 'ExclusiveGateway') {
|
|
1507
1491
|
code += `${tab1}nasl.processV2.atLeastTwoOutcomeFlow(${afterLinks.map((l) => `'${l.name}'`).join(',')})\n`;
|
|
1508
1492
|
}
|
|
1509
1493
|
code += '},\n';
|
|
@@ -1520,8 +1504,8 @@ export class ProcessElementV2 extends BaseNode {
|
|
|
1520
1504
|
yield* wrapForEach(self.flowCondition.items, function* warpForEachGenerator(BinaryExpression) {
|
|
1521
1505
|
// 日期格式的判断先过滤掉,因为日期格式是string类型,判断永远是失败的
|
|
1522
1506
|
const value = (BinaryExpression?.right as any)?.value;
|
|
1523
|
-
if(dateTimeRegex.test(value) || timeRegex.test(value)) {
|
|
1524
|
-
return
|
|
1507
|
+
if (dateTimeRegex.test(value) || timeRegex.test(value)) {
|
|
1508
|
+
return;
|
|
1525
1509
|
}
|
|
1526
1510
|
code += `${yield* BinaryExpression.toEmbeddedTS(
|
|
1527
1511
|
shiftState(state, code, {
|
|
@@ -66,25 +66,19 @@ export class ProcessElement extends BaseNode {
|
|
|
66
66
|
/**
|
|
67
67
|
* 流程元素名称
|
|
68
68
|
*/
|
|
69
|
-
@property(
|
|
70
|
-
objectRef: '',
|
|
71
|
-
})
|
|
69
|
+
@property()
|
|
72
70
|
name: string = '';
|
|
73
71
|
|
|
74
72
|
/**
|
|
75
73
|
* 流程元素标题
|
|
76
74
|
*/
|
|
77
|
-
@property(
|
|
78
|
-
objectRef: '',
|
|
79
|
-
})
|
|
75
|
+
@property()
|
|
80
76
|
title: string;
|
|
81
77
|
|
|
82
78
|
/**
|
|
83
79
|
* 流程元素描述
|
|
84
80
|
*/
|
|
85
|
-
@property(
|
|
86
|
-
objectRef: '',
|
|
87
|
-
})
|
|
81
|
+
@property()
|
|
88
82
|
description: string;
|
|
89
83
|
|
|
90
84
|
/**
|
|
@@ -100,25 +94,19 @@ export class ProcessElement extends BaseNode {
|
|
|
100
94
|
/**
|
|
101
95
|
* type
|
|
102
96
|
*/
|
|
103
|
-
@property(
|
|
104
|
-
objectRef: '',
|
|
105
|
-
})
|
|
97
|
+
@property()
|
|
106
98
|
type: string;
|
|
107
99
|
|
|
108
100
|
/**
|
|
109
101
|
* sourceRef
|
|
110
102
|
*/
|
|
111
|
-
@property(
|
|
112
|
-
objectRef: '',
|
|
113
|
-
})
|
|
103
|
+
@property()
|
|
114
104
|
sourceRef: string;
|
|
115
105
|
|
|
116
106
|
/**
|
|
117
107
|
* targetRef
|
|
118
108
|
*/
|
|
119
|
-
@property(
|
|
120
|
-
objectRef: '',
|
|
121
|
-
})
|
|
109
|
+
@property()
|
|
122
110
|
targetRef: string;
|
|
123
111
|
|
|
124
112
|
/**
|
|
@@ -142,9 +130,7 @@ export class ProcessElement extends BaseNode {
|
|
|
142
130
|
/**
|
|
143
131
|
* flowValue
|
|
144
132
|
*/
|
|
145
|
-
@property(
|
|
146
|
-
objectRef: '',
|
|
147
|
-
})
|
|
133
|
+
@property()
|
|
148
134
|
flowValue: string;
|
|
149
135
|
|
|
150
136
|
/**
|
|
@@ -1642,12 +1628,16 @@ export class ProcessElement extends BaseNode {
|
|
|
1642
1628
|
code += '_constraints: function() {\n';
|
|
1643
1629
|
code += `${tab1}nasl.process.atLeastOneOutcomeFlow(${afterLinks.map((l) => `'${l.name}'`).join(',')})\n`;
|
|
1644
1630
|
code += `${tab1}nasl.process.atLeastOneOutcomeFlow(${beforeLinks.map((l) => `'${l.name}'`).join(',')})\n`;
|
|
1645
|
-
if (
|
|
1631
|
+
if (
|
|
1632
|
+
['ParallelGateway', 'InclusiveGateway'].includes(self.type) &&
|
|
1633
|
+
afterLinks.length > 0 &&
|
|
1634
|
+
beforeLinks.length > 0
|
|
1635
|
+
) {
|
|
1646
1636
|
code += `${tab1}nasl.process.atLeastThreeOutcomeFlow(${beforeLinks
|
|
1647
1637
|
.concat(afterLinks)
|
|
1648
1638
|
.map((l) => `'${l.name}'`)
|
|
1649
1639
|
.join(',')})\n`;
|
|
1650
|
-
} else if(self.type === 'ExclusiveGateway') {
|
|
1640
|
+
} else if (self.type === 'ExclusiveGateway') {
|
|
1651
1641
|
code += `${tab1}nasl.process.atLeastTwoOutcomeFlow(${afterLinks.map((l) => `'${l.name}'`).join(',')})\n`;
|
|
1652
1642
|
}
|
|
1653
1643
|
code += '},\n';
|