@lcap/nasl 2.22.2-beta.3 → 2.22.2-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/automate/engine/index.d.ts +4 -0
- package/out/automate/engine/index.js +443 -0
- package/out/automate/engine/index.js.map +1 -0
- package/out/automate/engine/operators.d.ts +24 -0
- package/out/automate/engine/operators.js +252 -0
- package/out/automate/engine/operators.js.map +1 -0
- package/out/automate/engine/uniqueName.d.ts +12 -0
- package/out/automate/engine/uniqueName.js +112 -0
- package/out/automate/engine/uniqueName.js.map +1 -0
- package/out/automate/engine/utils.d.ts +25 -0
- package/out/automate/engine/utils.js +428 -0
- package/out/automate/engine/utils.js.map +1 -0
- package/out/automate/engine/viewCache.d.ts +19 -0
- package/out/automate/engine/viewCache.js +45 -0
- package/out/automate/engine/viewCache.js.map +1 -0
- package/out/automate/template/myProcess.d.ts +10 -0
- package/out/automate/template/myProcess.js +11498 -0
- package/out/automate/template/myProcess.js.map +1 -0
- package/out/bak/translator.d.ts +1 -0
- package/out/bak/translator.js +130 -0
- package/out/bak/translator.js.map +1 -0
- package/out/common/BaseNode.d.ts +306 -0
- package/out/common/BaseNode.js +1222 -0
- package/out/common/BaseNode.js.map +1 -0
- package/out/common/Command.d.ts +20 -0
- package/out/common/Command.js +66 -0
- package/out/common/Command.js.map +1 -0
- package/out/common/ComponentAPI.d.ts +110 -0
- package/out/common/ComponentAPI.js +3 -0
- package/out/common/ComponentAPI.js.map +1 -0
- package/out/common/EventEmitter.d.ts +59 -0
- package/out/common/EventEmitter.js +69 -0
- package/out/common/EventEmitter.js.map +1 -0
- package/out/common/Messager.d.ts +91 -0
- package/out/common/Messager.js +208 -0
- package/out/common/Messager.js.map +1 -0
- package/out/common/index.d.ts +3 -0
- package/out/common/index.js +20 -0
- package/out/common/index.js.map +1 -0
- package/out/concepts/Abort__.d.ts +26 -0
- package/out/concepts/Abort__.js +79 -0
- package/out/concepts/Abort__.js.map +1 -0
- package/out/concepts/Anchor__.d.ts +45 -0
- package/out/concepts/Anchor__.js +182 -0
- package/out/concepts/Anchor__.js.map +1 -0
- package/out/concepts/AnonymousFunction__.d.ts +173 -0
- package/out/concepts/AnonymousFunction__.js +484 -0
- package/out/concepts/AnonymousFunction__.js.map +1 -0
- package/out/concepts/App__.d.ts +1166 -0
- package/out/concepts/App__.js +1885 -0
- package/out/concepts/App__.js.map +1 -0
- package/out/concepts/Argument__.d.ts +66 -0
- package/out/concepts/Argument__.js +267 -0
- package/out/concepts/Argument__.js.map +1 -0
- package/out/concepts/Assignee__.d.ts +289 -0
- package/out/concepts/Assignee__.js +426 -0
- package/out/concepts/Assignee__.js.map +1 -0
- package/out/concepts/AssignmentLine__.d.ts +42 -0
- package/out/concepts/AssignmentLine__.js +111 -0
- package/out/concepts/AssignmentLine__.js.map +1 -0
- package/out/concepts/Assignment__.d.ts +74 -0
- package/out/concepts/Assignment__.js +287 -0
- package/out/concepts/Assignment__.js.map +1 -0
- package/out/concepts/Attribute__.d.ts +98 -0
- package/out/concepts/Attribute__.js +206 -0
- package/out/concepts/Attribute__.js.map +1 -0
- package/out/concepts/BatchAssignment__.d.ts +252 -0
- package/out/concepts/BatchAssignment__.js +806 -0
- package/out/concepts/BatchAssignment__.js.map +1 -0
- package/out/concepts/BinaryExpression__.d.ts +71 -0
- package/out/concepts/BinaryExpression__.js +347 -0
- package/out/concepts/BinaryExpression__.js.map +1 -0
- package/out/concepts/BindAttribute__.d.ts +319 -0
- package/out/concepts/BindAttribute__.js +896 -0
- package/out/concepts/BindAttribute__.js.map +1 -0
- package/out/concepts/BindDirective__.d.ts +162 -0
- package/out/concepts/BindDirective__.js +538 -0
- package/out/concepts/BindDirective__.js.map +1 -0
- package/out/concepts/BindEvent__.d.ts +240 -0
- package/out/concepts/BindEvent__.js +764 -0
- package/out/concepts/BindEvent__.js.map +1 -0
- package/out/concepts/BindStyle__.d.ts +140 -0
- package/out/concepts/BindStyle__.js +433 -0
- package/out/concepts/BindStyle__.js.map +1 -0
- package/out/concepts/BooleanLiteral__.d.ts +35 -0
- package/out/concepts/BooleanLiteral__.js +100 -0
- package/out/concepts/BooleanLiteral__.js.map +1 -0
- package/out/concepts/CallFunction__.d.ts +159 -0
- package/out/concepts/CallFunction__.js +503 -0
- package/out/concepts/CallFunction__.js.map +1 -0
- package/out/concepts/CallInterface__.d.ts +116 -0
- package/out/concepts/CallInterface__.js +570 -0
- package/out/concepts/CallInterface__.js.map +1 -0
- package/out/concepts/CallLogic__.d.ts +187 -0
- package/out/concepts/CallLogic__.js +1007 -0
- package/out/concepts/CallLogic__.js.map +1 -0
- package/out/concepts/CallQueryComponent__.d.ts +433 -0
- package/out/concepts/CallQueryComponent__.js +1267 -0
- package/out/concepts/CallQueryComponent__.js.map +1 -0
- package/out/concepts/Comment__.d.ts +32 -0
- package/out/concepts/Comment__.js +96 -0
- package/out/concepts/Comment__.js.map +1 -0
- package/out/concepts/CompletionProperty__.d.ts +105 -0
- package/out/concepts/CompletionProperty__.js +262 -0
- package/out/concepts/CompletionProperty__.js.map +1 -0
- package/out/concepts/ConfigGroup__.d.ts +124 -0
- package/out/concepts/ConfigGroup__.js +237 -0
- package/out/concepts/ConfigGroup__.js.map +1 -0
- package/out/concepts/ConfigPropertyValue__.d.ts +45 -0
- package/out/concepts/ConfigPropertyValue__.js +107 -0
- package/out/concepts/ConfigPropertyValue__.js.map +1 -0
- package/out/concepts/ConfigProperty__.d.ts +154 -0
- package/out/concepts/ConfigProperty__.js +324 -0
- package/out/concepts/ConfigProperty__.js.map +1 -0
- package/out/concepts/Configuration__.d.ts +124 -0
- package/out/concepts/Configuration__.js +228 -0
- package/out/concepts/Configuration__.js.map +1 -0
- package/out/concepts/Constant__.d.ts +106 -0
- package/out/concepts/Constant__.js +249 -0
- package/out/concepts/Constant__.js.map +1 -0
- package/out/concepts/DataElement__.d.ts +47 -0
- package/out/concepts/DataElement__.js +119 -0
- package/out/concepts/DataElement__.js.map +1 -0
- package/out/concepts/DataSource__.d.ts +165 -0
- package/out/concepts/DataSource__.js +442 -0
- package/out/concepts/DataSource__.js.map +1 -0
- package/out/concepts/DatabaseTypeAnnotation__.d.ts +32 -0
- package/out/concepts/DatabaseTypeAnnotation__.js +79 -0
- package/out/concepts/DatabaseTypeAnnotation__.js.map +1 -0
- package/out/concepts/Destination__.d.ts +157 -0
- package/out/concepts/Destination__.js +740 -0
- package/out/concepts/Destination__.js.map +1 -0
- package/out/concepts/End__.d.ts +25 -0
- package/out/concepts/End__.js +86 -0
- package/out/concepts/End__.js.map +1 -0
- package/out/concepts/EntityIndex__.d.ts +96 -0
- package/out/concepts/EntityIndex__.js +221 -0
- package/out/concepts/EntityIndex__.js.map +1 -0
- package/out/concepts/EntityProperty__.d.ts +274 -0
- package/out/concepts/EntityProperty__.js +824 -0
- package/out/concepts/EntityProperty__.js.map +1 -0
- package/out/concepts/Entity__.d.ts +339 -0
- package/out/concepts/Entity__.js +711 -0
- package/out/concepts/Entity__.js.map +1 -0
- package/out/concepts/EnumItem__.d.ts +64 -0
- package/out/concepts/EnumItem__.js +146 -0
- package/out/concepts/EnumItem__.js.map +1 -0
- package/out/concepts/Enum__.d.ts +138 -0
- package/out/concepts/Enum__.js +322 -0
- package/out/concepts/Enum__.js.map +1 -0
- package/out/concepts/Event__.d.ts +144 -0
- package/out/concepts/Event__.js +249 -0
- package/out/concepts/Event__.js.map +1 -0
- package/out/concepts/ExternalDestination__.d.ts +76 -0
- package/out/concepts/ExternalDestination__.js +286 -0
- package/out/concepts/ExternalDestination__.js.map +1 -0
- package/out/concepts/ForEachStatement__.d.ts +189 -0
- package/out/concepts/ForEachStatement__.js +446 -0
- package/out/concepts/ForEachStatement__.js.map +1 -0
- package/out/concepts/FrontendLibrary__.d.ts +214 -0
- package/out/concepts/FrontendLibrary__.js +353 -0
- package/out/concepts/FrontendLibrary__.js.map +1 -0
- package/out/concepts/Frontend__.d.ts +374 -0
- package/out/concepts/Frontend__.js +690 -0
- package/out/concepts/Frontend__.js.map +1 -0
- package/out/concepts/Function__.d.ts +417 -0
- package/out/concepts/Function__.js +717 -0
- package/out/concepts/Function__.js.map +1 -0
- package/out/concepts/Identifier__.d.ts +52 -0
- package/out/concepts/Identifier__.js +296 -0
- package/out/concepts/Identifier__.js.map +1 -0
- package/out/concepts/IfStatement__.d.ts +158 -0
- package/out/concepts/IfStatement__.js +305 -0
- package/out/concepts/IfStatement__.js.map +1 -0
- package/out/concepts/Integration__.d.ts +54 -0
- package/out/concepts/Integration__.js +143 -0
- package/out/concepts/Integration__.js.map +1 -0
- package/out/concepts/InterfaceParam__.d.ts +111 -0
- package/out/concepts/InterfaceParam__.js +266 -0
- package/out/concepts/InterfaceParam__.js.map +1 -0
- package/out/concepts/Interface__.d.ts +284 -0
- package/out/concepts/Interface__.js +749 -0
- package/out/concepts/Interface__.js.map +1 -0
- package/out/concepts/JSBlock__.d.ts +34 -0
- package/out/concepts/JSBlock__.js +106 -0
- package/out/concepts/JSBlock__.js.map +1 -0
- package/out/concepts/JavaLogic__.d.ts +43 -0
- package/out/concepts/JavaLogic__.js +124 -0
- package/out/concepts/JavaLogic__.js.map +1 -0
- package/out/concepts/LogicItem__.d.ts +126 -0
- package/out/concepts/LogicItem__.js +253 -0
- package/out/concepts/LogicItem__.js.map +1 -0
- package/out/concepts/Logic__.d.ts +633 -0
- package/out/concepts/Logic__.js +1568 -0
- package/out/concepts/Logic__.js.map +1 -0
- package/out/concepts/MatchCase__.d.ts +258 -0
- package/out/concepts/MatchCase__.js +591 -0
- package/out/concepts/MatchCase__.js.map +1 -0
- package/out/concepts/Match__.d.ts +124 -0
- package/out/concepts/Match__.js +628 -0
- package/out/concepts/Match__.js.map +1 -0
- package/out/concepts/MemberExpression__.d.ts +73 -0
- package/out/concepts/MemberExpression__.js +319 -0
- package/out/concepts/MemberExpression__.js.map +1 -0
- package/out/concepts/MetadataType__.d.ts +245 -0
- package/out/concepts/MetadataType__.js +473 -0
- package/out/concepts/MetadataType__.js.map +1 -0
- package/out/concepts/MicroApp__.d.ts +52 -0
- package/out/concepts/MicroApp__.js +119 -0
- package/out/concepts/MicroApp__.js.map +1 -0
- package/out/concepts/Module__.d.ts +978 -0
- package/out/concepts/Module__.js +1386 -0
- package/out/concepts/Module__.js.map +1 -0
- package/out/concepts/Namespace__.d.ts +1069 -0
- package/out/concepts/Namespace__.js +1380 -0
- package/out/concepts/Namespace__.js.map +1 -0
- package/out/concepts/NewComposite__.d.ts +346 -0
- package/out/concepts/NewComposite__.js +1086 -0
- package/out/concepts/NewComposite__.js.map +1 -0
- package/out/concepts/NewList__.d.ts +133 -0
- package/out/concepts/NewList__.js +385 -0
- package/out/concepts/NewList__.js.map +1 -0
- package/out/concepts/NewMap__.d.ts +224 -0
- package/out/concepts/NewMap__.js +530 -0
- package/out/concepts/NewMap__.js.map +1 -0
- package/out/concepts/New__.d.ts +21 -0
- package/out/concepts/New__.js +68 -0
- package/out/concepts/New__.js.map +1 -0
- package/out/concepts/NullLiteral__.d.ts +27 -0
- package/out/concepts/NullLiteral__.js +81 -0
- package/out/concepts/NullLiteral__.js.map +1 -0
- package/out/concepts/NumericLiteral__.d.ts +56 -0
- package/out/concepts/NumericLiteral__.js +174 -0
- package/out/concepts/NumericLiteral__.js.map +1 -0
- package/out/concepts/OqlQueryComponent__.d.ts +73 -0
- package/out/concepts/OqlQueryComponent__.js +327 -0
- package/out/concepts/OqlQueryComponent__.js.map +1 -0
- package/out/concepts/Param__.d.ts +161 -0
- package/out/concepts/Param__.js +431 -0
- package/out/concepts/Param__.js.map +1 -0
- package/out/concepts/Point__.d.ts +32 -0
- package/out/concepts/Point__.js +79 -0
- package/out/concepts/Point__.js.map +1 -0
- package/out/concepts/ProcessComponent__.d.ts +220 -0
- package/out/concepts/ProcessComponent__.js +339 -0
- package/out/concepts/ProcessComponent__.js.map +1 -0
- package/out/concepts/ProcessElement__.d.ts +647 -0
- package/out/concepts/ProcessElement__.js +1220 -0
- package/out/concepts/ProcessElement__.js.map +1 -0
- package/out/concepts/ProcessOutcome__.d.ts +32 -0
- package/out/concepts/ProcessOutcome__.js +90 -0
- package/out/concepts/ProcessOutcome__.js.map +1 -0
- package/out/concepts/ProcessOutcomes__.d.ts +32 -0
- package/out/concepts/ProcessOutcomes__.js +89 -0
- package/out/concepts/ProcessOutcomes__.js.map +1 -0
- package/out/concepts/Process__.d.ts +614 -0
- package/out/concepts/Process__.js +1031 -0
- package/out/concepts/Process__.js.map +1 -0
- package/out/concepts/QueryAggregateExpression__.d.ts +52 -0
- package/out/concepts/QueryAggregateExpression__.js +149 -0
- package/out/concepts/QueryAggregateExpression__.js.map +1 -0
- package/out/concepts/QueryFieldExpression__.d.ts +54 -0
- package/out/concepts/QueryFieldExpression__.js +160 -0
- package/out/concepts/QueryFieldExpression__.js.map +1 -0
- package/out/concepts/QueryFromExpression__.d.ts +97 -0
- package/out/concepts/QueryFromExpression__.js +197 -0
- package/out/concepts/QueryFromExpression__.js.map +1 -0
- package/out/concepts/QueryGroupByExpression__.d.ts +47 -0
- package/out/concepts/QueryGroupByExpression__.js +142 -0
- package/out/concepts/QueryGroupByExpression__.js.map +1 -0
- package/out/concepts/QueryJoinExpression__.d.ts +184 -0
- package/out/concepts/QueryJoinExpression__.js +318 -0
- package/out/concepts/QueryJoinExpression__.js.map +1 -0
- package/out/concepts/QueryLimitExpression__.d.ts +58 -0
- package/out/concepts/QueryLimitExpression__.js +160 -0
- package/out/concepts/QueryLimitExpression__.js.map +1 -0
- package/out/concepts/QueryOrderByExpression__.d.ts +69 -0
- package/out/concepts/QueryOrderByExpression__.js +173 -0
- package/out/concepts/QueryOrderByExpression__.js.map +1 -0
- package/out/concepts/QuerySelectExpression__.d.ts +204 -0
- package/out/concepts/QuerySelectExpression__.js +295 -0
- package/out/concepts/QuerySelectExpression__.js.map +1 -0
- package/out/concepts/Rect__.d.ts +40 -0
- package/out/concepts/Rect__.js +95 -0
- package/out/concepts/Rect__.js.map +1 -0
- package/out/concepts/Return__.d.ts +129 -0
- package/out/concepts/Return__.js +345 -0
- package/out/concepts/Return__.js.map +1 -0
- package/out/concepts/Role__.d.ts +63 -0
- package/out/concepts/Role__.js +170 -0
- package/out/concepts/Role__.js.map +1 -0
- package/out/concepts/SelectMembers__.d.ts +143 -0
- package/out/concepts/SelectMembers__.js +293 -0
- package/out/concepts/SelectMembers__.js.map +1 -0
- package/out/concepts/Slot__.d.ts +75 -0
- package/out/concepts/Slot__.js +165 -0
- package/out/concepts/Slot__.js.map +1 -0
- package/out/concepts/SqlQueryComponent__.d.ts +71 -0
- package/out/concepts/SqlQueryComponent__.js +271 -0
- package/out/concepts/SqlQueryComponent__.js.map +1 -0
- package/out/concepts/Start__.d.ts +25 -0
- package/out/concepts/Start__.js +73 -0
- package/out/concepts/Start__.js.map +1 -0
- package/out/concepts/StringInterpolation__.d.ts +117 -0
- package/out/concepts/StringInterpolation__.js +252 -0
- package/out/concepts/StringInterpolation__.js.map +1 -0
- package/out/concepts/StringLiteral__.d.ts +38 -0
- package/out/concepts/StringLiteral__.js +134 -0
- package/out/concepts/StringLiteral__.js.map +1 -0
- package/out/concepts/StructureProperty__.d.ts +131 -0
- package/out/concepts/StructureProperty__.js +303 -0
- package/out/concepts/StructureProperty__.js.map +1 -0
- package/out/concepts/Structure__.d.ts +252 -0
- package/out/concepts/Structure__.js +447 -0
- package/out/concepts/Structure__.js.map +1 -0
- package/out/concepts/SwitchCase__.d.ts +94 -0
- package/out/concepts/SwitchCase__.js +232 -0
- package/out/concepts/SwitchCase__.js.map +1 -0
- package/out/concepts/SwitchStatement__.d.ts +84 -0
- package/out/concepts/SwitchStatement__.js +177 -0
- package/out/concepts/SwitchStatement__.js.map +1 -0
- package/out/concepts/Theme__.d.ts +38 -0
- package/out/concepts/Theme__.js +88 -0
- package/out/concepts/Theme__.js.map +1 -0
- package/out/concepts/Transactional__.d.ts +83 -0
- package/out/concepts/Transactional__.js +162 -0
- package/out/concepts/Transactional__.js.map +1 -0
- package/out/concepts/TypeAnnotation__.d.ts +290 -0
- package/out/concepts/TypeAnnotation__.js +885 -0
- package/out/concepts/TypeAnnotation__.js.map +1 -0
- package/out/concepts/TypeParam__.d.ts +25 -0
- package/out/concepts/TypeParam__.js +73 -0
- package/out/concepts/TypeParam__.js.map +1 -0
- package/out/concepts/UnaryExpression__.d.ts +49 -0
- package/out/concepts/UnaryExpression__.js +176 -0
- package/out/concepts/UnaryExpression__.js.map +1 -0
- package/out/concepts/Unparsed__.d.ts +32 -0
- package/out/concepts/Unparsed__.js +94 -0
- package/out/concepts/Unparsed__.js.map +1 -0
- package/out/concepts/UseComponent__.d.ts +32 -0
- package/out/concepts/UseComponent__.js +79 -0
- package/out/concepts/UseComponent__.js.map +1 -0
- package/out/concepts/ValidationRule__.d.ts +142 -0
- package/out/concepts/ValidationRule__.js +473 -0
- package/out/concepts/ValidationRule__.js.map +1 -0
- package/out/concepts/Variable__.d.ts +139 -0
- package/out/concepts/Variable__.js +386 -0
- package/out/concepts/Variable__.js.map +1 -0
- package/out/concepts/ViewBlock__.d.ts +36 -0
- package/out/concepts/ViewBlock__.js +87 -0
- package/out/concepts/ViewBlock__.js.map +1 -0
- package/out/concepts/ViewComponent__.d.ts +566 -0
- package/out/concepts/ViewComponent__.js +762 -0
- package/out/concepts/ViewComponent__.js.map +1 -0
- package/out/concepts/ViewElement__.d.ts +597 -0
- package/out/concepts/ViewElement__.js +1777 -0
- package/out/concepts/ViewElement__.js.map +1 -0
- package/out/concepts/View__.d.ts +714 -0
- package/out/concepts/View__.js +1733 -0
- package/out/concepts/View__.js.map +1 -0
- package/out/concepts/WhileStatement__.d.ts +97 -0
- package/out/concepts/WhileStatement__.js +211 -0
- package/out/concepts/WhileStatement__.js.map +1 -0
- package/out/concepts/basics/stdlib/index.d.ts +4 -0
- package/out/concepts/basics/stdlib/index.js +29 -0
- package/out/concepts/basics/stdlib/index.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.auth.d.ts +7 -0
- package/out/concepts/basics/stdlib/nasl.auth.js +140 -0
- package/out/concepts/basics/stdlib/nasl.auth.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.browser.d.ts +3 -0
- package/out/concepts/basics/stdlib/nasl.browser.js +133 -0
- package/out/concepts/basics/stdlib/nasl.browser.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.collection.d.ts +7 -0
- package/out/concepts/basics/stdlib/nasl.collection.js +52 -0
- package/out/concepts/basics/stdlib/nasl.collection.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.configuration.d.ts +3 -0
- package/out/concepts/basics/stdlib/nasl.configuration.js +33 -0
- package/out/concepts/basics/stdlib/nasl.configuration.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.core.d.ts +5 -0
- package/out/concepts/basics/stdlib/nasl.core.js +49 -0
- package/out/concepts/basics/stdlib/nasl.core.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.event.d.ts +3 -0
- package/out/concepts/basics/stdlib/nasl.event.js +25 -0
- package/out/concepts/basics/stdlib/nasl.event.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.interface.d.ts +7 -0
- package/out/concepts/basics/stdlib/nasl.interface.js +43 -0
- package/out/concepts/basics/stdlib/nasl.interface.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.io.d.ts +3 -0
- package/out/concepts/basics/stdlib/nasl.io.js +52 -0
- package/out/concepts/basics/stdlib/nasl.io.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.logging.d.ts +3 -0
- package/out/concepts/basics/stdlib/nasl.logging.js +56 -0
- package/out/concepts/basics/stdlib/nasl.logging.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.process.d.ts +7 -0
- package/out/concepts/basics/stdlib/nasl.process.js +638 -0
- package/out/concepts/basics/stdlib/nasl.process.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.ui.d.ts +7 -0
- package/out/concepts/basics/stdlib/nasl.ui.js +1043 -0
- package/out/concepts/basics/stdlib/nasl.ui.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.util.d.ts +3 -0
- package/out/concepts/basics/stdlib/nasl.util.js +1798 -0
- package/out/concepts/basics/stdlib/nasl.util.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.validation.d.ts +3 -0
- package/out/concepts/basics/stdlib/nasl.validation.js +565 -0
- package/out/concepts/basics/stdlib/nasl.validation.js.map +1 -0
- package/out/concepts/basics/stdlib/reference2TypeAnnotationList.d.ts +5 -0
- package/out/concepts/basics/stdlib/reference2TypeAnnotationList.js +26 -0
- package/out/concepts/basics/stdlib/reference2TypeAnnotationList.js.map +1 -0
- package/out/concepts/basics/types/coreTypeList.d.ts +2 -0
- package/out/concepts/basics/types/coreTypeList.js +15 -0
- package/out/concepts/basics/types/coreTypeList.js.map +1 -0
- package/out/concepts/basics/types/index.d.ts +15 -0
- package/out/concepts/basics/types/index.js +32 -0
- package/out/concepts/basics/types/index.js.map +1 -0
- package/out/concepts/index.d.ts +5 -0
- package/out/concepts/index.js +24 -0
- package/out/concepts/index.js.map +1 -0
- package/out/concepts/index__.d.ts +108 -0
- package/out/concepts/index__.js +125 -0
- package/out/concepts/index__.js.map +1 -0
- package/out/config.d.ts +44 -0
- package/out/config.js +73 -0
- package/out/config.js.map +1 -0
- package/out/decorators/index.d.ts +56 -0
- package/out/decorators/index.js +159 -0
- package/out/decorators/index.js.map +1 -0
- package/out/enums/KEYWORDS.d.ts +6 -0
- package/out/enums/KEYWORDS.js +1243 -0
- package/out/enums/KEYWORDS.js.map +1 -0
- package/out/enums/LEVEL_NAME_MAP.d.ts +26 -0
- package/out/enums/LEVEL_NAME_MAP.js +30 -0
- package/out/enums/LEVEL_NAME_MAP.js.map +1 -0
- package/out/eventBus.d.ts +3 -0
- package/out/eventBus.js +7 -0
- package/out/eventBus.js.map +1 -0
- package/out/generator/compileComponent.d.ts +11 -0
- package/out/generator/compileComponent.js +12 -0
- package/out/generator/compileComponent.js.map +1 -0
- package/out/generator/genBundleFiles.d.ts +33 -0
- package/out/generator/genBundleFiles.js +501 -0
- package/out/generator/genBundleFiles.js.map +1 -0
- package/out/generator/genHash.d.ts +7 -0
- package/out/generator/genHash.js +39 -0
- package/out/generator/genHash.js.map +1 -0
- package/out/generator/genMetaData.d.ts +28 -0
- package/out/generator/genMetaData.js +288 -0
- package/out/generator/genMetaData.js.map +1 -0
- package/out/generator/genReleaseBody.d.ts +60 -0
- package/out/generator/genReleaseBody.js +493 -0
- package/out/generator/genReleaseBody.js.map +1 -0
- package/out/generator/icestark.d.ts +2 -0
- package/out/generator/icestark.js +48 -0
- package/out/generator/icestark.js.map +1 -0
- package/out/generator/index.d.ts +7 -0
- package/out/generator/index.js +24 -0
- package/out/generator/index.js.map +1 -0
- package/out/generator/microApp.d.ts +2 -0
- package/out/generator/microApp.js +35 -0
- package/out/generator/microApp.js.map +1 -0
- package/out/generator/permission.d.ts +10 -0
- package/out/generator/permission.js +269 -0
- package/out/generator/permission.js.map +1 -0
- package/out/generator/qiankun.d.ts +2 -0
- package/out/generator/qiankun.js +52 -0
- package/out/generator/qiankun.js.map +1 -0
- package/out/generator/styleReplacer.d.ts +3 -0
- package/out/generator/styleReplacer.js +71 -0
- package/out/generator/styleReplacer.js.map +1 -0
- package/out/index.d.ts +13 -0
- package/out/index.js +64 -0
- package/out/index.js.map +1 -0
- package/out/manager/diagnostic.d.ts +35 -0
- package/out/manager/diagnostic.js +63 -0
- package/out/manager/diagnostic.js.map +1 -0
- package/out/manager/stepRecorder.d.ts +20 -0
- package/out/manager/stepRecorder.js +110 -0
- package/out/manager/stepRecorder.js.map +1 -0
- package/out/sentry/index.d.ts +29 -0
- package/out/sentry/index.js +111 -0
- package/out/sentry/index.js.map +1 -0
- package/out/server/createUiTs.d.ts +16 -0
- package/out/server/createUiTs.js +248 -0
- package/out/server/createUiTs.js.map +1 -0
- package/out/server/entity2LogicNamespace.d.ts +10 -0
- package/out/server/entity2LogicNamespace.js +380 -0
- package/out/server/entity2LogicNamespace.js.map +1 -0
- package/out/server/event.d.ts +30 -0
- package/out/server/event.js +151 -0
- package/out/server/event.js.map +1 -0
- package/out/server/extendBaseNode.d.ts +1 -0
- package/out/server/extendBaseNode.js +475 -0
- package/out/server/extendBaseNode.js.map +1 -0
- package/out/server/formatTsUtils.d.ts +36 -0
- package/out/server/formatTsUtils.js +788 -0
- package/out/server/formatTsUtils.js.map +1 -0
- package/out/server/getExtensionModules.d.ts +3 -0
- package/out/server/getExtensionModules.js +20 -0
- package/out/server/getExtensionModules.js.map +1 -0
- package/out/server/getFunctions.d.ts +3 -0
- package/out/server/getFunctions.js +20 -0
- package/out/server/getFunctions.js.map +1 -0
- package/out/server/getInterfaces.d.ts +2 -0
- package/out/server/getInterfaces.js +48 -0
- package/out/server/getInterfaces.js.map +1 -0
- package/out/server/getLogging.d.ts +1 -0
- package/out/server/getLogging.js +9 -0
- package/out/server/getLogging.js.map +1 -0
- package/out/server/getLogics.d.ts +4 -0
- package/out/server/getLogics.js +352 -0
- package/out/server/getLogics.js.map +1 -0
- package/out/server/getMemberIdentifier.d.ts +15 -0
- package/out/server/getMemberIdentifier.js +290 -0
- package/out/server/getMemberIdentifier.js.map +1 -0
- package/out/server/getProcessComponents.d.ts +2 -0
- package/out/server/getProcessComponents.js +13 -0
- package/out/server/getProcessComponents.js.map +1 -0
- package/out/server/getProcesses.d.ts +33 -0
- package/out/server/getProcesses.js +599 -0
- package/out/server/getProcesses.js.map +1 -0
- package/out/server/getScope.d.ts +13 -0
- package/out/server/getScope.js +61 -0
- package/out/server/getScope.js.map +1 -0
- package/out/server/getValidates.d.ts +3 -0
- package/out/server/getValidates.js +14 -0
- package/out/server/getValidates.js.map +1 -0
- package/out/server/index.d.ts +5 -0
- package/out/server/index.js +38 -0
- package/out/server/index.js.map +1 -0
- package/out/server/naslServer.d.ts +363 -0
- package/out/server/naslServer.js +4382 -0
- package/out/server/naslServer.js.map +1 -0
- package/out/server/naslStdlibMap.d.ts +2 -0
- package/out/server/naslStdlibMap.js +50 -0
- package/out/server/naslStdlibMap.js.map +1 -0
- package/out/server/process2LogicNamespace.d.ts +26 -0
- package/out/server/process2LogicNamespace.js +109 -0
- package/out/server/process2LogicNamespace.js.map +1 -0
- package/out/server/translator.d.ts +26 -0
- package/out/server/translator.js +787 -0
- package/out/server/translator.js.map +1 -0
- package/out/service/creator/add.configs.d.ts +1 -0
- package/out/service/creator/add.configs.js +74 -0
- package/out/service/creator/add.configs.js.map +1 -0
- package/out/service/creator/errHandles.d.ts +18 -0
- package/out/service/creator/errHandles.js +75 -0
- package/out/service/creator/errHandles.js.map +1 -0
- package/out/service/creator/index.d.ts +1 -0
- package/out/service/creator/index.js +74 -0
- package/out/service/creator/index.js.map +1 -0
- package/out/service/datasource/api.d.ts +12 -0
- package/out/service/datasource/api.js +14 -0
- package/out/service/datasource/api.js.map +1 -0
- package/out/service/datasource/index.d.ts +2 -0
- package/out/service/datasource/index.js +10 -0
- package/out/service/datasource/index.js.map +1 -0
- package/out/service/defaultErrorMessage.json +98 -0
- package/out/service/logic/api.d.ts +9 -0
- package/out/service/logic/api.js +11 -0
- package/out/service/logic/api.js.map +1 -0
- package/out/service/logic/index.d.ts +2 -0
- package/out/service/logic/index.js +10 -0
- package/out/service/logic/index.js.map +1 -0
- package/out/service/storage/api.d.ts +45 -0
- package/out/service/storage/api.js +36 -0
- package/out/service/storage/api.js.map +1 -0
- package/out/service/storage/index.d.ts +2 -0
- package/out/service/storage/index.js +10 -0
- package/out/service/storage/index.js.map +1 -0
- package/out/service/storage/init.d.ts +65 -0
- package/out/service/storage/init.js +797 -0
- package/out/service/storage/init.js.map +1 -0
- package/out/service/storage/jsoner.d.ts +36 -0
- package/out/service/storage/jsoner.js +131 -0
- package/out/service/storage/jsoner.js.map +1 -0
- package/out/service/storage/map.d.ts +4 -0
- package/out/service/storage/map.js +54 -0
- package/out/service/storage/map.js.map +1 -0
- package/out/service/storage/service.d.ts +22 -0
- package/out/service/storage/service.js +70 -0
- package/out/service/storage/service.js.map +1 -0
- package/out/service/storage/storagePoint.d.ts +17 -0
- package/out/service/storage/storagePoint.js +76 -0
- package/out/service/storage/storagePoint.js.map +1 -0
- package/out/templator/genCallComponentLogic.d.ts +17 -0
- package/out/templator/genCallComponentLogic.js +30 -0
- package/out/templator/genCallComponentLogic.js.map +1 -0
- package/out/templator/genCreateBlock.d.ts +10 -0
- package/out/templator/genCreateBlock.js +338 -0
- package/out/templator/genCreateBlock.js.map +1 -0
- package/out/templator/genCurdEditMultipleKeyBlock.d.ts +8 -0
- package/out/templator/genCurdEditMultipleKeyBlock.js +516 -0
- package/out/templator/genCurdEditMultipleKeyBlock.js.map +1 -0
- package/out/templator/genCurdMultipleKeyBlock.d.ts +34 -0
- package/out/templator/genCurdMultipleKeyBlock.js +709 -0
- package/out/templator/genCurdMultipleKeyBlock.js.map +1 -0
- package/out/templator/genEditTableBlock.d.ts +51 -0
- package/out/templator/genEditTableBlock.js +299 -0
- package/out/templator/genEditTableBlock.js.map +1 -0
- package/out/templator/genEnumSelectBlock.d.ts +10 -0
- package/out/templator/genEnumSelectBlock.js +26 -0
- package/out/templator/genEnumSelectBlock.js.map +1 -0
- package/out/templator/genGetBlock.d.ts +6 -0
- package/out/templator/genGetBlock.js +138 -0
- package/out/templator/genGetBlock.js.map +1 -0
- package/out/templator/genGridViewBlock.d.ts +55 -0
- package/out/templator/genGridViewBlock.js +350 -0
- package/out/templator/genGridViewBlock.js.map +1 -0
- package/out/templator/genListViewBlock.d.ts +19 -0
- package/out/templator/genListViewBlock.js +143 -0
- package/out/templator/genListViewBlock.js.map +1 -0
- package/out/templator/genQueryComponent.d.ts +34 -0
- package/out/templator/genQueryComponent.js +342 -0
- package/out/templator/genQueryComponent.js.map +1 -0
- package/out/templator/genSelectBlock.d.ts +45 -0
- package/out/templator/genSelectBlock.js +406 -0
- package/out/templator/genSelectBlock.js.map +1 -0
- package/out/templator/genTableBlock.d.ts +53 -0
- package/out/templator/genTableBlock.js +280 -0
- package/out/templator/genTableBlock.js.map +1 -0
- package/out/templator/genUpdateBlock.d.ts +6 -0
- package/out/templator/genUpdateBlock.js +380 -0
- package/out/templator/genUpdateBlock.js.map +1 -0
- package/out/templator/index.d.ts +18 -0
- package/out/templator/index.js +34 -0
- package/out/templator/index.js.map +1 -0
- package/out/templator/utils.d.ts +676 -0
- package/out/templator/utils.js +469 -0
- package/out/templator/utils.js.map +1 -0
- package/out/translator/constant.d.ts +6 -0
- package/out/translator/constant.js +10 -0
- package/out/translator/constant.js.map +1 -0
- package/out/translator/index.d.ts +3 -0
- package/out/translator/index.js +20 -0
- package/out/translator/index.js.map +1 -0
- package/out/translator/types.d.ts +32 -0
- package/out/translator/types.js +3 -0
- package/out/translator/types.js.map +1 -0
- package/out/translator/utils.d.ts +25 -0
- package/out/translator/utils.js +120 -0
- package/out/translator/utils.js.map +1 -0
- package/out/utils/index.d.ts +42 -0
- package/out/utils/index.js +213 -0
- package/out/utils/index.js.map +1 -0
- package/out/utils/logger.d.ts +7 -0
- package/out/utils/logger.js +23 -0
- package/out/utils/logger.js.map +1 -0
- package/out/utils/sortTsString.d.ts +1 -0
- package/out/utils/sortTsString.js +36 -0
- package/out/utils/sortTsString.js.map +1 -0
- package/out/utils/string.d.ts +51 -0
- package/out/utils/string.js +110 -0
- package/out/utils/string.js.map +1 -0
- package/out/utils/time.d.ts +1 -0
- package/out/utils/time.js +6 -0
- package/out/utils/time.js.map +1 -0
- package/out/utils/traverse.d.ts +36 -0
- package/out/utils/traverse.js +145 -0
- package/out/utils/traverse.js.map +1 -0
- package/out/utils/types.d.ts +1 -0
- package/out/utils/types.js +3 -0
- package/out/utils/types.js.map +1 -0
- package/out/utils/window.d.ts +7 -0
- package/out/utils/window.js +14 -0
- package/out/utils/window.js.map +1 -0
- package/package.json +1 -1
- package/src/concepts/BindEvent__.ts +5 -6
- package/src/concepts/Module__.ts +2 -2
- package/src/concepts/View__.ts +2 -2
- package/src/server/naslServer.ts +4 -4
|
@@ -0,0 +1,249 @@
|
|
|
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 Event_1;
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.Event = void 0;
|
|
37
|
+
const decorators_1 = require("../decorators");
|
|
38
|
+
const utils = __importStar(require("../utils"));
|
|
39
|
+
const BaseNode_1 = __importDefault(require("../common/BaseNode"));
|
|
40
|
+
const Param__1 = __importDefault(require("./Param__"));
|
|
41
|
+
/**
|
|
42
|
+
* 组件事件
|
|
43
|
+
*/
|
|
44
|
+
let Event = Event_1 =
|
|
45
|
+
// @ts-ignore
|
|
46
|
+
class Event extends BaseNode_1.default {
|
|
47
|
+
/** 类名 */
|
|
48
|
+
static ConceptName = 'Event';
|
|
49
|
+
/**
|
|
50
|
+
* 产品概念
|
|
51
|
+
*/
|
|
52
|
+
// @ts-ignore
|
|
53
|
+
concept;
|
|
54
|
+
/**
|
|
55
|
+
* 组件事件名称
|
|
56
|
+
*/
|
|
57
|
+
// @ts-ignore
|
|
58
|
+
name;
|
|
59
|
+
/**
|
|
60
|
+
* 组件事件分组
|
|
61
|
+
*/
|
|
62
|
+
// @ts-ignore
|
|
63
|
+
group;
|
|
64
|
+
/**
|
|
65
|
+
* 组件事件标题
|
|
66
|
+
*/
|
|
67
|
+
// @ts-ignore
|
|
68
|
+
title;
|
|
69
|
+
/**
|
|
70
|
+
* 组件事件描述
|
|
71
|
+
*/
|
|
72
|
+
// @ts-ignore
|
|
73
|
+
description;
|
|
74
|
+
/**
|
|
75
|
+
* 是否为高级功能,不在低代码中显示
|
|
76
|
+
*/
|
|
77
|
+
// @ts-ignore
|
|
78
|
+
advanced;
|
|
79
|
+
/**
|
|
80
|
+
* 输入参数列表
|
|
81
|
+
*/
|
|
82
|
+
params = [];
|
|
83
|
+
/**
|
|
84
|
+
* 祖先 ViewComponent
|
|
85
|
+
*/
|
|
86
|
+
get viewComponent() {
|
|
87
|
+
return this.getAncestor('ViewComponent');
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* 祖先 Module
|
|
91
|
+
*/
|
|
92
|
+
get module() {
|
|
93
|
+
return this.getAncestor('Module');
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* 祖先 App
|
|
97
|
+
*/
|
|
98
|
+
get app() {
|
|
99
|
+
return this.getAncestor('App');
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* @param source 需要合并的部分参数
|
|
103
|
+
*/
|
|
104
|
+
constructor(source) {
|
|
105
|
+
source = Object.assign({}, Event_1.getDefaultOptions(), source);
|
|
106
|
+
super(source);
|
|
107
|
+
super.subConstructor(source);
|
|
108
|
+
}
|
|
109
|
+
static from(source, parentNode, parentKey) {
|
|
110
|
+
return super.from(source, parentNode, parentKey);
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* 从父级删除该节点
|
|
114
|
+
* @internal
|
|
115
|
+
*/
|
|
116
|
+
_delete() {
|
|
117
|
+
let params = null;
|
|
118
|
+
if (this.parentNode) {
|
|
119
|
+
params = this.parentNode?.__removeEvent?.(this);
|
|
120
|
+
}
|
|
121
|
+
return params;
|
|
122
|
+
}
|
|
123
|
+
getParamExistingNames(excludedList = []) {
|
|
124
|
+
const excludedSet = new Set(excludedList);
|
|
125
|
+
return (this.params || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
|
|
126
|
+
}
|
|
127
|
+
getParamUniqueName(name = 'param1') {
|
|
128
|
+
return utils.unique(name, this.getParamExistingNames(), undefined, false);
|
|
129
|
+
}
|
|
130
|
+
_insertParamAt(options, index) {
|
|
131
|
+
const paramOptions = {};
|
|
132
|
+
const relationOptions = { parentNode: this, parentKey: 'params' };
|
|
133
|
+
let param;
|
|
134
|
+
if (!options) {
|
|
135
|
+
param = Param__1.default.from({
|
|
136
|
+
...paramOptions,
|
|
137
|
+
name: this.getParamUniqueName(),
|
|
138
|
+
}, this, 'params');
|
|
139
|
+
}
|
|
140
|
+
else if (typeof options === 'string') {
|
|
141
|
+
param = Param__1.default.from({
|
|
142
|
+
...paramOptions,
|
|
143
|
+
name: options,
|
|
144
|
+
}, this, 'params');
|
|
145
|
+
}
|
|
146
|
+
else if (options instanceof Param__1.default) {
|
|
147
|
+
options.ensureDelete(); // 同一实例不支持多处存在
|
|
148
|
+
param = options;
|
|
149
|
+
Object.assign(param, relationOptions);
|
|
150
|
+
}
|
|
151
|
+
else {
|
|
152
|
+
param = Param__1.default.from({
|
|
153
|
+
...paramOptions,
|
|
154
|
+
...options,
|
|
155
|
+
}, this, 'params');
|
|
156
|
+
}
|
|
157
|
+
this.params.splice(index, 0, param);
|
|
158
|
+
return param;
|
|
159
|
+
}
|
|
160
|
+
insertParamAt(options, index) {
|
|
161
|
+
const node = this._insertParamAt(options, index);
|
|
162
|
+
node.create({
|
|
163
|
+
index,
|
|
164
|
+
parentNode: this,
|
|
165
|
+
parentKey: 'params',
|
|
166
|
+
});
|
|
167
|
+
return node;
|
|
168
|
+
}
|
|
169
|
+
_addParam(options) {
|
|
170
|
+
const index = this.params.length;
|
|
171
|
+
return this._insertParamAt(options, index);
|
|
172
|
+
}
|
|
173
|
+
addParam(options) {
|
|
174
|
+
const node = this._addParam(options);
|
|
175
|
+
const index = this.params.indexOf(node);
|
|
176
|
+
node.create({
|
|
177
|
+
index,
|
|
178
|
+
parentNode: this,
|
|
179
|
+
parentKey: 'params',
|
|
180
|
+
});
|
|
181
|
+
return node;
|
|
182
|
+
}
|
|
183
|
+
removeParam(options) {
|
|
184
|
+
let param;
|
|
185
|
+
if (typeof options === 'string') {
|
|
186
|
+
param = this.params.find((item) => item.name === options);
|
|
187
|
+
if (!param) {
|
|
188
|
+
throw new Error('找不到输入参数 ' + options);
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
else {
|
|
192
|
+
param = options;
|
|
193
|
+
}
|
|
194
|
+
return param.delete();
|
|
195
|
+
}
|
|
196
|
+
__removeParam(param) {
|
|
197
|
+
const parentKey = param.parentKey;
|
|
198
|
+
const params = {
|
|
199
|
+
parentNode: this,
|
|
200
|
+
parentKey,
|
|
201
|
+
index: -1,
|
|
202
|
+
object: null,
|
|
203
|
+
oldObject: param,
|
|
204
|
+
};
|
|
205
|
+
if (parentKey) {
|
|
206
|
+
params.parentKey = parentKey;
|
|
207
|
+
if (Array.isArray(this[parentKey])) {
|
|
208
|
+
const index = this[parentKey].indexOf(param);
|
|
209
|
+
~index && this[parentKey].splice(index, 1);
|
|
210
|
+
params.index = index;
|
|
211
|
+
}
|
|
212
|
+
else if (this[parentKey] === param) {
|
|
213
|
+
params.index = 0;
|
|
214
|
+
this[parentKey] = undefined;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
return params;
|
|
218
|
+
}
|
|
219
|
+
};
|
|
220
|
+
__decorate([
|
|
221
|
+
(0, decorators_1.property)()
|
|
222
|
+
], Event.prototype, "name", void 0);
|
|
223
|
+
__decorate([
|
|
224
|
+
(0, decorators_1.property)()
|
|
225
|
+
], Event.prototype, "group", void 0);
|
|
226
|
+
__decorate([
|
|
227
|
+
(0, decorators_1.property)()
|
|
228
|
+
], Event.prototype, "title", void 0);
|
|
229
|
+
__decorate([
|
|
230
|
+
(0, decorators_1.property)()
|
|
231
|
+
], Event.prototype, "description", void 0);
|
|
232
|
+
__decorate([
|
|
233
|
+
(0, decorators_1.property)()
|
|
234
|
+
], Event.prototype, "advanced", void 0);
|
|
235
|
+
__decorate([
|
|
236
|
+
(0, decorators_1.property)('Param')
|
|
237
|
+
], Event.prototype, "params", void 0);
|
|
238
|
+
Event = Event_1 = __decorate([
|
|
239
|
+
decorators_1.className,
|
|
240
|
+
(0, decorators_1.concept)('组件事件')
|
|
241
|
+
// @ts-ignore
|
|
242
|
+
], Event);
|
|
243
|
+
exports.Event = Event;
|
|
244
|
+
exports.default = Event;
|
|
245
|
+
//================================================================================
|
|
246
|
+
// ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑
|
|
247
|
+
// 自动生成的代码已结束。下面可以手动编写。
|
|
248
|
+
//================================================================================
|
|
249
|
+
//# sourceMappingUR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AAC,GAAG,SAAS,CAAC;aACxC;SACJ;QACD,OAAO,MAAM,CAAC;IAClB,CAAC;CAWJ,CAAA;AA1RG;IAFC,IAAA,qBAAQ,GAAE;mCAEG;AAOd;IAFC,IAAA,qBAAQ,GAAE;oCAEI;AAOf;IAFC,IAAA,qBAAQ,GAAE;oCAEI;AAOf;IAFC,IAAA,qBAAQ,GAAE;0CAEU;AAOrB;IAFC,IAAA,qBAAQ,GAAE;uCAEQ;AAMnB;IADC,IAAA,qBAAQ,EAAC,OAAO,CAAC;qCACQ;AAjDjB,KAAK;IAHjB,sBAAS;IACT,IAAA,oBAAO,EAAC,MAAM,CAAC;IAChB,aAAa;GACA,KAAK,CAySjB;AAzSY,sBAAK;AA2SlB,kBAAe,KAAK,CAAC;AACrB,kFAAkF;AAClF,gEAAgE;AAChE,uBAAuB;AACvB,kFAAkF"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { TranslatorState } from '../translator';
|
|
2
|
+
import { ElementToVueOptions } from './ViewElement__';
|
|
3
|
+
import { Params } from '../common/EventEmitter';
|
|
4
|
+
import LogicItem from './LogicItem__';
|
|
5
|
+
import Anchor from './Anchor__';
|
|
6
|
+
/**
|
|
7
|
+
* 外部链接
|
|
8
|
+
*/
|
|
9
|
+
export declare class ExternalDestination extends LogicItem {
|
|
10
|
+
/** 类名 */
|
|
11
|
+
static readonly ConceptName = "ExternalDestination";
|
|
12
|
+
/**
|
|
13
|
+
* 产品概念
|
|
14
|
+
*/
|
|
15
|
+
readonly concept: 'ExternalDestination';
|
|
16
|
+
/**
|
|
17
|
+
* 外部链接
|
|
18
|
+
*/
|
|
19
|
+
link: LogicItem;
|
|
20
|
+
/**
|
|
21
|
+
* target
|
|
22
|
+
*/
|
|
23
|
+
target: string;
|
|
24
|
+
/**
|
|
25
|
+
* 锚点参数
|
|
26
|
+
*/
|
|
27
|
+
anchor: Anchor;
|
|
28
|
+
/**
|
|
29
|
+
* @param source 需要合并的部分参数
|
|
30
|
+
*/
|
|
31
|
+
constructor(source?: Partial<ExternalDestination>);
|
|
32
|
+
static from(source: any, parentNode?: any, parentKey?: string): ExternalDestination;
|
|
33
|
+
/**
|
|
34
|
+
* 设置外部链接
|
|
35
|
+
*/
|
|
36
|
+
setLink(link: LogicItem): void;
|
|
37
|
+
/**
|
|
38
|
+
* 设置target
|
|
39
|
+
*/
|
|
40
|
+
setTarget(target: string): void;
|
|
41
|
+
/**
|
|
42
|
+
* 设置锚点参数
|
|
43
|
+
*/
|
|
44
|
+
setAnchor(anchor: Anchor): void;
|
|
45
|
+
/**
|
|
46
|
+
* 删除逻辑项
|
|
47
|
+
* @param name 逻辑项名称
|
|
48
|
+
*/
|
|
49
|
+
removeLink(name: string): void;
|
|
50
|
+
/**
|
|
51
|
+
* 删除逻辑项
|
|
52
|
+
* @param link 已有的逻辑项实例
|
|
53
|
+
*/
|
|
54
|
+
removeLink(link: LogicItem): void;
|
|
55
|
+
/**
|
|
56
|
+
* 删除锚点参数
|
|
57
|
+
* @param name 锚点参数名称
|
|
58
|
+
*/
|
|
59
|
+
removeAnchor(name: string): void;
|
|
60
|
+
/**
|
|
61
|
+
* 删除锚点参数
|
|
62
|
+
* @param anchor 已有的锚点参数实例
|
|
63
|
+
*/
|
|
64
|
+
removeAnchor(anchor: Anchor): void;
|
|
65
|
+
__removeLogicItem(logicItem: LogicItem): Params;
|
|
66
|
+
toEmbeddedTS(state?: TranslatorState, isHaveKeyWord?: boolean): string;
|
|
67
|
+
toInViewMethod(): string;
|
|
68
|
+
toVue(options?: ElementToVueOptions): string;
|
|
69
|
+
toUI(state?: TranslatorState): string;
|
|
70
|
+
toJS(state?: TranslatorState): string;
|
|
71
|
+
toBrief(): string;
|
|
72
|
+
static getDefaultOptions(): any;
|
|
73
|
+
changeParentTarget(): void;
|
|
74
|
+
inheritTargetFromGrandPa(): void;
|
|
75
|
+
}
|
|
76
|
+
export default ExternalDestination;
|
|
@@ -0,0 +1,286 @@
|
|
|
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 ExternalDestination_1;
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.ExternalDestination = void 0;
|
|
14
|
+
const translator_1 = require("../translator");
|
|
15
|
+
const __1 = require("..");
|
|
16
|
+
const decorators_1 = require("../decorators");
|
|
17
|
+
const LogicItem__1 = __importDefault(require("./LogicItem__"));
|
|
18
|
+
/**
|
|
19
|
+
* 外部链接
|
|
20
|
+
*/
|
|
21
|
+
let ExternalDestination = ExternalDestination_1 =
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
class ExternalDestination extends LogicItem__1.default {
|
|
24
|
+
/** 类名 */
|
|
25
|
+
static ConceptName = 'ExternalDestination';
|
|
26
|
+
/**
|
|
27
|
+
* 产品概念
|
|
28
|
+
*/
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
concept;
|
|
31
|
+
/**
|
|
32
|
+
* 外部链接
|
|
33
|
+
*/
|
|
34
|
+
// @ts-ignore
|
|
35
|
+
link;
|
|
36
|
+
/**
|
|
37
|
+
* target
|
|
38
|
+
*/
|
|
39
|
+
target = '_self';
|
|
40
|
+
/**
|
|
41
|
+
* 锚点参数
|
|
42
|
+
*/
|
|
43
|
+
// @ts-ignore
|
|
44
|
+
anchor;
|
|
45
|
+
/**
|
|
46
|
+
* @param source 需要合并的部分参数
|
|
47
|
+
*/
|
|
48
|
+
constructor(source) {
|
|
49
|
+
source = Object.assign({}, ExternalDestination_1.getDefaultOptions(), source);
|
|
50
|
+
super(source);
|
|
51
|
+
super.subConstructor(source);
|
|
52
|
+
}
|
|
53
|
+
static from(source, parentNode, parentKey) {
|
|
54
|
+
return super.from(source, parentNode, parentKey);
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* 设置外部链接
|
|
58
|
+
*/
|
|
59
|
+
setLink(link) {
|
|
60
|
+
link._delete();
|
|
61
|
+
const relationOptions = { parentNode: this, parentKey: 'link' };
|
|
62
|
+
Object.assign(link, relationOptions);
|
|
63
|
+
const object = {
|
|
64
|
+
link,
|
|
65
|
+
};
|
|
66
|
+
this.update({
|
|
67
|
+
...object,
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* 设置target
|
|
72
|
+
*/
|
|
73
|
+
setTarget(target) {
|
|
74
|
+
const object = {
|
|
75
|
+
target,
|
|
76
|
+
};
|
|
77
|
+
this.update({
|
|
78
|
+
...object,
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* 设置锚点参数
|
|
83
|
+
*/
|
|
84
|
+
setAnchor(anchor) {
|
|
85
|
+
anchor._delete();
|
|
86
|
+
const relationOptions = { parentNode: this, parentKey: 'anchor' };
|
|
87
|
+
Object.assign(anchor, relationOptions);
|
|
88
|
+
const object = {
|
|
89
|
+
anchor,
|
|
90
|
+
};
|
|
91
|
+
this.update({
|
|
92
|
+
...object,
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
removeLink(options) {
|
|
96
|
+
let link;
|
|
97
|
+
if (typeof options === 'string') {
|
|
98
|
+
link = this.link;
|
|
99
|
+
if (!link) {
|
|
100
|
+
throw new Error('找不到逻辑项 ' + options);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
else {
|
|
104
|
+
link = options;
|
|
105
|
+
}
|
|
106
|
+
return link.delete();
|
|
107
|
+
}
|
|
108
|
+
removeAnchor(options) {
|
|
109
|
+
let anchor;
|
|
110
|
+
if (typeof options === 'string') {
|
|
111
|
+
anchor = this.anchor;
|
|
112
|
+
if (!anchor) {
|
|
113
|
+
throw new Error('找不到锚点参数 ' + options);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
else {
|
|
117
|
+
anchor = options;
|
|
118
|
+
}
|
|
119
|
+
return anchor.delete();
|
|
120
|
+
}
|
|
121
|
+
__removeLogicItem(logicItem) {
|
|
122
|
+
const parentKey = logicItem.parentKey;
|
|
123
|
+
const params = {
|
|
124
|
+
parentNode: this,
|
|
125
|
+
parentKey,
|
|
126
|
+
index: -1,
|
|
127
|
+
object: null,
|
|
128
|
+
oldObject: logicItem,
|
|
129
|
+
};
|
|
130
|
+
if (parentKey) {
|
|
131
|
+
params.parentKey = parentKey;
|
|
132
|
+
if (Array.isArray(this[parentKey])) {
|
|
133
|
+
const index = this[parentKey].indexOf(logicItem);
|
|
134
|
+
~index && this[parentKey].splice(index, 1);
|
|
135
|
+
params.index = index;
|
|
136
|
+
}
|
|
137
|
+
else if (this[parentKey] === logicItem) {
|
|
138
|
+
params.index = 0;
|
|
139
|
+
this[parentKey] = undefined;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
return params;
|
|
143
|
+
}
|
|
144
|
+
//================================================================================
|
|
145
|
+
// ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑
|
|
146
|
+
// 自动生成的代码已结束。下面可以手动编写。
|
|
147
|
+
//================================================================================
|
|
148
|
+
toEmbeddedTS(state, isHaveKeyWord) {
|
|
149
|
+
let code = '';
|
|
150
|
+
if (this.link) {
|
|
151
|
+
code += (this.link).toEmbeddedTS((0, translator_1.shiftState)(state, code)) + ';';
|
|
152
|
+
}
|
|
153
|
+
else {
|
|
154
|
+
code += '__IDENTIFIER__;';
|
|
155
|
+
}
|
|
156
|
+
// code += this.anchor?.expression?.toEmbeddedTS(shiftState(state, code)) + ';' || '';
|
|
157
|
+
code += this.anchor?.toEmbeddedTS((0, translator_1.shiftState)(state, code), true) || '';
|
|
158
|
+
return code;
|
|
159
|
+
}
|
|
160
|
+
toInViewMethod() {
|
|
161
|
+
let code = `let url = ${this.link?.toJS() || '\'\''};\n`;
|
|
162
|
+
if (this.anchor) {
|
|
163
|
+
const anchorCode = this.anchor.toJS();
|
|
164
|
+
if (anchorCode) {
|
|
165
|
+
code += `const anchor = ${anchorCode};`;
|
|
166
|
+
code += 'if (anchor) {\nurl += `#${anchor}`;\n}\n';
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
code += 'return url;';
|
|
170
|
+
return `await (async () => {
|
|
171
|
+
try {
|
|
172
|
+
${code}
|
|
173
|
+
} catch(err) {
|
|
174
|
+
console.log(err);
|
|
175
|
+
}
|
|
176
|
+
})();`;
|
|
177
|
+
}
|
|
178
|
+
toVue(options) {
|
|
179
|
+
let url = '`';
|
|
180
|
+
const tempLink = this.link ? this.link.toVue(options) : "''";
|
|
181
|
+
url += '${';
|
|
182
|
+
url += `${tempLink}`;
|
|
183
|
+
url += '}';
|
|
184
|
+
if (this.anchor) {
|
|
185
|
+
const anchor = this.anchor.toVue();
|
|
186
|
+
if (anchor)
|
|
187
|
+
url += `#\${${anchor}}`;
|
|
188
|
+
}
|
|
189
|
+
url += '`';
|
|
190
|
+
return url;
|
|
191
|
+
}
|
|
192
|
+
toUI(state) {
|
|
193
|
+
let code = '';
|
|
194
|
+
if (this.link) {
|
|
195
|
+
code += this.link.toUI((0, translator_1.shiftState)(state, code));
|
|
196
|
+
}
|
|
197
|
+
else {
|
|
198
|
+
code += '';
|
|
199
|
+
}
|
|
200
|
+
if (this.anchor) {
|
|
201
|
+
const anchor = this.anchor.toUI();
|
|
202
|
+
if (anchor)
|
|
203
|
+
code += `#\${${anchor}}`;
|
|
204
|
+
}
|
|
205
|
+
return code;
|
|
206
|
+
}
|
|
207
|
+
toJS(state) {
|
|
208
|
+
let url = '';
|
|
209
|
+
if (this.link) {
|
|
210
|
+
url += 'this.$link(`${';
|
|
211
|
+
url += `${this.link.toJS()}`;
|
|
212
|
+
url += '}';
|
|
213
|
+
if (this.anchor) {
|
|
214
|
+
const anchor = this.anchor.toJS((0, translator_1.shiftState)(state, url));
|
|
215
|
+
if (anchor)
|
|
216
|
+
url += `#\${${anchor}}`;
|
|
217
|
+
}
|
|
218
|
+
url += '`,"';
|
|
219
|
+
url += `${this.target}`;
|
|
220
|
+
url += '")';
|
|
221
|
+
}
|
|
222
|
+
return url;
|
|
223
|
+
}
|
|
224
|
+
toBrief() {
|
|
225
|
+
if (!this.anchor.expression)
|
|
226
|
+
return '';
|
|
227
|
+
return this.anchor.toBrief();
|
|
228
|
+
}
|
|
229
|
+
static getDefaultOptions() {
|
|
230
|
+
return {
|
|
231
|
+
anchor: {
|
|
232
|
+
concept: 'Anchor',
|
|
233
|
+
},
|
|
234
|
+
};
|
|
235
|
+
}
|
|
236
|
+
changeParentTarget() {
|
|
237
|
+
const target = this.target;
|
|
238
|
+
if (this.parentNode instanceof __1.BindAttribute) {
|
|
239
|
+
const grandParent = this.parentNode?.parentNode;
|
|
240
|
+
if (grandParent instanceof __1.ViewElement) {
|
|
241
|
+
const targetNode = grandParent?.bindAttrs?.find((x) => x.name === 'target');
|
|
242
|
+
if (targetNode) {
|
|
243
|
+
targetNode.setValue(target);
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
inheritTargetFromGrandPa() {
|
|
249
|
+
if (this.parentNode instanceof __1.BindAttribute) {
|
|
250
|
+
const grandParent = this.parentNode?.parentNode;
|
|
251
|
+
if (grandParent instanceof __1.ViewElement) {
|
|
252
|
+
const targetNode = grandParent?.bindAttrs?.find((x) => x.name === 'target');
|
|
253
|
+
if (targetNode && targetNode.value !== this.target) {
|
|
254
|
+
this.target = targetNode.value;
|
|
255
|
+
this.update({
|
|
256
|
+
target: this.target,
|
|
257
|
+
});
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
};
|
|
263
|
+
__decorate([
|
|
264
|
+
(0, decorators_1.property)('LogicItem')
|
|
265
|
+
], ExternalDestination.prototype, "link", void 0);
|
|
266
|
+
__decorate([
|
|
267
|
+
(0, decorators_1.property)()
|
|
268
|
+
], ExternalDestination.prototype, "target", void 0);
|
|
269
|
+
__decorate([
|
|
270
|
+
(0, decorators_1.property)('Anchor')
|
|
271
|
+
], ExternalDestination.prototype, "anchor", void 0);
|
|
272
|
+
__decorate([
|
|
273
|
+
(0, translator_1.withSourceMap)()
|
|
274
|
+
], ExternalDestination.prototype, "toEmbeddedTS", null);
|
|
275
|
+
ExternalDestination = ExternalDestination_1 = __decorate([
|
|
276
|
+
decorators_1.className,
|
|
277
|
+
(0, decorators_1.concept)('外部链接')
|
|
278
|
+
// @ts-ignore
|
|
279
|
+
], ExternalDestination);
|
|
280
|
+
exports.ExternalDestination = ExternalDestination;
|
|
281
|
+
exports.default = ExternalDestination;
|
|
282
|
+
//================================================================================
|
|
283
|
+
// ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑
|
|
284
|
+
// 自动生成的代码已结束。下面可以手动编写。
|
|
285
|
+
//================================================================================
|
|
286
|
+
//# sourceMappingURL=ExternalDestination__.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExternalDestination__.js","sourceRoot":"","sources":["../../src/concepts/ExternalDestination__.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,8CAA2E;AAG3E,0BAAuD;AAQvD,8CAA6E;AAK7E,+DAAsC;AAGtC;;GAEG;AAIH,IAAa,mBAAmB;AADhC,aAAa;AACb,MAAa,mBAAoB,SAAQ,oBAAS;IAC9C,SAAS;IACT,MAAM,CAAU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