@lcap/nasl 2.20.1-beta.2 → 2.21.0-beta.1
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/docs/classes/EntityProperty.html +1 -1
- package/out/automate/engine/operators.d.ts +9 -0
- package/out/automate/engine/viewCache.d.ts +1 -0
- package/out/automate/template/myProcess.d.ts +1 -0
- package/out/bak/translator.js +2 -2
- package/out/bak/translator.js.map +1 -1
- package/out/common/BaseNode.d.ts +5 -0
- package/out/common/BaseNode.js +24 -4
- package/out/common/BaseNode.js.map +1 -1
- package/out/common/Command.d.ts +1 -1
- package/out/common/EventEmitter.d.ts +2 -1
- package/out/common/EventEmitter.js +3 -0
- package/out/common/EventEmitter.js.map +1 -1
- package/out/common/Messager.js +1 -0
- package/out/common/Messager.js.map +1 -1
- package/out/concepts/Abort__.d.ts +23 -0
- package/out/concepts/Abort__.js +74 -0
- package/out/concepts/Abort__.js.map +1 -0
- package/out/concepts/Anchor__.d.ts +1 -0
- package/out/concepts/Anchor__.js +3 -0
- package/out/concepts/Anchor__.js.map +1 -1
- package/out/concepts/AnonymousFunction__.d.ts +1 -0
- package/out/concepts/AnonymousFunction__.js +3 -0
- package/out/concepts/AnonymousFunction__.js.map +1 -1
- package/out/concepts/App__.d.ts +10 -0
- package/out/concepts/App__.js +23 -1
- package/out/concepts/App__.js.map +1 -1
- package/out/concepts/Argument__.d.ts +1 -0
- package/out/concepts/Argument__.js +3 -0
- package/out/concepts/Argument__.js.map +1 -1
- package/out/concepts/Assignee__.d.ts +1 -0
- package/out/concepts/Assignee__.js +3 -0
- package/out/concepts/Assignee__.js.map +1 -1
- package/out/concepts/AssignmentLine__.d.ts +1 -0
- package/out/concepts/AssignmentLine__.js +3 -0
- package/out/concepts/AssignmentLine__.js.map +1 -1
- package/out/concepts/Assignment__.d.ts +1 -0
- package/out/concepts/Assignment__.js +3 -0
- package/out/concepts/Assignment__.js.map +1 -1
- package/out/concepts/Attribute__.d.ts +1 -0
- package/out/concepts/Attribute__.js +3 -0
- package/out/concepts/Attribute__.js.map +1 -1
- package/out/concepts/BatchAssignment__.d.ts +1 -0
- package/out/concepts/BatchAssignment__.js +3 -0
- package/out/concepts/BatchAssignment__.js.map +1 -1
- package/out/concepts/BinaryExpression__.d.ts +1 -0
- package/out/concepts/BinaryExpression__.js +3 -0
- package/out/concepts/BinaryExpression__.js.map +1 -1
- package/out/concepts/BindAttribute__.d.ts +1 -0
- package/out/concepts/BindAttribute__.js +5 -9
- package/out/concepts/BindAttribute__.js.map +1 -1
- package/out/concepts/BindDirective__.d.ts +1 -0
- package/out/concepts/BindDirective__.js +5 -2
- package/out/concepts/BindDirective__.js.map +1 -1
- package/out/concepts/BindEvent__.d.ts +1 -0
- package/out/concepts/BindEvent__.js +3 -0
- package/out/concepts/BindEvent__.js.map +1 -1
- package/out/concepts/BindStyle__.d.ts +1 -0
- package/out/concepts/BindStyle__.js +3 -0
- package/out/concepts/BindStyle__.js.map +1 -1
- package/out/concepts/BooleanLiteral__.d.ts +1 -0
- package/out/concepts/BooleanLiteral__.js +3 -0
- package/out/concepts/BooleanLiteral__.js.map +1 -1
- package/out/concepts/CallFunction__.d.ts +1 -0
- package/out/concepts/CallFunction__.js +3 -0
- package/out/concepts/CallFunction__.js.map +1 -1
- package/out/concepts/CallInterface__.d.ts +2 -0
- package/out/concepts/CallInterface__.js +34 -1
- package/out/concepts/CallInterface__.js.map +1 -1
- package/out/concepts/CallLogic__.d.ts +9 -0
- package/out/concepts/CallLogic__.js +53 -41
- package/out/concepts/CallLogic__.js.map +1 -1
- package/out/concepts/CallQueryComponent__.d.ts +1 -0
- package/out/concepts/CallQueryComponent__.js +19 -16
- package/out/concepts/CallQueryComponent__.js.map +1 -1
- package/out/concepts/Comment__.d.ts +1 -0
- package/out/concepts/Comment__.js +3 -0
- package/out/concepts/Comment__.js.map +1 -1
- package/out/concepts/CompletionProperty__.d.ts +2 -0
- package/out/concepts/CompletionProperty__.js +4 -0
- package/out/concepts/CompletionProperty__.js.map +1 -1
- package/out/concepts/ConfigGroup__.d.ts +1 -0
- package/out/concepts/ConfigGroup__.js +3 -0
- package/out/concepts/ConfigGroup__.js.map +1 -1
- package/out/concepts/ConfigPropertyValue__.d.ts +1 -0
- package/out/concepts/ConfigPropertyValue__.js +3 -0
- package/out/concepts/ConfigPropertyValue__.js.map +1 -1
- package/out/concepts/ConfigProperty__.d.ts +1 -0
- package/out/concepts/ConfigProperty__.js +3 -0
- package/out/concepts/ConfigProperty__.js.map +1 -1
- package/out/concepts/Configuration__.d.ts +1 -0
- package/out/concepts/Configuration__.js +3 -0
- package/out/concepts/Configuration__.js.map +1 -1
- package/out/concepts/Constant__.d.ts +1 -0
- package/out/concepts/Constant__.js +3 -0
- package/out/concepts/Constant__.js.map +1 -1
- package/out/concepts/DataElement__.d.ts +1 -0
- package/out/concepts/DataElement__.js +3 -0
- package/out/concepts/DataElement__.js.map +1 -1
- package/out/concepts/DataSource__.d.ts +2 -0
- package/out/concepts/DataSource__.js +8 -2
- package/out/concepts/DataSource__.js.map +1 -1
- package/out/concepts/DatabaseTypeAnnotation__.d.ts +30 -0
- package/out/concepts/DatabaseTypeAnnotation__.js +75 -0
- package/out/concepts/DatabaseTypeAnnotation__.js.map +1 -0
- package/out/concepts/Destination__.d.ts +2 -0
- package/out/concepts/Destination__.js +33 -10
- package/out/concepts/Destination__.js.map +1 -1
- package/out/concepts/End__.d.ts +1 -0
- package/out/concepts/End__.js +3 -0
- package/out/concepts/End__.js.map +1 -1
- package/out/concepts/EntityIndex__.d.ts +2 -1
- package/out/concepts/EntityIndex__.js +3 -0
- package/out/concepts/EntityIndex__.js.map +1 -1
- package/out/concepts/EntityProperty__.d.ts +23 -2
- package/out/concepts/EntityProperty__.js +61 -1
- package/out/concepts/EntityProperty__.js.map +1 -1
- package/out/concepts/Entity__.d.ts +1 -0
- package/out/concepts/Entity__.js +3 -0
- package/out/concepts/Entity__.js.map +1 -1
- package/out/concepts/EnumItem__.d.ts +1 -0
- package/out/concepts/EnumItem__.js +3 -0
- package/out/concepts/EnumItem__.js.map +1 -1
- package/out/concepts/Enum__.d.ts +1 -0
- package/out/concepts/Enum__.js +3 -0
- package/out/concepts/Enum__.js.map +1 -1
- package/out/concepts/Event__.d.ts +1 -0
- package/out/concepts/Event__.js +3 -0
- package/out/concepts/Event__.js.map +1 -1
- package/out/concepts/ExternalDestination__.d.ts +1 -0
- package/out/concepts/ExternalDestination__.js +3 -0
- package/out/concepts/ExternalDestination__.js.map +1 -1
- package/out/concepts/ForEachStatement__.d.ts +1 -0
- package/out/concepts/ForEachStatement__.js +3 -0
- package/out/concepts/ForEachStatement__.js.map +1 -1
- package/out/concepts/FrontendLibrary__.d.ts +1 -0
- package/out/concepts/FrontendLibrary__.js +3 -0
- package/out/concepts/FrontendLibrary__.js.map +1 -1
- package/out/concepts/Frontend__.d.ts +2 -0
- package/out/concepts/Frontend__.js +16 -0
- package/out/concepts/Frontend__.js.map +1 -1
- package/out/concepts/Function__.d.ts +1 -0
- package/out/concepts/Function__.js +3 -0
- package/out/concepts/Function__.js.map +1 -1
- package/out/concepts/Identifier__.d.ts +1 -0
- package/out/concepts/Identifier__.js +3 -0
- package/out/concepts/Identifier__.js.map +1 -1
- package/out/concepts/IfStatement__.d.ts +1 -0
- package/out/concepts/IfStatement__.js +3 -0
- package/out/concepts/IfStatement__.js.map +1 -1
- package/out/concepts/InterfaceParam__.d.ts +1 -0
- package/out/concepts/InterfaceParam__.js +3 -0
- package/out/concepts/InterfaceParam__.js.map +1 -1
- package/out/concepts/Interface__.d.ts +13 -0
- package/out/concepts/Interface__.js +61 -0
- package/out/concepts/Interface__.js.map +1 -1
- package/out/concepts/JSBlock__.d.ts +1 -0
- package/out/concepts/JSBlock__.js +3 -0
- package/out/concepts/JSBlock__.js.map +1 -1
- package/out/concepts/LogicItem__.d.ts +2 -1
- package/out/concepts/LogicItem__.js +3 -0
- package/out/concepts/LogicItem__.js.map +1 -1
- package/out/concepts/Logic__.d.ts +3 -1
- package/out/concepts/Logic__.js +66 -24
- package/out/concepts/Logic__.js.map +1 -1
- package/out/concepts/MatchCase__.d.ts +1 -0
- package/out/concepts/MatchCase__.js +3 -0
- package/out/concepts/MatchCase__.js.map +1 -1
- package/out/concepts/Match__.d.ts +4 -1
- package/out/concepts/Match__.js +77 -2
- package/out/concepts/Match__.js.map +1 -1
- package/out/concepts/MemberExpression__.d.ts +1 -0
- package/out/concepts/MemberExpression__.js +3 -0
- package/out/concepts/MemberExpression__.js.map +1 -1
- package/out/concepts/Module__.d.ts +14 -1
- package/out/concepts/Module__.js +10 -0
- package/out/concepts/Module__.js.map +1 -1
- package/out/concepts/Namespace__.d.ts +1 -0
- package/out/concepts/Namespace__.js +3 -0
- package/out/concepts/Namespace__.js.map +1 -1
- package/out/concepts/NewComposite__.d.ts +1 -0
- package/out/concepts/NewComposite__.js +3 -0
- package/out/concepts/NewComposite__.js.map +1 -1
- package/out/concepts/NewList__.d.ts +1 -0
- package/out/concepts/NewList__.js +3 -0
- package/out/concepts/NewList__.js.map +1 -1
- package/out/concepts/NewMap__.d.ts +1 -0
- package/out/concepts/NewMap__.js +3 -0
- package/out/concepts/NewMap__.js.map +1 -1
- package/out/concepts/New__.d.ts +1 -0
- package/out/concepts/New__.js +3 -0
- package/out/concepts/New__.js.map +1 -1
- package/out/concepts/NullLiteral__.d.ts +1 -0
- package/out/concepts/NullLiteral__.js +3 -0
- package/out/concepts/NullLiteral__.js.map +1 -1
- package/out/concepts/NumericLiteral__.d.ts +1 -0
- package/out/concepts/NumericLiteral__.js +6 -9
- package/out/concepts/NumericLiteral__.js.map +1 -1
- package/out/concepts/OqlQueryComponent__.d.ts +1 -0
- package/out/concepts/OqlQueryComponent__.js +3 -0
- package/out/concepts/OqlQueryComponent__.js.map +1 -1
- package/out/concepts/Param__.d.ts +1 -0
- package/out/concepts/Param__.js +3 -0
- package/out/concepts/Param__.js.map +1 -1
- package/out/concepts/Point__.d.ts +1 -0
- package/out/concepts/Point__.js +3 -0
- package/out/concepts/Point__.js.map +1 -1
- package/out/concepts/ProcessComponent__.d.ts +1 -0
- package/out/concepts/ProcessComponent__.js +3 -0
- package/out/concepts/ProcessComponent__.js.map +1 -1
- package/out/concepts/ProcessElement__.d.ts +1 -0
- package/out/concepts/ProcessElement__.js +3 -0
- package/out/concepts/ProcessElement__.js.map +1 -1
- package/out/concepts/ProcessOutcome__.d.ts +1 -0
- package/out/concepts/ProcessOutcome__.js +3 -0
- package/out/concepts/ProcessOutcome__.js.map +1 -1
- package/out/concepts/ProcessOutcomes__.d.ts +1 -0
- package/out/concepts/ProcessOutcomes__.js +3 -0
- package/out/concepts/ProcessOutcomes__.js.map +1 -1
- package/out/concepts/Process__.d.ts +1 -0
- package/out/concepts/Process__.js +3 -0
- package/out/concepts/Process__.js.map +1 -1
- package/out/concepts/QueryAggregateExpression__.d.ts +1 -0
- package/out/concepts/QueryAggregateExpression__.js +3 -0
- package/out/concepts/QueryAggregateExpression__.js.map +1 -1
- package/out/concepts/QueryFieldExpression__.d.ts +1 -0
- package/out/concepts/QueryFieldExpression__.js +3 -0
- package/out/concepts/QueryFieldExpression__.js.map +1 -1
- package/out/concepts/QueryFromExpression__.d.ts +1 -0
- package/out/concepts/QueryFromExpression__.js +3 -0
- package/out/concepts/QueryFromExpression__.js.map +1 -1
- package/out/concepts/QueryGroupByExpression__.d.ts +1 -0
- package/out/concepts/QueryGroupByExpression__.js +3 -0
- package/out/concepts/QueryGroupByExpression__.js.map +1 -1
- package/out/concepts/QueryJoinExpression__.d.ts +1 -0
- package/out/concepts/QueryJoinExpression__.js +3 -0
- package/out/concepts/QueryJoinExpression__.js.map +1 -1
- package/out/concepts/QueryLimitExpression__.d.ts +1 -0
- package/out/concepts/QueryLimitExpression__.js +3 -0
- package/out/concepts/QueryLimitExpression__.js.map +1 -1
- package/out/concepts/QueryOrderByExpression__.d.ts +1 -0
- package/out/concepts/QueryOrderByExpression__.js +3 -0
- package/out/concepts/QueryOrderByExpression__.js.map +1 -1
- package/out/concepts/QuerySelectExpression__.d.ts +1 -0
- package/out/concepts/QuerySelectExpression__.js +3 -0
- package/out/concepts/QuerySelectExpression__.js.map +1 -1
- package/out/concepts/Rect__.d.ts +1 -0
- package/out/concepts/Rect__.js +3 -0
- package/out/concepts/Rect__.js.map +1 -1
- package/out/concepts/Return__.d.ts +1 -0
- package/out/concepts/Return__.js +3 -0
- package/out/concepts/Return__.js.map +1 -1
- package/out/concepts/Role__.d.ts +1 -0
- package/out/concepts/Role__.js +3 -0
- package/out/concepts/Role__.js.map +1 -1
- package/out/concepts/SelectMembers__.d.ts +1 -0
- package/out/concepts/SelectMembers__.js +3 -0
- package/out/concepts/SelectMembers__.js.map +1 -1
- package/out/concepts/Slot__.d.ts +1 -0
- package/out/concepts/Slot__.js +3 -0
- package/out/concepts/Slot__.js.map +1 -1
- package/out/concepts/SqlQueryComponent__.d.ts +1 -0
- package/out/concepts/SqlQueryComponent__.js +3 -0
- package/out/concepts/SqlQueryComponent__.js.map +1 -1
- package/out/concepts/Start__.d.ts +1 -0
- package/out/concepts/Start__.js +3 -0
- package/out/concepts/Start__.js.map +1 -1
- package/out/concepts/StringInterpolation__.d.ts +1 -0
- package/out/concepts/StringInterpolation__.js +3 -0
- package/out/concepts/StringInterpolation__.js.map +1 -1
- package/out/concepts/StringLiteral__.d.ts +1 -0
- package/out/concepts/StringLiteral__.js +3 -0
- package/out/concepts/StringLiteral__.js.map +1 -1
- package/out/concepts/StructureProperty__.d.ts +9 -0
- package/out/concepts/StructureProperty__.js +21 -0
- package/out/concepts/StructureProperty__.js.map +1 -1
- package/out/concepts/Structure__.d.ts +1 -0
- package/out/concepts/Structure__.js +3 -0
- package/out/concepts/Structure__.js.map +1 -1
- package/out/concepts/SwitchCase__.d.ts +1 -0
- package/out/concepts/SwitchCase__.js +3 -0
- package/out/concepts/SwitchCase__.js.map +1 -1
- package/out/concepts/SwitchStatement__.d.ts +1 -0
- package/out/concepts/SwitchStatement__.js +3 -0
- package/out/concepts/SwitchStatement__.js.map +1 -1
- package/out/concepts/Theme__.d.ts +1 -0
- package/out/concepts/Theme__.js +3 -0
- package/out/concepts/Theme__.js.map +1 -1
- package/out/concepts/Transactional__.d.ts +1 -0
- package/out/concepts/Transactional__.js +3 -0
- package/out/concepts/Transactional__.js.map +1 -1
- package/out/concepts/TypeAnnotation__.d.ts +4 -1
- package/out/concepts/TypeAnnotation__.js +34 -12
- package/out/concepts/TypeAnnotation__.js.map +1 -1
- package/out/concepts/TypeParam__.d.ts +1 -0
- package/out/concepts/TypeParam__.js +3 -0
- package/out/concepts/TypeParam__.js.map +1 -1
- package/out/concepts/UnaryExpression__.d.ts +1 -0
- package/out/concepts/UnaryExpression__.js +3 -0
- package/out/concepts/UnaryExpression__.js.map +1 -1
- package/out/concepts/Unparsed__.d.ts +1 -0
- package/out/concepts/Unparsed__.js +3 -0
- package/out/concepts/Unparsed__.js.map +1 -1
- package/out/concepts/UseComponent__.d.ts +1 -0
- package/out/concepts/UseComponent__.js +3 -0
- package/out/concepts/UseComponent__.js.map +1 -1
- package/out/concepts/ValidationRule__.d.ts +1 -0
- package/out/concepts/ValidationRule__.js +3 -0
- package/out/concepts/ValidationRule__.js.map +1 -1
- package/out/concepts/Variable__.d.ts +1 -0
- package/out/concepts/Variable__.js +3 -0
- package/out/concepts/Variable__.js.map +1 -1
- package/out/concepts/ViewBlock__.d.ts +1 -0
- package/out/concepts/ViewBlock__.js +3 -0
- package/out/concepts/ViewBlock__.js.map +1 -1
- package/out/concepts/ViewComponent__.d.ts +1 -0
- package/out/concepts/ViewComponent__.js +3 -0
- package/out/concepts/ViewComponent__.js.map +1 -1
- package/out/concepts/ViewElement__.d.ts +2 -1
- package/out/concepts/ViewElement__.js +8 -1
- package/out/concepts/ViewElement__.js.map +1 -1
- package/out/concepts/View__.d.ts +2 -0
- package/out/concepts/View__.js +19 -1
- package/out/concepts/View__.js.map +1 -1
- package/out/concepts/WhileStatement__.d.ts +1 -0
- package/out/concepts/WhileStatement__.js +3 -0
- package/out/concepts/WhileStatement__.js.map +1 -1
- package/out/concepts/basics/stdlib/nasl.collection.js +2 -2
- package/out/concepts/basics/stdlib/nasl.collection.js.map +1 -1
- package/out/concepts/basics/stdlib/nasl.core.js +3 -3
- package/out/concepts/basics/stdlib/nasl.core.js.map +1 -1
- package/out/concepts/basics/stdlib/nasl.interface.js +1 -1
- package/out/concepts/basics/stdlib/nasl.interface.js.map +1 -1
- package/out/concepts/basics/stdlib/nasl.process.js +6 -6
- package/out/concepts/basics/stdlib/nasl.process.js.map +1 -1
- package/out/concepts/basics/stdlib/nasl.ui.js +56 -43
- package/out/concepts/basics/stdlib/nasl.ui.js.map +1 -1
- package/out/concepts/basics/stdlib/nasl.util.js +46 -19
- package/out/concepts/basics/stdlib/nasl.util.js.map +1 -1
- package/out/concepts/basics/stdlib/nasl.validation.js +13 -13
- package/out/concepts/basics/stdlib/nasl.validation.js.map +1 -1
- package/out/concepts/basics/types/coreTypeList.js +1 -5
- package/out/concepts/basics/types/coreTypeList.js.map +1 -1
- package/out/concepts/index__.d.ts +2 -0
- package/out/concepts/index__.js +2 -0
- package/out/concepts/index__.js.map +1 -1
- package/out/config.d.ts +1 -1
- package/out/decorators/index.d.ts +2 -2
- package/out/decorators/index.js +3 -3
- package/out/decorators/index.js.map +1 -1
- package/out/generator/genBundleFiles.js +10 -8
- package/out/generator/genBundleFiles.js.map +1 -1
- package/out/generator/genReleaseBody.js +4 -1
- package/out/generator/genReleaseBody.js.map +1 -1
- package/out/generator/permission.d.ts +1 -1
- package/out/server/entity2LogicNamespace.js +1 -1
- package/out/server/entity2LogicNamespace.js.map +1 -1
- package/out/server/extendBaseNode.js +11 -0
- package/out/server/extendBaseNode.js.map +1 -1
- package/out/server/formatTsUtils.js +3 -2
- package/out/server/formatTsUtils.js.map +1 -1
- package/out/server/getMemberIdentifier.js +3 -2
- package/out/server/getMemberIdentifier.js.map +1 -1
- package/out/server/getProcesses.d.ts +3 -3
- package/out/server/getScope.d.ts +1 -1
- package/out/server/naslServer.d.ts +2 -2
- package/out/server/naslServer.js +111 -55
- package/out/server/naslServer.js.map +1 -1
- package/out/server/translator.js +1 -1
- package/out/server/translator.js.map +1 -1
- package/out/service/creator/add.configs.js +2 -0
- package/out/service/creator/add.configs.js.map +1 -1
- package/out/service/creator/index.js +2 -0
- package/out/service/creator/index.js.map +1 -1
- package/out/service/storage/api.d.ts +18 -0
- package/out/service/storage/api.js +12 -0
- package/out/service/storage/api.js.map +1 -1
- package/out/service/storage/init.d.ts +41 -1
- package/out/service/storage/init.js +179 -44
- package/out/service/storage/init.js.map +1 -1
- package/out/service/storage/service.d.ts +9 -1
- package/out/service/storage/service.js +27 -1
- package/out/service/storage/service.js.map +1 -1
- package/out/templator/genEditTableBlock.js +1 -1
- package/out/templator/genQueryComponent.js +2 -2
- package/out/templator/genQueryComponent.js.map +1 -1
- package/out/templator/genTableBlock.js +2 -2
- package/out/templator/genTableBlock.js.map +1 -1
- package/out/templator/utils.d.ts +0 -32
- package/out/templator/utils.js +7 -7
- package/out/templator/utils.js.map +1 -1
- package/out/translator/index.d.ts +1 -1
- package/out/translator/lsp.d.ts +3 -3
- package/out/utils/index.d.ts +4 -4
- package/package.json +1 -1
- package/sandbox/stdlib/dist/nasl.logging.js +0 -0
- package/sandbox/stdlib/dist/nasl.util.js +0 -0
- package/sandbox/stdlib/nasl.auth.ts +1 -3
- package/sandbox/stdlib/nasl.browser.ts +1 -1
- package/sandbox/stdlib/nasl.collection.ts +9 -9
- package/sandbox/stdlib/nasl.core.ts +38 -100
- package/sandbox/stdlib/nasl.interface.ts +1 -1
- package/sandbox/stdlib/nasl.langUtil.ts +4 -4
- package/sandbox/stdlib/nasl.oql.ts +156 -156
- package/sandbox/stdlib/nasl.process.ts +6 -6
- package/sandbox/stdlib/nasl.ui.ts +47 -43
- package/sandbox/stdlib/nasl.util.ts +41 -39
- package/sandbox/stdlib/nasl.validation.ts +8 -8
- package/src/automate/engine/dist/index.dev.js +517 -0
- package/src/bak/translator.js +2 -2
- package/src/common/BaseNode.ts +23 -5
- package/src/common/EventEmitter.ts +3 -0
- package/src/common/Messager.ts +1 -0
- package/src/common/dist/BaseNode.js +1101 -0
- package/src/concepts/Abort__.ts +83 -0
- package/src/concepts/Anchor__.ts +3 -0
- package/src/concepts/AnonymousFunction__.ts +3 -0
- package/src/concepts/App__.ts +66 -8
- package/src/concepts/Argument__.ts +3 -0
- package/src/concepts/Assignee__.ts +3 -0
- package/src/concepts/AssignmentLine__.ts +3 -0
- package/src/concepts/Assignment__.ts +3 -0
- package/src/concepts/Attribute__.ts +8 -0
- package/src/concepts/BatchAssignment__.ts +3 -0
- package/src/concepts/BinaryExpression__.ts +3 -0
- package/src/concepts/BindAttribute__.ts +9 -10
- package/src/concepts/BindDirective__.ts +5 -2
- package/src/concepts/BindEvent__.ts +3 -0
- package/src/concepts/BindStyle__.ts +3 -0
- package/src/concepts/BooleanLiteral__.ts +3 -0
- package/src/concepts/CallFunction__.ts +4 -0
- package/src/concepts/CallInterface__.ts +36 -1
- package/src/concepts/CallLogic__.ts +84 -41
- package/src/concepts/CallQueryComponent__.ts +19 -74
- package/src/concepts/Comment__.ts +3 -0
- package/src/concepts/CompletionProperty__.ts +5 -0
- package/src/concepts/ConfigGroup__.ts +7 -1
- package/src/concepts/ConfigPropertyValue__.ts +3 -4
- package/src/concepts/ConfigProperty__.ts +7 -1
- package/src/concepts/Configuration__.ts +8 -1
- package/src/concepts/Constant__.ts +3 -0
- package/src/concepts/DataElement__.ts +3 -0
- package/src/concepts/DataSource__.ts +13 -3
- package/src/concepts/DatabaseTypeAnnotation__.ts +85 -0
- package/src/concepts/Destination__.ts +34 -10
- package/src/concepts/End__.ts +3 -0
- package/src/concepts/EntityIndex__.ts +3 -0
- package/src/concepts/EntityProperty__.ts +76 -1
- package/src/concepts/Entity__.ts +3 -0
- package/src/concepts/EnumItem__.ts +3 -0
- package/src/concepts/Enum__.ts +3 -0
- package/src/concepts/Event__.ts +3 -0
- package/src/concepts/ExternalDestination__.ts +3 -0
- package/src/concepts/ForEachStatement__.ts +3 -0
- package/src/concepts/FrontendLibrary__.ts +3 -0
- package/src/concepts/Frontend__.ts +17 -0
- package/src/concepts/Function__.ts +3 -0
- package/src/concepts/Identifier__.ts +3 -0
- package/src/concepts/IfStatement__.ts +3 -0
- package/src/concepts/InterfaceParam__.ts +3 -0
- package/src/concepts/Interface__.ts +61 -0
- package/src/concepts/JSBlock__.ts +3 -0
- package/src/concepts/LogicItem__.ts +4 -5
- package/src/concepts/Logic__.ts +111 -34
- package/src/concepts/MatchCase__.ts +3 -0
- package/src/concepts/Match__.ts +77 -2
- package/src/concepts/MemberExpression__.ts +3 -0
- package/src/concepts/Module__.ts +40 -2
- package/src/concepts/Namespace__.ts +3 -0
- package/src/concepts/NewComposite__.ts +18 -1
- package/src/concepts/NewList__.ts +3 -0
- package/src/concepts/NewMap__.ts +14 -1
- package/src/concepts/New__.ts +3 -0
- package/src/concepts/NullLiteral__.ts +3 -0
- package/src/concepts/NumericLiteral__.ts +7 -18
- package/src/concepts/OqlQueryComponent__.ts +10 -0
- package/src/concepts/Param__.ts +3 -0
- package/src/concepts/Point__.ts +3 -0
- package/src/concepts/ProcessComponent__.ts +3 -0
- package/src/concepts/ProcessElement__.ts +3 -0
- package/src/concepts/ProcessOutcome__.ts +3 -0
- package/src/concepts/ProcessOutcomes__.ts +3 -0
- package/src/concepts/Process__.ts +3 -0
- package/src/concepts/QueryAggregateExpression__.ts +3 -0
- package/src/concepts/QueryFieldExpression__.ts +3 -0
- package/src/concepts/QueryFromExpression__.ts +3 -0
- package/src/concepts/QueryGroupByExpression__.ts +3 -0
- package/src/concepts/QueryJoinExpression__.ts +3 -0
- package/src/concepts/QueryLimitExpression__.ts +3 -0
- package/src/concepts/QueryOrderByExpression__.ts +3 -0
- package/src/concepts/QuerySelectExpression__.ts +3 -0
- package/src/concepts/Rect__.ts +3 -8
- package/src/concepts/Return__.ts +3 -0
- package/src/concepts/Role__.ts +3 -0
- package/src/concepts/SelectMembers__.ts +3 -0
- package/src/concepts/Slot__.ts +3 -0
- package/src/concepts/SqlQueryComponent__.ts +3 -0
- package/src/concepts/Start__.ts +3 -0
- package/src/concepts/StringInterpolation__.ts +3 -0
- package/src/concepts/StringLiteral__.ts +3 -0
- package/src/concepts/StructureProperty__.ts +21 -0
- package/src/concepts/Structure__.ts +3 -0
- package/src/concepts/SwitchCase__.ts +3 -0
- package/src/concepts/SwitchStatement__.ts +3 -0
- package/src/concepts/Theme__.ts +3 -0
- package/src/concepts/Transactional__.ts +3 -0
- package/src/concepts/TypeAnnotation__.ts +37 -50
- package/src/concepts/TypeParam__.ts +3 -0
- package/src/concepts/UnaryExpression__.ts +3 -0
- package/src/concepts/Unparsed__.ts +3 -0
- package/src/concepts/UseComponent__.ts +3 -0
- package/src/concepts/ValidationRule__.ts +3 -0
- package/src/concepts/Variable__.ts +3 -0
- package/src/concepts/ViewBlock__.ts +3 -0
- package/src/concepts/ViewComponent__.ts +3 -0
- package/src/concepts/ViewElement__.ts +17 -28
- package/src/concepts/View__.ts +20 -1
- package/src/concepts/WhileStatement__.ts +3 -0
- package/src/concepts/basics/stdlib/dist/nasl.util.js +1602 -0
- package/src/concepts/basics/stdlib/dist/reference2TypeAnnotationList.js +24 -0
- package/src/concepts/basics/stdlib/nasl.collection.ts +2 -2
- package/src/concepts/basics/stdlib/nasl.core.ts +3 -3
- package/src/concepts/basics/stdlib/nasl.interface.ts +1 -1
- package/src/concepts/basics/stdlib/nasl.process.ts +6 -6
- package/src/concepts/basics/stdlib/nasl.ui.ts +56 -43
- package/src/concepts/basics/stdlib/nasl.util.ts +46 -19
- package/src/concepts/basics/stdlib/nasl.validation.ts +13 -13
- package/src/concepts/basics/types/coreTypeList.ts +1 -5
- package/src/concepts/dist/BindAttribute__.js +795 -0
- package/src/concepts/dist/BindEvent__.js +732 -0
- package/src/concepts/dist/CallFunction__.js +527 -0
- package/src/concepts/dist/CallLogic__.js +932 -0
- package/src/concepts/dist/Destination__.js +708 -0
- package/src/concepts/dist/ExternalDestination__.js +298 -0
- package/src/concepts/dist/Identifier__.js +311 -0
- package/src/concepts/dist/StringInterpolation__.js +231 -0
- package/src/concepts/dist/TypeAnnotation__.js +834 -0
- package/src/concepts/dist/ViewElement__.js +1692 -0
- package/src/concepts/dist/View__.js +1601 -0
- package/src/concepts/index__.ts +2 -0
- package/src/decorators/index.ts +5 -5
- package/src/generator/dist/genBundleFiles.js +261 -0
- package/src/generator/dist/genMetaData.js +245 -0
- package/src/generator/dist/permission.js +405 -0
- package/src/generator/genBundleFiles.ts +10 -8
- package/src/generator/genReleaseBody.ts +3 -1
- package/src/server/entity2LogicNamespace.ts +1 -1
- package/src/server/extendBaseNode.ts +12 -0
- package/src/server/formatTsUtils.ts +3 -2
- package/src/server/getMemberIdentifier.ts +5 -2
- package/src/server/naslServer.ts +109 -56
- package/src/server/translator.ts +1 -1
- package/src/service/creator/add.configs.js +3 -0
- package/src/service/creator/index.js +3 -0
- package/src/service/storage/api.js +12 -0
- package/src/service/storage/dist/init.js +579 -0
- package/src/service/storage/init.ts +212 -44
- package/src/service/storage/service.ts +29 -1
- package/src/templator/dist/genEditTableBlock.js +204 -0
- package/src/templator/dist/genGridViewBlock.js +265 -0
- package/src/templator/dist/genListViewBlock.js +84 -0
- package/src/templator/dist/genTableBlock.js +209 -0
- package/src/templator/dist/utils.js +527 -0
- package/src/templator/genEditTableBlock.ts +1 -1
- package/src/templator/genQueryComponent.ts +5 -5
- package/src/templator/genTableBlock.ts +2 -2
- package/src/templator/utils.ts +7 -7
- package/ts-worker/lib/Messager.js +7 -2
- package/ts-worker/src/index.js +1 -0
- package/out/automate/engine/2.14-components.d.ts +0 -1115
- package/out/automate/engine/2.14-components.js +0 -1087
- package/out/automate/engine/2.14-components.js.map +0 -1
- package/yarn-error.log +0 -2087
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
exports.__esModule = true;
|
|
3
|
+
exports.reference2TypeAnnotationList = void 0;
|
|
4
|
+
var Structure__1 = require("../../Structure__");
|
|
5
|
+
var TypeAnnotation__1 = require("../../TypeAnnotation__");
|
|
6
|
+
function reference2TypeAnnotationList(list, namespace) {
|
|
7
|
+
if (list === void 0) { list = []; }
|
|
8
|
+
return list.map(function (item) {
|
|
9
|
+
var _a;
|
|
10
|
+
if (item instanceof Structure__1["default"] && ((_a = item.typeParams) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
11
|
+
return TypeAnnotation__1["default"].createReference(item.name, {
|
|
12
|
+
typeKind: 'generic',
|
|
13
|
+
typeNamespace: namespace,
|
|
14
|
+
typeArguments: item.typeParams.map(function (typeParam) { return new TypeAnnotation__1["default"]({ name: typeParam.name }); })
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
else {
|
|
18
|
+
return TypeAnnotation__1["default"].createReference(item.name, {
|
|
19
|
+
typeNamespace: namespace
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
exports.reference2TypeAnnotationList = reference2TypeAnnotationList;
|
|
@@ -16,7 +16,7 @@ export const collectionStructures = [
|
|
|
16
16
|
properties: [
|
|
17
17
|
new StructureProperty({
|
|
18
18
|
name: 'length',
|
|
19
|
-
typeAnnotation: TypeAnnotation.createPrimitive('
|
|
19
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
20
20
|
}),
|
|
21
21
|
],
|
|
22
22
|
}),
|
|
@@ -33,7 +33,7 @@ export const collectionStructures = [
|
|
|
33
33
|
properties: [
|
|
34
34
|
new StructureProperty({
|
|
35
35
|
name: 'length',
|
|
36
|
-
typeAnnotation: TypeAnnotation.createPrimitive('
|
|
36
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
37
37
|
}),
|
|
38
38
|
],
|
|
39
39
|
}),
|
|
@@ -9,7 +9,7 @@ export const coreStructures = [
|
|
|
9
9
|
properties: [
|
|
10
10
|
new StructureProperty({
|
|
11
11
|
name: 'length',
|
|
12
|
-
typeAnnotation: TypeAnnotation.createPrimitive('
|
|
12
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
13
13
|
}),
|
|
14
14
|
],
|
|
15
15
|
}),
|
|
@@ -18,7 +18,7 @@ export const coreStructures = [
|
|
|
18
18
|
properties: [
|
|
19
19
|
new StructureProperty({
|
|
20
20
|
name: 'length',
|
|
21
|
-
typeAnnotation: TypeAnnotation.createPrimitive('
|
|
21
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
22
22
|
}),
|
|
23
23
|
],
|
|
24
24
|
}),
|
|
@@ -27,7 +27,7 @@ export const coreStructures = [
|
|
|
27
27
|
properties: [
|
|
28
28
|
new StructureProperty({
|
|
29
29
|
name: 'length',
|
|
30
|
-
typeAnnotation: TypeAnnotation.createPrimitive('
|
|
30
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
31
31
|
}),
|
|
32
32
|
],
|
|
33
33
|
}),
|
|
@@ -25,7 +25,7 @@ export const interfaceStructures = [
|
|
|
25
25
|
}),
|
|
26
26
|
new StructureProperty({
|
|
27
27
|
name: 'Code',
|
|
28
|
-
typeAnnotation: TypeAnnotation.createPrimitive('
|
|
28
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
29
29
|
}),
|
|
30
30
|
new StructureProperty({
|
|
31
31
|
name: 'Message',
|
|
@@ -96,11 +96,11 @@ const logics = [
|
|
|
96
96
|
}),
|
|
97
97
|
new Param({
|
|
98
98
|
name: 'page',
|
|
99
|
-
typeAnnotation: TypeAnnotation.createPrimitive('
|
|
99
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
100
100
|
}),
|
|
101
101
|
new Param({
|
|
102
102
|
name: 'size',
|
|
103
|
-
typeAnnotation: TypeAnnotation.createPrimitive('
|
|
103
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
104
104
|
}),
|
|
105
105
|
new Param({
|
|
106
106
|
name: 'sort',
|
|
@@ -123,7 +123,7 @@ const logics = [
|
|
|
123
123
|
}),
|
|
124
124
|
new StructureProperty({
|
|
125
125
|
name: 'total',
|
|
126
|
-
typeAnnotation: TypeAnnotation.createPrimitive('
|
|
126
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
127
127
|
}),
|
|
128
128
|
]),
|
|
129
129
|
}),
|
|
@@ -235,11 +235,11 @@ const logics = [
|
|
|
235
235
|
}),
|
|
236
236
|
new Param({
|
|
237
237
|
name: 'page',
|
|
238
|
-
typeAnnotation: TypeAnnotation.createPrimitive('
|
|
238
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
239
239
|
}),
|
|
240
240
|
new Param({
|
|
241
241
|
name: 'size',
|
|
242
|
-
typeAnnotation: TypeAnnotation.createPrimitive('
|
|
242
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
243
243
|
}),
|
|
244
244
|
new Param({
|
|
245
245
|
name: 'sort',
|
|
@@ -262,7 +262,7 @@ const logics = [
|
|
|
262
262
|
}),
|
|
263
263
|
new StructureProperty({
|
|
264
264
|
name: 'total',
|
|
265
|
-
typeAnnotation: TypeAnnotation.createPrimitive('
|
|
265
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
266
266
|
}),
|
|
267
267
|
]),
|
|
268
268
|
}),
|
|
@@ -23,15 +23,15 @@ export const uiStructures = [
|
|
|
23
23
|
}),
|
|
24
24
|
new StructureProperty({
|
|
25
25
|
name: 'index',
|
|
26
|
-
typeAnnotation: TypeAnnotation.createPrimitive('
|
|
26
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
27
27
|
}),
|
|
28
28
|
new StructureProperty({
|
|
29
29
|
name: 'rowIndex',
|
|
30
|
-
typeAnnotation: TypeAnnotation.createPrimitive('
|
|
30
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
31
31
|
}),
|
|
32
32
|
new StructureProperty({
|
|
33
33
|
name: 'columnIndex',
|
|
34
|
-
typeAnnotation: TypeAnnotation.createPrimitive('
|
|
34
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
35
35
|
}),
|
|
36
36
|
new StructureProperty({
|
|
37
37
|
name: 'value',
|
|
@@ -39,6 +39,19 @@ export const uiStructures = [
|
|
|
39
39
|
}),
|
|
40
40
|
],
|
|
41
41
|
}),
|
|
42
|
+
new Structure({
|
|
43
|
+
name: 'Error',
|
|
44
|
+
properties: [
|
|
45
|
+
new StructureProperty({
|
|
46
|
+
name: 'errorType',
|
|
47
|
+
typeAnnotation: TypeAnnotation.createPrimitive('String'),
|
|
48
|
+
}),
|
|
49
|
+
new StructureProperty({
|
|
50
|
+
name: 'errorMsg',
|
|
51
|
+
typeAnnotation: TypeAnnotation.createPrimitive('String'),
|
|
52
|
+
}),
|
|
53
|
+
],
|
|
54
|
+
}),
|
|
42
55
|
new Structure({
|
|
43
56
|
name: 'BaseEvent',
|
|
44
57
|
properties: [],
|
|
@@ -48,11 +61,11 @@ export const uiStructures = [
|
|
|
48
61
|
properties: [
|
|
49
62
|
new StructureProperty({
|
|
50
63
|
name: 'page',
|
|
51
|
-
typeAnnotation: TypeAnnotation.createPrimitive('
|
|
64
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
52
65
|
}),
|
|
53
66
|
new StructureProperty({
|
|
54
67
|
name: 'size',
|
|
55
|
-
typeAnnotation: TypeAnnotation.createPrimitive('
|
|
68
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
56
69
|
}),
|
|
57
70
|
new StructureProperty({
|
|
58
71
|
name: 'sort',
|
|
@@ -83,72 +96,72 @@ export const uiStructures = [
|
|
|
83
96
|
new StructureProperty({
|
|
84
97
|
name: 'button',
|
|
85
98
|
description: '如果鼠标按钮被按下(如果有的话),将会返回一个数值',
|
|
86
|
-
typeAnnotation: TypeAnnotation.createPrimitive('
|
|
99
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
87
100
|
}),
|
|
88
101
|
new StructureProperty({
|
|
89
102
|
name: 'clientX',
|
|
90
103
|
description: '鼠标指针在点击元素(DOM)中的X坐标',
|
|
91
|
-
typeAnnotation: TypeAnnotation.createPrimitive('
|
|
104
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
92
105
|
}),
|
|
93
106
|
new StructureProperty({
|
|
94
107
|
name: 'clientY',
|
|
95
108
|
description: '鼠标指针在点击元素(DOM)中的Y坐标',
|
|
96
|
-
typeAnnotation: TypeAnnotation.createPrimitive('
|
|
109
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
97
110
|
}),
|
|
98
111
|
new StructureProperty({
|
|
99
112
|
name: 'ctrlKey',
|
|
100
113
|
description: '如果 control 键被按下,则返回 true',
|
|
101
|
-
typeAnnotation: TypeAnnotation.createPrimitive('
|
|
114
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
102
115
|
}),
|
|
103
116
|
new StructureProperty({
|
|
104
117
|
name: 'metaKey',
|
|
105
118
|
description: '如果 meta 键被按下,则返回 true',
|
|
106
|
-
typeAnnotation: TypeAnnotation.createPrimitive('
|
|
119
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
107
120
|
}),
|
|
108
121
|
new StructureProperty({
|
|
109
122
|
name: 'movementX',
|
|
110
123
|
description: '鼠标指针相对于最后mousemove事件位置的X坐标',
|
|
111
|
-
typeAnnotation: TypeAnnotation.createPrimitive('
|
|
124
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
112
125
|
}),
|
|
113
126
|
new StructureProperty({
|
|
114
127
|
name: 'movementY',
|
|
115
128
|
description: '鼠标指针相对于最后mousemove事件位置的Y坐标',
|
|
116
|
-
typeAnnotation: TypeAnnotation.createPrimitive('
|
|
129
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
117
130
|
}),
|
|
118
131
|
new StructureProperty({
|
|
119
132
|
name: 'offsetX',
|
|
120
133
|
description: '鼠标指针相对于目标节点内边位置的X坐标',
|
|
121
|
-
typeAnnotation: TypeAnnotation.createPrimitive('
|
|
134
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
122
135
|
}),
|
|
123
136
|
new StructureProperty({
|
|
124
137
|
name: 'offsetY',
|
|
125
138
|
description: '鼠标指针相对于目标节点内边位置的Y坐标',
|
|
126
|
-
typeAnnotation: TypeAnnotation.createPrimitive('
|
|
139
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
127
140
|
}),
|
|
128
141
|
new StructureProperty({
|
|
129
142
|
name: 'pageX',
|
|
130
143
|
description: '相对于整个文档的水平坐标',
|
|
131
|
-
typeAnnotation: TypeAnnotation.createPrimitive('
|
|
144
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
132
145
|
}),
|
|
133
146
|
new StructureProperty({
|
|
134
147
|
name: 'pageY',
|
|
135
148
|
description: '相对于整个文档的垂直坐标',
|
|
136
|
-
typeAnnotation: TypeAnnotation.createPrimitive('
|
|
149
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
137
150
|
}),
|
|
138
151
|
new StructureProperty({
|
|
139
152
|
name: 'screenX',
|
|
140
153
|
description: '相对于全局(屏幕)的水平坐标',
|
|
141
|
-
typeAnnotation: TypeAnnotation.createPrimitive('
|
|
154
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
142
155
|
}),
|
|
143
156
|
new StructureProperty({
|
|
144
157
|
name: 'screenY',
|
|
145
158
|
description: '相对于全局(屏幕)的垂直坐标',
|
|
146
|
-
typeAnnotation: TypeAnnotation.createPrimitive('
|
|
159
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
147
160
|
}),
|
|
148
161
|
new StructureProperty({
|
|
149
162
|
name: 'which',
|
|
150
163
|
description: '对应(键盘)按下的数字类型的 keyCode',
|
|
151
|
-
typeAnnotation: TypeAnnotation.createPrimitive('
|
|
164
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
152
165
|
}),
|
|
153
166
|
],
|
|
154
167
|
}),
|
|
@@ -168,27 +181,27 @@ export const uiStructures = [
|
|
|
168
181
|
new StructureProperty({
|
|
169
182
|
name: 'layerX',
|
|
170
183
|
description: '相对于当前层的水平坐标',
|
|
171
|
-
typeAnnotation: TypeAnnotation.createPrimitive('
|
|
184
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
172
185
|
}),
|
|
173
186
|
new StructureProperty({
|
|
174
187
|
name: 'layerY',
|
|
175
188
|
description: '相对于当前层的垂直坐标',
|
|
176
|
-
typeAnnotation: TypeAnnotation.createPrimitive('
|
|
189
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
177
190
|
}),
|
|
178
191
|
new StructureProperty({
|
|
179
192
|
name: 'pageX',
|
|
180
193
|
description: '相对于整个文档的水平坐标',
|
|
181
|
-
typeAnnotation: TypeAnnotation.createPrimitive('
|
|
194
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
182
195
|
}),
|
|
183
196
|
new StructureProperty({
|
|
184
197
|
name: 'pageY',
|
|
185
198
|
description: '相对于整个文档的垂直坐标',
|
|
186
|
-
typeAnnotation: TypeAnnotation.createPrimitive('
|
|
199
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
187
200
|
}),
|
|
188
201
|
new StructureProperty({
|
|
189
202
|
name: 'which',
|
|
190
203
|
description: '对应(键盘)按下的数字类型的 keyCode',
|
|
191
|
-
typeAnnotation: TypeAnnotation.createPrimitive('
|
|
204
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
192
205
|
}),
|
|
193
206
|
],
|
|
194
207
|
}),
|
|
@@ -340,7 +353,7 @@ export const uiStructures = [
|
|
|
340
353
|
new StructureProperty({
|
|
341
354
|
name: 'level',
|
|
342
355
|
description: '选择的层级',
|
|
343
|
-
typeAnnotation: TypeAnnotation.createPrimitive('
|
|
356
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
344
357
|
}),
|
|
345
358
|
new StructureProperty({
|
|
346
359
|
name: 'value',
|
|
@@ -409,17 +422,17 @@ export const uiStructures = [
|
|
|
409
422
|
new StructureProperty({
|
|
410
423
|
name: 'value',
|
|
411
424
|
description: '滑块的值',
|
|
412
|
-
typeAnnotation: TypeAnnotation.createPrimitive('
|
|
425
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
413
426
|
}),
|
|
414
427
|
new StructureProperty({
|
|
415
428
|
name: 'oldValue',
|
|
416
429
|
description: '旧的值',
|
|
417
|
-
typeAnnotation: TypeAnnotation.createPrimitive('
|
|
430
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
418
431
|
}),
|
|
419
432
|
new StructureProperty({
|
|
420
433
|
name: 'percent',
|
|
421
434
|
description: '滑块位置所在的百分比',
|
|
422
|
-
typeAnnotation: TypeAnnotation.createPrimitive('
|
|
435
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
423
436
|
}),
|
|
424
437
|
],
|
|
425
438
|
}),
|
|
@@ -449,7 +462,7 @@ export const uiStructures = [
|
|
|
449
462
|
new StructureProperty({
|
|
450
463
|
name: 'index',
|
|
451
464
|
description: '添加的索引',
|
|
452
|
-
typeAnnotation: TypeAnnotation.createPrimitive('
|
|
465
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
453
466
|
}),
|
|
454
467
|
new StructureProperty({
|
|
455
468
|
name: 'data',
|
|
@@ -509,42 +522,42 @@ export const uiStructures = [
|
|
|
509
522
|
new StructureProperty({
|
|
510
523
|
name: 'page',
|
|
511
524
|
description: '选择的页码',
|
|
512
|
-
typeAnnotation: TypeAnnotation.createPrimitive('
|
|
525
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
513
526
|
}),
|
|
514
527
|
new StructureProperty({
|
|
515
528
|
name: 'oldPage',
|
|
516
529
|
description: '旧的页码',
|
|
517
|
-
typeAnnotation: TypeAnnotation.createPrimitive('
|
|
530
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
518
531
|
}),
|
|
519
532
|
new StructureProperty({
|
|
520
533
|
name: 'pageSize',
|
|
521
534
|
description: '当前每页条数',
|
|
522
|
-
typeAnnotation: TypeAnnotation.createPrimitive('
|
|
535
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
523
536
|
}),
|
|
524
537
|
new StructureProperty({
|
|
525
538
|
name: 'oldPageSize',
|
|
526
539
|
description: '旧的每页条数',
|
|
527
|
-
typeAnnotation: TypeAnnotation.createPrimitive('
|
|
540
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
528
541
|
}),
|
|
529
542
|
new StructureProperty({
|
|
530
543
|
name: 'size',
|
|
531
544
|
description: '当前每页条数',
|
|
532
|
-
typeAnnotation: TypeAnnotation.createPrimitive('
|
|
545
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
533
546
|
}),
|
|
534
547
|
new StructureProperty({
|
|
535
548
|
name: 'oldSize',
|
|
536
549
|
description: '旧的每页条数',
|
|
537
|
-
typeAnnotation: TypeAnnotation.createPrimitive('
|
|
550
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
538
551
|
}),
|
|
539
552
|
new StructureProperty({
|
|
540
553
|
name: 'number',
|
|
541
554
|
description: '当前页数',
|
|
542
|
-
typeAnnotation: TypeAnnotation.createPrimitive('
|
|
555
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
543
556
|
}),
|
|
544
557
|
new StructureProperty({
|
|
545
558
|
name: 'oldNumber',
|
|
546
559
|
description: '旧的页数',
|
|
547
|
-
typeAnnotation: TypeAnnotation.createPrimitive('
|
|
560
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
548
561
|
}),
|
|
549
562
|
],
|
|
550
563
|
}),
|
|
@@ -564,7 +577,7 @@ export const uiStructures = [
|
|
|
564
577
|
new StructureProperty({
|
|
565
578
|
name: 'duration',
|
|
566
579
|
description: '提示停留的时间',
|
|
567
|
-
typeAnnotation: TypeAnnotation.createPrimitive('
|
|
580
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
568
581
|
}),
|
|
569
582
|
],
|
|
570
583
|
}),
|
|
@@ -733,12 +746,12 @@ export const uiStructures = [
|
|
|
733
746
|
new StructureProperty({
|
|
734
747
|
name: 'count',
|
|
735
748
|
description: '当前数量',
|
|
736
|
-
typeAnnotation: TypeAnnotation.createPrimitive('
|
|
749
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
737
750
|
}),
|
|
738
751
|
new StructureProperty({
|
|
739
752
|
name: 'limit',
|
|
740
753
|
description: '数量配额',
|
|
741
|
-
typeAnnotation: TypeAnnotation.createPrimitive('
|
|
754
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
742
755
|
}),
|
|
743
756
|
],
|
|
744
757
|
}),
|
|
@@ -813,7 +826,7 @@ export const uiStructures = [
|
|
|
813
826
|
new StructureProperty({
|
|
814
827
|
name: 'size',
|
|
815
828
|
description: '文件大小',
|
|
816
|
-
typeAnnotation: TypeAnnotation.createPrimitive('
|
|
829
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
817
830
|
}),
|
|
818
831
|
new StructureProperty({
|
|
819
832
|
name: 'type',
|
|
@@ -840,11 +853,11 @@ export const uiStructures = [
|
|
|
840
853
|
}),
|
|
841
854
|
new StructureProperty({
|
|
842
855
|
name: 'level',
|
|
843
|
-
typeAnnotation: TypeAnnotation.createPrimitive('
|
|
856
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
844
857
|
}),
|
|
845
858
|
new StructureProperty({
|
|
846
859
|
name: 'index',
|
|
847
|
-
typeAnnotation: TypeAnnotation.createPrimitive('
|
|
860
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
848
861
|
}),
|
|
849
862
|
],
|
|
850
863
|
}),
|
|
@@ -384,7 +384,7 @@ export default new Namespace({
|
|
|
384
384
|
],
|
|
385
385
|
returns: [
|
|
386
386
|
new Return({
|
|
387
|
-
typeAnnotation: TypeAnnotation.createPrimitive('
|
|
387
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
388
388
|
}),
|
|
389
389
|
],
|
|
390
390
|
}),
|
|
@@ -450,7 +450,7 @@ export default new Namespace({
|
|
|
450
450
|
new Param({
|
|
451
451
|
name: 'index',
|
|
452
452
|
description: '索引,integer类型,用数字表示第几项,项数索引从0开始',
|
|
453
|
-
typeAnnotation: TypeAnnotation.createPrimitive('
|
|
453
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
454
454
|
}),
|
|
455
455
|
],
|
|
456
456
|
returns: [
|
|
@@ -473,7 +473,7 @@ export default new Namespace({
|
|
|
473
473
|
new Param({
|
|
474
474
|
name: 'index',
|
|
475
475
|
description: '索引,integer类型,用数字表示第几项,项数索引从0开始',
|
|
476
|
-
typeAnnotation: TypeAnnotation.createPrimitive('
|
|
476
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
477
477
|
}),
|
|
478
478
|
new Param({
|
|
479
479
|
name: 'item',
|
|
@@ -549,7 +549,7 @@ export default new Namespace({
|
|
|
549
549
|
],
|
|
550
550
|
returns: [
|
|
551
551
|
new Return({
|
|
552
|
-
typeAnnotation: TypeAnnotation.createPrimitive('
|
|
552
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
553
553
|
}),
|
|
554
554
|
],
|
|
555
555
|
}),
|
|
@@ -567,7 +567,7 @@ export default new Namespace({
|
|
|
567
567
|
new Param({
|
|
568
568
|
name: 'index',
|
|
569
569
|
description: '索引,integer类型,用数字表示第几项,项数索引从0开始',
|
|
570
|
-
typeAnnotation: TypeAnnotation.createPrimitive('
|
|
570
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
571
571
|
}),
|
|
572
572
|
new Param({
|
|
573
573
|
name: 'item',
|
|
@@ -608,7 +608,7 @@ export default new Namespace({
|
|
|
608
608
|
new Param({
|
|
609
609
|
name: 'index',
|
|
610
610
|
description: '索引,integer类型,用数字表示第几项,项数索引从0开始',
|
|
611
|
-
typeAnnotation: TypeAnnotation.createPrimitive('
|
|
611
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
612
612
|
}),
|
|
613
613
|
],
|
|
614
614
|
returns: [
|
|
@@ -1125,7 +1125,7 @@ export default new Namespace({
|
|
|
1125
1125
|
}),
|
|
1126
1126
|
new Param({
|
|
1127
1127
|
name: 'digits',
|
|
1128
|
-
typeAnnotation: TypeAnnotation.createPrimitive('
|
|
1128
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
1129
1129
|
description: '保留小数位数',
|
|
1130
1130
|
defaultValue: '2',
|
|
1131
1131
|
defaultExpression: new NumericLiteral({ value: '2' }),
|
|
@@ -1160,7 +1160,7 @@ export default new Namespace({
|
|
|
1160
1160
|
new Param({
|
|
1161
1161
|
name: 'amount',
|
|
1162
1162
|
description: '增加的天数',
|
|
1163
|
-
typeAnnotation: TypeAnnotation.createPrimitive('
|
|
1163
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
1164
1164
|
}),
|
|
1165
1165
|
],
|
|
1166
1166
|
returns: [
|
|
@@ -1181,7 +1181,7 @@ export default new Namespace({
|
|
|
1181
1181
|
new Param({
|
|
1182
1182
|
name: 'amount',
|
|
1183
1183
|
description: '增加的月数',
|
|
1184
|
-
typeAnnotation: TypeAnnotation.createPrimitive('
|
|
1184
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
1185
1185
|
}),
|
|
1186
1186
|
],
|
|
1187
1187
|
returns: [
|
|
@@ -1226,7 +1226,7 @@ export default new Namespace({
|
|
|
1226
1226
|
],
|
|
1227
1227
|
returns: [
|
|
1228
1228
|
new Return({
|
|
1229
|
-
typeAnnotation: TypeAnnotation.createPrimitive('
|
|
1229
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
1230
1230
|
}),
|
|
1231
1231
|
],
|
|
1232
1232
|
}),
|
|
@@ -1268,16 +1268,16 @@ export default new Namespace({
|
|
|
1268
1268
|
params: [
|
|
1269
1269
|
new Param({
|
|
1270
1270
|
name: 'start',
|
|
1271
|
-
typeAnnotation: TypeAnnotation.createPrimitive('
|
|
1271
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
1272
1272
|
}),
|
|
1273
1273
|
new Param({
|
|
1274
1274
|
name: 'end',
|
|
1275
|
-
typeAnnotation: TypeAnnotation.createPrimitive('
|
|
1275
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
1276
1276
|
}),
|
|
1277
1277
|
],
|
|
1278
1278
|
returns: [
|
|
1279
1279
|
new Return({
|
|
1280
|
-
typeAnnotation: TypeAnnotation.createPrimitive('
|
|
1280
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
1281
1281
|
}),
|
|
1282
1282
|
],
|
|
1283
1283
|
}),
|
|
@@ -1295,7 +1295,7 @@ export default new Namespace({
|
|
|
1295
1295
|
new Param({
|
|
1296
1296
|
name: 'total',
|
|
1297
1297
|
description: '指定数据条数',
|
|
1298
|
-
typeAnnotation: TypeAnnotation.createPrimitive('
|
|
1298
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
1299
1299
|
}),
|
|
1300
1300
|
],
|
|
1301
1301
|
returns: [
|
|
@@ -1405,7 +1405,7 @@ export default new Namespace({
|
|
|
1405
1405
|
],
|
|
1406
1406
|
returns: [
|
|
1407
1407
|
new Return({
|
|
1408
|
-
typeAnnotation: TypeAnnotation.createPrimitive('
|
|
1408
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
1409
1409
|
}),
|
|
1410
1410
|
],
|
|
1411
1411
|
}),
|
|
@@ -1546,12 +1546,12 @@ export default new Namespace({
|
|
|
1546
1546
|
new Param({
|
|
1547
1547
|
name: 'start',
|
|
1548
1548
|
description: '切片起始的索引,integer类型,项数索引从0开始',
|
|
1549
|
-
typeAnnotation: TypeAnnotation.createPrimitive('
|
|
1549
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
1550
1550
|
}),
|
|
1551
1551
|
new Param({
|
|
1552
1552
|
name: 'end',
|
|
1553
1553
|
description: '切片结束的索引,integer类型,用数字表示第几项,项数索引从0开始',
|
|
1554
|
-
typeAnnotation: TypeAnnotation.createPrimitive('
|
|
1554
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
1555
1555
|
}),
|
|
1556
1556
|
],
|
|
1557
1557
|
returns: [
|
|
@@ -1576,12 +1576,12 @@ export default new Namespace({
|
|
|
1576
1576
|
new Param({
|
|
1577
1577
|
name: 'page',
|
|
1578
1578
|
description: '页数,integer类型,从1开始',
|
|
1579
|
-
typeAnnotation: TypeAnnotation.createPrimitive('
|
|
1579
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
1580
1580
|
}),
|
|
1581
1581
|
new Param({
|
|
1582
1582
|
name: 'size',
|
|
1583
1583
|
description: '每页的大小,integer类型',
|
|
1584
|
-
typeAnnotation: TypeAnnotation.createPrimitive('
|
|
1584
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
1585
1585
|
}),
|
|
1586
1586
|
],
|
|
1587
1587
|
returns: [
|
|
@@ -1608,5 +1608,32 @@ export default new Namespace({
|
|
|
1608
1608
|
}),
|
|
1609
1609
|
],
|
|
1610
1610
|
}),
|
|
1611
|
+
new Function({
|
|
1612
|
+
name: 'Round',
|
|
1613
|
+
description: '对指定的小数按指定的舍入模式进行舍入,返回舍入后的整数',
|
|
1614
|
+
params: [
|
|
1615
|
+
new Param({
|
|
1616
|
+
name: 'value',
|
|
1617
|
+
description: '被取整小数',
|
|
1618
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Decimal'),
|
|
1619
|
+
}),
|
|
1620
|
+
new Param({
|
|
1621
|
+
name: 'mode',
|
|
1622
|
+
description: '取整模式',
|
|
1623
|
+
typeAnnotation: TypeAnnotation.createPrimitive('String'),
|
|
1624
|
+
defaultExpression: new StringLiteral({ value: 'HalfUp' }),
|
|
1625
|
+
options: [
|
|
1626
|
+
{ text: 'TowardsZero', value: 'TowardsZero' },
|
|
1627
|
+
{ text: 'TowardsInfinity', value: 'TowardsInfinity' },
|
|
1628
|
+
{ text: 'HalfUp', value: 'HalfUp' },
|
|
1629
|
+
],
|
|
1630
|
+
}),
|
|
1631
|
+
],
|
|
1632
|
+
returns: [
|
|
1633
|
+
new Return({
|
|
1634
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
1635
|
+
}),
|
|
1636
|
+
],
|
|
1637
|
+
}),
|
|
1611
1638
|
],
|
|
1612
1639
|
});
|