@lcap/nasl 2.22.2-beta.3 → 2.22.2-beta.4
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/automate/engine/index.d.ts +4 -0
- package/out/automate/engine/index.js +443 -0
- package/out/automate/engine/index.js.map +1 -0
- package/out/automate/engine/operators.d.ts +24 -0
- package/out/automate/engine/operators.js +252 -0
- package/out/automate/engine/operators.js.map +1 -0
- package/out/automate/engine/uniqueName.d.ts +12 -0
- package/out/automate/engine/uniqueName.js +112 -0
- package/out/automate/engine/uniqueName.js.map +1 -0
- package/out/automate/engine/utils.d.ts +25 -0
- package/out/automate/engine/utils.js +428 -0
- package/out/automate/engine/utils.js.map +1 -0
- package/out/automate/engine/viewCache.d.ts +19 -0
- package/out/automate/engine/viewCache.js +45 -0
- package/out/automate/engine/viewCache.js.map +1 -0
- package/out/automate/template/myProcess.d.ts +10 -0
- package/out/automate/template/myProcess.js +11498 -0
- package/out/automate/template/myProcess.js.map +1 -0
- package/out/bak/translator.d.ts +1 -0
- package/out/bak/translator.js +130 -0
- package/out/bak/translator.js.map +1 -0
- package/out/common/BaseNode.d.ts +306 -0
- package/out/common/BaseNode.js +1222 -0
- package/out/common/BaseNode.js.map +1 -0
- package/out/common/Command.d.ts +20 -0
- package/out/common/Command.js +66 -0
- package/out/common/Command.js.map +1 -0
- package/out/common/ComponentAPI.d.ts +110 -0
- package/out/common/ComponentAPI.js +3 -0
- package/out/common/ComponentAPI.js.map +1 -0
- package/out/common/EventEmitter.d.ts +59 -0
- package/out/common/EventEmitter.js +69 -0
- package/out/common/EventEmitter.js.map +1 -0
- package/out/common/Messager.d.ts +91 -0
- package/out/common/Messager.js +208 -0
- package/out/common/Messager.js.map +1 -0
- package/out/common/index.d.ts +3 -0
- package/out/common/index.js +20 -0
- package/out/common/index.js.map +1 -0
- package/out/concepts/Abort__.d.ts +26 -0
- package/out/concepts/Abort__.js +79 -0
- package/out/concepts/Abort__.js.map +1 -0
- package/out/concepts/Anchor__.d.ts +45 -0
- package/out/concepts/Anchor__.js +182 -0
- package/out/concepts/Anchor__.js.map +1 -0
- package/out/concepts/AnonymousFunction__.d.ts +173 -0
- package/out/concepts/AnonymousFunction__.js +484 -0
- package/out/concepts/AnonymousFunction__.js.map +1 -0
- package/out/concepts/App__.d.ts +1166 -0
- package/out/concepts/App__.js +1885 -0
- package/out/concepts/App__.js.map +1 -0
- package/out/concepts/Argument__.d.ts +66 -0
- package/out/concepts/Argument__.js +267 -0
- package/out/concepts/Argument__.js.map +1 -0
- package/out/concepts/Assignee__.d.ts +289 -0
- package/out/concepts/Assignee__.js +426 -0
- package/out/concepts/Assignee__.js.map +1 -0
- package/out/concepts/AssignmentLine__.d.ts +42 -0
- package/out/concepts/AssignmentLine__.js +111 -0
- package/out/concepts/AssignmentLine__.js.map +1 -0
- package/out/concepts/Assignment__.d.ts +74 -0
- package/out/concepts/Assignment__.js +287 -0
- package/out/concepts/Assignment__.js.map +1 -0
- package/out/concepts/Attribute__.d.ts +98 -0
- package/out/concepts/Attribute__.js +206 -0
- package/out/concepts/Attribute__.js.map +1 -0
- package/out/concepts/BatchAssignment__.d.ts +252 -0
- package/out/concepts/BatchAssignment__.js +806 -0
- package/out/concepts/BatchAssignment__.js.map +1 -0
- package/out/concepts/BinaryExpression__.d.ts +71 -0
- package/out/concepts/BinaryExpression__.js +347 -0
- package/out/concepts/BinaryExpression__.js.map +1 -0
- package/out/concepts/BindAttribute__.d.ts +319 -0
- package/out/concepts/BindAttribute__.js +896 -0
- package/out/concepts/BindAttribute__.js.map +1 -0
- package/out/concepts/BindDirective__.d.ts +162 -0
- package/out/concepts/BindDirective__.js +538 -0
- package/out/concepts/BindDirective__.js.map +1 -0
- package/out/concepts/BindEvent__.d.ts +240 -0
- package/out/concepts/BindEvent__.js +764 -0
- package/out/concepts/BindEvent__.js.map +1 -0
- package/out/concepts/BindStyle__.d.ts +140 -0
- package/out/concepts/BindStyle__.js +433 -0
- package/out/concepts/BindStyle__.js.map +1 -0
- package/out/concepts/BooleanLiteral__.d.ts +35 -0
- package/out/concepts/BooleanLiteral__.js +100 -0
- package/out/concepts/BooleanLiteral__.js.map +1 -0
- package/out/concepts/CallFunction__.d.ts +159 -0
- package/out/concepts/CallFunction__.js +503 -0
- package/out/concepts/CallFunction__.js.map +1 -0
- package/out/concepts/CallInterface__.d.ts +116 -0
- package/out/concepts/CallInterface__.js +570 -0
- package/out/concepts/CallInterface__.js.map +1 -0
- package/out/concepts/CallLogic__.d.ts +187 -0
- package/out/concepts/CallLogic__.js +1007 -0
- package/out/concepts/CallLogic__.js.map +1 -0
- package/out/concepts/CallQueryComponent__.d.ts +433 -0
- package/out/concepts/CallQueryComponent__.js +1267 -0
- package/out/concepts/CallQueryComponent__.js.map +1 -0
- package/out/concepts/Comment__.d.ts +32 -0
- package/out/concepts/Comment__.js +96 -0
- package/out/concepts/Comment__.js.map +1 -0
- package/out/concepts/CompletionProperty__.d.ts +105 -0
- package/out/concepts/CompletionProperty__.js +262 -0
- package/out/concepts/CompletionProperty__.js.map +1 -0
- package/out/concepts/ConfigGroup__.d.ts +124 -0
- package/out/concepts/ConfigGroup__.js +237 -0
- package/out/concepts/ConfigGroup__.js.map +1 -0
- package/out/concepts/ConfigPropertyValue__.d.ts +45 -0
- package/out/concepts/ConfigPropertyValue__.js +107 -0
- package/out/concepts/ConfigPropertyValue__.js.map +1 -0
- package/out/concepts/ConfigProperty__.d.ts +154 -0
- package/out/concepts/ConfigProperty__.js +324 -0
- package/out/concepts/ConfigProperty__.js.map +1 -0
- package/out/concepts/Configuration__.d.ts +124 -0
- package/out/concepts/Configuration__.js +228 -0
- package/out/concepts/Configuration__.js.map +1 -0
- package/out/concepts/Constant__.d.ts +106 -0
- package/out/concepts/Constant__.js +249 -0
- package/out/concepts/Constant__.js.map +1 -0
- package/out/concepts/DataElement__.d.ts +47 -0
- package/out/concepts/DataElement__.js +119 -0
- package/out/concepts/DataElement__.js.map +1 -0
- package/out/concepts/DataSource__.d.ts +165 -0
- package/out/concepts/DataSource__.js +442 -0
- package/out/concepts/DataSource__.js.map +1 -0
- package/out/concepts/DatabaseTypeAnnotation__.d.ts +32 -0
- package/out/concepts/DatabaseTypeAnnotation__.js +79 -0
- package/out/concepts/DatabaseTypeAnnotation__.js.map +1 -0
- package/out/concepts/Destination__.d.ts +157 -0
- package/out/concepts/Destination__.js +740 -0
- package/out/concepts/Destination__.js.map +1 -0
- package/out/concepts/End__.d.ts +25 -0
- package/out/concepts/End__.js +86 -0
- package/out/concepts/End__.js.map +1 -0
- package/out/concepts/EntityIndex__.d.ts +96 -0
- package/out/concepts/EntityIndex__.js +221 -0
- package/out/concepts/EntityIndex__.js.map +1 -0
- package/out/concepts/EntityProperty__.d.ts +274 -0
- package/out/concepts/EntityProperty__.js +824 -0
- package/out/concepts/EntityProperty__.js.map +1 -0
- package/out/concepts/Entity__.d.ts +339 -0
- package/out/concepts/Entity__.js +711 -0
- package/out/concepts/Entity__.js.map +1 -0
- package/out/concepts/EnumItem__.d.ts +64 -0
- package/out/concepts/EnumItem__.js +146 -0
- package/out/concepts/EnumItem__.js.map +1 -0
- package/out/concepts/Enum__.d.ts +138 -0
- package/out/concepts/Enum__.js +322 -0
- package/out/concepts/Enum__.js.map +1 -0
- package/out/concepts/Event__.d.ts +144 -0
- package/out/concepts/Event__.js +249 -0
- package/out/concepts/Event__.js.map +1 -0
- package/out/concepts/ExternalDestination__.d.ts +76 -0
- package/out/concepts/ExternalDestination__.js +286 -0
- package/out/concepts/ExternalDestination__.js.map +1 -0
- package/out/concepts/ForEachStatement__.d.ts +189 -0
- package/out/concepts/ForEachStatement__.js +446 -0
- package/out/concepts/ForEachStatement__.js.map +1 -0
- package/out/concepts/FrontendLibrary__.d.ts +214 -0
- package/out/concepts/FrontendLibrary__.js +353 -0
- package/out/concepts/FrontendLibrary__.js.map +1 -0
- package/out/concepts/Frontend__.d.ts +374 -0
- package/out/concepts/Frontend__.js +690 -0
- package/out/concepts/Frontend__.js.map +1 -0
- package/out/concepts/Function__.d.ts +417 -0
- package/out/concepts/Function__.js +717 -0
- package/out/concepts/Function__.js.map +1 -0
- package/out/concepts/Identifier__.d.ts +52 -0
- package/out/concepts/Identifier__.js +296 -0
- package/out/concepts/Identifier__.js.map +1 -0
- package/out/concepts/IfStatement__.d.ts +158 -0
- package/out/concepts/IfStatement__.js +305 -0
- package/out/concepts/IfStatement__.js.map +1 -0
- package/out/concepts/Integration__.d.ts +54 -0
- package/out/concepts/Integration__.js +143 -0
- package/out/concepts/Integration__.js.map +1 -0
- package/out/concepts/InterfaceParam__.d.ts +111 -0
- package/out/concepts/InterfaceParam__.js +266 -0
- package/out/concepts/InterfaceParam__.js.map +1 -0
- package/out/concepts/Interface__.d.ts +284 -0
- package/out/concepts/Interface__.js +749 -0
- package/out/concepts/Interface__.js.map +1 -0
- package/out/concepts/JSBlock__.d.ts +34 -0
- package/out/concepts/JSBlock__.js +106 -0
- package/out/concepts/JSBlock__.js.map +1 -0
- package/out/concepts/JavaLogic__.d.ts +43 -0
- package/out/concepts/JavaLogic__.js +124 -0
- package/out/concepts/JavaLogic__.js.map +1 -0
- package/out/concepts/LogicItem__.d.ts +126 -0
- package/out/concepts/LogicItem__.js +253 -0
- package/out/concepts/LogicItem__.js.map +1 -0
- package/out/concepts/Logic__.d.ts +633 -0
- package/out/concepts/Logic__.js +1568 -0
- package/out/concepts/Logic__.js.map +1 -0
- package/out/concepts/MatchCase__.d.ts +258 -0
- package/out/concepts/MatchCase__.js +591 -0
- package/out/concepts/MatchCase__.js.map +1 -0
- package/out/concepts/Match__.d.ts +124 -0
- package/out/concepts/Match__.js +628 -0
- package/out/concepts/Match__.js.map +1 -0
- package/out/concepts/MemberExpression__.d.ts +73 -0
- package/out/concepts/MemberExpression__.js +319 -0
- package/out/concepts/MemberExpression__.js.map +1 -0
- package/out/concepts/MetadataType__.d.ts +245 -0
- package/out/concepts/MetadataType__.js +473 -0
- package/out/concepts/MetadataType__.js.map +1 -0
- package/out/concepts/MicroApp__.d.ts +52 -0
- package/out/concepts/MicroApp__.js +119 -0
- package/out/concepts/MicroApp__.js.map +1 -0
- package/out/concepts/Module__.d.ts +978 -0
- package/out/concepts/Module__.js +1386 -0
- package/out/concepts/Module__.js.map +1 -0
- package/out/concepts/Namespace__.d.ts +1069 -0
- package/out/concepts/Namespace__.js +1380 -0
- package/out/concepts/Namespace__.js.map +1 -0
- package/out/concepts/NewComposite__.d.ts +346 -0
- package/out/concepts/NewComposite__.js +1086 -0
- package/out/concepts/NewComposite__.js.map +1 -0
- package/out/concepts/NewList__.d.ts +133 -0
- package/out/concepts/NewList__.js +385 -0
- package/out/concepts/NewList__.js.map +1 -0
- package/out/concepts/NewMap__.d.ts +224 -0
- package/out/concepts/NewMap__.js +530 -0
- package/out/concepts/NewMap__.js.map +1 -0
- package/out/concepts/New__.d.ts +21 -0
- package/out/concepts/New__.js +68 -0
- package/out/concepts/New__.js.map +1 -0
- package/out/concepts/NullLiteral__.d.ts +27 -0
- package/out/concepts/NullLiteral__.js +81 -0
- package/out/concepts/NullLiteral__.js.map +1 -0
- package/out/concepts/NumericLiteral__.d.ts +56 -0
- package/out/concepts/NumericLiteral__.js +174 -0
- package/out/concepts/NumericLiteral__.js.map +1 -0
- package/out/concepts/OqlQueryComponent__.d.ts +73 -0
- package/out/concepts/OqlQueryComponent__.js +327 -0
- package/out/concepts/OqlQueryComponent__.js.map +1 -0
- package/out/concepts/Param__.d.ts +161 -0
- package/out/concepts/Param__.js +431 -0
- package/out/concepts/Param__.js.map +1 -0
- package/out/concepts/Point__.d.ts +32 -0
- package/out/concepts/Point__.js +79 -0
- package/out/concepts/Point__.js.map +1 -0
- package/out/concepts/ProcessComponent__.d.ts +220 -0
- package/out/concepts/ProcessComponent__.js +339 -0
- package/out/concepts/ProcessComponent__.js.map +1 -0
- package/out/concepts/ProcessElement__.d.ts +647 -0
- package/out/concepts/ProcessElement__.js +1220 -0
- package/out/concepts/ProcessElement__.js.map +1 -0
- package/out/concepts/ProcessOutcome__.d.ts +32 -0
- package/out/concepts/ProcessOutcome__.js +90 -0
- package/out/concepts/ProcessOutcome__.js.map +1 -0
- package/out/concepts/ProcessOutcomes__.d.ts +32 -0
- package/out/concepts/ProcessOutcomes__.js +89 -0
- package/out/concepts/ProcessOutcomes__.js.map +1 -0
- package/out/concepts/Process__.d.ts +614 -0
- package/out/concepts/Process__.js +1031 -0
- package/out/concepts/Process__.js.map +1 -0
- package/out/concepts/QueryAggregateExpression__.d.ts +52 -0
- package/out/concepts/QueryAggregateExpression__.js +149 -0
- package/out/concepts/QueryAggregateExpression__.js.map +1 -0
- package/out/concepts/QueryFieldExpression__.d.ts +54 -0
- package/out/concepts/QueryFieldExpression__.js +160 -0
- package/out/concepts/QueryFieldExpression__.js.map +1 -0
- package/out/concepts/QueryFromExpression__.d.ts +97 -0
- package/out/concepts/QueryFromExpression__.js +197 -0
- package/out/concepts/QueryFromExpression__.js.map +1 -0
- package/out/concepts/QueryGroupByExpression__.d.ts +47 -0
- package/out/concepts/QueryGroupByExpression__.js +142 -0
- package/out/concepts/QueryGroupByExpression__.js.map +1 -0
- package/out/concepts/QueryJoinExpression__.d.ts +184 -0
- package/out/concepts/QueryJoinExpression__.js +318 -0
- package/out/concepts/QueryJoinExpression__.js.map +1 -0
- package/out/concepts/QueryLimitExpression__.d.ts +58 -0
- package/out/concepts/QueryLimitExpression__.js +160 -0
- package/out/concepts/QueryLimitExpression__.js.map +1 -0
- package/out/concepts/QueryOrderByExpression__.d.ts +69 -0
- package/out/concepts/QueryOrderByExpression__.js +173 -0
- package/out/concepts/QueryOrderByExpression__.js.map +1 -0
- package/out/concepts/QuerySelectExpression__.d.ts +204 -0
- package/out/concepts/QuerySelectExpression__.js +295 -0
- package/out/concepts/QuerySelectExpression__.js.map +1 -0
- package/out/concepts/Rect__.d.ts +40 -0
- package/out/concepts/Rect__.js +95 -0
- package/out/concepts/Rect__.js.map +1 -0
- package/out/concepts/Return__.d.ts +129 -0
- package/out/concepts/Return__.js +345 -0
- package/out/concepts/Return__.js.map +1 -0
- package/out/concepts/Role__.d.ts +63 -0
- package/out/concepts/Role__.js +170 -0
- package/out/concepts/Role__.js.map +1 -0
- package/out/concepts/SelectMembers__.d.ts +143 -0
- package/out/concepts/SelectMembers__.js +293 -0
- package/out/concepts/SelectMembers__.js.map +1 -0
- package/out/concepts/Slot__.d.ts +75 -0
- package/out/concepts/Slot__.js +165 -0
- package/out/concepts/Slot__.js.map +1 -0
- package/out/concepts/SqlQueryComponent__.d.ts +71 -0
- package/out/concepts/SqlQueryComponent__.js +271 -0
- package/out/concepts/SqlQueryComponent__.js.map +1 -0
- package/out/concepts/Start__.d.ts +25 -0
- package/out/concepts/Start__.js +73 -0
- package/out/concepts/Start__.js.map +1 -0
- package/out/concepts/StringInterpolation__.d.ts +117 -0
- package/out/concepts/StringInterpolation__.js +252 -0
- package/out/concepts/StringInterpolation__.js.map +1 -0
- package/out/concepts/StringLiteral__.d.ts +38 -0
- package/out/concepts/StringLiteral__.js +134 -0
- package/out/concepts/StringLiteral__.js.map +1 -0
- package/out/concepts/StructureProperty__.d.ts +131 -0
- package/out/concepts/StructureProperty__.js +303 -0
- package/out/concepts/StructureProperty__.js.map +1 -0
- package/out/concepts/Structure__.d.ts +252 -0
- package/out/concepts/Structure__.js +447 -0
- package/out/concepts/Structure__.js.map +1 -0
- package/out/concepts/SwitchCase__.d.ts +94 -0
- package/out/concepts/SwitchCase__.js +232 -0
- package/out/concepts/SwitchCase__.js.map +1 -0
- package/out/concepts/SwitchStatement__.d.ts +84 -0
- package/out/concepts/SwitchStatement__.js +177 -0
- package/out/concepts/SwitchStatement__.js.map +1 -0
- package/out/concepts/Theme__.d.ts +38 -0
- package/out/concepts/Theme__.js +88 -0
- package/out/concepts/Theme__.js.map +1 -0
- package/out/concepts/Transactional__.d.ts +83 -0
- package/out/concepts/Transactional__.js +162 -0
- package/out/concepts/Transactional__.js.map +1 -0
- package/out/concepts/TypeAnnotation__.d.ts +290 -0
- package/out/concepts/TypeAnnotation__.js +885 -0
- package/out/concepts/TypeAnnotation__.js.map +1 -0
- package/out/concepts/TypeParam__.d.ts +25 -0
- package/out/concepts/TypeParam__.js +73 -0
- package/out/concepts/TypeParam__.js.map +1 -0
- package/out/concepts/UnaryExpression__.d.ts +49 -0
- package/out/concepts/UnaryExpression__.js +176 -0
- package/out/concepts/UnaryExpression__.js.map +1 -0
- package/out/concepts/Unparsed__.d.ts +32 -0
- package/out/concepts/Unparsed__.js +94 -0
- package/out/concepts/Unparsed__.js.map +1 -0
- package/out/concepts/UseComponent__.d.ts +32 -0
- package/out/concepts/UseComponent__.js +79 -0
- package/out/concepts/UseComponent__.js.map +1 -0
- package/out/concepts/ValidationRule__.d.ts +142 -0
- package/out/concepts/ValidationRule__.js +473 -0
- package/out/concepts/ValidationRule__.js.map +1 -0
- package/out/concepts/Variable__.d.ts +139 -0
- package/out/concepts/Variable__.js +386 -0
- package/out/concepts/Variable__.js.map +1 -0
- package/out/concepts/ViewBlock__.d.ts +36 -0
- package/out/concepts/ViewBlock__.js +87 -0
- package/out/concepts/ViewBlock__.js.map +1 -0
- package/out/concepts/ViewComponent__.d.ts +566 -0
- package/out/concepts/ViewComponent__.js +762 -0
- package/out/concepts/ViewComponent__.js.map +1 -0
- package/out/concepts/ViewElement__.d.ts +597 -0
- package/out/concepts/ViewElement__.js +1777 -0
- package/out/concepts/ViewElement__.js.map +1 -0
- package/out/concepts/View__.d.ts +714 -0
- package/out/concepts/View__.js +1733 -0
- package/out/concepts/View__.js.map +1 -0
- package/out/concepts/WhileStatement__.d.ts +97 -0
- package/out/concepts/WhileStatement__.js +211 -0
- package/out/concepts/WhileStatement__.js.map +1 -0
- package/out/concepts/basics/stdlib/index.d.ts +4 -0
- package/out/concepts/basics/stdlib/index.js +29 -0
- package/out/concepts/basics/stdlib/index.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.auth.d.ts +7 -0
- package/out/concepts/basics/stdlib/nasl.auth.js +140 -0
- package/out/concepts/basics/stdlib/nasl.auth.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.browser.d.ts +3 -0
- package/out/concepts/basics/stdlib/nasl.browser.js +133 -0
- package/out/concepts/basics/stdlib/nasl.browser.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.collection.d.ts +7 -0
- package/out/concepts/basics/stdlib/nasl.collection.js +52 -0
- package/out/concepts/basics/stdlib/nasl.collection.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.configuration.d.ts +3 -0
- package/out/concepts/basics/stdlib/nasl.configuration.js +33 -0
- package/out/concepts/basics/stdlib/nasl.configuration.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.core.d.ts +5 -0
- package/out/concepts/basics/stdlib/nasl.core.js +49 -0
- package/out/concepts/basics/stdlib/nasl.core.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.event.d.ts +3 -0
- package/out/concepts/basics/stdlib/nasl.event.js +25 -0
- package/out/concepts/basics/stdlib/nasl.event.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.interface.d.ts +7 -0
- package/out/concepts/basics/stdlib/nasl.interface.js +43 -0
- package/out/concepts/basics/stdlib/nasl.interface.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.io.d.ts +3 -0
- package/out/concepts/basics/stdlib/nasl.io.js +52 -0
- package/out/concepts/basics/stdlib/nasl.io.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.logging.d.ts +3 -0
- package/out/concepts/basics/stdlib/nasl.logging.js +56 -0
- package/out/concepts/basics/stdlib/nasl.logging.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.process.d.ts +7 -0
- package/out/concepts/basics/stdlib/nasl.process.js +638 -0
- package/out/concepts/basics/stdlib/nasl.process.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.ui.d.ts +7 -0
- package/out/concepts/basics/stdlib/nasl.ui.js +1043 -0
- package/out/concepts/basics/stdlib/nasl.ui.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.util.d.ts +3 -0
- package/out/concepts/basics/stdlib/nasl.util.js +1798 -0
- package/out/concepts/basics/stdlib/nasl.util.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.validation.d.ts +3 -0
- package/out/concepts/basics/stdlib/nasl.validation.js +565 -0
- package/out/concepts/basics/stdlib/nasl.validation.js.map +1 -0
- package/out/concepts/basics/stdlib/reference2TypeAnnotationList.d.ts +5 -0
- package/out/concepts/basics/stdlib/reference2TypeAnnotationList.js +26 -0
- package/out/concepts/basics/stdlib/reference2TypeAnnotationList.js.map +1 -0
- package/out/concepts/basics/types/coreTypeList.d.ts +2 -0
- package/out/concepts/basics/types/coreTypeList.js +15 -0
- package/out/concepts/basics/types/coreTypeList.js.map +1 -0
- package/out/concepts/basics/types/index.d.ts +15 -0
- package/out/concepts/basics/types/index.js +32 -0
- package/out/concepts/basics/types/index.js.map +1 -0
- package/out/concepts/index.d.ts +5 -0
- package/out/concepts/index.js +24 -0
- package/out/concepts/index.js.map +1 -0
- package/out/concepts/index__.d.ts +108 -0
- package/out/concepts/index__.js +125 -0
- package/out/concepts/index__.js.map +1 -0
- package/out/config.d.ts +44 -0
- package/out/config.js +73 -0
- package/out/config.js.map +1 -0
- package/out/decorators/index.d.ts +56 -0
- package/out/decorators/index.js +159 -0
- package/out/decorators/index.js.map +1 -0
- package/out/enums/KEYWORDS.d.ts +6 -0
- package/out/enums/KEYWORDS.js +1243 -0
- package/out/enums/KEYWORDS.js.map +1 -0
- package/out/enums/LEVEL_NAME_MAP.d.ts +26 -0
- package/out/enums/LEVEL_NAME_MAP.js +30 -0
- package/out/enums/LEVEL_NAME_MAP.js.map +1 -0
- package/out/eventBus.d.ts +3 -0
- package/out/eventBus.js +7 -0
- package/out/eventBus.js.map +1 -0
- package/out/generator/compileComponent.d.ts +11 -0
- package/out/generator/compileComponent.js +12 -0
- package/out/generator/compileComponent.js.map +1 -0
- package/out/generator/genBundleFiles.d.ts +33 -0
- package/out/generator/genBundleFiles.js +501 -0
- package/out/generator/genBundleFiles.js.map +1 -0
- package/out/generator/genHash.d.ts +7 -0
- package/out/generator/genHash.js +39 -0
- package/out/generator/genHash.js.map +1 -0
- package/out/generator/genMetaData.d.ts +28 -0
- package/out/generator/genMetaData.js +288 -0
- package/out/generator/genMetaData.js.map +1 -0
- package/out/generator/genReleaseBody.d.ts +60 -0
- package/out/generator/genReleaseBody.js +493 -0
- package/out/generator/genReleaseBody.js.map +1 -0
- package/out/generator/icestark.d.ts +2 -0
- package/out/generator/icestark.js +48 -0
- package/out/generator/icestark.js.map +1 -0
- package/out/generator/index.d.ts +7 -0
- package/out/generator/index.js +24 -0
- package/out/generator/index.js.map +1 -0
- package/out/generator/microApp.d.ts +2 -0
- package/out/generator/microApp.js +35 -0
- package/out/generator/microApp.js.map +1 -0
- package/out/generator/permission.d.ts +10 -0
- package/out/generator/permission.js +269 -0
- package/out/generator/permission.js.map +1 -0
- package/out/generator/qiankun.d.ts +2 -0
- package/out/generator/qiankun.js +52 -0
- package/out/generator/qiankun.js.map +1 -0
- package/out/generator/styleReplacer.d.ts +3 -0
- package/out/generator/styleReplacer.js +71 -0
- package/out/generator/styleReplacer.js.map +1 -0
- package/out/index.d.ts +13 -0
- package/out/index.js +64 -0
- package/out/index.js.map +1 -0
- package/out/manager/diagnostic.d.ts +35 -0
- package/out/manager/diagnostic.js +63 -0
- package/out/manager/diagnostic.js.map +1 -0
- package/out/manager/stepRecorder.d.ts +20 -0
- package/out/manager/stepRecorder.js +110 -0
- package/out/manager/stepRecorder.js.map +1 -0
- package/out/sentry/index.d.ts +29 -0
- package/out/sentry/index.js +111 -0
- package/out/sentry/index.js.map +1 -0
- package/out/server/createUiTs.d.ts +16 -0
- package/out/server/createUiTs.js +248 -0
- package/out/server/createUiTs.js.map +1 -0
- package/out/server/entity2LogicNamespace.d.ts +10 -0
- package/out/server/entity2LogicNamespace.js +380 -0
- package/out/server/entity2LogicNamespace.js.map +1 -0
- package/out/server/event.d.ts +30 -0
- package/out/server/event.js +151 -0
- package/out/server/event.js.map +1 -0
- package/out/server/extendBaseNode.d.ts +1 -0
- package/out/server/extendBaseNode.js +475 -0
- package/out/server/extendBaseNode.js.map +1 -0
- package/out/server/formatTsUtils.d.ts +36 -0
- package/out/server/formatTsUtils.js +788 -0
- package/out/server/formatTsUtils.js.map +1 -0
- package/out/server/getExtensionModules.d.ts +3 -0
- package/out/server/getExtensionModules.js +20 -0
- package/out/server/getExtensionModules.js.map +1 -0
- package/out/server/getFunctions.d.ts +3 -0
- package/out/server/getFunctions.js +20 -0
- package/out/server/getFunctions.js.map +1 -0
- package/out/server/getInterfaces.d.ts +2 -0
- package/out/server/getInterfaces.js +48 -0
- package/out/server/getInterfaces.js.map +1 -0
- package/out/server/getLogging.d.ts +1 -0
- package/out/server/getLogging.js +9 -0
- package/out/server/getLogging.js.map +1 -0
- package/out/server/getLogics.d.ts +4 -0
- package/out/server/getLogics.js +352 -0
- package/out/server/getLogics.js.map +1 -0
- package/out/server/getMemberIdentifier.d.ts +15 -0
- package/out/server/getMemberIdentifier.js +290 -0
- package/out/server/getMemberIdentifier.js.map +1 -0
- package/out/server/getProcessComponents.d.ts +2 -0
- package/out/server/getProcessComponents.js +13 -0
- package/out/server/getProcessComponents.js.map +1 -0
- package/out/server/getProcesses.d.ts +33 -0
- package/out/server/getProcesses.js +599 -0
- package/out/server/getProcesses.js.map +1 -0
- package/out/server/getScope.d.ts +13 -0
- package/out/server/getScope.js +61 -0
- package/out/server/getScope.js.map +1 -0
- package/out/server/getValidates.d.ts +3 -0
- package/out/server/getValidates.js +14 -0
- package/out/server/getValidates.js.map +1 -0
- package/out/server/index.d.ts +5 -0
- package/out/server/index.js +38 -0
- package/out/server/index.js.map +1 -0
- package/out/server/naslServer.d.ts +363 -0
- package/out/server/naslServer.js +4382 -0
- package/out/server/naslServer.js.map +1 -0
- package/out/server/naslStdlibMap.d.ts +2 -0
- package/out/server/naslStdlibMap.js +50 -0
- package/out/server/naslStdlibMap.js.map +1 -0
- package/out/server/process2LogicNamespace.d.ts +26 -0
- package/out/server/process2LogicNamespace.js +109 -0
- package/out/server/process2LogicNamespace.js.map +1 -0
- package/out/server/translator.d.ts +26 -0
- package/out/server/translator.js +787 -0
- package/out/server/translator.js.map +1 -0
- package/out/service/creator/add.configs.d.ts +1 -0
- package/out/service/creator/add.configs.js +74 -0
- package/out/service/creator/add.configs.js.map +1 -0
- package/out/service/creator/errHandles.d.ts +18 -0
- package/out/service/creator/errHandles.js +75 -0
- package/out/service/creator/errHandles.js.map +1 -0
- package/out/service/creator/index.d.ts +1 -0
- package/out/service/creator/index.js +74 -0
- package/out/service/creator/index.js.map +1 -0
- package/out/service/datasource/api.d.ts +12 -0
- package/out/service/datasource/api.js +14 -0
- package/out/service/datasource/api.js.map +1 -0
- package/out/service/datasource/index.d.ts +2 -0
- package/out/service/datasource/index.js +10 -0
- package/out/service/datasource/index.js.map +1 -0
- package/out/service/defaultErrorMessage.json +98 -0
- package/out/service/logic/api.d.ts +9 -0
- package/out/service/logic/api.js +11 -0
- package/out/service/logic/api.js.map +1 -0
- package/out/service/logic/index.d.ts +2 -0
- package/out/service/logic/index.js +10 -0
- package/out/service/logic/index.js.map +1 -0
- package/out/service/storage/api.d.ts +45 -0
- package/out/service/storage/api.js +36 -0
- package/out/service/storage/api.js.map +1 -0
- package/out/service/storage/index.d.ts +2 -0
- package/out/service/storage/index.js +10 -0
- package/out/service/storage/index.js.map +1 -0
- package/out/service/storage/init.d.ts +65 -0
- package/out/service/storage/init.js +797 -0
- package/out/service/storage/init.js.map +1 -0
- package/out/service/storage/jsoner.d.ts +36 -0
- package/out/service/storage/jsoner.js +131 -0
- package/out/service/storage/jsoner.js.map +1 -0
- package/out/service/storage/map.d.ts +4 -0
- package/out/service/storage/map.js +54 -0
- package/out/service/storage/map.js.map +1 -0
- package/out/service/storage/service.d.ts +22 -0
- package/out/service/storage/service.js +70 -0
- package/out/service/storage/service.js.map +1 -0
- package/out/service/storage/storagePoint.d.ts +17 -0
- package/out/service/storage/storagePoint.js +76 -0
- package/out/service/storage/storagePoint.js.map +1 -0
- package/out/templator/genCallComponentLogic.d.ts +17 -0
- package/out/templator/genCallComponentLogic.js +30 -0
- package/out/templator/genCallComponentLogic.js.map +1 -0
- package/out/templator/genCreateBlock.d.ts +10 -0
- package/out/templator/genCreateBlock.js +338 -0
- package/out/templator/genCreateBlock.js.map +1 -0
- package/out/templator/genCurdEditMultipleKeyBlock.d.ts +8 -0
- package/out/templator/genCurdEditMultipleKeyBlock.js +516 -0
- package/out/templator/genCurdEditMultipleKeyBlock.js.map +1 -0
- package/out/templator/genCurdMultipleKeyBlock.d.ts +34 -0
- package/out/templator/genCurdMultipleKeyBlock.js +709 -0
- package/out/templator/genCurdMultipleKeyBlock.js.map +1 -0
- package/out/templator/genEditTableBlock.d.ts +51 -0
- package/out/templator/genEditTableBlock.js +299 -0
- package/out/templator/genEditTableBlock.js.map +1 -0
- package/out/templator/genEnumSelectBlock.d.ts +10 -0
- package/out/templator/genEnumSelectBlock.js +26 -0
- package/out/templator/genEnumSelectBlock.js.map +1 -0
- package/out/templator/genGetBlock.d.ts +6 -0
- package/out/templator/genGetBlock.js +138 -0
- package/out/templator/genGetBlock.js.map +1 -0
- package/out/templator/genGridViewBlock.d.ts +55 -0
- package/out/templator/genGridViewBlock.js +350 -0
- package/out/templator/genGridViewBlock.js.map +1 -0
- package/out/templator/genListViewBlock.d.ts +19 -0
- package/out/templator/genListViewBlock.js +143 -0
- package/out/templator/genListViewBlock.js.map +1 -0
- package/out/templator/genQueryComponent.d.ts +34 -0
- package/out/templator/genQueryComponent.js +342 -0
- package/out/templator/genQueryComponent.js.map +1 -0
- package/out/templator/genSelectBlock.d.ts +45 -0
- package/out/templator/genSelectBlock.js +406 -0
- package/out/templator/genSelectBlock.js.map +1 -0
- package/out/templator/genTableBlock.d.ts +53 -0
- package/out/templator/genTableBlock.js +280 -0
- package/out/templator/genTableBlock.js.map +1 -0
- package/out/templator/genUpdateBlock.d.ts +6 -0
- package/out/templator/genUpdateBlock.js +380 -0
- package/out/templator/genUpdateBlock.js.map +1 -0
- package/out/templator/index.d.ts +18 -0
- package/out/templator/index.js +34 -0
- package/out/templator/index.js.map +1 -0
- package/out/templator/utils.d.ts +676 -0
- package/out/templator/utils.js +469 -0
- package/out/templator/utils.js.map +1 -0
- package/out/translator/constant.d.ts +6 -0
- package/out/translator/constant.js +10 -0
- package/out/translator/constant.js.map +1 -0
- package/out/translator/index.d.ts +3 -0
- package/out/translator/index.js +20 -0
- package/out/translator/index.js.map +1 -0
- package/out/translator/types.d.ts +32 -0
- package/out/translator/types.js +3 -0
- package/out/translator/types.js.map +1 -0
- package/out/translator/utils.d.ts +25 -0
- package/out/translator/utils.js +120 -0
- package/out/translator/utils.js.map +1 -0
- package/out/utils/index.d.ts +42 -0
- package/out/utils/index.js +213 -0
- package/out/utils/index.js.map +1 -0
- package/out/utils/logger.d.ts +7 -0
- package/out/utils/logger.js +23 -0
- package/out/utils/logger.js.map +1 -0
- package/out/utils/sortTsString.d.ts +1 -0
- package/out/utils/sortTsString.js +36 -0
- package/out/utils/sortTsString.js.map +1 -0
- package/out/utils/string.d.ts +51 -0
- package/out/utils/string.js +110 -0
- package/out/utils/string.js.map +1 -0
- package/out/utils/time.d.ts +1 -0
- package/out/utils/time.js +6 -0
- package/out/utils/time.js.map +1 -0
- package/out/utils/traverse.d.ts +36 -0
- package/out/utils/traverse.js +145 -0
- package/out/utils/traverse.js.map +1 -0
- package/out/utils/types.d.ts +1 -0
- package/out/utils/types.js +3 -0
- package/out/utils/types.js.map +1 -0
- package/out/utils/window.d.ts +7 -0
- package/out/utils/window.js +14 -0
- package/out/utils/window.js.map +1 -0
- package/package.json +1 -1
- package/src/concepts/BindEvent__.ts +5 -6
- package/src/concepts/Module__.ts +2 -2
- package/src/concepts/View__.ts +2 -2
- package/src/server/naslServer.ts +4 -4
|
@@ -0,0 +1,740 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
19
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
20
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
21
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
22
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
23
|
+
};
|
|
24
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
25
|
+
if (mod && mod.__esModule) return mod;
|
|
26
|
+
var result = {};
|
|
27
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
28
|
+
__setModuleDefault(result, mod);
|
|
29
|
+
return result;
|
|
30
|
+
};
|
|
31
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
32
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
33
|
+
};
|
|
34
|
+
var Destination_1;
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.Destination = void 0;
|
|
37
|
+
const utils_1 = require("../automate/engine/utils");
|
|
38
|
+
const translator_1 = require("../translator");
|
|
39
|
+
const __1 = require("..");
|
|
40
|
+
const decorators_1 = require("../decorators");
|
|
41
|
+
const utils = __importStar(require("../utils"));
|
|
42
|
+
const Argument__1 = __importDefault(require("./Argument__"));
|
|
43
|
+
const LogicItem__1 = __importDefault(require("./LogicItem__"));
|
|
44
|
+
/**
|
|
45
|
+
* 跳转页面
|
|
46
|
+
*/
|
|
47
|
+
let Destination = Destination_1 =
|
|
48
|
+
// @ts-ignore
|
|
49
|
+
class Destination extends LogicItem__1.default {
|
|
50
|
+
/** 类名 */
|
|
51
|
+
static ConceptName = 'Destination';
|
|
52
|
+
/**
|
|
53
|
+
* 产品概念
|
|
54
|
+
*/
|
|
55
|
+
// @ts-ignore
|
|
56
|
+
concept;
|
|
57
|
+
/**
|
|
58
|
+
* 跳转页面标题
|
|
59
|
+
*/
|
|
60
|
+
label = '跳转页面';
|
|
61
|
+
/**
|
|
62
|
+
* viewNamespace
|
|
63
|
+
*/
|
|
64
|
+
// @ts-ignore
|
|
65
|
+
viewNamespace;
|
|
66
|
+
/**
|
|
67
|
+
* viewName
|
|
68
|
+
*/
|
|
69
|
+
// @ts-ignore
|
|
70
|
+
viewName;
|
|
71
|
+
/**
|
|
72
|
+
* 实际参数
|
|
73
|
+
*/
|
|
74
|
+
arguments = [];
|
|
75
|
+
/**
|
|
76
|
+
* 锚点参数
|
|
77
|
+
*/
|
|
78
|
+
// @ts-ignore
|
|
79
|
+
anchor;
|
|
80
|
+
/**
|
|
81
|
+
* target
|
|
82
|
+
*/
|
|
83
|
+
target = '_self';
|
|
84
|
+
/**
|
|
85
|
+
* @param source 需要合并的部分参数
|
|
86
|
+
*/
|
|
87
|
+
constructor(source) {
|
|
88
|
+
source = Object.assign({}, Destination_1.getDefaultOptions(), source);
|
|
89
|
+
super(source);
|
|
90
|
+
super.subConstructor(source);
|
|
91
|
+
}
|
|
92
|
+
static from(source, parentNode, parentKey) {
|
|
93
|
+
return super.from(source, parentNode, parentKey);
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* 设置viewNamespace
|
|
97
|
+
*/
|
|
98
|
+
setViewNamespace(viewNamespace) {
|
|
99
|
+
const object = {
|
|
100
|
+
viewNamespace,
|
|
101
|
+
};
|
|
102
|
+
this.update({
|
|
103
|
+
...object,
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* 设置viewName
|
|
108
|
+
*/
|
|
109
|
+
setViewName(viewName) {
|
|
110
|
+
const object = {
|
|
111
|
+
viewName,
|
|
112
|
+
};
|
|
113
|
+
this.update({
|
|
114
|
+
...object,
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* 设置锚点参数
|
|
119
|
+
*/
|
|
120
|
+
setAnchor(anchor) {
|
|
121
|
+
anchor._delete();
|
|
122
|
+
const relationOptions = { parentNode: this, parentKey: 'anchor' };
|
|
123
|
+
Object.assign(anchor, relationOptions);
|
|
124
|
+
const object = {
|
|
125
|
+
anchor,
|
|
126
|
+
};
|
|
127
|
+
this.update({
|
|
128
|
+
...object,
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* 设置target
|
|
133
|
+
*/
|
|
134
|
+
setTarget(target) {
|
|
135
|
+
const object = {
|
|
136
|
+
target,
|
|
137
|
+
};
|
|
138
|
+
this.update({
|
|
139
|
+
...object,
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
_insertArgumentAt(options, index) {
|
|
143
|
+
const argumentOptions = {};
|
|
144
|
+
const relationOptions = { parentNode: this, parentKey: 'arguments' };
|
|
145
|
+
let argument;
|
|
146
|
+
if (options instanceof Argument__1.default) {
|
|
147
|
+
options.ensureDelete(); // 同一实例不支持多处存在
|
|
148
|
+
argument = options;
|
|
149
|
+
Object.assign(argument, relationOptions);
|
|
150
|
+
}
|
|
151
|
+
else {
|
|
152
|
+
argument = Argument__1.default.from({
|
|
153
|
+
...argumentOptions,
|
|
154
|
+
...options,
|
|
155
|
+
}, this, 'arguments');
|
|
156
|
+
}
|
|
157
|
+
this.arguments.splice(index, 0, argument);
|
|
158
|
+
return argument;
|
|
159
|
+
}
|
|
160
|
+
insertArgumentAt(options, index) {
|
|
161
|
+
const node = this._insertArgumentAt(options, index);
|
|
162
|
+
node.create({
|
|
163
|
+
index,
|
|
164
|
+
parentNode: this,
|
|
165
|
+
parentKey: 'arguments',
|
|
166
|
+
});
|
|
167
|
+
return node;
|
|
168
|
+
}
|
|
169
|
+
_addArgument(options) {
|
|
170
|
+
const index = this.arguments.length;
|
|
171
|
+
return this._insertArgumentAt(options, index);
|
|
172
|
+
}
|
|
173
|
+
addArgument(options) {
|
|
174
|
+
const node = this._addArgument(options);
|
|
175
|
+
const index = this.arguments.indexOf(node);
|
|
176
|
+
node.create({
|
|
177
|
+
index,
|
|
178
|
+
parentNode: this,
|
|
179
|
+
parentKey: 'arguments',
|
|
180
|
+
});
|
|
181
|
+
return node;
|
|
182
|
+
}
|
|
183
|
+
removeArgumentInArguments(options) {
|
|
184
|
+
let argument = options;
|
|
185
|
+
return argument.delete();
|
|
186
|
+
}
|
|
187
|
+
removeAnchor(options) {
|
|
188
|
+
let anchor;
|
|
189
|
+
if (typeof options === 'string') {
|
|
190
|
+
anchor = this.anchor;
|
|
191
|
+
if (!anchor) {
|
|
192
|
+
throw new Error('找不到锚点参数 ' + options);
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
else {
|
|
196
|
+
anchor = options;
|
|
197
|
+
}
|
|
198
|
+
return anchor.delete();
|
|
199
|
+
}
|
|
200
|
+
__removeLogicItem(logicItem) {
|
|
201
|
+
const parentKey = logicItem.parentKey;
|
|
202
|
+
const params = {
|
|
203
|
+
parentNode: this,
|
|
204
|
+
parentKey,
|
|
205
|
+
index: -1,
|
|
206
|
+
object: null,
|
|
207
|
+
oldObject: logicItem,
|
|
208
|
+
};
|
|
209
|
+
if (parentKey) {
|
|
210
|
+
params.parentKey = parentKey;
|
|
211
|
+
if (Array.isArray(this[parentKey])) {
|
|
212
|
+
const index = this[parentKey].indexOf(logicItem);
|
|
213
|
+
~index && this[parentKey].splice(index, 1);
|
|
214
|
+
params.index = index;
|
|
215
|
+
}
|
|
216
|
+
else if (this[parentKey] === logicItem) {
|
|
217
|
+
params.index = 0;
|
|
218
|
+
this[parentKey] = undefined;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
return params;
|
|
222
|
+
}
|
|
223
|
+
//================================================================================
|
|
224
|
+
// ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑
|
|
225
|
+
// 自动生成的代码已结束。下面可以手动编写。
|
|
226
|
+
//================================================================================
|
|
227
|
+
get tsCalleeNamespace() {
|
|
228
|
+
if (this.viewNamespace) {
|
|
229
|
+
let tsCalleeNamespace = this.viewNamespace;
|
|
230
|
+
tsCalleeNamespace = tsCalleeNamespace.replace(/\.[0-9]/g, (m) => m.replace('.', '.$'));
|
|
231
|
+
tsCalleeNamespace = tsCalleeNamespace.replace(/-/g, '_');
|
|
232
|
+
return tsCalleeNamespace;
|
|
233
|
+
}
|
|
234
|
+
return '';
|
|
235
|
+
}
|
|
236
|
+
get tsName() {
|
|
237
|
+
if (this.viewName) {
|
|
238
|
+
let tsName = this.viewName;
|
|
239
|
+
// 匹配所有特殊字符都转为_
|
|
240
|
+
tsName = tsName.replace(/\W/g, '_');
|
|
241
|
+
if (/^\d/.test(tsName)) {
|
|
242
|
+
tsName = '$' + tsName;
|
|
243
|
+
}
|
|
244
|
+
return tsName;
|
|
245
|
+
}
|
|
246
|
+
return '';
|
|
247
|
+
}
|
|
248
|
+
genViewArr() {
|
|
249
|
+
const viewArr = this.viewNamespace
|
|
250
|
+
?.split('.')
|
|
251
|
+
.splice(1)
|
|
252
|
+
.filter((item, index) => index % 2 === 1) || [];
|
|
253
|
+
if (this.viewName) {
|
|
254
|
+
viewArr.push(this.viewName);
|
|
255
|
+
}
|
|
256
|
+
// 第一个是端名,需要去掉
|
|
257
|
+
viewArr.shift();
|
|
258
|
+
return viewArr;
|
|
259
|
+
}
|
|
260
|
+
toInViewMethod() {
|
|
261
|
+
let code = '';
|
|
262
|
+
const viewArr = this.genViewArr();
|
|
263
|
+
if (Array.isArray(viewArr) && viewArr.length) {
|
|
264
|
+
code += `let url = '${this.viewNode.frontend.prefixPath ? this.viewNode.frontend.prefixPath : ''}/${viewArr.join('/')}';\n`;
|
|
265
|
+
const completeArguments = this.completeArguments;
|
|
266
|
+
if (Array.isArray(completeArguments) && completeArguments.length) {
|
|
267
|
+
const node = this.viewNode;
|
|
268
|
+
let logicParam = [];
|
|
269
|
+
if (node?.params) {
|
|
270
|
+
logicParam = node.params;
|
|
271
|
+
}
|
|
272
|
+
const logicParamLen = logicParam.length;
|
|
273
|
+
const paramAssigns = [];
|
|
274
|
+
const args = [];
|
|
275
|
+
completeArguments.forEach((arg, index) => {
|
|
276
|
+
const value = arg?.toJS();
|
|
277
|
+
if (value && index < logicParamLen) {
|
|
278
|
+
let paramAssign = `const ${arg.keyword} = `;
|
|
279
|
+
if (value === 'undefined') {
|
|
280
|
+
paramAssign += `null`;
|
|
281
|
+
}
|
|
282
|
+
else {
|
|
283
|
+
paramAssign += value;
|
|
284
|
+
}
|
|
285
|
+
paramAssign += '\n;';
|
|
286
|
+
paramAssigns.push(paramAssign);
|
|
287
|
+
const constStr = '${' + arg.keyword + '}';
|
|
288
|
+
args.push(`${arg.keyword}=${constStr}`);
|
|
289
|
+
}
|
|
290
|
+
});
|
|
291
|
+
code += `${paramAssigns.join(';\n')}\n`;
|
|
292
|
+
code += 'const params = `';
|
|
293
|
+
code += args.join('&');
|
|
294
|
+
code += '`;\n';
|
|
295
|
+
code += 'if (params) {\nurl += `?${params}`;\n}\n';
|
|
296
|
+
}
|
|
297
|
+
if (this.anchor) {
|
|
298
|
+
const anchorCode = this.anchor.toJS();
|
|
299
|
+
if (anchorCode) {
|
|
300
|
+
code += `const anchor = ${anchorCode};\n`;
|
|
301
|
+
code += 'if (anchor) {\nurl += `#${anchor}`;\n}\n';
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
code += 'return url;';
|
|
305
|
+
}
|
|
306
|
+
return `await (async () => {
|
|
307
|
+
try {
|
|
308
|
+
${code};
|
|
309
|
+
} catch(err) {
|
|
310
|
+
console.log(err);
|
|
311
|
+
}
|
|
312
|
+
})();`;
|
|
313
|
+
}
|
|
314
|
+
toVue(options) {
|
|
315
|
+
let url = '`';
|
|
316
|
+
const viewArr = this.genViewArr();
|
|
317
|
+
if (Array.isArray(viewArr) && viewArr.length) {
|
|
318
|
+
url += `${this.viewNode?.frontend?.prefixPath ? this.viewNode.frontend.prefixPath : ''}/${viewArr.join('/')}`;
|
|
319
|
+
const completeArguments = this.completeArguments;
|
|
320
|
+
if (completeArguments.length) {
|
|
321
|
+
const node = this.viewNode;
|
|
322
|
+
let logicParam = [];
|
|
323
|
+
if (node?.params) {
|
|
324
|
+
logicParam = node.params;
|
|
325
|
+
}
|
|
326
|
+
const logicParamLength = logicParam.length;
|
|
327
|
+
const args = completeArguments.map((arg, index) => {
|
|
328
|
+
const value = arg?.toVue();
|
|
329
|
+
let argStr = '';
|
|
330
|
+
if (value && index < logicParamLength) {
|
|
331
|
+
argStr += `${arg.keyword}=` + '${';
|
|
332
|
+
if (value === 'undefined') {
|
|
333
|
+
argStr += `null`;
|
|
334
|
+
}
|
|
335
|
+
else {
|
|
336
|
+
argStr += value;
|
|
337
|
+
}
|
|
338
|
+
argStr += '}';
|
|
339
|
+
}
|
|
340
|
+
return argStr;
|
|
341
|
+
}).filter((arg) => !!arg);
|
|
342
|
+
url += `?${args.join('&')}`;
|
|
343
|
+
}
|
|
344
|
+
if (this.anchor) {
|
|
345
|
+
const anchor = this.anchor.toVue();
|
|
346
|
+
if (anchor)
|
|
347
|
+
url += `#\${${anchor}}`;
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
url += '`';
|
|
351
|
+
return url;
|
|
352
|
+
}
|
|
353
|
+
toUI() {
|
|
354
|
+
let url = '';
|
|
355
|
+
const viewArr = this.genViewArr();
|
|
356
|
+
if (Array.isArray(viewArr) && viewArr.length) {
|
|
357
|
+
url += '`';
|
|
358
|
+
// IDE内展示需要屏蔽掉“系统统一路径前缀”
|
|
359
|
+
url += `${this.viewNode?.frontend?.basePath ? this.viewNode.frontend.basePath : ''}/${viewArr.join('/')}`;
|
|
360
|
+
const completeArguments = this.completeArguments;
|
|
361
|
+
if (completeArguments.length) {
|
|
362
|
+
const node = this.viewNode;
|
|
363
|
+
let logicParam = [];
|
|
364
|
+
if (node?.params) {
|
|
365
|
+
logicParam = node.params;
|
|
366
|
+
}
|
|
367
|
+
const logicParamLength = logicParam.length;
|
|
368
|
+
const args = completeArguments.map((arg, index) => {
|
|
369
|
+
const value = arg?.toUI();
|
|
370
|
+
let argStr = '';
|
|
371
|
+
if (value && index < logicParamLength) {
|
|
372
|
+
argStr += `${arg.keyword}=` + '${';
|
|
373
|
+
if (value === 'undefined') {
|
|
374
|
+
argStr += 'null';
|
|
375
|
+
}
|
|
376
|
+
else {
|
|
377
|
+
argStr += value;
|
|
378
|
+
}
|
|
379
|
+
argStr += '}';
|
|
380
|
+
}
|
|
381
|
+
return argStr;
|
|
382
|
+
}).filter((arg) => !!arg);
|
|
383
|
+
url += `?${args.join('&')}`;
|
|
384
|
+
}
|
|
385
|
+
if (this.anchor) {
|
|
386
|
+
const anchor = this.anchor.toUI();
|
|
387
|
+
if (anchor)
|
|
388
|
+
url += `#\${${anchor}}`;
|
|
389
|
+
}
|
|
390
|
+
url += '`';
|
|
391
|
+
}
|
|
392
|
+
return url;
|
|
393
|
+
}
|
|
394
|
+
toJS() {
|
|
395
|
+
let url = '';
|
|
396
|
+
const viewArr = this.genViewArr();
|
|
397
|
+
if (Array.isArray(viewArr) && viewArr.length) {
|
|
398
|
+
url += 'this.$destination(`';
|
|
399
|
+
url += `${this.viewNode?.frontend?.prefixPath ? this.viewNode.frontend.prefixPath : ''}/${viewArr.join('/')}`;
|
|
400
|
+
const completeArguments = this.completeArguments;
|
|
401
|
+
if (completeArguments.length) {
|
|
402
|
+
const node = this.viewNode;
|
|
403
|
+
let logicParam = [];
|
|
404
|
+
if (node?.params) {
|
|
405
|
+
logicParam = node.params;
|
|
406
|
+
}
|
|
407
|
+
const logicParamLength = logicParam.length;
|
|
408
|
+
const args = completeArguments.map((arg, index) => {
|
|
409
|
+
const value = arg?.toJS();
|
|
410
|
+
let argStr = '';
|
|
411
|
+
if (value && index < logicParamLength) {
|
|
412
|
+
argStr += `${arg.keyword}=` + '${';
|
|
413
|
+
if (value === 'undefined') {
|
|
414
|
+
argStr += 'null';
|
|
415
|
+
}
|
|
416
|
+
else {
|
|
417
|
+
argStr += value;
|
|
418
|
+
}
|
|
419
|
+
argStr += '}';
|
|
420
|
+
}
|
|
421
|
+
return argStr;
|
|
422
|
+
}).filter((arg) => !!arg);
|
|
423
|
+
url += `?${args.join('&')}`;
|
|
424
|
+
}
|
|
425
|
+
if (this.anchor) {
|
|
426
|
+
const anchor = this.anchor.toJS();
|
|
427
|
+
if (anchor)
|
|
428
|
+
url += `#\${${anchor}}`;
|
|
429
|
+
}
|
|
430
|
+
url += '`,"';
|
|
431
|
+
url += `${this.target}`;
|
|
432
|
+
url += '")';
|
|
433
|
+
}
|
|
434
|
+
return url;
|
|
435
|
+
}
|
|
436
|
+
static getDefaultOptions() {
|
|
437
|
+
return {
|
|
438
|
+
anchor: {
|
|
439
|
+
concept: 'Anchor',
|
|
440
|
+
},
|
|
441
|
+
};
|
|
442
|
+
}
|
|
443
|
+
/**
|
|
444
|
+
* 设置view
|
|
445
|
+
*/
|
|
446
|
+
setView(view) {
|
|
447
|
+
const object = {
|
|
448
|
+
viewNamespace: view.getNamespace(),
|
|
449
|
+
viewName: view.name,
|
|
450
|
+
};
|
|
451
|
+
const params = view.params.map((param) => {
|
|
452
|
+
const relationOptions = { parentNode: this, parentKey: 'arguments' };
|
|
453
|
+
const argument = Argument__1.default.from({
|
|
454
|
+
keyword: param.name,
|
|
455
|
+
}, this);
|
|
456
|
+
Object.assign(argument, relationOptions);
|
|
457
|
+
return argument;
|
|
458
|
+
});
|
|
459
|
+
this.update({
|
|
460
|
+
...object,
|
|
461
|
+
arguments: params,
|
|
462
|
+
folded: false,
|
|
463
|
+
});
|
|
464
|
+
}
|
|
465
|
+
/**
|
|
466
|
+
* 设置view的argument
|
|
467
|
+
*/
|
|
468
|
+
addCalleeArg(view) {
|
|
469
|
+
const newArgs = this.arguments.map((argument) => Argument__1.default.from({
|
|
470
|
+
...argument,
|
|
471
|
+
}, this));
|
|
472
|
+
const relationOptions = { parentNode: this, parentKey: 'arguments' };
|
|
473
|
+
/**
|
|
474
|
+
* 当前两个参数对应上,添加的时候,view会比参数位内容多,就添加一个 argment
|
|
475
|
+
*/
|
|
476
|
+
if (view.params.length >= newArgs.length) {
|
|
477
|
+
view.params.forEach((param, index) => {
|
|
478
|
+
const arg = newArgs[index];
|
|
479
|
+
if (!arg) {
|
|
480
|
+
const newParam = Argument__1.default.from({
|
|
481
|
+
keyword: param.name,
|
|
482
|
+
}, this);
|
|
483
|
+
Object.assign(newParam, relationOptions);
|
|
484
|
+
newArgs.push(newParam);
|
|
485
|
+
}
|
|
486
|
+
else {
|
|
487
|
+
arg.keyword = param.name;
|
|
488
|
+
}
|
|
489
|
+
});
|
|
490
|
+
}
|
|
491
|
+
else {
|
|
492
|
+
/**
|
|
493
|
+
* 当前callview上数量比view参数还多,他就需要找一个arg使他变成可用的参数
|
|
494
|
+
*/
|
|
495
|
+
newArgs.forEach((arg, index) => {
|
|
496
|
+
const param = view.params[index];
|
|
497
|
+
if (param) {
|
|
498
|
+
arg.keyword = param.name;
|
|
499
|
+
}
|
|
500
|
+
});
|
|
501
|
+
}
|
|
502
|
+
this.update({
|
|
503
|
+
arguments: newArgs,
|
|
504
|
+
});
|
|
505
|
+
}
|
|
506
|
+
deleteCalleeArg(argIndex) {
|
|
507
|
+
/**
|
|
508
|
+
* 传递过下标来,然后直接移动到最后结束
|
|
509
|
+
* 如果原来就是最后一个位置就不移动了
|
|
510
|
+
*/
|
|
511
|
+
if (typeof argIndex === 'number') {
|
|
512
|
+
if (!this.arguments[argIndex]?.expression) {
|
|
513
|
+
return this.arguments[argIndex]?.delete();
|
|
514
|
+
}
|
|
515
|
+
if (argIndex !== this.arguments.length - 1) {
|
|
516
|
+
// 如果本身没有值就直接删除
|
|
517
|
+
this.arguments[argIndex]?.moveNode({
|
|
518
|
+
sourceNode: this.arguments[this.arguments.length - 1],
|
|
519
|
+
position: 'insertAfter',
|
|
520
|
+
});
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
/**
|
|
525
|
+
* 设置Arguments的KeyWord
|
|
526
|
+
*/
|
|
527
|
+
setArgumentsKeyWord(options) {
|
|
528
|
+
const { findArgument, newKeyword } = options;
|
|
529
|
+
findArgument.setKeyword(newKeyword);
|
|
530
|
+
}
|
|
531
|
+
get viewUIPath() {
|
|
532
|
+
if (!this.viewNamespace) {
|
|
533
|
+
return '';
|
|
534
|
+
}
|
|
535
|
+
const namespaceAttr = this.viewNamespace.split('.');
|
|
536
|
+
namespaceAttr.push(this.viewName);
|
|
537
|
+
const viewNameAttr = [];
|
|
538
|
+
if (Array.isArray(namespaceAttr)) {
|
|
539
|
+
namespaceAttr.forEach((item, index) => {
|
|
540
|
+
if (item === 'views') {
|
|
541
|
+
viewNameAttr.push(namespaceAttr[index + 1]);
|
|
542
|
+
}
|
|
543
|
+
});
|
|
544
|
+
}
|
|
545
|
+
if (this.viewNode && this.viewNode.frontend) {
|
|
546
|
+
return `${this.viewNode.frontend.basePath}/${viewNameAttr.join('/')}`;
|
|
547
|
+
}
|
|
548
|
+
return `/${viewNameAttr.join('/')}`;
|
|
549
|
+
}
|
|
550
|
+
get viewPath() {
|
|
551
|
+
if (!this.viewNamespace) {
|
|
552
|
+
return '';
|
|
553
|
+
}
|
|
554
|
+
const namespaceAttr = this.viewNamespace.split('.');
|
|
555
|
+
namespaceAttr.push(this.viewName);
|
|
556
|
+
const viewNameAttr = [];
|
|
557
|
+
if (Array.isArray(namespaceAttr)) {
|
|
558
|
+
namespaceAttr.forEach((item, index) => {
|
|
559
|
+
if (item === 'views') {
|
|
560
|
+
viewNameAttr.push(namespaceAttr[index + 1]);
|
|
561
|
+
}
|
|
562
|
+
});
|
|
563
|
+
}
|
|
564
|
+
if (this.viewNode) {
|
|
565
|
+
return `${this.viewNode.frontend.prefixPath}/${viewNameAttr.join('/')}`;
|
|
566
|
+
}
|
|
567
|
+
return `/${viewNameAttr.join('/')}`;
|
|
568
|
+
}
|
|
569
|
+
toEmbeddedTSInProcess(state, prependCode) {
|
|
570
|
+
// const tab = indent((state?.tabSize || 0));
|
|
571
|
+
if (this.tsCalleeNamespace && this.tsName) {
|
|
572
|
+
const destinationName = this.parentNode.name.replace('-', '_');
|
|
573
|
+
let code = `${destinationName}: function() {\n`;
|
|
574
|
+
code += prependCode;
|
|
575
|
+
code += '\n';
|
|
576
|
+
if (this.tsCalleeNamespace && this.viewName) {
|
|
577
|
+
code += `${this.tsCalleeNamespace}.${this.viewName}.$destination({`;
|
|
578
|
+
if (Array.isArray(this.arguments)) {
|
|
579
|
+
this.arguments.forEach((argument) => {
|
|
580
|
+
code += argument.toEmbeddedTS((0, translator_1.shiftState)(state, code), false, true) + ', ';
|
|
581
|
+
});
|
|
582
|
+
}
|
|
583
|
+
code += this.anchor?.toEmbeddedTS((0, translator_1.shiftState)(state, code), true) || '';
|
|
584
|
+
code += `});\n`;
|
|
585
|
+
}
|
|
586
|
+
code += (0, translator_1.indent)((state?.tabSize || 0) + 1) + `}\n`;
|
|
587
|
+
return code;
|
|
588
|
+
}
|
|
589
|
+
else {
|
|
590
|
+
return 'destinationEmpty(){ const __destinationEmpty__: any = null}';
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
toEmbeddedTS(state) {
|
|
594
|
+
let code = '';
|
|
595
|
+
const node = this.viewNode;
|
|
596
|
+
let logicParam = [];
|
|
597
|
+
if (node?.params) {
|
|
598
|
+
logicParam = node.params;
|
|
599
|
+
}
|
|
600
|
+
const logicParamLength = logicParam.length;
|
|
601
|
+
if (this.parentNode instanceof __1.BindAttribute) {
|
|
602
|
+
code += (0, translator_1.indent)((state?.tabSize || 0) + 2);
|
|
603
|
+
if (this.tsCalleeNamespace && this.tsName) {
|
|
604
|
+
code += `${this.tsCalleeNamespace}.${this.tsName}.$destination({`;
|
|
605
|
+
if (Array.isArray(this.arguments)) {
|
|
606
|
+
this.arguments.forEach((argument, index) => {
|
|
607
|
+
const oldName = argument.keyword;
|
|
608
|
+
if (index >= logicParamLength) {
|
|
609
|
+
argument.keyword = '__unknown__';
|
|
610
|
+
}
|
|
611
|
+
code += argument.toEmbeddedTS((0, translator_1.shiftState)(state, code), false, true) + ', ';
|
|
612
|
+
argument.keyword = oldName;
|
|
613
|
+
});
|
|
614
|
+
}
|
|
615
|
+
code += this.anchor?.toEmbeddedTS((0, translator_1.shiftState)(state, code), true) || '';
|
|
616
|
+
code += `});\n`;
|
|
617
|
+
}
|
|
618
|
+
return code;
|
|
619
|
+
}
|
|
620
|
+
else {
|
|
621
|
+
if (this.tsCalleeNamespace && this.tsName) {
|
|
622
|
+
code += `${this.tsCalleeNamespace}.${this.tsName}.$destination({`;
|
|
623
|
+
if (Array.isArray(this.arguments)) {
|
|
624
|
+
this.arguments.forEach((argument, index) => {
|
|
625
|
+
const oldName = argument.keyword;
|
|
626
|
+
if (index >= logicParamLength) {
|
|
627
|
+
argument.keyword = '__unknown__';
|
|
628
|
+
}
|
|
629
|
+
code += argument.toEmbeddedTS((0, translator_1.shiftState)(state, code), false, true) + ', ';
|
|
630
|
+
argument.keyword = oldName;
|
|
631
|
+
});
|
|
632
|
+
}
|
|
633
|
+
code += this.anchor?.toEmbeddedTS((0, translator_1.shiftState)(state, code), true) || '';
|
|
634
|
+
code += `});\n`;
|
|
635
|
+
}
|
|
636
|
+
else {
|
|
637
|
+
code += '__IDENTIFIER__';
|
|
638
|
+
}
|
|
639
|
+
return code;
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
toBrief() {
|
|
643
|
+
const q = [];
|
|
644
|
+
if (this.anchor?.expression) {
|
|
645
|
+
q.push(this.anchor.toBrief());
|
|
646
|
+
}
|
|
647
|
+
return this.arguments.map((a) => a.toBrief()).concat(q).join('<br />');
|
|
648
|
+
}
|
|
649
|
+
toEmbeddedTSNormalFunction(state) {
|
|
650
|
+
let code = `let ${utils.firstLowerCase(this.concept)} = function() {\n`;
|
|
651
|
+
const tab = (0, translator_1.indent)((state?.tabSize || 0) + 2);
|
|
652
|
+
if (this.tsCalleeNamespace && this.tsName) {
|
|
653
|
+
code += `${tab}${this.tsCalleeNamespace}.${this.tsName}.$destination(`;
|
|
654
|
+
if (Array.isArray(this.arguments)) {
|
|
655
|
+
this.arguments.forEach((argument) => {
|
|
656
|
+
code += argument.toEmbeddedTS((0, translator_1.shiftState)(state, code)) + ', ';
|
|
657
|
+
});
|
|
658
|
+
}
|
|
659
|
+
code += this.anchor?.toEmbeddedTS((0, translator_1.shiftState)(state, code)) || '';
|
|
660
|
+
code += `${tab});\n`;
|
|
661
|
+
}
|
|
662
|
+
code += `${(0, translator_1.indent)((state?.tabSize || 0) + 1)}}\n`;
|
|
663
|
+
return code;
|
|
664
|
+
}
|
|
665
|
+
get viewNode() {
|
|
666
|
+
if (!this.viewNamespace || !this.viewName)
|
|
667
|
+
return null;
|
|
668
|
+
let nameSpace = this.viewNamespace;
|
|
669
|
+
nameSpace = nameSpace.replaceAll('views', 'children');
|
|
670
|
+
nameSpace = nameSpace.replace('children', 'views');
|
|
671
|
+
return (0, utils_1.getNodeByNodeCallee)(this.app, nameSpace + '.' + this.viewName);
|
|
672
|
+
}
|
|
673
|
+
// 用于logic回填
|
|
674
|
+
get calleewholeKey() {
|
|
675
|
+
return this.viewNamespace + '.' + this.viewName;
|
|
676
|
+
}
|
|
677
|
+
get completeArguments() {
|
|
678
|
+
const node = this.viewNode;
|
|
679
|
+
const logicParam = new Map();
|
|
680
|
+
const Arguments = [];
|
|
681
|
+
if (node?.params) {
|
|
682
|
+
node.params.forEach((param) => {
|
|
683
|
+
logicParam.set(param.name, param);
|
|
684
|
+
});
|
|
685
|
+
}
|
|
686
|
+
if (this.arguments?.length) {
|
|
687
|
+
this.arguments.forEach((arg) => {
|
|
688
|
+
const param = logicParam.get(arg.keyword);
|
|
689
|
+
// 取到是不是必填放入参数中
|
|
690
|
+
const newArg = Argument__1.default.from(arg);
|
|
691
|
+
if (param && !newArg.expression) {
|
|
692
|
+
newArg.paramTypeAnnotation = param.typeAnnotation;
|
|
693
|
+
newArg.paramDefaultValue = param.defaultValue;
|
|
694
|
+
newArg.paramRequired = param.required;
|
|
695
|
+
}
|
|
696
|
+
Arguments.push(newArg);
|
|
697
|
+
});
|
|
698
|
+
}
|
|
699
|
+
return Arguments;
|
|
700
|
+
}
|
|
701
|
+
};
|
|
702
|
+
__decorate([
|
|
703
|
+
(0, decorators_1.property)()
|
|
704
|
+
], Destination.prototype, "label", void 0);
|
|
705
|
+
__decorate([
|
|
706
|
+
(0, decorators_1.property)()
|
|
707
|
+
], Destination.prototype, "viewNamespace", void 0);
|
|
708
|
+
__decorate([
|
|
709
|
+
(0, decorators_1.property)()
|
|
710
|
+
], Destination.prototype, "viewName", void 0);
|
|
711
|
+
__decorate([
|
|
712
|
+
(0, decorators_1.property)('Argument')
|
|
713
|
+
], Destination.prototype, "arguments", void 0);
|
|
714
|
+
__decorate([
|
|
715
|
+
(0, decorators_1.property)('Anchor')
|
|
716
|
+
], Destination.prototype, "anchor", void 0);
|
|
717
|
+
__decorate([
|
|
718
|
+
(0, decorators_1.property)()
|
|
719
|
+
], Destination.prototype, "target", void 0);
|
|
720
|
+
__decorate([
|
|
721
|
+
(0, translator_1.withSourceMap)()
|
|
722
|
+
], Destination.prototype, "toEmbeddedTSInProcess", null);
|
|
723
|
+
__decorate([
|
|
724
|
+
(0, translator_1.withSourceMap)()
|
|
725
|
+
], Destination.prototype, "toEmbeddedTS", null);
|
|
726
|
+
__decorate([
|
|
727
|
+
(0, translator_1.withSourceMap)()
|
|
728
|
+
], Destination.prototype, "toEmbeddedTSNormalFunction", null);
|
|
729
|
+
Destination = Destination_1 = __decorate([
|
|
730
|
+
decorators_1.className,
|
|
731
|
+
(0, decorators_1.concept)('跳转页面')
|
|
732
|
+
// @ts-ignore
|
|
733
|
+
], Destination);
|
|
734
|
+
exports.Destination = Destination;
|
|
735
|
+
exports.default = Destination;
|
|
736
|
+
//================================================================================
|
|
737
|
+
// ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑
|
|
738
|
+
// 自动生成的代码已结束。下面可以手动编写。
|
|
739
|
+
//================================================================================
|
|
740
|
+
//# sourceMappingURL=Destination__.js.map
|