@lcap/nasl 3.8.3-beta.1 → 3.8.3-beta.2
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.d.ts +9 -4
- package/out/common/BaseNode.js +43 -10
- package/out/common/BaseNode.js.map +1 -1
- package/out/concepts/AuthLogicForCallInterface__.js +2 -50
- package/out/concepts/AuthLogicForCallInterface__.js.map +1 -1
- package/out/concepts/BusinessComponent__.js +2 -42
- package/out/concepts/BusinessComponent__.js.map +1 -1
- package/out/concepts/BusinessLogic__.js +2 -50
- package/out/concepts/BusinessLogic__.js.map +1 -1
- package/out/concepts/CallFunction__.d.ts +1 -1
- package/out/concepts/CallFunction__.js +1 -1
- package/out/concepts/Identifier__.d.ts +2 -0
- package/out/concepts/Identifier__.js +51 -5
- package/out/concepts/Identifier__.js.map +1 -1
- package/out/concepts/Logic__.js +6 -101
- package/out/concepts/Logic__.js.map +1 -1
- package/out/concepts/MemberExpression__.d.ts +1 -1
- package/out/concepts/MemberExpression__.js +15 -3
- package/out/concepts/MemberExpression__.js.map +1 -1
- package/out/concepts/OverriddenLogic__.js +2 -50
- package/out/concepts/OverriddenLogic__.js.map +1 -1
- package/out/concepts/ProcessElementV2__.js +4 -0
- package/out/concepts/ProcessElementV2__.js.map +1 -1
- package/out/concepts/ProcessElement__.js +4 -0
- package/out/concepts/ProcessElement__.js.map +1 -1
- package/out/concepts/ProcessV2__.js +4 -0
- package/out/concepts/ProcessV2__.js.map +1 -1
- package/out/concepts/Process__.js +4 -0
- package/out/concepts/Process__.js.map +1 -1
- package/out/concepts/SubLogic__.js +5 -50
- package/out/concepts/SubLogic__.js.map +1 -1
- package/out/concepts/View__.js +10 -49
- package/out/concepts/View__.js.map +1 -1
- package/out/natural/transformTS2UI.js +3 -3
- package/out/natural/transformTS2UI.js.map +1 -1
- package/out/natural/transforms/transform2LogicItem.js +3 -3
- package/out/natural/transforms/transform2LogicItem.js.map +1 -1
- package/out/server/naslServer.js +17 -2
- package/out/server/naslServer.js.map +1 -1
- package/out/server/semanticData.d.ts +32 -0
- package/out/server/semanticData.js +371 -0
- package/out/server/semanticData.js.map +1 -0
- package/out/templator/block2nasl/viewMergeBlock.js +2 -1
- package/out/templator/block2nasl/viewMergeBlock.js.map +1 -1
- package/package.json +1 -1
- package/src/common/BaseNode.ts +50 -8
- package/src/concepts/AuthLogicForCallInterface__.ts +3 -56
- package/src/concepts/BusinessComponent__.ts +6 -51
- package/src/concepts/BusinessLogic__.ts +4 -56
- package/src/concepts/CallFunction__.ts +1 -1
- package/src/concepts/Identifier__.ts +57 -6
- package/src/concepts/Logic__.ts +9 -111
- package/src/concepts/MemberExpression__.ts +21 -7
- package/src/concepts/OverriddenLogic__.ts +4 -56
- package/src/concepts/ProcessElementV2__.ts +4 -0
- package/src/concepts/ProcessElement__.ts +4 -0
- package/src/concepts/ProcessV2__.ts +5 -0
- package/src/concepts/Process__.ts +4 -0
- package/src/concepts/SubLogic__.ts +6 -56
- package/src/concepts/View__.ts +14 -54
- package/src/natural/transformTS2UI.ts +7 -7
- package/src/natural/transforms/transform2LogicItem.ts +3 -3
- package/src/server/naslServer.ts +22 -2
- package/src/server/semanticData.ts +447 -0
- package/src/templator/block2nasl/viewMergeBlock.ts +2 -1
- package/src/translator/utils.ts +1 -1
- package/test/concepts/logic/__snapshots__/toEmbeddedTS.spec.ts.snap +182 -0
- package/test/concepts/logic/constant.ts +5 -0
- package/test/concepts/logic/fixtures/variable-host-call-logic-member-expression.json +267 -0
- package/test/concepts/logic/fixtures/variable-host-call-logic-nested-member-expression copy.json +457 -0
- package/test/concepts/logic/fixtures/variable-host-call-logic-with-handle-error-member-expression.json +267 -0
- package/test/concepts/logic/toEmbeddedTS.spec.ts +15 -0
- 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">7.59% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>24/316</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">
|
|
33
|
+
<span class="strong">0% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>
|
|
35
|
+
<span class='fraction'>0/134</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
|
40
|
-
<span class="strong">
|
|
40
|
+
<span class="strong">0% </span>
|
|
41
41
|
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>
|
|
42
|
+
<span class='fraction'>0/71</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">
|
|
47
|
+
<span class="strong">7.58% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>22/290</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -1428,86 +1428,7 @@
|
|
|
1428
1428
|
<a name='L1363'></a><a href='#L1363'>1363</a>
|
|
1429
1429
|
<a name='L1364'></a><a href='#L1364'>1364</a>
|
|
1430
1430
|
<a name='L1365'></a><a href='#L1365'>1365</a>
|
|
1431
|
-
<a name='L1366'></a><a href='#L1366'>1366</a>
|
|
1432
|
-
<a name='L1367'></a><a href='#L1367'>1367</a>
|
|
1433
|
-
<a name='L1368'></a><a href='#L1368'>1368</a>
|
|
1434
|
-
<a name='L1369'></a><a href='#L1369'>1369</a>
|
|
1435
|
-
<a name='L1370'></a><a href='#L1370'>1370</a>
|
|
1436
|
-
<a name='L1371'></a><a href='#L1371'>1371</a>
|
|
1437
|
-
<a name='L1372'></a><a href='#L1372'>1372</a>
|
|
1438
|
-
<a name='L1373'></a><a href='#L1373'>1373</a>
|
|
1439
|
-
<a name='L1374'></a><a href='#L1374'>1374</a>
|
|
1440
|
-
<a name='L1375'></a><a href='#L1375'>1375</a>
|
|
1441
|
-
<a name='L1376'></a><a href='#L1376'>1376</a>
|
|
1442
|
-
<a name='L1377'></a><a href='#L1377'>1377</a>
|
|
1443
|
-
<a name='L1378'></a><a href='#L1378'>1378</a>
|
|
1444
|
-
<a name='L1379'></a><a href='#L1379'>1379</a>
|
|
1445
|
-
<a name='L1380'></a><a href='#L1380'>1380</a>
|
|
1446
|
-
<a name='L1381'></a><a href='#L1381'>1381</a>
|
|
1447
|
-
<a name='L1382'></a><a href='#L1382'>1382</a>
|
|
1448
|
-
<a name='L1383'></a><a href='#L1383'>1383</a>
|
|
1449
|
-
<a name='L1384'></a><a href='#L1384'>1384</a>
|
|
1450
|
-
<a name='L1385'></a><a href='#L1385'>1385</a>
|
|
1451
|
-
<a name='L1386'></a><a href='#L1386'>1386</a>
|
|
1452
|
-
<a name='L1387'></a><a href='#L1387'>1387</a>
|
|
1453
|
-
<a name='L1388'></a><a href='#L1388'>1388</a>
|
|
1454
|
-
<a name='L1389'></a><a href='#L1389'>1389</a>
|
|
1455
|
-
<a name='L1390'></a><a href='#L1390'>1390</a>
|
|
1456
|
-
<a name='L1391'></a><a href='#L1391'>1391</a>
|
|
1457
|
-
<a name='L1392'></a><a href='#L1392'>1392</a>
|
|
1458
|
-
<a name='L1393'></a><a href='#L1393'>1393</a>
|
|
1459
|
-
<a name='L1394'></a><a href='#L1394'>1394</a>
|
|
1460
|
-
<a name='L1395'></a><a href='#L1395'>1395</a>
|
|
1461
|
-
<a name='L1396'></a><a href='#L1396'>1396</a>
|
|
1462
|
-
<a name='L1397'></a><a href='#L1397'>1397</a>
|
|
1463
|
-
<a name='L1398'></a><a href='#L1398'>1398</a>
|
|
1464
|
-
<a name='L1399'></a><a href='#L1399'>1399</a>
|
|
1465
|
-
<a name='L1400'></a><a href='#L1400'>1400</a>
|
|
1466
|
-
<a name='L1401'></a><a href='#L1401'>1401</a>
|
|
1467
|
-
<a name='L1402'></a><a href='#L1402'>1402</a>
|
|
1468
|
-
<a name='L1403'></a><a href='#L1403'>1403</a>
|
|
1469
|
-
<a name='L1404'></a><a href='#L1404'>1404</a>
|
|
1470
|
-
<a name='L1405'></a><a href='#L1405'>1405</a>
|
|
1471
|
-
<a name='L1406'></a><a href='#L1406'>1406</a>
|
|
1472
|
-
<a name='L1407'></a><a href='#L1407'>1407</a>
|
|
1473
|
-
<a name='L1408'></a><a href='#L1408'>1408</a>
|
|
1474
|
-
<a name='L1409'></a><a href='#L1409'>1409</a>
|
|
1475
|
-
<a name='L1410'></a><a href='#L1410'>1410</a>
|
|
1476
|
-
<a name='L1411'></a><a href='#L1411'>1411</a>
|
|
1477
|
-
<a name='L1412'></a><a href='#L1412'>1412</a>
|
|
1478
|
-
<a name='L1413'></a><a href='#L1413'>1413</a>
|
|
1479
|
-
<a name='L1414'></a><a href='#L1414'>1414</a>
|
|
1480
|
-
<a name='L1415'></a><a href='#L1415'>1415</a>
|
|
1481
|
-
<a name='L1416'></a><a href='#L1416'>1416</a>
|
|
1482
|
-
<a name='L1417'></a><a href='#L1417'>1417</a>
|
|
1483
|
-
<a name='L1418'></a><a href='#L1418'>1418</a>
|
|
1484
|
-
<a name='L1419'></a><a href='#L1419'>1419</a>
|
|
1485
|
-
<a name='L1420'></a><a href='#L1420'>1420</a>
|
|
1486
|
-
<a name='L1421'></a><a href='#L1421'>1421</a>
|
|
1487
|
-
<a name='L1422'></a><a href='#L1422'>1422</a>
|
|
1488
|
-
<a name='L1423'></a><a href='#L1423'>1423</a>
|
|
1489
|
-
<a name='L1424'></a><a href='#L1424'>1424</a>
|
|
1490
|
-
<a name='L1425'></a><a href='#L1425'>1425</a>
|
|
1491
|
-
<a name='L1426'></a><a href='#L1426'>1426</a>
|
|
1492
|
-
<a name='L1427'></a><a href='#L1427'>1427</a>
|
|
1493
|
-
<a name='L1428'></a><a href='#L1428'>1428</a>
|
|
1494
|
-
<a name='L1429'></a><a href='#L1429'>1429</a>
|
|
1495
|
-
<a name='L1430'></a><a href='#L1430'>1430</a>
|
|
1496
|
-
<a name='L1431'></a><a href='#L1431'>1431</a>
|
|
1497
|
-
<a name='L1432'></a><a href='#L1432'>1432</a>
|
|
1498
|
-
<a name='L1433'></a><a href='#L1433'>1433</a>
|
|
1499
|
-
<a name='L1434'></a><a href='#L1434'>1434</a>
|
|
1500
|
-
<a name='L1435'></a><a href='#L1435'>1435</a>
|
|
1501
|
-
<a name='L1436'></a><a href='#L1436'>1436</a>
|
|
1502
|
-
<a name='L1437'></a><a href='#L1437'>1437</a>
|
|
1503
|
-
<a name='L1438'></a><a href='#L1438'>1438</a>
|
|
1504
|
-
<a name='L1439'></a><a href='#L1439'>1439</a>
|
|
1505
|
-
<a name='L1440'></a><a href='#L1440'>1440</a>
|
|
1506
|
-
<a name='L1441'></a><a href='#L1441'>1441</a>
|
|
1507
|
-
<a name='L1442'></a><a href='#L1442'>1442</a>
|
|
1508
|
-
<a name='L1443'></a><a href='#L1443'>1443</a>
|
|
1509
|
-
<a name='L1444'></a><a href='#L1444'>1444</a>
|
|
1510
|
-
<a name='L1445'></a><a href='#L1445'>1445</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">1277x</span>
|
|
1431
|
+
<a name='L1366'></a><a href='#L1366'>1366</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
1511
1432
|
<span class="cline-any cline-neutral"> </span>
|
|
1512
1433
|
<span class="cline-any cline-neutral"> </span>
|
|
1513
1434
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -1517,11 +1438,11 @@
|
|
|
1517
1438
|
<span class="cline-any cline-yes">1x</span>
|
|
1518
1439
|
<span class="cline-any cline-neutral"> </span>
|
|
1519
1440
|
<span class="cline-any cline-yes">1x</span>
|
|
1520
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1521
1441
|
<span class="cline-any cline-yes">1x</span>
|
|
1522
|
-
<span class="cline-any cline-
|
|
1523
|
-
<span class="cline-any cline-
|
|
1524
|
-
<span class="cline-any cline-
|
|
1442
|
+
<span class="cline-any cline-yes">1x</span>
|
|
1443
|
+
<span class="cline-any cline-yes">1x</span>
|
|
1444
|
+
<span class="cline-any cline-yes">1x</span>
|
|
1445
|
+
<span class="cline-any cline-yes">1x</span>
|
|
1525
1446
|
<span class="cline-any cline-neutral"> </span>
|
|
1526
1447
|
<span class="cline-any cline-neutral"> </span>
|
|
1527
1448
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -1533,6 +1454,7 @@
|
|
|
1533
1454
|
<span class="cline-any cline-neutral"> </span>
|
|
1534
1455
|
<span class="cline-any cline-yes">1x</span>
|
|
1535
1456
|
<span class="cline-any cline-neutral"> </span>
|
|
1457
|
+
<span class="cline-any cline-yes">1x</span>
|
|
1536
1458
|
<span class="cline-any cline-neutral"> </span>
|
|
1537
1459
|
<span class="cline-any cline-neutral"> </span>
|
|
1538
1460
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -1543,10 +1465,6 @@
|
|
|
1543
1465
|
<span class="cline-any cline-neutral"> </span>
|
|
1544
1466
|
<span class="cline-any cline-neutral"> </span>
|
|
1545
1467
|
<span class="cline-any cline-neutral"> </span>
|
|
1546
|
-
<span class="cline-any cline-yes">1x</span>
|
|
1547
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1548
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1549
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1550
1468
|
<span class="cline-any cline-neutral"> </span>
|
|
1551
1469
|
<span class="cline-any cline-neutral"> </span>
|
|
1552
1470
|
<span class="cline-any cline-yes">1x</span>
|
|
@@ -1555,11 +1473,6 @@
|
|
|
1555
1473
|
<span class="cline-any cline-neutral"> </span>
|
|
1556
1474
|
<span class="cline-any cline-neutral"> </span>
|
|
1557
1475
|
<span class="cline-any cline-neutral"> </span>
|
|
1558
|
-
<span class="cline-any cline-yes">1x</span>
|
|
1559
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1560
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1561
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1562
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1563
1476
|
<span class="cline-any cline-neutral"> </span>
|
|
1564
1477
|
<span class="cline-any cline-yes">1x</span>
|
|
1565
1478
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -1567,10 +1480,8 @@
|
|
|
1567
1480
|
<span class="cline-any cline-neutral"> </span>
|
|
1568
1481
|
<span class="cline-any cline-neutral"> </span>
|
|
1569
1482
|
<span class="cline-any cline-neutral"> </span>
|
|
1570
|
-
<span class="cline-any cline-yes">1x</span>
|
|
1571
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1572
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1573
1483
|
<span class="cline-any cline-neutral"> </span>
|
|
1484
|
+
<span class="cline-any cline-yes">1x</span>
|
|
1574
1485
|
<span class="cline-any cline-neutral"> </span>
|
|
1575
1486
|
<span class="cline-any cline-neutral"> </span>
|
|
1576
1487
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -1583,46 +1494,32 @@
|
|
|
1583
1494
|
<span class="cline-any cline-neutral"> </span>
|
|
1584
1495
|
<span class="cline-any cline-neutral"> </span>
|
|
1585
1496
|
<span class="cline-any cline-neutral"> </span>
|
|
1586
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1587
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1588
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1589
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1590
1497
|
<span class="cline-any cline-yes">1x</span>
|
|
1591
1498
|
<span class="cline-any cline-neutral"> </span>
|
|
1592
1499
|
<span class="cline-any cline-neutral"> </span>
|
|
1593
1500
|
<span class="cline-any cline-neutral"> </span>
|
|
1594
1501
|
<span class="cline-any cline-neutral"> </span>
|
|
1595
1502
|
<span class="cline-any cline-neutral"> </span>
|
|
1596
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1597
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1598
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1599
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1600
1503
|
<span class="cline-any cline-yes">1x</span>
|
|
1601
1504
|
<span class="cline-any cline-neutral"> </span>
|
|
1602
1505
|
<span class="cline-any cline-neutral"> </span>
|
|
1603
1506
|
<span class="cline-any cline-neutral"> </span>
|
|
1604
1507
|
<span class="cline-any cline-neutral"> </span>
|
|
1605
1508
|
<span class="cline-any cline-neutral"> </span>
|
|
1606
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1607
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1608
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1609
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1610
1509
|
<span class="cline-any cline-yes">1x</span>
|
|
1611
1510
|
<span class="cline-any cline-neutral"> </span>
|
|
1612
1511
|
<span class="cline-any cline-neutral"> </span>
|
|
1613
1512
|
<span class="cline-any cline-neutral"> </span>
|
|
1614
1513
|
<span class="cline-any cline-neutral"> </span>
|
|
1615
1514
|
<span class="cline-any cline-neutral"> </span>
|
|
1616
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1617
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1618
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1619
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1620
1515
|
<span class="cline-any cline-yes">1x</span>
|
|
1621
1516
|
<span class="cline-any cline-neutral"> </span>
|
|
1622
1517
|
<span class="cline-any cline-neutral"> </span>
|
|
1623
1518
|
<span class="cline-any cline-neutral"> </span>
|
|
1624
1519
|
<span class="cline-any cline-neutral"> </span>
|
|
1625
1520
|
<span class="cline-any cline-neutral"> </span>
|
|
1521
|
+
<span class="cline-any cline-yes">1x</span>
|
|
1522
|
+
<span class="cline-any cline-neutral"> </span>
|
|
1626
1523
|
<span class="cline-any cline-neutral"> </span>
|
|
1627
1524
|
<span class="cline-any cline-neutral"> </span>
|
|
1628
1525
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -1633,6 +1530,7 @@
|
|
|
1633
1530
|
<span class="cline-any cline-neutral"> </span>
|
|
1634
1531
|
<span class="cline-any cline-neutral"> </span>
|
|
1635
1532
|
<span class="cline-any cline-neutral"> </span>
|
|
1533
|
+
<span class="cline-any cline-neutral"> </span>
|
|
1636
1534
|
<span class="cline-any cline-yes">1x</span>
|
|
1637
1535
|
<span class="cline-any cline-neutral"> </span>
|
|
1638
1536
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -1705,7 +1603,6 @@
|
|
|
1705
1603
|
<span class="cline-any cline-neutral"> </span>
|
|
1706
1604
|
<span class="cline-any cline-no"> </span>
|
|
1707
1605
|
<span class="cline-any cline-no"> </span>
|
|
1708
|
-
<span class="cline-any cline-no"> </span>
|
|
1709
1606
|
<span class="cline-any cline-neutral"> </span>
|
|
1710
1607
|
<span class="cline-any cline-no"> </span>
|
|
1711
1608
|
<span class="cline-any cline-no"> </span>
|
|
@@ -1859,7 +1756,6 @@
|
|
|
1859
1756
|
<span class="cline-any cline-neutral"> </span>
|
|
1860
1757
|
<span class="cline-any cline-no"> </span>
|
|
1861
1758
|
<span class="cline-any cline-no"> </span>
|
|
1862
|
-
<span class="cline-any cline-no"> </span>
|
|
1863
1759
|
<span class="cline-any cline-neutral"> </span>
|
|
1864
1760
|
<span class="cline-any cline-no"> </span>
|
|
1865
1761
|
<span class="cline-any cline-no"> </span>
|
|
@@ -2013,7 +1909,6 @@
|
|
|
2013
1909
|
<span class="cline-any cline-neutral"> </span>
|
|
2014
1910
|
<span class="cline-any cline-no"> </span>
|
|
2015
1911
|
<span class="cline-any cline-no"> </span>
|
|
2016
|
-
<span class="cline-any cline-no"> </span>
|
|
2017
1912
|
<span class="cline-any cline-neutral"> </span>
|
|
2018
1913
|
<span class="cline-any cline-no"> </span>
|
|
2019
1914
|
<span class="cline-any cline-no"> </span>
|
|
@@ -2167,7 +2062,6 @@
|
|
|
2167
2062
|
<span class="cline-any cline-neutral"> </span>
|
|
2168
2063
|
<span class="cline-any cline-no"> </span>
|
|
2169
2064
|
<span class="cline-any cline-no"> </span>
|
|
2170
|
-
<span class="cline-any cline-no"> </span>
|
|
2171
2065
|
<span class="cline-any cline-neutral"> </span>
|
|
2172
2066
|
<span class="cline-any cline-no"> </span>
|
|
2173
2067
|
<span class="cline-any cline-no"> </span>
|
|
@@ -2292,8 +2186,6 @@
|
|
|
2292
2186
|
<span class="cline-any cline-neutral"> </span>
|
|
2293
2187
|
<span class="cline-any cline-no"> </span>
|
|
2294
2188
|
<span class="cline-any cline-no"> </span>
|
|
2295
|
-
<span class="cline-any cline-no"> </span>
|
|
2296
|
-
<span class="cline-any cline-no"> </span>
|
|
2297
2189
|
<span class="cline-any cline-neutral"> </span>
|
|
2298
2190
|
<span class="cline-any cline-neutral"> </span>
|
|
2299
2191
|
<span class="cline-any cline-no"> </span>
|
|
@@ -2323,7 +2215,6 @@
|
|
|
2323
2215
|
<span class="cline-any cline-neutral"> </span>
|
|
2324
2216
|
<span class="cline-any cline-no"> </span>
|
|
2325
2217
|
<span class="cline-any cline-no"> </span>
|
|
2326
|
-
<span class="cline-any cline-no"> </span>
|
|
2327
2218
|
<span class="cline-any cline-neutral"> </span>
|
|
2328
2219
|
<span class="cline-any cline-no"> </span>
|
|
2329
2220
|
<span class="cline-any cline-no"> </span>
|
|
@@ -2477,7 +2368,6 @@
|
|
|
2477
2368
|
<span class="cline-any cline-neutral"> </span>
|
|
2478
2369
|
<span class="cline-any cline-no"> </span>
|
|
2479
2370
|
<span class="cline-any cline-no"> </span>
|
|
2480
|
-
<span class="cline-any cline-no"> </span>
|
|
2481
2371
|
<span class="cline-any cline-neutral"> </span>
|
|
2482
2372
|
<span class="cline-any cline-no"> </span>
|
|
2483
2373
|
<span class="cline-any cline-no"> </span>
|
|
@@ -2635,21 +2525,13 @@
|
|
|
2635
2525
|
<span class="cline-any cline-neutral"> </span>
|
|
2636
2526
|
<span class="cline-any cline-no"> </span>
|
|
2637
2527
|
<span class="cline-any cline-no"> </span>
|
|
2638
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2639
|
-
<span class="cline-any cline-no"> </span>
|
|
2640
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2641
2528
|
<span class="cline-any cline-no"> </span>
|
|
2642
2529
|
<span class="cline-any cline-no"> </span>
|
|
2643
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2644
|
-
<span class="cline-any cline-no"> </span>
|
|
2645
2530
|
<span class="cline-any cline-no"> </span>
|
|
2646
2531
|
<span class="cline-any cline-no"> </span>
|
|
2647
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2648
2532
|
<span class="cline-any cline-no"> </span>
|
|
2649
2533
|
<span class="cline-any cline-no"> </span>
|
|
2650
2534
|
<span class="cline-any cline-no"> </span>
|
|
2651
|
-
<span class="cline-any cline-no"> </span>
|
|
2652
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2653
2535
|
<span class="cline-any cline-neutral"> </span>
|
|
2654
2536
|
<span class="cline-any cline-neutral"> </span>
|
|
2655
2537
|
<span class="cline-any cline-no"> </span>
|
|
@@ -2691,23 +2573,15 @@
|
|
|
2691
2573
|
<span class="cline-any cline-neutral"> </span>
|
|
2692
2574
|
<span class="cline-any cline-no"> </span>
|
|
2693
2575
|
<span class="cline-any cline-no"> </span>
|
|
2694
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2695
|
-
<span class="cline-any cline-no"> </span>
|
|
2696
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2697
|
-
<span class="cline-any cline-no"> </span>
|
|
2698
|
-
<span class="cline-any cline-no"> </span>
|
|
2699
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2700
2576
|
<span class="cline-any cline-no"> </span>
|
|
2701
2577
|
<span class="cline-any cline-no"> </span>
|
|
2702
2578
|
<span class="cline-any cline-no"> </span>
|
|
2703
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2704
2579
|
<span class="cline-any cline-no"> </span>
|
|
2705
2580
|
<span class="cline-any cline-no"> </span>
|
|
2706
2581
|
<span class="cline-any cline-no"> </span>
|
|
2707
2582
|
<span class="cline-any cline-no"> </span>
|
|
2708
2583
|
<span class="cline-any cline-neutral"> </span>
|
|
2709
2584
|
<span class="cline-any cline-neutral"> </span>
|
|
2710
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2711
2585
|
<span class="cline-any cline-no"> </span>
|
|
2712
2586
|
<span class="cline-any cline-neutral"> </span>
|
|
2713
2587
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -2747,21 +2621,13 @@
|
|
|
2747
2621
|
<span class="cline-any cline-neutral"> </span>
|
|
2748
2622
|
<span class="cline-any cline-no"> </span>
|
|
2749
2623
|
<span class="cline-any cline-no"> </span>
|
|
2750
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2751
2624
|
<span class="cline-any cline-no"> </span>
|
|
2752
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2753
2625
|
<span class="cline-any cline-no"> </span>
|
|
2754
2626
|
<span class="cline-any cline-no"> </span>
|
|
2755
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2756
2627
|
<span class="cline-any cline-no"> </span>
|
|
2757
2628
|
<span class="cline-any cline-no"> </span>
|
|
2758
2629
|
<span class="cline-any cline-no"> </span>
|
|
2759
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2760
2630
|
<span class="cline-any cline-no"> </span>
|
|
2761
|
-
<span class="cline-any cline-no"> </span>
|
|
2762
|
-
<span class="cline-any cline-no"> </span>
|
|
2763
|
-
<span class="cline-any cline-no"> </span>
|
|
2764
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2765
2631
|
<span class="cline-any cline-neutral"> </span>
|
|
2766
2632
|
<span class="cline-any cline-neutral"> </span>
|
|
2767
2633
|
<span class="cline-any cline-no"> </span>
|
|
@@ -2803,21 +2669,13 @@
|
|
|
2803
2669
|
<span class="cline-any cline-neutral"> </span>
|
|
2804
2670
|
<span class="cline-any cline-no"> </span>
|
|
2805
2671
|
<span class="cline-any cline-no"> </span>
|
|
2806
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2807
2672
|
<span class="cline-any cline-no"> </span>
|
|
2808
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2809
2673
|
<span class="cline-any cline-no"> </span>
|
|
2810
2674
|
<span class="cline-any cline-no"> </span>
|
|
2811
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2812
2675
|
<span class="cline-any cline-no"> </span>
|
|
2813
2676
|
<span class="cline-any cline-no"> </span>
|
|
2814
2677
|
<span class="cline-any cline-no"> </span>
|
|
2815
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2816
|
-
<span class="cline-any cline-no"> </span>
|
|
2817
|
-
<span class="cline-any cline-no"> </span>
|
|
2818
2678
|
<span class="cline-any cline-no"> </span>
|
|
2819
|
-
<span class="cline-any cline-no"> </span>
|
|
2820
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2821
2679
|
<span class="cline-any cline-neutral"> </span>
|
|
2822
2680
|
<span class="cline-any cline-neutral"> </span>
|
|
2823
2681
|
<span class="cline-any cline-no"> </span>
|
|
@@ -2859,23 +2717,15 @@
|
|
|
2859
2717
|
<span class="cline-any cline-neutral"> </span>
|
|
2860
2718
|
<span class="cline-any cline-no"> </span>
|
|
2861
2719
|
<span class="cline-any cline-no"> </span>
|
|
2862
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2863
|
-
<span class="cline-any cline-no"> </span>
|
|
2864
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2865
|
-
<span class="cline-any cline-no"> </span>
|
|
2866
2720
|
<span class="cline-any cline-no"> </span>
|
|
2867
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2868
2721
|
<span class="cline-any cline-no"> </span>
|
|
2869
2722
|
<span class="cline-any cline-no"> </span>
|
|
2870
2723
|
<span class="cline-any cline-no"> </span>
|
|
2871
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2872
|
-
<span class="cline-any cline-no"> </span>
|
|
2873
2724
|
<span class="cline-any cline-no"> </span>
|
|
2874
2725
|
<span class="cline-any cline-no"> </span>
|
|
2875
2726
|
<span class="cline-any cline-no"> </span>
|
|
2876
2727
|
<span class="cline-any cline-neutral"> </span>
|
|
2877
2728
|
<span class="cline-any cline-neutral"> </span>
|
|
2878
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2879
2729
|
<span class="cline-any cline-no"> </span>
|
|
2880
2730
|
<span class="cline-any cline-neutral"> </span>
|
|
2881
2731
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -2915,23 +2765,15 @@
|
|
|
2915
2765
|
<span class="cline-any cline-neutral"> </span>
|
|
2916
2766
|
<span class="cline-any cline-no"> </span>
|
|
2917
2767
|
<span class="cline-any cline-no"> </span>
|
|
2918
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2919
|
-
<span class="cline-any cline-no"> </span>
|
|
2920
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2921
2768
|
<span class="cline-any cline-no"> </span>
|
|
2922
2769
|
<span class="cline-any cline-no"> </span>
|
|
2923
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2924
2770
|
<span class="cline-any cline-no"> </span>
|
|
2925
2771
|
<span class="cline-any cline-no"> </span>
|
|
2926
2772
|
<span class="cline-any cline-no"> </span>
|
|
2927
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2928
|
-
<span class="cline-any cline-no"> </span>
|
|
2929
|
-
<span class="cline-any cline-no"> </span>
|
|
2930
2773
|
<span class="cline-any cline-no"> </span>
|
|
2931
2774
|
<span class="cline-any cline-no"> </span>
|
|
2932
2775
|
<span class="cline-any cline-neutral"> </span>
|
|
2933
2776
|
<span class="cline-any cline-neutral"> </span>
|
|
2934
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2935
2777
|
<span class="cline-any cline-no"> </span>
|
|
2936
2778
|
<span class="cline-any cline-neutral"> </span>
|
|
2937
2779
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -2956,36 +2798,32 @@
|
|
|
2956
2798
|
// ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓
|
|
2957
2799
|
//================================================================================
|
|
2958
2800
|
import { EventPayload, Params } from '../common/EventEmitter';
|
|
2959
|
-
import { concept, excludedInJSON, property,
|
|
2801
|
+
import { concept, excludedInJSON, property, className } from '../decorators';
|
|
2960
2802
|
|
|
2961
2803
|
import * as utils from '../utils';
|
|
2962
|
-
import * as types from './utils/types';
|
|
2963
|
-
import * as asserts from './utils/asserts';
|
|
2964
2804
|
import { v4 as uuidv4 } from 'uuid';
|
|
2965
2805
|
import BaseNode from '../common/BaseNode';
|
|
2966
|
-
import
|
|
2967
|
-
import
|
|
2968
|
-
import
|
|
2969
|
-
import
|
|
2970
|
-
import
|
|
2971
|
-
import
|
|
2972
|
-
import
|
|
2806
|
+
import Attribute from './Attribute__';
|
|
2807
|
+
import Event from './Event__';
|
|
2808
|
+
import Slot from './Slot__';
|
|
2809
|
+
import Logic from './Logic__';
|
|
2810
|
+
import ViewBlock from './ViewBlock__';
|
|
2811
|
+
import Module from './Module__';
|
|
2812
|
+
import App from './App__';
|
|
2973
2813
|
|
|
2974
2814
|
/**
|
|
2975
2815
|
* 页面组件
|
|
2976
2816
|
*/
|
|
2817
|
+
@className
|
|
2977
2818
|
@concept('页面组件')
|
|
2819
|
+
// @ts-ignore
|
|
2978
2820
|
export class ViewComponent extends BaseNode {
|
|
2979
2821
|
/** 类名 */
|
|
2980
|
-
static readonly ConceptName
|
|
2981
|
-
|
|
2982
|
-
/** 继承链 */
|
|
2983
|
-
static readonly inheritanceChain: string[] = ['BaseNode'];
|
|
2822
|
+
static readonly ConceptName = 'ViewComponent';
|
|
2984
2823
|
|
|
2985
2824
|
/**
|
|
2986
2825
|
* 产品概念
|
|
2987
2826
|
*/
|
|
2988
|
-
@property('concept')
|
|
2989
2827
|
// @ts-ignore
|
|
2990
2828
|
readonly concept!: 'ViewComponent';
|
|
2991
2829
|
|
|
@@ -2993,90 +2831,71 @@ export class ViewComponent extends BaseNode {
|
|
|
2993
2831
|
* 页面组件名称
|
|
2994
2832
|
*/
|
|
2995
2833
|
@property()
|
|
2834
|
+
// @ts-ignore
|
|
2996
2835
|
name!: string;
|
|
2997
2836
|
|
|
2998
2837
|
/**
|
|
2999
2838
|
* 页面组件标题
|
|
3000
2839
|
*/
|
|
3001
2840
|
@property()
|
|
2841
|
+
// @ts-ignore
|
|
3002
2842
|
title!: string;
|
|
3003
2843
|
|
|
3004
2844
|
/**
|
|
3005
2845
|
* 页面组件描述
|
|
3006
2846
|
*/
|
|
3007
2847
|
@property()
|
|
2848
|
+
// @ts-ignore
|
|
3008
2849
|
description!: string;
|
|
3009
2850
|
|
|
3010
2851
|
/**
|
|
3011
2852
|
* category
|
|
3012
2853
|
*/
|
|
3013
2854
|
@property()
|
|
2855
|
+
// @ts-ignore
|
|
3014
2856
|
category!: string;
|
|
3015
2857
|
|
|
3016
2858
|
/**
|
|
3017
2859
|
* 组件属性列表
|
|
3018
2860
|
*/
|
|
3019
|
-
@property(
|
|
3020
|
-
|
|
3021
|
-
isArray: true,
|
|
3022
|
-
defaultValue: [],
|
|
3023
|
-
})
|
|
3024
|
-
<span class="cstat-no" title="statement not covered" > attrs: Array<Attribute> = [];</span>
|
|
2861
|
+
@property('Attribute')
|
|
2862
|
+
attrs: Array<Attribute> = <span class="cstat-no" title="statement not covered" >[];</span>
|
|
3025
2863
|
|
|
3026
2864
|
/**
|
|
3027
2865
|
* 组件事件列表
|
|
3028
2866
|
*/
|
|
3029
|
-
@property(
|
|
3030
|
-
|
|
3031
|
-
isArray: true,
|
|
3032
|
-
defaultValue: [],
|
|
3033
|
-
})
|
|
3034
|
-
<span class="cstat-no" title="statement not covered" > events: Array<Event> = [];</span>
|
|
2867
|
+
@property('Event')
|
|
2868
|
+
events: Array<Event> = <span class="cstat-no" title="statement not covered" >[];</span>
|
|
3035
2869
|
|
|
3036
2870
|
/**
|
|
3037
2871
|
* 插槽列表
|
|
3038
2872
|
*/
|
|
3039
|
-
@property(
|
|
3040
|
-
|
|
3041
|
-
isArray: true,
|
|
3042
|
-
defaultValue: [],
|
|
3043
|
-
})
|
|
3044
|
-
<span class="cstat-no" title="statement not covered" > slots: Array<Slot> = [];</span>
|
|
2873
|
+
@property('Slot')
|
|
2874
|
+
slots: Array<Slot> = <span class="cstat-no" title="statement not covered" >[];</span>
|
|
3045
2875
|
|
|
3046
2876
|
/**
|
|
3047
2877
|
* 逻辑列表
|
|
3048
2878
|
*/
|
|
3049
|
-
@property(
|
|
3050
|
-
|
|
3051
|
-
isArray: true,
|
|
3052
|
-
defaultValue: [],
|
|
3053
|
-
})
|
|
3054
|
-
<span class="cstat-no" title="statement not covered" > methods: Array<Logic> = [];</span>
|
|
2879
|
+
@property('Logic')
|
|
2880
|
+
methods: Array<Logic> = <span class="cstat-no" title="statement not covered" >[];</span>
|
|
3055
2881
|
|
|
3056
2882
|
/**
|
|
3057
2883
|
* 页面组件列表
|
|
3058
2884
|
*/
|
|
3059
|
-
@property(
|
|
3060
|
-
|
|
3061
|
-
isArray: true,
|
|
3062
|
-
defaultValue: [],
|
|
3063
|
-
})
|
|
3064
|
-
<span class="cstat-no" title="statement not covered" > children: Array<ViewComponent> = [];</span>
|
|
2885
|
+
@property('ViewComponent')
|
|
2886
|
+
children: Array<ViewComponent> = <span class="cstat-no" title="statement not covered" >[];</span>
|
|
3065
2887
|
|
|
3066
2888
|
/**
|
|
3067
2889
|
* 页面代码块列表
|
|
3068
2890
|
*/
|
|
3069
|
-
@property(
|
|
3070
|
-
|
|
3071
|
-
isArray: true,
|
|
3072
|
-
defaultValue: [],
|
|
3073
|
-
})
|
|
3074
|
-
<span class="cstat-no" title="statement not covered" > blocks: Array<ViewBlock> = [];</span>
|
|
2891
|
+
@property('ViewBlock')
|
|
2892
|
+
blocks: Array<ViewBlock> = <span class="cstat-no" title="statement not covered" >[];</span>
|
|
3075
2893
|
|
|
3076
2894
|
/**
|
|
3077
2895
|
* themes
|
|
3078
2896
|
*/
|
|
3079
2897
|
@property()
|
|
2898
|
+
// @ts-ignore
|
|
3080
2899
|
themes!: Array<{ name: string; type: string }>;
|
|
3081
2900
|
|
|
3082
2901
|
/**
|
|
@@ -3101,7 +2920,7 @@ export class ViewComponent extends BaseNode {
|
|
|
3101
2920
|
<span class="cstat-no" title="statement not covered" > super.subConstructor(source);</span>
|
|
3102
2921
|
}
|
|
3103
2922
|
|
|
3104
|
-
<span class="fstat-no" title="function not covered" > static
|
|
2923
|
+
<span class="fstat-no" title="function not covered" > static </span>from(source: any, parentNode?: any, parentKey?: string): ViewComponent {
|
|
3105
2924
|
<span class="cstat-no" title="statement not covered" > return super.from(source, parentNode, parentKey) as ViewComponent;</span>
|
|
3106
2925
|
}
|
|
3107
2926
|
|
|
@@ -3109,7 +2928,7 @@ export class ViewComponent extends BaseNode {
|
|
|
3109
2928
|
* 从父级删除该节点
|
|
3110
2929
|
* @internal
|
|
3111
2930
|
*/
|
|
3112
|
-
<span class="fstat-no" title="function not covered" > _delete() {
|
|
2931
|
+
<span class="fstat-no" title="function not covered" > _delete(</span>) {
|
|
3113
2932
|
let params: Params = <span class="cstat-no" title="statement not covered" >null;</span>
|
|
3114
2933
|
<span class="cstat-no" title="statement not covered" > if (this.parentNode) {</span>
|
|
3115
2934
|
<span class="cstat-no" title="statement not covered" > params = (this.parentNode as any)?.__removeViewComponent?.(this);</span>
|
|
@@ -3117,11 +2936,11 @@ export class ViewComponent extends BaseNode {
|
|
|
3117
2936
|
<span class="cstat-no" title="statement not covered" > return params;</span>
|
|
3118
2937
|
}
|
|
3119
2938
|
|
|
3120
|
-
<span class="fstat-no" title="function not covered" > getAttributeExistingNames(
|
|
2939
|
+
<span class="fstat-no" title="function not covered" > getAttributeExistingNames(</span>excludedList: Array<Attribute> = <span class="branch-0 cbranch-no" title="branch not covered" >[])</span> {
|
|
3121
2940
|
const excludedSet = <span class="cstat-no" title="statement not covered" >new Set(excludedList);</span>
|
|
3122
|
-
<span class="cstat-no" title="statement not covered" > return ((this.attrs as Attribute[]) || []).filter(
|
|
2941
|
+
<span class="cstat-no" title="statement not covered" > return ((this.attrs as Attribute[]) || []).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>
|
|
3123
2942
|
}
|
|
3124
|
-
<span class="fstat-no" title="function not covered" > getAttributeUniqueName(
|
|
2943
|
+
<span class="fstat-no" title="function not covered" > getAttributeUniqueName(</span>name = <span class="branch-0 cbranch-no" title="branch not covered" >'attribute1')</span> {
|
|
3125
2944
|
<span class="cstat-no" title="statement not covered" > return utils.unique(name, this.getAttributeExistingNames(), undefined, false);</span>
|
|
3126
2945
|
}
|
|
3127
2946
|
|
|
@@ -3146,10 +2965,9 @@ export class ViewComponent extends BaseNode {
|
|
|
3146
2965
|
*/
|
|
3147
2966
|
_insertAttributeAt(attribute: Attribute, index: number): Attribute;
|
|
3148
2967
|
|
|
3149
|
-
<span class="fstat-no" title="function not covered" > _insertAttributeAt(
|
|
2968
|
+
<span class="fstat-no" title="function not covered" > _insertAttributeAt(</span>options: string | Partial<Attribute> | Attribute, index: number) {
|
|
3150
2969
|
const attributeOptions: any = <span class="cstat-no" title="statement not covered" >{};</span>
|
|
3151
2970
|
const relationOptions = <span class="cstat-no" title="statement not covered" >{ parentNode: this, parentKey: 'attrs' };</span>
|
|
3152
|
-
const <span class="cstat-no" title="statement not covered" >Attribute = getConceptConstructor('Attribute');</span>
|
|
3153
2971
|
let attribute: Attribute;
|
|
3154
2972
|
<span class="cstat-no" title="statement not covered" > if (!options) {</span>
|
|
3155
2973
|
<span class="cstat-no" title="statement not covered" > attribute = Attribute.from(</span>
|
|
@@ -3160,7 +2978,7 @@ export class ViewComponent extends BaseNode {
|
|
|
3160
2978
|
this,
|
|
3161
2979
|
'attrs',
|
|
3162
2980
|
);
|
|
3163
|
-
<span class="cstat-no" title="statement not covered" >
|
|
2981
|
+
} else <span class="cstat-no" title="statement not covered" >if (typeof options === 'string') {</span>
|
|
3164
2982
|
<span class="cstat-no" title="statement not covered" > attribute = Attribute.from(</span>
|
|
3165
2983
|
{
|
|
3166
2984
|
...attributeOptions,
|
|
@@ -3169,8 +2987,8 @@ export class ViewComponent extends BaseNode {
|
|
|
3169
2987
|
this,
|
|
3170
2988
|
'attrs',
|
|
3171
2989
|
);
|
|
3172
|
-
<span class="cstat-no" title="statement not covered" >
|
|
3173
|
-
<span class="cstat-no" title="statement not covered" > options.ensureDelete();
|
|
2990
|
+
} else <span class="cstat-no" title="statement not covered" >if (options instanceof Attribute) {</span>
|
|
2991
|
+
<span class="cstat-no" title="statement not covered" > options.ensureDelete(); </span>// 同一实例不支持多处存在
|
|
3174
2992
|
<span class="cstat-no" title="statement not covered" > attribute = options;</span>
|
|
3175
2993
|
<span class="cstat-no" title="statement not covered" > Object.assign(attribute, relationOptions);</span>
|
|
3176
2994
|
} else {
|
|
@@ -3205,7 +3023,7 @@ export class ViewComponent extends BaseNode {
|
|
|
3205
3023
|
*/
|
|
3206
3024
|
insertAttributeAt(attribute: Attribute, index: number): Attribute;
|
|
3207
3025
|
|
|
3208
|
-
<span class="fstat-no" title="function not covered" > insertAttributeAt(
|
|
3026
|
+
<span class="fstat-no" title="function not covered" > insertAttributeAt(</span>options: string | Partial<Attribute> | Attribute, index: number) {
|
|
3209
3027
|
const node = <span class="cstat-no" title="statement not covered" >this._insertAttributeAt(options as any, index);</span>
|
|
3210
3028
|
<span class="cstat-no" title="statement not covered" > node.create({</span>
|
|
3211
3029
|
index,
|
|
@@ -3236,7 +3054,7 @@ export class ViewComponent extends BaseNode {
|
|
|
3236
3054
|
*/
|
|
3237
3055
|
_addAttribute(attribute: Attribute): Attribute;
|
|
3238
3056
|
|
|
3239
|
-
<span class="fstat-no" title="function not covered" > _addAttribute(
|
|
3057
|
+
<span class="fstat-no" title="function not covered" > _addAttribute(</span>options?: string | Partial<Attribute> | Attribute) {
|
|
3240
3058
|
const index = <span class="cstat-no" title="statement not covered" >this.attrs.length;</span>
|
|
3241
3059
|
<span class="cstat-no" title="statement not covered" > return this._insertAttributeAt(options as any, index);</span>
|
|
3242
3060
|
}
|
|
@@ -3260,7 +3078,7 @@ export class ViewComponent extends BaseNode {
|
|
|
3260
3078
|
*/
|
|
3261
3079
|
addAttribute(attribute: Attribute): Attribute;
|
|
3262
3080
|
|
|
3263
|
-
<span class="fstat-no" title="function not covered" > addAttribute(
|
|
3081
|
+
<span class="fstat-no" title="function not covered" > addAttribute(</span>options?: string | Partial<Attribute> | Attribute) {
|
|
3264
3082
|
const node = <span class="cstat-no" title="statement not covered" >this._addAttribute(options as any);</span>
|
|
3265
3083
|
const index = <span class="cstat-no" title="statement not covered" >this.attrs.indexOf(node);</span>
|
|
3266
3084
|
<span class="cstat-no" title="statement not covered" > node.create({</span>
|
|
@@ -3271,11 +3089,11 @@ export class ViewComponent extends BaseNode {
|
|
|
3271
3089
|
<span class="cstat-no" title="statement not covered" > return node;</span>
|
|
3272
3090
|
}
|
|
3273
3091
|
|
|
3274
|
-
<span class="fstat-no" title="function not covered" > getEventExistingNames(
|
|
3092
|
+
<span class="fstat-no" title="function not covered" > getEventExistingNames(</span>excludedList: Array<Event> = <span class="branch-0 cbranch-no" title="branch not covered" >[])</span> {
|
|
3275
3093
|
const excludedSet = <span class="cstat-no" title="statement not covered" >new Set(excludedList);</span>
|
|
3276
|
-
<span class="cstat-no" title="statement not covered" > return ((this.events as Event[]) || []).filter(
|
|
3094
|
+
<span class="cstat-no" title="statement not covered" > return ((this.events as Event[]) || []).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>
|
|
3277
3095
|
}
|
|
3278
|
-
<span class="fstat-no" title="function not covered" > getEventUniqueName(
|
|
3096
|
+
<span class="fstat-no" title="function not covered" > getEventUniqueName(</span>name = <span class="branch-0 cbranch-no" title="branch not covered" >'event1')</span> {
|
|
3279
3097
|
<span class="cstat-no" title="statement not covered" > return utils.unique(name, this.getEventExistingNames(), undefined, false);</span>
|
|
3280
3098
|
}
|
|
3281
3099
|
|
|
@@ -3300,10 +3118,9 @@ export class ViewComponent extends BaseNode {
|
|
|
3300
3118
|
*/
|
|
3301
3119
|
_insertEventAt(event: Event, index: number): Event;
|
|
3302
3120
|
|
|
3303
|
-
<span class="fstat-no" title="function not covered" > _insertEventAt(
|
|
3121
|
+
<span class="fstat-no" title="function not covered" > _insertEventAt(</span>options: string | Partial<Event> | Event, index: number) {
|
|
3304
3122
|
const eventOptions: any = <span class="cstat-no" title="statement not covered" >{};</span>
|
|
3305
3123
|
const relationOptions = <span class="cstat-no" title="statement not covered" >{ parentNode: this, parentKey: 'events' };</span>
|
|
3306
|
-
const <span class="cstat-no" title="statement not covered" >Event = getConceptConstructor('Event');</span>
|
|
3307
3124
|
let event: Event;
|
|
3308
3125
|
<span class="cstat-no" title="statement not covered" > if (!options) {</span>
|
|
3309
3126
|
<span class="cstat-no" title="statement not covered" > event = Event.from(</span>
|
|
@@ -3314,7 +3131,7 @@ export class ViewComponent extends BaseNode {
|
|
|
3314
3131
|
this,
|
|
3315
3132
|
'events',
|
|
3316
3133
|
);
|
|
3317
|
-
<span class="cstat-no" title="statement not covered" >
|
|
3134
|
+
} else <span class="cstat-no" title="statement not covered" >if (typeof options === 'string') {</span>
|
|
3318
3135
|
<span class="cstat-no" title="statement not covered" > event = Event.from(</span>
|
|
3319
3136
|
{
|
|
3320
3137
|
...eventOptions,
|
|
@@ -3323,8 +3140,8 @@ export class ViewComponent extends BaseNode {
|
|
|
3323
3140
|
this,
|
|
3324
3141
|
'events',
|
|
3325
3142
|
);
|
|
3326
|
-
<span class="cstat-no" title="statement not covered" >
|
|
3327
|
-
<span class="cstat-no" title="statement not covered" > options.ensureDelete();
|
|
3143
|
+
} else <span class="cstat-no" title="statement not covered" >if (options instanceof Event) {</span>
|
|
3144
|
+
<span class="cstat-no" title="statement not covered" > options.ensureDelete(); </span>// 同一实例不支持多处存在
|
|
3328
3145
|
<span class="cstat-no" title="statement not covered" > event = options;</span>
|
|
3329
3146
|
<span class="cstat-no" title="statement not covered" > Object.assign(event, relationOptions);</span>
|
|
3330
3147
|
} else {
|
|
@@ -3359,7 +3176,7 @@ export class ViewComponent extends BaseNode {
|
|
|
3359
3176
|
*/
|
|
3360
3177
|
insertEventAt(event: Event, index: number): Event;
|
|
3361
3178
|
|
|
3362
|
-
<span class="fstat-no" title="function not covered" > insertEventAt(
|
|
3179
|
+
<span class="fstat-no" title="function not covered" > insertEventAt(</span>options: string | Partial<Event> | Event, index: number) {
|
|
3363
3180
|
const node = <span class="cstat-no" title="statement not covered" >this._insertEventAt(options as any, index);</span>
|
|
3364
3181
|
<span class="cstat-no" title="statement not covered" > node.create({</span>
|
|
3365
3182
|
index,
|
|
@@ -3390,7 +3207,7 @@ export class ViewComponent extends BaseNode {
|
|
|
3390
3207
|
*/
|
|
3391
3208
|
_addEvent(event: Event): Event;
|
|
3392
3209
|
|
|
3393
|
-
<span class="fstat-no" title="function not covered" > _addEvent(
|
|
3210
|
+
<span class="fstat-no" title="function not covered" > _addEvent(</span>options?: string | Partial<Event> | Event) {
|
|
3394
3211
|
const index = <span class="cstat-no" title="statement not covered" >this.events.length;</span>
|
|
3395
3212
|
<span class="cstat-no" title="statement not covered" > return this._insertEventAt(options as any, index);</span>
|
|
3396
3213
|
}
|
|
@@ -3414,7 +3231,7 @@ export class ViewComponent extends BaseNode {
|
|
|
3414
3231
|
*/
|
|
3415
3232
|
addEvent(event: Event): Event;
|
|
3416
3233
|
|
|
3417
|
-
<span class="fstat-no" title="function not covered" > addEvent(
|
|
3234
|
+
<span class="fstat-no" title="function not covered" > addEvent(</span>options?: string | Partial<Event> | Event) {
|
|
3418
3235
|
const node = <span class="cstat-no" title="statement not covered" >this._addEvent(options as any);</span>
|
|
3419
3236
|
const index = <span class="cstat-no" title="statement not covered" >this.events.indexOf(node);</span>
|
|
3420
3237
|
<span class="cstat-no" title="statement not covered" > node.create({</span>
|
|
@@ -3425,11 +3242,11 @@ export class ViewComponent extends BaseNode {
|
|
|
3425
3242
|
<span class="cstat-no" title="statement not covered" > return node;</span>
|
|
3426
3243
|
}
|
|
3427
3244
|
|
|
3428
|
-
<span class="fstat-no" title="function not covered" > getSlotExistingNames(
|
|
3245
|
+
<span class="fstat-no" title="function not covered" > getSlotExistingNames(</span>excludedList: Array<Slot> = <span class="branch-0 cbranch-no" title="branch not covered" >[])</span> {
|
|
3429
3246
|
const excludedSet = <span class="cstat-no" title="statement not covered" >new Set(excludedList);</span>
|
|
3430
|
-
<span class="cstat-no" title="statement not covered" > return ((this.slots as Slot[]) || []).filter(
|
|
3247
|
+
<span class="cstat-no" title="statement not covered" > return ((this.slots as Slot[]) || []).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>
|
|
3431
3248
|
}
|
|
3432
|
-
<span class="fstat-no" title="function not covered" > getSlotUniqueName(
|
|
3249
|
+
<span class="fstat-no" title="function not covered" > getSlotUniqueName(</span>name = <span class="branch-0 cbranch-no" title="branch not covered" >'slot1')</span> {
|
|
3433
3250
|
<span class="cstat-no" title="statement not covered" > return utils.unique(name, this.getSlotExistingNames(), undefined, false);</span>
|
|
3434
3251
|
}
|
|
3435
3252
|
|
|
@@ -3454,10 +3271,9 @@ export class ViewComponent extends BaseNode {
|
|
|
3454
3271
|
*/
|
|
3455
3272
|
_insertSlotAt(slot: Slot, index: number): Slot;
|
|
3456
3273
|
|
|
3457
|
-
<span class="fstat-no" title="function not covered" > _insertSlotAt(
|
|
3274
|
+
<span class="fstat-no" title="function not covered" > _insertSlotAt(</span>options: string | Partial<Slot> | Slot, index: number) {
|
|
3458
3275
|
const slotOptions: any = <span class="cstat-no" title="statement not covered" >{};</span>
|
|
3459
3276
|
const relationOptions = <span class="cstat-no" title="statement not covered" >{ parentNode: this, parentKey: 'slots' };</span>
|
|
3460
|
-
const <span class="cstat-no" title="statement not covered" >Slot = getConceptConstructor('Slot');</span>
|
|
3461
3277
|
let slot: Slot;
|
|
3462
3278
|
<span class="cstat-no" title="statement not covered" > if (!options) {</span>
|
|
3463
3279
|
<span class="cstat-no" title="statement not covered" > slot = Slot.from(</span>
|
|
@@ -3468,7 +3284,7 @@ export class ViewComponent extends BaseNode {
|
|
|
3468
3284
|
this,
|
|
3469
3285
|
'slots',
|
|
3470
3286
|
);
|
|
3471
|
-
<span class="cstat-no" title="statement not covered" >
|
|
3287
|
+
} else <span class="cstat-no" title="statement not covered" >if (typeof options === 'string') {</span>
|
|
3472
3288
|
<span class="cstat-no" title="statement not covered" > slot = Slot.from(</span>
|
|
3473
3289
|
{
|
|
3474
3290
|
...slotOptions,
|
|
@@ -3477,8 +3293,8 @@ export class ViewComponent extends BaseNode {
|
|
|
3477
3293
|
this,
|
|
3478
3294
|
'slots',
|
|
3479
3295
|
);
|
|
3480
|
-
<span class="cstat-no" title="statement not covered" >
|
|
3481
|
-
<span class="cstat-no" title="statement not covered" > options.ensureDelete();
|
|
3296
|
+
} else <span class="cstat-no" title="statement not covered" >if (options instanceof Slot) {</span>
|
|
3297
|
+
<span class="cstat-no" title="statement not covered" > options.ensureDelete(); </span>// 同一实例不支持多处存在
|
|
3482
3298
|
<span class="cstat-no" title="statement not covered" > slot = options;</span>
|
|
3483
3299
|
<span class="cstat-no" title="statement not covered" > Object.assign(slot, relationOptions);</span>
|
|
3484
3300
|
} else {
|
|
@@ -3513,7 +3329,7 @@ export class ViewComponent extends BaseNode {
|
|
|
3513
3329
|
*/
|
|
3514
3330
|
insertSlotAt(slot: Slot, index: number): Slot;
|
|
3515
3331
|
|
|
3516
|
-
<span class="fstat-no" title="function not covered" > insertSlotAt(
|
|
3332
|
+
<span class="fstat-no" title="function not covered" > insertSlotAt(</span>options: string | Partial<Slot> | Slot, index: number) {
|
|
3517
3333
|
const node = <span class="cstat-no" title="statement not covered" >this._insertSlotAt(options as any, index);</span>
|
|
3518
3334
|
<span class="cstat-no" title="statement not covered" > node.create({</span>
|
|
3519
3335
|
index,
|
|
@@ -3544,7 +3360,7 @@ export class ViewComponent extends BaseNode {
|
|
|
3544
3360
|
*/
|
|
3545
3361
|
_addSlot(slot: Slot): Slot;
|
|
3546
3362
|
|
|
3547
|
-
<span class="fstat-no" title="function not covered" > _addSlot(
|
|
3363
|
+
<span class="fstat-no" title="function not covered" > _addSlot(</span>options?: string | Partial<Slot> | Slot) {
|
|
3548
3364
|
const index = <span class="cstat-no" title="statement not covered" >this.slots.length;</span>
|
|
3549
3365
|
<span class="cstat-no" title="statement not covered" > return this._insertSlotAt(options as any, index);</span>
|
|
3550
3366
|
}
|
|
@@ -3568,7 +3384,7 @@ export class ViewComponent extends BaseNode {
|
|
|
3568
3384
|
*/
|
|
3569
3385
|
addSlot(slot: Slot): Slot;
|
|
3570
3386
|
|
|
3571
|
-
<span class="fstat-no" title="function not covered" > addSlot(
|
|
3387
|
+
<span class="fstat-no" title="function not covered" > addSlot(</span>options?: string | Partial<Slot> | Slot) {
|
|
3572
3388
|
const node = <span class="cstat-no" title="statement not covered" >this._addSlot(options as any);</span>
|
|
3573
3389
|
const index = <span class="cstat-no" title="statement not covered" >this.slots.indexOf(node);</span>
|
|
3574
3390
|
<span class="cstat-no" title="statement not covered" > node.create({</span>
|
|
@@ -3579,11 +3395,11 @@ export class ViewComponent extends BaseNode {
|
|
|
3579
3395
|
<span class="cstat-no" title="statement not covered" > return node;</span>
|
|
3580
3396
|
}
|
|
3581
3397
|
|
|
3582
|
-
<span class="fstat-no" title="function not covered" > getLogicExistingNames(
|
|
3398
|
+
<span class="fstat-no" title="function not covered" > getLogicExistingNames(</span>excludedList: Array<Logic> = <span class="branch-0 cbranch-no" title="branch not covered" >[])</span> {
|
|
3583
3399
|
const excludedSet = <span class="cstat-no" title="statement not covered" >new Set(excludedList);</span>
|
|
3584
|
-
<span class="cstat-no" title="statement not covered" > return ((this.methods as Logic[]) || []).filter(
|
|
3400
|
+
<span class="cstat-no" title="statement not covered" > return ((this.methods as Logic[]) || []).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>
|
|
3585
3401
|
}
|
|
3586
|
-
<span class="fstat-no" title="function not covered" > getLogicUniqueName(
|
|
3402
|
+
<span class="fstat-no" title="function not covered" > getLogicUniqueName(</span>name = <span class="branch-0 cbranch-no" title="branch not covered" >'logic1')</span> {
|
|
3587
3403
|
<span class="cstat-no" title="statement not covered" > return utils.unique(name, this.getLogicExistingNames(), undefined, false);</span>
|
|
3588
3404
|
}
|
|
3589
3405
|
|
|
@@ -3608,10 +3424,9 @@ export class ViewComponent extends BaseNode {
|
|
|
3608
3424
|
*/
|
|
3609
3425
|
_insertLogicAt(logic: Logic, index: number): Logic;
|
|
3610
3426
|
|
|
3611
|
-
<span class="fstat-no" title="function not covered" > _insertLogicAt(
|
|
3427
|
+
<span class="fstat-no" title="function not covered" > _insertLogicAt(</span>options: string | Partial<Logic> | Logic, index: number) {
|
|
3612
3428
|
const logicOptions: any = <span class="cstat-no" title="statement not covered" >{};</span>
|
|
3613
3429
|
const relationOptions = <span class="cstat-no" title="statement not covered" >{ parentNode: this, parentKey: 'methods' };</span>
|
|
3614
|
-
const <span class="cstat-no" title="statement not covered" >Logic = getConceptConstructor('Logic');</span>
|
|
3615
3430
|
let logic: Logic;
|
|
3616
3431
|
<span class="cstat-no" title="statement not covered" > if (!options) {</span>
|
|
3617
3432
|
<span class="cstat-no" title="statement not covered" > logic = Logic.from(</span>
|
|
@@ -3622,7 +3437,7 @@ export class ViewComponent extends BaseNode {
|
|
|
3622
3437
|
this,
|
|
3623
3438
|
'methods',
|
|
3624
3439
|
);
|
|
3625
|
-
<span class="cstat-no" title="statement not covered" >
|
|
3440
|
+
} else <span class="cstat-no" title="statement not covered" >if (typeof options === 'string') {</span>
|
|
3626
3441
|
<span class="cstat-no" title="statement not covered" > logic = Logic.from(</span>
|
|
3627
3442
|
{
|
|
3628
3443
|
...logicOptions,
|
|
@@ -3631,8 +3446,8 @@ export class ViewComponent extends BaseNode {
|
|
|
3631
3446
|
this,
|
|
3632
3447
|
'methods',
|
|
3633
3448
|
);
|
|
3634
|
-
<span class="cstat-no" title="statement not covered" >
|
|
3635
|
-
<span class="cstat-no" title="statement not covered" > options.ensureDelete();
|
|
3449
|
+
} else <span class="cstat-no" title="statement not covered" >if (options instanceof Logic) {</span>
|
|
3450
|
+
<span class="cstat-no" title="statement not covered" > options.ensureDelete(); </span>// 同一实例不支持多处存在
|
|
3636
3451
|
<span class="cstat-no" title="statement not covered" > logic = options;</span>
|
|
3637
3452
|
<span class="cstat-no" title="statement not covered" > Object.assign(logic, relationOptions);</span>
|
|
3638
3453
|
} else {
|
|
@@ -3667,7 +3482,7 @@ export class ViewComponent extends BaseNode {
|
|
|
3667
3482
|
*/
|
|
3668
3483
|
insertLogicAt(logic: Logic, index: number): Logic;
|
|
3669
3484
|
|
|
3670
|
-
<span class="fstat-no" title="function not covered" > insertLogicAt(
|
|
3485
|
+
<span class="fstat-no" title="function not covered" > insertLogicAt(</span>options: string | Partial<Logic> | Logic, index: number) {
|
|
3671
3486
|
const node = <span class="cstat-no" title="statement not covered" >this._insertLogicAt(options as any, index);</span>
|
|
3672
3487
|
<span class="cstat-no" title="statement not covered" > node.create({</span>
|
|
3673
3488
|
index,
|
|
@@ -3698,7 +3513,7 @@ export class ViewComponent extends BaseNode {
|
|
|
3698
3513
|
*/
|
|
3699
3514
|
_addLogic(logic: Logic): Logic;
|
|
3700
3515
|
|
|
3701
|
-
<span class="fstat-no" title="function not covered" > _addLogic(
|
|
3516
|
+
<span class="fstat-no" title="function not covered" > _addLogic(</span>options?: string | Partial<Logic> | Logic) {
|
|
3702
3517
|
const index = <span class="cstat-no" title="statement not covered" >this.methods.length;</span>
|
|
3703
3518
|
<span class="cstat-no" title="statement not covered" > return this._insertLogicAt(options as any, index);</span>
|
|
3704
3519
|
}
|
|
@@ -3722,7 +3537,7 @@ export class ViewComponent extends BaseNode {
|
|
|
3722
3537
|
*/
|
|
3723
3538
|
addLogic(logic: Logic): Logic;
|
|
3724
3539
|
|
|
3725
|
-
<span class="fstat-no" title="function not covered" > addLogic(
|
|
3540
|
+
<span class="fstat-no" title="function not covered" > addLogic(</span>options?: string | Partial<Logic> | Logic) {
|
|
3726
3541
|
const node = <span class="cstat-no" title="statement not covered" >this._addLogic(options as any);</span>
|
|
3727
3542
|
const index = <span class="cstat-no" title="statement not covered" >this.methods.indexOf(node);</span>
|
|
3728
3543
|
<span class="cstat-no" title="statement not covered" > node.create({</span>
|
|
@@ -3733,13 +3548,11 @@ export class ViewComponent extends BaseNode {
|
|
|
3733
3548
|
<span class="cstat-no" title="statement not covered" > return node;</span>
|
|
3734
3549
|
}
|
|
3735
3550
|
|
|
3736
|
-
<span class="fstat-no" title="function not covered" > getViewComponentExistingNames(
|
|
3551
|
+
<span class="fstat-no" title="function not covered" > getViewComponentExistingNames(</span>excludedList: Array<ViewComponent> = <span class="branch-0 cbranch-no" title="branch not covered" >[])</span> {
|
|
3737
3552
|
const excludedSet = <span class="cstat-no" title="statement not covered" >new Set(excludedList);</span>
|
|
3738
|
-
<span class="cstat-no" title="statement not covered" > return ((this.children as ViewComponent[]) || [])</span>
|
|
3739
|
-
.filter((<span class="fstat-no" title="function not covered" >item) => <span class="cstat-no" title="statement not covered" >!</span>excludedSet.has(item))</span>
|
|
3740
|
-
.map((<span class="fstat-no" title="function not covered" >item) => <span class="cstat-no" title="statement not covered" >i</span>tem?.name)</span>;
|
|
3553
|
+
<span class="cstat-no" title="statement not covered" > return ((this.children as ViewComponent[]) || []).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>
|
|
3741
3554
|
}
|
|
3742
|
-
<span class="fstat-no" title="function not covered" > getViewComponentUniqueName(
|
|
3555
|
+
<span class="fstat-no" title="function not covered" > getViewComponentUniqueName(</span>name = <span class="branch-0 cbranch-no" title="branch not covered" >'viewComponent1')</span> {
|
|
3743
3556
|
<span class="cstat-no" title="statement not covered" > return utils.unique(name, this.getViewComponentExistingNames(), undefined, false);</span>
|
|
3744
3557
|
}
|
|
3745
3558
|
|
|
@@ -3764,10 +3577,9 @@ export class ViewComponent extends BaseNode {
|
|
|
3764
3577
|
*/
|
|
3765
3578
|
_insertViewComponentAt(viewComponent: ViewComponent, index: number): ViewComponent;
|
|
3766
3579
|
|
|
3767
|
-
<span class="fstat-no" title="function not covered" > _insertViewComponentAt(
|
|
3580
|
+
<span class="fstat-no" title="function not covered" > _insertViewComponentAt(</span>options: string | Partial<ViewComponent> | ViewComponent, index: number) {
|
|
3768
3581
|
const viewComponentOptions: any = <span class="cstat-no" title="statement not covered" >{};</span>
|
|
3769
3582
|
const relationOptions = <span class="cstat-no" title="statement not covered" >{ parentNode: this, parentKey: 'children' };</span>
|
|
3770
|
-
const <span class="cstat-no" title="statement not covered" >ViewComponent = getConceptConstructor('ViewComponent');</span>
|
|
3771
3583
|
let viewComponent: ViewComponent;
|
|
3772
3584
|
<span class="cstat-no" title="statement not covered" > if (!options) {</span>
|
|
3773
3585
|
<span class="cstat-no" title="statement not covered" > viewComponent = ViewComponent.from(</span>
|
|
@@ -3778,7 +3590,7 @@ export class ViewComponent extends BaseNode {
|
|
|
3778
3590
|
this,
|
|
3779
3591
|
'children',
|
|
3780
3592
|
);
|
|
3781
|
-
<span class="cstat-no" title="statement not covered" >
|
|
3593
|
+
} else <span class="cstat-no" title="statement not covered" >if (typeof options === 'string') {</span>
|
|
3782
3594
|
<span class="cstat-no" title="statement not covered" > viewComponent = ViewComponent.from(</span>
|
|
3783
3595
|
{
|
|
3784
3596
|
...viewComponentOptions,
|
|
@@ -3787,8 +3599,8 @@ export class ViewComponent extends BaseNode {
|
|
|
3787
3599
|
this,
|
|
3788
3600
|
'children',
|
|
3789
3601
|
);
|
|
3790
|
-
<span class="cstat-no" title="statement not covered" >
|
|
3791
|
-
<span class="cstat-no" title="statement not covered" > options.ensureDelete();
|
|
3602
|
+
} else <span class="cstat-no" title="statement not covered" >if (options instanceof ViewComponent) {</span>
|
|
3603
|
+
<span class="cstat-no" title="statement not covered" > options.ensureDelete(); </span>// 同一实例不支持多处存在
|
|
3792
3604
|
<span class="cstat-no" title="statement not covered" > viewComponent = options;</span>
|
|
3793
3605
|
<span class="cstat-no" title="statement not covered" > Object.assign(viewComponent, relationOptions);</span>
|
|
3794
3606
|
} else {
|
|
@@ -3823,7 +3635,7 @@ export class ViewComponent extends BaseNode {
|
|
|
3823
3635
|
*/
|
|
3824
3636
|
insertViewComponentAt(viewComponent: ViewComponent, index: number): ViewComponent;
|
|
3825
3637
|
|
|
3826
|
-
<span class="fstat-no" title="function not covered" > insertViewComponentAt(
|
|
3638
|
+
<span class="fstat-no" title="function not covered" > insertViewComponentAt(</span>options: string | Partial<ViewComponent> | ViewComponent, index: number) {
|
|
3827
3639
|
const node = <span class="cstat-no" title="statement not covered" >this._insertViewComponentAt(options as any, index);</span>
|
|
3828
3640
|
<span class="cstat-no" title="statement not covered" > node.create({</span>
|
|
3829
3641
|
index,
|
|
@@ -3854,7 +3666,7 @@ export class ViewComponent extends BaseNode {
|
|
|
3854
3666
|
*/
|
|
3855
3667
|
_addViewComponent(viewComponent: ViewComponent): ViewComponent;
|
|
3856
3668
|
|
|
3857
|
-
<span class="fstat-no" title="function not covered" > _addViewComponent(
|
|
3669
|
+
<span class="fstat-no" title="function not covered" > _addViewComponent(</span>options?: string | Partial<ViewComponent> | ViewComponent) {
|
|
3858
3670
|
const index = <span class="cstat-no" title="statement not covered" >this.children.length;</span>
|
|
3859
3671
|
<span class="cstat-no" title="statement not covered" > return this._insertViewComponentAt(options as any, index);</span>
|
|
3860
3672
|
}
|
|
@@ -3878,7 +3690,7 @@ export class ViewComponent extends BaseNode {
|
|
|
3878
3690
|
*/
|
|
3879
3691
|
addViewComponent(viewComponent: ViewComponent): ViewComponent;
|
|
3880
3692
|
|
|
3881
|
-
<span class="fstat-no" title="function not covered" > addViewComponent(
|
|
3693
|
+
<span class="fstat-no" title="function not covered" > addViewComponent(</span>options?: string | Partial<ViewComponent> | ViewComponent) {
|
|
3882
3694
|
const node = <span class="cstat-no" title="statement not covered" >this._addViewComponent(options as any);</span>
|
|
3883
3695
|
const index = <span class="cstat-no" title="statement not covered" >this.children.indexOf(node);</span>
|
|
3884
3696
|
<span class="cstat-no" title="statement not covered" > node.create({</span>
|
|
@@ -3889,11 +3701,11 @@ export class ViewComponent extends BaseNode {
|
|
|
3889
3701
|
<span class="cstat-no" title="statement not covered" > return node;</span>
|
|
3890
3702
|
}
|
|
3891
3703
|
|
|
3892
|
-
<span class="fstat-no" title="function not covered" > getViewBlockExistingNames(
|
|
3704
|
+
<span class="fstat-no" title="function not covered" > getViewBlockExistingNames(</span>excludedList: Array<ViewBlock> = <span class="branch-0 cbranch-no" title="branch not covered" >[])</span> {
|
|
3893
3705
|
const excludedSet = <span class="cstat-no" title="statement not covered" >new Set(excludedList);</span>
|
|
3894
|
-
<span class="cstat-no" title="statement not covered" > return ((this.blocks as ViewBlock[]) || []).filter(
|
|
3706
|
+
<span class="cstat-no" title="statement not covered" > return ((this.blocks as ViewBlock[]) || []).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>
|
|
3895
3707
|
}
|
|
3896
|
-
<span class="fstat-no" title="function not covered" > getViewBlockUniqueName(
|
|
3708
|
+
<span class="fstat-no" title="function not covered" > getViewBlockUniqueName(</span>name = <span class="branch-0 cbranch-no" title="branch not covered" >'viewBlock1')</span> {
|
|
3897
3709
|
<span class="cstat-no" title="statement not covered" > return utils.unique(name, this.getViewBlockExistingNames(), undefined, false);</span>
|
|
3898
3710
|
}
|
|
3899
3711
|
|
|
@@ -3918,10 +3730,9 @@ export class ViewComponent extends BaseNode {
|
|
|
3918
3730
|
*/
|
|
3919
3731
|
_insertViewBlockAt(viewBlock: ViewBlock, index: number): ViewBlock;
|
|
3920
3732
|
|
|
3921
|
-
<span class="fstat-no" title="function not covered" > _insertViewBlockAt(
|
|
3733
|
+
<span class="fstat-no" title="function not covered" > _insertViewBlockAt(</span>options: string | Partial<ViewBlock> | ViewBlock, index: number) {
|
|
3922
3734
|
const viewBlockOptions: any = <span class="cstat-no" title="statement not covered" >{};</span>
|
|
3923
3735
|
const relationOptions = <span class="cstat-no" title="statement not covered" >{ parentNode: this, parentKey: 'blocks' };</span>
|
|
3924
|
-
const <span class="cstat-no" title="statement not covered" >ViewBlock = getConceptConstructor('ViewBlock');</span>
|
|
3925
3736
|
let viewBlock: ViewBlock;
|
|
3926
3737
|
<span class="cstat-no" title="statement not covered" > if (!options) {</span>
|
|
3927
3738
|
<span class="cstat-no" title="statement not covered" > viewBlock = ViewBlock.from(</span>
|
|
@@ -3932,7 +3743,7 @@ export class ViewComponent extends BaseNode {
|
|
|
3932
3743
|
this,
|
|
3933
3744
|
'blocks',
|
|
3934
3745
|
);
|
|
3935
|
-
<span class="cstat-no" title="statement not covered" >
|
|
3746
|
+
} else <span class="cstat-no" title="statement not covered" >if (typeof options === 'string') {</span>
|
|
3936
3747
|
<span class="cstat-no" title="statement not covered" > viewBlock = ViewBlock.from(</span>
|
|
3937
3748
|
{
|
|
3938
3749
|
...viewBlockOptions,
|
|
@@ -3941,8 +3752,8 @@ export class ViewComponent extends BaseNode {
|
|
|
3941
3752
|
this,
|
|
3942
3753
|
'blocks',
|
|
3943
3754
|
);
|
|
3944
|
-
<span class="cstat-no" title="statement not covered" >
|
|
3945
|
-
<span class="cstat-no" title="statement not covered" > options.ensureDelete();
|
|
3755
|
+
} else <span class="cstat-no" title="statement not covered" >if (options instanceof ViewBlock) {</span>
|
|
3756
|
+
<span class="cstat-no" title="statement not covered" > options.ensureDelete(); </span>// 同一实例不支持多处存在
|
|
3946
3757
|
<span class="cstat-no" title="statement not covered" > viewBlock = options;</span>
|
|
3947
3758
|
<span class="cstat-no" title="statement not covered" > Object.assign(viewBlock, relationOptions);</span>
|
|
3948
3759
|
} else {
|
|
@@ -3977,7 +3788,7 @@ export class ViewComponent extends BaseNode {
|
|
|
3977
3788
|
*/
|
|
3978
3789
|
insertViewBlockAt(viewBlock: ViewBlock, index: number): ViewBlock;
|
|
3979
3790
|
|
|
3980
|
-
<span class="fstat-no" title="function not covered" > insertViewBlockAt(
|
|
3791
|
+
<span class="fstat-no" title="function not covered" > insertViewBlockAt(</span>options: string | Partial<ViewBlock> | ViewBlock, index: number) {
|
|
3981
3792
|
const node = <span class="cstat-no" title="statement not covered" >this._insertViewBlockAt(options as any, index);</span>
|
|
3982
3793
|
<span class="cstat-no" title="statement not covered" > node.create({</span>
|
|
3983
3794
|
index,
|
|
@@ -4008,7 +3819,7 @@ export class ViewComponent extends BaseNode {
|
|
|
4008
3819
|
*/
|
|
4009
3820
|
_addViewBlock(viewBlock: ViewBlock): ViewBlock;
|
|
4010
3821
|
|
|
4011
|
-
<span class="fstat-no" title="function not covered" > _addViewBlock(
|
|
3822
|
+
<span class="fstat-no" title="function not covered" > _addViewBlock(</span>options?: string | Partial<ViewBlock> | ViewBlock) {
|
|
4012
3823
|
const index = <span class="cstat-no" title="statement not covered" >this.blocks.length;</span>
|
|
4013
3824
|
<span class="cstat-no" title="statement not covered" > return this._insertViewBlockAt(options as any, index);</span>
|
|
4014
3825
|
}
|
|
@@ -4032,7 +3843,7 @@ export class ViewComponent extends BaseNode {
|
|
|
4032
3843
|
*/
|
|
4033
3844
|
addViewBlock(viewBlock: ViewBlock): ViewBlock;
|
|
4034
3845
|
|
|
4035
|
-
<span class="fstat-no" title="function not covered" > addViewBlock(
|
|
3846
|
+
<span class="fstat-no" title="function not covered" > addViewBlock(</span>options?: string | Partial<ViewBlock> | ViewBlock) {
|
|
4036
3847
|
const node = <span class="cstat-no" title="statement not covered" >this._addViewBlock(options as any);</span>
|
|
4037
3848
|
const index = <span class="cstat-no" title="statement not covered" >this.blocks.indexOf(node);</span>
|
|
4038
3849
|
<span class="cstat-no" title="statement not covered" > node.create({</span>
|
|
@@ -4055,10 +3866,10 @@ export class ViewComponent extends BaseNode {
|
|
|
4055
3866
|
*/
|
|
4056
3867
|
removeAttribute(attribute: Attribute): void;
|
|
4057
3868
|
|
|
4058
|
-
<span class="fstat-no" title="function not covered" > removeAttribute(
|
|
3869
|
+
<span class="fstat-no" title="function not covered" > removeAttribute(</span>options: string | Attribute) {
|
|
4059
3870
|
let attribute: Attribute;
|
|
4060
3871
|
<span class="cstat-no" title="statement not covered" > if (typeof options === 'string') {</span>
|
|
4061
|
-
<span class="cstat-no" title="statement not covered" > attribute = (this.attrs as Attribute[]).find(
|
|
3872
|
+
<span class="cstat-no" title="statement not covered" > attribute = (this.attrs as Attribute[]).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>
|
|
4062
3873
|
<span class="cstat-no" title="statement not covered" > if (!attribute) {</span>
|
|
4063
3874
|
<span class="cstat-no" title="statement not covered" > throw new Error('找不到组件属性 ' + options);</span>
|
|
4064
3875
|
}
|
|
@@ -4068,7 +3879,7 @@ export class ViewComponent extends BaseNode {
|
|
|
4068
3879
|
<span class="cstat-no" title="statement not covered" > return attribute.delete();</span>
|
|
4069
3880
|
}
|
|
4070
3881
|
|
|
4071
|
-
<span class="fstat-no" title="function not covered" > __removeAttribute(
|
|
3882
|
+
<span class="fstat-no" title="function not covered" > __removeAttribute(</span>attribute: Attribute) {
|
|
4072
3883
|
const parentKey = <span class="cstat-no" title="statement not covered" >attribute.parentKey;</span>
|
|
4073
3884
|
const params: Params = <span class="cstat-no" title="statement not covered" >{</span>
|
|
4074
3885
|
parentNode: this,
|
|
@@ -4079,21 +3890,13 @@ export class ViewComponent extends BaseNode {
|
|
|
4079
3890
|
};
|
|
4080
3891
|
<span class="cstat-no" title="statement not covered" > if (parentKey) {</span>
|
|
4081
3892
|
<span class="cstat-no" title="statement not covered" > params.parentKey = parentKey;</span>
|
|
4082
|
-
|
|
4083
|
-
|
|
4084
|
-
// @ts-ignore
|
|
4085
|
-
const n = <span class="cstat-no" title="statement not covered" >attribute.__v_raw || attribute;</span>
|
|
4086
|
-
<span class="cstat-no" title="statement not covered" > if (Array.isArray((t as any)[parentKey])) {</span>
|
|
4087
|
-
// @ts-ignore
|
|
4088
|
-
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>
|
|
3893
|
+
<span class="cstat-no" title="statement not covered" > if (Array.isArray((this as any)[parentKey])) {</span>
|
|
3894
|
+
const index = (<span class="cstat-no" title="statement not covered" >this as any)[parentKey].indexOf(attribute);</span>
|
|
4089
3895
|
<span class="cstat-no" title="statement not covered" > ~index && (this as any)[parentKey].splice(index, 1);</span>
|
|
4090
3896
|
<span class="cstat-no" title="statement not covered" > params.index = index;</span>
|
|
4091
|
-
} else {
|
|
4092
|
-
|
|
4093
|
-
<span class="cstat-no" title="statement not covered" >
|
|
4094
|
-
<span class="cstat-no" title="statement not covered" > params.index = 0;</span>
|
|
4095
|
-
(<span class="cstat-no" title="statement not covered" >this as any)[parentKey] = undefined;</span>
|
|
4096
|
-
}
|
|
3897
|
+
} else <span class="cstat-no" title="statement not covered" >if ((this as any)[parentKey] === attribute) {</span>
|
|
3898
|
+
<span class="cstat-no" title="statement not covered" > params.index = 0;</span>
|
|
3899
|
+
(<span class="cstat-no" title="statement not covered" >this as any)[parentKey] = undefined;</span>
|
|
4097
3900
|
}
|
|
4098
3901
|
}
|
|
4099
3902
|
<span class="cstat-no" title="statement not covered" > return params;</span>
|
|
@@ -4111,10 +3914,10 @@ export class ViewComponent extends BaseNode {
|
|
|
4111
3914
|
*/
|
|
4112
3915
|
removeEvent(event: Event): void;
|
|
4113
3916
|
|
|
4114
|
-
<span class="fstat-no" title="function not covered" > removeEvent(
|
|
3917
|
+
<span class="fstat-no" title="function not covered" > removeEvent(</span>options: string | Event) {
|
|
4115
3918
|
let event: Event;
|
|
4116
3919
|
<span class="cstat-no" title="statement not covered" > if (typeof options === 'string') {</span>
|
|
4117
|
-
<span class="cstat-no" title="statement not covered" > event = (this.events as Event[]).find(
|
|
3920
|
+
<span class="cstat-no" title="statement not covered" > event = (this.events as Event[]).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>
|
|
4118
3921
|
<span class="cstat-no" title="statement not covered" > if (!event) {</span>
|
|
4119
3922
|
<span class="cstat-no" title="statement not covered" > throw new Error('找不到组件事件 ' + options);</span>
|
|
4120
3923
|
}
|
|
@@ -4124,7 +3927,7 @@ export class ViewComponent extends BaseNode {
|
|
|
4124
3927
|
<span class="cstat-no" title="statement not covered" > return event.delete();</span>
|
|
4125
3928
|
}
|
|
4126
3929
|
|
|
4127
|
-
<span class="fstat-no" title="function not covered" > __removeEvent(
|
|
3930
|
+
<span class="fstat-no" title="function not covered" > __removeEvent(</span>event: Event) {
|
|
4128
3931
|
const parentKey = <span class="cstat-no" title="statement not covered" >event.parentKey;</span>
|
|
4129
3932
|
const params: Params = <span class="cstat-no" title="statement not covered" >{</span>
|
|
4130
3933
|
parentNode: this,
|
|
@@ -4135,21 +3938,13 @@ export class ViewComponent extends BaseNode {
|
|
|
4135
3938
|
};
|
|
4136
3939
|
<span class="cstat-no" title="statement not covered" > if (parentKey) {</span>
|
|
4137
3940
|
<span class="cstat-no" title="statement not covered" > params.parentKey = parentKey;</span>
|
|
4138
|
-
|
|
4139
|
-
|
|
4140
|
-
// @ts-ignore
|
|
4141
|
-
const n = <span class="cstat-no" title="statement not covered" >event.__v_raw || event;</span>
|
|
4142
|
-
<span class="cstat-no" title="statement not covered" > if (Array.isArray((t as any)[parentKey])) {</span>
|
|
4143
|
-
// @ts-ignore
|
|
4144
|
-
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>
|
|
3941
|
+
<span class="cstat-no" title="statement not covered" > if (Array.isArray((this as any)[parentKey])) {</span>
|
|
3942
|
+
const index = (<span class="cstat-no" title="statement not covered" >this as any)[parentKey].indexOf(event);</span>
|
|
4145
3943
|
<span class="cstat-no" title="statement not covered" > ~index && (this as any)[parentKey].splice(index, 1);</span>
|
|
4146
3944
|
<span class="cstat-no" title="statement not covered" > params.index = index;</span>
|
|
4147
|
-
} else {
|
|
4148
|
-
|
|
4149
|
-
<span class="cstat-no" title="statement not covered" >
|
|
4150
|
-
<span class="cstat-no" title="statement not covered" > params.index = 0;</span>
|
|
4151
|
-
(<span class="cstat-no" title="statement not covered" >this as any)[parentKey] = undefined;</span>
|
|
4152
|
-
}
|
|
3945
|
+
} else <span class="cstat-no" title="statement not covered" >if ((this as any)[parentKey] === event) {</span>
|
|
3946
|
+
<span class="cstat-no" title="statement not covered" > params.index = 0;</span>
|
|
3947
|
+
(<span class="cstat-no" title="statement not covered" >this as any)[parentKey] = undefined;</span>
|
|
4153
3948
|
}
|
|
4154
3949
|
}
|
|
4155
3950
|
<span class="cstat-no" title="statement not covered" > return params;</span>
|
|
@@ -4167,10 +3962,10 @@ export class ViewComponent extends BaseNode {
|
|
|
4167
3962
|
*/
|
|
4168
3963
|
removeSlot(slot: Slot): void;
|
|
4169
3964
|
|
|
4170
|
-
<span class="fstat-no" title="function not covered" > removeSlot(
|
|
3965
|
+
<span class="fstat-no" title="function not covered" > removeSlot(</span>options: string | Slot) {
|
|
4171
3966
|
let slot: Slot;
|
|
4172
3967
|
<span class="cstat-no" title="statement not covered" > if (typeof options === 'string') {</span>
|
|
4173
|
-
<span class="cstat-no" title="statement not covered" > slot = (this.slots as Slot[]).find(
|
|
3968
|
+
<span class="cstat-no" title="statement not covered" > slot = (this.slots as Slot[]).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>
|
|
4174
3969
|
<span class="cstat-no" title="statement not covered" > if (!slot) {</span>
|
|
4175
3970
|
<span class="cstat-no" title="statement not covered" > throw new Error('找不到插槽 ' + options);</span>
|
|
4176
3971
|
}
|
|
@@ -4180,7 +3975,7 @@ export class ViewComponent extends BaseNode {
|
|
|
4180
3975
|
<span class="cstat-no" title="statement not covered" > return slot.delete();</span>
|
|
4181
3976
|
}
|
|
4182
3977
|
|
|
4183
|
-
<span class="fstat-no" title="function not covered" > __removeSlot(
|
|
3978
|
+
<span class="fstat-no" title="function not covered" > __removeSlot(</span>slot: Slot) {
|
|
4184
3979
|
const parentKey = <span class="cstat-no" title="statement not covered" >slot.parentKey;</span>
|
|
4185
3980
|
const params: Params = <span class="cstat-no" title="statement not covered" >{</span>
|
|
4186
3981
|
parentNode: this,
|
|
@@ -4191,21 +3986,13 @@ export class ViewComponent extends BaseNode {
|
|
|
4191
3986
|
};
|
|
4192
3987
|
<span class="cstat-no" title="statement not covered" > if (parentKey) {</span>
|
|
4193
3988
|
<span class="cstat-no" title="statement not covered" > params.parentKey = parentKey;</span>
|
|
4194
|
-
|
|
4195
|
-
|
|
4196
|
-
// @ts-ignore
|
|
4197
|
-
const n = <span class="cstat-no" title="statement not covered" >slot.__v_raw || slot;</span>
|
|
4198
|
-
<span class="cstat-no" title="statement not covered" > if (Array.isArray((t as any)[parentKey])) {</span>
|
|
4199
|
-
// @ts-ignore
|
|
4200
|
-
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>
|
|
3989
|
+
<span class="cstat-no" title="statement not covered" > if (Array.isArray((this as any)[parentKey])) {</span>
|
|
3990
|
+
const index = (<span class="cstat-no" title="statement not covered" >this as any)[parentKey].indexOf(slot);</span>
|
|
4201
3991
|
<span class="cstat-no" title="statement not covered" > ~index && (this as any)[parentKey].splice(index, 1);</span>
|
|
4202
3992
|
<span class="cstat-no" title="statement not covered" > params.index = index;</span>
|
|
4203
|
-
} else {
|
|
4204
|
-
|
|
4205
|
-
<span class="cstat-no" title="statement not covered" >
|
|
4206
|
-
<span class="cstat-no" title="statement not covered" > params.index = 0;</span>
|
|
4207
|
-
(<span class="cstat-no" title="statement not covered" >this as any)[parentKey] = undefined;</span>
|
|
4208
|
-
}
|
|
3993
|
+
} else <span class="cstat-no" title="statement not covered" >if ((this as any)[parentKey] === slot) {</span>
|
|
3994
|
+
<span class="cstat-no" title="statement not covered" > params.index = 0;</span>
|
|
3995
|
+
(<span class="cstat-no" title="statement not covered" >this as any)[parentKey] = undefined;</span>
|
|
4209
3996
|
}
|
|
4210
3997
|
}
|
|
4211
3998
|
<span class="cstat-no" title="statement not covered" > return params;</span>
|
|
@@ -4223,10 +4010,10 @@ export class ViewComponent extends BaseNode {
|
|
|
4223
4010
|
*/
|
|
4224
4011
|
removeLogic(logic: Logic): void;
|
|
4225
4012
|
|
|
4226
|
-
<span class="fstat-no" title="function not covered" > removeLogic(
|
|
4013
|
+
<span class="fstat-no" title="function not covered" > removeLogic(</span>options: string | Logic) {
|
|
4227
4014
|
let logic: Logic;
|
|
4228
4015
|
<span class="cstat-no" title="statement not covered" > if (typeof options === 'string') {</span>
|
|
4229
|
-
<span class="cstat-no" title="statement not covered" > logic = (this.methods as Logic[]).find(
|
|
4016
|
+
<span class="cstat-no" title="statement not covered" > logic = (this.methods as Logic[]).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>
|
|
4230
4017
|
<span class="cstat-no" title="statement not covered" > if (!logic) {</span>
|
|
4231
4018
|
<span class="cstat-no" title="statement not covered" > throw new Error('找不到逻辑 ' + options);</span>
|
|
4232
4019
|
}
|
|
@@ -4236,7 +4023,7 @@ export class ViewComponent extends BaseNode {
|
|
|
4236
4023
|
<span class="cstat-no" title="statement not covered" > return logic.delete();</span>
|
|
4237
4024
|
}
|
|
4238
4025
|
|
|
4239
|
-
<span class="fstat-no" title="function not covered" > __removeLogic(
|
|
4026
|
+
<span class="fstat-no" title="function not covered" > __removeLogic(</span>logic: Logic) {
|
|
4240
4027
|
const parentKey = <span class="cstat-no" title="statement not covered" >logic.parentKey;</span>
|
|
4241
4028
|
const params: Params = <span class="cstat-no" title="statement not covered" >{</span>
|
|
4242
4029
|
parentNode: this,
|
|
@@ -4247,21 +4034,13 @@ export class ViewComponent extends BaseNode {
|
|
|
4247
4034
|
};
|
|
4248
4035
|
<span class="cstat-no" title="statement not covered" > if (parentKey) {</span>
|
|
4249
4036
|
<span class="cstat-no" title="statement not covered" > params.parentKey = parentKey;</span>
|
|
4250
|
-
|
|
4251
|
-
|
|
4252
|
-
// @ts-ignore
|
|
4253
|
-
const n = <span class="cstat-no" title="statement not covered" >logic.__v_raw || logic;</span>
|
|
4254
|
-
<span class="cstat-no" title="statement not covered" > if (Array.isArray((t as any)[parentKey])) {</span>
|
|
4255
|
-
// @ts-ignore
|
|
4256
|
-
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>
|
|
4037
|
+
<span class="cstat-no" title="statement not covered" > if (Array.isArray((this as any)[parentKey])) {</span>
|
|
4038
|
+
const index = (<span class="cstat-no" title="statement not covered" >this as any)[parentKey].indexOf(logic);</span>
|
|
4257
4039
|
<span class="cstat-no" title="statement not covered" > ~index && (this as any)[parentKey].splice(index, 1);</span>
|
|
4258
4040
|
<span class="cstat-no" title="statement not covered" > params.index = index;</span>
|
|
4259
|
-
} else {
|
|
4260
|
-
|
|
4261
|
-
<span class="cstat-no" title="statement not covered" >
|
|
4262
|
-
<span class="cstat-no" title="statement not covered" > params.index = 0;</span>
|
|
4263
|
-
(<span class="cstat-no" title="statement not covered" >this as any)[parentKey] = undefined;</span>
|
|
4264
|
-
}
|
|
4041
|
+
} else <span class="cstat-no" title="statement not covered" >if ((this as any)[parentKey] === logic) {</span>
|
|
4042
|
+
<span class="cstat-no" title="statement not covered" > params.index = 0;</span>
|
|
4043
|
+
(<span class="cstat-no" title="statement not covered" >this as any)[parentKey] = undefined;</span>
|
|
4265
4044
|
}
|
|
4266
4045
|
}
|
|
4267
4046
|
<span class="cstat-no" title="statement not covered" > return params;</span>
|
|
@@ -4279,10 +4058,10 @@ export class ViewComponent extends BaseNode {
|
|
|
4279
4058
|
*/
|
|
4280
4059
|
removeViewComponent(viewComponent: ViewComponent): void;
|
|
4281
4060
|
|
|
4282
|
-
<span class="fstat-no" title="function not covered" > removeViewComponent(
|
|
4061
|
+
<span class="fstat-no" title="function not covered" > removeViewComponent(</span>options: string | ViewComponent) {
|
|
4283
4062
|
let viewComponent: ViewComponent;
|
|
4284
4063
|
<span class="cstat-no" title="statement not covered" > if (typeof options === 'string') {</span>
|
|
4285
|
-
<span class="cstat-no" title="statement not covered" > viewComponent = (this.children as ViewComponent[]).find(
|
|
4064
|
+
<span class="cstat-no" title="statement not covered" > viewComponent = (this.children as ViewComponent[]).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>
|
|
4286
4065
|
<span class="cstat-no" title="statement not covered" > if (!viewComponent) {</span>
|
|
4287
4066
|
<span class="cstat-no" title="statement not covered" > throw new Error('找不到页面组件 ' + options);</span>
|
|
4288
4067
|
}
|
|
@@ -4292,7 +4071,7 @@ export class ViewComponent extends BaseNode {
|
|
|
4292
4071
|
<span class="cstat-no" title="statement not covered" > return viewComponent.delete();</span>
|
|
4293
4072
|
}
|
|
4294
4073
|
|
|
4295
|
-
<span class="fstat-no" title="function not covered" > __removeViewComponent(
|
|
4074
|
+
<span class="fstat-no" title="function not covered" > __removeViewComponent(</span>viewComponent: ViewComponent) {
|
|
4296
4075
|
const parentKey = <span class="cstat-no" title="statement not covered" >viewComponent.parentKey;</span>
|
|
4297
4076
|
const params: Params = <span class="cstat-no" title="statement not covered" >{</span>
|
|
4298
4077
|
parentNode: this,
|
|
@@ -4303,21 +4082,13 @@ export class ViewComponent extends BaseNode {
|
|
|
4303
4082
|
};
|
|
4304
4083
|
<span class="cstat-no" title="statement not covered" > if (parentKey) {</span>
|
|
4305
4084
|
<span class="cstat-no" title="statement not covered" > params.parentKey = parentKey;</span>
|
|
4306
|
-
|
|
4307
|
-
|
|
4308
|
-
// @ts-ignore
|
|
4309
|
-
const n = <span class="cstat-no" title="statement not covered" >viewComponent.__v_raw || viewComponent;</span>
|
|
4310
|
-
<span class="cstat-no" title="statement not covered" > if (Array.isArray((t as any)[parentKey])) {</span>
|
|
4311
|
-
// @ts-ignore
|
|
4312
|
-
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>
|
|
4085
|
+
<span class="cstat-no" title="statement not covered" > if (Array.isArray((this as any)[parentKey])) {</span>
|
|
4086
|
+
const index = (<span class="cstat-no" title="statement not covered" >this as any)[parentKey].indexOf(viewComponent);</span>
|
|
4313
4087
|
<span class="cstat-no" title="statement not covered" > ~index && (this as any)[parentKey].splice(index, 1);</span>
|
|
4314
4088
|
<span class="cstat-no" title="statement not covered" > params.index = index;</span>
|
|
4315
|
-
} else {
|
|
4316
|
-
|
|
4317
|
-
<span class="cstat-no" title="statement not covered" >
|
|
4318
|
-
<span class="cstat-no" title="statement not covered" > params.index = 0;</span>
|
|
4319
|
-
(<span class="cstat-no" title="statement not covered" >this as any)[parentKey] = undefined;</span>
|
|
4320
|
-
}
|
|
4089
|
+
} else <span class="cstat-no" title="statement not covered" >if ((this as any)[parentKey] === viewComponent) {</span>
|
|
4090
|
+
<span class="cstat-no" title="statement not covered" > params.index = 0;</span>
|
|
4091
|
+
(<span class="cstat-no" title="statement not covered" >this as any)[parentKey] = undefined;</span>
|
|
4321
4092
|
}
|
|
4322
4093
|
}
|
|
4323
4094
|
<span class="cstat-no" title="statement not covered" > return params;</span>
|
|
@@ -4335,10 +4106,10 @@ export class ViewComponent extends BaseNode {
|
|
|
4335
4106
|
*/
|
|
4336
4107
|
removeViewBlock(viewBlock: ViewBlock): void;
|
|
4337
4108
|
|
|
4338
|
-
<span class="fstat-no" title="function not covered" > removeViewBlock(
|
|
4109
|
+
<span class="fstat-no" title="function not covered" > removeViewBlock(</span>options: string | ViewBlock) {
|
|
4339
4110
|
let viewBlock: ViewBlock;
|
|
4340
4111
|
<span class="cstat-no" title="statement not covered" > if (typeof options === 'string') {</span>
|
|
4341
|
-
<span class="cstat-no" title="statement not covered" > viewBlock = (this.blocks as ViewBlock[]).find(
|
|
4112
|
+
<span class="cstat-no" title="statement not covered" > viewBlock = (this.blocks as ViewBlock[]).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>
|
|
4342
4113
|
<span class="cstat-no" title="statement not covered" > if (!viewBlock) {</span>
|
|
4343
4114
|
<span class="cstat-no" title="statement not covered" > throw new Error('找不到页面代码块 ' + options);</span>
|
|
4344
4115
|
}
|
|
@@ -4348,7 +4119,7 @@ export class ViewComponent extends BaseNode {
|
|
|
4348
4119
|
<span class="cstat-no" title="statement not covered" > return viewBlock.delete();</span>
|
|
4349
4120
|
}
|
|
4350
4121
|
|
|
4351
|
-
<span class="fstat-no" title="function not covered" > __removeViewBlock(
|
|
4122
|
+
<span class="fstat-no" title="function not covered" > __removeViewBlock(</span>viewBlock: ViewBlock) {
|
|
4352
4123
|
const parentKey = <span class="cstat-no" title="statement not covered" >viewBlock.parentKey;</span>
|
|
4353
4124
|
const params: Params = <span class="cstat-no" title="statement not covered" >{</span>
|
|
4354
4125
|
parentNode: this,
|
|
@@ -4359,21 +4130,13 @@ export class ViewComponent extends BaseNode {
|
|
|
4359
4130
|
};
|
|
4360
4131
|
<span class="cstat-no" title="statement not covered" > if (parentKey) {</span>
|
|
4361
4132
|
<span class="cstat-no" title="statement not covered" > params.parentKey = parentKey;</span>
|
|
4362
|
-
|
|
4363
|
-
|
|
4364
|
-
// @ts-ignore
|
|
4365
|
-
const n = <span class="cstat-no" title="statement not covered" >viewBlock.__v_raw || viewBlock;</span>
|
|
4366
|
-
<span class="cstat-no" title="statement not covered" > if (Array.isArray((t as any)[parentKey])) {</span>
|
|
4367
|
-
// @ts-ignore
|
|
4368
|
-
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>
|
|
4133
|
+
<span class="cstat-no" title="statement not covered" > if (Array.isArray((this as any)[parentKey])) {</span>
|
|
4134
|
+
const index = (<span class="cstat-no" title="statement not covered" >this as any)[parentKey].indexOf(viewBlock);</span>
|
|
4369
4135
|
<span class="cstat-no" title="statement not covered" > ~index && (this as any)[parentKey].splice(index, 1);</span>
|
|
4370
4136
|
<span class="cstat-no" title="statement not covered" > params.index = index;</span>
|
|
4371
|
-
} else {
|
|
4372
|
-
|
|
4373
|
-
<span class="cstat-no" title="statement not covered" >
|
|
4374
|
-
<span class="cstat-no" title="statement not covered" > params.index = 0;</span>
|
|
4375
|
-
(<span class="cstat-no" title="statement not covered" >this as any)[parentKey] = undefined;</span>
|
|
4376
|
-
}
|
|
4137
|
+
} else <span class="cstat-no" title="statement not covered" >if ((this as any)[parentKey] === viewBlock) {</span>
|
|
4138
|
+
<span class="cstat-no" title="statement not covered" > params.index = 0;</span>
|
|
4139
|
+
(<span class="cstat-no" title="statement not covered" >this as any)[parentKey] = undefined;</span>
|
|
4377
4140
|
}
|
|
4378
4141
|
}
|
|
4379
4142
|
<span class="cstat-no" title="statement not covered" > return params;</span>
|
|
@@ -4402,7 +4165,7 @@ export default ViewComponent;
|
|
|
4402
4165
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
4403
4166
|
Code coverage generated by
|
|
4404
4167
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
4405
|
-
at 2023-
|
|
4168
|
+
at 2023-10-18T11:36:07.885Z
|
|
4406
4169
|
</div>
|
|
4407
4170
|
<script src="../../prettify.js"></script>
|
|
4408
4171
|
<script>
|