@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.
|
|
26
|
+
<span class="strong">26.93% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>285/1058</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">
|
|
33
|
+
<span class="strong">24.52% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>
|
|
35
|
+
<span class='fraction'>182/742</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
|
40
|
-
<span class="strong">20% </span>
|
|
40
|
+
<span class="strong">20.38% </span>
|
|
41
41
|
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>
|
|
42
|
+
<span class='fraction'>42/206</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">
|
|
47
|
+
<span class="strong">26.53% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>264/995</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -2969,149 +2969,7 @@
|
|
|
2969
2969
|
<a name='L2904'></a><a href='#L2904'>2904</a>
|
|
2970
2970
|
<a name='L2905'></a><a href='#L2905'>2905</a>
|
|
2971
2971
|
<a name='L2906'></a><a href='#L2906'>2906</a>
|
|
2972
|
-
<a name='L2907'></a><a href='#L2907'>2907</a>
|
|
2973
|
-
<a name='L2908'></a><a href='#L2908'>2908</a>
|
|
2974
|
-
<a name='L2909'></a><a href='#L2909'>2909</a>
|
|
2975
|
-
<a name='L2910'></a><a href='#L2910'>2910</a>
|
|
2976
|
-
<a name='L2911'></a><a href='#L2911'>2911</a>
|
|
2977
|
-
<a name='L2912'></a><a href='#L2912'>2912</a>
|
|
2978
|
-
<a name='L2913'></a><a href='#L2913'>2913</a>
|
|
2979
|
-
<a name='L2914'></a><a href='#L2914'>2914</a>
|
|
2980
|
-
<a name='L2915'></a><a href='#L2915'>2915</a>
|
|
2981
|
-
<a name='L2916'></a><a href='#L2916'>2916</a>
|
|
2982
|
-
<a name='L2917'></a><a href='#L2917'>2917</a>
|
|
2983
|
-
<a name='L2918'></a><a href='#L2918'>2918</a>
|
|
2984
|
-
<a name='L2919'></a><a href='#L2919'>2919</a>
|
|
2985
|
-
<a name='L2920'></a><a href='#L2920'>2920</a>
|
|
2986
|
-
<a name='L2921'></a><a href='#L2921'>2921</a>
|
|
2987
|
-
<a name='L2922'></a><a href='#L2922'>2922</a>
|
|
2988
|
-
<a name='L2923'></a><a href='#L2923'>2923</a>
|
|
2989
|
-
<a name='L2924'></a><a href='#L2924'>2924</a>
|
|
2990
|
-
<a name='L2925'></a><a href='#L2925'>2925</a>
|
|
2991
|
-
<a name='L2926'></a><a href='#L2926'>2926</a>
|
|
2992
|
-
<a name='L2927'></a><a href='#L2927'>2927</a>
|
|
2993
|
-
<a name='L2928'></a><a href='#L2928'>2928</a>
|
|
2994
|
-
<a name='L2929'></a><a href='#L2929'>2929</a>
|
|
2995
|
-
<a name='L2930'></a><a href='#L2930'>2930</a>
|
|
2996
|
-
<a name='L2931'></a><a href='#L2931'>2931</a>
|
|
2997
|
-
<a name='L2932'></a><a href='#L2932'>2932</a>
|
|
2998
|
-
<a name='L2933'></a><a href='#L2933'>2933</a>
|
|
2999
|
-
<a name='L2934'></a><a href='#L2934'>2934</a>
|
|
3000
|
-
<a name='L2935'></a><a href='#L2935'>2935</a>
|
|
3001
|
-
<a name='L2936'></a><a href='#L2936'>2936</a>
|
|
3002
|
-
<a name='L2937'></a><a href='#L2937'>2937</a>
|
|
3003
|
-
<a name='L2938'></a><a href='#L2938'>2938</a>
|
|
3004
|
-
<a name='L2939'></a><a href='#L2939'>2939</a>
|
|
3005
|
-
<a name='L2940'></a><a href='#L2940'>2940</a>
|
|
3006
|
-
<a name='L2941'></a><a href='#L2941'>2941</a>
|
|
3007
|
-
<a name='L2942'></a><a href='#L2942'>2942</a>
|
|
3008
|
-
<a name='L2943'></a><a href='#L2943'>2943</a>
|
|
3009
|
-
<a name='L2944'></a><a href='#L2944'>2944</a>
|
|
3010
|
-
<a name='L2945'></a><a href='#L2945'>2945</a>
|
|
3011
|
-
<a name='L2946'></a><a href='#L2946'>2946</a>
|
|
3012
|
-
<a name='L2947'></a><a href='#L2947'>2947</a>
|
|
3013
|
-
<a name='L2948'></a><a href='#L2948'>2948</a>
|
|
3014
|
-
<a name='L2949'></a><a href='#L2949'>2949</a>
|
|
3015
|
-
<a name='L2950'></a><a href='#L2950'>2950</a>
|
|
3016
|
-
<a name='L2951'></a><a href='#L2951'>2951</a>
|
|
3017
|
-
<a name='L2952'></a><a href='#L2952'>2952</a>
|
|
3018
|
-
<a name='L2953'></a><a href='#L2953'>2953</a>
|
|
3019
|
-
<a name='L2954'></a><a href='#L2954'>2954</a>
|
|
3020
|
-
<a name='L2955'></a><a href='#L2955'>2955</a>
|
|
3021
|
-
<a name='L2956'></a><a href='#L2956'>2956</a>
|
|
3022
|
-
<a name='L2957'></a><a href='#L2957'>2957</a>
|
|
3023
|
-
<a name='L2958'></a><a href='#L2958'>2958</a>
|
|
3024
|
-
<a name='L2959'></a><a href='#L2959'>2959</a>
|
|
3025
|
-
<a name='L2960'></a><a href='#L2960'>2960</a>
|
|
3026
|
-
<a name='L2961'></a><a href='#L2961'>2961</a>
|
|
3027
|
-
<a name='L2962'></a><a href='#L2962'>2962</a>
|
|
3028
|
-
<a name='L2963'></a><a href='#L2963'>2963</a>
|
|
3029
|
-
<a name='L2964'></a><a href='#L2964'>2964</a>
|
|
3030
|
-
<a name='L2965'></a><a href='#L2965'>2965</a>
|
|
3031
|
-
<a name='L2966'></a><a href='#L2966'>2966</a>
|
|
3032
|
-
<a name='L2967'></a><a href='#L2967'>2967</a>
|
|
3033
|
-
<a name='L2968'></a><a href='#L2968'>2968</a>
|
|
3034
|
-
<a name='L2969'></a><a href='#L2969'>2969</a>
|
|
3035
|
-
<a name='L2970'></a><a href='#L2970'>2970</a>
|
|
3036
|
-
<a name='L2971'></a><a href='#L2971'>2971</a>
|
|
3037
|
-
<a name='L2972'></a><a href='#L2972'>2972</a>
|
|
3038
|
-
<a name='L2973'></a><a href='#L2973'>2973</a>
|
|
3039
|
-
<a name='L2974'></a><a href='#L2974'>2974</a>
|
|
3040
|
-
<a name='L2975'></a><a href='#L2975'>2975</a>
|
|
3041
|
-
<a name='L2976'></a><a href='#L2976'>2976</a>
|
|
3042
|
-
<a name='L2977'></a><a href='#L2977'>2977</a>
|
|
3043
|
-
<a name='L2978'></a><a href='#L2978'>2978</a>
|
|
3044
|
-
<a name='L2979'></a><a href='#L2979'>2979</a>
|
|
3045
|
-
<a name='L2980'></a><a href='#L2980'>2980</a>
|
|
3046
|
-
<a name='L2981'></a><a href='#L2981'>2981</a>
|
|
3047
|
-
<a name='L2982'></a><a href='#L2982'>2982</a>
|
|
3048
|
-
<a name='L2983'></a><a href='#L2983'>2983</a>
|
|
3049
|
-
<a name='L2984'></a><a href='#L2984'>2984</a>
|
|
3050
|
-
<a name='L2985'></a><a href='#L2985'>2985</a>
|
|
3051
|
-
<a name='L2986'></a><a href='#L2986'>2986</a>
|
|
3052
|
-
<a name='L2987'></a><a href='#L2987'>2987</a>
|
|
3053
|
-
<a name='L2988'></a><a href='#L2988'>2988</a>
|
|
3054
|
-
<a name='L2989'></a><a href='#L2989'>2989</a>
|
|
3055
|
-
<a name='L2990'></a><a href='#L2990'>2990</a>
|
|
3056
|
-
<a name='L2991'></a><a href='#L2991'>2991</a>
|
|
3057
|
-
<a name='L2992'></a><a href='#L2992'>2992</a>
|
|
3058
|
-
<a name='L2993'></a><a href='#L2993'>2993</a>
|
|
3059
|
-
<a name='L2994'></a><a href='#L2994'>2994</a>
|
|
3060
|
-
<a name='L2995'></a><a href='#L2995'>2995</a>
|
|
3061
|
-
<a name='L2996'></a><a href='#L2996'>2996</a>
|
|
3062
|
-
<a name='L2997'></a><a href='#L2997'>2997</a>
|
|
3063
|
-
<a name='L2998'></a><a href='#L2998'>2998</a>
|
|
3064
|
-
<a name='L2999'></a><a href='#L2999'>2999</a>
|
|
3065
|
-
<a name='L3000'></a><a href='#L3000'>3000</a>
|
|
3066
|
-
<a name='L3001'></a><a href='#L3001'>3001</a>
|
|
3067
|
-
<a name='L3002'></a><a href='#L3002'>3002</a>
|
|
3068
|
-
<a name='L3003'></a><a href='#L3003'>3003</a>
|
|
3069
|
-
<a name='L3004'></a><a href='#L3004'>3004</a>
|
|
3070
|
-
<a name='L3005'></a><a href='#L3005'>3005</a>
|
|
3071
|
-
<a name='L3006'></a><a href='#L3006'>3006</a>
|
|
3072
|
-
<a name='L3007'></a><a href='#L3007'>3007</a>
|
|
3073
|
-
<a name='L3008'></a><a href='#L3008'>3008</a>
|
|
3074
|
-
<a name='L3009'></a><a href='#L3009'>3009</a>
|
|
3075
|
-
<a name='L3010'></a><a href='#L3010'>3010</a>
|
|
3076
|
-
<a name='L3011'></a><a href='#L3011'>3011</a>
|
|
3077
|
-
<a name='L3012'></a><a href='#L3012'>3012</a>
|
|
3078
|
-
<a name='L3013'></a><a href='#L3013'>3013</a>
|
|
3079
|
-
<a name='L3014'></a><a href='#L3014'>3014</a>
|
|
3080
|
-
<a name='L3015'></a><a href='#L3015'>3015</a>
|
|
3081
|
-
<a name='L3016'></a><a href='#L3016'>3016</a>
|
|
3082
|
-
<a name='L3017'></a><a href='#L3017'>3017</a>
|
|
3083
|
-
<a name='L3018'></a><a href='#L3018'>3018</a>
|
|
3084
|
-
<a name='L3019'></a><a href='#L3019'>3019</a>
|
|
3085
|
-
<a name='L3020'></a><a href='#L3020'>3020</a>
|
|
3086
|
-
<a name='L3021'></a><a href='#L3021'>3021</a>
|
|
3087
|
-
<a name='L3022'></a><a href='#L3022'>3022</a>
|
|
3088
|
-
<a name='L3023'></a><a href='#L3023'>3023</a>
|
|
3089
|
-
<a name='L3024'></a><a href='#L3024'>3024</a>
|
|
3090
|
-
<a name='L3025'></a><a href='#L3025'>3025</a>
|
|
3091
|
-
<a name='L3026'></a><a href='#L3026'>3026</a>
|
|
3092
|
-
<a name='L3027'></a><a href='#L3027'>3027</a>
|
|
3093
|
-
<a name='L3028'></a><a href='#L3028'>3028</a>
|
|
3094
|
-
<a name='L3029'></a><a href='#L3029'>3029</a>
|
|
3095
|
-
<a name='L3030'></a><a href='#L3030'>3030</a>
|
|
3096
|
-
<a name='L3031'></a><a href='#L3031'>3031</a>
|
|
3097
|
-
<a name='L3032'></a><a href='#L3032'>3032</a>
|
|
3098
|
-
<a name='L3033'></a><a href='#L3033'>3033</a>
|
|
3099
|
-
<a name='L3034'></a><a href='#L3034'>3034</a>
|
|
3100
|
-
<a name='L3035'></a><a href='#L3035'>3035</a>
|
|
3101
|
-
<a name='L3036'></a><a href='#L3036'>3036</a>
|
|
3102
|
-
<a name='L3037'></a><a href='#L3037'>3037</a>
|
|
3103
|
-
<a name='L3038'></a><a href='#L3038'>3038</a>
|
|
3104
|
-
<a name='L3039'></a><a href='#L3039'>3039</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">1923x</span>
|
|
3105
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3106
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3107
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3108
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3109
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3110
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3111
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3112
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3113
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3114
|
-
<span class="cline-any cline-yes">1x</span>
|
|
2972
|
+
<a name='L2907'></a><a href='#L2907'>2907</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">1x</span>
|
|
3115
2973
|
<span class="cline-any cline-yes">1x</span>
|
|
3116
2974
|
<span class="cline-any cline-neutral"> </span>
|
|
3117
2975
|
<span class="cline-any cline-yes">1x</span>
|
|
@@ -3121,8 +2979,8 @@
|
|
|
3121
2979
|
<span class="cline-any cline-yes">1x</span>
|
|
3122
2980
|
<span class="cline-any cline-yes">1x</span>
|
|
3123
2981
|
<span class="cline-any cline-yes">1x</span>
|
|
3124
|
-
<span class="cline-any cline-
|
|
3125
|
-
<span class="cline-any cline-
|
|
2982
|
+
<span class="cline-any cline-yes">1x</span>
|
|
2983
|
+
<span class="cline-any cline-yes">1x</span>
|
|
3126
2984
|
<span class="cline-any cline-yes">1x</span>
|
|
3127
2985
|
<span class="cline-any cline-neutral"> </span>
|
|
3128
2986
|
<span class="cline-any cline-yes">1x</span>
|
|
@@ -3150,7 +3008,7 @@
|
|
|
3150
3008
|
<span class="cline-any cline-neutral"> </span>
|
|
3151
3009
|
<span class="cline-any cline-neutral"> </span>
|
|
3152
3010
|
<span class="cline-any cline-neutral"> </span>
|
|
3153
|
-
<span class="cline-any cline-
|
|
3011
|
+
<span class="cline-any cline-neutral"> </span>
|
|
3154
3012
|
<span class="cline-any cline-neutral"> </span>
|
|
3155
3013
|
<span class="cline-any cline-no"> </span>
|
|
3156
3014
|
<span class="cline-any cline-no"> </span>
|
|
@@ -3191,7 +3049,7 @@
|
|
|
3191
3049
|
<span class="cline-any cline-neutral"> </span>
|
|
3192
3050
|
<span class="cline-any cline-neutral"> </span>
|
|
3193
3051
|
<span class="cline-any cline-neutral"> </span>
|
|
3194
|
-
<span class="cline-any cline-
|
|
3052
|
+
<span class="cline-any cline-neutral"> </span>
|
|
3195
3053
|
<span class="cline-any cline-no"> </span>
|
|
3196
3054
|
<span class="cline-any cline-no"> </span>
|
|
3197
3055
|
<span class="cline-any cline-no"> </span>
|
|
@@ -3259,28 +3117,6 @@
|
|
|
3259
3117
|
<span class="cline-any cline-no"> </span>
|
|
3260
3118
|
<span class="cline-any cline-no"> </span>
|
|
3261
3119
|
<span class="cline-any cline-neutral"> </span>
|
|
3262
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3263
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3264
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3265
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3266
|
-
<span class="cline-any cline-no"> </span>
|
|
3267
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3268
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3269
|
-
<span class="cline-any cline-no"> </span>
|
|
3270
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3271
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3272
|
-
<span class="cline-any cline-no"> </span>
|
|
3273
|
-
<span class="cline-any cline-no"> </span>
|
|
3274
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3275
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3276
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3277
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3278
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3279
|
-
<span class="cline-any cline-no"> </span>
|
|
3280
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3281
|
-
<span class="cline-any cline-no"> </span>
|
|
3282
|
-
<span class="cline-any cline-no"> </span>
|
|
3283
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3284
3120
|
<span class="cline-any cline-no"> </span>
|
|
3285
3121
|
<span class="cline-any cline-neutral"> </span>
|
|
3286
3122
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -3350,7 +3186,7 @@
|
|
|
3350
3186
|
<span class="cline-any cline-no"> </span>
|
|
3351
3187
|
<span class="cline-any cline-neutral"> </span>
|
|
3352
3188
|
<span class="cline-any cline-neutral"> </span>
|
|
3353
|
-
<span class="cline-any cline-
|
|
3189
|
+
<span class="cline-any cline-neutral"> </span>
|
|
3354
3190
|
<span class="cline-any cline-no"> </span>
|
|
3355
3191
|
<span class="cline-any cline-neutral"> </span>
|
|
3356
3192
|
<span class="cline-any cline-no"> </span>
|
|
@@ -3378,8 +3214,8 @@
|
|
|
3378
3214
|
<span class="cline-any cline-yes">1x</span>
|
|
3379
3215
|
<span class="cline-any cline-yes">1x</span>
|
|
3380
3216
|
<span class="cline-any cline-yes">1x</span>
|
|
3381
|
-
<span class="cline-any cline-
|
|
3382
|
-
<span class="cline-any cline-
|
|
3217
|
+
<span class="cline-any cline-yes">1x</span>
|
|
3218
|
+
<span class="cline-any cline-yes">1x</span>
|
|
3383
3219
|
<span class="cline-any cline-neutral"> </span>
|
|
3384
3220
|
<span class="cline-any cline-neutral"> </span>
|
|
3385
3221
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -3393,6 +3229,7 @@
|
|
|
3393
3229
|
<span class="cline-any cline-neutral"> </span>
|
|
3394
3230
|
<span class="cline-any cline-yes">1x</span>
|
|
3395
3231
|
<span class="cline-any cline-neutral"> </span>
|
|
3232
|
+
<span class="cline-any cline-yes">1x</span>
|
|
3396
3233
|
<span class="cline-any cline-neutral"> </span>
|
|
3397
3234
|
<span class="cline-any cline-neutral"> </span>
|
|
3398
3235
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -3403,10 +3240,6 @@
|
|
|
3403
3240
|
<span class="cline-any cline-neutral"> </span>
|
|
3404
3241
|
<span class="cline-any cline-neutral"> </span>
|
|
3405
3242
|
<span class="cline-any cline-neutral"> </span>
|
|
3406
|
-
<span class="cline-any cline-yes">1x</span>
|
|
3407
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3408
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3409
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3410
3243
|
<span class="cline-any cline-neutral"> </span>
|
|
3411
3244
|
<span class="cline-any cline-neutral"> </span>
|
|
3412
3245
|
<span class="cline-any cline-yes">1x</span>
|
|
@@ -3415,11 +3248,6 @@
|
|
|
3415
3248
|
<span class="cline-any cline-neutral"> </span>
|
|
3416
3249
|
<span class="cline-any cline-neutral"> </span>
|
|
3417
3250
|
<span class="cline-any cline-neutral"> </span>
|
|
3418
|
-
<span class="cline-any cline-yes">1x</span>
|
|
3419
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3420
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3421
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3422
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3423
3251
|
<span class="cline-any cline-neutral"> </span>
|
|
3424
3252
|
<span class="cline-any cline-yes">1x</span>
|
|
3425
3253
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -3427,11 +3255,6 @@
|
|
|
3427
3255
|
<span class="cline-any cline-neutral"> </span>
|
|
3428
3256
|
<span class="cline-any cline-neutral"> </span>
|
|
3429
3257
|
<span class="cline-any cline-neutral"> </span>
|
|
3430
|
-
<span class="cline-any cline-yes">1x</span>
|
|
3431
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3432
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3433
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3434
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3435
3258
|
<span class="cline-any cline-neutral"> </span>
|
|
3436
3259
|
<span class="cline-any cline-yes">1x</span>
|
|
3437
3260
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -3439,11 +3262,6 @@
|
|
|
3439
3262
|
<span class="cline-any cline-neutral"> </span>
|
|
3440
3263
|
<span class="cline-any cline-neutral"> </span>
|
|
3441
3264
|
<span class="cline-any cline-neutral"> </span>
|
|
3442
|
-
<span class="cline-any cline-yes">1x</span>
|
|
3443
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3444
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3445
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3446
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3447
3265
|
<span class="cline-any cline-neutral"> </span>
|
|
3448
3266
|
<span class="cline-any cline-yes">1x</span>
|
|
3449
3267
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -3451,66 +3269,65 @@
|
|
|
3451
3269
|
<span class="cline-any cline-neutral"> </span>
|
|
3452
3270
|
<span class="cline-any cline-neutral"> </span>
|
|
3453
3271
|
<span class="cline-any cline-neutral"> </span>
|
|
3454
|
-
<span class="cline-any cline-yes">1x</span>
|
|
3455
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3456
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3457
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3458
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3459
3272
|
<span class="cline-any cline-neutral"> </span>
|
|
3273
|
+
<span class="cline-any cline-yes">1x</span>
|
|
3460
3274
|
<span class="cline-any cline-neutral"> </span>
|
|
3461
3275
|
<span class="cline-any cline-neutral"> </span>
|
|
3462
3276
|
<span class="cline-any cline-neutral"> </span>
|
|
3463
3277
|
<span class="cline-any cline-neutral"> </span>
|
|
3464
|
-
<span class="cline-any cline-yes">229x</span>
|
|
3465
3278
|
<span class="cline-any cline-neutral"> </span>
|
|
3466
3279
|
<span class="cline-any cline-neutral"> </span>
|
|
3280
|
+
<span class="cline-any cline-yes">1x</span>
|
|
3467
3281
|
<span class="cline-any cline-neutral"> </span>
|
|
3468
3282
|
<span class="cline-any cline-neutral"> </span>
|
|
3469
3283
|
<span class="cline-any cline-neutral"> </span>
|
|
3470
3284
|
<span class="cline-any cline-neutral"> </span>
|
|
3471
3285
|
<span class="cline-any cline-neutral"> </span>
|
|
3472
3286
|
<span class="cline-any cline-neutral"> </span>
|
|
3287
|
+
<span class="cline-any cline-yes">1x</span>
|
|
3473
3288
|
<span class="cline-any cline-neutral"> </span>
|
|
3474
|
-
<span class="cline-any cline-yes">229x</span>
|
|
3475
3289
|
<span class="cline-any cline-neutral"> </span>
|
|
3476
3290
|
<span class="cline-any cline-neutral"> </span>
|
|
3477
3291
|
<span class="cline-any cline-neutral"> </span>
|
|
3478
3292
|
<span class="cline-any cline-neutral"> </span>
|
|
3479
3293
|
<span class="cline-any cline-neutral"> </span>
|
|
3294
|
+
<span class="cline-any cline-yes">1x</span>
|
|
3480
3295
|
<span class="cline-any cline-neutral"> </span>
|
|
3481
3296
|
<span class="cline-any cline-neutral"> </span>
|
|
3482
3297
|
<span class="cline-any cline-neutral"> </span>
|
|
3483
3298
|
<span class="cline-any cline-neutral"> </span>
|
|
3484
|
-
<span class="cline-any cline-yes">229x</span>
|
|
3485
3299
|
<span class="cline-any cline-neutral"> </span>
|
|
3300
|
+
<span class="cline-any cline-yes">186x</span>
|
|
3486
3301
|
<span class="cline-any cline-neutral"> </span>
|
|
3487
3302
|
<span class="cline-any cline-neutral"> </span>
|
|
3488
3303
|
<span class="cline-any cline-neutral"> </span>
|
|
3489
3304
|
<span class="cline-any cline-neutral"> </span>
|
|
3490
3305
|
<span class="cline-any cline-neutral"> </span>
|
|
3306
|
+
<span class="cline-any cline-yes">186x</span>
|
|
3491
3307
|
<span class="cline-any cline-neutral"> </span>
|
|
3492
3308
|
<span class="cline-any cline-neutral"> </span>
|
|
3493
|
-
<span class="cline-any cline-yes">229x</span>
|
|
3494
3309
|
<span class="cline-any cline-neutral"> </span>
|
|
3495
3310
|
<span class="cline-any cline-neutral"> </span>
|
|
3496
3311
|
<span class="cline-any cline-neutral"> </span>
|
|
3312
|
+
<span class="cline-any cline-yes">186x</span>
|
|
3497
3313
|
<span class="cline-any cline-neutral"> </span>
|
|
3498
3314
|
<span class="cline-any cline-neutral"> </span>
|
|
3499
3315
|
<span class="cline-any cline-neutral"> </span>
|
|
3500
3316
|
<span class="cline-any cline-neutral"> </span>
|
|
3501
3317
|
<span class="cline-any cline-neutral"> </span>
|
|
3318
|
+
<span class="cline-any cline-yes">186x</span>
|
|
3502
3319
|
<span class="cline-any cline-neutral"> </span>
|
|
3503
|
-
<span class="cline-any cline-yes">229x</span>
|
|
3504
3320
|
<span class="cline-any cline-neutral"> </span>
|
|
3505
3321
|
<span class="cline-any cline-neutral"> </span>
|
|
3506
3322
|
<span class="cline-any cline-neutral"> </span>
|
|
3507
3323
|
<span class="cline-any cline-neutral"> </span>
|
|
3324
|
+
<span class="cline-any cline-yes">186x</span>
|
|
3508
3325
|
<span class="cline-any cline-neutral"> </span>
|
|
3509
3326
|
<span class="cline-any cline-neutral"> </span>
|
|
3510
3327
|
<span class="cline-any cline-neutral"> </span>
|
|
3511
3328
|
<span class="cline-any cline-neutral"> </span>
|
|
3512
3329
|
<span class="cline-any cline-neutral"> </span>
|
|
3513
|
-
<span class="cline-any cline-yes">
|
|
3330
|
+
<span class="cline-any cline-yes">186x</span>
|
|
3514
3331
|
<span class="cline-any cline-neutral"> </span>
|
|
3515
3332
|
<span class="cline-any cline-neutral"> </span>
|
|
3516
3333
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -3541,9 +3358,9 @@
|
|
|
3541
3358
|
<span class="cline-any cline-neutral"> </span>
|
|
3542
3359
|
<span class="cline-any cline-neutral"> </span>
|
|
3543
3360
|
<span class="cline-any cline-neutral"> </span>
|
|
3544
|
-
<span class="cline-any cline-yes">
|
|
3545
|
-
<span class="cline-any cline-yes">
|
|
3546
|
-
<span class="cline-any cline-yes">
|
|
3361
|
+
<span class="cline-any cline-yes">186x</span>
|
|
3362
|
+
<span class="cline-any cline-yes">186x</span>
|
|
3363
|
+
<span class="cline-any cline-yes">186x</span>
|
|
3547
3364
|
<span class="cline-any cline-neutral"> </span>
|
|
3548
3365
|
<span class="cline-any cline-neutral"> </span>
|
|
3549
3366
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -3628,7 +3445,6 @@
|
|
|
3628
3445
|
<span class="cline-any cline-neutral"> </span>
|
|
3629
3446
|
<span class="cline-any cline-no"> </span>
|
|
3630
3447
|
<span class="cline-any cline-no"> </span>
|
|
3631
|
-
<span class="cline-any cline-no"> </span>
|
|
3632
3448
|
<span class="cline-any cline-neutral"> </span>
|
|
3633
3449
|
<span class="cline-any cline-no"> </span>
|
|
3634
3450
|
<span class="cline-any cline-no"> </span>
|
|
@@ -3782,7 +3598,6 @@
|
|
|
3782
3598
|
<span class="cline-any cline-neutral"> </span>
|
|
3783
3599
|
<span class="cline-any cline-no"> </span>
|
|
3784
3600
|
<span class="cline-any cline-no"> </span>
|
|
3785
|
-
<span class="cline-any cline-no"> </span>
|
|
3786
3601
|
<span class="cline-any cline-neutral"> </span>
|
|
3787
3602
|
<span class="cline-any cline-no"> </span>
|
|
3788
3603
|
<span class="cline-any cline-no"> </span>
|
|
@@ -3938,7 +3753,6 @@
|
|
|
3938
3753
|
<span class="cline-any cline-neutral"> </span>
|
|
3939
3754
|
<span class="cline-any cline-no"> </span>
|
|
3940
3755
|
<span class="cline-any cline-no"> </span>
|
|
3941
|
-
<span class="cline-any cline-no"> </span>
|
|
3942
3756
|
<span class="cline-any cline-neutral"> </span>
|
|
3943
3757
|
<span class="cline-any cline-no"> </span>
|
|
3944
3758
|
<span class="cline-any cline-no"> </span>
|
|
@@ -4092,7 +3906,6 @@
|
|
|
4092
3906
|
<span class="cline-any cline-neutral"> </span>
|
|
4093
3907
|
<span class="cline-any cline-no"> </span>
|
|
4094
3908
|
<span class="cline-any cline-no"> </span>
|
|
4095
|
-
<span class="cline-any cline-no"> </span>
|
|
4096
3909
|
<span class="cline-any cline-neutral"> </span>
|
|
4097
3910
|
<span class="cline-any cline-no"> </span>
|
|
4098
3911
|
<span class="cline-any cline-no"> </span>
|
|
@@ -4238,7 +4051,6 @@
|
|
|
4238
4051
|
<span class="cline-any cline-neutral"> </span>
|
|
4239
4052
|
<span class="cline-any cline-no"> </span>
|
|
4240
4053
|
<span class="cline-any cline-no"> </span>
|
|
4241
|
-
<span class="cline-any cline-no"> </span>
|
|
4242
4054
|
<span class="cline-any cline-neutral"> </span>
|
|
4243
4055
|
<span class="cline-any cline-no"> </span>
|
|
4244
4056
|
<span class="cline-any cline-no"> </span>
|
|
@@ -4396,21 +4208,13 @@
|
|
|
4396
4208
|
<span class="cline-any cline-neutral"> </span>
|
|
4397
4209
|
<span class="cline-any cline-no"> </span>
|
|
4398
4210
|
<span class="cline-any cline-no"> </span>
|
|
4399
|
-
<span class="cline-any cline-neutral"> </span>
|
|
4400
4211
|
<span class="cline-any cline-no"> </span>
|
|
4401
|
-
<span class="cline-any cline-neutral"> </span>
|
|
4402
4212
|
<span class="cline-any cline-no"> </span>
|
|
4403
4213
|
<span class="cline-any cline-no"> </span>
|
|
4404
|
-
<span class="cline-any cline-neutral"> </span>
|
|
4405
4214
|
<span class="cline-any cline-no"> </span>
|
|
4406
4215
|
<span class="cline-any cline-no"> </span>
|
|
4407
4216
|
<span class="cline-any cline-no"> </span>
|
|
4408
|
-
<span class="cline-any cline-neutral"> </span>
|
|
4409
|
-
<span class="cline-any cline-no"> </span>
|
|
4410
|
-
<span class="cline-any cline-no"> </span>
|
|
4411
4217
|
<span class="cline-any cline-no"> </span>
|
|
4412
|
-
<span class="cline-any cline-no"> </span>
|
|
4413
|
-
<span class="cline-any cline-neutral"> </span>
|
|
4414
4218
|
<span class="cline-any cline-neutral"> </span>
|
|
4415
4219
|
<span class="cline-any cline-neutral"> </span>
|
|
4416
4220
|
<span class="cline-any cline-no"> </span>
|
|
@@ -4452,21 +4256,13 @@
|
|
|
4452
4256
|
<span class="cline-any cline-neutral"> </span>
|
|
4453
4257
|
<span class="cline-any cline-no"> </span>
|
|
4454
4258
|
<span class="cline-any cline-no"> </span>
|
|
4455
|
-
<span class="cline-any cline-neutral"> </span>
|
|
4456
|
-
<span class="cline-any cline-no"> </span>
|
|
4457
|
-
<span class="cline-any cline-neutral"> </span>
|
|
4458
4259
|
<span class="cline-any cline-no"> </span>
|
|
4459
4260
|
<span class="cline-any cline-no"> </span>
|
|
4460
|
-
<span class="cline-any cline-neutral"> </span>
|
|
4461
|
-
<span class="cline-any cline-no"> </span>
|
|
4462
4261
|
<span class="cline-any cline-no"> </span>
|
|
4463
4262
|
<span class="cline-any cline-no"> </span>
|
|
4464
|
-
<span class="cline-any cline-neutral"> </span>
|
|
4465
4263
|
<span class="cline-any cline-no"> </span>
|
|
4466
4264
|
<span class="cline-any cline-no"> </span>
|
|
4467
4265
|
<span class="cline-any cline-no"> </span>
|
|
4468
|
-
<span class="cline-any cline-no"> </span>
|
|
4469
|
-
<span class="cline-any cline-neutral"> </span>
|
|
4470
4266
|
<span class="cline-any cline-neutral"> </span>
|
|
4471
4267
|
<span class="cline-any cline-neutral"> </span>
|
|
4472
4268
|
<span class="cline-any cline-no"> </span>
|
|
@@ -4508,23 +4304,15 @@
|
|
|
4508
4304
|
<span class="cline-any cline-neutral"> </span>
|
|
4509
4305
|
<span class="cline-any cline-no"> </span>
|
|
4510
4306
|
<span class="cline-any cline-no"> </span>
|
|
4511
|
-
<span class="cline-any cline-neutral"> </span>
|
|
4512
|
-
<span class="cline-any cline-no"> </span>
|
|
4513
|
-
<span class="cline-any cline-neutral"> </span>
|
|
4514
|
-
<span class="cline-any cline-no"> </span>
|
|
4515
|
-
<span class="cline-any cline-no"> </span>
|
|
4516
|
-
<span class="cline-any cline-neutral"> </span>
|
|
4517
4307
|
<span class="cline-any cline-no"> </span>
|
|
4518
4308
|
<span class="cline-any cline-no"> </span>
|
|
4519
4309
|
<span class="cline-any cline-no"> </span>
|
|
4520
|
-
<span class="cline-any cline-neutral"> </span>
|
|
4521
4310
|
<span class="cline-any cline-no"> </span>
|
|
4522
4311
|
<span class="cline-any cline-no"> </span>
|
|
4523
4312
|
<span class="cline-any cline-no"> </span>
|
|
4524
4313
|
<span class="cline-any cline-no"> </span>
|
|
4525
4314
|
<span class="cline-any cline-neutral"> </span>
|
|
4526
4315
|
<span class="cline-any cline-neutral"> </span>
|
|
4527
|
-
<span class="cline-any cline-neutral"> </span>
|
|
4528
4316
|
<span class="cline-any cline-no"> </span>
|
|
4529
4317
|
<span class="cline-any cline-neutral"> </span>
|
|
4530
4318
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -4564,23 +4352,15 @@
|
|
|
4564
4352
|
<span class="cline-any cline-neutral"> </span>
|
|
4565
4353
|
<span class="cline-any cline-no"> </span>
|
|
4566
4354
|
<span class="cline-any cline-no"> </span>
|
|
4567
|
-
<span class="cline-any cline-neutral"> </span>
|
|
4568
|
-
<span class="cline-any cline-no"> </span>
|
|
4569
|
-
<span class="cline-any cline-neutral"> </span>
|
|
4570
|
-
<span class="cline-any cline-no"> </span>
|
|
4571
|
-
<span class="cline-any cline-no"> </span>
|
|
4572
|
-
<span class="cline-any cline-neutral"> </span>
|
|
4573
4355
|
<span class="cline-any cline-no"> </span>
|
|
4574
4356
|
<span class="cline-any cline-no"> </span>
|
|
4575
4357
|
<span class="cline-any cline-no"> </span>
|
|
4576
|
-
<span class="cline-any cline-neutral"> </span>
|
|
4577
4358
|
<span class="cline-any cline-no"> </span>
|
|
4578
4359
|
<span class="cline-any cline-no"> </span>
|
|
4579
4360
|
<span class="cline-any cline-no"> </span>
|
|
4580
4361
|
<span class="cline-any cline-no"> </span>
|
|
4581
4362
|
<span class="cline-any cline-neutral"> </span>
|
|
4582
4363
|
<span class="cline-any cline-neutral"> </span>
|
|
4583
|
-
<span class="cline-any cline-neutral"> </span>
|
|
4584
4364
|
<span class="cline-any cline-no"> </span>
|
|
4585
4365
|
<span class="cline-any cline-neutral"> </span>
|
|
4586
4366
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -4620,23 +4400,15 @@
|
|
|
4620
4400
|
<span class="cline-any cline-neutral"> </span>
|
|
4621
4401
|
<span class="cline-any cline-no"> </span>
|
|
4622
4402
|
<span class="cline-any cline-no"> </span>
|
|
4623
|
-
<span class="cline-any cline-neutral"> </span>
|
|
4624
4403
|
<span class="cline-any cline-no"> </span>
|
|
4625
|
-
<span class="cline-any cline-neutral"> </span>
|
|
4626
4404
|
<span class="cline-any cline-no"> </span>
|
|
4627
4405
|
<span class="cline-any cline-no"> </span>
|
|
4628
|
-
<span class="cline-any cline-neutral"> </span>
|
|
4629
|
-
<span class="cline-any cline-no"> </span>
|
|
4630
|
-
<span class="cline-any cline-no"> </span>
|
|
4631
|
-
<span class="cline-any cline-no"> </span>
|
|
4632
|
-
<span class="cline-any cline-neutral"> </span>
|
|
4633
4406
|
<span class="cline-any cline-no"> </span>
|
|
4634
4407
|
<span class="cline-any cline-no"> </span>
|
|
4635
4408
|
<span class="cline-any cline-no"> </span>
|
|
4636
4409
|
<span class="cline-any cline-no"> </span>
|
|
4637
4410
|
<span class="cline-any cline-neutral"> </span>
|
|
4638
4411
|
<span class="cline-any cline-neutral"> </span>
|
|
4639
|
-
<span class="cline-any cline-neutral"> </span>
|
|
4640
4412
|
<span class="cline-any cline-no"> </span>
|
|
4641
4413
|
<span class="cline-any cline-neutral"> </span>
|
|
4642
4414
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -4674,19 +4446,15 @@
|
|
|
4674
4446
|
<span class="cline-any cline-no"> </span>
|
|
4675
4447
|
<span class="cline-any cline-neutral"> </span>
|
|
4676
4448
|
<span class="cline-any cline-neutral"> </span>
|
|
4677
|
-
<span class="cline-any cline-
|
|
4678
|
-
<span class="cline-any cline-no"> </span>
|
|
4679
|
-
<span class="cline-any cline-neutral"> </span>
|
|
4680
|
-
<span class="cline-any cline-neutral"> </span>
|
|
4681
|
-
<span class="cline-any cline-neutral"> </span>
|
|
4449
|
+
<span class="cline-any cline-yes">1x</span>
|
|
4682
4450
|
<span class="cline-any cline-neutral"> </span>
|
|
4683
4451
|
<span class="cline-any cline-neutral"> </span>
|
|
4684
|
-
<span class="cline-any cline-yes">
|
|
4685
|
-
<span class="cline-any cline-yes">
|
|
4452
|
+
<span class="cline-any cline-yes">186x</span>
|
|
4453
|
+
<span class="cline-any cline-yes">186x</span>
|
|
4686
4454
|
<span class="cline-any cline-no"> </span>
|
|
4687
4455
|
<span class="cline-any cline-no"> </span>
|
|
4688
4456
|
<span class="cline-any cline-neutral"> </span>
|
|
4689
|
-
<span class="cline-any cline-yes">
|
|
4457
|
+
<span class="cline-any cline-yes">186x</span>
|
|
4690
4458
|
<span class="cline-any cline-neutral"> </span>
|
|
4691
4459
|
<span class="cline-any cline-neutral"> </span>
|
|
4692
4460
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -4717,8 +4485,6 @@
|
|
|
4717
4485
|
<span class="cline-any cline-neutral"> </span>
|
|
4718
4486
|
<span class="cline-any cline-neutral"> </span>
|
|
4719
4487
|
<span class="cline-any cline-neutral"> </span>
|
|
4720
|
-
<span class="cline-any cline-yes">1x</span>
|
|
4721
|
-
<span class="cline-any cline-no"> </span>
|
|
4722
4488
|
<span class="cline-any cline-no"> </span>
|
|
4723
4489
|
<span class="cline-any cline-no"> </span>
|
|
4724
4490
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -4746,12 +4512,6 @@
|
|
|
4746
4512
|
<span class="cline-any cline-neutral"> </span>
|
|
4747
4513
|
<span class="cline-any cline-neutral"> </span>
|
|
4748
4514
|
<span class="cline-any cline-neutral"> </span>
|
|
4749
|
-
<span class="cline-any cline-yes">1x</span>
|
|
4750
|
-
<span class="cline-any cline-neutral"> </span>
|
|
4751
|
-
<span class="cline-any cline-neutral"> </span>
|
|
4752
|
-
<span class="cline-any cline-neutral"> </span>
|
|
4753
|
-
<span class="cline-any cline-neutral"> </span>
|
|
4754
|
-
<span class="cline-any cline-no"> </span>
|
|
4755
4515
|
<span class="cline-any cline-no"> </span>
|
|
4756
4516
|
<span class="cline-any cline-no"> </span>
|
|
4757
4517
|
<span class="cline-any cline-no"> </span>
|
|
@@ -4774,23 +4534,14 @@
|
|
|
4774
4534
|
<span class="cline-any cline-no"> </span>
|
|
4775
4535
|
<span class="cline-any cline-no"> </span>
|
|
4776
4536
|
<span class="cline-any cline-no"> </span>
|
|
4777
|
-
<span class="cline-any cline-no"> </span>
|
|
4778
|
-
<span class="cline-any cline-no"> </span>
|
|
4779
4537
|
<span class="cline-any cline-neutral"> </span>
|
|
4780
4538
|
<span class="cline-any cline-no"> </span>
|
|
4781
4539
|
<span class="cline-any cline-neutral"> </span>
|
|
4782
4540
|
<span class="cline-any cline-no"> </span>
|
|
4783
4541
|
<span class="cline-any cline-no"> </span>
|
|
4784
|
-
<span class="cline-any cline-no"> </span>
|
|
4785
|
-
<span class="cline-any cline-neutral"> </span>
|
|
4786
|
-
<span class="cline-any cline-no"> </span>
|
|
4787
|
-
<span class="cline-any cline-no"> </span>
|
|
4788
4542
|
<span class="cline-any cline-neutral"> </span>
|
|
4789
4543
|
<span class="cline-any cline-neutral"> </span>
|
|
4790
4544
|
<span class="cline-any cline-neutral"> </span>
|
|
4791
|
-
<span class="cline-any cline-no"> </span>
|
|
4792
|
-
<span class="cline-any cline-no"> </span>
|
|
4793
|
-
<span class="cline-any cline-no"> </span>
|
|
4794
4545
|
<span class="cline-any cline-neutral"> </span>
|
|
4795
4546
|
<span class="cline-any cline-neutral"> </span>
|
|
4796
4547
|
<span class="cline-any cline-no"> </span>
|
|
@@ -4805,8 +4556,6 @@
|
|
|
4805
4556
|
<span class="cline-any cline-neutral"> </span>
|
|
4806
4557
|
<span class="cline-any cline-neutral"> </span>
|
|
4807
4558
|
<span class="cline-any cline-neutral"> </span>
|
|
4808
|
-
<span class="cline-any cline-yes">1x</span>
|
|
4809
|
-
<span class="cline-any cline-no"> </span>
|
|
4810
4559
|
<span class="cline-any cline-no"> </span>
|
|
4811
4560
|
<span class="cline-any cline-no"> </span>
|
|
4812
4561
|
<span class="cline-any cline-no"> </span>
|
|
@@ -4818,8 +4567,6 @@
|
|
|
4818
4567
|
<span class="cline-any cline-no"> </span>
|
|
4819
4568
|
<span class="cline-any cline-no"> </span>
|
|
4820
4569
|
<span class="cline-any cline-neutral"> </span>
|
|
4821
|
-
<span class="cline-any cline-neutral"> </span>
|
|
4822
|
-
<span class="cline-any cline-neutral"> </span>
|
|
4823
4570
|
<span class="cline-any cline-no"> </span>
|
|
4824
4571
|
<span class="cline-any cline-no"> </span>
|
|
4825
4572
|
<span class="cline-any cline-no"> </span>
|
|
@@ -4861,8 +4608,6 @@
|
|
|
4861
4608
|
<span class="cline-any cline-neutral"> </span>
|
|
4862
4609
|
<span class="cline-any cline-neutral"> </span>
|
|
4863
4610
|
<span class="cline-any cline-no"> </span>
|
|
4864
|
-
<span class="cline-any cline-neutral"> </span>
|
|
4865
|
-
<span class="cline-any cline-no"> </span>
|
|
4866
4611
|
<span class="cline-any cline-no"> </span>
|
|
4867
4612
|
<span class="cline-any cline-no"> </span>
|
|
4868
4613
|
<span class="cline-any cline-no"> </span>
|
|
@@ -4872,14 +4617,12 @@
|
|
|
4872
4617
|
<span class="cline-any cline-neutral"> </span>
|
|
4873
4618
|
<span class="cline-any cline-neutral"> </span>
|
|
4874
4619
|
<span class="cline-any cline-neutral"> </span>
|
|
4620
|
+
<span class="cline-any cline-neutral"> </span>
|
|
4875
4621
|
<span class="cline-any cline-no"> </span>
|
|
4876
4622
|
<span class="cline-any cline-no"> </span>
|
|
4877
4623
|
<span class="cline-any cline-no"> </span>
|
|
4878
4624
|
<span class="cline-any cline-neutral"> </span>
|
|
4879
4625
|
<span class="cline-any cline-neutral"> </span>
|
|
4880
|
-
<span class="cline-any cline-neutral"> </span>
|
|
4881
|
-
<span class="cline-any cline-neutral"> </span>
|
|
4882
|
-
<span class="cline-any cline-neutral"> </span>
|
|
4883
4626
|
<span class="cline-any cline-no"> </span>
|
|
4884
4627
|
<span class="cline-any cline-no"> </span>
|
|
4885
4628
|
<span class="cline-any cline-no"> </span>
|
|
@@ -4963,7 +4706,7 @@
|
|
|
4963
4706
|
<span class="cline-any cline-neutral"> </span>
|
|
4964
4707
|
<span class="cline-any cline-yes">1x</span>
|
|
4965
4708
|
<span class="cline-any cline-yes">73x</span>
|
|
4966
|
-
<span class="cline-any cline-
|
|
4709
|
+
<span class="cline-any cline-neutral"> </span>
|
|
4967
4710
|
<span class="cline-any cline-yes">73x</span>
|
|
4968
4711
|
<span class="cline-any cline-yes">2x</span>
|
|
4969
4712
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -4974,9 +4717,8 @@
|
|
|
4974
4717
|
<span class="cline-any cline-yes">2x</span>
|
|
4975
4718
|
<span class="cline-any cline-neutral"> </span>
|
|
4976
4719
|
<span class="cline-any cline-neutral"> </span>
|
|
4977
|
-
<span class="cline-any cline-yes">73x</span>
|
|
4978
|
-
<span class="cline-any cline-neutral"> </span>
|
|
4979
4720
|
<span class="cline-any cline-neutral"> </span>
|
|
4721
|
+
<span class="cline-any cline-yes">73x</span>
|
|
4980
4722
|
<span class="cline-any cline-neutral"> </span>
|
|
4981
4723
|
<span class="cline-any cline-neutral"> </span>
|
|
4982
4724
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -4996,6 +4738,7 @@
|
|
|
4996
4738
|
<span class="cline-any cline-yes">1x</span>
|
|
4997
4739
|
<span class="cline-any cline-neutral"> </span>
|
|
4998
4740
|
<span class="cline-any cline-neutral"> </span>
|
|
4741
|
+
<span class="cline-any cline-neutral"> </span>
|
|
4999
4742
|
<span class="cline-any cline-yes">1x</span>
|
|
5000
4743
|
<span class="cline-any cline-yes">1x</span>
|
|
5001
4744
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -5040,6 +4783,7 @@
|
|
|
5040
4783
|
<span class="cline-any cline-yes">10x</span>
|
|
5041
4784
|
<span class="cline-any cline-neutral"> </span>
|
|
5042
4785
|
<span class="cline-any cline-neutral"> </span>
|
|
4786
|
+
<span class="cline-any cline-neutral"> </span>
|
|
5043
4787
|
<span class="cline-any cline-yes">57x</span>
|
|
5044
4788
|
<span class="cline-any cline-neutral"> </span>
|
|
5045
4789
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -5058,6 +4802,7 @@
|
|
|
5058
4802
|
<span class="cline-any cline-yes">1x</span>
|
|
5059
4803
|
<span class="cline-any cline-neutral"> </span>
|
|
5060
4804
|
<span class="cline-any cline-neutral"> </span>
|
|
4805
|
+
<span class="cline-any cline-neutral"> </span>
|
|
5061
4806
|
<span class="cline-any cline-yes">57x</span>
|
|
5062
4807
|
<span class="cline-any cline-yes">57x</span>
|
|
5063
4808
|
<span class="cline-any cline-yes">6x</span>
|
|
@@ -5069,13 +4814,13 @@
|
|
|
5069
4814
|
<span class="cline-any cline-neutral"> </span>
|
|
5070
4815
|
<span class="cline-any cline-neutral"> </span>
|
|
5071
4816
|
<span class="cline-any cline-neutral"> </span>
|
|
4817
|
+
<span class="cline-any cline-neutral"> </span>
|
|
5072
4818
|
<span class="cline-any cline-yes">57x</span>
|
|
5073
4819
|
<span class="cline-any cline-yes">57x</span>
|
|
5074
|
-
<span class="cline-any cline-
|
|
4820
|
+
<span class="cline-any cline-neutral"> </span>
|
|
5075
4821
|
<span class="cline-any cline-yes">57x</span>
|
|
5076
4822
|
<span class="cline-any cline-yes">57x</span>
|
|
5077
4823
|
<span class="cline-any cline-yes">77x</span>
|
|
5078
|
-
<span class="cline-any cline-neutral"> </span>
|
|
5079
4824
|
<span class="cline-any cline-yes">57x</span>
|
|
5080
4825
|
<span class="cline-any cline-yes">5x</span>
|
|
5081
4826
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -5085,6 +4830,7 @@
|
|
|
5085
4830
|
<span class="cline-any cline-yes">57x</span>
|
|
5086
4831
|
<span class="cline-any cline-neutral"> </span>
|
|
5087
4832
|
<span class="cline-any cline-neutral"> </span>
|
|
4833
|
+
<span class="cline-any cline-neutral"> </span>
|
|
5088
4834
|
<span class="cline-any cline-yes">57x</span>
|
|
5089
4835
|
<span class="cline-any cline-yes">8x</span>
|
|
5090
4836
|
<span class="cline-any cline-yes">8x</span>
|
|
@@ -5141,13 +4887,16 @@
|
|
|
5141
4887
|
<span class="cline-any cline-yes">49x</span>
|
|
5142
4888
|
<span class="cline-any cline-neutral"> </span>
|
|
5143
4889
|
<span class="cline-any cline-neutral"> </span>
|
|
4890
|
+
<span class="cline-any cline-neutral"> </span>
|
|
5144
4891
|
<span class="cline-any cline-yes">57x</span>
|
|
5145
4892
|
<span class="cline-any cline-neutral"> </span>
|
|
4893
|
+
<span class="cline-any cline-neutral"> </span>
|
|
5146
4894
|
<span class="cline-any cline-yes">57x</span>
|
|
5147
4895
|
<span class="cline-any cline-yes">4x</span>
|
|
5148
4896
|
<span class="cline-any cline-neutral"> </span>
|
|
5149
4897
|
<span class="cline-any cline-yes">53x</span>
|
|
5150
4898
|
<span class="cline-any cline-neutral"> </span>
|
|
4899
|
+
<span class="cline-any cline-neutral"> </span>
|
|
5151
4900
|
<span class="cline-any cline-yes">57x</span>
|
|
5152
4901
|
<span class="cline-any cline-neutral"> </span>
|
|
5153
4902
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -5164,8 +4913,6 @@
|
|
|
5164
4913
|
<span class="cline-any cline-neutral"> </span>
|
|
5165
4914
|
<span class="cline-any cline-neutral"> </span>
|
|
5166
4915
|
<span class="cline-any cline-neutral"> </span>
|
|
5167
|
-
<span class="cline-any cline-neutral"> </span>
|
|
5168
|
-
<span class="cline-any cline-neutral"> </span>
|
|
5169
4916
|
<span class="cline-any cline-no"> </span>
|
|
5170
4917
|
<span class="cline-any cline-no"> </span>
|
|
5171
4918
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -5177,9 +4924,6 @@
|
|
|
5177
4924
|
<span class="cline-any cline-neutral"> </span>
|
|
5178
4925
|
<span class="cline-any cline-neutral"> </span>
|
|
5179
4926
|
<span class="cline-any cline-neutral"> </span>
|
|
5180
|
-
<span class="cline-any cline-neutral"> </span>
|
|
5181
|
-
<span class="cline-any cline-neutral"> </span>
|
|
5182
|
-
<span class="cline-any cline-neutral"> </span>
|
|
5183
4927
|
<span class="cline-any cline-no"> </span>
|
|
5184
4928
|
<span class="cline-any cline-neutral"> </span>
|
|
5185
4929
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -5192,9 +4936,6 @@
|
|
|
5192
4936
|
<span class="cline-any cline-neutral"> </span>
|
|
5193
4937
|
<span class="cline-any cline-neutral"> </span>
|
|
5194
4938
|
<span class="cline-any cline-neutral"> </span>
|
|
5195
|
-
<span class="cline-any cline-neutral"> </span>
|
|
5196
|
-
<span class="cline-any cline-neutral"> </span>
|
|
5197
|
-
<span class="cline-any cline-neutral"> </span>
|
|
5198
4939
|
<span class="cline-any cline-no"> </span>
|
|
5199
4940
|
<span class="cline-any cline-no"> </span>
|
|
5200
4941
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -5203,9 +4944,6 @@
|
|
|
5203
4944
|
<span class="cline-any cline-neutral"> </span>
|
|
5204
4945
|
<span class="cline-any cline-neutral"> </span>
|
|
5205
4946
|
<span class="cline-any cline-neutral"> </span>
|
|
5206
|
-
<span class="cline-any cline-neutral"> </span>
|
|
5207
|
-
<span class="cline-any cline-neutral"> </span>
|
|
5208
|
-
<span class="cline-any cline-neutral"> </span>
|
|
5209
4947
|
<span class="cline-any cline-no"> </span>
|
|
5210
4948
|
<span class="cline-any cline-neutral"> </span>
|
|
5211
4949
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -5242,15 +4980,8 @@
|
|
|
5242
4980
|
<span class="cline-any cline-no"> </span>
|
|
5243
4981
|
<span class="cline-any cline-no"> </span>
|
|
5244
4982
|
<span class="cline-any cline-no"> </span>
|
|
5245
|
-
<span class="cline-any cline-no"> </span>
|
|
5246
|
-
<span class="cline-any cline-no"> </span>
|
|
5247
|
-
<span class="cline-any cline-neutral"> </span>
|
|
5248
|
-
<span class="cline-any cline-neutral"> </span>
|
|
5249
4983
|
<span class="cline-any cline-neutral"> </span>
|
|
5250
4984
|
<span class="cline-any cline-neutral"> </span>
|
|
5251
|
-
<span class="cline-any cline-no"> </span>
|
|
5252
|
-
<span class="cline-any cline-no"> </span>
|
|
5253
|
-
<span class="cline-any cline-neutral"> </span>
|
|
5254
4985
|
<span class="cline-any cline-neutral"> </span>
|
|
5255
4986
|
<span class="cline-any cline-neutral"> </span>
|
|
5256
4987
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -5389,10 +5120,6 @@
|
|
|
5389
5120
|
<span class="cline-any cline-no"> </span>
|
|
5390
5121
|
<span class="cline-any cline-neutral"> </span>
|
|
5391
5122
|
<span class="cline-any cline-neutral"> </span>
|
|
5392
|
-
<span class="cline-any cline-no"> </span>
|
|
5393
|
-
<span class="cline-any cline-no"> </span>
|
|
5394
|
-
<span class="cline-any cline-no"> </span>
|
|
5395
|
-
<span class="cline-any cline-neutral"> </span>
|
|
5396
5123
|
<span class="cline-any cline-neutral"> </span>
|
|
5397
5124
|
<span class="cline-any cline-no"> </span>
|
|
5398
5125
|
<span class="cline-any cline-no"> </span>
|
|
@@ -5647,14 +5374,6 @@
|
|
|
5647
5374
|
<span class="cline-any cline-neutral"> </span>
|
|
5648
5375
|
<span class="cline-any cline-neutral"> </span>
|
|
5649
5376
|
<span class="cline-any cline-neutral"> </span>
|
|
5650
|
-
<span class="cline-any cline-neutral"> </span>
|
|
5651
|
-
<span class="cline-any cline-neutral"> </span>
|
|
5652
|
-
<span class="cline-any cline-no"> </span>
|
|
5653
|
-
<span class="cline-any cline-neutral"> </span>
|
|
5654
|
-
<span class="cline-any cline-no"> </span>
|
|
5655
|
-
<span class="cline-any cline-neutral"> </span>
|
|
5656
|
-
<span class="cline-any cline-neutral"> </span>
|
|
5657
|
-
<span class="cline-any cline-neutral"> </span>
|
|
5658
5377
|
<span class="cline-any cline-no"> </span>
|
|
5659
5378
|
<span class="cline-any cline-no"> </span>
|
|
5660
5379
|
<span class="cline-any cline-no"> </span>
|
|
@@ -5882,7 +5601,7 @@
|
|
|
5882
5601
|
<span class="cline-any cline-neutral"> </span>
|
|
5883
5602
|
<span class="cline-any cline-neutral"> </span>
|
|
5884
5603
|
<span class="cline-any cline-yes">73x</span>
|
|
5885
|
-
<span class="cline-any cline-yes">
|
|
5604
|
+
<span class="cline-any cline-yes">73x</span>
|
|
5886
5605
|
<span class="cline-any cline-neutral"> </span>
|
|
5887
5606
|
<span class="cline-any cline-yes">73x</span>
|
|
5888
5607
|
<span class="cline-any cline-yes">73x</span>
|
|
@@ -5908,8 +5627,8 @@
|
|
|
5908
5627
|
<span class="cline-any cline-yes">73x</span>
|
|
5909
5628
|
<span class="cline-any cline-yes">73x</span>
|
|
5910
5629
|
<span class="cline-any cline-yes">193x</span>
|
|
5911
|
-
<span class="cline-any cline-yes">
|
|
5912
|
-
<span class="cline-any cline-yes">
|
|
5630
|
+
<span class="cline-any cline-yes">7x</span>
|
|
5631
|
+
<span class="cline-any cline-yes">7x</span>
|
|
5913
5632
|
<span class="cline-any cline-neutral"> </span>
|
|
5914
5633
|
<span class="cline-any cline-yes">193x</span>
|
|
5915
5634
|
<span class="cline-any cline-yes">193x</span>
|
|
@@ -5966,7 +5685,7 @@
|
|
|
5966
5685
|
<span class="cline-any cline-neutral"> </span>
|
|
5967
5686
|
<span class="cline-any cline-neutral"> </span>
|
|
5968
5687
|
<span class="cline-any cline-neutral"> </span>
|
|
5969
|
-
<span class="cline-any cline-yes">
|
|
5688
|
+
<span class="cline-any cline-yes">186x</span>
|
|
5970
5689
|
<span class="cline-any cline-neutral"> </span>
|
|
5971
5690
|
<span class="cline-any cline-no"> </span>
|
|
5972
5691
|
<span class="cline-any cline-no"> </span>
|
|
@@ -6002,8 +5721,6 @@
|
|
|
6002
5721
|
<span class="cline-any cline-neutral"> </span>
|
|
6003
5722
|
<span class="cline-any cline-neutral"> </span>
|
|
6004
5723
|
<span class="cline-any cline-neutral"> </span>
|
|
6005
|
-
<span class="cline-any cline-neutral"> </span>
|
|
6006
|
-
<span class="cline-any cline-neutral"> </span>
|
|
6007
5724
|
<span class="cline-any cline-no"> </span>
|
|
6008
5725
|
<span class="cline-any cline-no"> </span>
|
|
6009
5726
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -6024,6 +5741,10 @@
|
|
|
6024
5741
|
<span class="cline-any cline-no"> </span>
|
|
6025
5742
|
<span class="cline-any cline-no"> </span>
|
|
6026
5743
|
<span class="cline-any cline-no"> </span>
|
|
5744
|
+
<span class="cline-any cline-neutral"> </span>
|
|
5745
|
+
<span class="cline-any cline-no"> </span>
|
|
5746
|
+
<span class="cline-any cline-no"> </span>
|
|
5747
|
+
<span class="cline-any cline-neutral"> </span>
|
|
6027
5748
|
<span class="cline-any cline-no"> </span>
|
|
6028
5749
|
<span class="cline-any cline-no"> </span>
|
|
6029
5750
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -6049,6 +5770,8 @@
|
|
|
6049
5770
|
<span class="cline-any cline-no"> </span>
|
|
6050
5771
|
<span class="cline-any cline-no"> </span>
|
|
6051
5772
|
<span class="cline-any cline-no"> </span>
|
|
5773
|
+
<span class="cline-any cline-no"> </span>
|
|
5774
|
+
<span class="cline-any cline-no"> </span>
|
|
6052
5775
|
<span class="cline-any cline-neutral"> </span>
|
|
6053
5776
|
<span class="cline-any cline-neutral"> </span>
|
|
6054
5777
|
<span class="cline-any cline-no"> </span>
|
|
@@ -6070,6 +5793,8 @@
|
|
|
6070
5793
|
<span class="cline-any cline-no"> </span>
|
|
6071
5794
|
<span class="cline-any cline-no"> </span>
|
|
6072
5795
|
<span class="cline-any cline-no"> </span>
|
|
5796
|
+
<span class="cline-any cline-no"> </span>
|
|
5797
|
+
<span class="cline-any cline-no"> </span>
|
|
6073
5798
|
<span class="cline-any cline-neutral"> </span>
|
|
6074
5799
|
<span class="cline-any cline-no"> </span>
|
|
6075
5800
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -6081,6 +5806,16 @@
|
|
|
6081
5806
|
<span class="cline-any cline-neutral"> </span>
|
|
6082
5807
|
<span class="cline-any cline-neutral"> </span>
|
|
6083
5808
|
<span class="cline-any cline-neutral"> </span>
|
|
5809
|
+
<span class="cline-any cline-neutral"> </span>
|
|
5810
|
+
<span class="cline-any cline-neutral"> </span>
|
|
5811
|
+
<span class="cline-any cline-no"> </span>
|
|
5812
|
+
<span class="cline-any cline-no"> </span>
|
|
5813
|
+
<span class="cline-any cline-no"> </span>
|
|
5814
|
+
<span class="cline-any cline-neutral"> </span>
|
|
5815
|
+
<span class="cline-any cline-no"> </span>
|
|
5816
|
+
<span class="cline-any cline-no"> </span>
|
|
5817
|
+
<span class="cline-any cline-neutral"> </span>
|
|
5818
|
+
<span class="cline-any cline-neutral"> </span>
|
|
6084
5819
|
<span class="cline-any cline-no"> </span>
|
|
6085
5820
|
<span class="cline-any cline-no"> </span>
|
|
6086
5821
|
<span class="cline-any cline-no"> </span>
|
|
@@ -6112,11 +5847,13 @@
|
|
|
6112
5847
|
<span class="cline-any cline-neutral"> </span>
|
|
6113
5848
|
<span class="cline-any cline-no"> </span>
|
|
6114
5849
|
<span class="cline-any cline-no"> </span>
|
|
5850
|
+
<span class="cline-any cline-neutral"> </span>
|
|
6115
5851
|
<span class="cline-any cline-no"> </span>
|
|
6116
5852
|
<span class="cline-any cline-neutral"> </span>
|
|
6117
5853
|
<span class="cline-any cline-no"> </span>
|
|
6118
5854
|
<span class="cline-any cline-no"> </span>
|
|
6119
5855
|
<span class="cline-any cline-neutral"> </span>
|
|
5856
|
+
<span class="cline-any cline-neutral"> </span>
|
|
6120
5857
|
<span class="cline-any cline-no"> </span>
|
|
6121
5858
|
<span class="cline-any cline-neutral"> </span>
|
|
6122
5859
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -6124,7 +5861,6 @@
|
|
|
6124
5861
|
<span class="cline-any cline-no"> </span>
|
|
6125
5862
|
<span class="cline-any cline-no"> </span>
|
|
6126
5863
|
<span class="cline-any cline-no"> </span>
|
|
6127
|
-
<span class="cline-any cline-no"> </span>
|
|
6128
5864
|
<span class="cline-any cline-neutral"> </span>
|
|
6129
5865
|
<span class="cline-any cline-neutral"> </span>
|
|
6130
5866
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -6139,18 +5875,8 @@
|
|
|
6139
5875
|
<span class="cline-any cline-neutral"> </span>
|
|
6140
5876
|
<span class="cline-any cline-neutral"> </span>
|
|
6141
5877
|
<span class="cline-any cline-neutral"> </span>
|
|
6142
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import {
|
|
6143
|
-
import {
|
|
6144
|
-
TranslatorState,
|
|
6145
|
-
shiftState,
|
|
6146
|
-
withSourceMap,
|
|
6147
|
-
indent,
|
|
6148
|
-
createCompilerState,
|
|
6149
|
-
withSourceMapGenerator,
|
|
6150
|
-
withGenerator,
|
|
6151
|
-
TranslatorGenerator,
|
|
6152
|
-
} from '../translator';
|
|
6153
|
-
import { getStdlibNamespace, CallLogic } from '../concepts';
|
|
5878
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import { TranslatorState, shiftState, withSourceMap, indent, createCompilerState } from '../translator';
|
|
5879
|
+
import { stdlibNamespace, CallLogic } from '../concepts';
|
|
6154
5880
|
|
|
6155
5881
|
import * as babelParser from '@babel/parser';
|
|
6156
5882
|
import * as json5 from 'json5';
|
|
@@ -6159,8 +5885,8 @@ import * as compiler from 'vue-template-compiler';
|
|
|
6159
5885
|
import { LogicItem } from './LogicItem__';
|
|
6160
5886
|
import { Logic } from './Logic__';
|
|
6161
5887
|
import { config } from '../config';
|
|
6162
|
-
import
|
|
6163
|
-
import
|
|
5888
|
+
import MemberExpression from './MemberExpression__';
|
|
5889
|
+
import Identifier from './Identifier__';
|
|
6164
5890
|
import { PAGE_COMPONENT_INCLUDE_TAG_MAP } from './View__';
|
|
6165
5891
|
|
|
6166
5892
|
import { kebab2Camel } from '../utils';
|
|
@@ -6188,7 +5914,7 @@ const selfClosingTag = [
|
|
|
6188
5914
|
'col',
|
|
6189
5915
|
];
|
|
6190
5916
|
|
|
6191
|
-
function <span class="fstat-no" title="function not covered" >genArgumentMemberExpression(
|
|
5917
|
+
function <span class="fstat-no" title="function not covered" >genArgumentMemberExpression(</span>arr: string[]) {
|
|
6192
5918
|
let expressionNode: any;
|
|
6193
5919
|
const propertyName = <span class="cstat-no" title="statement not covered" >arr.pop();</span>
|
|
6194
5920
|
<span class="cstat-no" title="statement not covered" > if (arr.length >= 1) {</span>
|
|
@@ -6229,7 +5955,7 @@ export interface ElementToVueOptions {
|
|
|
6229
5955
|
currentList?: string[];
|
|
6230
5956
|
}
|
|
6231
5957
|
|
|
6232
|
-
function <span class="fstat-no" title="function not covered" >transAstNodeToNaslNode(
|
|
5958
|
+
function <span class="fstat-no" title="function not covered" >transAstNodeToNaslNode(</span>astNode: any, namespace?: string): any {
|
|
6233
5959
|
let node = <span class="cstat-no" title="statement not covered" >null;</span>
|
|
6234
5960
|
<span class="cstat-no" title="statement not covered" > if (astNode.type === 'CallExpression' && astNode.callee.object.name === '$utils') {</span>
|
|
6235
5961
|
const calleeName = <span class="cstat-no" title="statement not covered" >astNode.callee.property.name || astNode.callee.property.value;</span>
|
|
@@ -6241,27 +5967,27 @@ function <span class="fstat-no" title="function not covered" >transAstNodeToNasl
|
|
|
6241
5967
|
calleeNamespace: 'nasl.util',
|
|
6242
5968
|
calleeName,
|
|
6243
5969
|
arguments: astNode.arguments
|
|
6244
|
-
.map(
|
|
5970
|
+
.map(<span class="fstat-no" title="function not covered" >(a</span>rgument: any) => (<span class="cstat-no" title="statement not covered" >{</span>
|
|
6245
5971
|
concept: 'Argument',
|
|
6246
5972
|
name: '',
|
|
6247
5973
|
kind: 'Statement',
|
|
6248
5974
|
keyword: '',
|
|
6249
5975
|
expression: transAstNodeToNaslNode(Object.assign({}, argument)),
|
|
6250
5976
|
}))
|
|
6251
|
-
.filter(
|
|
5977
|
+
.filter(<span class="fstat-no" title="function not covered" >(i</span>tem: any) => <span class="cstat-no" title="statement not covered" >item.expression)</span>,
|
|
6252
5978
|
typeArguments: astNode.arguments
|
|
6253
|
-
.map(
|
|
6254
|
-
.filter(
|
|
5979
|
+
.map(<span class="fstat-no" title="function not covered" >(a</span>rgument: any) => <span class="cstat-no" title="statement not covered" >transAstNodeToNaslTypeNode(Object.assign({}, argument)))</span>
|
|
5980
|
+
.filter(<span class="fstat-no" title="function not covered" >(i</span>tem: any) => <span class="cstat-no" title="statement not covered" >item)</span>,
|
|
6255
5981
|
};
|
|
6256
|
-
<span class="cstat-no" title="statement not covered" >
|
|
5982
|
+
} else <span class="cstat-no" title="statement not covered" >if (astNode.type === 'MemberExpression') {</span>
|
|
6257
5983
|
<span class="cstat-no" title="statement not covered" > if (astNode.object?.name === '$global') {</span>
|
|
6258
5984
|
<span class="cstat-no" title="statement not covered" > if (astNode.property?.name === 'userInfo') {</span>
|
|
6259
5985
|
// 目前只有权限相关的
|
|
6260
5986
|
<span class="cstat-no" title="statement not covered" > node = transAstNodeToNaslNode(astNode.property, 'nasl.auth');</span>
|
|
6261
|
-
<span class="cstat-no" title="statement not covered" >
|
|
5987
|
+
} else <span class="cstat-no" title="statement not covered" >if (astNode.property?.name === 'frontendVariables') {</span>
|
|
6262
5988
|
<span class="cstat-no" title="statement not covered" > node = 'app.frontendVariables';</span>
|
|
6263
5989
|
}
|
|
6264
|
-
<span class="cstat-no" title="statement not covered" >
|
|
5990
|
+
} else <span class="cstat-no" title="statement not covered" >if (astNode.object?.name === 'frontendVariables') {</span>
|
|
6265
5991
|
<span class="cstat-no" title="statement not covered" > node = transAstNodeToNaslNode(astNode.property, 'app.frontendVariables');</span>
|
|
6266
5992
|
} else {
|
|
6267
5993
|
const object = <span class="cstat-no" title="statement not covered" >transAstNodeToNaslNode(astNode.object);</span>
|
|
@@ -6279,42 +6005,20 @@ function <span class="fstat-no" title="function not covered" >transAstNodeToNasl
|
|
|
6279
6005
|
};
|
|
6280
6006
|
}
|
|
6281
6007
|
}
|
|
6282
|
-
<span class="cstat-no" title="statement not covered" >
|
|
6008
|
+
} else <span class="cstat-no" title="statement not covered" >if (astNode.type === 'Identifier') {</span>
|
|
6283
6009
|
<span class="cstat-no" title="statement not covered" > node = {</span>
|
|
6284
6010
|
concept: 'Identifier',
|
|
6285
6011
|
namespace: namespace || '',
|
|
6286
6012
|
name: astNode.name,
|
|
6287
6013
|
kind: 'Expression',
|
|
6288
6014
|
};
|
|
6289
|
-
<span class="cstat-no" title="statement not covered" >
|
|
6015
|
+
} else <span class="cstat-no" title="statement not covered" >if (astNode.type === 'ArrayExpression' || astNode.type === 'ObjectExpression') {</span>
|
|
6290
6016
|
<span class="cstat-no" title="statement not covered" > node = {</span>
|
|
6291
6017
|
concept: 'Unparsed',
|
|
6292
6018
|
label: '原子项',
|
|
6293
6019
|
code: astNode.value,
|
|
6294
6020
|
};
|
|
6295
|
-
<span class="cstat-no" title="statement not covered" >
|
|
6296
|
-
// 模板字符串翻译成字符串插值
|
|
6297
|
-
const { expressions, quasis } = <span class="cstat-no" title="statement not covered" >astNode;</span>
|
|
6298
|
-
<span class="cstat-no" title="statement not covered" > node = {</span>
|
|
6299
|
-
concept: 'StringInterpolation',
|
|
6300
|
-
kind: 'Expression',
|
|
6301
|
-
name: '',
|
|
6302
|
-
expressions: [...(quasis || []), ...(expressions || [])]
|
|
6303
|
-
.sort(<span class="fstat-no" title="function not covered" >(n</span>ode1, node2) => {
|
|
6304
|
-
<span class="cstat-no" title="statement not covered" > return node1.start - node2.start;</span>
|
|
6305
|
-
})
|
|
6306
|
-
.map((<span class="fstat-no" title="function not covered" >node) => {</span>
|
|
6307
|
-
<span class="cstat-no" title="statement not covered" > return transAstNodeToNaslNode(node);</span>
|
|
6308
|
-
}),
|
|
6309
|
-
};
|
|
6310
|
-
<span class="cstat-no" title="statement not covered" > } else if (astNode.type === 'TemplateElement') {</span>
|
|
6311
|
-
<span class="cstat-no" title="statement not covered" > node = {</span>
|
|
6312
|
-
concept: 'StringLiteral',
|
|
6313
|
-
kind: 'Expression',
|
|
6314
|
-
name: '',
|
|
6315
|
-
value: astNode.value?.raw,
|
|
6316
|
-
};
|
|
6317
|
-
<span class="cstat-no" title="statement not covered" > } else if (astNode.type === 'StringLiteral') {</span>
|
|
6021
|
+
} else <span class="cstat-no" title="statement not covered" >if (astNode.type === 'StringLiteral') {</span>
|
|
6318
6022
|
// 单独特殊处理枚举因为他不是MemberExpression,而是Identifier_
|
|
6319
6023
|
<span class="cstat-no" title="statement not covered" > if (astNode?.value?.startsWith('__enumTypeAnnotation_')) {</span>
|
|
6320
6024
|
<span class="cstat-no" title="statement not covered" > return null;</span>
|
|
@@ -6326,7 +6030,7 @@ function <span class="fstat-no" title="function not covered" >transAstNodeToNasl
|
|
|
6326
6030
|
value: astNode.value,
|
|
6327
6031
|
};
|
|
6328
6032
|
}
|
|
6329
|
-
<span class="cstat-no" title="statement not covered" >
|
|
6033
|
+
} else <span class="cstat-no" title="statement not covered" >if (astNode.type === 'UnaryExpression') {</span>
|
|
6330
6034
|
const argument = <span class="cstat-no" title="statement not covered" >astNode.argument;</span>
|
|
6331
6035
|
<span class="cstat-no" title="statement not covered" > if (argument.type === 'NumericLiteral') {</span>
|
|
6332
6036
|
<span class="cstat-no" title="statement not covered" > node = {</span>
|
|
@@ -6342,13 +6046,13 @@ function <span class="fstat-no" title="function not covered" >transAstNodeToNasl
|
|
|
6342
6046
|
argument: transAstNodeToNaslNode(astNode.argument),
|
|
6343
6047
|
};
|
|
6344
6048
|
}
|
|
6345
|
-
<span class="cstat-no" title="statement not covered" >
|
|
6049
|
+
} else <span class="cstat-no" title="statement not covered" >if (astNode.type === 'NumericLiteral') {</span>
|
|
6346
6050
|
const numberString = <span class="cstat-no" title="statement not covered" >typeof astNode.value === 'number' ? astNode.value.toString() : astNode.value;</span>
|
|
6347
6051
|
<span class="cstat-no" title="statement not covered" > node = {</span>
|
|
6348
6052
|
concept: 'NumericLiteral',
|
|
6349
6053
|
value: numberString,
|
|
6350
6054
|
};
|
|
6351
|
-
<span class="cstat-no" title="statement not covered" >
|
|
6055
|
+
} else <span class="cstat-no" title="statement not covered" >if (astNode.type === 'ArrowFunctionExpression') {</span>
|
|
6352
6056
|
<span class="cstat-no" title="statement not covered" > if (astNode.body?.callee?.name) {</span>
|
|
6353
6057
|
<span class="cstat-no" title="statement not covered" > astNode.name = astNode.body.callee.name;</span>
|
|
6354
6058
|
}
|
|
@@ -6362,17 +6066,17 @@ function <span class="fstat-no" title="function not covered" >transAstNodeToNasl
|
|
|
6362
6066
|
parentNode: astNode.parentNode,
|
|
6363
6067
|
parentKey: astNode.parentKey,
|
|
6364
6068
|
arguments: astNode?.body?.arguments
|
|
6365
|
-
?.map(
|
|
6069
|
+
?.map(<span class="fstat-no" title="function not covered" >(a</span>rgument: any) => (<span class="cstat-no" title="statement not covered" >{</span>
|
|
6366
6070
|
concept: 'Argument',
|
|
6367
6071
|
name: '',
|
|
6368
6072
|
kind: 'Statement',
|
|
6369
6073
|
keyword: '',
|
|
6370
6074
|
expression: transAstNodeToNaslNode(Object.assign({}, argument)),
|
|
6371
6075
|
}))
|
|
6372
|
-
.filter(
|
|
6076
|
+
.filter(<span class="fstat-no" title="function not covered" >(i</span>tem: any) => <span class="cstat-no" title="statement not covered" >item.expression)</span>,
|
|
6373
6077
|
typeArguments: astNode?.body?.arguments
|
|
6374
|
-
?.map(
|
|
6375
|
-
.filter(
|
|
6078
|
+
?.map(<span class="fstat-no" title="function not covered" >(a</span>rgument: any) => <span class="cstat-no" title="statement not covered" >transAstNodeToNaslTypeNode(Object.assign({}, argument)))</span>
|
|
6079
|
+
.filter(<span class="fstat-no" title="function not covered" >(i</span>tem: any) => <span class="cstat-no" title="statement not covered" >item)</span>,
|
|
6376
6080
|
};
|
|
6377
6081
|
<span class="cstat-no" title="statement not covered" > node = Logic.from(</span>
|
|
6378
6082
|
{
|
|
@@ -6388,7 +6092,7 @@ function <span class="fstat-no" title="function not covered" >transAstNodeToNasl
|
|
|
6388
6092
|
<span class="cstat-no" title="statement not covered" > return node;</span>
|
|
6389
6093
|
}
|
|
6390
6094
|
|
|
6391
|
-
function <span class="fstat-no" title="function not covered" >transAstNodeToNaslTypeNode(
|
|
6095
|
+
function <span class="fstat-no" title="function not covered" >transAstNodeToNaslTypeNode(</span>astNode: any, namespace?: string): any {
|
|
6392
6096
|
let node = <span class="cstat-no" title="statement not covered" >null;</span>
|
|
6393
6097
|
// 单独特殊处理枚举因为他不是MemberExpression,而是Identifier_
|
|
6394
6098
|
<span class="cstat-no" title="statement not covered" > if (astNode?.value?.startsWith('__enumTypeAnnotation_')) {</span>
|
|
@@ -6409,37 +6113,33 @@ function <span class="fstat-no" title="function not covered" >transAstNodeToNasl
|
|
|
6409
6113
|
// ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓
|
|
6410
6114
|
//================================================================================
|
|
6411
6115
|
import { EventPayload, Params } from '../common/EventEmitter';
|
|
6412
|
-
import { concept, excludedInJSON, property,
|
|
6116
|
+
import { concept, excludedInJSON, property, className } from '../decorators';
|
|
6413
6117
|
|
|
6414
6118
|
import * as utils from '../utils';
|
|
6415
|
-
import * as types from './utils/types';
|
|
6416
|
-
import * as asserts from './utils/asserts';
|
|
6417
6119
|
import { v4 as uuidv4 } from 'uuid';
|
|
6418
6120
|
import BaseNode from '../common/BaseNode';
|
|
6419
|
-
import
|
|
6420
|
-
import
|
|
6421
|
-
import
|
|
6422
|
-
import
|
|
6423
|
-
import
|
|
6424
|
-
import
|
|
6425
|
-
import
|
|
6426
|
-
import
|
|
6121
|
+
import BindAttribute from './BindAttribute__';
|
|
6122
|
+
import BindEvent from './BindEvent__';
|
|
6123
|
+
import BindDirective from './BindDirective__';
|
|
6124
|
+
import BindStyle from './BindStyle__';
|
|
6125
|
+
import View from './View__';
|
|
6126
|
+
import Module from './Module__';
|
|
6127
|
+
import App from './App__';
|
|
6128
|
+
import Frontend from './Frontend__';
|
|
6427
6129
|
|
|
6428
6130
|
/**
|
|
6429
6131
|
* 页面元素
|
|
6430
6132
|
*/
|
|
6133
|
+
@className
|
|
6431
6134
|
@concept('页面元素')
|
|
6135
|
+
// @ts-ignore
|
|
6432
6136
|
export class ViewElement extends BaseNode {
|
|
6433
6137
|
/** 类名 */
|
|
6434
|
-
static readonly ConceptName
|
|
6435
|
-
|
|
6436
|
-
/** 继承链 */
|
|
6437
|
-
static readonly inheritanceChain: string[] = ['BaseNode'];
|
|
6138
|
+
static readonly ConceptName = 'ViewElement';
|
|
6438
6139
|
|
|
6439
6140
|
/**
|
|
6440
6141
|
* 产品概念
|
|
6441
6142
|
*/
|
|
6442
|
-
@property('concept')
|
|
6443
6143
|
// @ts-ignore
|
|
6444
6144
|
readonly concept!: 'ViewElement';
|
|
6445
6145
|
|
|
@@ -6447,107 +6147,92 @@ export class ViewElement extends BaseNode {
|
|
|
6447
6147
|
* 类型
|
|
6448
6148
|
*/
|
|
6449
6149
|
@property()
|
|
6150
|
+
// @ts-ignore
|
|
6450
6151
|
type!: 0;
|
|
6451
6152
|
|
|
6452
6153
|
/**
|
|
6453
6154
|
* 元素标签
|
|
6454
6155
|
*/
|
|
6455
6156
|
@property()
|
|
6157
|
+
// @ts-ignore
|
|
6456
6158
|
tag!: string;
|
|
6457
6159
|
|
|
6458
6160
|
/**
|
|
6459
6161
|
* 页面元素名称
|
|
6460
6162
|
*/
|
|
6461
6163
|
@property()
|
|
6164
|
+
// @ts-ignore
|
|
6462
6165
|
name!: string;
|
|
6463
6166
|
|
|
6464
6167
|
/**
|
|
6465
6168
|
* 静态 class 名
|
|
6466
6169
|
*/
|
|
6467
6170
|
@property()
|
|
6171
|
+
// @ts-ignore
|
|
6468
6172
|
staticClass!: string;
|
|
6469
6173
|
|
|
6470
6174
|
/**
|
|
6471
6175
|
* 静态 style
|
|
6472
6176
|
*/
|
|
6473
6177
|
@property()
|
|
6178
|
+
// @ts-ignore
|
|
6474
6179
|
staticStyle!: string;
|
|
6475
6180
|
|
|
6476
6181
|
/**
|
|
6477
6182
|
* 权限资源描述
|
|
6478
6183
|
*/
|
|
6479
6184
|
@property()
|
|
6185
|
+
// @ts-ignore
|
|
6480
6186
|
authDescription!: string;
|
|
6481
6187
|
|
|
6482
6188
|
/**
|
|
6483
6189
|
* 插槽目标
|
|
6484
6190
|
*/
|
|
6485
6191
|
@property()
|
|
6192
|
+
// @ts-ignore
|
|
6486
6193
|
slotTarget!: string;
|
|
6487
6194
|
|
|
6488
6195
|
/**
|
|
6489
6196
|
* 插槽 scope 表达式
|
|
6490
6197
|
*/
|
|
6491
6198
|
@property()
|
|
6199
|
+
// @ts-ignore
|
|
6492
6200
|
slotScope!: string;
|
|
6493
6201
|
|
|
6494
6202
|
/**
|
|
6495
6203
|
* 元素绑定属性列表
|
|
6496
6204
|
*/
|
|
6497
|
-
@property(
|
|
6498
|
-
objectRef: 'BindAttribute',
|
|
6499
|
-
isArray: true,
|
|
6500
|
-
defaultValue: [],
|
|
6501
|
-
})
|
|
6205
|
+
@property('BindAttribute')
|
|
6502
6206
|
bindAttrs: Array<BindAttribute> = [];
|
|
6503
6207
|
|
|
6504
6208
|
/**
|
|
6505
6209
|
* 元素绑定事件列表
|
|
6506
6210
|
*/
|
|
6507
|
-
@property(
|
|
6508
|
-
objectRef: 'BindEvent',
|
|
6509
|
-
isArray: true,
|
|
6510
|
-
defaultValue: [],
|
|
6511
|
-
})
|
|
6211
|
+
@property('BindEvent')
|
|
6512
6212
|
bindEvents: Array<BindEvent> = [];
|
|
6513
6213
|
|
|
6514
6214
|
/**
|
|
6515
6215
|
* 元素指令列表
|
|
6516
6216
|
*/
|
|
6517
|
-
@property(
|
|
6518
|
-
objectRef: 'BindDirective',
|
|
6519
|
-
isArray: true,
|
|
6520
|
-
defaultValue: [],
|
|
6521
|
-
})
|
|
6217
|
+
@property('BindDirective')
|
|
6522
6218
|
bindDirectives: Array<BindDirective> = [];
|
|
6523
6219
|
|
|
6524
6220
|
/**
|
|
6525
6221
|
* 绑定的角色
|
|
6526
6222
|
*/
|
|
6527
|
-
@property(
|
|
6528
|
-
isArray: true,
|
|
6529
|
-
defaultValue: [],
|
|
6530
|
-
})
|
|
6223
|
+
@property()
|
|
6531
6224
|
bindRoles: Array<string> = [];
|
|
6532
6225
|
|
|
6533
6226
|
/**
|
|
6534
6227
|
* 元素绑定样式列表
|
|
6535
6228
|
*/
|
|
6536
|
-
@property(
|
|
6537
|
-
objectRef: 'BindStyle',
|
|
6538
|
-
isArray: true,
|
|
6539
|
-
defaultValue: [],
|
|
6540
|
-
})
|
|
6229
|
+
@property('BindStyle')
|
|
6541
6230
|
bindStyles: Array<BindStyle> = [];
|
|
6542
6231
|
|
|
6543
6232
|
/**
|
|
6544
6233
|
* 子元素列表
|
|
6545
6234
|
*/
|
|
6546
|
-
@property(
|
|
6547
|
-
objectRef: 'ViewElement',
|
|
6548
|
-
isArray: true,
|
|
6549
|
-
defaultValue: [],
|
|
6550
|
-
})
|
|
6235
|
+
@property('ViewElement')
|
|
6551
6236
|
children: Array<ViewElement> = [];
|
|
6552
6237
|
|
|
6553
6238
|
/**
|
|
@@ -6588,7 +6273,7 @@ export class ViewElement extends BaseNode {
|
|
|
6588
6273
|
* 从父级删除该节点
|
|
6589
6274
|
* @internal
|
|
6590
6275
|
*/
|
|
6591
|
-
<span class="fstat-no" title="function not covered" > _delete() {
|
|
6276
|
+
<span class="fstat-no" title="function not covered" > _delete(</span>) {
|
|
6592
6277
|
let params: Params = <span class="cstat-no" title="statement not covered" >null;</span>
|
|
6593
6278
|
<span class="cstat-no" title="statement not covered" > if (this.parentNode) {</span>
|
|
6594
6279
|
<span class="cstat-no" title="statement not covered" > params = (this.parentNode as any)?.__removeViewElement?.(this);</span>
|
|
@@ -6598,7 +6283,7 @@ export class ViewElement extends BaseNode {
|
|
|
6598
6283
|
/**
|
|
6599
6284
|
* 设置页面元素名称
|
|
6600
6285
|
*/
|
|
6601
|
-
<span class="fstat-no" title="function not covered" > setName(
|
|
6286
|
+
<span class="fstat-no" title="function not covered" > setName(</span>name: string) {
|
|
6602
6287
|
const object = <span class="cstat-no" title="statement not covered" >{</span>
|
|
6603
6288
|
name,
|
|
6604
6289
|
};
|
|
@@ -6611,7 +6296,7 @@ export class ViewElement extends BaseNode {
|
|
|
6611
6296
|
/**
|
|
6612
6297
|
* 设置静态 style
|
|
6613
6298
|
*/
|
|
6614
|
-
<span class="fstat-no" title="function not covered" > setStaticStyle(
|
|
6299
|
+
<span class="fstat-no" title="function not covered" > setStaticStyle(</span>staticStyle: string) {
|
|
6615
6300
|
const object = <span class="cstat-no" title="statement not covered" >{</span>
|
|
6616
6301
|
staticStyle,
|
|
6617
6302
|
};
|
|
@@ -6623,7 +6308,7 @@ export class ViewElement extends BaseNode {
|
|
|
6623
6308
|
/**
|
|
6624
6309
|
* 设置权限资源描述
|
|
6625
6310
|
*/
|
|
6626
|
-
<span class="fstat-no" title="function not covered" > setAuthDescription(
|
|
6311
|
+
<span class="fstat-no" title="function not covered" > setAuthDescription(</span>authDescription: string) {
|
|
6627
6312
|
const object = <span class="cstat-no" title="statement not covered" >{</span>
|
|
6628
6313
|
authDescription,
|
|
6629
6314
|
};
|
|
@@ -6632,13 +6317,13 @@ export class ViewElement extends BaseNode {
|
|
|
6632
6317
|
});
|
|
6633
6318
|
}
|
|
6634
6319
|
|
|
6635
|
-
<span class="fstat-no" title="function not covered" > getBindAttributeExistingNames(
|
|
6320
|
+
<span class="fstat-no" title="function not covered" > getBindAttributeExistingNames(</span>excludedList: Array<BindAttribute> = <span class="branch-0 cbranch-no" title="branch not covered" >[])</span> {
|
|
6636
6321
|
const excludedSet = <span class="cstat-no" title="statement not covered" >new Set(excludedList);</span>
|
|
6637
6322
|
<span class="cstat-no" title="statement not covered" > return ((this.bindAttrs as BindAttribute[]) || [])</span>
|
|
6638
|
-
.filter(
|
|
6639
|
-
.map(
|
|
6323
|
+
.filter(<span class="fstat-no" title="function not covered" >(i</span>tem) => <span class="cstat-no" title="statement not covered" >!excludedSet.has(item))</span>
|
|
6324
|
+
.map(<span class="fstat-no" title="function not covered" >(i</span>tem) => <span class="cstat-no" title="statement not covered" >item.name)</span>;
|
|
6640
6325
|
}
|
|
6641
|
-
<span class="fstat-no" title="function not covered" > getBindAttributeUniqueName(
|
|
6326
|
+
<span class="fstat-no" title="function not covered" > getBindAttributeUniqueName(</span>name = <span class="branch-0 cbranch-no" title="branch not covered" >'bindAttribute1')</span> {
|
|
6642
6327
|
<span class="cstat-no" title="statement not covered" > return utils.unique(name, this.getBindAttributeExistingNames(), undefined, false);</span>
|
|
6643
6328
|
}
|
|
6644
6329
|
|
|
@@ -6663,10 +6348,9 @@ export class ViewElement extends BaseNode {
|
|
|
6663
6348
|
*/
|
|
6664
6349
|
_insertBindAttributeAt(bindAttribute: BindAttribute, index: number): BindAttribute;
|
|
6665
6350
|
|
|
6666
|
-
<span class="fstat-no" title="function not covered" > _insertBindAttributeAt(
|
|
6351
|
+
<span class="fstat-no" title="function not covered" > _insertBindAttributeAt(</span>options: string | Partial<BindAttribute> | BindAttribute, index: number) {
|
|
6667
6352
|
const bindAttributeOptions: any = <span class="cstat-no" title="statement not covered" >{};</span>
|
|
6668
6353
|
const relationOptions = <span class="cstat-no" title="statement not covered" >{ parentNode: this, parentKey: 'bindAttrs' };</span>
|
|
6669
|
-
const <span class="cstat-no" title="statement not covered" >BindAttribute = getConceptConstructor('BindAttribute');</span>
|
|
6670
6354
|
let bindAttribute: BindAttribute;
|
|
6671
6355
|
<span class="cstat-no" title="statement not covered" > if (!options) {</span>
|
|
6672
6356
|
<span class="cstat-no" title="statement not covered" > bindAttribute = BindAttribute.from(</span>
|
|
@@ -6677,7 +6361,7 @@ export class ViewElement extends BaseNode {
|
|
|
6677
6361
|
this,
|
|
6678
6362
|
'bindAttrs',
|
|
6679
6363
|
);
|
|
6680
|
-
<span class="cstat-no" title="statement not covered" >
|
|
6364
|
+
} else <span class="cstat-no" title="statement not covered" >if (typeof options === 'string') {</span>
|
|
6681
6365
|
<span class="cstat-no" title="statement not covered" > bindAttribute = BindAttribute.from(</span>
|
|
6682
6366
|
{
|
|
6683
6367
|
...bindAttributeOptions,
|
|
@@ -6686,8 +6370,8 @@ export class ViewElement extends BaseNode {
|
|
|
6686
6370
|
this,
|
|
6687
6371
|
'bindAttrs',
|
|
6688
6372
|
);
|
|
6689
|
-
<span class="cstat-no" title="statement not covered" >
|
|
6690
|
-
<span class="cstat-no" title="statement not covered" > options.ensureDelete();
|
|
6373
|
+
} else <span class="cstat-no" title="statement not covered" >if (options instanceof BindAttribute) {</span>
|
|
6374
|
+
<span class="cstat-no" title="statement not covered" > options.ensureDelete(); </span>// 同一实例不支持多处存在
|
|
6691
6375
|
<span class="cstat-no" title="statement not covered" > bindAttribute = options;</span>
|
|
6692
6376
|
<span class="cstat-no" title="statement not covered" > Object.assign(bindAttribute, relationOptions);</span>
|
|
6693
6377
|
} else {
|
|
@@ -6722,7 +6406,7 @@ export class ViewElement extends BaseNode {
|
|
|
6722
6406
|
*/
|
|
6723
6407
|
insertBindAttributeAt(bindAttribute: BindAttribute, index: number): BindAttribute;
|
|
6724
6408
|
|
|
6725
|
-
<span class="fstat-no" title="function not covered" > insertBindAttributeAt(
|
|
6409
|
+
<span class="fstat-no" title="function not covered" > insertBindAttributeAt(</span>options: string | Partial<BindAttribute> | BindAttribute, index: number) {
|
|
6726
6410
|
const node = <span class="cstat-no" title="statement not covered" >this._insertBindAttributeAt(options as any, index);</span>
|
|
6727
6411
|
<span class="cstat-no" title="statement not covered" > node.create({</span>
|
|
6728
6412
|
index,
|
|
@@ -6753,7 +6437,7 @@ export class ViewElement extends BaseNode {
|
|
|
6753
6437
|
*/
|
|
6754
6438
|
_addBindAttribute(bindAttribute: BindAttribute): BindAttribute;
|
|
6755
6439
|
|
|
6756
|
-
<span class="fstat-no" title="function not covered" > _addBindAttribute(
|
|
6440
|
+
<span class="fstat-no" title="function not covered" > _addBindAttribute(</span>options?: string | Partial<BindAttribute> | BindAttribute) {
|
|
6757
6441
|
const index = <span class="cstat-no" title="statement not covered" >this.bindAttrs.length;</span>
|
|
6758
6442
|
<span class="cstat-no" title="statement not covered" > return this._insertBindAttributeAt(options as any, index);</span>
|
|
6759
6443
|
}
|
|
@@ -6777,7 +6461,7 @@ export class ViewElement extends BaseNode {
|
|
|
6777
6461
|
*/
|
|
6778
6462
|
addBindAttribute(bindAttribute: BindAttribute): BindAttribute;
|
|
6779
6463
|
|
|
6780
|
-
<span class="fstat-no" title="function not covered" > addBindAttribute(
|
|
6464
|
+
<span class="fstat-no" title="function not covered" > addBindAttribute(</span>options?: string | Partial<BindAttribute> | BindAttribute) {
|
|
6781
6465
|
const node = <span class="cstat-no" title="statement not covered" >this._addBindAttribute(options as any);</span>
|
|
6782
6466
|
const index = <span class="cstat-no" title="statement not covered" >this.bindAttrs.indexOf(node);</span>
|
|
6783
6467
|
<span class="cstat-no" title="statement not covered" > node.create({</span>
|
|
@@ -6788,11 +6472,11 @@ export class ViewElement extends BaseNode {
|
|
|
6788
6472
|
<span class="cstat-no" title="statement not covered" > return node;</span>
|
|
6789
6473
|
}
|
|
6790
6474
|
|
|
6791
|
-
<span class="fstat-no" title="function not covered" > getBindEventExistingNames(
|
|
6475
|
+
<span class="fstat-no" title="function not covered" > getBindEventExistingNames(</span>excludedList: Array<BindEvent> = <span class="branch-0 cbranch-no" title="branch not covered" >[])</span> {
|
|
6792
6476
|
const excludedSet = <span class="cstat-no" title="statement not covered" >new Set(excludedList);</span>
|
|
6793
|
-
<span class="cstat-no" title="statement not covered" > return ((this.bindEvents as BindEvent[]) || []).filter(
|
|
6477
|
+
<span class="cstat-no" title="statement not covered" > return ((this.bindEvents as BindEvent[]) || []).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>
|
|
6794
6478
|
}
|
|
6795
|
-
<span class="fstat-no" title="function not covered" > getBindEventUniqueName(
|
|
6479
|
+
<span class="fstat-no" title="function not covered" > getBindEventUniqueName(</span>name = <span class="branch-0 cbranch-no" title="branch not covered" >'bindEvent1')</span> {
|
|
6796
6480
|
<span class="cstat-no" title="statement not covered" > return utils.unique(name, this.getBindEventExistingNames(), undefined, false);</span>
|
|
6797
6481
|
}
|
|
6798
6482
|
|
|
@@ -6817,10 +6501,9 @@ export class ViewElement extends BaseNode {
|
|
|
6817
6501
|
*/
|
|
6818
6502
|
_insertBindEventAt(bindEvent: BindEvent, index: number): BindEvent;
|
|
6819
6503
|
|
|
6820
|
-
<span class="fstat-no" title="function not covered" > _insertBindEventAt(
|
|
6504
|
+
<span class="fstat-no" title="function not covered" > _insertBindEventAt(</span>options: string | Partial<BindEvent> | BindEvent, index: number) {
|
|
6821
6505
|
const bindEventOptions: any = <span class="cstat-no" title="statement not covered" >{};</span>
|
|
6822
6506
|
const relationOptions = <span class="cstat-no" title="statement not covered" >{ parentNode: this, parentKey: 'bindEvents' };</span>
|
|
6823
|
-
const <span class="cstat-no" title="statement not covered" >BindEvent = getConceptConstructor('BindEvent');</span>
|
|
6824
6507
|
let bindEvent: BindEvent;
|
|
6825
6508
|
<span class="cstat-no" title="statement not covered" > if (!options) {</span>
|
|
6826
6509
|
<span class="cstat-no" title="statement not covered" > bindEvent = BindEvent.from(</span>
|
|
@@ -6831,7 +6514,7 @@ export class ViewElement extends BaseNode {
|
|
|
6831
6514
|
this,
|
|
6832
6515
|
'bindEvents',
|
|
6833
6516
|
);
|
|
6834
|
-
<span class="cstat-no" title="statement not covered" >
|
|
6517
|
+
} else <span class="cstat-no" title="statement not covered" >if (typeof options === 'string') {</span>
|
|
6835
6518
|
<span class="cstat-no" title="statement not covered" > bindEvent = BindEvent.from(</span>
|
|
6836
6519
|
{
|
|
6837
6520
|
...bindEventOptions,
|
|
@@ -6840,8 +6523,8 @@ export class ViewElement extends BaseNode {
|
|
|
6840
6523
|
this,
|
|
6841
6524
|
'bindEvents',
|
|
6842
6525
|
);
|
|
6843
|
-
<span class="cstat-no" title="statement not covered" >
|
|
6844
|
-
<span class="cstat-no" title="statement not covered" > options.ensureDelete();
|
|
6526
|
+
} else <span class="cstat-no" title="statement not covered" >if (options instanceof BindEvent) {</span>
|
|
6527
|
+
<span class="cstat-no" title="statement not covered" > options.ensureDelete(); </span>// 同一实例不支持多处存在
|
|
6845
6528
|
<span class="cstat-no" title="statement not covered" > bindEvent = options;</span>
|
|
6846
6529
|
<span class="cstat-no" title="statement not covered" > Object.assign(bindEvent, relationOptions);</span>
|
|
6847
6530
|
} else {
|
|
@@ -6876,7 +6559,7 @@ export class ViewElement extends BaseNode {
|
|
|
6876
6559
|
*/
|
|
6877
6560
|
insertBindEventAt(bindEvent: BindEvent, index: number): BindEvent;
|
|
6878
6561
|
|
|
6879
|
-
<span class="fstat-no" title="function not covered" > insertBindEventAt(
|
|
6562
|
+
<span class="fstat-no" title="function not covered" > insertBindEventAt(</span>options: string | Partial<BindEvent> | BindEvent, index: number) {
|
|
6880
6563
|
const node = <span class="cstat-no" title="statement not covered" >this._insertBindEventAt(options as any, index);</span>
|
|
6881
6564
|
<span class="cstat-no" title="statement not covered" > node.create({</span>
|
|
6882
6565
|
index,
|
|
@@ -6907,7 +6590,7 @@ export class ViewElement extends BaseNode {
|
|
|
6907
6590
|
*/
|
|
6908
6591
|
_addBindEvent(bindEvent: BindEvent): BindEvent;
|
|
6909
6592
|
|
|
6910
|
-
<span class="fstat-no" title="function not covered" > _addBindEvent(
|
|
6593
|
+
<span class="fstat-no" title="function not covered" > _addBindEvent(</span>options?: string | Partial<BindEvent> | BindEvent) {
|
|
6911
6594
|
const index = <span class="cstat-no" title="statement not covered" >this.bindEvents.length;</span>
|
|
6912
6595
|
<span class="cstat-no" title="statement not covered" > return this._insertBindEventAt(options as any, index);</span>
|
|
6913
6596
|
}
|
|
@@ -6931,7 +6614,7 @@ export class ViewElement extends BaseNode {
|
|
|
6931
6614
|
*/
|
|
6932
6615
|
addBindEvent(bindEvent: BindEvent): BindEvent;
|
|
6933
6616
|
|
|
6934
|
-
<span class="fstat-no" title="function not covered" > addBindEvent(
|
|
6617
|
+
<span class="fstat-no" title="function not covered" > addBindEvent(</span>options?: string | Partial<BindEvent> | BindEvent) {
|
|
6935
6618
|
const node = <span class="cstat-no" title="statement not covered" >this._addBindEvent(options as any);</span>
|
|
6936
6619
|
const index = <span class="cstat-no" title="statement not covered" >this.bindEvents.indexOf(node);</span>
|
|
6937
6620
|
<span class="cstat-no" title="statement not covered" > node.create({</span>
|
|
@@ -6942,13 +6625,13 @@ export class ViewElement extends BaseNode {
|
|
|
6942
6625
|
<span class="cstat-no" title="statement not covered" > return node;</span>
|
|
6943
6626
|
}
|
|
6944
6627
|
|
|
6945
|
-
<span class="fstat-no" title="function not covered" > getBindDirectiveExistingNames(
|
|
6628
|
+
<span class="fstat-no" title="function not covered" > getBindDirectiveExistingNames(</span>excludedList: Array<BindDirective> = <span class="branch-0 cbranch-no" title="branch not covered" >[])</span> {
|
|
6946
6629
|
const excludedSet = <span class="cstat-no" title="statement not covered" >new Set(excludedList);</span>
|
|
6947
6630
|
<span class="cstat-no" title="statement not covered" > return ((this.bindDirectives as BindDirective[]) || [])</span>
|
|
6948
|
-
.filter(
|
|
6949
|
-
.map(
|
|
6631
|
+
.filter(<span class="fstat-no" title="function not covered" >(i</span>tem) => <span class="cstat-no" title="statement not covered" >!excludedSet.has(item))</span>
|
|
6632
|
+
.map(<span class="fstat-no" title="function not covered" >(i</span>tem) => <span class="cstat-no" title="statement not covered" >item.name)</span>;
|
|
6950
6633
|
}
|
|
6951
|
-
<span class="fstat-no" title="function not covered" > getBindDirectiveUniqueName(
|
|
6634
|
+
<span class="fstat-no" title="function not covered" > getBindDirectiveUniqueName(</span>name = <span class="branch-0 cbranch-no" title="branch not covered" >'bindDirective1')</span> {
|
|
6952
6635
|
<span class="cstat-no" title="statement not covered" > return utils.unique(name, this.getBindDirectiveExistingNames(), undefined, false);</span>
|
|
6953
6636
|
}
|
|
6954
6637
|
|
|
@@ -6973,10 +6656,9 @@ export class ViewElement extends BaseNode {
|
|
|
6973
6656
|
*/
|
|
6974
6657
|
_insertBindDirectiveAt(bindDirective: BindDirective, index: number): BindDirective;
|
|
6975
6658
|
|
|
6976
|
-
<span class="fstat-no" title="function not covered" > _insertBindDirectiveAt(
|
|
6659
|
+
<span class="fstat-no" title="function not covered" > _insertBindDirectiveAt(</span>options: string | Partial<BindDirective> | BindDirective, index: number) {
|
|
6977
6660
|
const bindDirectiveOptions: any = <span class="cstat-no" title="statement not covered" >{};</span>
|
|
6978
6661
|
const relationOptions = <span class="cstat-no" title="statement not covered" >{ parentNode: this, parentKey: 'bindDirectives' };</span>
|
|
6979
|
-
const <span class="cstat-no" title="statement not covered" >BindDirective = getConceptConstructor('BindDirective');</span>
|
|
6980
6662
|
let bindDirective: BindDirective;
|
|
6981
6663
|
<span class="cstat-no" title="statement not covered" > if (!options) {</span>
|
|
6982
6664
|
<span class="cstat-no" title="statement not covered" > bindDirective = BindDirective.from(</span>
|
|
@@ -6987,7 +6669,7 @@ export class ViewElement extends BaseNode {
|
|
|
6987
6669
|
this,
|
|
6988
6670
|
'bindDirectives',
|
|
6989
6671
|
);
|
|
6990
|
-
<span class="cstat-no" title="statement not covered" >
|
|
6672
|
+
} else <span class="cstat-no" title="statement not covered" >if (typeof options === 'string') {</span>
|
|
6991
6673
|
<span class="cstat-no" title="statement not covered" > bindDirective = BindDirective.from(</span>
|
|
6992
6674
|
{
|
|
6993
6675
|
...bindDirectiveOptions,
|
|
@@ -6996,8 +6678,8 @@ export class ViewElement extends BaseNode {
|
|
|
6996
6678
|
this,
|
|
6997
6679
|
'bindDirectives',
|
|
6998
6680
|
);
|
|
6999
|
-
<span class="cstat-no" title="statement not covered" >
|
|
7000
|
-
<span class="cstat-no" title="statement not covered" > options.ensureDelete();
|
|
6681
|
+
} else <span class="cstat-no" title="statement not covered" >if (options instanceof BindDirective) {</span>
|
|
6682
|
+
<span class="cstat-no" title="statement not covered" > options.ensureDelete(); </span>// 同一实例不支持多处存在
|
|
7001
6683
|
<span class="cstat-no" title="statement not covered" > bindDirective = options;</span>
|
|
7002
6684
|
<span class="cstat-no" title="statement not covered" > Object.assign(bindDirective, relationOptions);</span>
|
|
7003
6685
|
} else {
|
|
@@ -7032,7 +6714,7 @@ export class ViewElement extends BaseNode {
|
|
|
7032
6714
|
*/
|
|
7033
6715
|
insertBindDirectiveAt(bindDirective: BindDirective, index: number): BindDirective;
|
|
7034
6716
|
|
|
7035
|
-
<span class="fstat-no" title="function not covered" > insertBindDirectiveAt(
|
|
6717
|
+
<span class="fstat-no" title="function not covered" > insertBindDirectiveAt(</span>options: string | Partial<BindDirective> | BindDirective, index: number) {
|
|
7036
6718
|
const node = <span class="cstat-no" title="statement not covered" >this._insertBindDirectiveAt(options as any, index);</span>
|
|
7037
6719
|
<span class="cstat-no" title="statement not covered" > node.create({</span>
|
|
7038
6720
|
index,
|
|
@@ -7063,7 +6745,7 @@ export class ViewElement extends BaseNode {
|
|
|
7063
6745
|
*/
|
|
7064
6746
|
_addBindDirective(bindDirective: BindDirective): BindDirective;
|
|
7065
6747
|
|
|
7066
|
-
<span class="fstat-no" title="function not covered" > _addBindDirective(
|
|
6748
|
+
<span class="fstat-no" title="function not covered" > _addBindDirective(</span>options?: string | Partial<BindDirective> | BindDirective) {
|
|
7067
6749
|
const index = <span class="cstat-no" title="statement not covered" >this.bindDirectives.length;</span>
|
|
7068
6750
|
<span class="cstat-no" title="statement not covered" > return this._insertBindDirectiveAt(options as any, index);</span>
|
|
7069
6751
|
}
|
|
@@ -7087,7 +6769,7 @@ export class ViewElement extends BaseNode {
|
|
|
7087
6769
|
*/
|
|
7088
6770
|
addBindDirective(bindDirective: BindDirective): BindDirective;
|
|
7089
6771
|
|
|
7090
|
-
<span class="fstat-no" title="function not covered" > addBindDirective(
|
|
6772
|
+
<span class="fstat-no" title="function not covered" > addBindDirective(</span>options?: string | Partial<BindDirective> | BindDirective) {
|
|
7091
6773
|
const node = <span class="cstat-no" title="statement not covered" >this._addBindDirective(options as any);</span>
|
|
7092
6774
|
const index = <span class="cstat-no" title="statement not covered" >this.bindDirectives.indexOf(node);</span>
|
|
7093
6775
|
<span class="cstat-no" title="statement not covered" > node.create({</span>
|
|
@@ -7098,11 +6780,11 @@ export class ViewElement extends BaseNode {
|
|
|
7098
6780
|
<span class="cstat-no" title="statement not covered" > return node;</span>
|
|
7099
6781
|
}
|
|
7100
6782
|
|
|
7101
|
-
<span class="fstat-no" title="function not covered" > getBindStyleExistingNames(
|
|
6783
|
+
<span class="fstat-no" title="function not covered" > getBindStyleExistingNames(</span>excludedList: Array<BindStyle> = <span class="branch-0 cbranch-no" title="branch not covered" >[])</span> {
|
|
7102
6784
|
const excludedSet = <span class="cstat-no" title="statement not covered" >new Set(excludedList);</span>
|
|
7103
|
-
<span class="cstat-no" title="statement not covered" > return ((this.bindStyles as BindStyle[]) || []).filter(
|
|
6785
|
+
<span class="cstat-no" title="statement not covered" > return ((this.bindStyles as BindStyle[]) || []).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>
|
|
7104
6786
|
}
|
|
7105
|
-
<span class="fstat-no" title="function not covered" > getBindStyleUniqueName(
|
|
6787
|
+
<span class="fstat-no" title="function not covered" > getBindStyleUniqueName(</span>name = <span class="branch-0 cbranch-no" title="branch not covered" >'bindStyle1')</span> {
|
|
7106
6788
|
<span class="cstat-no" title="statement not covered" > return utils.unique(name, this.getBindStyleExistingNames(), undefined, false);</span>
|
|
7107
6789
|
}
|
|
7108
6790
|
|
|
@@ -7127,10 +6809,9 @@ export class ViewElement extends BaseNode {
|
|
|
7127
6809
|
*/
|
|
7128
6810
|
_insertBindStyleAt(bindStyle: BindStyle, index: number): BindStyle;
|
|
7129
6811
|
|
|
7130
|
-
<span class="fstat-no" title="function not covered" > _insertBindStyleAt(
|
|
6812
|
+
<span class="fstat-no" title="function not covered" > _insertBindStyleAt(</span>options: string | Partial<BindStyle> | BindStyle, index: number) {
|
|
7131
6813
|
const bindStyleOptions: any = <span class="cstat-no" title="statement not covered" >{};</span>
|
|
7132
6814
|
const relationOptions = <span class="cstat-no" title="statement not covered" >{ parentNode: this, parentKey: 'bindStyles' };</span>
|
|
7133
|
-
const <span class="cstat-no" title="statement not covered" >BindStyle = getConceptConstructor('BindStyle');</span>
|
|
7134
6815
|
let bindStyle: BindStyle;
|
|
7135
6816
|
<span class="cstat-no" title="statement not covered" > if (!options) {</span>
|
|
7136
6817
|
<span class="cstat-no" title="statement not covered" > bindStyle = BindStyle.from(</span>
|
|
@@ -7141,7 +6822,7 @@ export class ViewElement extends BaseNode {
|
|
|
7141
6822
|
this,
|
|
7142
6823
|
'bindStyles',
|
|
7143
6824
|
);
|
|
7144
|
-
<span class="cstat-no" title="statement not covered" >
|
|
6825
|
+
} else <span class="cstat-no" title="statement not covered" >if (typeof options === 'string') {</span>
|
|
7145
6826
|
<span class="cstat-no" title="statement not covered" > bindStyle = BindStyle.from(</span>
|
|
7146
6827
|
{
|
|
7147
6828
|
...bindStyleOptions,
|
|
@@ -7150,8 +6831,8 @@ export class ViewElement extends BaseNode {
|
|
|
7150
6831
|
this,
|
|
7151
6832
|
'bindStyles',
|
|
7152
6833
|
);
|
|
7153
|
-
<span class="cstat-no" title="statement not covered" >
|
|
7154
|
-
<span class="cstat-no" title="statement not covered" > options.ensureDelete();
|
|
6834
|
+
} else <span class="cstat-no" title="statement not covered" >if (options instanceof BindStyle) {</span>
|
|
6835
|
+
<span class="cstat-no" title="statement not covered" > options.ensureDelete(); </span>// 同一实例不支持多处存在
|
|
7155
6836
|
<span class="cstat-no" title="statement not covered" > bindStyle = options;</span>
|
|
7156
6837
|
<span class="cstat-no" title="statement not covered" > Object.assign(bindStyle, relationOptions);</span>
|
|
7157
6838
|
} else {
|
|
@@ -7186,7 +6867,7 @@ export class ViewElement extends BaseNode {
|
|
|
7186
6867
|
*/
|
|
7187
6868
|
insertBindStyleAt(bindStyle: BindStyle, index: number): BindStyle;
|
|
7188
6869
|
|
|
7189
|
-
<span class="fstat-no" title="function not covered" > insertBindStyleAt(
|
|
6870
|
+
<span class="fstat-no" title="function not covered" > insertBindStyleAt(</span>options: string | Partial<BindStyle> | BindStyle, index: number) {
|
|
7190
6871
|
const node = <span class="cstat-no" title="statement not covered" >this._insertBindStyleAt(options as any, index);</span>
|
|
7191
6872
|
<span class="cstat-no" title="statement not covered" > node.create({</span>
|
|
7192
6873
|
index,
|
|
@@ -7217,7 +6898,7 @@ export class ViewElement extends BaseNode {
|
|
|
7217
6898
|
*/
|
|
7218
6899
|
_addBindStyle(bindStyle: BindStyle): BindStyle;
|
|
7219
6900
|
|
|
7220
|
-
<span class="fstat-no" title="function not covered" > _addBindStyle(
|
|
6901
|
+
<span class="fstat-no" title="function not covered" > _addBindStyle(</span>options?: string | Partial<BindStyle> | BindStyle) {
|
|
7221
6902
|
const index = <span class="cstat-no" title="statement not covered" >this.bindStyles.length;</span>
|
|
7222
6903
|
<span class="cstat-no" title="statement not covered" > return this._insertBindStyleAt(options as any, index);</span>
|
|
7223
6904
|
}
|
|
@@ -7241,7 +6922,7 @@ export class ViewElement extends BaseNode {
|
|
|
7241
6922
|
*/
|
|
7242
6923
|
addBindStyle(bindStyle: BindStyle): BindStyle;
|
|
7243
6924
|
|
|
7244
|
-
<span class="fstat-no" title="function not covered" > addBindStyle(
|
|
6925
|
+
<span class="fstat-no" title="function not covered" > addBindStyle(</span>options?: string | Partial<BindStyle> | BindStyle) {
|
|
7245
6926
|
const node = <span class="cstat-no" title="statement not covered" >this._addBindStyle(options as any);</span>
|
|
7246
6927
|
const index = <span class="cstat-no" title="statement not covered" >this.bindStyles.indexOf(node);</span>
|
|
7247
6928
|
<span class="cstat-no" title="statement not covered" > node.create({</span>
|
|
@@ -7273,10 +6954,9 @@ export class ViewElement extends BaseNode {
|
|
|
7273
6954
|
*/
|
|
7274
6955
|
_insertViewElementAt(viewElement: ViewElement, index: number): ViewElement;
|
|
7275
6956
|
|
|
7276
|
-
<span class="fstat-no" title="function not covered" > _insertViewElementAt(
|
|
6957
|
+
<span class="fstat-no" title="function not covered" > _insertViewElementAt(</span>options: string | Partial<ViewElement> | ViewElement, index: number) {
|
|
7277
6958
|
const viewElementOptions: any = <span class="cstat-no" title="statement not covered" >{};</span>
|
|
7278
6959
|
const relationOptions = <span class="cstat-no" title="statement not covered" >{ parentNode: this, parentKey: 'children' };</span>
|
|
7279
|
-
const <span class="cstat-no" title="statement not covered" >ViewElement = getConceptConstructor('ViewElement');</span>
|
|
7280
6960
|
let viewElement: ViewElement;
|
|
7281
6961
|
<span class="cstat-no" title="statement not covered" > if (!options) {</span>
|
|
7282
6962
|
<span class="cstat-no" title="statement not covered" > viewElement = ViewElement.from(</span>
|
|
@@ -7287,7 +6967,7 @@ export class ViewElement extends BaseNode {
|
|
|
7287
6967
|
this,
|
|
7288
6968
|
'children',
|
|
7289
6969
|
);
|
|
7290
|
-
<span class="cstat-no" title="statement not covered" >
|
|
6970
|
+
} else <span class="cstat-no" title="statement not covered" >if (typeof options === 'string') {</span>
|
|
7291
6971
|
<span class="cstat-no" title="statement not covered" > viewElement = ViewElement.from(</span>
|
|
7292
6972
|
{
|
|
7293
6973
|
...viewElementOptions,
|
|
@@ -7296,8 +6976,8 @@ export class ViewElement extends BaseNode {
|
|
|
7296
6976
|
this,
|
|
7297
6977
|
'children',
|
|
7298
6978
|
);
|
|
7299
|
-
<span class="cstat-no" title="statement not covered" >
|
|
7300
|
-
<span class="cstat-no" title="statement not covered" > options.ensureDelete();
|
|
6979
|
+
} else <span class="cstat-no" title="statement not covered" >if (options instanceof ViewElement) {</span>
|
|
6980
|
+
<span class="cstat-no" title="statement not covered" > options.ensureDelete(); </span>// 同一实例不支持多处存在
|
|
7301
6981
|
<span class="cstat-no" title="statement not covered" > viewElement = options;</span>
|
|
7302
6982
|
<span class="cstat-no" title="statement not covered" > Object.assign(viewElement, relationOptions);</span>
|
|
7303
6983
|
} else {
|
|
@@ -7332,7 +7012,7 @@ export class ViewElement extends BaseNode {
|
|
|
7332
7012
|
*/
|
|
7333
7013
|
insertViewElementAt(viewElement: ViewElement, index: number): ViewElement;
|
|
7334
7014
|
|
|
7335
|
-
<span class="fstat-no" title="function not covered" > insertViewElementAt(
|
|
7015
|
+
<span class="fstat-no" title="function not covered" > insertViewElementAt(</span>options: string | Partial<ViewElement> | ViewElement, index: number) {
|
|
7336
7016
|
const node = <span class="cstat-no" title="statement not covered" >this._insertViewElementAt(options as any, index);</span>
|
|
7337
7017
|
<span class="cstat-no" title="statement not covered" > node.create({</span>
|
|
7338
7018
|
index,
|
|
@@ -7363,7 +7043,7 @@ export class ViewElement extends BaseNode {
|
|
|
7363
7043
|
*/
|
|
7364
7044
|
_addViewElement(viewElement: ViewElement): ViewElement;
|
|
7365
7045
|
|
|
7366
|
-
<span class="fstat-no" title="function not covered" > _addViewElement(
|
|
7046
|
+
<span class="fstat-no" title="function not covered" > _addViewElement(</span>options?: string | Partial<ViewElement> | ViewElement) {
|
|
7367
7047
|
const index = <span class="cstat-no" title="statement not covered" >this.children.length;</span>
|
|
7368
7048
|
<span class="cstat-no" title="statement not covered" > return this._insertViewElementAt(options as any, index);</span>
|
|
7369
7049
|
}
|
|
@@ -7387,7 +7067,7 @@ export class ViewElement extends BaseNode {
|
|
|
7387
7067
|
*/
|
|
7388
7068
|
addViewElement(viewElement: ViewElement): ViewElement;
|
|
7389
7069
|
|
|
7390
|
-
<span class="fstat-no" title="function not covered" > addViewElement(
|
|
7070
|
+
<span class="fstat-no" title="function not covered" > addViewElement(</span>options?: string | Partial<ViewElement> | ViewElement) {
|
|
7391
7071
|
const node = <span class="cstat-no" title="statement not covered" >this._addViewElement(options as any);</span>
|
|
7392
7072
|
const index = <span class="cstat-no" title="statement not covered" >this.children.indexOf(node);</span>
|
|
7393
7073
|
<span class="cstat-no" title="statement not covered" > node.create({</span>
|
|
@@ -7410,10 +7090,10 @@ export class ViewElement extends BaseNode {
|
|
|
7410
7090
|
*/
|
|
7411
7091
|
removeBindAttribute(bindAttribute: BindAttribute): void;
|
|
7412
7092
|
|
|
7413
|
-
<span class="fstat-no" title="function not covered" > removeBindAttribute(
|
|
7093
|
+
<span class="fstat-no" title="function not covered" > removeBindAttribute(</span>options: string | BindAttribute) {
|
|
7414
7094
|
let bindAttribute: BindAttribute;
|
|
7415
7095
|
<span class="cstat-no" title="statement not covered" > if (typeof options === 'string') {</span>
|
|
7416
|
-
<span class="cstat-no" title="statement not covered" > bindAttribute = (this.bindAttrs as BindAttribute[]).find(
|
|
7096
|
+
<span class="cstat-no" title="statement not covered" > bindAttribute = (this.bindAttrs as BindAttribute[]).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>
|
|
7417
7097
|
<span class="cstat-no" title="statement not covered" > if (!bindAttribute) {</span>
|
|
7418
7098
|
<span class="cstat-no" title="statement not covered" > throw new Error('找不到元素绑定属性 ' + options);</span>
|
|
7419
7099
|
}
|
|
@@ -7423,7 +7103,7 @@ export class ViewElement extends BaseNode {
|
|
|
7423
7103
|
<span class="cstat-no" title="statement not covered" > return bindAttribute.delete();</span>
|
|
7424
7104
|
}
|
|
7425
7105
|
|
|
7426
|
-
<span class="fstat-no" title="function not covered" > __removeBindAttribute(
|
|
7106
|
+
<span class="fstat-no" title="function not covered" > __removeBindAttribute(</span>bindAttribute: BindAttribute) {
|
|
7427
7107
|
const parentKey = <span class="cstat-no" title="statement not covered" >bindAttribute.parentKey;</span>
|
|
7428
7108
|
const params: Params = <span class="cstat-no" title="statement not covered" >{</span>
|
|
7429
7109
|
parentNode: this,
|
|
@@ -7434,21 +7114,13 @@ export class ViewElement extends BaseNode {
|
|
|
7434
7114
|
};
|
|
7435
7115
|
<span class="cstat-no" title="statement not covered" > if (parentKey) {</span>
|
|
7436
7116
|
<span class="cstat-no" title="statement not covered" > params.parentKey = parentKey;</span>
|
|
7437
|
-
|
|
7438
|
-
|
|
7439
|
-
// @ts-ignore
|
|
7440
|
-
const n = <span class="cstat-no" title="statement not covered" >bindAttribute.__v_raw || bindAttribute;</span>
|
|
7441
|
-
<span class="cstat-no" title="statement not covered" > if (Array.isArray((t as any)[parentKey])) {</span>
|
|
7442
|
-
// @ts-ignore
|
|
7443
|
-
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>
|
|
7117
|
+
<span class="cstat-no" title="statement not covered" > if (Array.isArray((this as any)[parentKey])) {</span>
|
|
7118
|
+
const index = (<span class="cstat-no" title="statement not covered" >this as any)[parentKey].indexOf(bindAttribute);</span>
|
|
7444
7119
|
<span class="cstat-no" title="statement not covered" > ~index && (this as any)[parentKey].splice(index, 1);</span>
|
|
7445
7120
|
<span class="cstat-no" title="statement not covered" > params.index = index;</span>
|
|
7446
|
-
} else {
|
|
7447
|
-
|
|
7448
|
-
<span class="cstat-no" title="statement not covered" >
|
|
7449
|
-
<span class="cstat-no" title="statement not covered" > params.index = 0;</span>
|
|
7450
|
-
(<span class="cstat-no" title="statement not covered" >this as any)[parentKey] = undefined;</span>
|
|
7451
|
-
}
|
|
7121
|
+
} else <span class="cstat-no" title="statement not covered" >if ((this as any)[parentKey] === bindAttribute) {</span>
|
|
7122
|
+
<span class="cstat-no" title="statement not covered" > params.index = 0;</span>
|
|
7123
|
+
(<span class="cstat-no" title="statement not covered" >this as any)[parentKey] = undefined;</span>
|
|
7452
7124
|
}
|
|
7453
7125
|
}
|
|
7454
7126
|
<span class="cstat-no" title="statement not covered" > return params;</span>
|
|
@@ -7466,10 +7138,10 @@ export class ViewElement extends BaseNode {
|
|
|
7466
7138
|
*/
|
|
7467
7139
|
removeBindEvent(bindEvent: BindEvent): void;
|
|
7468
7140
|
|
|
7469
|
-
<span class="fstat-no" title="function not covered" > removeBindEvent(
|
|
7141
|
+
<span class="fstat-no" title="function not covered" > removeBindEvent(</span>options: string | BindEvent) {
|
|
7470
7142
|
let bindEvent: BindEvent;
|
|
7471
7143
|
<span class="cstat-no" title="statement not covered" > if (typeof options === 'string') {</span>
|
|
7472
|
-
<span class="cstat-no" title="statement not covered" > bindEvent = (this.bindEvents as BindEvent[]).find(
|
|
7144
|
+
<span class="cstat-no" title="statement not covered" > bindEvent = (this.bindEvents as BindEvent[]).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>
|
|
7473
7145
|
<span class="cstat-no" title="statement not covered" > if (!bindEvent) {</span>
|
|
7474
7146
|
<span class="cstat-no" title="statement not covered" > throw new Error('找不到元素绑定事件 ' + options);</span>
|
|
7475
7147
|
}
|
|
@@ -7479,7 +7151,7 @@ export class ViewElement extends BaseNode {
|
|
|
7479
7151
|
<span class="cstat-no" title="statement not covered" > return bindEvent.delete();</span>
|
|
7480
7152
|
}
|
|
7481
7153
|
|
|
7482
|
-
<span class="fstat-no" title="function not covered" > __removeBindEvent(
|
|
7154
|
+
<span class="fstat-no" title="function not covered" > __removeBindEvent(</span>bindEvent: BindEvent) {
|
|
7483
7155
|
const parentKey = <span class="cstat-no" title="statement not covered" >bindEvent.parentKey;</span>
|
|
7484
7156
|
const params: Params = <span class="cstat-no" title="statement not covered" >{</span>
|
|
7485
7157
|
parentNode: this,
|
|
@@ -7490,21 +7162,13 @@ export class ViewElement extends BaseNode {
|
|
|
7490
7162
|
};
|
|
7491
7163
|
<span class="cstat-no" title="statement not covered" > if (parentKey) {</span>
|
|
7492
7164
|
<span class="cstat-no" title="statement not covered" > params.parentKey = parentKey;</span>
|
|
7493
|
-
|
|
7494
|
-
|
|
7495
|
-
// @ts-ignore
|
|
7496
|
-
const n = <span class="cstat-no" title="statement not covered" >bindEvent.__v_raw || bindEvent;</span>
|
|
7497
|
-
<span class="cstat-no" title="statement not covered" > if (Array.isArray((t as any)[parentKey])) {</span>
|
|
7498
|
-
// @ts-ignore
|
|
7499
|
-
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>
|
|
7165
|
+
<span class="cstat-no" title="statement not covered" > if (Array.isArray((this as any)[parentKey])) {</span>
|
|
7166
|
+
const index = (<span class="cstat-no" title="statement not covered" >this as any)[parentKey].indexOf(bindEvent);</span>
|
|
7500
7167
|
<span class="cstat-no" title="statement not covered" > ~index && (this as any)[parentKey].splice(index, 1);</span>
|
|
7501
7168
|
<span class="cstat-no" title="statement not covered" > params.index = index;</span>
|
|
7502
|
-
} else {
|
|
7503
|
-
|
|
7504
|
-
<span class="cstat-no" title="statement not covered" >
|
|
7505
|
-
<span class="cstat-no" title="statement not covered" > params.index = 0;</span>
|
|
7506
|
-
(<span class="cstat-no" title="statement not covered" >this as any)[parentKey] = undefined;</span>
|
|
7507
|
-
}
|
|
7169
|
+
} else <span class="cstat-no" title="statement not covered" >if ((this as any)[parentKey] === bindEvent) {</span>
|
|
7170
|
+
<span class="cstat-no" title="statement not covered" > params.index = 0;</span>
|
|
7171
|
+
(<span class="cstat-no" title="statement not covered" >this as any)[parentKey] = undefined;</span>
|
|
7508
7172
|
}
|
|
7509
7173
|
}
|
|
7510
7174
|
<span class="cstat-no" title="statement not covered" > return params;</span>
|
|
@@ -7522,10 +7186,10 @@ export class ViewElement extends BaseNode {
|
|
|
7522
7186
|
*/
|
|
7523
7187
|
removeBindDirective(bindDirective: BindDirective): void;
|
|
7524
7188
|
|
|
7525
|
-
<span class="fstat-no" title="function not covered" > removeBindDirective(
|
|
7189
|
+
<span class="fstat-no" title="function not covered" > removeBindDirective(</span>options: string | BindDirective) {
|
|
7526
7190
|
let bindDirective: BindDirective;
|
|
7527
7191
|
<span class="cstat-no" title="statement not covered" > if (typeof options === 'string') {</span>
|
|
7528
|
-
<span class="cstat-no" title="statement not covered" > bindDirective = (this.bindDirectives as BindDirective[]).find(
|
|
7192
|
+
<span class="cstat-no" title="statement not covered" > bindDirective = (this.bindDirectives as BindDirective[]).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>
|
|
7529
7193
|
<span class="cstat-no" title="statement not covered" > if (!bindDirective) {</span>
|
|
7530
7194
|
<span class="cstat-no" title="statement not covered" > throw new Error('找不到元素指令 ' + options);</span>
|
|
7531
7195
|
}
|
|
@@ -7535,7 +7199,7 @@ export class ViewElement extends BaseNode {
|
|
|
7535
7199
|
<span class="cstat-no" title="statement not covered" > return bindDirective.delete();</span>
|
|
7536
7200
|
}
|
|
7537
7201
|
|
|
7538
|
-
<span class="fstat-no" title="function not covered" > __removeBindDirective(
|
|
7202
|
+
<span class="fstat-no" title="function not covered" > __removeBindDirective(</span>bindDirective: BindDirective) {
|
|
7539
7203
|
const parentKey = <span class="cstat-no" title="statement not covered" >bindDirective.parentKey;</span>
|
|
7540
7204
|
const params: Params = <span class="cstat-no" title="statement not covered" >{</span>
|
|
7541
7205
|
parentNode: this,
|
|
@@ -7546,21 +7210,13 @@ export class ViewElement extends BaseNode {
|
|
|
7546
7210
|
};
|
|
7547
7211
|
<span class="cstat-no" title="statement not covered" > if (parentKey) {</span>
|
|
7548
7212
|
<span class="cstat-no" title="statement not covered" > params.parentKey = parentKey;</span>
|
|
7549
|
-
|
|
7550
|
-
|
|
7551
|
-
// @ts-ignore
|
|
7552
|
-
const n = <span class="cstat-no" title="statement not covered" >bindDirective.__v_raw || bindDirective;</span>
|
|
7553
|
-
<span class="cstat-no" title="statement not covered" > if (Array.isArray((t as any)[parentKey])) {</span>
|
|
7554
|
-
// @ts-ignore
|
|
7555
|
-
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>
|
|
7213
|
+
<span class="cstat-no" title="statement not covered" > if (Array.isArray((this as any)[parentKey])) {</span>
|
|
7214
|
+
const index = (<span class="cstat-no" title="statement not covered" >this as any)[parentKey].indexOf(bindDirective);</span>
|
|
7556
7215
|
<span class="cstat-no" title="statement not covered" > ~index && (this as any)[parentKey].splice(index, 1);</span>
|
|
7557
7216
|
<span class="cstat-no" title="statement not covered" > params.index = index;</span>
|
|
7558
|
-
} else {
|
|
7559
|
-
|
|
7560
|
-
<span class="cstat-no" title="statement not covered" >
|
|
7561
|
-
<span class="cstat-no" title="statement not covered" > params.index = 0;</span>
|
|
7562
|
-
(<span class="cstat-no" title="statement not covered" >this as any)[parentKey] = undefined;</span>
|
|
7563
|
-
}
|
|
7217
|
+
} else <span class="cstat-no" title="statement not covered" >if ((this as any)[parentKey] === bindDirective) {</span>
|
|
7218
|
+
<span class="cstat-no" title="statement not covered" > params.index = 0;</span>
|
|
7219
|
+
(<span class="cstat-no" title="statement not covered" >this as any)[parentKey] = undefined;</span>
|
|
7564
7220
|
}
|
|
7565
7221
|
}
|
|
7566
7222
|
<span class="cstat-no" title="statement not covered" > return params;</span>
|
|
@@ -7578,10 +7234,10 @@ export class ViewElement extends BaseNode {
|
|
|
7578
7234
|
*/
|
|
7579
7235
|
removeBindStyle(bindStyle: BindStyle): void;
|
|
7580
7236
|
|
|
7581
|
-
<span class="fstat-no" title="function not covered" > removeBindStyle(
|
|
7237
|
+
<span class="fstat-no" title="function not covered" > removeBindStyle(</span>options: string | BindStyle) {
|
|
7582
7238
|
let bindStyle: BindStyle;
|
|
7583
7239
|
<span class="cstat-no" title="statement not covered" > if (typeof options === 'string') {</span>
|
|
7584
|
-
<span class="cstat-no" title="statement not covered" > bindStyle = (this.bindStyles as BindStyle[]).find(
|
|
7240
|
+
<span class="cstat-no" title="statement not covered" > bindStyle = (this.bindStyles as BindStyle[]).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>
|
|
7585
7241
|
<span class="cstat-no" title="statement not covered" > if (!bindStyle) {</span>
|
|
7586
7242
|
<span class="cstat-no" title="statement not covered" > throw new Error('找不到元素绑定样式 ' + options);</span>
|
|
7587
7243
|
}
|
|
@@ -7591,7 +7247,7 @@ export class ViewElement extends BaseNode {
|
|
|
7591
7247
|
<span class="cstat-no" title="statement not covered" > return bindStyle.delete();</span>
|
|
7592
7248
|
}
|
|
7593
7249
|
|
|
7594
|
-
<span class="fstat-no" title="function not covered" > __removeBindStyle(
|
|
7250
|
+
<span class="fstat-no" title="function not covered" > __removeBindStyle(</span>bindStyle: BindStyle) {
|
|
7595
7251
|
const parentKey = <span class="cstat-no" title="statement not covered" >bindStyle.parentKey;</span>
|
|
7596
7252
|
const params: Params = <span class="cstat-no" title="statement not covered" >{</span>
|
|
7597
7253
|
parentNode: this,
|
|
@@ -7602,21 +7258,13 @@ export class ViewElement extends BaseNode {
|
|
|
7602
7258
|
};
|
|
7603
7259
|
<span class="cstat-no" title="statement not covered" > if (parentKey) {</span>
|
|
7604
7260
|
<span class="cstat-no" title="statement not covered" > params.parentKey = parentKey;</span>
|
|
7605
|
-
|
|
7606
|
-
|
|
7607
|
-
// @ts-ignore
|
|
7608
|
-
const n = <span class="cstat-no" title="statement not covered" >bindStyle.__v_raw || bindStyle;</span>
|
|
7609
|
-
<span class="cstat-no" title="statement not covered" > if (Array.isArray((t as any)[parentKey])) {</span>
|
|
7610
|
-
// @ts-ignore
|
|
7611
|
-
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>
|
|
7261
|
+
<span class="cstat-no" title="statement not covered" > if (Array.isArray((this as any)[parentKey])) {</span>
|
|
7262
|
+
const index = (<span class="cstat-no" title="statement not covered" >this as any)[parentKey].indexOf(bindStyle);</span>
|
|
7612
7263
|
<span class="cstat-no" title="statement not covered" > ~index && (this as any)[parentKey].splice(index, 1);</span>
|
|
7613
7264
|
<span class="cstat-no" title="statement not covered" > params.index = index;</span>
|
|
7614
|
-
} else {
|
|
7615
|
-
|
|
7616
|
-
<span class="cstat-no" title="statement not covered" >
|
|
7617
|
-
<span class="cstat-no" title="statement not covered" > params.index = 0;</span>
|
|
7618
|
-
(<span class="cstat-no" title="statement not covered" >this as any)[parentKey] = undefined;</span>
|
|
7619
|
-
}
|
|
7265
|
+
} else <span class="cstat-no" title="statement not covered" >if ((this as any)[parentKey] === bindStyle) {</span>
|
|
7266
|
+
<span class="cstat-no" title="statement not covered" > params.index = 0;</span>
|
|
7267
|
+
(<span class="cstat-no" title="statement not covered" >this as any)[parentKey] = undefined;</span>
|
|
7620
7268
|
}
|
|
7621
7269
|
}
|
|
7622
7270
|
<span class="cstat-no" title="statement not covered" > return params;</span>
|
|
@@ -7634,10 +7282,10 @@ export class ViewElement extends BaseNode {
|
|
|
7634
7282
|
*/
|
|
7635
7283
|
removeViewElement(viewElement: ViewElement): void;
|
|
7636
7284
|
|
|
7637
|
-
<span class="fstat-no" title="function not covered" > removeViewElement(
|
|
7285
|
+
<span class="fstat-no" title="function not covered" > removeViewElement(</span>options: string | ViewElement) {
|
|
7638
7286
|
let viewElement: ViewElement;
|
|
7639
7287
|
<span class="cstat-no" title="statement not covered" > if (typeof options === 'string') {</span>
|
|
7640
|
-
<span class="cstat-no" title="statement not covered" > viewElement = (this.children as ViewElement[]).find(
|
|
7288
|
+
<span class="cstat-no" title="statement not covered" > viewElement = (this.children as ViewElement[]).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>
|
|
7641
7289
|
<span class="cstat-no" title="statement not covered" > if (!viewElement) {</span>
|
|
7642
7290
|
<span class="cstat-no" title="statement not covered" > throw new Error('找不到页面元素 ' + options);</span>
|
|
7643
7291
|
}
|
|
@@ -7647,7 +7295,7 @@ export class ViewElement extends BaseNode {
|
|
|
7647
7295
|
<span class="cstat-no" title="statement not covered" > return viewElement.delete();</span>
|
|
7648
7296
|
}
|
|
7649
7297
|
|
|
7650
|
-
<span class="fstat-no" title="function not covered" > __removeViewElement(
|
|
7298
|
+
<span class="fstat-no" title="function not covered" > __removeViewElement(</span>viewElement: ViewElement) {
|
|
7651
7299
|
const parentKey = <span class="cstat-no" title="statement not covered" >viewElement.parentKey;</span>
|
|
7652
7300
|
const params: Params = <span class="cstat-no" title="statement not covered" >{</span>
|
|
7653
7301
|
parentNode: this,
|
|
@@ -7658,21 +7306,13 @@ export class ViewElement extends BaseNode {
|
|
|
7658
7306
|
};
|
|
7659
7307
|
<span class="cstat-no" title="statement not covered" > if (parentKey) {</span>
|
|
7660
7308
|
<span class="cstat-no" title="statement not covered" > params.parentKey = parentKey;</span>
|
|
7661
|
-
|
|
7662
|
-
|
|
7663
|
-
// @ts-ignore
|
|
7664
|
-
const n = <span class="cstat-no" title="statement not covered" >viewElement.__v_raw || viewElement;</span>
|
|
7665
|
-
<span class="cstat-no" title="statement not covered" > if (Array.isArray((t as any)[parentKey])) {</span>
|
|
7666
|
-
// @ts-ignore
|
|
7667
|
-
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>
|
|
7309
|
+
<span class="cstat-no" title="statement not covered" > if (Array.isArray((this as any)[parentKey])) {</span>
|
|
7310
|
+
const index = (<span class="cstat-no" title="statement not covered" >this as any)[parentKey].indexOf(viewElement);</span>
|
|
7668
7311
|
<span class="cstat-no" title="statement not covered" > ~index && (this as any)[parentKey].splice(index, 1);</span>
|
|
7669
7312
|
<span class="cstat-no" title="statement not covered" > params.index = index;</span>
|
|
7670
|
-
} else {
|
|
7671
|
-
|
|
7672
|
-
<span class="cstat-no" title="statement not covered" >
|
|
7673
|
-
<span class="cstat-no" title="statement not covered" > params.index = 0;</span>
|
|
7674
|
-
(<span class="cstat-no" title="statement not covered" >this as any)[parentKey] = undefined;</span>
|
|
7675
|
-
}
|
|
7313
|
+
} else <span class="cstat-no" title="statement not covered" >if ((this as any)[parentKey] === viewElement) {</span>
|
|
7314
|
+
<span class="cstat-no" title="statement not covered" > params.index = 0;</span>
|
|
7315
|
+
(<span class="cstat-no" title="statement not covered" >this as any)[parentKey] = undefined;</span>
|
|
7676
7316
|
}
|
|
7677
7317
|
}
|
|
7678
7318
|
<span class="cstat-no" title="statement not covered" > return params;</span>
|
|
@@ -7689,7 +7329,7 @@ export class ViewElement extends BaseNode {
|
|
|
7689
7329
|
const mainViewName = <span class="cstat-no" title="statement not covered" >_nameSpace.split('.')[2];</span>
|
|
7690
7330
|
<span class="cstat-no" title="statement not covered" > return this.view.parentNode.concept === 'App'</span>
|
|
7691
7331
|
? this.view.auth
|
|
7692
|
-
: this.frontend.views.find(
|
|
7332
|
+
: this.frontend.views.find(<span class="fstat-no" title="function not covered" >(i</span>tem) => <span class="cstat-no" title="statement not covered" >item.name === mainViewName)</span>?.auth;
|
|
7693
7333
|
}
|
|
7694
7334
|
|
|
7695
7335
|
// IDE内展示需要屏蔽掉“系统统一路径前缀”
|
|
@@ -7705,16 +7345,12 @@ export class ViewElement extends BaseNode {
|
|
|
7705
7345
|
}
|
|
7706
7346
|
|
|
7707
7347
|
<span class="fstat-no" title="function not covered" > get a</span>uth() {
|
|
7708
|
-
<span class="cstat-no" title="statement not covered" > return this.bindDirectives.find(
|
|
7348
|
+
<span class="cstat-no" title="statement not covered" > return this.bindDirectives.find(<span class="fstat-no" title="function not covered" >(d</span>irective) => <span class="cstat-no" title="statement not covered" >directive.name === 'auth')</span>;</span>
|
|
7709
7349
|
}
|
|
7710
7350
|
|
|
7711
|
-
<span class="fstat-no" title="function not covered" > getViewElementUniqueName(
|
|
7351
|
+
<span class="fstat-no" title="function not covered" > getViewElementUniqueName(</span>name = <span class="branch-0 cbranch-no" title="branch not covered" >'viewElement1')</span> {
|
|
7712
7352
|
<span class="cstat-no" title="statement not covered" > return this.view?.getViewElementUniqueName(name);</span>
|
|
7713
7353
|
}
|
|
7714
|
-
|
|
7715
|
-
<span class="fstat-no" title="function not covered" > getViewElementUniqueNameOld(n</span>ame = <span class="branch-0 cbranch-no" title="branch not covered" >'viewElement1') {</span>
|
|
7716
|
-
<span class="cstat-no" title="statement not covered" > return this.view?.getViewElementUniqueNameOld(name);</span>
|
|
7717
|
-
}
|
|
7718
7354
|
|
|
7719
7355
|
public static readonly TAG_NAME_PREFIX_REG?: RegExp = /^([lieu]|van)[-_]/;
|
|
7720
7356
|
|
|
@@ -7730,7 +7366,7 @@ export class ViewElement extends BaseNode {
|
|
|
7730
7366
|
/**
|
|
7731
7367
|
* 设置组件权限
|
|
7732
7368
|
*/
|
|
7733
|
-
<span class="fstat-no" title="function not covered" > setBindRoles(
|
|
7369
|
+
<span class="fstat-no" title="function not covered" > setBindRoles(</span>bindRoles: string[]) {
|
|
7734
7370
|
const object = <span class="cstat-no" title="statement not covered" >{</span>
|
|
7735
7371
|
bindRoles,
|
|
7736
7372
|
};
|
|
@@ -7739,8 +7375,8 @@ export class ViewElement extends BaseNode {
|
|
|
7739
7375
|
});
|
|
7740
7376
|
}
|
|
7741
7377
|
|
|
7742
|
-
<span class="fstat-no" title="function not covered" > getBindAttribute(
|
|
7743
|
-
<span class="cstat-no" title="statement not covered" > return this.bindAttrs.find(
|
|
7378
|
+
<span class="fstat-no" title="function not covered" > getBindAttribute(</span>name: string) {
|
|
7379
|
+
<span class="cstat-no" title="statement not covered" > return this.bindAttrs.find(<span class="fstat-no" title="function not covered" >(b</span>indAttr) => <span class="cstat-no" title="statement not covered" >bindAttr.name === name)</span>;</span>
|
|
7744
7380
|
}
|
|
7745
7381
|
|
|
7746
7382
|
toHump(name: string): string {
|
|
@@ -7754,174 +7390,149 @@ export class ViewElement extends BaseNode {
|
|
|
7754
7390
|
return Boolean(this.slotScope);
|
|
7755
7391
|
}
|
|
7756
7392
|
|
|
7757
|
-
|
|
7758
|
-
<span class="fstat-no" title="function not covered" > *t</span>oEmbeddedTSDefinition(<span class="branch-0 cbranch-no" title="branch not covered" >state = createCompilerState()): TranslatorGenerator {</span>
|
|
7759
|
-
const self = <span class="cstat-no" title="statement not covered" >this;</span>
|
|
7393
|
+
<span class="fstat-no" title="function not covered" > toEmbeddedTSDefinition(</span>state?: TranslatorState): string {
|
|
7760
7394
|
let code = <span class="cstat-no" title="statement not covered" >'';</span>
|
|
7761
7395
|
<span class="cstat-no" title="statement not covered" > code += indent((state?.tabSize || 0) + 1);</span>
|
|
7762
7396
|
// 登录组件不翻译
|
|
7763
|
-
<span class="cstat-no" title="statement not covered" > if (
|
|
7764
|
-
<span class="cstat-no" title="statement not covered" > code += `${
|
|
7765
|
-
<span class="cstat-no" title="statement not covered" >
|
|
7766
|
-
<span class="cstat-no" title="statement not covered" > code += `${
|
|
7767
|
-
<span class="cstat-no" title="statement not covered" >
|
|
7768
|
-
<span class="cstat-no" title="statement not covered" > if (
|
|
7769
|
-
<span class="cstat-no" title="statement not covered" > code += `${
|
|
7770
|
-
|
|
7397
|
+
<span class="cstat-no" title="statement not covered" > if (this.toHump(this.tag) === 'lcapLogin' || this.staticClass === 'login-form') {</span>
|
|
7398
|
+
<span class="cstat-no" title="statement not covered" > code += `${this.name}: nasl.ui.div<any>;\n`;</span>
|
|
7399
|
+
} else <span class="cstat-no" title="statement not covered" >if (this.tag === 'u-table-view-column-dynamic') {</span>
|
|
7400
|
+
<span class="cstat-no" title="statement not covered" > code += `${this.name}: nasl.ui.${this.toHump(this.tag)}<any, any>;\n`;</span>
|
|
7401
|
+
} else <span class="cstat-no" title="statement not covered" >if (Object.keys(PAGE_COMPONENT_INCLUDE_TAG_MAP).includes(this.tag)) {</span>
|
|
7402
|
+
<span class="cstat-no" title="statement not covered" > if (this.bindAttrs?.findIndex(<span class="fstat-no" title="function not covered" >(a</span>ttr) => <span class="cstat-no" title="statement not covered" >attr.name === 'data-source')</span> > -1) {</span>
|
|
7403
|
+
<span class="cstat-no" title="statement not covered" > code += `${this.name}: nasl.ui.${this.toHump(this.tag)}<__elements_completionProperty['${</span>
|
|
7404
|
+
this.name
|
|
7771
7405
|
}']['dataSource']>;\n`;
|
|
7772
7406
|
} else {
|
|
7773
|
-
<span class="cstat-no" title="statement not covered" > code += `${
|
|
7407
|
+
<span class="cstat-no" title="statement not covered" > code += `${this.name}: nasl.ui.${this.toHump(this.tag)}<any>;\n`;</span>
|
|
7774
7408
|
}
|
|
7775
7409
|
} else {
|
|
7776
|
-
<span class="cstat-no" title="statement not covered" > code += `${
|
|
7410
|
+
<span class="cstat-no" title="statement not covered" > code += `${this.name}: nasl.ui.${this.toHump(this.tag)}<any>;\n`;</span>
|
|
7777
7411
|
}
|
|
7778
|
-
<span class="cstat-no" title="statement not covered" > if (Array.isArray(
|
|
7779
|
-
<span class="cstat-no" title="statement not covered" >
|
|
7780
|
-
<span class="cstat-no" title="statement not covered" > code +=
|
|
7412
|
+
<span class="cstat-no" title="statement not covered" > if (Array.isArray(this.children)) {</span>
|
|
7413
|
+
<span class="cstat-no" title="statement not covered" > this.children.forEach(<span class="fstat-no" title="function not covered" >(e</span>lement) => {</span>
|
|
7414
|
+
<span class="cstat-no" title="statement not covered" > code += element.toEmbeddedTSDefinition(shiftState(state, code));</span>
|
|
7781
7415
|
});
|
|
7782
7416
|
}
|
|
7783
7417
|
<span class="cstat-no" title="statement not covered" > return code;</span>
|
|
7784
7418
|
}
|
|
7785
7419
|
|
|
7786
|
-
|
|
7787
|
-
<span class="fstat-no" title="function not covered" > *t</span>oEmbeddedTSVariableDefinition(
|
|
7788
|
-
<span class="branch-0 cbranch-no" title="branch not covered" > state = createCompilerState(),</span>
|
|
7789
|
-
variableList?: string[],
|
|
7790
|
-
nameLevel?: string,
|
|
7791
|
-
): TranslatorGenerator {
|
|
7792
|
-
const self = <span class="cstat-no" title="statement not covered" >this;</span>
|
|
7420
|
+
<span class="fstat-no" title="function not covered" > toEmbeddedTSVariableDefinition(</span>state?: TranslatorState, variableList?: string[], nameLevel?: string): string {
|
|
7793
7421
|
let code = <span class="cstat-no" title="statement not covered" >'';</span>
|
|
7794
|
-
let currentLevel = <span class="cstat-no" title="statement not covered" >nameLevel ? `${nameLevel}?.` : ''
|
|
7795
|
-
<span class="cstat-no" title="statement not covered" > currentLevel += `${
|
|
7796
|
-
<span class="cstat-no" title="statement not covered" > if (PAGE_COMPONENT_INCLUDE_TAG_MAP?.[
|
|
7422
|
+
let currentLevel = <span class="cstat-no" title="statement not covered" >nameLevel ? `${nameLevel}?.` : ''</span>
|
|
7423
|
+
<span class="cstat-no" title="statement not covered" > currentLevel += `${this.name}?.()`</span>
|
|
7424
|
+
<span class="cstat-no" title="statement not covered" > if (PAGE_COMPONENT_INCLUDE_TAG_MAP?.[this.tag]) {</span>
|
|
7797
7425
|
<span class="cstat-no" title="statement not covered" > code += indent((state?.tabSize || 0) + 2);</span>
|
|
7798
|
-
<span class="cstat-no" title="statement not covered" > code += `${
|
|
7799
|
-
<span class="cstat-no" title="statement not covered" > if (Array.isArray(
|
|
7800
|
-
<span class="cstat-no" title="statement not covered" >
|
|
7801
|
-
|
|
7802
|
-
|
|
7803
|
-
<span class="cstat-no" title="statement not covered" > code +=
|
|
7426
|
+
<span class="cstat-no" title="statement not covered" > code += `${this.name}: {\n`;</span>
|
|
7427
|
+
<span class="cstat-no" title="statement not covered" > if (Array.isArray(this.bindAttrs)) {</span>
|
|
7428
|
+
<span class="cstat-no" title="statement not covered" > this.bindAttrs</span>
|
|
7429
|
+
.filter(<span class="fstat-no" title="function not covered" >(a</span>ttr) => <span class="cstat-no" title="statement not covered" >PAGE_COMPONENT_INCLUDE_TAG_MAP[this.tag]?.[attr.name])</span>
|
|
7430
|
+
.forEach(<span class="fstat-no" title="function not covered" >(a</span>ttr) => {
|
|
7431
|
+
<span class="cstat-no" title="statement not covered" > code += attr.toEmbeddedTSVariableDefinition(</span>
|
|
7804
7432
|
shiftState(state, code, { inline: true }),
|
|
7805
7433
|
variableList,
|
|
7806
|
-
|
|
7434
|
+
this.name,
|
|
7807
7435
|
currentLevel,
|
|
7808
7436
|
);
|
|
7809
|
-
}
|
|
7810
|
-
|
|
7811
|
-
<span class="cstat-no" title="statement not covered" > if (['u-select', 'van-pickerson'].includes(
|
|
7437
|
+
});
|
|
7438
|
+
|
|
7439
|
+
<span class="cstat-no" title="statement not covered" > if (['u-select', 'van-pickerson'].includes(this.tag)) {</span>
|
|
7812
7440
|
<span class="cstat-no" title="statement not covered" > code += indent((state?.tabSize || 0) + 3);</span>
|
|
7813
7441
|
<span class="cstat-no" title="statement not covered" > code += `pageNumber: nasl.core.Long\n`;</span>
|
|
7814
|
-
<span class="cstat-no" title="statement not covered" >
|
|
7815
|
-
|
|
7816
|
-
<span class="cstat-no" title="statement not covered" >
|
|
7817
|
-
['u-list-view', 'u-grid-view', 'u-table-view', 'van-list-view', 'van-grid-view'].includes(self.tag) &&
|
|
7818
|
-
self.bindAttrs?.findIndex((<span class="fstat-no" title="function not covered" >attr) => <span class="cstat-no" title="statement not covered" >a</span>ttr.name === 'sorting')</span> === -1
|
|
7442
|
+
} else <span class="cstat-no" title="statement not covered" >if (</span>
|
|
7443
|
+
['u-list-view', 'u-grid-view', 'u-table-view', 'van-list-view', 'van-grid-view'].includes(this.tag) &&
|
|
7444
|
+
this.bindAttrs?.findIndex(<span class="fstat-no" title="function not covered" >(a</span>ttr) => <span class="cstat-no" title="statement not covered" >attr.name === 'sorting')</span> === -1
|
|
7819
7445
|
) {
|
|
7820
|
-
<span class="cstat-no" title="statement not covered" > if (['u-list-view', 'van-grid-view', 'van-list-view'].includes(self.tag)) {</span>
|
|
7821
|
-
<span class="cstat-no" title="statement not covered" > code += indent((state?.tabSize || 0) + 3);</span>
|
|
7822
|
-
<span class="cstat-no" title="statement not covered" > code += `filterText: nasl.core.String\n`;</span>
|
|
7823
|
-
}
|
|
7824
7446
|
<span class="cstat-no" title="statement not covered" > code += indent((state?.tabSize || 0) + 3);</span>
|
|
7825
7447
|
<span class="cstat-no" title="statement not covered" > code += `sorting: {</span>
|
|
7826
7448
|
field: nasl.core.String
|
|
7827
7449
|
order: nasl.core.String
|
|
7828
7450
|
}\n`;
|
|
7829
|
-
<span class="cstat-no" title="statement not covered" > } else if (['u-cascader', 'van-cascader'].includes(self.tag)) {</span>
|
|
7830
|
-
<span class="cstat-no" title="statement not covered" > code += indent((state?.tabSize || 0) + 3);</span>
|
|
7831
|
-
<span class="cstat-no" title="statement not covered" > code += `filterText: nasl.core.String\n`;</span>
|
|
7832
7451
|
}
|
|
7833
7452
|
}
|
|
7834
7453
|
<span class="cstat-no" title="statement not covered" > code += indent((state?.tabSize || 0) + 2);</span>
|
|
7835
7454
|
<span class="cstat-no" title="statement not covered" > code += `};\n`;</span>
|
|
7836
7455
|
}
|
|
7837
|
-
<span class="cstat-no" title="statement not covered" > if (Array.isArray(
|
|
7838
|
-
<span class="cstat-no" title="statement not covered" >
|
|
7839
|
-
<span class="cstat-no" title="statement not covered" > code +=
|
|
7456
|
+
<span class="cstat-no" title="statement not covered" > if (Array.isArray(this.children)) {</span>
|
|
7457
|
+
<span class="cstat-no" title="statement not covered" > this.children.forEach(<span class="fstat-no" title="function not covered" >(e</span>lement) => {</span>
|
|
7458
|
+
<span class="cstat-no" title="statement not covered" > code += element.toEmbeddedTSVariableDefinition(shiftState(state, code), variableList, currentLevel);</span>
|
|
7840
7459
|
});
|
|
7841
7460
|
}
|
|
7842
7461
|
<span class="cstat-no" title="statement not covered" > return code;</span>
|
|
7843
7462
|
}
|
|
7844
7463
|
|
|
7845
|
-
|
|
7846
|
-
<span class="fstat-no" title="function not covered" > *t</span>oEmbeddedTSVariableFunctionDefinition(<span class="branch-0 cbranch-no" title="branch not covered" >state = createCompilerState(), p</span>arentLevel?: number): TranslatorGenerator {
|
|
7847
|
-
const self = <span class="cstat-no" title="statement not covered" >this;</span>
|
|
7464
|
+
<span class="fstat-no" title="function not covered" > toEmbeddedTSVariableFunctionDefinition(</span>state?: TranslatorState, parentLevel?: number): string {
|
|
7848
7465
|
let code = <span class="cstat-no" title="statement not covered" >'';</span>
|
|
7849
|
-
<span class="cstat-no" title="statement not covered" >
|
|
7850
|
-
|
|
7851
|
-
<span class="cstat-no" title="statement not covered" >
|
|
7852
|
-
<span class="cstat-no" title="statement not covered" >
|
|
7853
|
-
|
|
7854
|
-
|
|
7855
|
-
|
|
7856
|
-
<span class="cstat-no" title="statement not covered" >
|
|
7857
|
-
<span class="cstat-no" title="statement not covered" >
|
|
7858
|
-
|
|
7859
|
-
|
|
7860
|
-
|
|
7861
|
-
|
|
7862
|
-
|
|
7863
|
-
<span class="cstat-no" title="statement not covered" > targetNode
|
|
7466
|
+
<span class="cstat-no" title="statement not covered" > code += indent((state?.tabSize || 0) + 2);</span>
|
|
7467
|
+
let levelIndex = <span class="cstat-no" title="statement not covered" >parentLevel || 0;</span>
|
|
7468
|
+
<span class="cstat-no" title="statement not covered" > code += `${this.name}: () => {\n`;</span>
|
|
7469
|
+
<span class="cstat-no" title="statement not covered" > if (this.tag === 'template' && this.haveScope() && this.parentNode instanceof ViewElement) {</span>
|
|
7470
|
+
const currentType = <span class="cstat-no" title="statement not covered" >this.parentNode.tag === 'u-table-view-column-dynamic' ? 'CurrentDynamic' : 'Current'</span>
|
|
7471
|
+
const _this = <span class="cstat-no" title="statement not covered" >this.parentNode</span>
|
|
7472
|
+
let genericity = <span class="cstat-no" title="statement not covered" >'';</span>
|
|
7473
|
+
<span class="cstat-no" title="statement not covered" > if (_this.tag === 'u-table-view-column-dynamic') {</span>
|
|
7474
|
+
<span class="cstat-no" title="statement not covered" > genericity += `<${(_this.parentNode as any).__tsVariableDataSourceTypeName}, ${(_this as any).__tsVariableDataSourceTypeName}>`;</span>
|
|
7475
|
+
} else {
|
|
7476
|
+
let targetNode: any = <span class="cstat-no" title="statement not covered" >_this</span>
|
|
7477
|
+
<span class="cstat-no" title="statement not covered" > while (!targetNode.__tsVariableDataSourceTypeName && targetNode?.parentNode instanceof ViewElement) {</span>
|
|
7478
|
+
<span class="cstat-no" title="statement not covered" > targetNode = targetNode.parentNode</span>
|
|
7479
|
+
}
|
|
7480
|
+
<span class="cstat-no" title="statement not covered" > genericity += `<${(targetNode as any).__tsVariableDataSourceTypeName ?? 'any'}>`;</span>
|
|
7481
|
+
}
|
|
7482
|
+
<span class="cstat-no" title="statement not covered" > code += indent((state?.tabSize || 0) + 3);</span>
|
|
7483
|
+
<span class="cstat-no" title="statement not covered" > code += `let current${levelIndex === 0 ? '' : levelIndex}: nasl.ui.${currentType}${genericity}\n`</span>
|
|
7484
|
+
<span class="cstat-no" title="statement not covered" > levelIndex++;</span>
|
|
7485
|
+
}
|
|
7486
|
+
const attr = <span class="cstat-no" title="statement not covered" >this.bindAttrs?.find(<span class="fstat-no" title="function not covered" >(i</span>tem) => <span class="cstat-no" title="statement not covered" >item.name === 'data-source')</span></span>
|
|
7487
|
+
<span class="cstat-no" title="statement not covered" > if (attr && attr.expression) {</span>
|
|
7488
|
+
const datasourceName = <span class="cstat-no" title="statement not covered" >`datasourceName${this.name}`;</span>
|
|
7489
|
+
(<span class="cstat-no" title="statement not covered" >this as any).__tsVariableDataSourceTypeName = datasourceName;</span>
|
|
7490
|
+
<span class="cstat-no" title="statement not covered" > if (</span>
|
|
7491
|
+
attr.expression instanceof MemberExpression ||
|
|
7492
|
+
attr.expression instanceof Identifier ||
|
|
7493
|
+
attr.expression instanceof CallLogic
|
|
7494
|
+
) {
|
|
7495
|
+
const extraParams = <span class="cstat-no" title="statement not covered" >{</span>
|
|
7496
|
+
tabSize: 4,
|
|
7497
|
+
inline: true,
|
|
7498
|
+
noNeedParams: true,
|
|
7499
|
+
};
|
|
7500
|
+
let value = <span class="cstat-no" title="statement not covered" >attr.expression.toEmbeddedTS(</span>
|
|
7501
|
+
shiftState(state, code, attr.expression.concept === 'CallLogic' ? extraParams : {}),
|
|
7502
|
+
);
|
|
7503
|
+
<span class="cstat-no" title="statement not covered" > code += indent((state?.tabSize || 0) + 3);</span>
|
|
7504
|
+
<span class="cstat-no" title="statement not covered" > code += `type ${datasourceName} = nasl.ui.GetItemTypeFromDataSource<typeof ${value}>;\n`;</span>
|
|
7505
|
+
// code += `let current${levelIndex === 0 ? '' : levelIndex}: nasl.ui.${currentType}<nasl.ui.GetItemTypeFromDataSource<typeof ${value}>>;\n`;
|
|
7506
|
+
} else {
|
|
7507
|
+
<span class="cstat-no" title="statement not covered" > code += indent((state?.tabSize || 0) + 3);</span>
|
|
7508
|
+
<span class="cstat-no" title="statement not covered" > code += `const __funcName = () => { return `;</span>
|
|
7509
|
+
<span class="cstat-no" title="statement not covered" > code += attr.expression.toEmbeddedTS(shiftState(state, code));</span>
|
|
7510
|
+
<span class="cstat-no" title="statement not covered" > code += '};\n';</span>
|
|
7511
|
+
<span class="cstat-no" title="statement not covered" > code += indent((state?.tabSize || 0) + 3);</span>
|
|
7512
|
+
<span class="cstat-no" title="statement not covered" > code += `type ${datasourceName} = nasl.ui.GetItemTypeFromDataSource<ReturnType<typeof __funcName>>;\n`;</span>
|
|
7513
|
+
// code += `let current${levelIndex === 0 ? '' : levelIndex}: nasl.ui.${currentType}<nasl.ui.GetItemTypeFromDataSource<ReturnType<typeof __funcName>>>;\n`;
|
|
7864
7514
|
}
|
|
7865
|
-
<span class="cstat-no" title="statement not covered" > genericity += `<${(targetNode as any).__tsVariableDataSourceTypeName ?? 'any'}>`;</span>
|
|
7866
7515
|
}
|
|
7867
7516
|
<span class="cstat-no" title="statement not covered" > code += indent((state?.tabSize || 0) + 3);</span>
|
|
7868
|
-
<span class="cstat-no" title="statement not covered" > code += `
|
|
7869
|
-
<span class="cstat-no" title="statement not covered" >
|
|
7870
|
-
|
|
7871
|
-
|
|
7872
|
-
<span class="
|
|
7873
|
-
|
|
7874
|
-
|
|
7875
|
-
|
|
7876
|
-
|
|
7877
|
-
asserts.isIdentifier(attr.expression) ||
|
|
7878
|
-
asserts.isCallLogic(attr.expression)
|
|
7879
|
-
) {
|
|
7880
|
-
const extraParams = <span class="cstat-no" title="statement not covered" >{</span>
|
|
7881
|
-
tabSize: 4,
|
|
7882
|
-
inline: true,
|
|
7883
|
-
noNeedParams: true,
|
|
7884
|
-
};
|
|
7885
|
-
let value = <span class="cstat-no" title="statement not covered" >yield* attr.expression.toEmbeddedTS(</span>
|
|
7886
|
-
shiftState(state, code, attr.expression.concept === 'CallLogic' ? extraParams : {}),
|
|
7887
|
-
);
|
|
7888
|
-
<span class="cstat-no" title="statement not covered" > code += indent((state?.tabSize || 0) + 3);</span>
|
|
7889
|
-
<span class="cstat-no" title="statement not covered" > code += `type ${datasourceName} = nasl.ui.GetItemTypeFromDataSource<typeof ${value}>;\n`;</span>
|
|
7890
|
-
// code += `let current${levelIndex === 0 ? '' : levelIndex}: nasl.ui.${currentType}<nasl.ui.GetItemTypeFromDataSource<typeof ${value}>>;\n`;
|
|
7891
|
-
} else {
|
|
7892
|
-
<span class="cstat-no" title="statement not covered" > code += indent((state?.tabSize || 0) + 3);</span>
|
|
7893
|
-
<span class="cstat-no" title="statement not covered" > code += `const __funcName = () => { return `;</span>
|
|
7894
|
-
<span class="cstat-no" title="statement not covered" > code += yield* attr.expression.toEmbeddedTS(shiftState(state, code));</span>
|
|
7895
|
-
<span class="cstat-no" title="statement not covered" > code += '};\n';</span>
|
|
7896
|
-
<span class="cstat-no" title="statement not covered" > code += indent((state?.tabSize || 0) + 3);</span>
|
|
7897
|
-
<span class="cstat-no" title="statement not covered" > code += `type ${datasourceName} = nasl.ui.GetItemTypeFromDataSource<ReturnType<typeof __funcName>>;\n`;</span>
|
|
7898
|
-
// code += `let current${levelIndex === 0 ? '' : levelIndex}: nasl.ui.${currentType}<nasl.ui.GetItemTypeFromDataSource<ReturnType<typeof __funcName>>>;\n`;
|
|
7517
|
+
<span class="cstat-no" title="statement not covered" > code += `return {\n`;</span>
|
|
7518
|
+
<span class="cstat-no" title="statement not covered" > if (Array.isArray(this.bindAttrs)) {</span>
|
|
7519
|
+
<span class="cstat-no" title="statement not covered" > this.bindAttrs</span>
|
|
7520
|
+
.filter(<span class="fstat-no" title="function not covered" >(a</span>ttr) => <span class="cstat-no" title="statement not covered" >PAGE_COMPONENT_INCLUDE_TAG_MAP[this.tag]?.[attr.name])</span>
|
|
7521
|
+
.forEach(<span class="fstat-no" title="function not covered" >(a</span>ttr) => {
|
|
7522
|
+
<span class="cstat-no" title="statement not covered" > code += attr.toEmbeddedTSVariableFunctionDefinition(</span>
|
|
7523
|
+
shiftState(state, code, { inline: true }),
|
|
7524
|
+
);
|
|
7525
|
+
});
|
|
7899
7526
|
}
|
|
7900
|
-
|
|
7901
|
-
|
|
7902
|
-
|
|
7903
|
-
|
|
7904
|
-
|
|
7905
|
-
<span class="cstat-no" title="statement not covered" >
|
|
7906
|
-
<span class="cstat-no" title="statement not covered" >
|
|
7907
|
-
|
|
7908
|
-
|
|
7909
|
-
<span class="cstat-no" title="statement not covered" > code += yield* attr.toEmbeddedTSVariableFunctionDefinition(shiftState(state, code, { inline: true }));</span>
|
|
7910
|
-
},
|
|
7911
|
-
);
|
|
7912
|
-
}
|
|
7913
|
-
<span class="cstat-no" title="statement not covered" > if (Array.isArray(self.children)) {</span>
|
|
7914
|
-
<span class="cstat-no" title="statement not covered" > yield* wrapForEach(self.children, function* <span class="fstat-no" title="function not covered" >warpForEachGenerator(e</span>lement) {</span>
|
|
7915
|
-
<span class="cstat-no" title="statement not covered" > code += yield* element.toEmbeddedTSVariableFunctionDefinition(</span>
|
|
7916
|
-
shiftState({ ...state, tabSize: state.tabSize + 2 }, code),
|
|
7917
|
-
levelIndex,
|
|
7918
|
-
);
|
|
7919
|
-
});
|
|
7920
|
-
}
|
|
7921
|
-
<span class="cstat-no" title="statement not covered" > code += indent((state?.tabSize || 0) + 3);</span>
|
|
7922
|
-
<span class="cstat-no" title="statement not covered" > code += `}\n`;</span>
|
|
7923
|
-
<span class="cstat-no" title="statement not covered" > code += indent((state?.tabSize || 0) + 2);</span>
|
|
7924
|
-
<span class="cstat-no" title="statement not covered" > code += `},\n`;</span>
|
|
7527
|
+
<span class="cstat-no" title="statement not covered" > if (Array.isArray(this.children)) {</span>
|
|
7528
|
+
<span class="cstat-no" title="statement not covered" > this.children.forEach(<span class="fstat-no" title="function not covered" >(e</span>lement) => {</span>
|
|
7529
|
+
<span class="cstat-no" title="statement not covered" > code += element.toEmbeddedTSVariableFunctionDefinition(shiftState({...state, tabSize: state.tabSize + 2}, code), levelIndex);</span>
|
|
7530
|
+
});
|
|
7531
|
+
}
|
|
7532
|
+
<span class="cstat-no" title="statement not covered" > code += indent((state?.tabSize || 0) + 3);</span>
|
|
7533
|
+
<span class="cstat-no" title="statement not covered" > code += `}\n`;</span>
|
|
7534
|
+
<span class="cstat-no" title="statement not covered" > code += indent((state?.tabSize || 0) + 2);</span>
|
|
7535
|
+
<span class="cstat-no" title="statement not covered" > code += `},\n`;</span>
|
|
7925
7536
|
<span class="cstat-no" title="statement not covered" > return code;</span>
|
|
7926
7537
|
}
|
|
7927
7538
|
|
|
@@ -7935,7 +7546,7 @@ export class ViewElement extends BaseNode {
|
|
|
7935
7546
|
const tag = this.children[0].tag;
|
|
7936
7547
|
<span class="missing-if-branch" title="if path not taken" >I</span>if (tag === 'u-input') {
|
|
7937
7548
|
<span class="cstat-no" title="statement not covered" > code += '<nasl.core.String>';</span>
|
|
7938
|
-
<span class="missing-if-branch" title="if path not taken" >I</span>
|
|
7549
|
+
} else <span class="missing-if-branch" title="if path not taken" >I</span>if (tag === 'u-input-number') {
|
|
7939
7550
|
<span class="cstat-no" title="statement not covered" > code += '<nasl.core.Long>';</span>
|
|
7940
7551
|
} else {
|
|
7941
7552
|
code += '<any>';
|
|
@@ -7960,9 +7571,9 @@ export class ViewElement extends BaseNode {
|
|
|
7960
7571
|
}
|
|
7961
7572
|
return code;
|
|
7962
7573
|
}
|
|
7963
|
-
|
|
7574
|
+
getDatasourceTypeCodeStr(state?: TranslatorState, eleArr?: Array<ViewElement>): string {
|
|
7964
7575
|
let code = '';
|
|
7965
|
-
|
|
7576
|
+
(eleArr || <span class="branch-1 cbranch-no" title="branch not covered" >[])</span>.forEach((element, index) => {
|
|
7966
7577
|
const bindAttrs = element.bindAttrs;
|
|
7967
7578
|
if (bindAttrs && bindAttrs.length) {
|
|
7968
7579
|
const attr = bindAttrs.find((item) => item.name === 'data-source');
|
|
@@ -7970,23 +7581,23 @@ export class ViewElement extends BaseNode {
|
|
|
7970
7581
|
const datasourceName = `datasourceName${element.name}`;
|
|
7971
7582
|
(element as any).__tsDataSourceTypeName = datasourceName;
|
|
7972
7583
|
<span class="missing-if-branch" title="else path not taken" >E</span>if (
|
|
7973
|
-
|
|
7974
|
-
|
|
7975
|
-
|
|
7584
|
+
attr.expression instanceof MemberExpression ||
|
|
7585
|
+
attr.expression instanceof Identifier ||
|
|
7586
|
+
attr.expression instanceof CallLogic
|
|
7976
7587
|
) {
|
|
7977
7588
|
const extraParams = {
|
|
7978
7589
|
tabSize: 4,
|
|
7979
7590
|
inline: true,
|
|
7980
7591
|
noNeedParams: true,
|
|
7981
7592
|
};
|
|
7982
|
-
let value =
|
|
7593
|
+
let value = attr.expression.toEmbeddedTS(
|
|
7983
7594
|
shiftState(state, code, attr.expression.concept === 'CallLogic' ? extraParams : <span class="branch-1 cbranch-no" title="branch not covered" >{})</span>,
|
|
7984
7595
|
);
|
|
7985
7596
|
code += `type ${datasourceName} = `;
|
|
7986
7597
|
code += `nasl.ui.GetItemTypeFromDataSource<typeof ${value}>;\n`;
|
|
7987
7598
|
} else {
|
|
7988
7599
|
<span class="cstat-no" title="statement not covered" > code += `const __funcName${index} = () => { return`;</span>
|
|
7989
|
-
<span class="cstat-no" title="statement not covered" > code +=
|
|
7600
|
+
<span class="cstat-no" title="statement not covered" > code += attr.expression.toEmbeddedTS(shiftState(state, code));</span>
|
|
7990
7601
|
<span class="cstat-no" title="statement not covered" > code += '};\n';</span>
|
|
7991
7602
|
<span class="cstat-no" title="statement not covered" > code += `type ${datasourceName} = `;</span>
|
|
7992
7603
|
<span class="cstat-no" title="statement not covered" > code += `nasl.ui.GetItemTypeFromDataSource<ReturnType<typeof __funcName${index}>>;\n`;</span>
|
|
@@ -7998,10 +7609,10 @@ export class ViewElement extends BaseNode {
|
|
|
7998
7609
|
code += indent((state?.tabSize || 0) + 2);
|
|
7999
7610
|
return code;
|
|
8000
7611
|
}
|
|
8001
|
-
@
|
|
8002
|
-
|
|
8003
|
-
const
|
|
8004
|
-
|
|
7612
|
+
@withSourceMap()
|
|
7613
|
+
toEmbeddedTS(state?: TranslatorState, parentLevel?: number): string {
|
|
7614
|
+
const { parentNode, app, tag, staticClass, name, bindDirectives, bindRoles, bindEvents, children } = this;
|
|
7615
|
+
|
|
8005
7616
|
const chineseTsName = (name: string) => {
|
|
8006
7617
|
let tsName = name;
|
|
8007
7618
|
// 匹配所有特殊字符都转为_
|
|
@@ -8011,42 +7622,42 @@ export class ViewElement extends BaseNode {
|
|
|
8011
7622
|
}
|
|
8012
7623
|
return tsName;
|
|
8013
7624
|
};
|
|
7625
|
+
|
|
8014
7626
|
// 过滤模板的登录中的一些翻译,这里只过滤h5表格中的两个列
|
|
8015
7627
|
<span class="missing-if-branch" title="if path not taken" >I</span>if (
|
|
8016
|
-
(parentNode.concept === 'ViewElement' &&
|
|
8017
|
-
(parentNode as any).tag &&
|
|
8018
|
-
this.toHump((parentNode as any).tag) === 'lcapLogin') ||
|
|
7628
|
+
(parentNode.concept === 'ViewElement' && parentNode.tag && this.toHump(parentNode.tag) === 'lcapLogin') ||
|
|
8019
7629
|
staticClass === 'login-cell'
|
|
8020
7630
|
) {
|
|
8021
7631
|
<span class="cstat-no" title="statement not covered" > return '';</span>
|
|
8022
7632
|
}
|
|
8023
7633
|
// pc事件翻译
|
|
8024
|
-
if (
|
|
8025
|
-
let code = `new nasl.ui.div({name: __elements.${
|
|
7634
|
+
if (this.toHump(tag) === 'lcapLogin') {
|
|
7635
|
+
let code = `new nasl.ui.div({name: __elements.${this.name},\n`;
|
|
8026
7636
|
// 事件
|
|
8027
|
-
<span class="missing-if-branch" title="else path not taken" >E</span>if (Array.isArray(
|
|
8028
|
-
|
|
8029
|
-
code +=
|
|
7637
|
+
<span class="missing-if-branch" title="else path not taken" >E</span>if (Array.isArray(this.bindEvents)) {
|
|
7638
|
+
this.bindEvents.forEach((event) => {
|
|
7639
|
+
code += event.toEmbeddedTS(
|
|
8030
7640
|
shiftState(state, code, {
|
|
8031
|
-
tabSize: (state?.tabSize || <span class="branch-1 cbranch-no" title="branch not covered" >0) + 2
|
|
7641
|
+
tabSize: (state?.tabSize || <span class="branch-1 cbranch-no" title="branch not covered" >0)</span> + 2,
|
|
8032
7642
|
}),
|
|
8033
7643
|
);
|
|
8034
7644
|
code += '\n';
|
|
8035
7645
|
});
|
|
8036
7646
|
}
|
|
7647
|
+
|
|
8037
7648
|
code += `}),\n`;
|
|
8038
7649
|
return code;
|
|
8039
7650
|
}
|
|
8040
7651
|
let levelIndex = parentLevel || 0;
|
|
8041
|
-
if (tag === 'template' &&
|
|
8042
|
-
const slotTarget = !
|
|
7652
|
+
if (tag === 'template' && this.haveScope()) {
|
|
7653
|
+
const slotTarget = !this.slotTarget ? <span class="branch-0 cbranch-no" title="branch not covered" >'slotDefault' </span>: 'slot' + this.toFirstUpper(this.toHump(this.slotTarget));
|
|
8043
7654
|
let code = '';
|
|
8044
7655
|
code += `${slotTarget}: (current${levelIndex === 0 ? '' : <span class="branch-1 cbranch-no" title="branch not covered" >levelIndex}</span>)=> {\n`;
|
|
8045
|
-
code +=
|
|
7656
|
+
code += this.getDatasourceTypeCodeStr(state, this.children);
|
|
8046
7657
|
levelIndex++;
|
|
8047
7658
|
code += 'return [';
|
|
8048
|
-
|
|
8049
|
-
code +=
|
|
7659
|
+
this.children.forEach((element) => {
|
|
7660
|
+
code += element.toEmbeddedTS(
|
|
8050
7661
|
shiftState(state, code, {
|
|
8051
7662
|
tabSize: state?.tabSize || <span class="branch-1 cbranch-no" title="branch not covered" >0,</span>
|
|
8052
7663
|
}),
|
|
@@ -8058,27 +7669,28 @@ export class ViewElement extends BaseNode {
|
|
|
8058
7669
|
code += '},\n';
|
|
8059
7670
|
return code;
|
|
8060
7671
|
} else if (tag === 'template') {
|
|
8061
|
-
const slotTarget = !
|
|
7672
|
+
const slotTarget = !this.slotTarget ? <span class="branch-0 cbranch-no" title="branch not covered" >'slotDefault' </span>: 'slot' + this.toFirstUpper(this.toHump(this.slotTarget));
|
|
8062
7673
|
let code = '';
|
|
8063
7674
|
code += `${slotTarget}: ()=> {\n`;
|
|
8064
|
-
code +=
|
|
7675
|
+
code += this.getDatasourceTypeCodeStr(state, this.children);
|
|
8065
7676
|
code += 'return [';
|
|
8066
|
-
|
|
8067
|
-
code +=
|
|
7677
|
+
this.children.forEach((element) => {
|
|
7678
|
+
code += element.toEmbeddedTS(
|
|
8068
7679
|
shiftState(state, code, {
|
|
8069
7680
|
tabSize: state?.tabSize || <span class="branch-1 cbranch-no" title="branch not covered" >0,</span>
|
|
8070
7681
|
}),
|
|
8071
7682
|
levelIndex,
|
|
8072
7683
|
);
|
|
8073
7684
|
});
|
|
8074
|
-
code += indent((state?.tabSize || <span class="branch-1 cbranch-no" title="branch not covered" >0) + 2
|
|
7685
|
+
code += indent((state?.tabSize || <span class="branch-1 cbranch-no" title="branch not covered" >0)</span> + 2);
|
|
8075
7686
|
code += ']';
|
|
8076
7687
|
code += '\n';
|
|
8077
7688
|
code += '},\n';
|
|
8078
7689
|
return code;
|
|
8079
7690
|
}
|
|
7691
|
+
|
|
8080
7692
|
// 后面那个name是为了查找引用的时候用的
|
|
8081
|
-
let code = `new nasl.ui.${
|
|
7693
|
+
let code = `new nasl.ui.${this.toHump(tag)}${this.getTypeArgmentsStr(state)}({name: __elements.${name},\n`;
|
|
8082
7694
|
// 是否开启权限
|
|
8083
7695
|
// const hasAuth = Array.isArray(bindDirectives)
|
|
8084
7696
|
// ? !!bindDirectives.filter((directive) => directive.name === 'auth').length
|
|
@@ -8087,7 +7699,7 @@ export class ViewElement extends BaseNode {
|
|
|
8087
7699
|
if (Array.isArray(bindRoles) && bindRoles.length) {
|
|
8088
7700
|
code += indent((state?.tabSize || 0) + 2);
|
|
8089
7701
|
code += 'roles: [\n';
|
|
8090
|
-
|
|
7702
|
+
bindRoles.forEach((role) => {
|
|
8091
7703
|
code += indent((state?.tabSize || 0) + 3);
|
|
8092
7704
|
code += `${app.getNamespace()}.roles.${chineseTsName(role)}.${chineseTsName(role)},`;
|
|
8093
7705
|
code += '\n';
|
|
@@ -8095,41 +7707,43 @@ export class ViewElement extends BaseNode {
|
|
|
8095
7707
|
code += indent((state?.tabSize || 0) + 2);
|
|
8096
7708
|
code += '],\n';
|
|
8097
7709
|
}
|
|
7710
|
+
|
|
8098
7711
|
// 事件
|
|
8099
7712
|
<span class="missing-if-branch" title="else path not taken" >E</span>if (Array.isArray(bindEvents)) {
|
|
8100
|
-
|
|
8101
|
-
code +=
|
|
7713
|
+
bindEvents.forEach((event) => {
|
|
7714
|
+
code += event.toEmbeddedTS(
|
|
8102
7715
|
shiftState(state, code, {
|
|
8103
|
-
tabSize: (state?.tabSize || <span class="branch-1 cbranch-no" title="branch not covered" >0) + 2
|
|
7716
|
+
tabSize: (state?.tabSize || <span class="branch-1 cbranch-no" title="branch not covered" >0)</span> + 2,
|
|
8104
7717
|
}),
|
|
8105
7718
|
);
|
|
8106
7719
|
code += '\n';
|
|
8107
7720
|
});
|
|
8108
7721
|
}
|
|
7722
|
+
|
|
8109
7723
|
// 子元素
|
|
8110
7724
|
<span class="missing-if-branch" title="else path not taken" >E</span>if (Array.isArray(children)) {
|
|
8111
7725
|
code += indent((state?.tabSize || 0) + 1);
|
|
8112
|
-
|
|
7726
|
+
|
|
7727
|
+
<span class="missing-if-branch" title="else path not taken" >E</span>if (Array.isArray(this.bindAttrs)) {
|
|
8113
7728
|
code += `bindAttr: () => [\n`;
|
|
8114
|
-
|
|
8115
|
-
|
|
8116
|
-
|
|
8117
|
-
|
|
8118
|
-
|
|
8119
|
-
|
|
8120
|
-
|
|
8121
|
-
<span class="cstat-no" title="statement not covered" > code += (yield* bindStyle.toEmbeddedTS(shiftState(state, code, { tabSize: 1 }))) + ',\n';</span>
|
|
8122
|
-
});
|
|
7729
|
+
this.bindAttrs.forEach((attr) => (code += attr.toEmbeddedTS(shiftState(state, code, { tabSize: 1 })) + ',\n'));
|
|
7730
|
+
this.bindDirectives.forEach(
|
|
7731
|
+
(directive) => (code += directive.toEmbeddedTS(shiftState(state, code, { tabSize: 1 })) + ',\n'),
|
|
7732
|
+
);
|
|
7733
|
+
this.bindStyles.forEach(
|
|
7734
|
+
<span class="fstat-no" title="function not covered" > (b</span>indStyle) => (<span class="cstat-no" title="statement not covered" >code += bindStyle.toEmbeddedTS(shiftState(state, code, { tabSize: 1 })) + ',\n')</span>,
|
|
7735
|
+
);
|
|
8123
7736
|
code += indent((state?.tabSize || 0) + 2) + '],\n';
|
|
8124
7737
|
}
|
|
7738
|
+
|
|
8125
7739
|
// 如果子集中有插槽的就
|
|
8126
7740
|
if (children.find((item) => item.tag === 'template' && item.slotTarget)) {
|
|
8127
|
-
code += indent((state?.tabSize || <span class="branch-1 cbranch-no" title="branch not covered" >0) + 2
|
|
7741
|
+
code += indent((state?.tabSize || <span class="branch-1 cbranch-no" title="branch not covered" >0)</span> + 2);
|
|
8128
7742
|
const defaultArr: ViewElement[] = [];
|
|
8129
7743
|
// 先把插槽翻译了
|
|
8130
|
-
|
|
7744
|
+
children.forEach((element) => {
|
|
8131
7745
|
if (element.tag === 'template') {
|
|
8132
|
-
code +=
|
|
7746
|
+
code += element.toEmbeddedTS(
|
|
8133
7747
|
shiftState(state, code, {
|
|
8134
7748
|
tabSize: state?.tabSize || <span class="branch-1 cbranch-no" title="branch not covered" >0,</span>
|
|
8135
7749
|
}),
|
|
@@ -8141,31 +7755,31 @@ export class ViewElement extends BaseNode {
|
|
|
8141
7755
|
});
|
|
8142
7756
|
// 翻译其余的子集
|
|
8143
7757
|
if (defaultArr.length) {
|
|
8144
|
-
code += indent((state?.tabSize || <span class="branch-1 cbranch-no" title="branch not covered" >0) + 2
|
|
7758
|
+
code += indent((state?.tabSize || <span class="branch-1 cbranch-no" title="branch not covered" >0)</span> + 2);
|
|
8145
7759
|
code += `slotDefault: ()=> {\n`;
|
|
8146
|
-
code +=
|
|
7760
|
+
code += this.getDatasourceTypeCodeStr(state, defaultArr);
|
|
8147
7761
|
code += 'return [';
|
|
8148
|
-
|
|
8149
|
-
code +=
|
|
7762
|
+
defaultArr.forEach((element) => {
|
|
7763
|
+
code += element.toEmbeddedTS(
|
|
8150
7764
|
shiftState(state, code, {
|
|
8151
|
-
tabSize: (state?.tabSize || <span class="branch-1 cbranch-no" title="branch not covered" >0) + 2
|
|
7765
|
+
tabSize: (state?.tabSize || <span class="branch-1 cbranch-no" title="branch not covered" >0)</span> + 2,
|
|
8152
7766
|
}),
|
|
8153
7767
|
levelIndex,
|
|
8154
7768
|
);
|
|
8155
7769
|
code += '\n';
|
|
8156
7770
|
});
|
|
8157
|
-
code += indent((state?.tabSize || <span class="branch-1 cbranch-no" title="branch not covered" >0) + 2
|
|
7771
|
+
code += indent((state?.tabSize || <span class="branch-1 cbranch-no" title="branch not covered" >0)</span> + 2);
|
|
8158
7772
|
code += ']\n';
|
|
8159
|
-
code += indent((state?.tabSize || <span class="branch-1 cbranch-no" title="branch not covered" >0) + 1
|
|
7773
|
+
code += indent((state?.tabSize || <span class="branch-1 cbranch-no" title="branch not covered" >0)</span> + 1);
|
|
8160
7774
|
code += '}\n';
|
|
8161
7775
|
}
|
|
8162
7776
|
} else {
|
|
8163
7777
|
code += indent((state?.tabSize || 0) + 2);
|
|
8164
7778
|
code += `slotDefault: ()=> {\n`;
|
|
8165
|
-
code +=
|
|
7779
|
+
code += this.getDatasourceTypeCodeStr(state, children);
|
|
8166
7780
|
code += 'return [';
|
|
8167
|
-
|
|
8168
|
-
code +=
|
|
7781
|
+
children.forEach((element) => {
|
|
7782
|
+
code += element.toEmbeddedTS(
|
|
8169
7783
|
shiftState(state, code, {
|
|
8170
7784
|
tabSize: (state?.tabSize || 0) + 2,
|
|
8171
7785
|
}),
|
|
@@ -8179,67 +7793,59 @@ export class ViewElement extends BaseNode {
|
|
|
8179
7793
|
code += '}\n';
|
|
8180
7794
|
}
|
|
8181
7795
|
}
|
|
7796
|
+
|
|
8182
7797
|
code += indent(state?.tabSize || 0) + '})';
|
|
7798
|
+
|
|
8183
7799
|
// 顶层元素是单独的表达式
|
|
8184
7800
|
if (parentNode.concept === 'View') {
|
|
8185
7801
|
code += ';\n';
|
|
8186
7802
|
} else {
|
|
8187
7803
|
code += ',\n';
|
|
8188
7804
|
}
|
|
7805
|
+
|
|
8189
7806
|
return code;
|
|
8190
7807
|
}
|
|
8191
7808
|
|
|
8192
7809
|
@withSourceMap()
|
|
8193
|
-
<span class="fstat-no" title="function not covered" > toNaturalTS(<span class="branch-0 cbranch-no" title="branch not covered" >
|
|
7810
|
+
<span class="fstat-no" title="function not covered" > toNaturalTS(</span>state = <span class="branch-0 cbranch-no" title="branch not covered" >createCompilerState(),</span> parentLevel?: number): string {
|
|
8194
7811
|
let code = <span class="cstat-no" title="statement not covered" >'';</span>
|
|
8195
7812
|
const levelIndex = <span class="cstat-no" title="statement not covered" >parentLevel || 0;</span>
|
|
8196
7813
|
<span class="cstat-no" title="statement not covered" > if (Array.isArray(this.bindEvents)) {</span>
|
|
8197
|
-
<span class="cstat-no" title="statement not covered" > this.bindEvents.forEach(
|
|
8198
|
-
<span class="cstat-no" title="statement not covered" > code += event.toNaturalTS(</span>
|
|
8199
|
-
|
|
8200
|
-
|
|
8201
|
-
}),
|
|
8202
|
-
);
|
|
7814
|
+
<span class="cstat-no" title="statement not covered" > this.bindEvents.forEach(<span class="fstat-no" title="function not covered" >(e</span>vent) => {</span>
|
|
7815
|
+
<span class="cstat-no" title="statement not covered" > code += event.toNaturalTS(shiftState(state, code, {</span>
|
|
7816
|
+
tabSize: state.tabSize,
|
|
7817
|
+
}));
|
|
8203
7818
|
// code += '\n';
|
|
8204
7819
|
});
|
|
8205
7820
|
}
|
|
8206
7821
|
|
|
8207
7822
|
<span class="cstat-no" title="statement not covered" > if (Array.isArray(this.children)) {</span>
|
|
8208
|
-
<span class="cstat-no" title="statement not covered" > if (this.children.find(
|
|
7823
|
+
<span class="cstat-no" title="statement not covered" > if (this.children.find(<span class="fstat-no" title="function not covered" >(i</span>tem) => <span class="cstat-no" title="statement not covered" >item.tag === 'template' && item.slotTarget)</span>) {</span>
|
|
8209
7824
|
// code += indent(state.tabSize + 2);
|
|
8210
7825
|
const defaultArr: ViewElement[] = <span class="cstat-no" title="statement not covered" >[];</span>
|
|
8211
7826
|
// 先把插槽翻译了
|
|
8212
|
-
<span class="cstat-no" title="statement not covered" > this.children.forEach(
|
|
7827
|
+
<span class="cstat-no" title="statement not covered" > this.children.forEach(<span class="fstat-no" title="function not covered" >(e</span>lement) => {</span>
|
|
8213
7828
|
<span class="cstat-no" title="statement not covered" > if (element.tag === 'template') {</span>
|
|
8214
|
-
<span class="cstat-no" title="statement not covered" > code += element.toNaturalTS(</span>
|
|
8215
|
-
|
|
8216
|
-
|
|
8217
|
-
}),
|
|
8218
|
-
levelIndex,
|
|
8219
|
-
);
|
|
7829
|
+
<span class="cstat-no" title="statement not covered" > code += element.toNaturalTS(shiftState(state, code, {</span>
|
|
7830
|
+
tabSize: state.tabSize,
|
|
7831
|
+
}), levelIndex);
|
|
8220
7832
|
} else {
|
|
8221
7833
|
<span class="cstat-no" title="statement not covered" > defaultArr.push(element);</span>
|
|
8222
7834
|
}
|
|
8223
7835
|
});
|
|
8224
7836
|
// 翻译其余的子集
|
|
8225
7837
|
<span class="cstat-no" title="statement not covered" > if (defaultArr.length) {</span>
|
|
8226
|
-
<span class="cstat-no" title="statement not covered" > defaultArr.forEach(
|
|
8227
|
-
<span class="cstat-no" title="statement not covered" > code += element.toNaturalTS(</span>
|
|
8228
|
-
|
|
8229
|
-
|
|
8230
|
-
}),
|
|
8231
|
-
levelIndex,
|
|
8232
|
-
);
|
|
7838
|
+
<span class="cstat-no" title="statement not covered" > defaultArr.forEach(<span class="fstat-no" title="function not covered" >(e</span>lement) => {</span>
|
|
7839
|
+
<span class="cstat-no" title="statement not covered" > code += element.toNaturalTS(shiftState(state, code, {</span>
|
|
7840
|
+
tabSize: state.tabSize,
|
|
7841
|
+
}), levelIndex);
|
|
8233
7842
|
});
|
|
8234
7843
|
}
|
|
8235
7844
|
} else {
|
|
8236
|
-
<span class="cstat-no" title="statement not covered" > this.children.forEach(
|
|
8237
|
-
<span class="cstat-no" title="statement not covered" > code += element.toNaturalTS(</span>
|
|
8238
|
-
|
|
8239
|
-
|
|
8240
|
-
}),
|
|
8241
|
-
levelIndex,
|
|
8242
|
-
);
|
|
7845
|
+
<span class="cstat-no" title="statement not covered" > this.children.forEach(<span class="fstat-no" title="function not covered" >(e</span>lement) => {</span>
|
|
7846
|
+
<span class="cstat-no" title="statement not covered" > code += element.toNaturalTS(shiftState(state, code, {</span>
|
|
7847
|
+
tabSize: state.tabSize,
|
|
7848
|
+
}), levelIndex);
|
|
8243
7849
|
});
|
|
8244
7850
|
}
|
|
8245
7851
|
}
|
|
@@ -8247,7 +7853,7 @@ export class ViewElement extends BaseNode {
|
|
|
8247
7853
|
<span class="cstat-no" title="statement not covered" > return code;</span>
|
|
8248
7854
|
}
|
|
8249
7855
|
|
|
8250
|
-
<span class="fstat-no" title="function not covered" > toNaturalTSDefinition(
|
|
7856
|
+
<span class="fstat-no" title="function not covered" > toNaturalTSDefinition(</span>state?: TranslatorState): string {
|
|
8251
7857
|
let code = <span class="cstat-no" title="statement not covered" >'';</span>
|
|
8252
7858
|
|
|
8253
7859
|
<span class="cstat-no" title="statement not covered" > if (['u-button', 'u-form', 'u-modal', 'u-table-view', 'u-select', 'u-input', 'u-number-input'].includes(this.tag)) {</span>
|
|
@@ -8261,34 +7867,27 @@ export class ViewElement extends BaseNode {
|
|
|
8261
7867
|
}
|
|
8262
7868
|
|
|
8263
7869
|
<span class="cstat-no" title="statement not covered" > if (Array.isArray(this.children)) {</span>
|
|
8264
|
-
<span class="cstat-no" title="statement not covered" > this.children.forEach(
|
|
7870
|
+
<span class="cstat-no" title="statement not covered" > this.children.forEach(<span class="fstat-no" title="function not covered" >(e</span>lement) => {</span>
|
|
8265
7871
|
<span class="cstat-no" title="statement not covered" > code += element.toNaturalTSDefinition(shiftState(state, code));</span>
|
|
8266
7872
|
});
|
|
8267
7873
|
}
|
|
8268
7874
|
<span class="cstat-no" title="statement not covered" > return code;</span>
|
|
8269
7875
|
}
|
|
8270
7876
|
|
|
8271
|
-
<span class="fstat-no" title="function not covered" > _duplicate() {
|
|
7877
|
+
<span class="fstat-no" title="function not covered" > _duplicate(</span>) {
|
|
8272
7878
|
const element = <span class="cstat-no" title="statement not covered" >ViewElement.from(this.toTemplateJSON());</span>
|
|
8273
7879
|
const nameMap = <span class="cstat-no" title="statement not covered" >element.deepRenameElements(this);</span>
|
|
8274
7880
|
|
|
8275
7881
|
<span class="cstat-no" title="statement not covered" > utils.traverse(</span>
|
|
8276
|
-
|
|
7882
|
+
<span class="fstat-no" title="function not covered" > (c</span>urrent) => {
|
|
8277
7883
|
const node = <span class="cstat-no" title="statement not covered" >current.node as any;</span>
|
|
8278
|
-
<span class="cstat-no" title="statement not covered" > if (node.concept === 'CallLogic') {</span>
|
|
8279
|
-
<span class="cstat-no" title="statement not covered" >
|
|
8280
|
-
<span class="cstat-no" title="statement not covered" > if (
|
|
8281
|
-
const
|
|
8282
|
-
<span class="cstat-no" title="statement not covered" >
|
|
8283
|
-
const newName = <span class="cstat-no" title="statement not covered" >nameMap.get(oldName);</span>
|
|
8284
|
-
<span class="cstat-no" title="statement not covered" > node.calleeNamespace = `elements.${newName}.logics`;</span>
|
|
8285
|
-
}
|
|
7884
|
+
<span class="cstat-no" title="statement not covered" > if (node.concept === 'CallLogic' && /elements.(.+).logics/.test(node.calleeNamespace)) {</span>
|
|
7885
|
+
const oldName = <span class="cstat-no" title="statement not covered" >node.calleeNamespace.split('.')[1];</span>
|
|
7886
|
+
<span class="cstat-no" title="statement not covered" > if (nameMap.has(oldName)) {</span>
|
|
7887
|
+
const newName = <span class="cstat-no" title="statement not covered" >nameMap.get(oldName);</span>
|
|
7888
|
+
<span class="cstat-no" title="statement not covered" > node.calleeNamespace = `elements.${newName}.logics`;</span>
|
|
8286
7889
|
}
|
|
8287
7890
|
}
|
|
8288
|
-
// 如果创建副本,内部的国际化标识都要去掉
|
|
8289
|
-
<span class="cstat-no" title="statement not covered" > if (node.i18nKey) {</span>
|
|
8290
|
-
<span class="cstat-no" title="statement not covered" > delete node.i18nKey;</span>
|
|
8291
|
-
}
|
|
8292
7891
|
},
|
|
8293
7892
|
{ node: element },
|
|
8294
7893
|
{ mode: 'anyObject', excludedKeySet: element.JSON_EXCLUDED_KEYS },
|
|
@@ -8299,9 +7898,9 @@ export class ViewElement extends BaseNode {
|
|
|
8299
7898
|
}
|
|
8300
7899
|
|
|
8301
7900
|
// 递归遍历组件
|
|
8302
|
-
public <span class="fstat-no" title="function not covered" >traverseChildren(
|
|
7901
|
+
public <span class="fstat-no" title="function not covered" >traverseChildren(</span>cb: (ele: ViewElement) => void): void {
|
|
8303
7902
|
<span class="cstat-no" title="statement not covered" > utils.traverse(</span>
|
|
8304
|
-
|
|
7903
|
+
<span class="fstat-no" title="function not covered" > (c</span>urrent) => {
|
|
8305
7904
|
<span class="cstat-no" title="statement not covered" > cb(current.node);</span>
|
|
8306
7905
|
},
|
|
8307
7906
|
{ node: this },
|
|
@@ -8309,9 +7908,9 @@ export class ViewElement extends BaseNode {
|
|
|
8309
7908
|
}
|
|
8310
7909
|
|
|
8311
7910
|
// 递归生成组件名
|
|
8312
|
-
public <span class="fstat-no" title="function not covered" >deepRenameElements(
|
|
7911
|
+
public <span class="fstat-no" title="function not covered" >deepRenameElements(</span>node: ViewElement) {
|
|
8313
7912
|
const map = <span class="cstat-no" title="statement not covered" >new Map<string, string>();</span>
|
|
8314
|
-
<span class="cstat-no" title="statement not covered" > this.traverseChildren(
|
|
7913
|
+
<span class="cstat-no" title="statement not covered" > this.traverseChildren(<span class="fstat-no" title="function not covered" >(e</span>le: ViewElement) => {</span>
|
|
8315
7914
|
const oldName = <span class="cstat-no" title="statement not covered" >ele.name;</span>
|
|
8316
7915
|
const tagName = <span class="cstat-no" title="statement not covered" >ele.tag.replace(ViewElement.TAG_NAME_PREFIX_REG, '').replace(/-/g, '_');</span>
|
|
8317
7916
|
<span class="cstat-no" title="statement not covered" > ele.name = node.getViewElementUniqueName(`${tagName}1`);</span>
|
|
@@ -8326,7 +7925,7 @@ export class ViewElement extends BaseNode {
|
|
|
8326
7925
|
* @param $def 目前 $def 只用来查找 $def.variables 和 $def.structures
|
|
8327
7926
|
* @param dataSchema
|
|
8328
7927
|
*/
|
|
8329
|
-
<span class="fstat-no" title="function not covered" >
|
|
7928
|
+
private <span class="fstat-no" title="function not covered" >static </span>_parseExpression(value: string) {
|
|
8330
7929
|
<span class="cstat-no" title="statement not covered" > try {</span>
|
|
8331
7930
|
const ast = <span class="cstat-no" title="statement not covered" >babelParser.parseExpression(value) as any;</span>
|
|
8332
7931
|
const node = <span class="cstat-no" title="statement not covered" >transAstNodeToNaslNode(ast);</span>
|
|
@@ -8336,18 +7935,18 @@ export class ViewElement extends BaseNode {
|
|
|
8336
7935
|
}
|
|
8337
7936
|
}
|
|
8338
7937
|
|
|
8339
|
-
<span class="fstat-no" title="function not covered" >
|
|
7938
|
+
private <span class="fstat-no" title="function not covered" >static </span>_parseValidationRule(value: string) {
|
|
8340
7939
|
let calleeName = <span class="cstat-no" title="statement not covered" >value;</span>
|
|
8341
7940
|
let args: any[] = <span class="cstat-no" title="statement not covered" >[];</span>
|
|
8342
7941
|
<span class="cstat-no" title="statement not covered" > try {</span>
|
|
8343
7942
|
const ast = <span class="cstat-no" title="statement not covered" >babelParser.parseExpression(value) as any;</span>
|
|
8344
|
-
const <span class="cstat-no" title="statement not covered" >
|
|
7943
|
+
const validationNamespace = <span class="cstat-no" title="statement not covered" >stdlibNamespace.findChild('validation');</span>
|
|
8345
7944
|
<span class="cstat-no" title="statement not covered" > if (ast.type === 'CallExpression') {</span>
|
|
8346
7945
|
<span class="cstat-no" title="statement not covered" > calleeName = (ast.callee?.property?.name ?? ast.callee?.property?.value ?? ast.callee?.name).replace(</span>
|
|
8347
7946
|
/\(.*/,
|
|
8348
7947
|
'',
|
|
8349
7948
|
);
|
|
8350
|
-
const func = <span class="cstat-no" title="statement not covered" >validationNamespace.functions.find(
|
|
7949
|
+
const func = <span class="cstat-no" title="statement not covered" >validationNamespace.functions.find(<span class="fstat-no" title="function not covered" >(i</span>tem) => <span class="cstat-no" title="statement not covered" >item.name === calleeName)</span>;</span>
|
|
8351
7950
|
<span class="cstat-no" title="statement not covered" > args = ast.arguments.map(<span class="fstat-no" title="function not covered" >(a</span>rgument: any, index: number) => (<span class="cstat-no" title="statement not covered" >{</span></span>
|
|
8352
7951
|
concept: 'Argument',
|
|
8353
7952
|
name: '',
|
|
@@ -8373,7 +7972,7 @@ export class ViewElement extends BaseNode {
|
|
|
8373
7972
|
* 从 Vue 的 ASTNode 转换成 ASL 元素
|
|
8374
7973
|
* @param astNode Vue 的 ASTNode
|
|
8375
7974
|
*/
|
|
8376
|
-
<span class="fstat-no" title="function not covered" >
|
|
7975
|
+
private <span class="fstat-no" title="function not covered" >static </span>_fromASTNode(astNode: compiler.ASTElement, context?: ParseContext): ViewElement {
|
|
8377
7976
|
const view: View = <span class="cstat-no" title="statement not covered" >context?.view;</span>
|
|
8378
7977
|
// 临时处理组件的 text
|
|
8379
7978
|
//h5-mock
|
|
@@ -8403,8 +8002,8 @@ export class ViewElement extends BaseNode {
|
|
|
8403
8002
|
// 将 scopedSlots 合并到 children 中
|
|
8404
8003
|
<span class="cstat-no" title="statement not covered" > if (astNode.scopedSlots) {</span>
|
|
8405
8004
|
<span class="cstat-no" title="statement not covered" > astNode.children = astNode.children || [];</span>
|
|
8406
|
-
<span class="cstat-no" title="statement not covered" > Object.keys(astNode.scopedSlots).forEach(
|
|
8407
|
-
<span class="cstat-no" title="statement not covered" > if (!astNode.children.find(
|
|
8005
|
+
<span class="cstat-no" title="statement not covered" > Object.keys(astNode.scopedSlots).forEach(<span class="fstat-no" title="function not covered" >(k</span>ey) => {</span>
|
|
8006
|
+
<span class="cstat-no" title="statement not covered" > if (!astNode.children.find(<span class="fstat-no" title="function not covered" >(c</span>hild) => <span class="cstat-no" title="statement not covered" >key === (child as compiler.ASTElement).slotTarget)</span>) {</span>
|
|
8408
8007
|
<span class="cstat-no" title="statement not covered" > astNode.children.unshift(astNode.scopedSlots[key]);</span>
|
|
8409
8008
|
}
|
|
8410
8009
|
});
|
|
@@ -8423,13 +8022,9 @@ export class ViewElement extends BaseNode {
|
|
|
8423
8022
|
'slotName',
|
|
8424
8023
|
'classBinding',
|
|
8425
8024
|
'styleBinding',
|
|
8426
|
-
].forEach(
|
|
8025
|
+
].forEach(<span class="fstat-no" title="function not covered" >(k</span>ey) => {
|
|
8427
8026
|
<span class="cstat-no" title="statement not covered" > if ((astNode as any)[key]) <span class="cstat-no" title="statement not covered" >console.warn(`[warn] ViewElement NASL unsupports '${key}' field in node `, astNode);</span></span>
|
|
8428
8027
|
});
|
|
8429
|
-
|
|
8430
|
-
const <span class="cstat-no" title="statement not covered" >BindAttribute = getConceptConstructor('BindAttribute');</span>
|
|
8431
|
-
const <span class="cstat-no" title="statement not covered" >BindDirective = getConceptConstructor('BindDirective');</span>
|
|
8432
|
-
const <span class="cstat-no" title="statement not covered" >BindEvent = getConceptConstructor('BindEvent');</span>
|
|
8433
8028
|
|
|
8434
8029
|
let element: ViewElement;
|
|
8435
8030
|
<span class="cstat-no" title="statement not covered" > if (astNode.type === 1) {</span>
|
|
@@ -8454,14 +8049,14 @@ export class ViewElement extends BaseNode {
|
|
|
8454
8049
|
staticStyle: astNode.attrsMap.style,
|
|
8455
8050
|
slotTarget: astNode.slotTarget && json5.parse(astNode.slotTarget),
|
|
8456
8051
|
slotScope: astNode.slotScope === '_empty_' ? '' : astNode.slotScope,
|
|
8457
|
-
children: astNode.children.map(
|
|
8052
|
+
children: astNode.children.map(<span class="fstat-no" title="function not covered" >(i</span>tem) =>
|
|
8458
8053
|
<span class="cstat-no" title="statement not covered" > this._fromASTNode(item as compiler.ASTElement, newContext),</span>
|
|
8459
8054
|
) as unknown as Array<ViewElement>,
|
|
8460
8055
|
});
|
|
8461
|
-
<span class="cstat-no" title="statement not covered" > astNode?.attrs?.forEach(
|
|
8056
|
+
<span class="cstat-no" title="statement not covered" > astNode?.attrs?.forEach(<span class="fstat-no" title="function not covered" >(o</span>ldAttr) => {</span>
|
|
8462
8057
|
let attr: BindAttribute;
|
|
8463
8058
|
// 获取原始属性
|
|
8464
|
-
const <span class="cstat-no" title="statement not covered" >
|
|
8059
|
+
const orginAttrCode = <span class="cstat-no" title="statement not covered" >(context?.code || '').substr(</span>
|
|
8465
8060
|
(oldAttr as any).start,
|
|
8466
8061
|
(oldAttr as any).end - (oldAttr as any).start,
|
|
8467
8062
|
);
|
|
@@ -8480,8 +8075,8 @@ export class ViewElement extends BaseNode {
|
|
|
8480
8075
|
value: typeof tmp === 'string' ? tmp : oldAttr.value,
|
|
8481
8076
|
};
|
|
8482
8077
|
<span class="cstat-no" title="statement not covered" > if (oldAttr.name === 'rules') {</span>
|
|
8483
|
-
<span class="cstat-no" title="statement not covered" > source.rules = tmp?.split('|').map(
|
|
8484
|
-
<span class="cstat-no" title="statement not covered" >
|
|
8078
|
+
<span class="cstat-no" title="statement not covered" > source.rules = tmp?.split('|').map(<span class="fstat-no" title="function not covered" >(r</span>uleStr: string) => <span class="cstat-no" title="statement not covered" >this._parseValidationRule(ruleStr.trim()))</span>;</span>
|
|
8079
|
+
} else <span class="cstat-no" title="statement not covered" >if (['page-number', 'page-size'].includes(oldAttr.name)) {</span>
|
|
8485
8080
|
<span class="cstat-no" title="statement not covered" > source.value = Number(source.value);</span>
|
|
8486
8081
|
}
|
|
8487
8082
|
<span class="cstat-no" title="statement not covered" > attr = new BindAttribute(source);</span>
|
|
@@ -8504,8 +8099,8 @@ export class ViewElement extends BaseNode {
|
|
|
8504
8099
|
// compiler 处理:value.sync 时会加上update:value事件,需要过滤
|
|
8505
8100
|
<span class="cstat-no" title="statement not covered" > astNode.events &&</span>
|
|
8506
8101
|
Object.keys(astNode.events)
|
|
8507
|
-
.filter(
|
|
8508
|
-
.forEach(
|
|
8102
|
+
.filter(<span class="fstat-no" title="function not covered" >(n</span>ame) => <span class="cstat-no" title="statement not covered" >!name.startsWith('update:'))</span>
|
|
8103
|
+
.forEach(<span class="fstat-no" title="function not covered" >(n</span>ame) => {
|
|
8509
8104
|
const oldEvent = <span class="cstat-no" title="statement not covered" >astNode.events[name] as compiler.ASTElementHandler;</span>
|
|
8510
8105
|
const str = <span class="cstat-no" title="statement not covered" >oldEvent.value;</span>
|
|
8511
8106
|
const calleeName = <span class="cstat-no" title="statement not covered" >str.split('(')[0];</span>
|
|
@@ -8517,8 +8112,8 @@ export class ViewElement extends BaseNode {
|
|
|
8517
8112
|
let args: any[] = <span class="cstat-no" title="statement not covered" >[];</span>
|
|
8518
8113
|
const argStrs: string[] = <span class="cstat-no" title="statement not covered" >argsStr.split(',');</span>
|
|
8519
8114
|
<span class="cstat-no" title="statement not covered" > args = argStrs</span>
|
|
8520
|
-
.filter(
|
|
8521
|
-
.map(
|
|
8115
|
+
.filter(<span class="fstat-no" title="function not covered" >(a</span>rgStr) => <span class="cstat-no" title="statement not covered" >!!argStr)</span>
|
|
8116
|
+
.map(<span class="fstat-no" title="function not covered" >(a</span>rgStr) => {
|
|
8522
8117
|
const keyword = <span class="cstat-no" title="statement not covered" >argStr.trim().split('.');</span>
|
|
8523
8118
|
<span class="cstat-no" title="statement not covered" > return {</span>
|
|
8524
8119
|
concept: 'Argument',
|
|
@@ -8526,7 +8121,7 @@ export class ViewElement extends BaseNode {
|
|
|
8526
8121
|
};
|
|
8527
8122
|
});
|
|
8528
8123
|
const viewLogics = <span class="cstat-no" title="statement not covered" >context?.definition?.viewLogics || [];</span>
|
|
8529
|
-
const currentLogic = <span class="cstat-no" title="statement not covered" >viewLogics.find(
|
|
8124
|
+
const currentLogic = <span class="cstat-no" title="statement not covered" >viewLogics.find(<span class="fstat-no" title="function not covered" >(i</span>tem: Logic) => <span class="cstat-no" title="statement not covered" >item.name === calleeName)</span>;</span>
|
|
8530
8125
|
<span class="cstat-no" title="statement not covered" > if (currentLogic) {</span>
|
|
8531
8126
|
<span class="cstat-no" title="statement not covered" > element.addBindEvent(</span>
|
|
8532
8127
|
new BindEvent({
|
|
@@ -8541,9 +8136,9 @@ export class ViewElement extends BaseNode {
|
|
|
8541
8136
|
});
|
|
8542
8137
|
|
|
8543
8138
|
<span class="cstat-no" title="statement not covered" > astNode.directives &&</span>
|
|
8544
|
-
astNode.directives.forEach(
|
|
8139
|
+
astNode.directives.forEach(<span class="fstat-no" title="function not covered" >(d</span>irective) => {
|
|
8545
8140
|
<span class="cstat-no" title="statement not covered" > if (directive.name === 'model') {</span>
|
|
8546
|
-
const valueAttr = <span class="cstat-no" title="statement not covered" >astNode.attrs && astNode.attrs.find(
|
|
8141
|
+
const valueAttr = <span class="cstat-no" title="statement not covered" >astNode.attrs && astNode.attrs.find(<span class="fstat-no" title="function not covered" >(a</span>ttr) => <span class="cstat-no" title="statement not covered" >attr.name === 'value')</span>;</span>
|
|
8547
8142
|
<span class="cstat-no" title="statement not covered" > if (!valueAttr) {</span>
|
|
8548
8143
|
const expression = <any><span class="cstat-no" title="statement not covered" >this._parseExpression(directive.value);</span>
|
|
8549
8144
|
<span class="cstat-no" title="statement not covered" > element.addBindAttribute(</span>
|
|
@@ -8583,7 +8178,7 @@ export class ViewElement extends BaseNode {
|
|
|
8583
8178
|
}),
|
|
8584
8179
|
);
|
|
8585
8180
|
}
|
|
8586
|
-
<span class="cstat-no" title="statement not covered" >
|
|
8181
|
+
} else <span class="cstat-no" title="statement not covered" >if (astNode.type === 2) {</span>
|
|
8587
8182
|
const tagName = <span class="cstat-no" title="statement not covered" >config.scope === 'h5' ? 'van-text' : 'u-text';</span>
|
|
8588
8183
|
const baseName = <span class="cstat-no" title="statement not covered" >tagName.replace(ViewElement.TAG_NAME_PREFIX_REG, '').replace(/-/g, '_');</span>
|
|
8589
8184
|
<span class="cstat-no" title="statement not covered" > element = new ViewElement({</span>
|
|
@@ -8600,7 +8195,7 @@ export class ViewElement extends BaseNode {
|
|
|
8600
8195
|
expression,
|
|
8601
8196
|
}),
|
|
8602
8197
|
);
|
|
8603
|
-
<span class="cstat-no" title="statement not covered" >
|
|
8198
|
+
} else <span class="cstat-no" title="statement not covered" >if (astNode.type === 3) {</span>
|
|
8604
8199
|
const tagName = <span class="cstat-no" title="statement not covered" >config.scope === 'h5' ? 'van-text' : 'u-text';</span>
|
|
8605
8200
|
const baseName = <span class="cstat-no" title="statement not covered" >tagName.replace(ViewElement.TAG_NAME_PREFIX_REG, '').replace(/-/g, '_');</span>
|
|
8606
8201
|
<span class="cstat-no" title="statement not covered" > element = new ViewElement({</span>
|
|
@@ -8624,7 +8219,7 @@ export class ViewElement extends BaseNode {
|
|
|
8624
8219
|
* @param html Vue 的模板
|
|
8625
8220
|
* @TODO 处理多个元素的问题
|
|
8626
8221
|
*/
|
|
8627
|
-
<span class="fstat-no" title="function not covered" >
|
|
8222
|
+
public <span class="fstat-no" title="function not covered" >static </span>parse(code: string, context?: ParseContext) {
|
|
8628
8223
|
<span class="cstat-no" title="statement not covered" > code = code || '<div></div>';</span>
|
|
8629
8224
|
|
|
8630
8225
|
const compilerOptions: compiler.CompilerOptions = <span class="cstat-no" title="statement not covered" >{</span>
|
|
@@ -8643,7 +8238,7 @@ export class ViewElement extends BaseNode {
|
|
|
8643
8238
|
/**
|
|
8644
8239
|
* 从模板生成规范的 ViewElement 对象
|
|
8645
8240
|
*/
|
|
8646
|
-
<span class="fstat-no" title="function not covered" >
|
|
8241
|
+
public <span class="fstat-no" title="function not covered" >static </span>fromHTML(html: string, context?: ParseContext) {
|
|
8647
8242
|
<span class="cstat-no" title="statement not covered" > return this.parse(html, context);</span>
|
|
8648
8243
|
}
|
|
8649
8244
|
|
|
@@ -8651,7 +8246,7 @@ export class ViewElement extends BaseNode {
|
|
|
8651
8246
|
* 转换成设计器中使用的 Vue 文件
|
|
8652
8247
|
* @param options
|
|
8653
8248
|
*/
|
|
8654
|
-
<span class="fstat-no" title="function not covered" > toDesignerVue() {
|
|
8249
|
+
<span class="fstat-no" title="function not covered" > toDesignerVue(</span>) {
|
|
8655
8250
|
<span class="cstat-no" title="statement not covered" > return this.toVue({</span>
|
|
8656
8251
|
finalCode: false,
|
|
8657
8252
|
nodePathAttr: true,
|
|
@@ -8661,14 +8256,14 @@ export class ViewElement extends BaseNode {
|
|
|
8661
8256
|
!['href', 'destination', 'externalDestination', 'download'].includes(attr.name)
|
|
8662
8257
|
) {
|
|
8663
8258
|
const api = <span class="cstat-no" title="statement not covered" >config?.allNodesAPI?.[element.tag];</span>
|
|
8664
|
-
const apiOfAttr = <span class="cstat-no" title="statement not covered" >api && api.attrs && api.attrs.find(
|
|
8259
|
+
const apiOfAttr = <span class="cstat-no" title="statement not covered" >api && api.attrs && api.attrs.find(<span class="fstat-no" title="function not covered" >(_</span>attr) => <span class="cstat-no" title="statement not covered" >_attr.name === attr.name)</span>;</span>
|
|
8665
8260
|
<span class="cstat-no" title="statement not covered" > if (['u-form-item', 'u-validator', 'van-field'].includes(element.tag) && attr.name === 'rules') {</span>
|
|
8666
8261
|
<span class="cstat-no" title="statement not covered" > return `${attr.name}=""`;</span>
|
|
8667
8262
|
}
|
|
8668
8263
|
<span class="cstat-no" title="statement not covered" > if (apiOfAttr && apiOfAttr['designer-value'] !== undefined) {</span>
|
|
8669
8264
|
let designerValue = <span class="cstat-no" title="statement not covered" >apiOfAttr['designer-value'];</span>
|
|
8670
8265
|
//对流程模板拖拽进行特判
|
|
8671
|
-
<span class="cstat-no" title="statement not covered" > element.bindAttrs.forEach(
|
|
8266
|
+
<span class="cstat-no" title="statement not covered" > element.bindAttrs.forEach(<span class="fstat-no" title="function not covered" >(p</span>roperty) => {</span>
|
|
8672
8267
|
<span class="cstat-no" title="statement not covered" > if (property.name === 'repeat' && property.value === '1') <span class="cstat-no" title="statement not covered" >designerValue = '[{}, {}]';</span></span>
|
|
8673
8268
|
});
|
|
8674
8269
|
<span class="cstat-no" title="statement not covered" > if (typeof designerValue === 'string') {</span>
|
|
@@ -8681,14 +8276,6 @@ export class ViewElement extends BaseNode {
|
|
|
8681
8276
|
<span class="cstat-no" title="statement not covered" > return `${attr.name}="${designerValue}"`;</span>
|
|
8682
8277
|
}
|
|
8683
8278
|
}
|
|
8684
|
-
<span class="cstat-no" title="statement not covered" > if (</span>
|
|
8685
|
-
attr.name === 'text' &&
|
|
8686
|
-
asserts.isMemberExpression((attr as BindAttribute)?.expression) &&
|
|
8687
|
-
((attr?.expression as MemberExpression)?.object as Identifier)?.namespace?.startsWith('elements.') &&
|
|
8688
|
-
((attr?.expression as MemberExpression)?.object as Identifier)?.namespace?.endsWith('.property')
|
|
8689
|
-
) {
|
|
8690
|
-
<span class="cstat-no" title="statement not covered" > return `${attr.name}="{{ ${attr.expression.toUI()} }}"`;</span>
|
|
8691
|
-
}
|
|
8692
8279
|
<span class="cstat-no" title="statement not covered" > if (</span>
|
|
8693
8280
|
(attr as BindAttribute).type === 'dynamic' &&
|
|
8694
8281
|
!(element.tag === 'u-cascade-select' && attr.name === 'categories')
|
|
@@ -8718,32 +8305,32 @@ export class ViewElement extends BaseNode {
|
|
|
8718
8305
|
<span class="cstat-no" title="statement not covered" > return false;</span>
|
|
8719
8306
|
},
|
|
8720
8307
|
bindStylesFormat: <span class="fstat-no" title="function not covered" >(b</span>indStyles: BindStyle[], element?: ViewElement) => <span class="cstat-no" title="statement not covered" >false,</span>
|
|
8721
|
-
getExtraParts:
|
|
8308
|
+
getExtraParts: <span class="fstat-no" title="function not covered" >(e</span>l: ViewElement) => {
|
|
8722
8309
|
const parts = <span class="cstat-no" title="statement not covered" >[];</span>
|
|
8723
8310
|
|
|
8724
|
-
const api = <span class="cstat-no" title="statement not covered" >config
|
|
8311
|
+
const api = <span class="cstat-no" title="statement not covered" >config.allNodesAPI[el.tag];</span>
|
|
8725
8312
|
const emptySlot =
|
|
8726
|
-
<span class="cstat-no" title="statement not covered" > api && api.slots && api.slots.find(
|
|
8727
|
-
const hasSupport = <span class="cstat-no" title="statement not covered" >api && api.slots && api.slots.some(
|
|
8313
|
+
<span class="cstat-no" title="statement not covered" > api && api.slots && api.slots.find(<span class="fstat-no" title="function not covered" >(s</span>lot) => <span class="cstat-no" title="statement not covered" >slot.name === 'default' && slot['empty-background'])</span>;</span>
|
|
8314
|
+
const hasSupport = <span class="cstat-no" title="statement not covered" >api && api.slots && api.slots.some(<span class="fstat-no" title="function not covered" >(s</span>lot) => <span class="cstat-no" title="statement not covered" >slot.support)</span>;</span>
|
|
8728
8315
|
<span class="cstat-no" title="statement not covered" > if (emptySlot || hasSupport) {</span>
|
|
8729
8316
|
// 有些限制的组件如侧边栏分组有title插槽但要限制子元素放入
|
|
8730
8317
|
const validChildren = <span class="cstat-no" title="statement not covered" >el.children.filter(</span>
|
|
8731
|
-
|
|
8318
|
+
<span class="fstat-no" title="function not covered" > (e</span>lem) => <span class="cstat-no" title="statement not covered" >!(elem.tag === 'template' && elem.slotTarget !== 'default'),</span>
|
|
8732
8319
|
);
|
|
8733
8320
|
let childEmpty = <span class="cstat-no" title="statement not covered" >!validChildren.length;</span>
|
|
8734
|
-
const defaultSlot = <span class="cstat-no" title="statement not covered" >el.children.find(
|
|
8321
|
+
const defaultSlot = <span class="cstat-no" title="statement not covered" >el.children.find(<span class="fstat-no" title="function not covered" >(e</span>lem) => <span class="cstat-no" title="statement not covered" >elem.tag === 'template' && elem.slotTarget === 'default')</span>;</span>
|
|
8735
8322
|
<span class="cstat-no" title="statement not covered" > if (defaultSlot) {</span>
|
|
8736
8323
|
<span class="cstat-no" title="statement not covered" > childEmpty = !defaultSlot.children.length;</span>
|
|
8737
8324
|
}
|
|
8738
8325
|
<span class="cstat-no" title="statement not covered" > if (childEmpty) {</span>
|
|
8739
8326
|
let addEmpty = <span class="cstat-no" title="statement not covered" >true;</span>
|
|
8740
8327
|
<span class="cstat-no" title="statement not covered" > if (['u-grid-view', 'u-list-view', 'van-list-view', 'van-grid-view', 'u-carousel'].includes(el.tag)) {</span>
|
|
8741
|
-
const hasDataSource = <span class="cstat-no" title="statement not covered" >el.bindAttrs.find(
|
|
8328
|
+
const hasDataSource = <span class="cstat-no" title="statement not covered" >el.bindAttrs.find(<span class="fstat-no" title="function not covered" >(a</span>ttr) => <span class="cstat-no" title="statement not covered" >attr.name === 'data-source')</span>;</span>
|
|
8742
8329
|
<span class="cstat-no" title="statement not covered" > addEmpty = !hasDataSource;</span>
|
|
8743
8330
|
}
|
|
8744
8331
|
<span class="cstat-no" title="statement not covered" > if (el.tag === 'u-crumb') {</span>
|
|
8745
8332
|
const attrList = <span class="cstat-no" title="statement not covered" >el.bindAttrs;</span>
|
|
8746
|
-
const hasAuto = <span class="cstat-no" title="statement not covered" >attrList.some(
|
|
8333
|
+
const hasAuto = <span class="cstat-no" title="statement not covered" >attrList.some(<span class="fstat-no" title="function not covered" >(a</span>ttr) => <span class="cstat-no" title="statement not covered" >attr.name === 'auto' && String(attr.value) === 'true')</span>;</span>
|
|
8747
8334
|
<span class="cstat-no" title="statement not covered" > if (hasAuto) <span class="cstat-no" title="statement not covered" >addEmpty = false;</span></span>
|
|
8748
8335
|
}
|
|
8749
8336
|
<span class="cstat-no" title="statement not covered" > if (</span>
|
|
@@ -8765,14 +8352,14 @@ export class ViewElement extends BaseNode {
|
|
|
8765
8352
|
) {
|
|
8766
8353
|
<span class="cstat-no" title="statement not covered" > addEmpty = false;</span>
|
|
8767
8354
|
}
|
|
8768
|
-
const background =
|
|
8355
|
+
const background = <span class="cstat-no" title="statement not covered" >(emptySlot && emptySlot['empty-background']) || (hasSupport ? 'add-sub' : '');</span>
|
|
8769
8356
|
<span class="cstat-no" title="statement not covered" > addEmpty && parts.push(`vusion-empty-background="${background}"`);</span>
|
|
8770
8357
|
}
|
|
8771
8358
|
}
|
|
8772
8359
|
|
|
8773
8360
|
<span class="cstat-no" title="statement not covered" > if (['u-router-view', 'van-router-view'].includes(el.tag)) {</span>
|
|
8774
8361
|
const excludes = <span class="cstat-no" title="statement not covered" >['background-color:', 'background:', 'background-image:'];</span>
|
|
8775
|
-
<span class="cstat-no" title="statement not covered" > if (excludes.some(
|
|
8362
|
+
<span class="cstat-no" title="statement not covered" > if (excludes.some(<span class="fstat-no" title="function not covered" >(k</span>ey) => <span class="cstat-no" title="statement not covered" >el.staticStyle && el.staticStyle.includes(key))</span>) {</span>
|
|
8776
8363
|
<span class="cstat-no" title="statement not covered" > parts.push(':designer="false"');</span>
|
|
8777
8364
|
}
|
|
8778
8365
|
}
|
|
@@ -8810,13 +8397,13 @@ export class ViewElement extends BaseNode {
|
|
|
8810
8397
|
|
|
8811
8398
|
get keyName() {
|
|
8812
8399
|
// 是否配置了v-if
|
|
8813
|
-
const isDefineIf = this.bindDirectives.some((directive) => directive.name === 'if' && directive.expression);
|
|
8400
|
+
const isDefineIf = this.bindDirectives.some((directive) => (directive.name === 'if' && directive.expression));
|
|
8814
8401
|
if (isDefineIf) {
|
|
8815
8402
|
let key = this.name;
|
|
8816
8403
|
const list = this.getCurrentList();
|
|
8817
8404
|
// v-for中需要加上nodeKey
|
|
8818
8405
|
<span class="missing-if-branch" title="if path not taken" >I</span>if (Array.isArray(list) && list.length) {
|
|
8819
|
-
<span class="cstat-no" title="statement not covered" > list.forEach(
|
|
8406
|
+
<span class="cstat-no" title="statement not covered" > list.forEach(<span class="fstat-no" title="function not covered" >(i</span>tem) => {</span>
|
|
8820
8407
|
<span class="cstat-no" title="statement not covered" > key += `_\${(${item} || {}).__nodeKey || (${item} || {}).index}`;</span>
|
|
8821
8408
|
});
|
|
8822
8409
|
}
|
|
@@ -8853,8 +8440,8 @@ export class ViewElement extends BaseNode {
|
|
|
8853
8440
|
<span class="missing-if-branch" title="else path not taken" >E</span>if (bindStyles.length === 0) return false;
|
|
8854
8441
|
|
|
8855
8442
|
<span class="cstat-no" title="statement not covered" > return `:style="{${bindStyles</span>
|
|
8856
|
-
.map(
|
|
8857
|
-
.filter(
|
|
8443
|
+
.map(<span class="fstat-no" title="function not covered" >(i</span>tem) => <span class="cstat-no" title="statement not covered" >item.toVue())</span>
|
|
8444
|
+
.filter(<span class="fstat-no" title="function not covered" >(i</span>tem) => <span class="cstat-no" title="statement not covered" >item !== undefined)</span>
|
|
8858
8445
|
.join(', ')}}"`;
|
|
8859
8446
|
},
|
|
8860
8447
|
},
|
|
@@ -8872,7 +8459,7 @@ export class ViewElement extends BaseNode {
|
|
|
8872
8459
|
.map((element) => {
|
|
8873
8460
|
const childOptions = Object.assign({}, newOptions);
|
|
8874
8461
|
childOptions.indentLevel++;
|
|
8875
|
-
return (shouldIndent ? '\n' + insideTabString : <span class="branch-1 cbranch-no" title="branch not covered" >'') +
|
|
8462
|
+
return (shouldIndent ? '\n' + insideTabString : <span class="branch-1 cbranch-no" title="branch not covered" >'')</span> + element?.toVue(childOptions);
|
|
8876
8463
|
})
|
|
8877
8464
|
.join('');
|
|
8878
8465
|
if (!content.length) {
|
|
@@ -8894,7 +8481,7 @@ export class ViewElement extends BaseNode {
|
|
|
8894
8481
|
parts.push(
|
|
8895
8482
|
`#${this.slotTarget}` +
|
|
8896
8483
|
(this.slotScope
|
|
8897
|
-
? `="${currentList.length > 1 ? <span class="branch-0 cbranch-no" title="branch not covered" >this.slotScope + (currentList.length - 1)
|
|
8484
|
+
? `="${currentList.length > 1 ? <span class="branch-0 cbranch-no" title="branch not covered" >this.slotScope + (currentList.length - 1) </span>: this.slotScope}"`
|
|
8898
8485
|
: ''),
|
|
8899
8486
|
);
|
|
8900
8487
|
this.refName && parts.push(`:ref="\`${this.refName}\`"`);
|
|
@@ -8909,7 +8496,7 @@ export class ViewElement extends BaseNode {
|
|
|
8909
8496
|
const result = newOptions.attrFormat(attr, this, attr?.toVue(newOptions));
|
|
8910
8497
|
|
|
8911
8498
|
// v-auth v-if 都翻译成 v-if
|
|
8912
|
-
if (
|
|
8499
|
+
if (attr instanceof BindDirective && ['if', 'auth'].includes(attr.name) && result !== false) {
|
|
8913
8500
|
const expr = result.replace(/v-(if|auth)="(.*)"/, (match, p1, p2) => p2);
|
|
8914
8501
|
<span class="missing-if-branch" title="else path not taken" >E</span>if (expr) vIfs.push(attr.name === 'if' ? expr : `$auth.has(${expr})`);
|
|
8915
8502
|
|
|
@@ -8925,7 +8512,7 @@ export class ViewElement extends BaseNode {
|
|
|
8925
8512
|
const bindStyles = newOptions.bindStylesFormat(this.bindStyles, this);
|
|
8926
8513
|
<span class="missing-if-branch" title="if path not taken" >I</span>if (bindStyles) <span class="cstat-no" title="statement not covered" >parts.push(bindStyles);</span>
|
|
8927
8514
|
|
|
8928
|
-
newOptions.getExtraParts(this).forEach(
|
|
8515
|
+
newOptions.getExtraParts(this).forEach(<span class="fstat-no" title="function not covered" >(p</span>art) => <span class="cstat-no" title="statement not covered" >parts.push(part))</span>;
|
|
8929
8516
|
|
|
8930
8517
|
if (['u-modal', 'u-drawer'].includes(this.tag)) {
|
|
8931
8518
|
this.children.forEach((citem) => {
|
|
@@ -8967,10 +8554,10 @@ export class ViewElement extends BaseNode {
|
|
|
8967
8554
|
* 从父级删除该节点
|
|
8968
8555
|
* @internal
|
|
8969
8556
|
*/
|
|
8970
|
-
<span class="fstat-no" title="function not covered" > delete() {
|
|
8557
|
+
<span class="fstat-no" title="function not covered" > delete(</span>) {
|
|
8971
8558
|
<span class="cstat-no" title="statement not covered" > super.delete();</span>
|
|
8972
8559
|
<span class="cstat-no" title="statement not covered" > if (this.parentNode) {</span>
|
|
8973
|
-
<span class="cstat-no" title="statement not covered" > this.traverseChildren(
|
|
8560
|
+
<span class="cstat-no" title="statement not covered" > this.traverseChildren(<span class="fstat-no" title="function not covered" >(e</span>le: ViewElement) => {</span>
|
|
8974
8561
|
(<span class="cstat-no" title="statement not covered" >this.view as any)?.removeExistingViewElement(ele);</span>
|
|
8975
8562
|
});
|
|
8976
8563
|
}
|
|
@@ -8985,19 +8572,19 @@ export class ViewElement extends BaseNode {
|
|
|
8985
8572
|
);
|
|
8986
8573
|
}
|
|
8987
8574
|
|
|
8988
|
-
<span class="fstat-no" title="function not covered" > findElementByTag(
|
|
8575
|
+
<span class="fstat-no" title="function not covered" > findElementByTag(</span>tag: string): ViewElement {
|
|
8989
8576
|
<span class="cstat-no" title="statement not covered" > return utils.traverse(</span>
|
|
8990
|
-
|
|
8577
|
+
<span class="fstat-no" title="function not covered" > (c</span>urrent) => {
|
|
8991
8578
|
<span class="cstat-no" title="statement not covered" > if (current.node.tag === tag) <span class="cstat-no" title="statement not covered" >return current.node;</span></span>
|
|
8992
8579
|
},
|
|
8993
8580
|
{ node: this },
|
|
8994
8581
|
);
|
|
8995
8582
|
}
|
|
8996
8583
|
|
|
8997
|
-
<span class="fstat-no" title="function not covered" > findElementByAttr(
|
|
8584
|
+
<span class="fstat-no" title="function not covered" > findElementByAttr(</span>name: string, value: string): ViewElement {
|
|
8998
8585
|
<span class="cstat-no" title="statement not covered" > return utils.traverse(</span>
|
|
8999
|
-
|
|
9000
|
-
<span class="cstat-no" title="statement not covered" > if (current.node.bindAttrs.some(
|
|
8586
|
+
<span class="fstat-no" title="function not covered" > (c</span>urrent) => {
|
|
8587
|
+
<span class="cstat-no" title="statement not covered" > if (current.node.bindAttrs.some(<span class="fstat-no" title="function not covered" >(a</span>ttr) => <span class="cstat-no" title="statement not covered" >attr.name === name && attr.value === value)</span>) <span class="cstat-no" title="statement not covered" >return current.node;</span></span>
|
|
9001
8588
|
},
|
|
9002
8589
|
{ node: this },
|
|
9003
8590
|
);
|
|
@@ -9005,7 +8592,7 @@ export class ViewElement extends BaseNode {
|
|
|
9005
8592
|
|
|
9006
8593
|
@excludedInJSON()
|
|
9007
8594
|
computedStyle: object = {};
|
|
9008
|
-
<span class="fstat-no" title="function not covered" > getCurrentName() {
|
|
8595
|
+
<span class="fstat-no" title="function not covered" > getCurrentName(</span>) {
|
|
9009
8596
|
let current = <span class="cstat-no" title="statement not covered" >'current';</span>
|
|
9010
8597
|
let parent = <span class="cstat-no" title="statement not covered" >this.parentNode;</span>
|
|
9011
8598
|
let index = <span class="cstat-no" title="statement not covered" >0;</span>
|
|
@@ -9022,9 +8609,7 @@ export class ViewElement extends BaseNode {
|
|
|
9022
8609
|
/**
|
|
9023
8610
|
* 计算约束样式
|
|
9024
8611
|
* @param positionData 位置数据
|
|
9025
|
-
* @param
|
|
9026
|
-
* @param ops.beforeSetStyleCb 设置样式前的回调
|
|
9027
|
-
* @param ops.setStaticSize 是否设置静态尺寸,开启此项会将节点的宽高设置为像素值,通常在修改约束规则时候开启
|
|
8612
|
+
* @param doNotRecordLastWidthHeight 是否不记录上一次的宽高
|
|
9028
8613
|
*/
|
|
9029
8614
|
<span class="fstat-no" title="function not covered" > computeConstraintStyle(</span>
|
|
9030
8615
|
positionData: {
|
|
@@ -9038,8 +8623,8 @@ export class ViewElement extends BaseNode {
|
|
|
9038
8623
|
};
|
|
9039
8624
|
},
|
|
9040
8625
|
ops: {
|
|
8626
|
+
doNotRecordLastWidthHeight?: boolean;
|
|
9041
8627
|
beforeSetStyleCb?: (newStyleObj: Record<string, any>) => void;
|
|
9042
|
-
setStaticSize?: boolean;
|
|
9043
8628
|
} = <span class="branch-0 cbranch-no" title="branch not covered" >{},</span>
|
|
9044
8629
|
) {
|
|
9045
8630
|
<span class="cstat-no" title="statement not covered" > if (!positionData) {</span>
|
|
@@ -9062,8 +8647,12 @@ export class ViewElement extends BaseNode {
|
|
|
9062
8647
|
let top = <span class="cstat-no" title="statement not covered" >'';</span>
|
|
9063
8648
|
let bottom = <span class="cstat-no" title="statement not covered" >'';</span>
|
|
9064
8649
|
let transform = <span class="cstat-no" title="statement not covered" >'';</span>
|
|
9065
|
-
|
|
9066
|
-
let
|
|
8650
|
+
// 如果宽高被约束规则改成 auto 了,就还原为上次的宽高,防止用户设置的宽高信息在切换约束时候丢失
|
|
8651
|
+
let width = <span class="cstat-no" title="statement not covered" >Number(styleObj['--constraint-width-auto']) ? styleObj['--last-width'] : rawWidth;</span>
|
|
8652
|
+
let height = <span class="cstat-no" title="statement not covered" >Number(styleObj['--constraint-height-auto']) ? styleObj['--last-height'] : rawHeight;</span>
|
|
8653
|
+
// 用于记录宽高是否被约束规则改成 auto 了
|
|
8654
|
+
let constraintWidthAuto = <span class="cstat-no" title="statement not covered" >0;</span>
|
|
8655
|
+
let constraintHeightAuto = <span class="cstat-no" title="statement not covered" >0;</span>
|
|
9067
8656
|
|
|
9068
8657
|
const parentWidth = <span class="cstat-no" title="statement not covered" >staticLeft + staticWidth + staticRight;</span>
|
|
9069
8658
|
const parentHeight = <span class="cstat-no" title="statement not covered" >staticTop + staticHeight + staticBottom;</span>
|
|
@@ -9071,43 +8660,47 @@ export class ViewElement extends BaseNode {
|
|
|
9071
8660
|
<span class="cstat-no" title="statement not covered" > if (constraintX === 'left') {</span>
|
|
9072
8661
|
<span class="cstat-no" title="statement not covered" > left = staticLeft + 'px';</span>
|
|
9073
8662
|
<span class="cstat-no" title="statement not covered" > right = '';</span>
|
|
9074
|
-
<span class="cstat-no" title="statement not covered" >
|
|
8663
|
+
} else <span class="cstat-no" title="statement not covered" >if (constraintX === 'right') {</span>
|
|
9075
8664
|
<span class="cstat-no" title="statement not covered" > left = '';</span>
|
|
9076
8665
|
<span class="cstat-no" title="statement not covered" > right = staticRight + 'px';</span>
|
|
9077
|
-
<span class="cstat-no" title="statement not covered" >
|
|
8666
|
+
} else <span class="cstat-no" title="statement not covered" >if (constraintX === 'center') {</span>
|
|
9078
8667
|
const offset = <span class="cstat-no" title="statement not covered" >staticLeft + staticWidth / 2 - parentWidth / 2;</span>
|
|
9079
8668
|
<span class="cstat-no" title="statement not covered" > left = `calc(50% ${offset > 0 ? '+' : '-'} ${Math.abs(offset)}px)`;</span>
|
|
9080
8669
|
<span class="cstat-no" title="statement not covered" > right = '';</span>
|
|
9081
8670
|
<span class="cstat-no" title="statement not covered" > transform = 'translateX(-50%)';</span>
|
|
9082
|
-
<span class="cstat-no" title="statement not covered" >
|
|
8671
|
+
} else <span class="cstat-no" title="statement not covered" >if (constraintX === 'scale') {</span>
|
|
9083
8672
|
<span class="cstat-no" title="statement not covered" > left = (staticLeft * 100) / parentWidth + '%';</span>
|
|
9084
8673
|
<span class="cstat-no" title="statement not covered" > right = '';</span>
|
|
9085
8674
|
<span class="cstat-no" title="statement not covered" > width = (staticWidth * 100) / parentWidth + '%';</span>
|
|
9086
|
-
<span class="cstat-no" title="statement not covered" >
|
|
8675
|
+
<span class="cstat-no" title="statement not covered" > constraintWidthAuto = 1;</span>
|
|
8676
|
+
} else <span class="cstat-no" title="statement not covered" >if (constraintX === 'left-right') {</span>
|
|
9087
8677
|
<span class="cstat-no" title="statement not covered" > left = staticLeft + 'px';</span>
|
|
9088
8678
|
<span class="cstat-no" title="statement not covered" > right = staticRight + 'px';</span>
|
|
9089
8679
|
<span class="cstat-no" title="statement not covered" > width = 'auto';</span>
|
|
8680
|
+
<span class="cstat-no" title="statement not covered" > constraintWidthAuto = 1;</span>
|
|
9090
8681
|
}
|
|
9091
8682
|
|
|
9092
8683
|
<span class="cstat-no" title="statement not covered" > if (constraintY === 'top') {</span>
|
|
9093
8684
|
<span class="cstat-no" title="statement not covered" > top = staticTop + 'px';</span>
|
|
9094
8685
|
<span class="cstat-no" title="statement not covered" > bottom = '';</span>
|
|
9095
|
-
<span class="cstat-no" title="statement not covered" >
|
|
8686
|
+
} else <span class="cstat-no" title="statement not covered" >if (constraintY === 'bottom') {</span>
|
|
9096
8687
|
<span class="cstat-no" title="statement not covered" > top = '';</span>
|
|
9097
8688
|
<span class="cstat-no" title="statement not covered" > bottom = staticBottom + 'px';</span>
|
|
9098
|
-
<span class="cstat-no" title="statement not covered" >
|
|
8689
|
+
} else <span class="cstat-no" title="statement not covered" >if (constraintY === 'center') {</span>
|
|
9099
8690
|
const offset = <span class="cstat-no" title="statement not covered" >staticTop + staticHeight / 2 - parentHeight / 2;</span>
|
|
9100
8691
|
<span class="cstat-no" title="statement not covered" > top = `calc(50% ${offset > 0 ? '+' : '-'} ${Math.abs(offset)}px)`;</span>
|
|
9101
8692
|
<span class="cstat-no" title="statement not covered" > bottom = '';</span>
|
|
9102
8693
|
<span class="cstat-no" title="statement not covered" > transform = transform ? 'translate(-50%, -50%)' : 'translateY(-50%)';</span>
|
|
9103
|
-
<span class="cstat-no" title="statement not covered" >
|
|
8694
|
+
} else <span class="cstat-no" title="statement not covered" >if (constraintY === 'scale') {</span>
|
|
9104
8695
|
<span class="cstat-no" title="statement not covered" > top = (staticTop * 100) / parentHeight + '%';</span>
|
|
9105
8696
|
<span class="cstat-no" title="statement not covered" > bottom = '';</span>
|
|
9106
8697
|
<span class="cstat-no" title="statement not covered" > height = (staticHeight * 100) / parentHeight + '%';</span>
|
|
9107
|
-
<span class="cstat-no" title="statement not covered" >
|
|
8698
|
+
<span class="cstat-no" title="statement not covered" > constraintHeightAuto = 1;</span>
|
|
8699
|
+
} else <span class="cstat-no" title="statement not covered" >if (constraintY === 'top-bottom') {</span>
|
|
9108
8700
|
<span class="cstat-no" title="statement not covered" > top = staticTop + 'px';</span>
|
|
9109
8701
|
<span class="cstat-no" title="statement not covered" > bottom = staticBottom + 'px';</span>
|
|
9110
8702
|
<span class="cstat-no" title="statement not covered" > height = 'auto';</span>
|
|
8703
|
+
<span class="cstat-no" title="statement not covered" > constraintHeightAuto = 1;</span>
|
|
9111
8704
|
}
|
|
9112
8705
|
const newStyleObj: Record<string, any> = <span class="cstat-no" title="statement not covered" >{</span>
|
|
9113
8706
|
...styleObj,
|
|
@@ -9118,12 +8711,22 @@ export class ViewElement extends BaseNode {
|
|
|
9118
8711
|
transform,
|
|
9119
8712
|
width,
|
|
9120
8713
|
height,
|
|
8714
|
+
'--constraint-width-auto': constraintWidthAuto,
|
|
8715
|
+
'--constraint-height-auto': constraintHeightAuto,
|
|
9121
8716
|
};
|
|
8717
|
+
<span class="cstat-no" title="statement not covered" > if (!ops.doNotRecordLastWidthHeight) {</span>
|
|
8718
|
+
<span class="cstat-no" title="statement not covered" > if (rawWidth !== 'auto') {</span>
|
|
8719
|
+
<span class="cstat-no" title="statement not covered" > newStyleObj['--last-width'] = rawWidth;</span>
|
|
8720
|
+
}
|
|
8721
|
+
<span class="cstat-no" title="statement not covered" > if (rawHeight !== 'auto') {</span>
|
|
8722
|
+
<span class="cstat-no" title="statement not covered" > newStyleObj['--last-height'] = rawHeight;</span>
|
|
8723
|
+
}
|
|
8724
|
+
}
|
|
9122
8725
|
<span class="cstat-no" title="statement not covered" > ops.beforeSetStyleCb?.(newStyleObj);</span>
|
|
9123
8726
|
const newStaticStyle = <span class="cstat-no" title="statement not covered" >this.stringifyStyleAttr(newStyleObj);</span>
|
|
9124
8727
|
<span class="cstat-no" title="statement not covered" > this.setStaticStyle(newStaticStyle);</span>
|
|
9125
8728
|
}
|
|
9126
|
-
<span class="fstat-no" title="function not covered" > updateStyleObj(
|
|
8729
|
+
<span class="fstat-no" title="function not covered" > updateStyleObj(</span>styleObj: Record<string, string | number>) {
|
|
9127
8730
|
<span class="cstat-no" title="statement not covered" > this.setStaticStyle(</span>
|
|
9128
8731
|
this.stringifyStyleAttr({
|
|
9129
8732
|
...this.parseStyleToObject(this.staticStyle),
|
|
@@ -9131,8 +8734,8 @@ export class ViewElement extends BaseNode {
|
|
|
9131
8734
|
}),
|
|
9132
8735
|
);
|
|
9133
8736
|
}
|
|
9134
|
-
<span class="fstat-no" title="function not covered" > parseStyleToObject(
|
|
9135
|
-
const [styleStr1, styleStr2] = <span class="cstat-no" title="statement not covered" >styleStr.split('--custom-start: auto;')
|
|
8737
|
+
<span class="fstat-no" title="function not covered" > parseStyleToObject(</span>styleStr: string = <span class="branch-0 cbranch-no" title="branch not covered" >'')</span> {
|
|
8738
|
+
const [styleStr1, styleStr2] = <span class="cstat-no" title="statement not covered" >styleStr.split('--custom-start: auto;')</span>
|
|
9136
8739
|
const styleObj = <span class="cstat-no" title="statement not covered" >styleStr1.split(/;/gim).reduce(<span class="fstat-no" title="function not covered" >(o</span>bj: Record<string, string | number>, item) => {</span>
|
|
9137
8740
|
// background-image:url(http://www...)
|
|
9138
8741
|
<span class="cstat-no" title="statement not covered" > item = item.trim();</span>
|
|
@@ -9147,21 +8750,22 @@ export class ViewElement extends BaseNode {
|
|
|
9147
8750
|
<span class="cstat-no" title="statement not covered" > styleObj['customStyle'] = styleStr2;</span>
|
|
9148
8751
|
<span class="cstat-no" title="statement not covered" > return styleObj;</span>
|
|
9149
8752
|
}
|
|
9150
|
-
<span class="fstat-no" title="function not covered" > stringifyStyleAttr(
|
|
8753
|
+
<span class="fstat-no" title="function not covered" > stringifyStyleAttr(</span>styleObj: Record<string, string | number>) {
|
|
9151
8754
|
const customStyle = <span class="cstat-no" title="statement not covered" >styleObj['customStyle'] || '';</span>
|
|
9152
8755
|
<span class="cstat-no" title="statement not covered" > delete styleObj['customStyle'];</span>
|
|
9153
|
-
const styleStr =
|
|
9154
|
-
|
|
9155
|
-
|
|
9156
|
-
|
|
9157
|
-
|
|
8756
|
+
const styleStr = (
|
|
8757
|
+
<span class="cstat-no" title="statement not covered" > Object.keys(styleObj)</span>
|
|
8758
|
+
// 空字符串是允许的,因为有时候想要覆盖之前的样式。undefined 则不允许
|
|
8759
|
+
.filter(<span class="fstat-no" title="function not covered" >(k</span>ey) => <span class="cstat-no" title="statement not covered" >styleObj[key] !== undefined)</span>
|
|
8760
|
+
.map(<span class="fstat-no" title="function not covered" >(k</span>ey) => <span class="cstat-no" title="statement not covered" >`${key}:${String(styleObj[key]).trim()};`)</span>
|
|
8761
|
+
.join('')
|
|
8762
|
+
);
|
|
9158
8763
|
<span class="cstat-no" title="statement not covered" > return styleStr + '--custom-start: auto;' + customStyle;</span>
|
|
9159
8764
|
}
|
|
9160
8765
|
// 批量更新绑定属性
|
|
9161
|
-
<span class="fstat-no" title="function not covered" > batchUpdateBindAttrs(
|
|
9162
|
-
const <span class="cstat-no" title="statement not covered" >
|
|
9163
|
-
const
|
|
9164
|
-
const newBindAttrs = <span class="cstat-no" title="statement not covered" >attrOptions.map((<span class="fstat-no" title="function not covered" >it) => <span class="cstat-no" title="statement not covered" >B</span>indAttribute.from(it, this, 'bindAttrs'))</span>;</span>
|
|
8766
|
+
<span class="fstat-no" title="function not covered" > batchUpdateBindAttrs(</span>attrOptions: Record<string, any>[]) {
|
|
8767
|
+
const oldBindAttrs = <span class="cstat-no" title="statement not covered" >this.bindAttrs.filter(<span class="fstat-no" title="function not covered" >(i</span>t) => <span class="cstat-no" title="statement not covered" >!attrOptions.some(<span class="fstat-no" title="function not covered" >(i</span>tem) => <span class="cstat-no" title="statement not covered" >item.name === it.name)</span>)</span>;</span>
|
|
8768
|
+
const newBindAttrs = <span class="cstat-no" title="statement not covered" >attrOptions.map(<span class="fstat-no" title="function not covered" >(i</span>t) => <span class="cstat-no" title="statement not covered" >BindAttribute.from(it, this, 'bindAttrs'))</span>;</span>
|
|
9165
8769
|
<span class="cstat-no" title="statement not covered" > this.update({</span>
|
|
9166
8770
|
bindAttrs: [...oldBindAttrs, ...newBindAttrs],
|
|
9167
8771
|
});
|
|
@@ -9184,7 +8788,7 @@ export default ViewElement;
|
|
|
9184
8788
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
9185
8789
|
Code coverage generated by
|
|
9186
8790
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
9187
|
-
at 2023-
|
|
8791
|
+
at 2023-10-18T11:36:07.885Z
|
|
9188
8792
|
</div>
|
|
9189
8793
|
<script src="../../prettify.js"></script>
|
|
9190
8794
|
<script>
|