@lcap/nasl 3.8.3-beta.1 → 3.8.3-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.nyc_output/943352aa-23df-44e0-863b-3dcd3e8bf57a.json +1 -0
- package/.nyc_output/processinfo/943352aa-23df-44e0-863b-3dcd3e8bf57a.json +1 -0
- package/.nyc_output/processinfo/index.json +1 -1
- package/coverage/cobertura-coverage.xml +66121 -10220
- package/coverage/index.html +50 -395
- package/coverage/src/automate/engine/index.html +19 -19
- package/coverage/src/automate/engine/utils.js.html +101 -101
- package/coverage/src/bak/index.html +19 -19
- package/coverage/src/bak/translator.js.html +96 -141
- package/coverage/src/breakpoint/generator/AfterStartNode.ts.html +13 -13
- package/coverage/src/breakpoint/generator/BeforeEndNode.ts.html +13 -13
- package/coverage/src/breakpoint/generator/BreakpointNode.ts.html +29 -29
- package/coverage/src/breakpoint/generator/CallbackNode.ts.html +10 -10
- package/coverage/src/breakpoint/generator/index.html +47 -47
- package/coverage/src/breakpoint/generator/index.ts.html +20 -20
- package/coverage/src/breakpoint/index.html +7 -7
- package/coverage/src/breakpoint/index.ts.html +6 -6
- package/coverage/src/breakpoint/shared/constants.ts.html +7 -7
- package/coverage/src/breakpoint/shared/index.html +45 -45
- package/coverage/src/breakpoint/shared/index.ts.html +5 -5
- package/coverage/src/breakpoint/shared/operations.ts.html +15 -15
- package/coverage/src/breakpoint/shared/socket.ts.html +85 -85
- package/coverage/src/breakpoint/shared/utils.ts.html +49 -49
- package/coverage/src/breakpoint/store/core.ts.html +100 -100
- package/coverage/src/breakpoint/store/dock.ts.html +46 -46
- package/coverage/src/breakpoint/store/index.html +33 -33
- package/coverage/src/breakpoint/store/index.ts.html +7 -7
- package/coverage/src/common/BaseNode.ts.html +350 -1187
- package/coverage/src/common/Command.ts.html +20 -20
- package/coverage/src/common/EventEmitter.ts.html +31 -49
- package/coverage/src/common/Messager.ts.html +28 -28
- package/coverage/src/common/asyncFuncMap.ts.html +7 -7
- package/coverage/src/common/index.html +55 -70
- package/coverage/src/common/index.ts.html +8 -11
- package/coverage/src/concepts/Abort__.ts.html +20 -56
- package/coverage/src/concepts/Anchor__.ts.html +51 -117
- package/coverage/src/concepts/AnonymousFunction__.ts.html +232 -343
- package/coverage/src/concepts/App__.ts.html +1283 -2681
- package/coverage/src/concepts/Argument__.ts.html +135 -135
- package/coverage/src/concepts/Assignee__.ts.html +91 -250
- package/coverage/src/concepts/AssignmentLine__.ts.html +28 -88
- package/coverage/src/concepts/Assignment__.ts.html +110 -206
- package/coverage/src/concepts/Attribute__.ts.html +50 -239
- package/coverage/src/concepts/AuthInterface__.ts.html +32 -26
- package/coverage/src/concepts/AuthLogicForCallInterface__.ts.html +188 -203
- package/coverage/src/concepts/AuthLogic__.ts.html +28 -43
- package/coverage/src/concepts/BackendVariable__.ts.html +132 -438
- package/coverage/src/concepts/Backend__.ts.html +57 -156
- package/coverage/src/concepts/BatchAssignment__.ts.html +270 -420
- package/coverage/src/concepts/BinaryExpression__.ts.html +158 -266
- package/coverage/src/concepts/BindAttribute__.ts.html +204 -399
- package/coverage/src/concepts/BindDirective__.ts.html +73 -217
- package/coverage/src/concepts/BindEvent__.ts.html +161 -293
- package/coverage/src/concepts/BindStyle__.ts.html +58 -139
- package/coverage/src/concepts/BooleanLiteral__.ts.html +33 -63
- package/coverage/src/concepts/CallAuthInterface__.ts.html +95 -236
- package/coverage/src/concepts/CallConnector__.ts.html +69 -108
- package/coverage/src/concepts/CallFunction__.ts.html +234 -399
- package/coverage/src/concepts/CallInterface__.ts.html +145 -241
- package/coverage/src/concepts/CallLogic__.ts.html +525 -633
- package/coverage/src/concepts/CallQueryComponent__.ts.html +232 -385
- package/coverage/src/concepts/Comment__.ts.html +27 -63
- package/coverage/src/concepts/CompletionProperty__.ts.html +51 -72
- package/coverage/src/concepts/ConfigGroup__.ts.html +51 -99
- package/coverage/src/concepts/ConfigPropertyValue__.ts.html +34 -40
- package/coverage/src/concepts/ConfigProperty__.ts.html +78 -150
- package/coverage/src/concepts/Configuration__.ts.html +48 -99
- package/coverage/src/concepts/Connection__.ts.html +64 -154
- package/coverage/src/concepts/ConnectorTrigger__.ts.html +32 -35
- package/coverage/src/concepts/Connector__.ts.html +228 -3117
- package/coverage/src/concepts/Constant__.ts.html +74 -374
- package/coverage/src/concepts/DataSource__.ts.html +104 -173
- package/coverage/src/concepts/DatabaseTypeAnnotation__.ts.html +21 -27
- package/coverage/src/concepts/Destination__.ts.html +121 -190
- package/coverage/src/concepts/End__.ts.html +40 -76
- package/coverage/src/concepts/EntityIndex__.ts.html +44 -80
- package/coverage/src/concepts/EntityProperty__.ts.html +158 -440
- package/coverage/src/concepts/Entity__.ts.html +161 -326
- package/coverage/src/concepts/EnumItem__.ts.html +33 -66
- package/coverage/src/concepts/Enum__.ts.html +64 -139
- package/coverage/src/concepts/Event__.ts.html +51 -87
- package/coverage/src/concepts/ExternalDestination__.ts.html +60 -126
- package/coverage/src/concepts/ForEachStatement__.ts.html +152 -239
- package/coverage/src/concepts/FrontendLibrary__.ts.html +69 -153
- package/coverage/src/concepts/FrontendVariable__.ts.html +19 -76
- package/coverage/src/concepts/Frontend__.ts.html +161 -884
- package/coverage/src/concepts/Function__.ts.html +171 -396
- package/coverage/src/concepts/Identifier__.ts.html +100 -130
- package/coverage/src/concepts/IfStatement__.ts.html +110 -209
- package/coverage/src/concepts/Integration__.ts.html +57 -132
- package/coverage/src/concepts/InterfaceParam__.ts.html +76 -310
- package/coverage/src/concepts/Interface__.ts.html +183 -324
- package/coverage/src/concepts/JSBlock__.ts.html +26 -59
- package/coverage/src/concepts/JavaLogic__.ts.html +28 -58
- package/coverage/src/concepts/LogicItem__.ts.html +73 -151
- package/coverage/src/concepts/Logic__.ts.html +509 -965
- package/coverage/src/concepts/MatchCase__.ts.html +158 -281
- package/coverage/src/concepts/Match__.ts.html +121 -280
- package/coverage/src/concepts/MemberExpression__.ts.html +172 -256
- package/coverage/src/concepts/MicroApp__.ts.html +34 -25
- package/coverage/src/concepts/Module__.ts.html +1270 -1375
- package/coverage/src/concepts/MsgTriggerEvent__.ts.html +46 -94
- package/coverage/src/concepts/MsgTriggerLauncher__.ts.html +48 -93
- package/coverage/src/concepts/Namespace__.ts.html +630 -1251
- package/coverage/src/concepts/NewComposite__.ts.html +341 -557
- package/coverage/src/concepts/NewList__.ts.html +111 -291
- package/coverage/src/concepts/NewMap__.ts.html +128 -332
- package/coverage/src/concepts/New__.ts.html +21 -57
- package/coverage/src/concepts/NullLiteral__.ts.html +23 -56
- package/coverage/src/concepts/NumericLiteral__.ts.html +51 -114
- package/coverage/src/concepts/OqlQueryComponent__.ts.html +76 -211
- package/coverage/src/concepts/OverriddenLogic__.ts.html +394 -643
- package/coverage/src/concepts/Param__.ts.html +174 -315
- package/coverage/src/concepts/Point__.ts.html +21 -27
- package/coverage/src/concepts/ProcessComponent__.ts.html +67 -145
- package/coverage/src/concepts/ProcessElement__.ts.html +281 -854
- package/coverage/src/concepts/ProcessOutcome__.ts.html +25 -100
- package/coverage/src/concepts/ProcessOutcomes__.ts.html +26 -113
- package/coverage/src/concepts/Process__.ts.html +201 -552
- package/coverage/src/concepts/QueryAggregateExpression__.ts.html +35 -89
- package/coverage/src/concepts/QueryFieldExpression__.ts.html +35 -62
- package/coverage/src/concepts/QueryFromExpression__.ts.html +47 -119
- package/coverage/src/concepts/QueryGroupByExpression__.ts.html +37 -97
- package/coverage/src/concepts/QueryJoinExpression__.ts.html +69 -153
- package/coverage/src/concepts/QueryLimitExpression__.ts.html +36 -105
- package/coverage/src/concepts/QueryOrderByExpression__.ts.html +36 -108
- package/coverage/src/concepts/QuerySelectExpression__.ts.html +50 -101
- package/coverage/src/concepts/Rect__.ts.html +25 -25
- package/coverage/src/concepts/Return__.ts.html +131 -368
- package/coverage/src/concepts/Role__.ts.html +37 -67
- package/coverage/src/concepts/SelectMembers__.ts.html +57 -141
- package/coverage/src/concepts/Slot__.ts.html +40 -64
- package/coverage/src/concepts/SqlQueryComponent__.ts.html +62 -122
- package/coverage/src/concepts/Start__.ts.html +25 -58
- package/coverage/src/concepts/StringInterpolation__.ts.html +77 -185
- package/coverage/src/concepts/StringLiteral__.ts.html +47 -158
- package/coverage/src/concepts/StructureProperty__.ts.html +78 -306
- package/coverage/src/concepts/Structure__.ts.html +90 -285
- package/coverage/src/concepts/SwitchCase__.ts.html +66 -141
- package/coverage/src/concepts/SwitchStatement__.ts.html +58 -136
- package/coverage/src/concepts/Theme__.ts.html +24 -36
- package/coverage/src/concepts/Transactional__.ts.html +33 -36
- package/coverage/src/concepts/TriggerEvent__.ts.html +480 -63
- package/coverage/src/concepts/TriggerLauncher__.ts.html +43 -73
- package/coverage/src/concepts/TypeAnnotation__.ts.html +231 -564
- package/coverage/src/concepts/TypeParam__.ts.html +23 -59
- package/coverage/src/concepts/UnaryExpression__.ts.html +47 -131
- package/coverage/src/concepts/Unparsed__.ts.html +29 -59
- package/coverage/src/concepts/UseComponent__.ts.html +21 -27
- package/coverage/src/concepts/ValidationRule__.ts.html +96 -234
- package/coverage/src/concepts/Variable__.ts.html +132 -456
- package/coverage/src/concepts/ViewBlock__.ts.html +23 -26
- package/coverage/src/concepts/ViewComponent__.ts.html +157 -394
- package/coverage/src/concepts/ViewElement__.ts.html +514 -910
- package/coverage/src/concepts/View__.ts.html +425 -1271
- package/coverage/src/concepts/WhileStatement__.ts.html +79 -175
- package/coverage/src/concepts/basics/stdlib/index.html +85 -85
- package/coverage/src/concepts/basics/stdlib/index.ts.html +29 -167
- package/coverage/src/concepts/basics/stdlib/nasl.auth.ts.html +152 -206
- package/coverage/src/concepts/basics/stdlib/nasl.browser.ts.html +139 -172
- package/coverage/src/concepts/basics/stdlib/nasl.collection.ts.html +47 -92
- package/coverage/src/concepts/basics/stdlib/nasl.configuration.ts.html +31 -130
- package/coverage/src/concepts/basics/stdlib/nasl.core.ts.html +43 -61
- package/coverage/src/concepts/basics/stdlib/nasl.event.ts.html +23 -53
- package/coverage/src/concepts/basics/stdlib/nasl.http.ts.html +167 -203
- package/coverage/src/concepts/basics/stdlib/nasl.interface.ts.html +45 -78
- package/coverage/src/concepts/basics/stdlib/nasl.io.ts.html +51 -81
- package/coverage/src/concepts/basics/stdlib/nasl.logging.ts.html +66 -69
- package/coverage/src/concepts/basics/stdlib/nasl.process.ts.html +606 -654
- package/coverage/src/concepts/basics/stdlib/nasl.ui.ts.html +993 -1050
- package/coverage/src/concepts/basics/stdlib/nasl.util.ts.html +2131 -2236
- package/coverage/src/concepts/basics/stdlib/nasl.validation.ts.html +563 -596
- package/coverage/src/concepts/basics/stdlib/reference2TypeAnnotationList.ts.html +40 -28
- package/coverage/src/concepts/basics/stdlib/timeZone.ts.html +9 -9
- package/coverage/src/concepts/basics/types/coreTypeList.ts.html +7 -7
- package/coverage/src/concepts/basics/types/index.html +16 -16
- package/coverage/src/concepts/basics/types/index.ts.html +18 -18
- package/coverage/src/concepts/index.html +1215 -1365
- package/coverage/src/concepts/index.ts.html +7 -31
- package/coverage/src/concepts/index__.ts.html +8 -38
- package/coverage/src/config.ts.html +20 -2
- package/coverage/src/decorators/index.html +32 -32
- package/coverage/src/decorators/index.ts.html +93 -108
- package/coverage/src/decorators/promise.ts.html +26 -26
- package/coverage/src/eventBus.ts.html +7 -7
- package/coverage/src/generator/compileComponent.ts.html +10 -10
- package/coverage/src/generator/genBundleFiles.ts.html +45 -273
- package/coverage/src/generator/genHash.ts.html +8 -8
- package/coverage/src/generator/genMetaData.ts.html +49 -280
- package/coverage/src/generator/genReleaseBody.ts.html +98 -113
- package/coverage/src/generator/icestark.ts.html +8 -14
- package/coverage/src/generator/index.html +87 -87
- package/coverage/src/generator/index.ts.html +6 -6
- package/coverage/src/generator/microApp.ts.html +10 -10
- package/coverage/src/generator/permission.ts.html +80 -152
- package/coverage/src/generator/qiankun.ts.html +7 -13
- package/coverage/src/generator/styleReplacer.ts.html +17 -17
- package/coverage/src/index.html +10 -40
- package/coverage/src/index.ts.html +12 -15
- package/coverage/src/manager/diagnostic.ts.html +31 -28
- package/coverage/src/manager/index.html +27 -27
- package/coverage/src/manager/stepRecorder.ts.html +17 -17
- package/coverage/src/natural/genNaturalTS.ts.html +30 -30
- package/coverage/src/natural/index.html +41 -41
- package/coverage/src/natural/index.ts.html +6 -6
- package/coverage/src/natural/naslStdlibMap.ts.html +10 -10
- package/coverage/src/natural/transformTSCode.ts.html +137 -197
- package/coverage/src/sentry/index.html +19 -19
- package/coverage/src/sentry/index.ts.html +43 -49
- package/coverage/src/server/createUiTs.ts.html +37 -46
- package/coverage/src/server/entity2LogicNamespace.ts.html +21 -21
- package/coverage/src/server/event.js.html +7 -7
- package/coverage/src/server/extendBaseNode.ts.html +90 -132
- package/coverage/src/server/formatTsUtils.ts.html +105 -108
- package/coverage/src/server/getConnector.ts.html +24 -96
- package/coverage/src/server/getExtensionModules.ts.html +14 -14
- package/coverage/src/server/getFunctions.ts.html +15 -15
- package/coverage/src/server/getInterfaces.ts.html +18 -18
- package/coverage/src/server/getLogging.ts.html +11 -11
- package/coverage/src/server/getLogics.ts.html +74 -122
- package/coverage/src/server/getMemberIdentifier.ts.html +163 -358
- package/coverage/src/server/getProcessComponents.ts.html +13 -13
- package/coverage/src/server/getProcesses.ts.html +86 -236
- package/coverage/src/server/getValidates.ts.html +14 -17
- package/coverage/src/server/index.html +181 -181
- package/coverage/src/server/index.ts.html +8 -11
- package/coverage/src/server/naslServer.ts.html +1270 -1933
- package/coverage/src/server/naslStdlibMap.ts.html +10 -10
- package/coverage/src/server/process2LogicNamespace.ts.html +20 -20
- package/coverage/src/server/translator.ts.html +89 -134
- package/coverage/src/service/creator/add.configs.js.html +17 -35
- package/coverage/src/service/creator/errHandles.js.html +45 -36
- package/coverage/src/service/creator/index.html +35 -35
- package/coverage/src/service/creator/index.js.html +14 -14
- package/coverage/src/service/datasource/api.js.html +7 -7
- package/coverage/src/service/datasource/index.html +12 -12
- package/coverage/src/service/datasource/index.js.html +5 -5
- package/coverage/src/service/logic/api.js.html +7 -7
- package/coverage/src/service/logic/index.html +12 -12
- package/coverage/src/service/logic/index.js.html +5 -5
- package/coverage/src/service/storage/api.js.html +7 -7
- package/coverage/src/service/storage/index.html +56 -56
- package/coverage/src/service/storage/index.ts.html +5 -5
- package/coverage/src/service/storage/init.ts.html +624 -1758
- package/coverage/src/service/storage/jsoner.ts.html +23 -86
- package/coverage/src/service/storage/map.ts.html +21 -21
- package/coverage/src/service/storage/service.ts.html +14 -14
- package/coverage/src/service/storage/storagePoint.ts.html +9 -9
- package/coverage/src/templator/genCallComponentLogic.ts.html +12 -12
- package/coverage/src/templator/genCreateBlock.ts.html +94 -154
- package/coverage/src/templator/genCurdEditMultipleKeyBlock.ts.html +90 -90
- package/coverage/src/templator/genCurdMultipleKeyBlock.ts.html +150 -132
- package/coverage/src/templator/genEditTableBlock.ts.html +41 -104
- package/coverage/src/templator/genEnumSelectBlock.ts.html +12 -93
- package/coverage/src/templator/genGetBlock.ts.html +18 -18
- package/coverage/src/templator/genGridViewBlock.ts.html +35 -35
- package/coverage/src/templator/genListViewBlock.ts.html +15 -15
- package/coverage/src/templator/genQueryComponent.ts.html +35 -35
- package/coverage/src/templator/genSelectBlock.ts.html +20 -101
- package/coverage/src/templator/genTableBlock.ts.html +33 -96
- package/coverage/src/templator/genUpdateBlock.ts.html +78 -162
- package/coverage/src/templator/index.html +147 -147
- package/coverage/src/templator/index.ts.html +12 -12
- package/coverage/src/templator/utils.ts.html +32 -95
- package/coverage/src/translator/constant.ts.html +7 -7
- package/coverage/src/translator/index.html +28 -43
- package/coverage/src/translator/index.ts.html +6 -6
- package/coverage/src/translator/utils.ts.html +71 -452
- package/coverage/src/utils/cookie.ts.html +19 -19
- package/coverage/src/utils/env.ts.html +2 -2
- package/coverage/src/utils/index.html +37 -82
- package/coverage/src/utils/index.ts.html +798 -66
- package/coverage/src/utils/logger.ts.html +1 -1
- package/coverage/src/utils/sortTsString.ts.html +18 -33
- package/coverage/src/utils/string.ts.html +50 -8
- package/coverage/src/utils/time-slicing/controller.ts.html +8 -8
- package/coverage/src/utils/time-slicing/index.html +64 -79
- package/coverage/src/utils/time-slicing/index.ts.html +8 -8
- package/coverage/src/utils/time-slicing/page-state.ts.html +1 -1
- package/coverage/src/utils/time-slicing/performance.ts.html +4 -4
- package/coverage/src/utils/time-slicing/runner.ts.html +51 -51
- package/coverage/src/utils/time-slicing/tool.ts.html +29 -29
- package/coverage/src/utils/time-slicing/utils.ts.html +16 -16
- package/coverage/src/utils/time-slicing/wrapper.ts.html +50 -50
- package/coverage/src/utils/time-slicing.ts.html +1 -1
- package/coverage/src/utils/traverse.ts.html +27 -27
- package/coverage/src/utils/types.ts.html +1 -1
- package/coverage/src/utils/window.ts.html +1 -1
- package/out/common/BaseNode.d.ts +9 -4
- package/out/common/BaseNode.js +43 -10
- package/out/common/BaseNode.js.map +1 -1
- package/out/concepts/AuthLogicForCallInterface__.js +2 -50
- package/out/concepts/AuthLogicForCallInterface__.js.map +1 -1
- package/out/concepts/BusinessComponent__.js +2 -42
- package/out/concepts/BusinessComponent__.js.map +1 -1
- package/out/concepts/BusinessLogic__.js +2 -50
- package/out/concepts/BusinessLogic__.js.map +1 -1
- package/out/concepts/CallFunction__.d.ts +1 -1
- package/out/concepts/CallFunction__.js +1 -1
- package/out/concepts/Identifier__.d.ts +2 -0
- package/out/concepts/Identifier__.js +51 -5
- package/out/concepts/Identifier__.js.map +1 -1
- package/out/concepts/Logic__.js +6 -101
- package/out/concepts/Logic__.js.map +1 -1
- package/out/concepts/MemberExpression__.d.ts +1 -1
- package/out/concepts/MemberExpression__.js +15 -3
- package/out/concepts/MemberExpression__.js.map +1 -1
- package/out/concepts/OverriddenLogic__.js +2 -50
- package/out/concepts/OverriddenLogic__.js.map +1 -1
- package/out/concepts/ProcessElementV2__.js +4 -0
- package/out/concepts/ProcessElementV2__.js.map +1 -1
- package/out/concepts/ProcessElement__.js +4 -0
- package/out/concepts/ProcessElement__.js.map +1 -1
- package/out/concepts/ProcessV2__.js +4 -0
- package/out/concepts/ProcessV2__.js.map +1 -1
- package/out/concepts/Process__.js +4 -0
- package/out/concepts/Process__.js.map +1 -1
- package/out/concepts/SubLogic__.js +5 -50
- package/out/concepts/SubLogic__.js.map +1 -1
- package/out/concepts/View__.js +10 -49
- package/out/concepts/View__.js.map +1 -1
- package/out/natural/transformTS2UI.js +3 -3
- package/out/natural/transformTS2UI.js.map +1 -1
- package/out/natural/transforms/transform2LogicItem.js +3 -3
- package/out/natural/transforms/transform2LogicItem.js.map +1 -1
- package/out/server/naslServer.js +17 -2
- package/out/server/naslServer.js.map +1 -1
- package/out/server/semanticData.d.ts +32 -0
- package/out/server/semanticData.js +371 -0
- package/out/server/semanticData.js.map +1 -0
- package/out/templator/block2nasl/viewMergeBlock.js +2 -1
- package/out/templator/block2nasl/viewMergeBlock.js.map +1 -1
- package/package.json +1 -1
- package/src/common/BaseNode.ts +50 -8
- package/src/concepts/AuthLogicForCallInterface__.ts +3 -56
- package/src/concepts/BusinessComponent__.ts +6 -51
- package/src/concepts/BusinessLogic__.ts +4 -56
- package/src/concepts/CallFunction__.ts +1 -1
- package/src/concepts/Identifier__.ts +57 -6
- package/src/concepts/Logic__.ts +9 -111
- package/src/concepts/MemberExpression__.ts +21 -7
- package/src/concepts/OverriddenLogic__.ts +4 -56
- package/src/concepts/ProcessElementV2__.ts +4 -0
- package/src/concepts/ProcessElement__.ts +4 -0
- package/src/concepts/ProcessV2__.ts +5 -0
- package/src/concepts/Process__.ts +4 -0
- package/src/concepts/SubLogic__.ts +6 -56
- package/src/concepts/View__.ts +14 -54
- package/src/natural/transformTS2UI.ts +7 -7
- package/src/natural/transforms/transform2LogicItem.ts +3 -3
- package/src/server/naslServer.ts +22 -2
- package/src/server/semanticData.ts +447 -0
- package/src/templator/block2nasl/viewMergeBlock.ts +2 -1
- package/src/translator/utils.ts +1 -1
- package/test/concepts/logic/__snapshots__/toEmbeddedTS.spec.ts.snap +182 -0
- package/test/concepts/logic/constant.ts +5 -0
- package/test/concepts/logic/fixtures/variable-host-call-logic-member-expression.json +267 -0
- package/test/concepts/logic/fixtures/variable-host-call-logic-nested-member-expression copy.json +457 -0
- package/test/concepts/logic/fixtures/variable-host-call-logic-with-handle-error-member-expression.json +267 -0
- package/test/concepts/logic/toEmbeddedTS.spec.ts +15 -0
- package/.nyc_output/fe4ca6db-1eb6-4898-8aa5-ba8f8d4128f2.json +0 -1
- package/.nyc_output/processinfo/fe4ca6db-1eb6-4898-8aa5-ba8f8d4128f2.json +0 -1
- package/coverage/src/common/utils.ts.html +0 -136
- package/coverage/src/concepts/AbstractInterface__.ts.html +0 -277
- package/coverage/src/concepts/Block__.ts.html +0 -907
- package/coverage/src/concepts/CountersignPolicy__.ts.html +0 -319
- package/coverage/src/concepts/DefaultValue__.ts.html +0 -1024
- package/coverage/src/concepts/I18nInfo__.ts.html +0 -424
- package/coverage/src/concepts/ImportedInterface__.ts.html +0 -262
- package/coverage/src/concepts/MetadataType__.ts.html +0 -2035
- package/coverage/src/concepts/MultiApprovalPolicy__.ts.html +0 -301
- package/coverage/src/concepts/SequentialPolicy__.ts.html +0 -265
- package/coverage/src/concepts/StaticString__.ts.html +0 -397
- package/coverage/src/concepts/basics/constants.ts.html +0 -88
- package/coverage/src/concepts/basics/index.html +0 -116
- package/coverage/src/concepts/utils/asserts.ts.html +0 -28675
- package/coverage/src/concepts/utils/index.html +0 -131
- package/coverage/src/concepts/utils/types.ts.html +0 -2092
- package/coverage/src/translator/types.ts.html +0 -256
- package/coverage/src/utils/i18nInfo.ts.html +0 -166
- package/coverage/src/utils/time-slicing/constant.ts.html +0 -196
- package/dist/README.md +0 -97
- package/dist/index.d.ts +0 -26
- package/dist/index.js +0 -397
- package/dist/index.js.map +0 -1
- package/dist/package.json +0 -91
- package/dist/src/automate/engine/index.d.ts +0 -4
- package/dist/src/automate/engine/operators.d.ts +0 -26
- package/dist/src/automate/engine/uniqueName.d.ts +0 -12
- package/dist/src/automate/engine/utils.d.ts +0 -25
- package/dist/src/automate/engine/viewCache.d.ts +0 -19
- package/dist/src/automate/template/myProcess.d.ts +0 -10
- package/dist/src/automate/upgrader/2.12.d.ts +0 -7
- package/dist/src/automate/upgrader/2.14-components.d.ts +0 -1115
- package/dist/src/automate/upgrader/2.14.d.ts +0 -10
- package/dist/src/automate/upgrader/2.14.old.d.ts +0 -1
- package/dist/src/automate/upgrader/2.16.d.ts +0 -10
- package/dist/src/automate/upgrader/2.17.d.ts +0 -21
- package/dist/src/automate/upgrader/2.18.d.ts +0 -10
- package/dist/src/automate/upgrader/2.20.d.ts +0 -17
- package/dist/src/bak/translator.d.ts +0 -1
- package/dist/src/breakpoint/generator/AfterStartNode.d.ts +0 -7
- package/dist/src/breakpoint/generator/BeforeEndNode.d.ts +0 -7
- package/dist/src/breakpoint/generator/BreakpointNode.d.ts +0 -20
- package/dist/src/breakpoint/generator/CallbackNode.d.ts +0 -4
- package/dist/src/breakpoint/generator/FragmentNode.d.ts +0 -4
- package/dist/src/breakpoint/generator/index.d.ts +0 -4
- package/dist/src/breakpoint/index.d.ts +0 -3
- package/dist/src/breakpoint/shared/constants.d.ts +0 -37
- package/dist/src/breakpoint/shared/index.d.ts +0 -3
- package/dist/src/breakpoint/shared/operations.d.ts +0 -10
- package/dist/src/breakpoint/shared/socket.d.ts +0 -48
- package/dist/src/breakpoint/shared/utils.d.ts +0 -27
- package/dist/src/breakpoint/store/core.d.ts +0 -80
- package/dist/src/breakpoint/store/dock.d.ts +0 -1
- package/dist/src/breakpoint/store/index.d.ts +0 -2
- package/dist/src/common/BaseNode.d.ts +0 -384
- package/dist/src/common/Command.d.ts +0 -21
- package/dist/src/common/ComponentAPI.d.ts +0 -112
- package/dist/src/common/EventEmitter.d.ts +0 -61
- package/dist/src/common/Messager.d.ts +0 -91
- package/dist/src/common/asyncFuncMap.d.ts +0 -2
- package/dist/src/common/index.d.ts +0 -4
- package/dist/src/common/utils.d.ts +0 -2
- package/dist/src/concepts/Abort__.d.ts +0 -31
- package/dist/src/concepts/AbstractInterface__.d.ts +0 -25
- package/dist/src/concepts/Anchor__.d.ts +0 -42
- package/dist/src/concepts/AnonymousFunction__.d.ts +0 -144
- package/dist/src/concepts/App__.d.ts +0 -1711
- package/dist/src/concepts/Argument__.d.ts +0 -64
- package/dist/src/concepts/Assignee__.d.ts +0 -294
- package/dist/src/concepts/AssignmentLine__.d.ts +0 -43
- package/dist/src/concepts/Assignment__.d.ts +0 -57
- package/dist/src/concepts/Attribute__.d.ts +0 -75
- package/dist/src/concepts/AuthInterface__.d.ts +0 -38
- package/dist/src/concepts/AuthLogicForCallInterface__.d.ts +0 -145
- package/dist/src/concepts/AuthLogic__.d.ts +0 -69
- package/dist/src/concepts/BackendVariable__.d.ts +0 -118
- package/dist/src/concepts/Backend__.d.ts +0 -127
- package/dist/src/concepts/BaseSetter__.d.ts +0 -25
- package/dist/src/concepts/BatchAssignment__.d.ts +0 -244
- package/dist/src/concepts/BinaryExpression__.d.ts +0 -61
- package/dist/src/concepts/BindAttribute__.d.ts +0 -284
- package/dist/src/concepts/BindDirective__.d.ts +0 -156
- package/dist/src/concepts/BindEvent__.d.ts +0 -246
- package/dist/src/concepts/BindStyle__.d.ts +0 -127
- package/dist/src/concepts/Block__.d.ts +0 -88
- package/dist/src/concepts/BooleanLiteral__.d.ts +0 -44
- package/dist/src/concepts/BusinessComponent__.d.ts +0 -640
- package/dist/src/concepts/BusinessLogic__.d.ts +0 -44
- package/dist/src/concepts/CallAuthInterface__.d.ts +0 -132
- package/dist/src/concepts/CallConnector__.d.ts +0 -55
- package/dist/src/concepts/CallEvent__.d.ts +0 -100
- package/dist/src/concepts/CallFunction__.d.ts +0 -171
- package/dist/src/concepts/CallInterface__.d.ts +0 -143
- package/dist/src/concepts/CallLogic__.d.ts +0 -224
- package/dist/src/concepts/CallQueryComponent__.d.ts +0 -383
- package/dist/src/concepts/CapsulesSetter__.d.ts +0 -109
- package/dist/src/concepts/Comment__.d.ts +0 -41
- package/dist/src/concepts/CompletionProperty__.d.ts +0 -87
- package/dist/src/concepts/ConfigGroup__.d.ts +0 -121
- package/dist/src/concepts/ConfigPropertyValue__.d.ts +0 -42
- package/dist/src/concepts/ConfigProperty__.d.ts +0 -147
- package/dist/src/concepts/Configuration__.d.ts +0 -120
- package/dist/src/concepts/Connection__.d.ts +0 -159
- package/dist/src/concepts/ConnectorLogic__.d.ts +0 -33
- package/dist/src/concepts/ConnectorTriggerLauncher__.d.ts +0 -44
- package/dist/src/concepts/ConnectorTrigger__.d.ts +0 -76
- package/dist/src/concepts/Connector__.d.ts +0 -532
- package/dist/src/concepts/Constant__.d.ts +0 -94
- package/dist/src/concepts/CountersignPolicy__.d.ts +0 -29
- package/dist/src/concepts/DataSource__.d.ts +0 -163
- package/dist/src/concepts/DatabaseTypeAnnotation__.d.ts +0 -35
- package/dist/src/concepts/DefaultValue__.d.ts +0 -94
- package/dist/src/concepts/Destination__.d.ts +0 -150
- package/dist/src/concepts/End__.d.ts +0 -30
- package/dist/src/concepts/EntityIndex__.d.ts +0 -93
- package/dist/src/concepts/EntityProperty__.d.ts +0 -255
- package/dist/src/concepts/Entity__.d.ts +0 -332
- package/dist/src/concepts/EnumItem__.d.ts +0 -83
- package/dist/src/concepts/EnumSelectSetter__.d.ts +0 -109
- package/dist/src/concepts/Enum__.d.ts +0 -133
- package/dist/src/concepts/EventDeclaration__.d.ts +0 -41
- package/dist/src/concepts/Event__.d.ts +0 -149
- package/dist/src/concepts/ExternalDestination__.d.ts +0 -63
- package/dist/src/concepts/ForEachStatement__.d.ts +0 -126
- package/dist/src/concepts/FrontendLibrary__.d.ts +0 -208
- package/dist/src/concepts/FrontendType__.d.ts +0 -304
- package/dist/src/concepts/FrontendVariable__.d.ts +0 -41
- package/dist/src/concepts/Frontend__.d.ts +0 -389
- package/dist/src/concepts/Function__.d.ts +0 -399
- package/dist/src/concepts/I18nInfo__.d.ts +0 -47
- package/dist/src/concepts/IconSetter__.d.ts +0 -29
- package/dist/src/concepts/Identifier__.d.ts +0 -66
- package/dist/src/concepts/IfStatement__.d.ts +0 -155
- package/dist/src/concepts/ImageSetter__.d.ts +0 -25
- package/dist/src/concepts/ImportedInterface__.d.ts +0 -29
- package/dist/src/concepts/InputSetter__.d.ts +0 -29
- package/dist/src/concepts/Integration__.d.ts +0 -127
- package/dist/src/concepts/InterfaceParam__.d.ts +0 -119
- package/dist/src/concepts/InterfaceTriggerEvent__.d.ts +0 -34
- package/dist/src/concepts/Interface__.d.ts +0 -323
- package/dist/src/concepts/JSBlock__.d.ts +0 -38
- package/dist/src/concepts/JavaLogic__.d.ts +0 -50
- package/dist/src/concepts/LogicDeclaration__.d.ts +0 -289
- package/dist/src/concepts/LogicItem__.d.ts +0 -171
- package/dist/src/concepts/Logic__.d.ts +0 -632
- package/dist/src/concepts/MatchCase__.d.ts +0 -264
- package/dist/src/concepts/Match__.d.ts +0 -122
- package/dist/src/concepts/MemberExpression__.d.ts +0 -64
- package/dist/src/concepts/MetadataType__.d.ts +0 -220
- package/dist/src/concepts/MicroApp__.d.ts +0 -53
- package/dist/src/concepts/Module__.d.ts +0 -1142
- package/dist/src/concepts/MsgTriggerEvent__.d.ts +0 -138
- package/dist/src/concepts/MsgTriggerLauncher__.d.ts +0 -119
- package/dist/src/concepts/MultiApprovalPolicy__.d.ts +0 -25
- package/dist/src/concepts/Namespace__.d.ts +0 -1060
- package/dist/src/concepts/NewComposite__.d.ts +0 -346
- package/dist/src/concepts/NewList__.d.ts +0 -135
- package/dist/src/concepts/NewMap__.d.ts +0 -226
- package/dist/src/concepts/New__.d.ts +0 -30
- package/dist/src/concepts/NullLiteral__.d.ts +0 -36
- package/dist/src/concepts/NumberInputSetter__.d.ts +0 -45
- package/dist/src/concepts/NumericLiteral__.d.ts +0 -53
- package/dist/src/concepts/OqlQueryComponent__.d.ts +0 -67
- package/dist/src/concepts/OverriddenLogic__.d.ts +0 -615
- package/dist/src/concepts/Paginate__.d.ts +0 -59
- package/dist/src/concepts/ParamWithGroup__.d.ts +0 -44
- package/dist/src/concepts/Param__.d.ts +0 -140
- package/dist/src/concepts/Point__.d.ts +0 -33
- package/dist/src/concepts/ProcessComponent__.d.ts +0 -214
- package/dist/src/concepts/ProcessElement__.d.ts +0 -620
- package/dist/src/concepts/ProcessOutcome__.d.ts +0 -35
- package/dist/src/concepts/ProcessOutcomes__.d.ts +0 -35
- package/dist/src/concepts/Process__.d.ts +0 -605
- package/dist/src/concepts/PropDeclaration__.d.ts +0 -99
- package/dist/src/concepts/PropertySelectSetter__.d.ts +0 -25
- package/dist/src/concepts/QueryAggregateExpression__.d.ts +0 -50
- package/dist/src/concepts/QueryFieldExpression__.d.ts +0 -66
- package/dist/src/concepts/QueryFromExpression__.d.ts +0 -107
- package/dist/src/concepts/QueryGroupByExpression__.d.ts +0 -46
- package/dist/src/concepts/QueryJoinExpression__.d.ts +0 -194
- package/dist/src/concepts/QueryLimitExpression__.d.ts +0 -46
- package/dist/src/concepts/QueryOrderByExpression__.d.ts +0 -57
- package/dist/src/concepts/QuerySelectExpression__.d.ts +0 -213
- package/dist/src/concepts/Rect__.d.ts +0 -41
- package/dist/src/concepts/Return__.d.ts +0 -120
- package/dist/src/concepts/Role__.d.ts +0 -58
- package/dist/src/concepts/SelectMembers__.d.ts +0 -134
- package/dist/src/concepts/SequentialPolicy__.d.ts +0 -25
- package/dist/src/concepts/SetterOption__.d.ts +0 -49
- package/dist/src/concepts/SlotDeclaration__.d.ts +0 -213
- package/dist/src/concepts/Slot__.d.ts +0 -53
- package/dist/src/concepts/SqlQueryComponent__.d.ts +0 -63
- package/dist/src/concepts/Start__.d.ts +0 -30
- package/dist/src/concepts/StaticString__.d.ts +0 -49
- package/dist/src/concepts/StringInterpolation__.d.ts +0 -122
- package/dist/src/concepts/StringLiteral__.d.ts +0 -51
- package/dist/src/concepts/StructureProperty__.d.ts +0 -119
- package/dist/src/concepts/Structure__.d.ts +0 -243
- package/dist/src/concepts/SwitchCase__.d.ts +0 -91
- package/dist/src/concepts/SwitchSetter__.d.ts +0 -25
- package/dist/src/concepts/SwitchStatement__.d.ts +0 -90
- package/dist/src/concepts/ThemeVariable__.d.ts +0 -29
- package/dist/src/concepts/Theme__.d.ts +0 -39
- package/dist/src/concepts/Transactional__.d.ts +0 -85
- package/dist/src/concepts/TriggerEvent__.d.ts +0 -42
- package/dist/src/concepts/TriggerLauncher__.d.ts +0 -76
- package/dist/src/concepts/TypeAnnotation__.d.ts +0 -303
- package/dist/src/concepts/TypeParam__.d.ts +0 -34
- package/dist/src/concepts/UnaryExpression__.d.ts +0 -45
- package/dist/src/concepts/Unparsed__.d.ts +0 -41
- package/dist/src/concepts/UseComponent__.d.ts +0 -33
- package/dist/src/concepts/ValidationRule__.d.ts +0 -133
- package/dist/src/concepts/Variable__.d.ts +0 -137
- package/dist/src/concepts/ViewBlockWithImage__.d.ts +0 -33
- package/dist/src/concepts/ViewBlock__.d.ts +0 -37
- package/dist/src/concepts/ViewComponentDeclaration__.d.ts +0 -721
- package/dist/src/concepts/ViewElement__.d.ts +0 -652
- package/dist/src/concepts/View__.d.ts +0 -728
- package/dist/src/concepts/WhileStatement__.d.ts +0 -94
- package/dist/src/concepts/basics/constants.d.ts +0 -1
- package/dist/src/concepts/basics/stdlib/index.d.ts +0 -16
- package/dist/src/concepts/basics/stdlib/nasl.auth.d.ts +0 -9
- package/dist/src/concepts/basics/stdlib/nasl.browser.d.ts +0 -5
- package/dist/src/concepts/basics/stdlib/nasl.collection.d.ts +0 -9
- package/dist/src/concepts/basics/stdlib/nasl.configuration.d.ts +0 -9
- package/dist/src/concepts/basics/stdlib/nasl.core.d.ts +0 -7
- package/dist/src/concepts/basics/stdlib/nasl.event.d.ts +0 -5
- package/dist/src/concepts/basics/stdlib/nasl.http.d.ts +0 -9
- package/dist/src/concepts/basics/stdlib/nasl.interface.d.ts +0 -9
- package/dist/src/concepts/basics/stdlib/nasl.io.d.ts +0 -5
- package/dist/src/concepts/basics/stdlib/nasl.logging.d.ts +0 -5
- package/dist/src/concepts/basics/stdlib/nasl.process.d.ts +0 -9
- package/dist/src/concepts/basics/stdlib/nasl.ui.d.ts +0 -9
- package/dist/src/concepts/basics/stdlib/nasl.util.d.ts +0 -6
- package/dist/src/concepts/basics/stdlib/nasl.validation.d.ts +0 -5
- package/dist/src/concepts/basics/stdlib/reference2TypeAnnotationList.d.ts +0 -4
- package/dist/src/concepts/basics/stdlib/timeZone.d.ts +0 -5
- package/dist/src/concepts/basics/types/coreTypeList.d.ts +0 -2
- package/dist/src/concepts/basics/types/index.d.ts +0 -17
- package/dist/src/concepts/index.d.ts +0 -7
- package/dist/src/concepts/index__.d.ts +0 -156
- package/dist/src/concepts/utils/asserts.d.ts +0 -7825
- package/dist/src/concepts/utils/quick-info.d.ts +0 -13
- package/dist/src/concepts/utils/types.d.ts +0 -510
- package/dist/src/config.d.ts +0 -52
- package/dist/src/decorators/index.d.ts +0 -67
- package/dist/src/decorators/promise.d.ts +0 -7
- package/dist/src/enums/KEYWORDS.d.ts +0 -6
- package/dist/src/enums/LEVEL_NAME_MAP.d.ts +0 -26
- package/dist/src/eventBus.d.ts +0 -3
- package/dist/src/generator/compileComponent.d.ts +0 -11
- package/dist/src/generator/genBundleFiles.d.ts +0 -37
- package/dist/src/generator/genHash.d.ts +0 -7
- package/dist/src/generator/genMetaData.d.ts +0 -31
- package/dist/src/generator/icestark.d.ts +0 -2
- package/dist/src/generator/index.d.ts +0 -7
- package/dist/src/generator/microApp.d.ts +0 -2
- package/dist/src/generator/permission.d.ts +0 -14
- package/dist/src/generator/qiankun.d.ts +0 -2
- package/dist/src/generator/release-body/body.d.ts +0 -42
- package/dist/src/generator/release-body/data.d.ts +0 -45
- package/dist/src/generator/release-body/index.d.ts +0 -2
- package/dist/src/generator/release-body/internal.d.ts +0 -622
- package/dist/src/generator/release-body/types.d.ts +0 -57
- package/dist/src/generator/release-body/utils.d.ts +0 -418
- package/dist/src/generator/release-body/validation.d.ts +0 -3
- package/dist/src/generator/styleReplacer.d.ts +0 -3
- package/dist/src/index.d.ts +0 -14
- package/dist/src/manager/diagnostic.d.ts +0 -39
- package/dist/src/manager/stepRecorder.d.ts +0 -20
- package/dist/src/natural/componentData.d.ts +0 -31
- package/dist/src/natural/genNaturalTS.d.ts +0 -241
- package/dist/src/natural/index.d.ts +0 -6
- package/dist/src/natural/naslStdlibMap.d.ts +0 -1
- package/dist/src/natural/prompt/analyzeClaims.d.ts +0 -1
- package/dist/src/natural/prompt/analyzeFormatOutput.d.ts +0 -1
- package/dist/src/natural/prompt/analyzeTasks.d.ts +0 -1
- package/dist/src/natural/prompt/executeClaims.d.ts +0 -1
- package/dist/src/natural/transformTSCode.d.ts +0 -7
- package/dist/src/sentry/index.d.ts +0 -34
- package/dist/src/server/createUiTs.d.ts +0 -17
- package/dist/src/server/entity2LogicNamespace.d.ts +0 -10
- package/dist/src/server/event.d.ts +0 -30
- package/dist/src/server/extendBaseNode.d.ts +0 -1
- package/dist/src/server/formatTsUtils.d.ts +0 -36
- package/dist/src/server/getConnector.d.ts +0 -15
- package/dist/src/server/getExtensionModules.d.ts +0 -3
- package/dist/src/server/getFunctions.d.ts +0 -3
- package/dist/src/server/getInterfaces.d.ts +0 -2
- package/dist/src/server/getLogging.d.ts +0 -1
- package/dist/src/server/getLogics.d.ts +0 -5
- package/dist/src/server/getMemberIdentifier.d.ts +0 -17
- package/dist/src/server/getProcessComponents.d.ts +0 -2
- package/dist/src/server/getProcesses.d.ts +0 -33
- package/dist/src/server/getScope.d.ts +0 -13
- package/dist/src/server/getValidates.d.ts +0 -3
- package/dist/src/server/index.d.ts +0 -5
- package/dist/src/server/naslServer.d.ts +0 -391
- package/dist/src/server/naslStdlibMap.d.ts +0 -2
- package/dist/src/server/process2LogicNamespace.d.ts +0 -26
- package/dist/src/server/translator.d.ts +0 -26
- package/dist/src/service/creator/add.configs.d.ts +0 -1
- package/dist/src/service/creator/errHandles.d.ts +0 -18
- package/dist/src/service/creator/index.d.ts +0 -1
- package/dist/src/service/datasource/api.d.ts +0 -12
- package/dist/src/service/datasource/index.d.ts +0 -2
- package/dist/src/service/logic/api.d.ts +0 -9
- package/dist/src/service/logic/checktypeSocket.d.ts +0 -5
- package/dist/src/service/logic/index.d.ts +0 -2
- package/dist/src/service/storage/api.d.ts +0 -54
- package/dist/src/service/storage/index.d.ts +0 -2
- package/dist/src/service/storage/init.d.ts +0 -105
- package/dist/src/service/storage/jsoner.d.ts +0 -36
- package/dist/src/service/storage/map.d.ts +0 -4
- package/dist/src/service/storage/service.d.ts +0 -25
- package/dist/src/service/storage/storagePoint.d.ts +0 -17
- package/dist/src/service/video/BaseService.d.ts +0 -7
- package/dist/src/service/video/MainCallbackService.d.ts +0 -12
- package/dist/src/service/video/VideoTranscribe.d.ts +0 -15
- package/dist/src/service/video/publishService.d.ts +0 -1
- package/dist/src/templator/genCallComponentLogic.d.ts +0 -17
- package/dist/src/templator/genCreateBlock.d.ts +0 -10
- package/dist/src/templator/genCurdEditMultipleKeyBlock.d.ts +0 -8
- package/dist/src/templator/genCurdMultipleKeyBlock.d.ts +0 -61
- package/dist/src/templator/genEditTableBlock.d.ts +0 -51
- package/dist/src/templator/genEnumSelectBlock.d.ts +0 -10
- package/dist/src/templator/genGetBlock.d.ts +0 -6
- package/dist/src/templator/genGridViewBlock.d.ts +0 -55
- package/dist/src/templator/genListViewBlock.d.ts +0 -19
- package/dist/src/templator/genQueryComponent.d.ts +0 -34
- package/dist/src/templator/genSelectBlock.d.ts +0 -45
- package/dist/src/templator/genTableBlock.d.ts +0 -55
- package/dist/src/templator/genUpdateBlock.d.ts +0 -6
- package/dist/src/templator/index.d.ts +0 -19
- package/dist/src/templator/utils.d.ts +0 -683
- package/dist/src/translator/constant.d.ts +0 -6
- package/dist/src/translator/index.d.ts +0 -3
- package/dist/src/translator/types.d.ts +0 -85
- package/dist/src/translator/utils.d.ts +0 -47
- package/dist/src/utils/cookie.d.ts +0 -9
- package/dist/src/utils/create.d.ts +0 -2
- package/dist/src/utils/env.d.ts +0 -2
- package/dist/src/utils/file.d.ts +0 -33
- package/dist/src/utils/i18nInfo.d.ts +0 -5
- package/dist/src/utils/index.d.ts +0 -72
- package/dist/src/utils/logger.d.ts +0 -8
- package/dist/src/utils/sortTsString.d.ts +0 -1
- package/dist/src/utils/string.d.ts +0 -64
- package/dist/src/utils/time-slicing/constant.d.ts +0 -35
- package/dist/src/utils/time-slicing/controller.d.ts +0 -53
- package/dist/src/utils/time-slicing/index.d.ts +0 -5
- package/dist/src/utils/time-slicing/page-state.d.ts +0 -2
- package/dist/src/utils/time-slicing/performance.d.ts +0 -11
- package/dist/src/utils/time-slicing/runner.d.ts +0 -12
- package/dist/src/utils/time-slicing/tool.d.ts +0 -24
- package/dist/src/utils/time-slicing/utils.d.ts +0 -62
- package/dist/src/utils/time-slicing/wrapper.d.ts +0 -18
- package/dist/src/utils/traverse.d.ts +0 -36
- package/dist/src/utils/types.d.ts +0 -13
- package/dist/src/utils/window.d.ts +0 -7
- package/dist/test/concepts/anonymous-function/constant.d.ts +0 -2
- package/dist/test/concepts/anonymous-function/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/anonymous-function/toJS.spec.d.ts +0 -1
- package/dist/test/concepts/anonymous-function/toVue.spec.d.ts +0 -1
- package/dist/test/concepts/assignment/constant.d.ts +0 -2
- package/dist/test/concepts/assignment/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/assignment/toJS.spec.d.ts +0 -1
- package/dist/test/concepts/assignment/toVue.spec.d.ts +0 -1
- package/dist/test/concepts/batch-assignment/constant.d.ts +0 -2
- package/dist/test/concepts/batch-assignment/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/batch-assignment/toJS.spec.d.ts +0 -1
- package/dist/test/concepts/batch-assignment/toVue.spec.d.ts +0 -1
- package/dist/test/concepts/binary-expression/constant.d.ts +0 -2
- package/dist/test/concepts/binary-expression/getQuickInfoOffset.spec.d.ts +0 -1
- package/dist/test/concepts/binary-expression/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/binary-expression/toJS.spec.d.ts +0 -1
- package/dist/test/concepts/binary-expression/toVue.spec.d.ts +0 -1
- package/dist/test/concepts/boolean-literal/constant.d.ts +0 -2
- package/dist/test/concepts/boolean-literal/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/boolean-literal/toJS.spec.d.ts +0 -1
- package/dist/test/concepts/boolean-literal/toVue.spec.d.ts +0 -1
- package/dist/test/concepts/call-function/constant.d.ts +0 -2
- package/dist/test/concepts/call-function/getQuickInfoOffset.spec.d.ts +0 -1
- package/dist/test/concepts/call-function/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/call-function/toJS.spec.d.ts +0 -1
- package/dist/test/concepts/call-interface/constant.d.ts +0 -2
- package/dist/test/concepts/call-interface/getQuickInfoOffset.spec.d.ts +0 -1
- package/dist/test/concepts/call-interface/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/call-interface/toJS.spec.d.ts +0 -1
- package/dist/test/concepts/call-logic/constant.d.ts +0 -2
- package/dist/test/concepts/call-logic/getQuickInfoOffset.spec.d.ts +0 -1
- package/dist/test/concepts/call-logic/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/call-logic/toJS.spec.d.ts +0 -1
- package/dist/test/concepts/call-logic/toUI.spec.d.ts +0 -1
- package/dist/test/concepts/call-logic/toVue.spec.d.ts +0 -1
- package/dist/test/concepts/call-logic/toVueDesigner.spec.d.ts +0 -1
- package/dist/test/concepts/data-source/constant.d.ts +0 -2
- package/dist/test/concepts/data-source/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/data-source/toEmbeddedTSFile.spec.d.ts +0 -1
- package/dist/test/concepts/entity/constant.d.ts +0 -2
- package/dist/test/concepts/entity/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/entity/toEmbeddedTSFile.spec.d.ts +0 -1
- package/dist/test/concepts/identifier/constant.d.ts +0 -2
- package/dist/test/concepts/identifier/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/identifier/toJS.spec.d.ts +0 -1
- package/dist/test/concepts/identifier/toVue.spec.d.ts +0 -1
- package/dist/test/concepts/match/constant.d.ts +0 -2
- package/dist/test/concepts/match/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/match/toJS.spec.d.ts +0 -1
- package/dist/test/concepts/member-expression/constant.d.ts +0 -2
- package/dist/test/concepts/member-expression/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/member-expression/toJS.spec.d.ts +0 -1
- package/dist/test/concepts/member-expression/toVue.spec.d.ts +0 -1
- package/dist/test/concepts/new-composite/constant.d.ts +0 -2
- package/dist/test/concepts/new-composite/getQuickInfoOffset.spec.d.ts +0 -1
- package/dist/test/concepts/new-composite/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/new-composite/toJS.spec.d.ts +0 -1
- package/dist/test/concepts/new-list/constant.d.ts +0 -2
- package/dist/test/concepts/new-list/getQuickInfoOffset.spec.d.ts +0 -1
- package/dist/test/concepts/new-list/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/new-list/toJS.spec.d.ts +0 -1
- package/dist/test/concepts/new-map/constant.d.ts +0 -2
- package/dist/test/concepts/new-map/getQuickInfoOffset.spec.d.ts +0 -1
- package/dist/test/concepts/new-map/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/new-map/toJS.spec.d.ts +0 -1
- package/dist/test/concepts/null-literal/constant.d.ts +0 -2
- package/dist/test/concepts/null-literal/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/null-literal/toJS.spec.d.ts +0 -1
- package/dist/test/concepts/null-literal/toVue.spec.d.ts +0 -1
- package/dist/test/concepts/numeric-literal/constant.d.ts +0 -2
- package/dist/test/concepts/numeric-literal/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/numeric-literal/toJS.spec.d.ts +0 -1
- package/dist/test/concepts/numeric-literal/toVue.spec.d.ts +0 -1
- package/dist/test/concepts/string-literal/constant.d.ts +0 -2
- package/dist/test/concepts/string-literal/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/string-literal/toJS.spec.d.ts +0 -1
- package/dist/test/concepts/string-literal/toVue.spec.d.ts +0 -1
- package/dist/test/concepts/utils.d.ts +0 -13
- package/dist/test/concepts/validation-rule/constant.d.ts +0 -2
- package/dist/test/concepts/validation-rule/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/validation-rule/toJS.spec.d.ts +0 -1
- package/dist/test/concepts/validation-rule/validation-rule.spec.d.ts +0 -1
- package/dist/test/concepts/view-element/constant.d.ts +0 -2
- package/dist/test/concepts/view-element/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/view-element/toVue.spec.d.ts +0 -1
- package/dist/test/setup.d.ts +0 -1
- package/dist/test/time-slicing/runner.spec.d.ts +0 -1
- package/dist/test/time-slicing/time-slicing-nodejs.spec.d.ts +0 -1
- package/dist/test/time-slicing/utils.d.ts +0 -1
- package/dist/test/time-slicing/wrapper.spec.d.ts +0 -1
|
@@ -23,30 +23,30 @@
|
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">
|
|
26
|
+
<span class="strong">20.58% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>91/442</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">
|
|
33
|
+
<span class="strong">21.59% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>
|
|
35
|
+
<span class='fraction'>65/301</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
|
40
|
-
<span class="strong">
|
|
40
|
+
<span class="strong">13.04% </span>
|
|
41
41
|
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>
|
|
42
|
+
<span class='fraction'>9/69</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">
|
|
47
|
+
<span class="strong">20.18% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>87/431</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -1313,83 +1313,7 @@
|
|
|
1313
1313
|
<a name='L1248'></a><a href='#L1248'>1248</a>
|
|
1314
1314
|
<a name='L1249'></a><a href='#L1249'>1249</a>
|
|
1315
1315
|
<a name='L1250'></a><a href='#L1250'>1250</a>
|
|
1316
|
-
<a name='L1251'></a><a href='#L1251'>1251</a>
|
|
1317
|
-
<a name='L1252'></a><a href='#L1252'>1252</a>
|
|
1318
|
-
<a name='L1253'></a><a href='#L1253'>1253</a>
|
|
1319
|
-
<a name='L1254'></a><a href='#L1254'>1254</a>
|
|
1320
|
-
<a name='L1255'></a><a href='#L1255'>1255</a>
|
|
1321
|
-
<a name='L1256'></a><a href='#L1256'>1256</a>
|
|
1322
|
-
<a name='L1257'></a><a href='#L1257'>1257</a>
|
|
1323
|
-
<a name='L1258'></a><a href='#L1258'>1258</a>
|
|
1324
|
-
<a name='L1259'></a><a href='#L1259'>1259</a>
|
|
1325
|
-
<a name='L1260'></a><a href='#L1260'>1260</a>
|
|
1326
|
-
<a name='L1261'></a><a href='#L1261'>1261</a>
|
|
1327
|
-
<a name='L1262'></a><a href='#L1262'>1262</a>
|
|
1328
|
-
<a name='L1263'></a><a href='#L1263'>1263</a>
|
|
1329
|
-
<a name='L1264'></a><a href='#L1264'>1264</a>
|
|
1330
|
-
<a name='L1265'></a><a href='#L1265'>1265</a>
|
|
1331
|
-
<a name='L1266'></a><a href='#L1266'>1266</a>
|
|
1332
|
-
<a name='L1267'></a><a href='#L1267'>1267</a>
|
|
1333
|
-
<a name='L1268'></a><a href='#L1268'>1268</a>
|
|
1334
|
-
<a name='L1269'></a><a href='#L1269'>1269</a>
|
|
1335
|
-
<a name='L1270'></a><a href='#L1270'>1270</a>
|
|
1336
|
-
<a name='L1271'></a><a href='#L1271'>1271</a>
|
|
1337
|
-
<a name='L1272'></a><a href='#L1272'>1272</a>
|
|
1338
|
-
<a name='L1273'></a><a href='#L1273'>1273</a>
|
|
1339
|
-
<a name='L1274'></a><a href='#L1274'>1274</a>
|
|
1340
|
-
<a name='L1275'></a><a href='#L1275'>1275</a>
|
|
1341
|
-
<a name='L1276'></a><a href='#L1276'>1276</a>
|
|
1342
|
-
<a name='L1277'></a><a href='#L1277'>1277</a>
|
|
1343
|
-
<a name='L1278'></a><a href='#L1278'>1278</a>
|
|
1344
|
-
<a name='L1279'></a><a href='#L1279'>1279</a>
|
|
1345
|
-
<a name='L1280'></a><a href='#L1280'>1280</a>
|
|
1346
|
-
<a name='L1281'></a><a href='#L1281'>1281</a>
|
|
1347
|
-
<a name='L1282'></a><a href='#L1282'>1282</a>
|
|
1348
|
-
<a name='L1283'></a><a href='#L1283'>1283</a>
|
|
1349
|
-
<a name='L1284'></a><a href='#L1284'>1284</a>
|
|
1350
|
-
<a name='L1285'></a><a href='#L1285'>1285</a>
|
|
1351
|
-
<a name='L1286'></a><a href='#L1286'>1286</a>
|
|
1352
|
-
<a name='L1287'></a><a href='#L1287'>1287</a>
|
|
1353
|
-
<a name='L1288'></a><a href='#L1288'>1288</a>
|
|
1354
|
-
<a name='L1289'></a><a href='#L1289'>1289</a>
|
|
1355
|
-
<a name='L1290'></a><a href='#L1290'>1290</a>
|
|
1356
|
-
<a name='L1291'></a><a href='#L1291'>1291</a>
|
|
1357
|
-
<a name='L1292'></a><a href='#L1292'>1292</a>
|
|
1358
|
-
<a name='L1293'></a><a href='#L1293'>1293</a>
|
|
1359
|
-
<a name='L1294'></a><a href='#L1294'>1294</a>
|
|
1360
|
-
<a name='L1295'></a><a href='#L1295'>1295</a>
|
|
1361
|
-
<a name='L1296'></a><a href='#L1296'>1296</a>
|
|
1362
|
-
<a name='L1297'></a><a href='#L1297'>1297</a>
|
|
1363
|
-
<a name='L1298'></a><a href='#L1298'>1298</a>
|
|
1364
|
-
<a name='L1299'></a><a href='#L1299'>1299</a>
|
|
1365
|
-
<a name='L1300'></a><a href='#L1300'>1300</a>
|
|
1366
|
-
<a name='L1301'></a><a href='#L1301'>1301</a>
|
|
1367
|
-
<a name='L1302'></a><a href='#L1302'>1302</a>
|
|
1368
|
-
<a name='L1303'></a><a href='#L1303'>1303</a>
|
|
1369
|
-
<a name='L1304'></a><a href='#L1304'>1304</a>
|
|
1370
|
-
<a name='L1305'></a><a href='#L1305'>1305</a>
|
|
1371
|
-
<a name='L1306'></a><a href='#L1306'>1306</a>
|
|
1372
|
-
<a name='L1307'></a><a href='#L1307'>1307</a>
|
|
1373
|
-
<a name='L1308'></a><a href='#L1308'>1308</a>
|
|
1374
|
-
<a name='L1309'></a><a href='#L1309'>1309</a>
|
|
1375
|
-
<a name='L1310'></a><a href='#L1310'>1310</a>
|
|
1376
|
-
<a name='L1311'></a><a href='#L1311'>1311</a>
|
|
1377
|
-
<a name='L1312'></a><a href='#L1312'>1312</a>
|
|
1378
|
-
<a name='L1313'></a><a href='#L1313'>1313</a>
|
|
1379
|
-
<a name='L1314'></a><a href='#L1314'>1314</a>
|
|
1380
|
-
<a name='L1315'></a><a href='#L1315'>1315</a>
|
|
1381
|
-
<a name='L1316'></a><a href='#L1316'>1316</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">1346x</span>
|
|
1382
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1383
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1384
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1385
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1386
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1387
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1388
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1389
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1390
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1391
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1392
|
-
<span class="cline-any cline-yes">1x</span>
|
|
1316
|
+
<a name='L1251'></a><a href='#L1251'>1251</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">1x</span>
|
|
1393
1317
|
<span class="cline-any cline-neutral"> </span>
|
|
1394
1318
|
<span class="cline-any cline-neutral"> </span>
|
|
1395
1319
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -1404,11 +1328,12 @@
|
|
|
1404
1328
|
<span class="cline-any cline-yes">1x</span>
|
|
1405
1329
|
<span class="cline-any cline-neutral"> </span>
|
|
1406
1330
|
<span class="cline-any cline-yes">1x</span>
|
|
1407
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1408
1331
|
<span class="cline-any cline-yes">1x</span>
|
|
1409
1332
|
<span class="cline-any cline-neutral"> </span>
|
|
1410
1333
|
<span class="cline-any cline-neutral"> </span>
|
|
1334
|
+
<span class="cline-any cline-yes">1x</span>
|
|
1411
1335
|
<span class="cline-any cline-neutral"> </span>
|
|
1336
|
+
<span class="cline-any cline-yes">1x</span>
|
|
1412
1337
|
<span class="cline-any cline-neutral"> </span>
|
|
1413
1338
|
<span class="cline-any cline-neutral"> </span>
|
|
1414
1339
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -1425,6 +1350,7 @@
|
|
|
1425
1350
|
<span class="cline-any cline-neutral"> </span>
|
|
1426
1351
|
<span class="cline-any cline-yes">1x</span>
|
|
1427
1352
|
<span class="cline-any cline-neutral"> </span>
|
|
1353
|
+
<span class="cline-any cline-yes">1x</span>
|
|
1428
1354
|
<span class="cline-any cline-neutral"> </span>
|
|
1429
1355
|
<span class="cline-any cline-neutral"> </span>
|
|
1430
1356
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -1435,10 +1361,6 @@
|
|
|
1435
1361
|
<span class="cline-any cline-neutral"> </span>
|
|
1436
1362
|
<span class="cline-any cline-neutral"> </span>
|
|
1437
1363
|
<span class="cline-any cline-neutral"> </span>
|
|
1438
|
-
<span class="cline-any cline-yes">1x</span>
|
|
1439
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1440
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1441
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1442
1364
|
<span class="cline-any cline-neutral"> </span>
|
|
1443
1365
|
<span class="cline-any cline-neutral"> </span>
|
|
1444
1366
|
<span class="cline-any cline-yes">1x</span>
|
|
@@ -1447,11 +1369,6 @@
|
|
|
1447
1369
|
<span class="cline-any cline-neutral"> </span>
|
|
1448
1370
|
<span class="cline-any cline-neutral"> </span>
|
|
1449
1371
|
<span class="cline-any cline-neutral"> </span>
|
|
1450
|
-
<span class="cline-any cline-yes">1x</span>
|
|
1451
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1452
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1453
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1454
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1455
1372
|
<span class="cline-any cline-neutral"> </span>
|
|
1456
1373
|
<span class="cline-any cline-yes">1x</span>
|
|
1457
1374
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -1460,7 +1377,6 @@
|
|
|
1460
1377
|
<span class="cline-any cline-neutral"> </span>
|
|
1461
1378
|
<span class="cline-any cline-neutral"> </span>
|
|
1462
1379
|
<span class="cline-any cline-neutral"> </span>
|
|
1463
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1464
1380
|
<span class="cline-any cline-yes">1x</span>
|
|
1465
1381
|
<span class="cline-any cline-neutral"> </span>
|
|
1466
1382
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -1468,7 +1384,6 @@
|
|
|
1468
1384
|
<span class="cline-any cline-neutral"> </span>
|
|
1469
1385
|
<span class="cline-any cline-neutral"> </span>
|
|
1470
1386
|
<span class="cline-any cline-neutral"> </span>
|
|
1471
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1472
1387
|
<span class="cline-any cline-yes">1x</span>
|
|
1473
1388
|
<span class="cline-any cline-neutral"> </span>
|
|
1474
1389
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -1476,7 +1391,6 @@
|
|
|
1476
1391
|
<span class="cline-any cline-neutral"> </span>
|
|
1477
1392
|
<span class="cline-any cline-neutral"> </span>
|
|
1478
1393
|
<span class="cline-any cline-neutral"> </span>
|
|
1479
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1480
1394
|
<span class="cline-any cline-yes">1x</span>
|
|
1481
1395
|
<span class="cline-any cline-neutral"> </span>
|
|
1482
1396
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -1484,18 +1398,14 @@
|
|
|
1484
1398
|
<span class="cline-any cline-neutral"> </span>
|
|
1485
1399
|
<span class="cline-any cline-neutral"> </span>
|
|
1486
1400
|
<span class="cline-any cline-neutral"> </span>
|
|
1487
|
-
<span class="cline-any cline-
|
|
1488
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1489
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1490
|
-
<span class="cline-any cline-yes">188x</span>
|
|
1491
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1401
|
+
<span class="cline-any cline-yes">1x</span>
|
|
1492
1402
|
<span class="cline-any cline-neutral"> </span>
|
|
1493
1403
|
<span class="cline-any cline-neutral"> </span>
|
|
1494
1404
|
<span class="cline-any cline-neutral"> </span>
|
|
1495
1405
|
<span class="cline-any cline-neutral"> </span>
|
|
1496
1406
|
<span class="cline-any cline-neutral"> </span>
|
|
1407
|
+
<span class="cline-any cline-yes">169x</span>
|
|
1497
1408
|
<span class="cline-any cline-neutral"> </span>
|
|
1498
|
-
<span class="cline-any cline-yes">1x</span>
|
|
1499
1409
|
<span class="cline-any cline-neutral"> </span>
|
|
1500
1410
|
<span class="cline-any cline-neutral"> </span>
|
|
1501
1411
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -1507,23 +1417,21 @@
|
|
|
1507
1417
|
<span class="cline-any cline-neutral"> </span>
|
|
1508
1418
|
<span class="cline-any cline-neutral"> </span>
|
|
1509
1419
|
<span class="cline-any cline-neutral"> </span>
|
|
1510
|
-
<span class="cline-any cline-yes">1x</span>
|
|
1511
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1512
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1513
1420
|
<span class="cline-any cline-neutral"> </span>
|
|
1421
|
+
<span class="cline-any cline-yes">1x</span>
|
|
1514
1422
|
<span class="cline-any cline-neutral"> </span>
|
|
1515
1423
|
<span class="cline-any cline-neutral"> </span>
|
|
1516
1424
|
<span class="cline-any cline-neutral"> </span>
|
|
1517
1425
|
<span class="cline-any cline-neutral"> </span>
|
|
1518
1426
|
<span class="cline-any cline-neutral"> </span>
|
|
1519
1427
|
<span class="cline-any cline-neutral"> </span>
|
|
1520
|
-
<span class="cline-any cline-yes">
|
|
1428
|
+
<span class="cline-any cline-yes">1x</span>
|
|
1521
1429
|
<span class="cline-any cline-neutral"> </span>
|
|
1522
1430
|
<span class="cline-any cline-neutral"> </span>
|
|
1523
1431
|
<span class="cline-any cline-neutral"> </span>
|
|
1524
1432
|
<span class="cline-any cline-neutral"> </span>
|
|
1525
1433
|
<span class="cline-any cline-neutral"> </span>
|
|
1526
|
-
<span class="cline-any cline-yes">
|
|
1434
|
+
<span class="cline-any cline-yes">169x</span>
|
|
1527
1435
|
<span class="cline-any cline-neutral"> </span>
|
|
1528
1436
|
<span class="cline-any cline-neutral"> </span>
|
|
1529
1437
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -1547,7 +1455,7 @@
|
|
|
1547
1455
|
<span class="cline-any cline-neutral"> </span>
|
|
1548
1456
|
<span class="cline-any cline-neutral"> </span>
|
|
1549
1457
|
<span class="cline-any cline-neutral"> </span>
|
|
1550
|
-
<span class="cline-any cline-
|
|
1458
|
+
<span class="cline-any cline-no"> </span>
|
|
1551
1459
|
<span class="cline-any cline-neutral"> </span>
|
|
1552
1460
|
<span class="cline-any cline-neutral"> </span>
|
|
1553
1461
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -1572,13 +1480,13 @@
|
|
|
1572
1480
|
<span class="cline-any cline-neutral"> </span>
|
|
1573
1481
|
<span class="cline-any cline-neutral"> </span>
|
|
1574
1482
|
<span class="cline-any cline-neutral"> </span>
|
|
1575
|
-
<span class="cline-any cline-yes">
|
|
1576
|
-
<span class="cline-any cline-yes">
|
|
1577
|
-
<span class="cline-any cline-yes">
|
|
1483
|
+
<span class="cline-any cline-yes">169x</span>
|
|
1484
|
+
<span class="cline-any cline-yes">169x</span>
|
|
1485
|
+
<span class="cline-any cline-yes">169x</span>
|
|
1578
1486
|
<span class="cline-any cline-neutral"> </span>
|
|
1579
1487
|
<span class="cline-any cline-neutral"> </span>
|
|
1580
1488
|
<span class="cline-any cline-neutral"> </span>
|
|
1581
|
-
<span class="cline-any cline-yes">
|
|
1489
|
+
<span class="cline-any cline-yes">169x</span>
|
|
1582
1490
|
<span class="cline-any cline-neutral"> </span>
|
|
1583
1491
|
<span class="cline-any cline-neutral"> </span>
|
|
1584
1492
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -1708,7 +1616,6 @@
|
|
|
1708
1616
|
<span class="cline-any cline-neutral"> </span>
|
|
1709
1617
|
<span class="cline-any cline-no"> </span>
|
|
1710
1618
|
<span class="cline-any cline-no"> </span>
|
|
1711
|
-
<span class="cline-any cline-no"> </span>
|
|
1712
1619
|
<span class="cline-any cline-neutral"> </span>
|
|
1713
1620
|
<span class="cline-any cline-no"> </span>
|
|
1714
1621
|
<span class="cline-any cline-no"> </span>
|
|
@@ -1847,7 +1754,6 @@
|
|
|
1847
1754
|
<span class="cline-any cline-neutral"> </span>
|
|
1848
1755
|
<span class="cline-any cline-no"> </span>
|
|
1849
1756
|
<span class="cline-any cline-no"> </span>
|
|
1850
|
-
<span class="cline-any cline-no"> </span>
|
|
1851
1757
|
<span class="cline-any cline-neutral"> </span>
|
|
1852
1758
|
<span class="cline-any cline-no"> </span>
|
|
1853
1759
|
<span class="cline-any cline-no"> </span>
|
|
@@ -2078,23 +1984,15 @@
|
|
|
2078
1984
|
<span class="cline-any cline-neutral"> </span>
|
|
2079
1985
|
<span class="cline-any cline-no"> </span>
|
|
2080
1986
|
<span class="cline-any cline-no"> </span>
|
|
2081
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2082
|
-
<span class="cline-any cline-no"> </span>
|
|
2083
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2084
|
-
<span class="cline-any cline-no"> </span>
|
|
2085
|
-
<span class="cline-any cline-no"> </span>
|
|
2086
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2087
1987
|
<span class="cline-any cline-no"> </span>
|
|
2088
1988
|
<span class="cline-any cline-no"> </span>
|
|
2089
1989
|
<span class="cline-any cline-no"> </span>
|
|
2090
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2091
1990
|
<span class="cline-any cline-no"> </span>
|
|
2092
1991
|
<span class="cline-any cline-no"> </span>
|
|
2093
1992
|
<span class="cline-any cline-no"> </span>
|
|
2094
1993
|
<span class="cline-any cline-no"> </span>
|
|
2095
1994
|
<span class="cline-any cline-neutral"> </span>
|
|
2096
1995
|
<span class="cline-any cline-neutral"> </span>
|
|
2097
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2098
1996
|
<span class="cline-any cline-no"> </span>
|
|
2099
1997
|
<span class="cline-any cline-neutral"> </span>
|
|
2100
1998
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -2397,10 +2295,6 @@
|
|
|
2397
2295
|
<span class="cline-any cline-no"> </span>
|
|
2398
2296
|
<span class="cline-any cline-no"> </span>
|
|
2399
2297
|
<span class="cline-any cline-neutral"> </span>
|
|
2400
|
-
<span class="cline-any cline-yes">64x</span>
|
|
2401
|
-
<span class="cline-any cline-no"> </span>
|
|
2402
|
-
<span class="cline-any cline-no"> </span>
|
|
2403
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2404
2298
|
<span class="cline-any cline-no"> </span>
|
|
2405
2299
|
<span class="cline-any cline-neutral"> </span>
|
|
2406
2300
|
<span class="cline-any cline-no"> </span>
|
|
@@ -2410,7 +2304,6 @@
|
|
|
2410
2304
|
<span class="cline-any cline-neutral"> </span>
|
|
2411
2305
|
<span class="cline-any cline-neutral"> </span>
|
|
2412
2306
|
<span class="cline-any cline-neutral"> </span>
|
|
2413
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2414
2307
|
<span class="cline-any cline-yes">64x</span>
|
|
2415
2308
|
<span class="cline-any cline-neutral"> </span>
|
|
2416
2309
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -2426,16 +2319,8 @@
|
|
|
2426
2319
|
<span class="cline-any cline-neutral"> </span>
|
|
2427
2320
|
<span class="cline-any cline-yes">80x</span>
|
|
2428
2321
|
<span class="cline-any cline-yes">3x</span>
|
|
2429
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2430
|
-
<span class="cline-any cline-yes">3x</span>
|
|
2431
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2432
|
-
<span class="cline-any cline-no"> </span>
|
|
2433
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2434
|
-
<span class="cline-any cline-no"> </span>
|
|
2435
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2436
2322
|
<span class="cline-any cline-yes">3x</span>
|
|
2437
2323
|
<span class="cline-any cline-neutral"> </span>
|
|
2438
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2439
2324
|
<span class="cline-any cline-yes">80x</span>
|
|
2440
2325
|
<span class="cline-any cline-yes">64x</span>
|
|
2441
2326
|
<span class="cline-any cline-yes">64x</span>
|
|
@@ -2463,13 +2348,14 @@
|
|
|
2463
2348
|
<span class="cline-any cline-neutral"> </span>
|
|
2464
2349
|
<span class="cline-any cline-yes">1x</span>
|
|
2465
2350
|
<span class="cline-any cline-yes">79x</span>
|
|
2466
|
-
<span class="cline-any cline-
|
|
2351
|
+
<span class="cline-any cline-neutral"> </span>
|
|
2467
2352
|
<span class="cline-any cline-yes">79x</span>
|
|
2468
2353
|
<span class="cline-any cline-yes">79x</span>
|
|
2469
2354
|
<span class="cline-any cline-yes">1x</span>
|
|
2470
2355
|
<span class="cline-any cline-neutral"> </span>
|
|
2471
2356
|
<span class="cline-any cline-yes">78x</span>
|
|
2472
2357
|
<span class="cline-any cline-neutral"> </span>
|
|
2358
|
+
<span class="cline-any cline-neutral"> </span>
|
|
2473
2359
|
<span class="cline-any cline-yes">79x</span>
|
|
2474
2360
|
<span class="cline-any cline-no"> </span>
|
|
2475
2361
|
<span class="cline-any cline-no"> </span>
|
|
@@ -2512,18 +2398,12 @@
|
|
|
2512
2398
|
<span class="cline-any cline-no"> </span>
|
|
2513
2399
|
<span class="cline-any cline-neutral"> </span>
|
|
2514
2400
|
<span class="cline-any cline-neutral"> </span>
|
|
2401
|
+
<span class="cline-any cline-neutral"> </span>
|
|
2515
2402
|
<span class="cline-any cline-yes">79x</span>
|
|
2516
2403
|
<span class="cline-any cline-yes">79x</span>
|
|
2517
2404
|
<span class="cline-any cline-neutral"> </span>
|
|
2518
2405
|
<span class="cline-any cline-neutral"> </span>
|
|
2519
2406
|
<span class="cline-any cline-neutral"> </span>
|
|
2520
|
-
<span class="cline-any cline-yes">1x</span>
|
|
2521
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2522
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2523
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2524
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2525
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2526
|
-
<span class="cline-any cline-no"> </span>
|
|
2527
2407
|
<span class="cline-any cline-no"> </span>
|
|
2528
2408
|
<span class="cline-any cline-no"> </span>
|
|
2529
2409
|
<span class="cline-any cline-no"> </span>
|
|
@@ -2532,6 +2412,8 @@
|
|
|
2532
2412
|
<span class="cline-any cline-no"> </span>
|
|
2533
2413
|
<span class="cline-any cline-no"> </span>
|
|
2534
2414
|
<span class="cline-any cline-neutral"> </span>
|
|
2415
|
+
<span class="cline-any cline-neutral"> </span>
|
|
2416
|
+
<span class="cline-any cline-neutral"> </span>
|
|
2535
2417
|
<span class="cline-any cline-no"> </span>
|
|
2536
2418
|
<span class="cline-any cline-neutral"> </span>
|
|
2537
2419
|
<span class="cline-any cline-no"> </span>
|
|
@@ -2560,8 +2442,6 @@
|
|
|
2560
2442
|
<span class="cline-any cline-no"> </span>
|
|
2561
2443
|
<span class="cline-any cline-neutral"> </span>
|
|
2562
2444
|
<span class="cline-any cline-neutral"> </span>
|
|
2563
|
-
<span class="cline-any cline-yes">1x</span>
|
|
2564
|
-
<span class="cline-any cline-no"> </span>
|
|
2565
2445
|
<span class="cline-any cline-no"> </span>
|
|
2566
2446
|
<span class="cline-any cline-no"> </span>
|
|
2567
2447
|
<span class="cline-any cline-no"> </span>
|
|
@@ -2591,16 +2471,6 @@
|
|
|
2591
2471
|
<span class="cline-any cline-neutral"> </span>
|
|
2592
2472
|
<span class="cline-any cline-no"> </span>
|
|
2593
2473
|
<span class="cline-any cline-no"> </span>
|
|
2594
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2595
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2596
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2597
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2598
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2599
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2600
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2601
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2602
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2603
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2604
2474
|
<span class="cline-any cline-no"> </span>
|
|
2605
2475
|
<span class="cline-any cline-neutral"> </span>
|
|
2606
2476
|
<span class="cline-any cline-no"> </span>
|
|
@@ -2675,7 +2545,6 @@
|
|
|
2675
2545
|
<span class="cline-any cline-neutral"> </span>
|
|
2676
2546
|
<span class="cline-any cline-neutral"> </span>
|
|
2677
2547
|
<span class="cline-any cline-neutral"> </span>
|
|
2678
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2679
2548
|
<span class="cline-any cline-yes">1x</span>
|
|
2680
2549
|
<span class="cline-any cline-neutral"> </span>
|
|
2681
2550
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -2683,72 +2552,59 @@
|
|
|
2683
2552
|
<span class="cline-any cline-neutral"> </span>
|
|
2684
2553
|
<span class="cline-any cline-neutral"> </span>
|
|
2685
2554
|
<span class="cline-any cline-yes">1x</span>
|
|
2686
|
-
<span class="cline-any cline-yes">
|
|
2687
|
-
<span class="cline-any cline-yes">
|
|
2688
|
-
<span class="cline-any cline-yes">
|
|
2689
|
-
<span class="cline-any cline-yes">
|
|
2555
|
+
<span class="cline-any cline-yes">6x</span>
|
|
2556
|
+
<span class="cline-any cline-yes">6x</span>
|
|
2557
|
+
<span class="cline-any cline-yes">6x</span>
|
|
2558
|
+
<span class="cline-any cline-yes">6x</span>
|
|
2690
2559
|
<span class="cline-any cline-neutral"> </span>
|
|
2691
|
-
<span class="cline-any cline-
|
|
2560
|
+
<span class="cline-any cline-no"> </span>
|
|
2692
2561
|
<span class="cline-any cline-neutral"> </span>
|
|
2693
2562
|
<span class="cline-any cline-neutral"> </span>
|
|
2694
|
-
<span class="cline-any cline-yes">
|
|
2695
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2696
|
-
<span class="cline-any cline-neutral"> </span
|
|
2697
|
-
import {
|
|
2698
|
-
TranslatorState,
|
|
2699
|
-
indent,
|
|
2700
|
-
shiftState,
|
|
2701
|
-
withSourceMap,
|
|
2702
|
-
createCompilerState,
|
|
2703
|
-
transfromUnionTypeAnnotation,
|
|
2704
|
-
withSourceMapGenerator,
|
|
2705
|
-
withGenerator,
|
|
2706
|
-
TranslatorGenerator,
|
|
2707
|
-
} from '../translator';
|
|
2563
|
+
<span class="cline-any cline-yes">6x</span>
|
|
2564
|
+
<span class="cline-any cline-neutral"> </span>
|
|
2565
|
+
<span class="cline-any cline-neutral"> </span>
|
|
2566
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import { TranslatorState, indent, shiftState, withSourceMap, createCompilerState } from '../translator';
|
|
2708
2567
|
import { ElementToVueOptions } from './ViewElement__';
|
|
2709
|
-
import
|
|
2710
|
-
import
|
|
2568
|
+
import Namespace from './Namespace__';
|
|
2569
|
+
import MemberExpression from './MemberExpression__';
|
|
2711
2570
|
|
|
2712
2571
|
//================================================================================
|
|
2713
2572
|
// 从这里开始到结尾注释之间的代码由 NASL Workbench 自动生成,请不手动修改!
|
|
2714
2573
|
// ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓
|
|
2715
2574
|
//================================================================================
|
|
2716
2575
|
import { EventPayload, Params } from '../common/EventEmitter';
|
|
2717
|
-
import { concept, excludedInJSON, property,
|
|
2576
|
+
import { concept, excludedInJSON, property, className } from '../decorators';
|
|
2718
2577
|
|
|
2719
2578
|
import * as utils from '../utils';
|
|
2720
|
-
import * as types from './utils/types';
|
|
2721
|
-
import * as asserts from './utils/asserts';
|
|
2722
2579
|
import { v4 as uuidv4 } from 'uuid';
|
|
2723
2580
|
import BaseNode from '../common/BaseNode';
|
|
2724
|
-
import
|
|
2725
|
-
import
|
|
2726
|
-
import
|
|
2727
|
-
import
|
|
2728
|
-
import
|
|
2729
|
-
import
|
|
2730
|
-
import
|
|
2731
|
-
import
|
|
2732
|
-
import
|
|
2733
|
-
import
|
|
2734
|
-
import
|
|
2735
|
-
import
|
|
2581
|
+
import LogicItem from './LogicItem__';
|
|
2582
|
+
import Destination from './Destination__';
|
|
2583
|
+
import ExternalDestination from './ExternalDestination__';
|
|
2584
|
+
import ValidationRule from './ValidationRule__';
|
|
2585
|
+
import Assignee from './Assignee__';
|
|
2586
|
+
import ViewElement from './ViewElement__';
|
|
2587
|
+
import ProcessElement from './ProcessElement__';
|
|
2588
|
+
import View from './View__';
|
|
2589
|
+
import Module from './Module__';
|
|
2590
|
+
import App from './App__';
|
|
2591
|
+
import Frontend from './Frontend__';
|
|
2592
|
+
import Process from './Process__';
|
|
2593
|
+
import Identifier from './Identifier__';
|
|
2736
2594
|
|
|
2737
2595
|
/**
|
|
2738
2596
|
* 元素绑定属性
|
|
2739
2597
|
*/
|
|
2598
|
+
@className
|
|
2740
2599
|
@concept('元素绑定属性')
|
|
2600
|
+
// @ts-ignore
|
|
2741
2601
|
export class BindAttribute extends BaseNode {
|
|
2742
2602
|
/** 类名 */
|
|
2743
|
-
static readonly ConceptName
|
|
2744
|
-
|
|
2745
|
-
/** 继承链 */
|
|
2746
|
-
static readonly inheritanceChain: string[] = ['BaseNode'];
|
|
2603
|
+
static readonly ConceptName = 'BindAttribute';
|
|
2747
2604
|
|
|
2748
2605
|
/**
|
|
2749
2606
|
* 产品概念
|
|
2750
2607
|
*/
|
|
2751
|
-
@property('concept')
|
|
2752
2608
|
// @ts-ignore
|
|
2753
2609
|
readonly concept!: 'BindAttribute';
|
|
2754
2610
|
|
|
@@ -2756,89 +2612,76 @@ export class BindAttribute extends BaseNode {
|
|
|
2756
2612
|
* 元素绑定属性名称
|
|
2757
2613
|
*/
|
|
2758
2614
|
@property()
|
|
2615
|
+
// @ts-ignore
|
|
2759
2616
|
name!: string;
|
|
2760
2617
|
|
|
2761
2618
|
/**
|
|
2762
2619
|
* type
|
|
2763
2620
|
*/
|
|
2764
2621
|
@property()
|
|
2622
|
+
// @ts-ignore
|
|
2765
2623
|
type!: 'string' | 'static' | 'dynamic';
|
|
2766
2624
|
|
|
2767
2625
|
/**
|
|
2768
2626
|
* 属性值
|
|
2769
2627
|
*/
|
|
2770
2628
|
@property()
|
|
2629
|
+
// @ts-ignore
|
|
2771
2630
|
value!: string;
|
|
2772
2631
|
|
|
2773
2632
|
/**
|
|
2774
2633
|
* 属性表达式
|
|
2775
2634
|
*/
|
|
2776
|
-
@property(
|
|
2777
|
-
|
|
2778
|
-
})
|
|
2635
|
+
@property('LogicItem')
|
|
2636
|
+
// @ts-ignore
|
|
2779
2637
|
expression!: LogicItem;
|
|
2780
2638
|
|
|
2781
2639
|
/**
|
|
2782
2640
|
* 跳转页面
|
|
2783
2641
|
*/
|
|
2784
|
-
@property(
|
|
2785
|
-
|
|
2786
|
-
})
|
|
2642
|
+
@property('Destination')
|
|
2643
|
+
// @ts-ignore
|
|
2787
2644
|
destination!: Destination;
|
|
2788
2645
|
|
|
2789
2646
|
/**
|
|
2790
2647
|
* 跳转页面
|
|
2791
2648
|
*/
|
|
2792
|
-
@property(
|
|
2793
|
-
|
|
2794
|
-
})
|
|
2649
|
+
@property('ExternalDestination')
|
|
2650
|
+
// @ts-ignore
|
|
2795
2651
|
externalDestination!: ExternalDestination;
|
|
2796
2652
|
|
|
2797
2653
|
/**
|
|
2798
2654
|
* 验证规则
|
|
2799
2655
|
*/
|
|
2800
|
-
@property(
|
|
2801
|
-
objectRef: 'ValidationRule',
|
|
2802
|
-
isArray: true,
|
|
2803
|
-
defaultValue: [],
|
|
2804
|
-
})
|
|
2656
|
+
@property('ValidationRule')
|
|
2805
2657
|
rules: Array<ValidationRule> = [];
|
|
2806
2658
|
|
|
2807
2659
|
/**
|
|
2808
2660
|
* 经办人
|
|
2809
2661
|
*/
|
|
2810
|
-
@property(
|
|
2811
|
-
|
|
2812
|
-
})
|
|
2662
|
+
@property('Assignee')
|
|
2663
|
+
// @ts-ignore
|
|
2813
2664
|
assignee!: Assignee;
|
|
2814
2665
|
|
|
2815
2666
|
/**
|
|
2816
2667
|
* 是否使用 v-model
|
|
2817
2668
|
*/
|
|
2818
2669
|
@property()
|
|
2670
|
+
// @ts-ignore
|
|
2819
2671
|
model!: boolean;
|
|
2820
2672
|
|
|
2821
2673
|
/**
|
|
2822
2674
|
* 是否开启双向绑定
|
|
2823
2675
|
*/
|
|
2824
2676
|
@property()
|
|
2677
|
+
// @ts-ignore
|
|
2825
2678
|
sync!: boolean;
|
|
2826
2679
|
|
|
2827
2680
|
/**
|
|
2828
2681
|
* 草稿态
|
|
2829
2682
|
*/
|
|
2830
|
-
@property(
|
|
2831
|
-
objectRef: 'LogicItem',
|
|
2832
|
-
isArray: true,
|
|
2833
|
-
defaultValue: [],
|
|
2834
|
-
})
|
|
2683
|
+
@property('LogicItem')
|
|
2835
2684
|
playground: Array<LogicItem> = [];
|
|
2836
|
-
|
|
2837
|
-
/**
|
|
2838
|
-
* i18nKey
|
|
2839
|
-
*/
|
|
2840
|
-
@property()
|
|
2841
|
-
i18nKey!: string;
|
|
2842
2685
|
|
|
2843
2686
|
/**
|
|
2844
2687
|
* 祖先 ViewElement
|
|
@@ -2861,8 +2704,8 @@ export class BindAttribute extends BaseNode {
|
|
|
2861
2704
|
/**
|
|
2862
2705
|
* 祖先 App
|
|
2863
2706
|
*/
|
|
2864
|
-
get
|
|
2865
|
-
return this.getAncestor('App') as App
|
|
2707
|
+
<span class="fstat-no" title="function not covered" > get a</span>pp() {
|
|
2708
|
+
<span class="cstat-no" title="statement not covered" > return this.getAncestor('App') as App;</span>
|
|
2866
2709
|
}
|
|
2867
2710
|
/**
|
|
2868
2711
|
* 祖先 Frontend
|
|
@@ -2900,7 +2743,7 @@ export class BindAttribute extends BaseNode {
|
|
|
2900
2743
|
* 从父级删除该节点
|
|
2901
2744
|
* @internal
|
|
2902
2745
|
*/
|
|
2903
|
-
<span class="fstat-no" title="function not covered" > _delete() {
|
|
2746
|
+
<span class="fstat-no" title="function not covered" > _delete(</span>) {
|
|
2904
2747
|
let params: Params = <span class="cstat-no" title="statement not covered" >null;</span>
|
|
2905
2748
|
<span class="cstat-no" title="statement not covered" > if (this.parentNode) {</span>
|
|
2906
2749
|
<span class="cstat-no" title="statement not covered" > params = (this.parentNode as any)?.__removeBindAttribute?.(this);</span>
|
|
@@ -2910,7 +2753,7 @@ export class BindAttribute extends BaseNode {
|
|
|
2910
2753
|
/**
|
|
2911
2754
|
* 设置属性值
|
|
2912
2755
|
*/
|
|
2913
|
-
<span class="fstat-no" title="function not covered" > setValue(
|
|
2756
|
+
<span class="fstat-no" title="function not covered" > setValue(</span>value: string) {
|
|
2914
2757
|
const object = <span class="cstat-no" title="statement not covered" >{</span>
|
|
2915
2758
|
value,
|
|
2916
2759
|
};
|
|
@@ -2922,7 +2765,7 @@ export class BindAttribute extends BaseNode {
|
|
|
2922
2765
|
/**
|
|
2923
2766
|
* 设置属性表达式
|
|
2924
2767
|
*/
|
|
2925
|
-
<span class="fstat-no" title="function not covered" > setExpression(
|
|
2768
|
+
<span class="fstat-no" title="function not covered" > setExpression(</span>expression: LogicItem) {
|
|
2926
2769
|
<span class="cstat-no" title="statement not covered" > expression._delete();</span>
|
|
2927
2770
|
const relationOptions = <span class="cstat-no" title="statement not covered" >{ parentNode: this, parentKey: 'expression' };</span>
|
|
2928
2771
|
<span class="cstat-no" title="statement not covered" > Object.assign(expression, relationOptions);</span>
|
|
@@ -2937,7 +2780,7 @@ export class BindAttribute extends BaseNode {
|
|
|
2937
2780
|
/**
|
|
2938
2781
|
* 设置跳转页面
|
|
2939
2782
|
*/
|
|
2940
|
-
<span class="fstat-no" title="function not covered" > setDestination(
|
|
2783
|
+
<span class="fstat-no" title="function not covered" > setDestination(</span>destination: Destination) {
|
|
2941
2784
|
<span class="cstat-no" title="statement not covered" > destination._delete();</span>
|
|
2942
2785
|
const relationOptions = <span class="cstat-no" title="statement not covered" >{ parentNode: this, parentKey: 'destination' };</span>
|
|
2943
2786
|
<span class="cstat-no" title="statement not covered" > Object.assign(destination, relationOptions);</span>
|
|
@@ -2952,7 +2795,7 @@ export class BindAttribute extends BaseNode {
|
|
|
2952
2795
|
/**
|
|
2953
2796
|
* 设置跳转页面
|
|
2954
2797
|
*/
|
|
2955
|
-
<span class="fstat-no" title="function not covered" > setExternalDestination(
|
|
2798
|
+
<span class="fstat-no" title="function not covered" > setExternalDestination(</span>externalDestination: ExternalDestination) {
|
|
2956
2799
|
<span class="cstat-no" title="statement not covered" > externalDestination._delete();</span>
|
|
2957
2800
|
const relationOptions = <span class="cstat-no" title="statement not covered" >{ parentNode: this, parentKey: 'externalDestination' };</span>
|
|
2958
2801
|
<span class="cstat-no" title="statement not covered" > Object.assign(externalDestination, relationOptions);</span>
|
|
@@ -2967,7 +2810,7 @@ export class BindAttribute extends BaseNode {
|
|
|
2967
2810
|
/**
|
|
2968
2811
|
* 设置经办人
|
|
2969
2812
|
*/
|
|
2970
|
-
<span class="fstat-no" title="function not covered" > setAssignee(
|
|
2813
|
+
<span class="fstat-no" title="function not covered" > setAssignee(</span>assignee: Assignee) {
|
|
2971
2814
|
<span class="cstat-no" title="statement not covered" > assignee._delete();</span>
|
|
2972
2815
|
const relationOptions = <span class="cstat-no" title="statement not covered" >{ parentNode: this, parentKey: 'assignee' };</span>
|
|
2973
2816
|
<span class="cstat-no" title="statement not covered" > Object.assign(assignee, relationOptions);</span>
|
|
@@ -2982,7 +2825,7 @@ export class BindAttribute extends BaseNode {
|
|
|
2982
2825
|
/**
|
|
2983
2826
|
* 设置是否开启双向绑定
|
|
2984
2827
|
*/
|
|
2985
|
-
<span class="fstat-no" title="function not covered" > setSync(
|
|
2828
|
+
<span class="fstat-no" title="function not covered" > setSync(</span>sync: boolean) {
|
|
2986
2829
|
const object = <span class="cstat-no" title="statement not covered" >{</span>
|
|
2987
2830
|
sync,
|
|
2988
2831
|
};
|
|
@@ -2991,11 +2834,11 @@ export class BindAttribute extends BaseNode {
|
|
|
2991
2834
|
});
|
|
2992
2835
|
}
|
|
2993
2836
|
|
|
2994
|
-
<span class="fstat-no" title="function not covered" > getValidationRuleExistingNames(
|
|
2837
|
+
<span class="fstat-no" title="function not covered" > getValidationRuleExistingNames(</span>excludedList: Array<ValidationRule> = <span class="branch-0 cbranch-no" title="branch not covered" >[])</span> {
|
|
2995
2838
|
const excludedSet = <span class="cstat-no" title="statement not covered" >new Set(excludedList);</span>
|
|
2996
|
-
<span class="cstat-no" title="statement not covered" > return ((this.rules as ValidationRule[]) || []).filter(
|
|
2839
|
+
<span class="cstat-no" title="statement not covered" > return ((this.rules as ValidationRule[]) || []).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>
|
|
2997
2840
|
}
|
|
2998
|
-
<span class="fstat-no" title="function not covered" > getValidationRuleUniqueName(
|
|
2841
|
+
<span class="fstat-no" title="function not covered" > getValidationRuleUniqueName(</span>name = <span class="branch-0 cbranch-no" title="branch not covered" >'validationRule1')</span> {
|
|
2999
2842
|
<span class="cstat-no" title="statement not covered" > return utils.unique(name, this.getValidationRuleExistingNames(), undefined, false);</span>
|
|
3000
2843
|
}
|
|
3001
2844
|
|
|
@@ -3020,10 +2863,9 @@ export class BindAttribute extends BaseNode {
|
|
|
3020
2863
|
*/
|
|
3021
2864
|
_insertValidationRuleInRulesAt(validationRule: ValidationRule, index: number): ValidationRule;
|
|
3022
2865
|
|
|
3023
|
-
<span class="fstat-no" title="function not covered" > _insertValidationRuleInRulesAt(
|
|
2866
|
+
<span class="fstat-no" title="function not covered" > _insertValidationRuleInRulesAt(</span>options: string | Partial<ValidationRule> | ValidationRule, index: number) {
|
|
3024
2867
|
const validationRuleOptions: any = <span class="cstat-no" title="statement not covered" >{};</span>
|
|
3025
2868
|
const relationOptions = <span class="cstat-no" title="statement not covered" >{ parentNode: this, parentKey: 'rules' };</span>
|
|
3026
|
-
const <span class="cstat-no" title="statement not covered" >ValidationRule = getConceptConstructor('ValidationRule');</span>
|
|
3027
2869
|
let validationRule: ValidationRule;
|
|
3028
2870
|
<span class="cstat-no" title="statement not covered" > if (!options) {</span>
|
|
3029
2871
|
<span class="cstat-no" title="statement not covered" > validationRule = ValidationRule.from(</span>
|
|
@@ -3034,7 +2876,7 @@ export class BindAttribute extends BaseNode {
|
|
|
3034
2876
|
this,
|
|
3035
2877
|
'rules',
|
|
3036
2878
|
);
|
|
3037
|
-
<span class="cstat-no" title="statement not covered" >
|
|
2879
|
+
} else <span class="cstat-no" title="statement not covered" >if (typeof options === 'string') {</span>
|
|
3038
2880
|
<span class="cstat-no" title="statement not covered" > validationRule = ValidationRule.from(</span>
|
|
3039
2881
|
{
|
|
3040
2882
|
...validationRuleOptions,
|
|
@@ -3043,8 +2885,8 @@ export class BindAttribute extends BaseNode {
|
|
|
3043
2885
|
this,
|
|
3044
2886
|
'rules',
|
|
3045
2887
|
);
|
|
3046
|
-
<span class="cstat-no" title="statement not covered" >
|
|
3047
|
-
<span class="cstat-no" title="statement not covered" > options.ensureDelete();
|
|
2888
|
+
} else <span class="cstat-no" title="statement not covered" >if (options instanceof ValidationRule) {</span>
|
|
2889
|
+
<span class="cstat-no" title="statement not covered" > options.ensureDelete(); </span>// 同一实例不支持多处存在
|
|
3048
2890
|
<span class="cstat-no" title="statement not covered" > validationRule = options;</span>
|
|
3049
2891
|
<span class="cstat-no" title="statement not covered" > Object.assign(validationRule, relationOptions);</span>
|
|
3050
2892
|
} else {
|
|
@@ -3079,7 +2921,7 @@ export class BindAttribute extends BaseNode {
|
|
|
3079
2921
|
*/
|
|
3080
2922
|
insertValidationRuleInRulesAt(validationRule: ValidationRule, index: number): ValidationRule;
|
|
3081
2923
|
|
|
3082
|
-
<span class="fstat-no" title="function not covered" > insertValidationRuleInRulesAt(
|
|
2924
|
+
<span class="fstat-no" title="function not covered" > insertValidationRuleInRulesAt(</span>options: string | Partial<ValidationRule> | ValidationRule, index: number) {
|
|
3083
2925
|
const node = <span class="cstat-no" title="statement not covered" >this._insertValidationRuleInRulesAt(options as any, index);</span>
|
|
3084
2926
|
<span class="cstat-no" title="statement not covered" > node.create({</span>
|
|
3085
2927
|
index,
|
|
@@ -3110,7 +2952,7 @@ export class BindAttribute extends BaseNode {
|
|
|
3110
2952
|
*/
|
|
3111
2953
|
_addValidationRuleInRules(validationRule: ValidationRule): ValidationRule;
|
|
3112
2954
|
|
|
3113
|
-
<span class="fstat-no" title="function not covered" > _addValidationRuleInRules(
|
|
2955
|
+
<span class="fstat-no" title="function not covered" > _addValidationRuleInRules(</span>options?: string | Partial<ValidationRule> | ValidationRule) {
|
|
3114
2956
|
const index = <span class="cstat-no" title="statement not covered" >this.rules.length;</span>
|
|
3115
2957
|
<span class="cstat-no" title="statement not covered" > return this._insertValidationRuleInRulesAt(options as any, index);</span>
|
|
3116
2958
|
}
|
|
@@ -3134,7 +2976,7 @@ export class BindAttribute extends BaseNode {
|
|
|
3134
2976
|
*/
|
|
3135
2977
|
addValidationRuleInRules(validationRule: ValidationRule): ValidationRule;
|
|
3136
2978
|
|
|
3137
|
-
<span class="fstat-no" title="function not covered" > addValidationRuleInRules(
|
|
2979
|
+
<span class="fstat-no" title="function not covered" > addValidationRuleInRules(</span>options?: string | Partial<ValidationRule> | ValidationRule) {
|
|
3138
2980
|
const node = <span class="cstat-no" title="statement not covered" >this._addValidationRuleInRules(options as any);</span>
|
|
3139
2981
|
const index = <span class="cstat-no" title="statement not covered" >this.rules.indexOf(node);</span>
|
|
3140
2982
|
<span class="cstat-no" title="statement not covered" > node.create({</span>
|
|
@@ -3159,13 +3001,12 @@ export class BindAttribute extends BaseNode {
|
|
|
3159
3001
|
*/
|
|
3160
3002
|
_insertItemInPlaygroundAt(logicItem: LogicItem, index: number): LogicItem;
|
|
3161
3003
|
|
|
3162
|
-
<span class="fstat-no" title="function not covered" > _insertItemInPlaygroundAt(
|
|
3004
|
+
<span class="fstat-no" title="function not covered" > _insertItemInPlaygroundAt(</span>options: Partial<LogicItem> | LogicItem, index: number) {
|
|
3163
3005
|
const logicItemOptions: any = <span class="cstat-no" title="statement not covered" >{};</span>
|
|
3164
3006
|
const relationOptions = <span class="cstat-no" title="statement not covered" >{ parentNode: this, parentKey: 'playground' };</span>
|
|
3165
|
-
const <span class="cstat-no" title="statement not covered" >LogicItem = getConceptConstructor('LogicItem');</span>
|
|
3166
3007
|
let logicItem: LogicItem;
|
|
3167
|
-
<span class="cstat-no" title="statement not covered" > if (
|
|
3168
|
-
<span class="cstat-no" title="statement not covered" > options.ensureDelete();
|
|
3008
|
+
<span class="cstat-no" title="statement not covered" > if (options instanceof LogicItem) {</span>
|
|
3009
|
+
<span class="cstat-no" title="statement not covered" > options.ensureDelete(); </span>// 同一实例不支持多处存在
|
|
3169
3010
|
<span class="cstat-no" title="statement not covered" > logicItem = options;</span>
|
|
3170
3011
|
<span class="cstat-no" title="statement not covered" > Object.assign(logicItem, relationOptions);</span>
|
|
3171
3012
|
} else {
|
|
@@ -3194,7 +3035,7 @@ export class BindAttribute extends BaseNode {
|
|
|
3194
3035
|
*/
|
|
3195
3036
|
insertItemInPlaygroundAt(logicItem: LogicItem, index: number): LogicItem;
|
|
3196
3037
|
|
|
3197
|
-
<span class="fstat-no" title="function not covered" > insertItemInPlaygroundAt(
|
|
3038
|
+
<span class="fstat-no" title="function not covered" > insertItemInPlaygroundAt(</span>options: Partial<LogicItem> | LogicItem, index: number) {
|
|
3198
3039
|
const node = <span class="cstat-no" title="statement not covered" >this._insertItemInPlaygroundAt(options as any, index);</span>
|
|
3199
3040
|
<span class="cstat-no" title="statement not covered" > node.create({</span>
|
|
3200
3041
|
index,
|
|
@@ -3218,7 +3059,7 @@ export class BindAttribute extends BaseNode {
|
|
|
3218
3059
|
*/
|
|
3219
3060
|
_addItemInPlayground(logicItem: LogicItem): LogicItem;
|
|
3220
3061
|
|
|
3221
|
-
<span class="fstat-no" title="function not covered" > _addItemInPlayground(
|
|
3062
|
+
<span class="fstat-no" title="function not covered" > _addItemInPlayground(</span>options?: Partial<LogicItem> | LogicItem) {
|
|
3222
3063
|
const index = <span class="cstat-no" title="statement not covered" >this.playground.length;</span>
|
|
3223
3064
|
<span class="cstat-no" title="statement not covered" > return this._insertItemInPlaygroundAt(options as any, index);</span>
|
|
3224
3065
|
}
|
|
@@ -3235,7 +3076,7 @@ export class BindAttribute extends BaseNode {
|
|
|
3235
3076
|
*/
|
|
3236
3077
|
addItemInPlayground(logicItem: LogicItem): LogicItem;
|
|
3237
3078
|
|
|
3238
|
-
<span class="fstat-no" title="function not covered" > addItemInPlayground(
|
|
3079
|
+
<span class="fstat-no" title="function not covered" > addItemInPlayground(</span>options?: Partial<LogicItem> | LogicItem) {
|
|
3239
3080
|
const node = <span class="cstat-no" title="statement not covered" >this._addItemInPlayground(options as any);</span>
|
|
3240
3081
|
const index = <span class="cstat-no" title="statement not covered" >this.playground.indexOf(node);</span>
|
|
3241
3082
|
<span class="cstat-no" title="statement not covered" > node.create({</span>
|
|
@@ -3258,7 +3099,7 @@ export class BindAttribute extends BaseNode {
|
|
|
3258
3099
|
*/
|
|
3259
3100
|
removeExpression(expression: LogicItem): void;
|
|
3260
3101
|
|
|
3261
|
-
<span class="fstat-no" title="function not covered" > removeExpression(
|
|
3102
|
+
<span class="fstat-no" title="function not covered" > removeExpression(</span>options: string | LogicItem) {
|
|
3262
3103
|
let expression: LogicItem;
|
|
3263
3104
|
<span class="cstat-no" title="statement not covered" > if (typeof options === 'string') {</span>
|
|
3264
3105
|
<span class="cstat-no" title="statement not covered" > expression = this.expression;</span>
|
|
@@ -3283,7 +3124,7 @@ export class BindAttribute extends BaseNode {
|
|
|
3283
3124
|
*/
|
|
3284
3125
|
removeDestination(destination: Destination): void;
|
|
3285
3126
|
|
|
3286
|
-
<span class="fstat-no" title="function not covered" > removeDestination(
|
|
3127
|
+
<span class="fstat-no" title="function not covered" > removeDestination(</span>options: string | Destination) {
|
|
3287
3128
|
let destination: Destination;
|
|
3288
3129
|
<span class="cstat-no" title="statement not covered" > if (typeof options === 'string') {</span>
|
|
3289
3130
|
<span class="cstat-no" title="statement not covered" > destination = this.destination;</span>
|
|
@@ -3308,7 +3149,7 @@ export class BindAttribute extends BaseNode {
|
|
|
3308
3149
|
*/
|
|
3309
3150
|
removeExternalDestination(externalDestination: ExternalDestination): void;
|
|
3310
3151
|
|
|
3311
|
-
<span class="fstat-no" title="function not covered" > removeExternalDestination(
|
|
3152
|
+
<span class="fstat-no" title="function not covered" > removeExternalDestination(</span>options: string | ExternalDestination) {
|
|
3312
3153
|
let externalDestination: ExternalDestination;
|
|
3313
3154
|
<span class="cstat-no" title="statement not covered" > if (typeof options === 'string') {</span>
|
|
3314
3155
|
<span class="cstat-no" title="statement not covered" > externalDestination = this.externalDestination;</span>
|
|
@@ -3333,10 +3174,10 @@ export class BindAttribute extends BaseNode {
|
|
|
3333
3174
|
*/
|
|
3334
3175
|
removeValidationRuleInRules(validationRule: ValidationRule): void;
|
|
3335
3176
|
|
|
3336
|
-
<span class="fstat-no" title="function not covered" > removeValidationRuleInRules(
|
|
3177
|
+
<span class="fstat-no" title="function not covered" > removeValidationRuleInRules(</span>options: string | ValidationRule) {
|
|
3337
3178
|
let validationRule: ValidationRule;
|
|
3338
3179
|
<span class="cstat-no" title="statement not covered" > if (typeof options === 'string') {</span>
|
|
3339
|
-
<span class="cstat-no" title="statement not covered" > validationRule = (this.rules as ValidationRule[]).find(
|
|
3180
|
+
<span class="cstat-no" title="statement not covered" > validationRule = (this.rules as ValidationRule[]).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>
|
|
3340
3181
|
<span class="cstat-no" title="statement not covered" > if (!validationRule) {</span>
|
|
3341
3182
|
<span class="cstat-no" title="statement not covered" > throw new Error('找不到验证规则 ' + options);</span>
|
|
3342
3183
|
}
|
|
@@ -3358,7 +3199,7 @@ export class BindAttribute extends BaseNode {
|
|
|
3358
3199
|
*/
|
|
3359
3200
|
removeAssignee(assignee: Assignee): void;
|
|
3360
3201
|
|
|
3361
|
-
<span class="fstat-no" title="function not covered" > removeAssignee(
|
|
3202
|
+
<span class="fstat-no" title="function not covered" > removeAssignee(</span>options: string | Assignee) {
|
|
3362
3203
|
let assignee: Assignee;
|
|
3363
3204
|
<span class="cstat-no" title="statement not covered" > if (typeof options === 'string') {</span>
|
|
3364
3205
|
<span class="cstat-no" title="statement not covered" > assignee = this.assignee;</span>
|
|
@@ -3377,12 +3218,12 @@ export class BindAttribute extends BaseNode {
|
|
|
3377
3218
|
*/
|
|
3378
3219
|
removeItemInPlayground(logicItem: LogicItem): void;
|
|
3379
3220
|
|
|
3380
|
-
<span class="fstat-no" title="function not covered" > removeItemInPlayground(
|
|
3221
|
+
<span class="fstat-no" title="function not covered" > removeItemInPlayground(</span>options: LogicItem) {
|
|
3381
3222
|
let logicItem: LogicItem = <span class="cstat-no" title="statement not covered" >options;</span>
|
|
3382
3223
|
<span class="cstat-no" title="statement not covered" > return logicItem.delete();</span>
|
|
3383
3224
|
}
|
|
3384
3225
|
|
|
3385
|
-
<span class="fstat-no" title="function not covered" > __removeLogicItem(
|
|
3226
|
+
<span class="fstat-no" title="function not covered" > __removeLogicItem(</span>logicItem: LogicItem) {
|
|
3386
3227
|
const parentKey = <span class="cstat-no" title="statement not covered" >logicItem.parentKey;</span>
|
|
3387
3228
|
const params: Params = <span class="cstat-no" title="statement not covered" >{</span>
|
|
3388
3229
|
parentNode: this,
|
|
@@ -3393,21 +3234,13 @@ export class BindAttribute extends BaseNode {
|
|
|
3393
3234
|
};
|
|
3394
3235
|
<span class="cstat-no" title="statement not covered" > if (parentKey) {</span>
|
|
3395
3236
|
<span class="cstat-no" title="statement not covered" > params.parentKey = parentKey;</span>
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
// @ts-ignore
|
|
3399
|
-
const n = <span class="cstat-no" title="statement not covered" >logicItem.__v_raw || logicItem;</span>
|
|
3400
|
-
<span class="cstat-no" title="statement not covered" > if (Array.isArray((t as any)[parentKey])) {</span>
|
|
3401
|
-
// @ts-ignore
|
|
3402
|
-
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>
|
|
3237
|
+
<span class="cstat-no" title="statement not covered" > if (Array.isArray((this as any)[parentKey])) {</span>
|
|
3238
|
+
const index = (<span class="cstat-no" title="statement not covered" >this as any)[parentKey].indexOf(logicItem);</span>
|
|
3403
3239
|
<span class="cstat-no" title="statement not covered" > ~index && (this as any)[parentKey].splice(index, 1);</span>
|
|
3404
3240
|
<span class="cstat-no" title="statement not covered" > params.index = index;</span>
|
|
3405
|
-
} else {
|
|
3406
|
-
|
|
3407
|
-
<span class="cstat-no" title="statement not covered" >
|
|
3408
|
-
<span class="cstat-no" title="statement not covered" > params.index = 0;</span>
|
|
3409
|
-
(<span class="cstat-no" title="statement not covered" >this as any)[parentKey] = undefined;</span>
|
|
3410
|
-
}
|
|
3241
|
+
} else <span class="cstat-no" title="statement not covered" >if ((this as any)[parentKey] === logicItem) {</span>
|
|
3242
|
+
<span class="cstat-no" title="statement not covered" > params.index = 0;</span>
|
|
3243
|
+
(<span class="cstat-no" title="statement not covered" >this as any)[parentKey] = undefined;</span>
|
|
3411
3244
|
}
|
|
3412
3245
|
}
|
|
3413
3246
|
<span class="cstat-no" title="statement not covered" > return params;</span>
|
|
@@ -3418,11 +3251,11 @@ export class BindAttribute extends BaseNode {
|
|
|
3418
3251
|
// 自动生成的代码已结束。下面可以手动编写。
|
|
3419
3252
|
//================================================================================
|
|
3420
3253
|
|
|
3421
|
-
<span class="fstat-no" title="function not covered" > onChange(
|
|
3254
|
+
<span class="fstat-no" title="function not covered" > onChange(</span>$event?: EventPayload): void {
|
|
3422
3255
|
<span class="cstat-no" title="statement not covered" > this.emit('change', $event);</span>
|
|
3423
3256
|
}
|
|
3424
3257
|
|
|
3425
|
-
<span class="fstat-no" title="function not covered" > updateSource(
|
|
3258
|
+
<span class="fstat-no" title="function not covered" > updateSource(</span>source?: Partial<BindAttribute>) {
|
|
3426
3259
|
const object = <span class="cstat-no" title="statement not covered" >{</span>
|
|
3427
3260
|
...source,
|
|
3428
3261
|
};
|
|
@@ -3431,7 +3264,7 @@ export class BindAttribute extends BaseNode {
|
|
|
3431
3264
|
});
|
|
3432
3265
|
}
|
|
3433
3266
|
|
|
3434
|
-
<span class="fstat-no" title="function not covered" > getNamespace(
|
|
3267
|
+
<span class="fstat-no" title="function not covered" > getNamespace(</span>ns: string) {
|
|
3435
3268
|
<span class="cstat-no" title="statement not covered" > if (this.parentNode && (this.parentNode as Namespace).getNamespace) {</span>
|
|
3436
3269
|
const parentNamespace = (<span class="cstat-no" title="statement not covered" >this.parentNode as Namespace).getNamespace();</span>
|
|
3437
3270
|
const parentName = <span class="cstat-no" title="statement not covered" >this.parentNode.name;</span>
|
|
@@ -3462,9 +3295,9 @@ export class BindAttribute extends BaseNode {
|
|
|
3462
3295
|
<span class="cstat-no" title="statement not covered" > if (anchor?.expression) {</span>
|
|
3463
3296
|
<span class="cstat-no" title="statement not covered" > expressions.push(anchor?.expression);</span>
|
|
3464
3297
|
}
|
|
3465
|
-
<span class="cstat-no" title="statement not covered" >
|
|
3298
|
+
} else <span class="cstat-no" title="statement not covered" >if (this.name === 'rules') {</span>
|
|
3466
3299
|
<span class="cstat-no" title="statement not covered" > if (Array.isArray(this.rules)) {</span>
|
|
3467
|
-
<span class="cstat-no" title="statement not covered" > this.rules.forEach(
|
|
3300
|
+
<span class="cstat-no" title="statement not covered" > this.rules.forEach(<span class="fstat-no" title="function not covered" >(r</span>ule) => {</span>
|
|
3468
3301
|
const { arguments: args, errorMessage } = <span class="cstat-no" title="statement not covered" >rule || {};</span>
|
|
3469
3302
|
<span class="cstat-no" title="statement not covered" > if (Array.isArray(args)) {</span>
|
|
3470
3303
|
<span class="cstat-no" title="statement not covered" > expressions.push(...args);</span>
|
|
@@ -3472,7 +3305,7 @@ export class BindAttribute extends BaseNode {
|
|
|
3472
3305
|
<span class="cstat-no" title="statement not covered" > expressions.push(errorMessage);</span>
|
|
3473
3306
|
});
|
|
3474
3307
|
}
|
|
3475
|
-
<span class="cstat-no" title="statement not covered" >
|
|
3308
|
+
} else <span class="cstat-no" title="statement not covered" >if (this.expression) {</span>
|
|
3476
3309
|
<span class="cstat-no" title="statement not covered" > expressions.push(this.expression);</span>
|
|
3477
3310
|
}
|
|
3478
3311
|
<span class="cstat-no" title="statement not covered" > return expressions;</span>
|
|
@@ -3483,7 +3316,7 @@ export class BindAttribute extends BaseNode {
|
|
|
3483
3316
|
let bindExpression = <span class="cstat-no" title="statement not covered" >false;</span>
|
|
3484
3317
|
const expressions: any[] = <span class="cstat-no" title="statement not covered" >this.bindExpressions;</span>
|
|
3485
3318
|
<span class="cstat-no" title="statement not covered" > if (Array.isArray(expressions) && expressions.length) {</span>
|
|
3486
|
-
<span class="cstat-no" title="statement not covered" > expressions.forEach(
|
|
3319
|
+
<span class="cstat-no" title="statement not covered" > expressions.forEach(<span class="fstat-no" title="function not covered" >(e</span>xpression) => {</span>
|
|
3487
3320
|
let rootMemberExpression: any;
|
|
3488
3321
|
let tempNode = <span class="cstat-no" title="statement not covered" >expression;</span>
|
|
3489
3322
|
<span class="cstat-no" title="statement not covered" > while (tempNode?.concept === 'MemberExpression') {</span>
|
|
@@ -3508,7 +3341,7 @@ export class BindAttribute extends BaseNode {
|
|
|
3508
3341
|
// 获取表达式在页面中的名字
|
|
3509
3342
|
<span class="fstat-no" title="function not covered" > get e</span>xpressionNameInView() {
|
|
3510
3343
|
const nameList: string[] = <span class="cstat-no" title="statement not covered" >[];</span>
|
|
3511
|
-
let node:
|
|
3344
|
+
let node: BaseNode = <span class="cstat-no" title="statement not covered" >this;</span>
|
|
3512
3345
|
<span class="cstat-no" title="statement not covered" > while (node) {</span>
|
|
3513
3346
|
<span class="cstat-no" title="statement not covered" > nameList.unshift(node.name);</span>
|
|
3514
3347
|
<span class="cstat-no" title="statement not covered" > if (node.concept === 'ViewElement') {</span>
|
|
@@ -3529,7 +3362,7 @@ export class BindAttribute extends BaseNode {
|
|
|
3529
3362
|
}
|
|
3530
3363
|
|
|
3531
3364
|
// 获取参数列表
|
|
3532
|
-
<span class="fstat-no" title="function not covered" > getArgsList() {
|
|
3365
|
+
<span class="fstat-no" title="function not covered" > getArgsList(</span>) {
|
|
3533
3366
|
const viewElement = <span class="cstat-no" title="statement not covered" >this?.getAncestor('ViewElement');</span>
|
|
3534
3367
|
const argsList = <span class="cstat-no" title="statement not covered" >[];</span>
|
|
3535
3368
|
let parent = <span class="cstat-no" title="statement not covered" >viewElement?.parentNode;</span>
|
|
@@ -3549,7 +3382,7 @@ export class BindAttribute extends BaseNode {
|
|
|
3549
3382
|
const map: any = <span class="cstat-no" title="statement not covered" >{};</span>
|
|
3550
3383
|
// 页面中表达式用到的变量需要监听,从而重新执行match表达式
|
|
3551
3384
|
<span class="cstat-no" title="statement not covered" > utils.traverse(</span>
|
|
3552
|
-
|
|
3385
|
+
<span class="fstat-no" title="function not covered" > (c</span>urrent: any) => {
|
|
3553
3386
|
const { node } = <span class="cstat-no" title="statement not covered" >current || {};</span>
|
|
3554
3387
|
const { concept } = <span class="cstat-no" title="statement not covered" >node || {};</span>
|
|
3555
3388
|
<span class="cstat-no" title="statement not covered" > if (['Identifier'].includes(concept)) {</span>
|
|
@@ -3594,7 +3427,7 @@ export class BindAttribute extends BaseNode {
|
|
|
3594
3427
|
<span class="cstat-no" title="statement not covered" > return map;</span>
|
|
3595
3428
|
}
|
|
3596
3429
|
|
|
3597
|
-
<span class="fstat-no" title="function not covered" > getInViewMethod(
|
|
3430
|
+
<span class="fstat-no" title="function not covered" > getInViewMethod(</span>state?: TranslatorState) {
|
|
3598
3431
|
const argsList = <span class="cstat-no" title="statement not covered" >this.getArgsList() || [];</span>
|
|
3599
3432
|
const hasArgs = <span class="cstat-no" title="statement not covered" >!!argsList.length;</span>
|
|
3600
3433
|
let argStr = <span class="cstat-no" title="statement not covered" >'';</span>
|
|
@@ -3602,7 +3435,7 @@ export class BindAttribute extends BaseNode {
|
|
|
3602
3435
|
// 容错代码
|
|
3603
3436
|
let ftCode = <span class="cstat-no" title="statement not covered" >'';</span>
|
|
3604
3437
|
<span class="cstat-no" title="statement not covered" > if (hasArgs) {</span>
|
|
3605
|
-
<span class="cstat-no" title="statement not covered" > argsList.forEach(
|
|
3438
|
+
<span class="cstat-no" title="statement not covered" > argsList.forEach(<span class="fstat-no" title="function not covered" >(a</span>rg) => {</span>
|
|
3606
3439
|
<span class="cstat-no" title="statement not covered" > ftCode += `if (!this.${this.expressionNameInView}${argStr}) {</span>
|
|
3607
3440
|
this.${this.expressionNameInView}${argStr} = {};
|
|
3608
3441
|
}\n`;
|
|
@@ -3617,7 +3450,7 @@ export class BindAttribute extends BaseNode {
|
|
|
3617
3450
|
const paramList = <span class="cstat-no" title="statement not covered" >Object.keys(this.watchedVariableMap);</span>
|
|
3618
3451
|
let newParams = <span class="cstat-no" title="statement not covered" >`const newParams = [];`;</span>
|
|
3619
3452
|
<span class="cstat-no" title="statement not covered" > if (Array.isArray(paramList) && paramList.length) {</span>
|
|
3620
|
-
<span class="cstat-no" title="statement not covered" > paramList.forEach(
|
|
3453
|
+
<span class="cstat-no" title="statement not covered" > paramList.forEach(<span class="fstat-no" title="function not covered" >(p</span>aram) => {</span>
|
|
3621
3454
|
<span class="cstat-no" title="statement not covered" > newParams += `newParams.push(${param});\n`;</span>
|
|
3622
3455
|
});
|
|
3623
3456
|
}
|
|
@@ -3632,7 +3465,7 @@ export class BindAttribute extends BaseNode {
|
|
|
3632
3465
|
}
|
|
3633
3466
|
}
|
|
3634
3467
|
<span class="cstat-no" title="statement not covered" > if (this.name === 'rules' && this.rules) {</span>
|
|
3635
|
-
const ruleStrs = <span class="cstat-no" title="statement not covered" >this.rules.map(
|
|
3468
|
+
const ruleStrs = <span class="cstat-no" title="statement not covered" >this.rules.map(<span class="fstat-no" title="function not covered" >(r</span>ule) => <span class="cstat-no" title="statement not covered" >rule.toInViewMethod())</span>;</span>
|
|
3636
3469
|
<span class="cstat-no" title="statement not covered" > expressionStr = `[${ruleStrs.join(' , ')}]`;</span>
|
|
3637
3470
|
}
|
|
3638
3471
|
// 变量重新设置,为了触发重新调用
|
|
@@ -3670,18 +3503,18 @@ export class BindAttribute extends BaseNode {
|
|
|
3670
3503
|
toVue(options?: ElementToVueOptions) {
|
|
3671
3504
|
let str = '';
|
|
3672
3505
|
let { value } = this;
|
|
3673
|
-
if (this.type === 'dynamic' || (this.name === 'rules' && <span class="branch-2 cbranch-no" title="branch not covered" >this.rules)) {
|
|
3506
|
+
if (this.type === 'dynamic' || (this.name === 'rules' && <span class="branch-2 cbranch-no" title="branch not covered" >this.rules)</span>) {
|
|
3674
3507
|
// 需要用标识符替换
|
|
3675
3508
|
// if (options?.finalCode !== false && this.needReplaceWithIdentifier) {
|
|
3676
3509
|
// const argsList = this.getArgsList();
|
|
3677
3510
|
// value = `${this.expressionBuilderName}(${argsList.join(', ')})`;
|
|
3678
3511
|
// } else
|
|
3679
|
-
<span class="missing-if-branch" title="if path not taken" >I</span>if (this.name === 'rules' && <span class="branch-1 cbranch-no" title="branch not covered" >this.rules)
|
|
3680
|
-
const ruleStrs = <span class="cstat-no" title="statement not covered" >this.rules.map(
|
|
3512
|
+
<span class="missing-if-branch" title="if path not taken" >I</span>if (this.name === 'rules' && <span class="branch-1 cbranch-no" title="branch not covered" >this.rules)</span> {
|
|
3513
|
+
const ruleStrs = <span class="cstat-no" title="statement not covered" >this.rules.map(<span class="fstat-no" title="function not covered" >(r</span>ule) => <span class="cstat-no" title="statement not covered" >rule.toVue(options))</span>;</span>
|
|
3681
3514
|
<span class="cstat-no" title="statement not covered" > value = `[${ruleStrs.join(' , ')}]`;</span>
|
|
3682
|
-
<span class="missing-if-branch" title="if path not taken" >I</span>
|
|
3515
|
+
} else <span class="missing-if-branch" title="if path not taken" >I</span>if (['destination', 'externalDestination'].includes(this.name)) {
|
|
3683
3516
|
<span class="cstat-no" title="statement not covered" > value = (this as any)?.[this.name]?.toVue(options) || '';</span>
|
|
3684
|
-
<span class="missing-if-branch" title="if path not taken" >I</span>
|
|
3517
|
+
} else <span class="missing-if-branch" title="if path not taken" >I</span>if ('ArrowFunctionExpression'.includes(this.expression?.concept)) {
|
|
3685
3518
|
<span class="cstat-no" title="statement not covered" > value = this.value;</span>
|
|
3686
3519
|
} else {
|
|
3687
3520
|
value = this.expression?.toVue(options) || <span class="branch-1 cbranch-no" title="branch not covered" >'';</span>
|
|
@@ -3696,10 +3529,10 @@ export class BindAttribute extends BaseNode {
|
|
|
3696
3529
|
this.frontend?.prefixPath
|
|
3697
3530
|
) {
|
|
3698
3531
|
<span class="cstat-no" title="statement not covered" > value = `${this.frontend?.prefixPath}${value}`;</span>
|
|
3699
|
-
<span class="missing-if-branch" title="if path not taken" >I</span>
|
|
3532
|
+
} else <span class="missing-if-branch" title="if path not taken" >I</span>if (
|
|
3700
3533
|
['van-uploader', 'u-uploader'].includes(this.viewElement.tag) &&
|
|
3701
|
-
<span class="branch-1 cbranch-no" title="branch not covered" > this.name === 'url'
|
|
3702
|
-
<span class="branch-2 cbranch-no" title="branch not covered" > value.startsWith('/')
|
|
3534
|
+
<span class="branch-1 cbranch-no" title="branch not covered" > this.name === 'url' </span>&&
|
|
3535
|
+
<span class="branch-2 cbranch-no" title="branch not covered" > value.startsWith('/') </span>&&
|
|
3703
3536
|
<span class="branch-3 cbranch-no" title="branch not covered" > this.app?.sysPrefixPath</span>
|
|
3704
3537
|
) {
|
|
3705
3538
|
<span class="cstat-no" title="statement not covered" > value = `${this.app?.sysPrefixPath}${value}`;</span>
|
|
@@ -3708,22 +3541,17 @@ export class BindAttribute extends BaseNode {
|
|
|
3708
3541
|
<span class="missing-if-branch" title="else path not taken" >E</span>if (typeof value === 'string') {
|
|
3709
3542
|
code = value;
|
|
3710
3543
|
<span class="missing-if-branch" title="else path not taken" >E</span>if (options?.finalCode !== false) {
|
|
3711
|
-
|
|
3712
|
-
<span class="cstat-no" title="statement not covered" >
|
|
3713
|
-
<span class="cstat-no" title="statement not covered" >
|
|
3714
|
-
|
|
3715
|
-
|
|
3716
|
-
|
|
3717
|
-
<span class="cstat-no" title="statement not covered" >
|
|
3718
|
-
|
|
3719
|
-
|
|
3720
|
-
|
|
3721
|
-
|
|
3722
|
-
<span class="cstat-no" title="statement not covered" > return `${escape}${escape}`;</span>
|
|
3723
|
-
}
|
|
3724
|
-
<span class="cstat-no" title="statement not covered" > return `${escape}${m}`;</span>
|
|
3725
|
-
});
|
|
3726
|
-
}
|
|
3544
|
+
code = value.replace(/['"`\\]/g, <span class="fstat-no" title="function not covered" >(m</span>) => {
|
|
3545
|
+
let escape = <span class="cstat-no" title="statement not covered" >'\\\\';</span>
|
|
3546
|
+
<span class="cstat-no" title="statement not covered" > escape = '\\\\';</span>
|
|
3547
|
+
/// #if process.env.BUILD_TARGET === 'node'
|
|
3548
|
+
<span class="cstat-no" title="statement not covered" > escape = '\\';</span>
|
|
3549
|
+
/// #endif
|
|
3550
|
+
<span class="cstat-no" title="statement not covered" > if (m === '\\') {</span>
|
|
3551
|
+
<span class="cstat-no" title="statement not covered" > return `${escape}${escape}`;</span>
|
|
3552
|
+
}
|
|
3553
|
+
<span class="cstat-no" title="statement not covered" > return `${escape}${m}`;</span>
|
|
3554
|
+
});
|
|
3727
3555
|
}
|
|
3728
3556
|
}
|
|
3729
3557
|
value = code;
|
|
@@ -3741,15 +3569,7 @@ export class BindAttribute extends BaseNode {
|
|
|
3741
3569
|
// 文本默认要经过toString转换
|
|
3742
3570
|
if (options?.finalCode !== false && name === 'text' && !this.sync && this.type === 'dynamic') {
|
|
3743
3571
|
const expTypeAnnotation = (this.expression as any)?.typeAnnotation || this.expression?.__TypeAnnotation;
|
|
3744
|
-
|
|
3745
|
-
<span class="missing-if-branch" title="if path not taken" >I</span>if (expTypeAnnotation?.typeNamespace?.endsWith('.metadataTypes')) {
|
|
3746
|
-
const referenceNode =
|
|
3747
|
-
<span class="cstat-no" title="statement not covered" > this.app.findNodeByCompleteName(expTypeAnnotation.typeNamespace + '.' + expTypeAnnotation.typeName)</span>
|
|
3748
|
-
?.typeAnnotation || {};
|
|
3749
|
-
<span class="cstat-no" title="statement not covered" > value = `$utils['ToString']('${referenceNode?.typeNamespace}.${referenceNode.typeName}', ${value})`;</span>
|
|
3750
|
-
} else {
|
|
3751
|
-
value = `$utils['ToString']('${expTypeAnnotation?.sortedTypeKey}', ${value})`;
|
|
3752
|
-
}
|
|
3572
|
+
value = `$utils['ToString']('${expTypeAnnotation?.sortedTypeKey}', ${value})`;
|
|
3753
3573
|
}
|
|
3754
3574
|
if (this.type === 'string' && name !== 'rules') {
|
|
3755
3575
|
<span class="missing-if-branch" title="else path not taken" >E</span>if (options?.finalCode !== false) {
|
|
@@ -3759,44 +3579,45 @@ export class BindAttribute extends BaseNode {
|
|
|
3759
3579
|
}
|
|
3760
3580
|
} else if (this.sync) {
|
|
3761
3581
|
str += `:${name}.sync="${value}"`;
|
|
3762
|
-
<span class="missing-if-branch" title="if path not taken" >I</span>
|
|
3582
|
+
} else <span class="missing-if-branch" title="if path not taken" >I</span>if (name === 'destination') {
|
|
3763
3583
|
<span class="cstat-no" title="statement not covered" > str += `:destination="${value}"`;</span>
|
|
3764
|
-
<span class="missing-if-branch" title="if path not taken" >I</span>
|
|
3584
|
+
} else <span class="missing-if-branch" title="if path not taken" >I</span>if (name === 'externalDestination') {
|
|
3765
3585
|
<span class="cstat-no" title="statement not covered" > str += `:link="${value}"`;</span>
|
|
3766
|
-
<span class="missing-if-branch" title="if path not taken" >I</span>
|
|
3586
|
+
} else <span class="missing-if-branch" title="if path not taken" >I</span>if (name === 'rules') {
|
|
3767
3587
|
<span class="cstat-no" title="statement not covered" > str += `:${name}="${value}"`;</span>
|
|
3768
3588
|
} else {
|
|
3769
3589
|
str += `:${name}="${value}"`;
|
|
3770
3590
|
}
|
|
3771
|
-
<span class="cstat-no" title="statement not covered" >
|
|
3591
|
+
} else <span class="cstat-no" title="statement not covered" >if (this.type === 'string' && this.value === '')</span>
|
|
3772
3592
|
<span class="cstat-no" title="statement not covered" > if (!['destination', 'externalDestination'].includes(this.name)) {</span>
|
|
3773
3593
|
<span class="cstat-no" title="statement not covered" > str = `${name}="${this.value}"`;</span>
|
|
3774
3594
|
}
|
|
3775
3595
|
return str;
|
|
3776
3596
|
}
|
|
3777
3597
|
|
|
3778
|
-
@
|
|
3779
|
-
|
|
3780
|
-
const
|
|
3781
|
-
|
|
3598
|
+
@withSourceMap()
|
|
3599
|
+
toEmbeddedTS(state = <span class="branch-0 cbranch-no" title="branch not covered" >createCompilerState())</span>: string {
|
|
3600
|
+
const { name, type, value, rules, expression, playground } = this;
|
|
3601
|
+
|
|
3782
3602
|
let code = '';
|
|
3783
|
-
if (
|
|
3603
|
+
if (this?.name === 'data-source' && this?.expression?.concept === 'CallLogic') {
|
|
3784
3604
|
code = `() => {`;
|
|
3785
3605
|
} else {
|
|
3786
3606
|
code = '() => {';
|
|
3787
3607
|
}
|
|
3788
|
-
|
|
3789
|
-
<span class="
|
|
3608
|
+
|
|
3609
|
+
<span class="missing-if-branch" title="if path not taken" >I</span>if (['destination', 'externalDestination'].includes(name) && <span class="branch-1 cbranch-no" title="branch not covered" >type === 'dynamic')</span> {
|
|
3610
|
+
<span class="cstat-no" title="statement not covered" > code += (this as any)[name].toEmbeddedTS(shiftState(state, code, { tabSize: (state?.tabSize || 0) + 1 }));</span>
|
|
3790
3611
|
<span class="cstat-no" title="statement not covered" > code += ';\n';</span>
|
|
3791
3612
|
} else if (name === 'rules') {
|
|
3792
|
-
|
|
3793
|
-
code +=
|
|
3613
|
+
rules?.forEach((item, index) => {
|
|
3614
|
+
code += item.toEmbeddedTS(shiftState(state, code));
|
|
3794
3615
|
code += ';\n';
|
|
3795
3616
|
});
|
|
3796
3617
|
} else if (expression) {
|
|
3797
|
-
code +=
|
|
3618
|
+
code += expression.toEmbeddedTS(shiftState(state, code, { tabSize: (state?.tabSize || <span class="branch-1 cbranch-no" title="branch not covered" >0)</span> + 1 }));
|
|
3798
3619
|
code += ';\n';
|
|
3799
|
-
<span class="missing-if-branch" title="if path not taken" >I</span>
|
|
3620
|
+
} else <span class="missing-if-branch" title="if path not taken" >I</span>if (name === 'url' && <span class="branch-1 cbranch-no" title="branch not covered" >value)</span> {
|
|
3800
3621
|
/**
|
|
3801
3622
|
* ls定制化处理
|
|
3802
3623
|
* url字符串处理成实体的引用,方便改名或者删除的时候查找引用
|
|
@@ -3822,46 +3643,42 @@ export class BindAttribute extends BaseNode {
|
|
|
3822
3643
|
}
|
|
3823
3644
|
}
|
|
3824
3645
|
if (type === 'dynamic') {
|
|
3825
|
-
|
|
3826
|
-
<span class="cstat-no" title="statement not covered" > code +=
|
|
3646
|
+
playground?.forEach(<span class="fstat-no" title="function not covered" >(i</span>tem, index) => {
|
|
3647
|
+
<span class="cstat-no" title="statement not covered" > code += item.toEmbeddedTS(shiftState(state, code, { tabSize: (state?.tabSize || 0) + 1 }));</span>
|
|
3827
3648
|
<span class="cstat-no" title="statement not covered" > code += ';\n';</span>
|
|
3828
3649
|
});
|
|
3829
3650
|
}
|
|
3651
|
+
|
|
3830
3652
|
code += '}';
|
|
3831
3653
|
return code;
|
|
3832
3654
|
}
|
|
3833
3655
|
|
|
3834
|
-
|
|
3835
|
-
<span class="fstat-no" title="function not covered" > *t</span>oEmbeddedTSVariableDefinition(
|
|
3836
|
-
<span class="branch-0 cbranch-no" title="branch not covered" > state = createCompilerState(),</span>
|
|
3837
|
-
attrList?: string[],
|
|
3838
|
-
elementName?: string,
|
|
3839
|
-
currentLevel?: string,
|
|
3840
|
-
): TranslatorGenerator {
|
|
3841
|
-
const self = <span class="cstat-no" title="statement not covered" >this;</span>
|
|
3656
|
+
<span class="fstat-no" title="function not covered" > toEmbeddedTSVariableDefinition(</span>state?: TranslatorState, attrList?: string[], elementName?: string, currentLevel?: string): string {
|
|
3842
3657
|
let code = <span class="cstat-no" title="statement not covered" >'';</span>
|
|
3843
3658
|
let arrCode = <span class="cstat-no" title="statement not covered" >'';</span>
|
|
3844
3659
|
<span class="cstat-no" title="statement not covered" > code += indent((state?.tabSize || 0) + 3);</span>
|
|
3845
|
-
<span class="cstat-no" title="statement not covered" > code += `${attrConvertCamelCase(
|
|
3846
|
-
<span class="cstat-no" title="statement not covered" > if (
|
|
3847
|
-
<span class="cstat-no" title="statement not covered" > if (
|
|
3848
|
-
<span class="cstat-no" title="statement not covered" > code += `ReturnType<typeof __elements_stashFunctionVariable.${elementName}_${attrConvertCamelCase(
|
|
3660
|
+
<span class="cstat-no" title="statement not covered" > code += `${attrConvertCamelCase(this.name)}: `;</span>
|
|
3661
|
+
<span class="cstat-no" title="statement not covered" > if (this.expression) {</span>
|
|
3662
|
+
<span class="cstat-no" title="statement not covered" > if (this.name === 'data-source') {</span>
|
|
3663
|
+
<span class="cstat-no" title="statement not covered" > code += `nasl.ui.GetItemTypeFromDataSource<ReturnType<typeof __elements_stashFunctionVariable.${elementName}_${attrConvertCamelCase(</span>
|
|
3664
|
+
this.name,
|
|
3665
|
+
)}>>`;
|
|
3849
3666
|
} else {
|
|
3850
|
-
<span class="cstat-no" title="statement not covered" > code += `ReturnType<typeof __elements_stashFunctionVariable.${elementName}_${attrConvertCamelCase(
|
|
3667
|
+
<span class="cstat-no" title="statement not covered" > code += `ReturnType<typeof __elements_stashFunctionVariable.${elementName}_${attrConvertCamelCase(this.name)}>`;</span>
|
|
3851
3668
|
}
|
|
3852
3669
|
<span class="cstat-no" title="statement not covered" > arrCode = `() => {</span>
|
|
3853
|
-
return __elements_variable_function.${currentLevel}?.${attrConvertCamelCase(
|
|
3854
|
-
}
|
|
3855
|
-
<span class="cstat-no" title="statement not covered" >
|
|
3670
|
+
return __elements_variable_function.${currentLevel}?.${attrConvertCamelCase(this.name)}
|
|
3671
|
+
}`
|
|
3672
|
+
} else <span class="cstat-no" title="statement not covered" >if (this.name === 'sorting') {</span>
|
|
3856
3673
|
<span class="cstat-no" title="statement not covered" > code += `{</span>
|
|
3857
3674
|
field: nasl.core.String
|
|
3858
3675
|
order: nasl.core.String
|
|
3859
3676
|
}`;
|
|
3860
|
-
<span class="cstat-no" title="statement not covered" >
|
|
3677
|
+
} else <span class="cstat-no" title="statement not covered" >if (this.type === 'static') {</span>
|
|
3861
3678
|
let type = <span class="cstat-no" title="statement not covered" >'nasl.core.String';</span>
|
|
3862
|
-
<span class="cstat-no" title="statement not covered" > if (typeof
|
|
3863
|
-
<span class="cstat-no" title="statement not covered" > type = `${
|
|
3864
|
-
<span class="cstat-no" title="statement not covered" >
|
|
3679
|
+
<span class="cstat-no" title="statement not covered" > if (typeof this.value === 'number') {</span>
|
|
3680
|
+
<span class="cstat-no" title="statement not covered" > type = `${this.value}`.includes('.') ? 'nasl.core.Decimal' : 'nasl.core.Long';</span>
|
|
3681
|
+
} else <span class="cstat-no" title="statement not covered" >if (typeof this.value === 'boolean') {</span>
|
|
3865
3682
|
<span class="cstat-no" title="statement not covered" > type = 'nasl.core.Boolean';</span>
|
|
3866
3683
|
}
|
|
3867
3684
|
<span class="cstat-no" title="statement not covered" > code += `${type}`;</span>
|
|
@@ -3870,77 +3687,65 @@ export class BindAttribute extends BaseNode {
|
|
|
3870
3687
|
}
|
|
3871
3688
|
<span class="cstat-no" title="statement not covered" > code += `\n`;</span>
|
|
3872
3689
|
<span class="cstat-no" title="statement not covered" > if (arrCode.length > 0) {</span>
|
|
3873
|
-
<span class="cstat-no" title="statement not covered" > attrList.push(`${elementName}_${attrConvertCamelCase(
|
|
3690
|
+
<span class="cstat-no" title="statement not covered" > attrList.push(`${elementName}_${attrConvertCamelCase(this.name)}: ${arrCode},\n`);</span>
|
|
3874
3691
|
}
|
|
3875
3692
|
<span class="cstat-no" title="statement not covered" > return code;</span>
|
|
3876
3693
|
}
|
|
3877
|
-
|
|
3878
|
-
<span class="fstat-no" title="function not covered" > *t</span>oEmbeddedTSVariableFunctionDefinition(<span class="branch-0 cbranch-no" title="branch not covered" >state = createCompilerState()): TranslatorGenerator {</span>
|
|
3879
|
-
const self = <span class="cstat-no" title="statement not covered" >this;</span>
|
|
3694
|
+
<span class="fstat-no" title="function not covered" > toEmbeddedTSVariableFunctionDefinition(</span>state?: TranslatorState): string {
|
|
3880
3695
|
let code = <span class="cstat-no" title="statement not covered" >'';</span>
|
|
3881
|
-
<span class="cstat-no" title="statement not covered" > if (
|
|
3696
|
+
<span class="cstat-no" title="statement not covered" > if (this.expression) {</span>
|
|
3882
3697
|
<span class="cstat-no" title="statement not covered" > code += indent((state?.tabSize || 0) + 4);</span>
|
|
3883
|
-
<span class="cstat-no" title="statement not covered" > code += `${attrConvertCamelCase(
|
|
3698
|
+
<span class="cstat-no" title="statement not covered" > code += `${attrConvertCamelCase(this.name)}: `;</span>
|
|
3884
3699
|
let stashVariable;
|
|
3885
|
-
<span class="cstat-no" title="statement not covered" > if (
|
|
3700
|
+
<span class="cstat-no" title="statement not covered" > if (this.name === 'data-source') {</span>
|
|
3886
3701
|
const extraParams = <span class="cstat-no" title="statement not covered" >{</span>
|
|
3887
3702
|
tabSize: 4,
|
|
3888
3703
|
inline: true,
|
|
3889
3704
|
noNeedParams: true,
|
|
3890
3705
|
};
|
|
3891
|
-
<span class="cstat-no" title="statement not covered" > stashVariable = `${
|
|
3892
|
-
shiftState(state, code,
|
|
3706
|
+
<span class="cstat-no" title="statement not covered" > stashVariable = `${this.expression.toEmbeddedTS(</span>
|
|
3707
|
+
shiftState(state, code, this?.expression?.concept === 'CallLogic' ? extraParams : {}),
|
|
3893
3708
|
)}`;
|
|
3894
3709
|
} else {
|
|
3895
|
-
<span class="cstat-no" title="statement not covered" > stashVariable = `${
|
|
3710
|
+
<span class="cstat-no" title="statement not covered" > stashVariable = `${this.expression.toEmbeddedTS()}`;</span>
|
|
3896
3711
|
}
|
|
3897
|
-
<span class="cstat-no" title="statement not covered" > code += `() => {\n
|
|
3712
|
+
<span class="cstat-no" title="statement not covered" > code += `() => {\n`</span>
|
|
3898
3713
|
<span class="cstat-no" title="statement not covered" > code += indent((state?.tabSize || 0) + 5);</span>
|
|
3899
|
-
<span class="cstat-no" title="statement not covered" > code += `return ${stashVariable}\n
|
|
3714
|
+
<span class="cstat-no" title="statement not covered" > code += `return ${stashVariable}\n`</span>
|
|
3900
3715
|
<span class="cstat-no" title="statement not covered" > code += indent((state?.tabSize || 0) + 4);</span>
|
|
3901
|
-
<span class="cstat-no" title="statement not covered" > code += `},\n
|
|
3716
|
+
<span class="cstat-no" title="statement not covered" > code += `},\n`</span>
|
|
3902
3717
|
}
|
|
3903
3718
|
<span class="cstat-no" title="statement not covered" > return code;</span>
|
|
3904
3719
|
}
|
|
3905
3720
|
|
|
3906
|
-
<span class="fstat-no" title="function not covered" > findCurrentElementParent(
|
|
3907
|
-
<span class="cstat-no" title="statement not covered" > if (
|
|
3908
|
-
<span class="cstat-no" title="statement not covered" > if (</span>
|
|
3909
|
-
|
|
3910
|
-
'u-table-view',
|
|
3911
|
-
'u-list-view',
|
|
3912
|
-
'u-grid-view',
|
|
3913
|
-
'u-list-components',
|
|
3914
|
-
'van-list-view',
|
|
3915
|
-
'van-grid-view',
|
|
3916
|
-
'van-for-components',
|
|
3917
|
-
].includes(node.parentNode.tag)
|
|
3918
|
-
) {
|
|
3919
|
-
<span class="cstat-no" title="statement not covered" > return node.parentNode;</span>
|
|
3721
|
+
<span class="fstat-no" title="function not covered" > findCurrentElementParent(</span>node: any): ViewElement | undefined {
|
|
3722
|
+
<span class="cstat-no" title="statement not covered" > if (node.parentNode instanceof ViewElement) {</span>
|
|
3723
|
+
<span class="cstat-no" title="statement not covered" > if (['u-table-view', 'u-list-view', 'u-grid-view', 'u-list-components', 'van-list-view', 'van-grid-view', 'van-for-components'].includes(node.parentNode.tag)) {</span>
|
|
3724
|
+
<span class="cstat-no" title="statement not covered" > return node.parentNode</span>
|
|
3920
3725
|
} else {
|
|
3921
|
-
<span class="cstat-no" title="statement not covered" > return this.findCurrentElementParent(node.parentNode)
|
|
3726
|
+
<span class="cstat-no" title="statement not covered" > return this.findCurrentElementParent(node.parentNode)</span>
|
|
3922
3727
|
}
|
|
3923
3728
|
} else {
|
|
3924
|
-
<span class="cstat-no" title="statement not covered" > return undefined
|
|
3729
|
+
<span class="cstat-no" title="statement not covered" > return undefined</span>
|
|
3925
3730
|
}
|
|
3926
3731
|
}
|
|
3927
3732
|
@withSourceMap()
|
|
3928
|
-
<span class="fstat-no" title="function not covered" > toNaturalTS(<span class="branch-0 cbranch-no" title="branch not covered" >
|
|
3733
|
+
<span class="fstat-no" title="function not covered" > toNaturalTS(</span>state = <span class="branch-0 cbranch-no" title="branch not covered" >createCompilerState())</span>: string {
|
|
3929
3734
|
const { name, type, value, rules, expression, playground } = <span class="cstat-no" title="statement not covered" >this;</span>
|
|
3930
3735
|
let code = <span class="cstat-no" title="statement not covered" >'() => {';</span>
|
|
3931
3736
|
|
|
3932
3737
|
<span class="cstat-no" title="statement not covered" > if (['destination', 'externalDestination'].includes(name) && type === 'dynamic') {</span>
|
|
3933
3738
|
<span class="cstat-no" title="statement not covered" > code += (this as any)[name].toNaturalTS(shiftState(state, code, { tabSize: (state?.tabSize || 0) + 1 }));</span>
|
|
3934
3739
|
<span class="cstat-no" title="statement not covered" > code += ';\n';</span>
|
|
3935
|
-
<span class="cstat-no" title="statement not covered" >
|
|
3936
|
-
<span class="cstat-no" title="statement not covered" > rules?.forEach(
|
|
3740
|
+
} else <span class="cstat-no" title="statement not covered" >if (name === 'rules') {</span>
|
|
3741
|
+
<span class="cstat-no" title="statement not covered" > rules?.forEach(<span class="fstat-no" title="function not covered" >(i</span>tem) => {</span>
|
|
3937
3742
|
<span class="cstat-no" title="statement not covered" > code += item.toNaturalTS(shiftState(state, code));</span>
|
|
3938
3743
|
<span class="cstat-no" title="statement not covered" > code += ';\n';</span>
|
|
3939
3744
|
});
|
|
3940
|
-
<span class="cstat-no" title="statement not covered" >
|
|
3745
|
+
} else <span class="cstat-no" title="statement not covered" >if (expression) {</span>
|
|
3941
3746
|
<span class="cstat-no" title="statement not covered" > code += expression.toNaturalTS(shiftState(state, code, { tabSize: (state?.tabSize || 0) + 1 }));</span>
|
|
3942
3747
|
<span class="cstat-no" title="statement not covered" > code += ';\n';</span>
|
|
3943
|
-
<span class="cstat-no" title="statement not covered" >
|
|
3748
|
+
} else <span class="cstat-no" title="statement not covered" >if (name === 'url' && value) {</span>
|
|
3944
3749
|
/**
|
|
3945
3750
|
* ls定制化处理
|
|
3946
3751
|
* url字符串处理成实体的引用,方便改名或者删除的时候查找引用
|
|
@@ -3966,7 +3771,7 @@ export class BindAttribute extends BaseNode {
|
|
|
3966
3771
|
}
|
|
3967
3772
|
}
|
|
3968
3773
|
<span class="cstat-no" title="statement not covered" > if (type === 'dynamic') {</span>
|
|
3969
|
-
<span class="cstat-no" title="statement not covered" > playground?.forEach(
|
|
3774
|
+
<span class="cstat-no" title="statement not covered" > playground?.forEach(<span class="fstat-no" title="function not covered" >(i</span>tem) => {</span>
|
|
3970
3775
|
<span class="cstat-no" title="statement not covered" > code += item.toNaturalTS(shiftState(state, code, { tabSize: (state?.tabSize || 0) + 1 }));</span>
|
|
3971
3776
|
<span class="cstat-no" title="statement not covered" > code += ';\n';</span>
|
|
3972
3777
|
});
|
|
@@ -3976,7 +3781,7 @@ export class BindAttribute extends BaseNode {
|
|
|
3976
3781
|
<span class="cstat-no" title="statement not covered" > return code;</span>
|
|
3977
3782
|
}
|
|
3978
3783
|
|
|
3979
|
-
<span class="fstat-no" title="function not covered" > setUrlValue(
|
|
3784
|
+
<span class="fstat-no" title="function not covered" > setUrlValue(</span>newValue: string) {
|
|
3980
3785
|
const object = <span class="cstat-no" title="statement not covered" >{</span>
|
|
3981
3786
|
value: newValue,
|
|
3982
3787
|
};
|
|
@@ -3984,7 +3789,6 @@ export class BindAttribute extends BaseNode {
|
|
|
3984
3789
|
...object,
|
|
3985
3790
|
});
|
|
3986
3791
|
}
|
|
3987
|
-
|
|
3988
3792
|
//================================================================================
|
|
3989
3793
|
// 从这里开始到结尾注释之间的代码由 NASL Workbench 自动生成,请不手动修改!
|
|
3990
3794
|
// ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓
|
|
@@ -4000,14 +3804,15 @@ export default BindAttribute;
|
|
|
4000
3804
|
export function attrConvertCamelCase(str: string) {
|
|
4001
3805
|
let strList: string[] = str.split('-');
|
|
4002
3806
|
strList = strList.map((strItem, index) => {
|
|
4003
|
-
if (index === 0) {
|
|
3807
|
+
<span class="missing-if-branch" title="else path not taken" >E</span>if (index === 0) {
|
|
4004
3808
|
return strItem;
|
|
4005
3809
|
} else {
|
|
4006
|
-
return `${strItem.slice(0, 1).toUpperCase()}${strItem.slice(1)}
|
|
3810
|
+
<span class="cstat-no" title="statement not covered" > return `${strItem.slice(0, 1).toUpperCase()}${strItem.slice(1)}`;</span>
|
|
4007
3811
|
}
|
|
4008
3812
|
});
|
|
4009
3813
|
return strList.join('');
|
|
4010
3814
|
}
|
|
3815
|
+
|
|
4011
3816
|
</pre></td></tr></table></pre>
|
|
4012
3817
|
|
|
4013
3818
|
<div class='push'></div><!-- for sticky footer -->
|
|
@@ -4015,7 +3820,7 @@ export function attrConvertCamelCase(str: string) {
|
|
|
4015
3820
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
4016
3821
|
Code coverage generated by
|
|
4017
3822
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
4018
|
-
at 2023-
|
|
3823
|
+
at 2023-10-18T11:36:07.885Z
|
|
4019
3824
|
</div>
|
|
4020
3825
|
<script src="../../prettify.js"></script>
|
|
4021
3826
|
<script>
|