@lcap/nasl 0.3.9-beta
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 +58 -0
- package/README.md +11 -0
- package/analysis/mergeBlock/README.md +14 -0
- package/analysis/mergeBlock/raw1.json +0 -0
- package/analysis/mergeBlock/raw2.json +2522 -0
- package/analysis/mergeBlock/raw3.json +505 -0
- package/analysis/mergeBlock/req2.json +2219 -0
- package/analysis/mergeBlock/req3.json +462 -0
- package/analysis/mergeBlock/script.js +159 -0
- package/docs/assets/css/main.css +2638 -0
- package/docs/assets/js/main.js +248 -0
- package/docs/assets/js/search.js +1 -0
- package/docs/classes/app_app.app.html +1359 -0
- package/docs/classes/app_service.microservice.html +1572 -0
- package/docs/classes/app_service.service.html +1233 -0
- package/docs/classes/app_service.webservice.html +1635 -0
- package/docs/classes/common_eventemitter.eventemitter.html +387 -0
- package/docs/classes/common_vertex.vertex.html +1086 -0
- package/docs/classes/data_datanode.datanode.html +1157 -0
- package/docs/classes/data_entity.entity.html +1656 -0
- package/docs/classes/data_entityproperty.entityproperty.html +1903 -0
- package/docs/classes/data_enum.enum.html +1402 -0
- package/docs/classes/data_enumitem.enumitem.html +1252 -0
- package/docs/classes/data_interface.interface.html +1673 -0
- package/docs/classes/data_structure.structure.html +1427 -0
- package/docs/classes/data_structureproperty.structureproperty.html +1656 -0
- package/docs/classes/logic_basevariable.basevariable.html +1261 -0
- package/docs/classes/logic_logic.logic.html +1639 -0
- package/docs/classes/logic_logicitem.expressionnode.html +1982 -0
- package/docs/classes/logic_logicitem.logicitem.html +1828 -0
- package/docs/classes/logic_logicitem.logicnode.html +2229 -0
- package/docs/classes/logic_param.param.html +1707 -0
- package/docs/classes/logic_return.return.html +1605 -0
- package/docs/classes/logic_variable.variable.html +1631 -0
- package/docs/classes/nuims_nuims.nuims.html +596 -0
- package/docs/classes/page_attr.attr.html +1335 -0
- package/docs/classes/page_block.block.html +1272 -0
- package/docs/classes/page_directive.directive.html +1350 -0
- package/docs/classes/page_element.element.html +2118 -0
- package/docs/classes/page_event.event.html +1284 -0
- package/docs/classes/page_lifecycle.lifecycle.html +1286 -0
- package/docs/classes/page_page.page.html +1389 -0
- package/docs/classes/page_view.view.html +2299 -0
- package/docs/classes/page_viewparam.viewparam.html +1727 -0
- package/docs/classes/page_viewvariable.viewvariable.html +1668 -0
- package/docs/classes/process_process.process.html +1532 -0
- package/docs/classes/process_processcomponent.processcomponent.html +1589 -0
- package/docs/classes/process_processcomponentattribute.processcomponentattribute.html +1236 -0
- package/docs/classes/process_processcomponentproperty.processcomponentproperty.html +1727 -0
- package/docs/classes/process_processcomponentreturn.processcomponentreturn.html +1704 -0
- package/docs/classes/process_processcomponentvariable.processcomponentvariable.html +1679 -0
- package/docs/classes/process_processinterface.processinterface.html +1462 -0
- package/docs/classes/process_processparam.processparam.html +1778 -0
- package/docs/classes/process_processproperty.processproperty.html +1727 -0
- package/docs/classes/process_processreturn.processreturn.html +1678 -0
- package/docs/enums/app_service.service_type.html +186 -0
- package/docs/enums/data_basictypes.basic_type.html +312 -0
- package/docs/enums/index.level_enum.html +655 -0
- package/docs/enums/logic_logicitem.logic_type.html +441 -0
- package/docs/index.html +313 -0
- package/docs/interfaces/app_service.assetsinfo.html +209 -0
- package/docs/interfaces/common_packagejson.default.html +431 -0
- package/docs/interfaces/data_entity.resolver.html +228 -0
- package/docs/interfaces/data_entityproperty.display.html +214 -0
- package/docs/interfaces/data_schema.arrayschema.html +306 -0
- package/docs/interfaces/data_schema.baseschema.html +361 -0
- package/docs/interfaces/data_schema.basicrefschema.html +362 -0
- package/docs/interfaces/data_schema.basicschema.html +334 -0
- package/docs/interfaces/data_schema.booleanschema.html +306 -0
- package/docs/interfaces/data_schema.enumitemschema.html +225 -0
- package/docs/interfaces/data_schema.enumschema.html +306 -0
- package/docs/interfaces/data_schema.integerschema.html +334 -0
- package/docs/interfaces/data_schema.mapschema.html +320 -0
- package/docs/interfaces/data_schema.numberschema.html +334 -0
- package/docs/interfaces/data_schema.objectschema.html +313 -0
- package/docs/interfaces/data_schema.refschema.html +332 -0
- package/docs/interfaces/data_schema.schema.html +511 -0
- package/docs/interfaces/data_schema.setschema.html +306 -0
- package/docs/interfaces/data_schema.stringschema.html +334 -0
- package/docs/interfaces/history.historyrecord.html +183 -0
- package/docs/interfaces/index.arrayschema.html +261 -0
- package/docs/interfaces/index.baseschema.html +236 -0
- package/docs/interfaces/index.basicrefschema.html +317 -0
- package/docs/interfaces/index.basicschema.html +289 -0
- package/docs/interfaces/index.booleanschema.html +261 -0
- package/docs/interfaces/index.enumitemschema.html +180 -0
- package/docs/interfaces/index.enumschema.html +261 -0
- package/docs/interfaces/index.integerschema.html +289 -0
- package/docs/interfaces/index.mapschema.html +275 -0
- package/docs/interfaces/index.numberschema.html +289 -0
- package/docs/interfaces/index.objectschema.html +261 -0
- package/docs/interfaces/index.refschema.html +287 -0
- package/docs/interfaces/index.schema.html +459 -0
- package/docs/interfaces/index.setschema.html +261 -0
- package/docs/interfaces/index.stringschema.html +289 -0
- package/docs/interfaces/page_element.elementtovueoptions.html +283 -0
- package/docs/interfaces/typecheck.typecheckrecord.html +211 -0
- package/docs/interfaces/utils.inode.html +212 -0
- package/docs/interfaces/utils.inodeinfo.html +295 -0
- package/docs/interfaces/utils_traverse.inode.html +191 -0
- package/docs/interfaces/utils_traverse.inodeinfo.html +274 -0
- package/docs/modules/app_app.html +149 -0
- package/docs/modules/app_service.html +175 -0
- package/docs/modules/cachedata.html +198 -0
- package/docs/modules/common_eventemitter.html +192 -0
- package/docs/modules/common_packagejson.html +132 -0
- package/docs/modules/common_vertex.html +149 -0
- package/docs/modules/config.html +168 -0
- package/docs/modules/data_basictypes.html +271 -0
- package/docs/modules/data_datanode.html +149 -0
- package/docs/modules/data_datatypes.html +196 -0
- package/docs/modules/data_datatypeutils.html +430 -0
- package/docs/modules/data_entity.html +158 -0
- package/docs/modules/data_entityproperty.html +158 -0
- package/docs/modules/data_entityutils.html +342 -0
- package/docs/modules/data_enum.html +149 -0
- package/docs/modules/data_enumitem.html +149 -0
- package/docs/modules/data_interface.html +149 -0
- package/docs/modules/data_schema.html +205 -0
- package/docs/modules/data_structure.html +149 -0
- package/docs/modules/data_structureproperty.html +149 -0
- package/docs/modules/data_systemtypes.html +167 -0
- package/docs/modules/decorators.html +333 -0
- package/docs/modules/eventbus.html +116 -0
- package/docs/modules/generator.html +749 -0
- package/docs/modules/generator_data.html +495 -0
- package/docs/modules/generator_hotreload.html +200 -0
- package/docs/modules/generator_load.html +247 -0
- package/docs/modules/generator_page.html +200 -0
- package/docs/modules/history.html +200 -0
- package/docs/modules/index.html +1163 -0
- package/docs/modules/logic_basevariable.html +238 -0
- package/docs/modules/logic_callinterface.html +116 -0
- package/docs/modules/logic_logic.html +149 -0
- package/docs/modules/logic_logicitem.html +220 -0
- package/docs/modules/logic_param.html +149 -0
- package/docs/modules/logic_return.html +149 -0
- package/docs/modules/logic_tools.html +326 -0
- package/docs/modules/logic_translator.html +158 -0
- package/docs/modules/logic_variable.html +149 -0
- package/docs/modules/nuims_nuims.html +149 -0
- package/docs/modules/page_attr.html +149 -0
- package/docs/modules/page_block.html +149 -0
- package/docs/modules/page_directive.html +149 -0
- package/docs/modules/page_element.html +158 -0
- package/docs/modules/page_event.html +149 -0
- package/docs/modules/page_lifecycle.html +149 -0
- package/docs/modules/page_page.html +149 -0
- package/docs/modules/page_view.html +149 -0
- package/docs/modules/page_viewparam.html +149 -0
- package/docs/modules/page_viewvariable.html +149 -0
- package/docs/modules/process_process.html +149 -0
- package/docs/modules/process_processcomponent.html +149 -0
- package/docs/modules/process_processcomponentattribute.html +149 -0
- package/docs/modules/process_processcomponentproperty.html +149 -0
- package/docs/modules/process_processcomponentreturn.html +149 -0
- package/docs/modules/process_processcomponentvariable.html +149 -0
- package/docs/modules/process_processinterface.html +149 -0
- package/docs/modules/process_processparam.html +149 -0
- package/docs/modules/process_processproperty.html +149 -0
- package/docs/modules/process_processreturn.html +149 -0
- package/docs/modules/typecheck.html +269 -0
- package/docs/modules/utils.html +536 -0
- package/docs/modules/utils_logger.html +172 -0
- package/docs/modules/utils_string.html +347 -0
- package/docs/modules/utils_traverse.html +248 -0
- package/docs/modules.html +377 -0
- package/docs-build/style.css +3 -0
- package/docs-build/typedoc.json +8 -0
- package/index.js +12 -0
- package/module/base.js +11 -0
- package/out/service/app/api.d.ts +75 -0
- package/out/service/app/api.js +87 -0
- package/out/service/app/api.js.map +1 -0
- package/out/service/app/index.d.ts +2 -0
- package/out/service/app/index.js +10 -0
- package/out/service/app/index.js.map +1 -0
- package/out/service/assets/asset.d.ts +104 -0
- package/out/service/assets/asset.js +78 -0
- package/out/service/assets/asset.js.map +1 -0
- package/out/service/assets/block.d.ts +9 -0
- package/out/service/assets/block.js +11 -0
- package/out/service/assets/block.js.map +1 -0
- package/out/service/assets/index.d.ts +2 -0
- package/out/service/assets/index.js +12 -0
- package/out/service/assets/index.js.map +1 -0
- package/out/service/common/findUsage.d.ts +9 -0
- package/out/service/common/findUsage.js +11 -0
- package/out/service/common/findUsage.js.map +1 -0
- package/out/service/common/index.d.ts +2 -0
- package/out/service/common/index.js +12 -0
- package/out/service/common/index.js.map +1 -0
- package/out/service/common/preprocess.d.ts +14 -0
- package/out/service/common/preprocess.js +75 -0
- package/out/service/common/preprocess.js.map +1 -0
- package/out/service/common/schema.d.ts +9 -0
- package/out/service/common/schema.js +12 -0
- package/out/service/common/schema.js.map +1 -0
- package/out/service/create/add.configs.d.ts +1 -0
- package/out/service/create/add.configs.js +68 -0
- package/out/service/create/add.configs.js.map +1 -0
- package/out/service/create/errHandles.d.ts +18 -0
- package/out/service/create/errHandles.js +40 -0
- package/out/service/create/errHandles.js.map +1 -0
- package/out/service/create/index.d.ts +1 -0
- package/out/service/create/index.js +72 -0
- package/out/service/create/index.js.map +1 -0
- package/out/service/data/api.d.ts +36 -0
- package/out/service/data/api.js +36 -0
- package/out/service/data/api.js.map +1 -0
- package/out/service/data/entity.d.ts +135 -0
- package/out/service/data/entity.js +103 -0
- package/out/service/data/entity.js.map +1 -0
- package/out/service/data/enum.d.ts +63 -0
- package/out/service/data/enum.js +55 -0
- package/out/service/data/enum.js.map +1 -0
- package/out/service/data/enumProperty.d.ts +28 -0
- package/out/service/data/enumProperty.js +23 -0
- package/out/service/data/enumProperty.js.map +1 -0
- package/out/service/data/generic.d.ts +9 -0
- package/out/service/data/generic.js +11 -0
- package/out/service/data/generic.js.map +1 -0
- package/out/service/data/index.d.ts +8 -0
- package/out/service/data/index.js +23 -0
- package/out/service/data/index.js.map +1 -0
- package/out/service/data/interface.d.ts +67 -0
- package/out/service/data/interface.js +58 -0
- package/out/service/data/interface.js.map +1 -0
- package/out/service/data/structure.d.ts +92 -0
- package/out/service/data/structure.js +77 -0
- package/out/service/data/structure.js.map +1 -0
- package/out/service/logic/index.d.ts +2 -0
- package/out/service/logic/index.js +14 -0
- package/out/service/logic/index.js.map +1 -0
- package/out/service/logic/logic.d.ts +121 -0
- package/out/service/logic/logic.js +90 -0
- package/out/service/logic/logic.js.map +1 -0
- package/out/service/logic/param.d.ts +37 -0
- package/out/service/logic/param.js +29 -0
- package/out/service/logic/param.js.map +1 -0
- package/out/service/nuims/api.d.ts +264 -0
- package/out/service/nuims/api.js +194 -0
- package/out/service/nuims/api.js.map +1 -0
- package/out/service/nuims/index.d.ts +2 -0
- package/out/service/nuims/index.js +17 -0
- package/out/service/nuims/index.js.map +1 -0
- package/out/service/page/api.d.ts +186 -0
- package/out/service/page/api.js +1376 -0
- package/out/service/page/api.js.map +1 -0
- package/out/service/page/attribute.d.ts +28 -0
- package/out/service/page/attribute.js +23 -0
- package/out/service/page/attribute.js.map +1 -0
- package/out/service/page/directive.d.ts +28 -0
- package/out/service/page/directive.js +23 -0
- package/out/service/page/directive.js.map +1 -0
- package/out/service/page/element.d.ts +36 -0
- package/out/service/page/element.js +36 -0
- package/out/service/page/element.js.map +1 -0
- package/out/service/page/event.d.ts +28 -0
- package/out/service/page/event.js +23 -0
- package/out/service/page/event.js.map +1 -0
- package/out/service/page/index.d.ts +8 -0
- package/out/service/page/index.js +23 -0
- package/out/service/page/index.js.map +1 -0
- package/out/service/page/lifecycle.d.ts +28 -0
- package/out/service/page/lifecycle.js +23 -0
- package/out/service/page/lifecycle.js.map +1 -0
- package/out/service/page/templates.d.ts +14 -0
- package/out/service/page/templates.js +70 -0
- package/out/service/page/templates.js.map +1 -0
- package/out/service/page/view.d.ts +130 -0
- package/out/service/page/view.js +116 -0
- package/out/service/page/view.js.map +1 -0
- package/out/service/process/api.d.ts +136 -0
- package/out/service/process/api.js +95 -0
- package/out/service/process/api.js.map +1 -0
- package/out/service/process/index.d.ts +2 -0
- package/out/service/process/index.js +10 -0
- package/out/service/process/index.js.map +1 -0
- package/out/service/undoredo/api.d.ts +36 -0
- package/out/service/undoredo/api.js +29 -0
- package/out/service/undoredo/api.js.map +1 -0
- package/out/service/undoredo/index.d.ts +2 -0
- package/out/service/undoredo/index.js +10 -0
- package/out/service/undoredo/index.js.map +1 -0
- package/out/service/webFile/api.d.ts +45 -0
- package/out/service/webFile/api.js +35 -0
- package/out/service/webFile/api.js.map +1 -0
- package/out/service/webFile/index.d.ts +3 -0
- package/out/service/webFile/index.js +27 -0
- package/out/service/webFile/index.js.map +1 -0
- package/out/service/webFile/loadCache.d.ts +18 -0
- package/out/service/webFile/loadCache.js +17 -0
- package/out/service/webFile/loadCache.js.map +1 -0
- package/out/test/fixtures/env.d.ts +5 -0
- package/out/test/fixtures/env.js +21 -0
- package/out/test/fixtures/env.js.map +1 -0
- package/out/test/units/app/App.spec.d.ts +1 -0
- package/out/test/units/app/App.spec.js +17 -0
- package/out/test/units/app/App.spec.js.map +1 -0
- package/out/test/units/app/Service.spec.d.ts +1 -0
- package/out/test/units/app/Service.spec.js +24 -0
- package/out/test/units/app/Service.spec.js.map +1 -0
- package/out/test/units/common/Vertex.spec.d.ts +1 -0
- package/out/test/units/common/Vertex.spec.js +44 -0
- package/out/test/units/common/Vertex.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/test/units/data/Entity.spec.d.ts +1 -0
- package/out/test/units/data/Entity.spec.js +12 -0
- package/out/test/units/data/Entity.spec.js.map +1 -0
- package/out/test/units/login.spec.d.ts +1 -0
- package/out/test/units/login.spec.js +12 -0
- package/out/test/units/login.spec.js.map +1 -0
- package/out/test/units/page/Block.spec.d.ts +1 -0
- package/out/test/units/page/Block.spec.js +34 -0
- package/out/test/units/page/Block.spec.js.map +1 -0
- package/out/test/units/page/Element.spec.d.ts +1 -0
- package/out/test/units/page/Element.spec.js +44 -0
- package/out/test/units/page/Element.spec.js.map +1 -0
- package/out/test/units/temp/temp.spec.d.ts +1 -0
- package/out/test/units/temp/temp.spec.js +68 -0
- package/out/test/units/temp/temp.spec.js.map +1 -0
- package/out/types/app/App.d.ts +135 -0
- package/out/types/app/App.js +304 -0
- package/out/types/app/App.js.map +1 -0
- package/out/types/app/History.d.ts +36 -0
- package/out/types/app/History.js +365 -0
- package/out/types/app/History.js.map +1 -0
- package/out/types/app/Service.d.ts +247 -0
- package/out/types/app/Service.js +846 -0
- package/out/types/app/Service.js.map +1 -0
- package/out/types/cacheData.d.ts +4 -0
- package/out/types/cacheData.js +34 -0
- package/out/types/cacheData.js.map +1 -0
- package/out/types/common/ComponentAPI.d.ts +110 -0
- package/out/types/common/ComponentAPI.js +3 -0
- package/out/types/common/ComponentAPI.js.map +1 -0
- package/out/types/common/EventEmitter.d.ts +29 -0
- package/out/types/common/EventEmitter.js +66 -0
- package/out/types/common/EventEmitter.js.map +1 -0
- package/out/types/common/PackageJSON.d.ts +32 -0
- package/out/types/common/PackageJSON.js +3 -0
- package/out/types/common/PackageJSON.js.map +1 -0
- package/out/types/common/Vertex.d.ts +125 -0
- package/out/types/common/Vertex.js +283 -0
- package/out/types/common/Vertex.js.map +1 -0
- package/out/types/config.d.ts +24 -0
- package/out/types/config.js +22 -0
- package/out/types/config.js.map +1 -0
- package/out/types/data/DataNode.d.ts +24 -0
- package/out/types/data/DataNode.js +52 -0
- package/out/types/data/DataNode.js.map +1 -0
- package/out/types/data/Entity.d.ts +121 -0
- package/out/types/data/Entity.js +528 -0
- package/out/types/data/Entity.js.map +1 -0
- package/out/types/data/EntityIndex.d.ts +87 -0
- package/out/types/data/EntityIndex.js +262 -0
- package/out/types/data/EntityIndex.js.map +1 -0
- package/out/types/data/EntityProperty.d.ts +191 -0
- package/out/types/data/EntityProperty.js +568 -0
- package/out/types/data/EntityProperty.js.map +1 -0
- package/out/types/data/Enum.d.ts +92 -0
- package/out/types/data/Enum.js +262 -0
- package/out/types/data/Enum.js.map +1 -0
- package/out/types/data/EnumItem.d.ts +57 -0
- package/out/types/data/EnumItem.js +170 -0
- package/out/types/data/EnumItem.js.map +1 -0
- package/out/types/data/GlobalLogicNode.d.ts +44 -0
- package/out/types/data/GlobalLogicNode.js +194 -0
- package/out/types/data/GlobalLogicNode.js.map +1 -0
- package/out/types/data/Interface.d.ts +153 -0
- package/out/types/data/Interface.js +480 -0
- package/out/types/data/Interface.js.map +1 -0
- package/out/types/data/Schema.d.ts +121 -0
- package/out/types/data/Schema.js +3 -0
- package/out/types/data/Schema.js.map +1 -0
- package/out/types/data/Structure.d.ts +104 -0
- package/out/types/data/Structure.js +319 -0
- package/out/types/data/Structure.js.map +1 -0
- package/out/types/data/StructureProperty.d.ts +134 -0
- package/out/types/data/StructureProperty.js +380 -0
- package/out/types/data/StructureProperty.js.map +1 -0
- package/out/types/data/basicTypes.d.ts +25 -0
- package/out/types/data/basicTypes.js +77 -0
- package/out/types/data/basicTypes.js.map +1 -0
- package/out/types/data/dataTypeUtils.d.ts +94 -0
- package/out/types/data/dataTypeUtils.js +441 -0
- package/out/types/data/dataTypeUtils.js.map +1 -0
- package/out/types/data/dataTypes.d.ts +21 -0
- package/out/types/data/dataTypes.js +64 -0
- package/out/types/data/dataTypes.js.map +1 -0
- package/out/types/data/entityUtils.d.ts +164 -0
- package/out/types/data/entityUtils.js +632 -0
- package/out/types/data/entityUtils.js.map +1 -0
- package/out/types/data/genBlock/builtInFunctions.json +545 -0
- package/out/types/data/genBlock/genCallComponentLogic.d.ts +20 -0
- package/out/types/data/genBlock/genCallComponentLogic.js +32 -0
- package/out/types/data/genBlock/genCallComponentLogic.js.map +1 -0
- package/out/types/data/genBlock/genCallInterface.d.ts +41 -0
- package/out/types/data/genBlock/genCallInterface.js +86 -0
- package/out/types/data/genBlock/genCallInterface.js.map +1 -0
- package/out/types/data/genBlock/genCreateBlock.d.ts +10 -0
- package/out/types/data/genBlock/genCreateBlock.js +313 -0
- package/out/types/data/genBlock/genCreateBlock.js.map +1 -0
- package/out/types/data/genBlock/genCurdBlock.d.ts +4 -0
- package/out/types/data/genBlock/genCurdBlock.js +648 -0
- package/out/types/data/genBlock/genCurdBlock.js.map +1 -0
- package/out/types/data/genBlock/genEnumSelectBlock.d.ts +10 -0
- package/out/types/data/genBlock/genEnumSelectBlock.js +23 -0
- package/out/types/data/genBlock/genEnumSelectBlock.js.map +1 -0
- package/out/types/data/genBlock/genGetBlock.d.ts +6 -0
- package/out/types/data/genBlock/genGetBlock.js +151 -0
- package/out/types/data/genBlock/genGetBlock.js.map +1 -0
- package/out/types/data/genBlock/genGridViewBlock.d.ts +136 -0
- package/out/types/data/genBlock/genGridViewBlock.js +263 -0
- package/out/types/data/genBlock/genGridViewBlock.js.map +1 -0
- package/out/types/data/genBlock/genListViewBlock.d.ts +63 -0
- package/out/types/data/genBlock/genListViewBlock.js +110 -0
- package/out/types/data/genBlock/genListViewBlock.js.map +1 -0
- package/out/types/data/genBlock/genQueryComponent.d.ts +316 -0
- package/out/types/data/genBlock/genQueryComponent.js +470 -0
- package/out/types/data/genBlock/genQueryComponent.js.map +1 -0
- package/out/types/data/genBlock/genSelectBlock.d.ts +63 -0
- package/out/types/data/genBlock/genSelectBlock.js +106 -0
- package/out/types/data/genBlock/genSelectBlock.js.map +1 -0
- package/out/types/data/genBlock/genTableBlock.d.ts +136 -0
- package/out/types/data/genBlock/genTableBlock.js +255 -0
- package/out/types/data/genBlock/genTableBlock.js.map +1 -0
- package/out/types/data/genBlock/genUpdateBlock.d.ts +6 -0
- package/out/types/data/genBlock/genUpdateBlock.js +384 -0
- package/out/types/data/genBlock/genUpdateBlock.js.map +1 -0
- package/out/types/data/genBlock/index.d.ts +15 -0
- package/out/types/data/genBlock/index.js +29 -0
- package/out/types/data/genBlock/index.js.map +1 -0
- package/out/types/data/genBlock/utils.d.ts +92 -0
- package/out/types/data/genBlock/utils.js +187 -0
- package/out/types/data/genBlock/utils.js.map +1 -0
- package/out/types/data/genericTypes.d.ts +40 -0
- package/out/types/data/genericTypes.js +145 -0
- package/out/types/data/genericTypes.js.map +1 -0
- package/out/types/data/systemTypes.d.ts +9 -0
- package/out/types/data/systemTypes.js +1516 -0
- package/out/types/data/systemTypes.js.map +1 -0
- package/out/types/decorators/index.d.ts +25 -0
- package/out/types/decorators/index.js +57 -0
- package/out/types/decorators/index.js.map +1 -0
- package/out/types/eventBus.d.ts +1 -0
- package/out/types/eventBus.js +5 -0
- package/out/types/eventBus.js.map +1 -0
- package/out/types/generator/data.d.ts +36 -0
- package/out/types/generator/data.js +197 -0
- package/out/types/generator/data.js.map +1 -0
- package/out/types/generator/hotReload.d.ts +12 -0
- package/out/types/generator/hotReload.js +39 -0
- package/out/types/generator/hotReload.js.map +1 -0
- package/out/types/generator/index.d.ts +4 -0
- package/out/types/generator/index.js +17 -0
- package/out/types/generator/index.js.map +1 -0
- package/out/types/generator/load.d.ts +8 -0
- package/out/types/generator/load.js +92 -0
- package/out/types/generator/load.js.map +1 -0
- package/out/types/generator/page.d.ts +11 -0
- package/out/types/generator/page.js +42 -0
- package/out/types/generator/page.js.map +1 -0
- package/out/types/history.d.ts +10 -0
- package/out/types/history.js +13 -0
- package/out/types/history.js.map +1 -0
- package/out/types/index.d.ts +142 -0
- package/out/types/index.js +221 -0
- package/out/types/index.js.map +1 -0
- package/out/types/logic/BaseVariable.d.ts +75 -0
- package/out/types/logic/BaseVariable.js +159 -0
- package/out/types/logic/BaseVariable.js.map +1 -0
- package/out/types/logic/CallInterface.d.ts +1 -0
- package/out/types/logic/CallInterface.js +9 -0
- package/out/types/logic/CallInterface.js.map +1 -0
- package/out/types/logic/Logic.d.ts +148 -0
- package/out/types/logic/Logic.js +481 -0
- package/out/types/logic/Logic.js.map +1 -0
- package/out/types/logic/LogicItem.d.ts +319 -0
- package/out/types/logic/LogicItem.js +1278 -0
- package/out/types/logic/LogicItem.js.map +1 -0
- package/out/types/logic/Param.d.ts +85 -0
- package/out/types/logic/Param.js +357 -0
- package/out/types/logic/Param.js.map +1 -0
- package/out/types/logic/Return.d.ts +73 -0
- package/out/types/logic/Return.js +326 -0
- package/out/types/logic/Return.js.map +1 -0
- package/out/types/logic/Variable.d.ts +72 -0
- package/out/types/logic/Variable.js +317 -0
- package/out/types/logic/Variable.js.map +1 -0
- package/out/types/logic/expressions/BinaryExpression.d.ts +27 -0
- package/out/types/logic/expressions/BinaryExpression.js +56 -0
- package/out/types/logic/expressions/BinaryExpression.js.map +1 -0
- package/out/types/logic/expressions/BooleanLiteral.d.ts +19 -0
- package/out/types/logic/expressions/BooleanLiteral.js +42 -0
- package/out/types/logic/expressions/BooleanLiteral.js.map +1 -0
- package/out/types/logic/expressions/Identifier.d.ts +28 -0
- package/out/types/logic/expressions/Identifier.js +57 -0
- package/out/types/logic/expressions/Identifier.js.map +1 -0
- package/out/types/logic/expressions/LogicalExpression.d.ts +27 -0
- package/out/types/logic/expressions/LogicalExpression.js +56 -0
- package/out/types/logic/expressions/LogicalExpression.js.map +1 -0
- package/out/types/logic/expressions/MemberExpression.d.ts +23 -0
- package/out/types/logic/expressions/MemberExpression.js +52 -0
- package/out/types/logic/expressions/MemberExpression.js.map +1 -0
- package/out/types/logic/expressions/NullLiteral.d.ts +15 -0
- package/out/types/logic/expressions/NullLiteral.js +35 -0
- package/out/types/logic/expressions/NullLiteral.js.map +1 -0
- package/out/types/logic/expressions/NumericLiteral.d.ts +19 -0
- package/out/types/logic/expressions/NumericLiteral.js +42 -0
- package/out/types/logic/expressions/NumericLiteral.js.map +1 -0
- package/out/types/logic/expressions/StringLiteral.d.ts +19 -0
- package/out/types/logic/expressions/StringLiteral.js +42 -0
- package/out/types/logic/expressions/StringLiteral.js.map +1 -0
- package/out/types/logic/expressions/UnaryExpression.d.ts +23 -0
- package/out/types/logic/expressions/UnaryExpression.js +49 -0
- package/out/types/logic/expressions/UnaryExpression.js.map +1 -0
- package/out/types/logic/expressions/Unparsed.d.ts +19 -0
- package/out/types/logic/expressions/Unparsed.js +42 -0
- package/out/types/logic/expressions/Unparsed.js.map +1 -0
- package/out/types/logic/nodes/AssignmentExpression.d.ts +23 -0
- package/out/types/logic/nodes/AssignmentExpression.js +49 -0
- package/out/types/logic/nodes/AssignmentExpression.js.map +1 -0
- package/out/types/logic/nodes/BuiltInFuncParam.d.ts +27 -0
- package/out/types/logic/nodes/BuiltInFuncParam.js +56 -0
- package/out/types/logic/nodes/BuiltInFuncParam.js.map +1 -0
- package/out/types/logic/nodes/BuiltInFunction.d.ts +24 -0
- package/out/types/logic/nodes/BuiltInFunction.js +55 -0
- package/out/types/logic/nodes/BuiltInFunction.js.map +1 -0
- package/out/types/logic/nodes/CallConsoleLog.d.ts +19 -0
- package/out/types/logic/nodes/CallConsoleLog.js +42 -0
- package/out/types/logic/nodes/CallConsoleLog.js.map +1 -0
- package/out/types/logic/nodes/CallGraphQL.d.ts +28 -0
- package/out/types/logic/nodes/CallGraphQL.js +56 -0
- package/out/types/logic/nodes/CallGraphQL.js.map +1 -0
- package/out/types/logic/nodes/CallInterParam.d.ts +23 -0
- package/out/types/logic/nodes/CallInterParam.js +49 -0
- package/out/types/logic/nodes/CallInterParam.js.map +1 -0
- package/out/types/logic/nodes/CallInterface.d.ts +24 -0
- package/out/types/logic/nodes/CallInterface.js +49 -0
- package/out/types/logic/nodes/CallInterface.js.map +1 -0
- package/out/types/logic/nodes/CallLogic.d.ts +24 -0
- package/out/types/logic/nodes/CallLogic.js +55 -0
- package/out/types/logic/nodes/CallLogic.js.map +1 -0
- package/out/types/logic/nodes/CallMessageShow.d.ts +27 -0
- package/out/types/logic/nodes/CallMessageShow.js +56 -0
- package/out/types/logic/nodes/CallMessageShow.js.map +1 -0
- package/out/types/logic/nodes/Comment.d.ts +19 -0
- package/out/types/logic/nodes/Comment.js +42 -0
- package/out/types/logic/nodes/Comment.js.map +1 -0
- package/out/types/logic/nodes/CronJob.d.ts +19 -0
- package/out/types/logic/nodes/CronJob.js +42 -0
- package/out/types/logic/nodes/CronJob.js.map +1 -0
- package/out/types/logic/nodes/DBQuery.d.ts +19 -0
- package/out/types/logic/nodes/DBQuery.js +42 -0
- package/out/types/logic/nodes/DBQuery.js.map +1 -0
- package/out/types/logic/nodes/Destination.d.ts +32 -0
- package/out/types/logic/nodes/Destination.js +73 -0
- package/out/types/logic/nodes/Destination.js.map +1 -0
- package/out/types/logic/nodes/DestinationParam.d.ts +24 -0
- package/out/types/logic/nodes/DestinationParam.js +49 -0
- package/out/types/logic/nodes/DestinationParam.js.map +1 -0
- package/out/types/logic/nodes/End.d.ts +15 -0
- package/out/types/logic/nodes/End.js +36 -0
- package/out/types/logic/nodes/End.js.map +1 -0
- package/out/types/logic/nodes/ForEachStatement.d.ts +40 -0
- package/out/types/logic/nodes/ForEachStatement.js +77 -0
- package/out/types/logic/nodes/ForEachStatement.js.map +1 -0
- package/out/types/logic/nodes/IfStatement.d.ts +27 -0
- package/out/types/logic/nodes/IfStatement.js +56 -0
- package/out/types/logic/nodes/IfStatement.js.map +1 -0
- package/out/types/logic/nodes/JSBlock.d.ts +19 -0
- package/out/types/logic/nodes/JSBlock.js +46 -0
- package/out/types/logic/nodes/JSBlock.js.map +1 -0
- package/out/types/logic/nodes/JSONDeserialize.d.ts +19 -0
- package/out/types/logic/nodes/JSONDeserialize.js +42 -0
- package/out/types/logic/nodes/JSONDeserialize.js.map +1 -0
- package/out/types/logic/nodes/JSONSerialize.d.ts +19 -0
- package/out/types/logic/nodes/JSONSerialize.js +42 -0
- package/out/types/logic/nodes/JSONSerialize.js.map +1 -0
- package/out/types/logic/nodes/ProcessOutcome.d.ts +27 -0
- package/out/types/logic/nodes/ProcessOutcome.js +56 -0
- package/out/types/logic/nodes/ProcessOutcome.js.map +1 -0
- package/out/types/logic/nodes/Start.d.ts +15 -0
- package/out/types/logic/nodes/Start.js +35 -0
- package/out/types/logic/nodes/Start.js.map +1 -0
- package/out/types/logic/nodes/SwitchCase.d.ts +23 -0
- package/out/types/logic/nodes/SwitchCase.js +49 -0
- package/out/types/logic/nodes/SwitchCase.js.map +1 -0
- package/out/types/logic/nodes/SwitchStatement.d.ts +20 -0
- package/out/types/logic/nodes/SwitchStatement.js +42 -0
- package/out/types/logic/nodes/SwitchStatement.js.map +1 -0
- package/out/types/logic/nodes/TypeNote.d.ts +19 -0
- package/out/types/logic/nodes/TypeNote.js +42 -0
- package/out/types/logic/nodes/TypeNote.js.map +1 -0
- package/out/types/logic/nodes/WhileStatement.d.ts +23 -0
- package/out/types/logic/nodes/WhileStatement.js +49 -0
- package/out/types/logic/nodes/WhileStatement.js.map +1 -0
- package/out/types/logic/tools.d.ts +15 -0
- package/out/types/logic/tools.js +164 -0
- package/out/types/logic/tools.js.map +1 -0
- package/out/types/logic/translator.d.ts +1 -0
- package/out/types/logic/translator.js +595 -0
- package/out/types/logic/translator.js.map +1 -0
- package/out/types/login.d.ts +7 -0
- package/out/types/login.js +39 -0
- package/out/types/login.js.map +1 -0
- package/out/types/nuims/Nuims.d.ts +128 -0
- package/out/types/nuims/Nuims.js +439 -0
- package/out/types/nuims/Nuims.js.map +1 -0
- package/out/types/page/Attr.d.ts +79 -0
- package/out/types/page/Attr.js +217 -0
- package/out/types/page/Attr.js.map +1 -0
- package/out/types/page/Block.d.ts +65 -0
- package/out/types/page/Block.js +82 -0
- package/out/types/page/Block.js.map +1 -0
- package/out/types/page/Directive.d.ts +78 -0
- package/out/types/page/Directive.js +202 -0
- package/out/types/page/Directive.js.map +1 -0
- package/out/types/page/Element.d.ts +239 -0
- package/out/types/page/Element.js +1322 -0
- package/out/types/page/Element.js.map +1 -0
- package/out/types/page/Event.d.ts +63 -0
- package/out/types/page/Event.js +212 -0
- package/out/types/page/Event.js.map +1 -0
- package/out/types/page/Lifecycle.d.ts +58 -0
- package/out/types/page/Lifecycle.js +192 -0
- package/out/types/page/Lifecycle.js.map +1 -0
- package/out/types/page/Page.d.ts +90 -0
- package/out/types/page/Page.js +379 -0
- package/out/types/page/Page.js.map +1 -0
- package/out/types/page/View.d.ts +235 -0
- package/out/types/page/View.js +1065 -0
- package/out/types/page/View.js.map +1 -0
- package/out/types/page/ViewParam.d.ts +72 -0
- package/out/types/page/ViewParam.js +277 -0
- package/out/types/page/ViewParam.js.map +1 -0
- package/out/types/page/ViewVariable.d.ts +73 -0
- package/out/types/page/ViewVariable.js +287 -0
- package/out/types/page/ViewVariable.js.map +1 -0
- package/out/types/process/Process.d.ts +118 -0
- package/out/types/process/Process.js +357 -0
- package/out/types/process/Process.js.map +1 -0
- package/out/types/process/ProcessComponent.d.ts +133 -0
- package/out/types/process/ProcessComponent.js +339 -0
- package/out/types/process/ProcessComponent.js.map +1 -0
- package/out/types/process/ProcessComponentAttribute.d.ts +63 -0
- package/out/types/process/ProcessComponentAttribute.js +163 -0
- package/out/types/process/ProcessComponentAttribute.js.map +1 -0
- package/out/types/process/ProcessComponentProperty.d.ts +37 -0
- package/out/types/process/ProcessComponentProperty.js +81 -0
- package/out/types/process/ProcessComponentProperty.js.map +1 -0
- package/out/types/process/ProcessComponentReturn.d.ts +77 -0
- package/out/types/process/ProcessComponentReturn.js +260 -0
- package/out/types/process/ProcessComponentReturn.js.map +1 -0
- package/out/types/process/ProcessComponentVariable.d.ts +78 -0
- package/out/types/process/ProcessComponentVariable.js +252 -0
- package/out/types/process/ProcessComponentVariable.js.map +1 -0
- package/out/types/process/ProcessInterface.d.ts +112 -0
- package/out/types/process/ProcessInterface.js +227 -0
- package/out/types/process/ProcessInterface.js.map +1 -0
- package/out/types/process/ProcessParam.d.ts +77 -0
- package/out/types/process/ProcessParam.js +259 -0
- package/out/types/process/ProcessParam.js.map +1 -0
- package/out/types/process/ProcessProperty.d.ts +37 -0
- package/out/types/process/ProcessProperty.js +81 -0
- package/out/types/process/ProcessProperty.js.map +1 -0
- package/out/types/process/ProcessReturn.d.ts +73 -0
- package/out/types/process/ProcessReturn.js +237 -0
- package/out/types/process/ProcessReturn.js.map +1 -0
- package/out/types/typeCheck.d.ts +30 -0
- package/out/types/typeCheck.js +81 -0
- package/out/types/typeCheck.js.map +1 -0
- package/out/types/utils/index.d.ts +25 -0
- package/out/types/utils/index.js +81 -0
- package/out/types/utils/index.js.map +1 -0
- package/out/types/utils/logger.d.ts +3 -0
- package/out/types/utils/logger.js +14 -0
- package/out/types/utils/logger.js.map +1 -0
- package/out/types/utils/string.d.ts +34 -0
- package/out/types/utils/string.js +62 -0
- package/out/types/utils/string.js.map +1 -0
- package/out/types/utils/traverse.d.ts +35 -0
- package/out/types/utils/traverse.js +126 -0
- package/out/types/utils/traverse.js.map +1 -0
- package/package.json +64 -0
- package/spec/conceptMap.json +3310 -0
- package/spec/spec.yaml +416 -0
- package/spec-build/index.ts +98 -0
- package/src/routes.map.js +5 -0
- package/src/service/app/api.js +84 -0
- package/src/service/app/index.d.tmp +16 -0
- package/src/service/app/index.js +6 -0
- package/src/service/assets/asset.js +76 -0
- package/src/service/assets/block.js +8 -0
- package/src/service/assets/index.js +7 -0
- package/src/service/common/findUsage.js +8 -0
- package/src/service/common/index.js +6 -0
- package/src/service/common/preprocess.js +54 -0
- package/src/service/common/schema.js +9 -0
- package/src/service/create/add.configs.js +66 -0
- package/src/service/create/errHandles.js +42 -0
- package/src/service/create/index.js +74 -0
- package/src/service/data/api.js +33 -0
- package/src/service/data/entity.js +101 -0
- package/src/service/data/enum.js +53 -0
- package/src/service/data/enumProperty.js +20 -0
- package/src/service/data/generic.js +8 -0
- package/src/service/data/index.js +18 -0
- package/src/service/data/interface.js +56 -0
- package/src/service/data/structure.js +75 -0
- package/src/service/logic/index.js +11 -0
- package/src/service/logic/logic.js +88 -0
- package/src/service/logic/param.js +26 -0
- package/src/service/nuims/api.js +192 -0
- package/src/service/nuims/index.js +13 -0
- package/src/service/page/api.js +1374 -0
- package/src/service/page/attribute.js +20 -0
- package/src/service/page/directive.js +20 -0
- package/src/service/page/element.js +34 -0
- package/src/service/page/event.js +20 -0
- package/src/service/page/index.js +19 -0
- package/src/service/page/lifecycle.js +20 -0
- package/src/service/page/templates.ts +72 -0
- package/src/service/page/view.js +116 -0
- package/src/service/process/api.js +92 -0
- package/src/service/process/index.js +6 -0
- package/src/service/undoredo/api.js +26 -0
- package/src/service/undoredo/index.js +6 -0
- package/src/service/webFile/api.js +32 -0
- package/src/service/webFile/index.d.tmp +62 -0
- package/src/service/webFile/index.js +23 -0
- package/src/service/webFile/loadCache.js +14 -0
- package/src/test/fixtures/env.ts +21 -0
- package/src/test/units/app/App.spec.ts +16 -0
- package/src/test/units/app/Service.spec.ts +31 -0
- package/src/test/units/common/Vertex.spec.ts +25 -0
- package/src/test/units/data/Entity.spec.ts +10 -0
- package/src/test/units/login.spec.ts +10 -0
- package/src/test/units/page/Block.spec.ts +15 -0
- package/src/test/units/page/Element.spec.ts +45 -0
- package/src/test/units/page/example.dashboard.html +46 -0
- package/src/test/units/page/example.view1.html +63 -0
- package/src/test/units/temp/temp.spec.ts +66 -0
- package/src/types/app/App.ts +267 -0
- package/src/types/app/History.ts +388 -0
- package/src/types/app/Service.ts +920 -0
- package/src/types/cacheData.ts +33 -0
- package/src/types/common/ComponentAPI.ts +103 -0
- package/src/types/common/EventEmitter.ts +56 -0
- package/src/types/common/PackageJSON.ts +22 -0
- package/src/types/common/Vertex.ts +265 -0
- package/src/types/config.ts +22 -0
- package/src/types/data/DataNode.ts +37 -0
- package/src/types/data/Entity.ts +516 -0
- package/src/types/data/EntityIndex.ts +238 -0
- package/src/types/data/EntityProperty.ts +507 -0
- package/src/types/data/Enum.ts +235 -0
- package/src/types/data/EnumItem.ts +156 -0
- package/src/types/data/GlobalLogicNode.ts +201 -0
- package/src/types/data/Interface.ts +435 -0
- package/src/types/data/Schema.ts +133 -0
- package/src/types/data/Structure.ts +300 -0
- package/src/types/data/StructureProperty.ts +332 -0
- package/src/types/data/basicTypes.ts +76 -0
- package/src/types/data/dataTypeUtils.ts +426 -0
- package/src/types/data/dataTypes.ts +68 -0
- package/src/types/data/entityUtils.ts +681 -0
- package/src/types/data/genBlock/builtInFunctions.json +545 -0
- package/src/types/data/genBlock/genCallComponentLogic.ts +28 -0
- package/src/types/data/genBlock/genCallInterface.ts +87 -0
- package/src/types/data/genBlock/genCreateBlock.ts +306 -0
- package/src/types/data/genBlock/genCurdBlock.ts +654 -0
- package/src/types/data/genBlock/genEnumSelectBlock.ts +21 -0
- package/src/types/data/genBlock/genGetBlock.ts +160 -0
- package/src/types/data/genBlock/genGridViewBlock.ts +305 -0
- package/src/types/data/genBlock/genListViewBlock.ts +130 -0
- package/src/types/data/genBlock/genQueryComponent.ts +492 -0
- package/src/types/data/genBlock/genSelectBlock.ts +123 -0
- package/src/types/data/genBlock/genTableBlock.ts +300 -0
- package/src/types/data/genBlock/genUpdateBlock.ts +391 -0
- package/src/types/data/genBlock/index.ts +18 -0
- package/src/types/data/genBlock/utils.ts +214 -0
- package/src/types/data/genericTypes.ts +147 -0
- package/src/types/data/systemTypes.ts +1515 -0
- package/src/types/decorators/index.ts +52 -0
- package/src/types/generator/data.ts +206 -0
- package/src/types/generator/hotReload.ts +31 -0
- package/src/types/generator/index.ts +4 -0
- package/src/types/generator/load.ts +97 -0
- package/src/types/generator/page.ts +37 -0
- package/src/types/history.ts +14 -0
- package/src/types/index.ts +161 -0
- package/src/types/logic/BaseVariable.ts +130 -0
- package/src/types/logic/Logic.ts +442 -0
- package/src/types/logic/LogicItem.ts +1257 -0
- package/src/types/logic/Param.ts +328 -0
- package/src/types/logic/Return.ts +305 -0
- package/src/types/logic/Variable.ts +294 -0
- package/src/types/logic/expressions/BinaryExpression.ts +35 -0
- package/src/types/logic/expressions/BooleanLiteral.ts +25 -0
- package/src/types/logic/expressions/Identifier.ts +36 -0
- package/src/types/logic/expressions/LogicalExpression.ts +35 -0
- package/src/types/logic/expressions/MemberExpression.ts +33 -0
- package/src/types/logic/expressions/NullLiteral.ts +20 -0
- package/src/types/logic/expressions/NumericLiteral.ts +25 -0
- package/src/types/logic/expressions/StringLiteral.ts +25 -0
- package/src/types/logic/expressions/UnaryExpression.ts +30 -0
- package/src/types/logic/expressions/Unparsed.ts +25 -0
- package/src/types/logic/nodes/AssignmentExpression.ts +30 -0
- package/src/types/logic/nodes/BuiltInFuncParam.ts +35 -0
- package/src/types/logic/nodes/BuiltInFunction.ts +39 -0
- package/src/types/logic/nodes/CallConsoleLog.ts +25 -0
- package/src/types/logic/nodes/CallGraphQL.ts +36 -0
- package/src/types/logic/nodes/CallInterParam.ts +30 -0
- package/src/types/logic/nodes/CallInterface.ts +31 -0
- package/src/types/logic/nodes/CallLogic.ts +39 -0
- package/src/types/logic/nodes/CallMessageShow.ts +35 -0
- package/src/types/logic/nodes/Comment.ts +25 -0
- package/src/types/logic/nodes/CronJob.ts +25 -0
- package/src/types/logic/nodes/DBQuery.ts +25 -0
- package/src/types/logic/nodes/Destination.ts +52 -0
- package/src/types/logic/nodes/DestinationParam.ts +31 -0
- package/src/types/logic/nodes/End.ts +21 -0
- package/src/types/logic/nodes/ForEachStatement.ts +52 -0
- package/src/types/logic/nodes/IfStatement.ts +35 -0
- package/src/types/logic/nodes/JSBlock.ts +29 -0
- package/src/types/logic/nodes/JSONDeserialize.ts +25 -0
- package/src/types/logic/nodes/JSONSerialize.ts +25 -0
- package/src/types/logic/nodes/ProcessOutcome.ts +35 -0
- package/src/types/logic/nodes/Start.ts +20 -0
- package/src/types/logic/nodes/SwitchCase.ts +30 -0
- package/src/types/logic/nodes/SwitchStatement.ts +26 -0
- package/src/types/logic/nodes/TypeNote.ts +25 -0
- package/src/types/logic/nodes/WhileStatement.ts +30 -0
- package/src/types/logic/tools.js +170 -0
- package/src/types/logic/translator.js +636 -0
- package/src/types/logic/translator_backup.js +643 -0
- package/src/types/login.ts +36 -0
- package/src/types/nuims/Nuims.ts +493 -0
- package/src/types/page/Attr.ts +217 -0
- package/src/types/page/Block.ts +103 -0
- package/src/types/page/Directive.ts +208 -0
- package/src/types/page/Element.ts +1320 -0
- package/src/types/page/Event.ts +191 -0
- package/src/types/page/Lifecycle.ts +172 -0
- package/src/types/page/Page.ts +363 -0
- package/src/types/page/View.ts +1089 -0
- package/src/types/page/ViewParam.ts +265 -0
- package/src/types/page/ViewVariable.ts +274 -0
- package/src/types/process/Process.ts +306 -0
- package/src/types/process/ProcessComponent.ts +276 -0
- package/src/types/process/ProcessComponentAttribute.ts +131 -0
- package/src/types/process/ProcessComponentProperty.ts +68 -0
- package/src/types/process/ProcessComponentReturn.ts +235 -0
- package/src/types/process/ProcessComponentVariable.ts +225 -0
- package/src/types/process/ProcessInterface.ts +175 -0
- package/src/types/process/ProcessParam.ts +234 -0
- package/src/types/process/ProcessProperty.ts +69 -0
- package/src/types/process/ProcessReturn.ts +210 -0
- package/src/types/typeCheck.ts +109 -0
- package/src/types/utils/index.ts +82 -0
- package/src/types/utils/logger.ts +8 -0
- package/src/types/utils/string.ts +56 -0
- package/src/types/utils/traverse.ts +160 -0
- package/src/views/components/lcap-json-view/README.md +80 -0
- package/src/views/components/lcap-json-view/index.js +9 -0
- package/src/views/components/lcap-json-view/index.vue +61 -0
- package/src/views/components/lcap-json-view/node.vue +328 -0
- package/src/views/components/lcap-json-view/utils.js +41 -0
- package/src/views/examples/index.vue +44 -0
- package/src/views/examples/logic.json +1576 -0
- package/src/views/index.vue +28 -0
- package/src/views/specification/README.md +10 -0
- package/src/views/specification/conceptTree.js +1179 -0
- package/src/views/specification/index.vue +255 -0
- package/src/views/theme.css +138 -0
- package/tsconfig.json +34 -0
|
@@ -0,0 +1,1278 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
9
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ExpressionNode = exports.LogicNode = exports.LogicItem = exports.logicItemArrayKeyOfLogicItem = exports.logicItemKeyOfLogicItem = exports.evaluate = exports.LOGIC_TYPE = void 0;
|
|
13
|
+
const decorators_1 = require("../decorators");
|
|
14
|
+
const __1 = require("..");
|
|
15
|
+
const logic_1 = require("../../service/logic");
|
|
16
|
+
const utils_1 = require("../utils");
|
|
17
|
+
const cacheData_1 = require("../cacheData");
|
|
18
|
+
const tools_1 = require("./tools");
|
|
19
|
+
const Structure_1 = __importDefault(require("../data/Structure"));
|
|
20
|
+
var LOGIC_TYPE;
|
|
21
|
+
(function (LOGIC_TYPE) {
|
|
22
|
+
// LogicNode
|
|
23
|
+
LOGIC_TYPE["Start"] = "Start";
|
|
24
|
+
LOGIC_TYPE["ProcessOutcome"] = "ProcessOutcome";
|
|
25
|
+
LOGIC_TYPE["End"] = "End";
|
|
26
|
+
LOGIC_TYPE["IfStatement"] = "IfStatement";
|
|
27
|
+
LOGIC_TYPE["SwitchStatement"] = "SwitchStatement";
|
|
28
|
+
LOGIC_TYPE["SwitchCase"] = "SwitchCase";
|
|
29
|
+
LOGIC_TYPE["ForEachStatement"] = "ForEachStatement";
|
|
30
|
+
LOGIC_TYPE["WhileStatement"] = "WhileStatement";
|
|
31
|
+
LOGIC_TYPE["AssignmentExpression"] = "AssignmentExpression";
|
|
32
|
+
LOGIC_TYPE["Comment"] = "Comment";
|
|
33
|
+
LOGIC_TYPE["CallLogic"] = "CallLogic";
|
|
34
|
+
LOGIC_TYPE["CallInterface"] = "CallInterface";
|
|
35
|
+
LOGIC_TYPE["CallInterParam"] = "CallInterParam";
|
|
36
|
+
LOGIC_TYPE["CallGraphQL"] = "CallGraphQL";
|
|
37
|
+
LOGIC_TYPE["DBQuery"] = "DBQuery";
|
|
38
|
+
LOGIC_TYPE["CronJob"] = "CronJob";
|
|
39
|
+
LOGIC_TYPE["JSONSerialize"] = "JSONSerialize";
|
|
40
|
+
LOGIC_TYPE["JSONDeserialize"] = "JSONDeserialize";
|
|
41
|
+
LOGIC_TYPE["CallMessageShow"] = "CallMessageShow";
|
|
42
|
+
LOGIC_TYPE["CallConsoleLog"] = "CallConsoleLog";
|
|
43
|
+
LOGIC_TYPE["JSBlock"] = "JSBlock";
|
|
44
|
+
LOGIC_TYPE["TypeNote"] = "TypeNote";
|
|
45
|
+
LOGIC_TYPE["CallQueryComponent"] = "CallQueryComponent";
|
|
46
|
+
// Expression
|
|
47
|
+
LOGIC_TYPE["Identifier"] = "Identifier";
|
|
48
|
+
LOGIC_TYPE["NumericLiteral"] = "NumericLiteral";
|
|
49
|
+
LOGIC_TYPE["BooleanLiteral"] = "BooleanLiteral";
|
|
50
|
+
LOGIC_TYPE["StringLiteral"] = "StringLiteral";
|
|
51
|
+
LOGIC_TYPE["NullLiteral"] = "NullLiteral";
|
|
52
|
+
LOGIC_TYPE["UnaryExpression"] = "UnaryExpression";
|
|
53
|
+
LOGIC_TYPE["BinaryExpression"] = "BinaryExpression";
|
|
54
|
+
LOGIC_TYPE["LogicalExpression"] = "LogicalExpression";
|
|
55
|
+
LOGIC_TYPE["MemberExpression"] = "MemberExpression";
|
|
56
|
+
LOGIC_TYPE["CallExpression"] = "CallExpression";
|
|
57
|
+
LOGIC_TYPE["ObjectExpression"] = "ObjectExpression";
|
|
58
|
+
LOGIC_TYPE["ArrayExpression"] = "ArrayExpression";
|
|
59
|
+
LOGIC_TYPE["Destination"] = "Destination";
|
|
60
|
+
LOGIC_TYPE["DestinationParam"] = "DestinationParam";
|
|
61
|
+
LOGIC_TYPE["BuiltInFunction"] = "BuiltInFunction";
|
|
62
|
+
LOGIC_TYPE["BuiltInFuncParam"] = "BuiltInFuncParam";
|
|
63
|
+
LOGIC_TYPE["Unparsed"] = "Unparsed";
|
|
64
|
+
LOGIC_TYPE["QuerySelectExpression"] = "QuerySelectExpression";
|
|
65
|
+
LOGIC_TYPE["QueryFromExpression"] = "QueryFromExpression";
|
|
66
|
+
LOGIC_TYPE["QueryJoinExpression"] = "QueryJoinExpression";
|
|
67
|
+
LOGIC_TYPE["QueryAggregateExpression"] = "QueryAggregateExpression";
|
|
68
|
+
})(LOGIC_TYPE = exports.LOGIC_TYPE || (exports.LOGIC_TYPE = {}));
|
|
69
|
+
function evaluate(node, finalCode = true) {
|
|
70
|
+
if (!node)
|
|
71
|
+
return '';
|
|
72
|
+
if (node.type === 'Identifier')
|
|
73
|
+
return node.code || node.name;
|
|
74
|
+
if (node.type === 'NumericLiteral')
|
|
75
|
+
return node.value;
|
|
76
|
+
if (node.type === 'BooleanLiteral')
|
|
77
|
+
return `${node.value}`;
|
|
78
|
+
if (node.type === 'StringLiteral')
|
|
79
|
+
return `'${node.value}'`;
|
|
80
|
+
if (node.type === 'NullLiteral')
|
|
81
|
+
return 'null';
|
|
82
|
+
if (node.type === 'BinaryExpression') {
|
|
83
|
+
let left = evaluate(node.left, finalCode);
|
|
84
|
+
if (!finalCode && node.left?.type === LOGIC_TYPE.MemberExpression)
|
|
85
|
+
left = `(${left})`;
|
|
86
|
+
let right = evaluate(node.right, finalCode);
|
|
87
|
+
if (!finalCode && node.right?.type === LOGIC_TYPE.MemberExpression)
|
|
88
|
+
right = `(${right})`;
|
|
89
|
+
return `${left} ${node.operator} ${right}`;
|
|
90
|
+
}
|
|
91
|
+
if (node.type === 'LogicalExpression') {
|
|
92
|
+
let left = evaluate(node.left, finalCode);
|
|
93
|
+
if (!finalCode && node.left?.type === LOGIC_TYPE.MemberExpression)
|
|
94
|
+
left = `(${left})`;
|
|
95
|
+
let right = evaluate(node.right, finalCode);
|
|
96
|
+
if (!finalCode && node.right?.type === LOGIC_TYPE.MemberExpression)
|
|
97
|
+
right = `(${right})`;
|
|
98
|
+
return `${left} ${node.operator} ${right}`;
|
|
99
|
+
}
|
|
100
|
+
if (node.type === LOGIC_TYPE.UnaryExpression && node.operator === '!') {
|
|
101
|
+
const argument = node.argument;
|
|
102
|
+
const code = evaluate(argument, finalCode);
|
|
103
|
+
const arr = [LOGIC_TYPE.BinaryExpression, LOGIC_TYPE.LogicalExpression];
|
|
104
|
+
if (!finalCode)
|
|
105
|
+
arr.push(LOGIC_TYPE.MemberExpression);
|
|
106
|
+
return arr.includes(argument?.type) ? `!(${code})` : `!${code}`;
|
|
107
|
+
}
|
|
108
|
+
if (node.type === 'Unparsed') {
|
|
109
|
+
return node.code;
|
|
110
|
+
}
|
|
111
|
+
if (node.type === 'MemberExpression') {
|
|
112
|
+
const object = evaluate(node.object, finalCode);
|
|
113
|
+
const property = node.property;
|
|
114
|
+
if (finalCode || property.code?.includes('ID_ENUMVALUE_')) {
|
|
115
|
+
if (property.type === 'Identifier')
|
|
116
|
+
return `${object}.${property.code || property.name}`;
|
|
117
|
+
else if (property.type === 'StringLiteral')
|
|
118
|
+
return `${object}['${property.value}']`;
|
|
119
|
+
else if (property.type === 'NumericLiteral')
|
|
120
|
+
return `${object}[${property.value}]`;
|
|
121
|
+
}
|
|
122
|
+
else {
|
|
123
|
+
const lastPart = object.split(' && ').pop();
|
|
124
|
+
if (property.type === 'Identifier')
|
|
125
|
+
return `${object} && ${lastPart}.${property.code || property.name}`;
|
|
126
|
+
else if (property.type === 'StringLiteral')
|
|
127
|
+
return `${object} && ${lastPart}['${property.value}']`;
|
|
128
|
+
else if (property.type === 'NumericLiteral')
|
|
129
|
+
return `${object} && ${lastPart}[${property.value}]`;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
if (node.type === 'CallExpression') {
|
|
133
|
+
const args = [];
|
|
134
|
+
for (const argumentNode of node.arguments) {
|
|
135
|
+
args.push(evaluate(argumentNode, finalCode));
|
|
136
|
+
}
|
|
137
|
+
const name = node.callee.name;
|
|
138
|
+
return `${name}(${args.join(', ')})`;
|
|
139
|
+
}
|
|
140
|
+
if (node.type === 'ObjectExpression') {
|
|
141
|
+
const obj = {};
|
|
142
|
+
for (let { key, value } of node.properties) {
|
|
143
|
+
let keyValue = evaluate(key, finalCode);
|
|
144
|
+
if (/^"(.*)"$/.test(keyValue))
|
|
145
|
+
keyValue = RegExp.$1;
|
|
146
|
+
const valueTemp = evaluate(value, finalCode);
|
|
147
|
+
if (/^"(.*)"$/.test(valueTemp))
|
|
148
|
+
value = RegExp.$1;
|
|
149
|
+
obj[keyValue] = value;
|
|
150
|
+
}
|
|
151
|
+
return JSON.stringify(obj);
|
|
152
|
+
}
|
|
153
|
+
if (node.type === 'ArrayExpression') {
|
|
154
|
+
const arr = [];
|
|
155
|
+
for (const elementNode of node.elements) {
|
|
156
|
+
arr.push(evaluate(elementNode, finalCode));
|
|
157
|
+
}
|
|
158
|
+
return '[' + arr.join(', ') + ']';
|
|
159
|
+
}
|
|
160
|
+
if (node.type === 'Destination') {
|
|
161
|
+
const params = (node.params || [])
|
|
162
|
+
.filter((param) => param.pageParamKey && param.pageParamKeyValue)
|
|
163
|
+
.map((param) => evaluate(param.pageParamKey, finalCode) + '=${' + evaluate(param.pageParamKeyValue, finalCode) + '}');
|
|
164
|
+
let result = node.code;
|
|
165
|
+
if (params.length) {
|
|
166
|
+
result = '`' + `${node.code}?${params.join('&')}` + '`';
|
|
167
|
+
}
|
|
168
|
+
else {
|
|
169
|
+
result = '`' + `${result}` + '`';
|
|
170
|
+
}
|
|
171
|
+
return result.replace(/"/g, "'");
|
|
172
|
+
}
|
|
173
|
+
if (node.type === 'BuiltInFunction') {
|
|
174
|
+
const calleeCode = `$utils['${node.calleeCode}']`;
|
|
175
|
+
if (!calleeCode)
|
|
176
|
+
return;
|
|
177
|
+
// 需要保持params顺序
|
|
178
|
+
const params = (node.builtInFuncParams || [])
|
|
179
|
+
.map((param) => param.builtInFuncParamValue ? evaluate(param.builtInFuncParamValue, finalCode) : null);
|
|
180
|
+
let paramResult = params.join(',');
|
|
181
|
+
if (paramResult === ',') {
|
|
182
|
+
paramResult = '';
|
|
183
|
+
}
|
|
184
|
+
else {
|
|
185
|
+
paramResult = params.join(',');
|
|
186
|
+
}
|
|
187
|
+
return `${calleeCode}(${paramResult})`.replace(/"/g, "'");
|
|
188
|
+
}
|
|
189
|
+
if (node.type === 'TypeNote') {
|
|
190
|
+
const { type, format } = node.schema;
|
|
191
|
+
return `{ type: '${type}', format: '${format}' }`;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
exports.evaluate = evaluate;
|
|
195
|
+
exports.logicItemKeyOfLogicItem = ['test', 'left', 'right', 'each', 'item', 'index', 'start', 'end', 'variables', 'taskId', 'processInstanceId', 'startedBy', 'errorMessage', 'callInterParamValue', 'builtInFuncParamValue', 'pageParamKey', 'pageParamKeyValue', 'argument',
|
|
196
|
+
'select', 'from', 'limit', 'orderElement', 'aggregateParam', 'order', 'pageElement', 'pageSizeElement', 'groupElement',
|
|
197
|
+
];
|
|
198
|
+
exports.logicItemArrayKeyOfLogicItem = ['body', 'consequent', 'alternate', 'cases', 'params', 'arguments', 'builtInFuncParams',
|
|
199
|
+
'groupBy', 'orderBy', 'selectElementList', 'joinPartList', 'onExpressionList', 'where', 'having',
|
|
200
|
+
];
|
|
201
|
+
/**
|
|
202
|
+
* 逻辑项类
|
|
203
|
+
*/
|
|
204
|
+
class LogicItem extends __1.Vertex {
|
|
205
|
+
/**
|
|
206
|
+
* @param source 需要合并的部分参数
|
|
207
|
+
*/
|
|
208
|
+
constructor(source) {
|
|
209
|
+
super();
|
|
210
|
+
/**
|
|
211
|
+
* 概念类型
|
|
212
|
+
*/
|
|
213
|
+
this.level = __1.LEVEL_ENUM.logicItem;
|
|
214
|
+
/**
|
|
215
|
+
* Id
|
|
216
|
+
*/
|
|
217
|
+
this.id = undefined;
|
|
218
|
+
/**
|
|
219
|
+
* 父级 Id
|
|
220
|
+
*/
|
|
221
|
+
this.parentId = undefined;
|
|
222
|
+
/**
|
|
223
|
+
* 所属父级属性
|
|
224
|
+
*/
|
|
225
|
+
this.parentAttr = undefined;
|
|
226
|
+
this.parent = undefined;
|
|
227
|
+
this.logicId = undefined;
|
|
228
|
+
this.logic = undefined;
|
|
229
|
+
/**
|
|
230
|
+
* 标题
|
|
231
|
+
*/
|
|
232
|
+
this.label = undefined;
|
|
233
|
+
this.folded = false;
|
|
234
|
+
this.placeholderName = undefined;
|
|
235
|
+
/**
|
|
236
|
+
* OffsetX
|
|
237
|
+
*/
|
|
238
|
+
this.offsetX = undefined;
|
|
239
|
+
/**
|
|
240
|
+
* OffsetY
|
|
241
|
+
*/
|
|
242
|
+
this.offsetY = undefined;
|
|
243
|
+
/**
|
|
244
|
+
* 所在位置
|
|
245
|
+
*/
|
|
246
|
+
this._posIndex = undefined;
|
|
247
|
+
/**
|
|
248
|
+
* 标题
|
|
249
|
+
*/
|
|
250
|
+
this.type = undefined;
|
|
251
|
+
/**
|
|
252
|
+
* Ref
|
|
253
|
+
*/
|
|
254
|
+
this.refTarget = undefined;
|
|
255
|
+
this.callInterParam = undefined;
|
|
256
|
+
this.callInterParamValue = undefined;
|
|
257
|
+
this.builtInFuncParamValue = undefined;
|
|
258
|
+
this.pageParamKey = undefined;
|
|
259
|
+
this.pageParamKeyValue = undefined;
|
|
260
|
+
/**
|
|
261
|
+
* CallQueryComponent 对应的 structure 的 id
|
|
262
|
+
*/
|
|
263
|
+
this.structureRef = undefined;
|
|
264
|
+
this.schema = undefined;
|
|
265
|
+
/**
|
|
266
|
+
* 类型校验结果
|
|
267
|
+
*/
|
|
268
|
+
this.typeCheckNote = undefined;
|
|
269
|
+
source && this.assign(source);
|
|
270
|
+
}
|
|
271
|
+
/**
|
|
272
|
+
* 纯前端添加
|
|
273
|
+
*/
|
|
274
|
+
addIn(parent, parentId, parentAttr, _posIndex) {
|
|
275
|
+
if (!parent) {
|
|
276
|
+
if (!this.logic)
|
|
277
|
+
return;
|
|
278
|
+
if (this.logic.playgroundId === parentId) { // In playgroundId
|
|
279
|
+
const index = _posIndex || this.logic.playground.length;
|
|
280
|
+
this.logic.playground.splice(index, 0, this);
|
|
281
|
+
}
|
|
282
|
+
else { // In main body 这个后面让忠杰改成数组吧
|
|
283
|
+
const index = this.logic.body.findIndex((item) => item.id === parentId);
|
|
284
|
+
~index && this.logic.body.splice(index + 1, 0, this);
|
|
285
|
+
this.logic.body.forEach((item, index) => {
|
|
286
|
+
if (index) {
|
|
287
|
+
item.assign({ parentId: this.logic.body[index - 1].id });
|
|
288
|
+
}
|
|
289
|
+
});
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
else {
|
|
293
|
+
this.assign({ parent, parentAttr });
|
|
294
|
+
const attr = parent[parentAttr];
|
|
295
|
+
if (Array.isArray(attr)) {
|
|
296
|
+
const index = _posIndex;
|
|
297
|
+
~index && attr.splice(index, 0, this);
|
|
298
|
+
}
|
|
299
|
+
else {
|
|
300
|
+
if (!parentAttr)
|
|
301
|
+
return;
|
|
302
|
+
parent.assign({ [parentAttr]: this });
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
/**
|
|
307
|
+
* @temp 临时的
|
|
308
|
+
* @param body
|
|
309
|
+
*/
|
|
310
|
+
static preprocess(body) {
|
|
311
|
+
utils_1.traverse((current) => {
|
|
312
|
+
delete current.node.editable;
|
|
313
|
+
if (current.node.type !== 'ForEachStatement')
|
|
314
|
+
delete current.node.index;
|
|
315
|
+
// 处理 CallGraphQL
|
|
316
|
+
if (current.node.type === 'CallGraphQL') {
|
|
317
|
+
const body = current.node;
|
|
318
|
+
delete body.paramsType;
|
|
319
|
+
delete body.optionalParams;
|
|
320
|
+
body.params && body.params.forEach((param, index) => {
|
|
321
|
+
param._posIndex = index;
|
|
322
|
+
});
|
|
323
|
+
delete body.querySchemaMap;
|
|
324
|
+
delete body.singularResolverName;
|
|
325
|
+
body.querySchemaList = JSON.stringify(body.querySchemaList || []);
|
|
326
|
+
}
|
|
327
|
+
}, { node: body }, { mode: 'anyObject' });
|
|
328
|
+
// 处理 CallInterface
|
|
329
|
+
if (body.type === 'CallInterface') {
|
|
330
|
+
delete body.paramsType;
|
|
331
|
+
delete body.optionalParams;
|
|
332
|
+
body.params.forEach((param, index) => {
|
|
333
|
+
param._posIndex = index;
|
|
334
|
+
});
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
/**
|
|
338
|
+
* 创建
|
|
339
|
+
* @requires this.logic
|
|
340
|
+
* @param parent
|
|
341
|
+
* @param parentId
|
|
342
|
+
* @param parentAttr
|
|
343
|
+
* @param _posIndex
|
|
344
|
+
* @param cache 在前端不处理节点
|
|
345
|
+
*/
|
|
346
|
+
async create({ parent, parentId, parentAttr, _posIndex, cache, offsetX, offsetY, }, actionOptions) {
|
|
347
|
+
__1.config.defaultApp?.emit('saving');
|
|
348
|
+
const prevParent = this.parent;
|
|
349
|
+
if (parent) {
|
|
350
|
+
const attr = parent[parentAttr];
|
|
351
|
+
if (_posIndex === undefined && Array.isArray(attr))
|
|
352
|
+
_posIndex = attr.length;
|
|
353
|
+
}
|
|
354
|
+
offsetX = offsetX ?? this.offsetX;
|
|
355
|
+
offsetY = offsetY ?? this.offsetY;
|
|
356
|
+
const body = this.toJSON();
|
|
357
|
+
body.parentId = parentId;
|
|
358
|
+
body.parentAttr = parentAttr;
|
|
359
|
+
body._posIndex = _posIndex;
|
|
360
|
+
body.offsetX = offsetX;
|
|
361
|
+
body.offsetY = offsetY;
|
|
362
|
+
LogicItem.preprocess(body);
|
|
363
|
+
let result;
|
|
364
|
+
if (actionOptions?.actionMode !== __1.ACTION_MODE.undoRedo) {
|
|
365
|
+
__1.utils.logger.debug(`在该逻辑节点的属性"${parentAttr}"上插入一个节点"`, body);
|
|
366
|
+
body.logicId = this.logic && this.logic.id;
|
|
367
|
+
result = await logic_1.logicService.addItem({
|
|
368
|
+
headers: {
|
|
369
|
+
appId: __1.config.defaultApp?.id,
|
|
370
|
+
serviceId: this.logic?.interface?.serviceId,
|
|
371
|
+
operationAction: 'LogicItem.create',
|
|
372
|
+
operationDesc: actionOptions?.actionDesc || `添加逻辑项"${this.label || this.type}"`,
|
|
373
|
+
operationIgnore: actionOptions?.actionIgnore,
|
|
374
|
+
},
|
|
375
|
+
body,
|
|
376
|
+
});
|
|
377
|
+
this.deepPick(result, ['id', 'parentId', 'parentAttr', 'joinPartRef', 'structureRef']);
|
|
378
|
+
}
|
|
379
|
+
this.assign({
|
|
380
|
+
parent,
|
|
381
|
+
parentId,
|
|
382
|
+
parentAttr,
|
|
383
|
+
offsetX,
|
|
384
|
+
offsetY,
|
|
385
|
+
logicId: this.logic && this.logic.id,
|
|
386
|
+
});
|
|
387
|
+
LogicItem.from(this, this.logic, this.parent, false);
|
|
388
|
+
!cache && this.addIn(parent, parentId, parentAttr, _posIndex);
|
|
389
|
+
__1.utils.traverse(({ node }) => {
|
|
390
|
+
if (node.type === LOGIC_TYPE.CallQueryComponent) {
|
|
391
|
+
// 兼容 流程-流程节点 内部逻辑
|
|
392
|
+
const service = this.logic.processComponent ? this.logic.processComponent.process?.service : this.logic.interface?.service;
|
|
393
|
+
const structure = Structure_1.default.from({
|
|
394
|
+
id: node.structureRef,
|
|
395
|
+
}, service);
|
|
396
|
+
structure.loadPro();
|
|
397
|
+
}
|
|
398
|
+
}, { node: this }, {
|
|
399
|
+
mode: 'anyObject',
|
|
400
|
+
excludedKeySet: this.JSON_EXCLUDED_KEYS,
|
|
401
|
+
});
|
|
402
|
+
this.logic && this.logic.emit('change');
|
|
403
|
+
if (actionOptions?.checkTypeIgnore !== true) {
|
|
404
|
+
this.checkType();
|
|
405
|
+
prevParent && prevParent.checkType();
|
|
406
|
+
}
|
|
407
|
+
await __1.config.defaultApp?.history.load(actionOptions?.actionMode !== __1.ACTION_MODE.undoRedo && {
|
|
408
|
+
operationAction: 'LogicItem.create',
|
|
409
|
+
operationBeforeImage: null,
|
|
410
|
+
operationAfterImage: JSON.parse(JSON.stringify(this)),
|
|
411
|
+
operationDesc: `添加逻辑项"${this.label || this.type}"`,
|
|
412
|
+
});
|
|
413
|
+
__1.config.defaultApp?.emit('saved');
|
|
414
|
+
}
|
|
415
|
+
/**
|
|
416
|
+
* 创建或移动
|
|
417
|
+
* @requires this.logic
|
|
418
|
+
* @param parent
|
|
419
|
+
* @param parentId
|
|
420
|
+
* @param parentAttr
|
|
421
|
+
* @param _posIndex
|
|
422
|
+
* @param cache 在前端不处理节点
|
|
423
|
+
*/
|
|
424
|
+
async move({ parent, parentId, parentAttr, _posIndex, cache, offsetX, offsetY, }, actionOptions) {
|
|
425
|
+
__1.config.defaultApp?.emit('saving');
|
|
426
|
+
const prevParent = this.parent;
|
|
427
|
+
if (parentAttr && !parent) {
|
|
428
|
+
parent = cacheData_1.vertexsMap.get(parentId);
|
|
429
|
+
}
|
|
430
|
+
if (parent) {
|
|
431
|
+
const attr = parent[parentAttr];
|
|
432
|
+
if (_posIndex === undefined && Array.isArray(attr))
|
|
433
|
+
_posIndex = attr.length;
|
|
434
|
+
}
|
|
435
|
+
const body = this.toJSON();
|
|
436
|
+
body.parentId = parentId;
|
|
437
|
+
body.parentAttr = parentAttr;
|
|
438
|
+
body._posIndex = _posIndex;
|
|
439
|
+
LogicItem.preprocess(body);
|
|
440
|
+
if (actionOptions?.actionMode !== __1.ACTION_MODE.undoRedo) {
|
|
441
|
+
__1.utils.logger.debug(`在该逻辑节点的属性"${parentAttr}"上插入一个节点"`, body);
|
|
442
|
+
const result = await logic_1.logicService.moveItem({
|
|
443
|
+
headers: {
|
|
444
|
+
appId: __1.config.defaultApp?.id,
|
|
445
|
+
operationAction: 'LogicItem.move',
|
|
446
|
+
operationDesc: actionOptions?.actionDesc || `移动逻辑项"${this.label || this.type}"`,
|
|
447
|
+
},
|
|
448
|
+
body: {
|
|
449
|
+
id: body.id,
|
|
450
|
+
moveFromLogicItem: {
|
|
451
|
+
parentId: this.parentId,
|
|
452
|
+
parentAttr: this.parentAttr,
|
|
453
|
+
_posIndex: this._posIndex,
|
|
454
|
+
offsetX: this.offsetX,
|
|
455
|
+
offsetY: this.offsetY,
|
|
456
|
+
},
|
|
457
|
+
moveToLogicItem: {
|
|
458
|
+
parentId,
|
|
459
|
+
parentAttr,
|
|
460
|
+
_posIndex,
|
|
461
|
+
offsetX,
|
|
462
|
+
offsetY,
|
|
463
|
+
},
|
|
464
|
+
},
|
|
465
|
+
});
|
|
466
|
+
}
|
|
467
|
+
if (!(this.parentId === parentId && this.parentId === this.logic.playgroundId && this.parentAttr === parentAttr)) {
|
|
468
|
+
// 以下几句顺序不能变,注意!
|
|
469
|
+
!cache && this.remove();
|
|
470
|
+
this.assign({
|
|
471
|
+
parent,
|
|
472
|
+
parentId,
|
|
473
|
+
parentAttr,
|
|
474
|
+
offsetX,
|
|
475
|
+
offsetY,
|
|
476
|
+
});
|
|
477
|
+
!cache && this.addIn(parent, parentId, parentAttr, _posIndex);
|
|
478
|
+
}
|
|
479
|
+
else {
|
|
480
|
+
this.assign({
|
|
481
|
+
offsetX,
|
|
482
|
+
offsetY,
|
|
483
|
+
});
|
|
484
|
+
}
|
|
485
|
+
this.logic && this.logic.emit('change');
|
|
486
|
+
this.checkType();
|
|
487
|
+
prevParent && prevParent.checkType();
|
|
488
|
+
await __1.config.defaultApp?.history.load(actionOptions?.actionMode !== __1.ACTION_MODE.undoRedo && {
|
|
489
|
+
operationAction: 'LogicItem.move',
|
|
490
|
+
operationBeforeImage: null,
|
|
491
|
+
operationAfterImage: null,
|
|
492
|
+
operationDesc: `移动逻辑项"${this.label || this.type}"`,
|
|
493
|
+
});
|
|
494
|
+
__1.config.defaultApp?.emit('saved');
|
|
495
|
+
}
|
|
496
|
+
/**
|
|
497
|
+
* 创建或移动
|
|
498
|
+
* @requires this.logic
|
|
499
|
+
* @param parent
|
|
500
|
+
* @param parentId
|
|
501
|
+
* @param parentAttr
|
|
502
|
+
* @param _posIndex
|
|
503
|
+
* @param cache 在前端不处理节点
|
|
504
|
+
*/
|
|
505
|
+
createOrMove(options, actionOptions) {
|
|
506
|
+
if (this.id)
|
|
507
|
+
return this.move(options, actionOptions);
|
|
508
|
+
else
|
|
509
|
+
return this.create(options, actionOptions);
|
|
510
|
+
}
|
|
511
|
+
/**
|
|
512
|
+
* 粘贴
|
|
513
|
+
* @param logicItems
|
|
514
|
+
* @param targetType
|
|
515
|
+
* @param targetId
|
|
516
|
+
*/
|
|
517
|
+
static async paste(logicItems, targetType, targetId) {
|
|
518
|
+
if (!Array.isArray(logicItems))
|
|
519
|
+
logicItems = [logicItems];
|
|
520
|
+
logicItems.forEach((logicItem) => {
|
|
521
|
+
LogicItem.preprocess(logicItem);
|
|
522
|
+
});
|
|
523
|
+
const res = await logic_1.logicService.paste({
|
|
524
|
+
body: {
|
|
525
|
+
type: 'logicItem',
|
|
526
|
+
logicItems,
|
|
527
|
+
targetId,
|
|
528
|
+
targetType,
|
|
529
|
+
},
|
|
530
|
+
headers: {
|
|
531
|
+
appId: __1.config.defaultApp?.id,
|
|
532
|
+
operationAction: 'LogicItem.paste',
|
|
533
|
+
operationDesc: `粘贴逻辑项"${logicItems[0].label || logicItems[0].type}"`,
|
|
534
|
+
},
|
|
535
|
+
});
|
|
536
|
+
LogicItem.redoPaste(res);
|
|
537
|
+
}
|
|
538
|
+
static async redoPaste(res) {
|
|
539
|
+
const logic = cacheData_1.vertexsMap.get(res.targetId);
|
|
540
|
+
res.logicItems.forEach((logicItem) => {
|
|
541
|
+
logicItem = LogicItem.from(logicItem, logic, null);
|
|
542
|
+
logic.playground.push(logicItem);
|
|
543
|
+
logicItem.checkType();
|
|
544
|
+
__1.utils.traverse(({ node }) => {
|
|
545
|
+
if (node.type === LOGIC_TYPE.CallQueryComponent) {
|
|
546
|
+
// 兼容 流程-流程节点 内部逻辑
|
|
547
|
+
const service = node.logic.processComponent ? node.logic.processComponent.process?.service : node.logic.interface?.service;
|
|
548
|
+
const structure = Structure_1.default.from({
|
|
549
|
+
id: node.structureRef,
|
|
550
|
+
}, service);
|
|
551
|
+
structure.loadPro();
|
|
552
|
+
}
|
|
553
|
+
}, { node: logicItem }, {
|
|
554
|
+
mode: 'anyObject',
|
|
555
|
+
excludedKeySet: logicItem.JSON_EXCLUDED_KEYS,
|
|
556
|
+
});
|
|
557
|
+
});
|
|
558
|
+
await __1.config.defaultApp?.history.load();
|
|
559
|
+
__1.config.defaultApp?.emit('saved');
|
|
560
|
+
}
|
|
561
|
+
static async undoPaste(res) {
|
|
562
|
+
const logic = cacheData_1.vertexsMap.get(res.targetId);
|
|
563
|
+
const { playground } = logic;
|
|
564
|
+
for (let i = playground.length - 1; i >= 0; i--) {
|
|
565
|
+
if (res.logicItems.find((item) => item.id === playground[i].id)) {
|
|
566
|
+
__1.typeCheck.delete(playground[i].id);
|
|
567
|
+
playground.splice(i, 1);
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
logic.interface?.service?.syncStructures(); // 处理 CallQueryComponent 嵌套的情形
|
|
571
|
+
await __1.config.defaultApp?.history.load();
|
|
572
|
+
__1.config.defaultApp?.emit('saved');
|
|
573
|
+
}
|
|
574
|
+
/**
|
|
575
|
+
* 粘贴预处理,用于粘贴到表达式输入弹窗。此处,粘贴没有立即提交到后端,点击确定按钮后才提交。
|
|
576
|
+
* @param logicItems
|
|
577
|
+
* @param targetType
|
|
578
|
+
* @param targetId
|
|
579
|
+
*/
|
|
580
|
+
static async pretreatmentBeforePaste(logicItems, targetType, targetId) {
|
|
581
|
+
if (!Array.isArray(logicItems))
|
|
582
|
+
logicItems = [logicItems];
|
|
583
|
+
logicItems.forEach((logicItem) => {
|
|
584
|
+
LogicItem.preprocess(logicItem);
|
|
585
|
+
});
|
|
586
|
+
function removeId(logicItems) {
|
|
587
|
+
return JSON.parse(JSON.stringify(logicItems, (key, value) => key === 'id' ? undefined : value));
|
|
588
|
+
}
|
|
589
|
+
return logic_1.logicService.pretreatmentBeforePaste({
|
|
590
|
+
body: {
|
|
591
|
+
type: 'logicItem',
|
|
592
|
+
logicItems,
|
|
593
|
+
targetId,
|
|
594
|
+
targetType,
|
|
595
|
+
},
|
|
596
|
+
}).then((res) => {
|
|
597
|
+
res.logicItems = removeId(res.logicItems);
|
|
598
|
+
return res;
|
|
599
|
+
});
|
|
600
|
+
}
|
|
601
|
+
/**
|
|
602
|
+
* 纯前端创建
|
|
603
|
+
*/
|
|
604
|
+
virtualCreate(parent, parentId, parentAttr, _posIndex, cache) {
|
|
605
|
+
if (parent) {
|
|
606
|
+
const attr = parent[parentAttr];
|
|
607
|
+
if (_posIndex === undefined && Array.isArray(attr))
|
|
608
|
+
_posIndex = attr.length;
|
|
609
|
+
}
|
|
610
|
+
this.addIn(parent, parentId, parentAttr, _posIndex);
|
|
611
|
+
}
|
|
612
|
+
/**
|
|
613
|
+
* 纯前端 replaceWith
|
|
614
|
+
*/
|
|
615
|
+
async virtualReplaceWith(logicItem) {
|
|
616
|
+
this.remove();
|
|
617
|
+
let _posIndex;
|
|
618
|
+
if (this.parent) {
|
|
619
|
+
const attr = this.parent[this.parentAttr];
|
|
620
|
+
if (Array.isArray(attr))
|
|
621
|
+
_posIndex = attr.indexOf(this);
|
|
622
|
+
}
|
|
623
|
+
logicItem.virtualCreate(this.parent, this.parentId, this.parentAttr, _posIndex, false);
|
|
624
|
+
this.assign(logicItem);
|
|
625
|
+
return this;
|
|
626
|
+
}
|
|
627
|
+
/**
|
|
628
|
+
* 纯前端删除
|
|
629
|
+
*/
|
|
630
|
+
remove() {
|
|
631
|
+
// 处理 old
|
|
632
|
+
if (!this.parent) {
|
|
633
|
+
if (!this.logic)
|
|
634
|
+
return;
|
|
635
|
+
if (this.logic.playgroundId === this.parentId) { // In playgroundId
|
|
636
|
+
const index = this.logic.playground.indexOf(this);
|
|
637
|
+
~index && this.logic.playground.splice(index, 1);
|
|
638
|
+
}
|
|
639
|
+
else { // In main body 这个后面让忠杰改成数组吧
|
|
640
|
+
const index = this.logic.body.indexOf(this);
|
|
641
|
+
~index && this.logic.body.splice(index, 1);
|
|
642
|
+
this.logic.body.forEach((item, index) => {
|
|
643
|
+
if (index) {
|
|
644
|
+
item.assign({ parentId: this.logic.body[index - 1].id });
|
|
645
|
+
}
|
|
646
|
+
});
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
else {
|
|
650
|
+
const attr = this.parent[this.parentAttr];
|
|
651
|
+
if (Array.isArray(attr)) {
|
|
652
|
+
const index = attr.indexOf(this);
|
|
653
|
+
~index && attr.splice(index, 1);
|
|
654
|
+
}
|
|
655
|
+
else {
|
|
656
|
+
this.parent.assign({ [this.parentAttr]: null });
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
/**
|
|
661
|
+
* 删除逻辑节点
|
|
662
|
+
* @param cache 在前端不处理节点
|
|
663
|
+
*/
|
|
664
|
+
async delete(cache, actionOptions) {
|
|
665
|
+
__1.config.defaultApp?.emit('saving');
|
|
666
|
+
if (actionOptions?.actionMode !== __1.ACTION_MODE.undoRedo) {
|
|
667
|
+
if (this.id) {
|
|
668
|
+
const body = this.toPlainJSON();
|
|
669
|
+
/// @TODO: 不知道哪里来的 index
|
|
670
|
+
delete body.index;
|
|
671
|
+
///
|
|
672
|
+
try {
|
|
673
|
+
await logic_1.logicService.removeItem({
|
|
674
|
+
headers: {
|
|
675
|
+
appId: __1.config.defaultApp?.id,
|
|
676
|
+
serviceId: this.logic?.interface?.serviceId,
|
|
677
|
+
operationAction: 'LogicItem.delete',
|
|
678
|
+
operationDesc: `删除逻辑项"${this.label || this.type}"`,
|
|
679
|
+
},
|
|
680
|
+
body,
|
|
681
|
+
});
|
|
682
|
+
}
|
|
683
|
+
catch (err) {
|
|
684
|
+
await __1.config.defaultApp?.history.load();
|
|
685
|
+
throw err;
|
|
686
|
+
}
|
|
687
|
+
}
|
|
688
|
+
}
|
|
689
|
+
if (this.id) {
|
|
690
|
+
__1.typeCheck.delete(this.id);
|
|
691
|
+
this.logic.interface?.service?.syncStructures(); // 处理 CallQueryComponent 嵌套的情形
|
|
692
|
+
const parent = this.parent;
|
|
693
|
+
if (parent && parent.checkType) {
|
|
694
|
+
parent.checkType();
|
|
695
|
+
}
|
|
696
|
+
}
|
|
697
|
+
!cache && this.remove();
|
|
698
|
+
this.destroy();
|
|
699
|
+
this.logic && this.logic.emit('change');
|
|
700
|
+
await __1.config.defaultApp?.history.load(actionOptions?.actionMode !== __1.ACTION_MODE.undoRedo && {
|
|
701
|
+
operationAction: 'LogicItem.delete',
|
|
702
|
+
operationBeforeImage: JSON.parse(JSON.stringify(this)),
|
|
703
|
+
operationAfterImage: null,
|
|
704
|
+
operationDesc: `删除逻辑项"${this.label || this.type}"`,
|
|
705
|
+
});
|
|
706
|
+
__1.config.defaultApp?.emit('saved');
|
|
707
|
+
}
|
|
708
|
+
/**
|
|
709
|
+
* LogicItem 有选择框的情况,为了减少变量变更,使用 replaceWith 的方式
|
|
710
|
+
*/
|
|
711
|
+
async replaceWith(logicItem) {
|
|
712
|
+
await this.delete(true);
|
|
713
|
+
let _posIndex;
|
|
714
|
+
if (this.parent) {
|
|
715
|
+
const attr = this.parent[this.parentAttr];
|
|
716
|
+
if (Array.isArray(attr))
|
|
717
|
+
_posIndex = attr.indexOf(this);
|
|
718
|
+
}
|
|
719
|
+
await logicItem.createOrMove({
|
|
720
|
+
parent: this.parent,
|
|
721
|
+
parentId: this.parentId,
|
|
722
|
+
parentAttr: this.parentAttr,
|
|
723
|
+
_posIndex,
|
|
724
|
+
cache: true,
|
|
725
|
+
});
|
|
726
|
+
logicItem.assign({
|
|
727
|
+
offsetX: this.offsetX,
|
|
728
|
+
offsetY: this.offsetY,
|
|
729
|
+
});
|
|
730
|
+
this.assign(logicItem);
|
|
731
|
+
this.logic && this.logic.emit('change');
|
|
732
|
+
return this;
|
|
733
|
+
}
|
|
734
|
+
/**
|
|
735
|
+
* 修改逻辑项
|
|
736
|
+
*/
|
|
737
|
+
async update(source, actionOptions) {
|
|
738
|
+
__1.config.defaultApp?.emit('saving');
|
|
739
|
+
if (source) {
|
|
740
|
+
// 处理子节点
|
|
741
|
+
if (Object.values(source).some((value) => typeof value === 'object')) {
|
|
742
|
+
source = LogicItem.from(source, this.logic, this.parent);
|
|
743
|
+
__1.utils.clearObject(source);
|
|
744
|
+
}
|
|
745
|
+
this.assign(source);
|
|
746
|
+
}
|
|
747
|
+
// const body = this.toPlainJSON();
|
|
748
|
+
const body = this.toJSON();
|
|
749
|
+
body.params = this.params && JSON.parse(JSON.stringify(this.params));
|
|
750
|
+
body.querySchemaList = this.querySchemaList && Array.from(this.querySchemaList);
|
|
751
|
+
body.returnSchema = this.returnSchema;
|
|
752
|
+
if (this.parentAttr === 'item')
|
|
753
|
+
body.schema = this.schema;
|
|
754
|
+
if (this.type === 'TypeNote')
|
|
755
|
+
body.schema = this.schema;
|
|
756
|
+
LogicItem.preprocess(body);
|
|
757
|
+
__1.utils.logger.debug('修改逻辑项', body);
|
|
758
|
+
if (actionOptions?.actionMode !== __1.ACTION_MODE.undoRedo) {
|
|
759
|
+
const result = await logic_1.logicService.updateItem({
|
|
760
|
+
headers: {
|
|
761
|
+
appId: __1.config.defaultApp?.id,
|
|
762
|
+
operationAction: 'LogicItem.update',
|
|
763
|
+
operationDesc: `修改逻辑项"${this.label || this.type}"`,
|
|
764
|
+
operationIgnore: actionOptions?.actionIgnore,
|
|
765
|
+
},
|
|
766
|
+
body,
|
|
767
|
+
});
|
|
768
|
+
// this.deepPick(result, ['id', 'parentId', 'parentAttr']);
|
|
769
|
+
// 合并params里的id
|
|
770
|
+
if (body.params && body.params.length) {
|
|
771
|
+
const logicItem = LogicItem.from(result, this.logic, this.parent);
|
|
772
|
+
this.assign({ params: logicItem.params });
|
|
773
|
+
}
|
|
774
|
+
if (body.builtInFuncParams && body.builtInFuncParams.length) {
|
|
775
|
+
const logicItem = LogicItem.from(result, this.logic, this.parent);
|
|
776
|
+
this.assign({ builtInFuncParams: logicItem.builtInFuncParams });
|
|
777
|
+
}
|
|
778
|
+
}
|
|
779
|
+
// 处理 each 的问题
|
|
780
|
+
if (this.parentAttr === 'each') {
|
|
781
|
+
const each = this;
|
|
782
|
+
const item = this.parent.item;
|
|
783
|
+
let eachSchema = tools_1.getSchemaOfExpressionNode(each);
|
|
784
|
+
if (eachSchema) {
|
|
785
|
+
eachSchema = eachSchema.schema || eachSchema;
|
|
786
|
+
// eachSchema = convert2SchemaType(eachSchema);
|
|
787
|
+
item.schema = eachSchema.items; // 兼容老的items形式
|
|
788
|
+
if (eachSchema.type === 'genericType') {
|
|
789
|
+
item.schema = eachSchema.typeInstantiation.typeParams[0].typeParamValue;
|
|
790
|
+
}
|
|
791
|
+
if (!item.schema) {
|
|
792
|
+
item.schema = eachSchema;
|
|
793
|
+
}
|
|
794
|
+
return item.update(undefined, {
|
|
795
|
+
actionIgnore: true,
|
|
796
|
+
});
|
|
797
|
+
}
|
|
798
|
+
}
|
|
799
|
+
this.emitVertexIdToNameChange();
|
|
800
|
+
this.logic && this.logic.emit('change');
|
|
801
|
+
this.checkType();
|
|
802
|
+
await __1.config.defaultApp?.history.load(actionOptions?.actionMode !== __1.ACTION_MODE.undoRedo && {
|
|
803
|
+
operationAction: 'LogicItem.update',
|
|
804
|
+
operationBeforeImage: null,
|
|
805
|
+
operationAfterImage: null,
|
|
806
|
+
operationDesc: `修改逻辑项"${this.label || this.type}"`,
|
|
807
|
+
});
|
|
808
|
+
__1.config.defaultApp?.emit('saved');
|
|
809
|
+
return this;
|
|
810
|
+
}
|
|
811
|
+
/**
|
|
812
|
+
* 设置逻辑项标题
|
|
813
|
+
* @param label 标题
|
|
814
|
+
*/
|
|
815
|
+
async setLabel(label) {
|
|
816
|
+
this.assign({ label });
|
|
817
|
+
await this.update(undefined, {
|
|
818
|
+
actionDesc: '设置逻辑项标题',
|
|
819
|
+
});
|
|
820
|
+
}
|
|
821
|
+
/**
|
|
822
|
+
* 从后端 JSON 生成规范的 ExpressionNode 对象
|
|
823
|
+
* @param source JSON
|
|
824
|
+
* @param logic 父级 logic
|
|
825
|
+
*/
|
|
826
|
+
static from(source, logic, parent, shouldCreateNewItem = true) {
|
|
827
|
+
if (source.level === __1.LEVEL_ENUM.variable && source.type === LOGIC_TYPE.Identifier)
|
|
828
|
+
source.code = `ID_${source.id}`;
|
|
829
|
+
let logicItem;
|
|
830
|
+
if (!shouldCreateNewItem && (source instanceof LogicItem))
|
|
831
|
+
logicItem = source;
|
|
832
|
+
else
|
|
833
|
+
logicItem = source.level === 'logicNode' ? new LogicNode(source) : new ExpressionNode(source);
|
|
834
|
+
logicItem.assign({
|
|
835
|
+
logic,
|
|
836
|
+
parent,
|
|
837
|
+
});
|
|
838
|
+
if (logicItem.type === LOGIC_TYPE.CallGraphQL) {
|
|
839
|
+
const querySchemaList = logicItem.querySchemaList;
|
|
840
|
+
logicItem.assign({ querySchemaList: querySchemaList && typeof querySchemaList === 'string' ? JSON.parse(querySchemaList || '[]') : querySchemaList });
|
|
841
|
+
}
|
|
842
|
+
if (logicItem.type === LOGIC_TYPE.CallQueryComponent) {
|
|
843
|
+
logicItem.assign({
|
|
844
|
+
logicName: logic.name,
|
|
845
|
+
serviceId: logic.interface?.serviceId,
|
|
846
|
+
});
|
|
847
|
+
}
|
|
848
|
+
if (['QueryFromExpression', 'QueryJoinExpression', 'QueryAggregateExpression'].includes(logicItem.type)) {
|
|
849
|
+
logicItem.assign({
|
|
850
|
+
serviceId: logic?.interface?.serviceId,
|
|
851
|
+
});
|
|
852
|
+
}
|
|
853
|
+
exports.logicItemKeyOfLogicItem.forEach((key) => {
|
|
854
|
+
if (source[key]) {
|
|
855
|
+
if (source[key].level === __1.LEVEL_ENUM.logicNode)
|
|
856
|
+
logicItem.assign({ [key]: LogicNode.from(source[key], logic, logicItem) });
|
|
857
|
+
else if (source[key].level === __1.LEVEL_ENUM.expressionNode || source[key].level === __1.LEVEL_ENUM.variable)
|
|
858
|
+
logicItem.assign({ [key]: ExpressionNode.from(source[key], logic, logicItem) });
|
|
859
|
+
else if (!Array.isArray(source[key]) && !Object.keys(source[key]).length)
|
|
860
|
+
logicItem.assign({ [key]: null });
|
|
861
|
+
}
|
|
862
|
+
});
|
|
863
|
+
exports.logicItemArrayKeyOfLogicItem.forEach((key) => {
|
|
864
|
+
if (Array.isArray(source[key]))
|
|
865
|
+
logicItem.assign({ [key]: source[key].map((item) => LogicItem.from(item, logic, logicItem)) });
|
|
866
|
+
});
|
|
867
|
+
if (logicItem.callInterParam) {
|
|
868
|
+
logicItem.assign({ refTarget: LogicItem.getVertexByRef(logicItem.callInterParam) });
|
|
869
|
+
}
|
|
870
|
+
else if (logicItem.interfaceKey) {
|
|
871
|
+
logicItem.assign({ refTarget: LogicItem.getVertexByRef(logicItem.interfaceKey) });
|
|
872
|
+
}
|
|
873
|
+
return logicItem;
|
|
874
|
+
}
|
|
875
|
+
/**
|
|
876
|
+
* 校验类型
|
|
877
|
+
*/
|
|
878
|
+
async checkType() {
|
|
879
|
+
let crt = this;
|
|
880
|
+
const nodes = [];
|
|
881
|
+
do {
|
|
882
|
+
if (!['builtInFuncParams'].includes(crt.parentAttr)
|
|
883
|
+
&& !(crt instanceof ExpressionNode && crt.parent instanceof LogicNode)
|
|
884
|
+
&& (crt instanceof ExpressionNode || !crt.parent))
|
|
885
|
+
nodes.push(crt);
|
|
886
|
+
// CallQueryComponent 内部的节点不用checkType
|
|
887
|
+
if (crt.parent?.type === LOGIC_TYPE.CallQueryComponent)
|
|
888
|
+
nodes.splice(0, nodes.length);
|
|
889
|
+
crt = crt.parent;
|
|
890
|
+
} while (crt instanceof LogicItem);
|
|
891
|
+
for (const node of nodes) {
|
|
892
|
+
await this._checkType(node);
|
|
893
|
+
}
|
|
894
|
+
}
|
|
895
|
+
async _checkType(node) {
|
|
896
|
+
const res = await logic_1.logicService.checkType({
|
|
897
|
+
query: {
|
|
898
|
+
logicId: this.logic && this.logic.id,
|
|
899
|
+
loItemId: node.id,
|
|
900
|
+
},
|
|
901
|
+
});
|
|
902
|
+
if (res) {
|
|
903
|
+
res.logicId = this.logic && this.logic.id;
|
|
904
|
+
__1.typeCheck.pushAll([res]);
|
|
905
|
+
LogicItem.assignTypeCheckResult(node, res);
|
|
906
|
+
}
|
|
907
|
+
return res;
|
|
908
|
+
}
|
|
909
|
+
static assignTypeCheckResult(logicItem, typeCheckResult) {
|
|
910
|
+
if (Array.isArray(logicItem)) {
|
|
911
|
+
const map = new Map();
|
|
912
|
+
for (const item of typeCheckResult) {
|
|
913
|
+
map.set(item.id, item);
|
|
914
|
+
}
|
|
915
|
+
for (let i = 0; i < logicItem.length; i++) {
|
|
916
|
+
LogicItem.assignTypeCheckResult(logicItem[i], map.get(logicItem[i].id));
|
|
917
|
+
}
|
|
918
|
+
return;
|
|
919
|
+
}
|
|
920
|
+
if (!typeCheckResult || !logicItem || typeof typeCheckResult !== 'object')
|
|
921
|
+
return;
|
|
922
|
+
// if(logicItem.id === typeCheckResult.id)
|
|
923
|
+
logicItem.typeCheckNote = typeCheckResult.typeCheckNote;
|
|
924
|
+
for (const [key, object] of Object.entries(typeCheckResult)) {
|
|
925
|
+
if (['id', 'typeCheckNote', 'processComponentId', 'attributes'].includes(key))
|
|
926
|
+
continue;
|
|
927
|
+
LogicItem.assignTypeCheckResult(logicItem[key], object);
|
|
928
|
+
}
|
|
929
|
+
}
|
|
930
|
+
/**
|
|
931
|
+
* 生成 JS 脚本
|
|
932
|
+
*/
|
|
933
|
+
toScript() { return ''; }
|
|
934
|
+
getLogicItem(type) {
|
|
935
|
+
let node = this;
|
|
936
|
+
while (node) {
|
|
937
|
+
if (node.type === LOGIC_TYPE[type])
|
|
938
|
+
return node;
|
|
939
|
+
node = node.parent;
|
|
940
|
+
}
|
|
941
|
+
return undefined;
|
|
942
|
+
}
|
|
943
|
+
getSelectedTabOfCallQueryComponent(activeImage) {
|
|
944
|
+
const map = {
|
|
945
|
+
where: 'where',
|
|
946
|
+
from: 'from',
|
|
947
|
+
groupBy: 'groupBy',
|
|
948
|
+
select: 'groupBy',
|
|
949
|
+
having: 'groupBy',
|
|
950
|
+
orderBy: 'orderBy',
|
|
951
|
+
limit: 'orderBy',
|
|
952
|
+
};
|
|
953
|
+
let node = this;
|
|
954
|
+
while (node) {
|
|
955
|
+
if (node.parent?.type === LOGIC_TYPE.CallQueryComponent) {
|
|
956
|
+
const parentAttr = node.parentAttr;
|
|
957
|
+
return {
|
|
958
|
+
tab: map[parentAttr],
|
|
959
|
+
parentAttr,
|
|
960
|
+
};
|
|
961
|
+
}
|
|
962
|
+
node = node.parent;
|
|
963
|
+
}
|
|
964
|
+
if (activeImage?.parentAttr && map[activeImage.parentAttr])
|
|
965
|
+
return {
|
|
966
|
+
tab: map[activeImage.parentAttr],
|
|
967
|
+
parentAttr: activeImage.parentAttr,
|
|
968
|
+
};
|
|
969
|
+
}
|
|
970
|
+
}
|
|
971
|
+
__decorate([
|
|
972
|
+
decorators_1.immutable()
|
|
973
|
+
], LogicItem.prototype, "level", void 0);
|
|
974
|
+
__decorate([
|
|
975
|
+
decorators_1.immutable()
|
|
976
|
+
], LogicItem.prototype, "id", void 0);
|
|
977
|
+
__decorate([
|
|
978
|
+
decorators_1.immutable()
|
|
979
|
+
], LogicItem.prototype, "parentId", void 0);
|
|
980
|
+
__decorate([
|
|
981
|
+
decorators_1.immutable()
|
|
982
|
+
], LogicItem.prototype, "parentAttr", void 0);
|
|
983
|
+
__decorate([
|
|
984
|
+
decorators_1.excludedInJSON(),
|
|
985
|
+
decorators_1.immutable()
|
|
986
|
+
], LogicItem.prototype, "parent", void 0);
|
|
987
|
+
__decorate([
|
|
988
|
+
decorators_1.immutable()
|
|
989
|
+
], LogicItem.prototype, "logicId", void 0);
|
|
990
|
+
__decorate([
|
|
991
|
+
decorators_1.immutable()
|
|
992
|
+
], LogicItem.prototype, "logic", void 0);
|
|
993
|
+
__decorate([
|
|
994
|
+
decorators_1.immutable()
|
|
995
|
+
], LogicItem.prototype, "label", void 0);
|
|
996
|
+
__decorate([
|
|
997
|
+
decorators_1.immutable()
|
|
998
|
+
], LogicItem.prototype, "folded", void 0);
|
|
999
|
+
__decorate([
|
|
1000
|
+
decorators_1.immutable()
|
|
1001
|
+
], LogicItem.prototype, "placeholderName", void 0);
|
|
1002
|
+
__decorate([
|
|
1003
|
+
decorators_1.immutable()
|
|
1004
|
+
], LogicItem.prototype, "offsetX", void 0);
|
|
1005
|
+
__decorate([
|
|
1006
|
+
decorators_1.immutable()
|
|
1007
|
+
], LogicItem.prototype, "offsetY", void 0);
|
|
1008
|
+
__decorate([
|
|
1009
|
+
decorators_1.immutable()
|
|
1010
|
+
], LogicItem.prototype, "_posIndex", void 0);
|
|
1011
|
+
__decorate([
|
|
1012
|
+
decorators_1.immutable()
|
|
1013
|
+
], LogicItem.prototype, "type", void 0);
|
|
1014
|
+
__decorate([
|
|
1015
|
+
decorators_1.excludedInJSON(),
|
|
1016
|
+
decorators_1.immutable()
|
|
1017
|
+
], LogicItem.prototype, "refTarget", void 0);
|
|
1018
|
+
__decorate([
|
|
1019
|
+
decorators_1.immutable()
|
|
1020
|
+
], LogicItem.prototype, "callInterParam", void 0);
|
|
1021
|
+
__decorate([
|
|
1022
|
+
decorators_1.immutable()
|
|
1023
|
+
], LogicItem.prototype, "callInterParamValue", void 0);
|
|
1024
|
+
__decorate([
|
|
1025
|
+
decorators_1.immutable()
|
|
1026
|
+
], LogicItem.prototype, "builtInFuncParamValue", void 0);
|
|
1027
|
+
__decorate([
|
|
1028
|
+
decorators_1.immutable()
|
|
1029
|
+
], LogicItem.prototype, "pageParamKey", void 0);
|
|
1030
|
+
__decorate([
|
|
1031
|
+
decorators_1.immutable()
|
|
1032
|
+
], LogicItem.prototype, "pageParamKeyValue", void 0);
|
|
1033
|
+
__decorate([
|
|
1034
|
+
decorators_1.immutable()
|
|
1035
|
+
], LogicItem.prototype, "structureRef", void 0);
|
|
1036
|
+
__decorate([
|
|
1037
|
+
decorators_1.immutable()
|
|
1038
|
+
], LogicItem.prototype, "schema", void 0);
|
|
1039
|
+
__decorate([
|
|
1040
|
+
decorators_1.excludedInJSON()
|
|
1041
|
+
], LogicItem.prototype, "typeCheckNote", void 0);
|
|
1042
|
+
__decorate([
|
|
1043
|
+
decorators_1.action('删除逻辑节点')
|
|
1044
|
+
], LogicItem.prototype, "delete", null);
|
|
1045
|
+
__decorate([
|
|
1046
|
+
decorators_1.action('设置逻辑项标题')
|
|
1047
|
+
], LogicItem.prototype, "setLabel", null);
|
|
1048
|
+
exports.LogicItem = LogicItem;
|
|
1049
|
+
class LogicNode extends LogicItem {
|
|
1050
|
+
/**
|
|
1051
|
+
* @param source 需要合并的部分参数
|
|
1052
|
+
*/
|
|
1053
|
+
constructor(source) {
|
|
1054
|
+
super();
|
|
1055
|
+
/**
|
|
1056
|
+
* 逻辑节点类型
|
|
1057
|
+
*/
|
|
1058
|
+
this.type = undefined;
|
|
1059
|
+
this.test = undefined;
|
|
1060
|
+
this.consequent = undefined;
|
|
1061
|
+
this.alternate = undefined;
|
|
1062
|
+
this.cases = undefined;
|
|
1063
|
+
this.each = undefined;
|
|
1064
|
+
this.item = undefined;
|
|
1065
|
+
this.index = undefined;
|
|
1066
|
+
this.start = undefined;
|
|
1067
|
+
this.end = undefined;
|
|
1068
|
+
this.body = undefined;
|
|
1069
|
+
this.operator = undefined;
|
|
1070
|
+
this.left = undefined;
|
|
1071
|
+
this.right = undefined;
|
|
1072
|
+
this.arguments = undefined;
|
|
1073
|
+
this.params = undefined;
|
|
1074
|
+
this.value = undefined;
|
|
1075
|
+
this.method = undefined;
|
|
1076
|
+
this.entity = undefined;
|
|
1077
|
+
this.action = undefined;
|
|
1078
|
+
this.processDefinitionKey = undefined;
|
|
1079
|
+
this.taskId = undefined;
|
|
1080
|
+
this.finished = undefined;
|
|
1081
|
+
this.processInstanceId = undefined;
|
|
1082
|
+
this.schemaRef = undefined;
|
|
1083
|
+
this.returnSchema = undefined;
|
|
1084
|
+
this.cron = undefined;
|
|
1085
|
+
this.page = undefined;
|
|
1086
|
+
this.url = undefined;
|
|
1087
|
+
this.code = undefined;
|
|
1088
|
+
this.calleeCode = undefined;
|
|
1089
|
+
this.interfaceKey = undefined;
|
|
1090
|
+
this.name = undefined;
|
|
1091
|
+
this.from = undefined;
|
|
1092
|
+
const hasInstantiated = source && source.id && cacheData_1.vertexsMap.get(source.id) instanceof LogicNode;
|
|
1093
|
+
if (hasInstantiated) {
|
|
1094
|
+
console.warn(`LogicNode (${source.id}) 多次实例化`);
|
|
1095
|
+
// Object.assign(vertexsMap.get(source.id), source);
|
|
1096
|
+
// return vertexsMap.get(source.id) as LogicNode;
|
|
1097
|
+
}
|
|
1098
|
+
source && this.assign(source);
|
|
1099
|
+
}
|
|
1100
|
+
}
|
|
1101
|
+
__decorate([
|
|
1102
|
+
decorators_1.immutable()
|
|
1103
|
+
], LogicNode.prototype, "type", void 0);
|
|
1104
|
+
__decorate([
|
|
1105
|
+
decorators_1.immutable()
|
|
1106
|
+
], LogicNode.prototype, "test", void 0);
|
|
1107
|
+
__decorate([
|
|
1108
|
+
decorators_1.immutable()
|
|
1109
|
+
], LogicNode.prototype, "consequent", void 0);
|
|
1110
|
+
__decorate([
|
|
1111
|
+
decorators_1.immutable()
|
|
1112
|
+
], LogicNode.prototype, "each", void 0);
|
|
1113
|
+
__decorate([
|
|
1114
|
+
decorators_1.immutable()
|
|
1115
|
+
], LogicNode.prototype, "item", void 0);
|
|
1116
|
+
__decorate([
|
|
1117
|
+
decorators_1.immutable()
|
|
1118
|
+
], LogicNode.prototype, "index", void 0);
|
|
1119
|
+
__decorate([
|
|
1120
|
+
decorators_1.immutable()
|
|
1121
|
+
], LogicNode.prototype, "start", void 0);
|
|
1122
|
+
__decorate([
|
|
1123
|
+
decorators_1.immutable()
|
|
1124
|
+
], LogicNode.prototype, "end", void 0);
|
|
1125
|
+
__decorate([
|
|
1126
|
+
decorators_1.immutable()
|
|
1127
|
+
], LogicNode.prototype, "body", void 0);
|
|
1128
|
+
__decorate([
|
|
1129
|
+
decorators_1.immutable()
|
|
1130
|
+
], LogicNode.prototype, "operator", void 0);
|
|
1131
|
+
__decorate([
|
|
1132
|
+
decorators_1.immutable()
|
|
1133
|
+
], LogicNode.prototype, "left", void 0);
|
|
1134
|
+
__decorate([
|
|
1135
|
+
decorators_1.immutable()
|
|
1136
|
+
], LogicNode.prototype, "right", void 0);
|
|
1137
|
+
__decorate([
|
|
1138
|
+
decorators_1.immutable()
|
|
1139
|
+
], LogicNode.prototype, "arguments", void 0);
|
|
1140
|
+
__decorate([
|
|
1141
|
+
decorators_1.immutable()
|
|
1142
|
+
], LogicNode.prototype, "params", void 0);
|
|
1143
|
+
__decorate([
|
|
1144
|
+
decorators_1.immutable()
|
|
1145
|
+
], LogicNode.prototype, "value", void 0);
|
|
1146
|
+
__decorate([
|
|
1147
|
+
decorators_1.immutable()
|
|
1148
|
+
], LogicNode.prototype, "method", void 0);
|
|
1149
|
+
__decorate([
|
|
1150
|
+
decorators_1.immutable()
|
|
1151
|
+
], LogicNode.prototype, "entity", void 0);
|
|
1152
|
+
__decorate([
|
|
1153
|
+
decorators_1.immutable()
|
|
1154
|
+
], LogicNode.prototype, "action", void 0);
|
|
1155
|
+
__decorate([
|
|
1156
|
+
decorators_1.immutable()
|
|
1157
|
+
], LogicNode.prototype, "processDefinitionKey", void 0);
|
|
1158
|
+
__decorate([
|
|
1159
|
+
decorators_1.immutable()
|
|
1160
|
+
], LogicNode.prototype, "taskId", void 0);
|
|
1161
|
+
__decorate([
|
|
1162
|
+
decorators_1.immutable()
|
|
1163
|
+
], LogicNode.prototype, "finished", void 0);
|
|
1164
|
+
__decorate([
|
|
1165
|
+
decorators_1.immutable()
|
|
1166
|
+
], LogicNode.prototype, "processInstanceId", void 0);
|
|
1167
|
+
__decorate([
|
|
1168
|
+
decorators_1.immutable()
|
|
1169
|
+
], LogicNode.prototype, "schemaRef", void 0);
|
|
1170
|
+
__decorate([
|
|
1171
|
+
decorators_1.immutable()
|
|
1172
|
+
], LogicNode.prototype, "returnSchema", void 0);
|
|
1173
|
+
__decorate([
|
|
1174
|
+
decorators_1.immutable()
|
|
1175
|
+
], LogicNode.prototype, "cron", void 0);
|
|
1176
|
+
__decorate([
|
|
1177
|
+
decorators_1.immutable()
|
|
1178
|
+
], LogicNode.prototype, "page", void 0);
|
|
1179
|
+
__decorate([
|
|
1180
|
+
decorators_1.immutable()
|
|
1181
|
+
], LogicNode.prototype, "url", void 0);
|
|
1182
|
+
__decorate([
|
|
1183
|
+
decorators_1.immutable()
|
|
1184
|
+
], LogicNode.prototype, "code", void 0);
|
|
1185
|
+
__decorate([
|
|
1186
|
+
decorators_1.immutable()
|
|
1187
|
+
], LogicNode.prototype, "calleeCode", void 0);
|
|
1188
|
+
__decorate([
|
|
1189
|
+
decorators_1.immutable()
|
|
1190
|
+
], LogicNode.prototype, "interfaceKey", void 0);
|
|
1191
|
+
__decorate([
|
|
1192
|
+
decorators_1.immutable()
|
|
1193
|
+
], LogicNode.prototype, "name", void 0);
|
|
1194
|
+
__decorate([
|
|
1195
|
+
decorators_1.immutable()
|
|
1196
|
+
], LogicNode.prototype, "from", void 0);
|
|
1197
|
+
exports.LogicNode = LogicNode;
|
|
1198
|
+
class ExpressionNode extends LogicItem {
|
|
1199
|
+
/**
|
|
1200
|
+
* @param source 需要合并的部分参数
|
|
1201
|
+
*/
|
|
1202
|
+
constructor(source) {
|
|
1203
|
+
super();
|
|
1204
|
+
/**
|
|
1205
|
+
* 逻辑节点类型
|
|
1206
|
+
*/
|
|
1207
|
+
this.type = undefined;
|
|
1208
|
+
this.left = undefined;
|
|
1209
|
+
this.right = undefined;
|
|
1210
|
+
this.code = undefined;
|
|
1211
|
+
this.name = undefined;
|
|
1212
|
+
this.key = undefined;
|
|
1213
|
+
this.value = undefined;
|
|
1214
|
+
this.object = undefined;
|
|
1215
|
+
this.property = undefined;
|
|
1216
|
+
this.operator = undefined;
|
|
1217
|
+
this.properties = undefined;
|
|
1218
|
+
this.elements = undefined;
|
|
1219
|
+
this.callee = undefined;
|
|
1220
|
+
this.argument = undefined;
|
|
1221
|
+
/**
|
|
1222
|
+
* SchemaRef
|
|
1223
|
+
*/
|
|
1224
|
+
this.schemaRef = undefined;
|
|
1225
|
+
this.joinType = undefined;
|
|
1226
|
+
source && this.assign(source);
|
|
1227
|
+
}
|
|
1228
|
+
}
|
|
1229
|
+
__decorate([
|
|
1230
|
+
decorators_1.immutable()
|
|
1231
|
+
], ExpressionNode.prototype, "type", void 0);
|
|
1232
|
+
__decorate([
|
|
1233
|
+
decorators_1.immutable()
|
|
1234
|
+
], ExpressionNode.prototype, "left", void 0);
|
|
1235
|
+
__decorate([
|
|
1236
|
+
decorators_1.immutable()
|
|
1237
|
+
], ExpressionNode.prototype, "right", void 0);
|
|
1238
|
+
__decorate([
|
|
1239
|
+
decorators_1.immutable()
|
|
1240
|
+
], ExpressionNode.prototype, "code", void 0);
|
|
1241
|
+
__decorate([
|
|
1242
|
+
decorators_1.immutable()
|
|
1243
|
+
], ExpressionNode.prototype, "name", void 0);
|
|
1244
|
+
__decorate([
|
|
1245
|
+
decorators_1.immutable()
|
|
1246
|
+
], ExpressionNode.prototype, "key", void 0);
|
|
1247
|
+
__decorate([
|
|
1248
|
+
decorators_1.immutable()
|
|
1249
|
+
], ExpressionNode.prototype, "value", void 0);
|
|
1250
|
+
__decorate([
|
|
1251
|
+
decorators_1.immutable()
|
|
1252
|
+
], ExpressionNode.prototype, "object", void 0);
|
|
1253
|
+
__decorate([
|
|
1254
|
+
decorators_1.immutable()
|
|
1255
|
+
], ExpressionNode.prototype, "property", void 0);
|
|
1256
|
+
__decorate([
|
|
1257
|
+
decorators_1.immutable()
|
|
1258
|
+
], ExpressionNode.prototype, "operator", void 0);
|
|
1259
|
+
__decorate([
|
|
1260
|
+
decorators_1.immutable()
|
|
1261
|
+
], ExpressionNode.prototype, "properties", void 0);
|
|
1262
|
+
__decorate([
|
|
1263
|
+
decorators_1.immutable()
|
|
1264
|
+
], ExpressionNode.prototype, "elements", void 0);
|
|
1265
|
+
__decorate([
|
|
1266
|
+
decorators_1.immutable()
|
|
1267
|
+
], ExpressionNode.prototype, "callee", void 0);
|
|
1268
|
+
__decorate([
|
|
1269
|
+
decorators_1.immutable()
|
|
1270
|
+
], ExpressionNode.prototype, "argument", void 0);
|
|
1271
|
+
__decorate([
|
|
1272
|
+
decorators_1.immutable()
|
|
1273
|
+
], ExpressionNode.prototype, "schemaRef", void 0);
|
|
1274
|
+
__decorate([
|
|
1275
|
+
decorators_1.immutable()
|
|
1276
|
+
], ExpressionNode.prototype, "joinType", void 0);
|
|
1277
|
+
exports.ExpressionNode = ExpressionNode;
|
|
1278
|
+
//# sourceMappingURL=LogicItem.js.map
|