@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,447 @@
|
|
|
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 Structure_1;
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.Structure = void 0;
|
|
37
|
+
const translator_1 = require("../translator");
|
|
38
|
+
const decorators_1 = require("../decorators");
|
|
39
|
+
const utils = __importStar(require("../utils"));
|
|
40
|
+
const BaseNode_1 = __importDefault(require("../common/BaseNode"));
|
|
41
|
+
const TypeParam__1 = __importDefault(require("./TypeParam__"));
|
|
42
|
+
const StructureProperty__1 = __importDefault(require("./StructureProperty__"));
|
|
43
|
+
/**
|
|
44
|
+
* 数据结构
|
|
45
|
+
*/
|
|
46
|
+
let Structure = Structure_1 =
|
|
47
|
+
// @ts-ignore
|
|
48
|
+
class Structure extends BaseNode_1.default {
|
|
49
|
+
/** 类名 */
|
|
50
|
+
static ConceptName = 'Structure';
|
|
51
|
+
/**
|
|
52
|
+
* 产品概念
|
|
53
|
+
*/
|
|
54
|
+
// @ts-ignore
|
|
55
|
+
concept;
|
|
56
|
+
/**
|
|
57
|
+
* 数据结构名称
|
|
58
|
+
*/
|
|
59
|
+
// @ts-ignore
|
|
60
|
+
name;
|
|
61
|
+
/**
|
|
62
|
+
* 数据结构描述
|
|
63
|
+
*/
|
|
64
|
+
// @ts-ignore
|
|
65
|
+
description;
|
|
66
|
+
/**
|
|
67
|
+
* 数据结构来源
|
|
68
|
+
*/
|
|
69
|
+
// @ts-ignore
|
|
70
|
+
origin;
|
|
71
|
+
/**
|
|
72
|
+
* 编译器信息
|
|
73
|
+
*/
|
|
74
|
+
// @ts-ignore
|
|
75
|
+
compilerInfoMap;
|
|
76
|
+
/**
|
|
77
|
+
* 类型参数列表
|
|
78
|
+
*/
|
|
79
|
+
typeParams = null;
|
|
80
|
+
/**
|
|
81
|
+
* 数据结构属性列表
|
|
82
|
+
*/
|
|
83
|
+
properties = [];
|
|
84
|
+
/**
|
|
85
|
+
* 祖先 Module
|
|
86
|
+
*/
|
|
87
|
+
get module() {
|
|
88
|
+
return this.getAncestor('Module');
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* 祖先 App
|
|
92
|
+
*/
|
|
93
|
+
get app() {
|
|
94
|
+
return this.getAncestor('App');
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* @param source 需要合并的部分参数
|
|
98
|
+
*/
|
|
99
|
+
constructor(source) {
|
|
100
|
+
source = Object.assign({}, Structure_1.getDefaultOptions(), source);
|
|
101
|
+
super(source);
|
|
102
|
+
super.subConstructor(source);
|
|
103
|
+
}
|
|
104
|
+
static from(source, parentNode, parentKey) {
|
|
105
|
+
return super.from(source, parentNode, parentKey);
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* 从父级删除该节点
|
|
109
|
+
* @internal
|
|
110
|
+
*/
|
|
111
|
+
_delete() {
|
|
112
|
+
let params = null;
|
|
113
|
+
if (this.parentNode) {
|
|
114
|
+
params = this.parentNode?.__removeStructure?.(this);
|
|
115
|
+
}
|
|
116
|
+
return params;
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* 设置数据结构名称
|
|
120
|
+
*/
|
|
121
|
+
setName(name) {
|
|
122
|
+
const object = {
|
|
123
|
+
name,
|
|
124
|
+
};
|
|
125
|
+
this.update({
|
|
126
|
+
...object,
|
|
127
|
+
field: 'name',
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* 设置数据结构描述
|
|
132
|
+
*/
|
|
133
|
+
setDescription(description) {
|
|
134
|
+
const object = {
|
|
135
|
+
description,
|
|
136
|
+
};
|
|
137
|
+
this.update({
|
|
138
|
+
...object,
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
getTypeParamExistingNames(excludedList = []) {
|
|
142
|
+
const excludedSet = new Set(excludedList);
|
|
143
|
+
return (this.typeParams || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
|
|
144
|
+
}
|
|
145
|
+
getTypeParamUniqueName(name = 'typeParam1') {
|
|
146
|
+
return utils.unique(name, this.getTypeParamExistingNames(), undefined, false);
|
|
147
|
+
}
|
|
148
|
+
_insertTypeParamAt(options, index) {
|
|
149
|
+
const typeParamOptions = {};
|
|
150
|
+
const relationOptions = { parentNode: this, parentKey: 'typeParams' };
|
|
151
|
+
let typeParam;
|
|
152
|
+
if (!options) {
|
|
153
|
+
typeParam = TypeParam__1.default.from({
|
|
154
|
+
...typeParamOptions,
|
|
155
|
+
name: this.getTypeParamUniqueName(),
|
|
156
|
+
}, this, 'typeParams');
|
|
157
|
+
}
|
|
158
|
+
else if (typeof options === 'string') {
|
|
159
|
+
typeParam = TypeParam__1.default.from({
|
|
160
|
+
...typeParamOptions,
|
|
161
|
+
name: options,
|
|
162
|
+
}, this, 'typeParams');
|
|
163
|
+
}
|
|
164
|
+
else if (options instanceof TypeParam__1.default) {
|
|
165
|
+
options.ensureDelete(); // 同一实例不支持多处存在
|
|
166
|
+
typeParam = options;
|
|
167
|
+
Object.assign(typeParam, relationOptions);
|
|
168
|
+
}
|
|
169
|
+
else {
|
|
170
|
+
typeParam = TypeParam__1.default.from({
|
|
171
|
+
...typeParamOptions,
|
|
172
|
+
...options,
|
|
173
|
+
}, this, 'typeParams');
|
|
174
|
+
}
|
|
175
|
+
this.typeParams.splice(index, 0, typeParam);
|
|
176
|
+
return typeParam;
|
|
177
|
+
}
|
|
178
|
+
insertTypeParamAt(options, index) {
|
|
179
|
+
const node = this._insertTypeParamAt(options, index);
|
|
180
|
+
node.create({
|
|
181
|
+
index,
|
|
182
|
+
parentNode: this,
|
|
183
|
+
parentKey: 'typeParams',
|
|
184
|
+
});
|
|
185
|
+
return node;
|
|
186
|
+
}
|
|
187
|
+
_addTypeParam(options) {
|
|
188
|
+
const index = this.typeParams.length;
|
|
189
|
+
return this._insertTypeParamAt(options, index);
|
|
190
|
+
}
|
|
191
|
+
addTypeParam(options) {
|
|
192
|
+
const node = this._addTypeParam(options);
|
|
193
|
+
const index = this.typeParams.indexOf(node);
|
|
194
|
+
node.create({
|
|
195
|
+
index,
|
|
196
|
+
parentNode: this,
|
|
197
|
+
parentKey: 'typeParams',
|
|
198
|
+
});
|
|
199
|
+
return node;
|
|
200
|
+
}
|
|
201
|
+
getPropertyExistingNames(excludedList = []) {
|
|
202
|
+
const excludedSet = new Set(excludedList);
|
|
203
|
+
return (this.properties || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
|
|
204
|
+
}
|
|
205
|
+
getPropertyUniqueName(name = 'property1') {
|
|
206
|
+
return utils.unique(name, this.getPropertyExistingNames(), undefined, false);
|
|
207
|
+
}
|
|
208
|
+
_insertPropertyAt(options, index) {
|
|
209
|
+
const propertyOptions = {};
|
|
210
|
+
const relationOptions = { parentNode: this, parentKey: 'properties' };
|
|
211
|
+
let property;
|
|
212
|
+
if (!options) {
|
|
213
|
+
property = StructureProperty__1.default.from({
|
|
214
|
+
...propertyOptions,
|
|
215
|
+
name: this.getPropertyUniqueName(),
|
|
216
|
+
}, this, 'properties');
|
|
217
|
+
}
|
|
218
|
+
else if (typeof options === 'string') {
|
|
219
|
+
property = StructureProperty__1.default.from({
|
|
220
|
+
...propertyOptions,
|
|
221
|
+
name: options,
|
|
222
|
+
}, this, 'properties');
|
|
223
|
+
}
|
|
224
|
+
else if (options instanceof StructureProperty__1.default) {
|
|
225
|
+
options.ensureDelete(); // 同一实例不支持多处存在
|
|
226
|
+
property = options;
|
|
227
|
+
Object.assign(property, relationOptions);
|
|
228
|
+
}
|
|
229
|
+
else {
|
|
230
|
+
property = StructureProperty__1.default.from({
|
|
231
|
+
...propertyOptions,
|
|
232
|
+
...options,
|
|
233
|
+
}, this, 'properties');
|
|
234
|
+
}
|
|
235
|
+
this.properties.splice(index, 0, property);
|
|
236
|
+
return property;
|
|
237
|
+
}
|
|
238
|
+
insertPropertyAt(options, index) {
|
|
239
|
+
const node = this._insertPropertyAt(options, index);
|
|
240
|
+
node.create({
|
|
241
|
+
index,
|
|
242
|
+
parentNode: this,
|
|
243
|
+
parentKey: 'properties',
|
|
244
|
+
});
|
|
245
|
+
return node;
|
|
246
|
+
}
|
|
247
|
+
_addProperty(options) {
|
|
248
|
+
const index = this.properties.length;
|
|
249
|
+
return this._insertPropertyAt(options, index);
|
|
250
|
+
}
|
|
251
|
+
addProperty(options) {
|
|
252
|
+
const node = this._addProperty(options);
|
|
253
|
+
const index = this.properties.indexOf(node);
|
|
254
|
+
node.create({
|
|
255
|
+
index,
|
|
256
|
+
parentNode: this,
|
|
257
|
+
parentKey: 'properties',
|
|
258
|
+
});
|
|
259
|
+
return node;
|
|
260
|
+
}
|
|
261
|
+
removeTypeParam(options) {
|
|
262
|
+
let typeParam;
|
|
263
|
+
if (typeof options === 'string') {
|
|
264
|
+
typeParam = this.typeParams.find((item) => item.name === options);
|
|
265
|
+
if (!typeParam) {
|
|
266
|
+
throw new Error('找不到类型参数 ' + options);
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
else {
|
|
270
|
+
typeParam = options;
|
|
271
|
+
}
|
|
272
|
+
return typeParam.delete();
|
|
273
|
+
}
|
|
274
|
+
__removeTypeParam(typeParam) {
|
|
275
|
+
const parentKey = typeParam.parentKey;
|
|
276
|
+
const params = {
|
|
277
|
+
parentNode: this,
|
|
278
|
+
parentKey,
|
|
279
|
+
index: -1,
|
|
280
|
+
object: null,
|
|
281
|
+
oldObject: typeParam,
|
|
282
|
+
};
|
|
283
|
+
if (parentKey) {
|
|
284
|
+
params.parentKey = parentKey;
|
|
285
|
+
if (Array.isArray(this[parentKey])) {
|
|
286
|
+
const index = this[parentKey].indexOf(typeParam);
|
|
287
|
+
~index && this[parentKey].splice(index, 1);
|
|
288
|
+
params.index = index;
|
|
289
|
+
}
|
|
290
|
+
else if (this[parentKey] === typeParam) {
|
|
291
|
+
params.index = 0;
|
|
292
|
+
this[parentKey] = undefined;
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
return params;
|
|
296
|
+
}
|
|
297
|
+
removeProperty(options) {
|
|
298
|
+
let property;
|
|
299
|
+
if (typeof options === 'string') {
|
|
300
|
+
property = this.properties.find((item) => item.name === options);
|
|
301
|
+
if (!property) {
|
|
302
|
+
throw new Error('找不到数据结构属性 ' + options);
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
else {
|
|
306
|
+
property = options;
|
|
307
|
+
}
|
|
308
|
+
return property.delete();
|
|
309
|
+
}
|
|
310
|
+
__removeStructureProperty(property) {
|
|
311
|
+
const parentKey = property.parentKey;
|
|
312
|
+
const params = {
|
|
313
|
+
parentNode: this,
|
|
314
|
+
parentKey,
|
|
315
|
+
index: -1,
|
|
316
|
+
object: null,
|
|
317
|
+
oldObject: property,
|
|
318
|
+
};
|
|
319
|
+
if (parentKey) {
|
|
320
|
+
params.parentKey = parentKey;
|
|
321
|
+
if (Array.isArray(this[parentKey])) {
|
|
322
|
+
const index = this[parentKey].indexOf(property);
|
|
323
|
+
~index && this[parentKey].splice(index, 1);
|
|
324
|
+
params.index = index;
|
|
325
|
+
}
|
|
326
|
+
else if (this[parentKey] === property) {
|
|
327
|
+
params.index = 0;
|
|
328
|
+
this[parentKey] = undefined;
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
return params;
|
|
332
|
+
}
|
|
333
|
+
//================================================================================
|
|
334
|
+
// ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑
|
|
335
|
+
// 自动生成的代码已结束。下面可以手动编写。
|
|
336
|
+
//================================================================================
|
|
337
|
+
/**
|
|
338
|
+
* 是否可编辑
|
|
339
|
+
* */
|
|
340
|
+
get readonly() {
|
|
341
|
+
return !!this.module || this.origin === 'CallQueryComponent';
|
|
342
|
+
}
|
|
343
|
+
/* 删除空数据模块 */
|
|
344
|
+
deleteLogincAndModule() {
|
|
345
|
+
this.delete();
|
|
346
|
+
if (this.module && this.module.interfaces.length === 0 && this.module.structures.length === 0) {
|
|
347
|
+
this.app.removeModuleInInterfaceDependencies(this.module);
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
toEmbeddedTS(state) {
|
|
351
|
+
let code = `export class ${this.tsName} {\n`;
|
|
352
|
+
code += (0, translator_1.indent)((state?.tabSize || 0) + 1);
|
|
353
|
+
code += `__name: '${this.getTsNamespace()}.${this.tsName}';\n`;
|
|
354
|
+
this.properties.forEach((property) => {
|
|
355
|
+
code += (0, translator_1.indent)((state?.tabSize || 0) + 1);
|
|
356
|
+
code += property.toEmbeddedTS((0, translator_1.shiftState)(state, code, { tabSize: 0 }));
|
|
357
|
+
code += ';\n';
|
|
358
|
+
});
|
|
359
|
+
code += (0, translator_1.indent)((state?.tabSize || 0)) + '}\n';
|
|
360
|
+
return code;
|
|
361
|
+
}
|
|
362
|
+
getNamespace() {
|
|
363
|
+
if (this.parentNode && this.parentNode.getNamespace) {
|
|
364
|
+
const parentNamespace = this.parentNode.getNamespace();
|
|
365
|
+
const parentName = this.parentNode.name;
|
|
366
|
+
const arr = [parentNamespace];
|
|
367
|
+
if (this.parentNode.concept !== 'App' && parentName) {
|
|
368
|
+
arr.push(parentName);
|
|
369
|
+
}
|
|
370
|
+
return `${arr.join('.')}.structures`;
|
|
371
|
+
}
|
|
372
|
+
else
|
|
373
|
+
throw new Error('无法获取命名空间,请设置 parentNode!');
|
|
374
|
+
}
|
|
375
|
+
getTsNamespace() {
|
|
376
|
+
if (this.parentNode && this.parentNode.getTsNamespace) {
|
|
377
|
+
const parentNamespace = this.parentNode.getTsNamespace();
|
|
378
|
+
const parentName = this.parentNode.tsName || this.parentNode.name;
|
|
379
|
+
const arr = [parentNamespace];
|
|
380
|
+
if (this.parentNode.concept !== 'App' && parentName) {
|
|
381
|
+
arr.push(parentName);
|
|
382
|
+
}
|
|
383
|
+
return `${arr.join('.')}.structures`;
|
|
384
|
+
}
|
|
385
|
+
else {
|
|
386
|
+
throw new Error('无法获取命名空间,请设置 parentNode!');
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
/**
|
|
390
|
+
* 生成宿主语言的文件路径
|
|
391
|
+
* @param name 一般不用传,用于 rename
|
|
392
|
+
*/
|
|
393
|
+
getEmbeddedFilePath(name = this.name) {
|
|
394
|
+
const _path = this.module ? `/${this.module.parentKey}/${this.module.name}` : '';
|
|
395
|
+
return `/embedded/${this.app.name}${_path}/structures/${name}.ts`;
|
|
396
|
+
}
|
|
397
|
+
toEmbeddedTSFile() {
|
|
398
|
+
let code = `namespace ${this.getTsNamespace()} {\n`;
|
|
399
|
+
const state = (0, translator_1.createCompilerState)(code, { tabSize: 1 });
|
|
400
|
+
try {
|
|
401
|
+
code += this.toEmbeddedTS(state);
|
|
402
|
+
}
|
|
403
|
+
catch (err) {
|
|
404
|
+
code += '';
|
|
405
|
+
console.log(err);
|
|
406
|
+
}
|
|
407
|
+
code += '}\n';
|
|
408
|
+
return {
|
|
409
|
+
code,
|
|
410
|
+
filePath: this.getEmbeddedFilePath(),
|
|
411
|
+
sourceMap: state.sourceMap,
|
|
412
|
+
};
|
|
413
|
+
}
|
|
414
|
+
};
|
|
415
|
+
__decorate([
|
|
416
|
+
(0, decorators_1.property)()
|
|
417
|
+
], Structure.prototype, "name", void 0);
|
|
418
|
+
__decorate([
|
|
419
|
+
(0, decorators_1.property)()
|
|
420
|
+
], Structure.prototype, "description", void 0);
|
|
421
|
+
__decorate([
|
|
422
|
+
(0, decorators_1.property)()
|
|
423
|
+
], Structure.prototype, "origin", void 0);
|
|
424
|
+
__decorate([
|
|
425
|
+
(0, decorators_1.property)()
|
|
426
|
+
], Structure.prototype, "compilerInfoMap", void 0);
|
|
427
|
+
__decorate([
|
|
428
|
+
(0, decorators_1.property)('TypeParam')
|
|
429
|
+
], Structure.prototype, "typeParams", void 0);
|
|
430
|
+
__decorate([
|
|
431
|
+
(0, decorators_1.property)('StructureProperty')
|
|
432
|
+
], Structure.prototype, "properties", void 0);
|
|
433
|
+
__decorate([
|
|
434
|
+
(0, translator_1.withSourceMap)()
|
|
435
|
+
], Structure.prototype, "toEmbeddedTS", null);
|
|
436
|
+
Structure = Structure_1 = __decorate([
|
|
437
|
+
decorators_1.className,
|
|
438
|
+
(0, decorators_1.concept)('数据结构')
|
|
439
|
+
// @ts-ignore
|
|
440
|
+
], Structure);
|
|
441
|
+
exports.Structure = Structure;
|
|
442
|
+
exports.default = Structure;
|
|
443
|
+
//================================================================================
|
|
444
|
+
// ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑
|
|
445
|
+
// 自动生成的代码已结束。下面可以手动编写。
|
|
446
|
+
//================================================================================
|
|
447
|
+
//# sourceMappingURL=Structure__.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Structure__.js","sourceRoot":"","sources":["../../src/concepts/Structure__.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8CAAwG;AAOxG,8CAA6E;AAE7E,gDAAkC;AAElC,kEAA0C;AAC1C,+DAAsC;AACtC,+EAAsD;AAItD;;GAEG;AAIH,IAAa,SAAS;AADtB,aAAa;AACb,MAAa,SAAU,SAAQ,kBAAQ;IACnC,SAAS;IACT,MAAM,CAAU,WAAW,GAAG,WAAW,CAAC;IAE1C;;OAEG;IACH,aAAa;IACJ,OAAO,CAAe;IAE/B;;OAEG;IAGH,AADA,aAAa;IACb,IAAI,CAAU;IAEd;;OAEG;IAGH,AADA,aAAa;IACb,WAAW,CAAU;IAErB;;OAEG;IAGH,AADA,aAAa;IACb,MAAM,CAAwB;IAE9B;;OAEG;IAGH,AADA,aAAa;IACb,eAAe,CAAyD;IAExE;;OAEG;IAEH,UAAU,GAAqB,IAAI,CAAC;IAEpC;;OAEG;IAEH,UAAU,GAA6B,EAAE,CAAC;IAE1C;;OAEG;IACH,IAAI,MAAM;QACN,OAAO,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAW,CAAC;IAChD,CAAC;IACD;;OAEG;IACH,IAAI,GAAG;QACH,OAAO,IAAI,CAAC,WAAW,CAAC,KAAK,CAAQ,CAAC;IAC1C,CAAC;IAED;;OAEG;IACH,Y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A9jBG;IAFC,IAAA,qBAAQ,GAAE;uCAEG;AAOd;IAFC,IAAA,qBAAQ,GAAE;8CAEU;AAOrB;IAFC,IAAA,qBAAQ,GAAE;yCAEmB;AAO9B;IAFC,IAAA,qBAAQ,GAAE;kDAE6D;AAMxE;IADC,IAAA,qBAAQ,EAAC,WAAW,CAAC;6CACc;AAMpC;IADC,IAAA,qBAAQ,EAAC,mBAAmB,CAAC;6CACY;AAod1C;IADC,IAAA,0BAAa,GAAE;6CAaf;AAhhBQ,SAAS;IAHrB,sBAAS;IACT,IAAA,oBAAO,EAAC,MAAM,CAAC;IAChB,aAAa;GACA,SAAS,CA6kBrB;AA7kBY,8BAAS;AA+kBtB,kBAAe,SAAS,CAAC;AACzB,kFAAkF;AAClF,gEAAgE;AAChE,uBAAuB;AACvB,kFAAkF"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { TranslatorState } from '../translator';
|
|
2
|
+
import { Params } from '../common/EventEmitter';
|
|
3
|
+
import LogicItem from './LogicItem__';
|
|
4
|
+
/**
|
|
5
|
+
* 选择分支情况
|
|
6
|
+
*/
|
|
7
|
+
export declare class SwitchCase extends LogicItem {
|
|
8
|
+
/** 类名 */
|
|
9
|
+
static readonly ConceptName = "SwitchCase";
|
|
10
|
+
/**
|
|
11
|
+
* 产品概念
|
|
12
|
+
*/
|
|
13
|
+
readonly concept: 'SwitchCase';
|
|
14
|
+
/**
|
|
15
|
+
* 条件表达式
|
|
16
|
+
*/
|
|
17
|
+
test: LogicItem;
|
|
18
|
+
/**
|
|
19
|
+
* then
|
|
20
|
+
*/
|
|
21
|
+
consequent: Array<LogicItem>;
|
|
22
|
+
/**
|
|
23
|
+
* @param source 需要合并的部分参数
|
|
24
|
+
*/
|
|
25
|
+
constructor(source?: Partial<SwitchCase>);
|
|
26
|
+
static from(source: any, parentNode?: any, parentKey?: string): SwitchCase;
|
|
27
|
+
/**
|
|
28
|
+
* 设置条件表达式
|
|
29
|
+
*/
|
|
30
|
+
setTest(test: LogicItem): void;
|
|
31
|
+
/**
|
|
32
|
+
* 插入逻辑项
|
|
33
|
+
* @internal
|
|
34
|
+
* @param logicItemOptions 逻辑项参数
|
|
35
|
+
*/
|
|
36
|
+
_insertItemAt(logicItemOptions: Partial<LogicItem>, index: number): LogicItem;
|
|
37
|
+
/**
|
|
38
|
+
* 插入逻辑项
|
|
39
|
+
* @internal
|
|
40
|
+
* @param logicItem 已有的逻辑项实例
|
|
41
|
+
*/
|
|
42
|
+
_insertItemAt(logicItem: LogicItem, index: number): LogicItem;
|
|
43
|
+
/**
|
|
44
|
+
* 插入逻辑项
|
|
45
|
+
* @param logicItemOptions 逻辑项参数
|
|
46
|
+
*/
|
|
47
|
+
insertItemAt(logicItemOptions: Partial<LogicItem>, index: number): LogicItem;
|
|
48
|
+
/**
|
|
49
|
+
* 插入逻辑项
|
|
50
|
+
* @param logicItem 已有的逻辑项实例
|
|
51
|
+
*/
|
|
52
|
+
insertItemAt(logicItem: LogicItem, index: number): LogicItem;
|
|
53
|
+
/**
|
|
54
|
+
* 添加逻辑项
|
|
55
|
+
* @internal
|
|
56
|
+
* @param logicItemOptions 逻辑项参数
|
|
57
|
+
*/
|
|
58
|
+
_addItem(logicItemOptions: Partial<LogicItem>): LogicItem;
|
|
59
|
+
/**
|
|
60
|
+
* 添加逻辑项
|
|
61
|
+
* @internal
|
|
62
|
+
* @param logicItem 已有的逻辑项实例
|
|
63
|
+
*/
|
|
64
|
+
_addItem(logicItem: LogicItem): LogicItem;
|
|
65
|
+
/**
|
|
66
|
+
* 添加逻辑项
|
|
67
|
+
* @param logicItemOptions 逻辑项参数
|
|
68
|
+
*/
|
|
69
|
+
addItem(logicItemOptions: Partial<LogicItem>): LogicItem;
|
|
70
|
+
/**
|
|
71
|
+
* 添加逻辑项
|
|
72
|
+
* @param logicItem 已有的逻辑项实例
|
|
73
|
+
*/
|
|
74
|
+
addItem(logicItem: LogicItem): LogicItem;
|
|
75
|
+
/**
|
|
76
|
+
* 删除逻辑项
|
|
77
|
+
* @param name 逻辑项名称
|
|
78
|
+
*/
|
|
79
|
+
removeTest(name: string): void;
|
|
80
|
+
/**
|
|
81
|
+
* 删除逻辑项
|
|
82
|
+
* @param test 已有的逻辑项实例
|
|
83
|
+
*/
|
|
84
|
+
removeTest(test: LogicItem): void;
|
|
85
|
+
/**
|
|
86
|
+
* 删除逻辑项
|
|
87
|
+
* @param logicItem 已有的逻辑项实例
|
|
88
|
+
*/
|
|
89
|
+
removeItemInConsequent(logicItem: LogicItem): void;
|
|
90
|
+
__removeLogicItem(logicItem: LogicItem): Params;
|
|
91
|
+
toJS(state?: TranslatorState, index?: number, length?: number): string;
|
|
92
|
+
toEmbeddedTS(state?: TranslatorState, isLast?: boolean): string;
|
|
93
|
+
}
|
|
94
|
+
export default SwitchCase;
|