@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,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
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;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
9
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
10
|
+
};
|
|
11
|
+
var Start_1;
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.Start = void 0;
|
|
14
|
+
const translator_1 = require("../translator");
|
|
15
|
+
const decorators_1 = require("../decorators");
|
|
16
|
+
const LogicItem__1 = __importDefault(require("./LogicItem__"));
|
|
17
|
+
/**
|
|
18
|
+
* 开始节点
|
|
19
|
+
*/
|
|
20
|
+
let Start = Start_1 =
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
class Start extends LogicItem__1.default {
|
|
23
|
+
/** 类名 */
|
|
24
|
+
static ConceptName = 'Start';
|
|
25
|
+
/**
|
|
26
|
+
* 产品概念
|
|
27
|
+
*/
|
|
28
|
+
// @ts-ignore
|
|
29
|
+
concept;
|
|
30
|
+
/**
|
|
31
|
+
* 开始节点标题
|
|
32
|
+
*/
|
|
33
|
+
label = '开始';
|
|
34
|
+
/**
|
|
35
|
+
* @param source 需要合并的部分参数
|
|
36
|
+
*/
|
|
37
|
+
constructor(source) {
|
|
38
|
+
source = Object.assign({}, Start_1.getDefaultOptions(), source);
|
|
39
|
+
super(source);
|
|
40
|
+
super.subConstructor(source);
|
|
41
|
+
}
|
|
42
|
+
static from(source, parentNode, parentKey) {
|
|
43
|
+
return super.from(source, parentNode, parentKey);
|
|
44
|
+
}
|
|
45
|
+
//================================================================================
|
|
46
|
+
// ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑
|
|
47
|
+
// 自动生成的代码已结束。下面可以手动编写。
|
|
48
|
+
//================================================================================
|
|
49
|
+
toJS(state) {
|
|
50
|
+
return '';
|
|
51
|
+
}
|
|
52
|
+
toEmbeddedTS(state) {
|
|
53
|
+
return '';
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, decorators_1.property)()
|
|
58
|
+
], Start.prototype, "label", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, translator_1.withSourceMap)()
|
|
61
|
+
], Start.prototype, "toEmbeddedTS", null);
|
|
62
|
+
Start = Start_1 = __decorate([
|
|
63
|
+
decorators_1.className,
|
|
64
|
+
(0, decorators_1.concept)('开始节点')
|
|
65
|
+
// @ts-ignore
|
|
66
|
+
], Start);
|
|
67
|
+
exports.Start = Start;
|
|
68
|
+
exports.default = Start;
|
|
69
|
+
//================================================================================
|
|
70
|
+
// ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑
|
|
71
|
+
// 自动生成的代码已结束。下面可以手动编写。
|
|
72
|
+
//================================================================================
|
|
73
|
+
//# sourceMappingURL=Start__.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Start__.js","sourceRoot":"","sources":["../../src/concepts/Start__.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,8CAA+D;AAM/D,8CAA6E;AAK7E,+DAAsC;AAEtC;;GAEG;AAIH,IAAa,KAAK;AADlB,aAAa;AACb,MAAa,KAAM,SAAQ,oBAAS;IAChC,SAAS;IACT,MAAM,CAAU,WAAW,GAAG,OAAO,CAAC;IAEtC;;OAEG;IACH,aAAa;IACJ,OAAO,CAAW;IAE3B;;OAEG;IAEH,KAAK,GAAW,IAAI,CAAC;IAIrB;;OAEG;IACH,YAAY,MAAuB;QAC/B,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,OAAK,CAAC,iBAAiB,EAAE,EAAE,MAAM,CAAC,CAAC;QAC9D,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;IACjC,CAAC;IAED,MAAM,CAAC,IAAI,CAAC,MAAW,EAAE,UAAgB,EAAE,SAAkB;QACzD,OAAO,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,UAAU,EAAE,SAAS,CAAU,CAAC;IAC9D,CAAC;IASD,kFAAkF;IAClF,gEAAgE;IAChE,uBAAuB;IACvB,kFAAkF;IAElF,IAAI,CAAC,KAAuB;QACxB,OAAO,EAAE,CAAC;IACd,CAAC;IAGD,YAAY,CAAC,KAAuB;QAChC,OAAO,EAAE,CAAC;IACd,CAAC;CAMJ,CAAA;AA1CG;IADC,IAAA,qBAAQ,GAAE;oCACU;AAkCrB;IADC,IAAA,0BAAa,GAAE;yCAGf;AAlDQ,KAAK;IAHjB,sBAAS;IACT,IAAA,oBAAO,EAAC,MAAM,CAAC;IAChB,aAAa;GACA,KAAK,CAwDjB;AAxDY,sBAAK;AA0DlB,kBAAe,KAAK,CAAC;AACrB,kFAAkF;AAClF,gEAAgE;AAChE,uBAAuB;AACvB,kFAAkF"}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { TranslatorState } from '../translator';
|
|
2
|
+
import { ElementToVueOptions } from './ViewElement__';
|
|
3
|
+
import { Params } from '../common/EventEmitter';
|
|
4
|
+
import LogicItem from './LogicItem__';
|
|
5
|
+
import TypeAnnotation from './TypeAnnotation__';
|
|
6
|
+
/**
|
|
7
|
+
* 字符串插值
|
|
8
|
+
*/
|
|
9
|
+
export declare class StringInterpolation extends LogicItem {
|
|
10
|
+
/** 类名 */
|
|
11
|
+
static readonly ConceptName = "StringInterpolation";
|
|
12
|
+
/**
|
|
13
|
+
* 产品概念
|
|
14
|
+
*/
|
|
15
|
+
readonly concept: 'StringInterpolation';
|
|
16
|
+
/**
|
|
17
|
+
* 插值表达式
|
|
18
|
+
*/
|
|
19
|
+
expressions: Array<LogicItem>;
|
|
20
|
+
/**
|
|
21
|
+
* @param source 需要合并的部分参数
|
|
22
|
+
*/
|
|
23
|
+
constructor(source?: Partial<StringInterpolation>);
|
|
24
|
+
static from(source: any, parentNode?: any, parentKey?: string): StringInterpolation;
|
|
25
|
+
/**
|
|
26
|
+
* 设置插值表达式
|
|
27
|
+
*/
|
|
28
|
+
setExpressions(expressions: Array<LogicItem>): void;
|
|
29
|
+
getItemExistingNames(excludedList?: Array<LogicItem>): string[];
|
|
30
|
+
getItemUniqueName(name?: string): string;
|
|
31
|
+
/**
|
|
32
|
+
* 插入逻辑项
|
|
33
|
+
* @internal
|
|
34
|
+
* @param name 逻辑项名称,如果不填会自动生成一个唯一名称
|
|
35
|
+
*/
|
|
36
|
+
_insertItemAt(name: string, index: number): LogicItem;
|
|
37
|
+
/**
|
|
38
|
+
* 插入逻辑项
|
|
39
|
+
* @internal
|
|
40
|
+
* @param logicItemOptions 逻辑项参数
|
|
41
|
+
*/
|
|
42
|
+
_insertItemAt(logicItemOptions: Partial<LogicItem>, index: number): LogicItem;
|
|
43
|
+
/**
|
|
44
|
+
* 插入逻辑项
|
|
45
|
+
* @internal
|
|
46
|
+
* @param logicItem 已有的逻辑项实例
|
|
47
|
+
*/
|
|
48
|
+
_insertItemAt(logicItem: LogicItem, index: number): LogicItem;
|
|
49
|
+
/**
|
|
50
|
+
* 插入逻辑项
|
|
51
|
+
* @param name 逻辑项名称,如果不填会自动生成一个唯一名称
|
|
52
|
+
*/
|
|
53
|
+
insertItemAt(name: string, index: number): LogicItem;
|
|
54
|
+
/**
|
|
55
|
+
* 插入逻辑项
|
|
56
|
+
* @param logicItemOptions 逻辑项参数
|
|
57
|
+
*/
|
|
58
|
+
insertItemAt(logicItemOptions: Partial<LogicItem>, index: number): LogicItem;
|
|
59
|
+
/**
|
|
60
|
+
* 插入逻辑项
|
|
61
|
+
* @param logicItem 已有的逻辑项实例
|
|
62
|
+
*/
|
|
63
|
+
insertItemAt(logicItem: LogicItem, index: number): LogicItem;
|
|
64
|
+
/**
|
|
65
|
+
* 添加逻辑项
|
|
66
|
+
* @internal
|
|
67
|
+
* @param name 逻辑项名称,如果不填会自动生成一个唯一名称
|
|
68
|
+
*/
|
|
69
|
+
_addItem(name?: string): LogicItem;
|
|
70
|
+
/**
|
|
71
|
+
* 添加逻辑项
|
|
72
|
+
* @internal
|
|
73
|
+
* @param logicItemOptions 逻辑项参数
|
|
74
|
+
*/
|
|
75
|
+
_addItem(logicItemOptions: Partial<LogicItem>): LogicItem;
|
|
76
|
+
/**
|
|
77
|
+
* 添加逻辑项
|
|
78
|
+
* @internal
|
|
79
|
+
* @param logicItem 已有的逻辑项实例
|
|
80
|
+
*/
|
|
81
|
+
_addItem(logicItem: LogicItem): LogicItem;
|
|
82
|
+
/**
|
|
83
|
+
* 添加逻辑项
|
|
84
|
+
* @internal
|
|
85
|
+
* @param name 逻辑项名称,如果不填会自动生成一个唯一名称
|
|
86
|
+
*/
|
|
87
|
+
addItem(name?: string): LogicItem;
|
|
88
|
+
/**
|
|
89
|
+
* 添加逻辑项
|
|
90
|
+
* @param logicItemOptions 逻辑项参数
|
|
91
|
+
*/
|
|
92
|
+
addItem(logicItemOptions: Partial<LogicItem>): LogicItem;
|
|
93
|
+
/**
|
|
94
|
+
* 添加逻辑项
|
|
95
|
+
* @param logicItem 已有的逻辑项实例
|
|
96
|
+
*/
|
|
97
|
+
addItem(logicItem: LogicItem): LogicItem;
|
|
98
|
+
/**
|
|
99
|
+
* 删除逻辑项
|
|
100
|
+
* @param name 逻辑项名称
|
|
101
|
+
*/
|
|
102
|
+
removeItem(name: string): void;
|
|
103
|
+
/**
|
|
104
|
+
* 删除逻辑项
|
|
105
|
+
* @param logicItem 已有的逻辑项实例
|
|
106
|
+
*/
|
|
107
|
+
removeItem(logicItem: LogicItem): void;
|
|
108
|
+
__removeLogicItem(logicItem: LogicItem): Params;
|
|
109
|
+
exchangeLogicItem(target: LogicItem, logicitem: LogicItem): void;
|
|
110
|
+
transfromMetadataType(expTypeAnnotation: TypeAnnotation): string;
|
|
111
|
+
toVue(options?: ElementToVueOptions): string;
|
|
112
|
+
toUI(): string;
|
|
113
|
+
toJS(): string;
|
|
114
|
+
toBrief(): string;
|
|
115
|
+
toEmbeddedTS(state?: TranslatorState): string;
|
|
116
|
+
}
|
|
117
|
+
export default StringInterpolation;
|
|
@@ -0,0 +1,252 @@
|
|
|
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 StringInterpolation_1;
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.StringInterpolation = void 0;
|
|
37
|
+
const translator_1 = require("../translator");
|
|
38
|
+
const decorators_1 = require("../decorators");
|
|
39
|
+
const utils = __importStar(require("../utils"));
|
|
40
|
+
const LogicItem__1 = __importDefault(require("./LogicItem__"));
|
|
41
|
+
/**
|
|
42
|
+
* 字符串插值
|
|
43
|
+
*/
|
|
44
|
+
let StringInterpolation = StringInterpolation_1 =
|
|
45
|
+
// @ts-ignore
|
|
46
|
+
class StringInterpolation extends LogicItem__1.default {
|
|
47
|
+
/** 类名 */
|
|
48
|
+
static ConceptName = 'StringInterpolation';
|
|
49
|
+
/**
|
|
50
|
+
* 产品概念
|
|
51
|
+
*/
|
|
52
|
+
// @ts-ignore
|
|
53
|
+
concept;
|
|
54
|
+
/**
|
|
55
|
+
* 插值表达式
|
|
56
|
+
*/
|
|
57
|
+
expressions = [];
|
|
58
|
+
/**
|
|
59
|
+
* @param source 需要合并的部分参数
|
|
60
|
+
*/
|
|
61
|
+
constructor(source) {
|
|
62
|
+
source = Object.assign({}, StringInterpolation_1.getDefaultOptions(), source);
|
|
63
|
+
super(source);
|
|
64
|
+
super.subConstructor(source);
|
|
65
|
+
}
|
|
66
|
+
static from(source, parentNode, parentKey) {
|
|
67
|
+
return super.from(source, parentNode, parentKey);
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* 设置插值表达式
|
|
71
|
+
*/
|
|
72
|
+
setExpressions(expressions) {
|
|
73
|
+
const object = {
|
|
74
|
+
expressions,
|
|
75
|
+
};
|
|
76
|
+
this.update({
|
|
77
|
+
...object,
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
getItemExistingNames(excludedList = []) {
|
|
81
|
+
const excludedSet = new Set(excludedList);
|
|
82
|
+
return (this.expressions || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
|
|
83
|
+
}
|
|
84
|
+
getItemUniqueName(name = 'logicItem1') {
|
|
85
|
+
return utils.unique(name, this.getItemExistingNames(), undefined, false);
|
|
86
|
+
}
|
|
87
|
+
_insertItemAt(options, index) {
|
|
88
|
+
const logicItemOptions = {};
|
|
89
|
+
const relationOptions = { parentNode: this, parentKey: 'expressions' };
|
|
90
|
+
let logicItem;
|
|
91
|
+
if (!options) {
|
|
92
|
+
logicItem = LogicItem__1.default.from({
|
|
93
|
+
...logicItemOptions,
|
|
94
|
+
name: this.getItemUniqueName(),
|
|
95
|
+
}, this, 'expressions');
|
|
96
|
+
}
|
|
97
|
+
else if (typeof options === 'string') {
|
|
98
|
+
logicItem = LogicItem__1.default.from({
|
|
99
|
+
...logicItemOptions,
|
|
100
|
+
name: options,
|
|
101
|
+
}, this, 'expressions');
|
|
102
|
+
}
|
|
103
|
+
else if (options instanceof LogicItem__1.default) {
|
|
104
|
+
options.ensureDelete(); // 同一实例不支持多处存在
|
|
105
|
+
logicItem = options;
|
|
106
|
+
Object.assign(logicItem, relationOptions);
|
|
107
|
+
}
|
|
108
|
+
else {
|
|
109
|
+
logicItem = LogicItem__1.default.from({
|
|
110
|
+
...logicItemOptions,
|
|
111
|
+
...options,
|
|
112
|
+
}, this, 'expressions');
|
|
113
|
+
}
|
|
114
|
+
this.expressions.splice(index, 0, logicItem);
|
|
115
|
+
return logicItem;
|
|
116
|
+
}
|
|
117
|
+
insertItemAt(options, index) {
|
|
118
|
+
const node = this._insertItemAt(options, index);
|
|
119
|
+
node.create({
|
|
120
|
+
index,
|
|
121
|
+
parentNode: this,
|
|
122
|
+
parentKey: 'expressions',
|
|
123
|
+
});
|
|
124
|
+
return node;
|
|
125
|
+
}
|
|
126
|
+
_addItem(options) {
|
|
127
|
+
const index = this.expressions.length;
|
|
128
|
+
return this._insertItemAt(options, index);
|
|
129
|
+
}
|
|
130
|
+
addItem(options) {
|
|
131
|
+
const node = this._addItem(options);
|
|
132
|
+
const index = this.expressions.indexOf(node);
|
|
133
|
+
node.create({
|
|
134
|
+
index,
|
|
135
|
+
parentNode: this,
|
|
136
|
+
parentKey: 'expressions',
|
|
137
|
+
});
|
|
138
|
+
return node;
|
|
139
|
+
}
|
|
140
|
+
removeItem(options) {
|
|
141
|
+
let logicItem;
|
|
142
|
+
if (typeof options === 'string') {
|
|
143
|
+
logicItem = this.expressions.find((item) => item.name === options);
|
|
144
|
+
if (!logicItem) {
|
|
145
|
+
throw new Error('找不到逻辑项 ' + options);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
else {
|
|
149
|
+
logicItem = options;
|
|
150
|
+
}
|
|
151
|
+
return logicItem.delete();
|
|
152
|
+
}
|
|
153
|
+
__removeLogicItem(logicItem) {
|
|
154
|
+
const parentKey = logicItem.parentKey;
|
|
155
|
+
const params = {
|
|
156
|
+
parentNode: this,
|
|
157
|
+
parentKey,
|
|
158
|
+
index: -1,
|
|
159
|
+
object: null,
|
|
160
|
+
oldObject: logicItem,
|
|
161
|
+
};
|
|
162
|
+
if (parentKey) {
|
|
163
|
+
params.parentKey = parentKey;
|
|
164
|
+
if (Array.isArray(this[parentKey])) {
|
|
165
|
+
const index = this[parentKey].indexOf(logicItem);
|
|
166
|
+
~index && this[parentKey].splice(index, 1);
|
|
167
|
+
params.index = index;
|
|
168
|
+
}
|
|
169
|
+
else if (this[parentKey] === logicItem) {
|
|
170
|
+
params.index = 0;
|
|
171
|
+
this[parentKey] = undefined;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
return params;
|
|
175
|
+
}
|
|
176
|
+
//================================================================================
|
|
177
|
+
// ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑
|
|
178
|
+
// 自动生成的代码已结束。下面可以手动编写。
|
|
179
|
+
//================================================================================
|
|
180
|
+
exchangeLogicItem(target, logicitem) {
|
|
181
|
+
const idx = this.expressions.findIndex(exp => exp === target);
|
|
182
|
+
if (idx !== -1) {
|
|
183
|
+
const exps = this.expressions.slice();
|
|
184
|
+
exps.splice(idx, 1, logicitem);
|
|
185
|
+
this.setExpressions(exps);
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
transfromMetadataType(expTypeAnnotation) {
|
|
189
|
+
let sortedTypeKey = expTypeAnnotation?.sortedTypeKey;
|
|
190
|
+
if (expTypeAnnotation.typeNamespace?.endsWith('.metadataTypes')) {
|
|
191
|
+
const referenceNode = this.app.findNodeByCompleteName(expTypeAnnotation.typeNamespace + '.' + expTypeAnnotation.typeName) || {};
|
|
192
|
+
const typeAn = referenceNode.typeAnnotation || {};
|
|
193
|
+
sortedTypeKey = `${typeAn.typeNamespace}.${typeAn.typeName}`;
|
|
194
|
+
}
|
|
195
|
+
return sortedTypeKey;
|
|
196
|
+
}
|
|
197
|
+
toVue(options) {
|
|
198
|
+
return this.expressions.map((exp) => {
|
|
199
|
+
let expCode = exp.toVue();
|
|
200
|
+
if (options?.finalCode !== false) {
|
|
201
|
+
const expTypeAnnotation = exp.typeAnnotation || exp.__TypeAnnotation;
|
|
202
|
+
const sortedTypeKey = this.transfromMetadataType(expTypeAnnotation);
|
|
203
|
+
expCode = `$utils['ToString'](${expCode}, '${sortedTypeKey}')`;
|
|
204
|
+
}
|
|
205
|
+
return expCode;
|
|
206
|
+
}).join(' + ');
|
|
207
|
+
}
|
|
208
|
+
toUI() {
|
|
209
|
+
return this.expressions.map(exp => exp.toUI()).join(' + ');
|
|
210
|
+
}
|
|
211
|
+
toJS() {
|
|
212
|
+
if (!this.expressions.length)
|
|
213
|
+
return `''`;
|
|
214
|
+
return this.expressions.map((exp) => {
|
|
215
|
+
const expTypeAnnotation = exp.typeAnnotation || exp.__TypeAnnotation;
|
|
216
|
+
const sortedTypeKey = this.transfromMetadataType(expTypeAnnotation);
|
|
217
|
+
return `this.$utils['ToString'](${exp.toJS()}, '${sortedTypeKey}')`;
|
|
218
|
+
}).join(' + ');
|
|
219
|
+
}
|
|
220
|
+
toBrief() {
|
|
221
|
+
return this.expressions.map(exp => exp.toJS()).join(' + ');
|
|
222
|
+
}
|
|
223
|
+
toEmbeddedTS(state) {
|
|
224
|
+
let code = 'nasl.util.stringInterpolation(';
|
|
225
|
+
this.expressions.forEach((exp, idx) => {
|
|
226
|
+
code += exp.toEmbeddedTS((0, translator_1.shiftState)(state, code));
|
|
227
|
+
if (idx !== this.expressions.length - 1) {
|
|
228
|
+
code += ', ';
|
|
229
|
+
}
|
|
230
|
+
});
|
|
231
|
+
code += ')\n';
|
|
232
|
+
return code;
|
|
233
|
+
}
|
|
234
|
+
};
|
|
235
|
+
__decorate([
|
|
236
|
+
(0, decorators_1.property)('LogicItem')
|
|
237
|
+
], StringInterpolation.prototype, "expressions", void 0);
|
|
238
|
+
__decorate([
|
|
239
|
+
(0, translator_1.withSourceMap)()
|
|
240
|
+
], StringInterpolation.prototype, "toEmbeddedTS", null);
|
|
241
|
+
StringInterpolation = StringInterpolation_1 = __decorate([
|
|
242
|
+
decorators_1.className,
|
|
243
|
+
(0, decorators_1.concept)('字符串插值')
|
|
244
|
+
// @ts-ignore
|
|
245
|
+
], StringInterpolation);
|
|
246
|
+
exports.StringInterpolation = StringInterpolation;
|
|
247
|
+
exports.default = StringInterpolation;
|
|
248
|
+
//================================================================================
|
|
249
|
+
// ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑
|
|
250
|
+
// 自动生成的代码已结束。下面可以手动编写。
|
|
251
|
+
//================================================================================
|
|
252
|
+
//# sourceMappingURL=StringInterpolation__.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StringInterpolation__.js","sourceRoot":"","sources":["../../src/concepts/StringInterpolation__.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8CAAkG;AAOlG,8CAA6E;AAE7E,gDAAkC;AAGlC,+DAAsC;AAEtC;;GAEG;AAIH,IAAa,mBAAmB;AADhC,aAAa;AACb,MAAa,mBAAoB,SAAQ,oBAAS;IAC9C,SAAS;IACT,MAAM,CAAU,WAAW,GAAG,qBAAqB,CAAC;IAEpD;;OAEG;IACH,aAAa;IACJ,OAAO,CAAyB;IAEzC;;OAEG;IAEH,WAAW,GAAqB,EAAE,CAAC;IAInC;;OAEG;IACH,YAAY,MAAqC;QAC7C,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,qBAAmB,CAAC,iBAAiB,EAAE,EAAE,MAAM,CAAC,CAAC;QAC5E,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;IACjC,CAAC;IAED,MAAM,CAAC,IAAI,CAAC,MAAW,EAAE,UAAgB,EAAE,SAAkB;QACzD,OAAO,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,UAAU,EAAE,SAAS,CAAwB,CAAC;IAC5E,CAAC;IAGD;;OAEG;IACH,cAAc,CAAC,WAA6B;QACxC,MAAM,MAAM,GAAG;YACX,WAAW;SACd,CAAC;QACF,IAAI,CAAC,MAAM,CAAC;YACR,GAAG,MAAM;SACZ,CAAC,CAAC;IACP,CAAC;IAEG,oBAAoB,CAAC,eAAiC,EAAE;QACxD,MAAM,WAAW,GAAG,IAAI,GAAG,CAAC,YAAY,CAAC,CAAC;QAC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AO,CAAC;IACjB,aAAa;GACA,mBAAmB,CAqT/B;AArTY,kDAAmB;AAuThC,kBAAe,mBAAmB,CAAC;AACnC,kFAAkF;AAClF,gEAAgE;AAChE,uBAAuB;AACvB,kFAAkF"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { TranslatorState } from '../translator';
|
|
2
|
+
import { ElementToVueOptions } from './ViewElement__';
|
|
3
|
+
import LogicItem from './LogicItem__';
|
|
4
|
+
/**
|
|
5
|
+
* 字符串字面量
|
|
6
|
+
*/
|
|
7
|
+
export declare class StringLiteral extends LogicItem {
|
|
8
|
+
/** 类名 */
|
|
9
|
+
static readonly ConceptName = "StringLiteral";
|
|
10
|
+
/**
|
|
11
|
+
* 产品概念
|
|
12
|
+
*/
|
|
13
|
+
readonly concept: 'StringLiteral';
|
|
14
|
+
/**
|
|
15
|
+
* 字面量的值
|
|
16
|
+
*/
|
|
17
|
+
value: string;
|
|
18
|
+
/**
|
|
19
|
+
* @param source 需要合并的部分参数
|
|
20
|
+
*/
|
|
21
|
+
constructor(source?: Partial<StringLiteral>);
|
|
22
|
+
static from(source: any, parentNode?: any, parentKey?: string): StringLiteral;
|
|
23
|
+
toVue(options?: ElementToVueOptions): string;
|
|
24
|
+
toUI(): string;
|
|
25
|
+
toJS(): string;
|
|
26
|
+
toBrief(): string;
|
|
27
|
+
toEmbeddedTS(state?: TranslatorState, isRequired?: boolean): string;
|
|
28
|
+
/**
|
|
29
|
+
* 设置字符串内容
|
|
30
|
+
*/
|
|
31
|
+
setValue(value: string): void;
|
|
32
|
+
/**
|
|
33
|
+
* 获取添加时的默认选项
|
|
34
|
+
* @returns
|
|
35
|
+
*/
|
|
36
|
+
static getDefaultOptions(): any;
|
|
37
|
+
}
|
|
38
|
+
export default StringLiteral;
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
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;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
9
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
10
|
+
};
|
|
11
|
+
var StringLiteral_1;
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.StringLiteral = void 0;
|
|
14
|
+
const translator_1 = require("../translator");
|
|
15
|
+
const decorators_1 = require("../decorators");
|
|
16
|
+
const LogicItem__1 = __importDefault(require("./LogicItem__"));
|
|
17
|
+
/**
|
|
18
|
+
* 字符串字面量
|
|
19
|
+
*/
|
|
20
|
+
let StringLiteral = StringLiteral_1 =
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
class StringLiteral extends LogicItem__1.default {
|
|
23
|
+
/** 类名 */
|
|
24
|
+
static ConceptName = 'StringLiteral';
|
|
25
|
+
/**
|
|
26
|
+
* 产品概念
|
|
27
|
+
*/
|
|
28
|
+
// @ts-ignore
|
|
29
|
+
concept;
|
|
30
|
+
/**
|
|
31
|
+
* 字面量的值
|
|
32
|
+
*/
|
|
33
|
+
value = '';
|
|
34
|
+
/**
|
|
35
|
+
* @param source 需要合并的部分参数
|
|
36
|
+
*/
|
|
37
|
+
constructor(source) {
|
|
38
|
+
source = Object.assign({}, StringLiteral_1.getDefaultOptions(), source);
|
|
39
|
+
super(source);
|
|
40
|
+
super.subConstructor(source);
|
|
41
|
+
}
|
|
42
|
+
static from(source, parentNode, parentKey) {
|
|
43
|
+
return super.from(source, parentNode, parentKey);
|
|
44
|
+
}
|
|
45
|
+
//================================================================================
|
|
46
|
+
// ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑
|
|
47
|
+
// 自动生成的代码已结束。下面可以手动编写。
|
|
48
|
+
//================================================================================
|
|
49
|
+
toVue(options) {
|
|
50
|
+
let code = '';
|
|
51
|
+
if (typeof this.value === 'string') {
|
|
52
|
+
code = `\`${this.value}\``;
|
|
53
|
+
if (options?.finalCode !== false) {
|
|
54
|
+
code = `\`${this.value.replace(/['"`\\]/g, (m) => {
|
|
55
|
+
let escape = '\\\\';
|
|
56
|
+
escape = '\\\\';
|
|
57
|
+
/// #if process.env.BUILD_TARGET === 'node'
|
|
58
|
+
escape = '\\';
|
|
59
|
+
/// #endif
|
|
60
|
+
if (m === '\\') {
|
|
61
|
+
return `${escape}${escape}`;
|
|
62
|
+
}
|
|
63
|
+
else {
|
|
64
|
+
return `${escape}${m}`;
|
|
65
|
+
}
|
|
66
|
+
})}\``;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
return code;
|
|
70
|
+
}
|
|
71
|
+
toUI() {
|
|
72
|
+
let code = '';
|
|
73
|
+
if (typeof this.value === 'string') {
|
|
74
|
+
code = `\`${this.value}\``;
|
|
75
|
+
}
|
|
76
|
+
return code;
|
|
77
|
+
}
|
|
78
|
+
toJS() {
|
|
79
|
+
let code = ``;
|
|
80
|
+
if (typeof this.value === 'string') {
|
|
81
|
+
code += `\`${this.value.replace(/['"`\\]/g, (m) => `\\${m}`)}\``;
|
|
82
|
+
}
|
|
83
|
+
return code;
|
|
84
|
+
}
|
|
85
|
+
toBrief() {
|
|
86
|
+
return `\`${this.value}\``;
|
|
87
|
+
}
|
|
88
|
+
toEmbeddedTS(state, isRequired) {
|
|
89
|
+
let code = '';
|
|
90
|
+
if (typeof this.value === 'string') {
|
|
91
|
+
code += `new nasl.core.String('StringLiteral')`;
|
|
92
|
+
}
|
|
93
|
+
else {
|
|
94
|
+
code += isRequired ? '__IDENTIFIER__' : `''`;
|
|
95
|
+
}
|
|
96
|
+
return code;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* 设置字符串内容
|
|
100
|
+
*/
|
|
101
|
+
setValue(value) {
|
|
102
|
+
const object = {
|
|
103
|
+
value,
|
|
104
|
+
};
|
|
105
|
+
this.update({
|
|
106
|
+
...object,
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* 获取添加时的默认选项
|
|
111
|
+
* @returns
|
|
112
|
+
*/
|
|
113
|
+
static getDefaultOptions() {
|
|
114
|
+
return { value: '' };
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
__decorate([
|
|
118
|
+
(0, decorators_1.property)()
|
|
119
|
+
], StringLiteral.prototype, "value", void 0);
|
|
120
|
+
__decorate([
|
|
121
|
+
(0, translator_1.withSourceMap)()
|
|
122
|
+
], StringLiteral.prototype, "toEmbeddedTS", null);
|
|
123
|
+
StringLiteral = StringLiteral_1 = __decorate([
|
|
124
|
+
decorators_1.className,
|
|
125
|
+
(0, decorators_1.concept)('字符串字面量')
|
|
126
|
+
// @ts-ignore
|
|
127
|
+
], StringLiteral);
|
|
128
|
+
exports.StringLiteral = StringLiteral;
|
|
129
|
+
exports.default = StringLiteral;
|
|
130
|
+
//================================================================================
|
|
131
|
+
// ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑
|
|
132
|
+
// 自动生成的代码已结束。下面可以手动编写。
|
|
133
|
+
//================================================================================
|
|
134
|
+
//# sourceMappingURL=StringLiteral__.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StringLiteral__.js","sourceRoot":"","sources":["../../src/concepts/StringLiteral__.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,8CAA+D;AAO/D,8CAA6E;AAK7E,+DAAsC;AAEtC;;GAEG;AAIH,IAAa,aAAa;AAD1B,aAAa;AACb,MAAa,aA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