@lcap/nasl 0.3.15-beta → 1.0.0-alpha
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/DEVELOPMENT.md +39 -55
- package/README.md +78 -5
- package/bak/basicTypes.ts +76 -0
- package/bak/dataTypeUtils.ts +429 -0
- package/bak/dataTypes.ts +51 -0
- package/bak/entityUtils.ts +660 -0
- package/bak/genericTypes.ts +131 -0
- package/bak/systemTypes.ts +1590 -0
- package/bak/tools.js +174 -0
- package/bak/translator.js +129 -0
- package/bak/translator_backup.js +601 -0
- package/bin/naslc +3 -0
- package/docs/.nojekyll +1 -0
- package/docs/assets/custom.css +3 -0
- package/docs/assets/highlight.css +78 -0
- package/docs/assets/icons.css +1043 -0
- package/docs/assets/icons.png +0 -0
- package/docs/assets/icons@2x.png +0 -0
- package/docs/assets/main.js +52 -0
- package/docs/assets/search.js +1 -0
- package/docs/assets/style.css +1414 -0
- package/docs/assets/widgets.png +0 -0
- package/docs/assets/widgets@2x.png +0 -0
- package/docs/classes/App.html +509 -0
- package/docs/classes/Argument.html +191 -0
- package/docs/classes/Assignment.html +195 -0
- package/docs/classes/Attribute.html +169 -0
- package/docs/classes/BaseNode.html +128 -0
- package/docs/classes/BinaryExpression.html +199 -0
- package/docs/classes/BindAttribute.html +209 -0
- package/docs/classes/BindDirective.html +161 -0
- package/docs/classes/BindEvent.html +173 -0
- package/docs/classes/BooleanLiteral.html +177 -0
- package/docs/classes/CallFunction.html +201 -0
- package/docs/classes/CallInterface.html +201 -0
- package/docs/classes/CallLogic.html +207 -0
- package/docs/classes/CallQueryComponent.html +301 -0
- package/docs/classes/Comment.html +175 -0
- package/docs/classes/CompletionProperty.html +165 -0
- package/docs/classes/Constant.html +161 -0
- package/docs/classes/DataElement.html +143 -0
- package/docs/classes/Destination.html +205 -0
- package/docs/classes/End.html +173 -0
- package/docs/classes/Entity.html +205 -0
- package/docs/classes/EntityIndex.html +153 -0
- package/docs/classes/EntityProperty.html +211 -0
- package/docs/classes/Enum.html +171 -0
- package/docs/classes/EnumItem.html +143 -0
- package/docs/classes/Event.html +173 -0
- package/docs/classes/ForEachStatement.html +253 -0
- package/docs/classes/Function.html +259 -0
- package/docs/classes/Identifier.html +181 -0
- package/docs/classes/IfStatement.html +229 -0
- package/docs/classes/Interface.html +211 -0
- package/docs/classes/InterfaceParam.html +171 -0
- package/docs/classes/JSBlock.html +179 -0
- package/docs/classes/Logic.html +327 -0
- package/docs/classes/LogicItem.html +175 -0
- package/docs/classes/MemberExpression.html +196 -0
- package/docs/classes/Module.html +386 -0
- package/docs/classes/Namespace.html +497 -0
- package/docs/classes/NullLiteral.html +175 -0
- package/docs/classes/NumericLiteral.html +187 -0
- package/docs/classes/Param.html +173 -0
- package/docs/classes/Point.html +131 -0
- package/docs/classes/Process.html +261 -0
- package/docs/classes/ProcessComponent.html +199 -0
- package/docs/classes/ProcessElement.html +333 -0
- package/docs/classes/ProcessOutcome.html +179 -0
- package/docs/classes/QueryAggregateExpression.html +185 -0
- package/docs/classes/QueryFieldExpression.html +185 -0
- package/docs/classes/QueryFromExpression.html +205 -0
- package/docs/classes/QueryGroupByExpression.html +187 -0
- package/docs/classes/QueryJoinExpression.html +237 -0
- package/docs/classes/QueryLimitExpression.html +199 -0
- package/docs/classes/QueryOrderByExpression.html +197 -0
- package/docs/classes/QuerySelectExpression.html +213 -0
- package/docs/classes/Rect.html +135 -0
- package/docs/classes/Return.html +169 -0
- package/docs/classes/Role.html +139 -0
- package/docs/classes/Slot.html +143 -0
- package/docs/classes/SqlQueryComponent.html +191 -0
- package/docs/classes/Start.html +173 -0
- package/docs/classes/StringLiteral.html +177 -0
- package/docs/classes/Structure.html +203 -0
- package/docs/classes/StructureProperty.html +171 -0
- package/docs/classes/SwitchCase.html +207 -0
- package/docs/classes/SwitchStatement.html +193 -0
- package/docs/classes/Theme.html +133 -0
- package/docs/classes/Transactional.html +151 -0
- package/docs/classes/TypeAnnotation.html +163 -0
- package/docs/classes/TypeParam.html +129 -0
- package/docs/classes/UnaryExpression.html +187 -0
- package/docs/classes/Unparsed.html +177 -0
- package/docs/classes/UseComponent.html +131 -0
- package/docs/classes/ValidationRule.html +201 -0
- package/docs/classes/Variable.html +167 -0
- package/docs/classes/View.html +366 -0
- package/docs/classes/ViewComponent.html +289 -0
- package/docs/classes/ViewElement.html +296 -0
- package/docs/classes/WhileStatement.html +207 -0
- package/docs/index.html +69 -313
- package/docs/modules.html +31 -377
- package/docs-theme/LICENSE +21 -0
- package/docs-theme/README.md +9 -0
- package/docs-theme/package.json +81 -0
- package/docs-theme/src/assets/common.js +2 -0
- package/docs-theme/src/assets/common.js.LICENSE.txt +61 -0
- package/docs-theme/src/assets/css/main.css +1 -0
- package/docs-theme/src/assets/images/icons.png +0 -0
- package/docs-theme/src/assets/images/icons@2x.png +0 -0
- package/docs-theme/src/config.json +25 -0
- package/docs-theme/src/index.js +45 -0
- package/docs-theme/src/layouts/default.js +88 -0
- package/docs-theme/src/partials/analytics.js +22 -0
- package/docs-theme/src/partials/breadcrumb.js +9 -0
- package/docs-theme/src/partials/footer.js +96 -0
- package/docs-theme/src/partials/header.js +25 -0
- package/docs-theme/src/partials/infrafoot.js +113 -0
- package/docs-theme/src/partials/infranav.js +187 -0
- package/docs-theme/src/partials/navigation.js +39 -0
- package/docs-theme/src/templates/index.js +7 -0
- package/docs-theme/src/templates/reflection.js +41 -0
- package/docs-theme/src/utils/lib.js +109 -0
- package/out/bak/translator.d.ts +1 -0
- package/out/bak/translator.js +117 -0
- package/out/bak/translator.js.map +1 -0
- package/out/baseService/index.d.ts +2 -0
- package/out/baseService/index.js +12 -0
- package/out/baseService/index.js.map +1 -0
- package/out/baseTypes/App__.d.ts +169 -0
- package/out/baseTypes/App__.js +344 -0
- package/out/baseTypes/App__.js.map +1 -0
- package/out/baseTypes/AssignmentExpression__.d.ts +42 -0
- package/out/baseTypes/AssignmentExpression__.js +112 -0
- package/out/baseTypes/AssignmentExpression__.js.map +1 -0
- package/out/baseTypes/Attr__.d.ts +96 -0
- package/out/baseTypes/Attr__.js +191 -0
- package/out/baseTypes/Attr__.js.map +1 -0
- package/out/baseTypes/BinaryExpression__.d.ts +40 -0
- package/out/baseTypes/BinaryExpression__.js +92 -0
- package/out/baseTypes/BinaryExpression__.js.map +1 -0
- package/out/baseTypes/BooleanLiteral__.d.ts +25 -0
- package/out/baseTypes/BooleanLiteral__.js +64 -0
- package/out/baseTypes/BooleanLiteral__.js.map +1 -0
- package/out/baseTypes/Comment__.d.ts +27 -0
- package/out/baseTypes/Comment__.js +60 -0
- package/out/baseTypes/Comment__.js.map +1 -0
- package/out/baseTypes/Directive__.d.ts +100 -0
- package/out/baseTypes/Directive__.js +198 -0
- package/out/baseTypes/Directive__.js.map +1 -0
- package/out/baseTypes/Element__.d.ts +303 -0
- package/out/baseTypes/Element__.js +555 -0
- package/out/baseTypes/Element__.js.map +1 -0
- package/out/baseTypes/End__.d.ts +24 -0
- package/out/baseTypes/End__.js +61 -0
- package/out/baseTypes/End__.js.map +1 -0
- package/out/baseTypes/EntityProperty__.d.ts +116 -0
- package/out/baseTypes/EntityProperty__.js +230 -0
- package/out/baseTypes/EntityProperty__.js.map +1 -0
- package/out/baseTypes/Entity__.d.ts +106 -0
- package/out/baseTypes/Entity__.js +222 -0
- package/out/baseTypes/Entity__.js.map +1 -0
- package/out/baseTypes/EnumItem__.d.ts +56 -0
- package/out/baseTypes/EnumItem__.js +125 -0
- package/out/baseTypes/EnumItem__.js.map +1 -0
- package/out/baseTypes/Enum__.d.ts +98 -0
- package/out/baseTypes/Enum__.js +211 -0
- package/out/baseTypes/Enum__.js.map +1 -0
- package/out/baseTypes/Event__.d.ts +93 -0
- package/out/baseTypes/Event__.js +181 -0
- package/out/baseTypes/Event__.js.map +1 -0
- package/out/baseTypes/ForEachStatement__.d.ts +89 -0
- package/out/baseTypes/ForEachStatement__.js +169 -0
- package/out/baseTypes/ForEachStatement__.js.map +1 -0
- package/out/baseTypes/Identifier__.d.ts +24 -0
- package/out/baseTypes/Identifier__.js +60 -0
- package/out/baseTypes/Identifier__.js.map +1 -0
- package/out/baseTypes/IfStatement__.d.ts +60 -0
- package/out/baseTypes/IfStatement__.js +109 -0
- package/out/baseTypes/IfStatement__.js.map +1 -0
- package/out/baseTypes/Lifecycle__.d.ts +89 -0
- package/out/baseTypes/Lifecycle__.js +175 -0
- package/out/baseTypes/Lifecycle__.js.map +1 -0
- package/out/baseTypes/LogicItem__.d.ts +103 -0
- package/out/baseTypes/LogicItem__.js +211 -0
- package/out/baseTypes/LogicItem__.js.map +1 -0
- package/out/baseTypes/Logic__.d.ts +280 -0
- package/out/baseTypes/Logic__.js +598 -0
- package/out/baseTypes/Logic__.js.map +1 -0
- package/out/baseTypes/Module__.d.ts +278 -0
- package/out/baseTypes/Module__.js +511 -0
- package/out/baseTypes/Module__.js.map +1 -0
- package/out/baseTypes/NullLiteral__.d.ts +20 -0
- package/out/baseTypes/NullLiteral__.js +53 -0
- package/out/baseTypes/NullLiteral__.js.map +1 -0
- package/out/baseTypes/Page__.d.ts +85 -0
- package/out/baseTypes/Page__.js +166 -0
- package/out/baseTypes/Page__.js.map +1 -0
- package/out/baseTypes/Param__.d.ts +88 -0
- package/out/baseTypes/Param__.js +194 -0
- package/out/baseTypes/Param__.js.map +1 -0
- package/out/baseTypes/ProcessComponent__.d.ts +67 -0
- package/out/baseTypes/ProcessComponent__.js +142 -0
- package/out/baseTypes/ProcessComponent__.js.map +1 -0
- package/out/baseTypes/Process__.d.ts +134 -0
- package/out/baseTypes/Process__.js +255 -0
- package/out/baseTypes/Process__.js.map +1 -0
- package/out/baseTypes/Return__.d.ts +88 -0
- package/out/baseTypes/Return__.js +194 -0
- package/out/baseTypes/Return__.js.map +1 -0
- package/out/baseTypes/Start__.d.ts +24 -0
- package/out/baseTypes/Start__.js +60 -0
- package/out/baseTypes/Start__.js.map +1 -0
- package/out/baseTypes/StringLiteral__.d.ts +25 -0
- package/out/baseTypes/StringLiteral__.js +73 -0
- package/out/baseTypes/StringLiteral__.js.map +1 -0
- package/out/baseTypes/StructureProperty__.d.ts +107 -0
- package/out/baseTypes/StructureProperty__.js +206 -0
- package/out/baseTypes/StructureProperty__.js.map +1 -0
- package/out/baseTypes/Structure__.d.ts +129 -0
- package/out/baseTypes/Structure__.js +296 -0
- package/out/baseTypes/Structure__.js.map +1 -0
- package/out/baseTypes/SwitchCase__.d.ts +56 -0
- package/out/baseTypes/SwitchCase__.js +105 -0
- package/out/baseTypes/SwitchCase__.js.map +1 -0
- package/out/baseTypes/SwitchStatement__.d.ts +49 -0
- package/out/baseTypes/SwitchStatement__.js +90 -0
- package/out/baseTypes/SwitchStatement__.js.map +1 -0
- package/out/baseTypes/TypeAnnotation__.d.ts +62 -0
- package/out/baseTypes/TypeAnnotation__.js +156 -0
- package/out/baseTypes/TypeAnnotation__.js.map +1 -0
- package/out/baseTypes/UnaryExpression__.d.ts +32 -0
- package/out/baseTypes/UnaryExpression__.js +76 -0
- package/out/baseTypes/UnaryExpression__.js.map +1 -0
- package/out/baseTypes/Variable__.d.ts +88 -0
- package/out/baseTypes/Variable__.js +194 -0
- package/out/baseTypes/Variable__.js.map +1 -0
- package/out/baseTypes/View__.d.ts +359 -0
- package/out/baseTypes/View__.js +644 -0
- package/out/baseTypes/View__.js.map +1 -0
- package/out/baseTypes/WhileStatement__.d.ts +56 -0
- package/out/baseTypes/WhileStatement__.js +105 -0
- package/out/baseTypes/WhileStatement__.js.map +1 -0
- package/out/baseTypes/basics/types/index.d.ts +8 -0
- package/out/baseTypes/basics/types/index.js +14 -0
- package/out/baseTypes/basics/types/index.js.map +1 -0
- package/out/baseTypes/basics/types/primitiveTypes.d.ts +2 -0
- package/out/baseTypes/basics/types/primitiveTypes.js +17 -0
- package/out/baseTypes/basics/types/primitiveTypes.js.map +1 -0
- package/out/baseTypes/basics/types/systemTypes.d.ts +2 -0
- package/out/baseTypes/basics/types/systemTypes.js +30 -0
- package/out/baseTypes/basics/types/systemTypes.js.map +1 -0
- package/out/baseTypes/index.d.ts +6 -0
- package/out/baseTypes/index.js +21 -0
- package/out/baseTypes/index.js.map +1 -0
- package/out/baseTypes/index__.d.ts +38 -0
- package/out/baseTypes/index__.js +51 -0
- package/out/baseTypes/index__.js.map +1 -0
- package/out/generator/debugInFileStorage.d.ts +3 -0
- package/out/generator/debugInFileStorage.js +15 -0
- package/out/generator/debugInFileStorage.js.map +1 -0
- package/out/generator/genAllEmbeddedTS.d.ts +7 -0
- package/out/generator/genAllEmbeddedTS.js +20 -0
- package/out/generator/genAllEmbeddedTS.js.map +1 -0
- package/out/generator/index.d.ts +2 -0
- package/out/generator/index.js +15 -0
- package/out/generator/index.js.map +1 -0
- package/out/index.d.ts +3 -0
- package/out/index.js +16 -0
- package/out/index.js.map +1 -0
- package/out/manager/diagnostic.d.ts +30 -0
- package/out/manager/diagnostic.js +82 -0
- package/out/manager/diagnostic.js.map +1 -0
- package/{analysis/mergeBlock/raw1.json → out/manager/history.d.ts} +0 -0
- package/out/manager/history.js +1 -0
- package/out/manager/history.js.map +1 -0
- package/out/manager/problem.d.ts +0 -0
- package/out/manager/problem.js +1 -0
- package/out/manager/problem.js.map +1 -0
- package/out/service/app/api.d.ts +1 -15
- package/out/service/app/api.js +1 -11
- package/out/service/app/api.js.map +1 -1
- package/out/service/create/index.js +2 -2
- package/out/service/create/index.js.map +1 -1
- package/out/service/debugger/debugger.d.ts +3 -0
- package/out/service/debugger/debugger.js +95 -0
- package/out/service/debugger/debugger.js.map +1 -0
- package/out/service/logic/index.d.ts +0 -3
- package/out/service/logic/index.js +1 -4
- package/out/service/logic/index.js.map +1 -1
- package/out/service/logic/logic.d.ts +0 -9
- package/out/service/logic/logic.js +0 -7
- package/out/service/logic/logic.js.map +1 -1
- package/out/service/page/api.d.ts +1 -1
- package/out/service/page/api.js +0 -15
- package/out/service/page/api.js.map +1 -1
- package/out/service/page/view.d.ts +1 -1
- package/out/service/page/view.js +0 -15
- package/out/service/page/view.js.map +1 -1
- package/out/src/bak/basicTypes.d.ts +25 -0
- package/out/src/bak/basicTypes.js +77 -0
- package/out/src/bak/basicTypes.js.map +1 -0
- package/out/src/bak/dataTypeUtils.d.ts +94 -0
- package/out/src/bak/dataTypeUtils.js +449 -0
- package/out/src/bak/dataTypeUtils.js.map +1 -0
- package/out/src/bak/dataTypes.d.ts +20 -0
- package/out/src/bak/dataTypes.js +47 -0
- package/out/src/bak/dataTypes.js.map +1 -0
- package/out/src/bak/entityUtils.d.ts +164 -0
- package/out/src/bak/entityUtils.js +621 -0
- package/out/src/bak/entityUtils.js.map +1 -0
- package/out/src/bak/genericTypes.d.ts +40 -0
- package/out/src/bak/genericTypes.js +134 -0
- package/out/src/bak/genericTypes.js.map +1 -0
- package/out/src/bak/systemTypes.d.ts +9 -0
- package/out/src/bak/systemTypes.js +1563 -0
- package/out/src/bak/systemTypes.js.map +1 -0
- package/out/src/baseService/index.d.ts +2 -0
- package/out/src/baseService/index.js +10 -0
- package/out/src/baseService/index.js.map +1 -0
- package/out/src/baseTypes/App__.d.ts +181 -0
- package/out/src/baseTypes/App__.js +381 -0
- package/out/src/baseTypes/App__.js.map +1 -0
- package/out/src/baseTypes/Argument__.d.ts +40 -0
- package/out/src/baseTypes/Argument__.js +147 -0
- package/out/src/baseTypes/Argument__.js.map +1 -0
- package/out/src/baseTypes/AssignmentExpression__.d.ts +45 -0
- package/out/src/baseTypes/AssignmentExpression__.js +172 -0
- package/out/src/baseTypes/AssignmentExpression__.js.map +1 -0
- package/out/src/baseTypes/Attr__.d.ts +79 -0
- package/out/src/baseTypes/Attr__.js +210 -0
- package/out/src/baseTypes/Attr__.js.map +1 -0
- package/out/src/baseTypes/BinaryExpression__.d.ts +43 -0
- package/out/src/baseTypes/BinaryExpression__.js +152 -0
- package/out/src/baseTypes/BinaryExpression__.js.map +1 -0
- package/out/src/baseTypes/BooleanLiteral__.d.ts +28 -0
- package/out/src/baseTypes/BooleanLiteral__.js +118 -0
- package/out/src/baseTypes/BooleanLiteral__.js.map +1 -0
- package/out/src/baseTypes/CallLogic__.d.ts +45 -0
- package/out/src/baseTypes/CallLogic__.js +162 -0
- package/out/src/baseTypes/CallLogic__.js.map +1 -0
- package/out/src/baseTypes/CallQueryComponent__.d.ts +83 -0
- package/out/src/baseTypes/CallQueryComponent__.js +235 -0
- package/out/src/baseTypes/CallQueryComponent__.js.map +1 -0
- package/out/src/baseTypes/Comment__.d.ts +30 -0
- package/out/src/baseTypes/Comment__.js +114 -0
- package/out/src/baseTypes/Comment__.js.map +1 -0
- package/out/src/baseTypes/Directive__.d.ts +83 -0
- package/out/src/baseTypes/Directive__.js +218 -0
- package/out/src/baseTypes/Directive__.js.map +1 -0
- package/out/src/baseTypes/Element__.d.ts +389 -0
- package/out/src/baseTypes/Element__.js +589 -0
- package/out/src/baseTypes/Element__.js.map +1 -0
- package/out/src/baseTypes/End__.d.ts +27 -0
- package/out/src/baseTypes/End__.js +115 -0
- package/out/src/baseTypes/End__.js.map +1 -0
- package/out/src/baseTypes/EntityProperty__.d.ts +99 -0
- package/out/src/baseTypes/EntityProperty__.js +254 -0
- package/out/src/baseTypes/EntityProperty__.js.map +1 -0
- package/out/src/baseTypes/Entity__.d.ts +121 -0
- package/out/src/baseTypes/Entity__.js +250 -0
- package/out/src/baseTypes/Entity__.js.map +1 -0
- package/out/src/baseTypes/EnumItem__.d.ts +131 -0
- package/out/src/baseTypes/EnumItem__.js +271 -0
- package/out/src/baseTypes/EnumItem__.js.map +1 -0
- package/out/src/baseTypes/Enum__.d.ts +114 -0
- package/out/src/baseTypes/Enum__.js +226 -0
- package/out/src/baseTypes/Enum__.js.map +1 -0
- package/out/src/baseTypes/Event__.d.ts +76 -0
- package/out/src/baseTypes/Event__.js +205 -0
- package/out/src/baseTypes/Event__.js.map +1 -0
- package/out/src/baseTypes/ForEachStatement__.d.ts +116 -0
- package/out/src/baseTypes/ForEachStatement__.js +242 -0
- package/out/src/baseTypes/ForEachStatement__.js.map +1 -0
- package/out/src/baseTypes/Identifier__.d.ts +29 -0
- package/out/src/baseTypes/Identifier__.js +121 -0
- package/out/src/baseTypes/Identifier__.js.map +1 -0
- package/out/src/baseTypes/IfStatement__.d.ts +87 -0
- package/out/src/baseTypes/IfStatement__.js +175 -0
- package/out/src/baseTypes/IfStatement__.js.map +1 -0
- package/out/src/baseTypes/Lifecycle__.d.ts +71 -0
- package/out/src/baseTypes/Lifecycle__.js +196 -0
- package/out/src/baseTypes/Lifecycle__.js.map +1 -0
- package/out/src/baseTypes/LogicItem__.d.ts +100 -0
- package/out/src/baseTypes/LogicItem__.js +265 -0
- package/out/src/baseTypes/LogicItem__.js.map +1 -0
- package/out/src/baseTypes/Logic__.d.ts +382 -0
- package/out/src/baseTypes/Logic__.js +622 -0
- package/out/src/baseTypes/Logic__.js.map +1 -0
- package/out/src/baseTypes/Module__.d.ts +521 -0
- package/out/src/baseTypes/Module__.js +728 -0
- package/out/src/baseTypes/Module__.js.map +1 -0
- package/out/src/baseTypes/NullLiteral__.d.ts +23 -0
- package/out/src/baseTypes/NullLiteral__.js +106 -0
- package/out/src/baseTypes/NullLiteral__.js.map +1 -0
- package/out/src/baseTypes/Page__.d.ts +65 -0
- package/out/src/baseTypes/Page__.js +186 -0
- package/out/src/baseTypes/Page__.js.map +1 -0
- package/out/src/baseTypes/Param__.d.ts +107 -0
- package/out/src/baseTypes/Param__.js +278 -0
- package/out/src/baseTypes/Param__.js.map +1 -0
- package/out/src/baseTypes/ProcessComponent__.d.ts +50 -0
- package/out/src/baseTypes/ProcessComponent__.js +153 -0
- package/out/src/baseTypes/ProcessComponent__.js.map +1 -0
- package/out/src/baseTypes/Process__.d.ts +285 -0
- package/out/src/baseTypes/Process__.js +450 -0
- package/out/src/baseTypes/Process__.js.map +1 -0
- package/out/src/baseTypes/QuerSelectExpression__.d.ts +39 -0
- package/out/src/baseTypes/QuerSelectExpression__.js +133 -0
- package/out/src/baseTypes/QuerSelectExpression__.js.map +1 -0
- package/out/src/baseTypes/QueryAggregateExpression__.d.ts +35 -0
- package/out/src/baseTypes/QueryAggregateExpression__.js +126 -0
- package/out/src/baseTypes/QueryAggregateExpression__.js.map +1 -0
- package/out/src/baseTypes/QueryFieldExpression__.d.ts +38 -0
- package/out/src/baseTypes/QueryFieldExpression__.js +131 -0
- package/out/src/baseTypes/QueryFieldExpression__.js.map +1 -0
- package/out/src/baseTypes/QueryFromExpression__.d.ts +40 -0
- package/out/src/baseTypes/QueryFromExpression__.js +136 -0
- package/out/src/baseTypes/QueryFromExpression__.js.map +1 -0
- package/out/src/baseTypes/QueryGroupByExpression__.d.ts +30 -0
- package/out/src/baseTypes/QueryGroupByExpression__.js +118 -0
- package/out/src/baseTypes/QueryGroupByExpression__.js.map +1 -0
- package/out/src/baseTypes/QueryJoinExpression__.d.ts +48 -0
- package/out/src/baseTypes/QueryJoinExpression__.js +155 -0
- package/out/src/baseTypes/QueryJoinExpression__.js.map +1 -0
- package/out/src/baseTypes/QueryLimitExpression__.d.ts +38 -0
- package/out/src/baseTypes/QueryLimitExpression__.js +137 -0
- package/out/src/baseTypes/QueryLimitExpression__.js.map +1 -0
- package/out/src/baseTypes/QueryOrderByExpression__.d.ts +38 -0
- package/out/src/baseTypes/QueryOrderByExpression__.js +137 -0
- package/out/src/baseTypes/QueryOrderByExpression__.js.map +1 -0
- package/out/src/baseTypes/Return__.d.ts +107 -0
- package/out/src/baseTypes/Return__.js +274 -0
- package/out/src/baseTypes/Return__.js.map +1 -0
- package/out/src/baseTypes/Start__.d.ts +27 -0
- package/out/src/baseTypes/Start__.js +114 -0
- package/out/src/baseTypes/Start__.js.map +1 -0
- package/out/src/baseTypes/StringLiteral__.d.ts +28 -0
- package/out/src/baseTypes/StringLiteral__.js +127 -0
- package/out/src/baseTypes/StringLiteral__.js.map +1 -0
- package/out/src/baseTypes/StructureProperty__.d.ts +97 -0
- package/out/src/baseTypes/StructureProperty__.js +253 -0
- package/out/src/baseTypes/StructureProperty__.js.map +1 -0
- package/out/src/baseTypes/Structure__.d.ts +153 -0
- package/out/src/baseTypes/Structure__.js +329 -0
- package/out/src/baseTypes/Structure__.js.map +1 -0
- package/out/src/baseTypes/SwitchCase__.d.ts +83 -0
- package/out/src/baseTypes/SwitchCase__.js +165 -0
- package/out/src/baseTypes/SwitchCase__.js.map +1 -0
- package/out/src/baseTypes/SwitchStatement__.d.ts +76 -0
- package/out/src/baseTypes/SwitchStatement__.js +147 -0
- package/out/src/baseTypes/SwitchStatement__.js.map +1 -0
- package/out/src/baseTypes/TypeAnnotation__.d.ts +60 -0
- package/out/src/baseTypes/TypeAnnotation__.js +201 -0
- package/out/src/baseTypes/TypeAnnotation__.js.map +1 -0
- package/out/src/baseTypes/UnaryExpression__.d.ts +35 -0
- package/out/src/baseTypes/UnaryExpression__.js +133 -0
- package/out/src/baseTypes/UnaryExpression__.js.map +1 -0
- package/out/src/baseTypes/Variable__.d.ts +107 -0
- package/out/src/baseTypes/Variable__.js +278 -0
- package/out/src/baseTypes/Variable__.js.map +1 -0
- package/out/src/baseTypes/View__.d.ts +472 -0
- package/out/src/baseTypes/View__.js +692 -0
- package/out/src/baseTypes/View__.js.map +1 -0
- package/out/src/baseTypes/WhileStatement__.d.ts +83 -0
- package/out/src/baseTypes/WhileStatement__.js +165 -0
- package/out/src/baseTypes/WhileStatement__.js.map +1 -0
- package/out/src/baseTypes/basics/types/collectionTypeList.d.ts +2 -0
- package/out/src/baseTypes/basics/types/collectionTypeList.js +30 -0
- package/out/src/baseTypes/basics/types/collectionTypeList.js.map +1 -0
- package/out/src/baseTypes/basics/types/coreTypes.d.ts +2 -0
- package/out/src/baseTypes/basics/types/coreTypes.js +17 -0
- package/out/src/baseTypes/basics/types/coreTypes.js.map +1 -0
- package/out/src/baseTypes/basics/types/index.d.ts +8 -0
- package/out/src/baseTypes/basics/types/index.js +14 -0
- package/out/src/baseTypes/basics/types/index.js.map +1 -0
- package/out/src/baseTypes/basics/types/stdlibModule.d.ts +7 -0
- package/out/src/baseTypes/basics/types/stdlibModule.js +48 -0
- package/out/src/baseTypes/basics/types/stdlibModule.js.map +1 -0
- package/out/src/baseTypes/index.d.ts +6 -0
- package/out/src/baseTypes/index.js +21 -0
- package/out/src/baseTypes/index.js.map +1 -0
- package/out/src/baseTypes/index__.d.ts +49 -0
- package/out/src/baseTypes/index__.js +62 -0
- package/out/src/baseTypes/index__.js.map +1 -0
- package/out/src/common/BaseNode.d.ts +231 -0
- package/out/src/common/BaseNode.js +683 -0
- package/out/src/common/BaseNode.js.map +1 -0
- package/out/src/common/Command.d.ts +8 -0
- package/out/src/common/Command.js +32 -0
- package/out/src/common/Command.js.map +1 -0
- package/out/src/common/ComponentAPI.d.ts +110 -0
- package/out/src/common/ComponentAPI.js +3 -0
- package/out/src/common/ComponentAPI.js.map +1 -0
- package/out/src/common/EventEmitter.d.ts +54 -0
- package/out/src/common/EventEmitter.js +68 -0
- package/out/src/common/EventEmitter.js.map +1 -0
- package/out/src/common/Messager.d.ts +86 -0
- package/out/src/common/Messager.js +187 -0
- package/out/src/common/Messager.js.map +1 -0
- package/out/src/common/classMap.d.ts +4 -0
- package/out/src/common/classMap.js +5 -0
- package/out/src/common/classMap.js.map +1 -0
- package/out/src/common/index.d.ts +4 -0
- package/out/src/common/index.js +21 -0
- package/out/src/common/index.js.map +1 -0
- package/out/src/concepts/App__.d.ts +1077 -0
- package/out/src/concepts/App__.js +1453 -0
- package/out/src/concepts/App__.js.map +1 -0
- package/out/src/concepts/Argument__.d.ts +56 -0
- package/out/src/concepts/Argument__.js +177 -0
- package/out/src/concepts/Argument__.js.map +1 -0
- package/out/src/concepts/Assignment__.d.ts +72 -0
- package/out/src/concepts/Assignment__.js +200 -0
- package/out/src/concepts/Assignment__.js.map +1 -0
- package/out/src/concepts/Attribute__.d.ts +101 -0
- package/out/src/concepts/Attribute__.js +221 -0
- package/out/src/concepts/Attribute__.js.map +1 -0
- package/out/src/concepts/BinaryExpression__.d.ts +66 -0
- package/out/src/concepts/BinaryExpression__.js +237 -0
- package/out/src/concepts/BinaryExpression__.js.map +1 -0
- package/out/src/concepts/BindAttribute__.d.ts +211 -0
- package/out/src/concepts/BindAttribute__.js +395 -0
- package/out/src/concepts/BindAttribute__.js.map +1 -0
- package/out/src/concepts/BindDirective__.d.ts +92 -0
- package/out/src/concepts/BindDirective__.js +221 -0
- package/out/src/concepts/BindDirective__.js.map +1 -0
- package/out/src/concepts/BindEvent__.d.ts +133 -0
- package/out/src/concepts/BindEvent__.js +258 -0
- package/out/src/concepts/BindEvent__.js.map +1 -0
- package/out/src/concepts/BooleanLiteral__.d.ts +27 -0
- package/out/src/concepts/BooleanLiteral__.js +74 -0
- package/out/src/concepts/BooleanLiteral__.js.map +1 -0
- package/out/src/concepts/CallFunction__.d.ts +100 -0
- package/out/src/concepts/CallFunction__.js +231 -0
- package/out/src/concepts/CallFunction__.js.map +1 -0
- package/out/src/concepts/CallInterface__.d.ts +100 -0
- package/out/src/concepts/CallInterface__.js +220 -0
- package/out/src/concepts/CallInterface__.js.map +1 -0
- package/out/src/concepts/CallLogic__.d.ts +116 -0
- package/out/src/concepts/CallLogic__.js +305 -0
- package/out/src/concepts/CallLogic__.js.map +1 -0
- package/out/src/concepts/CallQueryComponent__.d.ts +312 -0
- package/out/src/concepts/CallQueryComponent__.js +738 -0
- package/out/src/concepts/CallQueryComponent__.js.map +1 -0
- package/out/src/concepts/Comment__.d.ts +35 -0
- package/out/src/concepts/Comment__.js +99 -0
- package/out/src/concepts/Comment__.js.map +1 -0
- package/out/src/concepts/CompletionProperty__.d.ts +95 -0
- package/out/src/concepts/CompletionProperty__.js +231 -0
- package/out/src/concepts/CompletionProperty__.js.map +1 -0
- package/out/src/concepts/Constant__.d.ts +96 -0
- package/out/src/concepts/Constant__.js +220 -0
- package/out/src/concepts/Constant__.js.map +1 -0
- package/out/src/concepts/DataElement__.d.ts +45 -0
- package/out/src/concepts/DataElement__.js +114 -0
- package/out/src/concepts/DataElement__.js.map +1 -0
- package/out/src/concepts/Destination__.d.ts +106 -0
- package/out/src/concepts/Destination__.js +263 -0
- package/out/src/concepts/Destination__.js.map +1 -0
- package/out/src/concepts/End__.d.ts +28 -0
- package/out/src/concepts/End__.js +102 -0
- package/out/src/concepts/End__.js.map +1 -0
- package/out/src/concepts/EntityIndex__.d.ts +81 -0
- package/out/src/concepts/EntityIndex__.js +189 -0
- package/out/src/concepts/EntityIndex__.js.map +1 -0
- package/out/src/concepts/EntityProperty__.d.ts +207 -0
- package/out/src/concepts/EntityProperty__.js +472 -0
- package/out/src/concepts/EntityProperty__.js.map +1 -0
- package/out/src/concepts/Entity__.d.ts +282 -0
- package/out/src/concepts/Entity__.js +520 -0
- package/out/src/concepts/Entity__.js.map +1 -0
- package/out/src/concepts/EnumItem__.d.ts +60 -0
- package/out/src/concepts/EnumItem__.js +136 -0
- package/out/src/concepts/EnumItem__.js.map +1 -0
- package/out/src/concepts/Enum__.d.ts +130 -0
- package/out/src/concepts/Enum__.js +259 -0
- package/out/src/concepts/Enum__.js.map +1 -0
- package/out/src/concepts/Event__.d.ts +142 -0
- package/out/src/concepts/Event__.js +242 -0
- package/out/src/concepts/Event__.js.map +1 -0
- package/out/src/concepts/ForEachStatement__.d.ts +194 -0
- package/out/src/concepts/ForEachStatement__.js +410 -0
- package/out/src/concepts/ForEachStatement__.js.map +1 -0
- package/out/src/concepts/Function__.d.ts +387 -0
- package/out/src/concepts/Function__.js +557 -0
- package/out/src/concepts/Function__.js.map +1 -0
- package/out/src/concepts/Identifier__.d.ts +44 -0
- package/out/src/concepts/Identifier__.js +159 -0
- package/out/src/concepts/Identifier__.js.map +1 -0
- package/out/src/concepts/IfStatement__.d.ts +150 -0
- package/out/src/concepts/IfStatement__.js +310 -0
- package/out/src/concepts/IfStatement__.js.map +1 -0
- package/out/src/concepts/InterfaceParam__.d.ts +110 -0
- package/out/src/concepts/InterfaceParam__.js +273 -0
- package/out/src/concepts/InterfaceParam__.js.map +1 -0
- package/out/src/concepts/Interface__.d.ts +247 -0
- package/out/src/concepts/Interface__.js +441 -0
- package/out/src/concepts/Interface__.js.map +1 -0
- package/out/src/concepts/JSBlock__.d.ts +35 -0
- package/out/src/concepts/JSBlock__.js +106 -0
- package/out/src/concepts/JSBlock__.js.map +1 -0
- package/out/src/concepts/LogicItem__.d.ts +114 -0
- package/out/src/concepts/LogicItem__.js +216 -0
- package/out/src/concepts/LogicItem__.js.map +1 -0
- package/out/src/concepts/Logic__.d.ts +571 -0
- package/out/src/concepts/Logic__.js +951 -0
- package/out/src/concepts/Logic__.js.map +1 -0
- package/out/src/concepts/MemberExpression__.d.ts +69 -0
- package/out/src/concepts/MemberExpression__.js +204 -0
- package/out/src/concepts/MemberExpression__.js.map +1 -0
- package/out/src/concepts/Module__.d.ts +747 -0
- package/out/src/concepts/Module__.js +982 -0
- package/out/src/concepts/Module__.js.map +1 -0
- package/out/src/concepts/Namespace__.d.ts +1068 -0
- package/out/src/concepts/Namespace__.js +1397 -0
- package/out/src/concepts/Namespace__.js.map +1 -0
- package/out/src/concepts/NullLiteral__.d.ts +23 -0
- package/out/src/concepts/NullLiteral__.js +67 -0
- package/out/src/concepts/NullLiteral__.js.map +1 -0
- package/out/src/concepts/NumericLiteral__.d.ts +55 -0
- package/out/src/concepts/NumericLiteral__.js +164 -0
- package/out/src/concepts/NumericLiteral__.js.map +1 -0
- package/out/src/concepts/Param__.d.ts +143 -0
- package/out/src/concepts/Param__.js +327 -0
- package/out/src/concepts/Param__.js.map +1 -0
- package/out/src/concepts/Point__.d.ts +30 -0
- package/out/src/concepts/Point__.js +75 -0
- package/out/src/concepts/Point__.js.map +1 -0
- package/out/src/concepts/ProcessComponent__.d.ts +218 -0
- package/out/src/concepts/ProcessComponent__.js +333 -0
- package/out/src/concepts/ProcessComponent__.js.map +1 -0
- package/out/src/concepts/ProcessElement__.d.ts +557 -0
- package/out/src/concepts/ProcessElement__.js +889 -0
- package/out/src/concepts/ProcessElement__.js.map +1 -0
- package/out/src/concepts/ProcessOutcome__.d.ts +34 -0
- package/out/src/concepts/ProcessOutcome__.js +94 -0
- package/out/src/concepts/ProcessOutcome__.js.map +1 -0
- package/out/src/concepts/Process__.d.ts +425 -0
- package/out/src/concepts/Process__.js +736 -0
- package/out/src/concepts/Process__.js.map +1 -0
- package/out/src/concepts/QueryAggregateExpression__.d.ts +56 -0
- package/out/src/concepts/QueryAggregateExpression__.js +177 -0
- package/out/src/concepts/QueryAggregateExpression__.js.map +1 -0
- package/out/src/concepts/QueryFieldExpression__.d.ts +51 -0
- package/out/src/concepts/QueryFieldExpression__.js +129 -0
- package/out/src/concepts/QueryFieldExpression__.js.map +1 -0
- package/out/src/concepts/QueryFromExpression__.d.ts +95 -0
- package/out/src/concepts/QueryFromExpression__.js +188 -0
- package/out/src/concepts/QueryFromExpression__.js.map +1 -0
- package/out/src/concepts/QueryGroupByExpression__.d.ts +46 -0
- package/out/src/concepts/QueryGroupByExpression__.js +126 -0
- package/out/src/concepts/QueryGroupByExpression__.js.map +1 -0
- package/out/src/concepts/QueryJoinExpression__.d.ts +182 -0
- package/out/src/concepts/QueryJoinExpression__.js +308 -0
- package/out/src/concepts/QueryJoinExpression__.js.map +1 -0
- package/out/src/concepts/QueryLimitExpression__.d.ts +60 -0
- package/out/src/concepts/QueryLimitExpression__.js +163 -0
- package/out/src/concepts/QueryLimitExpression__.js.map +1 -0
- package/out/src/concepts/QueryOrderByExpression__.d.ts +71 -0
- package/out/src/concepts/QueryOrderByExpression__.js +176 -0
- package/out/src/concepts/QueryOrderByExpression__.js.map +1 -0
- package/out/src/concepts/QuerySelectExpression__.d.ts +118 -0
- package/out/src/concepts/QuerySelectExpression__.js +210 -0
- package/out/src/concepts/QuerySelectExpression__.js.map +1 -0
- package/out/src/concepts/Rect__.d.ts +38 -0
- package/out/src/concepts/Rect__.js +89 -0
- package/out/src/concepts/Rect__.js.map +1 -0
- package/out/src/concepts/Return__.d.ts +129 -0
- package/out/src/concepts/Return__.js +291 -0
- package/out/src/concepts/Return__.js.map +1 -0
- package/out/src/concepts/Role__.d.ts +52 -0
- package/out/src/concepts/Role__.js +131 -0
- package/out/src/concepts/Role__.js.map +1 -0
- package/out/src/concepts/Slot__.d.ts +57 -0
- package/out/src/concepts/Slot__.js +114 -0
- package/out/src/concepts/Slot__.js.map +1 -0
- package/out/src/concepts/SqlQueryComponent__.d.ts +49 -0
- package/out/src/concepts/SqlQueryComponent__.js +125 -0
- package/out/src/concepts/SqlQueryComponent__.js.map +1 -0
- package/out/src/concepts/Start__.d.ts +28 -0
- package/out/src/concepts/Start__.js +81 -0
- package/out/src/concepts/Start__.js.map +1 -0
- package/out/src/concepts/StringLiteral__.d.ts +37 -0
- package/out/src/concepts/StringLiteral__.js +135 -0
- package/out/src/concepts/StringLiteral__.js.map +1 -0
- package/out/src/concepts/StructureProperty__.d.ts +123 -0
- package/out/src/concepts/StructureProperty__.js +294 -0
- package/out/src/concepts/StructureProperty__.js.map +1 -0
- package/out/src/concepts/Structure__.d.ts +231 -0
- package/out/src/concepts/Structure__.js +386 -0
- package/out/src/concepts/Structure__.js.map +1 -0
- package/out/src/concepts/SwitchCase__.d.ts +97 -0
- package/out/src/concepts/SwitchCase__.js +270 -0
- package/out/src/concepts/SwitchCase__.js.map +1 -0
- package/out/src/concepts/SwitchStatement__.d.ts +86 -0
- package/out/src/concepts/SwitchStatement__.js +187 -0
- package/out/src/concepts/SwitchStatement__.js.map +1 -0
- package/out/src/concepts/Theme__.d.ts +36 -0
- package/out/src/concepts/Theme__.js +86 -0
- package/out/src/concepts/Theme__.js.map +1 -0
- package/out/src/concepts/Transactional__.d.ts +76 -0
- package/out/src/concepts/Transactional__.js +151 -0
- package/out/src/concepts/Transactional__.js.map +1 -0
- package/out/src/concepts/TypeAnnotation__.d.ts +125 -0
- package/out/src/concepts/TypeAnnotation__.js +305 -0
- package/out/src/concepts/TypeAnnotation__.js.map +1 -0
- package/out/src/concepts/TypeParam__.d.ts +20 -0
- package/out/src/concepts/TypeParam__.js +57 -0
- package/out/src/concepts/TypeParam__.js.map +1 -0
- package/out/src/concepts/UnaryExpression__.d.ts +48 -0
- package/out/src/concepts/UnaryExpression__.js +163 -0
- package/out/src/concepts/UnaryExpression__.js.map +1 -0
- package/out/src/concepts/Unparsed__.d.ts +32 -0
- package/out/src/concepts/Unparsed__.js +92 -0
- package/out/src/concepts/Unparsed__.js.map +1 -0
- package/out/src/concepts/UseComponent__.d.ts +30 -0
- package/out/src/concepts/UseComponent__.js +75 -0
- package/out/src/concepts/UseComponent__.js.map +1 -0
- package/out/src/concepts/ValidationRule__.d.ts +95 -0
- package/out/src/concepts/ValidationRule__.js +212 -0
- package/out/src/concepts/ValidationRule__.js.map +1 -0
- package/out/src/concepts/Variable__.d.ts +119 -0
- package/out/src/concepts/Variable__.js +277 -0
- package/out/src/concepts/Variable__.js.map +1 -0
- package/out/src/concepts/ViewComponent__.d.ts +472 -0
- package/out/src/concepts/ViewComponent__.js +644 -0
- package/out/src/concepts/ViewComponent__.js.map +1 -0
- package/out/src/concepts/ViewElement__.d.ts +483 -0
- package/out/src/concepts/ViewElement__.js +1167 -0
- package/out/src/concepts/ViewElement__.js.map +1 -0
- package/out/src/concepts/View__.d.ts +676 -0
- package/out/src/concepts/View__.js +1268 -0
- package/out/src/concepts/View__.js.map +1 -0
- package/out/src/concepts/WhileStatement__.d.ts +97 -0
- package/out/src/concepts/WhileStatement__.js +228 -0
- package/out/src/concepts/WhileStatement__.js.map +1 -0
- package/out/src/concepts/basics/stdlib/index.d.ts +4 -0
- package/out/src/concepts/basics/stdlib/index.js +23 -0
- package/out/src/concepts/basics/stdlib/index.js.map +1 -0
- package/out/src/concepts/basics/stdlib/nasl.collection.d.ts +5 -0
- package/out/src/concepts/basics/stdlib/nasl.collection.js +54 -0
- package/out/src/concepts/basics/stdlib/nasl.collection.js.map +1 -0
- package/out/src/concepts/basics/stdlib/nasl.core.d.ts +3 -0
- package/out/src/concepts/basics/stdlib/nasl.core.js +15 -0
- package/out/src/concepts/basics/stdlib/nasl.core.js.map +1 -0
- package/out/src/concepts/basics/stdlib/nasl.interface.d.ts +5 -0
- package/out/src/concepts/basics/stdlib/nasl.interface.js +43 -0
- package/out/src/concepts/basics/stdlib/nasl.interface.js.map +1 -0
- package/out/src/concepts/basics/stdlib/nasl.process.d.ts +3 -0
- package/out/src/concepts/basics/stdlib/nasl.process.js +43 -0
- package/out/src/concepts/basics/stdlib/nasl.process.js.map +1 -0
- package/out/src/concepts/basics/stdlib/nasl.ui.d.ts +5 -0
- package/out/src/concepts/basics/stdlib/nasl.ui.js +85 -0
- package/out/src/concepts/basics/stdlib/nasl.ui.js.map +1 -0
- package/out/src/concepts/basics/stdlib/nasl.util.d.ts +3 -0
- package/out/src/concepts/basics/stdlib/nasl.util.js +587 -0
- package/out/src/concepts/basics/stdlib/nasl.util.js.map +1 -0
- package/out/src/concepts/basics/stdlib/nasl.validate.d.ts +3 -0
- package/out/src/concepts/basics/stdlib/nasl.validate.js +527 -0
- package/out/src/concepts/basics/stdlib/nasl.validate.js.map +1 -0
- package/out/src/concepts/basics/stdlib/reference2TypeAnnotationList.d.ts +5 -0
- package/out/src/concepts/basics/stdlib/reference2TypeAnnotationList.js +26 -0
- package/out/src/concepts/basics/stdlib/reference2TypeAnnotationList.js.map +1 -0
- package/out/src/concepts/basics/types/coreTypeList.d.ts +2 -0
- package/out/src/concepts/basics/types/coreTypeList.js +17 -0
- package/out/src/concepts/basics/types/coreTypeList.js.map +1 -0
- package/out/src/concepts/basics/types/index.d.ts +11 -0
- package/out/src/concepts/basics/types/index.js +20 -0
- package/out/src/concepts/basics/types/index.js.map +1 -0
- package/out/src/concepts/index.d.ts +5 -0
- package/out/src/concepts/index.js +24 -0
- package/out/src/concepts/index.js.map +1 -0
- package/out/src/concepts/index__.d.ts +77 -0
- package/out/src/concepts/index__.js +94 -0
- package/out/src/concepts/index__.js.map +1 -0
- package/out/src/config.d.ts +43 -0
- package/out/src/config.js +72 -0
- package/out/src/config.js.map +1 -0
- package/out/src/decorators/index.d.ts +54 -0
- package/out/src/decorators/index.js +146 -0
- package/out/src/decorators/index.js.map +1 -0
- package/out/src/generator/compileComponent.d.ts +11 -0
- package/out/src/generator/compileComponent.js +12 -0
- package/out/src/generator/compileComponent.js.map +1 -0
- package/out/src/generator/debugInFileStorage.d.ts +3 -0
- package/out/src/generator/debugInFileStorage.js +15 -0
- package/out/src/generator/debugInFileStorage.js.map +1 -0
- package/out/src/generator/genAllEmbeddedTS.d.ts +7 -0
- package/out/src/generator/genAllEmbeddedTS.js +20 -0
- package/out/src/generator/genAllEmbeddedTS.js.map +1 -0
- package/out/src/generator/genBundleFiles.d.ts +38 -0
- package/out/src/generator/genBundleFiles.js +219 -0
- package/out/src/generator/genBundleFiles.js.map +1 -0
- package/out/src/generator/genHash.d.ts +7 -0
- package/out/src/generator/genHash.js +39 -0
- package/out/src/generator/genHash.js.map +1 -0
- package/out/src/generator/index.d.ts +4 -0
- package/out/src/generator/index.js +21 -0
- package/out/src/generator/index.js.map +1 -0
- package/out/src/generator/styleReplacer.d.ts +3 -0
- package/out/src/generator/styleReplacer.js +71 -0
- package/out/src/generator/styleReplacer.js.map +1 -0
- package/out/src/index.d.ts +9 -0
- package/out/src/index.js +48 -0
- package/out/src/index.js.map +1 -0
- package/out/src/init.d.ts +1 -0
- package/out/src/init.js +140 -0
- package/out/src/init.js.map +1 -0
- package/out/src/manager/diagnostic.d.ts +38 -0
- package/out/src/manager/diagnostic.js +84 -0
- package/out/src/manager/diagnostic.js.map +1 -0
- package/out/src/manager/history.d.ts +0 -0
- package/out/src/manager/history.js +1 -0
- package/out/src/manager/history.js.map +1 -0
- package/out/src/manager/problem.d.ts +0 -0
- package/out/src/manager/problem.js +1 -0
- package/out/src/manager/problem.js.map +1 -0
- package/out/src/map.d.ts +4 -0
- package/out/src/map.js +62 -0
- package/out/src/map.js.map +1 -0
- package/out/src/naslServer/index.d.ts +55 -0
- package/out/src/naslServer/index.js +296 -0
- package/out/src/naslServer/index.js.map +1 -0
- package/out/src/naslServer/translator.d.ts +3 -0
- package/out/src/naslServer/translator.js +78 -0
- package/out/src/naslServer/translator.js.map +1 -0
- package/out/src/server/entity2LogicNamespace.d.ts +2 -0
- package/out/src/server/entity2LogicNamespace.js +192 -0
- package/out/src/server/entity2LogicNamespace.js.map +1 -0
- package/out/src/server/getFunctions.d.ts +2 -0
- package/out/src/server/getFunctions.js +14 -0
- package/out/src/server/getFunctions.js.map +1 -0
- package/out/src/server/getInterfaces.d.ts +2 -0
- package/out/src/server/getInterfaces.js +48 -0
- package/out/src/server/getInterfaces.js.map +1 -0
- package/out/src/server/getLogics.d.ts +2 -0
- package/out/src/server/getLogics.js +83 -0
- package/out/src/server/getLogics.js.map +1 -0
- package/out/src/server/getMemberIdentifier.d.ts +5 -0
- package/out/src/server/getMemberIdentifier.js +102 -0
- package/out/src/server/getMemberIdentifier.js.map +1 -0
- package/out/src/server/getProcessComponents.d.ts +2 -0
- package/out/src/server/getProcessComponents.js +13 -0
- package/out/src/server/getProcessComponents.js.map +1 -0
- package/out/src/server/getProcesses.d.ts +19 -0
- package/out/src/server/getProcesses.js +106 -0
- package/out/src/server/getProcesses.js.map +1 -0
- package/out/src/server/getValidates.d.ts +3 -0
- package/out/src/server/getValidates.js +14 -0
- package/out/src/server/getValidates.js.map +1 -0
- package/out/src/server/index.d.ts +2 -0
- package/out/src/server/index.js +26 -0
- package/out/src/server/index.js.map +1 -0
- package/out/src/server/naslServer.d.ts +139 -0
- package/out/src/server/naslServer.js +1120 -0
- package/out/src/server/naslServer.js.map +1 -0
- package/out/src/server/process2LogicNamespace.d.ts +2 -0
- package/out/src/server/process2LogicNamespace.js +24 -0
- package/out/src/server/process2LogicNamespace.js.map +1 -0
- package/out/src/server/translator.d.ts +5 -0
- package/out/src/server/translator.js +150 -0
- package/out/src/server/translator.js.map +1 -0
- package/out/src/service/app/api.d.ts +61 -0
- package/out/src/service/app/api.js +77 -0
- package/out/src/service/app/api.js.map +1 -0
- package/out/src/service/app/index.d.ts +2 -0
- package/out/src/service/app/index.js +10 -0
- package/out/src/service/app/index.js.map +1 -0
- package/out/src/service/assets/asset.d.ts +104 -0
- package/out/src/service/assets/asset.js +78 -0
- package/out/src/service/assets/asset.js.map +1 -0
- package/out/src/service/assets/block.d.ts +9 -0
- package/out/src/service/assets/block.js +11 -0
- package/out/src/service/assets/block.js.map +1 -0
- package/out/src/service/assets/index.d.ts +2 -0
- package/out/src/service/assets/index.js +12 -0
- package/out/src/service/assets/index.js.map +1 -0
- package/out/src/service/common/findUsage.d.ts +9 -0
- package/out/src/service/common/findUsage.js +11 -0
- package/out/src/service/common/findUsage.js.map +1 -0
- package/out/src/service/common/index.d.ts +2 -0
- package/out/src/service/common/index.js +12 -0
- package/out/src/service/common/index.js.map +1 -0
- package/out/src/service/common/preprocess.d.ts +14 -0
- package/out/src/service/common/preprocess.js +75 -0
- package/out/src/service/common/preprocess.js.map +1 -0
- package/out/src/service/common/schema.d.ts +9 -0
- package/out/src/service/common/schema.js +12 -0
- package/out/src/service/common/schema.js.map +1 -0
- package/out/src/service/create/add.configs.d.ts +1 -0
- package/out/src/service/create/add.configs.js +68 -0
- package/out/src/service/create/add.configs.js.map +1 -0
- package/out/src/service/create/errHandles.d.ts +18 -0
- package/out/src/service/create/errHandles.js +57 -0
- package/out/src/service/create/errHandles.js.map +1 -0
- package/out/src/service/create/index.d.ts +1 -0
- package/out/src/service/create/index.js +77 -0
- package/out/src/service/create/index.js.map +1 -0
- package/out/src/service/data/api.d.ts +36 -0
- package/out/src/service/data/api.js +36 -0
- package/out/src/service/data/api.js.map +1 -0
- package/out/src/service/data/entity.d.ts +135 -0
- package/out/src/service/data/entity.js +103 -0
- package/out/src/service/data/entity.js.map +1 -0
- package/out/src/service/data/enum.d.ts +63 -0
- package/out/src/service/data/enum.js +55 -0
- package/out/src/service/data/enum.js.map +1 -0
- package/out/src/service/data/enumProperty.d.ts +28 -0
- package/out/src/service/data/enumProperty.js +23 -0
- package/out/src/service/data/enumProperty.js.map +1 -0
- package/out/src/service/data/generic.d.ts +9 -0
- package/out/src/service/data/generic.js +11 -0
- package/out/src/service/data/generic.js.map +1 -0
- package/out/src/service/data/index.d.ts +8 -0
- package/out/src/service/data/index.js +23 -0
- package/out/src/service/data/index.js.map +1 -0
- package/out/src/service/data/interface.d.ts +67 -0
- package/out/src/service/data/interface.js +58 -0
- package/out/src/service/data/interface.js.map +1 -0
- package/out/src/service/data/structure.d.ts +92 -0
- package/out/src/service/data/structure.js +77 -0
- package/out/src/service/data/structure.js.map +1 -0
- package/out/src/service/logic/index.d.ts +2 -0
- package/out/src/service/logic/index.js +14 -0
- package/out/src/service/logic/index.js.map +1 -0
- package/out/src/service/logic/logic.d.ts +157 -0
- package/out/src/service/logic/logic.js +116 -0
- package/out/src/service/logic/logic.js.map +1 -0
- package/out/src/service/logic/param.d.ts +37 -0
- package/out/src/service/logic/param.js +29 -0
- package/out/src/service/logic/param.js.map +1 -0
- package/out/src/service/nuims/api.d.ts +264 -0
- package/out/src/service/nuims/api.js +194 -0
- package/out/src/service/nuims/api.js.map +1 -0
- package/out/src/service/nuims/index.d.ts +2 -0
- package/out/src/service/nuims/index.js +17 -0
- package/out/src/service/nuims/index.js.map +1 -0
- package/out/src/service/page/api.d.ts +186 -0
- package/out/src/service/page/api.js +1361 -0
- package/out/src/service/page/api.js.map +1 -0
- package/out/src/service/page/attribute.d.ts +28 -0
- package/out/src/service/page/attribute.js +23 -0
- package/out/src/service/page/attribute.js.map +1 -0
- package/out/src/service/page/directive.d.ts +28 -0
- package/out/src/service/page/directive.js +23 -0
- package/out/src/service/page/directive.js.map +1 -0
- package/out/src/service/page/element.d.ts +45 -0
- package/out/src/service/page/element.js +42 -0
- package/out/src/service/page/element.js.map +1 -0
- package/out/src/service/page/event.d.ts +28 -0
- package/out/src/service/page/event.js +23 -0
- package/out/src/service/page/event.js.map +1 -0
- package/out/src/service/page/index.d.ts +8 -0
- package/out/src/service/page/index.js +23 -0
- package/out/src/service/page/index.js.map +1 -0
- package/out/src/service/page/lifecycle.d.ts +28 -0
- package/out/src/service/page/lifecycle.js +23 -0
- package/out/src/service/page/lifecycle.js.map +1 -0
- package/out/src/service/page/templates.d.ts +14 -0
- package/out/src/service/page/templates.js +70 -0
- package/out/src/service/page/templates.js.map +1 -0
- package/out/src/service/page/view.d.ts +130 -0
- package/out/src/service/page/view.js +101 -0
- package/out/src/service/page/view.js.map +1 -0
- package/out/src/service/permission/api.d.ts +57 -0
- package/out/src/service/permission/api.js +41 -0
- package/out/src/service/permission/api.js.map +1 -0
- package/out/src/service/permission/index.d.ts +2 -0
- package/out/src/service/permission/index.js +17 -0
- package/out/src/service/permission/index.js.map +1 -0
- package/out/src/service/process/api.d.ts +136 -0
- package/out/src/service/process/api.js +95 -0
- package/out/src/service/process/api.js.map +1 -0
- package/out/src/service/process/index.d.ts +2 -0
- package/out/src/service/process/index.js +10 -0
- package/out/src/service/process/index.js.map +1 -0
- package/out/src/service/storage/index.d.ts +2 -0
- package/out/src/service/storage/index.js +10 -0
- package/out/src/service/storage/index.js.map +1 -0
- package/out/src/service/storage/init.d.ts +7 -0
- package/out/src/service/storage/init.js +187 -0
- package/out/src/service/storage/init.js.map +1 -0
- package/out/src/service/storage/jsoner.d.ts +29 -0
- package/out/src/service/storage/jsoner.js +130 -0
- package/out/src/service/storage/jsoner.js.map +1 -0
- package/out/src/service/storage/map.d.ts +4 -0
- package/out/src/service/storage/map.js +54 -0
- package/out/src/service/storage/map.js.map +1 -0
- package/out/src/service/storage/storagePoint.d.ts +30 -0
- package/out/src/service/storage/storagePoint.js +76 -0
- package/out/src/service/storage/storagePoint.js.map +1 -0
- package/out/src/service/undoredo/api.d.ts +36 -0
- package/out/src/service/undoredo/api.js +29 -0
- package/out/src/service/undoredo/api.js.map +1 -0
- package/out/src/service/undoredo/index.d.ts +2 -0
- package/out/src/service/undoredo/index.js +10 -0
- package/out/src/service/undoredo/index.js.map +1 -0
- package/out/src/service/webFile/api.d.ts +45 -0
- package/out/src/service/webFile/api.js +35 -0
- package/out/src/service/webFile/api.js.map +1 -0
- package/out/src/service/webFile/index.d.ts +3 -0
- package/out/src/service/webFile/index.js +32 -0
- package/out/src/service/webFile/index.js.map +1 -0
- package/out/src/service/webFile/loadCache.d.ts +18 -0
- package/out/src/service/webFile/loadCache.js +17 -0
- package/out/src/service/webFile/loadCache.js.map +1 -0
- package/out/src/storagePoint.d.ts +16 -0
- package/out/src/storagePoint.js +49 -0
- package/out/src/storagePoint.js.map +1 -0
- package/out/src/templator/genCallComponentLogic.d.ts +17 -0
- package/out/src/templator/genCallComponentLogic.js +30 -0
- package/out/src/templator/genCallComponentLogic.js.map +1 -0
- package/out/src/templator/genCallInterface.d.ts +12 -0
- package/out/src/templator/genCallInterface.js +20 -0
- package/out/src/templator/genCallInterface.js.map +1 -0
- package/out/src/templator/genCallLogic.d.ts +12 -0
- package/out/src/templator/genCallLogic.js +26 -0
- package/out/src/templator/genCallLogic.js.map +1 -0
- package/out/src/templator/genCreateBlock.d.ts +10 -0
- package/out/src/templator/genCreateBlock.js +304 -0
- package/out/src/templator/genCreateBlock.js.map +1 -0
- package/out/src/templator/genCurdEditMultipleKeyBlock.d.ts +2 -0
- package/out/src/templator/genCurdEditMultipleKeyBlock.js +453 -0
- package/out/src/templator/genCurdEditMultipleKeyBlock.js.map +1 -0
- package/out/src/templator/genCurdMultipleKeyBlock.d.ts +3 -0
- package/out/src/templator/genCurdMultipleKeyBlock.js +640 -0
- package/out/src/templator/genCurdMultipleKeyBlock.js.map +1 -0
- package/out/src/templator/genEditTableBlock.d.ts +51 -0
- package/out/src/templator/genEditTableBlock.js +301 -0
- package/out/src/templator/genEditTableBlock.js.map +1 -0
- package/out/src/templator/genEnumSelectBlock.d.ts +10 -0
- package/out/src/templator/genEnumSelectBlock.js +23 -0
- package/out/src/templator/genEnumSelectBlock.js.map +1 -0
- package/out/src/templator/genGetBlock.d.ts +6 -0
- package/out/src/templator/genGetBlock.js +133 -0
- package/out/src/templator/genGetBlock.js.map +1 -0
- package/out/src/templator/genGridViewBlock.d.ts +53 -0
- package/out/src/templator/genGridViewBlock.js +308 -0
- package/out/src/templator/genGridViewBlock.js.map +1 -0
- package/out/src/templator/genListViewBlock.d.ts +19 -0
- package/out/src/templator/genListViewBlock.js +137 -0
- package/out/src/templator/genListViewBlock.js.map +1 -0
- package/out/src/templator/genQueryComponent.d.ts +32 -0
- package/out/src/templator/genQueryComponent.js +307 -0
- package/out/src/templator/genQueryComponent.js.map +1 -0
- package/out/src/templator/genSelectBlock.d.ts +34 -0
- package/out/src/templator/genSelectBlock.js +142 -0
- package/out/src/templator/genSelectBlock.js.map +1 -0
- package/out/src/templator/genTableBlock.d.ts +53 -0
- package/out/src/templator/genTableBlock.js +295 -0
- package/out/src/templator/genTableBlock.js.map +1 -0
- package/out/src/templator/genUpdateBlock.d.ts +6 -0
- package/out/src/templator/genUpdateBlock.js +347 -0
- package/out/src/templator/genUpdateBlock.js.map +1 -0
- package/out/src/templator/index.d.ts +15 -0
- package/out/src/templator/index.js +33 -0
- package/out/src/templator/index.js.map +1 -0
- package/out/src/templator/utils.d.ts +634 -0
- package/out/src/templator/utils.js +412 -0
- package/out/src/templator/utils.js.map +1 -0
- package/out/src/terms/LEVEL_NAME_MAP.d.ts +26 -0
- package/out/src/terms/LEVEL_NAME_MAP.js +30 -0
- package/out/src/terms/LEVEL_NAME_MAP.js.map +1 -0
- package/out/src/test/fixtures/env.d.ts +5 -0
- package/out/src/test/fixtures/env.js +21 -0
- package/out/src/test/fixtures/env.js.map +1 -0
- package/out/src/test/integration/connect-file.d.ts +1 -0
- package/out/src/test/integration/connect-file.js +49 -0
- package/out/src/test/integration/connect-file.js.map +1 -0
- package/out/src/test/units/app/App.spec.d.ts +1 -0
- package/out/src/test/units/app/App.spec.js +17 -0
- package/out/src/test/units/app/App.spec.js.map +1 -0
- package/out/src/test/units/app/Service.spec.d.ts +1 -0
- package/out/src/test/units/app/Service.spec.js +24 -0
- package/out/src/test/units/app/Service.spec.js.map +1 -0
- package/out/src/test/units/baseTypes/Assignment.spec.d.ts +1 -0
- package/out/src/test/units/baseTypes/Assignment.spec.js +43 -0
- package/out/src/test/units/baseTypes/Assignment.spec.js.map +1 -0
- package/out/src/test/units/baseTypes/AssignmentExpression.spec.d.ts +1 -0
- package/out/src/test/units/baseTypes/AssignmentExpression.spec.js +39 -0
- package/out/src/test/units/baseTypes/AssignmentExpression.spec.js.map +1 -0
- package/out/src/test/units/baseTypes/CallLogic.spec.d.ts +1 -0
- package/out/src/test/units/baseTypes/CallLogic.spec.js +44 -0
- package/out/src/test/units/baseTypes/CallLogic.spec.js.map +1 -0
- package/out/src/test/units/baseTypes/StringLiteral.spec.d.ts +1 -0
- package/out/src/test/units/baseTypes/StringLiteral.spec.js +75 -0
- package/out/src/test/units/baseTypes/StringLiteral.spec.js.map +1 -0
- package/out/src/test/units/baseTypes/new.spec.d.ts +1 -0
- package/out/src/test/units/baseTypes/new.spec.js +37 -0
- package/out/src/test/units/baseTypes/new.spec.js.map +1 -0
- package/out/src/test/units/common/Vertex.spec.d.ts +1 -0
- package/out/src/test/units/common/Vertex.spec.js +22 -0
- package/out/src/test/units/common/Vertex.spec.js.map +1 -0
- package/out/src/test/units/data/Entity.spec.d.ts +1 -0
- package/out/src/test/units/data/Entity.spec.js +12 -0
- package/out/src/test/units/data/Entity.spec.js.map +1 -0
- package/out/src/test/units/login.spec.d.ts +1 -0
- package/out/src/test/units/login.spec.js +12 -0
- package/out/src/test/units/login.spec.js.map +1 -0
- package/out/src/test/units/page/Block.spec.d.ts +0 -0
- package/out/src/test/units/page/Block.spec.js +13 -0
- package/out/src/test/units/page/Block.spec.js.map +1 -0
- package/out/src/test/units/page/Element.spec.d.ts +1 -0
- package/out/src/test/units/page/Element.spec.js +44 -0
- package/out/src/test/units/page/Element.spec.js.map +1 -0
- package/out/src/test/units/temp/temp.spec.d.ts +1 -0
- package/out/src/test/units/temp/temp.spec.js +68 -0
- package/out/src/test/units/temp/temp.spec.js.map +1 -0
- package/out/src/translator/index.d.ts +47 -0
- package/out/src/translator/index.js +108 -0
- package/out/src/translator/index.js.map +1 -0
- package/out/src/translator/lsp.d.ts +45 -0
- package/out/src/translator/lsp.js +6 -0
- package/out/src/translator/lsp.js.map +1 -0
- package/out/src/translator/tsp.d.ts +12 -0
- package/out/src/translator/tsp.js +3 -0
- package/out/src/translator/tsp.js.map +1 -0
- package/out/src/types/app/App.d.ts +148 -0
- package/out/src/types/app/App.js +358 -0
- package/out/src/types/app/App.js.map +1 -0
- package/out/src/types/app/History.d.ts +36 -0
- package/out/src/types/app/History.js +366 -0
- package/out/src/types/app/History.js.map +1 -0
- package/out/src/types/app/Service.d.ts +220 -0
- package/out/src/types/app/Service.js +831 -0
- package/out/src/types/app/Service.js.map +1 -0
- package/out/src/types/cache.d.ts +6 -0
- package/out/src/types/cache.js +54 -0
- package/out/src/types/cache.js.map +1 -0
- package/out/src/types/cacheData.d.ts +4 -0
- package/out/src/types/cacheData.js +34 -0
- package/out/src/types/cacheData.js.map +1 -0
- package/out/src/types/classMap.d.ts +4 -0
- package/out/src/types/classMap.js +5 -0
- package/out/src/types/classMap.js.map +1 -0
- package/out/src/types/common/ComponentAPI.d.ts +110 -0
- package/out/src/types/common/ComponentAPI.js +3 -0
- package/out/src/types/common/ComponentAPI.js.map +1 -0
- package/out/src/types/common/EventEmitter.d.ts +37 -0
- package/out/src/types/common/EventEmitter.js +70 -0
- package/out/src/types/common/EventEmitter.js.map +1 -0
- package/out/src/types/common/PackageJSON.d.ts +32 -0
- package/out/src/types/common/PackageJSON.js +3 -0
- package/out/src/types/common/PackageJSON.js.map +1 -0
- package/out/src/types/common/Vertex.d.ts +205 -0
- package/out/src/types/common/Vertex.js +591 -0
- package/out/src/types/common/Vertex.js.map +1 -0
- package/out/src/types/config.d.ts +32 -0
- package/out/src/types/config.js +30 -0
- package/out/src/types/config.js.map +1 -0
- package/out/src/types/data/DataNode.d.ts +24 -0
- package/out/src/types/data/DataNode.js +52 -0
- package/out/src/types/data/DataNode.js.map +1 -0
- package/out/src/types/data/Entity.d.ts +124 -0
- package/out/src/types/data/Entity.js +537 -0
- package/out/src/types/data/Entity.js.map +1 -0
- package/out/src/types/data/EntityIndex.d.ts +87 -0
- package/out/src/types/data/EntityIndex.js +262 -0
- package/out/src/types/data/EntityIndex.js.map +1 -0
- package/out/src/types/data/EntityProperty.d.ts +196 -0
- package/out/src/types/data/EntityProperty.js +584 -0
- package/out/src/types/data/EntityProperty.js.map +1 -0
- package/out/src/types/data/Enum.d.ts +97 -0
- package/out/src/types/data/Enum.js +267 -0
- package/out/src/types/data/Enum.js.map +1 -0
- package/out/src/types/data/EnumItem.d.ts +57 -0
- package/out/src/types/data/EnumItem.js +170 -0
- package/out/src/types/data/EnumItem.js.map +1 -0
- package/out/src/types/data/GlobalLogicNode.d.ts +44 -0
- package/out/src/types/data/GlobalLogicNode.js +201 -0
- package/out/src/types/data/GlobalLogicNode.js.map +1 -0
- package/out/src/types/data/Interface.d.ts +153 -0
- package/out/src/types/data/Interface.js +482 -0
- package/out/src/types/data/Interface.js.map +1 -0
- package/out/src/types/data/Schema.d.ts +121 -0
- package/out/src/types/data/Schema.js +3 -0
- package/out/src/types/data/Schema.js.map +1 -0
- package/out/src/types/data/Structure.d.ts +104 -0
- package/out/src/types/data/Structure.js +319 -0
- package/out/src/types/data/Structure.js.map +1 -0
- package/out/src/types/data/StructureProperty.d.ts +134 -0
- package/out/src/types/data/StructureProperty.js +380 -0
- package/out/src/types/data/StructureProperty.js.map +1 -0
- package/out/src/types/data/basicTypes.d.ts +25 -0
- package/out/src/types/data/basicTypes.js +77 -0
- package/out/src/types/data/basicTypes.js.map +1 -0
- package/out/src/types/data/dataTypeUtils.d.ts +94 -0
- package/out/src/types/data/dataTypeUtils.js +441 -0
- package/out/src/types/data/dataTypeUtils.js.map +1 -0
- package/out/src/types/data/dataTypes.d.ts +20 -0
- package/out/src/types/data/dataTypes.js +47 -0
- package/out/src/types/data/dataTypes.js.map +1 -0
- package/out/src/types/data/entityUtils.d.ts +164 -0
- package/out/src/types/data/entityUtils.js +632 -0
- package/out/src/types/data/entityUtils.js.map +1 -0
- package/out/src/types/data/genBlock/builtInFunctions.json +545 -0
- package/out/src/types/data/genBlock/genCallComponentLogic.d.ts +20 -0
- package/out/src/types/data/genBlock/genCallComponentLogic.js +32 -0
- package/out/src/types/data/genBlock/genCallComponentLogic.js.map +1 -0
- package/out/src/types/data/genBlock/genCallInterface.d.ts +41 -0
- package/out/src/types/data/genBlock/genCallInterface.js +86 -0
- package/out/src/types/data/genBlock/genCallInterface.js.map +1 -0
- package/out/src/types/data/genBlock/genCreateBlock.d.ts +10 -0
- package/out/src/types/data/genBlock/genCreateBlock.js +313 -0
- package/out/src/types/data/genBlock/genCreateBlock.js.map +1 -0
- package/out/src/types/data/genBlock/genCurdBlock.d.ts +4 -0
- package/out/src/types/data/genBlock/genCurdBlock.js +648 -0
- package/out/src/types/data/genBlock/genCurdBlock.js.map +1 -0
- package/out/src/types/data/genBlock/genCurdEditTableBlock.d.ts +3 -0
- package/out/src/types/data/genBlock/genCurdEditTableBlock.js +578 -0
- package/out/src/types/data/genBlock/genCurdEditTableBlock.js.map +1 -0
- package/out/src/types/data/genBlock/genEditTableBlock.d.ts +234 -0
- package/out/src/types/data/genBlock/genEditTableBlock.js +419 -0
- package/out/src/types/data/genBlock/genEditTableBlock.js.map +1 -0
- package/out/src/types/data/genBlock/genEnumSelectBlock.d.ts +10 -0
- package/out/src/types/data/genBlock/genEnumSelectBlock.js +23 -0
- package/out/src/types/data/genBlock/genEnumSelectBlock.js.map +1 -0
- package/out/src/types/data/genBlock/genGetBlock.d.ts +6 -0
- package/out/src/types/data/genBlock/genGetBlock.js +151 -0
- package/out/src/types/data/genBlock/genGetBlock.js.map +1 -0
- package/out/src/types/data/genBlock/genGridViewBlock.d.ts +136 -0
- package/out/src/types/data/genBlock/genGridViewBlock.js +274 -0
- package/out/src/types/data/genBlock/genGridViewBlock.js.map +1 -0
- package/out/src/types/data/genBlock/genListViewBlock.d.ts +63 -0
- package/out/src/types/data/genBlock/genListViewBlock.js +110 -0
- package/out/src/types/data/genBlock/genListViewBlock.js.map +1 -0
- package/out/src/types/data/genBlock/genQueryComponent.d.ts +336 -0
- package/out/src/types/data/genBlock/genQueryComponent.js +526 -0
- package/out/src/types/data/genBlock/genQueryComponent.js.map +1 -0
- package/out/src/types/data/genBlock/genSelectBlock.d.ts +63 -0
- package/out/src/types/data/genBlock/genSelectBlock.js +106 -0
- package/out/src/types/data/genBlock/genSelectBlock.js.map +1 -0
- package/out/src/types/data/genBlock/genTableBlock.d.ts +136 -0
- package/out/src/types/data/genBlock/genTableBlock.js +270 -0
- package/out/src/types/data/genBlock/genTableBlock.js.map +1 -0
- package/out/src/types/data/genBlock/genUpdateBlock.d.ts +6 -0
- package/out/src/types/data/genBlock/genUpdateBlock.js +384 -0
- package/out/src/types/data/genBlock/genUpdateBlock.js.map +1 -0
- package/out/src/types/data/genBlock/index.d.ts +17 -0
- package/out/src/types/data/genBlock/index.js +31 -0
- package/out/src/types/data/genBlock/index.js.map +1 -0
- package/out/src/types/data/genBlock/utils.d.ts +99 -0
- package/out/src/types/data/genBlock/utils.js +224 -0
- package/out/src/types/data/genBlock/utils.js.map +1 -0
- package/out/src/types/data/genericTypes.d.ts +40 -0
- package/out/src/types/data/genericTypes.js +145 -0
- package/out/src/types/data/genericTypes.js.map +1 -0
- package/out/src/types/data/systemTypes.d.ts +9 -0
- package/out/src/types/data/systemTypes.js +1563 -0
- package/out/src/types/data/systemTypes.js.map +1 -0
- package/out/src/types/decorators/index.d.ts +31 -0
- package/out/src/types/decorators/index.js +121 -0
- package/out/src/types/decorators/index.js.map +1 -0
- package/out/src/types/enum.d.ts +6 -0
- package/out/src/types/enum.js +11 -0
- package/out/src/types/enum.js.map +1 -0
- package/out/src/types/index.d.ts +145 -0
- package/out/src/types/index.js +226 -0
- package/out/src/types/index.js.map +1 -0
- package/out/src/types/logic/BaseVariable.d.ts +75 -0
- package/out/src/types/logic/BaseVariable.js +159 -0
- package/out/src/types/logic/BaseVariable.js.map +1 -0
- package/out/src/types/logic/Logic.d.ts +180 -0
- package/out/src/types/logic/Logic.js +591 -0
- package/out/src/types/logic/Logic.js.map +1 -0
- package/out/src/types/logic/LogicItem.d.ts +320 -0
- package/out/src/types/logic/LogicItem.js +1295 -0
- package/out/src/types/logic/LogicItem.js.map +1 -0
- package/out/src/types/logic/Param.d.ts +86 -0
- package/out/src/types/logic/Param.js +367 -0
- package/out/src/types/logic/Param.js.map +1 -0
- package/out/src/types/logic/Return.d.ts +73 -0
- package/out/src/types/logic/Return.js +313 -0
- package/out/src/types/logic/Return.js.map +1 -0
- package/out/src/types/logic/Variable.d.ts +72 -0
- package/out/src/types/logic/Variable.js +309 -0
- package/out/src/types/logic/Variable.js.map +1 -0
- package/out/src/types/logic/expressions/MemberExpression.d.ts +23 -0
- package/out/src/types/logic/expressions/MemberExpression.js +52 -0
- package/out/src/types/logic/expressions/MemberExpression.js.map +1 -0
- package/out/src/types/logic/expressions/NumericLiteral.d.ts +19 -0
- package/out/src/types/logic/expressions/NumericLiteral.js +42 -0
- package/out/src/types/logic/expressions/NumericLiteral.js.map +1 -0
- package/out/src/types/logic/expressions/Unparsed.d.ts +19 -0
- package/out/src/types/logic/expressions/Unparsed.js +42 -0
- package/out/src/types/logic/expressions/Unparsed.js.map +1 -0
- package/out/src/types/logic/nodes/BuiltInFuncParam.d.ts +27 -0
- package/out/src/types/logic/nodes/BuiltInFuncParam.js +56 -0
- package/out/src/types/logic/nodes/BuiltInFuncParam.js.map +1 -0
- package/out/src/types/logic/nodes/BuiltInFunction.d.ts +24 -0
- package/out/src/types/logic/nodes/BuiltInFunction.js +55 -0
- package/out/src/types/logic/nodes/BuiltInFunction.js.map +1 -0
- package/out/src/types/logic/nodes/CallConsoleLog.d.ts +19 -0
- package/out/src/types/logic/nodes/CallConsoleLog.js +42 -0
- package/out/src/types/logic/nodes/CallConsoleLog.js.map +1 -0
- package/out/src/types/logic/nodes/CallInterParam.d.ts +23 -0
- package/out/src/types/logic/nodes/CallInterParam.js +49 -0
- package/out/src/types/logic/nodes/CallInterParam.js.map +1 -0
- package/out/src/types/logic/nodes/CallInterface.d.ts +24 -0
- package/out/src/types/logic/nodes/CallInterface.js +49 -0
- package/out/src/types/logic/nodes/CallInterface.js.map +1 -0
- package/out/src/types/logic/nodes/CallLogic.d.ts +24 -0
- package/out/src/types/logic/nodes/CallLogic.js +55 -0
- package/out/src/types/logic/nodes/CallLogic.js.map +1 -0
- package/out/src/types/logic/nodes/CallMessageShow.d.ts +27 -0
- package/out/src/types/logic/nodes/CallMessageShow.js +56 -0
- package/out/src/types/logic/nodes/CallMessageShow.js.map +1 -0
- package/out/src/types/logic/nodes/Destination.d.ts +32 -0
- package/out/src/types/logic/nodes/Destination.js +73 -0
- package/out/src/types/logic/nodes/Destination.js.map +1 -0
- package/out/src/types/logic/nodes/DestinationParam.d.ts +24 -0
- package/out/src/types/logic/nodes/DestinationParam.js +49 -0
- package/out/src/types/logic/nodes/DestinationParam.js.map +1 -0
- package/out/src/types/logic/nodes/JSBlock.d.ts +19 -0
- package/out/src/types/logic/nodes/JSBlock.js +46 -0
- package/out/src/types/logic/nodes/JSBlock.js.map +1 -0
- package/out/src/types/logic/nodes/JSONDeserialize.d.ts +19 -0
- package/out/src/types/logic/nodes/JSONDeserialize.js +42 -0
- package/out/src/types/logic/nodes/JSONDeserialize.js.map +1 -0
- package/out/src/types/logic/nodes/JSONSerialize.d.ts +19 -0
- package/out/src/types/logic/nodes/JSONSerialize.js +42 -0
- package/out/src/types/logic/nodes/JSONSerialize.js.map +1 -0
- package/out/src/types/logic/nodes/ProcessOutcome.d.ts +27 -0
- package/out/src/types/logic/nodes/ProcessOutcome.js +56 -0
- package/out/src/types/logic/nodes/ProcessOutcome.js.map +1 -0
- package/out/src/types/logic/tools.d.ts +15 -0
- package/out/src/types/logic/tools.js +164 -0
- package/out/src/types/logic/tools.js.map +1 -0
- package/out/src/types/logic/translator.d.ts +1 -0
- package/out/src/types/logic/translator.js +624 -0
- package/out/src/types/logic/translator.js.map +1 -0
- package/out/src/types/login.d.ts +7 -0
- package/out/src/types/login.js +39 -0
- package/out/src/types/login.js.map +1 -0
- package/out/src/types/nuims/Nuims.d.ts +128 -0
- package/out/src/types/nuims/Nuims.js +446 -0
- package/out/src/types/nuims/Nuims.js.map +1 -0
- package/out/src/types/page/Attr.d.ts +79 -0
- package/out/src/types/page/Attr.js +217 -0
- package/out/src/types/page/Attr.js.map +1 -0
- package/out/src/types/page/Block.d.ts +65 -0
- package/out/src/types/page/Block.js +82 -0
- package/out/src/types/page/Block.js.map +1 -0
- package/out/src/types/page/Directive.d.ts +78 -0
- package/out/src/types/page/Directive.js +202 -0
- package/out/src/types/page/Directive.js.map +1 -0
- package/out/src/types/page/Element.d.ts +266 -0
- package/out/src/types/page/Element.js +1418 -0
- package/out/src/types/page/Element.js.map +1 -0
- package/out/src/types/page/Event.d.ts +63 -0
- package/out/src/types/page/Event.js +212 -0
- package/out/src/types/page/Event.js.map +1 -0
- package/out/src/types/page/Lifecycle.d.ts +58 -0
- package/out/src/types/page/Lifecycle.js +192 -0
- package/out/src/types/page/Lifecycle.js.map +1 -0
- package/out/src/types/page/Page.d.ts +95 -0
- package/out/src/types/page/Page.js +394 -0
- package/out/src/types/page/Page.js.map +1 -0
- package/out/src/types/page/View.d.ts +253 -0
- package/out/src/types/page/View.js +1178 -0
- package/out/src/types/page/View.js.map +1 -0
- package/out/src/types/page/ViewParam.d.ts +73 -0
- package/out/src/types/page/ViewParam.js +296 -0
- package/out/src/types/page/ViewParam.js.map +1 -0
- package/out/src/types/page/ViewVariable.d.ts +73 -0
- package/out/src/types/page/ViewVariable.js +276 -0
- package/out/src/types/page/ViewVariable.js.map +1 -0
- package/out/src/types/permission/Permission.d.ts +41 -0
- package/out/src/types/permission/Permission.js +122 -0
- package/out/src/types/permission/Permission.js.map +1 -0
- package/out/src/types/process/Process.d.ts +118 -0
- package/out/src/types/process/Process.js +357 -0
- package/out/src/types/process/Process.js.map +1 -0
- package/out/src/types/process/ProcessComponent.d.ts +133 -0
- package/out/src/types/process/ProcessComponent.js +339 -0
- package/out/src/types/process/ProcessComponent.js.map +1 -0
- package/out/src/types/process/ProcessComponentAttribute.d.ts +63 -0
- package/out/src/types/process/ProcessComponentAttribute.js +163 -0
- package/out/src/types/process/ProcessComponentAttribute.js.map +1 -0
- package/out/src/types/process/ProcessComponentProperty.d.ts +37 -0
- package/out/src/types/process/ProcessComponentProperty.js +81 -0
- package/out/src/types/process/ProcessComponentProperty.js.map +1 -0
- package/out/src/types/process/ProcessComponentReturn.d.ts +77 -0
- package/out/src/types/process/ProcessComponentReturn.js +260 -0
- package/out/src/types/process/ProcessComponentReturn.js.map +1 -0
- package/out/src/types/process/ProcessComponentVariable.d.ts +78 -0
- package/out/src/types/process/ProcessComponentVariable.js +252 -0
- package/out/src/types/process/ProcessComponentVariable.js.map +1 -0
- package/out/src/types/process/ProcessInterface.d.ts +112 -0
- package/out/src/types/process/ProcessInterface.js +227 -0
- package/out/src/types/process/ProcessInterface.js.map +1 -0
- package/out/src/types/process/ProcessParam.d.ts +77 -0
- package/out/src/types/process/ProcessParam.js +261 -0
- package/out/src/types/process/ProcessParam.js.map +1 -0
- package/out/src/types/process/ProcessProperty.d.ts +37 -0
- package/out/src/types/process/ProcessProperty.js +81 -0
- package/out/src/types/process/ProcessProperty.js.map +1 -0
- package/out/src/types/process/ProcessReturn.d.ts +73 -0
- package/out/src/types/process/ProcessReturn.js +237 -0
- package/out/src/types/process/ProcessReturn.js.map +1 -0
- package/out/src/types/utils/index.d.ts +26 -0
- package/out/src/types/utils/index.js +90 -0
- package/out/src/types/utils/index.js.map +1 -0
- package/out/src/types/utils/logger.d.ts +3 -0
- package/out/src/types/utils/logger.js +14 -0
- package/out/src/types/utils/logger.js.map +1 -0
- package/out/src/types/utils/string.d.ts +38 -0
- package/out/src/types/utils/string.js +66 -0
- package/out/src/types/utils/string.js.map +1 -0
- package/out/src/types/utils/traverse.d.ts +35 -0
- package/out/src/types/utils/traverse.js +126 -0
- package/out/src/types/utils/traverse.js.map +1 -0
- package/out/src/utils/index.d.ts +26 -0
- package/out/src/utils/index.js +52 -0
- package/out/src/utils/index.js.map +1 -0
- package/out/src/utils/logger.d.ts +3 -0
- package/out/src/utils/logger.js +11 -0
- package/out/src/utils/logger.js.map +1 -0
- package/out/src/utils/string.d.ts +38 -0
- package/out/src/utils/string.js +66 -0
- package/out/src/utils/string.js.map +1 -0
- package/out/src/utils/traverse.d.ts +35 -0
- package/out/src/utils/traverse.js +126 -0
- package/out/src/utils/traverse.js.map +1 -0
- package/out/test/units/baseTypes/StringLiteral.spec.d.ts +1 -0
- package/out/test/units/baseTypes/StringLiteral.spec.js +71 -0
- package/out/test/units/baseTypes/StringLiteral.spec.js.map +1 -0
- package/out/test/units/baseTypes/new.spec.d.ts +1 -0
- package/out/test/units/baseTypes/new.spec.js +33 -0
- package/out/test/units/baseTypes/new.spec.js.map +1 -0
- package/out/test/units/baseTypes/toEmbeddedTS.spec.d.ts +1 -0
- package/out/test/units/baseTypes/toEmbeddedTS.spec.js +39 -0
- package/out/test/units/baseTypes/toEmbeddedTS.spec.js.map +1 -0
- package/out/test/units/config.spec.d.ts +1 -0
- package/out/test/units/config.spec.js +12 -0
- package/out/test/units/config.spec.js.map +1 -0
- package/out/translator/index.d.ts +39 -0
- package/out/translator/index.js +86 -0
- package/out/translator/index.js.map +1 -0
- package/out/translator/lsp.d.ts +45 -0
- package/out/translator/lsp.js +6 -0
- package/out/translator/lsp.js.map +1 -0
- package/out/translator/tsp.d.ts +12 -0
- package/out/translator/tsp.js +3 -0
- package/out/translator/tsp.js.map +1 -0
- package/out/types/app/App.d.ts +2 -5
- package/out/types/app/App.js +2 -29
- package/out/types/app/App.js.map +1 -1
- package/out/types/app/Service.d.ts +0 -31
- package/out/types/app/Service.js +4 -128
- package/out/types/app/Service.js.map +1 -1
- package/out/types/classMap.d.ts +4 -0
- package/out/types/classMap.js +5 -0
- package/out/types/classMap.js.map +1 -0
- package/out/types/common/Vertex.d.ts +16 -34
- package/out/types/common/Vertex.js +81 -63
- package/out/types/common/Vertex.js.map +1 -1
- package/out/types/config.d.ts +0 -1
- package/out/types/config.js +0 -1
- package/out/types/config.js.map +1 -1
- package/out/types/data/Entity.d.ts +1 -19
- package/out/types/data/Entity.js +2 -38
- package/out/types/data/Entity.js.map +1 -1
- package/out/types/data/EntityProperty.d.ts +0 -4
- package/out/types/data/EntityProperty.js +0 -7
- package/out/types/data/EntityProperty.js.map +1 -1
- package/out/types/data/Enum.d.ts +0 -4
- package/out/types/data/Enum.js +0 -7
- package/out/types/data/Enum.js.map +1 -1
- package/out/types/data/Interface.js +1 -2
- package/out/types/data/Interface.js.map +1 -1
- package/out/types/data/Structure.d.ts +0 -8
- package/out/types/data/Structure.js +0 -19
- package/out/types/data/Structure.js.map +1 -1
- package/out/types/data/dataTypes.d.ts +1 -2
- package/out/types/data/dataTypes.js +7 -41
- package/out/types/data/dataTypes.js.map +1 -1
- package/out/types/data/genBlock/builtInFunctions.json +0 -15
- package/out/types/data/genBlock/genCreateBlock.js +6 -5
- package/out/types/data/genBlock/genCreateBlock.js.map +1 -1
- package/out/types/data/genBlock/genEnumSelectBlock.js +1 -1
- package/out/types/data/genBlock/genEnumSelectBlock.js.map +1 -1
- package/out/types/data/genBlock/genGetBlock.js +1 -1
- package/out/types/data/genBlock/genGetBlock.js.map +1 -1
- package/out/types/data/genBlock/genListViewBlock.js +1 -1
- package/out/types/data/genBlock/genListViewBlock.js.map +1 -1
- package/out/types/data/genBlock/genQueryComponent.js +1 -1
- package/out/types/data/genBlock/genQueryComponent.js.map +1 -1
- package/out/types/data/genBlock/genSelectBlock.js +1 -2
- package/out/types/data/genBlock/genSelectBlock.js.map +1 -1
- package/out/types/data/genBlock/genTableBlock.js +2 -2
- package/out/types/data/genBlock/genTableBlock.js.map +1 -1
- package/out/types/data/genBlock/genUpdateBlock.js +6 -5
- package/out/types/data/genBlock/genUpdateBlock.js.map +1 -1
- package/out/types/data/genBlock/index.d.ts +2 -2
- package/out/types/data/genBlock/index.js +2 -2
- package/out/types/data/genBlock/index.js.map +1 -1
- package/out/types/data/genericTypes.d.ts +1 -1
- package/out/types/data/genericTypes.js +2 -6
- package/out/types/data/genericTypes.js.map +1 -1
- package/out/types/data/systemTypes.js +0 -73
- package/out/types/data/systemTypes.js.map +1 -1
- package/out/types/decorators/index.d.ts +1 -1
- package/out/types/decorators/index.js +7 -2
- package/out/types/decorators/index.js.map +1 -1
- package/out/types/generator/data.js +0 -4
- package/out/types/generator/data.js.map +1 -1
- package/out/types/index.d.ts +2 -5
- package/out/types/index.js +5 -10
- package/out/types/index.js.map +1 -1
- package/out/types/logic/BreakPoint.d.ts +42 -0
- package/out/types/logic/BreakPoint.js +155 -0
- package/out/types/logic/BreakPoint.js.map +1 -0
- package/out/types/logic/Debugger.d.ts +156 -0
- package/out/types/logic/Debugger.js +912 -0
- package/out/types/logic/Debugger.js.map +1 -0
- package/out/types/logic/Logic.d.ts +0 -20
- package/out/types/logic/Logic.js +1 -47
- package/out/types/logic/Logic.js.map +1 -1
- package/out/types/logic/LogicItem.d.ts +2 -3
- package/out/types/logic/LogicItem.js +48 -113
- package/out/types/logic/LogicItem.js.map +1 -1
- package/out/types/logic/Param.js +1 -1
- package/out/types/logic/Param.js.map +1 -1
- package/out/types/logic/translator.js +51 -74
- package/out/types/logic/translator.js.map +1 -1
- package/out/types/page/Element.js +9 -21
- package/out/types/page/Element.js.map +1 -1
- package/out/types/page/Page.js +0 -7
- package/out/types/page/Page.js.map +1 -1
- package/out/types/page/View.d.ts +1 -1
- package/out/types/page/View.js +1 -29
- package/out/types/page/View.js.map +1 -1
- package/out/types/process/Process.js +3 -3
- package/out/types/process/Process.js.map +1 -1
- package/out/types/process/ProcessComponent.js +1 -1
- package/out/types/process/ProcessComponent.js.map +1 -1
- package/out/types/process/ProcessParam.js +1 -1
- package/out/types/process/ProcessParam.js.map +1 -1
- package/out/types/typeCheck.js +2 -12
- package/out/types/typeCheck.js.map +1 -1
- package/out/types/utils/string.d.ts +4 -0
- package/out/types/utils/string.js +4 -0
- package/out/types/utils/string.js.map +1 -1
- package/package.json +10 -14
- package/src/automate/engine/index.js +308 -0
- package/src/automate/engine/utils.js +312 -0
- package/src/common/BaseNode.ts +635 -0
- package/src/common/Command.ts +27 -0
- package/src/common/ComponentAPI.ts +103 -0
- package/src/common/EventEmitter.ts +86 -0
- package/src/common/Messager.ts +225 -0
- package/src/common/classMap.ts +3 -0
- package/src/common/index.ts +4 -0
- package/src/concepts/App__.ts +2492 -0
- package/src/concepts/Argument__.ts +191 -0
- package/src/concepts/Assignment__.ts +235 -0
- package/src/concepts/Attribute__.ts +251 -0
- package/src/concepts/BinaryExpression__.ts +270 -0
- package/src/concepts/BindAttribute__.ts +500 -0
- package/src/concepts/BindDirective__.ts +238 -0
- package/src/concepts/BindEvent__.ts +339 -0
- package/src/concepts/BooleanLiteral__.ts +82 -0
- package/src/concepts/CallFunction__.ts +307 -0
- package/src/concepts/CallInterface__.ts +295 -0
- package/src/concepts/CallLogic__.ts +390 -0
- package/src/concepts/CallQueryComponent__.ts +1006 -0
- package/src/concepts/Comment__.ts +104 -0
- package/src/concepts/CompletionProperty__.ts +244 -0
- package/src/concepts/Constant__.ts +243 -0
- package/src/concepts/DataElement__.ts +134 -0
- package/src/concepts/Destination__.ts +316 -0
- package/src/concepts/End__.ts +108 -0
- package/src/concepts/EntityIndex__.ts +197 -0
- package/src/concepts/EntityProperty__.ts +497 -0
- package/src/concepts/Entity__.ts +695 -0
- package/src/concepts/EnumItem__.ts +139 -0
- package/src/concepts/Enum__.ts +337 -0
- package/src/concepts/Event__.ts +316 -0
- package/src/concepts/ForEachStatement__.ts +562 -0
- package/src/concepts/Function__.ts +915 -0
- package/src/concepts/Identifier__.ts +171 -0
- package/src/concepts/IfStatement__.ts +478 -0
- package/src/concepts/InterfaceParam__.ts +305 -0
- package/src/concepts/Interface__.ts +610 -0
- package/src/concepts/JSBlock__.ts +113 -0
- package/src/concepts/LogicItem__.ts +232 -0
- package/src/concepts/Logic__.ts +1487 -0
- package/src/concepts/MemberExpression__.ts +240 -0
- package/src/concepts/Module__.ts +1718 -0
- package/src/concepts/Namespace__.ts +2517 -0
- package/src/concepts/NullLiteral__.ts +78 -0
- package/src/concepts/NumericLiteral__.ts +182 -0
- package/src/concepts/Param__.ts +364 -0
- package/src/concepts/Point__.ts +84 -0
- package/src/concepts/ProcessComponent__.ts +502 -0
- package/src/concepts/ProcessElement__.ts +1370 -0
- package/src/concepts/ProcessOutcome__.ts +97 -0
- package/src/concepts/Process__.ts +1113 -0
- package/src/concepts/QueryAggregateExpression__.ts +197 -0
- package/src/concepts/QueryFieldExpression__.ts +133 -0
- package/src/concepts/QueryFromExpression__.ts +261 -0
- package/src/concepts/QueryGroupByExpression__.ts +144 -0
- package/src/concepts/QueryJoinExpression__.ts +448 -0
- package/src/concepts/QueryLimitExpression__.ts +193 -0
- package/src/concepts/QueryOrderByExpression__.ts +207 -0
- package/src/concepts/QuerySelectExpression__.ts +285 -0
- package/src/concepts/Rect__.ts +96 -0
- package/src/concepts/Return__.ts +334 -0
- package/src/concepts/Role__.ts +139 -0
- package/src/concepts/Slot__.ts +121 -0
- package/src/concepts/SqlQueryComponent__.ts +145 -0
- package/src/concepts/Start__.ts +86 -0
- package/src/concepts/StringLiteral__.ts +140 -0
- package/src/concepts/StructureProperty__.ts +327 -0
- package/src/concepts/Structure__.ts +559 -0
- package/src/concepts/SwitchCase__.ts +363 -0
- package/src/concepts/SwitchStatement__.ts +261 -0
- package/src/concepts/Theme__.ts +94 -0
- package/src/concepts/Transactional__.ts +164 -0
- package/src/concepts/TypeAnnotation__.ts +373 -0
- package/src/concepts/TypeParam__.ts +68 -0
- package/src/concepts/UnaryExpression__.ts +177 -0
- package/src/concepts/Unparsed__.ts +98 -0
- package/src/concepts/UseComponent__.ts +84 -0
- package/src/concepts/ValidationRule__.ts +292 -0
- package/src/concepts/Variable__.ts +312 -0
- package/src/concepts/ViewComponent__.ts +1098 -0
- package/src/concepts/ViewElement__.ts +1562 -0
- package/src/concepts/View__.ts +1842 -0
- package/src/concepts/WhileStatement__.ts +323 -0
- package/src/concepts/basics/stdlib/index.ts +20 -0
- package/src/concepts/basics/stdlib/nasl.collection.ts +54 -0
- package/src/concepts/basics/stdlib/nasl.core.ts +12 -0
- package/src/concepts/basics/stdlib/nasl.interface.ts +43 -0
- package/src/concepts/basics/stdlib/nasl.process.ts +47 -0
- package/src/concepts/basics/stdlib/nasl.ui.ts +84 -0
- package/src/concepts/basics/stdlib/nasl.util.ts +585 -0
- package/src/concepts/basics/stdlib/nasl.validate.ts +523 -0
- package/src/concepts/basics/stdlib/reference2TypeAnnotationList.ts +26 -0
- package/src/concepts/basics/types/coreTypeList.ts +14 -0
- package/src/concepts/basics/types/index.ts +20 -0
- package/src/concepts/index.ts +5 -0
- package/src/concepts/index__.ts +77 -0
- package/src/config.ts +80 -0
- package/src/decorators/index.ts +153 -0
- package/src/generator/compileComponent.ts +19 -0
- package/src/generator/genBundleFiles.ts +258 -0
- package/src/generator/genHash.ts +13 -0
- package/src/generator/index.ts +4 -0
- package/src/generator/styleReplacer.ts +41 -0
- package/src/index.ts +10 -0
- package/src/manager/diagnostic.ts +129 -0
- package/src/manager/history.ts +0 -0
- package/src/manager/problem.ts +0 -0
- package/src/server/entity2LogicNamespace.ts +188 -0
- package/src/server/getFunctions.ts +10 -0
- package/src/server/getInterfaces.ts +47 -0
- package/src/server/getLogics.ts +94 -0
- package/src/server/getMemberIdentifier.ts +110 -0
- package/src/server/getProcessComponents.ts +9 -0
- package/src/server/getProcesses.ts +129 -0
- package/src/server/getValidates.ts +10 -0
- package/src/server/index.ts +21 -0
- package/src/server/naslServer.ts +1194 -0
- package/src/server/process2LogicNamespace.ts +20 -0
- package/src/server/translator.ts +148 -0
- package/src/service/app/index.js +1 -1
- package/src/service/assets/index.js +1 -1
- package/src/service/{create → creator}/add.configs.js +0 -0
- package/src/service/{create → creator}/errHandles.js +0 -0
- package/src/service/creator/index.js +80 -0
- package/src/service/storage/index.ts +6 -0
- package/src/service/storage/init.ts +160 -0
- package/src/service/storage/jsoner.ts +139 -0
- package/src/service/storage/map.ts +57 -0
- package/src/service/storage/storagePoint.ts +73 -0
- package/src/service/video/BaseService.js +68 -0
- package/src/service/video/MainCallbackService.js +207 -0
- package/src/service/video/VideoTranscribe.js +102 -0
- package/src/service/video/publishService.js +61 -0
- package/src/templator/builtInFunctions.json +1 -0
- package/src/templator/genCallComponentLogic.ts +27 -0
- package/src/templator/genCreateBlock.ts +281 -0
- package/src/templator/genCurdEditMultipleKeyBlock.ts +432 -0
- package/src/templator/genCurdMultipleKeyBlock.ts +624 -0
- package/src/templator/genEditTableBlock.ts +284 -0
- package/src/templator/genEnumSelectBlock.ts +22 -0
- package/src/templator/genGetBlock.ts +121 -0
- package/src/templator/genGridViewBlock.ts +306 -0
- package/src/templator/genListViewBlock.ts +122 -0
- package/src/templator/genQueryComponent.ts +287 -0
- package/src/templator/genSelectBlock.ts +125 -0
- package/src/templator/genTableBlock.ts +295 -0
- package/src/templator/genUpdateBlock.ts +324 -0
- package/src/templator/index.ts +18 -0
- package/src/templator/utils.ts +640 -0
- package/src/terms/LEVEL_NAME_MAP.ts +31 -0
- package/src/test/examples/app1.json +17 -0
- package/src/test/fixtures/env.ts +4 -4
- package/src/test/integration/connect-create-file.ts +14 -0
- package/src/test/integration/connect-file.ts +24 -0
- package/src/test/units/baseTypes/Assignment.spec.ts +20 -0
- package/src/test/units/baseTypes/CallLogic.spec.ts +22 -0
- package/src/test/units/baseTypes/StringLiteral.spec.ts +60 -0
- package/src/test/units/baseTypes/new.spec.ts +13 -0
- package/src/test/units/common/Vertex.spec.ts +17 -19
- package/src/test/units/data/Entity.spec.ts +1 -1
- package/src/test/units/login.spec.ts +3 -3
- package/src/test/units/page/Block.spec.ts +12 -12
- package/src/test/units/page/Element.spec.ts +11 -11
- package/src/test/units/temp/temp.spec.ts +2 -2
- package/src/translator/index.ts +131 -0
- package/src/translator/lsp.ts +50 -0
- package/src/translator/tsp.ts +14 -0
- package/src/utils/index.ts +52 -0
- package/src/utils/logger.ts +8 -0
- package/src/utils/string.ts +60 -0
- package/src/utils/traverse.ts +152 -0
- package/tsconfig.json +6 -13
- package/analysis/mergeBlock/README.md +0 -14
- package/analysis/mergeBlock/raw2.json +0 -2522
- package/analysis/mergeBlock/raw3.json +0 -505
- package/analysis/mergeBlock/req2.json +0 -2219
- package/analysis/mergeBlock/req3.json +0 -462
- package/analysis/mergeBlock/script.js +0 -159
- package/docs/assets/css/main.css +0 -2638
- package/docs/assets/js/main.js +0 -248
- package/docs/assets/js/search.js +0 -1
- package/docs/classes/app_app.app.html +0 -1359
- package/docs/classes/app_service.microservice.html +0 -1572
- package/docs/classes/app_service.service.html +0 -1233
- package/docs/classes/app_service.webservice.html +0 -1635
- package/docs/classes/common_eventemitter.eventemitter.html +0 -387
- package/docs/classes/common_vertex.vertex.html +0 -1086
- package/docs/classes/data_datanode.datanode.html +0 -1157
- package/docs/classes/data_entity.entity.html +0 -1656
- package/docs/classes/data_entityproperty.entityproperty.html +0 -1903
- package/docs/classes/data_enum.enum.html +0 -1402
- package/docs/classes/data_enumitem.enumitem.html +0 -1252
- package/docs/classes/data_interface.interface.html +0 -1673
- package/docs/classes/data_structure.structure.html +0 -1427
- package/docs/classes/data_structureproperty.structureproperty.html +0 -1656
- package/docs/classes/logic_basevariable.basevariable.html +0 -1261
- package/docs/classes/logic_logic.logic.html +0 -1639
- package/docs/classes/logic_logicitem.expressionnode.html +0 -1982
- package/docs/classes/logic_logicitem.logicitem.html +0 -1828
- package/docs/classes/logic_logicitem.logicnode.html +0 -2229
- package/docs/classes/logic_param.param.html +0 -1707
- package/docs/classes/logic_return.return.html +0 -1605
- package/docs/classes/logic_variable.variable.html +0 -1631
- package/docs/classes/nuims_nuims.nuims.html +0 -596
- package/docs/classes/page_attr.attr.html +0 -1335
- package/docs/classes/page_block.block.html +0 -1272
- package/docs/classes/page_directive.directive.html +0 -1350
- package/docs/classes/page_element.element.html +0 -2118
- package/docs/classes/page_event.event.html +0 -1284
- package/docs/classes/page_lifecycle.lifecycle.html +0 -1286
- package/docs/classes/page_page.page.html +0 -1389
- package/docs/classes/page_view.view.html +0 -2299
- package/docs/classes/page_viewparam.viewparam.html +0 -1727
- package/docs/classes/page_viewvariable.viewvariable.html +0 -1668
- package/docs/classes/process_process.process.html +0 -1532
- package/docs/classes/process_processcomponent.processcomponent.html +0 -1589
- package/docs/classes/process_processcomponentattribute.processcomponentattribute.html +0 -1236
- package/docs/classes/process_processcomponentproperty.processcomponentproperty.html +0 -1727
- package/docs/classes/process_processcomponentreturn.processcomponentreturn.html +0 -1704
- package/docs/classes/process_processcomponentvariable.processcomponentvariable.html +0 -1679
- package/docs/classes/process_processinterface.processinterface.html +0 -1462
- package/docs/classes/process_processparam.processparam.html +0 -1778
- package/docs/classes/process_processproperty.processproperty.html +0 -1727
- package/docs/classes/process_processreturn.processreturn.html +0 -1678
- package/docs/enums/app_service.service_type.html +0 -186
- package/docs/enums/data_basictypes.basic_type.html +0 -312
- package/docs/enums/index.level_enum.html +0 -655
- package/docs/enums/logic_logicitem.logic_type.html +0 -441
- package/docs/interfaces/app_service.assetsinfo.html +0 -209
- package/docs/interfaces/common_packagejson.default.html +0 -431
- package/docs/interfaces/data_entity.resolver.html +0 -228
- package/docs/interfaces/data_entityproperty.display.html +0 -214
- package/docs/interfaces/data_schema.arrayschema.html +0 -306
- package/docs/interfaces/data_schema.baseschema.html +0 -361
- package/docs/interfaces/data_schema.basicrefschema.html +0 -362
- package/docs/interfaces/data_schema.basicschema.html +0 -334
- package/docs/interfaces/data_schema.booleanschema.html +0 -306
- package/docs/interfaces/data_schema.enumitemschema.html +0 -225
- package/docs/interfaces/data_schema.enumschema.html +0 -306
- package/docs/interfaces/data_schema.integerschema.html +0 -334
- package/docs/interfaces/data_schema.mapschema.html +0 -320
- package/docs/interfaces/data_schema.numberschema.html +0 -334
- package/docs/interfaces/data_schema.objectschema.html +0 -313
- package/docs/interfaces/data_schema.refschema.html +0 -332
- package/docs/interfaces/data_schema.schema.html +0 -511
- package/docs/interfaces/data_schema.setschema.html +0 -306
- package/docs/interfaces/data_schema.stringschema.html +0 -334
- package/docs/interfaces/history.historyrecord.html +0 -183
- package/docs/interfaces/index.arrayschema.html +0 -261
- package/docs/interfaces/index.baseschema.html +0 -236
- package/docs/interfaces/index.basicrefschema.html +0 -317
- package/docs/interfaces/index.basicschema.html +0 -289
- package/docs/interfaces/index.booleanschema.html +0 -261
- package/docs/interfaces/index.enumitemschema.html +0 -180
- package/docs/interfaces/index.enumschema.html +0 -261
- package/docs/interfaces/index.integerschema.html +0 -289
- package/docs/interfaces/index.mapschema.html +0 -275
- package/docs/interfaces/index.numberschema.html +0 -289
- package/docs/interfaces/index.objectschema.html +0 -261
- package/docs/interfaces/index.refschema.html +0 -287
- package/docs/interfaces/index.schema.html +0 -459
- package/docs/interfaces/index.setschema.html +0 -261
- package/docs/interfaces/index.stringschema.html +0 -289
- package/docs/interfaces/page_element.elementtovueoptions.html +0 -283
- package/docs/interfaces/typecheck.typecheckrecord.html +0 -211
- package/docs/interfaces/utils.inode.html +0 -212
- package/docs/interfaces/utils.inodeinfo.html +0 -295
- package/docs/interfaces/utils_traverse.inode.html +0 -191
- package/docs/interfaces/utils_traverse.inodeinfo.html +0 -274
- package/docs/modules/app_app.html +0 -149
- package/docs/modules/app_service.html +0 -175
- package/docs/modules/cachedata.html +0 -198
- package/docs/modules/common_eventemitter.html +0 -192
- package/docs/modules/common_packagejson.html +0 -132
- package/docs/modules/common_vertex.html +0 -149
- package/docs/modules/config.html +0 -168
- package/docs/modules/data_basictypes.html +0 -271
- package/docs/modules/data_datanode.html +0 -149
- package/docs/modules/data_datatypes.html +0 -196
- package/docs/modules/data_datatypeutils.html +0 -430
- package/docs/modules/data_entity.html +0 -158
- package/docs/modules/data_entityproperty.html +0 -158
- package/docs/modules/data_entityutils.html +0 -342
- package/docs/modules/data_enum.html +0 -149
- package/docs/modules/data_enumitem.html +0 -149
- package/docs/modules/data_interface.html +0 -149
- package/docs/modules/data_schema.html +0 -205
- package/docs/modules/data_structure.html +0 -149
- package/docs/modules/data_structureproperty.html +0 -149
- package/docs/modules/data_systemtypes.html +0 -167
- package/docs/modules/decorators.html +0 -333
- package/docs/modules/eventbus.html +0 -116
- package/docs/modules/generator.html +0 -749
- package/docs/modules/generator_data.html +0 -495
- package/docs/modules/generator_hotreload.html +0 -200
- package/docs/modules/generator_load.html +0 -247
- package/docs/modules/generator_page.html +0 -200
- package/docs/modules/history.html +0 -200
- package/docs/modules/index.html +0 -1163
- package/docs/modules/logic_basevariable.html +0 -238
- package/docs/modules/logic_callinterface.html +0 -116
- package/docs/modules/logic_logic.html +0 -149
- package/docs/modules/logic_logicitem.html +0 -220
- package/docs/modules/logic_param.html +0 -149
- package/docs/modules/logic_return.html +0 -149
- package/docs/modules/logic_tools.html +0 -326
- package/docs/modules/logic_translator.html +0 -158
- package/docs/modules/logic_variable.html +0 -149
- package/docs/modules/nuims_nuims.html +0 -149
- package/docs/modules/page_attr.html +0 -149
- package/docs/modules/page_block.html +0 -149
- package/docs/modules/page_directive.html +0 -149
- package/docs/modules/page_element.html +0 -158
- package/docs/modules/page_event.html +0 -149
- package/docs/modules/page_lifecycle.html +0 -149
- package/docs/modules/page_page.html +0 -149
- package/docs/modules/page_view.html +0 -149
- package/docs/modules/page_viewparam.html +0 -149
- package/docs/modules/page_viewvariable.html +0 -149
- package/docs/modules/process_process.html +0 -149
- package/docs/modules/process_processcomponent.html +0 -149
- package/docs/modules/process_processcomponentattribute.html +0 -149
- package/docs/modules/process_processcomponentproperty.html +0 -149
- package/docs/modules/process_processcomponentreturn.html +0 -149
- package/docs/modules/process_processcomponentvariable.html +0 -149
- package/docs/modules/process_processinterface.html +0 -149
- package/docs/modules/process_processparam.html +0 -149
- package/docs/modules/process_processproperty.html +0 -149
- package/docs/modules/process_processreturn.html +0 -149
- package/docs/modules/typecheck.html +0 -269
- package/docs/modules/utils.html +0 -536
- package/docs/modules/utils_logger.html +0 -172
- package/docs/modules/utils_string.html +0 -347
- package/docs/modules/utils_traverse.html +0 -248
- package/index.js +0 -12
- package/module/base.js +0 -11
- package/out/service/logic/checktypeSocket.d.ts +0 -5
- package/out/service/logic/checktypeSocket.js +0 -55
- package/out/service/logic/checktypeSocket.js.map +0 -1
- package/out/types/data/Module.d.ts +0 -34
- package/out/types/data/Module.js +0 -53
- package/out/types/data/Module.js.map +0 -1
- package/out/types/data/genBlock/genCurdEditMultipleKeyBlock.d.ts +0 -7
- package/out/types/data/genBlock/genCurdEditMultipleKeyBlock.js +0 -470
- package/out/types/data/genBlock/genCurdEditMultipleKeyBlock.js.map +0 -1
- package/out/types/data/genBlock/genCurdMultipleKeyBlock.d.ts +0 -9
- package/out/types/data/genBlock/genCurdMultipleKeyBlock.js +0 -662
- package/out/types/data/genBlock/genCurdMultipleKeyBlock.js.map +0 -1
- package/spec/conceptMap.json +0 -3310
- package/spec/spec.yaml +0 -416
- package/spec-build/index.ts +0 -98
- package/src/routes.map.js +0 -5
- package/src/service/common/findUsage.js +0 -8
- package/src/service/common/index.js +0 -6
- package/src/service/common/preprocess.js +0 -54
- package/src/service/common/schema.js +0 -9
- package/src/service/config/api.js +0 -32
- package/src/service/config/index.js +0 -6
- package/src/service/create/index.js +0 -80
- package/src/service/data/api.js +0 -33
- package/src/service/data/entity.js +0 -101
- package/src/service/data/enum.js +0 -53
- package/src/service/data/enumProperty.js +0 -20
- package/src/service/data/generic.js +0 -8
- package/src/service/data/index.js +0 -18
- package/src/service/data/interface.js +0 -56
- package/src/service/data/structure.js +0 -75
- package/src/service/developPermission/api.js +0 -37
- package/src/service/developPermission/index.js +0 -13
- package/src/service/logic/checktypeSocket.js +0 -49
- package/src/service/logic/index.js +0 -14
- package/src/service/logic/logic.js +0 -121
- package/src/service/logic/param.js +0 -26
- package/src/service/modules/api.js +0 -20
- package/src/service/modules/index.js +0 -6
- package/src/service/nuims/api.js +0 -192
- package/src/service/nuims/index.js +0 -13
- package/src/service/page/api.js +0 -1374
- package/src/service/page/attribute.js +0 -20
- package/src/service/page/directive.js +0 -20
- package/src/service/page/element.js +0 -40
- package/src/service/page/event.js +0 -20
- package/src/service/page/index.js +0 -19
- package/src/service/page/lifecycle.js +0 -20
- package/src/service/page/templates.ts +0 -72
- package/src/service/page/view.js +0 -116
- package/src/service/permission/api.js +0 -38
- package/src/service/permission/index.js +0 -13
- package/src/service/process/api.js +0 -92
- package/src/service/process/index.js +0 -6
- package/src/service/undoredo/api.js +0 -26
- package/src/service/undoredo/index.js +0 -6
- package/src/service/webFile/api.js +0 -32
- package/src/service/webFile/index.d.tmp +0 -62
- package/src/service/webFile/index.js +0 -28
- package/src/service/webFile/loadCache.js +0 -14
- package/src/test/units/app/App.spec.ts +0 -16
- package/src/test/units/app/Service.spec.ts +0 -31
- package/src/types/app/App.ts +0 -349
- package/src/types/app/History.ts +0 -389
- package/src/types/app/Service.ts +0 -1036
- package/src/types/cache.ts +0 -50
- package/src/types/cacheData.ts +0 -33
- package/src/types/common/ComponentAPI.ts +0 -103
- package/src/types/common/EventEmitter.ts +0 -56
- package/src/types/common/PackageJSON.ts +0 -22
- package/src/types/common/Vertex.ts +0 -296
- package/src/types/config.ts +0 -23
- package/src/types/data/DataNode.ts +0 -37
- package/src/types/data/Entity.ts +0 -556
- package/src/types/data/EntityIndex.ts +0 -238
- package/src/types/data/EntityProperty.ts +0 -524
- package/src/types/data/Enum.ts +0 -245
- package/src/types/data/EnumItem.ts +0 -156
- package/src/types/data/GlobalLogicNode.ts +0 -208
- package/src/types/data/Interface.ts +0 -438
- package/src/types/data/Module.ts +0 -51
- package/src/types/data/Schema.ts +0 -133
- package/src/types/data/Structure.ts +0 -315
- package/src/types/data/StructureProperty.ts +0 -332
- package/src/types/data/basicTypes.ts +0 -76
- package/src/types/data/dataTypeUtils.ts +0 -426
- package/src/types/data/dataTypes.ts +0 -88
- package/src/types/data/entityUtils.ts +0 -681
- package/src/types/data/genBlock/builtInFunctions.json +0 -560
- package/src/types/data/genBlock/genCallComponentLogic.ts +0 -28
- package/src/types/data/genBlock/genCallInterface.ts +0 -87
- package/src/types/data/genBlock/genCreateBlock.ts +0 -305
- package/src/types/data/genBlock/genCurdEditMultipleKeyBlock.ts +0 -468
- package/src/types/data/genBlock/genCurdMultipleKeyBlock.ts +0 -665
- package/src/types/data/genBlock/genEditTableBlock.ts +0 -470
- package/src/types/data/genBlock/genEnumSelectBlock.ts +0 -21
- package/src/types/data/genBlock/genGetBlock.ts +0 -160
- package/src/types/data/genBlock/genGridViewBlock.ts +0 -316
- package/src/types/data/genBlock/genListViewBlock.ts +0 -130
- package/src/types/data/genBlock/genQueryComponent.ts +0 -548
- package/src/types/data/genBlock/genSelectBlock.ts +0 -124
- package/src/types/data/genBlock/genTableBlock.ts +0 -315
- package/src/types/data/genBlock/genUpdateBlock.ts +0 -389
- package/src/types/data/genBlock/index.ts +0 -20
- package/src/types/data/genBlock/utils.ts +0 -252
- package/src/types/data/genericTypes.ts +0 -151
- package/src/types/data/systemTypes.ts +0 -1635
- package/src/types/decorators/index.ts +0 -52
- package/src/types/enum.ts +0 -6
- package/src/types/generator/data.ts +0 -210
- package/src/types/generator/hotReload.ts +0 -41
- package/src/types/generator/index.ts +0 -4
- package/src/types/generator/load.ts +0 -97
- package/src/types/generator/page.ts +0 -37
- package/src/types/history.ts +0 -14
- package/src/types/index.ts +0 -167
- package/src/types/logic/BaseVariable.ts +0 -130
- package/src/types/logic/Logic.ts +0 -591
- package/src/types/logic/LogicItem.ts +0 -1371
- package/src/types/logic/Param.ts +0 -336
- package/src/types/logic/Return.ts +0 -292
- package/src/types/logic/Variable.ts +0 -288
- package/src/types/logic/expressions/BinaryExpression.ts +0 -35
- package/src/types/logic/expressions/BooleanLiteral.ts +0 -25
- package/src/types/logic/expressions/Identifier.ts +0 -36
- package/src/types/logic/expressions/LogicalExpression.ts +0 -35
- package/src/types/logic/expressions/MemberExpression.ts +0 -33
- package/src/types/logic/expressions/NullLiteral.ts +0 -20
- package/src/types/logic/expressions/NumericLiteral.ts +0 -25
- package/src/types/logic/expressions/StringLiteral.ts +0 -25
- package/src/types/logic/expressions/UnaryExpression.ts +0 -30
- package/src/types/logic/expressions/Unparsed.ts +0 -25
- package/src/types/logic/nodes/AssignmentExpression.ts +0 -30
- package/src/types/logic/nodes/BuiltInFuncParam.ts +0 -35
- package/src/types/logic/nodes/BuiltInFunction.ts +0 -39
- package/src/types/logic/nodes/CallConsoleLog.ts +0 -25
- package/src/types/logic/nodes/CallGraphQL.ts +0 -36
- package/src/types/logic/nodes/CallInterParam.ts +0 -30
- package/src/types/logic/nodes/CallInterface.ts +0 -31
- package/src/types/logic/nodes/CallLogic.ts +0 -39
- package/src/types/logic/nodes/CallMessageShow.ts +0 -35
- package/src/types/logic/nodes/Comment.ts +0 -25
- package/src/types/logic/nodes/CronJob.ts +0 -25
- package/src/types/logic/nodes/DBQuery.ts +0 -25
- package/src/types/logic/nodes/Destination.ts +0 -52
- package/src/types/logic/nodes/DestinationParam.ts +0 -31
- package/src/types/logic/nodes/End.ts +0 -21
- package/src/types/logic/nodes/ForEachStatement.ts +0 -52
- package/src/types/logic/nodes/IfStatement.ts +0 -35
- package/src/types/logic/nodes/JSBlock.ts +0 -29
- package/src/types/logic/nodes/JSONDeserialize.ts +0 -25
- package/src/types/logic/nodes/JSONSerialize.ts +0 -25
- package/src/types/logic/nodes/ProcessOutcome.ts +0 -35
- package/src/types/logic/nodes/Start.ts +0 -20
- package/src/types/logic/nodes/SwitchCase.ts +0 -30
- package/src/types/logic/nodes/SwitchStatement.ts +0 -26
- package/src/types/logic/nodes/TypeNote.ts +0 -25
- package/src/types/logic/nodes/WhileStatement.ts +0 -30
- package/src/types/logic/tools.js +0 -170
- package/src/types/logic/translator.js +0 -684
- package/src/types/logic/translator_backup.js +0 -632
- package/src/types/login.ts +0 -36
- package/src/types/nuims/Nuims.ts +0 -499
- package/src/types/page/Attr.ts +0 -217
- package/src/types/page/Block.ts +0 -103
- package/src/types/page/Directive.ts +0 -208
- package/src/types/page/Element.ts +0 -1444
- package/src/types/page/Event.ts +0 -188
- package/src/types/page/Lifecycle.ts +0 -172
- package/src/types/page/Page.ts +0 -414
- package/src/types/page/View.ts +0 -1236
- package/src/types/page/ViewParam.ts +0 -284
- package/src/types/page/ViewVariable.ts +0 -264
- package/src/types/page/dist/View.js +0 -727
- package/src/types/permission/Permission.ts +0 -112
- package/src/types/process/Process.ts +0 -306
- package/src/types/process/ProcessComponent.ts +0 -276
- package/src/types/process/ProcessComponentAttribute.ts +0 -131
- package/src/types/process/ProcessComponentProperty.ts +0 -68
- package/src/types/process/ProcessComponentReturn.ts +0 -235
- package/src/types/process/ProcessComponentVariable.ts +0 -225
- package/src/types/process/ProcessInterface.ts +0 -175
- package/src/types/process/ProcessParam.ts +0 -237
- package/src/types/process/ProcessProperty.ts +0 -69
- package/src/types/process/ProcessReturn.ts +0 -210
- package/src/types/typeCheck.ts +0 -120
- package/src/types/utils/index.ts +0 -91
- package/src/types/utils/logger.ts +0 -8
- package/src/types/utils/string.ts +0 -56
- package/src/types/utils/traverse.ts +0 -160
- package/src/views/components/lcap-json-view/README.md +0 -80
- package/src/views/components/lcap-json-view/index.js +0 -9
- package/src/views/components/lcap-json-view/index.vue +0 -61
- package/src/views/components/lcap-json-view/node.vue +0 -328
- package/src/views/components/lcap-json-view/utils.js +0 -41
- package/src/views/examples/index.vue +0 -44
- package/src/views/examples/logic.json +0 -1576
- package/src/views/index.vue +0 -28
- package/src/views/specification/README.md +0 -10
- package/src/views/specification/conceptTree.js +0 -1179
- package/src/views/specification/index.vue +0 -255
- package/src/views/theme.css +0 -138
|
@@ -0,0 +1,1167 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
19
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
20
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
21
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
22
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
23
|
+
};
|
|
24
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
25
|
+
if (mod && mod.__esModule) return mod;
|
|
26
|
+
var result = {};
|
|
27
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
28
|
+
__setModuleDefault(result, mod);
|
|
29
|
+
return result;
|
|
30
|
+
};
|
|
31
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
32
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
33
|
+
};
|
|
34
|
+
var ViewElement_1;
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.ViewElement = void 0;
|
|
37
|
+
const translator_1 = require("../translator");
|
|
38
|
+
const babelParser = __importStar(require("@babel/parser"));
|
|
39
|
+
const json5 = __importStar(require("json5"));
|
|
40
|
+
const compiler = __importStar(require("vue-template-compiler"));
|
|
41
|
+
const LogicItem__1 = __importDefault(require("./LogicItem__"));
|
|
42
|
+
const __1 = require("..");
|
|
43
|
+
function transAstNodeToNaslNode(astNode) {
|
|
44
|
+
let node = null;
|
|
45
|
+
if (astNode.type === 'CallExpression' && astNode.callee.object.name === '$utils') {
|
|
46
|
+
const calleeName = astNode.callee.property.name || astNode.callee.property.value;
|
|
47
|
+
node = {
|
|
48
|
+
concept: 'CallFunction',
|
|
49
|
+
name: '',
|
|
50
|
+
label: '调用逻辑',
|
|
51
|
+
kind: 'Expression',
|
|
52
|
+
calleeNamespace: 'nasl.util.functions',
|
|
53
|
+
calleeName,
|
|
54
|
+
arguments: astNode.arguments.map((argument) => ({
|
|
55
|
+
concept: 'Argument',
|
|
56
|
+
name: '',
|
|
57
|
+
kind: 'Statement',
|
|
58
|
+
keyword: '',
|
|
59
|
+
expression: transAstNodeToNaslNode(Object.assign({}, argument)),
|
|
60
|
+
})),
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
else if (astNode.type === 'MemberExpression') {
|
|
64
|
+
node = {
|
|
65
|
+
concept: 'MemberExpression',
|
|
66
|
+
name: '',
|
|
67
|
+
kind: 'Expression',
|
|
68
|
+
objectqwer: transAstNodeToNaslNode(astNode.object),
|
|
69
|
+
property: transAstNodeToNaslNode(astNode.property),
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
else if (astNode.type === 'Identifier') {
|
|
73
|
+
node = {
|
|
74
|
+
concept: 'Identifier',
|
|
75
|
+
name: astNode.name,
|
|
76
|
+
kind: 'Expression',
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
else if (astNode.type === 'ArrayExpression' || astNode.type === 'ObjectExpression') {
|
|
80
|
+
node = {
|
|
81
|
+
concept: 'Unparsed',
|
|
82
|
+
label: '原子项',
|
|
83
|
+
code: astNode.value,
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
else if (astNode.type === 'StringLiteral') {
|
|
87
|
+
node = {
|
|
88
|
+
concept: 'StringLiteral',
|
|
89
|
+
kind: 'Expression',
|
|
90
|
+
name: '',
|
|
91
|
+
value: astNode.value,
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
return node;
|
|
95
|
+
}
|
|
96
|
+
const decorators_1 = require("../decorators");
|
|
97
|
+
const utils = __importStar(require("../utils"));
|
|
98
|
+
const BaseNode_1 = __importDefault(require("../common/BaseNode"));
|
|
99
|
+
const classMap_1 = __importDefault(require("../common/classMap"));
|
|
100
|
+
const BindAttribute__1 = __importDefault(require("./BindAttribute__"));
|
|
101
|
+
const BindEvent__1 = __importDefault(require("./BindEvent__"));
|
|
102
|
+
const BindDirective__1 = __importDefault(require("./BindDirective__"));
|
|
103
|
+
/**
|
|
104
|
+
* 页面元素
|
|
105
|
+
*/
|
|
106
|
+
let ViewElement = ViewElement_1 = class ViewElement extends BaseNode_1.default {
|
|
107
|
+
/**
|
|
108
|
+
* 产品概念
|
|
109
|
+
*/
|
|
110
|
+
concept = 'ViewElement';
|
|
111
|
+
/**
|
|
112
|
+
* 类型
|
|
113
|
+
*/
|
|
114
|
+
type = undefined;
|
|
115
|
+
/**
|
|
116
|
+
* 元素标签
|
|
117
|
+
*/
|
|
118
|
+
tag = undefined;
|
|
119
|
+
/**
|
|
120
|
+
* 页面元素名称
|
|
121
|
+
*/
|
|
122
|
+
name = undefined;
|
|
123
|
+
/**
|
|
124
|
+
* 静态 class 名
|
|
125
|
+
*/
|
|
126
|
+
staticClass = undefined;
|
|
127
|
+
/**
|
|
128
|
+
* 静态 style
|
|
129
|
+
*/
|
|
130
|
+
staticStyle = undefined;
|
|
131
|
+
/**
|
|
132
|
+
* 插槽目标
|
|
133
|
+
*/
|
|
134
|
+
slotTarget = undefined;
|
|
135
|
+
/**
|
|
136
|
+
* 插槽 scope 表达式
|
|
137
|
+
*/
|
|
138
|
+
slotScope = undefined;
|
|
139
|
+
/**
|
|
140
|
+
* 元素绑定属性列表
|
|
141
|
+
*/
|
|
142
|
+
bindAttrs = [];
|
|
143
|
+
/**
|
|
144
|
+
* 元素绑定事件列表
|
|
145
|
+
*/
|
|
146
|
+
bindEvents = [];
|
|
147
|
+
/**
|
|
148
|
+
* 元素指令列表
|
|
149
|
+
*/
|
|
150
|
+
bindDirectives = [];
|
|
151
|
+
/**
|
|
152
|
+
* 绑定的角色
|
|
153
|
+
*/
|
|
154
|
+
bindRoles = [];
|
|
155
|
+
/**
|
|
156
|
+
* 子元素列表
|
|
157
|
+
*/
|
|
158
|
+
children = [];
|
|
159
|
+
/**
|
|
160
|
+
* 祖先 View
|
|
161
|
+
*/
|
|
162
|
+
get view() {
|
|
163
|
+
return this.getAncestor('View');
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* 祖先 Module
|
|
167
|
+
*/
|
|
168
|
+
get module() {
|
|
169
|
+
return this.getAncestor('Module');
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* 祖先 App
|
|
173
|
+
*/
|
|
174
|
+
get app() {
|
|
175
|
+
return this.getAncestor('App');
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* @param source 需要合并的部分参数
|
|
179
|
+
*/
|
|
180
|
+
constructor(source) {
|
|
181
|
+
source = Object.assign({}, ViewElement_1.getDefaultOptions(), source);
|
|
182
|
+
super(source);
|
|
183
|
+
super.subConstructor(source);
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* 从父级删除该节点
|
|
187
|
+
* @internal
|
|
188
|
+
*/
|
|
189
|
+
_delete() {
|
|
190
|
+
let params = null;
|
|
191
|
+
if (this.parentNode) {
|
|
192
|
+
params = this.parentNode?.__removeViewElement?.(this);
|
|
193
|
+
}
|
|
194
|
+
return params;
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* 设置页面元素名称
|
|
198
|
+
*/
|
|
199
|
+
setName(name) {
|
|
200
|
+
const object = {
|
|
201
|
+
name,
|
|
202
|
+
};
|
|
203
|
+
this.update({
|
|
204
|
+
...object,
|
|
205
|
+
field: 'name',
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* 设置静态 style
|
|
210
|
+
*/
|
|
211
|
+
setStaticStyle(staticStyle) {
|
|
212
|
+
const object = {
|
|
213
|
+
staticStyle,
|
|
214
|
+
};
|
|
215
|
+
this.update({
|
|
216
|
+
...object,
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
getBindAttributeExistingNames(excludedList = []) {
|
|
220
|
+
const excludedSet = new Set(excludedList);
|
|
221
|
+
return this.bindAttrs.filter((item) => !excludedSet.has(item)).map((item) => item.name);
|
|
222
|
+
}
|
|
223
|
+
getBindAttributeUniqueName(name = 'bindAttribute1') {
|
|
224
|
+
return utils.unique(name, this.getBindAttributeExistingNames());
|
|
225
|
+
}
|
|
226
|
+
_insertBindAttributeAt(options, index) {
|
|
227
|
+
const bindAttributeOptions = {};
|
|
228
|
+
const relationOptions = { parentNode: this, parentKey: 'bindAttrs' };
|
|
229
|
+
let bindAttribute;
|
|
230
|
+
if (!options) {
|
|
231
|
+
bindAttribute = BindAttribute__1.default.from({
|
|
232
|
+
...bindAttributeOptions,
|
|
233
|
+
name: this.getBindAttributeUniqueName(),
|
|
234
|
+
}, this);
|
|
235
|
+
}
|
|
236
|
+
else if (typeof options === 'string') {
|
|
237
|
+
bindAttribute = BindAttribute__1.default.from({
|
|
238
|
+
...bindAttributeOptions,
|
|
239
|
+
name: options,
|
|
240
|
+
}, this);
|
|
241
|
+
}
|
|
242
|
+
else if (options instanceof BindAttribute__1.default) {
|
|
243
|
+
options.delete(); // 同一实例不支持多处存在
|
|
244
|
+
bindAttribute = options;
|
|
245
|
+
}
|
|
246
|
+
else {
|
|
247
|
+
bindAttribute = BindAttribute__1.default.from({
|
|
248
|
+
...bindAttributeOptions,
|
|
249
|
+
...options,
|
|
250
|
+
}, this);
|
|
251
|
+
}
|
|
252
|
+
Object.assign(bindAttribute, relationOptions);
|
|
253
|
+
this.bindAttrs.splice(index, 0, bindAttribute);
|
|
254
|
+
return bindAttribute;
|
|
255
|
+
}
|
|
256
|
+
insertBindAttributeAt(options, index) {
|
|
257
|
+
const node = this._insertBindAttributeAt(options, index);
|
|
258
|
+
node.create({
|
|
259
|
+
index,
|
|
260
|
+
parentNode: this,
|
|
261
|
+
parentKey: 'bindAttrs',
|
|
262
|
+
});
|
|
263
|
+
return node;
|
|
264
|
+
}
|
|
265
|
+
_addBindAttribute(options) {
|
|
266
|
+
const index = this.bindAttrs.length;
|
|
267
|
+
return this._insertBindAttributeAt(options, index);
|
|
268
|
+
}
|
|
269
|
+
addBindAttribute(options) {
|
|
270
|
+
const node = this._addBindAttribute(options);
|
|
271
|
+
const index = this.bindAttrs.length;
|
|
272
|
+
node.create({
|
|
273
|
+
index,
|
|
274
|
+
parentNode: this,
|
|
275
|
+
parentKey: 'bindAttrs',
|
|
276
|
+
});
|
|
277
|
+
return node;
|
|
278
|
+
}
|
|
279
|
+
getBindEventExistingNames(excludedList = []) {
|
|
280
|
+
const excludedSet = new Set(excludedList);
|
|
281
|
+
return this.bindEvents.filter((item) => !excludedSet.has(item)).map((item) => item.name);
|
|
282
|
+
}
|
|
283
|
+
getBindEventUniqueName(name = 'bindEvent1') {
|
|
284
|
+
return utils.unique(name, this.getBindEventExistingNames());
|
|
285
|
+
}
|
|
286
|
+
_insertBindEventAt(options, index) {
|
|
287
|
+
const bindEventOptions = {};
|
|
288
|
+
const relationOptions = { parentNode: this, parentKey: 'bindEvents' };
|
|
289
|
+
let bindEvent;
|
|
290
|
+
if (!options) {
|
|
291
|
+
bindEvent = BindEvent__1.default.from({
|
|
292
|
+
...bindEventOptions,
|
|
293
|
+
name: this.getBindEventUniqueName(),
|
|
294
|
+
}, this);
|
|
295
|
+
}
|
|
296
|
+
else if (typeof options === 'string') {
|
|
297
|
+
bindEvent = BindEvent__1.default.from({
|
|
298
|
+
...bindEventOptions,
|
|
299
|
+
name: options,
|
|
300
|
+
}, this);
|
|
301
|
+
}
|
|
302
|
+
else if (options instanceof BindEvent__1.default) {
|
|
303
|
+
options.delete(); // 同一实例不支持多处存在
|
|
304
|
+
bindEvent = options;
|
|
305
|
+
}
|
|
306
|
+
else {
|
|
307
|
+
bindEvent = BindEvent__1.default.from({
|
|
308
|
+
...bindEventOptions,
|
|
309
|
+
...options,
|
|
310
|
+
}, this);
|
|
311
|
+
}
|
|
312
|
+
Object.assign(bindEvent, relationOptions);
|
|
313
|
+
this.bindEvents.splice(index, 0, bindEvent);
|
|
314
|
+
return bindEvent;
|
|
315
|
+
}
|
|
316
|
+
insertBindEventAt(options, index) {
|
|
317
|
+
const node = this._insertBindEventAt(options, index);
|
|
318
|
+
node.create({
|
|
319
|
+
index,
|
|
320
|
+
parentNode: this,
|
|
321
|
+
parentKey: 'bindEvents',
|
|
322
|
+
});
|
|
323
|
+
return node;
|
|
324
|
+
}
|
|
325
|
+
_addBindEvent(options) {
|
|
326
|
+
const index = this.bindEvents.length;
|
|
327
|
+
return this._insertBindEventAt(options, index);
|
|
328
|
+
}
|
|
329
|
+
addBindEvent(options) {
|
|
330
|
+
const node = this._addBindEvent(options);
|
|
331
|
+
const index = this.bindEvents.length;
|
|
332
|
+
node.create({
|
|
333
|
+
index,
|
|
334
|
+
parentNode: this,
|
|
335
|
+
parentKey: 'bindEvents',
|
|
336
|
+
});
|
|
337
|
+
return node;
|
|
338
|
+
}
|
|
339
|
+
getBindDirectiveExistingNames(excludedList = []) {
|
|
340
|
+
const excludedSet = new Set(excludedList);
|
|
341
|
+
return this.bindDirectives.filter((item) => !excludedSet.has(item)).map((item) => item.name);
|
|
342
|
+
}
|
|
343
|
+
getBindDirectiveUniqueName(name = 'bindDirective1') {
|
|
344
|
+
return utils.unique(name, this.getBindDirectiveExistingNames());
|
|
345
|
+
}
|
|
346
|
+
_insertBindDirectiveAt(options, index) {
|
|
347
|
+
const bindDirectiveOptions = {};
|
|
348
|
+
const relationOptions = { parentNode: this, parentKey: 'bindDirectives' };
|
|
349
|
+
let bindDirective;
|
|
350
|
+
if (!options) {
|
|
351
|
+
bindDirective = BindDirective__1.default.from({
|
|
352
|
+
...bindDirectiveOptions,
|
|
353
|
+
name: this.getBindDirectiveUniqueName(),
|
|
354
|
+
}, this);
|
|
355
|
+
}
|
|
356
|
+
else if (typeof options === 'string') {
|
|
357
|
+
bindDirective = BindDirective__1.default.from({
|
|
358
|
+
...bindDirectiveOptions,
|
|
359
|
+
name: options,
|
|
360
|
+
}, this);
|
|
361
|
+
}
|
|
362
|
+
else if (options instanceof BindDirective__1.default) {
|
|
363
|
+
options.delete(); // 同一实例不支持多处存在
|
|
364
|
+
bindDirective = options;
|
|
365
|
+
}
|
|
366
|
+
else {
|
|
367
|
+
bindDirective = BindDirective__1.default.from({
|
|
368
|
+
...bindDirectiveOptions,
|
|
369
|
+
...options,
|
|
370
|
+
}, this);
|
|
371
|
+
}
|
|
372
|
+
Object.assign(bindDirective, relationOptions);
|
|
373
|
+
this.bindDirectives.splice(index, 0, bindDirective);
|
|
374
|
+
return bindDirective;
|
|
375
|
+
}
|
|
376
|
+
insertBindDirectiveAt(options, index) {
|
|
377
|
+
const node = this._insertBindDirectiveAt(options, index);
|
|
378
|
+
node.create({
|
|
379
|
+
index,
|
|
380
|
+
parentNode: this,
|
|
381
|
+
parentKey: 'bindDirectives',
|
|
382
|
+
});
|
|
383
|
+
return node;
|
|
384
|
+
}
|
|
385
|
+
_addBindDirective(options) {
|
|
386
|
+
const index = this.bindDirectives.length;
|
|
387
|
+
return this._insertBindDirectiveAt(options, index);
|
|
388
|
+
}
|
|
389
|
+
addBindDirective(options) {
|
|
390
|
+
const node = this._addBindDirective(options);
|
|
391
|
+
const index = this.bindDirectives.length;
|
|
392
|
+
node.create({
|
|
393
|
+
index,
|
|
394
|
+
parentNode: this,
|
|
395
|
+
parentKey: 'bindDirectives',
|
|
396
|
+
});
|
|
397
|
+
return node;
|
|
398
|
+
}
|
|
399
|
+
getViewElementExistingNames(excludedList = []) {
|
|
400
|
+
const excludedSet = new Set(excludedList);
|
|
401
|
+
return this.children.filter((item) => !excludedSet.has(item)).map((item) => item.name);
|
|
402
|
+
}
|
|
403
|
+
getViewElementUniqueName(name = 'viewElement1') {
|
|
404
|
+
return utils.unique(name, this.getViewElementExistingNames());
|
|
405
|
+
}
|
|
406
|
+
_insertViewElementAt(options, index) {
|
|
407
|
+
const viewElementOptions = {};
|
|
408
|
+
const relationOptions = { parentNode: this, parentKey: 'children' };
|
|
409
|
+
let viewElement;
|
|
410
|
+
if (!options) {
|
|
411
|
+
viewElement = ViewElement_1.from({
|
|
412
|
+
...viewElementOptions,
|
|
413
|
+
name: this.getViewElementUniqueName(),
|
|
414
|
+
}, this);
|
|
415
|
+
}
|
|
416
|
+
else if (typeof options === 'string') {
|
|
417
|
+
viewElement = ViewElement_1.from({
|
|
418
|
+
...viewElementOptions,
|
|
419
|
+
name: options,
|
|
420
|
+
}, this);
|
|
421
|
+
}
|
|
422
|
+
else if (options instanceof ViewElement_1) {
|
|
423
|
+
options.delete(); // 同一实例不支持多处存在
|
|
424
|
+
viewElement = options;
|
|
425
|
+
}
|
|
426
|
+
else {
|
|
427
|
+
viewElement = ViewElement_1.from({
|
|
428
|
+
...viewElementOptions,
|
|
429
|
+
...options,
|
|
430
|
+
}, this);
|
|
431
|
+
}
|
|
432
|
+
Object.assign(viewElement, relationOptions);
|
|
433
|
+
this.children.splice(index, 0, viewElement);
|
|
434
|
+
return viewElement;
|
|
435
|
+
}
|
|
436
|
+
insertViewElementAt(options, index) {
|
|
437
|
+
const node = this._insertViewElementAt(options, index);
|
|
438
|
+
node.create({
|
|
439
|
+
index,
|
|
440
|
+
parentNode: this,
|
|
441
|
+
parentKey: 'children',
|
|
442
|
+
});
|
|
443
|
+
return node;
|
|
444
|
+
}
|
|
445
|
+
_addViewElement(options) {
|
|
446
|
+
const index = this.children.length;
|
|
447
|
+
return this._insertViewElementAt(options, index);
|
|
448
|
+
}
|
|
449
|
+
addViewElement(options) {
|
|
450
|
+
const node = this._addViewElement(options);
|
|
451
|
+
const index = this.children.length;
|
|
452
|
+
node.create({
|
|
453
|
+
index,
|
|
454
|
+
parentNode: this,
|
|
455
|
+
parentKey: 'children',
|
|
456
|
+
});
|
|
457
|
+
return node;
|
|
458
|
+
}
|
|
459
|
+
removeBindAttribute(options) {
|
|
460
|
+
let bindAttribute;
|
|
461
|
+
if (typeof options === 'string') {
|
|
462
|
+
bindAttribute = this.bindAttrs.find((item) => item.name === options);
|
|
463
|
+
if (!bindAttribute) {
|
|
464
|
+
throw new Error('找不到元素绑定属性 ' + options);
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
else {
|
|
468
|
+
bindAttribute = options;
|
|
469
|
+
}
|
|
470
|
+
return bindAttribute.delete();
|
|
471
|
+
}
|
|
472
|
+
__removeBindAttribute(bindAttribute) {
|
|
473
|
+
const parentKey = bindAttribute.parentKey;
|
|
474
|
+
const params = {
|
|
475
|
+
parentNode: this,
|
|
476
|
+
parentKey,
|
|
477
|
+
index: -1,
|
|
478
|
+
object: null,
|
|
479
|
+
oldObject: bindAttribute,
|
|
480
|
+
};
|
|
481
|
+
if (parentKey) {
|
|
482
|
+
params.parentKey = parentKey;
|
|
483
|
+
if (Array.isArray(this[parentKey])) {
|
|
484
|
+
const index = this[parentKey].indexOf(bindAttribute);
|
|
485
|
+
~index && this[parentKey].splice(index, 1);
|
|
486
|
+
params.index = index;
|
|
487
|
+
}
|
|
488
|
+
else if (this[parentKey] === bindAttribute) {
|
|
489
|
+
params.index = 0;
|
|
490
|
+
this[parentKey] = undefined;
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
return params;
|
|
494
|
+
}
|
|
495
|
+
removeBindEvent(options) {
|
|
496
|
+
let bindEvent;
|
|
497
|
+
if (typeof options === 'string') {
|
|
498
|
+
bindEvent = this.bindEvents.find((item) => item.name === options);
|
|
499
|
+
if (!bindEvent) {
|
|
500
|
+
throw new Error('找不到元素绑定事件 ' + options);
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
else {
|
|
504
|
+
bindEvent = options;
|
|
505
|
+
}
|
|
506
|
+
return bindEvent.delete();
|
|
507
|
+
}
|
|
508
|
+
__removeBindEvent(bindEvent) {
|
|
509
|
+
const parentKey = bindEvent.parentKey;
|
|
510
|
+
const params = {
|
|
511
|
+
parentNode: this,
|
|
512
|
+
parentKey,
|
|
513
|
+
index: -1,
|
|
514
|
+
object: null,
|
|
515
|
+
oldObject: bindEvent,
|
|
516
|
+
};
|
|
517
|
+
if (parentKey) {
|
|
518
|
+
params.parentKey = parentKey;
|
|
519
|
+
if (Array.isArray(this[parentKey])) {
|
|
520
|
+
const index = this[parentKey].indexOf(bindEvent);
|
|
521
|
+
~index && this[parentKey].splice(index, 1);
|
|
522
|
+
params.index = index;
|
|
523
|
+
}
|
|
524
|
+
else if (this[parentKey] === bindEvent) {
|
|
525
|
+
params.index = 0;
|
|
526
|
+
this[parentKey] = undefined;
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
return params;
|
|
530
|
+
}
|
|
531
|
+
removeBindDirective(options) {
|
|
532
|
+
let bindDirective;
|
|
533
|
+
if (typeof options === 'string') {
|
|
534
|
+
bindDirective = this.bindDirectives.find((item) => item.name === options);
|
|
535
|
+
if (!bindDirective) {
|
|
536
|
+
throw new Error('找不到元素指令 ' + options);
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
else {
|
|
540
|
+
bindDirective = options;
|
|
541
|
+
}
|
|
542
|
+
return bindDirective.delete();
|
|
543
|
+
}
|
|
544
|
+
__removeBindDirective(bindDirective) {
|
|
545
|
+
const parentKey = bindDirective.parentKey;
|
|
546
|
+
const params = {
|
|
547
|
+
parentNode: this,
|
|
548
|
+
parentKey,
|
|
549
|
+
index: -1,
|
|
550
|
+
object: null,
|
|
551
|
+
oldObject: bindDirective,
|
|
552
|
+
};
|
|
553
|
+
if (parentKey) {
|
|
554
|
+
params.parentKey = parentKey;
|
|
555
|
+
if (Array.isArray(this[parentKey])) {
|
|
556
|
+
const index = this[parentKey].indexOf(bindDirective);
|
|
557
|
+
~index && this[parentKey].splice(index, 1);
|
|
558
|
+
params.index = index;
|
|
559
|
+
}
|
|
560
|
+
else if (this[parentKey] === bindDirective) {
|
|
561
|
+
params.index = 0;
|
|
562
|
+
this[parentKey] = undefined;
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
return params;
|
|
566
|
+
}
|
|
567
|
+
removeViewElement(options) {
|
|
568
|
+
let viewElement;
|
|
569
|
+
if (typeof options === 'string') {
|
|
570
|
+
viewElement = this.children.find((item) => item.name === options);
|
|
571
|
+
if (!viewElement) {
|
|
572
|
+
throw new Error('找不到页面元素 ' + options);
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
else {
|
|
576
|
+
viewElement = options;
|
|
577
|
+
}
|
|
578
|
+
return viewElement.delete();
|
|
579
|
+
}
|
|
580
|
+
__removeViewElement(viewElement) {
|
|
581
|
+
const parentKey = viewElement.parentKey;
|
|
582
|
+
const params = {
|
|
583
|
+
parentNode: this,
|
|
584
|
+
parentKey,
|
|
585
|
+
index: -1,
|
|
586
|
+
object: null,
|
|
587
|
+
oldObject: viewElement,
|
|
588
|
+
};
|
|
589
|
+
if (parentKey) {
|
|
590
|
+
params.parentKey = parentKey;
|
|
591
|
+
if (Array.isArray(this[parentKey])) {
|
|
592
|
+
const index = this[parentKey].indexOf(viewElement);
|
|
593
|
+
~index && this[parentKey].splice(index, 1);
|
|
594
|
+
params.index = index;
|
|
595
|
+
}
|
|
596
|
+
else if (this[parentKey] === viewElement) {
|
|
597
|
+
params.index = 0;
|
|
598
|
+
this[parentKey] = undefined;
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
return params;
|
|
602
|
+
}
|
|
603
|
+
//================================================================================
|
|
604
|
+
// ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑
|
|
605
|
+
// 自动生成的代码已结束。下面可以手动编写。
|
|
606
|
+
//================================================================================
|
|
607
|
+
static TAG_NAME_PREFIX_REG = /^([lieu]|van)[-_]/;
|
|
608
|
+
static from(source, parentNode, parentKey) {
|
|
609
|
+
const node = super.from(source, parentNode, parentKey);
|
|
610
|
+
if (!node.name) {
|
|
611
|
+
const tagName = node.tag.replace(ViewElement_1.TAG_NAME_PREFIX_REG, '').replace(/-/g, '_');
|
|
612
|
+
node.name = node.view.getViewElementUniqueName(`${tagName}1`);
|
|
613
|
+
}
|
|
614
|
+
return node;
|
|
615
|
+
}
|
|
616
|
+
/**
|
|
617
|
+
* 设置组件权限
|
|
618
|
+
*/
|
|
619
|
+
setBindRoles(bindRoles) {
|
|
620
|
+
const object = {
|
|
621
|
+
bindRoles,
|
|
622
|
+
};
|
|
623
|
+
this.update({
|
|
624
|
+
...object,
|
|
625
|
+
});
|
|
626
|
+
}
|
|
627
|
+
getBindAttribute(name) {
|
|
628
|
+
return this.bindAttrs.find((bindAttr) => bindAttr.name === name);
|
|
629
|
+
}
|
|
630
|
+
/**
|
|
631
|
+
* 角色
|
|
632
|
+
*/
|
|
633
|
+
roles = [];
|
|
634
|
+
toggleRole(role) {
|
|
635
|
+
const index = this.roles.findIndex((roleItem) => roleItem.name === role.name);
|
|
636
|
+
const roles = [...this.roles];
|
|
637
|
+
if (index !== -1) {
|
|
638
|
+
roles.splice(index, 1);
|
|
639
|
+
}
|
|
640
|
+
else {
|
|
641
|
+
roles.push({
|
|
642
|
+
namespace: role.getNamespace(),
|
|
643
|
+
name: role.name,
|
|
644
|
+
});
|
|
645
|
+
}
|
|
646
|
+
const object = {
|
|
647
|
+
roles,
|
|
648
|
+
};
|
|
649
|
+
this.update({
|
|
650
|
+
...object,
|
|
651
|
+
});
|
|
652
|
+
}
|
|
653
|
+
toHump(name) {
|
|
654
|
+
return name.replace(/\-(\w)/g, (all, letter) => letter.toUpperCase());
|
|
655
|
+
}
|
|
656
|
+
toEmbeddedTSDefinition(state) {
|
|
657
|
+
let code = '';
|
|
658
|
+
// formItem的单独处理
|
|
659
|
+
if (this.tag === 'u-form-item') {
|
|
660
|
+
code = (0, translator_1.indent)(state.tabSize) + `${this.name}: <nasl.ui.${this.toHump(this.tag)}`;
|
|
661
|
+
if (Array.isArray(this.children) && this.children.length) {
|
|
662
|
+
const tag = this.children[0].tag;
|
|
663
|
+
if (tag === 'u-input') {
|
|
664
|
+
code += '<nasl.core.String>';
|
|
665
|
+
}
|
|
666
|
+
else if (tag === 'u-input-number') {
|
|
667
|
+
code += '<nasl.core.Integer>';
|
|
668
|
+
}
|
|
669
|
+
else {
|
|
670
|
+
code += '<nasl.core.Any>';
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
code += '> null,\n';
|
|
674
|
+
}
|
|
675
|
+
else {
|
|
676
|
+
code = (0, translator_1.indent)(state.tabSize) + `${this.name}: <nasl.ui.${this.toHump(this.tag)}<any>> null,\n`;
|
|
677
|
+
}
|
|
678
|
+
if (Array.isArray(this.children)) {
|
|
679
|
+
this.children.forEach((element) => {
|
|
680
|
+
code += element.toEmbeddedTSDefinition((0, translator_1.shiftState)(state, code));
|
|
681
|
+
});
|
|
682
|
+
}
|
|
683
|
+
return code;
|
|
684
|
+
}
|
|
685
|
+
toEmbeddedTS(state) {
|
|
686
|
+
let code = `export namespace ${this.name || ''} {\n`;
|
|
687
|
+
code += (0, translator_1.indent)(state.tabSize + 1);
|
|
688
|
+
// 是否开启权限
|
|
689
|
+
let hasAuth = false;
|
|
690
|
+
if (Array.isArray(this.bindDirectives)) {
|
|
691
|
+
hasAuth = !!this.bindDirectives.filter((directive) => directive.name === 'auth').length;
|
|
692
|
+
}
|
|
693
|
+
// 角色
|
|
694
|
+
if (hasAuth && Array.isArray(this.bindRoles)) {
|
|
695
|
+
code += (0, translator_1.indent)(state.tabSize + 2);
|
|
696
|
+
code += 'roles = [\n';
|
|
697
|
+
this.bindRoles.forEach((role) => {
|
|
698
|
+
code += (0, translator_1.indent)(state.tabSize + 3);
|
|
699
|
+
code += `${role},`;
|
|
700
|
+
code += '\n';
|
|
701
|
+
});
|
|
702
|
+
code += (0, translator_1.indent)(state.tabSize + 2);
|
|
703
|
+
code += '];\n';
|
|
704
|
+
}
|
|
705
|
+
// 页面跳转
|
|
706
|
+
if (Array.isArray(this.bindAttrs)) {
|
|
707
|
+
code += (0, translator_1.indent)(state.tabSize + 2);
|
|
708
|
+
this.bindAttrs.forEach((attr) => {
|
|
709
|
+
if (attr.destination) {
|
|
710
|
+
code += '\n';
|
|
711
|
+
code += attr.destination.toEmbeddedTS((0, translator_1.shiftState)(state, code, {
|
|
712
|
+
tabSize: state.tabSize + 2,
|
|
713
|
+
}));
|
|
714
|
+
}
|
|
715
|
+
});
|
|
716
|
+
code += (0, translator_1.indent)(state.tabSize + 2);
|
|
717
|
+
code += '\n';
|
|
718
|
+
}
|
|
719
|
+
// 事件
|
|
720
|
+
if (Array.isArray(this.bindEvents)) {
|
|
721
|
+
this.bindEvents.forEach((event) => {
|
|
722
|
+
code += event.toEmbeddedTS((0, translator_1.shiftState)(state, code, {
|
|
723
|
+
tabSize: state.tabSize + 2,
|
|
724
|
+
}));
|
|
725
|
+
code += '\n';
|
|
726
|
+
});
|
|
727
|
+
}
|
|
728
|
+
// 子元素
|
|
729
|
+
if (Array.isArray(this.children)) {
|
|
730
|
+
code += (0, translator_1.indent)(state.tabSize + 1);
|
|
731
|
+
code += `export namespace children {\n`;
|
|
732
|
+
this.children.forEach((element) => {
|
|
733
|
+
code += element.toEmbeddedTS((0, translator_1.shiftState)(state, code, {
|
|
734
|
+
tabSize: state.tabSize + 2,
|
|
735
|
+
}));
|
|
736
|
+
code += '\n';
|
|
737
|
+
});
|
|
738
|
+
code += (0, translator_1.indent)(state.tabSize + 1);
|
|
739
|
+
code += '}\n';
|
|
740
|
+
}
|
|
741
|
+
code += (0, translator_1.indent)(state.tabSize) + '}\n';
|
|
742
|
+
return code;
|
|
743
|
+
}
|
|
744
|
+
_duplicate() {
|
|
745
|
+
const code = this.toVue();
|
|
746
|
+
const element = ViewElement_1.fromHTML(code, {
|
|
747
|
+
view: this.view,
|
|
748
|
+
});
|
|
749
|
+
element.deepRenameElements();
|
|
750
|
+
return element;
|
|
751
|
+
}
|
|
752
|
+
// 递归遍历组件
|
|
753
|
+
traverseChildren(cb) {
|
|
754
|
+
utils.traverse((current) => {
|
|
755
|
+
cb(current.node);
|
|
756
|
+
}, { node: this });
|
|
757
|
+
}
|
|
758
|
+
// 递归生成组件名
|
|
759
|
+
deepRenameElements() {
|
|
760
|
+
return this.traverseChildren((ele) => {
|
|
761
|
+
const tagName = ele.tag.replace(ViewElement_1.TAG_NAME_PREFIX_REG, '').replace(/-/g, '_');
|
|
762
|
+
ele.name = this.view.getViewElementUniqueName(`${tagName}1`);
|
|
763
|
+
});
|
|
764
|
+
}
|
|
765
|
+
/**
|
|
766
|
+
* 解析属性中的表达式
|
|
767
|
+
* @param value
|
|
768
|
+
* @param $def 目前 $def 只用来查找 $def.variables 和 $def.structures
|
|
769
|
+
* @param dataSchema
|
|
770
|
+
*/
|
|
771
|
+
static _parseExpression(value) {
|
|
772
|
+
try {
|
|
773
|
+
const ast = babelParser.parseExpression(value);
|
|
774
|
+
const node = transAstNodeToNaslNode(ast);
|
|
775
|
+
return LogicItem__1.default.from(node, null, null);
|
|
776
|
+
}
|
|
777
|
+
catch (e) {
|
|
778
|
+
return null;
|
|
779
|
+
}
|
|
780
|
+
}
|
|
781
|
+
/**
|
|
782
|
+
* 从 Vue 的 ASTNode 转换成 ASL 元素
|
|
783
|
+
* @param astNode Vue 的 ASTNode
|
|
784
|
+
*/
|
|
785
|
+
static _fromASTNode(astNode, context) {
|
|
786
|
+
const view = context?.view;
|
|
787
|
+
// 临时处理组件的 text
|
|
788
|
+
//h5-mock
|
|
789
|
+
if (['u-text', 'van-text', 'u-link', 'u-button', 'u-label', 'u-radio', 'u-checkbox', 'u-navbar-item', 'u-sidebar-item', 'u-menu-item'].includes(astNode.tag)
|
|
790
|
+
&& astNode.children.length === 1
|
|
791
|
+
&& astNode.children[0].type === 3) {
|
|
792
|
+
astNode.attrs = astNode.attrs || [];
|
|
793
|
+
astNode.attrs.push({
|
|
794
|
+
name: 'text',
|
|
795
|
+
value: JSON.stringify(astNode.children[0].text),
|
|
796
|
+
});
|
|
797
|
+
astNode.children = [];
|
|
798
|
+
}
|
|
799
|
+
// 将 scopedSlots 合并到 children 中
|
|
800
|
+
if (astNode.scopedSlots) {
|
|
801
|
+
astNode.children = astNode.children || [];
|
|
802
|
+
Object.keys(astNode.scopedSlots).forEach((key) => {
|
|
803
|
+
if (!astNode.children.find((child) => key === child.slotTarget))
|
|
804
|
+
astNode.children.unshift(astNode.scopedSlots[key]);
|
|
805
|
+
});
|
|
806
|
+
delete astNode.scopedSlots;
|
|
807
|
+
}
|
|
808
|
+
// 提示不支持的字段
|
|
809
|
+
['component', 'inlineTemplate', 'pre', 'ns', 'transition', 'transitionOnAppear', 'transitionMode', 'slotName', 'classBinding', 'styleBinding'].forEach((key) => {
|
|
810
|
+
if (astNode[key])
|
|
811
|
+
console.warn(`[warn] ViewElement NASL unsupports '${key}' field in node `, astNode);
|
|
812
|
+
});
|
|
813
|
+
let element;
|
|
814
|
+
if (astNode.type === 1) {
|
|
815
|
+
if (astNode.tag === 'router-view') {
|
|
816
|
+
if (__1.config.scope === 'h5') {
|
|
817
|
+
astNode.tag = 'van-router-view';
|
|
818
|
+
}
|
|
819
|
+
else {
|
|
820
|
+
astNode.tag = 'u-router-view';
|
|
821
|
+
}
|
|
822
|
+
}
|
|
823
|
+
const tagName = astNode.tag.replace(ViewElement_1.TAG_NAME_PREFIX_REG, '').replace(/-/g, '_');
|
|
824
|
+
element = new ViewElement_1({
|
|
825
|
+
tag: astNode.tag,
|
|
826
|
+
name: astNode.attrsMap.ref || view.getViewElementUniqueName(`${tagName}1`),
|
|
827
|
+
staticClass: astNode.attrsMap.class,
|
|
828
|
+
staticStyle: astNode.attrsMap.style,
|
|
829
|
+
slotTarget: astNode.slotTarget && json5.parse(astNode.slotTarget),
|
|
830
|
+
slotScope: astNode.slotScope === '_empty_' ? '' : astNode.slotScope,
|
|
831
|
+
children: astNode.children.map((item) => this._fromASTNode(item, context)),
|
|
832
|
+
});
|
|
833
|
+
astNode.attrs
|
|
834
|
+
&& astNode.attrs.forEach((oldAttr) => {
|
|
835
|
+
let attr;
|
|
836
|
+
if (oldAttr.value === '""' && oldAttr.end - oldAttr.start === oldAttr.name.length) {
|
|
837
|
+
attr = BindAttribute__1.default.from({
|
|
838
|
+
type: 'static',
|
|
839
|
+
name: oldAttr.name,
|
|
840
|
+
value: 'true',
|
|
841
|
+
}, element);
|
|
842
|
+
}
|
|
843
|
+
else {
|
|
844
|
+
try {
|
|
845
|
+
const tmp = json5.parse(oldAttr.value);
|
|
846
|
+
attr = BindAttribute__1.default.from({
|
|
847
|
+
type: typeof tmp === 'string' ? 'string' : 'static',
|
|
848
|
+
name: oldAttr.name,
|
|
849
|
+
value: typeof tmp === 'string' ? tmp : oldAttr.value,
|
|
850
|
+
}, element);
|
|
851
|
+
}
|
|
852
|
+
catch (e) {
|
|
853
|
+
const expression = this._parseExpression(oldAttr.value);
|
|
854
|
+
attr = BindAttribute__1.default.from({
|
|
855
|
+
type: 'dynamic',
|
|
856
|
+
name: oldAttr.name,
|
|
857
|
+
value: expression ? '' : oldAttr.value,
|
|
858
|
+
expression,
|
|
859
|
+
}, element);
|
|
860
|
+
if (astNode.attrsMap[`:${attr.name}.sync`]) {
|
|
861
|
+
attr.sync = true;
|
|
862
|
+
}
|
|
863
|
+
}
|
|
864
|
+
}
|
|
865
|
+
element.bindAttrs.push(attr);
|
|
866
|
+
});
|
|
867
|
+
// compiler 处理:value.sync 时会加上update:value事件,需要过滤
|
|
868
|
+
astNode.events
|
|
869
|
+
&& Object.keys(astNode.events)
|
|
870
|
+
.filter((name) => !name.startsWith('update:'))
|
|
871
|
+
.forEach((name) => {
|
|
872
|
+
const oldEvent = astNode.events[name];
|
|
873
|
+
const value = oldEvent.value.split('(')[0];
|
|
874
|
+
const viewNamespace = view?.getNamespace();
|
|
875
|
+
const viewName = `View_${view?.name}`;
|
|
876
|
+
element.bindEvents.push(BindEvent__1.default.from({
|
|
877
|
+
name,
|
|
878
|
+
calleeNamespace: `${viewNamespace}.${viewName}.logics`,
|
|
879
|
+
calleeName: value,
|
|
880
|
+
}, element));
|
|
881
|
+
});
|
|
882
|
+
astNode.directives && astNode.directives.forEach((directive) => {
|
|
883
|
+
if (directive.name === 'model') {
|
|
884
|
+
const valueAttr = astNode.attrs && astNode.attrs.find((attr) => attr.name === 'value');
|
|
885
|
+
if (!valueAttr) {
|
|
886
|
+
const expression = this._parseExpression(directive.value);
|
|
887
|
+
element.bindAttrs.push(BindAttribute__1.default.from({
|
|
888
|
+
type: 'dynamic',
|
|
889
|
+
name: 'value',
|
|
890
|
+
value: expression ? '' : directive.value,
|
|
891
|
+
expression,
|
|
892
|
+
sync: true,
|
|
893
|
+
}, element));
|
|
894
|
+
}
|
|
895
|
+
}
|
|
896
|
+
else {
|
|
897
|
+
const expression = this._parseExpression(directive.value);
|
|
898
|
+
element.bindDirectives.push(BindDirective__1.default.from({
|
|
899
|
+
type: expression ? 'string' : 'dynamic',
|
|
900
|
+
name: directive.name,
|
|
901
|
+
rawName: directive.rawName,
|
|
902
|
+
value: expression ? '' : directive.value,
|
|
903
|
+
expression,
|
|
904
|
+
arg: directive.arg,
|
|
905
|
+
modifiers: directive.modifiers,
|
|
906
|
+
}, element));
|
|
907
|
+
}
|
|
908
|
+
});
|
|
909
|
+
if (astNode.if) {
|
|
910
|
+
element.bindDirectives.push(BindDirective__1.default.from({
|
|
911
|
+
type: 'dynamic',
|
|
912
|
+
name: 'if',
|
|
913
|
+
rawName: 'v-if',
|
|
914
|
+
value: '',
|
|
915
|
+
expression: this._parseExpression(astNode.if),
|
|
916
|
+
}, element));
|
|
917
|
+
}
|
|
918
|
+
}
|
|
919
|
+
else if (astNode.type === 2) {
|
|
920
|
+
if (__1.config.scope === 'h5') {
|
|
921
|
+
element = new ViewElement_1({
|
|
922
|
+
tag: 'van-text',
|
|
923
|
+
});
|
|
924
|
+
}
|
|
925
|
+
else {
|
|
926
|
+
element = new ViewElement_1({
|
|
927
|
+
tag: 'u-text',
|
|
928
|
+
});
|
|
929
|
+
}
|
|
930
|
+
const value = astNode.text.match(/{{(.*?)}}/)[1].trim();
|
|
931
|
+
const expression = this._parseExpression(value);
|
|
932
|
+
element.bindAttrs.push(new BindAttribute__1.default({
|
|
933
|
+
type: 'dynamic',
|
|
934
|
+
name: 'text',
|
|
935
|
+
value: expression ? '' : value,
|
|
936
|
+
expression,
|
|
937
|
+
}));
|
|
938
|
+
}
|
|
939
|
+
else if (astNode.type === 3) {
|
|
940
|
+
if (__1.config.scope === 'h5') {
|
|
941
|
+
element = new ViewElement_1({
|
|
942
|
+
tag: 'van-text',
|
|
943
|
+
});
|
|
944
|
+
}
|
|
945
|
+
else {
|
|
946
|
+
element = new ViewElement_1({
|
|
947
|
+
tag: 'u-text',
|
|
948
|
+
});
|
|
949
|
+
}
|
|
950
|
+
element.bindAttrs.push(new BindAttribute__1.default({
|
|
951
|
+
name: 'text',
|
|
952
|
+
type: 'string',
|
|
953
|
+
value: astNode.text,
|
|
954
|
+
}));
|
|
955
|
+
}
|
|
956
|
+
return element;
|
|
957
|
+
}
|
|
958
|
+
/**
|
|
959
|
+
* 解析 Vue 模板
|
|
960
|
+
* 该方法不会绑定 view 和 parent,如果是添加元素优先使用 fromHTML
|
|
961
|
+
* @param html Vue 的模板
|
|
962
|
+
* @TODO 处理多个元素的问题
|
|
963
|
+
*/
|
|
964
|
+
static parse(html, context) {
|
|
965
|
+
html = html || '<div></div>';
|
|
966
|
+
const compilerOptions = {
|
|
967
|
+
preserveWhitespace: false,
|
|
968
|
+
outputSourceRange: true,
|
|
969
|
+
};
|
|
970
|
+
let ast = compiler.compile(html, compilerOptions).ast;
|
|
971
|
+
if (ast.tag === 'template' && !ast.slotTarget)
|
|
972
|
+
ast = ast.children[0];
|
|
973
|
+
let root;
|
|
974
|
+
utils.traverse((current) => {
|
|
975
|
+
// 处理 scopedSlots;
|
|
976
|
+
if (!current.parent)
|
|
977
|
+
root = this._fromASTNode(current.node, context);
|
|
978
|
+
else
|
|
979
|
+
current.parent.children[current.index] = this._fromASTNode(current.node, context);
|
|
980
|
+
}, { node: ast });
|
|
981
|
+
return root;
|
|
982
|
+
}
|
|
983
|
+
/**
|
|
984
|
+
* 从模板生成规范的 ViewElement 对象
|
|
985
|
+
*/
|
|
986
|
+
static fromHTML(html, context) {
|
|
987
|
+
const element = this.parse(html, context);
|
|
988
|
+
return element;
|
|
989
|
+
}
|
|
990
|
+
/**
|
|
991
|
+
* 转换成设计器中使用的 Vue 文件
|
|
992
|
+
* @param options
|
|
993
|
+
*/
|
|
994
|
+
toDesignerVue(options) {
|
|
995
|
+
options = Object.assign({
|
|
996
|
+
nodePathAttr: true,
|
|
997
|
+
attrFormat: (attr, el, defaultResult) => {
|
|
998
|
+
if (attr.concept === 'BindAttribute') {
|
|
999
|
+
const api = __1.config.allNodesAPI[el.tag];
|
|
1000
|
+
const apiOfAttr = api && api.attrs && api.attrs.find((_attr) => _attr.name === attr.name);
|
|
1001
|
+
if (apiOfAttr && apiOfAttr['designer-value'] !== undefined) {
|
|
1002
|
+
let designerValue = apiOfAttr['designer-value'];
|
|
1003
|
+
if (typeof designerValue === 'string') {
|
|
1004
|
+
designerValue = designerValue.replace(/"/g, "'");
|
|
1005
|
+
}
|
|
1006
|
+
try {
|
|
1007
|
+
json5.parse(designerValue);
|
|
1008
|
+
return `:${attr.name}="${designerValue}"`;
|
|
1009
|
+
}
|
|
1010
|
+
catch (e) {
|
|
1011
|
+
return `${attr.name}="${designerValue}"`;
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
1014
|
+
if (attr.type === 'dynamic' && !(el.tag === 'u-cascade-select' && attr.name === 'categories'))
|
|
1015
|
+
return defaultResult.replace(/:?(\w+)(?:.*?)="(.*)"/, (m, name, value) => {
|
|
1016
|
+
try {
|
|
1017
|
+
const tempValue = json5.parse(value);
|
|
1018
|
+
if (typeof tempValue === 'boolean' || typeof tempValue === 'number') {
|
|
1019
|
+
// 简单类型走属性
|
|
1020
|
+
return `:${name}="${value.replace(/"/g, "'")}"`;
|
|
1021
|
+
}
|
|
1022
|
+
}
|
|
1023
|
+
catch (e) {
|
|
1024
|
+
if (apiOfAttr && !apiOfAttr.type.includes('string'))
|
|
1025
|
+
return '';
|
|
1026
|
+
}
|
|
1027
|
+
return `${name}="{{ ${value.replace(/"/g, "'")} }}"`;
|
|
1028
|
+
});
|
|
1029
|
+
else
|
|
1030
|
+
return defaultResult;
|
|
1031
|
+
}
|
|
1032
|
+
return false;
|
|
1033
|
+
},
|
|
1034
|
+
getExtraParts: (el) => {
|
|
1035
|
+
const parts = [];
|
|
1036
|
+
const api = __1.config.allNodesAPI[el.tag];
|
|
1037
|
+
const emptySlot = api && api.slots && api.slots.find((slot) => slot.name === 'default' && slot['empty-background']);
|
|
1038
|
+
if (!el.children.length && emptySlot) {
|
|
1039
|
+
let addEmpty = true;
|
|
1040
|
+
if (el.tag === 'u-grid-view' || el.tag === 'u-list-view' || el.tag === 'van-list-view') {
|
|
1041
|
+
const hasDataSource = el.bindAttrs.find((attr) => attr.name === 'data-source');
|
|
1042
|
+
addEmpty = !hasDataSource;
|
|
1043
|
+
}
|
|
1044
|
+
addEmpty && parts.push(`vusion-empty-background="${emptySlot['empty-background']}"`);
|
|
1045
|
+
}
|
|
1046
|
+
return parts;
|
|
1047
|
+
},
|
|
1048
|
+
}, options);
|
|
1049
|
+
return this.toVue(options);
|
|
1050
|
+
}
|
|
1051
|
+
/**
|
|
1052
|
+
* 转换成 Vue 的模板格式
|
|
1053
|
+
*/
|
|
1054
|
+
toVue(options) {
|
|
1055
|
+
options = Object.assign({
|
|
1056
|
+
indentStyle: 'space',
|
|
1057
|
+
tabSize: 4,
|
|
1058
|
+
indentLevel: 0,
|
|
1059
|
+
aslIdAttr: false,
|
|
1060
|
+
nodePathAttr: false,
|
|
1061
|
+
getExtraParts: () => [],
|
|
1062
|
+
attrFormat: (attr, element, defaultResult) => defaultResult,
|
|
1063
|
+
}, options);
|
|
1064
|
+
const tabString = ' '.repeat(options.tabSize * options.indentLevel);
|
|
1065
|
+
const insideTabString = ' '.repeat(options.tabSize * (options.indentLevel + 1));
|
|
1066
|
+
let shouldIndent = true;
|
|
1067
|
+
const content = !this.children ? '' : this.children
|
|
1068
|
+
.map((element) => {
|
|
1069
|
+
const childOptions = Object.assign({}, options);
|
|
1070
|
+
childOptions.indentLevel++;
|
|
1071
|
+
return (shouldIndent ? '\n' + insideTabString : '') + element.toVue(childOptions);
|
|
1072
|
+
})
|
|
1073
|
+
.join('');
|
|
1074
|
+
if (!content.length)
|
|
1075
|
+
shouldIndent = false;
|
|
1076
|
+
const parts = [];
|
|
1077
|
+
if (options.aslIdAttr) {
|
|
1078
|
+
if (options.aslIdAttr === true)
|
|
1079
|
+
options.aslIdAttr = 'asl-id';
|
|
1080
|
+
parts.push(`${options.aslIdAttr}="${this.id}"`);
|
|
1081
|
+
}
|
|
1082
|
+
if (options.nodePathAttr) {
|
|
1083
|
+
// 注入 asl 的 node-path
|
|
1084
|
+
parts.push(`vusion-node-path="${this.nodePath}"`);
|
|
1085
|
+
}
|
|
1086
|
+
this.slotTarget && parts.push(`#${this.slotTarget}` + (this.slotScope ? `="${this.slotScope}"` : ''));
|
|
1087
|
+
this.name && parts.push(`ref="${this.name}"`);
|
|
1088
|
+
this.staticClass && parts.push(`class="${this.staticClass}"`);
|
|
1089
|
+
this.staticStyle && parts.push(`style="${this.staticStyle}"`);
|
|
1090
|
+
const { finalCode } = options;
|
|
1091
|
+
[].concat(this.bindAttrs, this.bindDirectives, this.bindEvents).forEach((attr) => {
|
|
1092
|
+
const result = options.attrFormat(attr, this, attr.toVue(this, finalCode));
|
|
1093
|
+
result && parts.push(result);
|
|
1094
|
+
});
|
|
1095
|
+
options.getExtraParts(this).forEach((part) => parts.push(part));
|
|
1096
|
+
let partsLength = 0;
|
|
1097
|
+
let partsString = '';
|
|
1098
|
+
parts.forEach((part) => {
|
|
1099
|
+
if (partsLength >= 120 || part.length >= 120) {
|
|
1100
|
+
partsString += '\n' + tabString + ' '.repeat(3); // ' '.repeat(el.tag.length + 1);
|
|
1101
|
+
partsLength = 0;
|
|
1102
|
+
}
|
|
1103
|
+
partsString += ' ' + part;
|
|
1104
|
+
partsLength += part.length;
|
|
1105
|
+
});
|
|
1106
|
+
return `<${this.tag}${partsString.length ? partsString : ''}>` + content + (shouldIndent ? '\n' + tabString : '') + `</${this.tag}>`;
|
|
1107
|
+
}
|
|
1108
|
+
};
|
|
1109
|
+
__decorate([
|
|
1110
|
+
(0, decorators_1.property)()
|
|
1111
|
+
], ViewElement.prototype, "concept", void 0);
|
|
1112
|
+
__decorate([
|
|
1113
|
+
(0, decorators_1.property)()
|
|
1114
|
+
], ViewElement.prototype, "type", void 0);
|
|
1115
|
+
__decorate([
|
|
1116
|
+
(0, decorators_1.property)()
|
|
1117
|
+
], ViewElement.prototype, "tag", void 0);
|
|
1118
|
+
__decorate([
|
|
1119
|
+
(0, decorators_1.property)()
|
|
1120
|
+
], ViewElement.prototype, "name", void 0);
|
|
1121
|
+
__decorate([
|
|
1122
|
+
(0, decorators_1.property)()
|
|
1123
|
+
], ViewElement.prototype, "staticClass", void 0);
|
|
1124
|
+
__decorate([
|
|
1125
|
+
(0, decorators_1.property)()
|
|
1126
|
+
], ViewElement.prototype, "staticStyle", void 0);
|
|
1127
|
+
__decorate([
|
|
1128
|
+
(0, decorators_1.property)()
|
|
1129
|
+
], ViewElement.prototype, "slotTarget", void 0);
|
|
1130
|
+
__decorate([
|
|
1131
|
+
(0, decorators_1.property)()
|
|
1132
|
+
], ViewElement.prototype, "slotScope", void 0);
|
|
1133
|
+
__decorate([
|
|
1134
|
+
(0, decorators_1.property)('BindAttribute')
|
|
1135
|
+
], ViewElement.prototype, "bindAttrs", void 0);
|
|
1136
|
+
__decorate([
|
|
1137
|
+
(0, decorators_1.property)('BindEvent')
|
|
1138
|
+
], ViewElement.prototype, "bindEvents", void 0);
|
|
1139
|
+
__decorate([
|
|
1140
|
+
(0, decorators_1.property)('BindDirective')
|
|
1141
|
+
], ViewElement.prototype, "bindDirectives", void 0);
|
|
1142
|
+
__decorate([
|
|
1143
|
+
(0, decorators_1.property)()
|
|
1144
|
+
], ViewElement.prototype, "bindRoles", void 0);
|
|
1145
|
+
__decorate([
|
|
1146
|
+
(0, decorators_1.property)('ViewElement')
|
|
1147
|
+
], ViewElement.prototype, "children", void 0);
|
|
1148
|
+
__decorate([
|
|
1149
|
+
(0, decorators_1.property)()
|
|
1150
|
+
], ViewElement.prototype, "roles", void 0);
|
|
1151
|
+
__decorate([
|
|
1152
|
+
(0, translator_1.withSourceMap)()
|
|
1153
|
+
], ViewElement.prototype, "toEmbeddedTSDefinition", null);
|
|
1154
|
+
__decorate([
|
|
1155
|
+
(0, translator_1.withSourceMap)()
|
|
1156
|
+
], ViewElement.prototype, "toEmbeddedTS", null);
|
|
1157
|
+
ViewElement = ViewElement_1 = __decorate([
|
|
1158
|
+
decorators_1.concept
|
|
1159
|
+
], ViewElement);
|
|
1160
|
+
exports.ViewElement = ViewElement;
|
|
1161
|
+
classMap_1.default['ViewElement'] = ViewElement;
|
|
1162
|
+
exports.default = ViewElement;
|
|
1163
|
+
//================================================================================
|
|
1164
|
+
// ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑
|
|
1165
|
+
// 自动生成的代码已结束。下面可以手动编写。
|
|
1166
|
+
//================================================================================
|
|
1167
|
+
//# sourceMappingURL=ViewElement__.js.map
|