@lcap/nasl 0.3.14-beta.0 → 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 +5 -4
- package/out/types/data/genBlock/genCreateBlock.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/genTableBlock.js +2 -2
- package/out/types/data/genBlock/genTableBlock.js.map +1 -1
- package/out/types/data/genBlock/genUpdateBlock.js +5 -4
- 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/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 -2
- package/out/types/logic/LogicItem.js +48 -112
- 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 -123
- 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 -206
- 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 -1370
- 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
|
@@ -1,1444 +0,0 @@
|
|
|
1
|
-
import { action, circular, excludedInJSON, immutable } from '../decorators';
|
|
2
|
-
import { config, utils, LEVEL_ENUM, Vertex, View, Attr, Directive, Event, ExpressionNode, dataTypesMap, LogicItem, ActionOptions, ACTION_MODE, Nuims, Structure } from '..';
|
|
3
|
-
import * as compiler from 'vue-template-compiler';
|
|
4
|
-
import * as json5 from 'json5';
|
|
5
|
-
import { elementService } from '../../service/page';
|
|
6
|
-
import { vertexsMap } from '../cacheData';
|
|
7
|
-
import Variable from '../logic/Variable';
|
|
8
|
-
import * as babelParser from '@babel/parser';
|
|
9
|
-
import { isPlainObject, cloneDeep, mapValues } from 'lodash';
|
|
10
|
-
import { refreshHtml } from '../cache';
|
|
11
|
-
import { BusinessCode } from '../enum';
|
|
12
|
-
|
|
13
|
-
export interface ElementToVueOptions {
|
|
14
|
-
indentStyle?: 'space' | 'tab';
|
|
15
|
-
tabSize?: number;
|
|
16
|
-
indentLevel?: number;
|
|
17
|
-
aslIdAttr?: string | boolean;
|
|
18
|
-
nodePathAttr?: string | boolean;
|
|
19
|
-
getExtraParts?: (element?: Element) => Array<string>;
|
|
20
|
-
attrFormat?: (attr: Attr | Event | Directive, element?: Element, defaultResult?: string) => string;
|
|
21
|
-
finalCode?: boolean,
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export interface ParseContext {
|
|
25
|
-
variables?: Array<Variable>;
|
|
26
|
-
structures?: Array<Structure>;
|
|
27
|
-
dataSchema?: string;
|
|
28
|
-
[key: string]: any;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export function catchFn(view: View) {
|
|
32
|
-
return async (err: any) => {
|
|
33
|
-
if (err.code !== BusinessCode.HasReferenced) // 节点被引用,不用刷新数据
|
|
34
|
-
await refreshHtml(view);
|
|
35
|
-
else
|
|
36
|
-
config.defaultApp?.emit('saved', err);
|
|
37
|
-
|
|
38
|
-
config.defaultApp?.history.load();
|
|
39
|
-
throw err;
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* 前端页面元素
|
|
45
|
-
* @example
|
|
46
|
-
* <u-input size="small" v-model="value" @change="onChange"></u-input>
|
|
47
|
-
*/
|
|
48
|
-
export class Element extends Vertex {
|
|
49
|
-
/**
|
|
50
|
-
* 概念类型
|
|
51
|
-
*/
|
|
52
|
-
@immutable()
|
|
53
|
-
public readonly level: LEVEL_ENUM = LEVEL_ENUM.element;
|
|
54
|
-
/**
|
|
55
|
-
* 元素类型
|
|
56
|
-
* 去除了 expression 和 text,目前只有一种节点类型
|
|
57
|
-
*/
|
|
58
|
-
@immutable()
|
|
59
|
-
// public readonly type: 'element' = 'element';
|
|
60
|
-
public readonly type: number = 0;
|
|
61
|
-
/**
|
|
62
|
-
* 元素 Id
|
|
63
|
-
*/
|
|
64
|
-
@immutable()
|
|
65
|
-
public readonly id: string = undefined;
|
|
66
|
-
/**
|
|
67
|
-
* 元素标签
|
|
68
|
-
*/
|
|
69
|
-
@immutable()
|
|
70
|
-
public readonly tag: string = undefined;
|
|
71
|
-
/**
|
|
72
|
-
* 元素名称
|
|
73
|
-
* 用户可以自定义
|
|
74
|
-
* Vue 中的 ref
|
|
75
|
-
*/
|
|
76
|
-
@immutable()
|
|
77
|
-
public readonly name: string = undefined;
|
|
78
|
-
|
|
79
|
-
/*
|
|
80
|
-
* 描述信息
|
|
81
|
-
*/
|
|
82
|
-
@immutable()
|
|
83
|
-
public readonly description: string = undefined;
|
|
84
|
-
/**
|
|
85
|
-
* 属性列表
|
|
86
|
-
* 和原来的 attrsList 不同,注意区分
|
|
87
|
-
*/
|
|
88
|
-
@immutable()
|
|
89
|
-
public readonly attrList?: Array<Attr> = [];
|
|
90
|
-
/**
|
|
91
|
-
* 事件列表
|
|
92
|
-
*/
|
|
93
|
-
@immutable()
|
|
94
|
-
public readonly eventList?: Array<Event> = [];
|
|
95
|
-
/**
|
|
96
|
-
* 指令列表
|
|
97
|
-
*/
|
|
98
|
-
@immutable()
|
|
99
|
-
public readonly directiveList?: Array<Directive> = [];
|
|
100
|
-
/**
|
|
101
|
-
* 插槽目标
|
|
102
|
-
* @example
|
|
103
|
-
* 'cell'
|
|
104
|
-
*/
|
|
105
|
-
@immutable()
|
|
106
|
-
public readonly slotTarget?: string = undefined;
|
|
107
|
-
/**
|
|
108
|
-
* 插槽 scope 表达式
|
|
109
|
-
* @example
|
|
110
|
-
* 'scope'
|
|
111
|
-
*/
|
|
112
|
-
@immutable()
|
|
113
|
-
public readonly slotScope?: string = undefined;
|
|
114
|
-
/**
|
|
115
|
-
* 静态 class 名
|
|
116
|
-
* 不计划支持动态 class
|
|
117
|
-
*/
|
|
118
|
-
@immutable()
|
|
119
|
-
public readonly staticClass?: string = undefined;
|
|
120
|
-
/**
|
|
121
|
-
* 静态 style
|
|
122
|
-
* 不计划支持动态样式
|
|
123
|
-
*/
|
|
124
|
-
@immutable()
|
|
125
|
-
public readonly staticStyle?: string = undefined;
|
|
126
|
-
/**
|
|
127
|
-
* 当前节点路径,只在前端动态计算后使用
|
|
128
|
-
*/
|
|
129
|
-
@excludedInJSON()
|
|
130
|
-
public nodePath: string = undefined;
|
|
131
|
-
/**
|
|
132
|
-
* 所在父元素 Id
|
|
133
|
-
*/
|
|
134
|
-
@immutable()
|
|
135
|
-
public readonly parentId: string = undefined;
|
|
136
|
-
/**
|
|
137
|
-
* 所在位置
|
|
138
|
-
*/
|
|
139
|
-
@immutable()
|
|
140
|
-
public _posIndex: number = undefined;
|
|
141
|
-
/**
|
|
142
|
-
* 所在父元素
|
|
143
|
-
*/
|
|
144
|
-
@circular()
|
|
145
|
-
@immutable()
|
|
146
|
-
public readonly parent?: Element = undefined;
|
|
147
|
-
/**
|
|
148
|
-
* 所在父元素 Id
|
|
149
|
-
*/
|
|
150
|
-
@immutable()
|
|
151
|
-
public readonly viewId: string = undefined;
|
|
152
|
-
/**
|
|
153
|
-
* 所在子页面
|
|
154
|
-
*/
|
|
155
|
-
@circular()
|
|
156
|
-
@immutable()
|
|
157
|
-
public readonly view?: View = undefined;
|
|
158
|
-
/**
|
|
159
|
-
* 子元素
|
|
160
|
-
*/
|
|
161
|
-
@immutable()
|
|
162
|
-
public readonly children?: Array<Element> = [];
|
|
163
|
-
/**
|
|
164
|
-
* 标签名前缀
|
|
165
|
-
*/
|
|
166
|
-
@immutable()
|
|
167
|
-
public static readonly TAG_NAME_PREFIX_REG?: RegExp = /^([lieu]|van)[-_]/;
|
|
168
|
-
/**
|
|
169
|
-
* 忽略命名的标签
|
|
170
|
-
*/
|
|
171
|
-
@immutable()
|
|
172
|
-
public static readonly ignoreTag?: Array<string> = ['div', 'span'];
|
|
173
|
-
|
|
174
|
-
/**
|
|
175
|
-
* @param source 需要合并的部分参数
|
|
176
|
-
*/
|
|
177
|
-
constructor(source?: Partial<Element>) {
|
|
178
|
-
super();
|
|
179
|
-
source && this.assign(source);
|
|
180
|
-
}
|
|
181
|
-
assign(source?: any) {
|
|
182
|
-
['attrList', 'eventList', 'directiveList', 'children'].forEach((key) => {
|
|
183
|
-
if (source[key] === null)
|
|
184
|
-
delete source[key];
|
|
185
|
-
});
|
|
186
|
-
super.assign(source);
|
|
187
|
-
}
|
|
188
|
-
/**
|
|
189
|
-
* 添加元素
|
|
190
|
-
*/
|
|
191
|
-
@action('添加元素')
|
|
192
|
-
async create(none?: void, actionOptions?: ActionOptions) {
|
|
193
|
-
if (actionOptions?.actionMode === ACTION_MODE.local) {
|
|
194
|
-
this.view && this.view.emit('local-change');
|
|
195
|
-
return this;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
config.defaultApp?.emit('saving');
|
|
199
|
-
if (actionOptions?.actionMode !== ACTION_MODE.undoRedo) {
|
|
200
|
-
const body = this.toJSON();
|
|
201
|
-
body.parentId = this.parent && this.parent.id;
|
|
202
|
-
body._posIndex = this.parent && this.parent.children.indexOf(this);
|
|
203
|
-
utils.logger.debug('添加元素', body);
|
|
204
|
-
const result = await elementService.create({
|
|
205
|
-
headers: {
|
|
206
|
-
appId: config.defaultApp?.id,
|
|
207
|
-
operationAction: 'Element.create',
|
|
208
|
-
operationDesc: `添加组件"${this.getElementTitle()}"`,
|
|
209
|
-
},
|
|
210
|
-
body,
|
|
211
|
-
}).catch(catchFn(this.view));
|
|
212
|
-
|
|
213
|
-
this.deepPick(result, ['id', 'parentId', 'elementId']);
|
|
214
|
-
// attr,directive,event的id,expression需要合并
|
|
215
|
-
this.attrList.forEach((attr, index) => {
|
|
216
|
-
attr.deepPick(result.attrList[index], ['id', 'expression']);
|
|
217
|
-
});
|
|
218
|
-
this.directiveList.forEach((directive, index) => {
|
|
219
|
-
directive.deepPick(result.directiveList[index], ['id', 'expression']);
|
|
220
|
-
});
|
|
221
|
-
this.eventList.forEach((event, index) => {
|
|
222
|
-
event.deepPick(result.eventList[index], ['id']);
|
|
223
|
-
});
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
this.view && this.view.emit('change');
|
|
227
|
-
|
|
228
|
-
if (actionOptions?.loadHistory !== false) {
|
|
229
|
-
await config.defaultApp?.history.load(actionOptions?.actionMode !== ACTION_MODE.undoRedo && {
|
|
230
|
-
operationAction: 'Element.create',
|
|
231
|
-
operationBeforeImage: null,
|
|
232
|
-
operationAfterImage: JSON.parse(JSON.stringify(this)),
|
|
233
|
-
operationDesc: `添加组件"${this.getElementTitle()}"`,
|
|
234
|
-
});
|
|
235
|
-
config.defaultApp?.emit('saved');
|
|
236
|
-
}
|
|
237
|
-
return this;
|
|
238
|
-
}
|
|
239
|
-
/**
|
|
240
|
-
* 删除元素
|
|
241
|
-
*/
|
|
242
|
-
@action('删除元素')
|
|
243
|
-
async delete(none?: void, actionOptions?: ActionOptions) {
|
|
244
|
-
if (actionOptions?.actionMode === ACTION_MODE.local) {
|
|
245
|
-
const index = this.parent.children.indexOf(this);
|
|
246
|
-
~index && this.parent.children.splice(index, 1);
|
|
247
|
-
this.deepRemoveElementsName();
|
|
248
|
-
this.view && this.view.emit('local-change');
|
|
249
|
-
return this;
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
config.defaultApp?.emit('saving');
|
|
253
|
-
|
|
254
|
-
if (!this.parent)
|
|
255
|
-
throw Error('该元素为根节点!');
|
|
256
|
-
|
|
257
|
-
if (actionOptions?.actionMode !== ACTION_MODE.undoRedo) {
|
|
258
|
-
if (this.id) {
|
|
259
|
-
await elementService.delete({
|
|
260
|
-
headers: {
|
|
261
|
-
appId: config.defaultApp?.id,
|
|
262
|
-
operationAction: 'Element.delete',
|
|
263
|
-
operationDesc: `删除组件"${this.getElementTitle()}"`,
|
|
264
|
-
},
|
|
265
|
-
query: {
|
|
266
|
-
id: this.id,
|
|
267
|
-
},
|
|
268
|
-
}).catch(catchFn(this.view));
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
const index = this.parent.children.indexOf(this);
|
|
273
|
-
~index && this.parent.children.splice(index, 1);
|
|
274
|
-
|
|
275
|
-
// 递归删除组件名的缓存
|
|
276
|
-
this.deepRemoveElementsName();
|
|
277
|
-
this.destroy();
|
|
278
|
-
this.view && this.view.emit('change');
|
|
279
|
-
if (actionOptions?.loadHistory !== false) {
|
|
280
|
-
await config.defaultApp?.history.load(actionOptions?.actionMode !== ACTION_MODE.undoRedo && {
|
|
281
|
-
operationAction: 'Element.delete',
|
|
282
|
-
operationBeforeImage: JSON.parse(JSON.stringify(this)),
|
|
283
|
-
operationAfterImage: null,
|
|
284
|
-
operationDesc: `删除组件"${this.getElementTitle()}"`,
|
|
285
|
-
});
|
|
286
|
-
config.defaultApp?.emit('saved');
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
/**
|
|
290
|
-
* 修改元素
|
|
291
|
-
*/
|
|
292
|
-
async update(source?: Element, actionOptions?: ActionOptions) {
|
|
293
|
-
config.defaultApp?.emit('saving');
|
|
294
|
-
|
|
295
|
-
source && this.assign(source);
|
|
296
|
-
if (actionOptions?.actionMode !== ACTION_MODE.undoRedo) {
|
|
297
|
-
const body = this.toPlainJSON();
|
|
298
|
-
utils.logger.debug('修改组件', body);
|
|
299
|
-
await elementService.update({
|
|
300
|
-
headers: {
|
|
301
|
-
appId: config.defaultApp?.id,
|
|
302
|
-
operationAction: actionOptions?.actionName || 'Element.update',
|
|
303
|
-
operationDesc: actionOptions?.actionDesc || `修改组件"${this.getElementTitle()}"`,
|
|
304
|
-
},
|
|
305
|
-
body,
|
|
306
|
-
}).catch(catchFn(this.view));
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
this.view && this.view.emit('change');
|
|
310
|
-
await config.defaultApp?.history.load(actionOptions?.actionMode !== ACTION_MODE.undoRedo && {
|
|
311
|
-
operationAction: 'Element.update',
|
|
312
|
-
operationBeforeImage: null,
|
|
313
|
-
operationAfterImage: null,
|
|
314
|
-
operationDesc: `修改组件"${this.getElementTitle()}"`,
|
|
315
|
-
});
|
|
316
|
-
|
|
317
|
-
config.defaultApp?.emit('saved');
|
|
318
|
-
return this;
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
/**
|
|
322
|
-
* 按当前 id 加载逻辑数据
|
|
323
|
-
*/
|
|
324
|
-
async load() {
|
|
325
|
-
if (!this.id)
|
|
326
|
-
return;
|
|
327
|
-
|
|
328
|
-
const result = await elementService.load({
|
|
329
|
-
headers: {
|
|
330
|
-
appId: config.defaultApp?.id,
|
|
331
|
-
},
|
|
332
|
-
query: {
|
|
333
|
-
id: this.id,
|
|
334
|
-
},
|
|
335
|
-
config: { noErrorTip: true },
|
|
336
|
-
});
|
|
337
|
-
const newElement = Element.from(result, this.parent, this.view);
|
|
338
|
-
this.assign(newElement);
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
async move(options: {
|
|
342
|
-
parentId?: string,
|
|
343
|
-
_posIndex?: number,
|
|
344
|
-
nodePath?: string,
|
|
345
|
-
position?: 'append' | 'insertBefore' | 'insertAfter',
|
|
346
|
-
}, actionOptions?: ActionOptions) {
|
|
347
|
-
try {
|
|
348
|
-
if (!options.parentId)
|
|
349
|
-
return;
|
|
350
|
-
|
|
351
|
-
config.defaultApp?.emit('element.moving');
|
|
352
|
-
|
|
353
|
-
const index = this.parent.children.indexOf(this);
|
|
354
|
-
~index && this.parent.children.splice(index, 1);
|
|
355
|
-
|
|
356
|
-
const parent = vertexsMap.get(options.parentId) as Element;
|
|
357
|
-
parent.children.splice(options._posIndex, 0, this);
|
|
358
|
-
|
|
359
|
-
this.assign({
|
|
360
|
-
parent,
|
|
361
|
-
parentId: options.parentId,
|
|
362
|
-
_posIndex: options._posIndex,
|
|
363
|
-
});
|
|
364
|
-
|
|
365
|
-
if (actionOptions?.actionMode !== ACTION_MODE.undoRedo) {
|
|
366
|
-
await this.update(undefined, {
|
|
367
|
-
actionName: 'Element.move',
|
|
368
|
-
actionDesc: `移动组件"${this.getElementTitle()}"`,
|
|
369
|
-
});
|
|
370
|
-
this.view.attachNodePath();
|
|
371
|
-
} else {
|
|
372
|
-
this.view.attachNodePath();
|
|
373
|
-
this.view && this.view.emit('change');
|
|
374
|
-
await config.defaultApp?.history.load();
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
config.defaultApp?.emit('element.moved');
|
|
378
|
-
config.defaultApp?.emit('saved');
|
|
379
|
-
} catch (err) {
|
|
380
|
-
if (this.view) {
|
|
381
|
-
await this.view.load();
|
|
382
|
-
this.view.emit('change');
|
|
383
|
-
}
|
|
384
|
-
config.defaultApp?.emit('saved', {
|
|
385
|
-
action: 'move',
|
|
386
|
-
err,
|
|
387
|
-
});
|
|
388
|
-
throw err;
|
|
389
|
-
}
|
|
390
|
-
}
|
|
391
|
-
/**
|
|
392
|
-
* 添加元素副本
|
|
393
|
-
* 在所在父节点的后面添加一个相同的元素
|
|
394
|
-
*/
|
|
395
|
-
@action('添加元素副本')
|
|
396
|
-
async duplicate() {
|
|
397
|
-
const code = this.toVue();
|
|
398
|
-
|
|
399
|
-
const index = this.parent.children.indexOf(this);
|
|
400
|
-
const newNode = Element.fromHTML(code, this.parent, this.view);
|
|
401
|
-
// 复制的元素需重新命名
|
|
402
|
-
newNode.deepRenameElements();
|
|
403
|
-
|
|
404
|
-
const mergeExpression = (originList: Array<Attr|Directive>, newList: Array<Attr|Directive>) => {
|
|
405
|
-
newList.forEach((item) => {
|
|
406
|
-
const originItem = originList.find((originItem) => originItem.name === item.name);
|
|
407
|
-
if (originItem && originItem.expression) {
|
|
408
|
-
// item.expression可能为空
|
|
409
|
-
const expression = cloneDeep(originItem.expression);
|
|
410
|
-
Object.assign(item, { expression, value: '' });
|
|
411
|
-
Object.assign(item.expression, { id: '' });
|
|
412
|
-
utils.traverse((current) => {
|
|
413
|
-
delete current.node.editable;
|
|
414
|
-
delete current.node.index;
|
|
415
|
-
delete current.node.parentAttr;
|
|
416
|
-
delete current.node.parentId;
|
|
417
|
-
delete current.node.id;
|
|
418
|
-
}, { node: item.expression as any }, { mode: 'anyObject' });
|
|
419
|
-
}
|
|
420
|
-
});
|
|
421
|
-
};
|
|
422
|
-
|
|
423
|
-
// 遍历合并
|
|
424
|
-
const traverseMergeNode = (origiNode:Element, newNode:Element) => {
|
|
425
|
-
const originalStack: Array<Element> = [];
|
|
426
|
-
const newStack: Array<Element> = [];
|
|
427
|
-
originalStack.push(origiNode);
|
|
428
|
-
newStack.push(newNode);
|
|
429
|
-
let originalTempNode: Element;
|
|
430
|
-
let newTempNode: Element;
|
|
431
|
-
while (originalStack.length) {
|
|
432
|
-
originalTempNode = originalStack.pop();
|
|
433
|
-
newTempNode = newStack.pop();
|
|
434
|
-
if (newTempNode) {
|
|
435
|
-
mergeExpression(originalTempNode.attrList, newTempNode.attrList);
|
|
436
|
-
mergeExpression(originalTempNode.directiveList, newTempNode.directiveList);
|
|
437
|
-
newTempNode.eventList.forEach((event) => {
|
|
438
|
-
const originEvent = originalTempNode.eventList.find((eventTemp:Event) => eventTemp.name === event.name);
|
|
439
|
-
if (originEvent) {
|
|
440
|
-
Object.assign(event, {
|
|
441
|
-
logicId: originEvent.logicId,
|
|
442
|
-
});
|
|
443
|
-
}
|
|
444
|
-
});
|
|
445
|
-
if (originalTempNode.children.length) {
|
|
446
|
-
for (let i = originalTempNode.children.length - 1; i >= 0; i--) {
|
|
447
|
-
originalStack.push(originalTempNode.children[i]);
|
|
448
|
-
newStack.push(newTempNode.children[i]);
|
|
449
|
-
}
|
|
450
|
-
}
|
|
451
|
-
}
|
|
452
|
-
}
|
|
453
|
-
};
|
|
454
|
-
|
|
455
|
-
const arrayComp = this.findElementsByTag('u-modal');
|
|
456
|
-
const existingNames = Object.values(mapValues(arrayComp, (o) => o.name));
|
|
457
|
-
// 处理弹窗组件的命名问题
|
|
458
|
-
if (newNode.tag === 'u-modal') {
|
|
459
|
-
Object.assign(newNode, {
|
|
460
|
-
name: utils.unique('saveModal1', existingNames as any),
|
|
461
|
-
});
|
|
462
|
-
}
|
|
463
|
-
|
|
464
|
-
traverseMergeNode(this, newNode);
|
|
465
|
-
~index && this.parent.children.splice(index + 1, 0, newNode);
|
|
466
|
-
this.parent.children.forEach((item, index) => {
|
|
467
|
-
item._posIndex = index;
|
|
468
|
-
});
|
|
469
|
-
|
|
470
|
-
try {
|
|
471
|
-
await newNode.create();
|
|
472
|
-
} catch {
|
|
473
|
-
~index && this.parent.children.splice(index + 1, 1);
|
|
474
|
-
this.parent.children.forEach((item, index) => {
|
|
475
|
-
item._posIndex = index;
|
|
476
|
-
});
|
|
477
|
-
}
|
|
478
|
-
}
|
|
479
|
-
/**
|
|
480
|
-
* 添加子元素
|
|
481
|
-
* @param child
|
|
482
|
-
*/
|
|
483
|
-
addChild(child: string | Element, actionOptions?: ActionOptions) {
|
|
484
|
-
if (typeof child === 'string') {
|
|
485
|
-
child = Element.fromHTML(child, this, this.view);
|
|
486
|
-
}
|
|
487
|
-
if (isPlainObject(child)) {
|
|
488
|
-
child = Element.from(child, this, this.view);
|
|
489
|
-
}
|
|
490
|
-
if (!this.children.includes(child)) {
|
|
491
|
-
const index = child._posIndex === undefined ? this.children.length : child._posIndex;
|
|
492
|
-
this.children.splice(index, 0, child);
|
|
493
|
-
}
|
|
494
|
-
return child.create(undefined, actionOptions);
|
|
495
|
-
}
|
|
496
|
-
/**
|
|
497
|
-
* 删除子元素
|
|
498
|
-
* @param child
|
|
499
|
-
*/
|
|
500
|
-
removeChild(child: Element, actionOptions?: ActionOptions) {
|
|
501
|
-
if (isPlainObject(child)) {
|
|
502
|
-
child = this.children.find((item) => item.id === child.id);
|
|
503
|
-
}
|
|
504
|
-
return child.delete(undefined, actionOptions);
|
|
505
|
-
}
|
|
506
|
-
getElementTitle() {
|
|
507
|
-
const currentNode = config.allNodesAPI?.[this.tag];
|
|
508
|
-
return currentNode?.title || this.tag;
|
|
509
|
-
}
|
|
510
|
-
/**
|
|
511
|
-
* 设置组件名称
|
|
512
|
-
*/
|
|
513
|
-
@action('设置组件名称')
|
|
514
|
-
async setName(name: string) {
|
|
515
|
-
const oldName = this.name;
|
|
516
|
-
this.assign({ name });
|
|
517
|
-
await this.update(undefined, {
|
|
518
|
-
actionDesc: `设置组件"${this.getElementTitle()}"的名称为"${name}"`,
|
|
519
|
-
});
|
|
520
|
-
|
|
521
|
-
if (!(window as any).globalData.hasUserCenter) {
|
|
522
|
-
// 同步权限
|
|
523
|
-
new Nuims({
|
|
524
|
-
domainName: this.view.page.service.app.name,
|
|
525
|
-
element: this,
|
|
526
|
-
}).editResourceFromResourceValue(oldName ? `${this.view.tempPath}/${oldName}` : null);
|
|
527
|
-
}
|
|
528
|
-
|
|
529
|
-
this.view && this.view.emit('change');
|
|
530
|
-
if (this.view && this.view.page && this.view.page.service) {
|
|
531
|
-
this.view.page.service.emit('vertexIdToNameChange', this.id, this.name);
|
|
532
|
-
}
|
|
533
|
-
}
|
|
534
|
-
|
|
535
|
-
/**
|
|
536
|
-
* 更新描述信息
|
|
537
|
-
* @param description
|
|
538
|
-
*/
|
|
539
|
-
async setDescription(description: string) {
|
|
540
|
-
this.assign({ description });
|
|
541
|
-
await this.update(undefined, {
|
|
542
|
-
actionDesc: `设置组件"${this.getElementTitle()}"的描述为"${description}"`,
|
|
543
|
-
});
|
|
544
|
-
|
|
545
|
-
this.view && this.view.emit('change');
|
|
546
|
-
if (this.view && this.view.page && this.view.page.service) {
|
|
547
|
-
this.view.page.service.emit('vertexIdToNameChange', this.id, this.name);
|
|
548
|
-
}
|
|
549
|
-
}
|
|
550
|
-
/**
|
|
551
|
-
* 添加组件属性
|
|
552
|
-
*/
|
|
553
|
-
@action('添加组件属性')
|
|
554
|
-
async addAttr(attr: Attr, actionOptions?: ActionOptions) {
|
|
555
|
-
if (isPlainObject(attr)) {
|
|
556
|
-
attr = Attr.from(attr, this);
|
|
557
|
-
}
|
|
558
|
-
if (!this.attrList.includes(attr))
|
|
559
|
-
this.attrList.push(attr);
|
|
560
|
-
|
|
561
|
-
await attr.create(undefined, Object.assign({
|
|
562
|
-
actionDesc: `添加组件"${this.getElementTitle()}"属性"${attr.name}"`,
|
|
563
|
-
}, actionOptions));
|
|
564
|
-
}
|
|
565
|
-
/**
|
|
566
|
-
* 删除组件属性
|
|
567
|
-
*/
|
|
568
|
-
@action('删除组件属性')
|
|
569
|
-
async deleteAttr(attr: Attr, actionOptions?: ActionOptions) {
|
|
570
|
-
if (!attr)
|
|
571
|
-
throw Error(`该组件"${this.getElementTitle()}"没有属性"${attr.name}"`);
|
|
572
|
-
if (isPlainObject(attr))
|
|
573
|
-
attr = this.attrList.find((item) => item.id === attr.id);
|
|
574
|
-
|
|
575
|
-
await attr.delete(undefined, Object.assign({
|
|
576
|
-
actionDesc: `删除组件"${this.getElementTitle()}"属性"${attr.name}"`,
|
|
577
|
-
}, actionOptions));
|
|
578
|
-
}
|
|
579
|
-
/**
|
|
580
|
-
* 获取组件属性
|
|
581
|
-
*/
|
|
582
|
-
getAttr(name: string) {
|
|
583
|
-
return this.attrList.find((attr) => attr.name === name);
|
|
584
|
-
}
|
|
585
|
-
/**
|
|
586
|
-
* 设置组件属性
|
|
587
|
-
*/
|
|
588
|
-
@action('设置组件属性')
|
|
589
|
-
async setAttr(name: string, type: 'string' | 'static' | 'dynamic', value?: any) {
|
|
590
|
-
let attr = this.getAttr(name);
|
|
591
|
-
//
|
|
592
|
-
if (value !== undefined) {
|
|
593
|
-
if (typeof value !== 'string')
|
|
594
|
-
value = JSON.stringify(value);
|
|
595
|
-
|
|
596
|
-
if (attr) {
|
|
597
|
-
attr.assign({
|
|
598
|
-
type,
|
|
599
|
-
value,
|
|
600
|
-
});
|
|
601
|
-
await attr.update(undefined, {
|
|
602
|
-
actionDesc: `设置组件"${this.getElementTitle()}"属性"${attr.name}"的值为"${attr.value}"`,
|
|
603
|
-
}).catch(catchFn(this.view));
|
|
604
|
-
} else {
|
|
605
|
-
attr = Attr.from({
|
|
606
|
-
name,
|
|
607
|
-
type,
|
|
608
|
-
value,
|
|
609
|
-
elementId: this.id,
|
|
610
|
-
}, this);
|
|
611
|
-
await attr.create(undefined, {
|
|
612
|
-
actionDesc: `设置组件"${this.getElementTitle()}"属性"${attr.name}"的值为"${attr.value}"`,
|
|
613
|
-
}).catch(catchFn(this.view));
|
|
614
|
-
this.attrList.push(attr);
|
|
615
|
-
}
|
|
616
|
-
}
|
|
617
|
-
|
|
618
|
-
this.view && this.view.emit('change');
|
|
619
|
-
}
|
|
620
|
-
/**
|
|
621
|
-
* 添加组件事件
|
|
622
|
-
*/
|
|
623
|
-
@action('添加组件事件')
|
|
624
|
-
async addEvent(data: Event, actionOptions?: ActionOptions) {
|
|
625
|
-
// (data as any).element = this;
|
|
626
|
-
let event = new Event(data);
|
|
627
|
-
|
|
628
|
-
await event.create(undefined, Object.assign({
|
|
629
|
-
actionDesc: `添加组件"${this.getElementTitle()}"事件"${event.name}"`,
|
|
630
|
-
}, actionOptions)).catch(catchFn(this.view));
|
|
631
|
-
event = Event.from(event, this);
|
|
632
|
-
this.eventList.push(event);
|
|
633
|
-
|
|
634
|
-
this.view && this.view.emit('change');
|
|
635
|
-
|
|
636
|
-
await config.defaultApp?.history.load();
|
|
637
|
-
config.defaultApp?.emit('saved');
|
|
638
|
-
|
|
639
|
-
return event;
|
|
640
|
-
}
|
|
641
|
-
/**
|
|
642
|
-
* 删除组件属性
|
|
643
|
-
*/
|
|
644
|
-
@action('删除组件事件')
|
|
645
|
-
async deleteEvent(event: Event, actionOptions?: ActionOptions) {
|
|
646
|
-
if (!event)
|
|
647
|
-
throw Error(`该组件"${this.getElementTitle()}"没有事件"${event.name}"`);
|
|
648
|
-
if (isPlainObject(event))
|
|
649
|
-
event = this.eventList.find((item) => item.id === event.id);
|
|
650
|
-
|
|
651
|
-
await event.delete(undefined, Object.assign({
|
|
652
|
-
actionDesc: `删除组件"${this.getElementTitle()}"事件"${event.name}"`,
|
|
653
|
-
}, actionOptions)).catch(catchFn(this.view));
|
|
654
|
-
const index = this.eventList.indexOf(event);
|
|
655
|
-
~index && this.eventList.splice(index, 1);
|
|
656
|
-
|
|
657
|
-
this.view && this.view.emit('change');
|
|
658
|
-
|
|
659
|
-
await config.defaultApp?.history.load();
|
|
660
|
-
config.defaultApp?.emit('saved');
|
|
661
|
-
}
|
|
662
|
-
/**
|
|
663
|
-
* 添加组件指令
|
|
664
|
-
*/
|
|
665
|
-
@action('添加组件指令')
|
|
666
|
-
async addDirective(data: Directive, actionOptions?: ActionOptions) {
|
|
667
|
-
// (data as any).element = this;
|
|
668
|
-
const directive = new Directive(data);
|
|
669
|
-
await directive.create(undefined, Object.assign({
|
|
670
|
-
actionDesc: `添加组件"${this.getElementTitle()}"指令"${directive.name}"`,
|
|
671
|
-
}, actionOptions)).catch(catchFn(this.view));
|
|
672
|
-
this.directiveList.push(Directive.from(directive, this));
|
|
673
|
-
|
|
674
|
-
this.view && this.view.emit('change');
|
|
675
|
-
}
|
|
676
|
-
/**
|
|
677
|
-
* 删除组件属性
|
|
678
|
-
*/
|
|
679
|
-
@action('删除组件指令')
|
|
680
|
-
async deleteDirective(directive: Directive, actionOptions?: ActionOptions) {
|
|
681
|
-
if (!directive)
|
|
682
|
-
throw Error(`该组件"${this.getElementTitle()}"没有指令"${directive.name}"`);
|
|
683
|
-
if (isPlainObject(directive))
|
|
684
|
-
directive = this.directiveList.find((item) => item.id === directive.id);
|
|
685
|
-
|
|
686
|
-
await directive.delete(undefined, Object.assign({
|
|
687
|
-
actionDesc: `删除组件"${this.getElementTitle()}"属性"${directive.name}"`,
|
|
688
|
-
}, actionOptions)).catch(catchFn(this.view));
|
|
689
|
-
const index = this.directiveList.indexOf(directive);
|
|
690
|
-
~index && this.directiveList.splice(index, 1);
|
|
691
|
-
|
|
692
|
-
this.view && this.view.emit('change');
|
|
693
|
-
}
|
|
694
|
-
/**
|
|
695
|
-
* 转换成 Vue 的模板格式
|
|
696
|
-
*/
|
|
697
|
-
toVue(options?: ElementToVueOptions) {
|
|
698
|
-
options = Object.assign({
|
|
699
|
-
indentStyle: 'space',
|
|
700
|
-
tabSize: 4,
|
|
701
|
-
indentLevel: 0,
|
|
702
|
-
aslIdAttr: false,
|
|
703
|
-
nodePathAttr: false,
|
|
704
|
-
getExtraParts: () => [],
|
|
705
|
-
attrFormat: (attr: Attr | Event | Directive, element?: Element, defaultResult?: string) => defaultResult,
|
|
706
|
-
}, options);
|
|
707
|
-
const tabString = ' '.repeat(options.tabSize * options.indentLevel);
|
|
708
|
-
const insideTabString = ' '.repeat(options.tabSize * (options.indentLevel + 1));
|
|
709
|
-
let shouldIndent = true;
|
|
710
|
-
|
|
711
|
-
const content: string = !this.children ? '' : this.children.map((element) => {
|
|
712
|
-
const childOptions = Object.assign({}, options);
|
|
713
|
-
childOptions.indentLevel++;
|
|
714
|
-
return (shouldIndent ? '\n' + insideTabString : '') + element.toVue(childOptions);
|
|
715
|
-
}).join('');
|
|
716
|
-
if (!content.length)
|
|
717
|
-
shouldIndent = false;
|
|
718
|
-
|
|
719
|
-
const parts = [];
|
|
720
|
-
if (options.aslIdAttr) {
|
|
721
|
-
if (options.aslIdAttr === true)
|
|
722
|
-
options.aslIdAttr = 'asl-id';
|
|
723
|
-
parts.push(`${options.aslIdAttr}="${this.id}"`);
|
|
724
|
-
}
|
|
725
|
-
if (options.nodePathAttr) {
|
|
726
|
-
// 注入 asl 的 node-path
|
|
727
|
-
parts.push(`vusion-node-path="${this.nodePath}"`);
|
|
728
|
-
}
|
|
729
|
-
|
|
730
|
-
this.slotTarget && parts.push(`#${this.slotTarget}` + (this.slotScope ? `="${this.slotScope}"` : ''));
|
|
731
|
-
this.name && parts.push(`ref="${this.name}"`);
|
|
732
|
-
this.staticClass && parts.push(`class="${this.staticClass}"`);
|
|
733
|
-
this.staticStyle && parts.push(`style="${this.staticStyle}"`);
|
|
734
|
-
|
|
735
|
-
const { finalCode } = options;
|
|
736
|
-
[].concat(this.attrList, this.directiveList, this.eventList)
|
|
737
|
-
.forEach((attr: Attr | Directive | Event) => {
|
|
738
|
-
const result = options.attrFormat(attr, this, attr.toVue(this, finalCode));
|
|
739
|
-
result && parts.push(result);
|
|
740
|
-
});
|
|
741
|
-
|
|
742
|
-
options.getExtraParts(this).forEach((part) => parts.push(part));
|
|
743
|
-
|
|
744
|
-
let partsLength = 0;
|
|
745
|
-
let partsString = '';
|
|
746
|
-
parts.forEach((part) => {
|
|
747
|
-
if (partsLength >= 120 || part.length >= 120) {
|
|
748
|
-
partsString += '\n' + tabString + ' '.repeat(3); // ' '.repeat(el.tag.length + 1);
|
|
749
|
-
partsLength = 0;
|
|
750
|
-
}
|
|
751
|
-
partsString += ' ' + part;
|
|
752
|
-
partsLength += part.length;
|
|
753
|
-
});
|
|
754
|
-
|
|
755
|
-
return `<${this.tag}${partsString.length ? partsString : ''}>` + content + (shouldIndent ? '\n' + tabString : '') + `</${this.tag}>`;
|
|
756
|
-
}
|
|
757
|
-
/**
|
|
758
|
-
* 转换成设计器中使用的 Vue 文件
|
|
759
|
-
* @param options
|
|
760
|
-
*/
|
|
761
|
-
toDesignerVue(options?: ElementToVueOptions) {
|
|
762
|
-
options = Object.assign({
|
|
763
|
-
nodePathAttr: true,
|
|
764
|
-
attrFormat: (attr: Attr | Directive | Event, el: Element, defaultResult?: string) => {
|
|
765
|
-
if (attr.level === LEVEL_ENUM.event || attr.level === LEVEL_ENUM.directive)
|
|
766
|
-
return false;
|
|
767
|
-
if (attr.level === LEVEL_ENUM.attr) {
|
|
768
|
-
const api = config.allNodesAPI[el.tag];
|
|
769
|
-
const apiOfAttr = api && api.attrs && api.attrs.find((_attr) => _attr.name === attr.name);
|
|
770
|
-
if (apiOfAttr && apiOfAttr['designer-value'] !== undefined) {
|
|
771
|
-
let designerValue = apiOfAttr['designer-value'];
|
|
772
|
-
if (typeof designerValue === 'string') {
|
|
773
|
-
designerValue = designerValue.replace(/"/g, '\'');
|
|
774
|
-
}
|
|
775
|
-
try {
|
|
776
|
-
json5.parse(designerValue);
|
|
777
|
-
return `:${attr.name}="${designerValue}"`;
|
|
778
|
-
} catch (e) {
|
|
779
|
-
return `${attr.name}="${designerValue}"`;
|
|
780
|
-
}
|
|
781
|
-
}
|
|
782
|
-
if ((attr as Attr).type === 'dynamic'
|
|
783
|
-
&& !(el.tag === 'u-cascade-select' && attr.name === 'categories'))
|
|
784
|
-
return defaultResult.replace(/:?(\w+)(?:.*?)="(.*)"/, (m, name, value) => {
|
|
785
|
-
try {
|
|
786
|
-
const tempValue = json5.parse(value);
|
|
787
|
-
if (typeof tempValue === 'boolean' || typeof tempValue === 'number') { // 简单类型走属性
|
|
788
|
-
return `:${name}="${value.replace(/"/g, '\'')}"`;
|
|
789
|
-
}
|
|
790
|
-
} catch (e) {
|
|
791
|
-
if (apiOfAttr && !apiOfAttr.type.includes('string'))
|
|
792
|
-
return '';
|
|
793
|
-
}
|
|
794
|
-
return `${name}="{{ ${value.replace(/"/g, '\'')} }}"`;
|
|
795
|
-
});
|
|
796
|
-
else
|
|
797
|
-
return defaultResult;
|
|
798
|
-
}
|
|
799
|
-
return false;
|
|
800
|
-
},
|
|
801
|
-
getExtraParts: (el: Element) => {
|
|
802
|
-
const parts = [];
|
|
803
|
-
|
|
804
|
-
const api = config.allNodesAPI[el.tag];
|
|
805
|
-
const emptySlot = api && api.slots && api.slots.find((slot) => slot.name === 'default' && slot['empty-background']);
|
|
806
|
-
if (!el.children.length && emptySlot) {
|
|
807
|
-
let addEmpty = true;
|
|
808
|
-
if (el.tag === 'u-grid-view'
|
|
809
|
-
|| el.tag === 'u-list-view'
|
|
810
|
-
|| el.tag === 'van-list-view') {
|
|
811
|
-
const hasDataSource = el.attrList.find((attr) => attr.name === 'data-source');
|
|
812
|
-
addEmpty = !hasDataSource;
|
|
813
|
-
}
|
|
814
|
-
addEmpty && parts.push(`vusion-empty-background="${emptySlot['empty-background']}"`);
|
|
815
|
-
}
|
|
816
|
-
|
|
817
|
-
return parts;
|
|
818
|
-
},
|
|
819
|
-
}, options);
|
|
820
|
-
return this.toVue(options);
|
|
821
|
-
}
|
|
822
|
-
/**
|
|
823
|
-
* 同 toVue 方法
|
|
824
|
-
* @param options 缩进等选项
|
|
825
|
-
*/
|
|
826
|
-
toHTML(options?: ElementToVueOptions) {
|
|
827
|
-
return this.toVue(options);
|
|
828
|
-
}
|
|
829
|
-
/**
|
|
830
|
-
* 根据标签查找元素
|
|
831
|
-
* @param tag
|
|
832
|
-
*/
|
|
833
|
-
findElementByTag(tag: string): Element {
|
|
834
|
-
if (this.tag === tag)
|
|
835
|
-
return this;
|
|
836
|
-
else {
|
|
837
|
-
for (const child of this.children) {
|
|
838
|
-
const result = child.findElementByTag(tag);
|
|
839
|
-
if (result)
|
|
840
|
-
return result;
|
|
841
|
-
}
|
|
842
|
-
}
|
|
843
|
-
}
|
|
844
|
-
/**
|
|
845
|
-
* 根据属性查找元素
|
|
846
|
-
* @param name
|
|
847
|
-
* @param value
|
|
848
|
-
*/
|
|
849
|
-
findElementByAttr(name: string, value: string): Element {
|
|
850
|
-
if (this.attrList.find((attr) => attr.name === name && attr.value === value))
|
|
851
|
-
return this;
|
|
852
|
-
else {
|
|
853
|
-
for (const child of this.children) {
|
|
854
|
-
const result = child.findElementByAttr(name, value);
|
|
855
|
-
if (result)
|
|
856
|
-
return result;
|
|
857
|
-
}
|
|
858
|
-
}
|
|
859
|
-
}
|
|
860
|
-
|
|
861
|
-
findElementsByTag(tag: string): Array<any> {
|
|
862
|
-
let existingNames: Array<any> = [];
|
|
863
|
-
existingNames = this.findElementsByTagCurrent(tag, existingNames);
|
|
864
|
-
this.findElementsByTagInChildren(this.view.$html.children, tag, existingNames);
|
|
865
|
-
return existingNames;
|
|
866
|
-
}
|
|
867
|
-
|
|
868
|
-
findElementsByTagCurrent(tag: string, existingNames: Array<any>) {
|
|
869
|
-
if (this.tag === tag) {
|
|
870
|
-
existingNames.push(this);
|
|
871
|
-
}
|
|
872
|
-
return existingNames;
|
|
873
|
-
}
|
|
874
|
-
|
|
875
|
-
findElementsByTagInChildren(children: Array<any>, tag: string, existingNames: Array<any>) {
|
|
876
|
-
for (const child of children) {
|
|
877
|
-
const result = child.findElementByTag(tag);
|
|
878
|
-
|
|
879
|
-
if (child.children) {
|
|
880
|
-
this.findElementsByTagInChildren(child.children, tag, existingNames);
|
|
881
|
-
}
|
|
882
|
-
if (result) {
|
|
883
|
-
existingNames.push(result);
|
|
884
|
-
}
|
|
885
|
-
}
|
|
886
|
-
}
|
|
887
|
-
|
|
888
|
-
// 初始化组件名
|
|
889
|
-
public initElementName() {
|
|
890
|
-
if (Element.ignoreTag.includes(this.tag)) {
|
|
891
|
-
return;
|
|
892
|
-
}
|
|
893
|
-
const name = this.genElementName();
|
|
894
|
-
this.assign({ name });
|
|
895
|
-
this.view.addElementName(name);
|
|
896
|
-
}
|
|
897
|
-
|
|
898
|
-
// 生成新的组件名
|
|
899
|
-
public genElementName(): string {
|
|
900
|
-
const compNameSet = this.view.elementNameSet;
|
|
901
|
-
const tagName = this.tag.replace(Element.TAG_NAME_PREFIX_REG, '').replace(/-/g, '_');
|
|
902
|
-
const componentName = utils.unique(tagName + '1', compNameSet);
|
|
903
|
-
return componentName;
|
|
904
|
-
}
|
|
905
|
-
|
|
906
|
-
// 递归生成组件名
|
|
907
|
-
public deepRenameElements(): void {
|
|
908
|
-
return this.traverseChildren((ele: Element) => {
|
|
909
|
-
ele.initElementName();
|
|
910
|
-
});
|
|
911
|
-
}
|
|
912
|
-
|
|
913
|
-
// 递归删除组件名的缓存
|
|
914
|
-
public deepRemoveElementsName(): void {
|
|
915
|
-
return this.traverseChildren((ele: Element) => {
|
|
916
|
-
this.view.removeElementName(ele.name);
|
|
917
|
-
});
|
|
918
|
-
}
|
|
919
|
-
|
|
920
|
-
// 递归遍历组件
|
|
921
|
-
public traverseChildren(cb: (ele: Element) => void): void {
|
|
922
|
-
utils.traverse((current) => {
|
|
923
|
-
cb(current.node);
|
|
924
|
-
}, { node: this });
|
|
925
|
-
}
|
|
926
|
-
|
|
927
|
-
/**
|
|
928
|
-
* 从 Vue 的 ASTNode 转换成 ASL 元素
|
|
929
|
-
* @param astNode Vue 的 ASTNode
|
|
930
|
-
*/
|
|
931
|
-
private static _fromASTNode(astNode: compiler.ASTElement, context?: ParseContext): Element {
|
|
932
|
-
// 临时处理组件的 text
|
|
933
|
-
//h5-mock
|
|
934
|
-
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)
|
|
935
|
-
&& astNode.children.length === 1 && astNode.children[0].type === 3) {
|
|
936
|
-
astNode.attrs = astNode.attrs || [];
|
|
937
|
-
astNode.attrs.push({ name: 'text', value: JSON.stringify(astNode.children[0].text) });
|
|
938
|
-
astNode.children = [];
|
|
939
|
-
}
|
|
940
|
-
|
|
941
|
-
// 将 scopedSlots 合并到 children 中
|
|
942
|
-
if (astNode.scopedSlots) {
|
|
943
|
-
astNode.children = astNode.children || [];
|
|
944
|
-
Object.keys(astNode.scopedSlots).forEach((key) => {
|
|
945
|
-
if (!astNode.children.find((child) => key === (child as compiler.ASTElement).slotTarget))
|
|
946
|
-
astNode.children.unshift(astNode.scopedSlots[key]);
|
|
947
|
-
});
|
|
948
|
-
delete astNode.scopedSlots;
|
|
949
|
-
}
|
|
950
|
-
|
|
951
|
-
// 提示不支持的字段
|
|
952
|
-
[
|
|
953
|
-
'component', 'inlineTemplate', 'pre', 'ns',
|
|
954
|
-
'transition', 'transitionOnAppear', 'transitionMode',
|
|
955
|
-
'slotName', 'classBinding', 'styleBinding',
|
|
956
|
-
].forEach((key) => {
|
|
957
|
-
if ((astNode as any)[key])
|
|
958
|
-
console.warn(`[warn] Element NASL unsupports '${key}' field in node `, astNode);
|
|
959
|
-
});
|
|
960
|
-
|
|
961
|
-
let element: Element;
|
|
962
|
-
if (astNode.type === 1) {
|
|
963
|
-
if (astNode.tag === 'router-view') {
|
|
964
|
-
if (config.scope === 'h5') {
|
|
965
|
-
astNode.tag = 'van-router-view';
|
|
966
|
-
} else {
|
|
967
|
-
astNode.tag = 'u-router-view';
|
|
968
|
-
}
|
|
969
|
-
}
|
|
970
|
-
|
|
971
|
-
element = new Element({
|
|
972
|
-
tag: astNode.tag,
|
|
973
|
-
name: astNode.attrsMap.ref,
|
|
974
|
-
staticClass: astNode.attrsMap.class,
|
|
975
|
-
staticStyle: astNode.attrsMap.style,
|
|
976
|
-
slotTarget: astNode.slotTarget && json5.parse(astNode.slotTarget),
|
|
977
|
-
slotScope: astNode.slotScope === '_empty_' ? '' : astNode.slotScope,
|
|
978
|
-
children: astNode.children as unknown as Array<Element>,
|
|
979
|
-
});
|
|
980
|
-
|
|
981
|
-
astNode.attrs && astNode.attrs.forEach((oldAttr) => {
|
|
982
|
-
let attr: Attr;
|
|
983
|
-
if (oldAttr.value === '""' && (oldAttr as any).end - (oldAttr as any).start === oldAttr.name.length) {
|
|
984
|
-
attr = Attr.from({
|
|
985
|
-
type: 'static',
|
|
986
|
-
name: oldAttr.name,
|
|
987
|
-
value: 'true',
|
|
988
|
-
}, element);
|
|
989
|
-
} else {
|
|
990
|
-
try {
|
|
991
|
-
const tmp = json5.parse(oldAttr.value);
|
|
992
|
-
attr = Attr.from({
|
|
993
|
-
type: typeof tmp === 'string' ? 'string' : 'static',
|
|
994
|
-
name: oldAttr.name,
|
|
995
|
-
value: typeof tmp === 'string' ? tmp : oldAttr.value,
|
|
996
|
-
}, element);
|
|
997
|
-
} catch (e) {
|
|
998
|
-
const expression = <ExpressionNode> this._parseExpression(oldAttr.value, context);
|
|
999
|
-
attr = Attr.from({
|
|
1000
|
-
type: 'dynamic',
|
|
1001
|
-
name: oldAttr.name,
|
|
1002
|
-
value: expression ? '' : oldAttr.value,
|
|
1003
|
-
expression,
|
|
1004
|
-
}, element);
|
|
1005
|
-
if (astNode.attrsMap[`:${attr.name}.sync`]) {
|
|
1006
|
-
attr.assign({ sync: true });
|
|
1007
|
-
}
|
|
1008
|
-
}
|
|
1009
|
-
}
|
|
1010
|
-
element.attrList.push(attr);
|
|
1011
|
-
});
|
|
1012
|
-
|
|
1013
|
-
// compiler 处理:value.sync 时会加上update:value事件,需要过滤
|
|
1014
|
-
astNode.events && Object.keys(astNode.events).filter((name) => !name.startsWith('update:')).forEach((name) => {
|
|
1015
|
-
const oldEvent = astNode.events[name] as compiler.ASTElementHandler;
|
|
1016
|
-
const value = oldEvent.value.split('(')[0];
|
|
1017
|
-
element.eventList.push(Event.from({
|
|
1018
|
-
name,
|
|
1019
|
-
value,
|
|
1020
|
-
logicId: value[0] === '$' ? undefined : value,
|
|
1021
|
-
}, element));
|
|
1022
|
-
});
|
|
1023
|
-
|
|
1024
|
-
astNode.directives && astNode.directives.forEach((directive) => {
|
|
1025
|
-
if (directive.name === 'model') {
|
|
1026
|
-
const valueAttr = astNode.attrs && astNode.attrs.find((attr) => attr.name === 'value');
|
|
1027
|
-
if (!valueAttr) {
|
|
1028
|
-
const expression = <ExpressionNode> this._parseExpression(directive.value, context);
|
|
1029
|
-
element.attrList.push(Attr.from({
|
|
1030
|
-
type: 'dynamic',
|
|
1031
|
-
name: 'value',
|
|
1032
|
-
value: expression ? '' : directive.value,
|
|
1033
|
-
expression,
|
|
1034
|
-
sync: true,
|
|
1035
|
-
}, element));
|
|
1036
|
-
}
|
|
1037
|
-
} else {
|
|
1038
|
-
const expression = <ExpressionNode> this._parseExpression(directive.value, context);
|
|
1039
|
-
if(!expression || expression.type === 'StringLiteral') { // 处理类似情况:v-auth="''",v-tooltip="''"
|
|
1040
|
-
element.directiveList.push(Directive.from({
|
|
1041
|
-
type: 'string',
|
|
1042
|
-
name: directive.name,
|
|
1043
|
-
rawName: directive.rawName,
|
|
1044
|
-
value: directive.value && directive.value.replace(/'/g, ''),
|
|
1045
|
-
arg: directive.arg,
|
|
1046
|
-
modifiers: directive.modifiers,
|
|
1047
|
-
}, element));
|
|
1048
|
-
} else {
|
|
1049
|
-
element.directiveList.push(Directive.from({
|
|
1050
|
-
type: 'dynamic',
|
|
1051
|
-
name: directive.name,
|
|
1052
|
-
rawName: directive.rawName,
|
|
1053
|
-
value: '',
|
|
1054
|
-
expression,
|
|
1055
|
-
arg: directive.arg,
|
|
1056
|
-
modifiers: directive.modifiers,
|
|
1057
|
-
}, element));
|
|
1058
|
-
}
|
|
1059
|
-
}
|
|
1060
|
-
});
|
|
1061
|
-
|
|
1062
|
-
if (astNode.if) {
|
|
1063
|
-
element.directiveList.push(Directive.from({
|
|
1064
|
-
type: 'dynamic',
|
|
1065
|
-
name: 'if',
|
|
1066
|
-
rawName: 'v-if',
|
|
1067
|
-
value: '',
|
|
1068
|
-
expression: <ExpressionNode> this._parseExpression(astNode.if, context),
|
|
1069
|
-
}, element));
|
|
1070
|
-
}
|
|
1071
|
-
|
|
1072
|
-
// Removed
|
|
1073
|
-
// hasBindings:
|
|
1074
|
-
// static:
|
|
1075
|
-
// staticRoot:
|
|
1076
|
-
|
|
1077
|
-
// refInFor?: boolean;
|
|
1078
|
-
|
|
1079
|
-
// if?: string;
|
|
1080
|
-
// ifProcessed?: boolean;
|
|
1081
|
-
// elseif?: string;
|
|
1082
|
-
// else?: true;
|
|
1083
|
-
// ifConditions?: ASTIfCondition[];
|
|
1084
|
-
|
|
1085
|
-
// for?: string;
|
|
1086
|
-
// forProcessed?: boolean;
|
|
1087
|
-
// key?: string;
|
|
1088
|
-
// alias?: string;
|
|
1089
|
-
// iterator1?: string;
|
|
1090
|
-
// iterator2?: string;
|
|
1091
|
-
|
|
1092
|
-
// events?: ASTElementHandlers;
|
|
1093
|
-
// nativeEvents?: ASTElementHandlers;
|
|
1094
|
-
|
|
1095
|
-
// model?: {
|
|
1096
|
-
// value: string;
|
|
1097
|
-
// callback: string;
|
|
1098
|
-
// expression: string;
|
|
1099
|
-
// };
|
|
1100
|
-
|
|
1101
|
-
// directives?: ASTDirective[];
|
|
1102
|
-
} else if (astNode.type === 2) {
|
|
1103
|
-
if (config.scope === 'h5') {
|
|
1104
|
-
element = new Element({
|
|
1105
|
-
tag: 'van-text',
|
|
1106
|
-
});
|
|
1107
|
-
} else {
|
|
1108
|
-
element = new Element({
|
|
1109
|
-
tag: 'u-text',
|
|
1110
|
-
});
|
|
1111
|
-
}
|
|
1112
|
-
const value = astNode.text.match(/{{(.*?)}}/)[1].trim();
|
|
1113
|
-
const expression = <ExpressionNode> this._parseExpression(value, context);
|
|
1114
|
-
element.attrList.push(new Attr({
|
|
1115
|
-
type: 'dynamic',
|
|
1116
|
-
name: 'text',
|
|
1117
|
-
value: expression ? '' : value,
|
|
1118
|
-
expression,
|
|
1119
|
-
element,
|
|
1120
|
-
}));
|
|
1121
|
-
} else if (astNode.type === 3) {
|
|
1122
|
-
if (config.scope === 'h5') {
|
|
1123
|
-
element = new Element({
|
|
1124
|
-
tag: 'van-text',
|
|
1125
|
-
});
|
|
1126
|
-
} else {
|
|
1127
|
-
element = new Element({
|
|
1128
|
-
tag: 'u-text',
|
|
1129
|
-
});
|
|
1130
|
-
}
|
|
1131
|
-
|
|
1132
|
-
element.attrList.push(new Attr({
|
|
1133
|
-
name: 'text',
|
|
1134
|
-
value: astNode.text,
|
|
1135
|
-
element,
|
|
1136
|
-
}));
|
|
1137
|
-
}
|
|
1138
|
-
|
|
1139
|
-
return element;
|
|
1140
|
-
}
|
|
1141
|
-
|
|
1142
|
-
/**
|
|
1143
|
-
* 解析属性中的表达式
|
|
1144
|
-
* @param value
|
|
1145
|
-
* @param $def 目前 $def 只用来查找 $def.variables 和 $def.structures
|
|
1146
|
-
* @param dataSchema
|
|
1147
|
-
*/
|
|
1148
|
-
private static _parseExpression(value: string, context: ParseContext = {}) {
|
|
1149
|
-
try {
|
|
1150
|
-
let ast = babelParser.parseExpression(value) as any;
|
|
1151
|
-
|
|
1152
|
-
utils.traverse((current) => {
|
|
1153
|
-
if (!current.node)
|
|
1154
|
-
return;
|
|
1155
|
-
current.node.level = 'expressionNode';
|
|
1156
|
-
delete current.node.loc;
|
|
1157
|
-
delete current.node.start;
|
|
1158
|
-
delete current.node.end;
|
|
1159
|
-
delete current.node.errors;
|
|
1160
|
-
delete current.node.comments;
|
|
1161
|
-
delete current.node.innerComments;
|
|
1162
|
-
delete current.node.leadingComments;
|
|
1163
|
-
delete current.node.trailingComments;
|
|
1164
|
-
if (current.node.type === 'CallExpression' && current.node.callee.object.name === '$utils') {
|
|
1165
|
-
const calleeCode = current.node.callee.property.name || current.node.callee.property.value;
|
|
1166
|
-
if (calleeCode === 'Enum') {
|
|
1167
|
-
const enumName = current.node.arguments[0] && current.node.arguments[0].value;
|
|
1168
|
-
if (enumName) {
|
|
1169
|
-
let enumNode: any;
|
|
1170
|
-
Object.keys(dataTypesMap).forEach((dataTypeKey) => {
|
|
1171
|
-
if (dataTypesMap[dataTypeKey].type === 'enum') {
|
|
1172
|
-
if (dataTypesMap[dataTypeKey].name === enumName) {
|
|
1173
|
-
enumNode = dataTypesMap[dataTypeKey];
|
|
1174
|
-
}
|
|
1175
|
-
}
|
|
1176
|
-
});
|
|
1177
|
-
if (enumNode) {
|
|
1178
|
-
const code = 'ID_' + enumNode.id;
|
|
1179
|
-
current.node.arguments[0].value = code;
|
|
1180
|
-
current.node.arguments[0].code = code;
|
|
1181
|
-
}
|
|
1182
|
-
}
|
|
1183
|
-
}
|
|
1184
|
-
Object.assign(current.node, {
|
|
1185
|
-
type: 'BuiltInFunction',
|
|
1186
|
-
value: calleeCode,
|
|
1187
|
-
calleeCode,
|
|
1188
|
-
label: '内置函数',
|
|
1189
|
-
level: 'expressionNode',
|
|
1190
|
-
builtInFuncParams: current.node.arguments.map((argument: any) => ({
|
|
1191
|
-
level: 'expressionNode',
|
|
1192
|
-
type: 'BuiltInFuncParam',
|
|
1193
|
-
name: '',
|
|
1194
|
-
builtInFuncParamValue: Object.assign({
|
|
1195
|
-
level: 'expressionNode',
|
|
1196
|
-
}, argument),
|
|
1197
|
-
})),
|
|
1198
|
-
});
|
|
1199
|
-
delete current.node.arguments;
|
|
1200
|
-
delete current.node.callee;
|
|
1201
|
-
} else if (current.node.type === 'MemberExpression') {
|
|
1202
|
-
let object = current.node.object;
|
|
1203
|
-
const properties = [current.node.property];
|
|
1204
|
-
while (object.type === 'MemberExpression') {
|
|
1205
|
-
properties.push(object.property);
|
|
1206
|
-
object = object.object;
|
|
1207
|
-
}
|
|
1208
|
-
if (object.name === 'scope') {
|
|
1209
|
-
let schema: any = {
|
|
1210
|
-
$ref: '',
|
|
1211
|
-
};
|
|
1212
|
-
if (context.dataSchema) { // 可以直接用 dataSchema,处理 mergeBlock 的情况
|
|
1213
|
-
const typeKey = '#/genericTypes/ScopeOf';
|
|
1214
|
-
schema = {
|
|
1215
|
-
type: 'genericType',
|
|
1216
|
-
typeKey,
|
|
1217
|
-
typeInstantiation: {
|
|
1218
|
-
typeName: 'ScopeOf',
|
|
1219
|
-
typeParams: [
|
|
1220
|
-
{
|
|
1221
|
-
typeParamName: 'T',
|
|
1222
|
-
typeParamValue:
|
|
1223
|
-
{
|
|
1224
|
-
$ref: context.dataSchema,
|
|
1225
|
-
typeKey: context.dataSchema,
|
|
1226
|
-
},
|
|
1227
|
-
|
|
1228
|
-
},
|
|
1229
|
-
],
|
|
1230
|
-
},
|
|
1231
|
-
};
|
|
1232
|
-
}
|
|
1233
|
-
Object.assign(object, { schema, code: object.name });
|
|
1234
|
-
}
|
|
1235
|
-
if (context && object.name) {
|
|
1236
|
-
let variable = (context.variables || []).find((variable:Variable) => variable.name === object.name);
|
|
1237
|
-
variable = variable || object;
|
|
1238
|
-
if (variable) {
|
|
1239
|
-
let schemaData = dataTypesMap[variable.schema && variable.schema.$ref];
|
|
1240
|
-
if (variable.schema && variable.schema.type === 'genericType') {
|
|
1241
|
-
const genericClass = dataTypesMap[variable.schema.typeKey];
|
|
1242
|
-
let propertyList: any = [];
|
|
1243
|
-
if (genericClass) {
|
|
1244
|
-
propertyList = cloneDeep(genericClass.propertyList);
|
|
1245
|
-
propertyList = propertyList.map((property: any) => {
|
|
1246
|
-
if (property.type === 'genericParam' && variable.schema.typeInstantiation) {
|
|
1247
|
-
const param = variable.schema.typeInstantiation.typeParams.find((typeParam: any) => typeParam.typeParamName === property.typeParamName);
|
|
1248
|
-
if (param) {
|
|
1249
|
-
property = Object.assign({ name: property.name }, param.typeParamValue);
|
|
1250
|
-
}
|
|
1251
|
-
}
|
|
1252
|
-
return property;
|
|
1253
|
-
});
|
|
1254
|
-
}
|
|
1255
|
-
schemaData = { propertyList };
|
|
1256
|
-
}
|
|
1257
|
-
|
|
1258
|
-
// 这部分功能还不稳定,先单独处理一下
|
|
1259
|
-
if (object.name === 'scope' && properties.length >= 3) {
|
|
1260
|
-
const tempStructure = context.structures.find((structure: any) => context.dataSchema === structure.schemaRef || context.dataSchema === structure.name);
|
|
1261
|
-
if (tempStructure && !tempStructure.id) {
|
|
1262
|
-
properties.pop(); // scope.item 那一项
|
|
1263
|
-
let property = properties.pop();
|
|
1264
|
-
property.schemaRef = tempStructure.name + '.' + property.name;
|
|
1265
|
-
|
|
1266
|
-
const originProp = tempStructure.propertyList.find((tempProp) => tempProp.name === property.name);
|
|
1267
|
-
schemaData = originProp && dataTypesMap[originProp.$ref];
|
|
1268
|
-
property = properties.pop();
|
|
1269
|
-
while (property && schemaData) {
|
|
1270
|
-
if (schemaData.propertyList) {
|
|
1271
|
-
const originProp = schemaData.propertyList.find((tempProp) => tempProp.name === property.name);
|
|
1272
|
-
if (originProp) {
|
|
1273
|
-
if (originProp.id) {
|
|
1274
|
-
Object.assign(property, {
|
|
1275
|
-
schemaRef: '#/' + originProp.id,
|
|
1276
|
-
code: `ID_${originProp.id}`,
|
|
1277
|
-
});
|
|
1278
|
-
}
|
|
1279
|
-
schemaData = dataTypesMap[originProp.$ref];
|
|
1280
|
-
}
|
|
1281
|
-
}
|
|
1282
|
-
property = properties.pop();
|
|
1283
|
-
}
|
|
1284
|
-
} else if (tempStructure && tempStructure.id && context.recordProperty) {
|
|
1285
|
-
properties.pop(); // scope.item 那一项
|
|
1286
|
-
let property = properties.pop();
|
|
1287
|
-
property.schemaRef = context.recordProperty.$ref;
|
|
1288
|
-
property.code = `ID_${context.recordProperty.id}`;
|
|
1289
|
-
|
|
1290
|
-
const originProp = context.recordProperty;
|
|
1291
|
-
schemaData = originProp && dataTypesMap[originProp.$ref];
|
|
1292
|
-
property = properties.pop();
|
|
1293
|
-
while (property && schemaData) {
|
|
1294
|
-
if (schemaData.propertyList) {
|
|
1295
|
-
const originProp = schemaData.propertyList.find((tempProp) => tempProp.name === property.name);
|
|
1296
|
-
if (originProp) {
|
|
1297
|
-
if (originProp.id) {
|
|
1298
|
-
Object.assign(property, {
|
|
1299
|
-
schemaRef: `#/${originProp.id}`,
|
|
1300
|
-
code: `ID_${originProp.id}`,
|
|
1301
|
-
});
|
|
1302
|
-
}
|
|
1303
|
-
schemaData = dataTypesMap[originProp.$ref];
|
|
1304
|
-
}
|
|
1305
|
-
}
|
|
1306
|
-
property = properties.pop();
|
|
1307
|
-
}
|
|
1308
|
-
}
|
|
1309
|
-
} else {
|
|
1310
|
-
let property = properties.pop();
|
|
1311
|
-
while (property && schemaData) {
|
|
1312
|
-
if (schemaData.propertyList) {
|
|
1313
|
-
const originProp = schemaData.propertyList.find((tempProp) => tempProp.name === property.name);
|
|
1314
|
-
if (originProp) {
|
|
1315
|
-
if (originProp.id) {
|
|
1316
|
-
Object.assign(property, {
|
|
1317
|
-
schemaRef: '#/' + originProp.id,
|
|
1318
|
-
});
|
|
1319
|
-
}
|
|
1320
|
-
schemaData = dataTypesMap[originProp.$ref];
|
|
1321
|
-
}
|
|
1322
|
-
}
|
|
1323
|
-
property = properties.pop();
|
|
1324
|
-
}
|
|
1325
|
-
}
|
|
1326
|
-
}
|
|
1327
|
-
}
|
|
1328
|
-
|
|
1329
|
-
const property = current.node.property;
|
|
1330
|
-
if (property.type === 'StringLiteral') {
|
|
1331
|
-
// 区分单引号的变量和纯文字
|
|
1332
|
-
// $utils['FormatDate']()
|
|
1333
|
-
// 把 'FormatDate' 变成 Identifier, 因为内置函数名是通过选择出来的;如果不改,会展示成输入框
|
|
1334
|
-
if (property.extra.raw.includes("'")) {
|
|
1335
|
-
property.type = 'Identifier';
|
|
1336
|
-
property.name = ast.value;
|
|
1337
|
-
property.level = 'expressionNode';
|
|
1338
|
-
}
|
|
1339
|
-
}
|
|
1340
|
-
} else if (current.node.type === 'Identifier') {
|
|
1341
|
-
if (current.node.name && current.node.name.startsWith('ID_ENUM_LIST_')) {
|
|
1342
|
-
current.node.schemaRef = current.node.name.replace('ID_ENUM_LIST_', '');
|
|
1343
|
-
current.node.code = current.node.name;
|
|
1344
|
-
}
|
|
1345
|
-
}
|
|
1346
|
-
delete current.node.extra;
|
|
1347
|
-
}, { node: ast }, { mode: 'anyObject' });
|
|
1348
|
-
|
|
1349
|
-
if (ast) {
|
|
1350
|
-
let hasSchema = !!context.dataSchema;
|
|
1351
|
-
let object = ast;
|
|
1352
|
-
while (!hasSchema && object) {
|
|
1353
|
-
if (object.schema || object.schemaRef || (object.property && (object.property.schema || object.property.schemaRef)))
|
|
1354
|
-
hasSchema = true;
|
|
1355
|
-
object = object.object;
|
|
1356
|
-
}
|
|
1357
|
-
|
|
1358
|
-
if (ast.type === 'ArrayExpression' || ast.type === 'ObjectExpression'
|
|
1359
|
-
|| ast.type === 'MemberExpression' && !hasSchema) {
|
|
1360
|
-
ast = {
|
|
1361
|
-
label: '原子项',
|
|
1362
|
-
level: 'expressionNode',
|
|
1363
|
-
type: 'Unparsed',
|
|
1364
|
-
editable: true,
|
|
1365
|
-
code: value,
|
|
1366
|
-
};
|
|
1367
|
-
}
|
|
1368
|
-
}
|
|
1369
|
-
|
|
1370
|
-
return LogicItem.from(ast, null, null);
|
|
1371
|
-
} catch (e) {
|
|
1372
|
-
return null;
|
|
1373
|
-
}
|
|
1374
|
-
}
|
|
1375
|
-
|
|
1376
|
-
/**
|
|
1377
|
-
* 解析 Vue 模板
|
|
1378
|
-
* 该方法不会绑定 view 和 parent,如果是添加元素优先使用 fromHTML
|
|
1379
|
-
* @param html Vue 的模板
|
|
1380
|
-
* @TODO 处理多个元素的问题
|
|
1381
|
-
*/
|
|
1382
|
-
public static parse(html: string, context?: ParseContext) {
|
|
1383
|
-
html = html || '<div></div>';
|
|
1384
|
-
|
|
1385
|
-
const compilerOptions: compiler.CompilerOptions = {
|
|
1386
|
-
preserveWhitespace: false,
|
|
1387
|
-
outputSourceRange: true,
|
|
1388
|
-
};
|
|
1389
|
-
|
|
1390
|
-
let ast = compiler.compile(html, compilerOptions).ast;
|
|
1391
|
-
if (ast.tag === 'template' && !ast.slotTarget)
|
|
1392
|
-
ast = ast.children[0] as compiler.ASTElement;
|
|
1393
|
-
|
|
1394
|
-
if (context && !context.dataSchema) {
|
|
1395
|
-
const cap = html.match(/data-schema="(.*?)"/);
|
|
1396
|
-
context.dataSchema = cap ? cap[1] : '';
|
|
1397
|
-
}
|
|
1398
|
-
let root: Element;
|
|
1399
|
-
utils.traverse((current) => {
|
|
1400
|
-
// 处理 scopedSlots;
|
|
1401
|
-
if (!current.parent)
|
|
1402
|
-
root = this._fromASTNode(current.node, context);
|
|
1403
|
-
else
|
|
1404
|
-
(current.parent.children as any)[current.index] = this._fromASTNode(current.node, context);
|
|
1405
|
-
}, { node: ast });
|
|
1406
|
-
|
|
1407
|
-
return root;
|
|
1408
|
-
}
|
|
1409
|
-
/**
|
|
1410
|
-
* 从模板生成规范的 Element 对象
|
|
1411
|
-
*/
|
|
1412
|
-
public static fromHTML(html: string, parent: Element, view: View, context?: ParseContext) {
|
|
1413
|
-
const element = this.parse(html, context);
|
|
1414
|
-
utils.traverse((current) => {
|
|
1415
|
-
current.node.assign({ view, parent: current.parent });
|
|
1416
|
-
// 生成唯一组件名 依赖element.view
|
|
1417
|
-
|
|
1418
|
-
if (!current.node.name) {
|
|
1419
|
-
current.node.initElementName();
|
|
1420
|
-
}
|
|
1421
|
-
}, { node: element, parent });
|
|
1422
|
-
return element;
|
|
1423
|
-
}
|
|
1424
|
-
/**
|
|
1425
|
-
* 从后端 JSON 生成规范的 Element 对象
|
|
1426
|
-
*/
|
|
1427
|
-
public static from(source: any, parent: Element, view: View, currentElement?: Element) {
|
|
1428
|
-
const element = new Element(source);
|
|
1429
|
-
currentElement = currentElement || element;
|
|
1430
|
-
|
|
1431
|
-
element.assign({
|
|
1432
|
-
attrList: element.attrList.map((attr) => Attr.from(attr, currentElement)),
|
|
1433
|
-
eventList: element.eventList.map((ret) => Event.from(ret, currentElement)),
|
|
1434
|
-
directiveList: element.directiveList.map((directive) => Directive.from(directive, currentElement)),
|
|
1435
|
-
children: element.children.map((child) => Element.from(child, currentElement, view)),
|
|
1436
|
-
view,
|
|
1437
|
-
parent,
|
|
1438
|
-
});
|
|
1439
|
-
|
|
1440
|
-
return element;
|
|
1441
|
-
}
|
|
1442
|
-
}
|
|
1443
|
-
|
|
1444
|
-
export default Element;
|