@lcap/nasl 3.7.1-beta.1 → 3.7.2-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 +4 -14
- 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 +10 -25
- 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 +27 -44
- package/out/concepts/EntityProperty__.js.map +1 -1
- package/out/concepts/Entity__.d.ts +2 -2
- package/out/concepts/Entity__.js +11 -18
- package/out/concepts/Entity__.js.map +1 -1
- package/out/concepts/EnumItem__.d.ts +1 -1
- package/out/concepts/EnumItem__.js +6 -8
- package/out/concepts/EnumItem__.js.map +1 -1
- package/out/concepts/Enum__.js +7 -10
- 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 +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/IfStatement__.js +2 -2
- package/out/concepts/IfStatement__.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 +12 -19
- 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 +27 -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 +5 -11
- package/out/concepts/QueryFromExpression__.js.map +1 -1
- package/out/concepts/QueryJoinExpression__.js +6 -14
- 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 +9 -14
- package/out/concepts/StructureProperty__.js.map +1 -1
- package/out/concepts/Structure__.d.ts +0 -4
- package/out/concepts/Structure__.js +17 -20
- 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__.d.ts +1 -6
- package/out/concepts/ValidationRule__.js +4 -23
- 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 +92 -83
- 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.d.ts +44 -1
- package/out/natural/genNaturalTS.js +61 -5
- package/out/natural/genNaturalTS.js.map +1 -1
- package/out/natural/getContext/index.js +3 -0
- package/out/natural/getContext/index.js.map +1 -1
- package/out/server/naslServer.js +24 -10
- package/out/server/naslServer.js.map +1 -1
- package/out/server/translator.js +47 -0
- package/out/server/translator.js.map +1 -1
- package/out/translator/types.d.ts +4 -0
- package/out/translator/utils.d.ts +1 -0
- package/out/translator/utils.js +6 -1
- package/out/translator/utils.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 +7 -14
- package/src/concepts/CallInterface__.ts +8 -15
- package/src/concepts/CallLogic__.ts +39 -46
- 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 +40 -56
- package/src/concepts/Entity__.ts +13 -18
- package/src/concepts/EnumItem__.ts +15 -10
- package/src/concepts/Enum__.ts +9 -10
- 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 +2 -2
- 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/IfStatement__.ts +2 -2
- 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 +16 -22
- 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 +46 -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 +5 -11
- package/src/concepts/QueryJoinExpression__.ts +7 -16
- 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 +16 -19
- package/src/concepts/Structure__.ts +20 -20
- 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 +6 -17
- 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 +232 -157
- package/src/concepts/View__.ts +40 -54
- package/src/generator/genBundleFiles.ts +2 -1
- package/src/generator/release-body/utils.ts +3 -2
- package/src/natural/genNaturalTS.ts +91 -12
- package/src/natural/getContext/index.ts +3 -0
- package/src/server/naslServer.ts +24 -10
- package/src/server/translator.ts +49 -0
- package/src/translator/types.ts +4 -0
- package/src/translator/utils.ts +6 -0
- package/src/utils/env.ts +2 -0
- package/test/concepts/validation-rule/__snapshots__/toEmbeddedTS.spec.ts.snap +1 -2
|
@@ -47,7 +47,22 @@ const utils_1 = require("../utils");
|
|
|
47
47
|
/**
|
|
48
48
|
* 自闭合标签
|
|
49
49
|
*/
|
|
50
|
-
const selfClosingTag = [
|
|
50
|
+
const selfClosingTag = [
|
|
51
|
+
'base',
|
|
52
|
+
'meta',
|
|
53
|
+
'area',
|
|
54
|
+
'embed',
|
|
55
|
+
'link',
|
|
56
|
+
'img',
|
|
57
|
+
'input',
|
|
58
|
+
'param',
|
|
59
|
+
'hr',
|
|
60
|
+
'br',
|
|
61
|
+
'source',
|
|
62
|
+
'track',
|
|
63
|
+
'wbr',
|
|
64
|
+
'col',
|
|
65
|
+
];
|
|
51
66
|
function genArgumentMemberExpression(arr) {
|
|
52
67
|
let expressionNode;
|
|
53
68
|
const propertyName = arr.pop();
|
|
@@ -93,7 +108,9 @@ function transAstNodeToNaslNode(astNode, namespace) {
|
|
|
93
108
|
expression: transAstNodeToNaslNode(Object.assign({}, argument)),
|
|
94
109
|
}))
|
|
95
110
|
.filter((item) => item.expression),
|
|
96
|
-
typeArguments: astNode.arguments
|
|
111
|
+
typeArguments: astNode.arguments
|
|
112
|
+
.map((argument) => transAstNodeToNaslTypeNode(Object.assign({}, argument)))
|
|
113
|
+
.filter((item) => item),
|
|
97
114
|
};
|
|
98
115
|
}
|
|
99
116
|
else if (astNode.type === 'MemberExpression') {
|
|
@@ -293,26 +310,6 @@ let ViewElement = ViewElement_1 = class ViewElement extends BaseNode_1.default {
|
|
|
293
310
|
* 页面元素名称
|
|
294
311
|
*/
|
|
295
312
|
this.name = '';
|
|
296
|
-
/**
|
|
297
|
-
* 静态 class 名
|
|
298
|
-
*/
|
|
299
|
-
this.staticClass = null;
|
|
300
|
-
/**
|
|
301
|
-
* 静态 style
|
|
302
|
-
*/
|
|
303
|
-
this.staticStyle = null;
|
|
304
|
-
/**
|
|
305
|
-
* 权限资源描述
|
|
306
|
-
*/
|
|
307
|
-
this.authDescription = null;
|
|
308
|
-
/**
|
|
309
|
-
* 插槽目标
|
|
310
|
-
*/
|
|
311
|
-
this.slotTarget = null;
|
|
312
|
-
/**
|
|
313
|
-
* 插槽 scope 表达式
|
|
314
|
-
*/
|
|
315
|
-
this.slotScope = null;
|
|
316
313
|
/**
|
|
317
314
|
* 元素绑定属性列表
|
|
318
315
|
*/
|
|
@@ -376,7 +373,9 @@ let ViewElement = ViewElement_1 = class ViewElement extends BaseNode_1.default {
|
|
|
376
373
|
}
|
|
377
374
|
getBindAttributeExistingNames(excludedList = []) {
|
|
378
375
|
const excludedSet = new Set(excludedList);
|
|
379
|
-
return (this.bindAttrs || [])
|
|
376
|
+
return (this.bindAttrs || [])
|
|
377
|
+
.filter((item) => !excludedSet.has(item))
|
|
378
|
+
.map((item) => item.name);
|
|
380
379
|
}
|
|
381
380
|
getBindAttributeUniqueName(name = 'bindAttribute1') {
|
|
382
381
|
return utils.unique(name, this.getBindAttributeExistingNames(), undefined, false);
|
|
@@ -498,7 +497,9 @@ let ViewElement = ViewElement_1 = class ViewElement extends BaseNode_1.default {
|
|
|
498
497
|
}
|
|
499
498
|
getBindDirectiveExistingNames(excludedList = []) {
|
|
500
499
|
const excludedSet = new Set(excludedList);
|
|
501
|
-
return (this.bindDirectives || [])
|
|
500
|
+
return (this.bindDirectives || [])
|
|
501
|
+
.filter((item) => !excludedSet.has(item))
|
|
502
|
+
.map((item) => item.name);
|
|
502
503
|
}
|
|
503
504
|
getBindDirectiveUniqueName(name = 'bindDirective1') {
|
|
504
505
|
return utils.unique(name, this.getBindDirectiveExistingNames(), undefined, false);
|
|
@@ -766,7 +767,9 @@ let ViewElement = ViewElement_1 = class ViewElement extends BaseNode_1.default {
|
|
|
766
767
|
get parentAuth() {
|
|
767
768
|
const _nameSpace = this.view.getNamespace();
|
|
768
769
|
const mainViewName = _nameSpace.split('.')[2];
|
|
769
|
-
return this.view.parentNode.concept === 'App'
|
|
770
|
+
return this.view.parentNode.concept === 'App'
|
|
771
|
+
? this.view.auth
|
|
772
|
+
: this.frontend.views.find((item) => item.name === mainViewName)?.auth;
|
|
770
773
|
}
|
|
771
774
|
// IDE内展示需要屏蔽掉“系统统一路径前缀”
|
|
772
775
|
get uiPath() {
|
|
@@ -949,7 +952,8 @@ let ViewElement = ViewElement_1 = class ViewElement extends BaseNode_1.default {
|
|
|
949
952
|
}
|
|
950
953
|
return t;
|
|
951
954
|
};
|
|
952
|
-
const hasDataSource = config_1.config?.allNodesAPI?.[self.tag]?.props?.findIndex((prop) => ['dataSource', 'data-source'].includes(prop.name)) >
|
|
955
|
+
const hasDataSource = config_1.config?.allNodesAPI?.[self.tag]?.props?.findIndex((prop) => ['dataSource', 'data-source'].includes(prop.name)) >
|
|
956
|
+
-1;
|
|
953
957
|
// 有数据源属性的组件 才需要生成 item
|
|
954
958
|
if (hasDataSource && T) {
|
|
955
959
|
const key = T1 ? '__columnItem' : '__item';
|
|
@@ -1129,7 +1133,9 @@ let ViewElement = ViewElement_1 = class ViewElement extends BaseNode_1.default {
|
|
|
1129
1133
|
if (attr && attr.expression) {
|
|
1130
1134
|
const datasourceName = `datasourceName${element.name}`;
|
|
1131
1135
|
element.__tsDataSourceTypeName = datasourceName;
|
|
1132
|
-
if (asserts.isMemberExpression(attr.expression) ||
|
|
1136
|
+
if (asserts.isMemberExpression(attr.expression) ||
|
|
1137
|
+
asserts.isIdentifier(attr.expression) ||
|
|
1138
|
+
asserts.isCallLogic(attr.expression)) {
|
|
1133
1139
|
const extraParams = {
|
|
1134
1140
|
tabSize: 4,
|
|
1135
1141
|
inline: true,
|
|
@@ -1210,7 +1216,9 @@ let ViewElement = ViewElement_1 = class ViewElement extends BaseNode_1.default {
|
|
|
1210
1216
|
return tsName;
|
|
1211
1217
|
};
|
|
1212
1218
|
// 过滤模板的登录中的一些翻译,这里只过滤h5表格中的两个列
|
|
1213
|
-
if ((parentNode.concept === 'ViewElement' &&
|
|
1219
|
+
if ((parentNode.concept === 'ViewElement' &&
|
|
1220
|
+
parentNode.tag &&
|
|
1221
|
+
this.toHump(parentNode.tag) === 'lcapLogin') ||
|
|
1214
1222
|
staticClass === 'login-cell') {
|
|
1215
1223
|
return '';
|
|
1216
1224
|
}
|
|
@@ -1365,8 +1373,8 @@ let ViewElement = ViewElement_1 = class ViewElement extends BaseNode_1.default {
|
|
|
1365
1373
|
// 翻译其余的子元素
|
|
1366
1374
|
if (defaultArr.length) {
|
|
1367
1375
|
code += (0, translator_1.indent)((state?.tabSize || 0) + 2);
|
|
1368
|
-
const hasScope = defaultArr.some(x => x.haveScope());
|
|
1369
|
-
const param = hasScope ? `current${levelIndex === 0 ? '' : levelIndex}` :
|
|
1376
|
+
const hasScope = defaultArr.some((x) => x.haveScope());
|
|
1377
|
+
const param = hasScope ? `current${levelIndex === 0 ? '' : levelIndex}` : '';
|
|
1370
1378
|
const levelIndexDelta = Number(hasScope);
|
|
1371
1379
|
code += `slotDefault: (${param}) => [\n`;
|
|
1372
1380
|
yield* (0, time_slicing_1.wrapForEachToGenerator)(defaultArr, function* warpForEachGenerator(element) {
|
|
@@ -1382,8 +1390,8 @@ let ViewElement = ViewElement_1 = class ViewElement extends BaseNode_1.default {
|
|
|
1382
1390
|
}
|
|
1383
1391
|
else if (children?.length) {
|
|
1384
1392
|
code += (0, translator_1.indent)((state?.tabSize || 0) + 2);
|
|
1385
|
-
const hasScope = children.some(x => x.haveScope());
|
|
1386
|
-
const param = hasScope ? `current${levelIndex === 0 ? '' : levelIndex}` :
|
|
1393
|
+
const hasScope = children.some((x) => x.haveScope());
|
|
1394
|
+
const param = hasScope ? `current${levelIndex === 0 ? '' : levelIndex}` : '';
|
|
1387
1395
|
const levelIndexDelta = Number(hasScope);
|
|
1388
1396
|
code += `slotDefault: (${param}) => [\n`;
|
|
1389
1397
|
yield* (0, time_slicing_1.wrapForEachToGenerator)(children, function* warpForEachGenerator(element) {
|
|
@@ -1428,7 +1436,7 @@ let ViewElement = ViewElement_1 = class ViewElement extends BaseNode_1.default {
|
|
|
1428
1436
|
this.children.forEach((element) => {
|
|
1429
1437
|
if (element.tag === 'template') {
|
|
1430
1438
|
if (element.children.length) {
|
|
1431
|
-
code += `${(0, translator_1.indent)(state.tabSize + 1)}slot${utils.firstUpperCase(element.slotTarget)}: (${element.slotScope || ''}) => [\n`;
|
|
1439
|
+
code += `${(0, translator_1.indent)(state.tabSize + 1)}slot${utils.firstUpperCase(element.slotTarget || '')}: (${element.slotScope || ''}) => [\n`;
|
|
1432
1440
|
element.children.forEach((element) => {
|
|
1433
1441
|
code += element.toNaturalTS((0, translator_1.shiftState)(state, code, {
|
|
1434
1442
|
tabSize: state.tabSize + 2,
|
|
@@ -1491,7 +1499,7 @@ let ViewElement = ViewElement_1 = class ViewElement extends BaseNode_1.default {
|
|
|
1491
1499
|
// 先把插槽翻译了
|
|
1492
1500
|
this.children.forEach((element) => {
|
|
1493
1501
|
if (element.tag === 'template' && element.children.length) {
|
|
1494
|
-
code += `${(0, translator_1.indent)(state.tabSize + 1)}slot${utils.firstUpperCase(element.slotTarget)} = { (${element.slotScope || ''}) => [\n`;
|
|
1502
|
+
code += `${(0, translator_1.indent)(state.tabSize + 1)}slot${utils.firstUpperCase(element.slotTarget || '')} = { (${element.slotScope || ''}) => [\n`;
|
|
1495
1503
|
// code += element.toTextualNASL(
|
|
1496
1504
|
// shiftState(state, code, {
|
|
1497
1505
|
// tabSize: state.tabSize + 2,
|
|
@@ -1500,9 +1508,8 @@ let ViewElement = ViewElement_1 = class ViewElement extends BaseNode_1.default {
|
|
|
1500
1508
|
element.children.forEach((element) => {
|
|
1501
1509
|
code += element.toTextualNASL((0, translator_1.shiftState)(state, code, {
|
|
1502
1510
|
tabSize: state.tabSize + 2,
|
|
1503
|
-
})
|
|
1504
|
-
|
|
1505
|
-
);
|
|
1511
|
+
}));
|
|
1512
|
+
code += ',\n';
|
|
1506
1513
|
});
|
|
1507
1514
|
code += `${(0, translator_1.indent)(state.tabSize + 1)}] },\n`;
|
|
1508
1515
|
}
|
|
@@ -1512,15 +1519,13 @@ let ViewElement = ViewElement_1 = class ViewElement extends BaseNode_1.default {
|
|
|
1512
1519
|
});
|
|
1513
1520
|
// 翻译其余的子集
|
|
1514
1521
|
if (defaultArr.length) {
|
|
1515
|
-
throw new Error('多个插槽必须都在 template 内');
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
// );
|
|
1523
|
-
// });
|
|
1522
|
+
// throw new Error('多个插槽必须都在 template 内');
|
|
1523
|
+
defaultArr.forEach((element) => {
|
|
1524
|
+
code += element.toTextualNASL((0, translator_1.shiftState)(state, code, {
|
|
1525
|
+
tabSize: state.tabSize,
|
|
1526
|
+
}));
|
|
1527
|
+
code += ',\n';
|
|
1528
|
+
});
|
|
1524
1529
|
}
|
|
1525
1530
|
}
|
|
1526
1531
|
else {
|
|
@@ -1529,9 +1534,7 @@ let ViewElement = ViewElement_1 = class ViewElement extends BaseNode_1.default {
|
|
|
1529
1534
|
this.children.forEach((element) => {
|
|
1530
1535
|
code += element.toTextualNASL((0, translator_1.shiftState)(state, code, {
|
|
1531
1536
|
tabSize: state.tabSize + 2,
|
|
1532
|
-
})
|
|
1533
|
-
// levelIndex,
|
|
1534
|
-
);
|
|
1537
|
+
}));
|
|
1535
1538
|
code += ',\n';
|
|
1536
1539
|
});
|
|
1537
1540
|
code += `${(0, translator_1.indent)(state.tabSize + 1)}] },\n`;
|
|
@@ -1659,7 +1662,18 @@ let ViewElement = ViewElement_1 = class ViewElement extends BaseNode_1.default {
|
|
|
1659
1662
|
const view = context?.view;
|
|
1660
1663
|
// 临时处理组件的 text
|
|
1661
1664
|
//h5-mock
|
|
1662
|
-
if ([
|
|
1665
|
+
if ([
|
|
1666
|
+
'u-text',
|
|
1667
|
+
'van-text',
|
|
1668
|
+
'u-link',
|
|
1669
|
+
'u-button',
|
|
1670
|
+
'u-label',
|
|
1671
|
+
'u-radio',
|
|
1672
|
+
'u-checkbox',
|
|
1673
|
+
'u-navbar-item',
|
|
1674
|
+
'u-sidebar-item',
|
|
1675
|
+
'u-menu-item',
|
|
1676
|
+
].includes(astNode.tag) &&
|
|
1663
1677
|
astNode.children.length === 1 &&
|
|
1664
1678
|
astNode.children[0].type === 3) {
|
|
1665
1679
|
astNode.attrs = astNode.attrs || [];
|
|
@@ -1925,7 +1939,8 @@ let ViewElement = ViewElement_1 = class ViewElement extends BaseNode_1.default {
|
|
|
1925
1939
|
finalCode: false,
|
|
1926
1940
|
nodePathAttr: true,
|
|
1927
1941
|
attrFormat: (attr, element, defaultResult) => {
|
|
1928
|
-
if (attr.concept === 'BindAttribute' &&
|
|
1942
|
+
if (attr.concept === 'BindAttribute' &&
|
|
1943
|
+
!['href', 'destination', 'externalDestination', 'download'].includes(attr.name)) {
|
|
1929
1944
|
const api = config_1.config?.allNodesAPI?.[element.tag];
|
|
1930
1945
|
const apiOfAttr = api && api.props && api.props.find((_attr) => _attr.name === attr.name);
|
|
1931
1946
|
if (['u-form-item', 'u-validator', 'van-field'].includes(element.tag) && attr.name === 'rules') {
|
|
@@ -1958,7 +1973,8 @@ let ViewElement = ViewElement_1 = class ViewElement extends BaseNode_1.default {
|
|
|
1958
1973
|
attr?.expression?.object?.namespace?.endsWith('.property')) {
|
|
1959
1974
|
return `${attr.name}="{{ ${attr.expression.toUI()} }}"`;
|
|
1960
1975
|
}
|
|
1961
|
-
if (attr.type === 'dynamic' &&
|
|
1976
|
+
if (attr.type === 'dynamic' &&
|
|
1977
|
+
!(element.tag === 'u-cascade-select' && attr.name === 'categories'))
|
|
1962
1978
|
return defaultResult.replace(/:?([\w-]+)(?:.*?)="([\s\S]*)"/, (m, name, value) => {
|
|
1963
1979
|
try {
|
|
1964
1980
|
const tempValue = json5.parse(value);
|
|
@@ -2176,14 +2192,16 @@ let ViewElement = ViewElement_1 = class ViewElement extends BaseNode_1.default {
|
|
|
2176
2192
|
this.keyName && parts.push(`:key="\`${this.keyName}\`"`);
|
|
2177
2193
|
this.staticClass && parts.push(`class="${this.staticClass}"`);
|
|
2178
2194
|
const vIfs = [];
|
|
2179
|
-
[]
|
|
2195
|
+
[]
|
|
2196
|
+
.concat(this.bindAttrs, this.bindDirectives, this.bindEvents)
|
|
2197
|
+
.forEach((attr) => {
|
|
2180
2198
|
let result = newOptions.attrFormat(attr, this, attr?.toVue(newOptions));
|
|
2181
|
-
if (options?.isExport
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2199
|
+
if (options?.isExport &&
|
|
2200
|
+
attr?.concept === 'BindAttribute' &&
|
|
2201
|
+
attr?.name === 'src' &&
|
|
2202
|
+
/^\/assets\/(.*?)$/.test(attr?.value) &&
|
|
2185
2203
|
// && attr.value.includes('/assets/')
|
|
2186
|
-
|
|
2204
|
+
this.app?.sysPrefixPath?.length > 0) {
|
|
2187
2205
|
result = result?.replace('/assets/', `${this.app?.sysPrefixPath}/assets/`);
|
|
2188
2206
|
}
|
|
2189
2207
|
// v-auth v-if 都翻译成 v-if
|
|
@@ -2211,7 +2229,8 @@ let ViewElement = ViewElement_1 = class ViewElement extends BaseNode_1.default {
|
|
|
2211
2229
|
});
|
|
2212
2230
|
}
|
|
2213
2231
|
// 部分组件增加 key 唯一标识,防止 vue 判断重复节点,导致渲染异常
|
|
2214
|
-
if (this.name &&
|
|
2232
|
+
if (this.name &&
|
|
2233
|
+
['u-table-view', 'u-list-view', 'u-grid-view', 'u-list-components', 'u-form', 'u-select'].includes(this.tag)) {
|
|
2215
2234
|
this.name && parts.push(`key="${this.name}"`);
|
|
2216
2235
|
}
|
|
2217
2236
|
let tag = this.tag;
|
|
@@ -2278,7 +2297,10 @@ let ViewElement = ViewElement_1 = class ViewElement extends BaseNode_1.default {
|
|
|
2278
2297
|
partsString += ' ' + part;
|
|
2279
2298
|
partsLength += part.length;
|
|
2280
2299
|
});
|
|
2281
|
-
let htmlContent = `<${tag}${partsString.length ? partsString : ''}>` +
|
|
2300
|
+
let htmlContent = `<${tag}${partsString.length ? partsString : ''}>` +
|
|
2301
|
+
content +
|
|
2302
|
+
(shouldIndent ? '\n' + tabString : '') +
|
|
2303
|
+
`</${tag}>`;
|
|
2282
2304
|
if (!content.trim() && selfClosingTag.includes(tag)) {
|
|
2283
2305
|
htmlContent = `<${tag}${partsString.length ? partsString : ''} />`;
|
|
2284
2306
|
}
|
|
@@ -2504,7 +2526,9 @@ let ViewElement = ViewElement_1 = class ViewElement extends BaseNode_1.default {
|
|
|
2504
2526
|
* 是否是流程表单
|
|
2505
2527
|
*/
|
|
2506
2528
|
isProcessForm() {
|
|
2507
|
-
return this.tag.endsWith('-form') &&
|
|
2529
|
+
return (this.tag.endsWith('-form') &&
|
|
2530
|
+
this.getBindAttribute('id')?.value === 'dynamicRenderContainer' &&
|
|
2531
|
+
this.getBindAttribute('processPrefix'));
|
|
2508
2532
|
}
|
|
2509
2533
|
};
|
|
2510
2534
|
/** 类名 */
|
|
@@ -2521,39 +2545,25 @@ __decorate([
|
|
|
2521
2545
|
(0, decorators_1.property)('concept')
|
|
2522
2546
|
], ViewElement.prototype, "concept", void 0);
|
|
2523
2547
|
__decorate([
|
|
2524
|
-
(0, decorators_1.property)(
|
|
2525
|
-
objectRef: '',
|
|
2526
|
-
})
|
|
2548
|
+
(0, decorators_1.property)()
|
|
2527
2549
|
], ViewElement.prototype, "tag", void 0);
|
|
2528
2550
|
__decorate([
|
|
2529
|
-
(0, decorators_1.property)(
|
|
2530
|
-
objectRef: '',
|
|
2531
|
-
})
|
|
2551
|
+
(0, decorators_1.property)()
|
|
2532
2552
|
], ViewElement.prototype, "name", void 0);
|
|
2533
2553
|
__decorate([
|
|
2534
|
-
(0, decorators_1.property)(
|
|
2535
|
-
objectRef: '',
|
|
2536
|
-
})
|
|
2554
|
+
(0, decorators_1.property)()
|
|
2537
2555
|
], ViewElement.prototype, "staticClass", void 0);
|
|
2538
2556
|
__decorate([
|
|
2539
|
-
(0, decorators_1.property)(
|
|
2540
|
-
objectRef: '',
|
|
2541
|
-
})
|
|
2557
|
+
(0, decorators_1.property)()
|
|
2542
2558
|
], ViewElement.prototype, "staticStyle", void 0);
|
|
2543
2559
|
__decorate([
|
|
2544
|
-
(0, decorators_1.property)(
|
|
2545
|
-
objectRef: '',
|
|
2546
|
-
})
|
|
2560
|
+
(0, decorators_1.property)()
|
|
2547
2561
|
], ViewElement.prototype, "authDescription", void 0);
|
|
2548
2562
|
__decorate([
|
|
2549
|
-
(0, decorators_1.property)(
|
|
2550
|
-
objectRef: '',
|
|
2551
|
-
})
|
|
2563
|
+
(0, decorators_1.property)()
|
|
2552
2564
|
], ViewElement.prototype, "slotTarget", void 0);
|
|
2553
2565
|
__decorate([
|
|
2554
|
-
(0, decorators_1.property)(
|
|
2555
|
-
objectRef: '',
|
|
2556
|
-
})
|
|
2566
|
+
(0, decorators_1.property)()
|
|
2557
2567
|
], ViewElement.prototype, "slotScope", void 0);
|
|
2558
2568
|
__decorate([
|
|
2559
2569
|
(0, decorators_1.property)({
|
|
@@ -2578,7 +2588,6 @@ __decorate([
|
|
|
2578
2588
|
], ViewElement.prototype, "bindDirectives", void 0);
|
|
2579
2589
|
__decorate([
|
|
2580
2590
|
(0, decorators_1.property)({
|
|
2581
|
-
objectRef: '',
|
|
2582
2591
|
isArray: true,
|
|
2583
2592
|
defaultValue: [],
|
|
2584
2593
|
})
|