@lcap/nasl-concepts 3.9.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/README.md +3 -0
- package/out/breakpoint/index.d.ts +2 -0
- package/out/breakpoint/index.d.ts.map +1 -0
- package/out/breakpoint/index.js +18 -0
- package/out/breakpoint/index.js.map +1 -0
- package/out/breakpoint/operation.d.ts +11 -0
- package/out/breakpoint/operation.d.ts.map +1 -0
- package/out/breakpoint/operation.js +24 -0
- package/out/breakpoint/operation.js.map +1 -0
- package/out/common/BaseNode.d.ts +427 -0
- package/out/common/BaseNode.d.ts.map +1 -0
- package/out/common/BaseNode.js +1721 -0
- package/out/common/BaseNode.js.map +1 -0
- package/out/common/EventEmitter.d.ts +30 -0
- package/out/common/EventEmitter.d.ts.map +1 -0
- package/out/common/EventEmitter.js +70 -0
- package/out/common/EventEmitter.js.map +1 -0
- package/out/common/index.d.ts +3 -0
- package/out/common/index.d.ts.map +1 -0
- package/out/common/index.js +19 -0
- package/out/common/index.js.map +1 -0
- package/out/common/types.d.ts +5 -0
- package/out/common/types.d.ts.map +1 -0
- package/out/common/types.js +3 -0
- package/out/common/types.js.map +1 -0
- package/out/concepts/Abort__.d.ts +32 -0
- package/out/concepts/Abort__.d.ts.map +1 -0
- package/out/concepts/Abort__.js +94 -0
- package/out/concepts/Abort__.js.map +1 -0
- package/out/concepts/AbstractInterface__.d.ts +29 -0
- package/out/concepts/AbstractInterface__.d.ts.map +1 -0
- package/out/concepts/AbstractInterface__.js +62 -0
- package/out/concepts/AbstractInterface__.js.map +1 -0
- package/out/concepts/Anchor__.d.ts +44 -0
- package/out/concepts/Anchor__.d.ts.map +1 -0
- package/out/concepts/Anchor__.js +179 -0
- package/out/concepts/Anchor__.js.map +1 -0
- package/out/concepts/Annotatable__.d.ts +111 -0
- package/out/concepts/Annotatable__.d.ts.map +1 -0
- package/out/concepts/Annotatable__.js +163 -0
- package/out/concepts/Annotatable__.js.map +1 -0
- package/out/concepts/AnnotationProperty__.d.ts +49 -0
- package/out/concepts/AnnotationProperty__.d.ts.map +1 -0
- package/out/concepts/AnnotationProperty__.js +76 -0
- package/out/concepts/AnnotationProperty__.js.map +1 -0
- package/out/concepts/Annotation__.d.ts +129 -0
- package/out/concepts/Annotation__.d.ts.map +1 -0
- package/out/concepts/Annotation__.js +249 -0
- package/out/concepts/Annotation__.js.map +1 -0
- package/out/concepts/AnonymousFunction__.d.ts +141 -0
- package/out/concepts/AnonymousFunction__.d.ts.map +1 -0
- package/out/concepts/AnonymousFunction__.js +428 -0
- package/out/concepts/AnonymousFunction__.js.map +1 -0
- package/out/concepts/App__.d.ts +1794 -0
- package/out/concepts/App__.d.ts.map +1 -0
- package/out/concepts/App__.js +3475 -0
- package/out/concepts/App__.js.map +1 -0
- package/out/concepts/ApplyAnnotation__.d.ts +88 -0
- package/out/concepts/ApplyAnnotation__.d.ts.map +1 -0
- package/out/concepts/ApplyAnnotation__.js +142 -0
- package/out/concepts/ApplyAnnotation__.js.map +1 -0
- package/out/concepts/ApprovalPolicyV2__.d.ts +27 -0
- package/out/concepts/ApprovalPolicyV2__.d.ts.map +1 -0
- package/out/concepts/ApprovalPolicyV2__.js +55 -0
- package/out/concepts/ApprovalPolicyV2__.js.map +1 -0
- package/out/concepts/Argument__.d.ts +85 -0
- package/out/concepts/Argument__.d.ts.map +1 -0
- package/out/concepts/Argument__.js +390 -0
- package/out/concepts/Argument__.js.map +1 -0
- package/out/concepts/AssigneeV2__.d.ts +380 -0
- package/out/concepts/AssigneeV2__.d.ts.map +1 -0
- package/out/concepts/AssigneeV2__.js +517 -0
- package/out/concepts/AssigneeV2__.js.map +1 -0
- package/out/concepts/Assignee__.d.ts +296 -0
- package/out/concepts/Assignee__.d.ts.map +1 -0
- package/out/concepts/Assignee__.js +404 -0
- package/out/concepts/Assignee__.js.map +1 -0
- package/out/concepts/AssignmentLine__.d.ts +44 -0
- package/out/concepts/AssignmentLine__.d.ts.map +1 -0
- package/out/concepts/AssignmentLine__.js +110 -0
- package/out/concepts/AssignmentLine__.js.map +1 -0
- package/out/concepts/Assignment__.d.ts +59 -0
- package/out/concepts/Assignment__.d.ts.map +1 -0
- package/out/concepts/Assignment__.js +288 -0
- package/out/concepts/Assignment__.js.map +1 -0
- package/out/concepts/Attribute__.d.ts +77 -0
- package/out/concepts/Attribute__.d.ts.map +1 -0
- package/out/concepts/Attribute__.js +103 -0
- package/out/concepts/Attribute__.js.map +1 -0
- package/out/concepts/AuthInterface__.d.ts +39 -0
- package/out/concepts/AuthInterface__.d.ts.map +1 -0
- package/out/concepts/AuthInterface__.js +79 -0
- package/out/concepts/AuthInterface__.js.map +1 -0
- package/out/concepts/AuthLogicForCallInterface__.d.ts +148 -0
- package/out/concepts/AuthLogicForCallInterface__.d.ts.map +1 -0
- package/out/concepts/AuthLogicForCallInterface__.js +597 -0
- package/out/concepts/AuthLogicForCallInterface__.js.map +1 -0
- package/out/concepts/AuthLogic__.d.ts +70 -0
- package/out/concepts/AuthLogic__.d.ts.map +1 -0
- package/out/concepts/AuthLogic__.js +211 -0
- package/out/concepts/AuthLogic__.js.map +1 -0
- package/out/concepts/BackendVariable__.d.ts +120 -0
- package/out/concepts/BackendVariable__.d.ts.map +1 -0
- package/out/concepts/BackendVariable__.js +432 -0
- package/out/concepts/BackendVariable__.js.map +1 -0
- package/out/concepts/Backend__.d.ts +128 -0
- package/out/concepts/Backend__.d.ts.map +1 -0
- package/out/concepts/Backend__.js +238 -0
- package/out/concepts/Backend__.js.map +1 -0
- package/out/concepts/BaseSetter__.d.ts +27 -0
- package/out/concepts/BaseSetter__.d.ts.map +1 -0
- package/out/concepts/BaseSetter__.js +55 -0
- package/out/concepts/BaseSetter__.js.map +1 -0
- package/out/concepts/BatchAssignment__.d.ts +246 -0
- package/out/concepts/BatchAssignment__.d.ts.map +1 -0
- package/out/concepts/BatchAssignment__.js +831 -0
- package/out/concepts/BatchAssignment__.js.map +1 -0
- package/out/concepts/BinaryExpression__.d.ts +64 -0
- package/out/concepts/BinaryExpression__.d.ts.map +1 -0
- package/out/concepts/BinaryExpression__.js +508 -0
- package/out/concepts/BinaryExpression__.js.map +1 -0
- package/out/concepts/BindAttribute__.d.ts +294 -0
- package/out/concepts/BindAttribute__.d.ts.map +1 -0
- package/out/concepts/BindAttribute__.js +1023 -0
- package/out/concepts/BindAttribute__.js.map +1 -0
- package/out/concepts/BindDirective__.d.ts +157 -0
- package/out/concepts/BindDirective__.d.ts.map +1 -0
- package/out/concepts/BindDirective__.js +492 -0
- package/out/concepts/BindDirective__.js.map +1 -0
- package/out/concepts/BindEvent__.d.ts +247 -0
- package/out/concepts/BindEvent__.d.ts.map +1 -0
- package/out/concepts/BindEvent__.js +833 -0
- package/out/concepts/BindEvent__.js.map +1 -0
- package/out/concepts/BindStyle__.d.ts +128 -0
- package/out/concepts/BindStyle__.d.ts.map +1 -0
- package/out/concepts/BindStyle__.js +412 -0
- package/out/concepts/BindStyle__.js.map +1 -0
- package/out/concepts/Block__.d.ts +90 -0
- package/out/concepts/Block__.d.ts.map +1 -0
- package/out/concepts/Block__.js +204 -0
- package/out/concepts/Block__.js.map +1 -0
- package/out/concepts/BooleanLiteral__.d.ts +46 -0
- package/out/concepts/BooleanLiteral__.d.ts.map +1 -0
- package/out/concepts/BooleanLiteral__.js +119 -0
- package/out/concepts/BooleanLiteral__.js.map +1 -0
- package/out/concepts/BusinessComponent__.d.ts +648 -0
- package/out/concepts/BusinessComponent__.d.ts.map +1 -0
- package/out/concepts/BusinessComponent__.js +1785 -0
- package/out/concepts/BusinessComponent__.js.map +1 -0
- package/out/concepts/BusinessLogic__.d.ts +46 -0
- package/out/concepts/BusinessLogic__.d.ts.map +1 -0
- package/out/concepts/BusinessLogic__.js +485 -0
- package/out/concepts/BusinessLogic__.js.map +1 -0
- package/out/concepts/CallAuthInterface__.d.ts +134 -0
- package/out/concepts/CallAuthInterface__.d.ts.map +1 -0
- package/out/concepts/CallAuthInterface__.js +426 -0
- package/out/concepts/CallAuthInterface__.js.map +1 -0
- package/out/concepts/CallConnector__.d.ts +56 -0
- package/out/concepts/CallConnector__.d.ts.map +1 -0
- package/out/concepts/CallConnector__.js +296 -0
- package/out/concepts/CallConnector__.js.map +1 -0
- package/out/concepts/CallEvent__.d.ts +103 -0
- package/out/concepts/CallEvent__.d.ts.map +1 -0
- package/out/concepts/CallEvent__.js +326 -0
- package/out/concepts/CallEvent__.js.map +1 -0
- package/out/concepts/CallFunction__.d.ts +173 -0
- package/out/concepts/CallFunction__.d.ts.map +1 -0
- package/out/concepts/CallFunction__.js +679 -0
- package/out/concepts/CallFunction__.js.map +1 -0
- package/out/concepts/CallInterface__.d.ts +145 -0
- package/out/concepts/CallInterface__.d.ts.map +1 -0
- package/out/concepts/CallInterface__.js +882 -0
- package/out/concepts/CallInterface__.js.map +1 -0
- package/out/concepts/CallLogic__.d.ts +247 -0
- package/out/concepts/CallLogic__.d.ts.map +1 -0
- package/out/concepts/CallLogic__.js +1583 -0
- package/out/concepts/CallLogic__.js.map +1 -0
- package/out/concepts/CallQueryComponent__.d.ts +380 -0
- package/out/concepts/CallQueryComponent__.d.ts.map +1 -0
- package/out/concepts/CallQueryComponent__.js +1227 -0
- package/out/concepts/CallQueryComponent__.js.map +1 -0
- package/out/concepts/CapsulesSetter__.d.ts +114 -0
- package/out/concepts/CapsulesSetter__.d.ts.map +1 -0
- package/out/concepts/CapsulesSetter__.js +172 -0
- package/out/concepts/CapsulesSetter__.js.map +1 -0
- package/out/concepts/Comment__.d.ts +42 -0
- package/out/concepts/Comment__.d.ts.map +1 -0
- package/out/concepts/Comment__.js +107 -0
- package/out/concepts/Comment__.js.map +1 -0
- package/out/concepts/CompletionProperty__.d.ts +88 -0
- package/out/concepts/CompletionProperty__.d.ts.map +1 -0
- package/out/concepts/CompletionProperty__.js +175 -0
- package/out/concepts/CompletionProperty__.js.map +1 -0
- package/out/concepts/ConfigGroup__.d.ts +122 -0
- package/out/concepts/ConfigGroup__.d.ts.map +1 -0
- package/out/concepts/ConfigGroup__.js +228 -0
- package/out/concepts/ConfigGroup__.js.map +1 -0
- package/out/concepts/ConfigPropertyValue__.d.ts +42 -0
- package/out/concepts/ConfigPropertyValue__.d.ts.map +1 -0
- package/out/concepts/ConfigPropertyValue__.js +83 -0
- package/out/concepts/ConfigPropertyValue__.js.map +1 -0
- package/out/concepts/ConfigProperty__.d.ts +148 -0
- package/out/concepts/ConfigProperty__.d.ts.map +1 -0
- package/out/concepts/ConfigProperty__.js +294 -0
- package/out/concepts/ConfigProperty__.js.map +1 -0
- package/out/concepts/Configuration__.d.ts +121 -0
- package/out/concepts/Configuration__.d.ts.map +1 -0
- package/out/concepts/Configuration__.js +202 -0
- package/out/concepts/Configuration__.js.map +1 -0
- package/out/concepts/Connection__.d.ts +165 -0
- package/out/concepts/Connection__.d.ts.map +1 -0
- package/out/concepts/Connection__.js +330 -0
- package/out/concepts/Connection__.js.map +1 -0
- package/out/concepts/ConnectorLogic__.d.ts +34 -0
- package/out/concepts/ConnectorLogic__.d.ts.map +1 -0
- package/out/concepts/ConnectorLogic__.js +69 -0
- package/out/concepts/ConnectorLogic__.js.map +1 -0
- package/out/concepts/ConnectorTriggerLauncher__.d.ts +45 -0
- package/out/concepts/ConnectorTriggerLauncher__.d.ts.map +1 -0
- package/out/concepts/ConnectorTriggerLauncher__.js +98 -0
- package/out/concepts/ConnectorTriggerLauncher__.js.map +1 -0
- package/out/concepts/ConnectorTrigger__.d.ts +94 -0
- package/out/concepts/ConnectorTrigger__.d.ts.map +1 -0
- package/out/concepts/ConnectorTrigger__.js +339 -0
- package/out/concepts/ConnectorTrigger__.js.map +1 -0
- package/out/concepts/Connector__.d.ts +533 -0
- package/out/concepts/Connector__.d.ts.map +1 -0
- package/out/concepts/Connector__.js +670 -0
- package/out/concepts/Connector__.js.map +1 -0
- package/out/concepts/Constant__.d.ts +95 -0
- package/out/concepts/Constant__.d.ts.map +1 -0
- package/out/concepts/Constant__.js +243 -0
- package/out/concepts/Constant__.js.map +1 -0
- package/out/concepts/CountersignPolicyV2__.d.ts +30 -0
- package/out/concepts/CountersignPolicyV2__.d.ts.map +1 -0
- package/out/concepts/CountersignPolicyV2__.js +58 -0
- package/out/concepts/CountersignPolicyV2__.js.map +1 -0
- package/out/concepts/CountersignPolicy__.d.ts +30 -0
- package/out/concepts/CountersignPolicy__.d.ts.map +1 -0
- package/out/concepts/CountersignPolicy__.js +58 -0
- package/out/concepts/CountersignPolicy__.js.map +1 -0
- package/out/concepts/DataSource__.d.ts +166 -0
- package/out/concepts/DataSource__.d.ts.map +1 -0
- package/out/concepts/DataSource__.js +516 -0
- package/out/concepts/DataSource__.js.map +1 -0
- package/out/concepts/DatabaseTypeAnnotation__.d.ts +36 -0
- package/out/concepts/DatabaseTypeAnnotation__.d.ts.map +1 -0
- package/out/concepts/DatabaseTypeAnnotation__.js +81 -0
- package/out/concepts/DatabaseTypeAnnotation__.js.map +1 -0
- package/out/concepts/DefaultValue__.d.ts +96 -0
- package/out/concepts/DefaultValue__.d.ts.map +1 -0
- package/out/concepts/DefaultValue__.js +212 -0
- package/out/concepts/DefaultValue__.js.map +1 -0
- package/out/concepts/DepartmentManagerV2__.d.ts +30 -0
- package/out/concepts/DepartmentManagerV2__.d.ts.map +1 -0
- package/out/concepts/DepartmentManagerV2__.js +58 -0
- package/out/concepts/DepartmentManagerV2__.js.map +1 -0
- package/out/concepts/DepartmentV2__.d.ts +34 -0
- package/out/concepts/DepartmentV2__.d.ts.map +1 -0
- package/out/concepts/DepartmentV2__.js +65 -0
- package/out/concepts/DepartmentV2__.js.map +1 -0
- package/out/concepts/Destination__.d.ts +151 -0
- package/out/concepts/Destination__.d.ts.map +1 -0
- package/out/concepts/Destination__.js +771 -0
- package/out/concepts/Destination__.js.map +1 -0
- package/out/concepts/DirectManagerV2__.d.ts +26 -0
- package/out/concepts/DirectManagerV2__.d.ts.map +1 -0
- package/out/concepts/DirectManagerV2__.js +55 -0
- package/out/concepts/DirectManagerV2__.js.map +1 -0
- package/out/concepts/End__.d.ts +31 -0
- package/out/concepts/End__.d.ts.map +1 -0
- package/out/concepts/End__.js +150 -0
- package/out/concepts/End__.js.map +1 -0
- package/out/concepts/EntityIndex__.d.ts +94 -0
- package/out/concepts/EntityIndex__.d.ts.map +1 -0
- package/out/concepts/EntityIndex__.js +201 -0
- package/out/concepts/EntityIndex__.js.map +1 -0
- package/out/concepts/EntityProperty__.d.ts +254 -0
- package/out/concepts/EntityProperty__.d.ts.map +1 -0
- package/out/concepts/EntityProperty__.js +715 -0
- package/out/concepts/EntityProperty__.js.map +1 -0
- package/out/concepts/Entity__.d.ts +341 -0
- package/out/concepts/Entity__.d.ts.map +1 -0
- package/out/concepts/Entity__.js +783 -0
- package/out/concepts/Entity__.js.map +1 -0
- package/out/concepts/EnumItem__.d.ts +93 -0
- package/out/concepts/EnumItem__.d.ts.map +1 -0
- package/out/concepts/EnumItem__.js +235 -0
- package/out/concepts/EnumItem__.js.map +1 -0
- package/out/concepts/EnumSelectSetter__.d.ts +114 -0
- package/out/concepts/EnumSelectSetter__.d.ts.map +1 -0
- package/out/concepts/EnumSelectSetter__.js +172 -0
- package/out/concepts/EnumSelectSetter__.js.map +1 -0
- package/out/concepts/Enum__.d.ts +129 -0
- package/out/concepts/Enum__.d.ts.map +1 -0
- package/out/concepts/Enum__.js +342 -0
- package/out/concepts/Enum__.js.map +1 -0
- package/out/concepts/EventDeclaration__.d.ts +43 -0
- package/out/concepts/EventDeclaration__.d.ts.map +1 -0
- package/out/concepts/EventDeclaration__.js +109 -0
- package/out/concepts/EventDeclaration__.js.map +1 -0
- package/out/concepts/Event__.d.ts +156 -0
- package/out/concepts/Event__.d.ts.map +1 -0
- package/out/concepts/Event__.js +291 -0
- package/out/concepts/Event__.js.map +1 -0
- package/out/concepts/ExternalDestination__.d.ts +65 -0
- package/out/concepts/ExternalDestination__.d.ts.map +1 -0
- package/out/concepts/ExternalDestination__.js +285 -0
- package/out/concepts/ExternalDestination__.js.map +1 -0
- package/out/concepts/FieldPermissionV2__.d.ts +40 -0
- package/out/concepts/FieldPermissionV2__.d.ts.map +1 -0
- package/out/concepts/FieldPermissionV2__.js +85 -0
- package/out/concepts/FieldPermissionV2__.js.map +1 -0
- package/out/concepts/FlowConditionItemV2__.d.ts +45 -0
- package/out/concepts/FlowConditionItemV2__.d.ts.map +1 -0
- package/out/concepts/FlowConditionItemV2__.js +107 -0
- package/out/concepts/FlowConditionItemV2__.js.map +1 -0
- package/out/concepts/FlowConditionV2__.d.ts +116 -0
- package/out/concepts/FlowConditionV2__.d.ts.map +1 -0
- package/out/concepts/FlowConditionV2__.js +181 -0
- package/out/concepts/FlowConditionV2__.js.map +1 -0
- package/out/concepts/ForEachStatement__.d.ts +128 -0
- package/out/concepts/ForEachStatement__.d.ts.map +1 -0
- package/out/concepts/ForEachStatement__.js +398 -0
- package/out/concepts/ForEachStatement__.js.map +1 -0
- package/out/concepts/FrontendLibrary__.d.ts +213 -0
- package/out/concepts/FrontendLibrary__.d.ts.map +1 -0
- package/out/concepts/FrontendLibrary__.js +303 -0
- package/out/concepts/FrontendLibrary__.js.map +1 -0
- package/out/concepts/FrontendType__.d.ts +312 -0
- package/out/concepts/FrontendType__.d.ts.map +1 -0
- package/out/concepts/FrontendType__.js +550 -0
- package/out/concepts/FrontendType__.js.map +1 -0
- package/out/concepts/FrontendVariable__.d.ts +42 -0
- package/out/concepts/FrontendVariable__.d.ts.map +1 -0
- package/out/concepts/FrontendVariable__.js +81 -0
- package/out/concepts/FrontendVariable__.js.map +1 -0
- package/out/concepts/Frontend__.d.ts +395 -0
- package/out/concepts/Frontend__.d.ts.map +1 -0
- package/out/concepts/Frontend__.js +870 -0
- package/out/concepts/Frontend__.js.map +1 -0
- package/out/concepts/Function__.d.ts +400 -0
- package/out/concepts/Function__.d.ts.map +1 -0
- package/out/concepts/Function__.js +631 -0
- package/out/concepts/Function__.js.map +1 -0
- package/out/concepts/HistoryProcessV2__.d.ts +229 -0
- package/out/concepts/HistoryProcessV2__.d.ts.map +1 -0
- package/out/concepts/HistoryProcessV2__.js +345 -0
- package/out/concepts/HistoryProcessV2__.js.map +1 -0
- package/out/concepts/I18nInfo__.d.ts +48 -0
- package/out/concepts/I18nInfo__.d.ts.map +1 -0
- package/out/concepts/I18nInfo__.js +100 -0
- package/out/concepts/I18nInfo__.js.map +1 -0
- package/out/concepts/IconSetter__.d.ts +30 -0
- package/out/concepts/IconSetter__.d.ts.map +1 -0
- package/out/concepts/IconSetter__.js +58 -0
- package/out/concepts/IconSetter__.js.map +1 -0
- package/out/concepts/Identifier__.d.ts +69 -0
- package/out/concepts/Identifier__.d.ts.map +1 -0
- package/out/concepts/Identifier__.js +437 -0
- package/out/concepts/Identifier__.js.map +1 -0
- package/out/concepts/IfStatement__.d.ts +157 -0
- package/out/concepts/IfStatement__.d.ts.map +1 -0
- package/out/concepts/IfStatement__.js +365 -0
- package/out/concepts/IfStatement__.js.map +1 -0
- package/out/concepts/ImageSetter__.d.ts +26 -0
- package/out/concepts/ImageSetter__.d.ts.map +1 -0
- package/out/concepts/ImageSetter__.js +55 -0
- package/out/concepts/ImageSetter__.js.map +1 -0
- package/out/concepts/ImportedInterface__.d.ts +31 -0
- package/out/concepts/ImportedInterface__.d.ts.map +1 -0
- package/out/concepts/ImportedInterface__.js +58 -0
- package/out/concepts/ImportedInterface__.js.map +1 -0
- package/out/concepts/InputSetter__.d.ts +30 -0
- package/out/concepts/InputSetter__.d.ts.map +1 -0
- package/out/concepts/InputSetter__.js +58 -0
- package/out/concepts/InputSetter__.js.map +1 -0
- package/out/concepts/Integration__.d.ts +129 -0
- package/out/concepts/Integration__.d.ts.map +1 -0
- package/out/concepts/Integration__.js +215 -0
- package/out/concepts/Integration__.js.map +1 -0
- package/out/concepts/InterfaceParam__.d.ts +121 -0
- package/out/concepts/InterfaceParam__.d.ts.map +1 -0
- package/out/concepts/InterfaceParam__.js +285 -0
- package/out/concepts/InterfaceParam__.js.map +1 -0
- package/out/concepts/InterfaceTriggerEvent__.d.ts +35 -0
- package/out/concepts/InterfaceTriggerEvent__.d.ts.map +1 -0
- package/out/concepts/InterfaceTriggerEvent__.js +74 -0
- package/out/concepts/InterfaceTriggerEvent__.js.map +1 -0
- package/out/concepts/Interface__.d.ts +406 -0
- package/out/concepts/Interface__.d.ts.map +1 -0
- package/out/concepts/Interface__.js +994 -0
- package/out/concepts/Interface__.js.map +1 -0
- package/out/concepts/JSBlock__.d.ts +40 -0
- package/out/concepts/JSBlock__.d.ts.map +1 -0
- package/out/concepts/JSBlock__.js +110 -0
- package/out/concepts/JSBlock__.js.map +1 -0
- package/out/concepts/JavaLogic__.d.ts +51 -0
- package/out/concepts/JavaLogic__.d.ts.map +1 -0
- package/out/concepts/JavaLogic__.js +116 -0
- package/out/concepts/JavaLogic__.js.map +1 -0
- package/out/concepts/LogicDeclaration__.d.ts +292 -0
- package/out/concepts/LogicDeclaration__.d.ts.map +1 -0
- package/out/concepts/LogicDeclaration__.js +421 -0
- package/out/concepts/LogicDeclaration__.js.map +1 -0
- package/out/concepts/LogicItem__.d.ts +188 -0
- package/out/concepts/LogicItem__.d.ts.map +1 -0
- package/out/concepts/LogicItem__.js +322 -0
- package/out/concepts/LogicItem__.js.map +1 -0
- package/out/concepts/Logic__.d.ts +657 -0
- package/out/concepts/Logic__.d.ts.map +1 -0
- package/out/concepts/Logic__.js +2280 -0
- package/out/concepts/Logic__.js.map +1 -0
- package/out/concepts/ManagerV2__.d.ts +36 -0
- package/out/concepts/ManagerV2__.d.ts.map +1 -0
- package/out/concepts/ManagerV2__.js +63 -0
- package/out/concepts/ManagerV2__.js.map +1 -0
- package/out/concepts/MatchCase__.d.ts +266 -0
- package/out/concepts/MatchCase__.d.ts.map +1 -0
- package/out/concepts/MatchCase__.js +677 -0
- package/out/concepts/MatchCase__.js.map +1 -0
- package/out/concepts/Match__.d.ts +125 -0
- package/out/concepts/Match__.d.ts.map +1 -0
- package/out/concepts/Match__.js +685 -0
- package/out/concepts/Match__.js.map +1 -0
- package/out/concepts/MemberExpression__.d.ts +66 -0
- package/out/concepts/MemberExpression__.d.ts.map +1 -0
- package/out/concepts/MemberExpression__.js +514 -0
- package/out/concepts/MemberExpression__.js.map +1 -0
- package/out/concepts/MetadataType__.d.ts +222 -0
- package/out/concepts/MetadataType__.d.ts.map +1 -0
- package/out/concepts/MetadataType__.js +422 -0
- package/out/concepts/MetadataType__.js.map +1 -0
- package/out/concepts/MicroApp__.d.ts +54 -0
- package/out/concepts/MicroApp__.d.ts.map +1 -0
- package/out/concepts/MicroApp__.js +80 -0
- package/out/concepts/MicroApp__.js.map +1 -0
- package/out/concepts/Module__.d.ts +1314 -0
- package/out/concepts/Module__.d.ts.map +1 -0
- package/out/concepts/Module__.js +1580 -0
- package/out/concepts/Module__.js.map +1 -0
- package/out/concepts/MsgTriggerEvent__.d.ts +139 -0
- package/out/concepts/MsgTriggerEvent__.d.ts.map +1 -0
- package/out/concepts/MsgTriggerEvent__.js +210 -0
- package/out/concepts/MsgTriggerEvent__.js.map +1 -0
- package/out/concepts/MsgTriggerLauncher__.d.ts +120 -0
- package/out/concepts/MsgTriggerLauncher__.d.ts.map +1 -0
- package/out/concepts/MsgTriggerLauncher__.js +189 -0
- package/out/concepts/MsgTriggerLauncher__.js.map +1 -0
- package/out/concepts/MultiApprovalPolicy__.d.ts +27 -0
- package/out/concepts/MultiApprovalPolicy__.d.ts.map +1 -0
- package/out/concepts/MultiApprovalPolicy__.js +55 -0
- package/out/concepts/MultiApprovalPolicy__.js.map +1 -0
- package/out/concepts/Namespace__.d.ts +1146 -0
- package/out/concepts/Namespace__.d.ts.map +1 -0
- package/out/concepts/Namespace__.js +1256 -0
- package/out/concepts/Namespace__.js.map +1 -0
- package/out/concepts/NewComposite__.d.ts +341 -0
- package/out/concepts/NewComposite__.d.ts.map +1 -0
- package/out/concepts/NewComposite__.js +1225 -0
- package/out/concepts/NewComposite__.js.map +1 -0
- package/out/concepts/NewList__.d.ts +128 -0
- package/out/concepts/NewList__.d.ts.map +1 -0
- package/out/concepts/NewList__.js +408 -0
- package/out/concepts/NewList__.js.map +1 -0
- package/out/concepts/NewMap__.d.ts +219 -0
- package/out/concepts/NewMap__.d.ts.map +1 -0
- package/out/concepts/NewMap__.js +558 -0
- package/out/concepts/NewMap__.js.map +1 -0
- package/out/concepts/New__.d.ts +32 -0
- package/out/concepts/New__.d.ts.map +1 -0
- package/out/concepts/New__.js +80 -0
- package/out/concepts/New__.js.map +1 -0
- package/out/concepts/NullLiteral__.d.ts +37 -0
- package/out/concepts/NullLiteral__.d.ts.map +1 -0
- package/out/concepts/NullLiteral__.js +102 -0
- package/out/concepts/NullLiteral__.js.map +1 -0
- package/out/concepts/NumberInputSetter__.d.ts +46 -0
- package/out/concepts/NumberInputSetter__.d.ts.map +1 -0
- package/out/concepts/NumberInputSetter__.js +70 -0
- package/out/concepts/NumberInputSetter__.js.map +1 -0
- package/out/concepts/NumericLiteral__.d.ts +49 -0
- package/out/concepts/NumericLiteral__.d.ts.map +1 -0
- package/out/concepts/NumericLiteral__.js +141 -0
- package/out/concepts/NumericLiteral__.js.map +1 -0
- package/out/concepts/OperatePermissionV2__.d.ts +44 -0
- package/out/concepts/OperatePermissionV2__.d.ts.map +1 -0
- package/out/concepts/OperatePermissionV2__.js +82 -0
- package/out/concepts/OperatePermissionV2__.js.map +1 -0
- package/out/concepts/OqlQueryComponent__.d.ts +63 -0
- package/out/concepts/OqlQueryComponent__.d.ts.map +1 -0
- package/out/concepts/OqlQueryComponent__.js +313 -0
- package/out/concepts/OqlQueryComponent__.js.map +1 -0
- package/out/concepts/OrSignPolicyV2__.d.ts +26 -0
- package/out/concepts/OrSignPolicyV2__.d.ts.map +1 -0
- package/out/concepts/OrSignPolicyV2__.js +55 -0
- package/out/concepts/OrSignPolicyV2__.js.map +1 -0
- package/out/concepts/OverriddenLogic__.d.ts +618 -0
- package/out/concepts/OverriddenLogic__.d.ts.map +1 -0
- package/out/concepts/OverriddenLogic__.js +1657 -0
- package/out/concepts/OverriddenLogic__.js.map +1 -0
- package/out/concepts/Paginate__.d.ts +57 -0
- package/out/concepts/Paginate__.d.ts.map +1 -0
- package/out/concepts/Paginate__.js +163 -0
- package/out/concepts/Paginate__.js.map +1 -0
- package/out/concepts/ParamWithGroup__.d.ts +44 -0
- package/out/concepts/ParamWithGroup__.d.ts.map +1 -0
- package/out/concepts/ParamWithGroup__.js +161 -0
- package/out/concepts/ParamWithGroup__.js.map +1 -0
- package/out/concepts/Param__.d.ts +145 -0
- package/out/concepts/Param__.d.ts.map +1 -0
- package/out/concepts/Param__.js +453 -0
- package/out/concepts/Param__.js.map +1 -0
- package/out/concepts/Point__.d.ts +34 -0
- package/out/concepts/Point__.d.ts.map +1 -0
- package/out/concepts/Point__.js +61 -0
- package/out/concepts/Point__.js.map +1 -0
- package/out/concepts/ProcessBindV2__.d.ts +53 -0
- package/out/concepts/ProcessBindV2__.d.ts.map +1 -0
- package/out/concepts/ProcessBindV2__.js +114 -0
- package/out/concepts/ProcessBindV2__.js.map +1 -0
- package/out/concepts/ProcessComponentV2__.d.ts +126 -0
- package/out/concepts/ProcessComponentV2__.d.ts.map +1 -0
- package/out/concepts/ProcessComponentV2__.js +186 -0
- package/out/concepts/ProcessComponentV2__.js.map +1 -0
- package/out/concepts/ProcessComponent__.d.ts +215 -0
- package/out/concepts/ProcessComponent__.d.ts.map +1 -0
- package/out/concepts/ProcessComponent__.js +276 -0
- package/out/concepts/ProcessComponent__.js.map +1 -0
- package/out/concepts/ProcessElementV2__.d.ts +552 -0
- package/out/concepts/ProcessElementV2__.d.ts.map +1 -0
- package/out/concepts/ProcessElementV2__.js +954 -0
- package/out/concepts/ProcessElementV2__.js.map +1 -0
- package/out/concepts/ProcessElement__.d.ts +628 -0
- package/out/concepts/ProcessElement__.d.ts.map +1 -0
- package/out/concepts/ProcessElement__.js +1079 -0
- package/out/concepts/ProcessElement__.js.map +1 -0
- package/out/concepts/ProcessOutcome__.d.ts +36 -0
- package/out/concepts/ProcessOutcome__.d.ts.map +1 -0
- package/out/concepts/ProcessOutcome__.js +97 -0
- package/out/concepts/ProcessOutcome__.js.map +1 -0
- package/out/concepts/ProcessOutcomes__.d.ts +36 -0
- package/out/concepts/ProcessOutcomes__.d.ts.map +1 -0
- package/out/concepts/ProcessOutcomes__.js +104 -0
- package/out/concepts/ProcessOutcomes__.js.map +1 -0
- package/out/concepts/ProcessV2__.d.ts +433 -0
- package/out/concepts/ProcessV2__.d.ts.map +1 -0
- package/out/concepts/ProcessV2__.js +732 -0
- package/out/concepts/ProcessV2__.js.map +1 -0
- package/out/concepts/Process__.d.ts +615 -0
- package/out/concepts/Process__.d.ts.map +1 -0
- package/out/concepts/Process__.js +985 -0
- package/out/concepts/Process__.js.map +1 -0
- package/out/concepts/PropDeclaration__.d.ts +109 -0
- package/out/concepts/PropDeclaration__.d.ts.map +1 -0
- package/out/concepts/PropDeclaration__.js +137 -0
- package/out/concepts/PropDeclaration__.js.map +1 -0
- package/out/concepts/PropertySelectSetter__.d.ts +26 -0
- package/out/concepts/PropertySelectSetter__.d.ts.map +1 -0
- package/out/concepts/PropertySelectSetter__.js +55 -0
- package/out/concepts/PropertySelectSetter__.js.map +1 -0
- package/out/concepts/QueryAggregateExpression__.d.ts +51 -0
- package/out/concepts/QueryAggregateExpression__.d.ts.map +1 -0
- package/out/concepts/QueryAggregateExpression__.js +126 -0
- package/out/concepts/QueryAggregateExpression__.js.map +1 -0
- package/out/concepts/QueryFieldExpression__.d.ts +67 -0
- package/out/concepts/QueryFieldExpression__.d.ts.map +1 -0
- package/out/concepts/QueryFieldExpression__.js +207 -0
- package/out/concepts/QueryFieldExpression__.js.map +1 -0
- package/out/concepts/QueryFromExpression__.d.ts +108 -0
- package/out/concepts/QueryFromExpression__.d.ts.map +1 -0
- package/out/concepts/QueryFromExpression__.js +244 -0
- package/out/concepts/QueryFromExpression__.js.map +1 -0
- package/out/concepts/QueryGroupByExpression__.d.ts +48 -0
- package/out/concepts/QueryGroupByExpression__.d.ts.map +1 -0
- package/out/concepts/QueryGroupByExpression__.js +123 -0
- package/out/concepts/QueryGroupByExpression__.js.map +1 -0
- package/out/concepts/QueryJoinExpression__.d.ts +195 -0
- package/out/concepts/QueryJoinExpression__.d.ts.map +1 -0
- package/out/concepts/QueryJoinExpression__.js +357 -0
- package/out/concepts/QueryJoinExpression__.js.map +1 -0
- package/out/concepts/QueryLimitExpression__.d.ts +48 -0
- package/out/concepts/QueryLimitExpression__.d.ts.map +1 -0
- package/out/concepts/QueryLimitExpression__.js +141 -0
- package/out/concepts/QueryLimitExpression__.js.map +1 -0
- package/out/concepts/QueryOrderByExpression__.d.ts +59 -0
- package/out/concepts/QueryOrderByExpression__.d.ts.map +1 -0
- package/out/concepts/QueryOrderByExpression__.js +158 -0
- package/out/concepts/QueryOrderByExpression__.js.map +1 -0
- package/out/concepts/QuerySelectExpression__.d.ts +213 -0
- package/out/concepts/QuerySelectExpression__.d.ts.map +1 -0
- package/out/concepts/QuerySelectExpression__.js +346 -0
- package/out/concepts/QuerySelectExpression__.js.map +1 -0
- package/out/concepts/Rect__.d.ts +42 -0
- package/out/concepts/Rect__.d.ts.map +1 -0
- package/out/concepts/Rect__.js +67 -0
- package/out/concepts/Rect__.js.map +1 -0
- package/out/concepts/Return__.d.ts +122 -0
- package/out/concepts/Return__.d.ts.map +1 -0
- package/out/concepts/Return__.js +359 -0
- package/out/concepts/Return__.js.map +1 -0
- package/out/concepts/Role__.d.ts +60 -0
- package/out/concepts/Role__.d.ts.map +1 -0
- package/out/concepts/Role__.js +188 -0
- package/out/concepts/Role__.js.map +1 -0
- package/out/concepts/SelectMembers__.d.ts +136 -0
- package/out/concepts/SelectMembers__.d.ts.map +1 -0
- package/out/concepts/SelectMembers__.js +259 -0
- package/out/concepts/SelectMembers__.js.map +1 -0
- package/out/concepts/SequentialPolicyV2__.d.ts +26 -0
- package/out/concepts/SequentialPolicyV2__.d.ts.map +1 -0
- package/out/concepts/SequentialPolicyV2__.js +55 -0
- package/out/concepts/SequentialPolicyV2__.js.map +1 -0
- package/out/concepts/SequentialPolicy__.d.ts +26 -0
- package/out/concepts/SequentialPolicy__.d.ts.map +1 -0
- package/out/concepts/SequentialPolicy__.js +55 -0
- package/out/concepts/SequentialPolicy__.js.map +1 -0
- package/out/concepts/SetterOption__.d.ts +50 -0
- package/out/concepts/SetterOption__.d.ts.map +1 -0
- package/out/concepts/SetterOption__.js +73 -0
- package/out/concepts/SetterOption__.js.map +1 -0
- package/out/concepts/SlotDeclaration__.d.ts +215 -0
- package/out/concepts/SlotDeclaration__.d.ts.map +1 -0
- package/out/concepts/SlotDeclaration__.js +285 -0
- package/out/concepts/SlotDeclaration__.js.map +1 -0
- package/out/concepts/Slot__.d.ts +54 -0
- package/out/concepts/Slot__.d.ts.map +1 -0
- package/out/concepts/Slot__.js +95 -0
- package/out/concepts/Slot__.js.map +1 -0
- package/out/concepts/SqlQueryComponent__.d.ts +59 -0
- package/out/concepts/SqlQueryComponent__.d.ts.map +1 -0
- package/out/concepts/SqlQueryComponent__.js +220 -0
- package/out/concepts/SqlQueryComponent__.js.map +1 -0
- package/out/concepts/Start__.d.ts +31 -0
- package/out/concepts/Start__.d.ts.map +1 -0
- package/out/concepts/Start__.js +75 -0
- package/out/concepts/Start__.js.map +1 -0
- package/out/concepts/StaticString__.d.ts +50 -0
- package/out/concepts/StaticString__.d.ts.map +1 -0
- package/out/concepts/StaticString__.js +114 -0
- package/out/concepts/StaticString__.js.map +1 -0
- package/out/concepts/StringInterpolation__.d.ts +124 -0
- package/out/concepts/StringInterpolation__.d.ts.map +1 -0
- package/out/concepts/StringInterpolation__.js +279 -0
- package/out/concepts/StringInterpolation__.js.map +1 -0
- package/out/concepts/StringLiteral__.d.ts +52 -0
- package/out/concepts/StringLiteral__.d.ts.map +1 -0
- package/out/concepts/StringLiteral__.js +185 -0
- package/out/concepts/StringLiteral__.js.map +1 -0
- package/out/concepts/StructureProperty__.d.ts +134 -0
- package/out/concepts/StructureProperty__.d.ts.map +1 -0
- package/out/concepts/StructureProperty__.js +292 -0
- package/out/concepts/StructureProperty__.js.map +1 -0
- package/out/concepts/Structure__.d.ts +241 -0
- package/out/concepts/Structure__.d.ts.map +1 -0
- package/out/concepts/Structure__.js +485 -0
- package/out/concepts/Structure__.js.map +1 -0
- package/out/concepts/SubLogic__.d.ts +418 -0
- package/out/concepts/SubLogic__.d.ts.map +1 -0
- package/out/concepts/SubLogic__.js +1002 -0
- package/out/concepts/SubLogic__.js.map +1 -0
- package/out/concepts/SwitchCase__.d.ts +93 -0
- package/out/concepts/SwitchCase__.d.ts.map +1 -0
- package/out/concepts/SwitchCase__.js +282 -0
- package/out/concepts/SwitchCase__.js.map +1 -0
- package/out/concepts/SwitchSetter__.d.ts +26 -0
- package/out/concepts/SwitchSetter__.d.ts.map +1 -0
- package/out/concepts/SwitchSetter__.js +55 -0
- package/out/concepts/SwitchSetter__.js.map +1 -0
- package/out/concepts/SwitchStatement__.d.ts +92 -0
- package/out/concepts/SwitchStatement__.d.ts.map +1 -0
- package/out/concepts/SwitchStatement__.js +221 -0
- package/out/concepts/SwitchStatement__.js.map +1 -0
- package/out/concepts/ThemeVariable__.d.ts +30 -0
- package/out/concepts/ThemeVariable__.d.ts.map +1 -0
- package/out/concepts/ThemeVariable__.js +58 -0
- package/out/concepts/ThemeVariable__.js.map +1 -0
- package/out/concepts/Theme__.d.ts +44 -0
- package/out/concepts/Theme__.d.ts.map +1 -0
- package/out/concepts/Theme__.js +83 -0
- package/out/concepts/Theme__.js.map +1 -0
- package/out/concepts/Transactional__.d.ts +86 -0
- package/out/concepts/Transactional__.d.ts.map +1 -0
- package/out/concepts/Transactional__.js +150 -0
- package/out/concepts/Transactional__.js.map +1 -0
- package/out/concepts/TriggerEvent__.d.ts +44 -0
- package/out/concepts/TriggerEvent__.d.ts.map +1 -0
- package/out/concepts/TriggerEvent__.js +93 -0
- package/out/concepts/TriggerEvent__.js.map +1 -0
- package/out/concepts/TriggerLauncher__.d.ts +77 -0
- package/out/concepts/TriggerLauncher__.d.ts.map +1 -0
- package/out/concepts/TriggerLauncher__.js +232 -0
- package/out/concepts/TriggerLauncher__.js.map +1 -0
- package/out/concepts/TypeAnnotation__.d.ts +310 -0
- package/out/concepts/TypeAnnotation__.d.ts.map +1 -0
- package/out/concepts/TypeAnnotation__.js +1169 -0
- package/out/concepts/TypeAnnotation__.js.map +1 -0
- package/out/concepts/TypeParam__.d.ts +40 -0
- package/out/concepts/TypeParam__.d.ts.map +1 -0
- package/out/concepts/TypeParam__.js +91 -0
- package/out/concepts/TypeParam__.js.map +1 -0
- package/out/concepts/UnaryExpression__.d.ts +48 -0
- package/out/concepts/UnaryExpression__.d.ts.map +1 -0
- package/out/concepts/UnaryExpression__.js +176 -0
- package/out/concepts/UnaryExpression__.js.map +1 -0
- package/out/concepts/Unparsed__.d.ts +42 -0
- package/out/concepts/Unparsed__.d.ts.map +1 -0
- package/out/concepts/Unparsed__.js +98 -0
- package/out/concepts/Unparsed__.js.map +1 -0
- package/out/concepts/UseComponent__.d.ts +34 -0
- package/out/concepts/UseComponent__.d.ts.map +1 -0
- package/out/concepts/UseComponent__.js +61 -0
- package/out/concepts/UseComponent__.js.map +1 -0
- package/out/concepts/ValidationRule__.d.ts +130 -0
- package/out/concepts/ValidationRule__.d.ts.map +1 -0
- package/out/concepts/ValidationRule__.js +542 -0
- package/out/concepts/ValidationRule__.js.map +1 -0
- package/out/concepts/Variable__.d.ts +140 -0
- package/out/concepts/Variable__.d.ts.map +1 -0
- package/out/concepts/Variable__.js +457 -0
- package/out/concepts/Variable__.js.map +1 -0
- package/out/concepts/ViewBlockWithImage__.d.ts +34 -0
- package/out/concepts/ViewBlockWithImage__.d.ts.map +1 -0
- package/out/concepts/ViewBlockWithImage__.js +61 -0
- package/out/concepts/ViewBlockWithImage__.js.map +1 -0
- package/out/concepts/ViewBlock__.d.ts +38 -0
- package/out/concepts/ViewBlock__.d.ts.map +1 -0
- package/out/concepts/ViewBlock__.js +64 -0
- package/out/concepts/ViewBlock__.js.map +1 -0
- package/out/concepts/ViewComponentDeclaration__.d.ts +727 -0
- package/out/concepts/ViewComponentDeclaration__.d.ts.map +1 -0
- package/out/concepts/ViewComponentDeclaration__.js +833 -0
- package/out/concepts/ViewComponentDeclaration__.js.map +1 -0
- package/out/concepts/ViewElement__.d.ts +666 -0
- package/out/concepts/ViewElement__.d.ts.map +1 -0
- package/out/concepts/ViewElement__.js +2929 -0
- package/out/concepts/ViewElement__.js.map +1 -0
- package/out/concepts/View__.d.ts +754 -0
- package/out/concepts/View__.d.ts.map +1 -0
- package/out/concepts/View__.js +2907 -0
- package/out/concepts/View__.js.map +1 -0
- package/out/concepts/WhileStatement__.d.ts +96 -0
- package/out/concepts/WhileStatement__.d.ts.map +1 -0
- package/out/concepts/WhileStatement__.js +256 -0
- package/out/concepts/WhileStatement__.js.map +1 -0
- package/out/concepts/basics/index.d.ts +16 -0
- package/out/concepts/basics/index.d.ts.map +1 -0
- package/out/concepts/basics/index.js +54 -0
- package/out/concepts/basics/index.js.map +1 -0
- package/out/concepts/basics/stdlib/index.d.ts +16 -0
- package/out/concepts/basics/stdlib/index.d.ts.map +1 -0
- package/out/concepts/basics/stdlib/index.js +93 -0
- package/out/concepts/basics/stdlib/index.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.auth.d.ts +10 -0
- package/out/concepts/basics/stdlib/nasl.auth.d.ts.map +1 -0
- package/out/concepts/basics/stdlib/nasl.auth.js +206 -0
- package/out/concepts/basics/stdlib/nasl.auth.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.browser.d.ts +6 -0
- package/out/concepts/basics/stdlib/nasl.browser.d.ts.map +1 -0
- package/out/concepts/basics/stdlib/nasl.browser.js +200 -0
- package/out/concepts/basics/stdlib/nasl.browser.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.collection.d.ts +10 -0
- package/out/concepts/basics/stdlib/nasl.collection.d.ts.map +1 -0
- package/out/concepts/basics/stdlib/nasl.collection.js +57 -0
- package/out/concepts/basics/stdlib/nasl.collection.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.configuration.d.ts +10 -0
- package/out/concepts/basics/stdlib/nasl.configuration.d.ts.map +1 -0
- package/out/concepts/basics/stdlib/nasl.configuration.js +97 -0
- package/out/concepts/basics/stdlib/nasl.configuration.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.core.d.ts +8 -0
- package/out/concepts/basics/stdlib/nasl.core.d.ts.map +1 -0
- package/out/concepts/basics/stdlib/nasl.core.js +47 -0
- package/out/concepts/basics/stdlib/nasl.core.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.event.d.ts +6 -0
- package/out/concepts/basics/stdlib/nasl.event.d.ts.map +1 -0
- package/out/concepts/basics/stdlib/nasl.event.js +34 -0
- package/out/concepts/basics/stdlib/nasl.event.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.http.d.ts +10 -0
- package/out/concepts/basics/stdlib/nasl.http.d.ts.map +1 -0
- package/out/concepts/basics/stdlib/nasl.http.js +174 -0
- package/out/concepts/basics/stdlib/nasl.http.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.interface.d.ts +10 -0
- package/out/concepts/basics/stdlib/nasl.interface.d.ts.map +1 -0
- package/out/concepts/basics/stdlib/nasl.interface.js +49 -0
- package/out/concepts/basics/stdlib/nasl.interface.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.io.d.ts +6 -0
- package/out/concepts/basics/stdlib/nasl.io.d.ts.map +1 -0
- package/out/concepts/basics/stdlib/nasl.io.js +61 -0
- package/out/concepts/basics/stdlib/nasl.io.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.logging.d.ts +6 -0
- package/out/concepts/basics/stdlib/nasl.logging.d.ts.map +1 -0
- package/out/concepts/basics/stdlib/nasl.logging.js +65 -0
- package/out/concepts/basics/stdlib/nasl.logging.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.process.d.ts +10 -0
- package/out/concepts/basics/stdlib/nasl.process.d.ts.map +1 -0
- package/out/concepts/basics/stdlib/nasl.process.js +741 -0
- package/out/concepts/basics/stdlib/nasl.process.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.processV2.d.ts +12 -0
- package/out/concepts/basics/stdlib/nasl.processV2.d.ts.map +1 -0
- package/out/concepts/basics/stdlib/nasl.processV2.js +967 -0
- package/out/concepts/basics/stdlib/nasl.processV2.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.ui.d.ts +10 -0
- package/out/concepts/basics/stdlib/nasl.ui.d.ts.map +1 -0
- package/out/concepts/basics/stdlib/nasl.ui.js +1038 -0
- package/out/concepts/basics/stdlib/nasl.ui.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.util.d.ts +7 -0
- package/out/concepts/basics/stdlib/nasl.util.d.ts.map +1 -0
- package/out/concepts/basics/stdlib/nasl.util.js +2501 -0
- package/out/concepts/basics/stdlib/nasl.util.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.validation.d.ts +6 -0
- package/out/concepts/basics/stdlib/nasl.validation.d.ts.map +1 -0
- package/out/concepts/basics/stdlib/nasl.validation.js +680 -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.d.ts.map +1 -0
- package/out/concepts/basics/stdlib/reference2TypeAnnotationList.js +47 -0
- package/out/concepts/basics/stdlib/reference2TypeAnnotationList.js.map +1 -0
- package/out/concepts/basics/stdlib/timeZone.d.ts +6 -0
- package/out/concepts/basics/stdlib/timeZone.d.ts.map +1 -0
- package/out/concepts/basics/stdlib/timeZone.js +196 -0
- package/out/concepts/basics/stdlib/timeZone.js.map +1 -0
- package/out/concepts/basics/types/coreTypeList.d.ts +5 -0
- package/out/concepts/basics/types/coreTypeList.d.ts.map +1 -0
- package/out/concepts/basics/types/coreTypeList.js +14 -0
- package/out/concepts/basics/types/coreTypeList.js.map +1 -0
- package/out/concepts/basics/types/dataTypes.d.ts +9 -0
- package/out/concepts/basics/types/dataTypes.d.ts.map +1 -0
- package/out/concepts/basics/types/dataTypes.js +18 -0
- package/out/concepts/basics/types/dataTypes.js.map +1 -0
- package/out/concepts/basics/types/index.d.ts +5 -0
- package/out/concepts/basics/types/index.d.ts.map +1 -0
- package/out/concepts/basics/types/index.js +17 -0
- package/out/concepts/basics/types/index.js.map +1 -0
- package/out/concepts/index.d.ts +6 -0
- package/out/concepts/index.d.ts.map +1 -0
- package/out/concepts/index.js +36 -0
- package/out/concepts/index.js.map +1 -0
- package/out/concepts/index__.d.ts +178 -0
- package/out/concepts/index__.d.ts.map +1 -0
- package/out/concepts/index__.js +194 -0
- package/out/concepts/index__.js.map +1 -0
- package/out/concepts/types__.d.ts +2 -0
- package/out/concepts/types__.d.ts.map +1 -0
- package/out/concepts/types__.js +3 -0
- package/out/concepts/types__.js.map +1 -0
- package/out/concepts/utils/asserts.d.ts +8822 -0
- package/out/concepts/utils/asserts.d.ts.map +1 -0
- package/out/concepts/utils/asserts.js +11727 -0
- package/out/concepts/utils/asserts.js.map +1 -0
- package/out/concepts/utils/quick-info.d.ts +21 -0
- package/out/concepts/utils/quick-info.d.ts.map +1 -0
- package/out/concepts/utils/quick-info.js +108 -0
- package/out/concepts/utils/quick-info.js.map +1 -0
- package/out/concepts/utils/types.d.ts +580 -0
- package/out/concepts/utils/types.d.ts.map +1 -0
- package/out/concepts/utils/types.js +3 -0
- package/out/concepts/utils/types.js.map +1 -0
- package/out/decorators/constant.d.ts +12 -0
- package/out/decorators/constant.d.ts.map +1 -0
- package/out/decorators/constant.js +6 -0
- package/out/decorators/constant.js.map +1 -0
- package/out/decorators/index.d.ts +34 -0
- package/out/decorators/index.d.ts.map +1 -0
- package/out/decorators/index.js +123 -0
- package/out/decorators/index.js.map +1 -0
- package/out/decorators/utils.d.ts +22 -0
- package/out/decorators/utils.d.ts.map +1 -0
- package/out/decorators/utils.js +50 -0
- package/out/decorators/utils.js.map +1 -0
- package/out/index.d.ts +13 -0
- package/out/index.d.ts.map +1 -0
- package/out/index.js +49 -0
- package/out/index.js.map +1 -0
- package/out/service/actionable.d.ts +3 -0
- package/out/service/actionable.d.ts.map +1 -0
- package/out/service/actionable.js +9 -0
- package/out/service/actionable.js.map +1 -0
- package/out/service/engine.d.ts +7 -0
- package/out/service/engine.d.ts.map +1 -0
- package/out/service/engine.js +120 -0
- package/out/service/engine.js.map +1 -0
- package/out/service/entity2LogicNamespace.d.ts +11 -0
- package/out/service/entity2LogicNamespace.d.ts.map +1 -0
- package/out/service/entity2LogicNamespace.js +379 -0
- package/out/service/entity2LogicNamespace.js.map +1 -0
- package/out/service/formatTsUtils.d.ts +37 -0
- package/out/service/formatTsUtils.d.ts.map +1 -0
- package/out/service/formatTsUtils.js +876 -0
- package/out/service/formatTsUtils.js.map +1 -0
- package/out/service/getConnector.d.ts +13 -0
- package/out/service/getConnector.d.ts.map +1 -0
- package/out/service/getConnector.js +117 -0
- package/out/service/getConnector.js.map +1 -0
- package/out/service/getExtensionModules.d.ts +4 -0
- package/out/service/getExtensionModules.d.ts.map +1 -0
- package/out/service/getExtensionModules.js +34 -0
- package/out/service/getExtensionModules.js.map +1 -0
- package/out/service/getFunctions.d.ts +4 -0
- package/out/service/getFunctions.d.ts.map +1 -0
- package/out/service/getFunctions.js +20 -0
- package/out/service/getFunctions.js.map +1 -0
- package/out/service/getInterfaces.d.ts +3 -0
- package/out/service/getInterfaces.d.ts.map +1 -0
- package/out/service/getInterfaces.js +48 -0
- package/out/service/getInterfaces.js.map +1 -0
- package/out/service/getLogging.d.ts +2 -0
- package/out/service/getLogging.d.ts.map +1 -0
- package/out/service/getLogging.js +9 -0
- package/out/service/getLogging.js.map +1 -0
- package/out/service/getLogics.d.ts +6 -0
- package/out/service/getLogics.d.ts.map +1 -0
- package/out/service/getLogics.js +509 -0
- package/out/service/getLogics.js.map +1 -0
- package/out/service/getMemberIdentifier.d.ts +18 -0
- package/out/service/getMemberIdentifier.d.ts.map +1 -0
- package/out/service/getMemberIdentifier.js +489 -0
- package/out/service/getMemberIdentifier.js.map +1 -0
- package/out/service/getProcessComponents.d.ts +3 -0
- package/out/service/getProcessComponents.d.ts.map +1 -0
- package/out/service/getProcessComponents.js +13 -0
- package/out/service/getProcessComponents.js.map +1 -0
- package/out/service/getProcesses.d.ts +34 -0
- package/out/service/getProcesses.d.ts.map +1 -0
- package/out/service/getProcesses.js +644 -0
- package/out/service/getProcesses.js.map +1 -0
- package/out/service/getProcessesV2.d.ts +91 -0
- package/out/service/getProcessesV2.d.ts.map +1 -0
- package/out/service/getProcessesV2.js +687 -0
- package/out/service/getProcessesV2.js.map +1 -0
- package/out/service/getValidates.d.ts +4 -0
- package/out/service/getValidates.d.ts.map +1 -0
- package/out/service/getValidates.js +14 -0
- package/out/service/getValidates.js.map +1 -0
- package/out/service/index.d.ts +19 -0
- package/out/service/index.d.ts.map +1 -0
- package/out/service/index.js +48 -0
- package/out/service/index.js.map +1 -0
- package/out/service/modules.d.ts +9 -0
- package/out/service/modules.d.ts.map +1 -0
- package/out/service/modules.js +88 -0
- package/out/service/modules.js.map +1 -0
- package/out/service/process2LogicNamespace.d.ts +27 -0
- package/out/service/process2LogicNamespace.d.ts.map +1 -0
- package/out/service/process2LogicNamespace.js +109 -0
- package/out/service/process2LogicNamespace.js.map +1 -0
- package/out/service/transform.d.ts +9 -0
- package/out/service/transform.d.ts.map +1 -0
- package/out/service/transform.js +36 -0
- package/out/service/transform.js.map +1 -0
- package/out/store/event.d.ts +14 -0
- package/out/store/event.d.ts.map +1 -0
- package/out/store/event.js +19 -0
- package/out/store/event.js.map +1 -0
- package/out/store/index.d.ts +8 -0
- package/out/store/index.d.ts.map +1 -0
- package/out/store/index.js +25 -0
- package/out/store/index.js.map +1 -0
- package/out/store/lib.d.ts +16 -0
- package/out/store/lib.d.ts.map +1 -0
- package/out/store/lib.js +21 -0
- package/out/store/lib.js.map +1 -0
- package/out/store/store.d.ts +16 -0
- package/out/store/store.d.ts.map +1 -0
- package/out/store/store.js +18 -0
- package/out/store/store.js.map +1 -0
- package/out/utils/bak-translator.d.ts +2 -0
- package/out/utils/bak-translator.d.ts.map +1 -0
- package/out/utils/bak-translator.js +334 -0
- package/out/utils/bak-translator.js.map +1 -0
- package/out/utils/constant.d.ts +4 -0
- package/out/utils/constant.d.ts.map +1 -0
- package/out/utils/constant.js +34 -0
- package/out/utils/constant.js.map +1 -0
- package/out/utils/index.d.ts +6 -0
- package/out/utils/index.d.ts.map +1 -0
- package/out/utils/index.js +22 -0
- package/out/utils/index.js.map +1 -0
- package/out/utils/node.d.ts +14 -0
- package/out/utils/node.d.ts.map +1 -0
- package/out/utils/node.js +85 -0
- package/out/utils/node.js.map +1 -0
- package/out/utils/utils.d.ts +13 -0
- package/out/utils/utils.d.ts.map +1 -0
- package/out/utils/utils.js +77 -0
- package/out/utils/utils.js.map +1 -0
- package/package.json +67 -0
|
@@ -0,0 +1,1721 @@
|
|
|
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 BaseNode_1;
|
|
32
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
33
|
+
exports.BaseNode = void 0;
|
|
34
|
+
const lodash_1 = require("lodash");
|
|
35
|
+
const nasl_translator_1 = require("@lcap/nasl-translator");
|
|
36
|
+
const nasl_sentry_1 = require("@lcap/nasl-sentry");
|
|
37
|
+
const utils = __importStar(require("../utils"));
|
|
38
|
+
const EventEmitter_1 = require("./EventEmitter");
|
|
39
|
+
const breakpoint_1 = require("../breakpoint");
|
|
40
|
+
const actionable_1 = require("../service/actionable");
|
|
41
|
+
const store_1 = require("../store");
|
|
42
|
+
const decorators_1 = require("../decorators");
|
|
43
|
+
const concepts_1 = require("../concepts");
|
|
44
|
+
const patchCompose = (node, type = 'add') => {
|
|
45
|
+
if (node?.composedBy) {
|
|
46
|
+
const app = node?.app;
|
|
47
|
+
if (type === 'add') {
|
|
48
|
+
app && app.addComposeNodes(node.composedBy, node); // undo 操作是临时判断,无法准确判断到触发点
|
|
49
|
+
}
|
|
50
|
+
else if (type == 'delete') {
|
|
51
|
+
app && app.deleteComposeNode(node.composedBy, node);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* 顶点类
|
|
57
|
+
* 属性均为只读,仅在初始化和 load 的情况下可以修改
|
|
58
|
+
*/
|
|
59
|
+
let BaseNode = class BaseNode extends EventEmitter_1.EventEmitter {
|
|
60
|
+
static { BaseNode_1 = this; }
|
|
61
|
+
static { this.ConceptName = 'BaseNode'; }
|
|
62
|
+
static { this.inheritanceChain = []; }
|
|
63
|
+
/**
|
|
64
|
+
* 概念
|
|
65
|
+
*/
|
|
66
|
+
get concept() {
|
|
67
|
+
return this._concept ?? this.constructor.ConceptName;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* @param source 需要合并的部分参数
|
|
71
|
+
*/
|
|
72
|
+
constructor(source) {
|
|
73
|
+
super();
|
|
74
|
+
/**
|
|
75
|
+
* 可修改标志,内部属性
|
|
76
|
+
* 标记在构造函数结束后是否可修改
|
|
77
|
+
*/
|
|
78
|
+
this._mutable = true;
|
|
79
|
+
/**
|
|
80
|
+
* 唯一 Id
|
|
81
|
+
*/
|
|
82
|
+
this.id = utils.uuidv4().replace(/-/g, '');
|
|
83
|
+
/**
|
|
84
|
+
* 父节点
|
|
85
|
+
*/
|
|
86
|
+
this.parentNode = null;
|
|
87
|
+
this.parentKey = '';
|
|
88
|
+
if (this.hasOwnProperty('JSON_EXCLUDED_KEYS') && this.JSON_EXCLUDED_KEYS === undefined)
|
|
89
|
+
delete this.JSON_EXCLUDED_KEYS;
|
|
90
|
+
/**
|
|
91
|
+
* 监听action,delete,update事件
|
|
92
|
+
*/
|
|
93
|
+
this.on('create', this.genActionListener);
|
|
94
|
+
this.on('delete', this.genActionListener);
|
|
95
|
+
this.on('update', this.genActionListener);
|
|
96
|
+
this.on('node:Editing', this.nodeEditing);
|
|
97
|
+
/**
|
|
98
|
+
* 监听action,delete,update事件
|
|
99
|
+
*/
|
|
100
|
+
this.on('create', () => breakpoint_1.operators.create(this));
|
|
101
|
+
this.on('delete', () => breakpoint_1.operators.delete(this));
|
|
102
|
+
this.on('update', () => breakpoint_1.operators.update(this));
|
|
103
|
+
}
|
|
104
|
+
subConstructor(source) {
|
|
105
|
+
const concept = this.concept || this.constructor.name;
|
|
106
|
+
const propertyMap = (0, decorators_1.getConceptPropertyMap)(concept);
|
|
107
|
+
const whitePropertyMap = (0, decorators_1.getConceptWhitePropertyMap)(concept);
|
|
108
|
+
const properties = Array.from(new Set([...Object.keys(this), ...Object.keys(source)])).filter((key) => propertyMap.has(key) || whitePropertyMap.has(key));
|
|
109
|
+
// 测试时用的标记属性
|
|
110
|
+
if (process.env.NODE_ENV === 'testing') {
|
|
111
|
+
properties.push('__$Selected', '__TypeAnnotation');
|
|
112
|
+
}
|
|
113
|
+
properties.forEach((key) => {
|
|
114
|
+
if (key === 'concept') {
|
|
115
|
+
return;
|
|
116
|
+
}
|
|
117
|
+
const sourceItem = source[key] !== undefined ? source[key] : this[key];
|
|
118
|
+
let property = propertyMap.get(key);
|
|
119
|
+
let objectRefCtor;
|
|
120
|
+
// 测试环境下,类型节点由外部注入,所以需要在初始化的时候必须带上类型节点
|
|
121
|
+
if (process.env.NODE_ENV === 'testing' && key === '__TypeAnnotation' && sourceItem) {
|
|
122
|
+
property = { objectRef: 'TypeAnnotation' };
|
|
123
|
+
}
|
|
124
|
+
try {
|
|
125
|
+
if (property?.objectRef) {
|
|
126
|
+
const arr = property.objectRef.split(' | ');
|
|
127
|
+
for (let i = 0; i < arr.length; i++) {
|
|
128
|
+
objectRefCtor = (0, decorators_1.getConceptConstructor)(arr[i]);
|
|
129
|
+
if (sourceItem instanceof objectRefCtor) {
|
|
130
|
+
sourceItem.parentNode = this;
|
|
131
|
+
sourceItem.parentKey = key;
|
|
132
|
+
break;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
// 数组的情况也在这里做掉了
|
|
137
|
+
const val = objectRefCtor && sourceItem && !(sourceItem instanceof objectRefCtor) ? this.instantiateSub(sourceItem, key) : sourceItem;
|
|
138
|
+
if (val !== undefined) {
|
|
139
|
+
this[key] = val;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
catch (e) {
|
|
143
|
+
// Function has non-object prototype 'undefined' in instanceof check
|
|
144
|
+
if (!e.message.includes('Function has non-object prototype'))
|
|
145
|
+
throw e;
|
|
146
|
+
}
|
|
147
|
+
});
|
|
148
|
+
breakpoint_1.operators.create(this);
|
|
149
|
+
// node 环境下需要删除当前节点的 concept 属性
|
|
150
|
+
if (utils.isNode && ('concept' in this) && !this.concept) {
|
|
151
|
+
Reflect.deleteProperty(this, 'concept');
|
|
152
|
+
}
|
|
153
|
+
if (this?.composedBy) {
|
|
154
|
+
const app = this?.app;
|
|
155
|
+
app && app?._action !== 'undo' && app.addComposeNodes(this.composedBy, this); // undo 操作是临时判断,无法准确判断到触发点
|
|
156
|
+
}
|
|
157
|
+
if (0 && ['Entity', 'Logic', "ViewElement"].includes(source.concept)) {
|
|
158
|
+
const app = this?.app;
|
|
159
|
+
if (app) {
|
|
160
|
+
app?.getDefaultOnAnno()?.[source.concept]?.map((anno) => {
|
|
161
|
+
if (this?.applyAnnotations?.length > 0) {
|
|
162
|
+
// (this as any)?._addApplyAnnotation(anno?.transToApplyAnno())
|
|
163
|
+
let aanno = anno?.transToApplyAnno();
|
|
164
|
+
if (!this?.applyAnnotations?.find((aa) => aa.annotationName === aanno.annotationName)) {
|
|
165
|
+
this?.applyAnnotations.push(aanno);
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
else {
|
|
169
|
+
this.applyAnnotations = [anno?.transToApplyAnno()];
|
|
170
|
+
// this.update({
|
|
171
|
+
// applyAnnotations:[anno?.transToApplyAnno()]
|
|
172
|
+
// })
|
|
173
|
+
}
|
|
174
|
+
});
|
|
175
|
+
// this.applyAnnotations
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
fixInstantiate() {
|
|
180
|
+
const propertyMap = (0, decorators_1.getConceptPropertyMap)(this.concept ?? this.constructor.name);
|
|
181
|
+
const properties = Object.keys(this).filter((key) => propertyMap.has(key));
|
|
182
|
+
properties.forEach((key) => {
|
|
183
|
+
const property = propertyMap.get(key);
|
|
184
|
+
const sourceItem = this[key];
|
|
185
|
+
const objectRefCtor = property.objectRef && (0, decorators_1.getConceptConstructor)(property.objectRef);
|
|
186
|
+
if (objectRefCtor) {
|
|
187
|
+
if (Array.isArray(sourceItem)) {
|
|
188
|
+
sourceItem.forEach((item, index) => {
|
|
189
|
+
if (item instanceof objectRefCtor) {
|
|
190
|
+
item.parentNode = this;
|
|
191
|
+
item.parentKey = key;
|
|
192
|
+
item.fixInstantiate();
|
|
193
|
+
}
|
|
194
|
+
else {
|
|
195
|
+
sourceItem[index] = this.instantiateSub(item instanceof BaseNode_1 ? item.toJSON() : item, key);
|
|
196
|
+
}
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
else if (sourceItem instanceof objectRefCtor) {
|
|
200
|
+
sourceItem.parentNode = this;
|
|
201
|
+
sourceItem.parentKey = key;
|
|
202
|
+
sourceItem.fixInstantiate();
|
|
203
|
+
}
|
|
204
|
+
else {
|
|
205
|
+
this[key] = this.instantiateSub(sourceItem instanceof BaseNode_1 ? sourceItem.toJSON() : sourceItem, key);
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
getIndexOfParent() {
|
|
211
|
+
let index = -1;
|
|
212
|
+
const { parentNode } = this;
|
|
213
|
+
if (parentNode) {
|
|
214
|
+
const { parentKey } = this;
|
|
215
|
+
const parentProperty = parentNode[parentKey];
|
|
216
|
+
if (Array.isArray(parentProperty)) {
|
|
217
|
+
index = parentProperty.indexOf(this);
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
return index;
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* 为存储点生成行为监听器
|
|
224
|
+
* @param action
|
|
225
|
+
* @returns
|
|
226
|
+
*/
|
|
227
|
+
genActionListener($event) {
|
|
228
|
+
// eventList是要被发送给后端的数据
|
|
229
|
+
if (!$event.eventList) {
|
|
230
|
+
$event.eventList = [];
|
|
231
|
+
}
|
|
232
|
+
if (!$event.eventStop) {
|
|
233
|
+
$event.eventList.push($event);
|
|
234
|
+
}
|
|
235
|
+
$event.originEvent = $event.originEvent || $event;
|
|
236
|
+
this.onChange($event);
|
|
237
|
+
if (this.concept === 'App') {
|
|
238
|
+
this.emit('storage', $event);
|
|
239
|
+
}
|
|
240
|
+
else if (this.parentNode && this.parentNode.emit) {
|
|
241
|
+
const event = {
|
|
242
|
+
action: 'update',
|
|
243
|
+
path: this.parentNode?.getNodePath(false),
|
|
244
|
+
object: {},
|
|
245
|
+
oldObject: {},
|
|
246
|
+
originEvent: $event.originEvent,
|
|
247
|
+
eventList: $event.eventList,
|
|
248
|
+
// eventStop为true后,数据不再存入eventList,就不再会将冒泡数据发送给后端
|
|
249
|
+
eventStop: true,
|
|
250
|
+
};
|
|
251
|
+
this.parentNode?.emit?.('update', event);
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
nodeEditing($event) {
|
|
255
|
+
this.parentNode?.emit?.('node:Editing', $event);
|
|
256
|
+
}
|
|
257
|
+
createNode({ parentNode, parentKey, index }) {
|
|
258
|
+
if (!actionable_1.actionable) {
|
|
259
|
+
(0, store_1.getEventBus)().emit?.('NotActionable');
|
|
260
|
+
return;
|
|
261
|
+
}
|
|
262
|
+
if (parentNode) {
|
|
263
|
+
const property = parentNode[parentKey];
|
|
264
|
+
if (Array.isArray(property) && index !== -1) {
|
|
265
|
+
property.splice(index, 0, this);
|
|
266
|
+
}
|
|
267
|
+
else {
|
|
268
|
+
parentNode[parentKey] = this;
|
|
269
|
+
}
|
|
270
|
+
this.parentNode = parentNode;
|
|
271
|
+
this.parentKey = parentKey;
|
|
272
|
+
this.create({
|
|
273
|
+
index,
|
|
274
|
+
parentKey,
|
|
275
|
+
});
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
toTemplateJSON() {
|
|
279
|
+
return this._toJSON((source) => {
|
|
280
|
+
delete source.id;
|
|
281
|
+
delete source.i18nKey;
|
|
282
|
+
return source;
|
|
283
|
+
});
|
|
284
|
+
}
|
|
285
|
+
/**
|
|
286
|
+
* 创建节点
|
|
287
|
+
*/
|
|
288
|
+
create(parentParams) {
|
|
289
|
+
if (!actionable_1.actionable) {
|
|
290
|
+
this._delete();
|
|
291
|
+
(0, store_1.getEventBus)().emit('NotActionable');
|
|
292
|
+
return;
|
|
293
|
+
}
|
|
294
|
+
patchCompose(this, 'add');
|
|
295
|
+
this.emit('create', {
|
|
296
|
+
action: 'create',
|
|
297
|
+
path: this.getNodePath(true),
|
|
298
|
+
object: this.toJSON(),
|
|
299
|
+
...parentParams,
|
|
300
|
+
oldObject: null,
|
|
301
|
+
});
|
|
302
|
+
}
|
|
303
|
+
/**
|
|
304
|
+
* 如果有父节点,则删除节点,在添加时调用
|
|
305
|
+
*/
|
|
306
|
+
ensureDelete() {
|
|
307
|
+
if (!actionable_1.actionable) {
|
|
308
|
+
(0, store_1.getEventBus)().emit('NotActionable');
|
|
309
|
+
return;
|
|
310
|
+
}
|
|
311
|
+
// 批量赋值因为连线的问题需要特殊处理一下.
|
|
312
|
+
if (this.parentNode?.concept === 'SelectMembers') {
|
|
313
|
+
this.parentNode.ensureDelete();
|
|
314
|
+
return;
|
|
315
|
+
}
|
|
316
|
+
if (this.concept === 'SelectMembers' && this.parentNode) {
|
|
317
|
+
const node = this.parentNode;
|
|
318
|
+
node.changeLinesLocation(this);
|
|
319
|
+
}
|
|
320
|
+
if (this.parentNode && this.parentKey) {
|
|
321
|
+
const path = this.getNodePath(false);
|
|
322
|
+
const parentParams = this._delete();
|
|
323
|
+
if (parentParams && parentParams.index !== -1) {
|
|
324
|
+
if (Array.isArray(this.parentNode[this.parentKey])) {
|
|
325
|
+
this.emit('delete', {
|
|
326
|
+
action: 'delete',
|
|
327
|
+
path,
|
|
328
|
+
object: null,
|
|
329
|
+
...parentParams,
|
|
330
|
+
});
|
|
331
|
+
}
|
|
332
|
+
else {
|
|
333
|
+
const parentPath = this.parentNode.getNodePath(false);
|
|
334
|
+
this.parentNode.emit('update', {
|
|
335
|
+
action: 'update',
|
|
336
|
+
path: parentPath,
|
|
337
|
+
object: {
|
|
338
|
+
[this.parentKey]: null,
|
|
339
|
+
},
|
|
340
|
+
oldObject: {
|
|
341
|
+
[this.parentKey]: this.toJSON(),
|
|
342
|
+
},
|
|
343
|
+
});
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
/**
|
|
349
|
+
* 删除节点
|
|
350
|
+
*/
|
|
351
|
+
delete() {
|
|
352
|
+
patchCompose(this, 'delete');
|
|
353
|
+
if (!actionable_1.actionable) {
|
|
354
|
+
(0, store_1.getEventBus)().emit('NotActionable');
|
|
355
|
+
return;
|
|
356
|
+
}
|
|
357
|
+
if (this.parentNode?.concept === 'Match' && this.parentKey === 'expression') {
|
|
358
|
+
this.parentNode.setExpressionWitchCase(null);
|
|
359
|
+
return;
|
|
360
|
+
}
|
|
361
|
+
// 批量赋值因为连线的问题需要特殊处理一下.
|
|
362
|
+
if (this.parentNode?.concept === 'SelectMembers') {
|
|
363
|
+
const node = this.parentNode;
|
|
364
|
+
node.delete();
|
|
365
|
+
return;
|
|
366
|
+
}
|
|
367
|
+
if (this.concept === 'SelectMembers') {
|
|
368
|
+
const node = this.parentNode;
|
|
369
|
+
node.changeLinesLocation(this);
|
|
370
|
+
}
|
|
371
|
+
// 自定义连接器下的namespace删除的时候需要同时删除对应的logic
|
|
372
|
+
if (this.concept === 'Namespace' && this.parentNode.concept === 'Connector') {
|
|
373
|
+
while (this.logics.length > 0) {
|
|
374
|
+
const curLogic = this.logics?.shift();
|
|
375
|
+
if (curLogic) {
|
|
376
|
+
curLogic?.delete();
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
const useIndex = ['Identifier'].includes(this.concept);
|
|
381
|
+
const path = this.getNodePath(useIndex);
|
|
382
|
+
const parentParams = this._delete();
|
|
383
|
+
if (parentParams && parentParams.index !== -1) {
|
|
384
|
+
if (Array.isArray(this.parentNode[this.parentKey])) {
|
|
385
|
+
if (process.env.NODE_ENV === 'development') {
|
|
386
|
+
console.log('[删除节点]', this?.name, this);
|
|
387
|
+
}
|
|
388
|
+
this.emit('delete', {
|
|
389
|
+
action: 'delete',
|
|
390
|
+
path,
|
|
391
|
+
object: null,
|
|
392
|
+
...parentParams,
|
|
393
|
+
});
|
|
394
|
+
}
|
|
395
|
+
else {
|
|
396
|
+
const parentPath = this.parentNode.getNodePath(false);
|
|
397
|
+
this.parentNode.emit('update', {
|
|
398
|
+
action: 'update',
|
|
399
|
+
path: parentPath,
|
|
400
|
+
object: {
|
|
401
|
+
[this.parentKey]: null,
|
|
402
|
+
},
|
|
403
|
+
oldObject: {
|
|
404
|
+
[this.parentKey]: this.toJSON(),
|
|
405
|
+
},
|
|
406
|
+
});
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
/**
|
|
411
|
+
* 更新节点
|
|
412
|
+
*/
|
|
413
|
+
update({ field, ...object }) {
|
|
414
|
+
if (!actionable_1.actionable) {
|
|
415
|
+
(0, store_1.getEventBus)().emit('NotActionable');
|
|
416
|
+
return;
|
|
417
|
+
}
|
|
418
|
+
const path = this.getNodePath(false);
|
|
419
|
+
// 更新前的旧的对象
|
|
420
|
+
const oldObject = {};
|
|
421
|
+
// 更新后的新对象
|
|
422
|
+
const newObject = {};
|
|
423
|
+
const riskList = [];
|
|
424
|
+
for (const key in object) {
|
|
425
|
+
if (key === 'concept') {
|
|
426
|
+
continue;
|
|
427
|
+
}
|
|
428
|
+
if (Object.prototype.hasOwnProperty.call(object, key)) {
|
|
429
|
+
// 旧对象收集
|
|
430
|
+
this.collectOldObject({
|
|
431
|
+
oldObject,
|
|
432
|
+
key
|
|
433
|
+
});
|
|
434
|
+
// 新对象收集
|
|
435
|
+
this.collectNewObject({
|
|
436
|
+
newObject,
|
|
437
|
+
object,
|
|
438
|
+
key,
|
|
439
|
+
riskList
|
|
440
|
+
});
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
// 更新实例上的属性
|
|
444
|
+
// 有时候需要把实例对象挂载上去,如:
|
|
445
|
+
// 批量赋值-把这个变量往这个clone里边拖的时候报内部出错 http://projectmanage.netease-official.lcap.163yun.com/dashboard/BugDetail?id=2766199685126400
|
|
446
|
+
this.updateInstance(object);
|
|
447
|
+
if (process.env.NODE_ENV === 'development') {
|
|
448
|
+
console.log('[更新节点]', 'path:', path, 'oldObject:', oldObject, 'newObject:', newObject);
|
|
449
|
+
}
|
|
450
|
+
if (newObject?.composedBy && !oldObject?.composedBy) {
|
|
451
|
+
patchCompose(this, 'add');
|
|
452
|
+
}
|
|
453
|
+
else if (!newObject?.composedBy && oldObject?.composedBy) {
|
|
454
|
+
patchCompose(this, 'delete');
|
|
455
|
+
}
|
|
456
|
+
this.emit('update', {
|
|
457
|
+
action: 'update',
|
|
458
|
+
path,
|
|
459
|
+
object: newObject,
|
|
460
|
+
oldObject,
|
|
461
|
+
field,
|
|
462
|
+
riskList,
|
|
463
|
+
});
|
|
464
|
+
}
|
|
465
|
+
// 旧对象收集
|
|
466
|
+
collectOldObject(params) {
|
|
467
|
+
const { oldObject, key } = params || {};
|
|
468
|
+
const oldProperty = this[key] ?? null;
|
|
469
|
+
oldObject[key] = oldProperty;
|
|
470
|
+
if (Array.isArray(oldProperty)) {
|
|
471
|
+
oldObject[key] = oldProperty.map((item) => {
|
|
472
|
+
let propertyItem = item ?? null;
|
|
473
|
+
if (item instanceof BaseNode_1) {
|
|
474
|
+
propertyItem = item.toJSON();
|
|
475
|
+
}
|
|
476
|
+
return propertyItem;
|
|
477
|
+
});
|
|
478
|
+
}
|
|
479
|
+
else if (oldProperty instanceof BaseNode_1) {
|
|
480
|
+
oldObject[key] = oldProperty.toJSON();
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
// 新对象收集
|
|
484
|
+
collectNewObject(params) {
|
|
485
|
+
const { newObject, object, key, riskList } = params || {};
|
|
486
|
+
const propertyMap = (0, decorators_1.getConceptPropertyMap)(this.concept ?? this.constructor.name);
|
|
487
|
+
const property = propertyMap.get(key);
|
|
488
|
+
if (property) {
|
|
489
|
+
const objProperty = object[key] ?? null;
|
|
490
|
+
const propertyConcept = property?.objectRef;
|
|
491
|
+
// 在定义中该属性是否为数组
|
|
492
|
+
const propertyIsArray = property?.isArray;
|
|
493
|
+
const propertyDefaultValue = property?.defaultValue;
|
|
494
|
+
if (propertyIsArray && (!Array.isArray(objProperty) && objProperty != propertyDefaultValue)) {
|
|
495
|
+
riskList?.push(`将Nasl节点“${this.concept}”上声明为数组的属性“${key}”赋值为“${objProperty}”`);
|
|
496
|
+
}
|
|
497
|
+
if (propertyConcept) {
|
|
498
|
+
if (Array.isArray(objProperty)) {
|
|
499
|
+
newObject[key] = objProperty.map((objItem) => {
|
|
500
|
+
return this.ensureDefined({
|
|
501
|
+
object: objItem,
|
|
502
|
+
concept: propertyConcept,
|
|
503
|
+
riskList
|
|
504
|
+
});
|
|
505
|
+
});
|
|
506
|
+
}
|
|
507
|
+
else {
|
|
508
|
+
newObject[key] = this.ensureDefined({
|
|
509
|
+
object: objProperty,
|
|
510
|
+
concept: propertyConcept,
|
|
511
|
+
riskList
|
|
512
|
+
});
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
else {
|
|
516
|
+
newObject[key] = objProperty;
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
// 确保属性都是定义过的
|
|
521
|
+
ensureDefined(params) {
|
|
522
|
+
const { object, concept, riskList } = params || {};
|
|
523
|
+
if (!object) {
|
|
524
|
+
return object;
|
|
525
|
+
}
|
|
526
|
+
const newObject = {};
|
|
527
|
+
const actualConcept = object?.concept || concept;
|
|
528
|
+
if (actualConcept) {
|
|
529
|
+
const propertyMap = (0, decorators_1.getConceptPropertyMap)(actualConcept);
|
|
530
|
+
for (const key in object) {
|
|
531
|
+
const property = propertyMap.get(key);
|
|
532
|
+
if (property) {
|
|
533
|
+
const objProperty = object[key] ?? null;
|
|
534
|
+
const propertyConcept = property?.objectRef;
|
|
535
|
+
// 在定义中该属性是否为数组
|
|
536
|
+
const propertyIsArray = property?.isArray;
|
|
537
|
+
const propertyDefaultValue = property?.defaultValue;
|
|
538
|
+
if (propertyIsArray && (!Array.isArray(objProperty) && objProperty != propertyDefaultValue)) {
|
|
539
|
+
riskList?.push(`将Nasl节点“${actualConcept}”上声明为数组的属性“${key}”赋值为“${objProperty}”`);
|
|
540
|
+
}
|
|
541
|
+
if (propertyConcept) {
|
|
542
|
+
if (Array.isArray(objProperty)) {
|
|
543
|
+
newObject[key] = objProperty.map((objItem) => {
|
|
544
|
+
return this.ensureDefined({
|
|
545
|
+
object: objItem,
|
|
546
|
+
concept: propertyConcept,
|
|
547
|
+
riskList,
|
|
548
|
+
});
|
|
549
|
+
});
|
|
550
|
+
}
|
|
551
|
+
else {
|
|
552
|
+
newObject[key] = this.ensureDefined({
|
|
553
|
+
object: objProperty,
|
|
554
|
+
concept: propertyConcept,
|
|
555
|
+
riskList
|
|
556
|
+
});
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
else {
|
|
560
|
+
newObject[key] = objProperty;
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
newObject.concept = actualConcept;
|
|
565
|
+
}
|
|
566
|
+
return newObject;
|
|
567
|
+
}
|
|
568
|
+
// 更新实例上的属性
|
|
569
|
+
updateInstance(object) {
|
|
570
|
+
for (const key in object) {
|
|
571
|
+
if (key === 'concept') {
|
|
572
|
+
continue;
|
|
573
|
+
}
|
|
574
|
+
const property = object[key] ?? null;
|
|
575
|
+
this[key] = property;
|
|
576
|
+
const objectRefCtor = (0, decorators_1.getConceptConstructor)(property?.concept);
|
|
577
|
+
if (Array.isArray(property)) {
|
|
578
|
+
this[key] = property.map((item) => {
|
|
579
|
+
let propertyItem = item ?? null;
|
|
580
|
+
const propertyObjectRefCtor = (0, decorators_1.getConceptConstructor)(item?.concept);
|
|
581
|
+
if (propertyObjectRefCtor?.from) {
|
|
582
|
+
propertyItem = propertyObjectRefCtor.from(item, this, key);
|
|
583
|
+
}
|
|
584
|
+
return propertyItem;
|
|
585
|
+
});
|
|
586
|
+
}
|
|
587
|
+
else if (objectRefCtor?.from) {
|
|
588
|
+
this[key] = objectRefCtor.from(property, this, key);
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
_delete() {
|
|
593
|
+
/* override */
|
|
594
|
+
const params = {
|
|
595
|
+
parentNode: this.parentNode,
|
|
596
|
+
parentKey: this.parentKey,
|
|
597
|
+
index: -1,
|
|
598
|
+
object: null,
|
|
599
|
+
oldObject: this,
|
|
600
|
+
};
|
|
601
|
+
if (params.parentNode && params.parentKey) {
|
|
602
|
+
// @ts-ignore
|
|
603
|
+
const parentNode = params.parentNode.__v_raw || params.parentNode;
|
|
604
|
+
const parentKey = params.parentKey;
|
|
605
|
+
// @ts-ignore
|
|
606
|
+
const node = this.__v_raw || this;
|
|
607
|
+
if (Array.isArray(parentNode[parentKey])) {
|
|
608
|
+
// @ts-ignore
|
|
609
|
+
const index = parentNode[parentKey].findIndex(child => ((child?.__v_raw) || child) === node);
|
|
610
|
+
~index && params.parentNode[parentKey].splice(index, 1);
|
|
611
|
+
params.index = index;
|
|
612
|
+
}
|
|
613
|
+
else {
|
|
614
|
+
const oldNode = parentNode[parentKey];
|
|
615
|
+
if ((oldNode?.__v_raw || oldNode) === node) {
|
|
616
|
+
params.index = 0;
|
|
617
|
+
params.parentNode[parentKey] = undefined;
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
}
|
|
621
|
+
return params;
|
|
622
|
+
}
|
|
623
|
+
static from(source, parentNode, parentKey) {
|
|
624
|
+
// 有一些继承的情况
|
|
625
|
+
const Ctor = (0, decorators_1.getConceptConstructor)(source?.concept) || this;
|
|
626
|
+
if (Ctor && source instanceof Ctor) {
|
|
627
|
+
if (utils.isDebugMode) {
|
|
628
|
+
console.warn('传入的对象已经是一个实例,请确认逻辑是否存在问题!');
|
|
629
|
+
}
|
|
630
|
+
if (parentNode) {
|
|
631
|
+
source.parentNode = parentNode;
|
|
632
|
+
}
|
|
633
|
+
if (parentKey) {
|
|
634
|
+
source.parentKey = parentKey;
|
|
635
|
+
}
|
|
636
|
+
return source;
|
|
637
|
+
}
|
|
638
|
+
if (Ctor) {
|
|
639
|
+
const instance = new Ctor();
|
|
640
|
+
if (parentNode) {
|
|
641
|
+
instance.parentNode = parentNode;
|
|
642
|
+
}
|
|
643
|
+
if (parentKey) {
|
|
644
|
+
instance.parentKey = parentKey;
|
|
645
|
+
}
|
|
646
|
+
let concept;
|
|
647
|
+
if (source?.concept)
|
|
648
|
+
concept = source?.concept;
|
|
649
|
+
else if (!Ctor.isAbstract) {
|
|
650
|
+
concept = this?.prototype?.concept ?? Ctor.ConceptName ?? Ctor.name;
|
|
651
|
+
}
|
|
652
|
+
else {
|
|
653
|
+
throw new Error('抽象类需要补充 concept!');
|
|
654
|
+
}
|
|
655
|
+
instance.subConstructor({
|
|
656
|
+
...source,
|
|
657
|
+
concept,
|
|
658
|
+
parentNode,
|
|
659
|
+
});
|
|
660
|
+
return instance;
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
get nodePath() {
|
|
664
|
+
return this.getNodePath(false);
|
|
665
|
+
}
|
|
666
|
+
getTokenKeyWithNamespace() {
|
|
667
|
+
/**
|
|
668
|
+
* 本来想在 BaseNode 上加个 getNamespace 方法作为默认的类型的
|
|
669
|
+
* 但是没想到上层有逻辑依赖了判断节点是否有这个方法,加上这个默认方法之后有些功能挂了,所以这里不得不使用 as any
|
|
670
|
+
*/
|
|
671
|
+
return `${this.getNamespace()}.${this.name}`;
|
|
672
|
+
}
|
|
673
|
+
getNodePath(useIndex) {
|
|
674
|
+
let node = this;
|
|
675
|
+
let useIndexKeys = [];
|
|
676
|
+
let option = {};
|
|
677
|
+
if (Array.isArray(useIndex)) {
|
|
678
|
+
useIndexKeys = useIndex;
|
|
679
|
+
useIndex = false;
|
|
680
|
+
}
|
|
681
|
+
else if (useIndex && typeof useIndex === 'object') {
|
|
682
|
+
option = useIndex;
|
|
683
|
+
}
|
|
684
|
+
let isNodeSelf = true;
|
|
685
|
+
const pathArr = [];
|
|
686
|
+
while (node) {
|
|
687
|
+
let path = '';
|
|
688
|
+
const { parentNode } = node;
|
|
689
|
+
if (parentNode) {
|
|
690
|
+
const { parentKey } = node;
|
|
691
|
+
path = parentKey;
|
|
692
|
+
const parentProperty = parentNode[parentKey];
|
|
693
|
+
if (Array.isArray(parentProperty)) {
|
|
694
|
+
const { name } = node;
|
|
695
|
+
// 如果存在同名节点,使用下标来表示NodePath
|
|
696
|
+
const siblingNode = name
|
|
697
|
+
? parentProperty.find((child) => {
|
|
698
|
+
// 因为proxy的关系,导致两边的引用不相同,所以这里需要判断id
|
|
699
|
+
return child?.name === name && child !== node && child?.id !== node?.id;
|
|
700
|
+
})
|
|
701
|
+
: null;
|
|
702
|
+
if (!(option.useName && name) && (siblingNode || !name || (useIndex && isNodeSelf) || useIndexKeys.includes(node.concept))) {
|
|
703
|
+
const index = parentProperty.findIndex((item) => {
|
|
704
|
+
if (item === node) {
|
|
705
|
+
return true;
|
|
706
|
+
}
|
|
707
|
+
return item?.id && item?.id === node?.id;
|
|
708
|
+
});
|
|
709
|
+
path += `[${index}]`;
|
|
710
|
+
}
|
|
711
|
+
else {
|
|
712
|
+
path += `[name=${name}]`;
|
|
713
|
+
}
|
|
714
|
+
}
|
|
715
|
+
pathArr.unshift(path);
|
|
716
|
+
}
|
|
717
|
+
node = parentNode;
|
|
718
|
+
isNodeSelf = false;
|
|
719
|
+
}
|
|
720
|
+
pathArr.unshift('app');
|
|
721
|
+
return pathArr.join('.');
|
|
722
|
+
}
|
|
723
|
+
/**
|
|
724
|
+
* 上层节点
|
|
725
|
+
*/
|
|
726
|
+
get upperNode() {
|
|
727
|
+
// eslint-disable-next-line consistent-this
|
|
728
|
+
let _upperNode = this;
|
|
729
|
+
while (!!_upperNode && _upperNode.concept === this.concept) {
|
|
730
|
+
_upperNode = _upperNode.parentNode;
|
|
731
|
+
}
|
|
732
|
+
return _upperNode;
|
|
733
|
+
}
|
|
734
|
+
/**
|
|
735
|
+
* 根节点
|
|
736
|
+
*/
|
|
737
|
+
get rootNode() {
|
|
738
|
+
return this.getAncestor('App');
|
|
739
|
+
}
|
|
740
|
+
getAncestor(concept) {
|
|
741
|
+
let { parentNode } = this;
|
|
742
|
+
while (parentNode && parentNode.concept && ((parentNode.concept !== concept)
|
|
743
|
+
&& (!parentNode.constructor.inheritanceChain?.includes(concept)))) {
|
|
744
|
+
parentNode = parentNode.parentNode;
|
|
745
|
+
}
|
|
746
|
+
return parentNode;
|
|
747
|
+
}
|
|
748
|
+
get app() {
|
|
749
|
+
return this.getAncestor('App');
|
|
750
|
+
}
|
|
751
|
+
/**
|
|
752
|
+
*
|
|
753
|
+
* @param source
|
|
754
|
+
* @param Ctor
|
|
755
|
+
* @param completeList
|
|
756
|
+
* @param idsList
|
|
757
|
+
*/
|
|
758
|
+
handleSource(source, completeList) {
|
|
759
|
+
completeList.push(source);
|
|
760
|
+
// const { id, concept } = source || {};
|
|
761
|
+
// const actualSource = source instanceof BaseNode ? source : getSourceFromMap(id, concept);
|
|
762
|
+
// completeList.push(actualSource || source);
|
|
763
|
+
}
|
|
764
|
+
/**
|
|
765
|
+
* 获取当前的TsName
|
|
766
|
+
*/
|
|
767
|
+
get tsName() {
|
|
768
|
+
if (this.name) {
|
|
769
|
+
let tsName = this.name;
|
|
770
|
+
// 匹配所有特殊字符都转为_
|
|
771
|
+
tsName = tsName.replace(/\W/g, '_');
|
|
772
|
+
if (/^\d/.test(tsName)) {
|
|
773
|
+
tsName = `$${tsName}`;
|
|
774
|
+
}
|
|
775
|
+
return tsName;
|
|
776
|
+
}
|
|
777
|
+
return '';
|
|
778
|
+
}
|
|
779
|
+
get editing() {
|
|
780
|
+
return this.__editing;
|
|
781
|
+
}
|
|
782
|
+
// 修改节点编辑状态的时候需要抛个事件出去
|
|
783
|
+
set editing(value) {
|
|
784
|
+
this.__editing = value;
|
|
785
|
+
this.emit('node:Editing', {
|
|
786
|
+
value
|
|
787
|
+
});
|
|
788
|
+
}
|
|
789
|
+
/**
|
|
790
|
+
* 生成json
|
|
791
|
+
* @param instance
|
|
792
|
+
* @param Ctor
|
|
793
|
+
*/
|
|
794
|
+
genSources(instance, filerFn) {
|
|
795
|
+
if (!instance) {
|
|
796
|
+
return instance;
|
|
797
|
+
}
|
|
798
|
+
if (Array.isArray(instance)) {
|
|
799
|
+
return instance.map((item) => (item && item._toJSON ? item._toJSON(filerFn) : item));
|
|
800
|
+
}
|
|
801
|
+
return instance && instance._toJSON ? instance._toJSON(filerFn) : instance;
|
|
802
|
+
}
|
|
803
|
+
/**
|
|
804
|
+
* 实例化一个 JSON
|
|
805
|
+
* 由于有 from,只能先实例化父级,再实例化子级
|
|
806
|
+
* @param obj
|
|
807
|
+
* @param parentNode
|
|
808
|
+
* @returns
|
|
809
|
+
*/
|
|
810
|
+
instantiate(source, parentNode, parentKey) {
|
|
811
|
+
if (source instanceof BaseNode_1) {
|
|
812
|
+
if (!source.parentNode || !source.parentKey) {
|
|
813
|
+
source.parentNode = parentNode;
|
|
814
|
+
source.parentKey = parentKey;
|
|
815
|
+
}
|
|
816
|
+
return source;
|
|
817
|
+
}
|
|
818
|
+
if (source && source.concept) {
|
|
819
|
+
const Ctor = (0, decorators_1.getConceptConstructor)(source.concept);
|
|
820
|
+
if (!Ctor.from) {
|
|
821
|
+
return source;
|
|
822
|
+
}
|
|
823
|
+
const instance = Ctor.from(source, parentNode, parentKey);
|
|
824
|
+
if (instance && instance.toStorageJSON)
|
|
825
|
+
instance.storageJSON = instance.toStorageJSON();
|
|
826
|
+
return instance;
|
|
827
|
+
}
|
|
828
|
+
return source;
|
|
829
|
+
}
|
|
830
|
+
/**
|
|
831
|
+
* 激活 JSON 内部实例
|
|
832
|
+
* @param source
|
|
833
|
+
*/
|
|
834
|
+
instantiateSub(source, parentKey) {
|
|
835
|
+
if (!source) {
|
|
836
|
+
return;
|
|
837
|
+
}
|
|
838
|
+
const completeList = [];
|
|
839
|
+
let isArray;
|
|
840
|
+
// 暂时通过是否有name判断数据是否全
|
|
841
|
+
if (Array.isArray(source)) {
|
|
842
|
+
isArray = true;
|
|
843
|
+
source.forEach((sourceItem) => {
|
|
844
|
+
this.handleSource(sourceItem, completeList);
|
|
845
|
+
});
|
|
846
|
+
}
|
|
847
|
+
else {
|
|
848
|
+
this.handleSource(source, completeList);
|
|
849
|
+
}
|
|
850
|
+
const instanceList = completeList.map((item) => this.instantiate(item, this, parentKey));
|
|
851
|
+
if (isArray) {
|
|
852
|
+
return instanceList;
|
|
853
|
+
}
|
|
854
|
+
if (Array.isArray(instanceList) && instanceList.length) {
|
|
855
|
+
return instanceList[0];
|
|
856
|
+
}
|
|
857
|
+
}
|
|
858
|
+
plainAssign(source) {
|
|
859
|
+
this._mutable = true;
|
|
860
|
+
const oldId = this.id;
|
|
861
|
+
Object.keys(source).forEach((key) => {
|
|
862
|
+
const value = source[key];
|
|
863
|
+
if (typeof value !== 'object' && typeof value !== 'function')
|
|
864
|
+
this[key] = value;
|
|
865
|
+
});
|
|
866
|
+
this._mutable = false;
|
|
867
|
+
}
|
|
868
|
+
pick(source, keys = []) {
|
|
869
|
+
const obj = {};
|
|
870
|
+
keys.forEach((key) => (obj[key] = source[key]));
|
|
871
|
+
// 这里统一用 assign,集中处理 id 的问题
|
|
872
|
+
// this.assign(obj);
|
|
873
|
+
}
|
|
874
|
+
/**
|
|
875
|
+
* 从对象中深度获取
|
|
876
|
+
* @param source
|
|
877
|
+
* @param keys
|
|
878
|
+
* @example 比如一般后端返回只是添加了个 id
|
|
879
|
+
* ```
|
|
880
|
+
* this.deepPick(result, ['id'])
|
|
881
|
+
*/
|
|
882
|
+
deepPick(source, keys = []) {
|
|
883
|
+
utils.traverse((current) => {
|
|
884
|
+
const subSource = current.jsonPath ? (0, lodash_1.at)(source, [current.jsonPath])[0] : source;
|
|
885
|
+
const target = current.jsonPath ? (0, lodash_1.at)(this, [current.jsonPath])[0] : this;
|
|
886
|
+
if (!target)
|
|
887
|
+
return;
|
|
888
|
+
const obj = {};
|
|
889
|
+
keys.forEach((key) => {
|
|
890
|
+
if (subSource.hasOwnProperty(key)) {
|
|
891
|
+
obj[key] = subSource[key];
|
|
892
|
+
}
|
|
893
|
+
});
|
|
894
|
+
// 这里统一用 assign,集中处理 id 的问题
|
|
895
|
+
target.assign ? target.assign(obj) : Object.assign(target, obj);
|
|
896
|
+
}, { node: source }, { mode: 'anyObject' });
|
|
897
|
+
}
|
|
898
|
+
/**
|
|
899
|
+
* 去除循环依赖,转为纯 JSON
|
|
900
|
+
* @param parentKey 外面的 key,提供给 JSON.stringify 使用
|
|
901
|
+
* @param excludedKeys 需要额外排除的 keys
|
|
902
|
+
*/
|
|
903
|
+
toJSON() {
|
|
904
|
+
return this._toJSON();
|
|
905
|
+
}
|
|
906
|
+
_toJSON(filerFn) {
|
|
907
|
+
const propertyMap = (0, decorators_1.getConceptPropertyMap)(this.concept || this.constructor.name);
|
|
908
|
+
const source = {};
|
|
909
|
+
propertyMap.forEach((property, key) => {
|
|
910
|
+
if (property) {
|
|
911
|
+
const { objectRef: propertyObjectRef } = property;
|
|
912
|
+
if (!propertyObjectRef) {
|
|
913
|
+
source[key] = this[key];
|
|
914
|
+
}
|
|
915
|
+
else {
|
|
916
|
+
const sources = this.genSources(this[key], filerFn);
|
|
917
|
+
source[key] = sources;
|
|
918
|
+
}
|
|
919
|
+
}
|
|
920
|
+
});
|
|
921
|
+
// @ts-ignore
|
|
922
|
+
source.concept = this.concept;
|
|
923
|
+
return filerFn ? filerFn(source, this) : source;
|
|
924
|
+
}
|
|
925
|
+
/**
|
|
926
|
+
* 转为单层的 JSON
|
|
927
|
+
* @param parentKey 外面的 key,提供给 JSON.stringify 使用
|
|
928
|
+
* @param excludedKeys 需要额外排除的 keys
|
|
929
|
+
*/
|
|
930
|
+
toPlainJSON(parentKey, excludedKeys = []) {
|
|
931
|
+
const JSON_EXCLUDED_KEYS = new Set(this.JSON_EXCLUDED_KEYS || []); // Object.getPrototypeOf(this).constructor.JSON_EXCLUDED_KEYS || [];
|
|
932
|
+
excludedKeys.forEach((key) => JSON_EXCLUDED_KEYS.add(key));
|
|
933
|
+
const temp = {};
|
|
934
|
+
Object.keys(this).forEach((key) => {
|
|
935
|
+
const value = this[key];
|
|
936
|
+
if (!JSON_EXCLUDED_KEYS.has(key) && typeof value !== 'object' && typeof value !== 'function')
|
|
937
|
+
temp[key] = value;
|
|
938
|
+
});
|
|
939
|
+
return JSON.parse(JSON.stringify(temp));
|
|
940
|
+
}
|
|
941
|
+
// 给国际化展示用
|
|
942
|
+
getNodeChinesePath(useIndex) {
|
|
943
|
+
let node = this;
|
|
944
|
+
const pathArr = [];
|
|
945
|
+
while (node && node.concept) {
|
|
946
|
+
let pathText = '';
|
|
947
|
+
const { parentNode } = node;
|
|
948
|
+
if (parentNode) {
|
|
949
|
+
const { name, title, label } = parentNode;
|
|
950
|
+
pathText = `${parentNode.constructor?.nodeTitle || ''}${name || ''}`;
|
|
951
|
+
const labelValue = label?.value || label;
|
|
952
|
+
if (title && label) {
|
|
953
|
+
pathText += `(${title} | ${labelValue})`;
|
|
954
|
+
}
|
|
955
|
+
else if (title || label) {
|
|
956
|
+
pathText += `(${title || labelValue})`;
|
|
957
|
+
}
|
|
958
|
+
pathArr.unshift(pathText);
|
|
959
|
+
}
|
|
960
|
+
node = parentNode;
|
|
961
|
+
}
|
|
962
|
+
return pathArr.join('/');
|
|
963
|
+
}
|
|
964
|
+
/**
|
|
965
|
+
* 查找引用
|
|
966
|
+
*/
|
|
967
|
+
async findUsage() {
|
|
968
|
+
/* override */
|
|
969
|
+
}
|
|
970
|
+
/**
|
|
971
|
+
* 通过当前节点,查找被引用的节点
|
|
972
|
+
*/
|
|
973
|
+
async nodeFindRefNodes() {
|
|
974
|
+
/* override */
|
|
975
|
+
}
|
|
976
|
+
async findReadOnlyLogicUsage() {
|
|
977
|
+
/* override */
|
|
978
|
+
}
|
|
979
|
+
/**
|
|
980
|
+
* 重命名
|
|
981
|
+
*/
|
|
982
|
+
async changeName(newValue, updateAll = false) {
|
|
983
|
+
/* override */
|
|
984
|
+
}
|
|
985
|
+
/**
|
|
986
|
+
* 移除绑定实体元素的页面元素
|
|
987
|
+
*/
|
|
988
|
+
async removeBindEntityPropertyViewEelment() {
|
|
989
|
+
/* override */
|
|
990
|
+
}
|
|
991
|
+
/**
|
|
992
|
+
* 准备删除
|
|
993
|
+
*/
|
|
994
|
+
async prepareDelete(cb) {
|
|
995
|
+
/* override */
|
|
996
|
+
}
|
|
997
|
+
/**
|
|
998
|
+
* 添加参数准备
|
|
999
|
+
*/
|
|
1000
|
+
async addParamsPrepare() {
|
|
1001
|
+
/* override */
|
|
1002
|
+
}
|
|
1003
|
+
/**
|
|
1004
|
+
* 获取当前节点类型
|
|
1005
|
+
*/
|
|
1006
|
+
async getCurrentTypeAnnotation(outTime) {
|
|
1007
|
+
/* override */
|
|
1008
|
+
}
|
|
1009
|
+
/**
|
|
1010
|
+
* 获取当前节点的下一级内容
|
|
1011
|
+
*/
|
|
1012
|
+
getSelectRef(newTypeAnnotation, needNewStructure = false) {
|
|
1013
|
+
/* override */
|
|
1014
|
+
}
|
|
1015
|
+
/**
|
|
1016
|
+
* 销毁
|
|
1017
|
+
* 从 Map 中删除点和子节点
|
|
1018
|
+
*/
|
|
1019
|
+
destroy() {
|
|
1020
|
+
// utils.traverse((current) => , { node: this }, {
|
|
1021
|
+
// mode: 'anyObject',
|
|
1022
|
+
// excludedKeySet: this.JSON_EXCLUDED_KEYS,
|
|
1023
|
+
// });
|
|
1024
|
+
}
|
|
1025
|
+
onChange($event) {
|
|
1026
|
+
this.emit('change', $event);
|
|
1027
|
+
}
|
|
1028
|
+
onCreate($event) {
|
|
1029
|
+
/* override */
|
|
1030
|
+
}
|
|
1031
|
+
onDelete($event) {
|
|
1032
|
+
/* override */
|
|
1033
|
+
}
|
|
1034
|
+
/**
|
|
1035
|
+
* 移动节点
|
|
1036
|
+
* @param sourceNode
|
|
1037
|
+
* @param position
|
|
1038
|
+
*/
|
|
1039
|
+
moveNode(options) {
|
|
1040
|
+
if (!actionable_1.actionable) {
|
|
1041
|
+
(0, store_1.getEventBus)().emit('NotActionable');
|
|
1042
|
+
return;
|
|
1043
|
+
}
|
|
1044
|
+
const { sourceNode, position } = options;
|
|
1045
|
+
if (this.concept === 'App') {
|
|
1046
|
+
return;
|
|
1047
|
+
}
|
|
1048
|
+
let actionMsg = `移动${this.constructor.nodeTitle}`;
|
|
1049
|
+
if (this.name) {
|
|
1050
|
+
actionMsg += `“${this.name}”`;
|
|
1051
|
+
}
|
|
1052
|
+
sourceNode.app.emit('collect:start', {
|
|
1053
|
+
actionMsg,
|
|
1054
|
+
});
|
|
1055
|
+
// 如果是兄弟节点之前的移动
|
|
1056
|
+
if (position !== 'append' && this.concept !== sourceNode.concept) {
|
|
1057
|
+
return;
|
|
1058
|
+
}
|
|
1059
|
+
// 先删
|
|
1060
|
+
this.delete();
|
|
1061
|
+
if (position === 'append') {
|
|
1062
|
+
let { action } = options;
|
|
1063
|
+
if (!action)
|
|
1064
|
+
action = `add${this.concept}`;
|
|
1065
|
+
const parentNode = sourceNode;
|
|
1066
|
+
parentNode[action](this);
|
|
1067
|
+
}
|
|
1068
|
+
else {
|
|
1069
|
+
const parentNode = sourceNode?.parentNode;
|
|
1070
|
+
const parentKey = sourceNode?.parentKey || '';
|
|
1071
|
+
const list = parentNode[parentKey];
|
|
1072
|
+
if (Array.isArray(list)) {
|
|
1073
|
+
let index = list.indexOf(sourceNode);
|
|
1074
|
+
if (position === 'insertAfter') {
|
|
1075
|
+
index += 1;
|
|
1076
|
+
}
|
|
1077
|
+
Object.assign(this, {
|
|
1078
|
+
parentNode,
|
|
1079
|
+
parentKey,
|
|
1080
|
+
});
|
|
1081
|
+
// 和原开发沟通过,可注释掉这行,否则拖拽的时候会更新name
|
|
1082
|
+
// if (this.concept === 'ViewElement') this.name = (this as unknown as ViewElement).getViewElementUniqueName(this.name);
|
|
1083
|
+
list.splice(index, 0, this);
|
|
1084
|
+
this.create({
|
|
1085
|
+
index,
|
|
1086
|
+
parentNode,
|
|
1087
|
+
parentKey,
|
|
1088
|
+
});
|
|
1089
|
+
}
|
|
1090
|
+
}
|
|
1091
|
+
sourceNode.app.emit('collect:end');
|
|
1092
|
+
}
|
|
1093
|
+
// 其他节点替换本nasl节点
|
|
1094
|
+
replaceNode(newNode) {
|
|
1095
|
+
const oldNode = this;
|
|
1096
|
+
const { parentNode, parentKey, offsetX, offsetY, app } = oldNode;
|
|
1097
|
+
const { logic } = oldNode;
|
|
1098
|
+
if (!Array.isArray(parentNode[parentKey])) {
|
|
1099
|
+
/**
|
|
1100
|
+
* match切换分支,需要调用setExpressionWitchCase,补全分支的信息
|
|
1101
|
+
*/
|
|
1102
|
+
if (parentNode.concept === 'Match' && parentKey === 'expression') {
|
|
1103
|
+
parentNode.setExpressionWitchCase(newNode);
|
|
1104
|
+
return;
|
|
1105
|
+
}
|
|
1106
|
+
parentNode.update({
|
|
1107
|
+
[parentKey]: newNode,
|
|
1108
|
+
});
|
|
1109
|
+
}
|
|
1110
|
+
else {
|
|
1111
|
+
app?.emit?.('collect:start', {
|
|
1112
|
+
actionMsg: '删除属性变量',
|
|
1113
|
+
});
|
|
1114
|
+
if (parentNode.concept === 'Logic') {
|
|
1115
|
+
if (parentKey === 'body') {
|
|
1116
|
+
const expIndex = logic.body.findIndex((item) => item === oldNode);
|
|
1117
|
+
logic.insertItemInBodyAt(newNode, expIndex);
|
|
1118
|
+
}
|
|
1119
|
+
else {
|
|
1120
|
+
const expIndex = logic.playground.findIndex((item) => item === oldNode);
|
|
1121
|
+
Object.assign(newNode, { offsetX, offsetY });
|
|
1122
|
+
logic.insertItemInPlaygroundAt(newNode, expIndex);
|
|
1123
|
+
}
|
|
1124
|
+
}
|
|
1125
|
+
else {
|
|
1126
|
+
const expIndex = parentNode[parentKey].findIndex((item) => item === oldNode);
|
|
1127
|
+
const firstUpperText = parentKey[0].toUpperCase() + parentKey.slice(1, parentKey.length);
|
|
1128
|
+
Object.assign(newNode, { offsetX, offsetY });
|
|
1129
|
+
if (parentNode.concept === 'MatchCase') {
|
|
1130
|
+
parentKey === 'body' ? parentNode.insertItemInBodyAt(newNode, expIndex) : parentNode.insertLogicItemInPatternsAt(newNode, expIndex);
|
|
1131
|
+
}
|
|
1132
|
+
else if (parentNode[`insertItemIn${firstUpperText}At`])
|
|
1133
|
+
parentNode[`insertItemIn${firstUpperText}At`](newNode, expIndex);
|
|
1134
|
+
else
|
|
1135
|
+
parentNode.insertItemAt(newNode, expIndex);
|
|
1136
|
+
}
|
|
1137
|
+
oldNode.delete();
|
|
1138
|
+
app.emit('collect:end');
|
|
1139
|
+
}
|
|
1140
|
+
}
|
|
1141
|
+
// 查找当前节点所有引用并进行同步更新
|
|
1142
|
+
async updateRelyFileNode(app) {
|
|
1143
|
+
let relyfileNode = [];
|
|
1144
|
+
try {
|
|
1145
|
+
// 获取old接口的依赖放到一起更新,可以让使用方重新生成内容
|
|
1146
|
+
relyfileNode = await app.naslServer.findCallLogicFileRef(this.parentNode);
|
|
1147
|
+
}
|
|
1148
|
+
catch (err) {
|
|
1149
|
+
console.log('更新对应引用方失败', err);
|
|
1150
|
+
}
|
|
1151
|
+
// 如果依赖项有值,只要是为了触发更新,为了重新取到引用生成代码
|
|
1152
|
+
if (relyfileNode.length) {
|
|
1153
|
+
relyfileNode.forEach((fileNode) => {
|
|
1154
|
+
app.naslServer?.embeddedTSEmitter.emit('change', {
|
|
1155
|
+
value: [
|
|
1156
|
+
{
|
|
1157
|
+
originEvent: {
|
|
1158
|
+
action: 'update',
|
|
1159
|
+
target: fileNode,
|
|
1160
|
+
}
|
|
1161
|
+
}
|
|
1162
|
+
]
|
|
1163
|
+
});
|
|
1164
|
+
});
|
|
1165
|
+
}
|
|
1166
|
+
}
|
|
1167
|
+
/**
|
|
1168
|
+
* 获取添加时的默认选项
|
|
1169
|
+
* @returns
|
|
1170
|
+
*/
|
|
1171
|
+
static getDefaultOptions() {
|
|
1172
|
+
return {};
|
|
1173
|
+
}
|
|
1174
|
+
/**
|
|
1175
|
+
* 迭代所有属性
|
|
1176
|
+
*
|
|
1177
|
+
* @description 是所有属性!!不是所有子节点!!
|
|
1178
|
+
* @deprecated 请使用`traverseStrictChildren`方法
|
|
1179
|
+
*/
|
|
1180
|
+
traverseChildren(cb, whitelist) {
|
|
1181
|
+
function traverse(node) {
|
|
1182
|
+
cb(node);
|
|
1183
|
+
const propertyMap = (0, decorators_1.getConceptPropertyMap)(node?.concept);
|
|
1184
|
+
if (!propertyMap)
|
|
1185
|
+
return;
|
|
1186
|
+
const propertyKeys = [...propertyMap.keys()];
|
|
1187
|
+
if (Array.isArray(whitelist) && whitelist.length) {
|
|
1188
|
+
propertyKeys.push(...whitelist);
|
|
1189
|
+
}
|
|
1190
|
+
for (const property of propertyKeys) {
|
|
1191
|
+
const child = node[property];
|
|
1192
|
+
if (!child)
|
|
1193
|
+
continue;
|
|
1194
|
+
else if (Array.isArray(child))
|
|
1195
|
+
child?.forEach?.((node) => traverse(node));
|
|
1196
|
+
else
|
|
1197
|
+
traverse(child);
|
|
1198
|
+
}
|
|
1199
|
+
}
|
|
1200
|
+
traverse(this);
|
|
1201
|
+
}
|
|
1202
|
+
/**
|
|
1203
|
+
* 生成器中序遍历节点
|
|
1204
|
+
*
|
|
1205
|
+
* @description 与`traverseChildren`不同,此方法会过滤掉非节点值
|
|
1206
|
+
*/
|
|
1207
|
+
*traverseChildrenGenerator(cb) {
|
|
1208
|
+
const isNode = (node) => {
|
|
1209
|
+
return Boolean(node) && typeof node === 'object' && ('concept' in node) && typeof node.concept === 'string';
|
|
1210
|
+
};
|
|
1211
|
+
function* traverse(node) {
|
|
1212
|
+
if (isNode(node)) {
|
|
1213
|
+
const result = cb(node);
|
|
1214
|
+
if (utils.isGenerator(result)) {
|
|
1215
|
+
yield* result;
|
|
1216
|
+
}
|
|
1217
|
+
else {
|
|
1218
|
+
yield;
|
|
1219
|
+
}
|
|
1220
|
+
}
|
|
1221
|
+
const propertyMap = (0, decorators_1.getConceptPropertyMap)(node?.concept);
|
|
1222
|
+
if (!propertyMap) {
|
|
1223
|
+
yield;
|
|
1224
|
+
return;
|
|
1225
|
+
}
|
|
1226
|
+
for (const property of propertyMap.keys()) {
|
|
1227
|
+
const prop = node[property];
|
|
1228
|
+
if (!prop) {
|
|
1229
|
+
continue;
|
|
1230
|
+
}
|
|
1231
|
+
else if (Array.isArray(prop)) {
|
|
1232
|
+
for (const child of prop) {
|
|
1233
|
+
yield* traverse(child);
|
|
1234
|
+
}
|
|
1235
|
+
}
|
|
1236
|
+
else {
|
|
1237
|
+
yield* traverse(prop);
|
|
1238
|
+
}
|
|
1239
|
+
}
|
|
1240
|
+
yield;
|
|
1241
|
+
}
|
|
1242
|
+
yield* traverse(this);
|
|
1243
|
+
}
|
|
1244
|
+
/**
|
|
1245
|
+
* 迭代所有子节点
|
|
1246
|
+
*
|
|
1247
|
+
* @description 严格迭代所有子节点!排除属性!
|
|
1248
|
+
*/
|
|
1249
|
+
traverseStrictChildren(cb, whitelist) {
|
|
1250
|
+
this.traverseChildren((el) => {
|
|
1251
|
+
if (concepts_1.asserts.isBaseNode(el)) {
|
|
1252
|
+
cb(el);
|
|
1253
|
+
}
|
|
1254
|
+
}, whitelist);
|
|
1255
|
+
}
|
|
1256
|
+
/**
|
|
1257
|
+
* 迭代所有子节点
|
|
1258
|
+
*
|
|
1259
|
+
* @description 严格迭代所有子节点!排除属性!条件满足时可提前终止!
|
|
1260
|
+
*/
|
|
1261
|
+
traverseStrictChildrenStopWhen(cb, setStopFlag, whitelist) {
|
|
1262
|
+
let shouldStop = false;
|
|
1263
|
+
// if ((node instanceof View || node instanceof ViewElement) && node.auth) flag = true;
|
|
1264
|
+
function traverse(node) {
|
|
1265
|
+
if (concepts_1.asserts.isBaseNode(node)) {
|
|
1266
|
+
cb(node);
|
|
1267
|
+
}
|
|
1268
|
+
shouldStop = shouldStop || setStopFlag(node);
|
|
1269
|
+
if (shouldStop) {
|
|
1270
|
+
return;
|
|
1271
|
+
}
|
|
1272
|
+
const propertyMap = (0, decorators_1.getConceptPropertyMap)(node?.concept);
|
|
1273
|
+
if (!propertyMap)
|
|
1274
|
+
return;
|
|
1275
|
+
const propertyKeys = [...propertyMap.keys()];
|
|
1276
|
+
if (Array.isArray(whitelist) && whitelist.length) {
|
|
1277
|
+
propertyKeys.push(...whitelist);
|
|
1278
|
+
}
|
|
1279
|
+
for (const property of propertyKeys) {
|
|
1280
|
+
const child = node[property];
|
|
1281
|
+
if (!child)
|
|
1282
|
+
continue;
|
|
1283
|
+
else if (Array.isArray(child))
|
|
1284
|
+
child?.forEach?.((node) => traverse(node));
|
|
1285
|
+
else
|
|
1286
|
+
traverse(child);
|
|
1287
|
+
}
|
|
1288
|
+
}
|
|
1289
|
+
traverse(this);
|
|
1290
|
+
}
|
|
1291
|
+
/**
|
|
1292
|
+
* 带剪枝的迭先序遍历
|
|
1293
|
+
*
|
|
1294
|
+
* @description 严格迭代所有子节点!排除属性!
|
|
1295
|
+
* @description 回调返回`true`时将不会继续迭代子树
|
|
1296
|
+
* @description 注意:这里只是不会继续递归子树,而不是终止整个迭代流程
|
|
1297
|
+
*/
|
|
1298
|
+
traverseStrictChildrenWithPruning(cb) {
|
|
1299
|
+
function traverse(node) {
|
|
1300
|
+
const result = cb(node);
|
|
1301
|
+
if (result) {
|
|
1302
|
+
return;
|
|
1303
|
+
}
|
|
1304
|
+
const propertyMap = (0, decorators_1.getConceptPropertyMap)(node?.concept);
|
|
1305
|
+
if (!propertyMap) {
|
|
1306
|
+
return;
|
|
1307
|
+
}
|
|
1308
|
+
const propertyKeys = [...propertyMap.keys()];
|
|
1309
|
+
for (const property of propertyKeys) {
|
|
1310
|
+
const child = node[property];
|
|
1311
|
+
if (!child) {
|
|
1312
|
+
continue;
|
|
1313
|
+
}
|
|
1314
|
+
else if (Array.isArray(child)) {
|
|
1315
|
+
child.forEach((node) => {
|
|
1316
|
+
if (concepts_1.asserts.isBaseNode(node)) {
|
|
1317
|
+
traverse(node);
|
|
1318
|
+
}
|
|
1319
|
+
});
|
|
1320
|
+
}
|
|
1321
|
+
else {
|
|
1322
|
+
if (concepts_1.asserts.isBaseNode(node)) {
|
|
1323
|
+
traverse(child);
|
|
1324
|
+
}
|
|
1325
|
+
}
|
|
1326
|
+
}
|
|
1327
|
+
}
|
|
1328
|
+
traverse(this);
|
|
1329
|
+
}
|
|
1330
|
+
/**
|
|
1331
|
+
* 获取当前节点在nasl标注节点上的节点
|
|
1332
|
+
*/
|
|
1333
|
+
getCurrentAnnotatedJSON() {
|
|
1334
|
+
return this.__TypeAnnotation;
|
|
1335
|
+
}
|
|
1336
|
+
/**
|
|
1337
|
+
* 获取
|
|
1338
|
+
* 当前this上下文 的Source 和 父级文件级别的节点
|
|
1339
|
+
*/
|
|
1340
|
+
getCurrentSource() {
|
|
1341
|
+
const node = this;
|
|
1342
|
+
let { sourceMap } = node;
|
|
1343
|
+
let fileNode = node;
|
|
1344
|
+
// 如果没有sourceMap,就继续向上找 ,或者到module结束
|
|
1345
|
+
// 如果 节点找到 app 或者module 停止 或者entity找到DataSource为止
|
|
1346
|
+
// 如果当前节点是view就不要向上查找了
|
|
1347
|
+
while (!sourceMap && fileNode && !(fileNode?.parentNode?.concept === 'App')) {
|
|
1348
|
+
fileNode = fileNode.parentNode;
|
|
1349
|
+
sourceMap = fileNode?.sourceMap;
|
|
1350
|
+
}
|
|
1351
|
+
const currentSource = sourceMap && sourceMap.get(node);
|
|
1352
|
+
if (currentSource) {
|
|
1353
|
+
return { currentSource, fileNode };
|
|
1354
|
+
}
|
|
1355
|
+
return { fileNode };
|
|
1356
|
+
}
|
|
1357
|
+
/**
|
|
1358
|
+
* 获取
|
|
1359
|
+
* 当前this上下文 的Source 和 父级文件级别的节点
|
|
1360
|
+
*/
|
|
1361
|
+
getFileConceptNode(concept) {
|
|
1362
|
+
const node = this;
|
|
1363
|
+
let { sourceMap } = node;
|
|
1364
|
+
let fileNode = node;
|
|
1365
|
+
// 如果没有sourceMap,就继续向上找 ,或者到module结束
|
|
1366
|
+
// 如果 节点找到 app 或者module 停止 或者entity找到DataSource为止
|
|
1367
|
+
// 如果当前节点是view就不要向上查找了
|
|
1368
|
+
while (!sourceMap && fileNode && !(fileNode.parentNode.concept === 'App')) {
|
|
1369
|
+
fileNode = fileNode.parentNode;
|
|
1370
|
+
sourceMap = fileNode?.sourceMap;
|
|
1371
|
+
}
|
|
1372
|
+
const arr = [];
|
|
1373
|
+
sourceMap &&
|
|
1374
|
+
sourceMap.forEach((value, key) => {
|
|
1375
|
+
if (key.concept === concept)
|
|
1376
|
+
arr.push({ key, value });
|
|
1377
|
+
});
|
|
1378
|
+
return arr;
|
|
1379
|
+
}
|
|
1380
|
+
get isTreeLeaf() {
|
|
1381
|
+
if (this.concept === 'EntityProperty' ||
|
|
1382
|
+
this.concept === 'InterfaceParam' ||
|
|
1383
|
+
this.concept === 'Param' ||
|
|
1384
|
+
this.concept === 'Return' ||
|
|
1385
|
+
this.concept === 'StructureProperty' ||
|
|
1386
|
+
this.concept === 'Variable' ||
|
|
1387
|
+
this.concept === 'FrontendVariable') {
|
|
1388
|
+
if (this.typeAnnotation || (this.__TypeAnnotation && this.parentKey === 'virtualParams')) {
|
|
1389
|
+
return !this.hasChildren;
|
|
1390
|
+
}
|
|
1391
|
+
return true;
|
|
1392
|
+
}
|
|
1393
|
+
return false;
|
|
1394
|
+
}
|
|
1395
|
+
get hasChildren() {
|
|
1396
|
+
const typeAnnotation = this.typeAnnotation || this.__TypeAnnotation;
|
|
1397
|
+
if (typeAnnotation) {
|
|
1398
|
+
const { typeKind, typeNamespace, typeName, properties } = typeAnnotation;
|
|
1399
|
+
if (typeKind === 'reference' || typeKind === 'generic') {
|
|
1400
|
+
if (typeNamespace?.endsWith('.enums'))
|
|
1401
|
+
return null;
|
|
1402
|
+
return [{}];
|
|
1403
|
+
}
|
|
1404
|
+
if (typeNamespace === 'nasl.core' && ['String', 'Text', 'Email'].includes(typeName)) {
|
|
1405
|
+
return [{}];
|
|
1406
|
+
}
|
|
1407
|
+
if (typeKind === 'anonymousStructure' && properties?.length) {
|
|
1408
|
+
return [{}];
|
|
1409
|
+
}
|
|
1410
|
+
return null;
|
|
1411
|
+
}
|
|
1412
|
+
return null;
|
|
1413
|
+
}
|
|
1414
|
+
collectNodes(input) {
|
|
1415
|
+
const pre = typeof input === 'undefined'
|
|
1416
|
+
? (node) => concepts_1.asserts.isBaseNode(node)
|
|
1417
|
+
: typeof input === 'string'
|
|
1418
|
+
? (node) => concepts_1.asserts[`isStrict${input}`]?.(node) ?? false
|
|
1419
|
+
: input;
|
|
1420
|
+
const nodes = [];
|
|
1421
|
+
const self = this;
|
|
1422
|
+
if (pre(self)) {
|
|
1423
|
+
nodes.push(self);
|
|
1424
|
+
}
|
|
1425
|
+
this.traverseStrictChildren((current) => {
|
|
1426
|
+
if (pre(current)) {
|
|
1427
|
+
nodes.push(current);
|
|
1428
|
+
}
|
|
1429
|
+
});
|
|
1430
|
+
return nodes;
|
|
1431
|
+
}
|
|
1432
|
+
findNode(input) {
|
|
1433
|
+
const pre = typeof input === 'undefined'
|
|
1434
|
+
? (node) => concepts_1.asserts.isBaseNode(node)
|
|
1435
|
+
: typeof input === 'string'
|
|
1436
|
+
? (node) => concepts_1.asserts[`isStrict${input}`]?.(node) ?? false
|
|
1437
|
+
: input;
|
|
1438
|
+
function traverse(node) {
|
|
1439
|
+
const result = Boolean(node) && pre(node);
|
|
1440
|
+
if (result) {
|
|
1441
|
+
return node;
|
|
1442
|
+
}
|
|
1443
|
+
const propertyMap = (0, decorators_1.getConceptPropertyMap)(node?.concept);
|
|
1444
|
+
if (!propertyMap) {
|
|
1445
|
+
return;
|
|
1446
|
+
}
|
|
1447
|
+
for (const property of propertyMap.keys()) {
|
|
1448
|
+
const child = node[property];
|
|
1449
|
+
let result = undefined;
|
|
1450
|
+
if (!child) {
|
|
1451
|
+
continue;
|
|
1452
|
+
}
|
|
1453
|
+
else if (Array.isArray(child)) {
|
|
1454
|
+
for (const item of child) {
|
|
1455
|
+
result = traverse(item);
|
|
1456
|
+
if (result) {
|
|
1457
|
+
break;
|
|
1458
|
+
}
|
|
1459
|
+
}
|
|
1460
|
+
}
|
|
1461
|
+
else {
|
|
1462
|
+
result = traverse(child);
|
|
1463
|
+
}
|
|
1464
|
+
if (result) {
|
|
1465
|
+
return result;
|
|
1466
|
+
}
|
|
1467
|
+
}
|
|
1468
|
+
}
|
|
1469
|
+
return traverse(this);
|
|
1470
|
+
}
|
|
1471
|
+
/**
|
|
1472
|
+
* 广度遍历子节点,如果当前节点满足pre 函数,将不会再向下遍历
|
|
1473
|
+
* @param input 搜索条件
|
|
1474
|
+
* @param containsSelf: 是否包含自身
|
|
1475
|
+
* @returns 搜索到的节点
|
|
1476
|
+
*/
|
|
1477
|
+
findNaslNodeByBFS(input, containsSelf = false) {
|
|
1478
|
+
const pre = typeof input === 'undefined'
|
|
1479
|
+
? (node) => concepts_1.asserts.isBaseNode(node)
|
|
1480
|
+
: typeof input === 'string'
|
|
1481
|
+
? (node) => concepts_1.asserts[`isStrict${input}`]?.(node) ?? false
|
|
1482
|
+
: input;
|
|
1483
|
+
const queue = []; // 创建一个队列存储待遍历的节点
|
|
1484
|
+
const results = []; // 创建一个数组存储匹配的结果
|
|
1485
|
+
queue.push(this); // 将初始节点加入队列
|
|
1486
|
+
while (queue.length > 0) {
|
|
1487
|
+
const node = queue.shift(); // 从队列中取出一个节点
|
|
1488
|
+
if (node) {
|
|
1489
|
+
let result = false;
|
|
1490
|
+
if (!containsSelf) {
|
|
1491
|
+
result = node !== this && Boolean(node) && pre(node);
|
|
1492
|
+
}
|
|
1493
|
+
else {
|
|
1494
|
+
result = Boolean(node) && pre(node);
|
|
1495
|
+
}
|
|
1496
|
+
if (result) {
|
|
1497
|
+
results.push(node); // 如果pre函数返回true,则将节点添加到结果数组
|
|
1498
|
+
continue; // 继续下一次循环,继续遍历同层级的其他节点
|
|
1499
|
+
}
|
|
1500
|
+
const propertyMap = (0, decorators_1.getConceptPropertyMap)(node?.concept);
|
|
1501
|
+
if (!propertyMap) {
|
|
1502
|
+
continue; // 如果没有属性映射,则继续下一次循环
|
|
1503
|
+
}
|
|
1504
|
+
for (const property of propertyMap.keys()) {
|
|
1505
|
+
const child = node[property];
|
|
1506
|
+
// 如果子节点不存在,则继续下一次循环
|
|
1507
|
+
if (!child) {
|
|
1508
|
+
continue; // 如果子节点不存在,则继续下一次循环
|
|
1509
|
+
}
|
|
1510
|
+
else if (Array.isArray(child)) {
|
|
1511
|
+
for (const item of child) {
|
|
1512
|
+
const itemResult = Boolean(item) && pre(item);
|
|
1513
|
+
if (itemResult) {
|
|
1514
|
+
results.push(item); // 如果pre函数返回true,则将节点添加到结果数组
|
|
1515
|
+
continue; // 继续下一次循环,继续遍历同层级的其他节点;
|
|
1516
|
+
}
|
|
1517
|
+
// 只有节点是一个 NaslNode 才会继续遍历
|
|
1518
|
+
if (concepts_1.asserts.isBaseNode(item)) {
|
|
1519
|
+
queue.push(item); // 将子节点加入队列
|
|
1520
|
+
}
|
|
1521
|
+
}
|
|
1522
|
+
}
|
|
1523
|
+
else {
|
|
1524
|
+
const childResult = Boolean(child) && pre(child);
|
|
1525
|
+
if (childResult) {
|
|
1526
|
+
results.push(child); // 如果pre函数返回true,则将节点添加到结果数组
|
|
1527
|
+
continue;
|
|
1528
|
+
}
|
|
1529
|
+
if (concepts_1.asserts.isBaseNode(child)) {
|
|
1530
|
+
queue.push(child); // 将子节点加入队列
|
|
1531
|
+
}
|
|
1532
|
+
}
|
|
1533
|
+
}
|
|
1534
|
+
}
|
|
1535
|
+
}
|
|
1536
|
+
return results; // 返回匹配的结果数组
|
|
1537
|
+
}
|
|
1538
|
+
*toEmbeddedTS() {
|
|
1539
|
+
throw new Error('方法未实现');
|
|
1540
|
+
}
|
|
1541
|
+
*toEmbeddedTSFile() {
|
|
1542
|
+
throw new Error('方法未实现');
|
|
1543
|
+
}
|
|
1544
|
+
toEmbeddedDeclarationTSFile() {
|
|
1545
|
+
throw new Error('方法未实现');
|
|
1546
|
+
}
|
|
1547
|
+
/**
|
|
1548
|
+
* 生成自然语言 TS
|
|
1549
|
+
* @param state 编译状态
|
|
1550
|
+
* @returns 生成的代码
|
|
1551
|
+
*/
|
|
1552
|
+
// @withSourceMap()
|
|
1553
|
+
toNaturalTS(state = (0, nasl_translator_1.createCompilerState)()) {
|
|
1554
|
+
return '[编译方法未实现]';
|
|
1555
|
+
}
|
|
1556
|
+
/**
|
|
1557
|
+
* 生成文本化代码
|
|
1558
|
+
* @param state 编译状态
|
|
1559
|
+
* @returns 生成的代码
|
|
1560
|
+
*/
|
|
1561
|
+
// @withSourceMap()
|
|
1562
|
+
toTextualNASL(state = (0, nasl_translator_1.createCompilerState)()) {
|
|
1563
|
+
return '[编译方法未实现]';
|
|
1564
|
+
}
|
|
1565
|
+
/**
|
|
1566
|
+
* 调试用的 ToTS 接口
|
|
1567
|
+
*/
|
|
1568
|
+
toDebugTs() {
|
|
1569
|
+
utils.runGeneratorAsync(this.toEmbeddedTS()).then((data) => {
|
|
1570
|
+
console.dir(data);
|
|
1571
|
+
});
|
|
1572
|
+
}
|
|
1573
|
+
/**
|
|
1574
|
+
* 判断目标节点是否为当前节点的祖先节点
|
|
1575
|
+
*/
|
|
1576
|
+
isAncestor(node) {
|
|
1577
|
+
let { parentNode } = this;
|
|
1578
|
+
while (parentNode) {
|
|
1579
|
+
if (parentNode === node) {
|
|
1580
|
+
return true;
|
|
1581
|
+
}
|
|
1582
|
+
parentNode = parentNode.parentNode;
|
|
1583
|
+
}
|
|
1584
|
+
return false;
|
|
1585
|
+
}
|
|
1586
|
+
/**
|
|
1587
|
+
* 迭代所有属性
|
|
1588
|
+
*/
|
|
1589
|
+
traverseChildrenWithContext(cb) {
|
|
1590
|
+
function traverse(node, context) {
|
|
1591
|
+
if (concepts_1.asserts.isBaseNode(node)) {
|
|
1592
|
+
cb(node, context);
|
|
1593
|
+
}
|
|
1594
|
+
const propertyMap = (0, decorators_1.getConceptPropertyMap)(node?.concept);
|
|
1595
|
+
if (!propertyMap) {
|
|
1596
|
+
return;
|
|
1597
|
+
}
|
|
1598
|
+
for (const property of propertyMap.keys()) {
|
|
1599
|
+
const child = node[property];
|
|
1600
|
+
if (!child) {
|
|
1601
|
+
continue;
|
|
1602
|
+
}
|
|
1603
|
+
else if (Array.isArray(child)) {
|
|
1604
|
+
child?.forEach?.((node) => {
|
|
1605
|
+
traverse(node, {
|
|
1606
|
+
...context
|
|
1607
|
+
});
|
|
1608
|
+
});
|
|
1609
|
+
}
|
|
1610
|
+
else {
|
|
1611
|
+
traverse(child, {
|
|
1612
|
+
...context
|
|
1613
|
+
});
|
|
1614
|
+
}
|
|
1615
|
+
}
|
|
1616
|
+
}
|
|
1617
|
+
traverse(this, {});
|
|
1618
|
+
}
|
|
1619
|
+
};
|
|
1620
|
+
exports.BaseNode = BaseNode;
|
|
1621
|
+
__decorate([
|
|
1622
|
+
(0, decorators_1.excludedInJSON)()
|
|
1623
|
+
], BaseNode.prototype, "_mutable", void 0);
|
|
1624
|
+
__decorate([
|
|
1625
|
+
(0, decorators_1.excludedInJSON)()
|
|
1626
|
+
], BaseNode.prototype, "_concept", void 0);
|
|
1627
|
+
__decorate([
|
|
1628
|
+
(0, decorators_1.property)()
|
|
1629
|
+
], BaseNode.prototype, "concept", null);
|
|
1630
|
+
__decorate([
|
|
1631
|
+
(0, decorators_1.whiteProperty)()
|
|
1632
|
+
], BaseNode.prototype, "workingCopy", void 0);
|
|
1633
|
+
__decorate([
|
|
1634
|
+
(0, decorators_1.whiteProperty)()
|
|
1635
|
+
], BaseNode.prototype, "branch", void 0);
|
|
1636
|
+
__decorate([
|
|
1637
|
+
(0, decorators_1.property)()
|
|
1638
|
+
], BaseNode.prototype, "breakpoint", void 0);
|
|
1639
|
+
__decorate([
|
|
1640
|
+
(0, decorators_1.circular)()
|
|
1641
|
+
], BaseNode.prototype, "parentNode", void 0);
|
|
1642
|
+
__decorate([
|
|
1643
|
+
(0, decorators_1.excludedInJSON)()
|
|
1644
|
+
], BaseNode.prototype, "editable", void 0);
|
|
1645
|
+
__decorate([
|
|
1646
|
+
(0, decorators_1.excludedInJSON)()
|
|
1647
|
+
], BaseNode.prototype, "removable", void 0);
|
|
1648
|
+
__decorate([
|
|
1649
|
+
(0, decorators_1.excludedInJSON)()
|
|
1650
|
+
], BaseNode.prototype, "loading", void 0);
|
|
1651
|
+
__decorate([
|
|
1652
|
+
(0, decorators_1.excludedInJSON)()
|
|
1653
|
+
], BaseNode.prototype, "expanded", void 0);
|
|
1654
|
+
__decorate([
|
|
1655
|
+
(0, decorators_1.excludedInJSON)()
|
|
1656
|
+
], BaseNode.prototype, "hidden", void 0);
|
|
1657
|
+
__decorate([
|
|
1658
|
+
(0, decorators_1.excludedInJSON)()
|
|
1659
|
+
], BaseNode.prototype, "pageTreeNodeHidden", void 0);
|
|
1660
|
+
__decorate([
|
|
1661
|
+
(0, decorators_1.excludedInJSON)()
|
|
1662
|
+
], BaseNode.prototype, "logicTreeNodeHidden", void 0);
|
|
1663
|
+
__decorate([
|
|
1664
|
+
(0, decorators_1.excludedInJSON)()
|
|
1665
|
+
], BaseNode.prototype, "dataTreeNodeHidden", void 0);
|
|
1666
|
+
__decorate([
|
|
1667
|
+
(0, decorators_1.excludedInJSON)()
|
|
1668
|
+
], BaseNode.prototype, "processTreeNodeHidden", void 0);
|
|
1669
|
+
__decorate([
|
|
1670
|
+
(0, decorators_1.excludedInJSON)()
|
|
1671
|
+
], BaseNode.prototype, "logicTreeNodeExpanded", void 0);
|
|
1672
|
+
__decorate([
|
|
1673
|
+
(0, decorators_1.excludedInJSON)()
|
|
1674
|
+
], BaseNode.prototype, "sourceMap", void 0);
|
|
1675
|
+
__decorate([
|
|
1676
|
+
(0, decorators_1.excludedInJSON)()
|
|
1677
|
+
], BaseNode.prototype, "isLeaf", void 0);
|
|
1678
|
+
__decorate([
|
|
1679
|
+
(0, decorators_1.excludedInJSON)()
|
|
1680
|
+
], BaseNode.prototype, "storageJSON", void 0);
|
|
1681
|
+
__decorate([
|
|
1682
|
+
(0, decorators_1.property)()
|
|
1683
|
+
], BaseNode.prototype, "name", void 0);
|
|
1684
|
+
__decorate([
|
|
1685
|
+
(0, decorators_1.property)()
|
|
1686
|
+
], BaseNode.prototype, "composedBy", void 0);
|
|
1687
|
+
__decorate([
|
|
1688
|
+
(0, decorators_1.excludedInJSON)()
|
|
1689
|
+
], BaseNode.prototype, "__TypeAnnotation", void 0);
|
|
1690
|
+
__decorate([
|
|
1691
|
+
(0, decorators_1.excludedInJSON)()
|
|
1692
|
+
], BaseNode.prototype, "__isCorrectTypeAnnotation", void 0);
|
|
1693
|
+
__decorate([
|
|
1694
|
+
(0, decorators_1.action)('查找引用')
|
|
1695
|
+
], BaseNode.prototype, "findUsage", null);
|
|
1696
|
+
__decorate([
|
|
1697
|
+
(0, decorators_1.action)('通过当前节点,查找被引用的节点')
|
|
1698
|
+
], BaseNode.prototype, "nodeFindRefNodes", null);
|
|
1699
|
+
__decorate([
|
|
1700
|
+
(0, decorators_1.action)('重命名')
|
|
1701
|
+
], BaseNode.prototype, "changeName", null);
|
|
1702
|
+
__decorate([
|
|
1703
|
+
(0, decorators_1.action)('移除绑定实体元素的页面元素')
|
|
1704
|
+
], BaseNode.prototype, "removeBindEntityPropertyViewEelment", null);
|
|
1705
|
+
__decorate([
|
|
1706
|
+
(0, decorators_1.action)('准备删除')
|
|
1707
|
+
], BaseNode.prototype, "prepareDelete", null);
|
|
1708
|
+
__decorate([
|
|
1709
|
+
(0, decorators_1.action)('添加参数准备')
|
|
1710
|
+
], BaseNode.prototype, "addParamsPrepare", null);
|
|
1711
|
+
__decorate([
|
|
1712
|
+
(0, decorators_1.action)('获取当前节点类型')
|
|
1713
|
+
], BaseNode.prototype, "getCurrentTypeAnnotation", null);
|
|
1714
|
+
__decorate([
|
|
1715
|
+
(0, decorators_1.action)('获取当前节点的下一级内容')
|
|
1716
|
+
], BaseNode.prototype, "getSelectRef", null);
|
|
1717
|
+
exports.BaseNode = BaseNode = BaseNode_1 = __decorate([
|
|
1718
|
+
nasl_sentry_1.sentryMonitorNaslNode
|
|
1719
|
+
], BaseNode);
|
|
1720
|
+
exports.default = BaseNode;
|
|
1721
|
+
//# sourceMappingURL=BaseNode.js.map
|