@lcap/nasl 2.22.2-beta.3 → 2.22.2-beta.5
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 +798 -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
- package/src/service/storage/init.ts +3 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function _default(definition: any, view: any): string;
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
function safeCodeAsKey(name) {
|
|
4
|
+
return `['${name}']`;
|
|
5
|
+
}
|
|
6
|
+
function tryJSONParse(str) {
|
|
7
|
+
let result;
|
|
8
|
+
try {
|
|
9
|
+
result = JSON.parse(str);
|
|
10
|
+
}
|
|
11
|
+
catch (e) { }
|
|
12
|
+
return result;
|
|
13
|
+
}
|
|
14
|
+
function default_1(definition, view) {
|
|
15
|
+
/**
|
|
16
|
+
* 页面的 data
|
|
17
|
+
* 包含 页面变量 / 页面入参 / 页面元素绑定的表达式的返回
|
|
18
|
+
*/
|
|
19
|
+
const viewVariablesData = [];
|
|
20
|
+
// 所有的页面变量
|
|
21
|
+
const viewVariables = [
|
|
22
|
+
...(definition.params || []),
|
|
23
|
+
...(definition.variables || []),
|
|
24
|
+
];
|
|
25
|
+
// 页面元素绑定的表达式
|
|
26
|
+
const viewExpressions = definition.viewExpressions;
|
|
27
|
+
const hasViewExpressions = Array.isArray(viewExpressions) && viewExpressions.length;
|
|
28
|
+
/**
|
|
29
|
+
* genInitFromSchema 是为了将数据类型的处理和页面逻辑的生成分开
|
|
30
|
+
* 比如 param a.b 的 schema 有变化,View 代码无需再次生成
|
|
31
|
+
*/
|
|
32
|
+
const dataMap = {};
|
|
33
|
+
viewVariables.forEach((viewVariable) => {
|
|
34
|
+
dataMap[viewVariable.code || viewVariable.name] = true;
|
|
35
|
+
const typeAnnotation = viewVariable.typeAnnotation || viewVariable.__TypeAnnotation;
|
|
36
|
+
let { typeKind, typeNamespace, typeName, sortedTypeKey } = typeAnnotation || {};
|
|
37
|
+
if (typeNamespace?.endsWith('.metadataTypes')) {
|
|
38
|
+
const referenceNode = view.getAncestor('App').findNodeByCompleteName(typeNamespace + '.' + typeName) || {};
|
|
39
|
+
const typeAn = referenceNode.typeAnnotation || {};
|
|
40
|
+
typeKind = typeAn.typeKind;
|
|
41
|
+
typeNamespace = typeAn.typeNamespace;
|
|
42
|
+
typeName = typeAn.typeName;
|
|
43
|
+
sortedTypeKey = `${typeNamespace}.${typeName}`;
|
|
44
|
+
if (`${viewVariable.defaultValue}` === 'undefined' || `${viewVariable.defaultValue}` === 'null') {
|
|
45
|
+
viewVariable.setDefaultValue('');
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
const needGenInitFromSchema = typeAnnotation && (!['primitive', 'union'].includes(typeKind)
|
|
49
|
+
|| typeName === 'DateTime');
|
|
50
|
+
let code = `${safeCodeAsKey(viewVariable.name)}:`;
|
|
51
|
+
if (needGenInitFromSchema) {
|
|
52
|
+
code += `this.$genInitFromSchema('${sortedTypeKey}', `;
|
|
53
|
+
}
|
|
54
|
+
if (viewVariable.concept === 'Param') {
|
|
55
|
+
code += `this.$route.query.hasOwnProperty('${viewVariable.name}') ? this.$genInitFromSchema('${sortedTypeKey}', this.$route.query.${viewVariable.name}) :`;
|
|
56
|
+
}
|
|
57
|
+
const defaultValue = viewVariable.defaultValue;
|
|
58
|
+
const defaultValueType = Object.prototype.toString.call(defaultValue);
|
|
59
|
+
// 设置成null,才能同步给后端清除该值,但是null对checkbox组件是一种特殊状态
|
|
60
|
+
let parsedValue = defaultValue ?? undefined;
|
|
61
|
+
if (defaultValueType === '[object String]'
|
|
62
|
+
&& (!(typeKind === 'primitive' && typeNamespace === 'nasl.core' && ['String', 'Text', 'Email'].includes(typeName))
|
|
63
|
+
&& !(viewVariable.isEnum())
|
|
64
|
+
&& !['union'].includes(typeKind))) {
|
|
65
|
+
// 一些特殊情况,特殊处理成undefined
|
|
66
|
+
// 1.defaultValue在nasl节点上错误得赋值给了空制符串
|
|
67
|
+
if ([''].includes(defaultValue)) {
|
|
68
|
+
parsedValue = undefined;
|
|
69
|
+
}
|
|
70
|
+
else {
|
|
71
|
+
parsedValue = tryJSONParse(defaultValue) ?? defaultValue;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
code += `${JSON.stringify(parsedValue)}`;
|
|
75
|
+
if (needGenInitFromSchema) {
|
|
76
|
+
code += `)`;
|
|
77
|
+
}
|
|
78
|
+
viewVariablesData.push(code);
|
|
79
|
+
});
|
|
80
|
+
let viewExpressionMethods;
|
|
81
|
+
if (hasViewExpressions) {
|
|
82
|
+
//viewExpressions.forEach((viewExpression) => {
|
|
83
|
+
// viewVariablesData.push(`${safeCodeAsKey(viewExpression.expressionNameInView)}: undefined`);
|
|
84
|
+
//});
|
|
85
|
+
viewExpressionMethods = (viewExpressions).map((viewExpression) => viewExpression.getInViewMethod({
|
|
86
|
+
tabSize: 1,
|
|
87
|
+
}));
|
|
88
|
+
}
|
|
89
|
+
const eventMap = new Map();
|
|
90
|
+
definition.events?.forEach((item) => {
|
|
91
|
+
if (!item?.name)
|
|
92
|
+
return;
|
|
93
|
+
if (!eventMap.has(item.name))
|
|
94
|
+
eventMap.set(item.name, [item]);
|
|
95
|
+
else
|
|
96
|
+
eventMap.get(item.name).push(item);
|
|
97
|
+
});
|
|
98
|
+
const events = Array.from(eventMap).map(([name, bindEvents]) => {
|
|
99
|
+
let code = `async ${name} () {
|
|
100
|
+
${bindEvents.map((event) => `await this.${event.view.name}_${event.name}();`).join('\n')}`;
|
|
101
|
+
code += '}';
|
|
102
|
+
return code;
|
|
103
|
+
});
|
|
104
|
+
const methods = (definition.logics || []).map((logic) => logic.toJS({
|
|
105
|
+
tabSize: 1,
|
|
106
|
+
}));
|
|
107
|
+
const eventLogic = (definition.viewBindEvents || []).map((bindEvent) => bindEvent.toJS({
|
|
108
|
+
tabSize: 1,
|
|
109
|
+
}));
|
|
110
|
+
const output = `
|
|
111
|
+
data() {
|
|
112
|
+
return {
|
|
113
|
+
${viewVariablesData.join(',\n').trim()}
|
|
114
|
+
};
|
|
115
|
+
},
|
|
116
|
+
meta: {
|
|
117
|
+
title: ${JSON.stringify(definition.title)},
|
|
118
|
+
crumb: ${JSON.stringify(definition.crumb)},
|
|
119
|
+
first: ${JSON.stringify(definition.first)},
|
|
120
|
+
auth: ${JSON.stringify(definition.auth)},
|
|
121
|
+
},
|
|
122
|
+
methods: {
|
|
123
|
+
${[...(methods || []), ...(eventLogic || []), ...(viewExpressionMethods || [])].join(',\n\n')}
|
|
124
|
+
},
|
|
125
|
+
${events.join(',\n\n')}
|
|
126
|
+
`;
|
|
127
|
+
return output;
|
|
128
|
+
}
|
|
129
|
+
exports.default = default_1;
|
|
130
|
+
//# sourceMappingURL=translator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"translator.js","sourceRoot":"","sources":["../../src/bak/translator.js"],"names":[],"mappings":";;AAAA,SAAS,aAAa,CAAC,IAAI;IACvB,OAAO,KAAK,IAAI,IAAI,CAAC;AACzB,CAAC;AAED,SAAS,YAAY,CAAC,GAAG;IACrB,IAAI,MAAM,CAAC;IAEX,IAAI;QACA,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;KAC5B;IAAC,OAAO,CAAC,EAAE,GAAG;IAEf,OAAO,MAAM,CAAC;AAClB,CAAC;AAED,mBAAyB,UAAU,EAAE,IAAI;IACrC;;;OAGG;IACH,MAAM,iBAAiB,GAAG,EAAE,CAAC;IAC7B,UAAU;IACV,MAAM,aAAa,GAAG;QAClB,GAAG,CAAC,UAAU,CAAC,MAAM,IAAI,EAAE,CAAC;QAC5B,GAAG,CAAC,UAAU,CAAC,SAAS,IAAI,EAAE,CAAC;KAClC,CAAC;IACF,aAAa;IACb,MAAM,eAAe,GAAG,UAAU,CAAC,eAAe,CAAC;IACnD,MAAM,kBAAkB,GAAG,KAAK,CAAC,OAAO,CAAC,eAAe,CAAC,IAAI,eAAe,CAAC,MAAM,CAAC;IACpF;;;OAGG;IACH,MAAM,OAAO,GAAG,EAAE,CAAC;IACnB,aAAa,CAAC,OAAO,CAAC,CAAC,YAAY,EAAE,EAAE;QACnC,OAAO,CAAC,YAAY,CAAC,IAAI,IAAI,YAAY,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;QACvD,MAAM,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B,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE;;;;aAIzC,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,KAAK,CAAC;aAChC,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,KAAK,CAAC;aAChC,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,KAAK,CAAC;YACjC,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,IAAI,CAAC;;;MAGrC,CAAC,GAAG,CAAC,OAAO,IAAI,EAAE,CAAC,EAAE,GAAG,CAAC,UAAU,IAAI,EAAE,CAAC,EAAE,GAAG,CAAC,qBAAqB,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC;;UAEvF,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC;CAC7B,CAAC;IAEE,OAAO,MAAM,CAAC;AAClB,CAAC;AAlID,4BAkIC"}
|
|
@@ -0,0 +1,306 @@
|
|
|
1
|
+
import { SourceMap } from '../translator';
|
|
2
|
+
import { EventEmitter, EventPayload, Params } from './EventEmitter';
|
|
3
|
+
import { Diagnostic } from '../manager/diagnostic';
|
|
4
|
+
import { TypeAnnotation } from '..';
|
|
5
|
+
/**
|
|
6
|
+
* 顶点类
|
|
7
|
+
* 属性均为只读,仅在初始化和 load 的情况下可以修改
|
|
8
|
+
*/
|
|
9
|
+
export declare class BaseNode extends EventEmitter {
|
|
10
|
+
static readonly ConceptName: string;
|
|
11
|
+
/**
|
|
12
|
+
* 可修改标志,内部属性
|
|
13
|
+
* 标记在构造函数结束后是否可修改
|
|
14
|
+
*/
|
|
15
|
+
_mutable: boolean;
|
|
16
|
+
/** 节点类别缓存 */
|
|
17
|
+
private _concept;
|
|
18
|
+
/**
|
|
19
|
+
* 概念
|
|
20
|
+
*/
|
|
21
|
+
get concept(): string;
|
|
22
|
+
set concept(val: string);
|
|
23
|
+
/**
|
|
24
|
+
* toJSON 时需要去除的键,为了避免出现 CircularJSON
|
|
25
|
+
*/
|
|
26
|
+
readonly JSON_EXCLUDED_KEYS: Set<string>;
|
|
27
|
+
/**
|
|
28
|
+
* 唯一 Id
|
|
29
|
+
*/
|
|
30
|
+
id: string;
|
|
31
|
+
/**
|
|
32
|
+
* 变动时间
|
|
33
|
+
*/
|
|
34
|
+
changedTime: number;
|
|
35
|
+
/**
|
|
36
|
+
* 分支名称
|
|
37
|
+
*/
|
|
38
|
+
branchName: string;
|
|
39
|
+
/**
|
|
40
|
+
* 合并代码相关
|
|
41
|
+
*/
|
|
42
|
+
workingCopy: object;
|
|
43
|
+
branch: object;
|
|
44
|
+
/**
|
|
45
|
+
* 父节点
|
|
46
|
+
*/
|
|
47
|
+
parentNode: BaseNode;
|
|
48
|
+
parentKey: string;
|
|
49
|
+
/**
|
|
50
|
+
* 是否正在编辑
|
|
51
|
+
* 前端 UI 状态
|
|
52
|
+
*/
|
|
53
|
+
editable: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* 是否可以删除
|
|
56
|
+
* 前端 UI 状态
|
|
57
|
+
*/
|
|
58
|
+
removable: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* 是否正在编辑
|
|
61
|
+
* 前端 UI 状态
|
|
62
|
+
*/
|
|
63
|
+
editing: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* 是否正在请求
|
|
66
|
+
* 前端 UI 状态
|
|
67
|
+
*/
|
|
68
|
+
loading: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* 节点是否为展开状态
|
|
71
|
+
* 前端 UI 状态
|
|
72
|
+
*/
|
|
73
|
+
expanded: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* 节点是否显示
|
|
76
|
+
* 前端 UI 状态
|
|
77
|
+
*/
|
|
78
|
+
hidden: boolean;
|
|
79
|
+
/**
|
|
80
|
+
* 页面树节点是否显示
|
|
81
|
+
* 前端 UI 状态
|
|
82
|
+
*/
|
|
83
|
+
pageTreeNodeHidden: boolean;
|
|
84
|
+
/**
|
|
85
|
+
* 逻辑树节点是否显示
|
|
86
|
+
* 前端 UI 状态
|
|
87
|
+
*/
|
|
88
|
+
logicTreeNodeHidden: boolean;
|
|
89
|
+
/**
|
|
90
|
+
* 数据树节点是否显示
|
|
91
|
+
* 前端 UI 状态
|
|
92
|
+
*/
|
|
93
|
+
dataTreeNodeHidden: boolean;
|
|
94
|
+
/**
|
|
95
|
+
* 数据树节点是否展开
|
|
96
|
+
* 前端 UI 状态
|
|
97
|
+
*/
|
|
98
|
+
logicTreeNodeExpanded: boolean;
|
|
99
|
+
/**
|
|
100
|
+
* 用于挂 embeddedTS 的 sourceMap
|
|
101
|
+
*/
|
|
102
|
+
sourceMap: SourceMap;
|
|
103
|
+
/**
|
|
104
|
+
* 是否为叶子节点
|
|
105
|
+
* 前端 UI 状态
|
|
106
|
+
*/
|
|
107
|
+
isLeaf: boolean;
|
|
108
|
+
storageJSON: any;
|
|
109
|
+
/**
|
|
110
|
+
* 当前节点上报错详细信息
|
|
111
|
+
*/
|
|
112
|
+
tsErrorDetail: Diagnostic | undefined;
|
|
113
|
+
name: string;
|
|
114
|
+
/**
|
|
115
|
+
* 当前节点的类型标注
|
|
116
|
+
*/
|
|
117
|
+
__TypeAnnotation: TypeAnnotation;
|
|
118
|
+
/**
|
|
119
|
+
* 当前节点的类型标注是不是正确的
|
|
120
|
+
*/
|
|
121
|
+
__isCorrectTypeAnnotation: boolean;
|
|
122
|
+
/**
|
|
123
|
+
* @param source 需要合并的部分参数
|
|
124
|
+
*/
|
|
125
|
+
constructor(source?: Partial<BaseNode>);
|
|
126
|
+
subConstructor(source?: Partial<BaseNode>): void;
|
|
127
|
+
fixInstantiate(): void;
|
|
128
|
+
getIndexOfParent(): number;
|
|
129
|
+
/**
|
|
130
|
+
* 为存储点生成行为监听器
|
|
131
|
+
* @param action
|
|
132
|
+
* @returns
|
|
133
|
+
*/
|
|
134
|
+
genActionListener($event: EventPayload): void;
|
|
135
|
+
createNode({ parentNode, parentKey, index }: {
|
|
136
|
+
parentNode: BaseNode;
|
|
137
|
+
parentKey: string;
|
|
138
|
+
index: number;
|
|
139
|
+
}): void;
|
|
140
|
+
toTemplateJSON(): any;
|
|
141
|
+
/**
|
|
142
|
+
* 创建节点
|
|
143
|
+
*/
|
|
144
|
+
create(parentParams: Params): void;
|
|
145
|
+
/**
|
|
146
|
+
* 如果有父节点,则删除节点,在添加时调用
|
|
147
|
+
*/
|
|
148
|
+
ensureDelete(): void;
|
|
149
|
+
/**
|
|
150
|
+
* 删除节点
|
|
151
|
+
*/
|
|
152
|
+
delete(): void;
|
|
153
|
+
/**
|
|
154
|
+
* 更新节点
|
|
155
|
+
*/
|
|
156
|
+
update({ field, ...object }: any): void;
|
|
157
|
+
_delete(): Params;
|
|
158
|
+
static from(source: any, parentNode?: BaseNode, parentKey?: string): BaseNode;
|
|
159
|
+
get nodePath(): string;
|
|
160
|
+
getNodePath(useIndex: boolean): string;
|
|
161
|
+
getNodePath(useIndexKeys: string[]): string;
|
|
162
|
+
/**
|
|
163
|
+
* 上层节点
|
|
164
|
+
*/
|
|
165
|
+
get upperNode(): BaseNode;
|
|
166
|
+
/**
|
|
167
|
+
* 根节点
|
|
168
|
+
*/
|
|
169
|
+
get rootNode(): BaseNode;
|
|
170
|
+
/**
|
|
171
|
+
* 获取祖先节点
|
|
172
|
+
*/
|
|
173
|
+
getAncestor(concept: string): BaseNode;
|
|
174
|
+
/**
|
|
175
|
+
*
|
|
176
|
+
* @param source
|
|
177
|
+
* @param Ctor
|
|
178
|
+
* @param completeList
|
|
179
|
+
* @param idsList
|
|
180
|
+
*/
|
|
181
|
+
handleSource(source: any, completeList: any[]): void;
|
|
182
|
+
/**
|
|
183
|
+
* 获取当前的TsName
|
|
184
|
+
*/
|
|
185
|
+
get tsName(): string;
|
|
186
|
+
/**
|
|
187
|
+
* 生成json
|
|
188
|
+
* @param instance
|
|
189
|
+
* @param Ctor
|
|
190
|
+
*/
|
|
191
|
+
genSources(instance: BaseNode, filerFn?: (source: Partial<BaseNode>) => {}): any;
|
|
192
|
+
/**
|
|
193
|
+
* 实例化一个 JSON
|
|
194
|
+
* 由于有 from,只能先实例化父级,再实例化子级
|
|
195
|
+
* @param obj
|
|
196
|
+
* @param parentNode
|
|
197
|
+
* @returns
|
|
198
|
+
*/
|
|
199
|
+
instantiate(source: any, parentNode: BaseNode, parentKey: string): any;
|
|
200
|
+
/**
|
|
201
|
+
* 激活 JSON 内部实例
|
|
202
|
+
* @param source
|
|
203
|
+
*/
|
|
204
|
+
instantiateSub(source: any, parentKey: string): any;
|
|
205
|
+
plainAssign(source: any): void;
|
|
206
|
+
pick(source: any, keys?: Array<string>): void;
|
|
207
|
+
/**
|
|
208
|
+
* 从对象中深度获取
|
|
209
|
+
* @param source
|
|
210
|
+
* @param keys
|
|
211
|
+
* @example 比如一般后端返回只是添加了个 id
|
|
212
|
+
* ```
|
|
213
|
+
* this.deepPick(result, ['id'])
|
|
214
|
+
*/
|
|
215
|
+
deepPick(source: any, keys?: Array<string>): void;
|
|
216
|
+
/**
|
|
217
|
+
* 去除循环依赖,转为纯 JSON
|
|
218
|
+
* @param parentKey 外面的 key,提供给 JSON.stringify 使用
|
|
219
|
+
* @param excludedKeys 需要额外排除的 keys
|
|
220
|
+
*/
|
|
221
|
+
toJSON(): any;
|
|
222
|
+
_toJSON(filerFn?: (source: Partial<BaseNode>) => {}): any;
|
|
223
|
+
/**
|
|
224
|
+
* 转为单层的 JSON
|
|
225
|
+
* @param parentKey 外面的 key,提供给 JSON.stringify 使用
|
|
226
|
+
* @param excludedKeys 需要额外排除的 keys
|
|
227
|
+
*/
|
|
228
|
+
toPlainJSON(parentKey?: string, excludedKeys?: Array<string>): any;
|
|
229
|
+
/**
|
|
230
|
+
* 查找引用
|
|
231
|
+
*/
|
|
232
|
+
findUsage(): Promise<any>;
|
|
233
|
+
/**
|
|
234
|
+
* 通过当前节点,查找被引用的节点
|
|
235
|
+
*/
|
|
236
|
+
nodeFindRefNodes(): Promise<any>;
|
|
237
|
+
findReadOnlyLogicUsage(): Promise<any>;
|
|
238
|
+
/**
|
|
239
|
+
* 重命名
|
|
240
|
+
*/
|
|
241
|
+
changeName(newValue: string): Promise<any>;
|
|
242
|
+
/**
|
|
243
|
+
* 准备删除
|
|
244
|
+
*/
|
|
245
|
+
prepareDelete(): Promise<any>;
|
|
246
|
+
/**
|
|
247
|
+
* 添加参数准备
|
|
248
|
+
*/
|
|
249
|
+
addParamsPrepare(): Promise<any>;
|
|
250
|
+
/**
|
|
251
|
+
* 获取当前节点类型
|
|
252
|
+
*/
|
|
253
|
+
getCurrentTypeAnnotation(): Promise<any>;
|
|
254
|
+
/**
|
|
255
|
+
* 获取当前节点的下一级内容
|
|
256
|
+
*/
|
|
257
|
+
getSelectRef(newTypeAnnotation: TypeAnnotation, needNewStructure?: boolean): any;
|
|
258
|
+
/**
|
|
259
|
+
* 销毁
|
|
260
|
+
* 从 Map 中删除点和子节点
|
|
261
|
+
*/
|
|
262
|
+
destroy(): void;
|
|
263
|
+
onChange($event?: EventPayload): void;
|
|
264
|
+
onCreate($event?: any): void;
|
|
265
|
+
onDelete($event?: any): void;
|
|
266
|
+
/**
|
|
267
|
+
* 移动节点
|
|
268
|
+
* @param sourceNode
|
|
269
|
+
* @param position
|
|
270
|
+
*/
|
|
271
|
+
moveNode(options: {
|
|
272
|
+
sourceNode: BaseNode;
|
|
273
|
+
position: 'append' | 'insertBefore' | 'insertAfter';
|
|
274
|
+
action?: string;
|
|
275
|
+
}): void;
|
|
276
|
+
replaceNode(newNode: any): void;
|
|
277
|
+
/**
|
|
278
|
+
* 获取添加时的默认选项
|
|
279
|
+
* @returns
|
|
280
|
+
*/
|
|
281
|
+
static getDefaultOptions(): any;
|
|
282
|
+
traverseChildren(cb: (ele: BaseNode) => void): void;
|
|
283
|
+
/**
|
|
284
|
+
* 获取当前节点在nasl标注节点上的节点
|
|
285
|
+
*/
|
|
286
|
+
getCurrentAnnotatedJSON(): TypeAnnotation;
|
|
287
|
+
/**
|
|
288
|
+
* 获取
|
|
289
|
+
* 当前this上下文 的Source 和 父级文件级别的节点
|
|
290
|
+
*/
|
|
291
|
+
getCurrentSource(): {
|
|
292
|
+
currentSource: import("..").Range;
|
|
293
|
+
fileNode: BaseNode;
|
|
294
|
+
} | {
|
|
295
|
+
fileNode: BaseNode;
|
|
296
|
+
currentSource?: undefined;
|
|
297
|
+
};
|
|
298
|
+
/**
|
|
299
|
+
* 获取
|
|
300
|
+
* 当前this上下文 的Source 和 父级文件级别的节点
|
|
301
|
+
*/
|
|
302
|
+
getFileConceptNode(concept: string): any;
|
|
303
|
+
get isTreeLeaf(): boolean;
|
|
304
|
+
get hasChildren(): {}[];
|
|
305
|
+
}
|
|
306
|
+
export default BaseNode;
|