@lcap/nasl 3.8.2-beta.7 → 3.8.2-beta.9
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/.nyc_output/943352aa-23df-44e0-863b-3dcd3e8bf57a.json +1 -0
- package/.nyc_output/processinfo/943352aa-23df-44e0-863b-3dcd3e8bf57a.json +1 -0
- package/.nyc_output/processinfo/index.json +1 -1
- package/coverage/cobertura-coverage.xml +66121 -10220
- package/coverage/index.html +50 -395
- package/coverage/src/automate/engine/index.html +19 -19
- package/coverage/src/automate/engine/utils.js.html +101 -101
- package/coverage/src/bak/index.html +19 -19
- package/coverage/src/bak/translator.js.html +96 -141
- package/coverage/src/breakpoint/generator/AfterStartNode.ts.html +13 -13
- package/coverage/src/breakpoint/generator/BeforeEndNode.ts.html +13 -13
- package/coverage/src/breakpoint/generator/BreakpointNode.ts.html +29 -29
- package/coverage/src/breakpoint/generator/CallbackNode.ts.html +10 -10
- package/coverage/src/breakpoint/generator/index.html +47 -47
- package/coverage/src/breakpoint/generator/index.ts.html +20 -20
- package/coverage/src/breakpoint/index.html +7 -7
- package/coverage/src/breakpoint/index.ts.html +6 -6
- package/coverage/src/breakpoint/shared/constants.ts.html +7 -7
- package/coverage/src/breakpoint/shared/index.html +45 -45
- package/coverage/src/breakpoint/shared/index.ts.html +5 -5
- package/coverage/src/breakpoint/shared/operations.ts.html +15 -15
- package/coverage/src/breakpoint/shared/socket.ts.html +85 -85
- package/coverage/src/breakpoint/shared/utils.ts.html +49 -49
- package/coverage/src/breakpoint/store/core.ts.html +100 -100
- package/coverage/src/breakpoint/store/dock.ts.html +46 -46
- package/coverage/src/breakpoint/store/index.html +33 -33
- package/coverage/src/breakpoint/store/index.ts.html +7 -7
- package/coverage/src/common/BaseNode.ts.html +350 -1187
- package/coverage/src/common/Command.ts.html +20 -20
- package/coverage/src/common/EventEmitter.ts.html +31 -49
- package/coverage/src/common/Messager.ts.html +28 -28
- package/coverage/src/common/asyncFuncMap.ts.html +7 -7
- package/coverage/src/common/index.html +55 -70
- package/coverage/src/common/index.ts.html +8 -11
- package/coverage/src/concepts/Abort__.ts.html +20 -56
- package/coverage/src/concepts/Anchor__.ts.html +51 -117
- package/coverage/src/concepts/AnonymousFunction__.ts.html +232 -343
- package/coverage/src/concepts/App__.ts.html +1283 -2681
- package/coverage/src/concepts/Argument__.ts.html +135 -135
- package/coverage/src/concepts/Assignee__.ts.html +91 -250
- package/coverage/src/concepts/AssignmentLine__.ts.html +28 -88
- package/coverage/src/concepts/Assignment__.ts.html +110 -206
- package/coverage/src/concepts/Attribute__.ts.html +50 -239
- package/coverage/src/concepts/AuthInterface__.ts.html +32 -26
- package/coverage/src/concepts/AuthLogicForCallInterface__.ts.html +188 -203
- package/coverage/src/concepts/AuthLogic__.ts.html +28 -43
- package/coverage/src/concepts/BackendVariable__.ts.html +132 -438
- package/coverage/src/concepts/Backend__.ts.html +57 -156
- package/coverage/src/concepts/BatchAssignment__.ts.html +270 -420
- package/coverage/src/concepts/BinaryExpression__.ts.html +158 -266
- package/coverage/src/concepts/BindAttribute__.ts.html +204 -399
- package/coverage/src/concepts/BindDirective__.ts.html +73 -217
- package/coverage/src/concepts/BindEvent__.ts.html +161 -293
- package/coverage/src/concepts/BindStyle__.ts.html +58 -139
- package/coverage/src/concepts/BooleanLiteral__.ts.html +33 -63
- package/coverage/src/concepts/CallAuthInterface__.ts.html +95 -236
- package/coverage/src/concepts/CallConnector__.ts.html +69 -108
- package/coverage/src/concepts/CallFunction__.ts.html +234 -399
- package/coverage/src/concepts/CallInterface__.ts.html +145 -241
- package/coverage/src/concepts/CallLogic__.ts.html +525 -633
- package/coverage/src/concepts/CallQueryComponent__.ts.html +232 -385
- package/coverage/src/concepts/Comment__.ts.html +27 -63
- package/coverage/src/concepts/CompletionProperty__.ts.html +51 -72
- package/coverage/src/concepts/ConfigGroup__.ts.html +51 -99
- package/coverage/src/concepts/ConfigPropertyValue__.ts.html +34 -40
- package/coverage/src/concepts/ConfigProperty__.ts.html +78 -150
- package/coverage/src/concepts/Configuration__.ts.html +48 -99
- package/coverage/src/concepts/Connection__.ts.html +64 -154
- package/coverage/src/concepts/ConnectorTrigger__.ts.html +32 -35
- package/coverage/src/concepts/Connector__.ts.html +228 -3117
- package/coverage/src/concepts/Constant__.ts.html +74 -374
- package/coverage/src/concepts/DataSource__.ts.html +104 -173
- package/coverage/src/concepts/DatabaseTypeAnnotation__.ts.html +21 -27
- package/coverage/src/concepts/Destination__.ts.html +121 -190
- package/coverage/src/concepts/End__.ts.html +40 -76
- package/coverage/src/concepts/EntityIndex__.ts.html +44 -80
- package/coverage/src/concepts/EntityProperty__.ts.html +158 -440
- package/coverage/src/concepts/Entity__.ts.html +161 -326
- package/coverage/src/concepts/EnumItem__.ts.html +33 -66
- package/coverage/src/concepts/Enum__.ts.html +64 -139
- package/coverage/src/concepts/Event__.ts.html +51 -87
- package/coverage/src/concepts/ExternalDestination__.ts.html +60 -126
- package/coverage/src/concepts/ForEachStatement__.ts.html +152 -239
- package/coverage/src/concepts/FrontendLibrary__.ts.html +69 -153
- package/coverage/src/concepts/FrontendVariable__.ts.html +19 -76
- package/coverage/src/concepts/Frontend__.ts.html +161 -884
- package/coverage/src/concepts/Function__.ts.html +171 -396
- package/coverage/src/concepts/Identifier__.ts.html +100 -130
- package/coverage/src/concepts/IfStatement__.ts.html +110 -209
- package/coverage/src/concepts/Integration__.ts.html +57 -132
- package/coverage/src/concepts/InterfaceParam__.ts.html +76 -310
- package/coverage/src/concepts/Interface__.ts.html +183 -324
- package/coverage/src/concepts/JSBlock__.ts.html +26 -59
- package/coverage/src/concepts/JavaLogic__.ts.html +28 -58
- package/coverage/src/concepts/LogicItem__.ts.html +73 -151
- package/coverage/src/concepts/Logic__.ts.html +509 -965
- package/coverage/src/concepts/MatchCase__.ts.html +158 -281
- package/coverage/src/concepts/Match__.ts.html +121 -280
- package/coverage/src/concepts/MemberExpression__.ts.html +172 -256
- package/coverage/src/concepts/MicroApp__.ts.html +34 -25
- package/coverage/src/concepts/Module__.ts.html +1270 -1375
- package/coverage/src/concepts/MsgTriggerEvent__.ts.html +46 -94
- package/coverage/src/concepts/MsgTriggerLauncher__.ts.html +48 -93
- package/coverage/src/concepts/Namespace__.ts.html +630 -1251
- package/coverage/src/concepts/NewComposite__.ts.html +341 -557
- package/coverage/src/concepts/NewList__.ts.html +111 -291
- package/coverage/src/concepts/NewMap__.ts.html +128 -332
- package/coverage/src/concepts/New__.ts.html +21 -57
- package/coverage/src/concepts/NullLiteral__.ts.html +23 -56
- package/coverage/src/concepts/NumericLiteral__.ts.html +51 -114
- package/coverage/src/concepts/OqlQueryComponent__.ts.html +76 -211
- package/coverage/src/concepts/OverriddenLogic__.ts.html +394 -643
- package/coverage/src/concepts/Param__.ts.html +174 -315
- package/coverage/src/concepts/Point__.ts.html +21 -27
- package/coverage/src/concepts/ProcessComponent__.ts.html +67 -145
- package/coverage/src/concepts/ProcessElement__.ts.html +281 -854
- package/coverage/src/concepts/ProcessOutcome__.ts.html +25 -100
- package/coverage/src/concepts/ProcessOutcomes__.ts.html +26 -113
- package/coverage/src/concepts/Process__.ts.html +201 -552
- package/coverage/src/concepts/QueryAggregateExpression__.ts.html +35 -89
- package/coverage/src/concepts/QueryFieldExpression__.ts.html +35 -62
- package/coverage/src/concepts/QueryFromExpression__.ts.html +47 -119
- package/coverage/src/concepts/QueryGroupByExpression__.ts.html +37 -97
- package/coverage/src/concepts/QueryJoinExpression__.ts.html +69 -153
- package/coverage/src/concepts/QueryLimitExpression__.ts.html +36 -105
- package/coverage/src/concepts/QueryOrderByExpression__.ts.html +36 -108
- package/coverage/src/concepts/QuerySelectExpression__.ts.html +50 -101
- package/coverage/src/concepts/Rect__.ts.html +25 -25
- package/coverage/src/concepts/Return__.ts.html +131 -368
- package/coverage/src/concepts/Role__.ts.html +37 -67
- package/coverage/src/concepts/SelectMembers__.ts.html +57 -141
- package/coverage/src/concepts/Slot__.ts.html +40 -64
- package/coverage/src/concepts/SqlQueryComponent__.ts.html +62 -122
- package/coverage/src/concepts/Start__.ts.html +25 -58
- package/coverage/src/concepts/StringInterpolation__.ts.html +77 -185
- package/coverage/src/concepts/StringLiteral__.ts.html +47 -158
- package/coverage/src/concepts/StructureProperty__.ts.html +78 -306
- package/coverage/src/concepts/Structure__.ts.html +90 -285
- package/coverage/src/concepts/SwitchCase__.ts.html +66 -141
- package/coverage/src/concepts/SwitchStatement__.ts.html +58 -136
- package/coverage/src/concepts/Theme__.ts.html +24 -36
- package/coverage/src/concepts/Transactional__.ts.html +33 -36
- package/coverage/src/concepts/TriggerEvent__.ts.html +480 -63
- package/coverage/src/concepts/TriggerLauncher__.ts.html +43 -73
- package/coverage/src/concepts/TypeAnnotation__.ts.html +231 -564
- package/coverage/src/concepts/TypeParam__.ts.html +23 -59
- package/coverage/src/concepts/UnaryExpression__.ts.html +47 -131
- package/coverage/src/concepts/Unparsed__.ts.html +29 -59
- package/coverage/src/concepts/UseComponent__.ts.html +21 -27
- package/coverage/src/concepts/ValidationRule__.ts.html +96 -234
- package/coverage/src/concepts/Variable__.ts.html +132 -456
- package/coverage/src/concepts/ViewBlock__.ts.html +23 -26
- package/coverage/src/concepts/ViewComponent__.ts.html +157 -394
- package/coverage/src/concepts/ViewElement__.ts.html +514 -910
- package/coverage/src/concepts/View__.ts.html +425 -1271
- package/coverage/src/concepts/WhileStatement__.ts.html +79 -175
- package/coverage/src/concepts/basics/stdlib/index.html +85 -85
- package/coverage/src/concepts/basics/stdlib/index.ts.html +29 -167
- package/coverage/src/concepts/basics/stdlib/nasl.auth.ts.html +152 -206
- package/coverage/src/concepts/basics/stdlib/nasl.browser.ts.html +139 -172
- package/coverage/src/concepts/basics/stdlib/nasl.collection.ts.html +47 -92
- package/coverage/src/concepts/basics/stdlib/nasl.configuration.ts.html +31 -130
- package/coverage/src/concepts/basics/stdlib/nasl.core.ts.html +43 -61
- package/coverage/src/concepts/basics/stdlib/nasl.event.ts.html +23 -53
- package/coverage/src/concepts/basics/stdlib/nasl.http.ts.html +167 -203
- package/coverage/src/concepts/basics/stdlib/nasl.interface.ts.html +45 -78
- package/coverage/src/concepts/basics/stdlib/nasl.io.ts.html +51 -81
- package/coverage/src/concepts/basics/stdlib/nasl.logging.ts.html +66 -69
- package/coverage/src/concepts/basics/stdlib/nasl.process.ts.html +606 -654
- package/coverage/src/concepts/basics/stdlib/nasl.ui.ts.html +993 -1050
- package/coverage/src/concepts/basics/stdlib/nasl.util.ts.html +2131 -2236
- package/coverage/src/concepts/basics/stdlib/nasl.validation.ts.html +563 -596
- package/coverage/src/concepts/basics/stdlib/reference2TypeAnnotationList.ts.html +40 -28
- package/coverage/src/concepts/basics/stdlib/timeZone.ts.html +9 -9
- package/coverage/src/concepts/basics/types/coreTypeList.ts.html +7 -7
- package/coverage/src/concepts/basics/types/index.html +16 -16
- package/coverage/src/concepts/basics/types/index.ts.html +18 -18
- package/coverage/src/concepts/index.html +1215 -1365
- package/coverage/src/concepts/index.ts.html +7 -31
- package/coverage/src/concepts/index__.ts.html +8 -38
- package/coverage/src/config.ts.html +20 -2
- package/coverage/src/decorators/index.html +32 -32
- package/coverage/src/decorators/index.ts.html +93 -108
- package/coverage/src/decorators/promise.ts.html +26 -26
- package/coverage/src/eventBus.ts.html +7 -7
- package/coverage/src/generator/compileComponent.ts.html +10 -10
- package/coverage/src/generator/genBundleFiles.ts.html +45 -273
- package/coverage/src/generator/genHash.ts.html +8 -8
- package/coverage/src/generator/genMetaData.ts.html +49 -280
- package/coverage/src/generator/genReleaseBody.ts.html +98 -113
- package/coverage/src/generator/icestark.ts.html +8 -14
- package/coverage/src/generator/index.html +87 -87
- package/coverage/src/generator/index.ts.html +6 -6
- package/coverage/src/generator/microApp.ts.html +10 -10
- package/coverage/src/generator/permission.ts.html +80 -152
- package/coverage/src/generator/qiankun.ts.html +7 -13
- package/coverage/src/generator/styleReplacer.ts.html +17 -17
- package/coverage/src/index.html +10 -40
- package/coverage/src/index.ts.html +12 -15
- package/coverage/src/manager/diagnostic.ts.html +31 -28
- package/coverage/src/manager/index.html +27 -27
- package/coverage/src/manager/stepRecorder.ts.html +17 -17
- package/coverage/src/natural/genNaturalTS.ts.html +30 -30
- package/coverage/src/natural/index.html +41 -41
- package/coverage/src/natural/index.ts.html +6 -6
- package/coverage/src/natural/naslStdlibMap.ts.html +10 -10
- package/coverage/src/natural/transformTSCode.ts.html +137 -197
- package/coverage/src/sentry/index.html +19 -19
- package/coverage/src/sentry/index.ts.html +43 -49
- package/coverage/src/server/createUiTs.ts.html +37 -46
- package/coverage/src/server/entity2LogicNamespace.ts.html +21 -21
- package/coverage/src/server/event.js.html +7 -7
- package/coverage/src/server/extendBaseNode.ts.html +90 -132
- package/coverage/src/server/formatTsUtils.ts.html +105 -108
- package/coverage/src/server/getConnector.ts.html +24 -96
- package/coverage/src/server/getExtensionModules.ts.html +14 -14
- package/coverage/src/server/getFunctions.ts.html +15 -15
- package/coverage/src/server/getInterfaces.ts.html +18 -18
- package/coverage/src/server/getLogging.ts.html +11 -11
- package/coverage/src/server/getLogics.ts.html +74 -122
- package/coverage/src/server/getMemberIdentifier.ts.html +163 -358
- package/coverage/src/server/getProcessComponents.ts.html +13 -13
- package/coverage/src/server/getProcesses.ts.html +86 -236
- package/coverage/src/server/getValidates.ts.html +14 -17
- package/coverage/src/server/index.html +181 -181
- package/coverage/src/server/index.ts.html +8 -11
- package/coverage/src/server/naslServer.ts.html +1270 -1933
- package/coverage/src/server/naslStdlibMap.ts.html +10 -10
- package/coverage/src/server/process2LogicNamespace.ts.html +20 -20
- package/coverage/src/server/translator.ts.html +89 -134
- package/coverage/src/service/creator/add.configs.js.html +17 -35
- package/coverage/src/service/creator/errHandles.js.html +45 -36
- package/coverage/src/service/creator/index.html +35 -35
- package/coverage/src/service/creator/index.js.html +14 -14
- package/coverage/src/service/datasource/api.js.html +7 -7
- package/coverage/src/service/datasource/index.html +12 -12
- package/coverage/src/service/datasource/index.js.html +5 -5
- package/coverage/src/service/logic/api.js.html +7 -7
- package/coverage/src/service/logic/index.html +12 -12
- package/coverage/src/service/logic/index.js.html +5 -5
- package/coverage/src/service/storage/api.js.html +7 -7
- package/coverage/src/service/storage/index.html +56 -56
- package/coverage/src/service/storage/index.ts.html +5 -5
- package/coverage/src/service/storage/init.ts.html +624 -1758
- package/coverage/src/service/storage/jsoner.ts.html +23 -86
- package/coverage/src/service/storage/map.ts.html +21 -21
- package/coverage/src/service/storage/service.ts.html +14 -14
- package/coverage/src/service/storage/storagePoint.ts.html +9 -9
- package/coverage/src/templator/genCallComponentLogic.ts.html +12 -12
- package/coverage/src/templator/genCreateBlock.ts.html +94 -154
- package/coverage/src/templator/genCurdEditMultipleKeyBlock.ts.html +90 -90
- package/coverage/src/templator/genCurdMultipleKeyBlock.ts.html +150 -132
- package/coverage/src/templator/genEditTableBlock.ts.html +41 -104
- package/coverage/src/templator/genEnumSelectBlock.ts.html +12 -93
- package/coverage/src/templator/genGetBlock.ts.html +18 -18
- package/coverage/src/templator/genGridViewBlock.ts.html +35 -35
- package/coverage/src/templator/genListViewBlock.ts.html +15 -15
- package/coverage/src/templator/genQueryComponent.ts.html +35 -35
- package/coverage/src/templator/genSelectBlock.ts.html +20 -101
- package/coverage/src/templator/genTableBlock.ts.html +33 -96
- package/coverage/src/templator/genUpdateBlock.ts.html +78 -162
- package/coverage/src/templator/index.html +147 -147
- package/coverage/src/templator/index.ts.html +12 -12
- package/coverage/src/templator/utils.ts.html +32 -95
- package/coverage/src/translator/constant.ts.html +7 -7
- package/coverage/src/translator/index.html +28 -43
- package/coverage/src/translator/index.ts.html +6 -6
- package/coverage/src/translator/utils.ts.html +71 -452
- package/coverage/src/utils/cookie.ts.html +19 -19
- package/coverage/src/utils/env.ts.html +2 -2
- package/coverage/src/utils/index.html +37 -82
- package/coverage/src/utils/index.ts.html +798 -66
- package/coverage/src/utils/logger.ts.html +1 -1
- package/coverage/src/utils/sortTsString.ts.html +18 -33
- package/coverage/src/utils/string.ts.html +50 -8
- package/coverage/src/utils/time-slicing/controller.ts.html +8 -8
- package/coverage/src/utils/time-slicing/index.html +64 -79
- package/coverage/src/utils/time-slicing/index.ts.html +8 -8
- package/coverage/src/utils/time-slicing/page-state.ts.html +1 -1
- package/coverage/src/utils/time-slicing/performance.ts.html +4 -4
- package/coverage/src/utils/time-slicing/runner.ts.html +51 -51
- package/coverage/src/utils/time-slicing/tool.ts.html +29 -29
- package/coverage/src/utils/time-slicing/utils.ts.html +16 -16
- package/coverage/src/utils/time-slicing/wrapper.ts.html +50 -50
- package/coverage/src/utils/time-slicing.ts.html +1 -1
- package/coverage/src/utils/traverse.ts.html +27 -27
- package/coverage/src/utils/types.ts.html +1 -1
- package/coverage/src/utils/window.ts.html +1 -1
- package/out/common/BaseNode.js +5 -3
- package/out/common/BaseNode.js.map +1 -1
- package/out/common/ComponentAPI.d.ts +9 -0
- package/out/concepts/AuthLogicForCallInterface__.js +21 -6
- package/out/concepts/AuthLogicForCallInterface__.js.map +1 -1
- package/out/concepts/BusinessComponent__.js +25 -9
- package/out/concepts/BusinessComponent__.js.map +1 -1
- package/out/concepts/BusinessLogic__.js +21 -6
- package/out/concepts/BusinessLogic__.js.map +1 -1
- package/out/concepts/CallInterface__.js +14 -4
- package/out/concepts/CallInterface__.js.map +1 -1
- package/out/concepts/CallLogic__.d.ts +1 -0
- package/out/concepts/CallLogic__.js +25 -10
- package/out/concepts/CallLogic__.js.map +1 -1
- package/out/concepts/EnumItem__.js +2 -2
- package/out/concepts/EnumItem__.js.map +1 -1
- package/out/concepts/Logic__.js +22 -7
- package/out/concepts/Logic__.js.map +1 -1
- package/out/concepts/MemberExpression__.js +19 -13
- package/out/concepts/MemberExpression__.js.map +1 -1
- package/out/concepts/OverriddenLogic__.js +21 -6
- package/out/concepts/OverriddenLogic__.js.map +1 -1
- package/out/concepts/ViewElement__.js +35 -20
- package/out/concepts/ViewElement__.js.map +1 -1
- package/out/concepts/View__.js +32 -14
- package/out/concepts/View__.js.map +1 -1
- package/out/concepts/basics/stdlib/nasl.processV2.js +78 -0
- package/out/concepts/basics/stdlib/nasl.processV2.js.map +1 -1
- package/out/concepts/basics/stdlib/nasl.ui.js +40 -40
- package/out/concepts/basics/stdlib/nasl.ui.js.map +1 -1
- package/out/generator/genBundleFiles.js +1 -1
- package/out/generator/genBundleFiles.js.map +1 -1
- package/out/generator/release-body/utils.js +1 -1
- package/out/natural/getContext/index.js +7 -4
- package/out/natural/getContext/index.js.map +1 -1
- package/out/natural/tools.js +9 -3
- package/out/natural/tools.js.map +1 -1
- package/out/natural/transformTS2UI.js +20 -14
- package/out/natural/transformTS2UI.js.map +1 -1
- package/out/server/getMemberIdentifier.js +11 -17
- package/out/server/getMemberIdentifier.js.map +1 -1
- package/out/server/naslServer.js +8 -2
- package/out/server/naslServer.js.map +1 -1
- package/package.json +1 -1
- package/sandbox/stdlib/nasl.processV2.ts +19 -0
- package/sandbox/stdlib/nasl.ui.ts +8 -8
- package/src/common/BaseNode.ts +5 -3
- package/src/common/ComponentAPI.ts +7 -0
- package/src/concepts/AuthLogicForCallInterface__.ts +23 -6
- package/src/concepts/BusinessComponent__.ts +27 -9
- package/src/concepts/BusinessLogic__.ts +23 -6
- package/src/concepts/CallInterface__.ts +12 -5
- package/src/concepts/CallLogic__.ts +31 -10
- package/src/concepts/EnumItem__.ts +2 -2
- package/src/concepts/Logic__.ts +27 -10
- package/src/concepts/MemberExpression__.ts +20 -13
- package/src/concepts/OverriddenLogic__.ts +23 -6
- package/src/concepts/ViewElement__.ts +41 -21
- package/src/concepts/View__.ts +35 -14
- package/src/concepts/basics/stdlib/nasl.processV2.ts +79 -0
- package/src/concepts/basics/stdlib/nasl.ui.ts +40 -40
- package/src/generator/genBundleFiles.ts +1 -1
- package/src/generator/release-body/utils.ts +1 -1
- package/src/natural/getContext/index.ts +8 -5
- package/src/natural/tools.ts +9 -3
- package/src/natural/transformTS2UI.ts +19 -14
- package/src/server/getMemberIdentifier.ts +14 -14
- package/src/server/naslServer.ts +8 -2
- package/test/concepts/member-expression/__snapshots__/toJS.spec.ts.snap +1 -1
- package/test/concepts/member-expression/__snapshots__/toVue.spec.ts.snap +1 -1
- package/.nyc_output/fe4ca6db-1eb6-4898-8aa5-ba8f8d4128f2.json +0 -1
- package/.nyc_output/processinfo/fe4ca6db-1eb6-4898-8aa5-ba8f8d4128f2.json +0 -1
- package/coverage/src/common/utils.ts.html +0 -136
- package/coverage/src/concepts/AbstractInterface__.ts.html +0 -277
- package/coverage/src/concepts/Block__.ts.html +0 -907
- package/coverage/src/concepts/CountersignPolicy__.ts.html +0 -319
- package/coverage/src/concepts/DefaultValue__.ts.html +0 -1024
- package/coverage/src/concepts/I18nInfo__.ts.html +0 -424
- package/coverage/src/concepts/ImportedInterface__.ts.html +0 -262
- package/coverage/src/concepts/MetadataType__.ts.html +0 -2035
- package/coverage/src/concepts/MultiApprovalPolicy__.ts.html +0 -301
- package/coverage/src/concepts/SequentialPolicy__.ts.html +0 -265
- package/coverage/src/concepts/StaticString__.ts.html +0 -397
- package/coverage/src/concepts/basics/constants.ts.html +0 -88
- package/coverage/src/concepts/basics/index.html +0 -116
- package/coverage/src/concepts/utils/asserts.ts.html +0 -28675
- package/coverage/src/concepts/utils/index.html +0 -131
- package/coverage/src/concepts/utils/types.ts.html +0 -2092
- package/coverage/src/translator/types.ts.html +0 -256
- package/coverage/src/utils/i18nInfo.ts.html +0 -166
- package/coverage/src/utils/time-slicing/constant.ts.html +0 -196
- package/dist/README.md +0 -97
- package/dist/index.d.ts +0 -26
- package/dist/index.js +0 -397
- package/dist/index.js.map +0 -1
- package/dist/package.json +0 -91
- package/dist/src/automate/engine/index.d.ts +0 -4
- package/dist/src/automate/engine/operators.d.ts +0 -26
- package/dist/src/automate/engine/uniqueName.d.ts +0 -12
- package/dist/src/automate/engine/utils.d.ts +0 -25
- package/dist/src/automate/engine/viewCache.d.ts +0 -19
- package/dist/src/automate/template/myProcess.d.ts +0 -10
- package/dist/src/automate/upgrader/2.12.d.ts +0 -7
- package/dist/src/automate/upgrader/2.14-components.d.ts +0 -1115
- package/dist/src/automate/upgrader/2.14.d.ts +0 -10
- package/dist/src/automate/upgrader/2.14.old.d.ts +0 -1
- package/dist/src/automate/upgrader/2.16.d.ts +0 -10
- package/dist/src/automate/upgrader/2.17.d.ts +0 -21
- package/dist/src/automate/upgrader/2.18.d.ts +0 -10
- package/dist/src/automate/upgrader/2.20.d.ts +0 -17
- package/dist/src/bak/translator.d.ts +0 -1
- package/dist/src/breakpoint/generator/AfterStartNode.d.ts +0 -7
- package/dist/src/breakpoint/generator/BeforeEndNode.d.ts +0 -7
- package/dist/src/breakpoint/generator/BreakpointNode.d.ts +0 -20
- package/dist/src/breakpoint/generator/CallbackNode.d.ts +0 -4
- package/dist/src/breakpoint/generator/FragmentNode.d.ts +0 -4
- package/dist/src/breakpoint/generator/index.d.ts +0 -4
- package/dist/src/breakpoint/index.d.ts +0 -3
- package/dist/src/breakpoint/shared/constants.d.ts +0 -37
- package/dist/src/breakpoint/shared/index.d.ts +0 -3
- package/dist/src/breakpoint/shared/operations.d.ts +0 -10
- package/dist/src/breakpoint/shared/socket.d.ts +0 -48
- package/dist/src/breakpoint/shared/utils.d.ts +0 -27
- package/dist/src/breakpoint/store/core.d.ts +0 -80
- package/dist/src/breakpoint/store/dock.d.ts +0 -1
- package/dist/src/breakpoint/store/index.d.ts +0 -2
- package/dist/src/common/BaseNode.d.ts +0 -384
- package/dist/src/common/Command.d.ts +0 -21
- package/dist/src/common/ComponentAPI.d.ts +0 -112
- package/dist/src/common/EventEmitter.d.ts +0 -61
- package/dist/src/common/Messager.d.ts +0 -91
- package/dist/src/common/asyncFuncMap.d.ts +0 -2
- package/dist/src/common/index.d.ts +0 -4
- package/dist/src/common/utils.d.ts +0 -2
- package/dist/src/concepts/Abort__.d.ts +0 -31
- package/dist/src/concepts/AbstractInterface__.d.ts +0 -25
- package/dist/src/concepts/Anchor__.d.ts +0 -42
- package/dist/src/concepts/AnonymousFunction__.d.ts +0 -144
- package/dist/src/concepts/App__.d.ts +0 -1711
- package/dist/src/concepts/Argument__.d.ts +0 -64
- package/dist/src/concepts/Assignee__.d.ts +0 -294
- package/dist/src/concepts/AssignmentLine__.d.ts +0 -43
- package/dist/src/concepts/Assignment__.d.ts +0 -57
- package/dist/src/concepts/Attribute__.d.ts +0 -75
- package/dist/src/concepts/AuthInterface__.d.ts +0 -38
- package/dist/src/concepts/AuthLogicForCallInterface__.d.ts +0 -145
- package/dist/src/concepts/AuthLogic__.d.ts +0 -69
- package/dist/src/concepts/BackendVariable__.d.ts +0 -118
- package/dist/src/concepts/Backend__.d.ts +0 -127
- package/dist/src/concepts/BaseSetter__.d.ts +0 -25
- package/dist/src/concepts/BatchAssignment__.d.ts +0 -244
- package/dist/src/concepts/BinaryExpression__.d.ts +0 -61
- package/dist/src/concepts/BindAttribute__.d.ts +0 -284
- package/dist/src/concepts/BindDirective__.d.ts +0 -156
- package/dist/src/concepts/BindEvent__.d.ts +0 -246
- package/dist/src/concepts/BindStyle__.d.ts +0 -127
- package/dist/src/concepts/Block__.d.ts +0 -88
- package/dist/src/concepts/BooleanLiteral__.d.ts +0 -44
- package/dist/src/concepts/BusinessComponent__.d.ts +0 -640
- package/dist/src/concepts/BusinessLogic__.d.ts +0 -44
- package/dist/src/concepts/CallAuthInterface__.d.ts +0 -132
- package/dist/src/concepts/CallConnector__.d.ts +0 -55
- package/dist/src/concepts/CallEvent__.d.ts +0 -100
- package/dist/src/concepts/CallFunction__.d.ts +0 -171
- package/dist/src/concepts/CallInterface__.d.ts +0 -143
- package/dist/src/concepts/CallLogic__.d.ts +0 -224
- package/dist/src/concepts/CallQueryComponent__.d.ts +0 -383
- package/dist/src/concepts/CapsulesSetter__.d.ts +0 -109
- package/dist/src/concepts/Comment__.d.ts +0 -41
- package/dist/src/concepts/CompletionProperty__.d.ts +0 -87
- package/dist/src/concepts/ConfigGroup__.d.ts +0 -121
- package/dist/src/concepts/ConfigPropertyValue__.d.ts +0 -42
- package/dist/src/concepts/ConfigProperty__.d.ts +0 -147
- package/dist/src/concepts/Configuration__.d.ts +0 -120
- package/dist/src/concepts/Connection__.d.ts +0 -159
- package/dist/src/concepts/ConnectorLogic__.d.ts +0 -33
- package/dist/src/concepts/ConnectorTriggerLauncher__.d.ts +0 -44
- package/dist/src/concepts/ConnectorTrigger__.d.ts +0 -76
- package/dist/src/concepts/Connector__.d.ts +0 -532
- package/dist/src/concepts/Constant__.d.ts +0 -94
- package/dist/src/concepts/CountersignPolicy__.d.ts +0 -29
- package/dist/src/concepts/DataSource__.d.ts +0 -163
- package/dist/src/concepts/DatabaseTypeAnnotation__.d.ts +0 -35
- package/dist/src/concepts/DefaultValue__.d.ts +0 -94
- package/dist/src/concepts/Destination__.d.ts +0 -150
- package/dist/src/concepts/End__.d.ts +0 -30
- package/dist/src/concepts/EntityIndex__.d.ts +0 -93
- package/dist/src/concepts/EntityProperty__.d.ts +0 -255
- package/dist/src/concepts/Entity__.d.ts +0 -332
- package/dist/src/concepts/EnumItem__.d.ts +0 -83
- package/dist/src/concepts/EnumSelectSetter__.d.ts +0 -109
- package/dist/src/concepts/Enum__.d.ts +0 -133
- package/dist/src/concepts/EventDeclaration__.d.ts +0 -41
- package/dist/src/concepts/Event__.d.ts +0 -149
- package/dist/src/concepts/ExternalDestination__.d.ts +0 -63
- package/dist/src/concepts/ForEachStatement__.d.ts +0 -126
- package/dist/src/concepts/FrontendLibrary__.d.ts +0 -208
- package/dist/src/concepts/FrontendType__.d.ts +0 -304
- package/dist/src/concepts/FrontendVariable__.d.ts +0 -41
- package/dist/src/concepts/Frontend__.d.ts +0 -389
- package/dist/src/concepts/Function__.d.ts +0 -399
- package/dist/src/concepts/I18nInfo__.d.ts +0 -47
- package/dist/src/concepts/IconSetter__.d.ts +0 -29
- package/dist/src/concepts/Identifier__.d.ts +0 -66
- package/dist/src/concepts/IfStatement__.d.ts +0 -155
- package/dist/src/concepts/ImageSetter__.d.ts +0 -25
- package/dist/src/concepts/ImportedInterface__.d.ts +0 -29
- package/dist/src/concepts/InputSetter__.d.ts +0 -29
- package/dist/src/concepts/Integration__.d.ts +0 -127
- package/dist/src/concepts/InterfaceParam__.d.ts +0 -119
- package/dist/src/concepts/InterfaceTriggerEvent__.d.ts +0 -34
- package/dist/src/concepts/Interface__.d.ts +0 -323
- package/dist/src/concepts/JSBlock__.d.ts +0 -38
- package/dist/src/concepts/JavaLogic__.d.ts +0 -50
- package/dist/src/concepts/LogicDeclaration__.d.ts +0 -289
- package/dist/src/concepts/LogicItem__.d.ts +0 -171
- package/dist/src/concepts/Logic__.d.ts +0 -632
- package/dist/src/concepts/MatchCase__.d.ts +0 -264
- package/dist/src/concepts/Match__.d.ts +0 -122
- package/dist/src/concepts/MemberExpression__.d.ts +0 -64
- package/dist/src/concepts/MetadataType__.d.ts +0 -220
- package/dist/src/concepts/MicroApp__.d.ts +0 -53
- package/dist/src/concepts/Module__.d.ts +0 -1142
- package/dist/src/concepts/MsgTriggerEvent__.d.ts +0 -138
- package/dist/src/concepts/MsgTriggerLauncher__.d.ts +0 -119
- package/dist/src/concepts/MultiApprovalPolicy__.d.ts +0 -25
- package/dist/src/concepts/Namespace__.d.ts +0 -1060
- package/dist/src/concepts/NewComposite__.d.ts +0 -346
- package/dist/src/concepts/NewList__.d.ts +0 -135
- package/dist/src/concepts/NewMap__.d.ts +0 -226
- package/dist/src/concepts/New__.d.ts +0 -30
- package/dist/src/concepts/NullLiteral__.d.ts +0 -36
- package/dist/src/concepts/NumberInputSetter__.d.ts +0 -45
- package/dist/src/concepts/NumericLiteral__.d.ts +0 -53
- package/dist/src/concepts/OqlQueryComponent__.d.ts +0 -67
- package/dist/src/concepts/OverriddenLogic__.d.ts +0 -615
- package/dist/src/concepts/Paginate__.d.ts +0 -59
- package/dist/src/concepts/ParamWithGroup__.d.ts +0 -44
- package/dist/src/concepts/Param__.d.ts +0 -140
- package/dist/src/concepts/Point__.d.ts +0 -33
- package/dist/src/concepts/ProcessComponent__.d.ts +0 -214
- package/dist/src/concepts/ProcessElement__.d.ts +0 -620
- package/dist/src/concepts/ProcessOutcome__.d.ts +0 -35
- package/dist/src/concepts/ProcessOutcomes__.d.ts +0 -35
- package/dist/src/concepts/Process__.d.ts +0 -605
- package/dist/src/concepts/PropDeclaration__.d.ts +0 -99
- package/dist/src/concepts/PropertySelectSetter__.d.ts +0 -25
- package/dist/src/concepts/QueryAggregateExpression__.d.ts +0 -50
- package/dist/src/concepts/QueryFieldExpression__.d.ts +0 -66
- package/dist/src/concepts/QueryFromExpression__.d.ts +0 -107
- package/dist/src/concepts/QueryGroupByExpression__.d.ts +0 -46
- package/dist/src/concepts/QueryJoinExpression__.d.ts +0 -194
- package/dist/src/concepts/QueryLimitExpression__.d.ts +0 -46
- package/dist/src/concepts/QueryOrderByExpression__.d.ts +0 -57
- package/dist/src/concepts/QuerySelectExpression__.d.ts +0 -213
- package/dist/src/concepts/Rect__.d.ts +0 -41
- package/dist/src/concepts/Return__.d.ts +0 -120
- package/dist/src/concepts/Role__.d.ts +0 -58
- package/dist/src/concepts/SelectMembers__.d.ts +0 -134
- package/dist/src/concepts/SequentialPolicy__.d.ts +0 -25
- package/dist/src/concepts/SetterOption__.d.ts +0 -49
- package/dist/src/concepts/SlotDeclaration__.d.ts +0 -213
- package/dist/src/concepts/Slot__.d.ts +0 -53
- package/dist/src/concepts/SqlQueryComponent__.d.ts +0 -63
- package/dist/src/concepts/Start__.d.ts +0 -30
- package/dist/src/concepts/StaticString__.d.ts +0 -49
- package/dist/src/concepts/StringInterpolation__.d.ts +0 -122
- package/dist/src/concepts/StringLiteral__.d.ts +0 -51
- package/dist/src/concepts/StructureProperty__.d.ts +0 -119
- package/dist/src/concepts/Structure__.d.ts +0 -243
- package/dist/src/concepts/SwitchCase__.d.ts +0 -91
- package/dist/src/concepts/SwitchSetter__.d.ts +0 -25
- package/dist/src/concepts/SwitchStatement__.d.ts +0 -90
- package/dist/src/concepts/ThemeVariable__.d.ts +0 -29
- package/dist/src/concepts/Theme__.d.ts +0 -39
- package/dist/src/concepts/Transactional__.d.ts +0 -85
- package/dist/src/concepts/TriggerEvent__.d.ts +0 -42
- package/dist/src/concepts/TriggerLauncher__.d.ts +0 -76
- package/dist/src/concepts/TypeAnnotation__.d.ts +0 -303
- package/dist/src/concepts/TypeParam__.d.ts +0 -34
- package/dist/src/concepts/UnaryExpression__.d.ts +0 -45
- package/dist/src/concepts/Unparsed__.d.ts +0 -41
- package/dist/src/concepts/UseComponent__.d.ts +0 -33
- package/dist/src/concepts/ValidationRule__.d.ts +0 -133
- package/dist/src/concepts/Variable__.d.ts +0 -137
- package/dist/src/concepts/ViewBlockWithImage__.d.ts +0 -33
- package/dist/src/concepts/ViewBlock__.d.ts +0 -37
- package/dist/src/concepts/ViewComponentDeclaration__.d.ts +0 -721
- package/dist/src/concepts/ViewElement__.d.ts +0 -652
- package/dist/src/concepts/View__.d.ts +0 -728
- package/dist/src/concepts/WhileStatement__.d.ts +0 -94
- package/dist/src/concepts/basics/constants.d.ts +0 -1
- package/dist/src/concepts/basics/stdlib/index.d.ts +0 -16
- package/dist/src/concepts/basics/stdlib/nasl.auth.d.ts +0 -9
- package/dist/src/concepts/basics/stdlib/nasl.browser.d.ts +0 -5
- package/dist/src/concepts/basics/stdlib/nasl.collection.d.ts +0 -9
- package/dist/src/concepts/basics/stdlib/nasl.configuration.d.ts +0 -9
- package/dist/src/concepts/basics/stdlib/nasl.core.d.ts +0 -7
- package/dist/src/concepts/basics/stdlib/nasl.event.d.ts +0 -5
- package/dist/src/concepts/basics/stdlib/nasl.http.d.ts +0 -9
- package/dist/src/concepts/basics/stdlib/nasl.interface.d.ts +0 -9
- package/dist/src/concepts/basics/stdlib/nasl.io.d.ts +0 -5
- package/dist/src/concepts/basics/stdlib/nasl.logging.d.ts +0 -5
- package/dist/src/concepts/basics/stdlib/nasl.process.d.ts +0 -9
- package/dist/src/concepts/basics/stdlib/nasl.ui.d.ts +0 -9
- package/dist/src/concepts/basics/stdlib/nasl.util.d.ts +0 -6
- package/dist/src/concepts/basics/stdlib/nasl.validation.d.ts +0 -5
- package/dist/src/concepts/basics/stdlib/reference2TypeAnnotationList.d.ts +0 -4
- package/dist/src/concepts/basics/stdlib/timeZone.d.ts +0 -5
- package/dist/src/concepts/basics/types/coreTypeList.d.ts +0 -2
- package/dist/src/concepts/basics/types/index.d.ts +0 -17
- package/dist/src/concepts/index.d.ts +0 -7
- package/dist/src/concepts/index__.d.ts +0 -156
- package/dist/src/concepts/utils/asserts.d.ts +0 -7825
- package/dist/src/concepts/utils/quick-info.d.ts +0 -13
- package/dist/src/concepts/utils/types.d.ts +0 -510
- package/dist/src/config.d.ts +0 -52
- package/dist/src/decorators/index.d.ts +0 -67
- package/dist/src/decorators/promise.d.ts +0 -7
- package/dist/src/enums/KEYWORDS.d.ts +0 -6
- package/dist/src/enums/LEVEL_NAME_MAP.d.ts +0 -26
- package/dist/src/eventBus.d.ts +0 -3
- package/dist/src/generator/compileComponent.d.ts +0 -11
- package/dist/src/generator/genBundleFiles.d.ts +0 -37
- package/dist/src/generator/genHash.d.ts +0 -7
- package/dist/src/generator/genMetaData.d.ts +0 -31
- package/dist/src/generator/icestark.d.ts +0 -2
- package/dist/src/generator/index.d.ts +0 -7
- package/dist/src/generator/microApp.d.ts +0 -2
- package/dist/src/generator/permission.d.ts +0 -14
- package/dist/src/generator/qiankun.d.ts +0 -2
- package/dist/src/generator/release-body/body.d.ts +0 -42
- package/dist/src/generator/release-body/data.d.ts +0 -45
- package/dist/src/generator/release-body/index.d.ts +0 -2
- package/dist/src/generator/release-body/internal.d.ts +0 -622
- package/dist/src/generator/release-body/types.d.ts +0 -57
- package/dist/src/generator/release-body/utils.d.ts +0 -418
- package/dist/src/generator/release-body/validation.d.ts +0 -3
- package/dist/src/generator/styleReplacer.d.ts +0 -3
- package/dist/src/index.d.ts +0 -14
- package/dist/src/manager/diagnostic.d.ts +0 -39
- package/dist/src/manager/stepRecorder.d.ts +0 -20
- package/dist/src/natural/componentData.d.ts +0 -31
- package/dist/src/natural/genNaturalTS.d.ts +0 -241
- package/dist/src/natural/index.d.ts +0 -6
- package/dist/src/natural/naslStdlibMap.d.ts +0 -1
- package/dist/src/natural/prompt/analyzeClaims.d.ts +0 -1
- package/dist/src/natural/prompt/analyzeFormatOutput.d.ts +0 -1
- package/dist/src/natural/prompt/analyzeTasks.d.ts +0 -1
- package/dist/src/natural/prompt/executeClaims.d.ts +0 -1
- package/dist/src/natural/transformTSCode.d.ts +0 -7
- package/dist/src/sentry/index.d.ts +0 -34
- package/dist/src/server/createUiTs.d.ts +0 -17
- package/dist/src/server/entity2LogicNamespace.d.ts +0 -10
- package/dist/src/server/event.d.ts +0 -30
- package/dist/src/server/extendBaseNode.d.ts +0 -1
- package/dist/src/server/formatTsUtils.d.ts +0 -36
- package/dist/src/server/getConnector.d.ts +0 -15
- package/dist/src/server/getExtensionModules.d.ts +0 -3
- package/dist/src/server/getFunctions.d.ts +0 -3
- package/dist/src/server/getInterfaces.d.ts +0 -2
- package/dist/src/server/getLogging.d.ts +0 -1
- package/dist/src/server/getLogics.d.ts +0 -5
- package/dist/src/server/getMemberIdentifier.d.ts +0 -17
- package/dist/src/server/getProcessComponents.d.ts +0 -2
- package/dist/src/server/getProcesses.d.ts +0 -33
- package/dist/src/server/getScope.d.ts +0 -13
- package/dist/src/server/getValidates.d.ts +0 -3
- package/dist/src/server/index.d.ts +0 -5
- package/dist/src/server/naslServer.d.ts +0 -391
- package/dist/src/server/naslStdlibMap.d.ts +0 -2
- package/dist/src/server/process2LogicNamespace.d.ts +0 -26
- package/dist/src/server/translator.d.ts +0 -26
- package/dist/src/service/creator/add.configs.d.ts +0 -1
- package/dist/src/service/creator/errHandles.d.ts +0 -18
- package/dist/src/service/creator/index.d.ts +0 -1
- package/dist/src/service/datasource/api.d.ts +0 -12
- package/dist/src/service/datasource/index.d.ts +0 -2
- package/dist/src/service/logic/api.d.ts +0 -9
- package/dist/src/service/logic/checktypeSocket.d.ts +0 -5
- package/dist/src/service/logic/index.d.ts +0 -2
- package/dist/src/service/storage/api.d.ts +0 -54
- package/dist/src/service/storage/index.d.ts +0 -2
- package/dist/src/service/storage/init.d.ts +0 -105
- package/dist/src/service/storage/jsoner.d.ts +0 -36
- package/dist/src/service/storage/map.d.ts +0 -4
- package/dist/src/service/storage/service.d.ts +0 -25
- package/dist/src/service/storage/storagePoint.d.ts +0 -17
- package/dist/src/service/video/BaseService.d.ts +0 -7
- package/dist/src/service/video/MainCallbackService.d.ts +0 -12
- package/dist/src/service/video/VideoTranscribe.d.ts +0 -15
- package/dist/src/service/video/publishService.d.ts +0 -1
- package/dist/src/templator/genCallComponentLogic.d.ts +0 -17
- package/dist/src/templator/genCreateBlock.d.ts +0 -10
- package/dist/src/templator/genCurdEditMultipleKeyBlock.d.ts +0 -8
- package/dist/src/templator/genCurdMultipleKeyBlock.d.ts +0 -61
- package/dist/src/templator/genEditTableBlock.d.ts +0 -51
- package/dist/src/templator/genEnumSelectBlock.d.ts +0 -10
- package/dist/src/templator/genGetBlock.d.ts +0 -6
- package/dist/src/templator/genGridViewBlock.d.ts +0 -55
- package/dist/src/templator/genListViewBlock.d.ts +0 -19
- package/dist/src/templator/genQueryComponent.d.ts +0 -34
- package/dist/src/templator/genSelectBlock.d.ts +0 -45
- package/dist/src/templator/genTableBlock.d.ts +0 -55
- package/dist/src/templator/genUpdateBlock.d.ts +0 -6
- package/dist/src/templator/index.d.ts +0 -19
- package/dist/src/templator/utils.d.ts +0 -683
- package/dist/src/translator/constant.d.ts +0 -6
- package/dist/src/translator/index.d.ts +0 -3
- package/dist/src/translator/types.d.ts +0 -85
- package/dist/src/translator/utils.d.ts +0 -47
- package/dist/src/utils/cookie.d.ts +0 -9
- package/dist/src/utils/create.d.ts +0 -2
- package/dist/src/utils/env.d.ts +0 -2
- package/dist/src/utils/file.d.ts +0 -33
- package/dist/src/utils/i18nInfo.d.ts +0 -5
- package/dist/src/utils/index.d.ts +0 -72
- package/dist/src/utils/logger.d.ts +0 -8
- package/dist/src/utils/sortTsString.d.ts +0 -1
- package/dist/src/utils/string.d.ts +0 -64
- package/dist/src/utils/time-slicing/constant.d.ts +0 -35
- package/dist/src/utils/time-slicing/controller.d.ts +0 -53
- package/dist/src/utils/time-slicing/index.d.ts +0 -5
- package/dist/src/utils/time-slicing/page-state.d.ts +0 -2
- package/dist/src/utils/time-slicing/performance.d.ts +0 -11
- package/dist/src/utils/time-slicing/runner.d.ts +0 -12
- package/dist/src/utils/time-slicing/tool.d.ts +0 -24
- package/dist/src/utils/time-slicing/utils.d.ts +0 -62
- package/dist/src/utils/time-slicing/wrapper.d.ts +0 -18
- package/dist/src/utils/traverse.d.ts +0 -36
- package/dist/src/utils/types.d.ts +0 -13
- package/dist/src/utils/window.d.ts +0 -7
- package/dist/test/concepts/anonymous-function/constant.d.ts +0 -2
- package/dist/test/concepts/anonymous-function/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/anonymous-function/toJS.spec.d.ts +0 -1
- package/dist/test/concepts/anonymous-function/toVue.spec.d.ts +0 -1
- package/dist/test/concepts/assignment/constant.d.ts +0 -2
- package/dist/test/concepts/assignment/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/assignment/toJS.spec.d.ts +0 -1
- package/dist/test/concepts/assignment/toVue.spec.d.ts +0 -1
- package/dist/test/concepts/batch-assignment/constant.d.ts +0 -2
- package/dist/test/concepts/batch-assignment/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/batch-assignment/toJS.spec.d.ts +0 -1
- package/dist/test/concepts/batch-assignment/toVue.spec.d.ts +0 -1
- package/dist/test/concepts/binary-expression/constant.d.ts +0 -2
- package/dist/test/concepts/binary-expression/getQuickInfoOffset.spec.d.ts +0 -1
- package/dist/test/concepts/binary-expression/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/binary-expression/toJS.spec.d.ts +0 -1
- package/dist/test/concepts/binary-expression/toVue.spec.d.ts +0 -1
- package/dist/test/concepts/boolean-literal/constant.d.ts +0 -2
- package/dist/test/concepts/boolean-literal/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/boolean-literal/toJS.spec.d.ts +0 -1
- package/dist/test/concepts/boolean-literal/toVue.spec.d.ts +0 -1
- package/dist/test/concepts/call-function/constant.d.ts +0 -2
- package/dist/test/concepts/call-function/getQuickInfoOffset.spec.d.ts +0 -1
- package/dist/test/concepts/call-function/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/call-function/toJS.spec.d.ts +0 -1
- package/dist/test/concepts/call-interface/constant.d.ts +0 -2
- package/dist/test/concepts/call-interface/getQuickInfoOffset.spec.d.ts +0 -1
- package/dist/test/concepts/call-interface/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/call-interface/toJS.spec.d.ts +0 -1
- package/dist/test/concepts/call-logic/constant.d.ts +0 -2
- package/dist/test/concepts/call-logic/getQuickInfoOffset.spec.d.ts +0 -1
- package/dist/test/concepts/call-logic/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/call-logic/toJS.spec.d.ts +0 -1
- package/dist/test/concepts/call-logic/toUI.spec.d.ts +0 -1
- package/dist/test/concepts/call-logic/toVue.spec.d.ts +0 -1
- package/dist/test/concepts/call-logic/toVueDesigner.spec.d.ts +0 -1
- package/dist/test/concepts/data-source/constant.d.ts +0 -2
- package/dist/test/concepts/data-source/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/data-source/toEmbeddedTSFile.spec.d.ts +0 -1
- package/dist/test/concepts/entity/constant.d.ts +0 -2
- package/dist/test/concepts/entity/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/entity/toEmbeddedTSFile.spec.d.ts +0 -1
- package/dist/test/concepts/identifier/constant.d.ts +0 -2
- package/dist/test/concepts/identifier/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/identifier/toJS.spec.d.ts +0 -1
- package/dist/test/concepts/identifier/toVue.spec.d.ts +0 -1
- package/dist/test/concepts/match/constant.d.ts +0 -2
- package/dist/test/concepts/match/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/match/toJS.spec.d.ts +0 -1
- package/dist/test/concepts/member-expression/constant.d.ts +0 -2
- package/dist/test/concepts/member-expression/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/member-expression/toJS.spec.d.ts +0 -1
- package/dist/test/concepts/member-expression/toVue.spec.d.ts +0 -1
- package/dist/test/concepts/new-composite/constant.d.ts +0 -2
- package/dist/test/concepts/new-composite/getQuickInfoOffset.spec.d.ts +0 -1
- package/dist/test/concepts/new-composite/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/new-composite/toJS.spec.d.ts +0 -1
- package/dist/test/concepts/new-list/constant.d.ts +0 -2
- package/dist/test/concepts/new-list/getQuickInfoOffset.spec.d.ts +0 -1
- package/dist/test/concepts/new-list/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/new-list/toJS.spec.d.ts +0 -1
- package/dist/test/concepts/new-map/constant.d.ts +0 -2
- package/dist/test/concepts/new-map/getQuickInfoOffset.spec.d.ts +0 -1
- package/dist/test/concepts/new-map/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/new-map/toJS.spec.d.ts +0 -1
- package/dist/test/concepts/null-literal/constant.d.ts +0 -2
- package/dist/test/concepts/null-literal/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/null-literal/toJS.spec.d.ts +0 -1
- package/dist/test/concepts/null-literal/toVue.spec.d.ts +0 -1
- package/dist/test/concepts/numeric-literal/constant.d.ts +0 -2
- package/dist/test/concepts/numeric-literal/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/numeric-literal/toJS.spec.d.ts +0 -1
- package/dist/test/concepts/numeric-literal/toVue.spec.d.ts +0 -1
- package/dist/test/concepts/string-literal/constant.d.ts +0 -2
- package/dist/test/concepts/string-literal/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/string-literal/toJS.spec.d.ts +0 -1
- package/dist/test/concepts/string-literal/toVue.spec.d.ts +0 -1
- package/dist/test/concepts/utils.d.ts +0 -13
- package/dist/test/concepts/validation-rule/constant.d.ts +0 -2
- package/dist/test/concepts/validation-rule/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/validation-rule/toJS.spec.d.ts +0 -1
- package/dist/test/concepts/validation-rule/validation-rule.spec.d.ts +0 -1
- package/dist/test/concepts/view-element/constant.d.ts +0 -2
- package/dist/test/concepts/view-element/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/view-element/toVue.spec.d.ts +0 -1
- package/dist/test/setup.d.ts +0 -1
- package/dist/test/time-slicing/runner.spec.d.ts +0 -1
- package/dist/test/time-slicing/time-slicing-nodejs.spec.d.ts +0 -1
- package/dist/test/time-slicing/utils.d.ts +0 -1
- package/dist/test/time-slicing/wrapper.spec.d.ts +0 -1
|
@@ -23,30 +23,30 @@
|
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">
|
|
26
|
+
<span class="strong">14.72% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>38/258</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">
|
|
33
|
+
<span class="strong">2.45% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>
|
|
35
|
+
<span class='fraction'>3/122</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
|
40
|
-
<span class="strong">
|
|
40
|
+
<span class="strong">9.23% </span>
|
|
41
41
|
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>
|
|
42
|
+
<span class='fraction'>6/65</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">
|
|
47
|
+
<span class="strong">13.16% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>32/243</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -1018,73 +1018,7 @@
|
|
|
1018
1018
|
<a name='L953'></a><a href='#L953'>953</a>
|
|
1019
1019
|
<a name='L954'></a><a href='#L954'>954</a>
|
|
1020
1020
|
<a name='L955'></a><a href='#L955'>955</a>
|
|
1021
|
-
<a name='L956'></a><a href='#L956'>956</a>
|
|
1022
|
-
<a name='L957'></a><a href='#L957'>957</a>
|
|
1023
|
-
<a name='L958'></a><a href='#L958'>958</a>
|
|
1024
|
-
<a name='L959'></a><a href='#L959'>959</a>
|
|
1025
|
-
<a name='L960'></a><a href='#L960'>960</a>
|
|
1026
|
-
<a name='L961'></a><a href='#L961'>961</a>
|
|
1027
|
-
<a name='L962'></a><a href='#L962'>962</a>
|
|
1028
|
-
<a name='L963'></a><a href='#L963'>963</a>
|
|
1029
|
-
<a name='L964'></a><a href='#L964'>964</a>
|
|
1030
|
-
<a name='L965'></a><a href='#L965'>965</a>
|
|
1031
|
-
<a name='L966'></a><a href='#L966'>966</a>
|
|
1032
|
-
<a name='L967'></a><a href='#L967'>967</a>
|
|
1033
|
-
<a name='L968'></a><a href='#L968'>968</a>
|
|
1034
|
-
<a name='L969'></a><a href='#L969'>969</a>
|
|
1035
|
-
<a name='L970'></a><a href='#L970'>970</a>
|
|
1036
|
-
<a name='L971'></a><a href='#L971'>971</a>
|
|
1037
|
-
<a name='L972'></a><a href='#L972'>972</a>
|
|
1038
|
-
<a name='L973'></a><a href='#L973'>973</a>
|
|
1039
|
-
<a name='L974'></a><a href='#L974'>974</a>
|
|
1040
|
-
<a name='L975'></a><a href='#L975'>975</a>
|
|
1041
|
-
<a name='L976'></a><a href='#L976'>976</a>
|
|
1042
|
-
<a name='L977'></a><a href='#L977'>977</a>
|
|
1043
|
-
<a name='L978'></a><a href='#L978'>978</a>
|
|
1044
|
-
<a name='L979'></a><a href='#L979'>979</a>
|
|
1045
|
-
<a name='L980'></a><a href='#L980'>980</a>
|
|
1046
|
-
<a name='L981'></a><a href='#L981'>981</a>
|
|
1047
|
-
<a name='L982'></a><a href='#L982'>982</a>
|
|
1048
|
-
<a name='L983'></a><a href='#L983'>983</a>
|
|
1049
|
-
<a name='L984'></a><a href='#L984'>984</a>
|
|
1050
|
-
<a name='L985'></a><a href='#L985'>985</a>
|
|
1051
|
-
<a name='L986'></a><a href='#L986'>986</a>
|
|
1052
|
-
<a name='L987'></a><a href='#L987'>987</a>
|
|
1053
|
-
<a name='L988'></a><a href='#L988'>988</a>
|
|
1054
|
-
<a name='L989'></a><a href='#L989'>989</a>
|
|
1055
|
-
<a name='L990'></a><a href='#L990'>990</a>
|
|
1056
|
-
<a name='L991'></a><a href='#L991'>991</a>
|
|
1057
|
-
<a name='L992'></a><a href='#L992'>992</a>
|
|
1058
|
-
<a name='L993'></a><a href='#L993'>993</a>
|
|
1059
|
-
<a name='L994'></a><a href='#L994'>994</a>
|
|
1060
|
-
<a name='L995'></a><a href='#L995'>995</a>
|
|
1061
|
-
<a name='L996'></a><a href='#L996'>996</a>
|
|
1062
|
-
<a name='L997'></a><a href='#L997'>997</a>
|
|
1063
|
-
<a name='L998'></a><a href='#L998'>998</a>
|
|
1064
|
-
<a name='L999'></a><a href='#L999'>999</a>
|
|
1065
|
-
<a name='L1000'></a><a href='#L1000'>1000</a>
|
|
1066
|
-
<a name='L1001'></a><a href='#L1001'>1001</a>
|
|
1067
|
-
<a name='L1002'></a><a href='#L1002'>1002</a>
|
|
1068
|
-
<a name='L1003'></a><a href='#L1003'>1003</a>
|
|
1069
|
-
<a name='L1004'></a><a href='#L1004'>1004</a>
|
|
1070
|
-
<a name='L1005'></a><a href='#L1005'>1005</a>
|
|
1071
|
-
<a name='L1006'></a><a href='#L1006'>1006</a>
|
|
1072
|
-
<a name='L1007'></a><a href='#L1007'>1007</a>
|
|
1073
|
-
<a name='L1008'></a><a href='#L1008'>1008</a>
|
|
1074
|
-
<a name='L1009'></a><a href='#L1009'>1009</a>
|
|
1075
|
-
<a name='L1010'></a><a href='#L1010'>1010</a>
|
|
1076
|
-
<a name='L1011'></a><a href='#L1011'>1011</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">1267x</span>
|
|
1077
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1078
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1079
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1080
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1081
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1082
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1083
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1084
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1085
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1086
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1087
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1021
|
+
<a name='L956'></a><a href='#L956'>956</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
1088
1022
|
<span class="cline-any cline-yes">1x</span>
|
|
1089
1023
|
<span class="cline-any cline-yes">1x</span>
|
|
1090
1024
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -1096,7 +1030,7 @@
|
|
|
1096
1030
|
<span class="cline-any cline-yes">1x</span>
|
|
1097
1031
|
<span class="cline-any cline-neutral"> </span>
|
|
1098
1032
|
<span class="cline-any cline-yes">1x</span>
|
|
1099
|
-
<span class="cline-any cline-
|
|
1033
|
+
<span class="cline-any cline-yes">1x</span>
|
|
1100
1034
|
<span class="cline-any cline-yes">1x</span>
|
|
1101
1035
|
<span class="cline-any cline-yes">1x</span>
|
|
1102
1036
|
<span class="cline-any cline-yes">1x</span>
|
|
@@ -1112,6 +1046,7 @@
|
|
|
1112
1046
|
<span class="cline-any cline-neutral"> </span>
|
|
1113
1047
|
<span class="cline-any cline-yes">1x</span>
|
|
1114
1048
|
<span class="cline-any cline-neutral"> </span>
|
|
1049
|
+
<span class="cline-any cline-yes">1x</span>
|
|
1115
1050
|
<span class="cline-any cline-neutral"> </span>
|
|
1116
1051
|
<span class="cline-any cline-neutral"> </span>
|
|
1117
1052
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -1122,10 +1057,6 @@
|
|
|
1122
1057
|
<span class="cline-any cline-neutral"> </span>
|
|
1123
1058
|
<span class="cline-any cline-neutral"> </span>
|
|
1124
1059
|
<span class="cline-any cline-neutral"> </span>
|
|
1125
|
-
<span class="cline-any cline-yes">1x</span>
|
|
1126
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1127
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1128
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1129
1060
|
<span class="cline-any cline-neutral"> </span>
|
|
1130
1061
|
<span class="cline-any cline-neutral"> </span>
|
|
1131
1062
|
<span class="cline-any cline-yes">1x</span>
|
|
@@ -1134,13 +1065,8 @@
|
|
|
1134
1065
|
<span class="cline-any cline-neutral"> </span>
|
|
1135
1066
|
<span class="cline-any cline-neutral"> </span>
|
|
1136
1067
|
<span class="cline-any cline-neutral"> </span>
|
|
1137
|
-
<span class="cline-any cline-yes">
|
|
1138
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1139
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1140
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1141
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1068
|
+
<span class="cline-any cline-yes">11x</span>
|
|
1142
1069
|
<span class="cline-any cline-neutral"> </span>
|
|
1143
|
-
<span class="cline-any cline-yes">1x</span>
|
|
1144
1070
|
<span class="cline-any cline-neutral"> </span>
|
|
1145
1071
|
<span class="cline-any cline-neutral"> </span>
|
|
1146
1072
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -1152,27 +1078,26 @@
|
|
|
1152
1078
|
<span class="cline-any cline-neutral"> </span>
|
|
1153
1079
|
<span class="cline-any cline-neutral"> </span>
|
|
1154
1080
|
<span class="cline-any cline-neutral"> </span>
|
|
1155
|
-
<span class="cline-any cline-yes">16x</span>
|
|
1156
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1157
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1158
1081
|
<span class="cline-any cline-neutral"> </span>
|
|
1082
|
+
<span class="cline-any cline-yes">1x</span>
|
|
1159
1083
|
<span class="cline-any cline-neutral"> </span>
|
|
1160
1084
|
<span class="cline-any cline-neutral"> </span>
|
|
1161
1085
|
<span class="cline-any cline-neutral"> </span>
|
|
1162
1086
|
<span class="cline-any cline-neutral"> </span>
|
|
1163
1087
|
<span class="cline-any cline-neutral"> </span>
|
|
1088
|
+
<span class="cline-any cline-yes">11x</span>
|
|
1164
1089
|
<span class="cline-any cline-neutral"> </span>
|
|
1165
|
-
<span class="cline-any cline-yes">16x</span>
|
|
1166
1090
|
<span class="cline-any cline-neutral"> </span>
|
|
1167
1091
|
<span class="cline-any cline-neutral"> </span>
|
|
1168
1092
|
<span class="cline-any cline-neutral"> </span>
|
|
1169
1093
|
<span class="cline-any cline-neutral"> </span>
|
|
1094
|
+
<span class="cline-any cline-yes">11x</span>
|
|
1170
1095
|
<span class="cline-any cline-neutral"> </span>
|
|
1171
1096
|
<span class="cline-any cline-neutral"> </span>
|
|
1172
1097
|
<span class="cline-any cline-neutral"> </span>
|
|
1173
1098
|
<span class="cline-any cline-neutral"> </span>
|
|
1174
1099
|
<span class="cline-any cline-neutral"> </span>
|
|
1175
|
-
<span class="cline-any cline-yes">
|
|
1100
|
+
<span class="cline-any cline-yes">11x</span>
|
|
1176
1101
|
<span class="cline-any cline-neutral"> </span>
|
|
1177
1102
|
<span class="cline-any cline-neutral"> </span>
|
|
1178
1103
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -1184,7 +1109,7 @@
|
|
|
1184
1109
|
<span class="cline-any cline-neutral"> </span>
|
|
1185
1110
|
<span class="cline-any cline-neutral"> </span>
|
|
1186
1111
|
<span class="cline-any cline-neutral"> </span>
|
|
1187
|
-
<span class="cline-any cline-
|
|
1112
|
+
<span class="cline-any cline-no"> </span>
|
|
1188
1113
|
<span class="cline-any cline-neutral"> </span>
|
|
1189
1114
|
<span class="cline-any cline-neutral"> </span>
|
|
1190
1115
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -1197,13 +1122,13 @@
|
|
|
1197
1122
|
<span class="cline-any cline-neutral"> </span>
|
|
1198
1123
|
<span class="cline-any cline-neutral"> </span>
|
|
1199
1124
|
<span class="cline-any cline-neutral"> </span>
|
|
1200
|
-
<span class="cline-any cline-yes">
|
|
1201
|
-
<span class="cline-any cline-yes">
|
|
1202
|
-
<span class="cline-any cline-yes">
|
|
1125
|
+
<span class="cline-any cline-yes">11x</span>
|
|
1126
|
+
<span class="cline-any cline-yes">11x</span>
|
|
1127
|
+
<span class="cline-any cline-yes">11x</span>
|
|
1203
1128
|
<span class="cline-any cline-neutral"> </span>
|
|
1204
1129
|
<span class="cline-any cline-neutral"> </span>
|
|
1205
1130
|
<span class="cline-any cline-neutral"> </span>
|
|
1206
|
-
<span class="cline-any cline-yes">
|
|
1131
|
+
<span class="cline-any cline-yes">11x</span>
|
|
1207
1132
|
<span class="cline-any cline-neutral"> </span>
|
|
1208
1133
|
<span class="cline-any cline-neutral"> </span>
|
|
1209
1134
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -1263,7 +1188,6 @@
|
|
|
1263
1188
|
<span class="cline-any cline-neutral"> </span>
|
|
1264
1189
|
<span class="cline-any cline-no"> </span>
|
|
1265
1190
|
<span class="cline-any cline-no"> </span>
|
|
1266
|
-
<span class="cline-any cline-no"> </span>
|
|
1267
1191
|
<span class="cline-any cline-neutral"> </span>
|
|
1268
1192
|
<span class="cline-any cline-no"> </span>
|
|
1269
1193
|
<span class="cline-any cline-no"> </span>
|
|
@@ -1417,7 +1341,6 @@
|
|
|
1417
1341
|
<span class="cline-any cline-neutral"> </span>
|
|
1418
1342
|
<span class="cline-any cline-no"> </span>
|
|
1419
1343
|
<span class="cline-any cline-no"> </span>
|
|
1420
|
-
<span class="cline-any cline-no"> </span>
|
|
1421
1344
|
<span class="cline-any cline-neutral"> </span>
|
|
1422
1345
|
<span class="cline-any cline-no"> </span>
|
|
1423
1346
|
<span class="cline-any cline-no"> </span>
|
|
@@ -1575,23 +1498,15 @@
|
|
|
1575
1498
|
<span class="cline-any cline-neutral"> </span>
|
|
1576
1499
|
<span class="cline-any cline-no"> </span>
|
|
1577
1500
|
<span class="cline-any cline-no"> </span>
|
|
1578
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1579
|
-
<span class="cline-any cline-no"> </span>
|
|
1580
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1581
|
-
<span class="cline-any cline-no"> </span>
|
|
1582
|
-
<span class="cline-any cline-no"> </span>
|
|
1583
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1584
1501
|
<span class="cline-any cline-no"> </span>
|
|
1585
1502
|
<span class="cline-any cline-no"> </span>
|
|
1586
1503
|
<span class="cline-any cline-no"> </span>
|
|
1587
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1588
1504
|
<span class="cline-any cline-no"> </span>
|
|
1589
1505
|
<span class="cline-any cline-no"> </span>
|
|
1590
1506
|
<span class="cline-any cline-no"> </span>
|
|
1591
1507
|
<span class="cline-any cline-no"> </span>
|
|
1592
1508
|
<span class="cline-any cline-neutral"> </span>
|
|
1593
1509
|
<span class="cline-any cline-neutral"> </span>
|
|
1594
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1595
1510
|
<span class="cline-any cline-no"> </span>
|
|
1596
1511
|
<span class="cline-any cline-neutral"> </span>
|
|
1597
1512
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -1631,23 +1546,15 @@
|
|
|
1631
1546
|
<span class="cline-any cline-neutral"> </span>
|
|
1632
1547
|
<span class="cline-any cline-no"> </span>
|
|
1633
1548
|
<span class="cline-any cline-no"> </span>
|
|
1634
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1635
1549
|
<span class="cline-any cline-no"> </span>
|
|
1636
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1637
1550
|
<span class="cline-any cline-no"> </span>
|
|
1638
1551
|
<span class="cline-any cline-no"> </span>
|
|
1639
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1640
|
-
<span class="cline-any cline-no"> </span>
|
|
1641
|
-
<span class="cline-any cline-no"> </span>
|
|
1642
|
-
<span class="cline-any cline-no"> </span>
|
|
1643
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1644
1552
|
<span class="cline-any cline-no"> </span>
|
|
1645
1553
|
<span class="cline-any cline-no"> </span>
|
|
1646
1554
|
<span class="cline-any cline-no"> </span>
|
|
1647
1555
|
<span class="cline-any cline-no"> </span>
|
|
1648
1556
|
<span class="cline-any cline-neutral"> </span>
|
|
1649
1557
|
<span class="cline-any cline-neutral"> </span>
|
|
1650
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1651
1558
|
<span class="cline-any cline-no"> </span>
|
|
1652
1559
|
<span class="cline-any cline-neutral"> </span>
|
|
1653
1560
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -1686,9 +1593,7 @@
|
|
|
1686
1593
|
<span class="cline-any cline-no"> </span>
|
|
1687
1594
|
<span class="cline-any cline-no"> </span>
|
|
1688
1595
|
<span class="cline-any cline-no"> </span>
|
|
1689
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1690
1596
|
<span class="cline-any cline-no"> </span>
|
|
1691
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1692
1597
|
<span class="cline-any cline-no"> </span>
|
|
1693
1598
|
<span class="cline-any cline-no"> </span>
|
|
1694
1599
|
<span class="cline-any cline-no"> </span>
|
|
@@ -1697,18 +1602,10 @@
|
|
|
1697
1602
|
<span class="cline-any cline-no"> </span>
|
|
1698
1603
|
<span class="cline-any cline-no"> </span>
|
|
1699
1604
|
<span class="cline-any cline-no"> </span>
|
|
1700
|
-
<span class="cline-any cline-no"> </span>
|
|
1701
|
-
<span class="cline-any cline-no"> </span>
|
|
1702
1605
|
<span class="cline-any cline-neutral"> </span>
|
|
1703
1606
|
<span class="cline-any cline-neutral"> </span>
|
|
1704
|
-
<span class="cline-any cline-no"> </span>
|
|
1705
|
-
<span class="cline-any cline-no"> </span>
|
|
1706
|
-
<span class="cline-any cline-no"> </span>
|
|
1707
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1708
1607
|
<span class="cline-any cline-neutral"> </span>
|
|
1709
1608
|
<span class="cline-any cline-neutral"> </span>
|
|
1710
|
-
<span class="cline-any cline-no"> </span>
|
|
1711
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1712
1609
|
<span class="cline-any cline-neutral"> </span>
|
|
1713
1610
|
<span class="cline-any cline-neutral"> </span>
|
|
1714
1611
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -1829,8 +1726,7 @@
|
|
|
1829
1726
|
<span class="cline-any cline-neutral"> </span>
|
|
1830
1727
|
<span class="cline-any cline-neutral"> </span>
|
|
1831
1728
|
<span class="cline-any cline-neutral"> </span>
|
|
1832
|
-
<span class="cline-any cline-yes">
|
|
1833
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1729
|
+
<span class="cline-any cline-yes">11x</span>
|
|
1834
1730
|
<span class="cline-any cline-neutral"> </span>
|
|
1835
1731
|
<span class="cline-any cline-neutral"> </span>
|
|
1836
1732
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -1933,15 +1829,6 @@
|
|
|
1933
1829
|
<span class="cline-any cline-neutral"> </span>
|
|
1934
1830
|
<span class="cline-any cline-neutral"> </span>
|
|
1935
1831
|
<span class="cline-any cline-neutral"> </span>
|
|
1936
|
-
<span class="cline-any cline-yes">1x</span>
|
|
1937
|
-
<span class="cline-any cline-yes">1x</span>
|
|
1938
|
-
<span class="cline-any cline-yes">1x</span>
|
|
1939
|
-
<span class="cline-any cline-yes">1x</span>
|
|
1940
|
-
<span class="cline-any cline-yes">1x</span>
|
|
1941
|
-
<span class="cline-any cline-yes">1x</span>
|
|
1942
|
-
<span class="cline-any cline-yes">6x</span>
|
|
1943
|
-
<span class="cline-any cline-yes">6x</span>
|
|
1944
|
-
<span class="cline-any cline-yes">6x</span>
|
|
1945
1832
|
<span class="cline-any cline-neutral"> </span>
|
|
1946
1833
|
<span class="cline-any cline-yes">1x</span>
|
|
1947
1834
|
<span class="cline-any cline-no"> </span>
|
|
@@ -1953,31 +1840,32 @@
|
|
|
1953
1840
|
<span class="cline-any cline-no"> </span>
|
|
1954
1841
|
<span class="cline-any cline-neutral"> </span>
|
|
1955
1842
|
<span class="cline-any cline-no"> </span>
|
|
1843
|
+
<span class="cline-any cline-no"> </span>
|
|
1844
|
+
<span class="cline-any cline-no"> </span>
|
|
1845
|
+
<span class="cline-any cline-no"> </span>
|
|
1846
|
+
<span class="cline-any cline-no"> </span>
|
|
1847
|
+
<span class="cline-any cline-no"> </span>
|
|
1848
|
+
<span class="cline-any cline-no"> </span>
|
|
1849
|
+
<span class="cline-any cline-no"> </span>
|
|
1956
1850
|
<span class="cline-any cline-neutral"> </span>
|
|
1957
|
-
<span class="cline-any cline-
|
|
1851
|
+
<span class="cline-any cline-no"> </span>
|
|
1958
1852
|
<span class="cline-any cline-neutral"> </span>
|
|
1959
1853
|
<span class="cline-any cline-neutral"> </span>
|
|
1854
|
+
<span class="cline-any cline-no"> </span>
|
|
1960
1855
|
<span class="cline-any cline-neutral"> </span>
|
|
1961
1856
|
<span class="cline-any cline-neutral"> </span>
|
|
1962
|
-
<span class="cline-any cline-yes">1x</span>
|
|
1963
|
-
<span class="cline-any cline-yes">1x</span>
|
|
1964
|
-
<span class="cline-any cline-yes">11x</span>
|
|
1965
|
-
<span class="cline-any cline-yes">11x</span>
|
|
1966
1857
|
<span class="cline-any cline-neutral"> </span>
|
|
1967
|
-
<span class="cline-any cline-yes">1x</span>
|
|
1968
1858
|
<span class="cline-any cline-neutral"> </span>
|
|
1969
1859
|
<span class="cline-any cline-neutral"> </span>
|
|
1970
|
-
<span class="cline-any cline-
|
|
1971
|
-
<span class="cline-any cline-
|
|
1972
|
-
<span class="cline-any cline-yes">6x</span>
|
|
1860
|
+
<span class="cline-any cline-no"> </span>
|
|
1861
|
+
<span class="cline-any cline-no"> </span>
|
|
1973
1862
|
<span class="cline-any cline-no"> </span>
|
|
1974
1863
|
<span class="cline-any cline-no"> </span>
|
|
1975
1864
|
<span class="cline-any cline-neutral"> </span>
|
|
1865
|
+
<span class="cline-any cline-no"> </span>
|
|
1866
|
+
<span class="cline-any cline-no"> </span>
|
|
1976
1867
|
<span class="cline-any cline-neutral"> </span>
|
|
1977
|
-
<span class="cline-any cline-
|
|
1978
|
-
<span class="cline-any cline-yes">1x</span>
|
|
1979
|
-
<span class="cline-any cline-yes">1x</span>
|
|
1980
|
-
<span class="cline-any cline-yes">1x</span>
|
|
1868
|
+
<span class="cline-any cline-no"> </span>
|
|
1981
1869
|
<span class="cline-any cline-neutral"> </span>
|
|
1982
1870
|
<span class="cline-any cline-neutral"> </span>
|
|
1983
1871
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -2007,8 +1895,8 @@
|
|
|
2007
1895
|
<span class="cline-any cline-neutral"> </span>
|
|
2008
1896
|
<span class="cline-any cline-neutral"> </span>
|
|
2009
1897
|
<span class="cline-any cline-neutral"> </span>
|
|
2010
|
-
<span class="cline-any cline-yes">
|
|
2011
|
-
<span class="cline-any cline-yes">
|
|
1898
|
+
<span class="cline-any cline-yes">198x</span>
|
|
1899
|
+
<span class="cline-any cline-yes">198x</span>
|
|
2012
1900
|
<span class="cline-any cline-no"> </span>
|
|
2013
1901
|
<span class="cline-any cline-neutral"> </span>
|
|
2014
1902
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -2017,18 +1905,20 @@
|
|
|
2017
1905
|
<span class="cline-any cline-neutral"> </span>
|
|
2018
1906
|
<span class="cline-any cline-neutral"> </span>
|
|
2019
1907
|
<span class="cline-any cline-neutral"> </span>
|
|
2020
|
-
<span class="cline-any cline-
|
|
1908
|
+
<span class="cline-any cline-no"> </span>
|
|
2021
1909
|
<span class="cline-any cline-neutral"> </span>
|
|
2022
1910
|
<span class="cline-any cline-neutral"> </span>
|
|
2023
1911
|
<span class="cline-any cline-neutral"> </span>
|
|
1912
|
+
<span class="cline-any cline-yes">11x</span>
|
|
1913
|
+
<span class="cline-any cline-yes">11x</span>
|
|
1914
|
+
<span class="cline-any cline-yes">11x</span>
|
|
1915
|
+
<span class="cline-any cline-neutral"> </span>
|
|
2024
1916
|
<span class="cline-any cline-neutral"> </span>
|
|
2025
|
-
<span class="cline-any cline-yes">14x</span>
|
|
2026
|
-
<span class="cline-any cline-yes">14x</span>
|
|
2027
|
-
<span class="cline-any cline-yes">14x</span>
|
|
2028
1917
|
<span class="cline-any cline-neutral"> </span>
|
|
2029
1918
|
<span class="cline-any cline-neutral"> </span>
|
|
2030
1919
|
<span class="cline-any cline-neutral"> </span>
|
|
2031
|
-
<span class="cline-any cline-yes">
|
|
1920
|
+
<span class="cline-any cline-yes">11x</span>
|
|
1921
|
+
<span class="cline-any cline-yes">11x</span>
|
|
2032
1922
|
<span class="cline-any cline-neutral"> </span>
|
|
2033
1923
|
<span class="cline-any cline-neutral"> </span>
|
|
2034
1924
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -2083,54 +1973,39 @@
|
|
|
2083
1973
|
<span class="cline-any cline-neutral"> </span>
|
|
2084
1974
|
<span class="cline-any cline-neutral"> </span>
|
|
2085
1975
|
<span class="cline-any cline-neutral"> </span>
|
|
2086
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import
|
|
2087
|
-
import
|
|
2088
|
-
import type Namespace from './Namespace__';
|
|
2089
|
-
import {
|
|
2090
|
-
TranslatorState,
|
|
2091
|
-
shiftState,
|
|
2092
|
-
withSourceMap,
|
|
2093
|
-
indent,
|
|
2094
|
-
createCompilerState,
|
|
2095
|
-
withSourceMapGenerator,
|
|
2096
|
-
withGenerator,
|
|
2097
|
-
TranslatorGenerator,
|
|
2098
|
-
} from '../translator';
|
|
1976
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import Namespace from './Namespace__';
|
|
1977
|
+
import { TranslatorState, shiftState, withSourceMap, indent, createCompilerState } from '../translator';
|
|
2099
1978
|
import { entity2LogicNamespace } from '../server/entity2LogicNamespace';
|
|
2100
|
-
import
|
|
1979
|
+
import CallQueryComponent from './CallQueryComponent__';
|
|
2101
1980
|
//================================================================================
|
|
2102
1981
|
// 从这里开始到结尾注释之间的代码由 NASL Workbench 自动生成,请不手动修改!
|
|
2103
1982
|
// ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓
|
|
2104
1983
|
//================================================================================
|
|
2105
1984
|
import { EventPayload, Params } from '../common/EventEmitter';
|
|
2106
|
-
import { concept, excludedInJSON, property,
|
|
1985
|
+
import { concept, excludedInJSON, property, className } from '../decorators';
|
|
2107
1986
|
|
|
2108
1987
|
import * as utils from '../utils';
|
|
2109
|
-
import * as types from './utils/types';
|
|
2110
|
-
import * as asserts from './utils/asserts';
|
|
2111
1988
|
import { v4 as uuidv4 } from 'uuid';
|
|
2112
1989
|
import BaseNode from '../common/BaseNode';
|
|
2113
|
-
import
|
|
2114
|
-
import
|
|
2115
|
-
import
|
|
2116
|
-
import
|
|
2117
|
-
import
|
|
1990
|
+
import EntityProperty from './EntityProperty__';
|
|
1991
|
+
import EntityIndex from './EntityIndex__';
|
|
1992
|
+
import Module from './Module__';
|
|
1993
|
+
import DataSource from './DataSource__';
|
|
1994
|
+
import App from './App__';
|
|
2118
1995
|
|
|
2119
1996
|
/**
|
|
2120
1997
|
* 实体
|
|
2121
1998
|
*/
|
|
1999
|
+
@className
|
|
2122
2000
|
@concept('实体')
|
|
2001
|
+
// @ts-ignore
|
|
2123
2002
|
export class Entity extends BaseNode {
|
|
2124
2003
|
/** 类名 */
|
|
2125
|
-
static readonly ConceptName
|
|
2126
|
-
|
|
2127
|
-
/** 继承链 */
|
|
2128
|
-
static readonly inheritanceChain: string[] = ['BaseNode'];
|
|
2004
|
+
static readonly ConceptName = 'Entity';
|
|
2129
2005
|
|
|
2130
2006
|
/**
|
|
2131
2007
|
* 产品概念
|
|
2132
2008
|
*/
|
|
2133
|
-
@property('concept')
|
|
2134
2009
|
// @ts-ignore
|
|
2135
2010
|
readonly concept!: 'Entity';
|
|
2136
2011
|
|
|
@@ -2138,6 +2013,7 @@ export class Entity extends BaseNode {
|
|
|
2138
2013
|
* 实体名称
|
|
2139
2014
|
*/
|
|
2140
2015
|
@property()
|
|
2016
|
+
// @ts-ignore
|
|
2141
2017
|
name!: string;
|
|
2142
2018
|
|
|
2143
2019
|
/**
|
|
@@ -2150,12 +2026,14 @@ export class Entity extends BaseNode {
|
|
|
2150
2026
|
* 数据库表名
|
|
2151
2027
|
*/
|
|
2152
2028
|
@property()
|
|
2029
|
+
// @ts-ignore
|
|
2153
2030
|
tableName!: string;
|
|
2154
2031
|
|
|
2155
2032
|
/**
|
|
2156
2033
|
* 实体描述
|
|
2157
2034
|
*/
|
|
2158
2035
|
@property()
|
|
2036
|
+
// @ts-ignore
|
|
2159
2037
|
description!: string;
|
|
2160
2038
|
|
|
2161
2039
|
/**
|
|
@@ -2167,21 +2045,13 @@ export class Entity extends BaseNode {
|
|
|
2167
2045
|
/**
|
|
2168
2046
|
* 实体属性列表
|
|
2169
2047
|
*/
|
|
2170
|
-
@property(
|
|
2171
|
-
objectRef: 'EntityProperty',
|
|
2172
|
-
isArray: true,
|
|
2173
|
-
defaultValue: [],
|
|
2174
|
-
})
|
|
2048
|
+
@property('EntityProperty')
|
|
2175
2049
|
properties: Array<EntityProperty> = [];
|
|
2176
2050
|
|
|
2177
2051
|
/**
|
|
2178
2052
|
* 实体索引列表
|
|
2179
2053
|
*/
|
|
2180
|
-
@property(
|
|
2181
|
-
objectRef: 'EntityIndex',
|
|
2182
|
-
isArray: true,
|
|
2183
|
-
defaultValue: [],
|
|
2184
|
-
})
|
|
2054
|
+
@property('EntityIndex')
|
|
2185
2055
|
indexes: Array<EntityIndex> = [];
|
|
2186
2056
|
|
|
2187
2057
|
/**
|
|
@@ -2193,8 +2063,8 @@ export class Entity extends BaseNode {
|
|
|
2193
2063
|
/**
|
|
2194
2064
|
* 祖先 App
|
|
2195
2065
|
*/
|
|
2196
|
-
get
|
|
2197
|
-
return this.getAncestor('App') as App
|
|
2066
|
+
<span class="fstat-no" title="function not covered" > get a</span>pp() {
|
|
2067
|
+
<span class="cstat-no" title="statement not covered" > return this.getAncestor('App') as App;</span>
|
|
2198
2068
|
}
|
|
2199
2069
|
/**
|
|
2200
2070
|
* 祖先 DataSource
|
|
@@ -2220,7 +2090,7 @@ export class Entity extends BaseNode {
|
|
|
2220
2090
|
* 从父级删除该节点
|
|
2221
2091
|
* @internal
|
|
2222
2092
|
*/
|
|
2223
|
-
<span class="fstat-no" title="function not covered" > _delete() {
|
|
2093
|
+
<span class="fstat-no" title="function not covered" > _delete(</span>) {
|
|
2224
2094
|
let params: Params = <span class="cstat-no" title="statement not covered" >null;</span>
|
|
2225
2095
|
<span class="cstat-no" title="statement not covered" > if (this.parentNode) {</span>
|
|
2226
2096
|
<span class="cstat-no" title="statement not covered" > params = (this.parentNode as any)?.__removeEntity?.(this);</span>
|
|
@@ -2230,7 +2100,7 @@ export class Entity extends BaseNode {
|
|
|
2230
2100
|
/**
|
|
2231
2101
|
* 设置实体描述
|
|
2232
2102
|
*/
|
|
2233
|
-
<span class="fstat-no" title="function not covered" > setDescription(
|
|
2103
|
+
<span class="fstat-no" title="function not covered" > setDescription(</span>description: string) {
|
|
2234
2104
|
const object = <span class="cstat-no" title="statement not covered" >{</span>
|
|
2235
2105
|
description,
|
|
2236
2106
|
};
|
|
@@ -2239,13 +2109,13 @@ export class Entity extends BaseNode {
|
|
|
2239
2109
|
});
|
|
2240
2110
|
}
|
|
2241
2111
|
|
|
2242
|
-
<span class="fstat-no" title="function not covered" > getPropertyExistingNames(
|
|
2112
|
+
<span class="fstat-no" title="function not covered" > getPropertyExistingNames(</span>excludedList: Array<EntityProperty> = <span class="branch-0 cbranch-no" title="branch not covered" >[])</span> {
|
|
2243
2113
|
const excludedSet = <span class="cstat-no" title="statement not covered" >new Set(excludedList);</span>
|
|
2244
2114
|
<span class="cstat-no" title="statement not covered" > return ((this.properties as EntityProperty[]) || [])</span>
|
|
2245
|
-
.filter(
|
|
2246
|
-
.map(
|
|
2115
|
+
.filter(<span class="fstat-no" title="function not covered" >(i</span>tem) => <span class="cstat-no" title="statement not covered" >!excludedSet.has(item))</span>
|
|
2116
|
+
.map(<span class="fstat-no" title="function not covered" >(i</span>tem) => <span class="cstat-no" title="statement not covered" >item.name)</span>;
|
|
2247
2117
|
}
|
|
2248
|
-
<span class="fstat-no" title="function not covered" > getPropertyUniqueName(
|
|
2118
|
+
<span class="fstat-no" title="function not covered" > getPropertyUniqueName(</span>name = <span class="branch-0 cbranch-no" title="branch not covered" >'property1')</span> {
|
|
2249
2119
|
<span class="cstat-no" title="statement not covered" > return utils.unique(name, this.getPropertyExistingNames(), undefined, false);</span>
|
|
2250
2120
|
}
|
|
2251
2121
|
|
|
@@ -2270,10 +2140,9 @@ export class Entity extends BaseNode {
|
|
|
2270
2140
|
*/
|
|
2271
2141
|
_insertPropertyAt(property: EntityProperty, index: number): EntityProperty;
|
|
2272
2142
|
|
|
2273
|
-
<span class="fstat-no" title="function not covered" > _insertPropertyAt(
|
|
2143
|
+
<span class="fstat-no" title="function not covered" > _insertPropertyAt(</span>options: string | Partial<EntityProperty> | EntityProperty, index: number) {
|
|
2274
2144
|
const propertyOptions: any = <span class="cstat-no" title="statement not covered" >{};</span>
|
|
2275
2145
|
const relationOptions = <span class="cstat-no" title="statement not covered" >{ parentNode: this, parentKey: 'properties' };</span>
|
|
2276
|
-
const <span class="cstat-no" title="statement not covered" >EntityProperty = getConceptConstructor('EntityProperty');</span>
|
|
2277
2146
|
let property: EntityProperty;
|
|
2278
2147
|
<span class="cstat-no" title="statement not covered" > if (!options) {</span>
|
|
2279
2148
|
<span class="cstat-no" title="statement not covered" > property = EntityProperty.from(</span>
|
|
@@ -2284,7 +2153,7 @@ export class Entity extends BaseNode {
|
|
|
2284
2153
|
this,
|
|
2285
2154
|
'properties',
|
|
2286
2155
|
);
|
|
2287
|
-
<span class="cstat-no" title="statement not covered" >
|
|
2156
|
+
} else <span class="cstat-no" title="statement not covered" >if (typeof options === 'string') {</span>
|
|
2288
2157
|
<span class="cstat-no" title="statement not covered" > property = EntityProperty.from(</span>
|
|
2289
2158
|
{
|
|
2290
2159
|
...propertyOptions,
|
|
@@ -2293,8 +2162,8 @@ export class Entity extends BaseNode {
|
|
|
2293
2162
|
this,
|
|
2294
2163
|
'properties',
|
|
2295
2164
|
);
|
|
2296
|
-
<span class="cstat-no" title="statement not covered" >
|
|
2297
|
-
<span class="cstat-no" title="statement not covered" > options.ensureDelete();
|
|
2165
|
+
} else <span class="cstat-no" title="statement not covered" >if (options instanceof EntityProperty) {</span>
|
|
2166
|
+
<span class="cstat-no" title="statement not covered" > options.ensureDelete(); </span>// 同一实例不支持多处存在
|
|
2298
2167
|
<span class="cstat-no" title="statement not covered" > property = options;</span>
|
|
2299
2168
|
<span class="cstat-no" title="statement not covered" > Object.assign(property, relationOptions);</span>
|
|
2300
2169
|
} else {
|
|
@@ -2329,7 +2198,7 @@ export class Entity extends BaseNode {
|
|
|
2329
2198
|
*/
|
|
2330
2199
|
insertPropertyAt(property: EntityProperty, index: number): EntityProperty;
|
|
2331
2200
|
|
|
2332
|
-
<span class="fstat-no" title="function not covered" > insertPropertyAt(
|
|
2201
|
+
<span class="fstat-no" title="function not covered" > insertPropertyAt(</span>options: string | Partial<EntityProperty> | EntityProperty, index: number) {
|
|
2333
2202
|
const node = <span class="cstat-no" title="statement not covered" >this._insertPropertyAt(options as any, index);</span>
|
|
2334
2203
|
<span class="cstat-no" title="statement not covered" > node.create({</span>
|
|
2335
2204
|
index,
|
|
@@ -2360,7 +2229,7 @@ export class Entity extends BaseNode {
|
|
|
2360
2229
|
*/
|
|
2361
2230
|
_addProperty(property: EntityProperty): EntityProperty;
|
|
2362
2231
|
|
|
2363
|
-
<span class="fstat-no" title="function not covered" > _addProperty(
|
|
2232
|
+
<span class="fstat-no" title="function not covered" > _addProperty(</span>options?: string | Partial<EntityProperty> | EntityProperty) {
|
|
2364
2233
|
const index = <span class="cstat-no" title="statement not covered" >this.properties.length;</span>
|
|
2365
2234
|
<span class="cstat-no" title="statement not covered" > return this._insertPropertyAt(options as any, index);</span>
|
|
2366
2235
|
}
|
|
@@ -2384,7 +2253,7 @@ export class Entity extends BaseNode {
|
|
|
2384
2253
|
*/
|
|
2385
2254
|
addProperty(property: EntityProperty): EntityProperty;
|
|
2386
2255
|
|
|
2387
|
-
<span class="fstat-no" title="function not covered" > addProperty(
|
|
2256
|
+
<span class="fstat-no" title="function not covered" > addProperty(</span>options?: string | Partial<EntityProperty> | EntityProperty) {
|
|
2388
2257
|
const node = <span class="cstat-no" title="statement not covered" >this._addProperty(options as any);</span>
|
|
2389
2258
|
const index = <span class="cstat-no" title="statement not covered" >this.properties.indexOf(node);</span>
|
|
2390
2259
|
<span class="cstat-no" title="statement not covered" > node.create({</span>
|
|
@@ -2395,11 +2264,11 @@ export class Entity extends BaseNode {
|
|
|
2395
2264
|
<span class="cstat-no" title="statement not covered" > return node;</span>
|
|
2396
2265
|
}
|
|
2397
2266
|
|
|
2398
|
-
<span class="fstat-no" title="function not covered" > getEntityIndexExistingNames(
|
|
2267
|
+
<span class="fstat-no" title="function not covered" > getEntityIndexExistingNames(</span>excludedList: Array<EntityIndex> = <span class="branch-0 cbranch-no" title="branch not covered" >[])</span> {
|
|
2399
2268
|
const excludedSet = <span class="cstat-no" title="statement not covered" >new Set(excludedList);</span>
|
|
2400
|
-
<span class="cstat-no" title="statement not covered" > return ((this.indexes as EntityIndex[]) || []).filter(
|
|
2269
|
+
<span class="cstat-no" title="statement not covered" > return ((this.indexes as EntityIndex[]) || []).filter(<span class="fstat-no" title="function not covered" >(i</span>tem) => <span class="cstat-no" title="statement not covered" >!excludedSet.has(item))</span>.map(<span class="fstat-no" title="function not covered" >(i</span>tem) => <span class="cstat-no" title="statement not covered" >item.name)</span>;</span>
|
|
2401
2270
|
}
|
|
2402
|
-
<span class="fstat-no" title="function not covered" > getEntityIndexUniqueName(
|
|
2271
|
+
<span class="fstat-no" title="function not covered" > getEntityIndexUniqueName(</span>name = <span class="branch-0 cbranch-no" title="branch not covered" >'entityIndex1')</span> {
|
|
2403
2272
|
<span class="cstat-no" title="statement not covered" > return utils.unique(name, this.getEntityIndexExistingNames(), undefined, false);</span>
|
|
2404
2273
|
}
|
|
2405
2274
|
|
|
@@ -2424,10 +2293,9 @@ export class Entity extends BaseNode {
|
|
|
2424
2293
|
*/
|
|
2425
2294
|
_insertEntityIndexAt(entityIndex: EntityIndex, index: number): EntityIndex;
|
|
2426
2295
|
|
|
2427
|
-
<span class="fstat-no" title="function not covered" > _insertEntityIndexAt(
|
|
2296
|
+
<span class="fstat-no" title="function not covered" > _insertEntityIndexAt(</span>options: string | Partial<EntityIndex> | EntityIndex, index: number) {
|
|
2428
2297
|
const entityIndexOptions: any = <span class="cstat-no" title="statement not covered" >{};</span>
|
|
2429
2298
|
const relationOptions = <span class="cstat-no" title="statement not covered" >{ parentNode: this, parentKey: 'indexes' };</span>
|
|
2430
|
-
const <span class="cstat-no" title="statement not covered" >EntityIndex = getConceptConstructor('EntityIndex');</span>
|
|
2431
2299
|
let entityIndex: EntityIndex;
|
|
2432
2300
|
<span class="cstat-no" title="statement not covered" > if (!options) {</span>
|
|
2433
2301
|
<span class="cstat-no" title="statement not covered" > entityIndex = EntityIndex.from(</span>
|
|
@@ -2438,7 +2306,7 @@ export class Entity extends BaseNode {
|
|
|
2438
2306
|
this,
|
|
2439
2307
|
'indexes',
|
|
2440
2308
|
);
|
|
2441
|
-
<span class="cstat-no" title="statement not covered" >
|
|
2309
|
+
} else <span class="cstat-no" title="statement not covered" >if (typeof options === 'string') {</span>
|
|
2442
2310
|
<span class="cstat-no" title="statement not covered" > entityIndex = EntityIndex.from(</span>
|
|
2443
2311
|
{
|
|
2444
2312
|
...entityIndexOptions,
|
|
@@ -2447,8 +2315,8 @@ export class Entity extends BaseNode {
|
|
|
2447
2315
|
this,
|
|
2448
2316
|
'indexes',
|
|
2449
2317
|
);
|
|
2450
|
-
<span class="cstat-no" title="statement not covered" >
|
|
2451
|
-
<span class="cstat-no" title="statement not covered" > options.ensureDelete();
|
|
2318
|
+
} else <span class="cstat-no" title="statement not covered" >if (options instanceof EntityIndex) {</span>
|
|
2319
|
+
<span class="cstat-no" title="statement not covered" > options.ensureDelete(); </span>// 同一实例不支持多处存在
|
|
2452
2320
|
<span class="cstat-no" title="statement not covered" > entityIndex = options;</span>
|
|
2453
2321
|
<span class="cstat-no" title="statement not covered" > Object.assign(entityIndex, relationOptions);</span>
|
|
2454
2322
|
} else {
|
|
@@ -2483,7 +2351,7 @@ export class Entity extends BaseNode {
|
|
|
2483
2351
|
*/
|
|
2484
2352
|
insertEntityIndexAt(entityIndex: EntityIndex, index: number): EntityIndex;
|
|
2485
2353
|
|
|
2486
|
-
<span class="fstat-no" title="function not covered" > insertEntityIndexAt(
|
|
2354
|
+
<span class="fstat-no" title="function not covered" > insertEntityIndexAt(</span>options: string | Partial<EntityIndex> | EntityIndex, index: number) {
|
|
2487
2355
|
const node = <span class="cstat-no" title="statement not covered" >this._insertEntityIndexAt(options as any, index);</span>
|
|
2488
2356
|
<span class="cstat-no" title="statement not covered" > node.create({</span>
|
|
2489
2357
|
index,
|
|
@@ -2514,7 +2382,7 @@ export class Entity extends BaseNode {
|
|
|
2514
2382
|
*/
|
|
2515
2383
|
_addEntityIndex(entityIndex: EntityIndex): EntityIndex;
|
|
2516
2384
|
|
|
2517
|
-
<span class="fstat-no" title="function not covered" > _addEntityIndex(
|
|
2385
|
+
<span class="fstat-no" title="function not covered" > _addEntityIndex(</span>options?: string | Partial<EntityIndex> | EntityIndex) {
|
|
2518
2386
|
const index = <span class="cstat-no" title="statement not covered" >this.indexes.length;</span>
|
|
2519
2387
|
<span class="cstat-no" title="statement not covered" > return this._insertEntityIndexAt(options as any, index);</span>
|
|
2520
2388
|
}
|
|
@@ -2538,7 +2406,7 @@ export class Entity extends BaseNode {
|
|
|
2538
2406
|
*/
|
|
2539
2407
|
addEntityIndex(entityIndex: EntityIndex): EntityIndex;
|
|
2540
2408
|
|
|
2541
|
-
<span class="fstat-no" title="function not covered" > addEntityIndex(
|
|
2409
|
+
<span class="fstat-no" title="function not covered" > addEntityIndex(</span>options?: string | Partial<EntityIndex> | EntityIndex) {
|
|
2542
2410
|
const node = <span class="cstat-no" title="statement not covered" >this._addEntityIndex(options as any);</span>
|
|
2543
2411
|
const index = <span class="cstat-no" title="statement not covered" >this.indexes.indexOf(node);</span>
|
|
2544
2412
|
<span class="cstat-no" title="statement not covered" > node.create({</span>
|
|
@@ -2561,10 +2429,10 @@ export class Entity extends BaseNode {
|
|
|
2561
2429
|
*/
|
|
2562
2430
|
removeProperty(property: EntityProperty): void;
|
|
2563
2431
|
|
|
2564
|
-
<span class="fstat-no" title="function not covered" > removeProperty(
|
|
2432
|
+
<span class="fstat-no" title="function not covered" > removeProperty(</span>options: string | EntityProperty) {
|
|
2565
2433
|
let property: EntityProperty;
|
|
2566
2434
|
<span class="cstat-no" title="statement not covered" > if (typeof options === 'string') {</span>
|
|
2567
|
-
<span class="cstat-no" title="statement not covered" > property = (this.properties as EntityProperty[]).find(
|
|
2435
|
+
<span class="cstat-no" title="statement not covered" > property = (this.properties as EntityProperty[]).find(<span class="fstat-no" title="function not covered" >(i</span>tem) => <span class="cstat-no" title="statement not covered" >item.name === options)</span>;</span>
|
|
2568
2436
|
<span class="cstat-no" title="statement not covered" > if (!property) {</span>
|
|
2569
2437
|
<span class="cstat-no" title="statement not covered" > throw new Error('找不到实体属性 ' + options);</span>
|
|
2570
2438
|
}
|
|
@@ -2574,7 +2442,7 @@ export class Entity extends BaseNode {
|
|
|
2574
2442
|
<span class="cstat-no" title="statement not covered" > return property.delete();</span>
|
|
2575
2443
|
}
|
|
2576
2444
|
|
|
2577
|
-
<span class="fstat-no" title="function not covered" > __removeEntityProperty(
|
|
2445
|
+
<span class="fstat-no" title="function not covered" > __removeEntityProperty(</span>property: EntityProperty) {
|
|
2578
2446
|
const parentKey = <span class="cstat-no" title="statement not covered" >property.parentKey;</span>
|
|
2579
2447
|
const params: Params = <span class="cstat-no" title="statement not covered" >{</span>
|
|
2580
2448
|
parentNode: this,
|
|
@@ -2585,21 +2453,13 @@ export class Entity extends BaseNode {
|
|
|
2585
2453
|
};
|
|
2586
2454
|
<span class="cstat-no" title="statement not covered" > if (parentKey) {</span>
|
|
2587
2455
|
<span class="cstat-no" title="statement not covered" > params.parentKey = parentKey;</span>
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
// @ts-ignore
|
|
2591
|
-
const n = <span class="cstat-no" title="statement not covered" >property.__v_raw || property;</span>
|
|
2592
|
-
<span class="cstat-no" title="statement not covered" > if (Array.isArray((t as any)[parentKey])) {</span>
|
|
2593
|
-
// @ts-ignore
|
|
2594
|
-
const index = (<span class="cstat-no" title="statement not covered" >t as any)[parentKey].findIndex((<span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >el) => (e</span>l.__v_raw || el) === n)</span>;</span>
|
|
2456
|
+
<span class="cstat-no" title="statement not covered" > if (Array.isArray((this as any)[parentKey])) {</span>
|
|
2457
|
+
const index = (<span class="cstat-no" title="statement not covered" >this as any)[parentKey].indexOf(property);</span>
|
|
2595
2458
|
<span class="cstat-no" title="statement not covered" > ~index && (this as any)[parentKey].splice(index, 1);</span>
|
|
2596
2459
|
<span class="cstat-no" title="statement not covered" > params.index = index;</span>
|
|
2597
|
-
} else {
|
|
2598
|
-
|
|
2599
|
-
<span class="cstat-no" title="statement not covered" >
|
|
2600
|
-
<span class="cstat-no" title="statement not covered" > params.index = 0;</span>
|
|
2601
|
-
(<span class="cstat-no" title="statement not covered" >this as any)[parentKey] = undefined;</span>
|
|
2602
|
-
}
|
|
2460
|
+
} else <span class="cstat-no" title="statement not covered" >if ((this as any)[parentKey] === property) {</span>
|
|
2461
|
+
<span class="cstat-no" title="statement not covered" > params.index = 0;</span>
|
|
2462
|
+
(<span class="cstat-no" title="statement not covered" >this as any)[parentKey] = undefined;</span>
|
|
2603
2463
|
}
|
|
2604
2464
|
}
|
|
2605
2465
|
<span class="cstat-no" title="statement not covered" > return params;</span>
|
|
@@ -2617,10 +2477,10 @@ export class Entity extends BaseNode {
|
|
|
2617
2477
|
*/
|
|
2618
2478
|
removeEntityIndex(entityIndex: EntityIndex): void;
|
|
2619
2479
|
|
|
2620
|
-
<span class="fstat-no" title="function not covered" > removeEntityIndex(
|
|
2480
|
+
<span class="fstat-no" title="function not covered" > removeEntityIndex(</span>options: string | EntityIndex) {
|
|
2621
2481
|
let entityIndex: EntityIndex;
|
|
2622
2482
|
<span class="cstat-no" title="statement not covered" > if (typeof options === 'string') {</span>
|
|
2623
|
-
<span class="cstat-no" title="statement not covered" > entityIndex = (this.indexes as EntityIndex[]).find(
|
|
2483
|
+
<span class="cstat-no" title="statement not covered" > entityIndex = (this.indexes as EntityIndex[]).find(<span class="fstat-no" title="function not covered" >(i</span>tem) => <span class="cstat-no" title="statement not covered" >item.name === options)</span>;</span>
|
|
2624
2484
|
<span class="cstat-no" title="statement not covered" > if (!entityIndex) {</span>
|
|
2625
2485
|
<span class="cstat-no" title="statement not covered" > throw new Error('找不到实体索引 ' + options);</span>
|
|
2626
2486
|
}
|
|
@@ -2630,7 +2490,7 @@ export class Entity extends BaseNode {
|
|
|
2630
2490
|
<span class="cstat-no" title="statement not covered" > return entityIndex.delete();</span>
|
|
2631
2491
|
}
|
|
2632
2492
|
|
|
2633
|
-
<span class="fstat-no" title="function not covered" > __removeEntityIndex(
|
|
2493
|
+
<span class="fstat-no" title="function not covered" > __removeEntityIndex(</span>entityIndex: EntityIndex) {
|
|
2634
2494
|
const parentKey = <span class="cstat-no" title="statement not covered" >entityIndex.parentKey;</span>
|
|
2635
2495
|
const params: Params = <span class="cstat-no" title="statement not covered" >{</span>
|
|
2636
2496
|
parentNode: this,
|
|
@@ -2641,21 +2501,13 @@ export class Entity extends BaseNode {
|
|
|
2641
2501
|
};
|
|
2642
2502
|
<span class="cstat-no" title="statement not covered" > if (parentKey) {</span>
|
|
2643
2503
|
<span class="cstat-no" title="statement not covered" > params.parentKey = parentKey;</span>
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
// @ts-ignore
|
|
2647
|
-
const n = <span class="cstat-no" title="statement not covered" >entityIndex.__v_raw || entityIndex;</span>
|
|
2648
|
-
<span class="cstat-no" title="statement not covered" > if (Array.isArray((t as any)[parentKey])) {</span>
|
|
2649
|
-
// @ts-ignore
|
|
2650
|
-
const index = (<span class="cstat-no" title="statement not covered" >t as any)[parentKey].findIndex((<span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >el) => (e</span>l.__v_raw || el) === n)</span>;</span>
|
|
2504
|
+
<span class="cstat-no" title="statement not covered" > if (Array.isArray((this as any)[parentKey])) {</span>
|
|
2505
|
+
const index = (<span class="cstat-no" title="statement not covered" >this as any)[parentKey].indexOf(entityIndex);</span>
|
|
2651
2506
|
<span class="cstat-no" title="statement not covered" > ~index && (this as any)[parentKey].splice(index, 1);</span>
|
|
2652
2507
|
<span class="cstat-no" title="statement not covered" > params.index = index;</span>
|
|
2653
|
-
} else {
|
|
2654
|
-
|
|
2655
|
-
<span class="cstat-no" title="statement not covered" >
|
|
2656
|
-
<span class="cstat-no" title="statement not covered" > params.index = 0;</span>
|
|
2657
|
-
(<span class="cstat-no" title="statement not covered" >this as any)[parentKey] = undefined;</span>
|
|
2658
|
-
}
|
|
2508
|
+
} else <span class="cstat-no" title="statement not covered" >if ((this as any)[parentKey] === entityIndex) {</span>
|
|
2509
|
+
<span class="cstat-no" title="statement not covered" > params.index = 0;</span>
|
|
2510
|
+
(<span class="cstat-no" title="statement not covered" >this as any)[parentKey] = undefined;</span>
|
|
2659
2511
|
}
|
|
2660
2512
|
}
|
|
2661
2513
|
<span class="cstat-no" title="statement not covered" > return params;</span>
|
|
@@ -2666,28 +2518,28 @@ export class Entity extends BaseNode {
|
|
|
2666
2518
|
// 自动生成的代码已结束。下面可以手动编写。
|
|
2667
2519
|
//================================================================================
|
|
2668
2520
|
|
|
2669
|
-
<span class="fstat-no" title="function not covered" > getPropertyExistingColumnNames(
|
|
2521
|
+
<span class="fstat-no" title="function not covered" > getPropertyExistingColumnNames(</span>excludedList: Array<EntityProperty> = <span class="branch-0 cbranch-no" title="branch not covered" >[])</span> {
|
|
2670
2522
|
const excludedSet = <span class="cstat-no" title="statement not covered" >new Set(excludedList);</span>
|
|
2671
2523
|
<span class="cstat-no" title="statement not covered" > return ((this.properties as EntityProperty[]) || [])</span>
|
|
2672
|
-
.filter(
|
|
2673
|
-
.map(
|
|
2524
|
+
.filter(<span class="fstat-no" title="function not covered" >(i</span>tem) => <span class="cstat-no" title="statement not covered" >!excludedSet.has(item))</span>
|
|
2525
|
+
.map(<span class="fstat-no" title="function not covered" >(i</span>tem) => <span class="cstat-no" title="statement not covered" >item.columnName)</span>;
|
|
2674
2526
|
}
|
|
2675
2527
|
|
|
2676
|
-
<span class="fstat-no" title="function not covered" > getPropertyUniqueColumnName(
|
|
2528
|
+
<span class="fstat-no" title="function not covered" > getPropertyUniqueColumnName(</span>name = <span class="branch-0 cbranch-no" title="branch not covered" >'property1',</span> excludedList: Array<EntityProperty> = <span class="branch-0 cbranch-no" title="branch not covered" >[])</span> {
|
|
2677
2529
|
<span class="cstat-no" title="statement not covered" > return utils.unique(name, this.getPropertyExistingColumnNames(excludedList), undefined, false);</span>
|
|
2678
2530
|
}
|
|
2679
2531
|
|
|
2680
|
-
<span class="fstat-no" title="function not covered" > getPropertyExistingNameList(
|
|
2532
|
+
<span class="fstat-no" title="function not covered" > getPropertyExistingNameList(</span>excludedList: Array<EntityProperty> = <span class="branch-0 cbranch-no" title="branch not covered" >[])</span> {
|
|
2681
2533
|
const excludedSet = <span class="cstat-no" title="statement not covered" >Array.from(new Set(excludedList));</span>
|
|
2682
|
-
const namelist = <span class="cstat-no" title="statement not covered" >excludedSet.map(
|
|
2534
|
+
const namelist = <span class="cstat-no" title="statement not covered" >excludedSet.map(<span class="fstat-no" title="function not covered" >(i</span>tem) => <span class="cstat-no" title="statement not covered" >item.name)</span>;</span>
|
|
2683
2535
|
|
|
2684
|
-
<span class="cstat-no" title="statement not covered" > return (this.properties || []).filter(
|
|
2536
|
+
<span class="cstat-no" title="statement not covered" > return (this.properties || []).filter(<span class="fstat-no" title="function not covered" >(i</span>tem) => <span class="cstat-no" title="statement not covered" >!namelist.includes(item.name))</span>.map(<span class="fstat-no" title="function not covered" >(i</span>tem) => <span class="cstat-no" title="statement not covered" >item.name)</span>;</span>
|
|
2685
2537
|
}
|
|
2686
2538
|
|
|
2687
2539
|
/**
|
|
2688
2540
|
* 设置实体表名并修改表名
|
|
2689
2541
|
*/
|
|
2690
|
-
<span class="fstat-no" title="function not covered" > setName(
|
|
2542
|
+
<span class="fstat-no" title="function not covered" > setName(</span>name: string) {
|
|
2691
2543
|
const object: any = <span class="cstat-no" title="statement not covered" >{</span>
|
|
2692
2544
|
name,
|
|
2693
2545
|
};
|
|
@@ -2695,15 +2547,6 @@ export class Entity extends BaseNode {
|
|
|
2695
2547
|
// 根据 name 格式化表名
|
|
2696
2548
|
const oldName = <span class="cstat-no" title="statement not covered" >this.name;</span>
|
|
2697
2549
|
const oldTableName = <span class="cstat-no" title="statement not covered" >this.tableName;</span>
|
|
2698
|
-
const namespace = <span class="cstat-no" title="statement not covered" >this.getNamespace();</span>
|
|
2699
|
-
|
|
2700
|
-
<span class="cstat-no" title="statement not covered" > this.app.emit('collect:start', { actionMsg: '实体改名' });</span>
|
|
2701
|
-
// 更新实体内部属性引用的实体名称
|
|
2702
|
-
<span class="cstat-no" title="statement not covered" > this.traverseChildren((<span class="fstat-no" title="function not covered" >node: any) => {</span></span>
|
|
2703
|
-
<span class="cstat-no" title="statement not covered" > if (node.concept === 'TypeAnnotation' && oldName === node.typeName && namespace === node.typeNamespace) {</span>
|
|
2704
|
-
<span class="cstat-no" title="statement not covered" > node.setTypeName(name);</span>
|
|
2705
|
-
}
|
|
2706
|
-
});
|
|
2707
2550
|
<span class="cstat-no" title="statement not covered" > this.name = name;</span>
|
|
2708
2551
|
<span class="cstat-no" title="statement not covered" > this.tableName = name;</span>
|
|
2709
2552
|
<span class="cstat-no" title="statement not covered" > this.__formatTableName();</span>
|
|
@@ -2717,13 +2560,12 @@ export class Entity extends BaseNode {
|
|
|
2717
2560
|
...object,
|
|
2718
2561
|
field: 'name',
|
|
2719
2562
|
});
|
|
2720
|
-
<span class="cstat-no" title="statement not covered" > this.app.emit('collect:end');</span>
|
|
2721
2563
|
}
|
|
2722
2564
|
|
|
2723
2565
|
/**
|
|
2724
2566
|
* 设置实体表名
|
|
2725
2567
|
*/
|
|
2726
|
-
<span class="fstat-no" title="function not covered" > setTableName(
|
|
2568
|
+
<span class="fstat-no" title="function not covered" > setTableName(</span>tableName: string) {
|
|
2727
2569
|
const object = <span class="cstat-no" title="statement not covered" >{</span>
|
|
2728
2570
|
tableName,
|
|
2729
2571
|
};
|
|
@@ -2743,18 +2585,18 @@ export class Entity extends BaseNode {
|
|
|
2743
2585
|
}
|
|
2744
2586
|
|
|
2745
2587
|
// Excel、数据源导入的实体不进行表名格式化
|
|
2746
|
-
<span class="fstat-no" title="function not covered" > isIgnoreFormatTableAndColumnName() {
|
|
2588
|
+
<span class="fstat-no" title="function not covered" > isIgnoreFormatTableAndColumnName(</span>) {
|
|
2747
2589
|
<span class="cstat-no" title="statement not covered" > return this.origin !== 'ide' && this.origin !== 'sql';</span>
|
|
2748
2590
|
}
|
|
2749
2591
|
|
|
2750
|
-
<span class="fstat-no" title="function not covered" > genFormatTableName() {
|
|
2592
|
+
<span class="fstat-no" title="function not covered" > genFormatTableName(</span>) {
|
|
2751
2593
|
<span class="cstat-no" title="statement not covered" > return (this.parentNode as DataSource).genFormatEntityTableName(this);</span>
|
|
2752
2594
|
}
|
|
2753
2595
|
|
|
2754
2596
|
/**
|
|
2755
2597
|
* 根据全局设置中的数据库命名规则,生成 属性列名
|
|
2756
2598
|
*/
|
|
2757
|
-
<span class="fstat-no" title="function not covered" > genFormatPropertyColumnName(
|
|
2599
|
+
<span class="fstat-no" title="function not covered" > genFormatPropertyColumnName(</span>property: EntityProperty) {
|
|
2758
2600
|
// Excel、数据源导入的实体不进行列名格式化
|
|
2759
2601
|
<span class="cstat-no" title="statement not covered" > if (this.isIgnoreFormatTableAndColumnName()) {</span>
|
|
2760
2602
|
<span class="cstat-no" title="statement not covered" > return property.columnName || property.name;</span>
|
|
@@ -2774,7 +2616,7 @@ export class Entity extends BaseNode {
|
|
|
2774
2616
|
* 根据全局设置中的数据库命名规则,将 实体表名 重命名
|
|
2775
2617
|
* 此方法不会 update
|
|
2776
2618
|
*/
|
|
2777
|
-
<span class="fstat-no" title="function not covered" > __formatTableName() {
|
|
2619
|
+
<span class="fstat-no" title="function not covered" > __formatTableName(</span>) {
|
|
2778
2620
|
// Excel、数据源导入的实体不进行表名格式化
|
|
2779
2621
|
<span class="cstat-no" title="statement not covered" > if (this.isIgnoreFormatTableAndColumnName()) {</span>
|
|
2780
2622
|
<span class="cstat-no" title="statement not covered" > return;</span>
|
|
@@ -2788,7 +2630,7 @@ export class Entity extends BaseNode {
|
|
|
2788
2630
|
/**
|
|
2789
2631
|
* 根据全局设置中的数据库命名规则,将 实体表名 重命名
|
|
2790
2632
|
*/
|
|
2791
|
-
<span class="fstat-no" title="function not covered" > formatTableName() {
|
|
2633
|
+
<span class="fstat-no" title="function not covered" > formatTableName(</span>) {
|
|
2792
2634
|
// Excel、数据源导入的实体不进行表名格式化
|
|
2793
2635
|
<span class="cstat-no" title="statement not covered" > if (this.isIgnoreFormatTableAndColumnName()) {</span>
|
|
2794
2636
|
<span class="cstat-no" title="statement not covered" > return;</span>
|
|
@@ -2802,32 +2644,32 @@ export class Entity extends BaseNode {
|
|
|
2802
2644
|
/**
|
|
2803
2645
|
* 根据全局设置中的数据库命名规则,将 属性列名 重命名
|
|
2804
2646
|
*/
|
|
2805
|
-
<span class="fstat-no" title="function not covered" > formatPropertyColumnName() {
|
|
2647
|
+
<span class="fstat-no" title="function not covered" > formatPropertyColumnName(</span>) {
|
|
2806
2648
|
// Excel、数据源导入的实体不进行列名格式化
|
|
2807
2649
|
<span class="cstat-no" title="statement not covered" > if (this.isIgnoreFormatTableAndColumnName()) {</span>
|
|
2808
2650
|
<span class="cstat-no" title="statement not covered" > return;</span>
|
|
2809
2651
|
}
|
|
2810
2652
|
|
|
2811
2653
|
// 重命名 properties columnName
|
|
2812
|
-
<span class="cstat-no" title="statement not covered" > this.properties.forEach(
|
|
2654
|
+
<span class="cstat-no" title="statement not covered" > this.properties.forEach(<span class="fstat-no" title="function not covered" >(p</span>rop) => <span class="cstat-no" title="statement not covered" >prop.formatColumnName())</span>;</span>
|
|
2813
2655
|
}
|
|
2814
2656
|
|
|
2815
2657
|
/**
|
|
2816
2658
|
* 根据全局设置中的数据库命名规则,将 属性列名 重命名
|
|
2817
2659
|
* 此方法不会 update
|
|
2818
2660
|
*/
|
|
2819
|
-
<span class="fstat-no" title="function not covered" > __formatPropertyColumnName() {
|
|
2661
|
+
<span class="fstat-no" title="function not covered" > __formatPropertyColumnName(</span>) {
|
|
2820
2662
|
// Excel、数据源导入的实体不进行列名格式化
|
|
2821
2663
|
<span class="cstat-no" title="statement not covered" > if (this.isIgnoreFormatTableAndColumnName()) {</span>
|
|
2822
2664
|
<span class="cstat-no" title="statement not covered" > return;</span>
|
|
2823
2665
|
}
|
|
2824
|
-
<span class="cstat-no" title="statement not covered" > this.properties.forEach(
|
|
2666
|
+
<span class="cstat-no" title="statement not covered" > this.properties.forEach(<span class="fstat-no" title="function not covered" >(p</span>rop) => <span class="cstat-no" title="statement not covered" >prop.__formatColumnName())</span>;</span>
|
|
2825
2667
|
}
|
|
2826
2668
|
|
|
2827
2669
|
/**
|
|
2828
2670
|
* 根据全局设置中的数据库命名规则,将 实体表名 和 属性列名 重命名
|
|
2829
2671
|
*/
|
|
2830
|
-
<span class="fstat-no" title="function not covered" > formatTableAndColumnName() {
|
|
2672
|
+
<span class="fstat-no" title="function not covered" > formatTableAndColumnName(</span>) {
|
|
2831
2673
|
// Excel、数据源导入的实体不进行格式化
|
|
2832
2674
|
<span class="cstat-no" title="statement not covered" > if (this.isIgnoreFormatTableAndColumnName()) {</span>
|
|
2833
2675
|
<span class="cstat-no" title="statement not covered" > return;</span>
|
|
@@ -2942,69 +2784,60 @@ export class Entity extends BaseNode {
|
|
|
2942
2784
|
};
|
|
2943
2785
|
}
|
|
2944
2786
|
|
|
2945
|
-
@
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
code +=
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
code +=
|
|
2953
|
-
|
|
2954
|
-
code += ';\n';
|
|
2787
|
+
@withSourceMap()
|
|
2788
|
+
<span class="fstat-no" title="function not covered" > toEmbeddedTS(</span>state = <span class="branch-0 cbranch-no" title="branch not covered" >createCompilerState())</span>: string {
|
|
2789
|
+
let code = <span class="cstat-no" title="statement not covered" >`export class ${this.name} {\n`;</span>
|
|
2790
|
+
<span class="cstat-no" title="statement not covered" > code += indent((state?.tabSize || 0) + 1);</span>
|
|
2791
|
+
<span class="cstat-no" title="statement not covered" > code += `__name: '${this.getNamespace()}.${this.name}';\n`;</span>
|
|
2792
|
+
<span class="cstat-no" title="statement not covered" > this.properties.forEach(<span class="fstat-no" title="function not covered" >(p</span>roperty) => {</span>
|
|
2793
|
+
<span class="cstat-no" title="statement not covered" > code += indent((state?.tabSize || 0) + 1);</span>
|
|
2794
|
+
<span class="cstat-no" title="statement not covered" > code += property.toEmbeddedTS(shiftState(state, code, { tabSize: 0 }));</span>
|
|
2795
|
+
<span class="cstat-no" title="statement not covered" > code += ';\n';</span>
|
|
2955
2796
|
});
|
|
2956
|
-
|
|
2797
|
+
<span class="cstat-no" title="statement not covered" > if (this.indexes && this.indexes.length) {</span>
|
|
2957
2798
|
<span class="cstat-no" title="statement not covered" > code += indent((state?.tabSize || 0) + 1);</span>
|
|
2958
2799
|
<span class="cstat-no" title="statement not covered" > code += `__IndexList() {\n`;</span>
|
|
2959
2800
|
<span class="cstat-no" title="statement not covered" > code += ` return [`;</span>
|
|
2960
|
-
<span class="cstat-no" title="statement not covered" >
|
|
2801
|
+
<span class="cstat-no" title="statement not covered" > this.indexes.forEach(<span class="fstat-no" title="function not covered" >(e</span>ntityIndex) => {</span>
|
|
2961
2802
|
<span class="cstat-no" title="statement not covered" > code += indent((state?.tabSize || 0) + 1);</span>
|
|
2962
2803
|
<span class="cstat-no" title="statement not covered" > code += '\n ';</span>
|
|
2963
|
-
<span class="cstat-no" title="statement not covered" > code +=
|
|
2804
|
+
<span class="cstat-no" title="statement not covered" > code += entityIndex.toEmbeddedTS(shiftState(state, code, { tabSize: 0 }));</span>
|
|
2964
2805
|
});
|
|
2965
2806
|
<span class="cstat-no" title="statement not covered" > code += `${indent(state?.tabSize || 0)}\n ];\n }\n`;</span>
|
|
2966
2807
|
}
|
|
2967
|
-
|
|
2808
|
+
|
|
2809
|
+
const { ns } = <span class="cstat-no" title="statement not covered" >this;</span>
|
|
2810
|
+
|
|
2968
2811
|
/**
|
|
2969
2812
|
* 11个函数的总行数
|
|
2970
2813
|
* 如果修改这里,可能会影响到dataSource的重命名, 在naslserver中,可能要一起修改
|
|
2971
2814
|
*/
|
|
2972
|
-
code += `\
|
|
2973
|
-
|
|
2974
|
-
code += indent((state?.tabSize || 0) + 1)
|
|
2975
|
-
code +=
|
|
2815
|
+
<span class="cstat-no" title="statement not covered" > code += `\nstatic logics = {\n`;</span>
|
|
2816
|
+
<span class="cstat-no" title="statement not covered" > ns.logics.forEach(<span class="fstat-no" title="function not covered" >(l</span>ogic) => {</span>
|
|
2817
|
+
<span class="cstat-no" title="statement not covered" > code += indent((state?.tabSize || 0) + 1);</span>
|
|
2818
|
+
<span class="cstat-no" title="statement not covered" > code += logic.toEmbeddedTS(shiftState(state, code), 'inObject');</span>
|
|
2976
2819
|
});
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
/* 默认值草稿区 */
|
|
2980
|
-
code += `${indent((state?.tabSize || 0) + 1)}static playground = () => {\n`;
|
|
2981
|
-
for (const prop of self.properties) {
|
|
2982
|
-
for (const item of prop?.defaultValue?.playground ?? []) {
|
|
2983
|
-
<span class="cstat-no" title="statement not covered" > code += yield* item.toEmbeddedTS(shiftState(state, code));</span>
|
|
2984
|
-
<span class="cstat-no" title="statement not covered" > code += ';\n';</span>
|
|
2985
|
-
}
|
|
2986
|
-
}
|
|
2820
|
+
<span class="cstat-no" title="statement not covered" > code += '}\n';</span>
|
|
2821
|
+
<span class="cstat-no" title="statement not covered" > code += `${indent(state?.tabSize || 0)}}\n`;</span>
|
|
2987
2822
|
|
|
2988
|
-
|
|
2989
|
-
code += `${indent(state?.tabSize || 0)}}\n`;
|
|
2990
|
-
return code;
|
|
2823
|
+
<span class="cstat-no" title="statement not covered" > return code;</span>
|
|
2991
2824
|
}
|
|
2992
2825
|
|
|
2993
2826
|
@withSourceMap()
|
|
2994
|
-
<span class="fstat-no" title="function not covered" > toNaturalTS(<span class="branch-0 cbranch-no" title="branch not covered" >
|
|
2827
|
+
<span class="fstat-no" title="function not covered" > toNaturalTS(</span>state = <span class="branch-0 cbranch-no" title="branch not covered" >createCompilerState())</span>: string {
|
|
2995
2828
|
let code = <span class="cstat-no" title="statement not covered" >`class ${this.name} {\n`;</span>
|
|
2996
2829
|
// code += `${indent(state.tabSize + 1)}__name: '${this.getNamespace()}.${this.name}';\n`;
|
|
2997
|
-
<span class="cstat-no" title="statement not covered" > this.properties.forEach(
|
|
2830
|
+
<span class="cstat-no" title="statement not covered" > this.properties.forEach(<span class="fstat-no" title="function not covered" >(p</span>roperty) => {</span>
|
|
2998
2831
|
<span class="cstat-no" title="statement not covered" > code += `${property.toNaturalTS(shiftState(state, code, { tabSize: state.tabSize + 1 }))};\n`;</span>
|
|
2999
2832
|
});
|
|
3000
2833
|
<span class="cstat-no" title="statement not covered" > if (this.indexes && this.indexes.length) {</span>
|
|
3001
2834
|
<span class="cstat-no" title="statement not covered" > code += indent(state.tabSize + 1);</span>
|
|
3002
2835
|
<span class="cstat-no" title="statement not covered" > code += `__IndexList() {\n`;</span>
|
|
3003
2836
|
<span class="cstat-no" title="statement not covered" > code += ` return [`;</span>
|
|
3004
|
-
<span class="cstat-no" title="statement not covered" > this.indexes.forEach(
|
|
2837
|
+
<span class="cstat-no" title="statement not covered" > this.indexes.forEach(<span class="fstat-no" title="function not covered" >(e</span>ntityIndex) => {</span>
|
|
3005
2838
|
<span class="cstat-no" title="statement not covered" > code += indent(state.tabSize + 1);</span>
|
|
3006
2839
|
<span class="cstat-no" title="statement not covered" > code += '\n ';</span>
|
|
3007
|
-
<span class="cstat-no" title="statement not covered" > code +=
|
|
2840
|
+
<span class="cstat-no" title="statement not covered" > code += entityIndex.toEmbeddedTS(shiftState(state, code, { inline: true }));</span>
|
|
3008
2841
|
});
|
|
3009
2842
|
<span class="cstat-no" title="statement not covered" > code += `${indent(state.tabSize)}\n ];\n }\n`;</span>
|
|
3010
2843
|
}
|
|
@@ -3026,28 +2859,30 @@ export class Entity extends BaseNode {
|
|
|
3026
2859
|
* 生成宿主语言的文件路径
|
|
3027
2860
|
* @param name 一般不用传,用于 rename
|
|
3028
2861
|
*/
|
|
3029
|
-
getEmbeddedFilePath(name = this.name) {
|
|
3030
|
-
return `/embedded/${this.app.name}/datasources/${this.parentNode.name}/entities/${name}.ts
|
|
2862
|
+
<span class="fstat-no" title="function not covered" > getEmbeddedFilePath(</span>name = <span class="branch-0 cbranch-no" title="branch not covered" >this.name)</span> {
|
|
2863
|
+
<span class="cstat-no" title="statement not covered" > return `/embedded/${this.app.name}/datasources/${this.parentNode.name}/entities/${name}.ts`;</span>
|
|
3031
2864
|
}
|
|
3032
2865
|
|
|
3033
2866
|
get ns() {
|
|
3034
|
-
|
|
3035
|
-
const ns = entity2LogicNamespace(this);
|
|
2867
|
+
const ns: Namespace = entity2LogicNamespace(this);
|
|
3036
2868
|
ns.path = this.getNamespace();
|
|
3037
2869
|
return ns;
|
|
3038
2870
|
}
|
|
2871
|
+
// @excludedInJSON()
|
|
2872
|
+
// nslogic: Namespace;
|
|
3039
2873
|
|
|
3040
2874
|
get logics() {
|
|
3041
|
-
|
|
2875
|
+
const { ns } = this;
|
|
2876
|
+
return ns.logics;
|
|
3042
2877
|
}
|
|
3043
2878
|
|
|
3044
|
-
<span class="fstat-no" title="function not covered" >
|
|
2879
|
+
<span class="fstat-no" title="function not covered" > toEmbeddedTSFile(</span>) {
|
|
3045
2880
|
let code = <span class="cstat-no" title="statement not covered" >`namespace ${this.getNamespace()} {\n`;</span>
|
|
3046
2881
|
<span class="cstat-no" title="statement not covered" > code += ' @nasl.annotation.Entity()\n';</span>
|
|
3047
2882
|
|
|
3048
|
-
const <span class="cstat-no" title="statement not covered" >
|
|
2883
|
+
const state = <span class="cstat-no" title="statement not covered" >createCompilerState(code, { tabSize: 1 });</span>
|
|
3049
2884
|
<span class="cstat-no" title="statement not covered" > try {</span>
|
|
3050
|
-
<span class="cstat-no" title="statement not covered" > code +=
|
|
2885
|
+
<span class="cstat-no" title="statement not covered" > code += this.toEmbeddedTS(state);</span>
|
|
3051
2886
|
} catch (err) {
|
|
3052
2887
|
<span class="cstat-no" title="statement not covered" > code += '';</span>
|
|
3053
2888
|
<span class="cstat-no" title="statement not covered" > console.log(err);</span>
|
|
@@ -3064,7 +2899,7 @@ export class Entity extends BaseNode {
|
|
|
3064
2899
|
// 获取当前实体的所有主键名称
|
|
3065
2900
|
<span class="fstat-no" title="function not covered" > get p</span>ropertyPrimaryKeyNames() {
|
|
3066
2901
|
const arr: string[] = <span class="cstat-no" title="statement not covered" >[];</span>
|
|
3067
|
-
<span class="cstat-no" title="statement not covered" > this.properties.forEach(
|
|
2902
|
+
<span class="cstat-no" title="statement not covered" > this.properties.forEach(<span class="fstat-no" title="function not covered" >(p</span>roperty) => {</span>
|
|
3068
2903
|
<span class="cstat-no" title="statement not covered" > if (property.primaryKey) {</span>
|
|
3069
2904
|
<span class="cstat-no" title="statement not covered" > arr.push(property.name);</span>
|
|
3070
2905
|
}
|
|
@@ -3078,7 +2913,7 @@ export class Entity extends BaseNode {
|
|
|
3078
2913
|
* @param excludedList 排除的集合
|
|
3079
2914
|
* @returns 有属性
|
|
3080
2915
|
*/
|
|
3081
|
-
<span class="fstat-no" title="function not covered" > getRenderEntityIndexExistingNames(
|
|
2916
|
+
<span class="fstat-no" title="function not covered" > getRenderEntityIndexExistingNames(</span>excludedList: Array<EntityIndex> = <span class="branch-0 cbranch-no" title="branch not covered" >[])</span> {
|
|
3082
2917
|
const arr = <span class="cstat-no" title="statement not covered" >this.getEntityIndexExistingNames(excludedList);</span>
|
|
3083
2918
|
<span class="cstat-no" title="statement not covered" > return [...arr, 'primaryIndex'];</span>
|
|
3084
2919
|
}
|
|
@@ -3100,7 +2935,7 @@ export default Entity;
|
|
|
3100
2935
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
3101
2936
|
Code coverage generated by
|
|
3102
2937
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
3103
|
-
at 2023-
|
|
2938
|
+
at 2023-10-18T11:36:07.885Z
|
|
3104
2939
|
</div>
|
|
3105
2940
|
<script src="../../prettify.js"></script>
|
|
3106
2941
|
<script>
|